@colixsystems/widget-sdk 0.26.0 → 0.27.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/README.md CHANGED
@@ -46,7 +46,11 @@ See the design reference for the full architecture: [`docs/architecture/widget-m
46
46
 
47
47
  ## Status
48
48
 
49
- `v0.26.0` — pre-publish. The package surface (types, function names, export paths) is the v1 contract; runtime behaviour for some hooks is stubbed (each hook documents what's wired and what isn't). It is **not yet published to npm**.
49
+ `v0.27.0` — pre-publish. The package surface (types, function names, export paths) is the v1 contract; runtime behaviour for some hooks is stubbed (each hook documents what's wired and what isn't). It is **not yet published to npm**.
50
+
51
+ ### What's new in 0.27.0
52
+
53
+ **New `richText` propertySchema type (REQ-WDG-RICHTEXT).** A rich-text (HTML) string edited via a Tiptap editor in the Studio Properties Panel; the widget renders the sanitised HTML. Stored as a plain string (no tenant-copy remap). Additive — no existing export or type changed.
50
54
 
51
55
  ### What's new in 0.26.0
52
56
 
package/dist/index.d.ts CHANGED
@@ -39,6 +39,8 @@ export type WidgetPropertyType =
39
39
  // REQ-WDG-PAGEREF: page picker that emits a bare AppPage UUID; a widget
40
40
  // reads it and navigates via useNavigation().goTo(pageId, params).
41
41
  | "pageRef"
42
+ // REQ-WDG-RICHTEXT: rich-text (HTML string) edited via a Tiptap editor.
43
+ | "richText"
42
44
  | "expression"
43
45
  | "eventBinding"
44
46
  | "object"
@@ -26,6 +26,10 @@ const VALID_TYPES = new Set([
26
26
  // `useNavigation().goTo(pageId, params)`. Bare uuid string — tenant-copy
27
27
  // remaps it through the layout walk's pageId map (see tenant-copy.service.js).
28
28
  "pageRef",
29
+ // REQ-WDG-RICHTEXT: `richText` is a rich-text (HTML) string. Renders a
30
+ // Tiptap editor in the Studio Properties Panel; the widget renders the
31
+ // sanitised HTML. Stored as a string, so no tenant-copy remap is needed.
32
+ "richText",
29
33
  "expression", "eventBinding",
30
34
  "object", "array",
31
35
  ]);
@@ -109,6 +113,7 @@ function coerceLeaf(def, value, path, errors) {
109
113
  case "recordBinding":
110
114
  case "groupRef":
111
115
  case "pageRef":
116
+ case "richText":
112
117
  case "expression":
113
118
  case "eventBinding":
114
119
  if (typeof value !== "string") errors.push(`${path}: expected string`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colixsystems/widget-sdk",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "Common widget interface for AppStudio. Implements WidgetManifest, WidgetContext, property schema, and helper hooks.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",