@declarion/react 0.1.80 → 0.1.81
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/{DraggableChildrenTable-CcXR8Vm6.js → DraggableChildrenTable-XKJWMb1S.js} +2 -2
- package/dist-lib/{DraggableChildrenTable-CcXR8Vm6.js.map → DraggableChildrenTable-XKJWMb1S.js.map} +1 -1
- package/dist-lib/{Grid-CseTLMLv.js → Grid-By_Ere-W.js} +2 -2
- package/dist-lib/{Grid-CseTLMLv.js.map → Grid-By_Ere-W.js.map} +1 -1
- package/dist-lib/{JsonEditor-Tew1oNqZ.js → JsonEditor-CexL5HXN.js} +17 -15
- package/dist-lib/JsonEditor-CexL5HXN.js.map +1 -0
- package/dist-lib/api/events.d.ts +5 -0
- package/dist-lib/components/fields/BoolField.d.ts +1 -1
- package/dist-lib/components/fields/EmailField.d.ts +1 -1
- package/dist-lib/components/fields/EnumField.d.ts +1 -1
- package/dist-lib/components/fields/IntArrayField.d.ts +1 -1
- package/dist-lib/components/fields/JsonEditor.d.ts +2 -1
- package/dist-lib/components/fields/JsonField.d.ts +1 -1
- package/dist-lib/components/fields/MultilangField.d.ts +1 -1
- package/dist-lib/components/fields/MultilangTextField.d.ts +1 -1
- package/dist-lib/components/fields/NumberField.d.ts +1 -1
- package/dist-lib/components/fields/PasswordField.d.ts +1 -1
- package/dist-lib/components/fields/PhoneField.d.ts +1 -1
- package/dist-lib/components/fields/RefField.d.ts +1 -1
- package/dist-lib/components/fields/SecretField.d.ts +1 -1
- package/dist-lib/components/fields/StringArrayField.d.ts +1 -1
- package/dist-lib/components/fields/StringField.d.ts +1 -1
- package/dist-lib/components/fields/TextField.d.ts +1 -1
- package/dist-lib/components/fields/TimestampField.d.ts +1 -1
- package/dist-lib/components/fields/UrlField.d.ts +1 -1
- package/dist-lib/components/fields/index.d.ts +2 -0
- package/dist-lib/components/file-widgets/host.d.ts +2 -0
- package/dist-lib/components/file-widgets/types.d.ts +1 -0
- package/dist-lib/components/pages/list/DataCell.d.ts +7 -0
- package/dist-lib/components/pages/list/ListBulkBar.d.ts +27 -0
- package/dist-lib/components/pages/list/ListHeader.d.ts +23 -0
- package/dist-lib/components/pages/list/RowActionsCell.d.ts +38 -0
- package/dist-lib/components/pages/list/SaveViewDialog.d.ts +6 -0
- package/dist-lib/components/pages/list/columns.d.ts +42 -0
- package/dist-lib/components/pages/list/filter-meta.d.ts +9 -0
- package/dist-lib/components/primitives/BoolToggle.d.ts +3 -1
- package/dist-lib/components/primitives/Fields.d.ts +12 -3
- package/dist-lib/index.js +4189 -4066
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/lib/action-dispatch.d.ts +7 -0
- package/dist-lib/stores/realtime.d.ts +9 -0
- package/dist-lib/types/schema.d.ts +11 -1
- package/dist-lib/{useUserLocale-D9wc5kzQ.js → useUserLocale-CSS6fwi8.js} +1110 -1003
- package/dist-lib/useUserLocale-CSS6fwi8.js.map +1 -0
- package/dist-lib/{value-FIp50R1-.js → value-DgzPSFZM.js} +149 -196
- package/dist-lib/value-DgzPSFZM.js.map +1 -0
- package/package.json +1 -1
- package/dist-lib/JsonEditor-Tew1oNqZ.js.map +0 -1
- package/dist-lib/components/shared/RowActionItem.d.ts +0 -11
- package/dist-lib/useUserLocale-D9wc5kzQ.js.map +0 -1
- package/dist-lib/value-FIp50R1-.js.map +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type UIActionContext } from "../lib/ui-actions";
|
|
2
|
+
import type { UIStep } from "../types/schema";
|
|
3
|
+
export declare function dispatchAction(code: string, action: {
|
|
4
|
+
ui_steps?: UIStep[];
|
|
5
|
+
handler?: string;
|
|
6
|
+
entity?: string;
|
|
7
|
+
}, uiContext: UIActionContext, entityFallback?: string): string | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface RealtimeState {
|
|
2
|
+
/** Entity codes the relay auto-degraded this session. */
|
|
3
|
+
degradedEntities: ReadonlySet<string>;
|
|
4
|
+
/** Mark one entity as auto-degraded. Idempotent. */
|
|
5
|
+
markDegraded: (entityCode: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const useRealtimeStore: import("zustand").UseBoundStore<import("zustand").StoreApi<RealtimeState>>;
|
|
8
|
+
export declare function isEntityLive(realtimeFlag: boolean | undefined, degradedEntities: ReadonlySet<string>, entityCode: string): boolean;
|
|
9
|
+
export {};
|
|
@@ -28,7 +28,7 @@ export declare function getDisplayValue(row: Record<string, unknown> | null | un
|
|
|
28
28
|
};
|
|
29
29
|
} | null | undefined): string | undefined;
|
|
30
30
|
export declare function resolveRefRecordLabel(record: Record<string, unknown>, displayField: string | undefined, fallback: string): string;
|
|
31
|
-
export declare function screenTitleForPath(pathname: string, screens: Record<string, Screen> | undefined): {
|
|
31
|
+
export declare function screenTitleForPath(pathname: string, screens: Record<string, Screen> | undefined, entities?: Record<string, Entity>): {
|
|
32
32
|
title: string;
|
|
33
33
|
icon?: string;
|
|
34
34
|
} | undefined;
|
|
@@ -274,6 +274,16 @@ export interface Entity {
|
|
|
274
274
|
* Server delivers RBAC-pruned nodes in tagged-union wire format (plan §8).
|
|
275
275
|
*/
|
|
276
276
|
action_layout?: ActionLayoutNode[];
|
|
277
|
+
/**
|
|
278
|
+
* Per-entity realtime opt-in. When true the entity is in the CDC
|
|
279
|
+
* publication, its list views auto-update from the SSE stream, and the
|
|
280
|
+
* toolbar shows a green "Live" indicator. Absent or false (default OFF)
|
|
281
|
+
* means the entity is not live: no indicator, and the always-present
|
|
282
|
+
* manual refresh control is the only freshness mechanism. Server emits
|
|
283
|
+
* this with `omitempty`, so `false` arrives as absent. See
|
|
284
|
+
* docs/plans/completed/2026-05-18-realtime-cdc-redesign.md.
|
|
285
|
+
*/
|
|
286
|
+
realtime?: boolean;
|
|
277
287
|
}
|
|
278
288
|
export interface ExportConfig {
|
|
279
289
|
enabled?: boolean;
|