seeonwall 0.10.0 → 0.12.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 +41 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +4 -1
- package/dist/react.js.map +1 -1
- package/dist/types.d.ts +27 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ The widget labels the button itself, in each of the languages it knows, and foll
|
|
|
124
124
|
A string is used in every language. An object replaces the label of the languages it names
|
|
125
125
|
and leaves the rest translated, so a shop that has wording for two of its languages keeps the
|
|
126
126
|
widget's wording for the others. The keys are the languages in `BUTTON_TEXT_LANGS`, exported
|
|
127
|
-
from the package: `en`, `pl`, `de`, `es`, `fr`, `it`, `pt`, `nl`, `sv`, `nb`, `da`. A shopper on any
|
|
127
|
+
from the package: `en`, `pl`, `de`, `es`, `fr`, `it`, `pt`, `nl`, `sv`, `nb`, `da`, `fi`. A shopper on any
|
|
128
128
|
other language reads the English label, and your English override if you set one.
|
|
129
129
|
|
|
130
130
|
Under `icon` the label is still resolved and translated — it becomes the accessible name and
|
|
@@ -148,7 +148,8 @@ chose. `offers` says what you sell, so the preview can carry them to it:
|
|
|
148
148
|
```
|
|
149
149
|
|
|
150
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.
|
|
151
|
+
dashboard or `null` for a print with no frame. A frame the shopper made in the preview matches the
|
|
152
|
+
`null` offer of its size, because the shop sells them the print alone. The `key` is yours — a variant id, a SKU, whatever
|
|
152
153
|
your storefront acts on. SeeOnWall gives it back to you and never reads it.
|
|
153
154
|
|
|
154
155
|
The widget matches the size and the frame the shopper selected against this list, on your page.
|
|
@@ -158,7 +159,8 @@ The list never reaches the preview, so no storefront identifier goes into the if
|
|
|
158
159
|
|---|---|
|
|
159
160
|
| an offer with a `purchaseUrl` | **Add to cart**, and the browser opens that URL |
|
|
160
161
|
| an offer with a `productUrl`, or a product page | **View product** |
|
|
161
|
-
| a
|
|
162
|
+
| a frame of their own, on an offer with `framePreset: null` | the same as that offer |
|
|
163
|
+
| a mat in a frame you sell, or no match at all | nothing |
|
|
162
164
|
|
|
163
165
|
Matching is exact or it is nothing. A size matches within 2 mm, a frame matches its preset name,
|
|
164
166
|
and a selection that matches two offers matches none — the widget never picks the first of two. A
|
|
@@ -196,7 +198,9 @@ preview, and the action comes back after eight seconds.
|
|
|
196
198
|
|
|
197
199
|
The event fires on a desktop preview. On a phone the preview is a tab of its own, and it navigates
|
|
198
200
|
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.
|
|
201
|
+
that tab and a click that depended on it would do nothing. When the browser blocks that tab after a
|
|
202
|
+
tap — an in-app browser, a popup blocker — the shop tab itself goes to the preview, which then links
|
|
203
|
+
back to the product page.
|
|
200
204
|
|
|
201
205
|
### Sizes from a control on the page
|
|
202
206
|
|
|
@@ -224,6 +228,34 @@ Most storefronts built with this package know their sizes and should pass them i
|
|
|
224
228
|
`posterSizes`. Reach for `sizesFrom` when the size control belongs to a plugin or to a part of
|
|
225
229
|
the page you do not control.
|
|
226
230
|
|
|
231
|
+
### A mat in the product
|
|
232
|
+
|
|
233
|
+
When the print you sell comes in a mat, `posterMat` shows it in the preview:
|
|
234
|
+
|
|
235
|
+
```tsx
|
|
236
|
+
<SeeOnWallButton posterUrl={product.image} posterSizes="30x40" posterMat="21x30:30x40" />
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
| `posterMat` | |
|
|
240
|
+
|---|---|
|
|
241
|
+
| `"3"` or `"50x70:5"` | A mat of that width inside the size. The artwork is smaller. |
|
|
242
|
+
| `"21x30:30x40"` | The 21x30 print in a 30x40 mat. The mat goes around the print. |
|
|
243
|
+
| `"30x40:21x30"` | A 30x40 with a 21x30 window. The mat goes inside the size. |
|
|
244
|
+
|
|
245
|
+
A number without a unit is in the size unit. `posterMatColor` sets the colour as `#RRGGBB`, and
|
|
246
|
+
the mat is white without it. The visualizer ignores a value it cannot read, so an error gives a
|
|
247
|
+
preview with no mat.
|
|
248
|
+
|
|
249
|
+
### When the image and the size disagree
|
|
250
|
+
|
|
251
|
+
An image with other proportions than the size — one photo sold as 45x60 and as 80x120 — is cropped
|
|
252
|
+
to the size from its centre, as CSS `object-fit: cover` crops. `posterFit="stretch"` distorts the
|
|
253
|
+
image to the size instead, as the preview did before.
|
|
254
|
+
|
|
255
|
+
```tsx
|
|
256
|
+
<SeeOnWallButton posterUrl={product.image} posterSizes="45x60,80x120" posterFit="stretch" />
|
|
257
|
+
```
|
|
258
|
+
|
|
227
259
|
## Vanilla JavaScript
|
|
228
260
|
|
|
229
261
|
```js
|
|
@@ -251,6 +283,9 @@ The shapes above are `data-button-variant="outline" | "glyph" | "icon"` on the m
|
|
|
251
283
|
`data-button-width="full"` stretches the button to its container. `data-sizes-from="auto"`, or a
|
|
252
284
|
selector in the same attribute, reads the sizes from a size control on the page.
|
|
253
285
|
|
|
286
|
+
`data-poster-mat` and `data-poster-mat-color` carry the mat above, and `data-poster-fit="stretch"`
|
|
287
|
+
the fit.
|
|
288
|
+
|
|
254
289
|
`data-poster-offers` carries the offers above as a JSON array, and works the same way:
|
|
255
290
|
|
|
256
291
|
```html
|
|
@@ -327,8 +362,8 @@ From `seeonwall/react`:
|
|
|
327
362
|
| `sizeUnit` | optional | `"cm"` (default) or `"in"`. The fallback for sizes that do not state a unit. |
|
|
328
363
|
| `embedUrl` | optional | A different visualizer origin. Only if you proxy the embed. |
|
|
329
364
|
|
|
330
|
-
TypeScript types ship with the package. `PosterParams`, `PosterOffer
|
|
331
|
-
exported.
|
|
365
|
+
TypeScript types ship with the package. `PosterParams`, `PosterOffer`, `PosterFit` and
|
|
366
|
+
`SizeUnit` are exported.
|
|
332
367
|
|
|
333
368
|
### Storefront readiness
|
|
334
369
|
|
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, PosterOffer, SizeUnit, ButtonTextLang } from './types.js';
|
|
3
|
+
export type { PosterParams, PosterOffer, PosterFit, 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
|
/**
|
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,WAAW,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,SAAS,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAEhG,mEAAmE;AACnE,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,CAAA;AAE9E;;;;;;;GAOG;AACH,MAAM,MAAM,4BAA4B,GACpC;IAAE,MAAM,EAAE,IAAI,CAAA;CAAE,GAChB;IACE,MAAM,EAAE,KAAK,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C/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,CAoGzE"}
|
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, offers, variant, fullWidth, backgroundColor, textColor, borderRadius, borderColor, buttonClassName, buttonText, matchButton, matchColors, className, style, } = props;
|
|
103
|
+
const { posterUrl, posterTitle, sizeUnit, posterWidth, posterHeight, posterSizes, sizesFrom, posterInset, posterMat, posterMatColor, posterFit, 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);
|
|
@@ -110,6 +110,9 @@ export function SeeOnWallButton(props) {
|
|
|
110
110
|
attr(attributes, 'data-poster-sizes', Array.isArray(posterSizes) ? posterSizes.join(',') : posterSizes);
|
|
111
111
|
attr(attributes, 'data-sizes-from', sizesFrom);
|
|
112
112
|
attr(attributes, 'data-poster-inset', posterInset);
|
|
113
|
+
attr(attributes, 'data-poster-mat', posterMat);
|
|
114
|
+
attr(attributes, 'data-poster-mat-color', posterMatColor);
|
|
115
|
+
attr(attributes, 'data-poster-fit', posterFit);
|
|
113
116
|
attr(attributes, 'data-product-page-url', productPageUrl);
|
|
114
117
|
attr(attributes, 'data-lang', lang);
|
|
115
118
|
attr(attributes, 'data-frame-default-cm', frameDefaultCm);
|
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,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/C,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAClD,CAAC,CAAC,KAAK,CAAC,CAAC,GAAY,EAAE,EAAE;YACxB,OAAO,CAA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U,EAAE,mBAAmB,EAAE,eAAe,CAAC,CAAA;IACtD,6EAA6E;IAC7E,2EAA2E;IAC3E,kDAAkD;IAClD,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;QACnC,KAAK,MAAM,IAAI,IAAI,iBAAiB,EAAE,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
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
* this package, and the check does not read them.
|
|
20
20
|
*/
|
|
21
21
|
export type SizeUnit = 'cm' | 'in';
|
|
22
|
+
/** How the preview puts the image into a size of other proportions (ADR 260). */
|
|
23
|
+
export type PosterFit = 'cover' | 'stretch';
|
|
22
24
|
export interface PosterParams {
|
|
23
25
|
posterUrl: string;
|
|
24
26
|
posterTitle?: string;
|
|
@@ -74,6 +76,25 @@ export interface PosterParams {
|
|
|
74
76
|
* the full image. It does not stop the preview.
|
|
75
77
|
*/
|
|
76
78
|
posterInset?: string;
|
|
79
|
+
/**
|
|
80
|
+
* A mat that is part of the product (ADR 250), for each size:
|
|
81
|
+
*
|
|
82
|
+
* - `"3"` or `"50x70:5"`: a mat of that width inside the size; the artwork is smaller.
|
|
83
|
+
* - `"21x30:30x40"`: the 21x30 print in a 30x40 mat; the mat goes around the print.
|
|
84
|
+
* - `"30x40:21x30"`: a 30x40 with a 21x30 window; the mat goes inside the size.
|
|
85
|
+
*
|
|
86
|
+
* A size gives each axis its own width. A number without a unit is in the size unit.
|
|
87
|
+
*
|
|
88
|
+
* The widget sends this value without a change. The visualizer ignores what it cannot read.
|
|
89
|
+
*/
|
|
90
|
+
posterMat?: string;
|
|
91
|
+
/** The colour of {@link posterMat}, as `#RRGGBB`. White when absent. */
|
|
92
|
+
posterMatColor?: string;
|
|
93
|
+
/**
|
|
94
|
+
* How the image goes into a size of other proportions (ADR 260). `cover` crops it, as
|
|
95
|
+
* CSS `object-fit: cover` does. `stretch` distorts it. The preview uses `cover` when absent.
|
|
96
|
+
*/
|
|
97
|
+
posterFit?: PosterFit;
|
|
77
98
|
/**
|
|
78
99
|
* The address of the product page for this poster.
|
|
79
100
|
*
|
|
@@ -121,10 +142,11 @@ export interface PosterParams {
|
|
|
121
142
|
*
|
|
122
143
|
* The widget reads it from the `data-poster-offers` attribute of the mount, as a JSON array.
|
|
123
144
|
* 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.
|
|
125
|
-
*
|
|
126
|
-
* the
|
|
127
|
-
* matches no offer, or two,
|
|
145
|
+
* catalogue or `null` for a print with no frame. A `null` offer also serves a custom frame of the
|
|
146
|
+
* shopper (ADR 263). The `purchaseUrl` adds exactly that offer to the cart when a browser opens
|
|
147
|
+
* it; the `productUrl` shows it. The widget matches the size and the frame that the shopper
|
|
148
|
+
* selected against this list, and it never guesses: a selection that matches no offer, or two,
|
|
149
|
+
* opens the product page instead.
|
|
128
150
|
*
|
|
129
151
|
* The list never reaches the visualizer. A list of more than 250 offers is ignored whole.
|
|
130
152
|
*/
|
|
@@ -159,7 +181,7 @@ export interface PosterOffer {
|
|
|
159
181
|
* language that is not in this list gets the English label, and the English
|
|
160
182
|
* replacement if you give one.
|
|
161
183
|
*/
|
|
162
|
-
export declare const BUTTON_TEXT_LANGS: readonly ["en", "pl", "de", "es", "fr", "it", "pt", "nl", "sv", "nb", "da"];
|
|
184
|
+
export declare const BUTTON_TEXT_LANGS: readonly ["en", "pl", "de", "es", "fr", "it", "pt", "nl", "sv", "nb", "da", "fi"];
|
|
163
185
|
/** One language of {@link BUTTON_TEXT_LANGS}. */
|
|
164
186
|
export type ButtonTextLang = (typeof BUTTON_TEXT_LANGS)[number];
|
|
165
187
|
//# sourceMappingURL=types.d.ts.map
|
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;I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ACH,MAAM,CAAC,EAAE,WAAW,EAAE,CAAA;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,sFAAsF;IACtF,GAAG,EAAE,MAAM,CAAA;IACX,qDAAqD;IACrD,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,sDAAsD;IACtD,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,mGAAmG;IACnG,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,8FAA8F;IAC9F,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,kGAAkG;IAClG,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,mFAAoF,CAAA;AAElH,iDAAiD;AACjD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
package/dist/types.js
CHANGED
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
* language that is not in this list gets the English label, and the English
|
|
27
27
|
* replacement if you give one.
|
|
28
28
|
*/
|
|
29
|
-
export const BUTTON_TEXT_LANGS = ['en', 'pl', 'de', 'es', 'fr', 'it', 'pt', 'nl', 'sv', 'nb', 'da'];
|
|
29
|
+
export const BUTTON_TEXT_LANGS = ['en', 'pl', 'de', 'es', 'fr', 'it', 'pt', 'nl', 'sv', 'nb', 'da', 'fi'];
|
|
30
30
|
//# sourceMappingURL=types.js.map
|
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;AAiKH;;;;;;;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,EAAE,IAAI,CAAU,CAAA"}
|
package/package.json
CHANGED