@bigbinary/neeto-form-frontend 3.8.3 → 3.9.1
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/app/javascript/src/translations/ar.json +3 -1
- package/app/javascript/src/translations/de.json +3 -1
- package/app/javascript/src/translations/en.json +12 -4
- package/app/javascript/src/translations/es.json +3 -1
- package/app/javascript/src/translations/fr.json +3 -1
- package/app/javascript/src/translations/it.json +201 -0
- package/app/javascript/src/translations/nl.json +3 -1
- package/app/javascript/src/translations/pl.json +3 -1
- package/app/javascript/src/translations/pt.json +3 -1
- package/app/javascript/src/translations/ru.json +202 -0
- package/dist/BuildForm.js +142 -132
- package/dist/BuildForm.js.map +1 -1
- package/dist/ExternalForm.js +12 -12
- package/dist/ExternalForm.js.map +1 -1
- package/dist/Submission.js +1 -1
- package/dist/Submission.js.map +1 -1
- package/dist/UrlBuilder.js +10 -10
- package/dist/UrlBuilder.js.map +1 -1
- package/dist/{buildForm-354c6d6d.js → buildForm-b8eb931e.js} +4 -2
- package/dist/buildForm-b8eb931e.js.map +1 -0
- package/dist/{buildForm-042737cb.js → buildForm-dfd708c6.js} +4 -2
- package/dist/buildForm-dfd708c6.js.map +1 -0
- package/dist/cjs/BuildForm.js +144 -134
- package/dist/cjs/BuildForm.js.map +1 -1
- package/dist/cjs/ExternalForm.js +12 -12
- package/dist/cjs/ExternalForm.js.map +1 -1
- package/dist/cjs/Submission.js +1 -1
- package/dist/cjs/Submission.js.map +1 -1
- package/dist/cjs/UrlBuilder.js +10 -10
- package/dist/cjs/UrlBuilder.js.map +1 -1
- package/dist/cjs/hooks.js +3 -3
- package/dist/cjs/index.js +6 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/constants-4d9fc943.js.map +1 -1
- package/dist/constants-75b78b3a.js.map +1 -1
- package/dist/{constants-56bf4022.js → constants-771cca31.js} +2 -3
- package/dist/{constants-56bf4022.js.map → constants-771cca31.js.map} +1 -1
- package/dist/{constants-d9148acf.js → constants-9538731d.js} +2 -3
- package/dist/{constants-d9148acf.js.map → constants-9538731d.js.map} +1 -1
- package/dist/hooks.js +3 -3
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/{useFormApi-408d0060.js → useFormApi-24e05ed2.js} +6 -6
- package/dist/{useFormApi-408d0060.js.map → useFormApi-24e05ed2.js.map} +1 -1
- package/dist/{useFormApi-e3476a20.js → useFormApi-dee63a95.js} +6 -6
- package/dist/{useFormApi-e3476a20.js.map → useFormApi-dee63a95.js.map} +1 -1
- package/dist/{useFormSubmission-e2e84587.js → useFormSubmission-8b23d7aa.js} +2 -2
- package/dist/{useFormSubmission-e2e84587.js.map → useFormSubmission-8b23d7aa.js.map} +1 -1
- package/dist/{useFormSubmission-46db678f.js → useFormSubmission-c4e42402.js} +2 -2
- package/dist/{useFormSubmission-46db678f.js.map → useFormSubmission-c4e42402.js.map} +1 -1
- package/dist/{utils-4918956b.js → utils-58566755.js} +52 -44
- package/dist/utils-58566755.js.map +1 -0
- package/dist/{utils-e4298243.js → utils-d5895099.js} +51 -43
- package/dist/utils-d5895099.js.map +1 -0
- package/package.json +101 -92
- package/types.d.ts +2 -1
- package/dist/buildForm-042737cb.js.map +0 -1
- package/dist/buildForm-354c6d6d.js.map +0 -1
- package/dist/utils-4918956b.js.map +0 -1
- package/dist/utils-e4298243.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-form-frontend",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.1",
|
|
4
4
|
"description": "Neeto Form Engine Frontend",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-form-nano",
|
|
@@ -52,29 +52,28 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@babel/core": "7.
|
|
56
|
-
"@babel/eslint-parser": "7.
|
|
57
|
-
"@babel/plugin-transform-runtime": "7.
|
|
58
|
-
"@babel/preset-env": "7.
|
|
59
|
-
"@babel/preset-react": "7.
|
|
60
|
-
"@babel/preset-typescript": "7.
|
|
61
|
-
"@babel/runtime": "7.
|
|
62
|
-
"@bigbinary/babel-preset-neeto": "1.0.
|
|
55
|
+
"@babel/core": "^7.19.1",
|
|
56
|
+
"@babel/eslint-parser": "7.17.0",
|
|
57
|
+
"@babel/plugin-transform-runtime": "^7.19.1",
|
|
58
|
+
"@babel/preset-env": "7.17.10",
|
|
59
|
+
"@babel/preset-react": "7.16.7",
|
|
60
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
61
|
+
"@babel/runtime": "7.19.0",
|
|
62
|
+
"@bigbinary/babel-preset-neeto": "^1.0.3",
|
|
63
63
|
"@bigbinary/eslint-plugin-neeto": "1.5.4",
|
|
64
|
-
"@bigbinary/neeto-audit-frontend": "2.0.14",
|
|
65
64
|
"@bigbinary/neeto-cist": "1.0.12",
|
|
66
|
-
"@bigbinary/neeto-commons-frontend": "4.4
|
|
67
|
-
"@bigbinary/neeto-editor": "1.
|
|
68
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
69
|
-
"@bigbinary/neeto-hotkeys": "
|
|
70
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
71
|
-
"@bigbinary/neeto-molecules": "3.
|
|
72
|
-
"@bigbinary/neetoui": "8.2.
|
|
65
|
+
"@bigbinary/neeto-commons-frontend": "4.8.4",
|
|
66
|
+
"@bigbinary/neeto-editor": "1.43.8",
|
|
67
|
+
"@bigbinary/neeto-filters-frontend": "4.3.5",
|
|
68
|
+
"@bigbinary/neeto-hotkeys": "1.0.7",
|
|
69
|
+
"@bigbinary/neeto-icons": "1.20.8",
|
|
70
|
+
"@bigbinary/neeto-molecules": "3.7.21",
|
|
71
|
+
"@bigbinary/neetoui": "8.2.24",
|
|
73
72
|
"@emotion/is-prop-valid": "1.2.0",
|
|
74
73
|
"@faker-js/faker": "8.2.0",
|
|
75
74
|
"@hello-pangea/dnd": "16.3.0",
|
|
76
|
-
"@honeybadger-io/js": "6.
|
|
77
|
-
"@honeybadger-io/react": "6.1.
|
|
75
|
+
"@honeybadger-io/js": "^6.4.1",
|
|
76
|
+
"@honeybadger-io/react": "^6.1.3",
|
|
78
77
|
"@rails/activestorage": "7.0.8-3",
|
|
79
78
|
"@rollup/plugin-alias": "5.0.1",
|
|
80
79
|
"@rollup/plugin-babel": "6.0.4",
|
|
@@ -85,74 +84,74 @@
|
|
|
85
84
|
"@svgr/rollup": "8.1.0",
|
|
86
85
|
"@tanstack/react-query": "5.40.0",
|
|
87
86
|
"@tanstack/react-query-devtools": "5.40.0",
|
|
88
|
-
"antd": "5.
|
|
89
|
-
"autoprefixer": "10.4.
|
|
87
|
+
"antd": "5.16.0",
|
|
88
|
+
"autoprefixer": "^10.4.5",
|
|
90
89
|
"axios": "1.7.4",
|
|
91
|
-
"babel-loader": "
|
|
92
|
-
"babel-plugin-istanbul": "6.1.1",
|
|
90
|
+
"babel-loader": "^8.2.5",
|
|
91
|
+
"babel-plugin-istanbul": "^6.1.1",
|
|
93
92
|
"babel-plugin-js-logger": "1.0.17",
|
|
94
93
|
"babel-plugin-macros": "3.1.0",
|
|
95
94
|
"babel-plugin-preval": "^5.1.0",
|
|
96
95
|
"babel-plugin-transform-imports": "^2.0.0",
|
|
97
96
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
98
97
|
"babel-preset-react": "6.24.1",
|
|
99
|
-
"babel-preset-typescript": "7.0.0-alpha.19",
|
|
98
|
+
"babel-preset-typescript": "^7.0.0-alpha.19",
|
|
100
99
|
"browserify-zlib": "0.2.0",
|
|
101
|
-
"buffer": "6.0.3",
|
|
102
|
-
"classnames": "2.3.
|
|
103
|
-
"crypto-browserify": "3.12.0",
|
|
100
|
+
"buffer": "^6.0.3",
|
|
101
|
+
"classnames": "2.3.1",
|
|
102
|
+
"crypto-browserify": "^3.12.0",
|
|
104
103
|
"css-loader": "6.8.1",
|
|
105
|
-
"dayjs": "1.11.
|
|
106
|
-
"dompurify": "2.4.0",
|
|
104
|
+
"dayjs": "1.11.10",
|
|
105
|
+
"dompurify": "^2.4.0",
|
|
107
106
|
"dotenv-webpack": "^8.0.1",
|
|
108
|
-
"eslint": "8.
|
|
107
|
+
"eslint": "8.14.0",
|
|
109
108
|
"eslint-config-prettier": "8.5.0",
|
|
110
|
-
"eslint-plugin-cypress": "2.
|
|
111
|
-
"eslint-plugin-import": "2.
|
|
109
|
+
"eslint-plugin-cypress": "2.12.1",
|
|
110
|
+
"eslint-plugin-import": "2.26.0",
|
|
112
111
|
"eslint-plugin-jam3": "0.2.3",
|
|
113
112
|
"eslint-plugin-json": "3.1.0",
|
|
114
113
|
"eslint-plugin-prettier": "4.0.0",
|
|
115
|
-
"eslint-plugin-promise": "6.
|
|
116
|
-
"eslint-plugin-react": "7.
|
|
117
|
-
"eslint-plugin-react-hooks": "4.
|
|
114
|
+
"eslint-plugin-promise": "6.0.0",
|
|
115
|
+
"eslint-plugin-react": "7.29.4",
|
|
116
|
+
"eslint-plugin-react-hooks": "4.5.0",
|
|
118
117
|
"eslint-plugin-security": "^1.7.1",
|
|
119
118
|
"eslint-plugin-sonarjs": "^0.21.0",
|
|
120
|
-
"eslint-plugin-unused-imports": "
|
|
119
|
+
"eslint-plugin-unused-imports": "2.0.0",
|
|
121
120
|
"eslint-plugin-xss": "^0.1.12",
|
|
122
|
-
"formik": "2.
|
|
121
|
+
"formik": "2.2.9",
|
|
123
122
|
"html-webpack-plugin": "5.5.3",
|
|
124
123
|
"https-browserify": "1.0.0",
|
|
125
|
-
"husky": "
|
|
126
|
-
"i18next": "
|
|
124
|
+
"husky": "7.0.4",
|
|
125
|
+
"i18next": "22.5.1",
|
|
127
126
|
"i18next-browser-languagedetector": "7.0.1",
|
|
128
127
|
"js-logger": "1.6.1",
|
|
129
128
|
"libphonenumber-js": "1.11.2",
|
|
130
|
-
"lint-staged": "
|
|
129
|
+
"lint-staged": "12.4.1",
|
|
131
130
|
"mini-css-extract-plugin": "2.7.6",
|
|
132
131
|
"mixpanel-browser": "2.47.0",
|
|
133
132
|
"os-browserify": "0.3.0",
|
|
134
|
-
"path-browserify": "1.0.1",
|
|
135
|
-
"postcss": "8.4.31",
|
|
136
|
-
"postcss-import": "15.
|
|
137
|
-
"postcss-loader": "7.
|
|
138
|
-
"postcss-preset-env": "
|
|
133
|
+
"path-browserify": "^1.0.1",
|
|
134
|
+
"postcss": "^8.4.31",
|
|
135
|
+
"postcss-import": "^15.0.0",
|
|
136
|
+
"postcss-loader": "^7.0.1",
|
|
137
|
+
"postcss-preset-env": "7.8.2",
|
|
139
138
|
"prettier": "2.6.2",
|
|
140
139
|
"prettier-plugin-tailwindcss": "0.1.10",
|
|
141
140
|
"process": "0.11.10",
|
|
142
141
|
"prop-types": "15.8.1",
|
|
143
|
-
"qs": "6.11.2",
|
|
144
|
-
"ramda": "0.29.
|
|
142
|
+
"qs": "^6.11.2",
|
|
143
|
+
"ramda": "0.29.0",
|
|
145
144
|
"react": "18.2.0",
|
|
146
145
|
"react-dom": "18.2.0",
|
|
147
146
|
"react-dropzone": "14.2.3",
|
|
148
147
|
"react-google-recaptcha": "^3.1.0",
|
|
149
|
-
"react-helmet": "6.1.0",
|
|
150
|
-
"react-i18next": "
|
|
148
|
+
"react-helmet": "^6.1.0",
|
|
149
|
+
"react-i18next": "12.3.1",
|
|
151
150
|
"react-linkify": "^1.0.0-alpha",
|
|
152
|
-
"react-router-dom": "5.3.
|
|
151
|
+
"react-router-dom": "5.3.3",
|
|
153
152
|
"react-router-nav-prompt": "0.4.1",
|
|
154
153
|
"react-select": "5.6.0",
|
|
155
|
-
"react-toastify": "8.2
|
|
154
|
+
"react-toastify": "8.0.2",
|
|
156
155
|
"react_ujs": "^3.1.1",
|
|
157
156
|
"rollup": "2.79.1",
|
|
158
157
|
"rollup-plugin-analyzer": "4.0.0",
|
|
@@ -160,73 +159,84 @@
|
|
|
160
159
|
"rollup-plugin-copy": "^3.5.0",
|
|
161
160
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
162
161
|
"rollup-plugin-styles": "4.0.0",
|
|
163
|
-
"sass": "1.
|
|
164
|
-
"sass-loader": "13.
|
|
162
|
+
"sass": "^1.54.9",
|
|
163
|
+
"sass-loader": "^13.0.2",
|
|
165
164
|
"shakapacker": "6.6.0",
|
|
166
|
-
"
|
|
165
|
+
"source-map-loader": "4.0.1",
|
|
166
|
+
"stream-browserify": "^3.0.0",
|
|
167
167
|
"stream-http": "3.2.0",
|
|
168
|
-
"style-loader": "3.3.
|
|
169
|
-
"tailwindcss": "3.4.1",
|
|
168
|
+
"style-loader": "^3.3.1",
|
|
169
|
+
"tailwindcss": "^3.4.1",
|
|
170
170
|
"tty-browserify": "0.0.1",
|
|
171
|
-
"url": "0.11.
|
|
172
|
-
"util": "0.12.5",
|
|
173
|
-
"uuid": "
|
|
171
|
+
"url": "^0.11.0",
|
|
172
|
+
"util": "^0.12.5",
|
|
173
|
+
"uuid": "10.0.0",
|
|
174
174
|
"vm-browserify": "1.1.2",
|
|
175
175
|
"webpack": "5.94.0",
|
|
176
176
|
"webpack-assets-manifest": "5.1.0",
|
|
177
177
|
"webpack-cli": "5.1.4",
|
|
178
178
|
"webpack-dev-server": "4.15.1",
|
|
179
|
-
"yup": "
|
|
179
|
+
"yup": "0.32.11",
|
|
180
180
|
"zustand": "4.3.2"
|
|
181
181
|
},
|
|
182
182
|
"peerDependencies": {
|
|
183
183
|
"@babel/runtime": "7.19.0",
|
|
184
|
-
"@bigbinary/neeto-cist": "
|
|
185
|
-
"@bigbinary/neeto-commons-frontend": "4.4
|
|
186
|
-
"@bigbinary/neeto-editor": "
|
|
187
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
188
|
-
"@bigbinary/neeto-hotkeys": "
|
|
189
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
190
|
-
"@bigbinary/neeto-molecules": "3.
|
|
191
|
-
"@bigbinary/neetoui": "8.2.
|
|
184
|
+
"@bigbinary/neeto-cist": "1.0.12",
|
|
185
|
+
"@bigbinary/neeto-commons-frontend": "4.8.4",
|
|
186
|
+
"@bigbinary/neeto-editor": "1.43.8",
|
|
187
|
+
"@bigbinary/neeto-filters-frontend": "4.3.5",
|
|
188
|
+
"@bigbinary/neeto-hotkeys": "1.0.7",
|
|
189
|
+
"@bigbinary/neeto-icons": "1.20.8",
|
|
190
|
+
"@bigbinary/neeto-molecules": "3.7.21",
|
|
191
|
+
"@bigbinary/neetoui": "8.2.24",
|
|
192
192
|
"@hello-pangea/dnd": "16.3.0",
|
|
193
|
-
"@honeybadger-io/js": "^6.
|
|
194
|
-
"@honeybadger-io/react": "^6.1.
|
|
193
|
+
"@honeybadger-io/js": "^6.4.1",
|
|
194
|
+
"@honeybadger-io/react": "^6.1.3",
|
|
195
195
|
"@rails/activestorage": "7.0.8-3",
|
|
196
196
|
"@tanstack/react-query": "5.40.0",
|
|
197
197
|
"@tanstack/react-query-devtools": "5.40.0",
|
|
198
|
-
"antd": "5.
|
|
198
|
+
"antd": "5.16.0",
|
|
199
199
|
"axios": "1.7.4",
|
|
200
|
-
"buffer": "6.3
|
|
201
|
-
"classnames": "
|
|
202
|
-
"crypto-browserify": "3.12.0",
|
|
203
|
-
"dayjs": "1.11.
|
|
204
|
-
"dompurify": "2.4.0",
|
|
205
|
-
"formik": "
|
|
206
|
-
"
|
|
207
|
-
"
|
|
200
|
+
"buffer": "^6.0.3",
|
|
201
|
+
"classnames": "2.3.1",
|
|
202
|
+
"crypto-browserify": "^3.12.0",
|
|
203
|
+
"dayjs": "1.11.10",
|
|
204
|
+
"dompurify": "^2.4.0",
|
|
205
|
+
"formik": "2.2.9",
|
|
206
|
+
"https-browserify": "1.0.0",
|
|
207
|
+
"i18next": "22.5.1",
|
|
208
|
+
"js-logger": "1.6.1",
|
|
208
209
|
"libphonenumber-js": "1.11.2",
|
|
209
210
|
"mixpanel-browser": "^2.45.0",
|
|
210
211
|
"os-browserify": "0.3.0",
|
|
211
|
-
"path-browserify": "1.0.1",
|
|
212
|
-
"qs": "6.11.2",
|
|
213
|
-
"ramda": "
|
|
214
|
-
"react": "
|
|
215
|
-
"react-dom": "
|
|
212
|
+
"path-browserify": "^1.0.1",
|
|
213
|
+
"qs": "^6.11.2",
|
|
214
|
+
"ramda": "0.29.0",
|
|
215
|
+
"react": "18.2.0",
|
|
216
|
+
"react-dom": "18.2.0",
|
|
216
217
|
"react-dropzone": "14.2.3",
|
|
217
218
|
"react-google-recaptcha": "^3.1.0",
|
|
218
219
|
"react-helmet": "^6.1.0",
|
|
219
|
-
"react-i18next": "
|
|
220
|
-
"react-router-dom": "
|
|
220
|
+
"react-i18next": "12.3.1",
|
|
221
|
+
"react-router-dom": "5.3.3",
|
|
221
222
|
"react-select": "5.6.0",
|
|
222
|
-
"react-toastify": "
|
|
223
|
-
"
|
|
224
|
-
"
|
|
225
|
-
"
|
|
223
|
+
"react-toastify": "8.0.2",
|
|
224
|
+
"source-map-loader": "4.0.1",
|
|
225
|
+
"stream-browserify": "^3.0.0",
|
|
226
|
+
"stream-http": "3.2.0",
|
|
227
|
+
"tailwindcss": "^3.4.1",
|
|
228
|
+
"tty-browserify": "0.0.1",
|
|
229
|
+
"url": "^0.11.0",
|
|
230
|
+
"util": "^0.12.5",
|
|
231
|
+
"uuid": "10.0.0",
|
|
232
|
+
"vm-browserify": "1.1.2",
|
|
233
|
+
"yup": "0.32.11",
|
|
226
234
|
"zustand": "4.3.2"
|
|
227
235
|
},
|
|
228
236
|
"resolutions": {
|
|
229
|
-
"postcss": "^8"
|
|
237
|
+
"postcss": "^8",
|
|
238
|
+
"wrap-ansi": "7.0.0",
|
|
239
|
+
"string-width": "4.1.0"
|
|
230
240
|
},
|
|
231
241
|
"engines": {
|
|
232
242
|
"node": ">=18.12",
|
|
@@ -234,7 +244,6 @@
|
|
|
234
244
|
"yarn": ">=1.22"
|
|
235
245
|
},
|
|
236
246
|
"dependencies": {
|
|
237
|
-
"source-map-loader": "^4.0.1",
|
|
238
247
|
"zustand": "4.3.2"
|
|
239
248
|
}
|
|
240
249
|
}
|
package/types.d.ts
CHANGED
|
@@ -72,7 +72,8 @@ interface BuildFormProps {
|
|
|
72
72
|
onLanguageChange?: () => void;
|
|
73
73
|
additionalActionOptions?: MenuItems[];
|
|
74
74
|
additionalQuestionKindPattern?: (values: KeyValuePair) => KeyValuePair;
|
|
75
|
-
|
|
75
|
+
enableDomainWhitelisting?: boolean;
|
|
76
|
+
enableDomainBlacklisting?: boolean;
|
|
76
77
|
helpDocUrls?: { [key: string]: string };
|
|
77
78
|
}
|
|
78
79
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buildForm-042737cb.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 },\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","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;AACzBC,MAAAA,WAAW,EAAE,EAAC;KACf;IAEDC,WAAW,EAAE,SAAAA,WAAAA,CAAAC,GAAG,EAAA;AAAA,MAAA,OACdnB,GAAG,CAACoB,MAAM,CAAC,WAAW,EAAEC,UAAU,CAACF,GAAG,CAAC,GAAGA,GAAG,GAAGG,SAAS,CAACH,GAAG,CAAC,CAAC,CAAC,CAAA;AAAA,KAAA;GACnE,CAAA;AAAA,CAAC,CACJ,EAAC;AAEYI,IAAAA,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAA;AAAA,EAAA,OAAS1B,iBAAiB,CAAC2B,IAAI,CAAC,WAAW,CAAC,CAAC,CAAA;AAAA;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buildForm-354c6d6d.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 },\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","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,2BAAO,CAACC,gBAAgB;AAC1CC,MAAAA,MAAM,EAAE,IAAI;AACZC,MAAAA,OAAO,EAAE,KAAK;AACdC,MAAAA,KAAK,EAAE,EAAE;AACTC,MAAAA,qBAAqB,EAAE,EAAE;AACzBC,MAAAA,WAAW,EAAE,EAAC;KACf;IAEDC,WAAW,EAAE,SAAAA,WAAAA,CAAAC,GAAG,EAAA;AAAA,MAAA,OACdnB,GAAG,CAACoB,YAAM,CAAC,WAAW,EAAEC,gBAAU,CAACF,GAAG,CAAC,GAAGA,GAAG,GAAGG,eAAS,CAACH,GAAG,CAAC,CAAC,CAAC,CAAA;AAAA,KAAA;GACnE,CAAA;AAAA,CAAC,CACJ,EAAC;AAEYI,IAAAA,iBAAiB,GAAG,SAApBA,iBAAiBA,GAAA;AAAA,EAAA,OAAS1B,iBAAiB,CAAC2B,UAAI,CAAC,WAAW,CAAC,CAAC,CAAA;AAAA;;;;;"}
|