@micromerce/formbuilder-react 1.0.775 → 1.0.777

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/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  ## Local development in services
2
2
 
3
- Change the _output > path_ of the webpack.common.js to the local lib directory you want to build the lib to.
3
+ Change the _output > path_ of the formbuilder-react webpack.common.js to the local lib
4
+ directory of the other service you want to build the lib to (e.g. service-entity).
4
5
 
5
6
  For example from:
6
7
  ```
@@ -11,14 +12,22 @@ to:
11
12
  path: path.resolve(__dirname, "../../service-entity/webclient/src/js/lib"),
12
13
  ```
13
14
 
14
- Then import the local file like in the other service:
15
+ <br>
16
+
17
+ Then import the locally generated lib in the specific component of the other service (in this example service-entity):
15
18
  ```
16
- import Form from "../../lib/formbuilder"
19
+ import Form from '../../lib/formbuilder'
17
20
  ```
18
21
  instead of
22
+ ```
23
+ import Form from '@micromerce/formbuilder-react'
24
+ ```
19
25
  ```
20
26
  import Form from "@micromerce/formbuilder-react"
21
27
  ```
28
+ <br>
29
+ Then run `npm rum watch` to start the formbuilder-react (and changes are automatically applied).<br>
30
+ The other service should now have access to the local lib.<br>
31
+ Warning `...is not a module.` will be displayed, but can be ignored.
32
+
22
33
 
23
- Then run `npm rum watch` to start the formbuilder.
24
- The other service should now have access to the local lib.
@@ -4,7 +4,7 @@ import "./global-ai-wrapper.css";
4
4
  import useAi from "./useAi";
5
5
  interface AiLayoutProps extends ReturnType<typeof useAi>, Omit<AiWrapperProps, keyof useAiProps> {
6
6
  modalOpen: boolean;
7
- onModalToggle: () => void;
7
+ handleModalToggle: () => void;
8
8
  }
9
- declare const AiLayout: ({ AiResponseControl, aiActions, inputControl, objectPathId, aiResponse, isError, isLoading, loadingActionIndex, modalOpen, onModalToggle, handleAccept, handleAiActionClick, handleDiscard, handleBack, handleRetry, }: AiLayoutProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const AiLayout: ({ AiResponseControl, aiActions, inputControl, objectPathId, aiResponse, isError, isLoading, loadingActionIndex, modalOpen, handleModalToggle, handleAccept, handleAiActionClick, handleDiscard, handleBack, handleRetry, }: AiLayoutProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default AiLayout;
@@ -6,6 +6,8 @@ export interface AiWrapperProps {
6
6
  AiResponseControl: React.FC<any>;
7
7
  objectPathId: string | null;
8
8
  onAcceptAiResponse: (newProperties: OnChangeValueType) => void;
9
+ modalOpen: boolean;
10
+ handleModalToggle: () => void;
9
11
  }
10
12
  declare const AiWrapper: ({ ...props }: AiWrapperProps) => import("react/jsx-runtime").JSX.Element;
11
13
  export default AiWrapper;
@@ -10,6 +10,7 @@ export interface IProps extends DetailedHTMLProps<TextareaHTMLAttributes<HTMLTex
10
10
  errorClass?: string;
11
11
  placeholder?: string;
12
12
  isStyleFull?: boolean;
13
+ isModalFullViewOpen?: boolean;
13
14
  }
14
- declare const DefaultEditor: ({ value, onChange, id, readOnly, control, errorClass, textColor, placeholder, isStyleFull, }: IProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare const DefaultEditor: ({ value, onChange, id, readOnly, control, errorClass, textColor, placeholder, isStyleFull, isModalFullViewOpen, }: IProps) => import("react/jsx-runtime").JSX.Element;
15
16
  export default DefaultEditor;
@@ -8,6 +8,7 @@ interface IHtmlEditorProps {
8
8
  placeholder?: string;
9
9
  onChangeValue?: (newProperties: OnChangeValueType) => void;
10
10
  isStyleFull?: boolean;
11
+ isModalFullViewOpen?: boolean;
11
12
  }
12
13
  declare const HtmlEditor: React.FC<IHtmlEditorProps>;
13
14
  export default HtmlEditor;
@@ -8,6 +8,7 @@ interface ICodeEditorProps {
8
8
  placeholder?: string;
9
9
  onChangeValue?: (newProperties: OnChangeValueType) => void;
10
10
  isStyleFull?: boolean;
11
+ isModalFullViewOpen?: boolean;
11
12
  }
12
13
  declare const CodeEditor: React.FC<ICodeEditorProps>;
13
14
  export default CodeEditor;
@@ -8,6 +8,7 @@ interface IMarkdownEditorProps {
8
8
  placeholder?: string;
9
9
  onChangeValue?: (newProperties: OnChangeValueType) => void;
10
10
  isStyleFull?: boolean;
11
+ isModalFullViewOpen?: boolean;
11
12
  }
12
13
  declare const MarkdownEditor: React.FC<IMarkdownEditorProps>;
13
14
  export default MarkdownEditor;
@@ -10,6 +10,7 @@ interface IRichTextEditorProps {
10
10
  placeholder?: string;
11
11
  onChangeValue?: (newProperties: OnChangeValueType) => void;
12
12
  isStyleFull?: boolean;
13
+ isModalFullViewOpen?: boolean;
13
14
  }
14
15
  declare const RichTextEditor: React.FC<IRichTextEditorProps>;
15
16
  export default RichTextEditor;