@zonos/elements 1.3.258 → 1.3.259
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/cjs/index.cjs.js +7 -7
- package/dist/cjs/zonos-checkout.cjs.entry.js +439 -14
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +72 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +6 -6
- package/dist/collection/components/utils/checkout/bigcommerceStorefrontApi.js +6 -0
- package/dist/collection/components/utils/checkout/buildBigcommerceLoginUrl.js +65 -0
- package/dist/collection/components/utils/checkout/checkBigCommerceBypassCustomerGroup.js +12 -7
- package/dist/collection/components/utils/checkout/checkBigCommerceForceLogin.js +116 -0
- package/dist/collection/components/utils/checkout/fetchBigCommerceCheckoutSettings.js +92 -0
- package/dist/collection/components/utils/checkout/fixBigCommerceLoginCreateAccountLink.js +53 -0
- package/dist/collection/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.js +40 -7
- package/dist/collection/types/checkout/api/BigCommerceCheckoutSettings.js +1 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +2 -0
- package/dist/collection/types/generated/graphql.internal.types.js +39 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/index.js +7 -7
- package/dist/esm/zonos-checkout.entry.js +440 -15
- package/dist/esm/zonos-hello-dialog.entry.js +6 -6
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/scripts/index.d.ts +21 -5
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +16 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/checkout/bigcommerceStorefrontApi.d.ts +6 -0
- package/dist/types/components/utils/checkout/buildBigcommerceLoginUrl.d.ts +27 -0
- package/dist/types/components/utils/checkout/checkBigCommerceBypassCustomerGroup.d.ts +12 -0
- package/dist/types/components/utils/checkout/checkBigCommerceForceLogin.d.ts +50 -0
- package/dist/types/components/utils/checkout/fetchBigCommerceCheckoutSettings.d.ts +18 -0
- package/dist/types/components/utils/checkout/fixBigCommerceLoginCreateAccountLink.d.ts +17 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +6 -5
- package/dist/types/types/checkout/CheckoutConfig.d.ts +9 -0
- package/dist/types/types/checkout/api/BigCommerceCheckoutSettings.d.ts +12 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +3 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +3 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +58 -9
- package/dist/types/types/generated/graphql.internal.types.ts +69 -9
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/p-439dc620.system.entry.js +1 -0
- package/dist/zonos-elements/{p-5182e492.entry.js → p-9cbac993.entry.js} +1 -1
- package/dist/zonos-elements/{p-867d05d7.system.js → p-cc645667.system.js} +1 -1
- package/dist/zonos-elements/p-d13120f6.entry.js +1 -0
- package/dist/zonos-elements/{p-9c97671b.system.entry.js → p-f4e54f09.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-50b32476.system.entry.js +0 -1
- package/dist/zonos-elements/p-733f118d.entry.js +0 -1
|
@@ -35,6 +35,7 @@ export const featureAspectKeyEnum = {
|
|
|
35
35
|
NewCheckoutBeta: 'new_checkout_beta',
|
|
36
36
|
NewPayoutReport: 'new_payout_report',
|
|
37
37
|
NewRefundsUx: 'new_refunds_ux',
|
|
38
|
+
OnboardingBeta: 'onboarding_beta',
|
|
38
39
|
PageAuditor: 'page_auditor',
|
|
39
40
|
PromptExplorer: 'prompt_explorer',
|
|
40
41
|
RulesUiCreate: 'rules_ui_create',
|
|
@@ -67,6 +68,7 @@ export const featureAudienceNameEnum = {
|
|
|
67
68
|
NewPayoutReportMerchant: 'new_payout_report_merchant',
|
|
68
69
|
NewRefundsUxMerchant: 'new_refunds_ux_merchant',
|
|
69
70
|
Onboarding: 'onboarding',
|
|
71
|
+
OnboardingBetaMerchant: 'onboarding_beta_merchant',
|
|
70
72
|
PrincipalEngineer: 'principal_engineer',
|
|
71
73
|
ProServeHead: 'pro_serve_head',
|
|
72
74
|
ProductManager: 'product_manager',
|
|
@@ -1701,6 +1701,19 @@ export const customsDocumentType = {
|
|
|
1701
1701
|
ShippersLetterOfInstruction: 'SHIPPERS_LETTER_OF_INSTRUCTION',
|
|
1702
1702
|
UsmcaCertificate: 'USMCA_CERTIFICATE',
|
|
1703
1703
|
};
|
|
1704
|
+
export const customsHoldReason = {
|
|
1705
|
+
Abandonment: 'ABANDONMENT',
|
|
1706
|
+
Confiscated: 'CONFISCATED',
|
|
1707
|
+
DutyNonpayment: 'DUTY_NONPAYMENT',
|
|
1708
|
+
Examination: 'EXAMINATION',
|
|
1709
|
+
GoodsNotCompliant: 'GOODS_NOT_COMPLIANT',
|
|
1710
|
+
GovernmentHold: 'GOVERNMENT_HOLD',
|
|
1711
|
+
MissingData: 'MISSING_DATA',
|
|
1712
|
+
MissingDocs: 'MISSING_DOCS',
|
|
1713
|
+
RefusedEntry: 'REFUSED_ENTRY',
|
|
1714
|
+
SecurityFail: 'SECURITY_FAIL',
|
|
1715
|
+
Unknown: 'UNKNOWN',
|
|
1716
|
+
};
|
|
1704
1717
|
export const customsIntelBucketGranularity = {
|
|
1705
1718
|
Day: 'DAY',
|
|
1706
1719
|
Hour: 'HOUR',
|
|
@@ -1767,6 +1780,13 @@ export const customsSpecSourceType = {
|
|
|
1767
1780
|
Classify: 'CLASSIFY',
|
|
1768
1781
|
OrganizationSetting: 'ORGANIZATION_SETTING',
|
|
1769
1782
|
};
|
|
1783
|
+
export const customsStage = {
|
|
1784
|
+
CustomsCleared: 'CUSTOMS_CLEARED',
|
|
1785
|
+
CustomsFailed: 'CUSTOMS_FAILED',
|
|
1786
|
+
CustomsHold: 'CUSTOMS_HOLD',
|
|
1787
|
+
InCustoms: 'IN_CUSTOMS',
|
|
1788
|
+
PreCustoms: 'PRE_CUSTOMS',
|
|
1789
|
+
};
|
|
1770
1790
|
export const dashboardUnit = {
|
|
1771
1791
|
Imperial: 'IMPERIAL',
|
|
1772
1792
|
Metric: 'METRIC',
|
|
@@ -2031,6 +2051,7 @@ export const entryStatus = {
|
|
|
2031
2051
|
Archived: 'ARCHIVED',
|
|
2032
2052
|
Draft: 'DRAFT',
|
|
2033
2053
|
Error: 'ERROR',
|
|
2054
|
+
Filed: 'FILED',
|
|
2034
2055
|
Rejected: 'REJECTED',
|
|
2035
2056
|
Submitted: 'SUBMITTED',
|
|
2036
2057
|
};
|
|
@@ -2045,6 +2066,7 @@ export const errorDetail = {
|
|
|
2045
2066
|
TcpFailure: 'TCP_FAILURE',
|
|
2046
2067
|
ThrottledConcurrency: 'THROTTLED_CONCURRENCY',
|
|
2047
2068
|
ThrottledCpu: 'THROTTLED_CPU',
|
|
2069
|
+
TooManyRequests: 'TOO_MANY_REQUESTS',
|
|
2048
2070
|
Unimplemented: 'UNIMPLEMENTED',
|
|
2049
2071
|
Unknown: 'UNKNOWN',
|
|
2050
2072
|
};
|
|
@@ -2131,6 +2153,10 @@ export const helloCountryDisplayBehavior = {
|
|
|
2131
2153
|
All: 'ALL',
|
|
2132
2154
|
OnlyShippable: 'ONLY_SHIPPABLE',
|
|
2133
2155
|
};
|
|
2156
|
+
export const helloCountryOverrideBehavior = {
|
|
2157
|
+
Session: 'SESSION',
|
|
2158
|
+
UrlParam: 'URL_PARAM',
|
|
2159
|
+
};
|
|
2134
2160
|
export const helloCurrencyBehavior = {
|
|
2135
2161
|
Disabled: 'DISABLED',
|
|
2136
2162
|
Enabled: 'ENABLED',
|
|
@@ -4487,6 +4513,11 @@ export const reverseAmountType = {
|
|
|
4487
4513
|
Tax: 'TAX',
|
|
4488
4514
|
TaxFee: 'TAX_FEE',
|
|
4489
4515
|
};
|
|
4516
|
+
export const riskLevel = {
|
|
4517
|
+
High: 'HIGH',
|
|
4518
|
+
Low: 'LOW',
|
|
4519
|
+
Medium: 'MEDIUM',
|
|
4520
|
+
};
|
|
4490
4521
|
export const roundingMethod = {
|
|
4491
4522
|
Custom: 'CUSTOM',
|
|
4492
4523
|
Hundredth: 'HUNDREDTH',
|
|
@@ -4685,6 +4716,9 @@ export const shipmentPackagingTypeCode = {
|
|
|
4685
4716
|
Ups_25KgBox: 'UPS_25KG_BOX',
|
|
4686
4717
|
YourPackaging: 'YOUR_PACKAGING',
|
|
4687
4718
|
};
|
|
4719
|
+
export const shipmentRatingAdjustmentType = {
|
|
4720
|
+
CartTotal: 'CART_TOTAL',
|
|
4721
|
+
};
|
|
4688
4722
|
export const shipmentRatingAmountTargetType = {
|
|
4689
4723
|
BillingCompany: 'BILLING_COMPANY',
|
|
4690
4724
|
MerchantBase: 'MERCHANT_BASE',
|
|
@@ -5188,6 +5222,11 @@ export const volumeUnitCode = {
|
|
|
5188
5222
|
QuartUk: 'QUART_UK',
|
|
5189
5223
|
QuartUsDry: 'QUART_US_DRY',
|
|
5190
5224
|
};
|
|
5225
|
+
export const watchStatus = {
|
|
5226
|
+
Active: 'ACTIVE',
|
|
5227
|
+
Completed: 'COMPLETED',
|
|
5228
|
+
Expired: 'EXPIRED',
|
|
5229
|
+
};
|
|
5191
5230
|
export const wcoVersion = {
|
|
5192
5231
|
Wco_1997: 'WCO_1997',
|
|
5193
5232
|
Wco_2002: 'WCO_2002',
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
2
2
|
import "./global.d";
|
|
3
3
|
export * from '../components.d';
|
|
4
|
+
export * from './checkout/api/BigCommerceCheckoutSettings';
|
|
4
5
|
export * from './checkout/api/CalculateLandedCost';
|
|
5
6
|
export * from './checkout/api/CheckoutSession';
|
|
6
7
|
export * from './checkout/api/CreateParty';
|
package/dist/esm/index.js
CHANGED
|
@@ -131,7 +131,7 @@ const getZonosQaUrl = () => {
|
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
133
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
134
|
-
const cdnUrl = "https://v1.3.
|
|
134
|
+
const cdnUrl = "https://v1.3.259.js.zonos.com";
|
|
135
135
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
136
136
|
if (!qaUrl &&
|
|
137
137
|
(cdnUrl.includes('test.') ||
|
|
@@ -379,10 +379,10 @@ const zonosLoadUrl = (() => {
|
|
|
379
379
|
return null;
|
|
380
380
|
})();
|
|
381
381
|
const startLoadTime = Date.now();
|
|
382
|
-
const ZONOS_URL = "https://v1.3.
|
|
383
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
384
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
385
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
382
|
+
const ZONOS_URL = "https://v1.3.259.js.zonos.com";
|
|
383
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.259";
|
|
384
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.259";
|
|
385
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.259";
|
|
386
386
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
387
387
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
388
388
|
class Zonos {
|
|
@@ -400,7 +400,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
|
|
|
400
400
|
? new URLSearchParams(window.location.search).get('iframeLogType')
|
|
401
401
|
: null;
|
|
402
402
|
Zonos.isBigCommerce = false;
|
|
403
|
-
Zonos.releaseDate = "
|
|
403
|
+
Zonos.releaseDate = "1776888320252";
|
|
404
404
|
Zonos.isLegacyCheckout = false;
|
|
405
405
|
Zonos.googleAnalyticId = null;
|
|
406
406
|
Zonos.googleAnalyticReady = false;
|
|
@@ -423,7 +423,7 @@ Zonos.isNpm = true;
|
|
|
423
423
|
Zonos.zonosQaUrl = null;
|
|
424
424
|
Zonos.zonosQaUrlApi = null;
|
|
425
425
|
Zonos.trackEventLogs = [];
|
|
426
|
-
Zonos.version = `v${"1.3.
|
|
426
|
+
Zonos.version = `v${"1.3.259"}`;
|
|
427
427
|
Zonos.modeAlerted = false;
|
|
428
428
|
Zonos.cartData = null;
|
|
429
429
|
Zonos.paypal = null;
|