@foxy.io/elements 1.47.0-beta.1 → 1.47.0-beta.3
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/cdn/foxy-native-integration-form.js +1 -1
- package/dist/cdn/foxy-store-form.js +1 -1
- package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
- package/dist/cdn/foxy-webhook-card.js +1 -1
- package/dist/cdn/foxy-webhook-form.js +1 -1
- package/dist/cdn/shared-589d66fe.js +1 -0
- package/dist/cdn/translations/admin-subscription-form/en.json +16 -16
- package/dist/cdn/translations/api-browser/en.json +1 -1
- package/dist/cdn/translations/cart-form/en.json +13 -13
- package/dist/cdn/translations/coupon-code-form/en.json +1 -1
- package/dist/cdn/translations/coupon-form/en.json +4 -4
- package/dist/cdn/translations/customer/en.json +4 -4
- package/dist/cdn/translations/customer-portal/en.json +2 -2
- package/dist/cdn/translations/customer-portal-settings-form/en.json +2 -2
- package/dist/cdn/translations/experimental-add-to-cart-builder/en.json +4 -4
- package/dist/cdn/translations/gift-card-code-form/en.json +2 -2
- package/dist/cdn/translations/gift-card-form/en.json +5 -5
- package/dist/cdn/translations/item-category-form/en.json +7 -7
- package/dist/cdn/translations/item-form/en.json +5 -5
- package/dist/cdn/translations/native-integration-form/en.json +2 -2
- package/dist/cdn/translations/pagination/en.json +1 -1
- package/dist/cdn/translations/payment-method-card/en.json +1 -1
- package/dist/cdn/translations/store-shipping-method-form/en.json +4 -4
- package/dist/cdn/translations/subscription-form/en.json +3 -3
- package/dist/cdn/translations/tax-form/en.json +2 -2
- package/dist/cdn/translations/template-config-form/en.json +21 -21
- package/dist/cdn/translations/template-set-form/en.json +1 -1
- package/dist/cdn/translations/transaction/en.json +14 -14
- package/dist/cdn/translations/update-payment-method-form/en.json +1 -1
- package/dist/cdn/translations/webhook-form/en.json +5 -3
- package/dist/elements/public/NativeIntegrationForm/NativeIntegrationForm.js +5 -12
- package/dist/elements/public/NativeIntegrationForm/NativeIntegrationForm.js.map +1 -1
- package/dist/elements/public/StoreForm/StoreForm.js +2 -10
- package/dist/elements/public/StoreForm/StoreForm.js.map +1 -1
- package/dist/elements/public/StoreShippingMethodForm/StoreShippingMethodForm.js +2 -10
- package/dist/elements/public/StoreShippingMethodForm/StoreShippingMethodForm.js.map +1 -1
- package/dist/elements/public/WebhookCard/WebhookCard.js +8 -5
- package/dist/elements/public/WebhookCard/WebhookCard.js.map +1 -1
- package/dist/elements/public/WebhookForm/WebhookForm.js +1 -0
- package/dist/elements/public/WebhookForm/WebhookForm.js.map +1 -1
- package/dist/utils/is-http-url.d.ts +1 -0
- package/dist/utils/is-http-url.js +19 -0
- package/dist/utils/is-http-url.js.map +1 -0
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
40
40
|
"previous": "Previous",
|
|
41
41
|
"page_number": "Page number:",
|
|
42
|
-
"select": "Select
|
|
42
|
+
"select": "Select",
|
|
43
43
|
"per_page": "Items per page:",
|
|
44
44
|
"card": {
|
|
45
45
|
"image_alt": "Shipping method logo",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
86
86
|
"previous": "Previous",
|
|
87
87
|
"page_number": "Page number:",
|
|
88
|
-
"select": "Select
|
|
88
|
+
"select": "Select",
|
|
89
89
|
"per_page": "Items per page:",
|
|
90
90
|
"card": {
|
|
91
91
|
"subtitle": "Code: {{ code }}",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
128
128
|
"previous": "Previous",
|
|
129
129
|
"page_number": "Page number:",
|
|
130
|
-
"select": "Select
|
|
130
|
+
"select": "Select",
|
|
131
131
|
"per_page": "Items per page:",
|
|
132
132
|
"card": {
|
|
133
133
|
"subtitle": "Code: {{ code }}",
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
224
224
|
"previous": "Previous",
|
|
225
225
|
"page_number": "Page number:",
|
|
226
|
-
"select": "Select
|
|
226
|
+
"select": "Select",
|
|
227
227
|
"per_page": "Items per page:",
|
|
228
228
|
"card": {
|
|
229
229
|
"subtitle": "Code: {{ code }}",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
94
94
|
"previous": "Previous",
|
|
95
95
|
"page_number": "Page number:",
|
|
96
|
-
"select": "Select
|
|
96
|
+
"select": "Select",
|
|
97
97
|
"per_page": "Items per page:",
|
|
98
98
|
"card": {
|
|
99
99
|
"delete_button_text": "Remove",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
145
145
|
"previous": "Previous",
|
|
146
146
|
"page_number": "Page number:",
|
|
147
|
-
"select": "Select
|
|
147
|
+
"select": "Select",
|
|
148
148
|
"per_page": "Items per page:",
|
|
149
149
|
"card": {
|
|
150
150
|
"daily": "Daily",
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
179
179
|
"previous": "Previous",
|
|
180
180
|
"page_number": "Page number:",
|
|
181
|
-
"select": "Select
|
|
181
|
+
"select": "Select",
|
|
182
182
|
"per_page": "Items per page:",
|
|
183
183
|
"card": {
|
|
184
184
|
"code": "Code",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
146
146
|
"previous": "Previous",
|
|
147
147
|
"page_number": "Page number:",
|
|
148
|
-
"select": "Select
|
|
148
|
+
"select": "Select",
|
|
149
149
|
"per_page": "Items per page:"
|
|
150
150
|
}
|
|
151
151
|
},
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
162
162
|
"previous": "Previous",
|
|
163
163
|
"page_number": "Page number:",
|
|
164
|
-
"select": "Select
|
|
164
|
+
"select": "Select",
|
|
165
165
|
"per_page": "Items per page:",
|
|
166
166
|
"card": {
|
|
167
167
|
"spinner": {
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"location-filtering-usage": {
|
|
141
141
|
"label": "Countries and regions filtering",
|
|
142
142
|
"helper_text": "",
|
|
143
|
-
"placeholder": "Select
|
|
143
|
+
"placeholder": "Select",
|
|
144
144
|
"option_none": "Allow all",
|
|
145
145
|
"option_shipping": "Shipping only",
|
|
146
146
|
"option_billing": "Billing only",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"location-filtering-filter-type": {
|
|
157
157
|
"label": "Filter type",
|
|
158
158
|
"helper_text": "",
|
|
159
|
-
"placeholder": "Select
|
|
159
|
+
"placeholder": "Select",
|
|
160
160
|
"option_blocklist": "Disallow only listed below",
|
|
161
161
|
"option_allowlist": "Allow only listed below"
|
|
162
162
|
},
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
"location-filtering-shipping-filter-type": {
|
|
174
174
|
"label": "Shipping filter type",
|
|
175
175
|
"helper_text": "",
|
|
176
|
-
"placeholder": "Select
|
|
176
|
+
"placeholder": "Select",
|
|
177
177
|
"option_blocklist": "Disallow only listed below",
|
|
178
178
|
"option_allowlist": "Allow only listed below"
|
|
179
179
|
},
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
"location-filtering-billing-filter-type": {
|
|
191
191
|
"label": "Billing filter type",
|
|
192
192
|
"helper_text": "",
|
|
193
|
-
"placeholder": "Select
|
|
193
|
+
"placeholder": "Select",
|
|
194
194
|
"option_blocklist": "Disallow only listed below",
|
|
195
195
|
"option_allowlist": "Allow only listed below"
|
|
196
196
|
},
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
"csc-requirements": {
|
|
213
213
|
"label": "Require CSC/CVC/CVV for",
|
|
214
214
|
"helper_text": "",
|
|
215
|
-
"placeholder": "Select
|
|
215
|
+
"placeholder": "Select",
|
|
216
216
|
"option_all_cards": "All new and saved cards",
|
|
217
217
|
"option_sso_only": "New cards and SSO customers only",
|
|
218
218
|
"option_new_cards_only": "New cards only"
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"checkout-type-account": {
|
|
225
225
|
"label": "Allowed account types",
|
|
226
226
|
"helper_text": "If you allow only guest accounts, your store will not be able to use subscriptions.",
|
|
227
|
-
"placeholder": "Select
|
|
227
|
+
"placeholder": "Select",
|
|
228
228
|
"option_guest": "Only guest",
|
|
229
229
|
"option_account": "Only registered",
|
|
230
230
|
"option_both": "Guest and registered"
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
"checkout-type-default": {
|
|
233
233
|
"label": "Default behaviour",
|
|
234
234
|
"helper_text": "",
|
|
235
|
-
"placeholder": "Select
|
|
235
|
+
"placeholder": "Select",
|
|
236
236
|
"option_default_guest": "Checkout as guest",
|
|
237
237
|
"option_default_account": "Ask to log in or sign up"
|
|
238
238
|
}
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
"tos-checkbox-settings-usage": {
|
|
244
244
|
"label": "Terms of Service checkbox",
|
|
245
245
|
"helper_text": "This displays a checkbox on your checkout to require customers to agree to your terms of service.",
|
|
246
|
-
"placeholder": "Select
|
|
246
|
+
"placeholder": "Select",
|
|
247
247
|
"option_none": "None",
|
|
248
248
|
"option_optional": "Optional",
|
|
249
249
|
"option_required": "Required"
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
"tos-checkbox-settings-initial-state": {
|
|
257
257
|
"label": "Initial state",
|
|
258
258
|
"helper_text": "",
|
|
259
|
-
"placeholder": "Select
|
|
259
|
+
"placeholder": "Select",
|
|
260
260
|
"option_checked": "Checked",
|
|
261
261
|
"option_unchecked": "Unchecked"
|
|
262
262
|
},
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
"custom-checkout-field-requirements-billing-address-one": {
|
|
304
304
|
"label": "Address 1",
|
|
305
305
|
"helper_text": "",
|
|
306
|
-
"placeholder": "Select
|
|
306
|
+
"placeholder": "Select",
|
|
307
307
|
"option_optional": "Optional",
|
|
308
308
|
"option_required": "Required",
|
|
309
309
|
"option_default": "Default",
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
"custom-checkout-field-requirements-billing-address-two": {
|
|
313
313
|
"label": "Address 2",
|
|
314
314
|
"helper_text": "",
|
|
315
|
-
"placeholder": "Select
|
|
315
|
+
"placeholder": "Select",
|
|
316
316
|
"option_optional": "Optional",
|
|
317
317
|
"option_required": "Required",
|
|
318
318
|
"option_default": "Default",
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
"custom-checkout-field-requirements-billing-city": {
|
|
322
322
|
"label": "City",
|
|
323
323
|
"helper_text": "",
|
|
324
|
-
"placeholder": "Select
|
|
324
|
+
"placeholder": "Select",
|
|
325
325
|
"option_optional": "Optional",
|
|
326
326
|
"option_required": "Required",
|
|
327
327
|
"option_default": "Default",
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
"custom-checkout-field-requirements-billing-region": {
|
|
331
331
|
"label": "Region",
|
|
332
332
|
"helper_text": "",
|
|
333
|
-
"placeholder": "Select
|
|
333
|
+
"placeholder": "Select",
|
|
334
334
|
"option_optional": "Optional",
|
|
335
335
|
"option_required": "Required",
|
|
336
336
|
"option_default": "Default",
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
"custom-checkout-field-requirements-billing-postal-code": {
|
|
340
340
|
"label": "Postal code",
|
|
341
341
|
"helper_text": "",
|
|
342
|
-
"placeholder": "Select
|
|
342
|
+
"placeholder": "Select",
|
|
343
343
|
"option_optional": "Optional",
|
|
344
344
|
"option_required": "Required",
|
|
345
345
|
"option_default": "Default",
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
"custom-checkout-field-requirements-billing-country": {
|
|
349
349
|
"label": "Country",
|
|
350
350
|
"helper_text": "",
|
|
351
|
-
"placeholder": "Select
|
|
351
|
+
"placeholder": "Select",
|
|
352
352
|
"option_optional": "Optional",
|
|
353
353
|
"option_required": "Required",
|
|
354
354
|
"option_default": "Default",
|
|
@@ -361,14 +361,14 @@
|
|
|
361
361
|
"custom-checkout-field-requirements-coupon-entry": {
|
|
362
362
|
"label": "Coupon code",
|
|
363
363
|
"helper_text": "",
|
|
364
|
-
"placeholder": "Select
|
|
364
|
+
"placeholder": "Select",
|
|
365
365
|
"option_enabled": "Optional",
|
|
366
366
|
"option_disabled": "Hidden"
|
|
367
367
|
},
|
|
368
368
|
"custom-checkout-field-requirements-billing-first-name": {
|
|
369
369
|
"label": "First name",
|
|
370
370
|
"helper_text": "",
|
|
371
|
-
"placeholder": "Select
|
|
371
|
+
"placeholder": "Select",
|
|
372
372
|
"option_optional": "Optional",
|
|
373
373
|
"option_required": "Required",
|
|
374
374
|
"option_default": "Default",
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
"custom-checkout-field-requirements-billing-last-name": {
|
|
378
378
|
"label": "Last name",
|
|
379
379
|
"helper_text": "",
|
|
380
|
-
"placeholder": "Select
|
|
380
|
+
"placeholder": "Select",
|
|
381
381
|
"option_optional": "Optional",
|
|
382
382
|
"option_required": "Required",
|
|
383
383
|
"option_default": "Default",
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
"custom-checkout-field-requirements-billing-company": {
|
|
387
387
|
"label": "Company",
|
|
388
388
|
"helper_text": "",
|
|
389
|
-
"placeholder": "Select
|
|
389
|
+
"placeholder": "Select",
|
|
390
390
|
"option_optional": "Optional",
|
|
391
391
|
"option_required": "Required",
|
|
392
392
|
"option_default": "Default",
|
|
@@ -395,7 +395,7 @@
|
|
|
395
395
|
"custom-checkout-field-requirements-billing-tax-id": {
|
|
396
396
|
"label": "Tax ID",
|
|
397
397
|
"helper_text": "",
|
|
398
|
-
"placeholder": "Select
|
|
398
|
+
"placeholder": "Select",
|
|
399
399
|
"option_optional": "Optional",
|
|
400
400
|
"option_required": "Required",
|
|
401
401
|
"option_default": "Default",
|
|
@@ -404,7 +404,7 @@
|
|
|
404
404
|
"custom-checkout-field-requirements-billing-phone": {
|
|
405
405
|
"label": "Phone",
|
|
406
406
|
"helper_text": "",
|
|
407
|
-
"placeholder": "Select
|
|
407
|
+
"placeholder": "Select",
|
|
408
408
|
"option_optional": "Optional",
|
|
409
409
|
"option_required": "Required",
|
|
410
410
|
"option_default": "Default",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
67
67
|
"previous": "Previous",
|
|
68
68
|
"page_number": "Page number:",
|
|
69
|
-
"select": "Select
|
|
69
|
+
"select": "Select",
|
|
70
70
|
"per_page": "Items per page:",
|
|
71
71
|
"card": {
|
|
72
72
|
"delete_button_text": "Remove",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
166
166
|
"previous": "Previous",
|
|
167
167
|
"page_number": "Page number:",
|
|
168
|
-
"select": "Select
|
|
168
|
+
"select": "Select",
|
|
169
169
|
"per_page": "Items per page:",
|
|
170
170
|
"card": {
|
|
171
171
|
"spinner": {
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
319
319
|
"previous": "Previous",
|
|
320
320
|
"page_number": "Page number:",
|
|
321
|
-
"select": "Select
|
|
321
|
+
"select": "Select",
|
|
322
322
|
"per_page": "Items per page:",
|
|
323
323
|
"card": {
|
|
324
324
|
"spinner": {
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
339
339
|
"previous": "Previous",
|
|
340
340
|
"page_number": "Page number:",
|
|
341
|
-
"select": "Select
|
|
341
|
+
"select": "Select",
|
|
342
342
|
"per_page": "Items per page:",
|
|
343
343
|
"card": {
|
|
344
344
|
"spinner": {
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
449
449
|
"previous": "Previous",
|
|
450
450
|
"page_number": "Page number:",
|
|
451
|
-
"select": "Select
|
|
451
|
+
"select": "Select",
|
|
452
452
|
"per_page": "Items per page:"
|
|
453
453
|
}
|
|
454
454
|
},
|
|
@@ -560,7 +560,7 @@
|
|
|
560
560
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
561
561
|
"previous": "Previous",
|
|
562
562
|
"page_number": "Page number:",
|
|
563
|
-
"select": "Select
|
|
563
|
+
"select": "Select",
|
|
564
564
|
"per_page": "Items per page:"
|
|
565
565
|
}
|
|
566
566
|
},
|
|
@@ -678,7 +678,7 @@
|
|
|
678
678
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
679
679
|
"previous": "Previous",
|
|
680
680
|
"page_number": "Page number:",
|
|
681
|
-
"select": "Select
|
|
681
|
+
"select": "Select",
|
|
682
682
|
"per_page": "Items per page:",
|
|
683
683
|
"card": {
|
|
684
684
|
"delete_button_text": "Remove",
|
|
@@ -781,7 +781,7 @@
|
|
|
781
781
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
782
782
|
"previous": "Previous",
|
|
783
783
|
"page_number": "Page number:",
|
|
784
|
-
"select": "Select
|
|
784
|
+
"select": "Select",
|
|
785
785
|
"per_page": "Items per page:",
|
|
786
786
|
"card": {
|
|
787
787
|
"delete_button_text": "Remove",
|
|
@@ -818,7 +818,7 @@
|
|
|
818
818
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
819
819
|
"previous": "Previous",
|
|
820
820
|
"page_number": "Page number:",
|
|
821
|
-
"select": "Select
|
|
821
|
+
"select": "Select",
|
|
822
822
|
"per_page": "Items per page:",
|
|
823
823
|
"card": {
|
|
824
824
|
"status_initializing": "Initializing",
|
|
@@ -843,7 +843,7 @@
|
|
|
843
843
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
844
844
|
"previous": "Previous",
|
|
845
845
|
"page_number": "Page number:",
|
|
846
|
-
"select": "Select
|
|
846
|
+
"select": "Select",
|
|
847
847
|
"per_page": "Items per page:",
|
|
848
848
|
"card": {
|
|
849
849
|
"date": "{{ value, date }} at {{ value, time }}",
|
|
@@ -875,7 +875,7 @@
|
|
|
875
875
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
876
876
|
"previous": "Previous",
|
|
877
877
|
"page_number": "Page number:",
|
|
878
|
-
"select": "Select
|
|
878
|
+
"select": "Select",
|
|
879
879
|
"per_page": "Items per page:",
|
|
880
880
|
"card": {
|
|
881
881
|
"status_initializing": "Last run: {{ date_created, date }} at {{ date_created, time }} • Initializing",
|
|
@@ -945,7 +945,7 @@
|
|
|
945
945
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
946
946
|
"previous": "Previous",
|
|
947
947
|
"page_number": "Page number:",
|
|
948
|
-
"select": "Select
|
|
948
|
+
"select": "Select",
|
|
949
949
|
"per_page": "Items per page:",
|
|
950
950
|
"card": {
|
|
951
951
|
"code": "Code",
|
|
@@ -1677,7 +1677,7 @@
|
|
|
1677
1677
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
1678
1678
|
"previous": "Previous",
|
|
1679
1679
|
"page_number": "Page number:",
|
|
1680
|
-
"select": "Select
|
|
1680
|
+
"select": "Select",
|
|
1681
1681
|
"per_page": "Items per page:",
|
|
1682
1682
|
"card": {
|
|
1683
1683
|
"full_address": "{{address1}} {{address2}} {{city}} {{region}} {{country}} {{postal_code}}",
|
|
@@ -1699,7 +1699,7 @@
|
|
|
1699
1699
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
1700
1700
|
"previous": "Previous",
|
|
1701
1701
|
"page_number": "Page number:",
|
|
1702
|
-
"select": "Select
|
|
1702
|
+
"select": "Select",
|
|
1703
1703
|
"per_page": "Items per page:",
|
|
1704
1704
|
"card": {
|
|
1705
1705
|
"full_address": "{{ address1 }} {{ address2 }} {{ city }} {{ region }} {{ postal_code }}",
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"subtitle_webflow": "Webflow webhook",
|
|
7
7
|
"subtitle_zapier": "Zapier webhook",
|
|
8
8
|
"subtitle_transaction": "Transaction webhook",
|
|
9
|
+
"subtitle_transaction_log": "Transaction log webhook",
|
|
9
10
|
"subtitle_subscription": "Subscription webhook",
|
|
10
11
|
"subtitle_customer": "Customer webhook",
|
|
11
12
|
"copy-id": {
|
|
@@ -45,7 +46,8 @@
|
|
|
45
46
|
"event-resource": {
|
|
46
47
|
"label": "Resource",
|
|
47
48
|
"helper_text": "",
|
|
48
|
-
"placeholder": "Select
|
|
49
|
+
"placeholder": "Select",
|
|
50
|
+
"event_resource_transaction_log": "Transaction log",
|
|
49
51
|
"event_resource_subscription": "Subscription",
|
|
50
52
|
"event_resource_transaction": "Transaction",
|
|
51
53
|
"event_resource_customer": "Customer"
|
|
@@ -82,7 +84,7 @@
|
|
|
82
84
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
83
85
|
"previous": "Previous",
|
|
84
86
|
"page_number": "Page number:",
|
|
85
|
-
"select": "Select
|
|
87
|
+
"select": "Select",
|
|
86
88
|
"per_page": "Items per page:",
|
|
87
89
|
"card": {
|
|
88
90
|
"status_initializing": "Initializing",
|
|
@@ -107,7 +109,7 @@
|
|
|
107
109
|
"pagination": "{{from}}-{{to}} out of {{total}}",
|
|
108
110
|
"previous": "Previous",
|
|
109
111
|
"page_number": "Page number:",
|
|
110
|
-
"select": "Select
|
|
112
|
+
"select": "Select",
|
|
111
113
|
"per_page": "Items per page:",
|
|
112
114
|
"card": {
|
|
113
115
|
"date": "{{ value, date }} at {{ value, time }}",
|
|
@@ -2,6 +2,7 @@ import { TranslatableMixin } from "../../../mixins/translatable.js";
|
|
|
2
2
|
import { BooleanSelector } from '@foxy.io/sdk/core';
|
|
3
3
|
import { InternalForm } from "../../internal/InternalForm/InternalForm.js";
|
|
4
4
|
import { ifDefined } from 'lit-html/directives/if-defined';
|
|
5
|
+
import { isHttpUrl } from "../../../utils/is-http-url.js";
|
|
5
6
|
import { html, svg } from 'lit-html';
|
|
6
7
|
import * as defaults from "./defaults.js";
|
|
7
8
|
import memoize from 'lodash-es/memoize';
|
|
@@ -72,18 +73,10 @@ export class NativeIntegrationForm extends Base {
|
|
|
72
73
|
}
|
|
73
74
|
static get v8n() {
|
|
74
75
|
const parse = memoize(JSON.parse);
|
|
75
|
-
const isURL = memoize((value) => {
|
|
76
|
-
try {
|
|
77
|
-
return Boolean(new URL(value));
|
|
78
|
-
}
|
|
79
|
-
catch (_a) {
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
76
|
return [
|
|
84
77
|
({ provider: p = 'avalara', config: c = '{}' }) => {
|
|
85
78
|
const url = parse(c).service_url;
|
|
86
|
-
const err = url ? (
|
|
79
|
+
const err = url ? (isHttpUrl(url) ? null : 'v8n_invalid') : 'v8n_required';
|
|
87
80
|
return p === 'avalara' && err ? `avalara-service-url:${err}` : true;
|
|
88
81
|
},
|
|
89
82
|
({ provider: p = 'avalara', config: c = '{}' }) => {
|
|
@@ -100,7 +93,7 @@ export class NativeIntegrationForm extends Base {
|
|
|
100
93
|
},
|
|
101
94
|
({ provider: p = 'avalara', config: c = '{}' }) => {
|
|
102
95
|
const url = parse(c).service_url;
|
|
103
|
-
const err = url ? (
|
|
96
|
+
const err = url ? (isHttpUrl(url) ? null : 'v8n_invalid') : 'v8n_required';
|
|
104
97
|
return p === 'onesource' && err ? `onesource-service-url:${err}` : true;
|
|
105
98
|
},
|
|
106
99
|
({ provider: p = 'avalara', config: c = '{}' }) => {
|
|
@@ -129,7 +122,7 @@ export class NativeIntegrationForm extends Base {
|
|
|
129
122
|
},
|
|
130
123
|
({ provider: p = 'avalara', config: c = '{}' }) => {
|
|
131
124
|
const { service: s, url: u } = parse(c);
|
|
132
|
-
const err = u ? (
|
|
125
|
+
const err = u ? (isHttpUrl(u) ? null : 'v8n_invalid') : 'v8n_required';
|
|
133
126
|
return p === 'webhook' && s === 'json' && err ? `webhook-json-url:${err}` : true;
|
|
134
127
|
},
|
|
135
128
|
({ provider: p = 'avalara', config: c = '{}' }) => {
|
|
@@ -139,7 +132,7 @@ export class NativeIntegrationForm extends Base {
|
|
|
139
132
|
},
|
|
140
133
|
({ provider: p = 'avalara', config: c = '{}' }) => {
|
|
141
134
|
const { service: s, url: u } = parse(c);
|
|
142
|
-
const err = u ? (
|
|
135
|
+
const err = u ? (isHttpUrl(u) ? null : 'v8n_invalid') : 'v8n_required';
|
|
143
136
|
const prefix = 'webhook-legacy-xml-url';
|
|
144
137
|
return p === 'webhook' && s === 'legacy_xml' && err ? `${prefix}:${err}` : true;
|
|
145
138
|
},
|