@bigbinary/neeto-form-frontend 3.12.3 → 3.12.4
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/BuildForm.js +14 -11
- package/dist/BuildForm.js.map +1 -1
- package/dist/{buildForm-C53vOltw.js → buildForm-CkodU5Ns.js} +3 -2
- package/dist/buildForm-CkodU5Ns.js.map +1 -0
- package/dist/{buildForm-BHII-vAK.js → buildForm-nI7TrULn.js} +3 -2
- package/dist/buildForm-nI7TrULn.js.map +1 -0
- package/dist/cjs/BuildForm.js +13 -10
- package/dist/cjs/BuildForm.js.map +1 -1
- package/dist/cjs/hooks.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/hooks.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +25 -24
- package/types.d.ts +1 -1
- package/dist/buildForm-BHII-vAK.js.map +0 -1
- package/dist/buildForm-C53vOltw.js.map +0 -1
package/dist/cjs/hooks.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var constants = require('../constants-Dq9-rvtB.js');
|
|
4
4
|
var useFormSubmission = require('../useFormSubmission-Bor3TuEO.js');
|
|
5
|
-
var buildForm = require('../buildForm-
|
|
5
|
+
var buildForm = require('../buildForm-CkodU5Ns.js');
|
|
6
6
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
7
7
|
require('@babel/runtime/helpers/defineProperty');
|
|
8
8
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
package/dist/cjs/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var Submission = require('./Submission.js');
|
|
|
7
7
|
var UrlBuilder = require('./UrlBuilder.js');
|
|
8
8
|
var constants = require('../constants-Dq9-rvtB.js');
|
|
9
9
|
var useFormSubmission = require('../useFormSubmission-Bor3TuEO.js');
|
|
10
|
-
var buildForm = require('../buildForm-
|
|
10
|
+
var buildForm = require('../buildForm-CkodU5Ns.js');
|
|
11
11
|
require('@babel/runtime/helpers/defineProperty');
|
|
12
12
|
require('react');
|
|
13
13
|
require('@tanstack/react-query');
|
package/dist/hooks.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { c as useCreateForm, e as useDeleteForm, a as useForm, u as useForms, b as usePublicForm, d as useUpdateForm } from './constants-DBuFEVFA.js';
|
|
2
2
|
export { u as useFormSubmission } from './useFormSubmission-D3Bxhy6g.js';
|
|
3
|
-
export { u as useBuildFormState } from './buildForm-
|
|
3
|
+
export { u as useBuildFormState } from './buildForm-nI7TrULn.js';
|
|
4
4
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
5
5
|
import '@babel/runtime/helpers/defineProperty';
|
|
6
6
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export { default as Submission } from './Submission.js';
|
|
|
5
5
|
export { default as UrlBuilder } from './UrlBuilder.js';
|
|
6
6
|
export { c as useCreateForm, e as useDeleteForm, a as useForm, u as useForms, b as usePublicForm, d as useUpdateForm } from './constants-DBuFEVFA.js';
|
|
7
7
|
export { u as useFormSubmission } from './useFormSubmission-D3Bxhy6g.js';
|
|
8
|
-
export { u as useBuildFormState } from './buildForm-
|
|
8
|
+
export { u as useBuildFormState } from './buildForm-nI7TrULn.js';
|
|
9
9
|
import '@babel/runtime/helpers/defineProperty';
|
|
10
10
|
import 'react';
|
|
11
11
|
import '@tanstack/react-query';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-form-frontend",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.4",
|
|
4
4
|
"description": "Neeto Form Engine Frontend",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-form-nano",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"@babel/preset-typescript": "7.26.0",
|
|
62
62
|
"@babel/runtime": "7.26.10",
|
|
63
63
|
"@bigbinary/babel-preset-neeto": "^1.0.3",
|
|
64
|
-
"@bigbinary/eslint-plugin-neeto": "1.
|
|
64
|
+
"@bigbinary/eslint-plugin-neeto": "1.6.0",
|
|
65
65
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
66
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
67
|
-
"@bigbinary/neeto-editor": "1.
|
|
66
|
+
"@bigbinary/neeto-commons-frontend": "4.13.33",
|
|
67
|
+
"@bigbinary/neeto-editor": "1.47.1",
|
|
68
68
|
"@bigbinary/neeto-filters-frontend": "4.3.19",
|
|
69
69
|
"@bigbinary/neeto-hotkeys": "1.0.9",
|
|
70
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
71
|
-
"@bigbinary/neeto-molecules": "3.16.
|
|
70
|
+
"@bigbinary/neeto-icons": "1.20.46",
|
|
71
|
+
"@bigbinary/neeto-molecules": "3.16.37",
|
|
72
72
|
"@bigbinary/neetoui": "8.3.0",
|
|
73
73
|
"@emotion/is-prop-valid": "1.2.0",
|
|
74
74
|
"@faker-js/faker": "8.2.0",
|
|
@@ -107,21 +107,22 @@
|
|
|
107
107
|
"dayjs": "1.11.10",
|
|
108
108
|
"dompurify": "^3.2.4",
|
|
109
109
|
"dotenv-webpack": "^8.0.1",
|
|
110
|
-
"eslint": "
|
|
111
|
-
"eslint-config-prettier": "
|
|
112
|
-
"eslint-plugin-cypress": "
|
|
113
|
-
"eslint-plugin-import": "2.31.0",
|
|
114
|
-
"eslint-plugin-jam3": "0.2.3",
|
|
115
|
-
"eslint-plugin-json": "
|
|
116
|
-
"eslint-plugin-prettier": "
|
|
117
|
-
"eslint-plugin-promise": "
|
|
118
|
-
"eslint-plugin-react": "7.37.
|
|
119
|
-
"eslint-plugin-react-hooks": "
|
|
120
|
-
"eslint-plugin-security": "^
|
|
121
|
-
"eslint-plugin-sonarjs": "^0.
|
|
122
|
-
"eslint-plugin-unused-imports": "
|
|
110
|
+
"eslint": "^9.25.1",
|
|
111
|
+
"eslint-config-prettier": "^10.1.2",
|
|
112
|
+
"eslint-plugin-cypress": "^4.3.0",
|
|
113
|
+
"eslint-plugin-import": "^2.31.0",
|
|
114
|
+
"eslint-plugin-jam3": "^0.2.3",
|
|
115
|
+
"eslint-plugin-json": "^4.0.1",
|
|
116
|
+
"eslint-plugin-prettier": "^5.2.6",
|
|
117
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
118
|
+
"eslint-plugin-react": "^7.37.5",
|
|
119
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
120
|
+
"eslint-plugin-security": "^3.0.1",
|
|
121
|
+
"eslint-plugin-sonarjs": "^3.0.2",
|
|
122
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
123
123
|
"eslint-plugin-xss": "^0.1.12",
|
|
124
124
|
"formik": "2.4.6",
|
|
125
|
+
"globals": "16.0.0",
|
|
125
126
|
"html-webpack-plugin": "5.5.3",
|
|
126
127
|
"https-browserify": "1.0.0",
|
|
127
128
|
"husky": "7.0.4",
|
|
@@ -138,7 +139,7 @@
|
|
|
138
139
|
"postcss-import": "^15.0.0",
|
|
139
140
|
"postcss-loader": "^7.0.1",
|
|
140
141
|
"postcss-preset-env": "7.8.2",
|
|
141
|
-
"prettier": "
|
|
142
|
+
"prettier": "3",
|
|
142
143
|
"prettier-plugin-tailwindcss": "0.1.10",
|
|
143
144
|
"process": "0.11.10",
|
|
144
145
|
"prop-types": "15.8.1",
|
|
@@ -185,12 +186,12 @@
|
|
|
185
186
|
"peerDependencies": {
|
|
186
187
|
"@babel/runtime": "7.26.10",
|
|
187
188
|
"@bigbinary/neeto-cist": "1.0.17",
|
|
188
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
189
|
-
"@bigbinary/neeto-editor": "1.
|
|
189
|
+
"@bigbinary/neeto-commons-frontend": "4.13.33",
|
|
190
|
+
"@bigbinary/neeto-editor": "1.47.1",
|
|
190
191
|
"@bigbinary/neeto-filters-frontend": "4.3.19",
|
|
191
192
|
"@bigbinary/neeto-hotkeys": "1.0.9",
|
|
192
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
193
|
-
"@bigbinary/neeto-molecules": "3.16.
|
|
193
|
+
"@bigbinary/neeto-icons": "1.20.46",
|
|
194
|
+
"@bigbinary/neeto-molecules": "3.16.37",
|
|
194
195
|
"@bigbinary/neetoui": "8.3.0",
|
|
195
196
|
"@hello-pangea/dnd": "16.3.0",
|
|
196
197
|
"@honeybadger-io/js": "6.10.1",
|
package/types.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ interface BuildFormProps {
|
|
|
75
75
|
enableDomainWhitelisting?: boolean;
|
|
76
76
|
enableDomainBlacklisting?: boolean;
|
|
77
77
|
helpDocUrls?: { [key: string]: string };
|
|
78
|
-
hostSpecificData?:
|
|
78
|
+
hostSpecificData?: KeyValuePair;
|
|
79
79
|
questionsHelpProps?: QuestionsHelpProps;
|
|
80
80
|
showReadOnlySwitch?: boolean;
|
|
81
81
|
showResponseVisibleOnlyToHostSwitch?: boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buildForm-BHII-vAK.js","sources":["../app/javascript/src/stores/buildForm.js"],"sourcesContent":["import i18next from \"i18next\";\nimport { noop } from \"neetocist\";\nimport { withImmutableActions } from \"neetocommons/react-utils\";\nimport { mergeLeft, modify, prop } from \"ramda\";\nimport { create } from \"zustand\";\n\nimport { isFunction } from \"utils\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useBuildFormStore = create(\n withImmutableActions(set => ({\n formState: {\n values: {},\n dirty: false,\n isSubmitting: false,\n isValid: true,\n errors: [],\n submitForm: noop,\n resetForm: noop,\n selectedLanguage: i18next.resolvedLanguage,\n formId: null,\n enabled: false,\n title: \"\",\n richTextFieldsToReset: [],\n helpDocUrls: {},\n enableDomainBlacklisting: true,\n enableDomainWhitelisting: true,\n isUsingDefaultQuestionKinds: true,\n showReadOnlySwitch: false,\n showResponseVisibleOnlyToHostSwitch: false,\n usesCustomSubmissionComponent: false,\n },\n\n setFormData: arg =>\n set(modify(\"formState\", isFunction(arg) ? arg : mergeLeft(arg))),\n }))\n);\n\nexport const useBuildFormState = () => useBuildFormStore(prop(\"formState\"));\n\nexport default useBuildFormStore;\n"],"names":["useBuildFormStore","create","withImmutableActions","set","formState","values","dirty","isSubmitting","isValid","errors","submitForm","noop","resetForm","selectedLanguage","i18next","resolvedLanguage","formId","enabled","title","richTextFieldsToReset","helpDocUrls","enableDomainBlacklisting","enableDomainWhitelisting","isUsingDefaultQuestionKinds","showReadOnlySwitch","showResponseVisibleOnlyToHostSwitch","usesCustomSubmissionComponent","setFormData","arg","modify","isFunction","mergeLeft","useBuildFormState","prop"],"mappings":";;;;;;;AAQA;AACA,IAAMA,iBAAiB,GAAGC,MAAM,CAC9BC,oBAAoB,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;AAC3BC,IAAAA,SAAS,EAAE;MACTC,MAAM,EAAE,EAAE;AACVC,MAAAA,KAAK,EAAE,KAAK;AACZC,MAAAA,YAAY,EAAE,KAAK;AACnBC,MAAAA,OAAO,EAAE,IAAI;AACbC,MAAAA,MAAM,EAAE,EAAE;AACVC,MAAAA,UAAU,EAAEC,IAAI;AAChBC,MAAAA,SAAS,EAAED,IAAI;MACfE,gBAAgB,EAAEC,OAAO,CAACC,gBAAgB;AAC1CC,MAAAA,MAAM,EAAE,IAAI;AACZC,MAAAA,OAAO,EAAE,KAAK;AACdC,MAAAA,KAAK,EAAE,EAAE;AACTC,MAAAA,qBAAqB,EAAE,EAAE;MACzBC,WAAW,EAAE,EAAE;AACfC,MAAAA,wBAAwB,EAAE,IAAI;AAC9BC,MAAAA,wBAAwB,EAAE,IAAI;AAC9BC,MAAAA,2BAA2B,EAAE,IAAI;AACjCC,MAAAA,kBAAkB,EAAE,KAAK;AACzBC,MAAAA,mCAAmC,EAAE,KAAK;AAC1CC,MAAAA,6BAA6B,EAAE;KAChC;AAEDC,IAAAA,WAAW,EAAE,SAAbA,WAAWA,CAAEC,GAAG,EAAA;AAAA,MAAA,OACdzB,GAAG,CAAC0B,MAAM,CAAC,WAAW,EAAEC,UAAU,CAACF,GAAG,CAAC,GAAGA,GAAG,GAAGG,SAAS,CAACH,GAAG,CAAC,CAAC,CAAC;AAAA;GACnE;AAAA,CAAC,CACJ;AAEaI,IAAAA,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAA;AAAA,EAAA,OAAShC,iBAAiB,CAACiC,IAAI,CAAC,WAAW,CAAC,CAAC;AAAA;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buildForm-C53vOltw.js","sources":["../app/javascript/src/stores/buildForm.js"],"sourcesContent":["import i18next from \"i18next\";\nimport { noop } from \"neetocist\";\nimport { withImmutableActions } from \"neetocommons/react-utils\";\nimport { mergeLeft, modify, prop } from \"ramda\";\nimport { create } from \"zustand\";\n\nimport { isFunction } from \"utils\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useBuildFormStore = create(\n withImmutableActions(set => ({\n formState: {\n values: {},\n dirty: false,\n isSubmitting: false,\n isValid: true,\n errors: [],\n submitForm: noop,\n resetForm: noop,\n selectedLanguage: i18next.resolvedLanguage,\n formId: null,\n enabled: false,\n title: \"\",\n richTextFieldsToReset: [],\n helpDocUrls: {},\n enableDomainBlacklisting: true,\n enableDomainWhitelisting: true,\n isUsingDefaultQuestionKinds: true,\n showReadOnlySwitch: false,\n showResponseVisibleOnlyToHostSwitch: false,\n usesCustomSubmissionComponent: false,\n },\n\n setFormData: arg =>\n set(modify(\"formState\", isFunction(arg) ? arg : mergeLeft(arg))),\n }))\n);\n\nexport const useBuildFormState = () => useBuildFormStore(prop(\"formState\"));\n\nexport default useBuildFormStore;\n"],"names":["useBuildFormStore","create","withImmutableActions","set","formState","values","dirty","isSubmitting","isValid","errors","submitForm","noop","resetForm","selectedLanguage","i18next","resolvedLanguage","formId","enabled","title","richTextFieldsToReset","helpDocUrls","enableDomainBlacklisting","enableDomainWhitelisting","isUsingDefaultQuestionKinds","showReadOnlySwitch","showResponseVisibleOnlyToHostSwitch","usesCustomSubmissionComponent","setFormData","arg","modify","isFunction","mergeLeft","useBuildFormState","prop"],"mappings":";;;;;;;;;AAQA;AACA,IAAMA,iBAAiB,GAAGC,cAAM,CAC9BC,+BAAoB,CAAC,UAAAC,GAAG,EAAA;EAAA,OAAK;AAC3BC,IAAAA,SAAS,EAAE;MACTC,MAAM,EAAE,EAAE;AACVC,MAAAA,KAAK,EAAE,KAAK;AACZC,MAAAA,YAAY,EAAE,KAAK;AACnBC,MAAAA,OAAO,EAAE,IAAI;AACbC,MAAAA,MAAM,EAAE,EAAE;AACVC,MAAAA,UAAU,EAAEC,cAAI;AAChBC,MAAAA,SAAS,EAAED,cAAI;MACfE,gBAAgB,EAAEC,OAAO,CAACC,gBAAgB;AAC1CC,MAAAA,MAAM,EAAE,IAAI;AACZC,MAAAA,OAAO,EAAE,KAAK;AACdC,MAAAA,KAAK,EAAE,EAAE;AACTC,MAAAA,qBAAqB,EAAE,EAAE;MACzBC,WAAW,EAAE,EAAE;AACfC,MAAAA,wBAAwB,EAAE,IAAI;AAC9BC,MAAAA,wBAAwB,EAAE,IAAI;AAC9BC,MAAAA,2BAA2B,EAAE,IAAI;AACjCC,MAAAA,kBAAkB,EAAE,KAAK;AACzBC,MAAAA,mCAAmC,EAAE,KAAK;AAC1CC,MAAAA,6BAA6B,EAAE;KAChC;AAEDC,IAAAA,WAAW,EAAE,SAAbA,WAAWA,CAAEC,GAAG,EAAA;AAAA,MAAA,OACdzB,GAAG,CAAC0B,YAAM,CAAC,WAAW,EAAEC,gBAAU,CAACF,GAAG,CAAC,GAAGA,GAAG,GAAGG,eAAS,CAACH,GAAG,CAAC,CAAC,CAAC;AAAA;GACnE;AAAA,CAAC,CACJ;AAEaI,IAAAA,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAA;AAAA,EAAA,OAAShC,iBAAiB,CAACiC,UAAI,CAAC,WAAW,CAAC,CAAC;AAAA;;;;;"}
|