@nevios/storefront-kit 1.4.0 → 1.5.1
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/README.md +1 -1
- package/dist/index.cjs +764 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +93 -2
- package/dist/index.d.ts +93 -2
- package/dist/index.js +763 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as _nevios_storefront_js from '@nevios/storefront-js';
|
|
3
3
|
import { StorefrontClient, Money, Product, ProductMedia, ProductVariant, CollectionDetail, ProductSort, SubscriptionPlan, Cart, AddLineInput, UpdateCartLineInput, CartLine, SubscriptionSelection, SubscriptionQuote, Checkout, CreateCheckoutInput, SetAddressInput, ShippingQuote, PaymentMethod, SubscriptionAcceptance, SubscriptionEnrollmentResult, SubscriptionPayment, OrderStatus, PaymentState, OrderPhase, PaymentInstructions, Customer, MagicLinkResult, ReorderResult, SubscriptionDetails, Subscription } from '@nevios/storefront-js';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* NeviosProvider — puts a configured storefront client on React context so
|
|
@@ -215,6 +216,45 @@ declare const en: {
|
|
|
215
216
|
"error.generic.title": string;
|
|
216
217
|
"error.generic.body": string;
|
|
217
218
|
"error.home": string;
|
|
219
|
+
"subscriptions.mixPrice": string;
|
|
220
|
+
"subscriptions.locked.inactive": string;
|
|
221
|
+
"subscriptions.locked.cutoff": string;
|
|
222
|
+
"subscriptions.locked.in_flight": string;
|
|
223
|
+
"subscriptions.quantity": string;
|
|
224
|
+
"subscriptions.back": string;
|
|
225
|
+
"subscriptions.loading": string;
|
|
226
|
+
"subscriptions.loadingProducts": string;
|
|
227
|
+
"subscriptions.chargeDate": string;
|
|
228
|
+
"subscriptions.noticeHeld": string;
|
|
229
|
+
"subscriptions.nextDelivery": string;
|
|
230
|
+
"subscriptions.onlyNext": string;
|
|
231
|
+
"subscriptions.toCharge": string;
|
|
232
|
+
"subscriptions.noticeStatus": string;
|
|
233
|
+
"subscriptions.notice.pending": string;
|
|
234
|
+
"subscriptions.notice.queued": string;
|
|
235
|
+
"subscriptions.notice.sent": string;
|
|
236
|
+
"subscriptions.notice.failed": string;
|
|
237
|
+
"subscriptions.notice.superseded": string;
|
|
238
|
+
"subscriptions.editUntil": string;
|
|
239
|
+
"subscriptions.changeInterval": string;
|
|
240
|
+
"subscriptions.addNext": string;
|
|
241
|
+
"subscriptions.changeMix": string;
|
|
242
|
+
"subscriptions.skip": string;
|
|
243
|
+
"subscriptions.skipWarning": string;
|
|
244
|
+
"subscriptions.futureOnly": string;
|
|
245
|
+
"subscriptions.nextUnchanged": string;
|
|
246
|
+
"subscriptions.reviewTotal": string;
|
|
247
|
+
"subscriptions.acceptChange": string;
|
|
248
|
+
"subscriptions.reloadBeforeRetry": string;
|
|
249
|
+
"subscriptions.confirmChange": string;
|
|
250
|
+
"subscriptions.reviewChange": string;
|
|
251
|
+
"subscriptions.unit.week": string;
|
|
252
|
+
"subscriptions.unit.month": string;
|
|
253
|
+
"subscriptions.unit.year": string;
|
|
254
|
+
"subscriptions.searchProducts": string;
|
|
255
|
+
"subscriptions.addProduct": string;
|
|
256
|
+
"subscriptions.mixCount": string;
|
|
257
|
+
"subscriptions.addMix": string;
|
|
218
258
|
"account.title": string;
|
|
219
259
|
"account.signIn": string;
|
|
220
260
|
"account.signInBlurb": string;
|
|
@@ -548,13 +588,17 @@ interface CartState {
|
|
|
548
588
|
loading: boolean;
|
|
549
589
|
itemCount: number;
|
|
550
590
|
addLine(input: AddLineInput): Promise<Cart>;
|
|
591
|
+
setSubscriptionMix(planId: string, lines: {
|
|
592
|
+
variant_id: string;
|
|
593
|
+
quantity: number;
|
|
594
|
+
}[], expectedLineIds: string[]): Promise<Cart>;
|
|
551
595
|
updateLine(lineId: string, quantity: number | UpdateCartLineInput): Promise<Cart>;
|
|
552
596
|
removeLine(lineId: string): Promise<Cart>;
|
|
553
597
|
clearSubscription(): Promise<Cart>;
|
|
554
598
|
/** Re-fetch the cart from the server. */
|
|
555
599
|
refresh(): Promise<void>;
|
|
556
600
|
}
|
|
557
|
-
declare function CartProvider({ children }: {
|
|
601
|
+
declare function CartProvider({ children, }: {
|
|
558
602
|
children: React.ReactNode;
|
|
559
603
|
}): React.ReactElement;
|
|
560
604
|
declare function useCart(): CartState;
|
|
@@ -1113,6 +1157,21 @@ declare function useCustomerSubscriptions(): {
|
|
|
1113
1157
|
list(opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<Subscription[]>;
|
|
1114
1158
|
get(id: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<Subscription>;
|
|
1115
1159
|
management(id: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<SubscriptionDetails>;
|
|
1160
|
+
mixProducts(planId: string, options?: {
|
|
1161
|
+
marketId?: string;
|
|
1162
|
+
q?: string;
|
|
1163
|
+
offset?: number;
|
|
1164
|
+
signal?: AbortSignal;
|
|
1165
|
+
}): Promise<_nevios_storefront_js.SubscriptionProductOptions>;
|
|
1166
|
+
products(id: string, options?: {
|
|
1167
|
+
q?: string;
|
|
1168
|
+
offset?: number;
|
|
1169
|
+
scope?: "one_time" | "mix";
|
|
1170
|
+
signal?: AbortSignal;
|
|
1171
|
+
}): Promise<_nevios_storefront_js.SubscriptionProductOptions>;
|
|
1172
|
+
upcoming(id: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<_nevios_storefront_js.UpcomingSubscriptionDelivery>;
|
|
1173
|
+
previewNextItems(id: string, changes: _nevios_storefront_js.SubscriptionNextItems, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<_nevios_storefront_js.SubscriptionNextItemsQuote>;
|
|
1174
|
+
commitNextItems(id: string, changes: _nevios_storefront_js.SubscriptionNextItems, quote: _nevios_storefront_js.SubscriptionNextItemsQuote, consentEvidence: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<_nevios_storefront_js.UpcomingSubscriptionDelivery>;
|
|
1116
1175
|
command: (id: string, body: _nevios_storefront_js.SubscriptionCommand, opts?: _nevios_storefront_js.SubscriptionCallOptions) => Promise<Subscription>;
|
|
1117
1176
|
pause: (id: string, expectedVersion: number, opts?: _nevios_storefront_js.SubscriptionCallOptions) => Promise<Subscription>;
|
|
1118
1177
|
resume: (id: string, expectedVersion: number, nextAt: string, opts?: _nevios_storefront_js.SubscriptionCallOptions) => Promise<Subscription>;
|
|
@@ -1141,6 +1200,21 @@ declare function useCustomerSubscription(id: string | null): {
|
|
|
1141
1200
|
list(opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<Subscription[]>;
|
|
1142
1201
|
get(id: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<Subscription>;
|
|
1143
1202
|
management(id: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<SubscriptionDetails>;
|
|
1203
|
+
mixProducts(planId: string, options?: {
|
|
1204
|
+
marketId?: string;
|
|
1205
|
+
q?: string;
|
|
1206
|
+
offset?: number;
|
|
1207
|
+
signal?: AbortSignal;
|
|
1208
|
+
}): Promise<_nevios_storefront_js.SubscriptionProductOptions>;
|
|
1209
|
+
products(id: string, options?: {
|
|
1210
|
+
q?: string;
|
|
1211
|
+
offset?: number;
|
|
1212
|
+
scope?: "one_time" | "mix";
|
|
1213
|
+
signal?: AbortSignal;
|
|
1214
|
+
}): Promise<_nevios_storefront_js.SubscriptionProductOptions>;
|
|
1215
|
+
upcoming(id: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<_nevios_storefront_js.UpcomingSubscriptionDelivery>;
|
|
1216
|
+
previewNextItems(id: string, changes: _nevios_storefront_js.SubscriptionNextItems, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<_nevios_storefront_js.SubscriptionNextItemsQuote>;
|
|
1217
|
+
commitNextItems(id: string, changes: _nevios_storefront_js.SubscriptionNextItems, quote: _nevios_storefront_js.SubscriptionNextItemsQuote, consentEvidence: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<_nevios_storefront_js.UpcomingSubscriptionDelivery>;
|
|
1144
1218
|
command: (id: string, body: _nevios_storefront_js.SubscriptionCommand, opts?: _nevios_storefront_js.SubscriptionCallOptions) => Promise<Subscription>;
|
|
1145
1219
|
pause: (id: string, expectedVersion: number, opts?: _nevios_storefront_js.SubscriptionCallOptions) => Promise<Subscription>;
|
|
1146
1220
|
resume: (id: string, expectedVersion: number, nextAt: string, opts?: _nevios_storefront_js.SubscriptionCallOptions) => Promise<Subscription>;
|
|
@@ -1152,6 +1226,7 @@ declare function useCustomerSubscription(id: string | null): {
|
|
|
1152
1226
|
confirmCard(id: string, setupIntentId: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<Subscription>;
|
|
1153
1227
|
replaceCard(id: string, expectedVersion: number, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<_nevios_storefront_js.SubscriptionCardSetup>;
|
|
1154
1228
|
};
|
|
1229
|
+
readRevision: number;
|
|
1155
1230
|
};
|
|
1156
1231
|
|
|
1157
1232
|
declare function SubscriptionList({ href, locale }: {
|
|
@@ -1159,6 +1234,13 @@ declare function SubscriptionList({ href, locale }: {
|
|
|
1159
1234
|
locale?: string;
|
|
1160
1235
|
}): React.ReactElement;
|
|
1161
1236
|
|
|
1237
|
+
/** Customer-owned, reviewed changes. A failed/ambiguous commit locks the editor
|
|
1238
|
+
* until a fresh read; a customer/contract switch unmounts all private drafts. */
|
|
1239
|
+
declare function SubscriptionManager({ subscriptionId, locale, }: {
|
|
1240
|
+
subscriptionId: string;
|
|
1241
|
+
locale?: string;
|
|
1242
|
+
}): React.ReactElement | null;
|
|
1243
|
+
|
|
1162
1244
|
/**
|
|
1163
1245
|
* ProductJsonLd — schema.org/Product structured data for rich results (price,
|
|
1164
1246
|
* availability, brand). Drop it in the PDP <head> (or anywhere; it's a script).
|
|
@@ -1235,4 +1317,13 @@ interface JsonLdProps {
|
|
|
1235
1317
|
/** Render a JSON-LD `<script>` for the given (already-shaped) data object. */
|
|
1236
1318
|
declare function JsonLd({ data }: JsonLdProps): React.ReactElement;
|
|
1237
1319
|
|
|
1238
|
-
|
|
1320
|
+
/** Atomic cart selection. This is a composition offer, not an ordinary bundle SKU. */
|
|
1321
|
+
declare function Mix({ plan, marketId, locale, onAdded, }: {
|
|
1322
|
+
plan: SubscriptionPlan;
|
|
1323
|
+
marketId?: string;
|
|
1324
|
+
locale?: string;
|
|
1325
|
+
onAdded?: () => void;
|
|
1326
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
1327
|
+
declare function SubscriptionMix(props: Parameters<typeof Mix>[0]): react_jsx_runtime.JSX.Element;
|
|
1328
|
+
|
|
1329
|
+
export { AccountDashboard, type AccountDashboardProps, AccountProvider, AccountSecurity, type AccountState, AddToCart, type AddToCartProps, AddressBook, AddressForm, type AddressFormProps, AvailabilityFilter, type AvailabilityFilterProps, BackInStockForm, type BackInStockFormProps, type BreadcrumbItem, BreadcrumbJsonLd, type BreadcrumbJsonLdProps, CartDrawer, type CartDrawerProps, CartLineItem, type CartLineItemProps, CartProvider, type CartState, CartSummary, type CartSummaryProps, CheckoutFlow, type CheckoutFlowProps, CheckoutProvider, type CheckoutState, CollectionPage, type CollectionPageProps, I18nProvider, type I18nProviderProps, type I18nValue, JsonLd, type JsonLdProps, LoginForm, type LoginFormProps, type MarketOption, MarketSwitcher, type MarketSwitcherProps, type MessageKey, type Messages, NeviosProvider, type NeviosProviderProps, OrderConfirmation, type OrderConfirmationProps, OrderHistory, type OrderHistoryProps, OrderLines, OrderStatusPage, type OrderStatusPageProps, type OrderStatusState, OrderSummary, type OrderSummaryProps, OrderTotals, OrganizationJsonLd, type OrganizationJsonLdProps, type PayOptions, type PayResult, PaymentMethodPicker, type PaymentMethodPickerProps, PaymentPage, type PaymentPageProps, type PaymentPageState, PaymentSection, type PaymentSectionProps, PhaseTimeline, PriceMoney, type PriceMoneyProps, PriceRangeFilter, type PriceRangeFilterProps, ProductCard, type ProductCardProps, ProductDetailPage, type ProductDetailPageProps, ProductGallery, type ProductGalleryProps, ProductJsonLd, type ProductJsonLdProps, ProfileEditor, PurchaseOptions, ShippingPicker, type ShippingPickerProps, SortSelect, type SortSelectProps, StatusBanner, StockBadge, type StockBadgeProps, type StorefrontTheme, SubscriptionList, SubscriptionManager, SubscriptionMix, SubscriptionTerms, type TFunction, type TVars, TagFilter, type TagFilterProps, ThemeProvider, type ThemeProviderProps, TransferInstructions, type TransferInstructionsProps, VariantPicker, type VariantPickerProps, type VerifyStatus, absoluteUrl, bundledMessages, cs, en, formatCents, formatMoney, isTerminal, serializeJsonLd, stripHtml, themeToCssVars, useAccount, useCart, useCheckout, useCustomerSubscription, useCustomerSubscriptions, useI18n, useMagicLinkVerify, useOrderStatus, usePayment, useStorefront, useStorefrontOptional, useT };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as _nevios_storefront_js from '@nevios/storefront-js';
|
|
3
3
|
import { StorefrontClient, Money, Product, ProductMedia, ProductVariant, CollectionDetail, ProductSort, SubscriptionPlan, Cart, AddLineInput, UpdateCartLineInput, CartLine, SubscriptionSelection, SubscriptionQuote, Checkout, CreateCheckoutInput, SetAddressInput, ShippingQuote, PaymentMethod, SubscriptionAcceptance, SubscriptionEnrollmentResult, SubscriptionPayment, OrderStatus, PaymentState, OrderPhase, PaymentInstructions, Customer, MagicLinkResult, ReorderResult, SubscriptionDetails, Subscription } from '@nevios/storefront-js';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* NeviosProvider — puts a configured storefront client on React context so
|
|
@@ -215,6 +216,45 @@ declare const en: {
|
|
|
215
216
|
"error.generic.title": string;
|
|
216
217
|
"error.generic.body": string;
|
|
217
218
|
"error.home": string;
|
|
219
|
+
"subscriptions.mixPrice": string;
|
|
220
|
+
"subscriptions.locked.inactive": string;
|
|
221
|
+
"subscriptions.locked.cutoff": string;
|
|
222
|
+
"subscriptions.locked.in_flight": string;
|
|
223
|
+
"subscriptions.quantity": string;
|
|
224
|
+
"subscriptions.back": string;
|
|
225
|
+
"subscriptions.loading": string;
|
|
226
|
+
"subscriptions.loadingProducts": string;
|
|
227
|
+
"subscriptions.chargeDate": string;
|
|
228
|
+
"subscriptions.noticeHeld": string;
|
|
229
|
+
"subscriptions.nextDelivery": string;
|
|
230
|
+
"subscriptions.onlyNext": string;
|
|
231
|
+
"subscriptions.toCharge": string;
|
|
232
|
+
"subscriptions.noticeStatus": string;
|
|
233
|
+
"subscriptions.notice.pending": string;
|
|
234
|
+
"subscriptions.notice.queued": string;
|
|
235
|
+
"subscriptions.notice.sent": string;
|
|
236
|
+
"subscriptions.notice.failed": string;
|
|
237
|
+
"subscriptions.notice.superseded": string;
|
|
238
|
+
"subscriptions.editUntil": string;
|
|
239
|
+
"subscriptions.changeInterval": string;
|
|
240
|
+
"subscriptions.addNext": string;
|
|
241
|
+
"subscriptions.changeMix": string;
|
|
242
|
+
"subscriptions.skip": string;
|
|
243
|
+
"subscriptions.skipWarning": string;
|
|
244
|
+
"subscriptions.futureOnly": string;
|
|
245
|
+
"subscriptions.nextUnchanged": string;
|
|
246
|
+
"subscriptions.reviewTotal": string;
|
|
247
|
+
"subscriptions.acceptChange": string;
|
|
248
|
+
"subscriptions.reloadBeforeRetry": string;
|
|
249
|
+
"subscriptions.confirmChange": string;
|
|
250
|
+
"subscriptions.reviewChange": string;
|
|
251
|
+
"subscriptions.unit.week": string;
|
|
252
|
+
"subscriptions.unit.month": string;
|
|
253
|
+
"subscriptions.unit.year": string;
|
|
254
|
+
"subscriptions.searchProducts": string;
|
|
255
|
+
"subscriptions.addProduct": string;
|
|
256
|
+
"subscriptions.mixCount": string;
|
|
257
|
+
"subscriptions.addMix": string;
|
|
218
258
|
"account.title": string;
|
|
219
259
|
"account.signIn": string;
|
|
220
260
|
"account.signInBlurb": string;
|
|
@@ -548,13 +588,17 @@ interface CartState {
|
|
|
548
588
|
loading: boolean;
|
|
549
589
|
itemCount: number;
|
|
550
590
|
addLine(input: AddLineInput): Promise<Cart>;
|
|
591
|
+
setSubscriptionMix(planId: string, lines: {
|
|
592
|
+
variant_id: string;
|
|
593
|
+
quantity: number;
|
|
594
|
+
}[], expectedLineIds: string[]): Promise<Cart>;
|
|
551
595
|
updateLine(lineId: string, quantity: number | UpdateCartLineInput): Promise<Cart>;
|
|
552
596
|
removeLine(lineId: string): Promise<Cart>;
|
|
553
597
|
clearSubscription(): Promise<Cart>;
|
|
554
598
|
/** Re-fetch the cart from the server. */
|
|
555
599
|
refresh(): Promise<void>;
|
|
556
600
|
}
|
|
557
|
-
declare function CartProvider({ children }: {
|
|
601
|
+
declare function CartProvider({ children, }: {
|
|
558
602
|
children: React.ReactNode;
|
|
559
603
|
}): React.ReactElement;
|
|
560
604
|
declare function useCart(): CartState;
|
|
@@ -1113,6 +1157,21 @@ declare function useCustomerSubscriptions(): {
|
|
|
1113
1157
|
list(opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<Subscription[]>;
|
|
1114
1158
|
get(id: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<Subscription>;
|
|
1115
1159
|
management(id: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<SubscriptionDetails>;
|
|
1160
|
+
mixProducts(planId: string, options?: {
|
|
1161
|
+
marketId?: string;
|
|
1162
|
+
q?: string;
|
|
1163
|
+
offset?: number;
|
|
1164
|
+
signal?: AbortSignal;
|
|
1165
|
+
}): Promise<_nevios_storefront_js.SubscriptionProductOptions>;
|
|
1166
|
+
products(id: string, options?: {
|
|
1167
|
+
q?: string;
|
|
1168
|
+
offset?: number;
|
|
1169
|
+
scope?: "one_time" | "mix";
|
|
1170
|
+
signal?: AbortSignal;
|
|
1171
|
+
}): Promise<_nevios_storefront_js.SubscriptionProductOptions>;
|
|
1172
|
+
upcoming(id: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<_nevios_storefront_js.UpcomingSubscriptionDelivery>;
|
|
1173
|
+
previewNextItems(id: string, changes: _nevios_storefront_js.SubscriptionNextItems, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<_nevios_storefront_js.SubscriptionNextItemsQuote>;
|
|
1174
|
+
commitNextItems(id: string, changes: _nevios_storefront_js.SubscriptionNextItems, quote: _nevios_storefront_js.SubscriptionNextItemsQuote, consentEvidence: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<_nevios_storefront_js.UpcomingSubscriptionDelivery>;
|
|
1116
1175
|
command: (id: string, body: _nevios_storefront_js.SubscriptionCommand, opts?: _nevios_storefront_js.SubscriptionCallOptions) => Promise<Subscription>;
|
|
1117
1176
|
pause: (id: string, expectedVersion: number, opts?: _nevios_storefront_js.SubscriptionCallOptions) => Promise<Subscription>;
|
|
1118
1177
|
resume: (id: string, expectedVersion: number, nextAt: string, opts?: _nevios_storefront_js.SubscriptionCallOptions) => Promise<Subscription>;
|
|
@@ -1141,6 +1200,21 @@ declare function useCustomerSubscription(id: string | null): {
|
|
|
1141
1200
|
list(opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<Subscription[]>;
|
|
1142
1201
|
get(id: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<Subscription>;
|
|
1143
1202
|
management(id: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<SubscriptionDetails>;
|
|
1203
|
+
mixProducts(planId: string, options?: {
|
|
1204
|
+
marketId?: string;
|
|
1205
|
+
q?: string;
|
|
1206
|
+
offset?: number;
|
|
1207
|
+
signal?: AbortSignal;
|
|
1208
|
+
}): Promise<_nevios_storefront_js.SubscriptionProductOptions>;
|
|
1209
|
+
products(id: string, options?: {
|
|
1210
|
+
q?: string;
|
|
1211
|
+
offset?: number;
|
|
1212
|
+
scope?: "one_time" | "mix";
|
|
1213
|
+
signal?: AbortSignal;
|
|
1214
|
+
}): Promise<_nevios_storefront_js.SubscriptionProductOptions>;
|
|
1215
|
+
upcoming(id: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<_nevios_storefront_js.UpcomingSubscriptionDelivery>;
|
|
1216
|
+
previewNextItems(id: string, changes: _nevios_storefront_js.SubscriptionNextItems, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<_nevios_storefront_js.SubscriptionNextItemsQuote>;
|
|
1217
|
+
commitNextItems(id: string, changes: _nevios_storefront_js.SubscriptionNextItems, quote: _nevios_storefront_js.SubscriptionNextItemsQuote, consentEvidence: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<_nevios_storefront_js.UpcomingSubscriptionDelivery>;
|
|
1144
1218
|
command: (id: string, body: _nevios_storefront_js.SubscriptionCommand, opts?: _nevios_storefront_js.SubscriptionCallOptions) => Promise<Subscription>;
|
|
1145
1219
|
pause: (id: string, expectedVersion: number, opts?: _nevios_storefront_js.SubscriptionCallOptions) => Promise<Subscription>;
|
|
1146
1220
|
resume: (id: string, expectedVersion: number, nextAt: string, opts?: _nevios_storefront_js.SubscriptionCallOptions) => Promise<Subscription>;
|
|
@@ -1152,6 +1226,7 @@ declare function useCustomerSubscription(id: string | null): {
|
|
|
1152
1226
|
confirmCard(id: string, setupIntentId: string, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<Subscription>;
|
|
1153
1227
|
replaceCard(id: string, expectedVersion: number, opts?: _nevios_storefront_js.SubscriptionCallOptions): Promise<_nevios_storefront_js.SubscriptionCardSetup>;
|
|
1154
1228
|
};
|
|
1229
|
+
readRevision: number;
|
|
1155
1230
|
};
|
|
1156
1231
|
|
|
1157
1232
|
declare function SubscriptionList({ href, locale }: {
|
|
@@ -1159,6 +1234,13 @@ declare function SubscriptionList({ href, locale }: {
|
|
|
1159
1234
|
locale?: string;
|
|
1160
1235
|
}): React.ReactElement;
|
|
1161
1236
|
|
|
1237
|
+
/** Customer-owned, reviewed changes. A failed/ambiguous commit locks the editor
|
|
1238
|
+
* until a fresh read; a customer/contract switch unmounts all private drafts. */
|
|
1239
|
+
declare function SubscriptionManager({ subscriptionId, locale, }: {
|
|
1240
|
+
subscriptionId: string;
|
|
1241
|
+
locale?: string;
|
|
1242
|
+
}): React.ReactElement | null;
|
|
1243
|
+
|
|
1162
1244
|
/**
|
|
1163
1245
|
* ProductJsonLd — schema.org/Product structured data for rich results (price,
|
|
1164
1246
|
* availability, brand). Drop it in the PDP <head> (or anywhere; it's a script).
|
|
@@ -1235,4 +1317,13 @@ interface JsonLdProps {
|
|
|
1235
1317
|
/** Render a JSON-LD `<script>` for the given (already-shaped) data object. */
|
|
1236
1318
|
declare function JsonLd({ data }: JsonLdProps): React.ReactElement;
|
|
1237
1319
|
|
|
1238
|
-
|
|
1320
|
+
/** Atomic cart selection. This is a composition offer, not an ordinary bundle SKU. */
|
|
1321
|
+
declare function Mix({ plan, marketId, locale, onAdded, }: {
|
|
1322
|
+
plan: SubscriptionPlan;
|
|
1323
|
+
marketId?: string;
|
|
1324
|
+
locale?: string;
|
|
1325
|
+
onAdded?: () => void;
|
|
1326
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
1327
|
+
declare function SubscriptionMix(props: Parameters<typeof Mix>[0]): react_jsx_runtime.JSX.Element;
|
|
1328
|
+
|
|
1329
|
+
export { AccountDashboard, type AccountDashboardProps, AccountProvider, AccountSecurity, type AccountState, AddToCart, type AddToCartProps, AddressBook, AddressForm, type AddressFormProps, AvailabilityFilter, type AvailabilityFilterProps, BackInStockForm, type BackInStockFormProps, type BreadcrumbItem, BreadcrumbJsonLd, type BreadcrumbJsonLdProps, CartDrawer, type CartDrawerProps, CartLineItem, type CartLineItemProps, CartProvider, type CartState, CartSummary, type CartSummaryProps, CheckoutFlow, type CheckoutFlowProps, CheckoutProvider, type CheckoutState, CollectionPage, type CollectionPageProps, I18nProvider, type I18nProviderProps, type I18nValue, JsonLd, type JsonLdProps, LoginForm, type LoginFormProps, type MarketOption, MarketSwitcher, type MarketSwitcherProps, type MessageKey, type Messages, NeviosProvider, type NeviosProviderProps, OrderConfirmation, type OrderConfirmationProps, OrderHistory, type OrderHistoryProps, OrderLines, OrderStatusPage, type OrderStatusPageProps, type OrderStatusState, OrderSummary, type OrderSummaryProps, OrderTotals, OrganizationJsonLd, type OrganizationJsonLdProps, type PayOptions, type PayResult, PaymentMethodPicker, type PaymentMethodPickerProps, PaymentPage, type PaymentPageProps, type PaymentPageState, PaymentSection, type PaymentSectionProps, PhaseTimeline, PriceMoney, type PriceMoneyProps, PriceRangeFilter, type PriceRangeFilterProps, ProductCard, type ProductCardProps, ProductDetailPage, type ProductDetailPageProps, ProductGallery, type ProductGalleryProps, ProductJsonLd, type ProductJsonLdProps, ProfileEditor, PurchaseOptions, ShippingPicker, type ShippingPickerProps, SortSelect, type SortSelectProps, StatusBanner, StockBadge, type StockBadgeProps, type StorefrontTheme, SubscriptionList, SubscriptionManager, SubscriptionMix, SubscriptionTerms, type TFunction, type TVars, TagFilter, type TagFilterProps, ThemeProvider, type ThemeProviderProps, TransferInstructions, type TransferInstructionsProps, VariantPicker, type VariantPickerProps, type VerifyStatus, absoluteUrl, bundledMessages, cs, en, formatCents, formatMoney, isTerminal, serializeJsonLd, stripHtml, themeToCssVars, useAccount, useCart, useCheckout, useCustomerSubscription, useCustomerSubscriptions, useI18n, useMagicLinkVerify, useOrderStatus, usePayment, useStorefront, useStorefrontOptional, useT };
|