@plenary/core 0.2.1 → 0.2.3

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.cts CHANGED
@@ -76,7 +76,7 @@ declare function hasWildcardPattern(patterns: readonly string[]): boolean;
76
76
  * builder-only (not a content field type): a picker of the site's forms, whose
77
77
  * value is `{ form_key }` and which the renderer resolves to a definition.
78
78
  */
79
- type PropFieldType = "text" | "rich_text" | "number" | "boolean" | "date" | "time" | "datetime" | "json" | "image" | "file" | "reference" | "form" | "email" | "url" | "select" | "multi_select" | "list" | "tags";
79
+ type PropFieldType = "text" | "rich_text" | "number" | "boolean" | "date" | "time" | "datetime" | "json" | "image" | "file" | "reference" | "email" | "url" | "select" | "multi_select" | "list" | "tags";
80
80
  /** An editable prop, a friendlier shorthand over the server's field definition. */
81
81
  interface PropDefinition {
82
82
  key: string;
@@ -148,7 +148,11 @@ interface ComponentRegistration {
148
148
  key: string;
149
149
  /** Human label for the palette ("Hero Carousel"). */
150
150
  label: string;
151
- /** URL or data URI for the palette. */
151
+ /**
152
+ * Palette glyph: an image URL, a data URI (e.g. base64 PNG), or inline SVG
153
+ * markup (`<svg …>…</svg>`). Rendered small and monochrome on a tinted tile,
154
+ * so a single-color icon reads best.
155
+ */
152
156
  icon?: string;
153
157
  /** Editable props. */
154
158
  props?: PropDefinition[];
package/dist/index.d.ts CHANGED
@@ -76,7 +76,7 @@ declare function hasWildcardPattern(patterns: readonly string[]): boolean;
76
76
  * builder-only (not a content field type): a picker of the site's forms, whose
77
77
  * value is `{ form_key }` and which the renderer resolves to a definition.
78
78
  */
79
- type PropFieldType = "text" | "rich_text" | "number" | "boolean" | "date" | "time" | "datetime" | "json" | "image" | "file" | "reference" | "form" | "email" | "url" | "select" | "multi_select" | "list" | "tags";
79
+ type PropFieldType = "text" | "rich_text" | "number" | "boolean" | "date" | "time" | "datetime" | "json" | "image" | "file" | "reference" | "email" | "url" | "select" | "multi_select" | "list" | "tags";
80
80
  /** An editable prop, a friendlier shorthand over the server's field definition. */
81
81
  interface PropDefinition {
82
82
  key: string;
@@ -148,7 +148,11 @@ interface ComponentRegistration {
148
148
  key: string;
149
149
  /** Human label for the palette ("Hero Carousel"). */
150
150
  label: string;
151
- /** URL or data URI for the palette. */
151
+ /**
152
+ * Palette glyph: an image URL, a data URI (e.g. base64 PNG), or inline SVG
153
+ * markup (`<svg …>…</svg>`). Rendered small and monochrome on a tinted tile,
154
+ * so a single-color icon reads best.
155
+ */
152
156
  icon?: string;
153
157
  /** Editable props. */
154
158
  props?: PropDefinition[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plenary/core",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Plenary SDK core types: DOM nodes, component registration, prop definitions, and the preview protocol. Types only, zero deps.",
5
5
  "type": "module",
6
6
  "sideEffects": false,