@declarion/react 0.1.47 → 0.1.48

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.
@@ -3,7 +3,7 @@ export interface UIActionContext {
3
3
  row?: Record<string, unknown>;
4
4
  params?: Record<string, unknown>;
5
5
  }
6
- export declare function interpolate(template: string, ctx: UIActionContext): string;
6
+ export declare function interpolate(template: string, ctx: UIActionContext): unknown;
7
7
  export declare function executeUISteps(steps: UIStep[], ctx: UIActionContext): Promise<void>;
8
8
  export declare function isUIAction(action: {
9
9
  ui_steps?: UIStep[];
@@ -391,7 +391,8 @@ export interface HandlerParam {
391
391
  display?: HandlerParamDisplay;
392
392
  /**
393
393
  * Narrows the param's option set. Values may be literals or templates
394
- * using the ui_steps interpolation vocabulary (e.g. "{{params.other}}").
394
+ * using the ui_steps interpolation vocabulary (e.g. "${params.other}"). The
395
+ * legacy "{{params.other}}" form is still accepted but deprecated.
395
396
  * Semantics are type-specific: for type="status", a "status_group" key
396
397
  * selects the group whose statuses are offered.
397
398
  */
@@ -405,7 +406,7 @@ export interface ActionCondition {
405
406
  }
406
407
  export interface UISetFieldStep {
407
408
  target: string;
408
- value: string;
409
+ value: unknown;
409
410
  }
410
411
  export interface UIShowToastStep {
411
412
  kind?: "success" | "error" | "info";
@@ -443,7 +444,7 @@ export interface Action {
443
444
  /**
444
445
  * Default values of params marked hidden+default by the action. The UI
445
446
  * seeds formData with these so filter templates resolve references to
446
- * prefilled siblings (e.g. "{{params.status_group}}") and so the
447
+ * prefilled siblings (e.g. "${params.status_group}") and so the
447
448
  * submission payload includes them. Not rendered in the modal.
448
449
  */
449
450
  resolved_hidden_defaults?: Record<string, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@declarion/react",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "React SDK for Declarion, the schema-driven business apps platform.",