@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.
Files changed (147) hide show
  1. package/actions.d.ts +2 -0
  2. package/currency-rest-client-CwoqdgAP.js +23 -0
  3. package/currency-rest-client-uolJxUkL.cjs +1 -0
  4. package/index.cjs.js +1 -0
  5. package/index.d.ts +35 -0
  6. package/index.es.js +3226 -0
  7. package/invoice-ui-BJZfedDd.cjs +332 -0
  8. package/invoice-ui-GJ1ADAjn.js +5759 -0
  9. package/lib/CurrencyProvider.d.ts +18 -0
  10. package/lib/cart-store.d.ts +47 -0
  11. package/lib/components/AccountNavigationMenu.d.ts +14 -0
  12. package/lib/components/AddToCartButton.d.ts +8 -0
  13. package/lib/components/Cart.d.ts +1 -0
  14. package/lib/components/CartDrawer.d.ts +1 -0
  15. package/lib/components/CartIcon.d.ts +1 -0
  16. package/lib/components/Checkout.d.ts +6 -0
  17. package/lib/components/CouponForm.d.ts +8 -0
  18. package/lib/components/CurrencySwitcher.d.ts +1 -0
  19. package/lib/components/CustomerProfileForm.d.ts +21 -0
  20. package/lib/components/FeaturedProduct.d.ts +8 -0
  21. package/lib/components/InvoiceDocument.d.ts +32 -0
  22. package/lib/components/InvoiceViewerShell.d.ts +26 -0
  23. package/lib/components/ProductCard.d.ts +7 -0
  24. package/lib/components/ProductDetailsLayout.d.ts +7 -0
  25. package/lib/components/ProductGallery.d.ts +9 -0
  26. package/lib/components/ProductGrid.d.ts +8 -0
  27. package/lib/components/ShippingEstimator.d.ts +5 -0
  28. package/lib/components/SimpleTiptapRenderer.d.ts +7 -0
  29. package/lib/components/SubscriptionSelector.d.ts +7 -0
  30. package/lib/components/media/MediaImage.d.ts +12 -0
  31. package/lib/components/media/MediaPickerDialog.d.ts +16 -0
  32. package/lib/components/media/MediaUploadForm.d.ts +10 -0
  33. package/lib/components/media/UploadFolderContext.d.ts +10 -0
  34. package/lib/countries.d.ts +5 -0
  35. package/lib/coupon-server.d.ts +22 -0
  36. package/lib/coupon-server.test.d.ts +1 -0
  37. package/lib/coupons.d.ts +41 -0
  38. package/lib/currency-constants.d.ts +1 -0
  39. package/lib/currency-rest-client.d.ts +1 -0
  40. package/lib/currency-sale-schedule.test.d.ts +1 -0
  41. package/lib/currency-store.d.ts +20 -0
  42. package/lib/currency-sync.d.ts +19 -0
  43. package/lib/currency.d.ts +116 -0
  44. package/lib/customer-addresses.d.ts +19 -0
  45. package/lib/customer-orders.d.ts +23 -0
  46. package/lib/customer.d.ts +51 -0
  47. package/lib/export-helpers.d.ts +48 -0
  48. package/lib/factory.d.ts +2 -0
  49. package/lib/freemius-coupons.d.ts +58 -0
  50. package/lib/freemius-order-sync.d.ts +133 -0
  51. package/lib/freemius-order-sync.test.d.ts +1 -0
  52. package/lib/inventory-settings.d.ts +16 -0
  53. package/lib/invoice-server.d.ts +18 -0
  54. package/lib/invoice-ui.d.ts +29 -0
  55. package/lib/invoice.d.ts +75 -0
  56. package/lib/order-inventory.d.ts +7 -0
  57. package/lib/order-tax-details.d.ts +57 -0
  58. package/lib/pages/cms/coupons/CouponEditorForm.d.ts +23 -0
  59. package/lib/pages/cms/coupons/CouponsPage.d.ts +8 -0
  60. package/lib/pages/cms/coupons/CreateCouponDialog.d.ts +6 -0
  61. package/lib/pages/cms/coupons/EditCouponPage.d.ts +5 -0
  62. package/lib/pages/cms/coupons/ProductScopePicker.d.ts +16 -0
  63. package/lib/pages/cms/coupons/actions.d.ts +5 -0
  64. package/lib/pages/cms/coupons/index.d.ts +2 -0
  65. package/lib/pages/cms/coupons/product-options.d.ts +2 -0
  66. package/lib/pages/cms/orders/ExportReportsDialog.d.ts +2 -0
  67. package/lib/pages/cms/orders/MarkPaidButton.d.ts +3 -0
  68. package/lib/pages/cms/orders/OrderDetailPage.d.ts +5 -0
  69. package/lib/pages/cms/orders/OrderPrintButton.d.ts +3 -0
  70. package/lib/pages/cms/orders/OrderStatusForm.d.ts +4 -0
  71. package/lib/pages/cms/orders/OrdersPage.d.ts +6 -0
  72. package/lib/pages/cms/orders/actions.d.ts +7 -0
  73. package/lib/pages/cms/orders/export-actions.d.ts +2 -0
  74. package/lib/pages/cms/orders/index.d.ts +6 -0
  75. package/lib/pages/cms/orders/server-actions.d.ts +11 -0
  76. package/lib/pages/cms/orders/types.d.ts +60 -0
  77. package/lib/pages/cms/payments/PaymentsClient.d.ts +19 -0
  78. package/lib/pages/cms/payments/PaymentsPage.d.ts +1 -0
  79. package/lib/pages/cms/payments/actions.d.ts +4 -0
  80. package/lib/pages/cms/payments/index.d.ts +2 -0
  81. package/lib/pages/cms/payments/queries.d.ts +12 -0
  82. package/lib/pages/cms/products/ProductsPage.d.ts +7 -0
  83. package/lib/pages/cms/products/[id]/edit/EditProductPage.d.ts +12 -0
  84. package/lib/pages/cms/products/actions.d.ts +18201 -0
  85. package/lib/pages/cms/products/attributes/AttributeManagementPage.d.ts +1 -0
  86. package/lib/pages/cms/products/attributes/components/AttributeManager.d.ts +50 -0
  87. package/lib/pages/cms/products/categories/CategoryManagementPage.d.ts +1 -0
  88. package/lib/pages/cms/products/categories/components/CategoryManager.d.ts +47 -0
  89. package/lib/pages/cms/products/components/CopyProductFromLanguage.d.ts +9 -0
  90. package/lib/pages/cms/products/components/CurrencyPriceFields.d.ts +18 -0
  91. package/lib/pages/cms/products/components/DeleteProductButton.d.ts +9 -0
  92. package/lib/pages/cms/products/components/FreemiusPricingDashboard.d.ts +24 -0
  93. package/lib/pages/cms/products/components/ProductCategorySelector.d.ts +14 -0
  94. package/lib/pages/cms/products/components/ProductForm.d.ts +62 -0
  95. package/lib/pages/cms/products/components/ProductMediaManager.d.ts +17 -0
  96. package/lib/pages/cms/products/components/ProductsBulkTable.d.ts +32 -0
  97. package/lib/pages/cms/products/components/SaleScheduleFields.d.ts +16 -0
  98. package/lib/pages/cms/products/components/SyncFreemiusButton.d.ts +3 -0
  99. package/lib/pages/cms/products/components/SyncFreemiusPricingButton.d.ts +5 -0
  100. package/lib/pages/cms/products/components/SyncProductForm.d.ts +1 -0
  101. package/lib/pages/cms/products/components/VariationsEditor.d.ts +26 -0
  102. package/lib/pages/cms/products/index.d.ts +7 -0
  103. package/lib/pages/cms/products/inventory/InventoryPage.d.ts +1 -0
  104. package/lib/pages/cms/products/inventory/InventoryTableClient.d.ts +6 -0
  105. package/lib/pages/cms/products/inventory/actions.d.ts +38 -0
  106. package/lib/pages/cms/products/new/NewProductPage.d.ts +9 -0
  107. package/lib/pages/cms/products/product-price-sync.d.ts +43 -0
  108. package/lib/pages/cms/products/server-actions.d.ts +125 -0
  109. package/lib/pages/cms/shipping/ShippingPage.d.ts +6 -0
  110. package/lib/pages/cms/shipping/components/RateForm.d.ts +26 -0
  111. package/lib/pages/cms/shipping/components/ZoneForm.d.ts +13 -0
  112. package/lib/pages/cms/shipping/index.d.ts +2 -0
  113. package/lib/pages/cms/shipping/server-actions.d.ts +80 -0
  114. package/lib/pages/cms/taxes/TaxesPage.d.ts +5 -0
  115. package/lib/pages/cms/taxes/actions.d.ts +3 -0
  116. package/lib/pages/cms/taxes/components/TaxRateForm.d.ts +8 -0
  117. package/lib/pages/cms/taxes/index.d.ts +2 -0
  118. package/lib/product-actions.d.ts +18457 -0
  119. package/lib/product-context.d.ts +7 -0
  120. package/lib/product-schema.d.ts +73 -0
  121. package/lib/providers/freemius.d.ts +49 -0
  122. package/lib/providers/stripe.d.ts +13 -0
  123. package/lib/server-actions/coupon-actions.d.ts +17 -0
  124. package/lib/server-actions/customer-actions.d.ts +18 -0
  125. package/lib/server-actions/product-actions.d.ts +69 -0
  126. package/lib/server-actions/shipping-actions.d.ts +10 -0
  127. package/lib/server-actions/tax-actions.d.ts +7 -0
  128. package/lib/shared-inventory.d.ts +38 -0
  129. package/lib/shipping/resolver.d.ts +16 -0
  130. package/lib/shipping-rate-currency.d.ts +39 -0
  131. package/lib/states.d.ts +9 -0
  132. package/lib/stripe/checkout.d.ts +6 -0
  133. package/lib/stripe/client.d.ts +2 -0
  134. package/lib/stripe/order-sync.d.ts +18 -0
  135. package/lib/stripe/webhooks.d.ts +4 -0
  136. package/lib/tax-calculation.d.ts +23 -0
  137. package/lib/trials.d.ts +15 -0
  138. package/lib/types.d.ts +245 -0
  139. package/lib/use-cart.d.ts +11 -0
  140. package/lib/variation-utils.d.ts +72 -0
  141. package/lib/zod-config.d.ts +2 -0
  142. package/package.json +47 -2
  143. package/server.cjs.js +110 -0
  144. package/server.d.ts +31 -0
  145. package/server.es.js +6039 -0
  146. package/index.ts +0 -12
  147. package/tsconfig.lib.json +0 -10
package/lib/types.d.ts ADDED
@@ -0,0 +1,245 @@
1
+ import { CheckoutSessionInput } from './customer';
2
+ import { CurrencyRecord, PriceMap, SalePriceMap } from './currency';
3
+ export type TranslationMap = Record<string, string>;
4
+ export type { CurrencyRecord, PriceMap, SalePriceMap };
5
+ export type ProductType = 'physical' | 'digital';
6
+ export type EcommercePaymentProvider = 'stripe' | 'freemius';
7
+ export interface EnabledPaymentProviders {
8
+ stripe: boolean;
9
+ freemius: boolean;
10
+ }
11
+ export declare const DEFAULT_ENABLED_PAYMENT_PROVIDERS: EnabledPaymentProviders;
12
+ export declare function normalizeEnabledPaymentProviders(value: unknown): EnabledPaymentProviders;
13
+ export declare function derivePaymentProviderFromProductType(productType: ProductType): EcommercePaymentProvider;
14
+ export interface ProductAttributeTerm {
15
+ id: string;
16
+ attribute_id: string;
17
+ value: string;
18
+ slug: string;
19
+ sort_order?: number | null;
20
+ value_translations?: TranslationMap | null;
21
+ }
22
+ export interface ProductAttribute {
23
+ id: string;
24
+ name: string;
25
+ slug: string;
26
+ name_translations?: TranslationMap | null;
27
+ terms: ProductAttributeTerm[];
28
+ }
29
+ export interface ProductVariantOption {
30
+ attribute_id: string;
31
+ attribute_name: string;
32
+ term_id: string;
33
+ term_value: string;
34
+ term_slug?: string;
35
+ }
36
+ export interface ProductVariant {
37
+ id: string;
38
+ combination_key: string;
39
+ sku: string;
40
+ upc?: string | null;
41
+ price: number;
42
+ prices?: PriceMap | null;
43
+ sale_price?: number | null;
44
+ sale_prices?: SalePriceMap | null;
45
+ sale_start_at?: string | null;
46
+ sale_end_at?: string | null;
47
+ scheduled_price?: number | null;
48
+ scheduled_prices?: PriceMap | null;
49
+ scheduled_price_at?: string | null;
50
+ stock_quantity: number;
51
+ attribute_term_ids: string[];
52
+ selected_options: ProductVariantOption[];
53
+ label: string;
54
+ main_media_id?: string | null;
55
+ image_url?: string | null;
56
+ }
57
+ export interface Category {
58
+ id: string;
59
+ name: string;
60
+ slug: string;
61
+ description?: string | null;
62
+ name_translations?: Record<string, string> | null;
63
+ description_translations?: Record<string, string> | null;
64
+ }
65
+ export interface Product {
66
+ id: string;
67
+ title: string;
68
+ slug: string;
69
+ categories?: Category[];
70
+ sku: string;
71
+ upc?: string | null;
72
+ price: number;
73
+ prices?: PriceMap | null;
74
+ sale_price?: number | null;
75
+ sale_prices?: SalePriceMap | null;
76
+ sale_start_at?: string | null;
77
+ sale_end_at?: string | null;
78
+ scheduled_price?: number | null;
79
+ scheduled_prices?: PriceMap | null;
80
+ scheduled_price_at?: string | null;
81
+ is_taxable?: boolean;
82
+ product_type?: ProductType;
83
+ payment_provider?: EcommercePaymentProvider;
84
+ price_range_min?: number | null;
85
+ price_range_max?: number | null;
86
+ image_url?: string;
87
+ images?: {
88
+ url: string;
89
+ alt?: string;
90
+ }[];
91
+ short_description?: string | null;
92
+ description_json?: any;
93
+ description_blocks?: any[];
94
+ stock?: number | null;
95
+ freemius_product_id?: string;
96
+ freemius_plan_id?: string;
97
+ trial_period_days?: number | null;
98
+ trial_requires_payment_method?: boolean | null;
99
+ custom_props?: any;
100
+ language_id: number;
101
+ translation_group_id: string;
102
+ language_code?: string;
103
+ has_variants?: boolean;
104
+ variant_id?: string;
105
+ variant_label?: string;
106
+ selected_options?: ProductVariantOption[];
107
+ attributes?: ProductAttribute[];
108
+ variants?: ProductVariant[];
109
+ product_variants?: Array<{
110
+ id: string;
111
+ price: number;
112
+ prices?: PriceMap | null;
113
+ sale_price?: number | null;
114
+ sale_prices?: SalePriceMap | null;
115
+ sale_start_at?: string | null;
116
+ sale_end_at?: string | null;
117
+ scheduled_price?: number | null;
118
+ scheduled_prices?: PriceMap | null;
119
+ scheduled_price_at?: string | null;
120
+ }>;
121
+ freemius_plans?: Array<{
122
+ id: string;
123
+ name: string;
124
+ title: string | null;
125
+ freemius_pricing: Array<{
126
+ id: string;
127
+ license_quota: number | null;
128
+ api_monthly_price: number | null;
129
+ api_annual_price: number | null;
130
+ api_lifetime_price: number | null;
131
+ override_monthly_price: number | null;
132
+ override_annual_price: number | null;
133
+ override_lifetime_price: number | null;
134
+ is_active: boolean;
135
+ }>;
136
+ }>;
137
+ }
138
+ export interface ShippingZone {
139
+ id: string;
140
+ name: string;
141
+ priority_order: number;
142
+ countries: string[];
143
+ states: string[];
144
+ }
145
+ export interface TaxRate {
146
+ id: string;
147
+ country_code: string;
148
+ state_code?: string | null;
149
+ tax_name: string;
150
+ tax_rate: number;
151
+ created_at?: string | null;
152
+ updated_at?: string | null;
153
+ }
154
+ export type TaxCalculationMode = 'manual' | 'automatic';
155
+ export interface EcommerceSettings {
156
+ trackQuantities: boolean;
157
+ enableTaxes: boolean;
158
+ taxCalculationMode: TaxCalculationMode;
159
+ }
160
+ export interface TaxCalculationLine {
161
+ id?: string;
162
+ name: string;
163
+ rate: number;
164
+ amount: number;
165
+ country_code: string;
166
+ state_code?: string | null;
167
+ }
168
+ export interface TaxCalculationResult {
169
+ enabled: boolean;
170
+ mode: TaxCalculationMode;
171
+ amount: number;
172
+ taxableSubtotal: number;
173
+ lines: TaxCalculationLine[];
174
+ isPendingExternalCalculation?: boolean;
175
+ }
176
+ export type BillingCycle = 'monthly' | 'annual' | 'lifetime';
177
+ export type CartItemProvider = EcommercePaymentProvider;
178
+ export type CartItem = Product & {
179
+ quantity: number;
180
+ product_id: string;
181
+ currency_code?: string;
182
+ /** Which payment provider handles this cart item */
183
+ provider?: CartItemProvider;
184
+ /** For Freemius items: the selected billing cycle */
185
+ billing_cycle?: BillingCycle;
186
+ /** For Freemius items: explicitly requested trial mode (free vs paid) */
187
+ trial_preference?: 'free' | 'paid';
188
+ /** The MSRP/Original price before any sale_price logic */
189
+ original_price?: number;
190
+ };
191
+ export declare function getProductPaymentProvider(value: Pick<Product, 'payment_provider' | 'product_type' | 'freemius_product_id'> | Pick<CartItem, 'provider' | 'payment_provider' | 'product_type' | 'freemius_product_id'> | null | undefined): EcommercePaymentProvider | null;
192
+ export declare function isDigitalProduct(value: Pick<Product, 'payment_provider' | 'product_type' | 'freemius_product_id'> | Pick<CartItem, 'provider' | 'payment_provider' | 'product_type' | 'freemius_product_id'> | null | undefined): boolean;
193
+ export interface CheckoutProviderError {
194
+ error: string;
195
+ errorKey?: string;
196
+ errorParams?: Record<string, string | number>;
197
+ errorStatus?: number;
198
+ }
199
+ /** Helper to check if a cart item is a Freemius digital product */
200
+ export declare function isDigitalItem(item: Pick<CartItem, 'provider' | 'payment_provider' | 'product_type' | 'freemius_product_id'>): boolean;
201
+ export interface PaymentProvider {
202
+ createCheckoutSession(input: CheckoutSessionInput): Promise<{
203
+ url: string | null;
204
+ error?: string;
205
+ errorKey?: string;
206
+ errorParams?: Record<string, string | number>;
207
+ errorStatus?: number;
208
+ customProps?: any;
209
+ }>;
210
+ getProviderName(): string;
211
+ }
212
+ export interface FreemiusPlanAPI {
213
+ id: number;
214
+ name: string;
215
+ title: string;
216
+ description: string;
217
+ trial_period?: number | string | null;
218
+ is_require_subscription?: boolean | number | string | null;
219
+ created: string;
220
+ updated: string;
221
+ }
222
+ export interface FreemiusPricingAPI {
223
+ id: number;
224
+ plan_id: number;
225
+ currency: string;
226
+ monthly_price: number | null;
227
+ annual_price: number | null;
228
+ lifetime_price: number | null;
229
+ licenses: number;
230
+ }
231
+ /** Resolved pricing tier for the storefront (override takes precedence over api) */
232
+ export interface ResolvedPricingTier {
233
+ id: string;
234
+ license_quota: number;
235
+ monthly_price: number | null;
236
+ annual_price: number | null;
237
+ lifetime_price: number | null;
238
+ is_active: boolean;
239
+ }
240
+ export interface ResolvedPlanWithPricing {
241
+ id: string;
242
+ name: string;
243
+ title: string;
244
+ pricing: ResolvedPricingTier[];
245
+ }
@@ -0,0 +1,11 @@
1
+ import { useCartStore } from './cart-store';
2
+ /**
3
+ * A wrapper to safely use the cart store with hydration support.
4
+ * This prevents hydration mismatches because the persisted state in localStorage
5
+ * differs from the server-rendered HTML.
6
+ */
7
+ export declare const useCart: <T>(selector: (state: ReturnType<typeof useCartStore.getState>) => T) => T | undefined;
8
+ /**
9
+ * Hook to check if the store has hydrated.
10
+ */
11
+ export declare const useIsCartHydrated: () => boolean;
@@ -0,0 +1,72 @@
1
+ import { PriceMap, ProductAttribute, ProductAttributeTerm, ProductVariant, ProductVariantOption, SalePriceMap, TranslationMap } from './types';
2
+ export interface VariationSelectionGroup {
3
+ attribute_id: string;
4
+ attribute_name: string;
5
+ terms: ProductAttributeTerm[];
6
+ }
7
+ export interface ProductVariantDraft {
8
+ id?: string;
9
+ combination_key: string;
10
+ sku: string;
11
+ upc?: string | null;
12
+ price: number;
13
+ prices: PriceMap;
14
+ sale_price?: number | null;
15
+ sale_prices: SalePriceMap;
16
+ sale_start_at?: string | null;
17
+ sale_end_at?: string | null;
18
+ stock_quantity: number;
19
+ main_media_id?: string | null;
20
+ main_image_url?: string | null;
21
+ attribute_term_ids: string[];
22
+ selected_options: ProductVariantOption[];
23
+ label: string;
24
+ }
25
+ export declare function resolveTranslatedText(baseValue: string, translations?: TranslationMap | null, languageCode?: string | null): string;
26
+ export declare function resolveAttributeName(attribute: ProductAttribute, languageCode?: string | null): string;
27
+ export declare function resolveTermValue(term: ProductAttributeTerm, languageCode?: string | null): string;
28
+ export declare function buildCombinationKey(attributeTermIds: string[]): string;
29
+ export declare function buildVariantLabel(options: ProductVariantOption[]): string;
30
+ export declare function generateVariantDrafts(params: {
31
+ baseSku: string;
32
+ basePrice: number;
33
+ basePrices?: PriceMap | null;
34
+ baseSalePrice?: number | null;
35
+ baseSalePrices?: SalePriceMap | null;
36
+ selectedAttributes: VariationSelectionGroup[];
37
+ previousVariants?: ProductVariantDraft[];
38
+ }): {
39
+ id: string | undefined;
40
+ combination_key: string;
41
+ sku: string;
42
+ upc: string | null;
43
+ price: number;
44
+ prices: PriceMap;
45
+ sale_price: number | null;
46
+ sale_prices: SalePriceMap;
47
+ sale_start_at: string | null;
48
+ sale_end_at: string | null;
49
+ stock_quantity: number;
50
+ main_media_id: string | null;
51
+ main_image_url: string | null;
52
+ attribute_term_ids: string[];
53
+ selected_options: ProductVariantOption[];
54
+ label: string;
55
+ }[];
56
+ export declare function extractSelectedTermsByAttribute(variants: Array<{
57
+ selected_options?: ProductVariantOption[];
58
+ }>): Record<string, string[]>;
59
+ export declare function findMatchingVariant(variants: ProductVariant[], selections: Record<string, string | undefined>): ProductVariant | null;
60
+ export declare function getAvailableTermIdsForAttribute(variants: ProductVariant[], attributeId: string, selections: Record<string, string | undefined>): Set<string>;
61
+ export declare function chooseInitialVariantSelections(attributes: ProductAttribute[], variants: ProductVariant[]): Record<string, string>;
62
+ export declare function normalizeSelectionsToAvailableVariants(attributes: ProductAttribute[], variants: ProductVariant[], selections: Record<string, string | undefined>): {
63
+ [x: string]: string | undefined;
64
+ };
65
+ export declare function mapRawVariantRelations(rawVariants?: any[], languageCode?: string | null): {
66
+ attributes: ProductAttribute[];
67
+ variants: ProductVariant[];
68
+ };
69
+ export declare function getVariantEffectivePriceRange(variants: Array<Pick<ProductVariant, 'price' | 'sale_price' | 'sale_start_at' | 'sale_end_at'>>, now?: Date): {
70
+ min: number;
71
+ max: number;
72
+ } | null;
@@ -0,0 +1,2 @@
1
+ import { z } from 'zod';
2
+ export { z };
package/package.json CHANGED
@@ -1,6 +1,51 @@
1
1
  {
2
2
  "name": "@nextblock-cms/ecom",
3
- "version": "0.0.9",
3
+ "version": "0.8.0",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/nextblock-cms/packages.git"
10
+ },
4
11
  "type": "module",
5
- "dependencies": {}
12
+ "dependencies": {
13
+ "@nextblock-cms/db": "^0.8.0",
14
+ "@nextblock-cms/ui": "^0.8.0",
15
+ "@nextblock-cms/utils": "^0.8.0",
16
+ "@freemius/checkout": "^1.4.1",
17
+ "@freemius/sdk": "^0.3.0",
18
+ "@hookform/resolvers": "^5.2.2",
19
+ "@supabase/supabase-js": "^2.105.1",
20
+ "lucide-react": "^0.577.0",
21
+ "papaparse": "^5.5.3",
22
+ "postgres": "^3.4.9",
23
+ "react-hook-form": "^7.74.0",
24
+ "server-only": "^0.0.1",
25
+ "sonner": "^2.0.7",
26
+ "stripe": "^20.4.1",
27
+ "zod": "^4.3.6",
28
+ "zustand": "^5.0.12"
29
+ },
30
+ "peerDependencies": {
31
+ "next": "^16.2.7",
32
+ "react": "^19.2.5",
33
+ "react-dom": "^19.2.5"
34
+ },
35
+ "main": "./index.cjs.js",
36
+ "module": "./index.es.js",
37
+ "types": "./index.d.ts",
38
+ "exports": {
39
+ ".": {
40
+ "types": "./index.d.ts",
41
+ "import": "./index.es.js",
42
+ "require": "./index.cjs.js"
43
+ },
44
+ "./server": {
45
+ "types": "./server.d.ts",
46
+ "import": "./server.es.js",
47
+ "require": "./server.cjs.js"
48
+ },
49
+ "./package.json": "./package.json"
50
+ }
6
51
  }