@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.
- package/dist-lib/components/detail-layout/AssociatedBlock.d.ts +9 -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/components/primitives/Icons.d.ts +30 -0
- package/dist-lib/components/shared/RowActionsKebab.d.ts +19 -0
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/index.js +2437 -1936
- 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 +3 -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,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. "{
|
|
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:
|
|
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. "{
|
|
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>;
|