seeonwall 0.5.0 → 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
@@ -53,12 +53,79 @@ Everything in `PosterParams`, plus:
53
53
  | prop | | |
54
54
  |---|---|---|
55
55
  | `posterSizes` | `string[]` or `string` | An array is joined with commas for you. |
56
+ | `sizesFrom` | `auto` or a selector | Reads the sizes from a size control on the page instead. |
56
57
  | `className`, `style` | | Applied to the mount element. |
58
+ | `variant` | `solid` \| `outline` \| `glyph` \| `icon` | The shape of the button. Default `solid`. |
59
+ | `fullWidth` | boolean | Stretches the button to the width of its container. |
57
60
  | `backgroundColor`, `textColor`, `borderRadius`, `borderColor` | | Button appearance. |
58
61
  | `buttonClassName` | | Your theme's classes, added after the widget's own. |
59
62
  | `matchButton` | selector | Copies shape and typography from one of your own buttons. |
60
63
  | `matchColors` | boolean | Also copies its colours. |
61
64
 
65
+ ### Button shapes
66
+
67
+ `variant` says which parts of the button are painted; the colour props say what colour
68
+ they are. The two are independent, so any shape can carry your colours or your theme's.
69
+
70
+ | | |
71
+ |---|---|
72
+ | `solid` | A filled button with a label. The default. |
73
+ | `outline` | The same box with no fill. |
74
+ | `glyph` | The mark and the label, with no box. Reads as a secondary action. |
75
+ | `icon` | The mark alone, 40px square. It fits beside Add to cart rather than under it. |
76
+
77
+ ```tsx
78
+ <SeeOnWallButton posterUrl={product.image} variant="glyph" />
79
+ ```
80
+
81
+ Every shape carries the SeeOnWall mark. A shape decides what is drawn around the mark, not
82
+ whether it is there — `icon` is simply the shape with nothing else left. On the free plan the
83
+ mark is the full logo; every paid plan gets the monochrome glyph.
84
+
85
+ The three shapes with no fill take their colour from the text around them, so they suit a
86
+ light or a dark theme with nothing to set. That also decides which colour props have
87
+ somewhere to land: `backgroundColor` reaches `solid` alone, and `borderColor` and
88
+ `borderRadius` do not reach `glyph`. `textColor` reaches every shape — it paints the label,
89
+ the mark, and the `outline` border when `borderColor` is absent. Passing a colour a shape
90
+ cannot use is harmless; it applies again as soon as you change back to a shape that can.
91
+
92
+ `glyph` and `icon` ignore `matchButton`: they draw no box to match, and they take the host
93
+ page's own font. `outline` still matches shape and typography, but not colours — a colour
94
+ picked against a filled Add to cart disappears on your page background.
95
+
96
+ `fullWidth` stretches `solid`, `outline` and `glyph` to the width of the element that holds
97
+ them. `icon` stays 40px square whatever you pass — a wide button with one mark in it is a
98
+ target a shopper cannot read.
99
+
100
+ Under `icon` the label is still resolved and translated as usual. It becomes the button's
101
+ accessible name and its tooltip, so a screen reader still announces it.
102
+
103
+ ### Sizes from a control on the page
104
+
105
+ Some shops keep the print size in the size control the shopper uses — a dropdown or a set of
106
+ radio buttons an add-on plugin renders — and not in the product record. `sizesFrom` reads the
107
+ sizes from that control:
108
+
109
+ ```tsx
110
+ <SeeOnWallButton posterUrl={product.image} sizesFrom="auto" />
111
+ <SeeOnWallButton posterUrl={product.image} sizesFrom="#size-field select" />
112
+ ```
113
+
114
+ `auto` searches the form around the mount, then the product around it, and no wider, so a
115
+ listing page cannot answer for one product with the control of the product beside it. It takes
116
+ a `select`, or a group of radio buttons or checkboxes, whose option labels read as sizes:
117
+ `60x40cm`, `Medium (50x70cm)`, `Small - 30x40cm` and `30x40cm +€10.00` all yield their size. A
118
+ selector names one control and skips the search.
119
+
120
+ The control wins against `posterSizes`, `posterWidth` and `posterHeight`, because it holds the
121
+ size the shopper picked and those props were written before they picked one. A control showing
122
+ no selection gives the list alone, and the preview opens on the smallest size in it. The widget
123
+ re-reads the control on every click, so you register no listener and re-render nothing.
124
+
125
+ Most storefronts built with this package know their sizes and should pass them in
126
+ `posterSizes`. Reach for `sizesFrom` when the size control belongs to a plugin or to a part of
127
+ the page you do not control.
128
+
62
129
  ## Vanilla JavaScript
63
130
 
64
131
  ```js
@@ -82,6 +149,10 @@ Then mark any element on the page as a button mount, and the widget puts a
82
149
  Mounts added later are picked up automatically, so client-side navigation works
83
150
  without another call to `load()`.
84
151
 
152
+ The shapes above are `data-button-variant="outline" | "glyph" | "icon"` on the mount, and
153
+ `data-button-width="full"` stretches the button to its container. `data-sizes-from="auto"`, or a
154
+ selector in the same attribute, reads the sizes from a size control on the page.
155
+
85
156
  The full list of `data-*` attributes — sizes, frames, passe-partout, per-button
86
157
  language — is in the [integration docs](https://seeonwall.com/docs).
87
158
 
package/dist/react.d.ts CHANGED
@@ -25,8 +25,51 @@ export declare function useSeeOnWall(options: LoadOptions): void;
25
25
  * after the widget loads, thus your markup is the same on both sides.
26
26
  */
27
27
  export declare function useSessionReady(): boolean;
28
+ /**
29
+ * The shape of the button.
30
+ *
31
+ * A shape says which parts of the button are painted. The colour settings say
32
+ * what colour they are. The two questions are independent: each shape can carry
33
+ * your own colours, or the colours of your theme.
34
+ *
35
+ * - `solid` a filled button with a label. The default.
36
+ * - `outline` the same box with no fill.
37
+ * - `glyph` the mark and the label, with no box.
38
+ * - `icon` the mark alone.
39
+ *
40
+ * Each shape carries the mark. A shape says what is drawn around the mark. It does not say
41
+ * if the mark is there. `icon` is only the extreme of that: the shape with nothing else in
42
+ * it.
43
+ */
44
+ export type ButtonVariant = 'solid' | 'outline' | 'glyph' | 'icon';
28
45
  /** The appearance settings that a merchant can set for one button. */
29
46
  export interface SeeOnWallButtonStyleProps {
47
+ /**
48
+ * The shape of the button. The default is `"solid"`, which is the button that
49
+ * this package gave before the shapes came. Refer to {@link ButtonVariant}.
50
+ *
51
+ * The three shapes with no fill take the colour of the text around them. Thus
52
+ * they agree with a light theme and with a dark theme, and you set nothing.
53
+ *
54
+ * A colour that a shape does not paint does nothing. `backgroundColor`
55
+ * reaches `"solid"` only, and `borderColor` and `borderRadius` do not reach
56
+ * `"glyph"`. `textColor` reaches every shape: it paints the label, the mark,
57
+ * and the border of `"outline"` if you give no border colour.
58
+ *
59
+ * With `"icon"` the label stays. It becomes the accessible name of the button
60
+ * and the tooltip, thus the button keeps a name that a screen reader reads.
61
+ */
62
+ variant?: ButtonVariant;
63
+ /**
64
+ * Stretches the button to the full width of the element that holds it. The
65
+ * default is the natural width of the button.
66
+ *
67
+ * The shape decides how far this setting goes. `"solid"`, `"outline"` and
68
+ * `"glyph"` become as wide as the element, and `"glyph"` puts its mark and
69
+ * its label in the middle. `"icon"` stays 40px square: a wide button with one
70
+ * mark in it is a target that the shopper cannot read.
71
+ */
72
+ fullWidth?: boolean;
30
73
  /** The background colour of the button, for example `"#b5502a"`. */
31
74
  backgroundColor?: string;
32
75
  /** The text colour of the button. */
@@ -43,9 +86,18 @@ export interface SeeOnWallButtonStyleProps {
43
86
  /**
44
87
  * A CSS selector for a button of your theme to copy. The widget copies the
45
88
  * shape and the typography of that button. It does not copy the colours.
89
+ *
90
+ * The shapes with no box, `"glyph"` and `"icon"`, do not copy a button. There
91
+ * is no box to copy, and they take the font of the page.
46
92
  */
47
93
  matchButton?: string;
48
- /** Copies the colours of the button named in `matchButton` as well. */
94
+ /**
95
+ * Copies the colours of the button named in `matchButton` as well.
96
+ *
97
+ * The shapes with no fill do not copy the colours. A colour that was selected
98
+ * against a fill, for example white on a black button, disappears on the
99
+ * background of the page.
100
+ */
49
101
  matchColors?: boolean;
50
102
  }
51
103
  export interface SeeOnWallButtonProps extends Omit<PosterParams, 'posterSizes'>, SeeOnWallButtonStyleProps {
@@ -56,6 +108,26 @@ export interface SeeOnWallButtonProps extends Omit<PosterParams, 'posterSizes'>,
56
108
  * The widget shows a size selector when there is more than one size.
57
109
  */
58
110
  posterSizes?: string[] | string;
111
+ /**
112
+ * Reads the sizes from a size control on the page, and not from the props (ADR 185).
113
+ *
114
+ * Give `"auto"` to let the widget find the control, or give a CSS selector to name one.
115
+ * `"auto"` looks in the form around the mount, then in the product around the mount, and
116
+ * no wider. It accepts a `select`, or a group of radio buttons or checkboxes, whose option
117
+ * labels are sizes: `60x40cm`, `Medium (50x70cm)` and `Small - 30x40cm` all give a size.
118
+ *
119
+ * The control wins against {@link posterSizes}, {@link posterWidth} and
120
+ * {@link posterHeight}, because the control holds the size that the shopper selected and
121
+ * the props were written before the shopper selected one. A control that shows no
122
+ * selection gives the list only, and the preview opens with the smallest size in it.
123
+ *
124
+ * The widget reads the control again at each click, thus you do not add a listener.
125
+ *
126
+ * Most storefronts do not need this prop. You know your sizes, thus give them in
127
+ * {@link posterSizes}. Use this prop when a different part of the page, for example a
128
+ * plugin, draws the size control.
129
+ */
130
+ sizesFrom?: string;
59
131
  /** Classes for the element that holds the button. */
60
132
  className?: string;
61
133
  /** Styles for the element that holds the button. */
@@ -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;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE3D,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,CAAA;AAYzC;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAwBvD;AAqBD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAED,sEAAsE;AACtE,MAAM,WAAW,yBAAyB;IACxC,oEAAoE;IACpE,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,4DAA4D;IAC5D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uEAAuE;IACvE,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,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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,CA2EzE"}
package/dist/react.js CHANGED
@@ -99,7 +99,7 @@ function attr(target, name, value) {
99
99
  * arrives.
100
100
  */
101
101
  export function SeeOnWallButton(props) {
102
- const { posterUrl, posterTitle, sizeUnit, posterWidth, posterHeight, posterSizes, posterInset, productPageUrl, lang, frameDefaultCm, frameDefaultColor, framePreset, backgroundColor, textColor, borderRadius, borderColor, buttonClassName, matchButton, matchColors, className, style, } = props;
102
+ const { posterUrl, posterTitle, sizeUnit, posterWidth, posterHeight, posterSizes, sizesFrom, posterInset, productPageUrl, lang, frameDefaultCm, frameDefaultColor, framePreset, variant, fullWidth, backgroundColor, textColor, borderRadius, borderColor, buttonClassName, matchButton, matchColors, className, style, } = props;
103
103
  const attributes = {};
104
104
  attr(attributes, 'data-poster-url', posterUrl);
105
105
  attr(attributes, 'data-poster-title', posterTitle);
@@ -107,12 +107,23 @@ export function SeeOnWallButton(props) {
107
107
  attr(attributes, 'data-poster-width', posterWidth);
108
108
  attr(attributes, 'data-poster-height', posterHeight);
109
109
  attr(attributes, 'data-poster-sizes', Array.isArray(posterSizes) ? posterSizes.join(',') : posterSizes);
110
+ attr(attributes, 'data-sizes-from', sizesFrom);
110
111
  attr(attributes, 'data-poster-inset', posterInset);
111
112
  attr(attributes, 'data-product-page-url', productPageUrl);
112
113
  attr(attributes, 'data-lang', lang);
113
114
  attr(attributes, 'data-frame-default-cm', frameDefaultCm);
114
115
  attr(attributes, 'data-frame-default-color', frameDefaultColor);
115
116
  attr(attributes, 'data-frame-preset', framePreset);
117
+ // A mount with no attribute is a solid button to the widget. Thus the default
118
+ // shape writes nothing, and the markup stays as it was before the shapes came.
119
+ if (variant !== undefined && variant !== 'solid') {
120
+ attributes['data-button-variant'] = variant;
121
+ }
122
+ // The widget reads the value "full" and no other value. Thus the attribute is
123
+ // absent for a button of the natural width, as it is for the default shape.
124
+ if (fullWidth === true) {
125
+ attributes['data-button-width'] = 'full';
126
+ }
116
127
  attr(attributes, 'data-bg-color', backgroundColor);
117
128
  attr(attributes, 'data-text-color', textColor);
118
129
  attr(attributes, 'data-border-radius', borderRadius);
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,MAAM,YAAY,CAAA;AAK1E;;;;;;;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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CAAA;IACtD,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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seeonwall",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Show shoppers a poster on their own wall, at true scale. The seeonwall.com widget for React and headless storefronts.",
5
5
  "keywords": [
6
6
  "seeonwall",