@scopetickets/checkout 0.1.0 → 0.1.2
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 +18 -1
- package/dist/chunk-4BOPQURW.js +1989 -0
- package/dist/chunk-4BOPQURW.js.map +1 -0
- package/dist/index.cjs +13852 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.cts +3813 -0
- package/dist/index.d.ts +3813 -0
- package/dist/index.js +12004 -0
- package/dist/index.js.map +1 -0
- package/dist/pickers.cjs +1908 -0
- package/dist/pickers.cjs.map +1 -0
- package/dist/pickers.css +1054 -0
- package/dist/pickers.css.map +1 -0
- package/dist/pickers.d.cts +911 -0
- package/dist/pickers.d.ts +911 -0
- package/dist/pickers.js +117 -0
- package/dist/pickers.js.map +1 -0
- package/dist/styles.css +2948 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ import '@scopetickets/checkout/styles.css';
|
|
|
33
33
|
<ScopeTicketsCheckout
|
|
34
34
|
appKey="…"
|
|
35
35
|
intent={{ subject: { kind: 'series', key: 'a-run-of-nights' } }}
|
|
36
|
-
align="bottom" // or "top",
|
|
36
|
+
align="bottom" // or "top", "center", "left", "right", or a corner such as "top-left"
|
|
37
37
|
initialPresentation="card" // or "pill" — the state the page loads on
|
|
38
38
|
/>
|
|
39
39
|
```
|
|
@@ -42,6 +42,23 @@ The host supplies no copy, no styling and no steps: hand it what is already know
|
|
|
42
42
|
about the order and it asks for the rest in its own words. `intent` is how much it
|
|
43
43
|
already knows, and every field in it is a step the buyer is not asked for.
|
|
44
44
|
|
|
45
|
+
**One exception: `openingLabel`**, the words on the opening pill. It names what is on
|
|
46
|
+
sale, which the page knows and the widget does not, so a page selling one show can say
|
|
47
|
+
`openingLabel="Book Santo Panto"`. Absent or blank, the pill says "Get Tickets". Every
|
|
48
|
+
later pill names its step and stays the widget's own.
|
|
49
|
+
|
|
50
|
+
**Floating on the screen, or in the page — `placement`.** By default the widget sits
|
|
51
|
+
where it was mounted and `align` places it inside that box. `placement="screen"` pins it
|
|
52
|
+
to the window instead, so `align` names a corner of the screen and the host writes no
|
|
53
|
+
positioning CSS of its own:
|
|
54
|
+
|
|
55
|
+
```tsx
|
|
56
|
+
<ScopeTicketsCheckout appKey="…" placement="screen" align="top-right" />
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
A `transform`, `filter` or `contain` on any ancestor still captures a fixed box, so mount a
|
|
60
|
+
pinned widget at the end of `<body>` rather than inside a theme's wrapper.
|
|
61
|
+
|
|
45
62
|
**Leave `intent` out and it mounts with nothing to sell.** No walk, no steps, no
|
|
46
63
|
cart and nothing fetched — one card about the buyer's account, which is what
|
|
47
64
|
belongs on a page that is not selling anything:
|