@akinon/theme-contract 2.0.36-beta.0 → 2.0.36
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 +5 -1
- package/package.json +1 -1
- package/src/messages.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# @akinon/theme-contract
|
|
2
2
|
|
|
3
|
-
## 2.0.36
|
|
3
|
+
## 2.0.36
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 72be24d3: ZERO-4706: Add the theme render foundations — a tablet breakpoint, named parts with state styling, per-row bindings and conditions, one overlay contract, and a scoped custom-CSS hatch
|
|
4
8
|
|
|
5
9
|
## 2.0.35
|
|
6
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/theme-contract",
|
|
3
|
-
"version": "2.0.36
|
|
3
|
+
"version": "2.0.36",
|
|
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
|
@@ -31,6 +31,9 @@ export const EDITOR_TO_PREVIEW_MESSAGE_TYPES = [
|
|
|
31
31
|
'CHANGE_BREAKPOINT',
|
|
32
32
|
'SET_THEME_EDITOR_COOKIE',
|
|
33
33
|
'SET_PREVIEW_INTERACTION_MODE',
|
|
34
|
+
// Pins a named part into one of its states (hover, focus, selected…) so the
|
|
35
|
+
// designer can style a state the preview would otherwise never hold still in.
|
|
36
|
+
'PREVIEW_PART_STATE',
|
|
34
37
|
'SET_BASKET_VIEW_MODE',
|
|
35
38
|
'OPEN_MINI_BASKET',
|
|
36
39
|
'SCROLL_TO_SECTION',
|
|
@@ -72,6 +75,10 @@ export const PREVIEW_TO_EDITOR_MESSAGE_TYPES = [
|
|
|
72
75
|
'PRODUCT_PICKER_RESPONSE',
|
|
73
76
|
'PAGE_CONTEXT_DISCOVERY',
|
|
74
77
|
'PREVIEW_AUTH_STATE',
|
|
78
|
+
// Raised by the "Edit in theme editor" affordance drawn over chrome that
|
|
79
|
+
// still comes from project code: the designer asks the editor to take the
|
|
80
|
+
// area over. Nothing is composed or saved until they do.
|
|
81
|
+
'REQUEST_CHROME_OVERRIDE',
|
|
75
82
|
'ROUTE_CHANGE_START',
|
|
76
83
|
'ROUTE_CHANGE_COMPLETE',
|
|
77
84
|
// Bidirectional: the preview reports click-selection and its available
|