@wix/vibe-forms-app-plugin 0.28.0 → 0.30.0
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/index.cjs +11 -6
- package/dist/index.cjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1076,7 +1076,7 @@ createEventModule(
|
|
|
1076
1076
|
onInteractiveFormSessionCreated
|
|
1077
1077
|
);
|
|
1078
1078
|
|
|
1079
|
-
// ../../../node_modules/@wix/
|
|
1079
|
+
// ../../../node_modules/@wix/auto_sdk_forms_forms/build/es/index.mjs
|
|
1080
1080
|
var es_exports = {};
|
|
1081
1081
|
__export(es_exports, {
|
|
1082
1082
|
AddressInfoTag: () => AddressInfoTag,
|
|
@@ -1256,7 +1256,7 @@ function transformRESTImageToSDKImage(payload) {
|
|
|
1256
1256
|
return payload.id ? `wix:image://v1/${payload.id}${fileNameOrAltText}#originWidth=${payload.width}&originHeight=${payload.height}` : payload.url;
|
|
1257
1257
|
}
|
|
1258
1258
|
|
|
1259
|
-
// ../../../node_modules/@wix/
|
|
1259
|
+
// ../../../node_modules/@wix/auto_sdk_forms_forms/build/es/index.mjs
|
|
1260
1260
|
function resolveWixFormsV4FormSchemaServiceUrl(opts) {
|
|
1261
1261
|
const domainToMappings = {
|
|
1262
1262
|
"api._api_base_domain_": [
|
|
@@ -157888,7 +157888,7 @@ var onFormTranslationDeleted2 = createEventModule(
|
|
|
157888
157888
|
);
|
|
157889
157889
|
var onFormUpdated2 = createEventModule(onFormUpdated);
|
|
157890
157890
|
|
|
157891
|
-
// ../../../node_modules/@wix/
|
|
157891
|
+
// ../../../node_modules/@wix/auto_sdk_forms_submissions/build/es/index.mjs
|
|
157892
157892
|
var onSubmissionCreated = EventDefinition(
|
|
157893
157893
|
"wix.forms.v4.submission_created",
|
|
157894
157894
|
true,
|
|
@@ -158931,13 +158931,13 @@ var callWixAPI = async ({
|
|
|
158931
158931
|
env.logger.warn("[wix-apis] WIX_TOKEN is not set");
|
|
158932
158932
|
}
|
|
158933
158933
|
try {
|
|
158934
|
+
const bodyString = method === "GET" ? void 0 : JSON.stringify(body);
|
|
158934
158935
|
env.logger.debug("[wix-apis] Calling Wix API...", {
|
|
158935
158936
|
url,
|
|
158936
158937
|
method,
|
|
158937
158938
|
additionalHeaders,
|
|
158938
158939
|
hasWixToken: !!env.WIX_TOKEN,
|
|
158939
|
-
|
|
158940
|
-
wixTokenLength: env.WIX_TOKEN?.length || 0
|
|
158940
|
+
body: bodyString
|
|
158941
158941
|
});
|
|
158942
158942
|
const response = await fetch(url, {
|
|
158943
158943
|
method,
|
|
@@ -158946,7 +158946,12 @@ var callWixAPI = async ({
|
|
|
158946
158946
|
Authorization: env.WIX_TOKEN,
|
|
158947
158947
|
...additionalHeaders
|
|
158948
158948
|
},
|
|
158949
|
-
...method === "GET" ? {} : { body:
|
|
158949
|
+
...method === "GET" ? {} : { body: bodyString }
|
|
158950
|
+
});
|
|
158951
|
+
env.logger.debug("[wix-apis] Wix API response...", {
|
|
158952
|
+
url,
|
|
158953
|
+
method,
|
|
158954
|
+
response
|
|
158950
158955
|
});
|
|
158951
158956
|
return await handleWixAPIResponse(response, env.logger, {
|
|
158952
158957
|
url,
|