@micromerce/formbuilder-react 1.0.801 → 1.0.803

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.
Files changed (73) hide show
  1. package/README.md +0 -2
  2. package/dist/__mocks__/platejs.d.ts +142 -0
  3. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +3 -1
  4. package/dist/components/FormBuilder/FormBuilder.d.ts +1 -0
  5. package/dist/components/FormBuilder/utils/jsonToUrlEncoded/jsonToUrlEncoded.d.ts +1 -1
  6. package/dist/components/QueryControl/ui-helper/Wrapper/QueryControlWrapper.d.ts +3 -1
  7. package/dist/components/QueryControl/utils/getMatchingControls.d.ts +1 -1
  8. package/dist/components/{Checkbox → controls/Checkbox}/Checkbox.d.ts +1 -1
  9. package/dist/components/{DateRangeGroup → controls/DateRangeGroup}/DateRangeGroup.d.ts +2 -2
  10. package/dist/components/{DateRangeGroup → controls/DateRangeGroup}/components/CalendarModal.d.ts +0 -2
  11. package/dist/components/{FileUploader → controls/FileUploader}/FileUploader.d.ts +1 -1
  12. package/dist/components/{Input → controls/Input}/Input.d.ts +2 -2
  13. package/dist/components/{InputFreeSolo → controls/InputFreeSolo}/InputFreeSolo.d.ts +1 -1
  14. package/dist/components/{MrnInput → controls/MrnInput}/MrnInput.d.ts +2 -2
  15. package/dist/components/{MrnInput → controls/MrnInput}/hooks/useMrn.d.ts +2 -2
  16. package/dist/components/{MrnInput → controls/MrnInput}/services/fetchMrn.d.ts +1 -1
  17. package/dist/components/{MultiSelect → controls/MultiSelect}/MultiSelect.d.ts +2 -2
  18. package/dist/components/{MultiSelect → controls/MultiSelect}/utils/extractSelectedOptionValues/extractSelectedOptionValues.d.ts +2 -2
  19. package/dist/components/{PasswordInput → controls/PasswordInput}/PasswordInput.d.ts +2 -2
  20. package/dist/components/{Select → controls/Select}/Select.d.ts +2 -2
  21. package/dist/components/{Select → controls/Select}/utils/getSelectedOption.d.ts +1 -1
  22. package/dist/components/{Textarea → controls/Textarea}/Textarea.d.ts +1 -1
  23. package/dist/components/{Textarea → controls/Textarea}/aiWrapper/aiAction.d.ts +1 -2
  24. package/dist/components/{Textarea → controls/Textarea}/aiWrapper/aiLayout.d.ts +1 -2
  25. package/dist/components/{Textarea → controls/Textarea}/aiWrapper/index.d.ts +2 -1
  26. package/dist/components/{Textarea → controls/Textarea}/aiWrapper/useAi.d.ts +3 -1
  27. package/dist/components/{Textarea/editors → controls/Textarea/editors/Default}/Default.d.ts +3 -3
  28. package/dist/components/controls/Textarea/editors/Default/index.d.ts +1 -0
  29. package/dist/components/{Textarea/editors → controls/Textarea/editors/Html}/Html.d.ts +2 -2
  30. package/dist/components/controls/Textarea/editors/Html/index.d.ts +1 -0
  31. package/dist/components/{Textarea/editors → controls/Textarea/editors/Json}/Json.d.ts +2 -2
  32. package/dist/components/controls/Textarea/editors/Json/index.d.ts +1 -0
  33. package/dist/components/{Textarea/editors → controls/Textarea/editors/Markdown}/Markdown.d.ts +2 -2
  34. package/dist/components/controls/Textarea/editors/Markdown/index.d.ts +1 -0
  35. package/dist/components/controls/Textarea/editors/Plate/PlateEditor.d.ts +17 -0
  36. package/dist/components/controls/Textarea/editors/Plate/index.d.ts +1 -0
  37. package/dist/components/controls/Textarea/editors/Plate/serializeHtml.d.ts +1 -0
  38. package/dist/components/{Textarea/editors → controls/Textarea/editors/Richtext}/Richtext.d.ts +2 -4
  39. package/dist/components/controls/Textarea/editors/Richtext/index.d.ts +1 -0
  40. package/dist/components/{addressGroup → groups/AddressGroup}/AddressGroup.d.ts +2 -2
  41. package/dist/components/{addressGroup → groups/AddressGroup}/utils/Countries.d.ts +1 -1
  42. package/dist/components/{Group → groups/Group}/Group.d.ts +2 -2
  43. package/dist/context/FormData.d.ts +1 -0
  44. package/dist/formbuilder.js +58 -58
  45. package/dist/formbuilder.js.LICENSE.txt +54 -0
  46. package/dist/formbuilder.js.map +1 -1
  47. package/dist/index.d.ts +8 -8
  48. package/dist/testutils.d.ts +2 -1
  49. package/dist/types/index.d.ts +4 -0
  50. package/package.json +30 -58
  51. package/dist/components/GeneralFormGroup/GeneralFormGroup.d.ts +0 -5
  52. package/dist/components/GeneralFormGroup/index.d.ts +0 -1
  53. /package/dist/components/{Checkbox → controls/Checkbox}/index.d.ts +0 -0
  54. /package/dist/components/{DateRangeGroup → controls/DateRangeGroup}/DateRangeGroup.styles.d.ts +0 -0
  55. /package/dist/components/{DateRangeGroup → controls/DateRangeGroup}/index.d.ts +0 -0
  56. /package/dist/components/{FileUploader → controls/FileUploader}/index.d.ts +0 -0
  57. /package/dist/components/{Input → controls/Input}/index.d.ts +0 -0
  58. /package/dist/components/{Input → controls/Input}/input.styles.d.ts +0 -0
  59. /package/dist/components/{InputFreeSolo → controls/InputFreeSolo}/index.d.ts +0 -0
  60. /package/dist/components/{MrnInput → controls/MrnInput}/index.d.ts +0 -0
  61. /package/dist/components/{MrnInput → controls/MrnInput}/ui-helper/Link/Link.d.ts +0 -0
  62. /package/dist/components/{MrnInput → controls/MrnInput}/utils/mrnUtils/mrnUtils.d.ts +0 -0
  63. /package/dist/components/{MrnInput → controls/MrnInput}/utils/resolveMrnLinks/resolveMrnLink.d.ts +0 -0
  64. /package/dist/components/{MrnInput → controls/MrnInput}/utils/resolveNestedQueryLink/resolveNestedQueryLink.d.ts +0 -0
  65. /package/dist/components/{MrnInput → controls/MrnInput}/utils/urlSearchParam/urlSearchParam.d.ts +0 -0
  66. /package/dist/components/{MultiSelect → controls/MultiSelect}/index.d.ts +0 -0
  67. /package/dist/components/{MultiSelect → controls/MultiSelect}/utils/extractSelectedOptionValues/index.d.ts +0 -0
  68. /package/dist/components/{PasswordInput → controls/PasswordInput}/index.d.ts +0 -0
  69. /package/dist/components/{Select → controls/Select}/index.d.ts +0 -0
  70. /package/dist/components/{Textarea → controls/Textarea}/Textarea.types.d.ts +0 -0
  71. /package/dist/components/{Textarea → controls/Textarea}/index.d.ts +0 -0
  72. /package/dist/components/{addressGroup → groups/AddressGroup}/index.d.ts +0 -0
  73. /package/dist/components/{Group → groups/Group}/index.d.ts +0 -0
package/README.md CHANGED
@@ -29,5 +29,3 @@ instead of
29
29
  Then run `npm rum watch` to start the formbuilder-react (and changes are automatically applied).<br>
30
30
  The other service should now have access to the local lib.<br>
31
31
  Warning `...is not a module.` will be displayed, but can be ignored.
32
-
33
-
@@ -0,0 +1,142 @@
1
+ import React from "react";
2
+ export declare const Plate: ({ children }: any) => React.ReactElement<{
3
+ "data-testid": string;
4
+ }, string | React.JSXElementConstructor<any>>;
5
+ export declare const PlateContent: (props: any) => React.DetailedReactHTMLElement<any, HTMLElement>;
6
+ export declare const PlateElement: ({ children, as: Tag, ...props }: any) => React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
7
+ export declare const PlateLeaf: ({ children, as: Tag, ...props }: any) => React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
8
+ export declare const usePlateEditor: (options: any) => {
9
+ children: any;
10
+ api: {
11
+ some: () => boolean;
12
+ html: {
13
+ deserialize: () => any[];
14
+ };
15
+ create: {
16
+ value: () => {
17
+ type: string;
18
+ children: {
19
+ text: string;
20
+ }[];
21
+ }[];
22
+ };
23
+ start: () => any;
24
+ end: () => any;
25
+ };
26
+ tf: {
27
+ toggleBlock: () => void;
28
+ setNodes: () => void;
29
+ setValue: () => void;
30
+ replaceNodes: () => void;
31
+ insert: {
32
+ table: () => void;
33
+ tableRow: () => void;
34
+ tableColumn: () => void;
35
+ };
36
+ remove: {
37
+ table: () => void;
38
+ tableRow: () => void;
39
+ tableColumn: () => void;
40
+ };
41
+ };
42
+ undo: () => void;
43
+ redo: () => void;
44
+ };
45
+ export declare const useMarkToolbarButton: () => {
46
+ props: {
47
+ pressed: boolean;
48
+ onClick: () => void;
49
+ };
50
+ };
51
+ export declare const useMarkToolbarButtonState: () => {};
52
+ export declare const BoldPlugin: {
53
+ withComponent: () => any;
54
+ configure: () => any;
55
+ };
56
+ export declare const ItalicPlugin: {
57
+ withComponent: () => any;
58
+ configure: () => any;
59
+ };
60
+ export declare const UnderlinePlugin: {
61
+ withComponent: () => any;
62
+ configure: () => any;
63
+ };
64
+ export declare const StrikethroughPlugin: {
65
+ withComponent: () => any;
66
+ configure: () => any;
67
+ };
68
+ export declare const CodePlugin: {
69
+ withComponent: () => any;
70
+ configure: () => any;
71
+ };
72
+ export declare const HighlightPlugin: {
73
+ withComponent: () => any;
74
+ configure: () => any;
75
+ };
76
+ export declare const SubscriptPlugin: {
77
+ withComponent: () => any;
78
+ configure: () => any;
79
+ };
80
+ export declare const SuperscriptPlugin: {
81
+ withComponent: () => any;
82
+ configure: () => any;
83
+ };
84
+ export declare const BlockquotePlugin: {
85
+ withComponent: () => any;
86
+ configure: () => any;
87
+ };
88
+ export declare const H1Plugin: {
89
+ withComponent: () => any;
90
+ configure: () => any;
91
+ };
92
+ export declare const H2Plugin: {
93
+ withComponent: () => any;
94
+ configure: () => any;
95
+ };
96
+ export declare const H3Plugin: {
97
+ withComponent: () => any;
98
+ configure: () => any;
99
+ };
100
+ export declare const HorizontalRulePlugin: {
101
+ withComponent: () => any;
102
+ configure: () => any;
103
+ };
104
+ export declare const LinkPlugin: {
105
+ withComponent: () => any;
106
+ configure: () => any;
107
+ };
108
+ export declare const IndentPlugin: {
109
+ withComponent: () => any;
110
+ configure: () => any;
111
+ };
112
+ export declare const ListPlugin: {
113
+ withComponent: () => any;
114
+ configure: () => any;
115
+ };
116
+ export declare const useListToolbarButton: () => {
117
+ props: {
118
+ pressed: boolean;
119
+ onClick: () => void;
120
+ };
121
+ };
122
+ export declare const useListToolbarButtonState: () => {};
123
+ export declare const ListStyleType: {
124
+ Disc: string;
125
+ Decimal: string;
126
+ };
127
+ export declare const TablePlugin: {
128
+ withComponent: () => any;
129
+ configure: () => any;
130
+ };
131
+ export declare const TableRowPlugin: {
132
+ withComponent: () => any;
133
+ configure: () => any;
134
+ };
135
+ export declare const TableCellPlugin: {
136
+ withComponent: () => any;
137
+ configure: () => any;
138
+ };
139
+ export declare const TableCellHeaderPlugin: {
140
+ withComponent: () => any;
141
+ configure: () => any;
142
+ };
@@ -1,13 +1,15 @@
1
1
  import React, { Component, ErrorInfo, ReactNode } from "react";
2
2
  interface Props {
3
3
  children: ReactNode;
4
+ displayName?: string;
4
5
  }
5
6
  interface State {
6
7
  hasError: boolean;
8
+ errorMessage: string;
7
9
  }
8
10
  declare class ErrorBoundary extends Component<Props, State> {
9
11
  state: State;
10
- static getDerivedStateFromError(_: Error): State;
12
+ static getDerivedStateFromError(error: Error): State;
11
13
  componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
12
14
  render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element;
13
15
  }
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import type { PostMessageProps, PostMessageResponse } from "../../types";
3
3
  import { FileUploaderConfig, FormBuilderConfig, resolveUrl } from "../../types";
4
4
  import type { controlProps } from "../../types/controlProps";
5
+ import "../../styles/theme.module.scss";
5
6
  export type FormState = "processing" | "success" | "error";
6
7
  export interface IProps {
7
8
  config: FormBuilderConfig;
@@ -1,5 +1,5 @@
1
1
  export interface IUrlObj {
2
2
  [key: string]: string | string[] | IUrlObj | IUrlObj[];
3
3
  }
4
- declare const jsonToUrlEncoded: (obj: IUrlObj) => string;
4
+ declare const jsonToUrlEncoded: (obj: IUrlObj) => any;
5
5
  export default jsonToUrlEncoded;
@@ -3,6 +3,8 @@ interface IProps {
3
3
  isExpert?: boolean;
4
4
  isHidden: boolean;
5
5
  children: React.ReactNode;
6
+ displayName?: string;
7
+ hideLabel?: boolean;
6
8
  }
7
- declare const ControlLayoutWrapper: ({ isExpert, isHidden, children }: IProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const ControlLayoutWrapper: ({ isExpert, isHidden, children, displayName, hideLabel }: IProps) => import("react/jsx-runtime").JSX.Element;
8
10
  export default ControlLayoutWrapper;
@@ -3,7 +3,7 @@ declare const getHighestMatchingControl: (formControl: any, customControls: any,
3
3
  control: any;
4
4
  error?: undefined;
5
5
  } | {
6
- control: ({ onChangeValue, hasClearButton, onClearCallback, controlProps, ...props }: import("../../Input/Input").IProps) => import("react/jsx-runtime").JSX.Element;
6
+ control: ({ onChangeValue, hasClearButton, onClearCallback, controlProps, ...props }: import("../../controls/Input/Input").IProps) => import("react/jsx-runtime").JSX.Element;
7
7
  error: string;
8
8
  };
9
9
  export default getHighestMatchingControl;
@@ -1,5 +1,5 @@
1
1
  import { DetailedHTMLProps, InputHTMLAttributes } from "react";
2
- import { CheckboxFormControl, OnChangeValueType } from "../../types";
2
+ import { CheckboxFormControl, OnChangeValueType } from "../../../types";
3
3
  export interface IProps extends DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
4
4
  control: CheckboxFormControl;
5
5
  id: string;
@@ -1,5 +1,5 @@
1
- import type { controlProps } from "../../types/controlProps";
2
- import { GroupFormControl } from "../../types/index";
1
+ import type { controlProps } from "../../../types/controlProps";
2
+ import { GroupFormControl } from "../../../types/index";
3
3
  export interface IProps {
4
4
  id: string;
5
5
  control: GroupFormControl;
@@ -1,5 +1,3 @@
1
- import "react-date-range/dist/styles.css";
2
- import "react-date-range/dist/theme/default.css";
3
1
  export interface CalendarModalInterface {
4
2
  startDate?: Date;
5
3
  endDate?: Date;
@@ -1,4 +1,4 @@
1
- import { InputFormControl, OnChangeValueType } from "../../types";
1
+ import { InputFormControl, OnChangeValueType } from "../../../types";
2
2
  export interface IProps {
3
3
  control: InputFormControl;
4
4
  id: string;
@@ -1,6 +1,6 @@
1
1
  import { DetailedHTMLProps, InputHTMLAttributes } from "react";
2
- import { InputFormControl, OnChangeValueType } from "../../types";
3
- import type { controlProps } from "../../types/controlProps";
2
+ import { InputFormControl, OnChangeValueType } from "../../../types";
3
+ import type { controlProps } from "../../../types/controlProps";
4
4
  export interface IProps extends DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
5
5
  id: string;
6
6
  control: InputFormControl;
@@ -1,5 +1,5 @@
1
1
  import { DetailedHTMLProps, InputHTMLAttributes } from "react";
2
- import { InputFormControl, OnChangeValueType } from "../../types";
2
+ import { InputFormControl, OnChangeValueType } from "../../../types";
3
3
  export interface IProps extends DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
4
4
  id: string;
5
5
  control: InputFormControl;
@@ -1,5 +1,5 @@
1
- import { InputFormControl, OnChangeValueType } from "../../types";
2
- import type { controlProps } from "../../types/controlProps";
1
+ import { InputFormControl, OnChangeValueType } from "../../../types";
2
+ import type { controlProps } from "../../../types/controlProps";
3
3
  export interface IProps {
4
4
  id: string;
5
5
  control: InputFormControl;
@@ -1,4 +1,4 @@
1
- import { CustomAttributes, OnChangeValueType } from "../../../types";
1
+ import { CustomAttributes, OnChangeValueType } from "../../../../types";
2
2
  interface IUseMrnProps {
3
3
  value: string;
4
4
  customAttributes: CustomAttributes;
@@ -14,7 +14,7 @@ declare const useMrn: ({ value, customAttributes, objectPathId, onChangeValue, }
14
14
  setSelectedOption: import("react").Dispatch<any>;
15
15
  setSearchText: import("react").Dispatch<import("react").SetStateAction<string>>;
16
16
  setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
17
- currentMrnOption: CustomAttributes | import("../../../types").MrnInputMultipleServices;
17
+ currentMrnOption: CustomAttributes | import("../../../../types").MrnInputMultipleServices;
18
18
  onChangeCurrentMrnOption: (newSource: any) => void;
19
19
  dependentControls: string[];
20
20
  };
@@ -1,3 +1,3 @@
1
- import { CustomAttributes, resolveUrl } from "../../../types";
1
+ import { CustomAttributes, resolveUrl } from "../../../../types";
2
2
  declare const fetchMrn: (mrnRef: string, attributes?: CustomAttributes, params?: string, resolveUrl?: resolveUrl) => Promise<any>;
3
3
  export default fetchMrn;
@@ -1,6 +1,6 @@
1
1
  import { DetailedHTMLProps, SelectHTMLAttributes } from "react";
2
- import { MultiSelectFormControl, OnChangeValueType } from "../../types";
3
- import type { controlProps } from "../../types/controlProps";
2
+ import { MultiSelectFormControl, OnChangeValueType } from "../../../types";
3
+ import type { controlProps } from "../../../types/controlProps";
4
4
  export interface MultiSelectOption {
5
5
  value: string;
6
6
  label: string;
@@ -1,5 +1,5 @@
1
1
  import { MultiSelectOption } from "../../MultiSelect";
2
- import { SelectFormControlOption } from "../../../../types";
2
+ import { SelectFormControlOption } from "../../../../../types";
3
3
  declare const extractSelectedOptionValues: (options: SelectFormControlOption[], selectedOptions: MultiSelectOption[]) => {
4
4
  optionValues: string | string[];
5
5
  updatedOptions: {
@@ -18,7 +18,7 @@ declare const extractSelectedOptionValues: (options: SelectFormControlOption[],
18
18
  required?: boolean;
19
19
  placeholder?: string;
20
20
  hasEdited?: "edited" | "not-edited" | undefined;
21
- "custom-attributes"?: import("../../../../types").CustomAttributes;
21
+ "custom-attributes"?: import("../../../../../types").CustomAttributes;
22
22
  }[];
23
23
  };
24
24
  export default extractSelectedOptionValues;
@@ -1,6 +1,6 @@
1
1
  import { DetailedHTMLProps, InputHTMLAttributes } from "react";
2
- import type { controlProps } from "../../types/controlProps";
3
- import { InputFormControl, OnChangeValueType } from "../../types";
2
+ import type { controlProps } from "../../../types/controlProps";
3
+ import { InputFormControl, OnChangeValueType } from "../../../types";
4
4
  export interface IProps extends DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
5
5
  id: string;
6
6
  control: InputFormControl;
@@ -1,6 +1,6 @@
1
1
  import { DetailedHTMLProps, SelectHTMLAttributes } from "react";
2
- import { OnChangeValueType, SelectFormControl } from "../../types";
3
- import type { controlProps } from "../../types/controlProps";
2
+ import { OnChangeValueType, SelectFormControl } from "../../../types";
3
+ import type { controlProps } from "../../../types/controlProps";
4
4
  export interface IProps extends DetailedHTMLProps<SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement> {
5
5
  id: string;
6
6
  control: SelectFormControl;
@@ -1,3 +1,3 @@
1
- import { SelectFormControlOption } from "../../../types";
1
+ import { SelectFormControlOption } from "../../../../types";
2
2
  declare const getSelectedOption: (options: SelectFormControlOption[], value: string) => SelectFormControlOption;
3
3
  export default getSelectedOption;
@@ -1,5 +1,5 @@
1
1
  import { DetailedHTMLProps, TextareaHTMLAttributes } from "react";
2
- import { OnChangeValueType, TextareaFormControl } from "../../types";
2
+ import { OnChangeValueType, TextareaFormControl } from "../../../types";
3
3
  export interface IProps extends DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> {
4
4
  control: TextareaFormControl;
5
5
  id: string;
@@ -1,5 +1,4 @@
1
- import type { GenAiPrompt } from "../../../types";
2
- import "./global-ai-wrapper.css";
1
+ import type { GenAiPrompt } from "../../../../types";
3
2
  interface AiActionProps {
4
3
  action: GenAiPrompt;
5
4
  objectPathId: string | null;
@@ -1,10 +1,9 @@
1
1
  import type { AiWrapperProps } from ".";
2
2
  import type { useAiProps } from "./useAi";
3
- import "./global-ai-wrapper.css";
4
3
  import useAi from "./useAi";
5
4
  interface AiLayoutProps extends ReturnType<typeof useAi>, Omit<AiWrapperProps, keyof useAiProps> {
6
5
  modalOpen: boolean;
7
6
  handleModalToggle: () => void;
8
7
  }
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;
8
+ declare const AiLayout: ({ AiResponseControl, aiActions, inputControl, objectPathId, aiResponse, editedResponseValue, isError, isLoading, loadingActionIndex, modalOpen, handleModalToggle, handleAccept, handleAiActionClick, handleAiResponseChange, handleDiscard, handleBack, handleRetry, fill, }: AiLayoutProps) => import("react/jsx-runtime").JSX.Element;
10
9
  export default AiLayout;
@@ -1,4 +1,4 @@
1
- import type { GenAiPrompts, OnChangeValueType } from "../../../types";
1
+ import type { FillMode, GenAiPrompts, OnChangeValueType } from "../../../../types";
2
2
  import React from "react";
3
3
  export interface AiWrapperProps {
4
4
  aiActions: GenAiPrompts;
@@ -8,6 +8,7 @@ export interface AiWrapperProps {
8
8
  onAcceptAiResponse: (newProperties: OnChangeValueType) => void;
9
9
  modalOpen: boolean;
10
10
  handleModalToggle: () => void;
11
+ fill?: FillMode;
11
12
  }
12
13
  declare const AiWrapper: ({ ...props }: AiWrapperProps) => import("react/jsx-runtime").JSX.Element;
13
14
  export default AiWrapper;
@@ -1,9 +1,10 @@
1
- import type { OnChangeValueType, PostMessageResponse } from "../../../types";
1
+ import type { OnChangeValueType, PostMessageResponse } from "../../../../types";
2
2
  export interface useAiProps {
3
3
  onAcceptAiResponse: (newProperties: OnChangeValueType) => void;
4
4
  }
5
5
  declare const useAi: ({ onAcceptAiResponse }: useAiProps) => {
6
6
  aiResponse: PostMessageResponse;
7
+ editedResponseValue: string;
7
8
  isLoading: boolean;
8
9
  isError: {
9
10
  state: boolean;
@@ -13,6 +14,7 @@ declare const useAi: ({ onAcceptAiResponse }: useAiProps) => {
13
14
  };
14
15
  loadingActionIndex: number;
15
16
  handleAiActionClick: (prompt: string, profile: string, index: number) => Promise<void>;
17
+ handleAiResponseChange: (newProperties: OnChangeValueType) => void;
16
18
  handleAccept: () => void;
17
19
  handleDiscard: () => void;
18
20
  handleBack: () => void;
@@ -1,5 +1,5 @@
1
1
  import { DetailedHTMLProps, TextareaHTMLAttributes } from "react";
2
- import { OnChangeValueType, TextareaFormControl } from "../../../types";
2
+ import { FillMode, OnChangeValueType, TextareaFormControl } from "../../../../../types";
3
3
  export interface IProps extends DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> {
4
4
  control?: TextareaFormControl;
5
5
  value?: string;
@@ -9,8 +9,8 @@ export interface IProps extends DetailedHTMLProps<TextareaHTMLAttributes<HTMLTex
9
9
  textColor?: string;
10
10
  errorClass?: string;
11
11
  placeholder?: string;
12
- isStyleFull?: boolean;
12
+ fill?: FillMode;
13
13
  isModalFullViewOpen?: boolean;
14
14
  }
15
- declare const DefaultEditor: ({ value, onChange, id, readOnly, control, errorClass, textColor, placeholder, isStyleFull, isModalFullViewOpen, }: IProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare const DefaultEditor: ({ value, onChange, id, readOnly, control, errorClass, textColor, placeholder, fill, isModalFullViewOpen, }: IProps) => import("react/jsx-runtime").JSX.Element;
16
16
  export default DefaultEditor;
@@ -0,0 +1 @@
1
+ export { default } from "./Default";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { OnChangeValueType } from "../../../types";
2
+ import { FillMode, OnChangeValueType } from "../../../../../types";
3
3
  interface IHtmlEditorProps {
4
4
  value: string;
5
5
  onChange: (newProperties: OnChangeValueType) => void;
@@ -7,7 +7,7 @@ interface IHtmlEditorProps {
7
7
  readOnly: boolean;
8
8
  placeholder?: string;
9
9
  onChangeValue?: (newProperties: OnChangeValueType) => void;
10
- isStyleFull?: boolean;
10
+ fill?: FillMode;
11
11
  isModalFullViewOpen?: boolean;
12
12
  }
13
13
  declare const HtmlEditor: React.FC<IHtmlEditorProps>;
@@ -0,0 +1 @@
1
+ export { default } from "./Html";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { OnChangeValueType } from "../../../types";
2
+ import { FillMode, OnChangeValueType } from "../../../../../types";
3
3
  interface ICodeEditorProps {
4
4
  value: string;
5
5
  onChange: (newProperties: OnChangeValueType) => void;
@@ -7,7 +7,7 @@ interface ICodeEditorProps {
7
7
  readOnly: boolean;
8
8
  placeholder?: string;
9
9
  onChangeValue?: (newProperties: OnChangeValueType) => void;
10
- isStyleFull?: boolean;
10
+ fill?: FillMode;
11
11
  isModalFullViewOpen?: boolean;
12
12
  }
13
13
  declare const CodeEditor: React.FC<ICodeEditorProps>;
@@ -0,0 +1 @@
1
+ export { default } from "./Json";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { OnChangeValueType } from "../../../types";
2
+ import { FillMode, OnChangeValueType } from "../../../../../types";
3
3
  interface IMarkdownEditorProps {
4
4
  value: string;
5
5
  onChange: (newProperties: OnChangeValueType) => void;
@@ -7,7 +7,7 @@ interface IMarkdownEditorProps {
7
7
  readOnly: boolean;
8
8
  placeholder?: string;
9
9
  onChangeValue?: (newProperties: OnChangeValueType) => void;
10
- isStyleFull?: boolean;
10
+ fill?: FillMode;
11
11
  isModalFullViewOpen?: boolean;
12
12
  }
13
13
  declare const MarkdownEditor: React.FC<IMarkdownEditorProps>;
@@ -0,0 +1 @@
1
+ export { default } from "./Markdown";
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { FillMode, OnChangeValueType } from "../../../../../types";
3
+ interface IPlateEditorProps {
4
+ value: string;
5
+ onChange: (newProperties: OnChangeValueType) => void;
6
+ onChangeValue?: (newProperties: OnChangeValueType) => void;
7
+ id: string;
8
+ readOnly?: boolean;
9
+ placeholder?: string;
10
+ fill?: FillMode;
11
+ isModalFullViewOpen?: boolean;
12
+ control?: any;
13
+ errorClass?: string;
14
+ textColor?: string;
15
+ }
16
+ declare const PlateEditor: React.FC<IPlateEditorProps>;
17
+ export default PlateEditor;
@@ -0,0 +1 @@
1
+ export { default } from "./PlateEditor";
@@ -0,0 +1 @@
1
+ export declare const serializeToHtml: (nodes: any[]) => string;
@@ -1,7 +1,5 @@
1
1
  import React from "react";
2
- import "react-quill/dist/quill.snow.css";
3
- import { OnChangeValueType } from "../../../types";
4
- import "./Richtext.css";
2
+ import { FillMode, OnChangeValueType } from "../../../../../types";
5
3
  interface IRichTextEditorProps {
6
4
  value: string;
7
5
  onChange: (newProperties: OnChangeValueType) => void;
@@ -9,7 +7,7 @@ interface IRichTextEditorProps {
9
7
  readOnly: boolean;
10
8
  placeholder?: string;
11
9
  onChangeValue?: (newProperties: OnChangeValueType) => void;
12
- isStyleFull?: boolean;
10
+ fill?: FillMode;
13
11
  isModalFullViewOpen?: boolean;
14
12
  }
15
13
  declare const RichTextEditor: React.FC<IRichTextEditorProps>;
@@ -0,0 +1 @@
1
+ export { default } from "./Richtext";
@@ -1,5 +1,5 @@
1
- import type { controlProps } from "../../types/controlProps";
2
- import { GroupFormControl } from "@/src/types";
1
+ import type { controlProps } from "../../../types/controlProps";
2
+ import { GroupFormControl } from "../../../types";
3
3
  export interface IProps {
4
4
  id: string;
5
5
  control: GroupFormControl;
@@ -1,3 +1,3 @@
1
- import { SelectFormControlOption } from "../../../types";
1
+ import { SelectFormControlOption } from "../../../../types";
2
2
  declare const Countries: SelectFormControlOption[];
3
3
  export default Countries;
@@ -1,5 +1,5 @@
1
- import type { controlProps } from "../../types/controlProps";
2
- import { GroupFormControl } from "../../types/index";
1
+ import type { controlProps } from "../../../types/controlProps";
2
+ import { GroupFormControl } from "../../../types/index";
3
3
  export interface IProps {
4
4
  id: string;
5
5
  control: GroupFormControl;
@@ -14,6 +14,7 @@ interface ContextProps {
14
14
  addFileUploaderConfig: (endpoints: FileUploaderConfig) => void;
15
15
  moveListItemUp: (listName: string, index: number) => void;
16
16
  moveListItemDown: (listName: string, index: number) => void;
17
+ moveListItem: (listName: string, fromIndex: number, toIndex: number) => void;
17
18
  removeListItem: (listName: string, index: number) => void;
18
19
  getControlByObjectPath: (path: string) => FormControl;
19
20
  toggleRerendered: boolean;