@quillsql/react 2.16.4 → 2.16.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -35,7 +35,7 @@ interface DeleteButtonComponentProps {
35
35
  */
36
36
  interface TextInputComponentProps {
37
37
  id: string;
38
- width: number;
38
+ width: number | string;
39
39
  value: string;
40
40
  label?: string;
41
41
  placeholder?: string;
@@ -2315,15 +2315,8 @@ interface ChartEditorProps {
2315
2315
  onChange: (event: React$1.ChangeEvent<HTMLSelectElement>) => void;
2316
2316
  width: number;
2317
2317
  }) => JSX.Element;
2318
- /** An input component to get text from your users. */
2319
- TextInputComponent?: (props: {
2320
- id: string;
2321
- width: number;
2322
- value: string;
2323
- label?: string;
2324
- placeholder?: string;
2325
- onChange: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
2326
- }) => JSX.Element;
2318
+ /** An input component to get text from your users. Wrap your component in a forwardRef to receive focus events from Quill */
2319
+ TextInputComponent?: ((props: TextInputComponentProps) => JSX.Element) | React$1.ForwardRefExoticComponent<TextInputComponentProps & React$1.RefAttributes<HTMLInputElement>>;
2327
2320
  /** A button component. */
2328
2321
  ButtonComponent?: (props: {
2329
2322
  onClick: () => void;
package/dist/index.d.ts CHANGED
@@ -35,7 +35,7 @@ interface DeleteButtonComponentProps {
35
35
  */
36
36
  interface TextInputComponentProps {
37
37
  id: string;
38
- width: number;
38
+ width: number | string;
39
39
  value: string;
40
40
  label?: string;
41
41
  placeholder?: string;
@@ -2315,15 +2315,8 @@ interface ChartEditorProps {
2315
2315
  onChange: (event: React$1.ChangeEvent<HTMLSelectElement>) => void;
2316
2316
  width: number;
2317
2317
  }) => JSX.Element;
2318
- /** An input component to get text from your users. */
2319
- TextInputComponent?: (props: {
2320
- id: string;
2321
- width: number;
2322
- value: string;
2323
- label?: string;
2324
- placeholder?: string;
2325
- onChange: (event: React$1.ChangeEvent<HTMLInputElement>) => void;
2326
- }) => JSX.Element;
2318
+ /** An input component to get text from your users. Wrap your component in a forwardRef to receive focus events from Quill */
2319
+ TextInputComponent?: ((props: TextInputComponentProps) => JSX.Element) | React$1.ForwardRefExoticComponent<TextInputComponentProps & React$1.RefAttributes<HTMLInputElement>>;
2327
2320
  /** A button component. */
2328
2321
  ButtonComponent?: (props: {
2329
2322
  onClick: () => void;