mechanica-shared 2.0.0-alpha.13 → 2.0.0-alpha.14

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.
@@ -267,6 +267,14 @@ export interface DataEntry {
267
267
  title?: string;
268
268
  /** compact-json-schema describing the data shape. */
269
269
  props?: Record<string, unknown>;
270
+ /**
271
+ * Restrict the entry to pages under this folder (a folder path relative to
272
+ * `pages/`, e.g. `'examples'`; nested folders match by prefix). Omitted =
273
+ * offered on every page. This only filters what the editor's Data dialog
274
+ * *draws* — the value's scope (site / folder / page) and where it is stored
275
+ * are unaffected, so a page-scoped value still lives in the page file.
276
+ */
277
+ folder?: string;
270
278
  /**
271
279
  * Translate this entry per locale (multi-language sites). Its site/folder
272
280
  * value is stored per locale (with fallback to the default locale) instead of
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mechanica-shared",
3
- "version": "2.0.0-alpha.13",
3
+ "version": "2.0.0-alpha.14",
4
4
  "description": "DOM-free types, schema helpers and page-generation core shared across Mechanica",
5
5
  "license": "MIT",
6
6
  "repository": {