@scopetickets/checkout 0.4.2 → 0.5.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/README.md +13 -10
- package/dist/analytics.cjs +91 -0
- package/dist/analytics.cjs.map +1 -0
- package/dist/analytics.d.cts +285 -0
- package/dist/analytics.d.ts +285 -0
- package/dist/analytics.js +65 -0
- package/dist/analytics.js.map +1 -0
- package/dist/{chunk-WT7WSYIH.js → chunk-SUAJAOHM.js} +808 -790
- package/dist/chunk-SUAJAOHM.js.map +1 -0
- package/dist/index.cjs +8425 -5937
- package/dist/index.cjs.map +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +307 -10
- package/dist/index.d.ts +307 -10
- package/dist/index.js +8549 -6085
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +27 -14
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.css +77 -1
- package/dist/pickers.css.map +1 -1
- package/dist/pickers.d.cts +31 -7
- package/dist/pickers.d.ts +31 -7
- package/dist/pickers.js +1 -1
- package/dist/styles.css +186 -7
- package/package.json +6 -1
- package/dist/chunk-WT7WSYIH.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -94,10 +94,17 @@ export declare function attributeCartItems(requested: readonly RequestedItem[],
|
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
* A cart item with the user type it was BOUGHT FOR attached — see `attributeCartItems`,
|
|
97
|
-
* which is the only thing that can attach it.
|
|
97
|
+
* which is the only thing that can attach it — and the ticket it is a head of.
|
|
98
98
|
*/
|
|
99
99
|
export declare type AttributedCartItem = CartItem & {
|
|
100
100
|
readonly userType?: string;
|
|
101
|
+
/**
|
|
102
|
+
* THE TICKET (PRODUCT) THE LINE IS A HEAD OF, which the wire's own line does not carry:
|
|
103
|
+
* `CartItem` names itself and holds a numeric `ItemId`, and a name is not a key. The fill
|
|
104
|
+
* knows it — every head it asks for is of one product — so it is stamped there. Absent on
|
|
105
|
+
* a host's cart, where nothing was asked for and no product was read.
|
|
106
|
+
*/
|
|
107
|
+
readonly productKey?: string;
|
|
101
108
|
};
|
|
102
109
|
|
|
103
110
|
export declare const AUTH_CARDS: Record<AuthCardId, AuthCard>;
|
|
@@ -633,8 +640,6 @@ export declare type CardAction = {
|
|
|
633
640
|
* with [mark] • 1123", as the design draws it.
|
|
634
641
|
*/
|
|
635
642
|
readonly label: string;
|
|
636
|
-
/** What the button DOES, for the few that do anything. */
|
|
637
|
-
readonly onPress?: () => void;
|
|
638
643
|
/**
|
|
639
644
|
* THE DETOUR THIS BUTTON OPENS — the other half of `PurchaseStep.detourFrom`, which
|
|
640
645
|
* says which card a step hangs off but not what opens it.
|
|
@@ -709,6 +714,19 @@ export declare type CardAction = {
|
|
|
709
714
|
* IS what Skip does.
|
|
710
715
|
*/
|
|
711
716
|
readonly rates?: boolean;
|
|
717
|
+
/**
|
|
718
|
+
* THE PROMO CARD'S ONE BUTTON, AND WHICH OF ITS TWO WORDS IT IS — Apply sends what is
|
|
719
|
+
* typed, Remove takes the order's code off. Declared rather than handled, like `pays`:
|
|
720
|
+
* the card is a detour, and a button with no meaning of its own on a detour is its way
|
|
721
|
+
* back — which is how Apply came to close the card and send nothing.
|
|
722
|
+
*/
|
|
723
|
+
readonly promo?: 'APPLY' | 'REMOVE';
|
|
724
|
+
/** Add Password's "Show Entered Text" — the card's own toggle, and it moves nothing. */
|
|
725
|
+
readonly reveals?: boolean;
|
|
726
|
+
/** Verify Email's Re-send: another one-time code to the same address. */
|
|
727
|
+
readonly resends?: boolean;
|
|
728
|
+
/** The Processing card's Cancel, while a provider's own journey has the payment. */
|
|
729
|
+
readonly cancels?: boolean;
|
|
712
730
|
};
|
|
713
731
|
|
|
714
732
|
/** Marks content that should survive a step change rather than fade through itself. */
|
|
@@ -879,8 +897,76 @@ export declare function cartViewProps(input: ReactNode, hold: EscrowHold, onBack
|
|
|
879
897
|
}[];
|
|
880
898
|
};
|
|
881
899
|
|
|
900
|
+
/**
|
|
901
|
+
* WHAT A CHARGE WAS MADE WITH — every way of paying the frames and the sheets take, in
|
|
902
|
+
* the frames' spelling. Held on the watch the charge arms, because by the time anyone
|
|
903
|
+
* reads the order the thing that knew — a frame's status, a sheet opening — has moved
|
|
904
|
+
* on, and a renderer's own record of the choice can land a render behind the charge.
|
|
905
|
+
*/
|
|
906
|
+
declare type ChargeMethod = 'card' | 'revolut_pay' | 'apple_pay' | 'google_pay';
|
|
907
|
+
|
|
908
|
+
/** Bumped only by a rename or a removal — see the analytics guide's versioning. */
|
|
909
|
+
declare const CHECKOUT_EVENT_SCHEMA = 1;
|
|
910
|
+
|
|
911
|
+
/** One thing that happened, and where. The public shape a host's `onEvent` is handed. */
|
|
912
|
+
export declare type CheckoutEvent = CheckoutEventBody & {
|
|
913
|
+
readonly context: EventContext;
|
|
914
|
+
};
|
|
915
|
+
|
|
916
|
+
declare type CheckoutEventBody = {
|
|
917
|
+
readonly name: 'view_item';
|
|
918
|
+
readonly items: readonly EventItem[];
|
|
919
|
+
} | {
|
|
920
|
+
readonly name: 'set_party';
|
|
921
|
+
readonly party_size: number;
|
|
922
|
+
readonly user_type_count: number;
|
|
923
|
+
} | {
|
|
924
|
+
readonly name: 'select_date';
|
|
925
|
+
readonly date: string;
|
|
926
|
+
readonly days_ahead?: number;
|
|
927
|
+
} | {
|
|
928
|
+
readonly name: 'select_time';
|
|
929
|
+
readonly time: string;
|
|
930
|
+
} | ({
|
|
931
|
+
readonly name: 'add_to_cart';
|
|
932
|
+
} & Priced) | ({
|
|
933
|
+
readonly name: 'remove_from_cart';
|
|
934
|
+
} & Priced) | {
|
|
935
|
+
readonly name: 'availability_refused';
|
|
936
|
+
readonly notice_key: NoticeId;
|
|
937
|
+
} | ({
|
|
938
|
+
readonly name: 'begin_checkout';
|
|
939
|
+
} & Priced) | {
|
|
940
|
+
readonly name: 'login';
|
|
941
|
+
readonly method: 'passkey' | 'password';
|
|
942
|
+
} | {
|
|
943
|
+
readonly name: 'checkout_as_guest';
|
|
944
|
+
} | {
|
|
945
|
+
readonly name: 'sign_up';
|
|
946
|
+
readonly method: 'email';
|
|
947
|
+
} | ({
|
|
948
|
+
readonly name: 'add_payment_info';
|
|
949
|
+
readonly payment_type?: PaymentType;
|
|
950
|
+
} & Priced) | ({
|
|
951
|
+
readonly name: 'purchase';
|
|
952
|
+
readonly transaction_id: string;
|
|
953
|
+
} & Priced) | {
|
|
954
|
+
readonly name: 'payment_failed';
|
|
955
|
+
readonly attempt: number;
|
|
956
|
+
} | {
|
|
957
|
+
readonly name: 'payment_unconfirmed';
|
|
958
|
+
readonly attempt: number;
|
|
959
|
+
} | {
|
|
960
|
+
readonly name: 'hold_expired';
|
|
961
|
+
} | {
|
|
962
|
+
readonly name: 'checkout_abandoned';
|
|
963
|
+
readonly step: PurchaseStepId;
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
export declare type CheckoutEventName = CheckoutEventBody['name'];
|
|
967
|
+
|
|
882
968
|
/** The island, as the design draws it: a pill that becomes a card. */
|
|
883
|
-
export declare function CheckoutIsland({ expanded, contentKey, onToggle, avatar, title, subtitle, pillCopy, input, bay, bayVisible, bayRows, variant, sealed, closable, actionLabel, actions, footer, bayActions, dismiss, dismissIcon, dismissLabel, headerLead, headerTrail, mode, align, placement, journeyFullscreen, }: CheckoutIslandProps): react_jsx_runtime.JSX.Element;
|
|
969
|
+
export declare function CheckoutIsland({ expanded, contentKey, onToggle, avatar, title, subtitle, pillCopy, input, bay, bayVisible, bayRows, variant, sealed, typed, closable, actionLabel, actions, footer, bayActions, dismiss, dismissIcon, dismissLabel, headerLead, headerTrail, mode, align, placement, journeyFullscreen, }: CheckoutIslandProps): react_jsx_runtime.JSX.Element;
|
|
884
970
|
|
|
885
971
|
export declare type CheckoutIslandProps = {
|
|
886
972
|
/** Collapsed is the pill; expanded is the card. */
|
|
@@ -952,6 +1038,8 @@ export declare type CheckoutIslandProps = {
|
|
|
952
1038
|
* "input is blocked entirely; there is no way out and nothing to collapse to".
|
|
953
1039
|
*/
|
|
954
1040
|
readonly sealed?: boolean;
|
|
1041
|
+
/** The card is typed into, and drawn tall — see `IslandCardProps.typed`. */
|
|
1042
|
+
readonly typed?: boolean;
|
|
955
1043
|
/**
|
|
956
1044
|
* WHETHER THE HEADER DRAWS A WAY OUT. Defaults to true.
|
|
957
1045
|
*
|
|
@@ -1010,6 +1098,13 @@ export declare type CheckoutProps = {
|
|
|
1010
1098
|
* somebody's checkout with no idea whose.
|
|
1011
1099
|
*/
|
|
1012
1100
|
readonly appKey: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* THE APP'S PUBLIC `AppKey` — 32 hex characters, no hyphens — which says whose checkout
|
|
1103
|
+
* this is in what the widget publishes. NOT `appKey` above: despite the name, that one
|
|
1104
|
+
* is the `AppApiKey`, the Bearer token, and never leaves the page. A value that is not
|
|
1105
|
+
* an AppKey is dropped with a console warning; checkout carries on either way.
|
|
1106
|
+
*/
|
|
1107
|
+
readonly applicationKey?: string;
|
|
1013
1108
|
/**
|
|
1014
1109
|
* WHICH PLATFORM, and nothing else — the app key above is what authenticates. Optional
|
|
1015
1110
|
* in every field: absent means production.
|
|
@@ -1131,6 +1226,43 @@ export declare type CheckoutProps = {
|
|
|
1131
1226
|
* `simulatedAccountGateway`.
|
|
1132
1227
|
*/
|
|
1133
1228
|
readonly simulate?: boolean;
|
|
1229
|
+
/**
|
|
1230
|
+
* EVERY NOTICE THE BUYER IS SHOWN, as a report — keys and flags only, never the buyer's
|
|
1231
|
+
* name, email, phone, address or card, and never the notice's subtitle. See
|
|
1232
|
+
* `NoticeReport`. `severity` separates the funnel's question from the fault tracker's:
|
|
1233
|
+
* a WARNING is inventory doing what inventory does, a FAILURE is a fault. It fires
|
|
1234
|
+
* whether or not `errorReporting` is on.
|
|
1235
|
+
*/
|
|
1236
|
+
readonly onNotice?: (report: NoticeReport) => void;
|
|
1237
|
+
/**
|
|
1238
|
+
* WHAT THE BUYER DID, AS IT HAPPENS — the party chosen, the cart filled, the payment
|
|
1239
|
+
* attempted, the sale — each one a `CheckoutEvent`: keys, flags and the cart's money,
|
|
1240
|
+
* never the buyer. On the same terms as `onNotice`: synchronous, in order, after the
|
|
1241
|
+
* change is drawn. A callback that throws is caught and checkout carries on. It fires
|
|
1242
|
+
* whatever the page's consent, because nothing in it is personal; what the host's own
|
|
1243
|
+
* tags do with it is the host's consent to decide. `@scopetickets/checkout/analytics`
|
|
1244
|
+
* turns one into a `dataLayer` push.
|
|
1245
|
+
*/
|
|
1246
|
+
readonly onEvent?: (event: CheckoutEvent) => void;
|
|
1247
|
+
/**
|
|
1248
|
+
* ASK THE WIDGET TO GO, by changing this number — a host opening a second booking on the same
|
|
1249
|
+
* page, where one checkout at a time is the rule. Each change after the first render is one
|
|
1250
|
+
* request; the value itself means nothing.
|
|
1251
|
+
*
|
|
1252
|
+
* WHAT IT DOES IS THE CROSS'S OWN QUESTION, NEVER AN OVERRULING. With a cart held, the widget
|
|
1253
|
+
* opens on the abandon card: Confirm gives the cart back (`checkout_abandoned` on `onEvent`)
|
|
1254
|
+
* and the host may then dismiss it; the buyer's way back keeps the order and nothing is said,
|
|
1255
|
+
* so the other booking waits. With nothing held it does nothing — there is nothing to give
|
|
1256
|
+
* back, and dismissing is the host's own unmount. Never once money has moved or is moving.
|
|
1257
|
+
*/
|
|
1258
|
+
readonly leaveSignal?: number;
|
|
1259
|
+
/**
|
|
1260
|
+
* WHETHER FAILURES ARE REPORTED TO SCOPE. On by default, because a reporting scheme each
|
|
1261
|
+
* integration has to remember to switch on reports nothing — and the failures worth
|
|
1262
|
+
* knowing about are the ones on sites nobody is watching. Warnings ride along as
|
|
1263
|
+
* breadcrumbs on the next failure; they are never events of their own.
|
|
1264
|
+
*/
|
|
1265
|
+
readonly errorReporting?: boolean;
|
|
1134
1266
|
/** Called with the completed intent when the last step is answered. */
|
|
1135
1267
|
readonly onCommit?: (intent: OrderIntent) => void;
|
|
1136
1268
|
/**
|
|
@@ -1185,8 +1317,27 @@ export declare type CheckoutProps = {
|
|
|
1185
1317
|
*
|
|
1186
1318
|
* THE HOST'S TO SUPPLY, like `openingLabel` and for the same reason: which strand a page
|
|
1187
1319
|
* sells is something the page knows and the widget cannot infer.
|
|
1320
|
+
*
|
|
1321
|
+
* NAMED, THEY BECOME A FILTER. Written as `{ key, label }`, two or more inventories draw a
|
|
1322
|
+
* checkbox each under Select Day, so a buyer can show or hide an inventory's days and
|
|
1323
|
+
* sessions. The platform stores an inventory's name and does not send it, so the label is
|
|
1324
|
+
* the host's too — see `inventoryFilterOf`. Bare keys sell as they always did.
|
|
1325
|
+
*/
|
|
1326
|
+
readonly inventories?: readonly InventoryChoice[];
|
|
1327
|
+
/**
|
|
1328
|
+
* HOW THE NAMED INVENTORIES ARE CHOSEN BETWEEN — `checkbox`, the default, shows any of
|
|
1329
|
+
* them at once, and `radio` shows exactly one: the first the host listed, until the buyer
|
|
1330
|
+
* picks another. The calendar, the sessions and the cart follow whichever is chosen.
|
|
1331
|
+
* Nothing is drawn, and this means nothing, where `inventories` draws no filter.
|
|
1332
|
+
*/
|
|
1333
|
+
readonly inventoryFilter?: 'checkbox' | 'radio';
|
|
1334
|
+
/**
|
|
1335
|
+
* HOW SELECT TIME HEADS THE DAY'S SESSIONS. `PART_OF_DAY`, the default, cuts them into
|
|
1336
|
+
* the island's eight bands; `PRODUCT` heads each product's sessions with its name — "Peak",
|
|
1337
|
+
* "Off-Peak" — for a run whose products are what a buyer is choosing between; `NONE` is
|
|
1338
|
+
* one list. The order is chronological whichever is chosen. See `TimeslotGrouping`.
|
|
1188
1339
|
*/
|
|
1189
|
-
readonly
|
|
1340
|
+
readonly timeslotGrouping?: TimeslotGrouping;
|
|
1190
1341
|
readonly mode?: IslandMode;
|
|
1191
1342
|
/**
|
|
1192
1343
|
* Where in its reservation the island sits — a corner, the middle of an edge, or the
|
|
@@ -1393,11 +1544,17 @@ export declare type CounterRingProps = {
|
|
|
1393
1544
|
export declare type DatePickerCellAccessory = 'NONE' | 'LINE';
|
|
1394
1545
|
|
|
1395
1546
|
/** Select Day — the day picker's content. */
|
|
1396
|
-
export declare function DayPicker({ series, today, selectedDay, onSelectDay, remaining, accessory, onVisibleMonthChange, }: DayPickerProps): react_jsx_runtime.JSX.Element | null;
|
|
1547
|
+
export declare function DayPicker({ series, offered, today, selectedDay, onSelectDay, remaining, accessory, onVisibleMonthChange, }: DayPickerProps): react_jsx_runtime.JSX.Element | null;
|
|
1397
1548
|
|
|
1398
1549
|
export declare type DayPickerProps = {
|
|
1399
1550
|
/** The run being picked from. Every month it touches is drawn. */
|
|
1400
1551
|
readonly series: CalendarSeries;
|
|
1552
|
+
/**
|
|
1553
|
+
* THE DAYS STILL ON OFFER, where the inventory filter has hidden some — absent is all of
|
|
1554
|
+
* `series`. The weeks stay the whole run's, so ticking a box greys days where they stand
|
|
1555
|
+
* rather than moving the month the buyer is reading; see `offeredSeries`.
|
|
1556
|
+
*/
|
|
1557
|
+
readonly offered?: CalendarSeries;
|
|
1401
1558
|
/**
|
|
1402
1559
|
* `YYYY-MM-DD` in the VENUE's local day, never the device's. Passed in rather than read
|
|
1403
1560
|
* from a clock — see `MonthGridOptions`.
|
|
@@ -1444,6 +1601,54 @@ export declare type EscrowHold = {
|
|
|
1444
1601
|
readonly durationSeconds: number;
|
|
1445
1602
|
};
|
|
1446
1603
|
|
|
1604
|
+
/** The cart's three shares, major units — `value` is the organisation's. */
|
|
1605
|
+
export declare type EventAmounts = {
|
|
1606
|
+
readonly total: number;
|
|
1607
|
+
readonly organisation: number;
|
|
1608
|
+
readonly broker: number;
|
|
1609
|
+
};
|
|
1610
|
+
|
|
1611
|
+
/** What every event carries, nested under `scope` in a `dataLayer`. */
|
|
1612
|
+
export declare type EventContext = {
|
|
1613
|
+
readonly schema_version: typeof CHECKOUT_EVENT_SCHEMA;
|
|
1614
|
+
/** Unique per event — the dedupe key a pixel and its server twin share. */
|
|
1615
|
+
readonly event_id: string;
|
|
1616
|
+
/** Unique per mount — stitches before the cart to after it, and two widgets apart. */
|
|
1617
|
+
readonly mount_id: string;
|
|
1618
|
+
/** The notices' join key, minted per cart, so present from the cart onward only. */
|
|
1619
|
+
readonly checkout_session_id?: string;
|
|
1620
|
+
readonly integration: 'widget';
|
|
1621
|
+
readonly platform: 'web' | 'native';
|
|
1622
|
+
readonly sdk_version: string;
|
|
1623
|
+
/** The app's public `AppKey`. Never the Bearer — see `applicationKeyFrom`. */
|
|
1624
|
+
readonly application_key?: string;
|
|
1625
|
+
/** The run, where there is one. Never an event's key. */
|
|
1626
|
+
readonly series_key?: string;
|
|
1627
|
+
readonly series_name?: string;
|
|
1628
|
+
/** The occurrence: chosen once a day is answered, or the one-off event from the start. */
|
|
1629
|
+
readonly event_key?: string;
|
|
1630
|
+
readonly inventory_filter: 'all' | 'named';
|
|
1631
|
+
/** Comma-joined and sorted, and absent rather than past GA's limit. */
|
|
1632
|
+
readonly inventory_keys?: string;
|
|
1633
|
+
readonly currency?: string;
|
|
1634
|
+
/** From the cart onward, and only where the currency is known. */
|
|
1635
|
+
readonly amounts?: EventAmounts;
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1638
|
+
/** One line of what is bought, aggregated by ticket × user type. */
|
|
1639
|
+
export declare type EventItem = {
|
|
1640
|
+
/** The ticket's key — never its name, which is not stable. */
|
|
1641
|
+
readonly item_id: string;
|
|
1642
|
+
readonly item_name?: string;
|
|
1643
|
+
/** The user type the heads were bought for. */
|
|
1644
|
+
readonly item_variant?: string;
|
|
1645
|
+
/** The run the ticket belongs to. */
|
|
1646
|
+
readonly item_category?: string;
|
|
1647
|
+
/** Per head, the organisation's share, in major units. Absent where the currency is. */
|
|
1648
|
+
readonly price?: number;
|
|
1649
|
+
readonly quantity: number;
|
|
1650
|
+
};
|
|
1651
|
+
|
|
1447
1652
|
/** @internal */
|
|
1448
1653
|
declare interface EventTimeslot {
|
|
1449
1654
|
LocalStartTime: string;
|
|
@@ -1515,7 +1720,6 @@ export declare type FollowListProps = {
|
|
|
1515
1720
|
readonly onToggle: (key: string) => void;
|
|
1516
1721
|
};
|
|
1517
1722
|
|
|
1518
|
-
/** Money, and how it is written. */
|
|
1519
1723
|
/** `1234, 'EUR'` → `"€12.34"`. `1200, 'JPY'` → `"¥1,200"`. */
|
|
1520
1724
|
export declare function formatMoney(minorUnits: number, currency: string): string;
|
|
1521
1725
|
|
|
@@ -1657,6 +1861,18 @@ export declare type IntentComposition = Readonly<Record<string, number>>;
|
|
|
1657
1861
|
/** Whether a composition names anybody at all. */
|
|
1658
1862
|
export declare function intentHasParty(composition: IntentComposition | undefined): boolean;
|
|
1659
1863
|
|
|
1864
|
+
/**
|
|
1865
|
+
* WHAT A HOST MAY LIST — a bare key, as every mount wrote before the filter, or a key
|
|
1866
|
+
* with the word to draw beside its checkbox.
|
|
1867
|
+
*/
|
|
1868
|
+
export declare type InventoryChoice = string | InventoryOption;
|
|
1869
|
+
|
|
1870
|
+
/** One inventory offered in the filter: the key the platform knows it by, and its word. */
|
|
1871
|
+
export declare type InventoryOption = {
|
|
1872
|
+
readonly key: string;
|
|
1873
|
+
readonly label: string;
|
|
1874
|
+
};
|
|
1875
|
+
|
|
1660
1876
|
/**
|
|
1661
1877
|
* WHETHER A NUMBER IS ONE OF THE FIVE. The guard the wire is behind: `FeedbackRating`
|
|
1662
1878
|
* narrows what this package passes around, and this is the only thing that can make one
|
|
@@ -1700,7 +1916,7 @@ export declare type IslandActionRole = 'action' | 'primary' | 'secondary';
|
|
|
1700
1916
|
*/
|
|
1701
1917
|
export declare type IslandAlignment = 'top-left' | 'top' | 'top-right' | 'left' | 'center' | 'right' | 'bottom-left' | 'bottom' | 'bottom-right';
|
|
1702
1918
|
|
|
1703
|
-
export declare function IslandCard({ avatar, title, subtitle, variant, sealed, input, actions, footer, }: IslandCardProps): react_jsx_runtime.JSX.Element;
|
|
1919
|
+
export declare function IslandCard({ avatar, title, subtitle, variant, sealed, typed, input, actions, footer, }: IslandCardProps): react_jsx_runtime.JSX.Element;
|
|
1704
1920
|
|
|
1705
1921
|
export declare type IslandCardProps = {
|
|
1706
1922
|
/** WHICH CARD THIS IS — Figma's own variant on `CtaCard`. */
|
|
@@ -1742,6 +1958,15 @@ export declare type IslandCardProps = {
|
|
|
1742
1958
|
* one is short, so the surface morphs between two heights instead of snapping.
|
|
1743
1959
|
*/
|
|
1744
1960
|
readonly sealed?: boolean;
|
|
1961
|
+
/**
|
|
1962
|
+
* THE CARD IS TYPED INTO, so it is drawn at the ceiling from the frame it arrives — see
|
|
1963
|
+
* `[data-typed]` in `island.css`. The caller answers it with core's `takesTyping`; which
|
|
1964
|
+
* blocks raise a keyboard is the block set's question, not this file's.
|
|
1965
|
+
*
|
|
1966
|
+
* PER CARD, for `sealed`'s reason: the leaving card keeps the height it was laid out
|
|
1967
|
+
* with and only the arriving one is tall, so the surface morphs between the two.
|
|
1968
|
+
*/
|
|
1969
|
+
readonly typed?: boolean;
|
|
1745
1970
|
/**
|
|
1746
1971
|
* The step's own controls — `Input` in the design, between the hero and the buttons.
|
|
1747
1972
|
*/
|
|
@@ -2255,6 +2480,23 @@ export declare type NoticeId =
|
|
|
2255
2480
|
*/
|
|
2256
2481
|
| 'PAYMENT_UNCONFIRMED';
|
|
2257
2482
|
|
|
2483
|
+
declare type NoticeReport = {
|
|
2484
|
+
/** Stable across copy changes. Group and alert on this. */
|
|
2485
|
+
readonly noticeId: NoticeId;
|
|
2486
|
+
readonly severity: NoticeSeverity;
|
|
2487
|
+
/** The flow question the notice replaced — the step, not the route. */
|
|
2488
|
+
readonly stepId: string;
|
|
2489
|
+
/** A warning is a breadcrumb on the trail to the next fault; a failure is the fault. */
|
|
2490
|
+
readonly disposition: 'BREADCRUMB' | 'EXCEPTION';
|
|
2491
|
+
readonly source: ReportSource;
|
|
2492
|
+
/**
|
|
2493
|
+
* THE ONE FIELD THAT IS PROSE WE DID NOT AUTHOR — a platform's message, a provider's
|
|
2494
|
+
* refusal — so it arrives already scrubbed and already capped. `null` where there was
|
|
2495
|
+
* nothing to say, which is most of them.
|
|
2496
|
+
*/
|
|
2497
|
+
readonly detail: string | null;
|
|
2498
|
+
};
|
|
2499
|
+
|
|
2258
2500
|
/**
|
|
2259
2501
|
* The notices whose words are the same every time. One so far: a notice whose words depend
|
|
2260
2502
|
* on what the flow knows gets a builder instead.
|
|
@@ -2617,6 +2859,9 @@ export declare interface PaymentReturnProps {
|
|
|
2617
2859
|
readonly onCompleted?: (cartKey: string) => void;
|
|
2618
2860
|
}
|
|
2619
2861
|
|
|
2862
|
+
/** What the charge was made with — the order's own record of it, see `ChargeMethod`. */
|
|
2863
|
+
export declare type PaymentType = ChargeMethod;
|
|
2864
|
+
|
|
2620
2865
|
/** "Phone Number" — the design, and it is TWO fields. CONTROLLED the same way Name is. */
|
|
2621
2866
|
export declare function PhoneStep({ value, onChange, onAnsweredChange, }: AnswerReporting & {
|
|
2622
2867
|
readonly value?: PhoneValue;
|
|
@@ -2709,6 +2954,15 @@ export declare type PressScope = 'island' | 'element';
|
|
|
2709
2954
|
*/
|
|
2710
2955
|
export declare function priceComposition(price: SlotPrice | null | undefined, composition: Readonly<Record<string, number>>): SlotPrice | null;
|
|
2711
2956
|
|
|
2957
|
+
/** What an ecommerce event carries of the cart. `value` goes where `currency` goes. */
|
|
2958
|
+
declare type Priced = {
|
|
2959
|
+
readonly value?: number;
|
|
2960
|
+
readonly currency?: string;
|
|
2961
|
+
readonly items: readonly EventItem[];
|
|
2962
|
+
/** Only a code the platform ACCEPTED — the organiser's words, not the buyer's. */
|
|
2963
|
+
readonly coupon?: string;
|
|
2964
|
+
};
|
|
2965
|
+
|
|
2712
2966
|
/**
|
|
2713
2967
|
* WHAT A SESSION COSTS AT ITS CHEAPEST — the "From" a timeslot row draws.
|
|
2714
2968
|
*
|
|
@@ -2956,6 +3210,24 @@ export declare function readBooking(summary: TransactionByKeyResponse, attendeeT
|
|
|
2956
3210
|
/** What the summary was asked for, as the last resort for the key a save needs. */
|
|
2957
3211
|
cartKey: string): BookingRecord | null;
|
|
2958
3212
|
|
|
3213
|
+
/**
|
|
3214
|
+
* WHO WAS RUNNING THIS CHECKOUT, AND WHERE. Keys and flags only, and every field optional:
|
|
3215
|
+
* a report that could not be filled in is still worth more than no report.
|
|
3216
|
+
*/
|
|
3217
|
+
declare type ReportSource = {
|
|
3218
|
+
readonly orgKey?: string;
|
|
3219
|
+
readonly environment?: string;
|
|
3220
|
+
/** Which renderer drew the card — `'web'`, `'native'`. A renderer names itself. */
|
|
3221
|
+
readonly platform?: string;
|
|
3222
|
+
readonly coreVersion?: string;
|
|
3223
|
+
readonly rendererVersion?: string;
|
|
3224
|
+
readonly eventKey?: string;
|
|
3225
|
+
readonly cartKey?: string;
|
|
3226
|
+
/** THE SOLE IDENTITY. Stable for the whole checkout and across a refresh. */
|
|
3227
|
+
readonly checkoutSessionId?: string;
|
|
3228
|
+
readonly paymentMethod?: string;
|
|
3229
|
+
};
|
|
3230
|
+
|
|
2959
3231
|
/** One item as the widget ASKED for it, reduced to the part a line needs. */
|
|
2960
3232
|
export declare type RequestedItem = {
|
|
2961
3233
|
readonly UserTypeAssignmentKey?: string | null;
|
|
@@ -3305,7 +3577,7 @@ export declare type TextFieldProps = {
|
|
|
3305
3577
|
* host's scroll position to itself would be a widget rearranging a site it does not own.
|
|
3306
3578
|
*/
|
|
3307
3579
|
readonly autoFocus?: boolean;
|
|
3308
|
-
/** A value to be confirmed rather than typed — see `
|
|
3580
|
+
/** A value to be confirmed rather than typed — Confirm Email's; see `confirmedEmail`. */
|
|
3309
3581
|
readonly placeholder?: string;
|
|
3310
3582
|
/**
|
|
3311
3583
|
* THE CEILING THE PLATFORM ITSELF ENFORCES, passed to the input rather than checked
|
|
@@ -3753,7 +4025,7 @@ export declare function timedOutViewProps(expanded: boolean, onTryAgain: () => v
|
|
|
3753
4025
|
export declare function timeOfDayInZone(now: Date, timeZone: string | null): string;
|
|
3754
4026
|
|
|
3755
4027
|
/** Select Time — the timeslot picker's content. */
|
|
3756
|
-
export declare function TimePicker({ series, today, nowTime, selection, onSelectDay, slots, onSelectTime, remaining, accessory, onVisibleMonthChange, }: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
4028
|
+
export declare function TimePicker({ series, today, nowTime, selection, onSelectDay, slots, onSelectTime, remaining, accessory, onVisibleMonthChange, grouping, }: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
3757
4029
|
|
|
3758
4030
|
export declare type TimePickerProps = {
|
|
3759
4031
|
/**
|
|
@@ -3792,6 +4064,8 @@ export declare type TimePickerProps = {
|
|
|
3792
4064
|
* it: they all belong to one day.
|
|
3793
4065
|
*/
|
|
3794
4066
|
readonly onVisibleMonthChange?: (month: CalendarMonthKey) => void;
|
|
4067
|
+
/** How the day's slots are cut up — see `TimeslotGrouping`. Absent is the eight bands. */
|
|
4068
|
+
readonly grouping?: TimeslotGrouping | undefined;
|
|
3795
4069
|
};
|
|
3796
4070
|
|
|
3797
4071
|
/**
|
|
@@ -3841,8 +4115,31 @@ export declare type Timeslot = {
|
|
|
3841
4115
|
* on how the number was arrived at.
|
|
3842
4116
|
*/
|
|
3843
4117
|
readonly fromPrice?: SlotPrice | null;
|
|
4118
|
+
/**
|
|
4119
|
+
* THE NAME OF THE PRODUCT THAT SELLS THIS SLOT — `Ticket.Name`, "Peak" or "Off-Peak" —
|
|
4120
|
+
* where the slot was read off one. What `PRODUCT` grouping heads each group with. Absent
|
|
4121
|
+
* is a slot a host built without saying, and it is grouped with the others that say
|
|
4122
|
+
* nothing, under no heading.
|
|
4123
|
+
*/
|
|
4124
|
+
readonly product?: string;
|
|
3844
4125
|
};
|
|
3845
4126
|
|
|
4127
|
+
/**
|
|
4128
|
+
* HOW A TICKET'S SLOTS ARE CUT UP.
|
|
4129
|
+
*
|
|
4130
|
+
* `PART_OF_DAY` is the island's own: eight contiguous bands, each headed by its name.
|
|
4131
|
+
* `NONE` is one chronological list with no heading at all — which is what an
|
|
4132
|
+
* implementation wants when the list is ALREADY grouped by something the platform
|
|
4133
|
+
* carries and this file does not know about. Slots hang off a TICKET, so "Peak" and
|
|
4134
|
+
* "Off-Peak" are a grouping the host has and cutting it again by time of day gives a
|
|
4135
|
+
* buyer two headings for one list.
|
|
4136
|
+
*
|
|
4137
|
+
* `PRODUCT` IS THAT GROUPING, DRAWN: one group per product the day's slots are sold by,
|
|
4138
|
+
* headed by its name — see `Timeslot.product`. For a run whose products ARE the sessions'
|
|
4139
|
+
* kind, which is what a buyer is choosing between, and the time of day is not.
|
|
4140
|
+
*/
|
|
4141
|
+
export declare type TimeslotGrouping = 'PART_OF_DAY' | 'PRODUCT' | 'NONE';
|
|
4142
|
+
|
|
3846
4143
|
/**
|
|
3847
4144
|
* The session an item is bought for. BOTH ENDS ARE TIMES OF DAY — `18:00:00`, which is
|
|
3848
4145
|
* what the platform deserialises them into (`System.TimeSpan`) and the shape a ticket's
|