@akinon/theme-contract 2.0.58-rc.0 → 2.0.58

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/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # @akinon/theme-contract
2
2
 
3
- ## 2.0.58-rc.0
3
+ ## 2.0.58
4
+
5
+ ### Patch Changes
6
+
7
+ - 08f060d: ZERO-4790: Add composable modals — a global modal host, a block action vocabulary for triggering them, and auto-open with frequency capping
4
8
 
5
9
  ## 2.0.57
6
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/theme-contract",
3
- "version": "2.0.58-rc.0",
3
+ "version": "2.0.58",
4
4
  "description": "Shared wire contract between the theme editor (pz-dynamic-widget) and the storefront renderer (@akinon/pz-theme): theme types, postMessage envelope, runtime validation and origin helpers.",
5
5
  "license": "MIT",
6
6
  "main": "src/index.ts",
package/src/messages.ts CHANGED
@@ -36,6 +36,11 @@ export const EDITOR_TO_PREVIEW_MESSAGE_TYPES = [
36
36
  'PREVIEW_PART_STATE',
37
37
  'SET_BASKET_VIEW_MODE',
38
38
  'OPEN_MINI_BASKET',
39
+ // Holds a composed modal open in the canvas so the designer can fill and
40
+ // style it. Inert while held — no focus steal, no scroll lock, no Escape —
41
+ // because the canvas is a workspace, not a shopper viewport.
42
+ 'PREVIEW_OPEN_MODAL',
43
+ 'PREVIEW_CLOSE_MODAL',
39
44
  'SCROLL_TO_SECTION',
40
45
  'SCROLL_TO_BLOCK',
41
46
  'LOCALE_UPDATE',