@wix/headless-forms 0.0.34 → 0.0.36
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.
|
@@ -139,7 +139,7 @@ exports.FormService = services_definitions_1.implementService.withConfig()(expor
|
|
|
139
139
|
const formId = form._id ? form._id : form.id;
|
|
140
140
|
submitResponseSignal.set({ type: 'loading' });
|
|
141
141
|
try {
|
|
142
|
-
const handler =
|
|
142
|
+
const handler = config.onSubmit ?? defaultSubmitHandler;
|
|
143
143
|
const response = await handler(formId, formValuesSignal.get());
|
|
144
144
|
submitResponseSignal.set(response);
|
|
145
145
|
}
|
|
@@ -135,7 +135,7 @@ export const FormService = implementService.withConfig()(FormServiceDefinition,
|
|
|
135
135
|
const formId = form._id ? form._id : form.id;
|
|
136
136
|
submitResponseSignal.set({ type: 'loading' });
|
|
137
137
|
try {
|
|
138
|
-
const handler =
|
|
138
|
+
const handler = config.onSubmit ?? defaultSubmitHandler;
|
|
139
139
|
const response = await handler(formId, formValuesSignal.get());
|
|
140
140
|
submitResponseSignal.set(response);
|
|
141
141
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/headless-forms",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"build:watch": "tsc -p tsconfig.json --watch",
|
|
11
11
|
"test": "vitest",
|
|
12
12
|
"lint:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
|
|
13
|
-
"lint:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,md}\""
|
|
13
|
+
"lint:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
|
|
14
|
+
"test:cjs-esm": "npx @wix/cjs-esm-verifier"
|
|
14
15
|
},
|
|
15
16
|
"lint-staged": {
|
|
16
17
|
"*.{js,jsx,ts,tsx}": "yarn lint:fix"
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
"@testing-library/react": "^16.3.0",
|
|
40
41
|
"@types/node": "^20.9.0",
|
|
41
42
|
"@vitest/ui": "^3.1.4",
|
|
43
|
+
"@wix/cjs-esm-verifier": "1.0.0",
|
|
42
44
|
"jsdom": "^26.1.0",
|
|
43
45
|
"prettier": "^3.4.2",
|
|
44
46
|
"typescript": "^5.8.3",
|
|
@@ -47,7 +49,7 @@
|
|
|
47
49
|
"dependencies": {
|
|
48
50
|
"@wix/form-public": "^0.124.0",
|
|
49
51
|
"@wix/forms": "^1.0.373",
|
|
50
|
-
"@wix/headless-utils": "0.0.
|
|
52
|
+
"@wix/headless-utils": "0.0.9",
|
|
51
53
|
"@wix/services-definitions": "^1.0.1",
|
|
52
54
|
"@wix/services-manager-react": "^1.0.3",
|
|
53
55
|
"react-aria-components": "^1.13.0"
|
|
@@ -62,5 +64,5 @@
|
|
|
62
64
|
"groupId": "com.wixpress.headless-components"
|
|
63
65
|
}
|
|
64
66
|
},
|
|
65
|
-
"falconPackageHash": "
|
|
67
|
+
"falconPackageHash": "a3dd105cf96a24540abc5e0433ec29c5b82fc8fb73b0a048623c8058"
|
|
66
68
|
}
|