@declarion/react 0.1.46 → 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.
- package/dist-lib/components/detail-layout/AssociatedBlock.d.ts +5 -1
- package/dist-lib/components/fields/TextField.d.ts +1 -1
- package/dist-lib/components/fields/index.d.ts +1 -0
- package/dist-lib/components/primitives/Fields.d.ts +2 -1
- package/dist-lib/index.js +1515 -1381
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/lib/ui-actions.d.ts +1 -1
- package/dist-lib/types/schema.d.ts +4 -3
- package/package.json +1 -1
|
@@ -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):
|
|
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. "{
|
|
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:
|
|
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. "{
|
|
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>;
|