@akinon/theme-contract 2.0.142-rc.0 → 2.0.142
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/README.md +1 -1
- package/package.json +2 -2
- package/src/types.ts +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @akinon/theme-contract
|
|
2
2
|
|
|
3
|
-
Shared wire contract between the theme editor (`pz-
|
|
3
|
+
Shared wire contract between the theme editor (`pz-theme-editor`) and the storefront renderer (`@akinon/pz-theme`). Single source of truth for:
|
|
4
4
|
|
|
5
5
|
- **Theme wire types** — `Theme`, `ThemePlaceholder`, `ThemeSection`, `ThemeBlock`, `ThemeDataSource`, `NativeWidgetConfig`, `PageContextDiscovery`. Structure is typed strictly; `properties`/`styles`/`value` payloads stay open so the two repos can evolve field content without a lockstep release.
|
|
6
6
|
- **postMessage protocol** — the `ThemeMessage` envelope with `protocolVersion`, plus the full directional type unions (`EDITOR_TO_PREVIEW_MESSAGE_TYPES`, `PREVIEW_TO_EDITOR_MESSAGE_TYPES`).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/theme-contract",
|
|
3
|
-
"version": "2.0.142
|
|
4
|
-
"description": "Shared wire contract between the theme editor (pz-
|
|
3
|
+
"version": "2.0.142",
|
|
4
|
+
"description": "Shared wire contract between the theme editor (pz-theme-editor) 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",
|
|
7
7
|
"devDependencies": {
|
package/src/types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Wire-level theme types shared between the theme editor (pz-
|
|
2
|
+
* Wire-level theme types shared between the theme editor (pz-theme-editor)
|
|
3
3
|
* and the preview/storefront renderer (@akinon/pz-theme).
|
|
4
4
|
*
|
|
5
5
|
* These describe what actually travels over postMessage and what the
|