@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.
@@ -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 REMAINING RING IS DRAWN IN — green while a slot is open, through yellow
22
- * and red, to a red that has faded out entirely at nothing left.
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
- * ITS BREAKPOINTS ARE `toAvailabilityLevel`'S OWN, and that is the whole reason this
25
- * lives here rather than in the component. A ramp with stops of its own would be a
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 REMAINING RING IS DRAWN IN — green while a slot is open, through yellow
22
- * and red, to a red that has faded out entirely at nothing left.
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
- * ITS BREAKPOINTS ARE `toAvailabilityLevel`'S OWN, and that is the whole reason this
25
- * lives here rather than in the component. A ramp with stops of its own would be a
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
@@ -55,7 +55,7 @@ import {
55
55
  weeksInSeries,
56
56
  withSelectedDay,
57
57
  withSelectedTime
58
- } from "./chunk-B7AHG2OO.js";
58
+ } from "./chunk-WT7WSYIH.js";
59
59
  export {
60
60
  CalendarGrainButton,
61
61
  ContentFlag,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scopetickets/checkout",
3
- "version": "0.2.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.1.1",
51
+ "@scopetickets/avatar": "^0.2.1",
52
52
  "@scopetickets/icons": "^0.1.0"
53
53
  },
54
54
  "devDependencies": {