@akinon/theme-contract 2.0.110-rc.0 → 2.0.111-beta.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/CHANGELOG.md +7 -1
- package/package.json +1 -1
- package/src/types.ts +8 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/theme-contract",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.111-beta.0",
|
|
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/types.ts
CHANGED
|
@@ -106,6 +106,14 @@ export interface ThemeSection {
|
|
|
106
106
|
* handing sections to section renderers.
|
|
107
107
|
*/
|
|
108
108
|
dataSource?: ThemeDataSource | null;
|
|
109
|
+
/**
|
|
110
|
+
* Wire-only, written by the editor into LOAD_THEME / UPDATE_THEME and never
|
|
111
|
+
* persisted: `true` when this section's collection binding (`pk` and
|
|
112
|
+
* `productLimit` of its data source) equals the published one, so its
|
|
113
|
+
* widget's live rows are the right ones to preview. Positive-only — absent
|
|
114
|
+
* means "not known to be saved", and the preview keeps the picked snapshot.
|
|
115
|
+
*/
|
|
116
|
+
dataSourceSaved?: boolean;
|
|
109
117
|
isNew?: boolean;
|
|
110
118
|
isModified?: boolean;
|
|
111
119
|
editorConfig?: ThemeSectionEditorConfig;
|