@nextblock-cms/ecom 0.0.9 → 0.8.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/actions.d.ts +2 -0
- package/currency-rest-client-CwoqdgAP.js +23 -0
- package/currency-rest-client-uolJxUkL.cjs +1 -0
- package/index.cjs.js +1 -0
- package/index.d.ts +35 -0
- package/index.es.js +3226 -0
- package/invoice-ui-BJZfedDd.cjs +332 -0
- package/invoice-ui-GJ1ADAjn.js +5759 -0
- package/lib/CurrencyProvider.d.ts +18 -0
- package/lib/cart-store.d.ts +47 -0
- package/lib/components/AccountNavigationMenu.d.ts +14 -0
- package/lib/components/AddToCartButton.d.ts +8 -0
- package/lib/components/Cart.d.ts +1 -0
- package/lib/components/CartDrawer.d.ts +1 -0
- package/lib/components/CartIcon.d.ts +1 -0
- package/lib/components/Checkout.d.ts +6 -0
- package/lib/components/CouponForm.d.ts +8 -0
- package/lib/components/CurrencySwitcher.d.ts +1 -0
- package/lib/components/CustomerProfileForm.d.ts +21 -0
- package/lib/components/FeaturedProduct.d.ts +8 -0
- package/lib/components/InvoiceDocument.d.ts +32 -0
- package/lib/components/InvoiceViewerShell.d.ts +26 -0
- package/lib/components/ProductCard.d.ts +7 -0
- package/lib/components/ProductDetailsLayout.d.ts +7 -0
- package/lib/components/ProductGallery.d.ts +9 -0
- package/lib/components/ProductGrid.d.ts +8 -0
- package/lib/components/ShippingEstimator.d.ts +5 -0
- package/lib/components/SimpleTiptapRenderer.d.ts +7 -0
- package/lib/components/SubscriptionSelector.d.ts +7 -0
- package/lib/components/media/MediaImage.d.ts +12 -0
- package/lib/components/media/MediaPickerDialog.d.ts +16 -0
- package/lib/components/media/MediaUploadForm.d.ts +10 -0
- package/lib/components/media/UploadFolderContext.d.ts +10 -0
- package/lib/countries.d.ts +5 -0
- package/lib/coupon-server.d.ts +22 -0
- package/lib/coupon-server.test.d.ts +1 -0
- package/lib/coupons.d.ts +41 -0
- package/lib/currency-constants.d.ts +1 -0
- package/lib/currency-rest-client.d.ts +1 -0
- package/lib/currency-sale-schedule.test.d.ts +1 -0
- package/lib/currency-store.d.ts +20 -0
- package/lib/currency-sync.d.ts +19 -0
- package/lib/currency.d.ts +116 -0
- package/lib/customer-addresses.d.ts +19 -0
- package/lib/customer-orders.d.ts +23 -0
- package/lib/customer.d.ts +51 -0
- package/lib/export-helpers.d.ts +48 -0
- package/lib/factory.d.ts +2 -0
- package/lib/freemius-coupons.d.ts +58 -0
- package/lib/freemius-order-sync.d.ts +133 -0
- package/lib/freemius-order-sync.test.d.ts +1 -0
- package/lib/inventory-settings.d.ts +16 -0
- package/lib/invoice-server.d.ts +18 -0
- package/lib/invoice-ui.d.ts +29 -0
- package/lib/invoice.d.ts +75 -0
- package/lib/order-inventory.d.ts +7 -0
- package/lib/order-tax-details.d.ts +57 -0
- package/lib/pages/cms/coupons/CouponEditorForm.d.ts +23 -0
- package/lib/pages/cms/coupons/CouponsPage.d.ts +8 -0
- package/lib/pages/cms/coupons/CreateCouponDialog.d.ts +6 -0
- package/lib/pages/cms/coupons/EditCouponPage.d.ts +5 -0
- package/lib/pages/cms/coupons/ProductScopePicker.d.ts +16 -0
- package/lib/pages/cms/coupons/actions.d.ts +5 -0
- package/lib/pages/cms/coupons/index.d.ts +2 -0
- package/lib/pages/cms/coupons/product-options.d.ts +2 -0
- package/lib/pages/cms/orders/ExportReportsDialog.d.ts +2 -0
- package/lib/pages/cms/orders/MarkPaidButton.d.ts +3 -0
- package/lib/pages/cms/orders/OrderDetailPage.d.ts +5 -0
- package/lib/pages/cms/orders/OrderPrintButton.d.ts +3 -0
- package/lib/pages/cms/orders/OrderStatusForm.d.ts +4 -0
- package/lib/pages/cms/orders/OrdersPage.d.ts +6 -0
- package/lib/pages/cms/orders/actions.d.ts +7 -0
- package/lib/pages/cms/orders/export-actions.d.ts +2 -0
- package/lib/pages/cms/orders/index.d.ts +6 -0
- package/lib/pages/cms/orders/server-actions.d.ts +11 -0
- package/lib/pages/cms/orders/types.d.ts +60 -0
- package/lib/pages/cms/payments/PaymentsClient.d.ts +19 -0
- package/lib/pages/cms/payments/PaymentsPage.d.ts +1 -0
- package/lib/pages/cms/payments/actions.d.ts +4 -0
- package/lib/pages/cms/payments/index.d.ts +2 -0
- package/lib/pages/cms/payments/queries.d.ts +12 -0
- package/lib/pages/cms/products/ProductsPage.d.ts +7 -0
- package/lib/pages/cms/products/[id]/edit/EditProductPage.d.ts +12 -0
- package/lib/pages/cms/products/actions.d.ts +18201 -0
- package/lib/pages/cms/products/attributes/AttributeManagementPage.d.ts +1 -0
- package/lib/pages/cms/products/attributes/components/AttributeManager.d.ts +50 -0
- package/lib/pages/cms/products/categories/CategoryManagementPage.d.ts +1 -0
- package/lib/pages/cms/products/categories/components/CategoryManager.d.ts +47 -0
- package/lib/pages/cms/products/components/CopyProductFromLanguage.d.ts +9 -0
- package/lib/pages/cms/products/components/CurrencyPriceFields.d.ts +18 -0
- package/lib/pages/cms/products/components/DeleteProductButton.d.ts +9 -0
- package/lib/pages/cms/products/components/FreemiusPricingDashboard.d.ts +24 -0
- package/lib/pages/cms/products/components/ProductCategorySelector.d.ts +14 -0
- package/lib/pages/cms/products/components/ProductForm.d.ts +62 -0
- package/lib/pages/cms/products/components/ProductMediaManager.d.ts +17 -0
- package/lib/pages/cms/products/components/ProductsBulkTable.d.ts +32 -0
- package/lib/pages/cms/products/components/SaleScheduleFields.d.ts +16 -0
- package/lib/pages/cms/products/components/SyncFreemiusButton.d.ts +3 -0
- package/lib/pages/cms/products/components/SyncFreemiusPricingButton.d.ts +5 -0
- package/lib/pages/cms/products/components/SyncProductForm.d.ts +1 -0
- package/lib/pages/cms/products/components/VariationsEditor.d.ts +26 -0
- package/lib/pages/cms/products/index.d.ts +7 -0
- package/lib/pages/cms/products/inventory/InventoryPage.d.ts +1 -0
- package/lib/pages/cms/products/inventory/InventoryTableClient.d.ts +6 -0
- package/lib/pages/cms/products/inventory/actions.d.ts +38 -0
- package/lib/pages/cms/products/new/NewProductPage.d.ts +9 -0
- package/lib/pages/cms/products/product-price-sync.d.ts +43 -0
- package/lib/pages/cms/products/server-actions.d.ts +125 -0
- package/lib/pages/cms/shipping/ShippingPage.d.ts +6 -0
- package/lib/pages/cms/shipping/components/RateForm.d.ts +26 -0
- package/lib/pages/cms/shipping/components/ZoneForm.d.ts +13 -0
- package/lib/pages/cms/shipping/index.d.ts +2 -0
- package/lib/pages/cms/shipping/server-actions.d.ts +80 -0
- package/lib/pages/cms/taxes/TaxesPage.d.ts +5 -0
- package/lib/pages/cms/taxes/actions.d.ts +3 -0
- package/lib/pages/cms/taxes/components/TaxRateForm.d.ts +8 -0
- package/lib/pages/cms/taxes/index.d.ts +2 -0
- package/lib/product-actions.d.ts +18457 -0
- package/lib/product-context.d.ts +7 -0
- package/lib/product-schema.d.ts +73 -0
- package/lib/providers/freemius.d.ts +49 -0
- package/lib/providers/stripe.d.ts +13 -0
- package/lib/server-actions/coupon-actions.d.ts +17 -0
- package/lib/server-actions/customer-actions.d.ts +18 -0
- package/lib/server-actions/product-actions.d.ts +69 -0
- package/lib/server-actions/shipping-actions.d.ts +10 -0
- package/lib/server-actions/tax-actions.d.ts +7 -0
- package/lib/shared-inventory.d.ts +38 -0
- package/lib/shipping/resolver.d.ts +16 -0
- package/lib/shipping-rate-currency.d.ts +39 -0
- package/lib/states.d.ts +9 -0
- package/lib/stripe/checkout.d.ts +6 -0
- package/lib/stripe/client.d.ts +2 -0
- package/lib/stripe/order-sync.d.ts +18 -0
- package/lib/stripe/webhooks.d.ts +4 -0
- package/lib/tax-calculation.d.ts +23 -0
- package/lib/trials.d.ts +15 -0
- package/lib/types.d.ts +245 -0
- package/lib/use-cart.d.ts +11 -0
- package/lib/variation-utils.d.ts +72 -0
- package/lib/zod-config.d.ts +2 -0
- package/package.json +47 -2
- package/server.cjs.js +110 -0
- package/server.d.ts +31 -0
- package/server.es.js +6039 -0
- package/index.ts +0 -12
- package/tsconfig.lib.json +0 -10
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ShippingRateCurrencyMode } from '../../../shipping-rate-currency';
|
|
2
|
+
export interface ShippingZoneLocationInput {
|
|
3
|
+
country_code: string;
|
|
4
|
+
state_code?: string | null;
|
|
5
|
+
}
|
|
6
|
+
export declare function updateInventoryTrackingAction(formData: FormData): Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new shipping zone with associated countries/states.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createShippingZone(name: string, priority: number, locations: ShippingZoneLocationInput[]): Promise<{
|
|
11
|
+
error: any;
|
|
12
|
+
success?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
success: boolean;
|
|
15
|
+
error?: undefined;
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Updates an existing shipping zone and its country/state associations.
|
|
19
|
+
*/
|
|
20
|
+
export declare function updateShippingZone(id: string, name: string, priority: number, locations: ShippingZoneLocationInput[]): Promise<{
|
|
21
|
+
error: any;
|
|
22
|
+
success?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
success: boolean;
|
|
25
|
+
error?: undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export declare function deleteShippingZone(id: string): Promise<{
|
|
28
|
+
error: any;
|
|
29
|
+
success?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
success: boolean;
|
|
32
|
+
error?: undefined;
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
* Creates a new shipping rate for a zone.
|
|
36
|
+
*/
|
|
37
|
+
export declare function createShippingRate(zoneId: string, data: {
|
|
38
|
+
name: string;
|
|
39
|
+
nameTranslations?: Record<string, string>;
|
|
40
|
+
type: 'flat_rate' | 'free_shipping';
|
|
41
|
+
cost?: number;
|
|
42
|
+
minOrderAmount?: number;
|
|
43
|
+
currencyPricingMode?: ShippingRateCurrencyMode;
|
|
44
|
+
sourceCurrencyCode?: string | null;
|
|
45
|
+
costAmounts?: Record<string, number>;
|
|
46
|
+
minOrderAmounts?: Record<string, number>;
|
|
47
|
+
}): Promise<{
|
|
48
|
+
error: any;
|
|
49
|
+
success?: undefined;
|
|
50
|
+
} | {
|
|
51
|
+
success: boolean;
|
|
52
|
+
error?: undefined;
|
|
53
|
+
}>;
|
|
54
|
+
/**
|
|
55
|
+
* Updates an existing shipping rate.
|
|
56
|
+
*/
|
|
57
|
+
export declare function updateShippingRate(id: string, data: {
|
|
58
|
+
name: string;
|
|
59
|
+
nameTranslations?: Record<string, string>;
|
|
60
|
+
type: 'flat_rate' | 'free_shipping';
|
|
61
|
+
cost?: number;
|
|
62
|
+
minOrderAmount?: number;
|
|
63
|
+
currencyPricingMode?: ShippingRateCurrencyMode;
|
|
64
|
+
sourceCurrencyCode?: string | null;
|
|
65
|
+
costAmounts?: Record<string, number>;
|
|
66
|
+
minOrderAmounts?: Record<string, number>;
|
|
67
|
+
}): Promise<{
|
|
68
|
+
error: any;
|
|
69
|
+
success?: undefined;
|
|
70
|
+
} | {
|
|
71
|
+
success: boolean;
|
|
72
|
+
error?: undefined;
|
|
73
|
+
}>;
|
|
74
|
+
export declare function deleteShippingRate(id: string): Promise<{
|
|
75
|
+
error: any;
|
|
76
|
+
success?: undefined;
|
|
77
|
+
} | {
|
|
78
|
+
success: boolean;
|
|
79
|
+
error?: undefined;
|
|
80
|
+
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TaxRate } from '../../../../types';
|
|
2
|
+
interface TaxRateFormProps {
|
|
3
|
+
initialData?: Partial<TaxRate>;
|
|
4
|
+
submitLabel?: string;
|
|
5
|
+
compact?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function TaxRateForm({ initialData, submitLabel, compact, }: TaxRateFormProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|