@disconetwork/shopify 0.0.3 → 0.0.4
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 +2 -12
- package/dist/{DiscoRecommendations-i3RGOqOq.js → DiscoRecommendations-BeqZ2x4q.js} +379 -138
- package/dist/DiscoRecommendations-BeqZ2x4q.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/package.json +2 -2
- package/dist/DiscoRecommendations-i3RGOqOq.js.map +0 -1
package/README.md
CHANGED
|
@@ -6,23 +6,13 @@ Shopify's Polaris web components (`s-*`) on Preact.
|
|
|
6
6
|
## Install
|
|
7
7
|
|
|
8
8
|
```sh
|
|
9
|
-
pnpm add @disconetwork/shopify @shopify/ui-extensions preact
|
|
9
|
+
pnpm add @disconetwork/shopify @shopify/ui-extensions preact
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
### Peer dependencies
|
|
13
|
-
|
|
14
|
-
- **`@shopify/ui-extensions`** (2026-07 API or newer)
|
|
15
|
-
- **`preact`**
|
|
16
|
-
|
|
17
|
-
The package uses `@disconetwork/react`, which imports `react`. Shopify
|
|
18
|
-
extensions run Preact, so alias `react` to `@preact/compat` (the `react@npm:`
|
|
19
|
-
install above does this).
|
|
20
|
-
|
|
21
12
|
## Usage
|
|
22
13
|
|
|
23
14
|
Render `<DiscoRecommendations>` from a `purchase.thank-you.block.render` or
|
|
24
|
-
`customer-account.order-status.block.render` target.
|
|
25
|
-
buyer from that target's API, so it needs no other props to build the request.
|
|
15
|
+
`customer-account.order-status.block.render` target.
|
|
26
16
|
|
|
27
17
|
```tsx
|
|
28
18
|
import "@shopify/ui-extensions/preact";
|