@nok-integration/storefront-react 0.19.9 → 0.19.14
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/dist/index.d.ts +26 -12
- package/dist/index.mjs +529 -501
- package/dist/standalone/storefront.mjs +529 -501
- package/dist/standalone/styles.css +205 -190
- package/dist/styles.css +205 -190
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4241,20 +4241,27 @@ export declare interface OrderTimelineProps {
|
|
|
4241
4241
|
}
|
|
4242
4242
|
|
|
4243
4243
|
/**
|
|
4244
|
-
* Order tracking (Figma `order stats`,
|
|
4244
|
+
* Order tracking (Figma `order stats`, 5993:30258).
|
|
4245
4245
|
*
|
|
4246
4246
|
* One screen with three states, and the engine's `progress` is what draws them: the widget
|
|
4247
4247
|
* says where the parcel is, and everything under it is the same for all three.
|
|
4248
4248
|
*
|
|
4249
4249
|
* The first state carries a "Cancel order" button and the last offers a return.
|
|
4250
|
-
* Cancelling happens in place, through the reason sheet; a return is three screens,
|
|
4251
|
-
*
|
|
4252
|
-
* hand it on, and nothing here computes or settles a refund.
|
|
4250
|
+
* Cancelling happens in place, through the reason sheet; a return is three screens, and
|
|
4251
|
+
* they open in place too unless the host has a route of its own. **Neither moves money** —
|
|
4252
|
+
* both record a request and hand it on, and nothing here computes or settles a refund.
|
|
4253
4253
|
*
|
|
4254
4254
|
* Both are drawn on the ENGINE's say-so — `can_cancel` is its dispatch cut-off,
|
|
4255
4255
|
* `can_return` its returns window. Neither is a status this screen can infer, and it does
|
|
4256
4256
|
* not try.
|
|
4257
4257
|
*
|
|
4258
|
+
* **The return is offered in ONE place, and it is the "Start a return" row.** `order stats`
|
|
4259
|
+
* draws no button under the timeline; the `Return flow` section's own entry frame
|
|
4260
|
+
* (`5304:76852`) draws that button and no help block at all. The two disagree, and this
|
|
4261
|
+
* screen belongs to `order stats` — the same rule that makes "Order placed" ignore the
|
|
4262
|
+
* "Estimated delivery 22-27 Aug" headline that `Cancel flow` gives it. A screen that
|
|
4263
|
+
* exists only inside a flow, like the cancelled state below, follows that flow's section.
|
|
4264
|
+
*
|
|
4258
4265
|
* "Contact support" is different again: the form behind it is DAZN's, but the row has
|
|
4259
4266
|
* somewhere to go without them wiring anything, because pressing it raises
|
|
4260
4267
|
* `support_requested`.
|
|
@@ -4270,15 +4277,14 @@ export declare interface OrderTrackingViewProps {
|
|
|
4270
4277
|
/** Overrides the provider's locale for dates. */
|
|
4271
4278
|
locale?: string;
|
|
4272
4279
|
/**
|
|
4273
|
-
* Open the return flow.
|
|
4280
|
+
* Open the return flow on a route of your own.
|
|
4274
4281
|
*
|
|
4275
|
-
* Optional.
|
|
4276
|
-
*
|
|
4277
|
-
*
|
|
4278
|
-
* there.
|
|
4282
|
+
* Optional. Pass it and you own the trip: point it at `<ReturnFlowView>` with this
|
|
4283
|
+
* order's reference. Omit it and the flow opens in place on this screen, the way
|
|
4284
|
+
* cancelling opens its reason sheet.
|
|
4279
4285
|
*
|
|
4280
|
-
*
|
|
4281
|
-
*
|
|
4286
|
+
* Either way the control is drawn whenever the engine sends `can_return`, so the frame's
|
|
4287
|
+
* "Start a return" row is there for a fan whether you route it or not.
|
|
4282
4288
|
*/
|
|
4283
4289
|
onStartReturn?: () => void;
|
|
4284
4290
|
/**
|
|
@@ -5889,7 +5895,7 @@ export declare function sizeOptions(variants: ProductVariant[], colour?: string
|
|
|
5889
5895
|
* choice the parent flips `error` and the message + scroll target appear (buttons stay
|
|
5890
5896
|
* enabled per the design note). Chips are a real radiogroup for keyboard + SR support.
|
|
5891
5897
|
*/
|
|
5892
|
-
export declare function SizeSelector({ sizes, selected, onSelect, error, guide, }: SizeSelectorProps): JSX.Element;
|
|
5898
|
+
export declare function SizeSelector({ sizes, selected, onSelect, error, lowStock, guide, }: SizeSelectorProps): JSX.Element;
|
|
5893
5899
|
|
|
5894
5900
|
export declare interface SizeSelectorProps {
|
|
5895
5901
|
sizes: SizeOption[];
|
|
@@ -5898,6 +5904,14 @@ export declare interface SizeSelectorProps {
|
|
|
5898
5904
|
onSelect: (value: string) => void;
|
|
5899
5905
|
/** Show the "select a size" error (set after Add-to-cart is tapped with no selection). */
|
|
5900
5906
|
error?: boolean;
|
|
5907
|
+
/**
|
|
5908
|
+
* "Only 1 left in M size", when the selected size is nearly gone.
|
|
5909
|
+
*
|
|
5910
|
+
* Rendered here rather than by the caller because the frame's `low-stock` layer lives
|
|
5911
|
+
* INSIDE `mobile/pdp/size`, in the same slot as the error above it — the count is per
|
|
5912
|
+
* size, so it belongs under the squares it is about.
|
|
5913
|
+
*/
|
|
5914
|
+
lowStock?: string;
|
|
5901
5915
|
/**
|
|
5902
5916
|
* Category-wide sizing help. Absent = the control is not rendered at all, rather than
|
|
5903
5917
|
* opening an empty overlay — until DAZN supplies a measurement chart most categories
|