@scopetickets/checkout 0.2.0 → 0.4.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/dist/{chunk-B7AHG2OO.js → chunk-WT7WSYIH.js} +1444 -57
- package/dist/chunk-WT7WSYIH.js.map +1 -0
- package/dist/index.cjs +4088 -3284
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +85 -4
- package/dist/index.d.ts +85 -4
- package/dist/index.js +3694 -4213
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +47 -10
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.d.cts +10 -17
- package/dist/pickers.d.ts +10 -17
- package/dist/pickers.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-B7AHG2OO.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -682,6 +682,16 @@ export declare type CardAction = {
|
|
|
682
682
|
* the card, and this file draws no controls.
|
|
683
683
|
*/
|
|
684
684
|
readonly uploads?: boolean;
|
|
685
|
+
/**
|
|
686
|
+
* THIS BUTTON GIVES THE ORDER BACK AND LEAVES — the abandon card's Confirm, and nothing
|
|
687
|
+
* else. Declared rather than handled, like `pays` and `takesAccount`: releasing a cart
|
|
688
|
+
* is a call, and this file is data with no client to make one.
|
|
689
|
+
*
|
|
690
|
+
* WITHOUT IT THE PRESS WOULD CLOSE THE DETOUR, which is what every other button on one
|
|
691
|
+
* does and is exactly wrong here — the buyer would answer "are you sure?" with yes and
|
|
692
|
+
* be returned to the order they had just given up.
|
|
693
|
+
*/
|
|
694
|
+
readonly leaves?: boolean;
|
|
685
695
|
/**
|
|
686
696
|
* THIS BUTTON SENDS THE RATING — the feedback card's Continue, and the only thing that
|
|
687
697
|
* does. Declared rather than handled, like `pays`: the number is on the card and the
|
|
@@ -1154,6 +1164,23 @@ export declare type CheckoutProps = {
|
|
|
1154
1164
|
* it, and those stay the widget's own.
|
|
1155
1165
|
*/
|
|
1156
1166
|
readonly openingLabel?: string;
|
|
1167
|
+
/**
|
|
1168
|
+
* WHICH INVENTORIES ARE ON SALE HERE, and absent means all of the run's.
|
|
1169
|
+
*
|
|
1170
|
+
* An inventory is a collection of sellable products. Every event is given one
|
|
1171
|
+
* programmatically; named ones silo an allocation ACROSS several events without a second
|
|
1172
|
+
* event existing — an accessible-session strand, say, or a private allocation. Naming one
|
|
1173
|
+
* makes this mount sell only from it; naming several is a UNION, so a page offering both
|
|
1174
|
+
* kinds of session names both and a dedicated page names the one.
|
|
1175
|
+
*
|
|
1176
|
+
* A NARROWING OF THE SUBJECT, NOT A REPLACEMENT FOR IT. The subject still says WHICH RUN;
|
|
1177
|
+
* this says which of its stock. The day picker, the sessions and the cart all follow it,
|
|
1178
|
+
* because every one of them is read from the same `TicketInformation` call.
|
|
1179
|
+
*
|
|
1180
|
+
* THE HOST'S TO SUPPLY, like `openingLabel` and for the same reason: which strand a page
|
|
1181
|
+
* sells is something the page knows and the widget cannot infer.
|
|
1182
|
+
*/
|
|
1183
|
+
readonly inventories?: readonly string[];
|
|
1157
1184
|
readonly mode?: IslandMode;
|
|
1158
1185
|
/**
|
|
1159
1186
|
* Where in its reservation the island sits — a corner, the middle of an edge, or the
|
|
@@ -1511,7 +1538,7 @@ declare type GlyphBadge = {
|
|
|
1511
1538
|
};
|
|
1512
1539
|
|
|
1513
1540
|
/** A glyph from the icon set, by name; each renderer decides how to draw it. */
|
|
1514
|
-
declare type GlyphId = 'ASTERISK' | 'BELL' | 'CALLOUT_WITH_HEART' | 'CAMERA' | 'CLOUD_WITH_ARROW_UP_IN' | 'EYE_TO_CENTER' | 'EYE_TO_CENTER_WITH_STRIKETHROUGH' | 'KEYHOLE_IN_SQUARE' | 'PAPER_PLANE_TO_TOP_LEFT' | 'PASSKEY' | 'PAYMENT_CARD' | 'PERCENT_IN_STICKER' | 'PHONE_TO_RIGHT' | 'PLUS_IN_CIRCLE' | 'TEXT_CURSOR_WITH_RECTANGLE' | 'TEXT_CURSOR_WITH_REDACTED_TEXT';
|
|
1541
|
+
declare type GlyphId = 'ASTERISK' | 'BELL' | 'CALENDAR' | 'CALLOUT_WITH_HEART' | 'CAMERA' | 'CLOCK_WITH_SEGMENT_SOLID' | 'CLOUD_WITH_ARROW_UP_IN' | 'EYE_TO_CENTER' | 'EYE_TO_CENTER_WITH_STRIKETHROUGH' | 'KEYHOLE_IN_SQUARE' | 'MINUS_MARK' | 'PAPER_PLANE_TO_TOP_LEFT' | 'PASSKEY' | 'PAYMENT_CARD' | 'PERCENT_IN_STICKER' | 'PEOPLE_TWO' | 'PHONE_TO_RIGHT' | 'PLUS_IN_CIRCLE' | 'PLUS_MARK' | 'SHOPPING_CART' | 'TEXT_CURSOR_WITH_RECTANGLE' | 'TEXT_CURSOR_WITH_REDACTED_TEXT';
|
|
1515
1542
|
|
|
1516
1543
|
/**
|
|
1517
1544
|
* THE DISTINCT TYPES, in the order the platform first names each — the organiser's own,
|
|
@@ -1758,7 +1785,26 @@ export declare type IslandCommitPillProps = {
|
|
|
1758
1785
|
readonly promoLabel: string;
|
|
1759
1786
|
};
|
|
1760
1787
|
|
|
1761
|
-
/**
|
|
1788
|
+
/** When everything has finished — which is what the teardown timer waits for. */
|
|
1789
|
+
/**
|
|
1790
|
+
* WHAT LED A MOVE, which decides what the SURFACE does about it.
|
|
1791
|
+
*
|
|
1792
|
+
* `island` — the collapsed pill was pressed. The surface arrives already compressed and
|
|
1793
|
+
* RETURNING that compression is the move's opening beat.
|
|
1794
|
+
*
|
|
1795
|
+
* `element` — a control inside the card was pressed, and this is the common case. The
|
|
1796
|
+
* surface does not scale at all: the control popped itself over `PRESS_IN_MS` and was
|
|
1797
|
+
* back before the move began, so the morph is the whole acknowledgement. "A press on a
|
|
1798
|
+
* 52px button inside a 676px card should look like the button moving and the card
|
|
1799
|
+
* becoming the next thing."
|
|
1800
|
+
*
|
|
1801
|
+
* `none` — the flow changed the step by itself. Nothing on screen is compressed and no
|
|
1802
|
+
* control popped, so the acknowledgement is the pop played as an animation. The one case
|
|
1803
|
+
* where the surface moves of its own accord.
|
|
1804
|
+
*
|
|
1805
|
+
* IN CORE BECAUSE BOTH RENDERERS DECIDE FROM IT. It was a web type in `island-press.ts`,
|
|
1806
|
+
* and the native surface needs the same three answers to the same question.
|
|
1807
|
+
*/
|
|
1762
1808
|
declare type IslandGesture = 'island' | 'element' | 'none';
|
|
1763
1809
|
|
|
1764
1810
|
export declare function IslandHeader({ dismiss, onDismiss, dismissIcon, dismissLabel, headerLead, headerTrail, closable, }: IslandHeaderProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2189,7 +2235,18 @@ export declare type NoticeId =
|
|
|
2189
2235
|
* The ticketholder's details never reached the platform. The ticket is unchanged and the
|
|
2190
2236
|
* buyer is still holding what they typed, so this is the one of the two that is a fault.
|
|
2191
2237
|
*/
|
|
2192
|
-
| 'TICKETHOLDER_NOT_SAVED'
|
|
2238
|
+
| 'TICKETHOLDER_NOT_SAVED'
|
|
2239
|
+
/** The merchant settles through a provider no sheet here can open. Nothing broke. */
|
|
2240
|
+
| 'PAYMENT_UNAVAILABLE'
|
|
2241
|
+
/** The sheet could not be opened: no order minted, or it would not take its key. */
|
|
2242
|
+
| 'PAYMENT_NOT_STARTED'
|
|
2243
|
+
/**
|
|
2244
|
+
* THE PLATFORM WAS ASKED FOR A WHOLE ESCROW WINDOW AND NEVER SAID. The one notice here
|
|
2245
|
+
* that cannot tell the buyer what happened, because nothing knows — see
|
|
2246
|
+
* `PaymentOutcome.UNANSWERED`. It is a FAILURE and not a WARNING: nothing worked, and
|
|
2247
|
+
* there is no adjustment the buyer can make that would help.
|
|
2248
|
+
*/
|
|
2249
|
+
| 'PAYMENT_UNCONFIRMED';
|
|
2193
2250
|
|
|
2194
2251
|
/**
|
|
2195
2252
|
* The notices whose words are the same every time. One so far: a notice whose words depend
|
|
@@ -2454,7 +2511,8 @@ export declare type PaymentMethodsProps = {
|
|
|
2454
2511
|
};
|
|
2455
2512
|
|
|
2456
2513
|
/**
|
|
2457
|
-
* WHAT A PAYMENT DID, in the platform's own
|
|
2514
|
+
* WHAT A PAYMENT DID, in the platform's own words — and, in one case, in the absence of
|
|
2515
|
+
* them.
|
|
2458
2516
|
*
|
|
2459
2517
|
* THE CHAIN, WHICH IS THE WHOLE POINT: the status endpoint's `completed` means the
|
|
2460
2518
|
* PROVIDER took the money — lowercase because it is the platform API's own enum literal,
|
|
@@ -2477,6 +2535,24 @@ export declare type PaymentOutcome =
|
|
|
2477
2535
|
| {
|
|
2478
2536
|
readonly kind: 'PAID';
|
|
2479
2537
|
}
|
|
2538
|
+
/**
|
|
2539
|
+
* THE PLATFORM WAS ASKED AND NEVER SAID — the poll ran to `POLL_LIMIT_MS` with the
|
|
2540
|
+
* payment still undecided, so whether the money moved is genuinely unknown.
|
|
2541
|
+
*
|
|
2542
|
+
* IT CARRIES `PAID`'S SAFETY AND NONE OF ITS CLAIM. Under "unknown" a pay button must
|
|
2543
|
+
* not come back, because a second charge over an attempt that may have gone through is
|
|
2544
|
+
* the one mistake this flow cannot make — which is why `moneyMoved` counts this arm.
|
|
2545
|
+
* But `PAID` buys that safety by ASSERTING the money moved, and on a device that drew
|
|
2546
|
+
* "Payment Received" over a card the provider had declined. Nobody knew that. This arm
|
|
2547
|
+
* exists so the safety no longer has to be bought with a sentence we cannot stand over.
|
|
2548
|
+
*
|
|
2549
|
+
* ADDITIVE ON PURPOSE. `PaymentOutcome` is a public type a host constructs through
|
|
2550
|
+
* `CheckoutProps.payment`; a fourth arm nothing outside asserts leaves every existing
|
|
2551
|
+
* integration compiling, which splitting `PAID` in two would not.
|
|
2552
|
+
*/
|
|
2553
|
+
| {
|
|
2554
|
+
readonly kind: 'UNANSWERED';
|
|
2555
|
+
}
|
|
2480
2556
|
/** Taken. The tickets are the buyer's and nothing can change. */
|
|
2481
2557
|
| {
|
|
2482
2558
|
readonly kind: 'PLACED';
|
|
@@ -3274,6 +3350,11 @@ declare interface Ticket {
|
|
|
3274
3350
|
* response spanning a whole series is split back into days.
|
|
3275
3351
|
*/
|
|
3276
3352
|
EventKeys?: string[] | null;
|
|
3353
|
+
/**
|
|
3354
|
+
* The inventories this product is sold from — the event's own `(Main)` one and any named
|
|
3355
|
+
* ones that silo an allocation across events. Sent by `TicketInformation`.
|
|
3356
|
+
*/
|
|
3357
|
+
InventoryKeys?: string[] | null;
|
|
3277
3358
|
}
|
|
3278
3359
|
|
|
3279
3360
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -682,6 +682,16 @@ export declare type CardAction = {
|
|
|
682
682
|
* the card, and this file draws no controls.
|
|
683
683
|
*/
|
|
684
684
|
readonly uploads?: boolean;
|
|
685
|
+
/**
|
|
686
|
+
* THIS BUTTON GIVES THE ORDER BACK AND LEAVES — the abandon card's Confirm, and nothing
|
|
687
|
+
* else. Declared rather than handled, like `pays` and `takesAccount`: releasing a cart
|
|
688
|
+
* is a call, and this file is data with no client to make one.
|
|
689
|
+
*
|
|
690
|
+
* WITHOUT IT THE PRESS WOULD CLOSE THE DETOUR, which is what every other button on one
|
|
691
|
+
* does and is exactly wrong here — the buyer would answer "are you sure?" with yes and
|
|
692
|
+
* be returned to the order they had just given up.
|
|
693
|
+
*/
|
|
694
|
+
readonly leaves?: boolean;
|
|
685
695
|
/**
|
|
686
696
|
* THIS BUTTON SENDS THE RATING — the feedback card's Continue, and the only thing that
|
|
687
697
|
* does. Declared rather than handled, like `pays`: the number is on the card and the
|
|
@@ -1154,6 +1164,23 @@ export declare type CheckoutProps = {
|
|
|
1154
1164
|
* it, and those stay the widget's own.
|
|
1155
1165
|
*/
|
|
1156
1166
|
readonly openingLabel?: string;
|
|
1167
|
+
/**
|
|
1168
|
+
* WHICH INVENTORIES ARE ON SALE HERE, and absent means all of the run's.
|
|
1169
|
+
*
|
|
1170
|
+
* An inventory is a collection of sellable products. Every event is given one
|
|
1171
|
+
* programmatically; named ones silo an allocation ACROSS several events without a second
|
|
1172
|
+
* event existing — an accessible-session strand, say, or a private allocation. Naming one
|
|
1173
|
+
* makes this mount sell only from it; naming several is a UNION, so a page offering both
|
|
1174
|
+
* kinds of session names both and a dedicated page names the one.
|
|
1175
|
+
*
|
|
1176
|
+
* A NARROWING OF THE SUBJECT, NOT A REPLACEMENT FOR IT. The subject still says WHICH RUN;
|
|
1177
|
+
* this says which of its stock. The day picker, the sessions and the cart all follow it,
|
|
1178
|
+
* because every one of them is read from the same `TicketInformation` call.
|
|
1179
|
+
*
|
|
1180
|
+
* THE HOST'S TO SUPPLY, like `openingLabel` and for the same reason: which strand a page
|
|
1181
|
+
* sells is something the page knows and the widget cannot infer.
|
|
1182
|
+
*/
|
|
1183
|
+
readonly inventories?: readonly string[];
|
|
1157
1184
|
readonly mode?: IslandMode;
|
|
1158
1185
|
/**
|
|
1159
1186
|
* Where in its reservation the island sits — a corner, the middle of an edge, or the
|
|
@@ -1511,7 +1538,7 @@ declare type GlyphBadge = {
|
|
|
1511
1538
|
};
|
|
1512
1539
|
|
|
1513
1540
|
/** A glyph from the icon set, by name; each renderer decides how to draw it. */
|
|
1514
|
-
declare type GlyphId = 'ASTERISK' | 'BELL' | 'CALLOUT_WITH_HEART' | 'CAMERA' | 'CLOUD_WITH_ARROW_UP_IN' | 'EYE_TO_CENTER' | 'EYE_TO_CENTER_WITH_STRIKETHROUGH' | 'KEYHOLE_IN_SQUARE' | 'PAPER_PLANE_TO_TOP_LEFT' | 'PASSKEY' | 'PAYMENT_CARD' | 'PERCENT_IN_STICKER' | 'PHONE_TO_RIGHT' | 'PLUS_IN_CIRCLE' | 'TEXT_CURSOR_WITH_RECTANGLE' | 'TEXT_CURSOR_WITH_REDACTED_TEXT';
|
|
1541
|
+
declare type GlyphId = 'ASTERISK' | 'BELL' | 'CALENDAR' | 'CALLOUT_WITH_HEART' | 'CAMERA' | 'CLOCK_WITH_SEGMENT_SOLID' | 'CLOUD_WITH_ARROW_UP_IN' | 'EYE_TO_CENTER' | 'EYE_TO_CENTER_WITH_STRIKETHROUGH' | 'KEYHOLE_IN_SQUARE' | 'MINUS_MARK' | 'PAPER_PLANE_TO_TOP_LEFT' | 'PASSKEY' | 'PAYMENT_CARD' | 'PERCENT_IN_STICKER' | 'PEOPLE_TWO' | 'PHONE_TO_RIGHT' | 'PLUS_IN_CIRCLE' | 'PLUS_MARK' | 'SHOPPING_CART' | 'TEXT_CURSOR_WITH_RECTANGLE' | 'TEXT_CURSOR_WITH_REDACTED_TEXT';
|
|
1515
1542
|
|
|
1516
1543
|
/**
|
|
1517
1544
|
* THE DISTINCT TYPES, in the order the platform first names each — the organiser's own,
|
|
@@ -1758,7 +1785,26 @@ export declare type IslandCommitPillProps = {
|
|
|
1758
1785
|
readonly promoLabel: string;
|
|
1759
1786
|
};
|
|
1760
1787
|
|
|
1761
|
-
/**
|
|
1788
|
+
/** When everything has finished — which is what the teardown timer waits for. */
|
|
1789
|
+
/**
|
|
1790
|
+
* WHAT LED A MOVE, which decides what the SURFACE does about it.
|
|
1791
|
+
*
|
|
1792
|
+
* `island` — the collapsed pill was pressed. The surface arrives already compressed and
|
|
1793
|
+
* RETURNING that compression is the move's opening beat.
|
|
1794
|
+
*
|
|
1795
|
+
* `element` — a control inside the card was pressed, and this is the common case. The
|
|
1796
|
+
* surface does not scale at all: the control popped itself over `PRESS_IN_MS` and was
|
|
1797
|
+
* back before the move began, so the morph is the whole acknowledgement. "A press on a
|
|
1798
|
+
* 52px button inside a 676px card should look like the button moving and the card
|
|
1799
|
+
* becoming the next thing."
|
|
1800
|
+
*
|
|
1801
|
+
* `none` — the flow changed the step by itself. Nothing on screen is compressed and no
|
|
1802
|
+
* control popped, so the acknowledgement is the pop played as an animation. The one case
|
|
1803
|
+
* where the surface moves of its own accord.
|
|
1804
|
+
*
|
|
1805
|
+
* IN CORE BECAUSE BOTH RENDERERS DECIDE FROM IT. It was a web type in `island-press.ts`,
|
|
1806
|
+
* and the native surface needs the same three answers to the same question.
|
|
1807
|
+
*/
|
|
1762
1808
|
declare type IslandGesture = 'island' | 'element' | 'none';
|
|
1763
1809
|
|
|
1764
1810
|
export declare function IslandHeader({ dismiss, onDismiss, dismissIcon, dismissLabel, headerLead, headerTrail, closable, }: IslandHeaderProps): react_jsx_runtime.JSX.Element;
|
|
@@ -2189,7 +2235,18 @@ export declare type NoticeId =
|
|
|
2189
2235
|
* The ticketholder's details never reached the platform. The ticket is unchanged and the
|
|
2190
2236
|
* buyer is still holding what they typed, so this is the one of the two that is a fault.
|
|
2191
2237
|
*/
|
|
2192
|
-
| 'TICKETHOLDER_NOT_SAVED'
|
|
2238
|
+
| 'TICKETHOLDER_NOT_SAVED'
|
|
2239
|
+
/** The merchant settles through a provider no sheet here can open. Nothing broke. */
|
|
2240
|
+
| 'PAYMENT_UNAVAILABLE'
|
|
2241
|
+
/** The sheet could not be opened: no order minted, or it would not take its key. */
|
|
2242
|
+
| 'PAYMENT_NOT_STARTED'
|
|
2243
|
+
/**
|
|
2244
|
+
* THE PLATFORM WAS ASKED FOR A WHOLE ESCROW WINDOW AND NEVER SAID. The one notice here
|
|
2245
|
+
* that cannot tell the buyer what happened, because nothing knows — see
|
|
2246
|
+
* `PaymentOutcome.UNANSWERED`. It is a FAILURE and not a WARNING: nothing worked, and
|
|
2247
|
+
* there is no adjustment the buyer can make that would help.
|
|
2248
|
+
*/
|
|
2249
|
+
| 'PAYMENT_UNCONFIRMED';
|
|
2193
2250
|
|
|
2194
2251
|
/**
|
|
2195
2252
|
* The notices whose words are the same every time. One so far: a notice whose words depend
|
|
@@ -2454,7 +2511,8 @@ export declare type PaymentMethodsProps = {
|
|
|
2454
2511
|
};
|
|
2455
2512
|
|
|
2456
2513
|
/**
|
|
2457
|
-
* WHAT A PAYMENT DID, in the platform's own
|
|
2514
|
+
* WHAT A PAYMENT DID, in the platform's own words — and, in one case, in the absence of
|
|
2515
|
+
* them.
|
|
2458
2516
|
*
|
|
2459
2517
|
* THE CHAIN, WHICH IS THE WHOLE POINT: the status endpoint's `completed` means the
|
|
2460
2518
|
* PROVIDER took the money — lowercase because it is the platform API's own enum literal,
|
|
@@ -2477,6 +2535,24 @@ export declare type PaymentOutcome =
|
|
|
2477
2535
|
| {
|
|
2478
2536
|
readonly kind: 'PAID';
|
|
2479
2537
|
}
|
|
2538
|
+
/**
|
|
2539
|
+
* THE PLATFORM WAS ASKED AND NEVER SAID — the poll ran to `POLL_LIMIT_MS` with the
|
|
2540
|
+
* payment still undecided, so whether the money moved is genuinely unknown.
|
|
2541
|
+
*
|
|
2542
|
+
* IT CARRIES `PAID`'S SAFETY AND NONE OF ITS CLAIM. Under "unknown" a pay button must
|
|
2543
|
+
* not come back, because a second charge over an attempt that may have gone through is
|
|
2544
|
+
* the one mistake this flow cannot make — which is why `moneyMoved` counts this arm.
|
|
2545
|
+
* But `PAID` buys that safety by ASSERTING the money moved, and on a device that drew
|
|
2546
|
+
* "Payment Received" over a card the provider had declined. Nobody knew that. This arm
|
|
2547
|
+
* exists so the safety no longer has to be bought with a sentence we cannot stand over.
|
|
2548
|
+
*
|
|
2549
|
+
* ADDITIVE ON PURPOSE. `PaymentOutcome` is a public type a host constructs through
|
|
2550
|
+
* `CheckoutProps.payment`; a fourth arm nothing outside asserts leaves every existing
|
|
2551
|
+
* integration compiling, which splitting `PAID` in two would not.
|
|
2552
|
+
*/
|
|
2553
|
+
| {
|
|
2554
|
+
readonly kind: 'UNANSWERED';
|
|
2555
|
+
}
|
|
2480
2556
|
/** Taken. The tickets are the buyer's and nothing can change. */
|
|
2481
2557
|
| {
|
|
2482
2558
|
readonly kind: 'PLACED';
|
|
@@ -3274,6 +3350,11 @@ declare interface Ticket {
|
|
|
3274
3350
|
* response spanning a whole series is split back into days.
|
|
3275
3351
|
*/
|
|
3276
3352
|
EventKeys?: string[] | null;
|
|
3353
|
+
/**
|
|
3354
|
+
* The inventories this product is sold from — the event's own `(Main)` one and any named
|
|
3355
|
+
* ones that silo an allocation across events. Sent by `TicketInformation`.
|
|
3356
|
+
*/
|
|
3357
|
+
InventoryKeys?: string[] | null;
|
|
3277
3358
|
}
|
|
3278
3359
|
|
|
3279
3360
|
/**
|