@scopetickets/checkout 0.2.0 → 0.4.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/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/pickers.d.cts
CHANGED
|
@@ -18,24 +18,12 @@ export declare function addDays(day: string, count: number): string;
|
|
|
18
18
|
export declare function assignmentFor(product: Partial<Pick<Ticket, 'UserTypes'>>, key: string): string | undefined;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* THE RAMP THE
|
|
22
|
-
*
|
|
21
|
+
* THE RAMP AS THE WEB PAINTS IT — a `color-mix()` over the ramp's TOKENS rather than a
|
|
22
|
+
* computed hex, so the light appearance swaps underneath it. The ramp is a different
|
|
23
|
+
* three colours there, and a value resolved in JS would be the dark one on both.
|
|
23
24
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* second, differently-grouped reading of one number: the ring could be yellow on a slot
|
|
27
|
-
* the announcement calls high, and neither would be wrong on its own terms. Pinned to
|
|
28
|
-
* 2/3 and 1/3, the colour can only ever be inside the band its own level names —
|
|
29
|
-
* `readAvailability`'s note, applied to paint instead of to words.
|
|
30
|
-
*
|
|
31
|
-
* CONTINUOUS BETWEEN THOSE STOPS, because the arc beside it is. The ring draws the raw
|
|
32
|
-
* decimal, so a colour that stepped in three would say the slot had moved when the arc
|
|
33
|
-
* said it had not. The platform quantises `Remaining` to quarters TODAY and does not
|
|
34
|
-
* promise to; interpolating costs nothing if it stops.
|
|
35
|
-
*
|
|
36
|
-
* Returns a `color-mix()` over the ramp's TOKENS rather than a computed hex, so the
|
|
37
|
-
* light appearance swaps underneath it — the ramp is a different three colours there,
|
|
38
|
-
* and a value resolved in JS would be the dark one on both.
|
|
25
|
+
* A flat token at each end rather than a colour mixed with itself: the two are the same
|
|
26
|
+
* paint, and the shorter string is the one a stylesheet test can read.
|
|
39
27
|
*/
|
|
40
28
|
export declare function availabilityColor(remaining: number | null): string;
|
|
41
29
|
|
|
@@ -643,6 +631,11 @@ declare interface Ticket {
|
|
|
643
631
|
* response spanning a whole series is split back into days.
|
|
644
632
|
*/
|
|
645
633
|
EventKeys?: string[] | null;
|
|
634
|
+
/**
|
|
635
|
+
* The inventories this product is sold from — the event's own `(Main)` one and any named
|
|
636
|
+
* ones that silo an allocation across events. Sent by `TicketInformation`.
|
|
637
|
+
*/
|
|
638
|
+
InventoryKeys?: string[] | null;
|
|
646
639
|
}
|
|
647
640
|
|
|
648
641
|
/** The time it is right now on a given zone's clock, as `HH:MM`. */
|
package/dist/pickers.d.ts
CHANGED
|
@@ -18,24 +18,12 @@ export declare function addDays(day: string, count: number): string;
|
|
|
18
18
|
export declare function assignmentFor(product: Partial<Pick<Ticket, 'UserTypes'>>, key: string): string | undefined;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* THE RAMP THE
|
|
22
|
-
*
|
|
21
|
+
* THE RAMP AS THE WEB PAINTS IT — a `color-mix()` over the ramp's TOKENS rather than a
|
|
22
|
+
* computed hex, so the light appearance swaps underneath it. The ramp is a different
|
|
23
|
+
* three colours there, and a value resolved in JS would be the dark one on both.
|
|
23
24
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* second, differently-grouped reading of one number: the ring could be yellow on a slot
|
|
27
|
-
* the announcement calls high, and neither would be wrong on its own terms. Pinned to
|
|
28
|
-
* 2/3 and 1/3, the colour can only ever be inside the band its own level names —
|
|
29
|
-
* `readAvailability`'s note, applied to paint instead of to words.
|
|
30
|
-
*
|
|
31
|
-
* CONTINUOUS BETWEEN THOSE STOPS, because the arc beside it is. The ring draws the raw
|
|
32
|
-
* decimal, so a colour that stepped in three would say the slot had moved when the arc
|
|
33
|
-
* said it had not. The platform quantises `Remaining` to quarters TODAY and does not
|
|
34
|
-
* promise to; interpolating costs nothing if it stops.
|
|
35
|
-
*
|
|
36
|
-
* Returns a `color-mix()` over the ramp's TOKENS rather than a computed hex, so the
|
|
37
|
-
* light appearance swaps underneath it — the ramp is a different three colours there,
|
|
38
|
-
* and a value resolved in JS would be the dark one on both.
|
|
25
|
+
* A flat token at each end rather than a colour mixed with itself: the two are the same
|
|
26
|
+
* paint, and the shorter string is the one a stylesheet test can read.
|
|
39
27
|
*/
|
|
40
28
|
export declare function availabilityColor(remaining: number | null): string;
|
|
41
29
|
|
|
@@ -643,6 +631,11 @@ declare interface Ticket {
|
|
|
643
631
|
* response spanning a whole series is split back into days.
|
|
644
632
|
*/
|
|
645
633
|
EventKeys?: string[] | null;
|
|
634
|
+
/**
|
|
635
|
+
* The inventories this product is sold from — the event's own `(Main)` one and any named
|
|
636
|
+
* ones that silo an allocation across events. Sent by `TicketInformation`.
|
|
637
|
+
*/
|
|
638
|
+
InventoryKeys?: string[] | null;
|
|
646
639
|
}
|
|
647
640
|
|
|
648
641
|
/** The time it is right now on a given zone's clock, as `HH:MM`. */
|
package/dist/pickers.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scopetickets/checkout",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "ScopeTicketsCheckout — the embeddable checkout widget: the island, its motion, and the steps it mounts.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"react": "^18.0.0 || ^19.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@scopetickets/avatar": "^0.
|
|
51
|
+
"@scopetickets/avatar": "^0.2.1",
|
|
52
52
|
"@scopetickets/icons": "^0.1.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|