@heyplaybook/hydrogen 0.9.1 → 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 CHANGED
@@ -222,6 +222,8 @@ server-rendered, with no code change per test.
222
222
  | `under-size` | product | under the Size option's label, above its buttons |
223
223
  | `collection-grid-top` | collection | right before the product grid |
224
224
  | `after-home-hero` | home | right after the hero section |
225
+ | `product-top` | product | immediately before the product section, above the gallery (the route's first child) |
226
+ | `site-top` | every page | first child of your layout's `<main>`, right under the header |
225
227
 
226
228
  ```tsx
227
229
  import {PlaybookSlot} from '@heyplaybook/hydrogen';
@@ -262,6 +264,8 @@ createPlaybookContext({
262
264
  'under-size',
263
265
  'collection-grid-top',
264
266
  'after-home-hero',
267
+ 'product-top',
268
+ 'site-top',
265
269
  SECTION_SLOTS, // you render <PlaybookSections>
266
270
  ],
267
271
  });
package/dist/index.d.ts CHANGED
@@ -522,7 +522,7 @@ declare function fillProductTokens(html: string, fields: ProductFields | null |
522
522
  */
523
523
  declare const SSR_SLOT_ATTR = "data-pb-slot";
524
524
  /** The named slots. Extend in step with the platform's list. */
525
- declare const SSR_SLOT_NAMES: readonly ["buy-column-top", "after-add-to-cart", "under-size", "collection-grid-top", "after-home-hero"];
525
+ declare const SSR_SLOT_NAMES: readonly ["buy-column-top", "after-add-to-cart", "under-size", "collection-grid-top", "after-home-hero", "product-top", "site-top"];
526
526
  type PlaybookSlotName = (typeof SSR_SLOT_NAMES)[number];
527
527
  type SectionSlotSide = 'before' | 'after';
528
528
  type SectionSlotKey = `section:${string}:${SectionSlotSide}`;
package/dist/index.js CHANGED
@@ -1079,7 +1079,12 @@ var SSR_SLOT_NAMES = [
1079
1079
  "after-add-to-cart",
1080
1080
  "under-size",
1081
1081
  "collection-grid-top",
1082
- "after-home-hero"
1082
+ "after-home-hero",
1083
+ // 0.10.0
1084
+ "product-top",
1085
+ // product page: immediately before the product section, above the gallery
1086
+ "site-top"
1087
+ // every page: first child of the layout's <main>, right under the header
1083
1088
  ];
1084
1089
  var SECTION_ID_RE = /^[A-Za-z0-9_-]{1,64}$/;
1085
1090
  var SECTION_KEY_RE = /^section:([A-Za-z0-9_-]{1,64}):(before|after)$/;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heyplaybook/hydrogen",
3
- "version": "0.9.1",
3
+ "version": "0.10.0",
4
4
  "description": "Playbook store-edit tests for Shopify Hydrogen storefronts: server-side assignment, consent-gated visitor cookie, in-view exposures and cart attribution.",
5
5
  "license": "MIT",
6
6
  "author": "Pack Digital Inc.",