@declarion/react 0.1.47 → 0.1.50

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,7 @@ 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}").
395
395
  * Semantics are type-specific: for type="status", a "status_group" key
396
396
  * selects the group whose statuses are offered.
397
397
  */
@@ -405,7 +405,7 @@ export interface ActionCondition {
405
405
  }
406
406
  export interface UISetFieldStep {
407
407
  target: string;
408
- value: string;
408
+ value: unknown;
409
409
  }
410
410
  export interface UIShowToastStep {
411
411
  kind?: "success" | "error" | "info";
@@ -443,7 +443,7 @@ export interface Action {
443
443
  /**
444
444
  * Default values of params marked hidden+default by the action. The UI
445
445
  * seeds formData with these so filter templates resolve references to
446
- * prefilled siblings (e.g. "{{params.status_group}}") and so the
446
+ * prefilled siblings (e.g. "${params.status_group}") and so the
447
447
  * submission payload includes them. Not rendered in the modal.
448
448
  */
449
449
  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.50",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "React SDK for Declarion, the schema-driven business apps platform.",