@nextblock-cms/ecom 0.12.11 → 0.12.13
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/index.cjs.js +1 -1
- package/index.d.ts +2 -0
- package/index.es.js +108 -106
- package/lib/components/Checkout.cjs.js +1 -1
- package/lib/components/Checkout.es.js +32 -33
- package/lib/components/FreemiusLicensePanel.cjs.js +1 -0
- package/lib/components/FreemiusLicensePanel.d.ts +6 -0
- package/lib/components/FreemiusLicensePanel.es.js +66 -0
- package/lib/components/InvoiceViewerShell.cjs.js +2 -2
- package/lib/components/InvoiceViewerShell.d.ts +3 -1
- package/lib/components/InvoiceViewerShell.es.js +13 -11
- package/lib/customer-orders.cjs.js +1 -1
- package/lib/customer-orders.d.ts +2 -0
- package/lib/customer-orders.es.js +30 -27
- package/lib/freemius-license-types.d.ts +19 -0
- package/lib/freemius-license.cjs.js +1 -0
- package/lib/freemius-license.d.ts +20 -0
- package/lib/freemius-license.es.js +41 -0
- package/lib/freemius-order-sync.cjs.js +1 -1
- package/lib/freemius-order-sync.es.js +62 -52
- package/lib/pages/cms/products/actions.cjs.js +1 -1
- package/lib/pages/cms/products/actions.es.js +1 -1
- package/lib/pages/cms/products/components/CurrencyPriceFields.cjs.js +1 -1
- package/lib/pages/cms/products/components/CurrencyPriceFields.es.js +104 -62
- package/lib/product-actions.cjs.js +3 -3
- package/lib/product-actions.d.ts +2 -1
- package/lib/product-actions.es.js +50 -49
- package/package.json +4 -4
- package/server.cjs.js +1 -1
- package/server.d.ts +1 -0
- package/server.es.js +77 -75
package/server.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { syncStripeOrderFromSession as C } from "./lib/stripe/order-sync.es.js";
|
|
|
5
5
|
import { handleStripeWebhook as f } from "./lib/stripe/webhooks.es.js";
|
|
6
6
|
import { applyOrderInventoryDeduction as y } from "./lib/order-inventory.es.js";
|
|
7
7
|
import { aggregateOrderTaxLines as v, buildOrderTaxDetailsFromCalculation as F, buildOrderTaxDetailsFromStripeSession as h, getOrderTaxRateJurisdiction as O, getOrderTaxRateLabel as R, getOrderTaxRatePercentage as A, normalizeOrderTaxDetails as T } from "./lib/order-tax-details.es.js";
|
|
8
|
-
import { DEFAULT_INVOICE_SETTINGS as E, INVOICE_SETTINGS_KEY as I, formatInvoiceCurrency as b, formatInvoiceDate as k, getInvoiceAddressLines as M, normalizeInvoiceSettings as
|
|
8
|
+
import { DEFAULT_INVOICE_SETTINGS as E, INVOICE_SETTINGS_KEY as I, formatInvoiceCurrency as b, formatInvoiceDate as k, getInvoiceAddressLines as M, normalizeInvoiceSettings as L, serializeInvoiceSettings as N } from "./lib/invoice.es.js";
|
|
9
9
|
import { assignInvoiceMetadata as U, getInvoiceBrandingData as W, getInvoiceOrder as _, getInvoicePresentationData as G } from "./lib/invoice-server.es.js";
|
|
10
10
|
import { getCurrentCustomerOrder as V, getCurrentCustomerOrderInvoice as w, getCurrentCustomerOrders as B } from "./lib/customer-orders.es.js";
|
|
11
11
|
import { getCouponQuote as Z, getQuoteLineDiscountMap as Q, recordCouponRedemption as J } from "./lib/coupon-server.es.js";
|
|
@@ -15,57 +15,58 @@ import { fillMissingUserProfileCheckoutDetails as ie, getDefaultUserAddresses as
|
|
|
15
15
|
import { CURRENCY_ROUNDING_MODES as de, applyCurrencyRounding as me, convertMinorUnitAmount as pe, describeCurrencyRoundingRule as ge, getCurrencyLookup as le, getDefaultCurrency as Ce, getExchangeRateForCurrency as Pe, inferCurrencyCodeFromLocale as fe, isSaleWindowActive as xe, isScheduledPriceDue as ye, normalizeCurrencyRecord as Se, normalizeCurrencyRoundingMode as ve, normalizePriceMap as Fe, normalizeSalePriceMap as he, resolveEffectivePriceForCurrency as Oe, resolvePriceForCurrency as Re, resolvePriceRangeForCurrency as Ae, sortCurrencies as Te } from "./lib/currency.es.js";
|
|
16
16
|
import { CURRENCY_COOKIE_NAME as Ee } from "./lib/currency-constants.es.js";
|
|
17
17
|
import { clearAutoSyncedCurrencyPriceOverrides as be, rebaseStoreCurrencyExchangeRates as ke, syncStoreCurrencyRates as Me } from "./lib/currency-sync.es.js";
|
|
18
|
-
import { productSchema as
|
|
18
|
+
import { productSchema as Ne } from "./lib/product-schema.es.js";
|
|
19
19
|
import { copyProductFromLanguage as Ue, createProduct as We, deleteProduct as _e, fetchTranslatedProductsForCartInternal as Ge, getProduct as Ke, getProductBySlug as Ve, getProducts as we, syncCategoriesForTranslationGroup as Be, updateProduct as Ye } from "./lib/product-actions.es.js";
|
|
20
20
|
import { getPaymentProvider as Qe } from "./lib/factory.es.js";
|
|
21
21
|
import { StripeProvider as je } from "./lib/providers/stripe.es.js";
|
|
22
22
|
import { FreemiusProvider as He, parseFreemiusCheckoutCredentialsMap as Xe, readFreemiusEnvValue as $e, resolveFreemiusCheckoutCredentials as er, syncFreemiusProductsToSupabase as rr, syncSingleFreemiusProduct as tr } from "./lib/providers/freemius.es.js";
|
|
23
23
|
import { extractFreemiusCheckoutMetadata as ar, getFreemiusWebhookSecretCandidates as nr, resolveFreemiusStatusFromCheckoutResponse as ir, resolveFreemiusStatusFromWebhookEvent as sr, syncFreemiusCheckoutOrder as ur, syncFreemiusOrderFromWebhookEvent as cr, verifyFreemiusWebhookSignature as dr } from "./lib/freemius-order-sync.es.js";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
24
|
+
import { getFreemiusOrderLicense as pr } from "./lib/freemius-license.es.js";
|
|
25
|
+
import { getCategoriesWithCount as lr, getCategoryBySlug as Cr, getProduct as Pr, getProducts as fr, getGlobalProductAttributes as xr, getProductCategories as yr, getProductTranslations as Sr } from "./lib/pages/cms/products/actions.es.js";
|
|
26
|
+
import { createCategoryAction as Fr, createProductAction as hr, deleteCategoryAction as Or, deleteProductAction as Rr, syncProductCategoriesAction as Ar, updateCategoryAction as Tr, updateProductAction as Dr } from "./lib/pages/cms/products/server-actions.es.js";
|
|
27
|
+
import { getEnabledPaymentProviders as Ir, getPaymentSettings as br, getStoreConfigStatus as kr } from "./lib/pages/cms/payments/queries.es.js";
|
|
28
|
+
import { OrdersPage as Lr } from "./lib/pages/cms/orders/OrdersPage.es.js";
|
|
29
|
+
import { OrderDetailPage as zr } from "./lib/pages/cms/orders/OrderDetailPage.es.js";
|
|
30
|
+
import { ExportReportsDialog as Wr } from "./lib/pages/cms/orders/ExportReportsDialog.es.js";
|
|
31
|
+
import { fetchOrderReportData as Gr } from "./lib/pages/cms/orders/export-actions.es.js";
|
|
32
|
+
import { getOrderDetails as Vr, getOrders as wr } from "./lib/pages/cms/orders/actions.es.js";
|
|
33
|
+
import { ProductsPage as Yr } from "./lib/pages/cms/products/ProductsPage.es.js";
|
|
34
|
+
import { InventoryPage as Qr } from "./lib/pages/cms/products/inventory/InventoryPage.es.js";
|
|
35
|
+
import { AttributeManagementPage as jr } from "./lib/pages/cms/products/attributes/AttributeManagementPage.es.js";
|
|
36
|
+
import { NewProductPage as Hr } from "./lib/pages/cms/products/new/NewProductPage.es.js";
|
|
37
|
+
import { EditProductPage as $r } from "./lib/pages/cms/products/_id_/edit/EditProductPage.es.js";
|
|
38
|
+
import { CopyProductFromLanguage as rt } from "./lib/pages/cms/products/components/CopyProductFromLanguage.es.js";
|
|
39
|
+
import { CategoryManagementPage as ot } from "./lib/pages/cms/products/categories/CategoryManagementPage.es.js";
|
|
40
|
+
import { PaymentsPage as nt } from "./lib/pages/cms/payments/PaymentsPage.es.js";
|
|
41
|
+
import { savePaymentProviderCredentials as st, updatePaymentSettings as ut } from "./lib/pages/cms/payments/actions.es.js";
|
|
42
|
+
import { ShippingPage as dt } from "./lib/pages/cms/shipping/ShippingPage.es.js";
|
|
43
|
+
import { createShippingRate as pt, createShippingZone as gt, deleteShippingRate as lt, deleteShippingZone as Ct, updateInventoryTrackingAction as Pt, updateShippingRate as ft, updateShippingZone as xt } from "./lib/pages/cms/shipping/server-actions.es.js";
|
|
44
|
+
import { TaxesPage as St } from "./lib/pages/cms/taxes/TaxesPage.es.js";
|
|
45
|
+
import { deleteTaxRateAction as Ft, saveTaxRateAction as ht, updateTaxSettingsAction as Ot } from "./lib/pages/cms/taxes/actions.es.js";
|
|
46
|
+
import { CouponsPage as At } from "./lib/pages/cms/coupons/CouponsPage.es.js";
|
|
47
|
+
import { EditCouponPage as Dt } from "./lib/pages/cms/coupons/EditCouponPage.es.js";
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
+
jr as AttributeManagementPage,
|
|
49
50
|
Ee as CURRENCY_COOKIE_NAME,
|
|
50
51
|
de as CURRENCY_ROUNDING_MODES,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
ot as CategoryManagementPage,
|
|
53
|
+
rt as CopyProductFromLanguage,
|
|
54
|
+
At as CouponsPage,
|
|
54
55
|
E as DEFAULT_INVOICE_SETTINGS,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
Dt as EditCouponPage,
|
|
57
|
+
$r as EditProductPage,
|
|
58
|
+
Wr as ExportReportsDialog,
|
|
58
59
|
He as FreemiusProvider,
|
|
59
60
|
I as INVOICE_SETTINGS_KEY,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
Qr as InventoryPage,
|
|
62
|
+
Hr as NewProductPage,
|
|
63
|
+
zr as OrderDetailPage,
|
|
64
|
+
Lr as OrdersPage,
|
|
65
|
+
nt as PaymentsPage,
|
|
66
|
+
Yr as ProductsPage,
|
|
67
|
+
dt as ShippingPage,
|
|
67
68
|
je as StripeProvider,
|
|
68
|
-
|
|
69
|
+
St as TaxesPage,
|
|
69
70
|
ee as addressesMatch,
|
|
70
71
|
v as aggregateOrderTaxLines,
|
|
71
72
|
me as applyCurrencyRounding,
|
|
@@ -77,31 +78,31 @@ export {
|
|
|
77
78
|
t as clearPaymentConfigCache,
|
|
78
79
|
pe as convertMinorUnitAmount,
|
|
79
80
|
Ue as copyProductFromLanguage,
|
|
80
|
-
|
|
81
|
+
Fr as createCategoryAction,
|
|
81
82
|
g as createCheckoutSession,
|
|
82
83
|
We as createProduct,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
hr as createProductAction,
|
|
85
|
+
pt as createShippingRate,
|
|
86
|
+
gt as createShippingZone,
|
|
87
|
+
Or as deleteCategoryAction,
|
|
87
88
|
q as deleteCouponFromFreemius,
|
|
88
89
|
_e as deleteProduct,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
Rr as deleteProductAction,
|
|
91
|
+
lt as deleteShippingRate,
|
|
92
|
+
Ct as deleteShippingZone,
|
|
93
|
+
Ft as deleteTaxRateAction,
|
|
93
94
|
ge as describeCurrencyRoundingRule,
|
|
94
95
|
re as emptyCustomerAddress,
|
|
95
96
|
ar as extractFreemiusCheckoutMetadata,
|
|
96
|
-
|
|
97
|
+
Gr as fetchOrderReportData,
|
|
97
98
|
Ge as fetchTranslatedProductsForCartInternal,
|
|
98
99
|
ie as fillMissingUserProfileCheckoutDetails,
|
|
99
100
|
b as formatInvoiceCurrency,
|
|
100
101
|
k as formatInvoiceDate,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
lr as getCategoriesWithCount,
|
|
103
|
+
Cr as getCategoryBySlug,
|
|
104
|
+
Pr as getCmsProduct,
|
|
105
|
+
fr as getCmsProducts,
|
|
105
106
|
Z as getCouponQuote,
|
|
106
107
|
le as getCurrencyLookup,
|
|
107
108
|
V as getCurrentCustomerOrder,
|
|
@@ -109,30 +110,31 @@ export {
|
|
|
109
110
|
B as getCurrentCustomerOrders,
|
|
110
111
|
Ce as getDefaultCurrency,
|
|
111
112
|
se as getDefaultUserAddresses,
|
|
112
|
-
|
|
113
|
+
Ir as getEnabledPaymentProviders,
|
|
113
114
|
Pe as getExchangeRateForCurrency,
|
|
115
|
+
pr as getFreemiusOrderLicense,
|
|
114
116
|
nr as getFreemiusWebhookSecretCandidates,
|
|
115
|
-
|
|
117
|
+
xr as getGlobalProductAttributes,
|
|
116
118
|
M as getInvoiceAddressLines,
|
|
117
119
|
W as getInvoiceBrandingData,
|
|
118
120
|
_ as getInvoiceOrder,
|
|
119
121
|
G as getInvoicePresentationData,
|
|
120
|
-
|
|
122
|
+
Vr as getOrderDetails,
|
|
121
123
|
O as getOrderTaxRateJurisdiction,
|
|
122
124
|
R as getOrderTaxRateLabel,
|
|
123
125
|
A as getOrderTaxRatePercentage,
|
|
124
|
-
|
|
126
|
+
wr as getOrders,
|
|
125
127
|
o as getPaymentConfigStatus,
|
|
126
128
|
a as getPaymentCredentialsView,
|
|
127
129
|
Qe as getPaymentProvider,
|
|
128
|
-
|
|
130
|
+
br as getPaymentSettings,
|
|
129
131
|
Ke as getProduct,
|
|
130
132
|
Ve as getProductBySlug,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
yr as getProductCategories,
|
|
134
|
+
Sr as getProductTranslations,
|
|
133
135
|
we as getProducts,
|
|
134
136
|
Q as getQuoteLineDiscountMap,
|
|
135
|
-
|
|
137
|
+
kr as getStoreConfigStatus,
|
|
136
138
|
m as getStripeClient,
|
|
137
139
|
f as handleStripeWebhook,
|
|
138
140
|
n as hydrateFreemiusEnvFromDb,
|
|
@@ -143,13 +145,13 @@ export {
|
|
|
143
145
|
Se as normalizeCurrencyRecord,
|
|
144
146
|
ve as normalizeCurrencyRoundingMode,
|
|
145
147
|
oe as normalizeCustomerAddress,
|
|
146
|
-
|
|
148
|
+
L as normalizeInvoiceSettings,
|
|
147
149
|
ae as normalizeOrderCustomerDetails,
|
|
148
150
|
T as normalizeOrderTaxDetails,
|
|
149
151
|
Fe as normalizePriceMap,
|
|
150
152
|
he as normalizeSalePriceMap,
|
|
151
153
|
Xe as parseFreemiusCheckoutCredentialsMap,
|
|
152
|
-
|
|
154
|
+
Ne as productSchema,
|
|
153
155
|
$e as readFreemiusEnvValue,
|
|
154
156
|
ke as rebaseStoreCurrencyExchangeRates,
|
|
155
157
|
J as recordCouponRedemption,
|
|
@@ -163,28 +165,28 @@ export {
|
|
|
163
165
|
s as resolveStripeSecretKey,
|
|
164
166
|
u as resolveStripeWebhookSecret,
|
|
165
167
|
c as savePaymentCredentials,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
168
|
+
st as savePaymentProviderCredentials,
|
|
169
|
+
ht as saveTaxRateAction,
|
|
170
|
+
N as serializeInvoiceSettings,
|
|
169
171
|
Te as sortCurrencies,
|
|
170
172
|
Be as syncCategoriesForTranslationGroup,
|
|
171
173
|
H as syncCouponToFreemius,
|
|
172
174
|
ur as syncFreemiusCheckoutOrder,
|
|
173
175
|
cr as syncFreemiusOrderFromWebhookEvent,
|
|
174
176
|
rr as syncFreemiusProductsToSupabase,
|
|
175
|
-
|
|
177
|
+
Ar as syncProductCategoriesAction,
|
|
176
178
|
X as syncProductSaleCouponToFreemius,
|
|
177
179
|
tr as syncSingleFreemiusProduct,
|
|
178
180
|
Me as syncStoreCurrencyRates,
|
|
179
181
|
C as syncStripeOrderFromSession,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
182
|
+
Tr as updateCategoryAction,
|
|
183
|
+
Pt as updateInventoryTrackingAction,
|
|
184
|
+
ut as updatePaymentSettings,
|
|
183
185
|
Ye as updateProduct,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
Dr as updateProductAction,
|
|
187
|
+
ft as updateShippingRate,
|
|
188
|
+
xt as updateShippingZone,
|
|
189
|
+
Ot as updateTaxSettingsAction,
|
|
188
190
|
ue as upsertDefaultUserAddresses,
|
|
189
191
|
dr as verifyFreemiusWebhookSignature
|
|
190
192
|
};
|