@scopetickets/checkout 0.6.2 → 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 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, its island and the steps it mounts — 190 files, of which 86 are
13
- tests. `src/island` is the surface and its motion; the flow it walks lives in
14
- `@scopetickets/checkout-core`, as pure functions with no React in them.
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="…"