seeonwall 0.9.0 → 0.10.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 +81 -1
- package/dist/index.d.ts +41 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/react.d.ts +2 -2
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +6 -1
- package/dist/react.js.map +1 -1
- package/dist/types.d.ts +36 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +2 -2
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,6 +53,7 @@ Everything in `PosterParams`, plus:
|
|
|
53
53
|
| prop | | |
|
|
54
54
|
|---|---|---|
|
|
55
55
|
| `posterSizes` | `string[]` or `string` | An array is joined with commas for you. |
|
|
56
|
+
| `offers` | `PosterOffer[]` | What you sell of this poster, for the action at the end of the preview. |
|
|
56
57
|
| `sizesFrom` | `auto` or a selector | Reads the sizes from a size control on the page instead. |
|
|
57
58
|
| `className`, `style` | | Applied to the mount element. |
|
|
58
59
|
| `variant` | `solid` \| `outline` \| `glyph` \| `icon` | The shape of the button. Default `solid`. |
|
|
@@ -129,6 +130,74 @@ other language reads the English label, and your English override if you set one
|
|
|
129
130
|
Under `icon` the label is still resolved and translated — it becomes the accessible name and
|
|
130
131
|
the tooltip — so this prop reaches a screen reader on a button that shows no text.
|
|
131
132
|
|
|
133
|
+
### Buying from the preview
|
|
134
|
+
|
|
135
|
+
The preview ends with the shopper looking at the poster on their wall, in a size and a frame they
|
|
136
|
+
chose. `offers` says what you sell, so the preview can carry them to it:
|
|
137
|
+
|
|
138
|
+
```tsx
|
|
139
|
+
<SeeOnWallButton
|
|
140
|
+
posterUrl={product.image}
|
|
141
|
+
posterSizes={['30x40', '50x70']}
|
|
142
|
+
offers={[
|
|
143
|
+
{ key: '4471', width: 30, height: 40, framePreset: null, purchaseUrl: '/cart/add?id=4471' },
|
|
144
|
+
{ key: '4472', width: 50, height: 70, framePreset: null, purchaseUrl: '/cart/add?id=4472' },
|
|
145
|
+
{ key: '4473', width: 50, height: 70, framePreset: 'Oak', purchaseUrl: '/cart/add?id=4473' },
|
|
146
|
+
]}
|
|
147
|
+
/>
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Each offer is one thing you sell: a size, and the name of a frame you published in the SeeOnWall
|
|
151
|
+
dashboard or `null` for a print with no frame. The `key` is yours — a variant id, a SKU, whatever
|
|
152
|
+
your storefront acts on. SeeOnWall gives it back to you and never reads it.
|
|
153
|
+
|
|
154
|
+
The widget matches the size and the frame the shopper selected against this list, on your page.
|
|
155
|
+
The list never reaches the preview, so no storefront identifier goes into the iframe.
|
|
156
|
+
|
|
157
|
+
| what the shopper selected | the button says |
|
|
158
|
+
|---|---|
|
|
159
|
+
| an offer with a `purchaseUrl` | **Add to cart**, and the browser opens that URL |
|
|
160
|
+
| an offer with a `productUrl`, or a product page | **View product** |
|
|
161
|
+
| a custom frame, a mat, or no match at all | nothing |
|
|
162
|
+
|
|
163
|
+
Matching is exact or it is nothing. A size matches within 2 mm, a frame matches its preset name,
|
|
164
|
+
and a selection that matches two offers matches none — the widget never picks the first of two. A
|
|
165
|
+
preview and a cart line that disagree is worse than a shopper who chooses the frame once more.
|
|
166
|
+
|
|
167
|
+
A URL that adds the item is the whole integration. There is no SeeOnWall SDK call to make and no
|
|
168
|
+
JavaScript to write, and a shop with no offers keeps the preview it has today.
|
|
169
|
+
|
|
170
|
+
#### Adding to the cart yourself
|
|
171
|
+
|
|
172
|
+
If your storefront adds to the cart without leaving the page, take the request over:
|
|
173
|
+
|
|
174
|
+
```ts
|
|
175
|
+
import { on } from 'seeonwall'
|
|
176
|
+
|
|
177
|
+
const unsubscribe = on('purchase-request', (event) => {
|
|
178
|
+
event.preventDefault() // From here the request is yours.
|
|
179
|
+
addToCart(event.detail.selectionKey)
|
|
180
|
+
.then(() => { window.location.assign('/cart') })
|
|
181
|
+
.catch(() => { event.detail.navigateFallback() })
|
|
182
|
+
})
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
The event is a cancelable `seeonwall:purchase-request` on `window`, sent before the widget would
|
|
186
|
+
navigate. `preventDefault()` takes the request; anything else leaves the widget to open the
|
|
187
|
+
purchase URL as usual.
|
|
188
|
+
|
|
189
|
+
`navigateFallback()` goes to the product page, and never to the purchase URL: a request that
|
|
190
|
+
failed in an unknown way may have added the item already. It acts one time, and only while that
|
|
191
|
+
preview is still the one on screen.
|
|
192
|
+
|
|
193
|
+
Navigation is how the widget knows the request succeeded — the preview closes when the page starts
|
|
194
|
+
to leave. A listener that neither navigates nor falls back leaves the shopper looking at the
|
|
195
|
+
preview, and the action comes back after eight seconds.
|
|
196
|
+
|
|
197
|
+
The event fires on a desktop preview. On a phone the preview is a tab of its own, and it navigates
|
|
198
|
+
itself to the URL your offer gave; there is no listener on the shop tab, because a phone freezes
|
|
199
|
+
that tab and a click that depended on it would do nothing.
|
|
200
|
+
|
|
132
201
|
### Sizes from a control on the page
|
|
133
202
|
|
|
134
203
|
Some shops keep the print size in the size control the shopper uses — a dropdown or a set of
|
|
@@ -182,6 +251,15 @@ The shapes above are `data-button-variant="outline" | "glyph" | "icon"` on the m
|
|
|
182
251
|
`data-button-width="full"` stretches the button to its container. `data-sizes-from="auto"`, or a
|
|
183
252
|
selector in the same attribute, reads the sizes from a size control on the page.
|
|
184
253
|
|
|
254
|
+
`data-poster-offers` carries the offers above as a JSON array, and works the same way:
|
|
255
|
+
|
|
256
|
+
```html
|
|
257
|
+
<div class="seeonwall-button"
|
|
258
|
+
data-poster-url="https://example.com/poster.jpg"
|
|
259
|
+
data-poster-sizes="30x40,50x70"
|
|
260
|
+
data-poster-offers='[{"key":"4471","width":30,"height":40,"framePreset":null,"purchaseUrl":"/cart/add?id=4471"}]'></div>
|
|
261
|
+
```
|
|
262
|
+
|
|
185
263
|
`data-button-text-en`, and the same attribute for any other language of `BUTTON_TEXT_LANGS`,
|
|
186
264
|
replaces the label the widget would write.
|
|
187
265
|
|
|
@@ -226,6 +304,7 @@ the part of your app that uses SeeOnWall.
|
|
|
226
304
|
| `isSessionReady()` | Returns the cached readiness hint for the current shop session. It is for optional fast wall preview controls, never authorization. |
|
|
227
305
|
| `refreshSessionState()` | Refreshes the safe session hint and resolves to `none`, `creating`, `ready`, or `expired`. |
|
|
228
306
|
| `on('session-change', listener)` | Reacts to session changes in this or another same-origin shop tab. Returns an unsubscribe function. |
|
|
307
|
+
| `on('purchase-request', listener)` | Reacts to **Add to cart** in a desktop preview, to add the item yourself. Returns an unsubscribe function. |
|
|
229
308
|
| `openCataloguePreview(params)` | Previews one poster on the wall the shopper already prepared. Resolves to `{ opened: true }` or a reason. |
|
|
230
309
|
| `whenLoaded()` | Resolves once the widget is available, including when `load()` has not been called yet. |
|
|
231
310
|
| `destroy()` | Stops the widget and removes everything it added. |
|
|
@@ -248,7 +327,8 @@ From `seeonwall/react`:
|
|
|
248
327
|
| `sizeUnit` | optional | `"cm"` (default) or `"in"`. The fallback for sizes that do not state a unit. |
|
|
249
328
|
| `embedUrl` | optional | A different visualizer origin. Only if you proxy the embed. |
|
|
250
329
|
|
|
251
|
-
TypeScript types ship with the package. `PosterParams` and `SizeUnit` are
|
|
330
|
+
TypeScript types ship with the package. `PosterParams`, `PosterOffer` and `SizeUnit` are
|
|
331
|
+
exported.
|
|
252
332
|
|
|
253
333
|
### Storefront readiness
|
|
254
334
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PosterParams, SizeUnit } from './types.js';
|
|
2
2
|
export { BUTTON_TEXT_LANGS } from './types.js';
|
|
3
|
-
export type { PosterParams, SizeUnit, ButtonTextLang } from './types.js';
|
|
3
|
+
export type { PosterParams, PosterOffer, SizeUnit, ButtonTextLang } from './types.js';
|
|
4
4
|
/** The safe storefront state returned by the readiness refresh. */
|
|
5
5
|
export type StorefrontSessionState = 'none' | 'creating' | 'ready' | 'expired';
|
|
6
6
|
/**
|
|
@@ -17,6 +17,37 @@ export type CataloguePreviewLaunchResult = {
|
|
|
17
17
|
opened: false;
|
|
18
18
|
reason: 'no-ready-session' | 'session-expired' | 'inactive-product' | 'invalid-poster-data' | 'poster-unavailable' | 'not-entitled' | 'disabled' | 'rate-limited' | 'network-error' | 'unsupported';
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* The `detail` of the `seeonwall:purchase-request` event (ADR 235).
|
|
22
|
+
*
|
|
23
|
+
* The widget gives this object to your listener when the shopper presses "Add to cart" in a
|
|
24
|
+
* desktop preview. The offer is the one the widget matched from {@link PosterParams.offers}.
|
|
25
|
+
*/
|
|
26
|
+
export interface PurchaseRequestDetail {
|
|
27
|
+
/** The `key` of the matched offer. Your own value; the widget does not read it. */
|
|
28
|
+
selectionKey: string;
|
|
29
|
+
posterUrl: string;
|
|
30
|
+
widthCm: number;
|
|
31
|
+
heightCm: number;
|
|
32
|
+
/** The frame preset of the offer, or null for a print with no frame. */
|
|
33
|
+
framePreset: string | null;
|
|
34
|
+
/** The product page of the mount, if it has one. */
|
|
35
|
+
productPageUrl: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Where to go if your own add fails. It is the product page and never the purchase URL,
|
|
38
|
+
* because a request that failed in an unknown way can have added the item already.
|
|
39
|
+
*/
|
|
40
|
+
fallbackUrl: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Goes to {@link fallbackUrl}, or closes the preview if there is none.
|
|
43
|
+
*
|
|
44
|
+
* The function acts one time, and only while this preview is still the one on screen. Thus a
|
|
45
|
+
* late answer cannot take the shopper away from a preview they opened after.
|
|
46
|
+
*/
|
|
47
|
+
navigateFallback(): void;
|
|
48
|
+
}
|
|
49
|
+
/** A listener for the `purchase-request` event. */
|
|
50
|
+
export type PurchaseRequestListener = (event: CustomEvent<PurchaseRequestDetail>) => void;
|
|
20
51
|
export interface LoadOptions {
|
|
21
52
|
/** Your shop id. You get the shop id from the SeeOnWall dashboard. */
|
|
22
53
|
shopId: string;
|
|
@@ -110,8 +141,16 @@ export declare function whenLoaded(): Promise<void>;
|
|
|
110
141
|
export declare function isSessionReady(): boolean;
|
|
111
142
|
/** Refreshes the storefront-safe session state from the SeeOnWall API. */
|
|
112
143
|
export declare function refreshSessionState(): Promise<StorefrontSessionState>;
|
|
113
|
-
/**
|
|
144
|
+
/**
|
|
145
|
+
* Subscribes to a widget event and returns the function that unsubscribes.
|
|
146
|
+
*
|
|
147
|
+
* - `session-change`: the storefront session changed, in this tab or in another tab of the
|
|
148
|
+
* same origin.
|
|
149
|
+
* - `purchase-request`: the shopper pressed "Add to cart" in a desktop preview (ADR 235). Refer
|
|
150
|
+
* to {@link PurchaseRequestDetail}.
|
|
151
|
+
*/
|
|
114
152
|
export declare function on(event: 'session-change', listener: () => void): () => void;
|
|
153
|
+
export declare function on(event: 'purchase-request', listener: PurchaseRequestListener): () => void;
|
|
115
154
|
/**
|
|
116
155
|
* Opens a read-only preview of one poster on the wall that the shopper prepared
|
|
117
156
|
* before. The function does not start the camera flow, thus it needs a session
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAExD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAExD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,MAA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M,GAAG,IAAI,CAE9C;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAU1C;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAExC;AAED,0EAA0E;AAC1E,wBAAgB,mBAAmB,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAKrE;AAED;;;;;;;GAOG;AACH,wBAAgB,EAAE,CAAC,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAA;AAC7E,wBAAgB,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,uBAAuB,GAAG,MAAM,IAAI,CAAA;AA+B5F;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAiBhG;AAaD;;;;;;;;GAQG;AACH,wBAAgB,OAAO,IAAI,IAAI,CAY9B;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,MAAM,GAAG,IAAI,CAE9C"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { BUTTON_TEXT_LANGS } from './types.js';
|
|
2
|
+
/** The name of the native event. The widget sends it on `window`. */
|
|
3
|
+
const PURCHASE_REQUEST_EVENT = 'seeonwall:purchase-request';
|
|
2
4
|
const UNSUPPORTED = { opened: false, reason: 'unsupported' };
|
|
3
5
|
/**
|
|
4
6
|
* The location of the snippet file.
|
|
@@ -248,15 +250,24 @@ export function refreshSessionState() {
|
|
|
248
250
|
return loading.then(loaded => loaded.refreshSessionState());
|
|
249
251
|
return Promise.resolve('none');
|
|
250
252
|
}
|
|
251
|
-
/** Subscribes to same-origin storefront session changes and returns an unsubscribe function. */
|
|
252
253
|
export function on(event, listener) {
|
|
253
254
|
if (!isBrowser())
|
|
254
255
|
return () => undefined;
|
|
256
|
+
if (event === 'purchase-request') {
|
|
257
|
+
// On the window, and not through the widget. The event is a native one, thus a listener
|
|
258
|
+
// needs no widget to attach to: it can start before load(), it stays through destroy(),
|
|
259
|
+
// and it also works with a copy of the widget that is older than this function. A
|
|
260
|
+
// subscription through the widget would give a listener that never runs with such a copy,
|
|
261
|
+
// because an older copy knows the name of no event but `session-change`.
|
|
262
|
+
const handler = listener;
|
|
263
|
+
window.addEventListener(PURCHASE_REQUEST_EVENT, handler);
|
|
264
|
+
return () => { window.removeEventListener(PURCHASE_REQUEST_EVENT, handler); };
|
|
265
|
+
}
|
|
255
266
|
let cancelled = false;
|
|
256
267
|
let unsubscribe;
|
|
257
268
|
const subscribe = () => {
|
|
258
269
|
if (!cancelled && api)
|
|
259
|
-
unsubscribe = api.on(
|
|
270
|
+
unsubscribe = api.on('session-change', listener);
|
|
260
271
|
};
|
|
261
272
|
// Through whenLoaded(), and not through `loading`, because a subscription can
|
|
262
273
|
// start before load(). The earlier form did nothing at all in that case.
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAgE9C,qEAAqE;AACrE,MAAM,sBAAsB,GAAG,4BAA4B,CAAA;AAE3D,MAAM,WAAW,GAAiC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,CAAA;AAE1F;;;;;;;GAOG;AACH,MAAM,kBAAkB,GAAG,oCAAoC,CAAA;AAuD/D,IAAI,OAAO,GAA+B,IAAI,CAAA;AAC9C,IAAI,GAAG,GAAsB,IAAI,CAAA;AAEjC;;;;;;;;;GASG;AACH,IAAI,aAAa,GAAyB,IAAI,CAAA;AAC9C,IAAI,aAAa,GA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CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IACrC,CAAC;IACD,OAAO,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAA;AAC5C,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,OAAO;IACrB,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;QACjB,OAAM;IACR,CAAC;IACD,MAAM,GAAG,KAAK,CAAA;IACd,IAAI,GAAG,EAAE,CAAC;QACR,IAAI,EAAE,CAAA;IACR,CAAC;IACD,2EAA2E;IAC3E,2EAA2E;IAC3E,4EAA4E;IAC5E,iDAAiD;AACnD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,GAAG,EAAE,OAAO,IAAI,IAAI,CAAA;AAC7B,CAAC"}
|
package/dist/react.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CSSProperties, ReactElement } from 'react';
|
|
2
2
|
import { BUTTON_TEXT_LANGS } from './index.js';
|
|
3
|
-
import type { ButtonTextLang, LoadOptions, PosterParams } from './index.js';
|
|
3
|
+
import type { ButtonTextLang, LoadOptions, PosterOffer, PosterParams } from './index.js';
|
|
4
4
|
export { BUTTON_TEXT_LANGS };
|
|
5
|
-
export type { ButtonTextLang, LoadOptions, PosterParams };
|
|
5
|
+
export type { ButtonTextLang, LoadOptions, PosterOffer, PosterParams };
|
|
6
6
|
/**
|
|
7
7
|
* Loads the widget while a component is on the page.
|
|
8
8
|
*
|
package/dist/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACxD,OAAO,EAAiD,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC7F,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA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AAM,CAAC,CAAC,CAAA;IAC7D;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,EACvC,yBAAyB;IAC3B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;IAC/B;;;;;;;;;;;;;;;;;;OAkBG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oDAAoD;IACpD,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAiBD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,GAAG,YAAY,CA8FzE"}
|
package/dist/react.js
CHANGED
|
@@ -100,7 +100,7 @@ function attr(target, name, value) {
|
|
|
100
100
|
* arrives.
|
|
101
101
|
*/
|
|
102
102
|
export function SeeOnWallButton(props) {
|
|
103
|
-
const { posterUrl, posterTitle, sizeUnit, posterWidth, posterHeight, posterSizes, sizesFrom, posterInset, productPageUrl, lang, frameDefaultCm, frameDefaultColor, framePreset, variant, fullWidth, backgroundColor, textColor, borderRadius, borderColor, buttonClassName, buttonText, matchButton, matchColors, className, style, } = props;
|
|
103
|
+
const { posterUrl, posterTitle, sizeUnit, posterWidth, posterHeight, posterSizes, sizesFrom, posterInset, productPageUrl, lang, frameDefaultCm, frameDefaultColor, framePreset, offers, variant, fullWidth, backgroundColor, textColor, borderRadius, borderColor, buttonClassName, buttonText, matchButton, matchColors, className, style, } = props;
|
|
104
104
|
const attributes = {};
|
|
105
105
|
attr(attributes, 'data-poster-url', posterUrl);
|
|
106
106
|
attr(attributes, 'data-poster-title', posterTitle);
|
|
@@ -115,6 +115,11 @@ export function SeeOnWallButton(props) {
|
|
|
115
115
|
attr(attributes, 'data-frame-default-cm', frameDefaultCm);
|
|
116
116
|
attr(attributes, 'data-frame-default-color', frameDefaultColor);
|
|
117
117
|
attr(attributes, 'data-frame-preset', framePreset);
|
|
118
|
+
// The widget reads the offers as JSON from one attribute. An empty list is not written: the
|
|
119
|
+
// widget then has nothing to match, which is what an absent attribute already means.
|
|
120
|
+
if (offers && offers.length > 0) {
|
|
121
|
+
attributes['data-poster-offers'] = JSON.stringify(offers);
|
|
122
|
+
}
|
|
118
123
|
// A mount with no attribute is a solid button to the widget. Thus the default
|
|
119
124
|
// shape writes nothing, and the markup stays as it was before the shapes came.
|
|
120
125
|
if (variant !== undefined && variant !== 'solid') {
|
package/dist/react.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","sourceRoot":"","sources":["../src/react.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAA;AAEvD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAG7F,OAAO,EAAE,iBAAiB,EAAE,CAAA;AAG5B;;;;;;;GAOG;AACH,IAAI,SAAS,GAAG,CAAC,CAAA;AAEjB;;;;;;;;;;GAUG;AACH,MAAM,UAAU,YAAY,CAAC,OAAoB;IAC/C,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,OAAO,CAAA;IAE/D,SAAS,CAAC,GAAG,EAAE;QACb,SAAS,IAAI,CAAC,CAAA;QACd,KAAK,IAAI,CAAC;YACR,MAAM;YACN,GAAG,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/C,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACvC,GAAG,CAAC,QAAQ,KAAK,SAAS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CAAC;YACrC,IAAI,CAAC,UAAU,EAAE,oBAAoB,IAAI,EAAE,EAAE,UAAU,CAAC,CAAA;QAC1D,CAAC;IACH,CAAC;SAAM,IAAI,UAAU,EAAE,CAAC;QACtB,KAAK,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;YACtD,IAAI,CAAC,UAAU,EAAE,oBAAoB,IAAI,EAAE,EAAE,IAAI,CAAC,CAAA;QACpD,CAAC;IACH,CAAC;IACD,IAAI,CAAC,UAAU,EAAE,mBAAmB,EAAE,WAAW,CAAC,CAAA;IAClD,IAAI,WAAW,KAAK,IAAI,EAAE,CAAC;QACzB,UAAU,CAAC,mBAAmB,CAAC,GAAG,MAAM,CAAA;IAC1C,CAAC;IAED,8EAA8E;IAC9E,6CAA6C;IAC7C,OAAO,CACL,cACE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,oBAAoB,SAAS,EAAE,CAAC,CAAC,CAAC,kBAAkB,EAC3E,KAAK,EAAE,KAAK,KACR,UAAU,GACd,CACH,CAAA;AACH,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* cannot prevent one. Thus you must change the source file first. Then copy the
|
|
14
14
|
* new text to this file. Do not do this in the opposite order.
|
|
15
15
|
*
|
|
16
|
-
* The check compares
|
|
17
|
-
* `BUTTON_TEXT_LANGS`. Each of them is an exact copy. Do not edit the wording
|
|
16
|
+
* The check compares four declarations: `SizeUnit`, `PosterParams`,
|
|
17
|
+
* `PosterOffer` and `BUTTON_TEXT_LANGS`. Each of them is an exact copy. Do not edit the wording
|
|
18
18
|
* inside them, or the check fails. The comments above them are the comments of
|
|
19
19
|
* this package, and the check does not read them.
|
|
20
20
|
*/
|
|
@@ -116,6 +116,40 @@ export interface PosterParams {
|
|
|
116
116
|
* frame carries is ignored, and the two values above then apply.
|
|
117
117
|
*/
|
|
118
118
|
framePreset?: string;
|
|
119
|
+
/**
|
|
120
|
+
* What this shop sells of this poster, for the action at the end of the preview (ADR 235).
|
|
121
|
+
*
|
|
122
|
+
* The widget reads it from the `data-poster-offers` attribute of the mount, as a JSON array.
|
|
123
|
+
* Each offer names one thing the shop sells: a size, and a frame that the shop published in its
|
|
124
|
+
* catalogue or `null` for a print with no frame. The `purchaseUrl` adds exactly that offer to
|
|
125
|
+
* the cart when a browser opens it; the `productUrl` shows it. The widget matches the size and
|
|
126
|
+
* the frame that the shopper selected against this list, and it never guesses: a selection that
|
|
127
|
+
* matches no offer, or two, opens the product page instead.
|
|
128
|
+
*
|
|
129
|
+
* The list never reaches the visualizer. A list of more than 250 offers is ignored whole.
|
|
130
|
+
*/
|
|
131
|
+
offers?: PosterOffer[];
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* One thing the shop sells of this poster: a size, and a frame it published or no frame.
|
|
135
|
+
*
|
|
136
|
+
* The key is yours. SeeOnWall matches the selection of the shopper against this list and gives
|
|
137
|
+
* the key back to you; it does not read the key. Thus the key can be a variant id, a SKU, or
|
|
138
|
+
* anything else your storefront can act on.
|
|
139
|
+
*/
|
|
140
|
+
export interface PosterOffer {
|
|
141
|
+
/** Opaque to SeeOnWall. The storefront adapter owns its meaning. 1–255 characters. */
|
|
142
|
+
key: string;
|
|
143
|
+
/** The forms of {@link PosterParams.posterWidth}. */
|
|
144
|
+
width: number | string;
|
|
145
|
+
/** The forms of {@link PosterParams.posterHeight}. */
|
|
146
|
+
height: number | string;
|
|
147
|
+
/** The name of a published frame preset of this shop (ADR 162); null means explicitly unframed. */
|
|
148
|
+
framePreset: string | null;
|
|
149
|
+
/** The product page, preferably with this offer preselected. Relative to the page is fine. */
|
|
150
|
+
productUrl?: string;
|
|
151
|
+
/** An HTTP(S) URL which adds exactly this offer when navigated to. Required for "Add to cart". */
|
|
152
|
+
purchaseUrl?: string;
|
|
119
153
|
}
|
|
120
154
|
/**
|
|
121
155
|
* The languages that a button can carry a label of your own in.
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAA;AAElC,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC7B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC9B;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,6EAA8E,CAAA;AAE5G,iDAAiD;AACjD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAA;AAElC,MAAM,WAAW,YAAY;IAC3B,SAA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.js
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* cannot prevent one. Thus you must change the source file first. Then copy the
|
|
14
14
|
* new text to this file. Do not do this in the opposite order.
|
|
15
15
|
*
|
|
16
|
-
* The check compares
|
|
17
|
-
* `BUTTON_TEXT_LANGS`. Each of them is an exact copy. Do not edit the wording
|
|
16
|
+
* The check compares four declarations: `SizeUnit`, `PosterParams`,
|
|
17
|
+
* `PosterOffer` and `BUTTON_TEXT_LANGS`. Each of them is an exact copy. Do not edit the wording
|
|
18
18
|
* inside them, or the check fails. The comments above them are the comments of
|
|
19
19
|
* this package, and the check does not read them.
|
|
20
20
|
*/
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AA0IH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAA"}
|