@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.
Files changed (51) hide show
  1. package/dist-lib/{DraggableChildrenTable-CcXR8Vm6.js → DraggableChildrenTable-XKJWMb1S.js} +2 -2
  2. package/dist-lib/{DraggableChildrenTable-CcXR8Vm6.js.map → DraggableChildrenTable-XKJWMb1S.js.map} +1 -1
  3. package/dist-lib/{Grid-CseTLMLv.js → Grid-By_Ere-W.js} +2 -2
  4. package/dist-lib/{Grid-CseTLMLv.js.map → Grid-By_Ere-W.js.map} +1 -1
  5. package/dist-lib/{JsonEditor-Tew1oNqZ.js → JsonEditor-CexL5HXN.js} +17 -15
  6. package/dist-lib/JsonEditor-CexL5HXN.js.map +1 -0
  7. package/dist-lib/api/events.d.ts +5 -0
  8. package/dist-lib/components/fields/BoolField.d.ts +1 -1
  9. package/dist-lib/components/fields/EmailField.d.ts +1 -1
  10. package/dist-lib/components/fields/EnumField.d.ts +1 -1
  11. package/dist-lib/components/fields/IntArrayField.d.ts +1 -1
  12. package/dist-lib/components/fields/JsonEditor.d.ts +2 -1
  13. package/dist-lib/components/fields/JsonField.d.ts +1 -1
  14. package/dist-lib/components/fields/MultilangField.d.ts +1 -1
  15. package/dist-lib/components/fields/MultilangTextField.d.ts +1 -1
  16. package/dist-lib/components/fields/NumberField.d.ts +1 -1
  17. package/dist-lib/components/fields/PasswordField.d.ts +1 -1
  18. package/dist-lib/components/fields/PhoneField.d.ts +1 -1
  19. package/dist-lib/components/fields/RefField.d.ts +1 -1
  20. package/dist-lib/components/fields/SecretField.d.ts +1 -1
  21. package/dist-lib/components/fields/StringArrayField.d.ts +1 -1
  22. package/dist-lib/components/fields/StringField.d.ts +1 -1
  23. package/dist-lib/components/fields/TextField.d.ts +1 -1
  24. package/dist-lib/components/fields/TimestampField.d.ts +1 -1
  25. package/dist-lib/components/fields/UrlField.d.ts +1 -1
  26. package/dist-lib/components/fields/index.d.ts +2 -0
  27. package/dist-lib/components/file-widgets/host.d.ts +2 -0
  28. package/dist-lib/components/file-widgets/types.d.ts +1 -0
  29. package/dist-lib/components/pages/list/DataCell.d.ts +7 -0
  30. package/dist-lib/components/pages/list/ListBulkBar.d.ts +27 -0
  31. package/dist-lib/components/pages/list/ListHeader.d.ts +23 -0
  32. package/dist-lib/components/pages/list/RowActionsCell.d.ts +38 -0
  33. package/dist-lib/components/pages/list/SaveViewDialog.d.ts +6 -0
  34. package/dist-lib/components/pages/list/columns.d.ts +42 -0
  35. package/dist-lib/components/pages/list/filter-meta.d.ts +9 -0
  36. package/dist-lib/components/primitives/BoolToggle.d.ts +3 -1
  37. package/dist-lib/components/primitives/Fields.d.ts +12 -3
  38. package/dist-lib/index.js +4189 -4066
  39. package/dist-lib/index.js.map +1 -1
  40. package/dist-lib/lib/action-dispatch.d.ts +7 -0
  41. package/dist-lib/stores/realtime.d.ts +9 -0
  42. package/dist-lib/types/schema.d.ts +11 -1
  43. package/dist-lib/{useUserLocale-D9wc5kzQ.js → useUserLocale-CSS6fwi8.js} +1110 -1003
  44. package/dist-lib/useUserLocale-CSS6fwi8.js.map +1 -0
  45. package/dist-lib/{value-FIp50R1-.js → value-DgzPSFZM.js} +149 -196
  46. package/dist-lib/value-DgzPSFZM.js.map +1 -0
  47. package/package.json +1 -1
  48. package/dist-lib/JsonEditor-Tew1oNqZ.js.map +0 -1
  49. package/dist-lib/components/shared/RowActionItem.d.ts +0 -11
  50. package/dist-lib/useUserLocale-D9wc5kzQ.js.map +0 -1
  51. 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;