@scopetickets/checkout 0.6.1 → 0.6.3
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.cjs +269 -88
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -3
- package/dist/index.d.ts +27 -3
- package/dist/index.js +290 -109
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -751,7 +751,7 @@ export declare type CardAction = {
|
|
|
751
751
|
* the card is a detour, and a button with no meaning of its own on a detour is its way
|
|
752
752
|
* back — which is how Apply came to close the card and send nothing.
|
|
753
753
|
*/
|
|
754
|
-
readonly promo?: 'APPLY' | 'REMOVE';
|
|
754
|
+
readonly promo?: 'APPLY' | 'REMOVE' | 'CONTINUE';
|
|
755
755
|
/** Add Password's "Show Entered Text" — the card's own toggle, and it moves nothing. */
|
|
756
756
|
readonly reveals?: boolean;
|
|
757
757
|
/** Verify Email's Re-send: another one-time code to the same address. */
|
|
@@ -1385,6 +1385,12 @@ export declare type CheckoutProps = {
|
|
|
1385
1385
|
* one list. The order is chronological whichever is chosen. See `TimeslotGrouping`.
|
|
1386
1386
|
*/
|
|
1387
1387
|
readonly timeslotGrouping?: TimeslotGrouping;
|
|
1388
|
+
/**
|
|
1389
|
+
* HOW MORE INFORMATION ASKS THE EVENT'S QUESTIONS. `question`, the default, gives each its
|
|
1390
|
+
* own card; `all` asks every one on a single card, with Continue waiting on all of them.
|
|
1391
|
+
* See `QuestionGrouping`.
|
|
1392
|
+
*/
|
|
1393
|
+
readonly questionGrouping?: QuestionGrouping;
|
|
1388
1394
|
readonly mode?: IslandMode;
|
|
1389
1395
|
/**
|
|
1390
1396
|
* Where in its reservation the island sits — a corner, the middle of an edge, or the
|
|
@@ -1982,6 +1988,11 @@ export declare type IslandAction = {
|
|
|
1982
1988
|
/** A mark beside the label — the provider's logo, the passkey glyph. */
|
|
1983
1989
|
/** The button is drawn, and it does not act. */
|
|
1984
1990
|
readonly disabled?: boolean;
|
|
1991
|
+
/**
|
|
1992
|
+
* DOING: the spinner in place of the words, and no second press — the pill's own busy
|
|
1993
|
+
* treatment (`IslandPill`'s `busy`). The words stay the button's name.
|
|
1994
|
+
*/
|
|
1995
|
+
readonly busy?: boolean;
|
|
1985
1996
|
readonly mark?: {
|
|
1986
1997
|
/** `alone` is IN PLACE of the label, which stays as the button's accessible name. */
|
|
1987
1998
|
readonly side: 'leading' | 'trailing' | 'alone';
|
|
@@ -2100,8 +2111,11 @@ export declare type IslandCommitPillProps = {
|
|
|
2100
2111
|
readonly cartLabel: string;
|
|
2101
2112
|
/** Opens the promo code step. */
|
|
2102
2113
|
readonly onOpenPromo: () => void;
|
|
2103
|
-
/**
|
|
2104
|
-
|
|
2114
|
+
/**
|
|
2115
|
+
* The promo target's own words — it is the one half of this pill that is drawn as text.
|
|
2116
|
+
* ABSENT, AND THE HALF IS NOT DRAWN: the code is offered on the Pay screen only.
|
|
2117
|
+
*/
|
|
2118
|
+
readonly promoLabel?: string;
|
|
2105
2119
|
};
|
|
2106
2120
|
|
|
2107
2121
|
/** When everything has finished — which is what the teardown timer waits for. */
|
|
@@ -3154,6 +3168,16 @@ export declare type ProfilePhotoSize = 256 | 1024;
|
|
|
3154
3168
|
/** In the flow's own order, so the union reads as the sequence it names. */
|
|
3155
3169
|
declare type PurchaseStepId = 'PARTY' | 'DATE' | 'TIME' | 'SIGN_IN' | 'NAME' | 'EMAIL' | 'PHONE' | 'DETAILS' | 'REVIEW' | 'PAYMENT' | 'PROMO' | 'ABANDON' | 'PROCESSING' | 'PAYMENT_FAILED' | 'PAYMENT_SUCCESS' | 'FEEDBACK' | 'CREATE_ACCOUNT' | 'CONFIRM_EMAIL' | 'VERIFY_EMAIL' | 'PASSWORD' | 'PROFILE_PHOTO' | 'ACCOUNT_CREATING' | 'ACCOUNT_CREATED' | 'PASSKEY' | 'FOLLOW';
|
|
3156
3170
|
|
|
3171
|
+
/**
|
|
3172
|
+
* HOW DETAILS DEALS THE QUESTIONS OUT. `question`, the default, gives each its own card and
|
|
3173
|
+
* Continue walks them; `all` asks every one on a single card, for a run whose questions read
|
|
3174
|
+
* as one agreement — a code of conduct and a waiver, say.
|
|
3175
|
+
*
|
|
3176
|
+
* NOT `questionnaire`: the platform sends an event's questions as one flat list that names no
|
|
3177
|
+
* questionnaire, so there is nothing to group them by. It joins this union the day it does.
|
|
3178
|
+
*/
|
|
3179
|
+
export declare type QuestionGrouping = 'question' | 'all';
|
|
3180
|
+
|
|
3157
3181
|
/** @internal */
|
|
3158
3182
|
declare interface QuestionnaireQuestion {
|
|
3159
3183
|
Question: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -751,7 +751,7 @@ export declare type CardAction = {
|
|
|
751
751
|
* the card is a detour, and a button with no meaning of its own on a detour is its way
|
|
752
752
|
* back — which is how Apply came to close the card and send nothing.
|
|
753
753
|
*/
|
|
754
|
-
readonly promo?: 'APPLY' | 'REMOVE';
|
|
754
|
+
readonly promo?: 'APPLY' | 'REMOVE' | 'CONTINUE';
|
|
755
755
|
/** Add Password's "Show Entered Text" — the card's own toggle, and it moves nothing. */
|
|
756
756
|
readonly reveals?: boolean;
|
|
757
757
|
/** Verify Email's Re-send: another one-time code to the same address. */
|
|
@@ -1385,6 +1385,12 @@ export declare type CheckoutProps = {
|
|
|
1385
1385
|
* one list. The order is chronological whichever is chosen. See `TimeslotGrouping`.
|
|
1386
1386
|
*/
|
|
1387
1387
|
readonly timeslotGrouping?: TimeslotGrouping;
|
|
1388
|
+
/**
|
|
1389
|
+
* HOW MORE INFORMATION ASKS THE EVENT'S QUESTIONS. `question`, the default, gives each its
|
|
1390
|
+
* own card; `all` asks every one on a single card, with Continue waiting on all of them.
|
|
1391
|
+
* See `QuestionGrouping`.
|
|
1392
|
+
*/
|
|
1393
|
+
readonly questionGrouping?: QuestionGrouping;
|
|
1388
1394
|
readonly mode?: IslandMode;
|
|
1389
1395
|
/**
|
|
1390
1396
|
* Where in its reservation the island sits — a corner, the middle of an edge, or the
|
|
@@ -1982,6 +1988,11 @@ export declare type IslandAction = {
|
|
|
1982
1988
|
/** A mark beside the label — the provider's logo, the passkey glyph. */
|
|
1983
1989
|
/** The button is drawn, and it does not act. */
|
|
1984
1990
|
readonly disabled?: boolean;
|
|
1991
|
+
/**
|
|
1992
|
+
* DOING: the spinner in place of the words, and no second press — the pill's own busy
|
|
1993
|
+
* treatment (`IslandPill`'s `busy`). The words stay the button's name.
|
|
1994
|
+
*/
|
|
1995
|
+
readonly busy?: boolean;
|
|
1985
1996
|
readonly mark?: {
|
|
1986
1997
|
/** `alone` is IN PLACE of the label, which stays as the button's accessible name. */
|
|
1987
1998
|
readonly side: 'leading' | 'trailing' | 'alone';
|
|
@@ -2100,8 +2111,11 @@ export declare type IslandCommitPillProps = {
|
|
|
2100
2111
|
readonly cartLabel: string;
|
|
2101
2112
|
/** Opens the promo code step. */
|
|
2102
2113
|
readonly onOpenPromo: () => void;
|
|
2103
|
-
/**
|
|
2104
|
-
|
|
2114
|
+
/**
|
|
2115
|
+
* The promo target's own words — it is the one half of this pill that is drawn as text.
|
|
2116
|
+
* ABSENT, AND THE HALF IS NOT DRAWN: the code is offered on the Pay screen only.
|
|
2117
|
+
*/
|
|
2118
|
+
readonly promoLabel?: string;
|
|
2105
2119
|
};
|
|
2106
2120
|
|
|
2107
2121
|
/** When everything has finished — which is what the teardown timer waits for. */
|
|
@@ -3154,6 +3168,16 @@ export declare type ProfilePhotoSize = 256 | 1024;
|
|
|
3154
3168
|
/** In the flow's own order, so the union reads as the sequence it names. */
|
|
3155
3169
|
declare type PurchaseStepId = 'PARTY' | 'DATE' | 'TIME' | 'SIGN_IN' | 'NAME' | 'EMAIL' | 'PHONE' | 'DETAILS' | 'REVIEW' | 'PAYMENT' | 'PROMO' | 'ABANDON' | 'PROCESSING' | 'PAYMENT_FAILED' | 'PAYMENT_SUCCESS' | 'FEEDBACK' | 'CREATE_ACCOUNT' | 'CONFIRM_EMAIL' | 'VERIFY_EMAIL' | 'PASSWORD' | 'PROFILE_PHOTO' | 'ACCOUNT_CREATING' | 'ACCOUNT_CREATED' | 'PASSKEY' | 'FOLLOW';
|
|
3156
3170
|
|
|
3171
|
+
/**
|
|
3172
|
+
* HOW DETAILS DEALS THE QUESTIONS OUT. `question`, the default, gives each its own card and
|
|
3173
|
+
* Continue walks them; `all` asks every one on a single card, for a run whose questions read
|
|
3174
|
+
* as one agreement — a code of conduct and a waiver, say.
|
|
3175
|
+
*
|
|
3176
|
+
* NOT `questionnaire`: the platform sends an event's questions as one flat list that names no
|
|
3177
|
+
* questionnaire, so there is nothing to group them by. It joins this union the day it does.
|
|
3178
|
+
*/
|
|
3179
|
+
export declare type QuestionGrouping = 'question' | 'all';
|
|
3180
|
+
|
|
3157
3181
|
/** @internal */
|
|
3158
3182
|
declare interface QuestionnaireQuestion {
|
|
3159
3183
|
Question: string;
|