@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.
- package/README.md +0 -2
- package/dist/__mocks__/platejs.d.ts +142 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +3 -1
- package/dist/components/FormBuilder/FormBuilder.d.ts +1 -0
- package/dist/components/FormBuilder/utils/jsonToUrlEncoded/jsonToUrlEncoded.d.ts +1 -1
- package/dist/components/QueryControl/ui-helper/Wrapper/QueryControlWrapper.d.ts +3 -1
- package/dist/components/QueryControl/utils/getMatchingControls.d.ts +1 -1
- package/dist/components/{Checkbox → controls/Checkbox}/Checkbox.d.ts +1 -1
- package/dist/components/{DateRangeGroup → controls/DateRangeGroup}/DateRangeGroup.d.ts +2 -2
- package/dist/components/{DateRangeGroup → controls/DateRangeGroup}/components/CalendarModal.d.ts +0 -2
- package/dist/components/{FileUploader → controls/FileUploader}/FileUploader.d.ts +1 -1
- package/dist/components/{Input → controls/Input}/Input.d.ts +2 -2
- package/dist/components/{InputFreeSolo → controls/InputFreeSolo}/InputFreeSolo.d.ts +1 -1
- package/dist/components/{MrnInput → controls/MrnInput}/MrnInput.d.ts +2 -2
- package/dist/components/{MrnInput → controls/MrnInput}/hooks/useMrn.d.ts +2 -2
- package/dist/components/{MrnInput → controls/MrnInput}/services/fetchMrn.d.ts +1 -1
- package/dist/components/{MultiSelect → controls/MultiSelect}/MultiSelect.d.ts +2 -2
- package/dist/components/{MultiSelect → controls/MultiSelect}/utils/extractSelectedOptionValues/extractSelectedOptionValues.d.ts +2 -2
- package/dist/components/{PasswordInput → controls/PasswordInput}/PasswordInput.d.ts +2 -2
- package/dist/components/{Select → controls/Select}/Select.d.ts +2 -2
- package/dist/components/{Select → controls/Select}/utils/getSelectedOption.d.ts +1 -1
- package/dist/components/{Textarea → controls/Textarea}/Textarea.d.ts +1 -1
- package/dist/components/{Textarea → controls/Textarea}/aiWrapper/aiAction.d.ts +1 -2
- package/dist/components/{Textarea → controls/Textarea}/aiWrapper/aiLayout.d.ts +1 -2
- package/dist/components/{Textarea → controls/Textarea}/aiWrapper/index.d.ts +2 -1
- package/dist/components/{Textarea → controls/Textarea}/aiWrapper/useAi.d.ts +3 -1
- package/dist/components/{Textarea/editors → controls/Textarea/editors/Default}/Default.d.ts +3 -3
- package/dist/components/controls/Textarea/editors/Default/index.d.ts +1 -0
- package/dist/components/{Textarea/editors → controls/Textarea/editors/Html}/Html.d.ts +2 -2
- package/dist/components/controls/Textarea/editors/Html/index.d.ts +1 -0
- package/dist/components/{Textarea/editors → controls/Textarea/editors/Json}/Json.d.ts +2 -2
- package/dist/components/controls/Textarea/editors/Json/index.d.ts +1 -0
- package/dist/components/{Textarea/editors → controls/Textarea/editors/Markdown}/Markdown.d.ts +2 -2
- package/dist/components/controls/Textarea/editors/Markdown/index.d.ts +1 -0
- package/dist/components/controls/Textarea/editors/Plate/PlateEditor.d.ts +17 -0
- package/dist/components/controls/Textarea/editors/Plate/index.d.ts +1 -0
- package/dist/components/controls/Textarea/editors/Plate/serializeHtml.d.ts +1 -0
- package/dist/components/{Textarea/editors → controls/Textarea/editors/Richtext}/Richtext.d.ts +2 -4
- package/dist/components/controls/Textarea/editors/Richtext/index.d.ts +1 -0
- package/dist/components/{addressGroup → groups/AddressGroup}/AddressGroup.d.ts +2 -2
- package/dist/components/{addressGroup → groups/AddressGroup}/utils/Countries.d.ts +1 -1
- package/dist/components/{Group → groups/Group}/Group.d.ts +2 -2
- package/dist/context/FormData.d.ts +1 -0
- package/dist/formbuilder.js +58 -58
- package/dist/formbuilder.js.LICENSE.txt +54 -0
- package/dist/formbuilder.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/testutils.d.ts +2 -1
- package/dist/types/index.d.ts +4 -0
- package/package.json +30 -58
- package/dist/components/GeneralFormGroup/GeneralFormGroup.d.ts +0 -5
- package/dist/components/GeneralFormGroup/index.d.ts +0 -1
- /package/dist/components/{Checkbox → controls/Checkbox}/index.d.ts +0 -0
- /package/dist/components/{DateRangeGroup → controls/DateRangeGroup}/DateRangeGroup.styles.d.ts +0 -0
- /package/dist/components/{DateRangeGroup → controls/DateRangeGroup}/index.d.ts +0 -0
- /package/dist/components/{FileUploader → controls/FileUploader}/index.d.ts +0 -0
- /package/dist/components/{Input → controls/Input}/index.d.ts +0 -0
- /package/dist/components/{Input → controls/Input}/input.styles.d.ts +0 -0
- /package/dist/components/{InputFreeSolo → controls/InputFreeSolo}/index.d.ts +0 -0
- /package/dist/components/{MrnInput → controls/MrnInput}/index.d.ts +0 -0
- /package/dist/components/{MrnInput → controls/MrnInput}/ui-helper/Link/Link.d.ts +0 -0
- /package/dist/components/{MrnInput → controls/MrnInput}/utils/mrnUtils/mrnUtils.d.ts +0 -0
- /package/dist/components/{MrnInput → controls/MrnInput}/utils/resolveMrnLinks/resolveMrnLink.d.ts +0 -0
- /package/dist/components/{MrnInput → controls/MrnInput}/utils/resolveNestedQueryLink/resolveNestedQueryLink.d.ts +0 -0
- /package/dist/components/{MrnInput → controls/MrnInput}/utils/urlSearchParam/urlSearchParam.d.ts +0 -0
- /package/dist/components/{MultiSelect → controls/MultiSelect}/index.d.ts +0 -0
- /package/dist/components/{MultiSelect → controls/MultiSelect}/utils/extractSelectedOptionValues/index.d.ts +0 -0
- /package/dist/components/{PasswordInput → controls/PasswordInput}/index.d.ts +0 -0
- /package/dist/components/{Select → controls/Select}/index.d.ts +0 -0
- /package/dist/components/{Textarea → controls/Textarea}/Textarea.types.d.ts +0 -0
- /package/dist/components/{Textarea → controls/Textarea}/index.d.ts +0 -0
- /package/dist/components/{addressGroup → groups/AddressGroup}/index.d.ts +0 -0
- /package/dist/components/{Group → groups/Group}/index.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import FormBuilder from "./components/FormBuilder/";
|
|
2
|
-
import Select from "./components/Select/";
|
|
3
|
-
import MultiSelect from "./components/MultiSelect/";
|
|
4
|
-
import Checkbox from "./components/Checkbox/";
|
|
2
|
+
import Select from "./components/controls/Select/";
|
|
3
|
+
import MultiSelect from "./components/controls/MultiSelect/";
|
|
4
|
+
import Checkbox from "./components/controls/Checkbox/";
|
|
5
5
|
import ControlWrapper from "./components/ControlWrapper/";
|
|
6
6
|
import FormFooter from "./components/FormFooter/";
|
|
7
|
-
import Input from "./components/Input/";
|
|
8
|
-
import InputFreeSolo from "./components/InputFreeSolo/";
|
|
7
|
+
import Input from "./components/controls/Input/";
|
|
8
|
+
import InputFreeSolo from "./components/controls/InputFreeSolo/";
|
|
9
9
|
import FormList from "./components/FormList/";
|
|
10
10
|
import FormGroup from "./components/FormGroup/";
|
|
11
|
-
import MrnInput from "./components/MrnInput/";
|
|
12
|
-
import PasswordInput from "./components/PasswordInput/";
|
|
13
|
-
import Textarea from "./components/Textarea/";
|
|
11
|
+
import MrnInput from "./components/controls/MrnInput/";
|
|
12
|
+
import PasswordInput from "./components/controls/PasswordInput/";
|
|
13
|
+
import Textarea from "./components/controls/Textarea/";
|
|
14
14
|
import { useValueGenerator } from "./hooks/useValueGenerator/useValueGenerator";
|
|
15
15
|
import { FormBuilderConfig } from "./types";
|
|
16
16
|
export { FormBuilder, FormBuilderConfig, Select, MultiSelect, Checkbox, ControlWrapper, FormFooter, Input, InputFreeSolo, FormList, FormGroup, MrnInput, PasswordInput, Textarea, useValueGenerator, };
|
package/dist/testutils.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React, { FC, ReactElement } from "react";
|
|
2
2
|
import { RenderOptions } from "@testing-library/react";
|
|
3
|
-
import { FileUploaderConfig, FormControls, resolveUrl } from "./types";
|
|
3
|
+
import { FileUploaderConfig, FormControls, PostMessageProps, PostMessageResponse, resolveUrl } from "./types";
|
|
4
4
|
interface IProps {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
controls?: FormControls;
|
|
7
7
|
fileUploaderConfig?: FileUploaderConfig;
|
|
8
8
|
resolveUrl?: resolveUrl;
|
|
9
|
+
postGenAiMessage?: ({ message, profile, }: PostMessageProps) => Promise<PostMessageResponse>;
|
|
9
10
|
}
|
|
10
11
|
export declare const TestWrapper: FC<IProps>;
|
|
11
12
|
declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions, "wrapper">) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export declare enum FillMode {
|
|
2
|
+
FULL = "full",// eslint-disable-line no-unused-vars
|
|
3
|
+
DEFAULT = "default"
|
|
4
|
+
}
|
|
1
5
|
export type CaseSensitivity<T extends string> = string extends T ? string : T extends `${infer F1}${infer F2}${infer R}` ? `${Uppercase<F1> | Lowercase<F1>}${Uppercase<F2> | Lowercase<F2>}${CaseSensitivity<R>}` : T extends `${infer F}${infer R}` ? `${Uppercase<F> | Lowercase<F>}${CaseSensitivity<R>}` : "";
|
|
2
6
|
export interface ControlCommons {
|
|
3
7
|
key?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromerce/formbuilder-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.803",
|
|
4
4
|
"description": "creates a form based on configuration",
|
|
5
5
|
"main": "dist/formbuilder.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
18
|
"test": "jest --runInBand --no-cache",
|
|
19
|
-
"storybook": "npm run lint;
|
|
20
|
-
"build-storybook": "npm run lint;
|
|
19
|
+
"storybook": "npm run lint; storybook dev -p 6006",
|
|
20
|
+
"build-storybook": "npm run lint; storybook build -o ./docs/storybook",
|
|
21
21
|
"watch": "npm run lint && webpack watch --config webpack.dev.js",
|
|
22
22
|
"build": "npm run lint && npm run test && npm run build-typedef && webpack build --config webpack.prod.js",
|
|
23
23
|
"build:analyze": "webpack build --analyze --config webpack.prod.js",
|
|
@@ -39,71 +39,44 @@
|
|
|
39
39
|
"@codemirror/lang-json": "^6.0.1",
|
|
40
40
|
"@codemirror/lang-markdown": "^6.1.0",
|
|
41
41
|
"@codemirror/language": "^6.8.0",
|
|
42
|
+
"@dnd-kit/core": "^6.3.1",
|
|
43
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
44
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
42
45
|
"@emotion/react": "^11.11.1",
|
|
43
46
|
"@emotion/styled": "^11.11.0",
|
|
44
47
|
"@lezer/highlight": "^1.1.6",
|
|
45
48
|
"@micromerce/media-fileuploader": "^1.0.1332",
|
|
46
49
|
"@mui/icons-material": "^5.14.19",
|
|
47
50
|
"@mui/material": "^5.14.20",
|
|
51
|
+
"@platejs/autoformat": "^52.0.11",
|
|
52
|
+
"@platejs/basic-nodes": "^52.0.11",
|
|
53
|
+
"@platejs/indent": "^52.0.11",
|
|
54
|
+
"@platejs/link": "^52.0.11",
|
|
55
|
+
"@platejs/list": "^52.0.11",
|
|
56
|
+
"@platejs/table": "^52.0.11",
|
|
48
57
|
"@radix-ui/react-avatar": "^1.1.1",
|
|
49
58
|
"@radix-ui/react-checkbox": "^1.1.2",
|
|
50
59
|
"@radix-ui/react-dialog": "^1.1.2",
|
|
51
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
|
60
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
52
61
|
"@radix-ui/react-popover": "^1.1.2",
|
|
53
62
|
"@radix-ui/react-scroll-area": "^1.2.0",
|
|
54
|
-
"@radix-ui/react-separator": "^1.1.
|
|
55
|
-
"@radix-ui/react-slot": "^1.
|
|
56
|
-
"@radix-ui/react-toggle": "^1.1.
|
|
63
|
+
"@radix-ui/react-separator": "^1.1.8",
|
|
64
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
65
|
+
"@radix-ui/react-toggle": "^1.1.10",
|
|
66
|
+
"@radix-ui/react-toggle-group": "^1.1.11",
|
|
57
67
|
"@radix-ui/react-toolbar": "^1.1.0",
|
|
58
|
-
"@radix-ui/react-tooltip": "^1.
|
|
68
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
59
69
|
"@react-icons/all-files": "^4.1.0",
|
|
60
|
-
"@udecode/cn": "^42.0.0",
|
|
61
|
-
"@udecode/plate": "^42.1.2",
|
|
62
|
-
"@udecode/plate-alignment": "^42.2.4",
|
|
63
|
-
"@udecode/plate-autoformat": "^42.2.4",
|
|
64
|
-
"@udecode/plate-basic-marks": "^42.0.0",
|
|
65
|
-
"@udecode/plate-block-quote": "^42.0.0",
|
|
66
|
-
"@udecode/plate-break": "^42.0.0",
|
|
67
|
-
"@udecode/plate-caption": "^42.0.0",
|
|
68
|
-
"@udecode/plate-code-block": "^42.2.2",
|
|
69
|
-
"@udecode/plate-comments": "^42.1.1",
|
|
70
|
-
"@udecode/plate-common": "^41.0.13",
|
|
71
|
-
"@udecode/plate-date": "^42.0.0",
|
|
72
|
-
"@udecode/plate-emoji": "^42.2.4",
|
|
73
|
-
"@udecode/plate-excalidraw": "^42.0.0",
|
|
74
|
-
"@udecode/plate-find-replace": "^42.0.0",
|
|
75
|
-
"@udecode/plate-font": "^42.2.2",
|
|
76
|
-
"@udecode/plate-heading": "^42.2.2",
|
|
77
|
-
"@udecode/plate-highlight": "^42.0.0",
|
|
78
|
-
"@udecode/plate-horizontal-rule": "^42.0.0",
|
|
79
|
-
"@udecode/plate-indent": "^42.0.0",
|
|
80
|
-
"@udecode/plate-indent-list": "^42.2.2",
|
|
81
|
-
"@udecode/plate-kbd": "^42.0.0",
|
|
82
|
-
"@udecode/plate-line-height": "^42.1.1",
|
|
83
|
-
"@udecode/plate-link": "^42.2.4",
|
|
84
|
-
"@udecode/plate-list": "^42.2.2",
|
|
85
|
-
"@udecode/plate-media": "^42.2.2",
|
|
86
|
-
"@udecode/plate-mention": "^42.2.4",
|
|
87
|
-
"@udecode/plate-node-id": "^42.0.0",
|
|
88
|
-
"@udecode/plate-reset-node": "^42.0.0",
|
|
89
|
-
"@udecode/plate-select": "^42.0.0",
|
|
90
|
-
"@udecode/plate-selection": "^42.2.4",
|
|
91
|
-
"@udecode/plate-slash-command": "^42.0.0",
|
|
92
|
-
"@udecode/plate-tabbable": "^42.0.0",
|
|
93
|
-
"@udecode/plate-table": "^42.2.4",
|
|
94
|
-
"@udecode/plate-toggle": "^42.0.0",
|
|
95
|
-
"@udecode/plate-trailing-block": "^42.0.0",
|
|
96
70
|
"@uiw/react-codemirror": "^4.19.16",
|
|
97
|
-
"autoprefixer": "^10.4.20",
|
|
98
71
|
"classnames": "^2.3.1",
|
|
99
72
|
"cmdk": "^1.0.0",
|
|
100
73
|
"html-to-text": "^9.0.5",
|
|
101
74
|
"lodash": "^4.17.21",
|
|
102
75
|
"lucide-react": "^0.451.0",
|
|
76
|
+
"platejs": "^52.3.3",
|
|
103
77
|
"prismjs": "^1.29.0",
|
|
104
78
|
"qs": "^6.10.3",
|
|
105
79
|
"react-date-range": "2.0.1",
|
|
106
|
-
"react-dnd": "^16.0.1",
|
|
107
80
|
"react-lite-youtube-embed": "^2.4.0",
|
|
108
81
|
"react-quill": "^2.0.0",
|
|
109
82
|
"showdown": "^2.1.0",
|
|
@@ -118,18 +91,15 @@
|
|
|
118
91
|
},
|
|
119
92
|
"devDependencies": {
|
|
120
93
|
"@babel/core": "^7.17.5",
|
|
121
|
-
"@storybook/addon-
|
|
122
|
-
"@storybook/addon-
|
|
123
|
-
"@storybook/addon-
|
|
124
|
-
"@storybook/
|
|
125
|
-
"@storybook/
|
|
126
|
-
"@
|
|
127
|
-
"@storybook/preset-scss": "^1.0.3",
|
|
128
|
-
"@storybook/react": "^6.4.19",
|
|
129
|
-
"@storybook/testing-library": "^0.0.9",
|
|
130
|
-
"@swc/core": "^1.8.0",
|
|
94
|
+
"@storybook/addon-links": "^10.2.15",
|
|
95
|
+
"@storybook/addon-styling-webpack": "^3.0.0",
|
|
96
|
+
"@storybook/addon-webpack5-compiler-swc": "^4.0.2",
|
|
97
|
+
"@storybook/react": "^10.2.15",
|
|
98
|
+
"@storybook/react-webpack5": "^10.2.15",
|
|
99
|
+
"@swc/core": "^1.15.18",
|
|
131
100
|
"@testing-library/jest-dom": "^5.16.5",
|
|
132
101
|
"@testing-library/react": "^16.0.1",
|
|
102
|
+
"@testing-library/user-event": "^13.5.0",
|
|
133
103
|
"@types/jest": "^29.5.13",
|
|
134
104
|
"@types/lodash": "^4.14.191",
|
|
135
105
|
"@types/react": "^18.3.11",
|
|
@@ -140,6 +110,7 @@
|
|
|
140
110
|
"@typescript-eslint/parser": "^5.17.0",
|
|
141
111
|
"babel-jest": "^29.7.0",
|
|
142
112
|
"babel-loader": "^8.2.3",
|
|
113
|
+
"buffer": "^6.0.3",
|
|
143
114
|
"chokidar": "^4.0.1",
|
|
144
115
|
"concurrently": "^9.0.1",
|
|
145
116
|
"copyfiles": "^2.4.1",
|
|
@@ -154,12 +125,13 @@
|
|
|
154
125
|
"identity-obj-proxy": "^3.0.0",
|
|
155
126
|
"jest": "^29.7.0",
|
|
156
127
|
"jest-environment-jsdom": "^29.7.0",
|
|
157
|
-
"
|
|
128
|
+
"path-browserify": "^1.0.1",
|
|
158
129
|
"react": "^18.3.1",
|
|
159
130
|
"react-dom": "^18.3.1",
|
|
160
131
|
"sass": "^1.79.4",
|
|
161
132
|
"sass-loader": "^16.0.2",
|
|
162
|
-
"storybook
|
|
133
|
+
"storybook": "^10.2.15",
|
|
134
|
+
"stream-browserify": "^3.0.0",
|
|
163
135
|
"swc-loader": "^0.2.6",
|
|
164
136
|
"ts-jest": "^29.2.5",
|
|
165
137
|
"ts-loader": "^9.2.6",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./GeneralFormGroup";
|
|
File without changes
|
/package/dist/components/{DateRangeGroup → controls/DateRangeGroup}/DateRangeGroup.styles.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/{MrnInput → controls/MrnInput}/utils/resolveMrnLinks/resolveMrnLink.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/components/{MrnInput → controls/MrnInput}/utils/urlSearchParam/urlSearchParam.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|