@pramen/cms 0.0.32 → 0.0.34

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/dist/index.d.ts CHANGED
@@ -14,6 +14,9 @@ export interface FieldDefinition {
14
14
  max?: number;
15
15
  /** select only. */
16
16
  options?: string[];
17
+ /** select only — fetch options at edit time from a query handler of this name (returns
18
+ * `{ value, label }[]`), e.g. a live list of campaigns. Takes precedence over `options`. */
19
+ optionsFrom?: string;
17
20
  }
18
21
  /** A named region on a content type; `allowedTypes` (block-type slugs) restricts what
19
22
  * may be placed there — `null`/omitted means any. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pramen/cms",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "description": "Optional block/page builder for pramen — Drupal-Paragraphs-style typed blocks in named regions, reusable blocks, scheduled publishing, built entirely from pramen primitives.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -41,7 +41,7 @@
41
41
  "access": "public"
42
42
  },
43
43
  "dependencies": {
44
- "@pramen/server": "0.0.32",
44
+ "@pramen/server": "0.0.34",
45
45
  "xss": "^1.0.15"
46
46
  },
47
47
  "peerDependencies": {
package/src/index.ts CHANGED
@@ -74,6 +74,9 @@ export interface FieldDefinition {
74
74
  max?: number;
75
75
  /** select only. */
76
76
  options?: string[];
77
+ /** select only — fetch options at edit time from a query handler of this name (returns
78
+ * `{ value, label }[]`), e.g. a live list of campaigns. Takes precedence over `options`. */
79
+ optionsFrom?: string;
77
80
  }
78
81
 
79
82
  /** A named region on a content type; `allowedTypes` (block-type slugs) restricts what