@nextblock-cms/ecom 0.0.10 → 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,60 @@
|
|
|
1
|
+
import { OrderCustomerDetails } from '../../../customer';
|
|
2
|
+
import { OrderTaxDetails } from '../../../order-tax-details';
|
|
3
|
+
export type Order = {
|
|
4
|
+
currency: string | null;
|
|
5
|
+
created_at: string | null;
|
|
6
|
+
customer_details: OrderCustomerDetails | null;
|
|
7
|
+
coupon_code: string | null;
|
|
8
|
+
discount_total: number | null;
|
|
9
|
+
discount_details: Record<string, unknown> | null;
|
|
10
|
+
freemius_product_id: string | null;
|
|
11
|
+
freemius_plan_id: string | null;
|
|
12
|
+
freemius_license_id: string | null;
|
|
13
|
+
freemius_subscription_id: string | null;
|
|
14
|
+
freemius_trial_id: string | null;
|
|
15
|
+
freemius_user_id: string | null;
|
|
16
|
+
freemius_trial_ends_at: string | null;
|
|
17
|
+
freemius_last_event_type: string | null;
|
|
18
|
+
freemius_last_synced_at: string | null;
|
|
19
|
+
id: string;
|
|
20
|
+
invoice_number: string | null;
|
|
21
|
+
paid_at: string | null;
|
|
22
|
+
payment_intent_id: string | null;
|
|
23
|
+
provider: string | null;
|
|
24
|
+
shipping_total: number | null;
|
|
25
|
+
status: string;
|
|
26
|
+
subtotal: number | null;
|
|
27
|
+
stripe_session_id: string | null;
|
|
28
|
+
tax_details: OrderTaxDetails | null;
|
|
29
|
+
tax_total: number | null;
|
|
30
|
+
total: number;
|
|
31
|
+
user_id: string | null;
|
|
32
|
+
};
|
|
33
|
+
export type OrderItem = {
|
|
34
|
+
id: string;
|
|
35
|
+
order_id: string;
|
|
36
|
+
price_at_purchase: number;
|
|
37
|
+
product_id: string | null;
|
|
38
|
+
quantity: number;
|
|
39
|
+
};
|
|
40
|
+
export type Profile = {
|
|
41
|
+
avatar_url: string | null;
|
|
42
|
+
full_name: string | null;
|
|
43
|
+
github_username?: string | null;
|
|
44
|
+
id: string;
|
|
45
|
+
phone?: string | null;
|
|
46
|
+
role?: string | null;
|
|
47
|
+
website?: string | null;
|
|
48
|
+
};
|
|
49
|
+
export type { OrderCustomerDetails };
|
|
50
|
+
export interface OrderItemWithProduct extends OrderItem {
|
|
51
|
+
product?: {
|
|
52
|
+
title: string;
|
|
53
|
+
image_url?: string | null;
|
|
54
|
+
slug?: string;
|
|
55
|
+
} | null;
|
|
56
|
+
}
|
|
57
|
+
export interface OrderWithDetails extends Order {
|
|
58
|
+
order_items: OrderItemWithProduct[];
|
|
59
|
+
customer?: Profile | null;
|
|
60
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface ConfigStatus {
|
|
2
|
+
stripe: {
|
|
3
|
+
hasKeys: boolean;
|
|
4
|
+
missing: string[];
|
|
5
|
+
};
|
|
6
|
+
freemius: {
|
|
7
|
+
hasKeys: boolean;
|
|
8
|
+
missing: string[];
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function PaymentsClient({ initialEnabledProviders, configStatus, saveAction, }: {
|
|
12
|
+
initialEnabledProviders: {
|
|
13
|
+
stripe: boolean;
|
|
14
|
+
freemius: boolean;
|
|
15
|
+
};
|
|
16
|
+
configStatus: ConfigStatus;
|
|
17
|
+
saveAction: (formData: FormData) => Promise<void>;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function PaymentsPage(): Promise<import("react").JSX.Element>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EnabledPaymentProviders } from '../../../types';
|
|
2
|
+
export interface PaymentProviderConfigStatus {
|
|
3
|
+
hasKeys: boolean;
|
|
4
|
+
missing: string[];
|
|
5
|
+
}
|
|
6
|
+
export interface StorePaymentConfigStatus {
|
|
7
|
+
stripe: PaymentProviderConfigStatus;
|
|
8
|
+
freemius: PaymentProviderConfigStatus;
|
|
9
|
+
}
|
|
10
|
+
export declare function getStoreConfigStatus(): Promise<StorePaymentConfigStatus>;
|
|
11
|
+
export declare function getEnabledPaymentProviders(): Promise<EnabledPaymentProviders>;
|
|
12
|
+
export declare function getPaymentSettings(): Promise<'stripe' | 'freemius'>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface EditProductPageProps {
|
|
2
|
+
params: Promise<{
|
|
3
|
+
id: string;
|
|
4
|
+
}>;
|
|
5
|
+
mediaPickerNode?: React.ReactNode;
|
|
6
|
+
availableLanguagesProp: any[];
|
|
7
|
+
languageSwitcherNode?: React.ReactNode;
|
|
8
|
+
copyContentNode?: React.ReactNode;
|
|
9
|
+
translationCtaNode?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare function EditProductPage({ params, mediaPickerNode, availableLanguagesProp, languageSwitcherNode, copyContentNode, translationCtaNode }: EditProductPageProps): Promise<import("react").JSX.Element>;
|
|
12
|
+
export {};
|