@nok-integration/storefront-react 0.16.0 → 0.16.1

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.
@@ -3,6 +3,23 @@
3
3
  * as CSS custom properties. Mobile-first, 375pt base width, embedded in the DAZN app.
4
4
  * Values are display tokens only; money is always server-authoritative.
5
5
  */
6
+ /*
7
+ * THE HOST PROVIDES THE TYPEFACE. There is deliberately no `@font-face` here.
8
+ *
9
+ * The name below is the one inside DAZN's own font files (`name` ID 1 = "DAZN Oscine"),
10
+ * so a host that already serves the face — as DAZN do on their pages — is matched exactly
11
+ * and the mounted components inherit it. Nothing to configure.
12
+ *
13
+ * Two reasons not to ship it in the package. A `url()` here resolves against the
14
+ * CONSUMER's origin, so any path we picked would 404 in every host but the one we guessed;
15
+ * and inlining the two faces as data URIs adds ~120 kB to a bundle that is 67 kB gzipped,
16
+ * which is most of a tripling to deliver something the host almost certainly already has.
17
+ *
18
+ * A host WITHOUT the face falls through to the system stack and renders correctly but not
19
+ * on-brand. If that is ever the situation, the fix belongs in the host, not here.
20
+ *
21
+ * Our own storefront is such a host and serves them from `app/theme.css`.
22
+ */
6
23
  :root {
7
24
  /* ── Typeface ─────────────────────────────────────────────────────────── */
8
25
  --font-family-base:
package/dist/styles.css CHANGED
@@ -3,6 +3,23 @@
3
3
  * as CSS custom properties. Mobile-first, 375pt base width, embedded in the DAZN app.
4
4
  * Values are display tokens only; money is always server-authoritative.
5
5
  */
6
+ /*
7
+ * THE HOST PROVIDES THE TYPEFACE. There is deliberately no `@font-face` here.
8
+ *
9
+ * The name below is the one inside DAZN's own font files (`name` ID 1 = "DAZN Oscine"),
10
+ * so a host that already serves the face — as DAZN do on their pages — is matched exactly
11
+ * and the mounted components inherit it. Nothing to configure.
12
+ *
13
+ * Two reasons not to ship it in the package. A `url()` here resolves against the
14
+ * CONSUMER's origin, so any path we picked would 404 in every host but the one we guessed;
15
+ * and inlining the two faces as data URIs adds ~120 kB to a bundle that is 67 kB gzipped,
16
+ * which is most of a tripling to deliver something the host almost certainly already has.
17
+ *
18
+ * A host WITHOUT the face falls through to the system stack and renders correctly but not
19
+ * on-brand. If that is ever the situation, the fix belongs in the host, not here.
20
+ *
21
+ * Our own storefront is such a host and serves them from `app/theme.css`.
22
+ */
6
23
  :root {
7
24
  /* ── Typeface ─────────────────────────────────────────────────────────── */
8
25
  --font-family-base:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nok-integration/storefront-react",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "Mountable React storefront components: catalogue, product detail and cart, mounted directly into a host DOM tree. No iframe.",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {