@scopetickets/checkout 0.6.3 → 0.7.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/README.md +13 -3
- package/dist/index.cjs +3472 -5753
- package/dist/index.cjs.map +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +1663 -1174
- package/dist/index.d.ts +1663 -1174
- package/dist/index.js +4035 -3023
- package/dist/index.js.map +1 -1
- package/dist/styles.css +477 -2803
- package/package.json +16 -21
- package/dist/chunk-VS7ACUTQ.js +0 -3556
- package/dist/chunk-VS7ACUTQ.js.map +0 -1
- package/dist/pickers.cjs +0 -1999
- package/dist/pickers.cjs.map +0 -1
- package/dist/pickers.css +0 -1151
- package/dist/pickers.css.map +0 -1
- package/dist/pickers.d.cts +0 -947
- package/dist/pickers.d.ts +0 -947
- package/dist/pickers.js +0 -117
- package/dist/pickers.js.map +0 -1
package/README.md
CHANGED
|
@@ -9,9 +9,9 @@ imports the SDK, and the SDK's public API is unchanged by its arrival.
|
|
|
9
9
|
|
|
10
10
|
## What is here
|
|
11
11
|
|
|
12
|
-
The widget
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
The widget and the steps it mounts. The surface it draws on and its motion are
|
|
13
|
+
`@scopetickets/stui`'s; the flow it walks lives in `@scopetickets/checkout-core`, as pure
|
|
14
|
+
functions with no React in them.
|
|
15
15
|
|
|
16
16
|
Not everything it draws is reachable yet, and the gaps are all in the same
|
|
17
17
|
place: there is no account service to sign into, so `ScopeTicketsCheckout`
|
|
@@ -26,9 +26,19 @@ npm install @scopetickets/checkout
|
|
|
26
26
|
|
|
27
27
|
```ts
|
|
28
28
|
import { ScopeTicketsCheckout } from '@scopetickets/checkout';
|
|
29
|
+
import '@scopetickets/stui/styles.css';
|
|
29
30
|
import '@scopetickets/checkout/styles.css';
|
|
30
31
|
```
|
|
31
32
|
|
|
33
|
+
The widget is drawn with STui (`@scopetickets/stui`, installed with it): the island, its
|
|
34
|
+
pickers and fields come from there, and so does the first stylesheet. Import it before the
|
|
35
|
+
widget's own, which holds only the flow's steps.
|
|
36
|
+
|
|
37
|
+
The avatar is a peer of this package and of STui: the widget and a page that draws its own
|
|
38
|
+
faces share one copy of it, and one set of accessory transitions. npm 7+ and pnpm 8+ install
|
|
39
|
+
it for you; a package manager that does not install peers (`yarn` 1, `auto-install-peers=false`,
|
|
40
|
+
`--strict-peer-dependencies`) needs it named beside this package.
|
|
41
|
+
|
|
32
42
|
```tsx
|
|
33
43
|
<ScopeTicketsCheckout
|
|
34
44
|
appKey="…"
|