Skip to content

Commit 80c71f3

Browse files
committed
inlude feedback passthrough on rich text component
1 parent 15efd71 commit 80c71f3

File tree

10 files changed

+31
-19
lines changed

10 files changed

+31
-19
lines changed

dist/components/form/Form.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ declare const Form: {
1818
({ type, className, ...rest }: import("./components/FormCheck").FormCheckProps): React.JSX.Element;
1919
Feedback: import("react-bootstrap/esm/helpers").BsPrefixRefForwardingComponent<"div", import("react-bootstrap/esm/Feedback").FeedbackProps>;
2020
};
21-
RichText: ({ modules, value, onChange, theme, importCallback, debug, ...rest }: import("./components/FormRichText").QuillEditorProps) => React.JSX.Element;
21+
RichText: {
22+
({ modules, value, onChange, theme, importCallback, debug, ...rest }: import("./components/FormRichText").QuillEditorProps): React.JSX.Element;
23+
Feedback: import("react-bootstrap/esm/helpers").BsPrefixRefForwardingComponent<"div", import("react-bootstrap/esm/Feedback").FeedbackProps>;
24+
};
2225
DateTime: {
2326
({ className, ...rest }: import("./components/FormDateTime").FormDateTimeProps): React.JSX.Element;
2427
Feedback: import("react-bootstrap/esm/helpers").BsPrefixRefForwardingComponent<"div", import("react-bootstrap/esm/Feedback").FeedbackProps>;

dist/components/form/Form.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components/form/components/FormRichText.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export interface QuillEditorProps {
1111
onChange?(value: string): any;
1212
importCallback?(): any;
1313
}
14-
declare const FormRichText: ({ modules, value, onChange, theme, importCallback, debug, ...rest }: QuillEditorProps) => React.JSX.Element;
14+
declare const FormRichText: {
15+
({ modules, value, onChange, theme, importCallback, debug, ...rest }: QuillEditorProps): React.JSX.Element;
16+
Feedback: import("react-bootstrap/esm/helpers").BsPrefixRefForwardingComponent<"div", import("react-bootstrap/esm/Feedback").FeedbackProps>;
17+
};
1518
export default FormRichText;
1619
//# sourceMappingURL=FormRichText.d.ts.map

dist/components/form/components/FormRichText.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components/form/components/FormRichText.js

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/components/form/components/FormRichText.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.es.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25535,7 +25535,7 @@ var FormRichText = function (_a) {
2553525535
var modules = _a.modules, value = _a.value, onChange = _a.onChange, theme = _a.theme, importCallback = _a.importCallback, debug = _a.debug, rest = __rest(_a, ["modules", "value", "onChange", "theme", "importCallback", "debug"]);
2553625536
var quillRef = React.useRef(null);
2553725537
var containerRef = React.useRef(null);
25538-
//Set debug mode, false results in no output.
25538+
// Set debug mode, false results in no output.
2553925539
Quill.debug(debug || false);
2554025540
var quillOptions = __assign(__assign({}, modules), { theme: theme || 'snow' });
2554125541
var setValue = function (quillRef) {
@@ -25553,7 +25553,7 @@ var FormRichText = function (_a) {
2555325553
React.useEffect(function () {
2555425554
if (containerRef.current) {
2555525555
if (importCallback) {
25556-
//Callback to import new modules into quill, needs to be done within the same instance as the quill object.
25556+
// Callback to import new modules into quill, needs to be done within the same instance as the quill object.
2555725557
importCallback();
2555825558
}
2555925559
var container_1 = containerRef.current;
@@ -25572,8 +25572,9 @@ var FormRichText = function (_a) {
2557225572
// NOTE: Run effect once on component mount, please recheck dependencies if effect is updated.
2557325573
// eslint-disable-next-line react-hooks/exhaustive-deps
2557425574
}, []);
25575-
return React.createElement("div", { ref: containerRef, style: rest.style, id: rest.id, className: rest.className });
25575+
return (React.createElement("div", { ref: containerRef, style: rest.style, id: rest.id, className: rest.className }));
2557625576
};
25577+
FormRichText.Feedback = Feedback$1;
2557725578

2557825579
var FormDateTime = function (_a) {
2557925580
var className = _a.className, rest = __rest(_a, ["className"]);

dist/index.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/form/components/FormRichText.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { useRef, CSSProperties, useEffect } from 'react';
2+
import Feedback from 'react-bootstrap/esm/Feedback';
23
import Quill from 'quill';
34
import 'quill/dist/quill.snow.css';
45

@@ -88,4 +89,6 @@ const FormRichText = ({
8889
);
8990
};
9091

92+
FormRichText.Feedback = Feedback;
93+
9194
export default FormRichText;

0 commit comments

Comments
 (0)