@declarion/react 0.45.0 → 0.47.0
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-BDnJK0AU.js → DraggableChildrenTable-B6KjWkwD.js} +2 -2
- package/dist-lib/{DynamicIcon-DeRpAaXm.js → DynamicIcon-Dc2j-rg_.js} +19 -17
- package/dist-lib/{Grid-CcCveEE7.js → Grid-OdquWJNX.js} +2 -2
- package/dist-lib/{LayoutRenderer-BReuhVdX.js → LayoutRenderer-CzAdhjNT.js} +525 -518
- package/dist-lib/{MarkdownRenderer-DPKDFR60.js → MarkdownRenderer-C6bhrAIe.js} +10 -10
- package/dist-lib/{RefreshControl-KddgOhUG.js → RefreshControl-F9Ib9asP.js} +18 -18
- package/dist-lib/{SmartDetailPage.impl-D_hMxiHy.js → SmartDetailPage.impl-DdSu3kmW.js} +305 -294
- package/dist-lib/{SmartRecordListPage.impl-GIo_mPIJ.js → SmartRecordListPage.impl-SkIp0_Rd.js} +165 -154
- package/dist-lib/api/agents.d.ts +39 -7
- package/dist-lib/components/agents/AgentChatPanel.d.ts +6 -1
- package/dist-lib/components/agents/transcript-runs.d.ts +29 -0
- package/dist-lib/components/file-widgets/host.d.ts +1 -0
- package/dist-lib/components/list/QuickPeek.d.ts +1 -1
- package/dist-lib/components/pages/list/ListFloatbar.d.ts +4 -2
- package/dist-lib/components/pages/list/cardProjection.d.ts +2 -1
- package/dist-lib/components/shared/RowActionsKebab.d.ts +3 -2
- package/dist-lib/components/views/ViewSwitcher.d.ts +2 -1
- package/dist-lib/hooks/useAgentConversation.d.ts +7 -19
- package/dist-lib/hooks/useFilters.d.ts +1 -0
- package/dist-lib/icons.js +1 -1
- package/dist-lib/index.d.ts +8 -1
- package/dist-lib/index.js +3031 -2674
- package/dist-lib/lib/actions.d.ts +1 -1
- package/dist-lib/lib/filter-evaluator.d.ts +16 -0
- package/dist-lib/lib/filters.d.ts +10 -4
- package/dist-lib/lib/messages.d.ts +1 -0
- package/dist-lib/lib/variants.d.ts +7 -0
- package/dist-lib/{registry-DJKp0yaV.js → registry-C2VD-5MD.js} +571 -347
- package/dist-lib/testing.js +1 -1
- package/dist-lib/types/schema.d.ts +26 -0
- package/dist-lib/{useCurrentScreen-A3xZDs7U.js → useCurrentScreen-ow4r-nWa.js} +721 -693
- package/dist-lib/{useProperties-TlltWwLv.js → useProperties-lEKfzm2X.js} +92 -61
- package/dist-lib/{value-CHY7LgZ-.js → value-CXohNH6a.js} +1 -1
- package/dist-lib/vite/index.js +23 -22
- package/package.json +12 -12
package/dist-lib/testing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dt as e, Et as t, Ot as n, jt as r, r as i, t as a, tr as o, yt as s } from "./useCurrentScreen-
|
|
1
|
+
import { Dt as e, Et as t, Ot as n, jt as r, r as i, t as a, tr as o, yt as s } from "./useCurrentScreen-ow4r-nWa.js";
|
|
2
2
|
import { useState as c } from "react";
|
|
3
3
|
import { MemoryRouter as l } from "react-router";
|
|
4
4
|
import { QueryClient as u, QueryClientProvider as d } from "@tanstack/react-query";
|
|
@@ -311,6 +311,11 @@ export interface EntityMutations {
|
|
|
311
311
|
delete?: boolean;
|
|
312
312
|
restore?: boolean;
|
|
313
313
|
}
|
|
314
|
+
export interface EntityVariant {
|
|
315
|
+
name?: string;
|
|
316
|
+
when?: FilterNode[];
|
|
317
|
+
actions?: string[];
|
|
318
|
+
}
|
|
314
319
|
/** A set of CRUD op flags, each present or absent. The YAML-decoded shape of
|
|
315
320
|
* an entity's `public` opt-out block (deny-by-default authorization, plan
|
|
316
321
|
* 2026-06-17). A flag being true means that op is open to ALL authenticated
|
|
@@ -361,6 +366,7 @@ export interface Entity {
|
|
|
361
366
|
properties?: Record<string, PropertyDef>;
|
|
362
367
|
search_fields?: string[];
|
|
363
368
|
actions?: Record<string, Action>;
|
|
369
|
+
variants?: OrderedMap<EntityVariant>;
|
|
364
370
|
/**
|
|
365
371
|
* Platform-default action codes the engine must NOT inject for this entity
|
|
366
372
|
* (`__new`, `__edit`, `__create`, ...). Declared in the entity's YAML.
|
|
@@ -540,6 +546,7 @@ export interface WidgetNode {
|
|
|
540
546
|
export interface LayoutField {
|
|
541
547
|
name: string;
|
|
542
548
|
actions?: Action[];
|
|
549
|
+
structure?: string;
|
|
543
550
|
}
|
|
544
551
|
export interface LayoutNode {
|
|
545
552
|
row?: RowConfig;
|
|
@@ -618,6 +625,20 @@ export interface ScreenResponsiveViewport {
|
|
|
618
625
|
detail?: ResponsiveDetailBranch;
|
|
619
626
|
}
|
|
620
627
|
export type ScreenResponsive = Partial<Record<ViewportKey, ScreenResponsiveViewport>>;
|
|
628
|
+
export interface ScreenVariant {
|
|
629
|
+
name?: string;
|
|
630
|
+
when?: FilterNode[];
|
|
631
|
+
items?: LayoutNode[];
|
|
632
|
+
sidebar?: LayoutNode[];
|
|
633
|
+
sidebar_width?: string;
|
|
634
|
+
highlights?: string[];
|
|
635
|
+
audit?: AuditConfig;
|
|
636
|
+
actions?: string[];
|
|
637
|
+
row_actions?: string[];
|
|
638
|
+
action_layout?: ActionLayoutNode[];
|
|
639
|
+
card?: CardSpec;
|
|
640
|
+
quick_peek?: QuickPeekConfig;
|
|
641
|
+
}
|
|
621
642
|
export interface Screen {
|
|
622
643
|
type: "list" | "detail" | "custom" | "record_list";
|
|
623
644
|
entity?: string;
|
|
@@ -651,6 +672,7 @@ export interface Screen {
|
|
|
651
672
|
sort_default?: string;
|
|
652
673
|
actions?: string[];
|
|
653
674
|
row_actions?: string[];
|
|
675
|
+
variants?: OrderedMap<ScreenVariant>;
|
|
654
676
|
items?: LayoutNode[];
|
|
655
677
|
sidebar?: LayoutNode[];
|
|
656
678
|
sidebar_width?: string;
|
|
@@ -674,6 +696,10 @@ export interface Screen {
|
|
|
674
696
|
* and denied `contains`, the one that works. */
|
|
675
697
|
filter_operators?: Record<string, string[]>;
|
|
676
698
|
views?: ViewDefinition[];
|
|
699
|
+
/** Code of the view this list OPENS on. A starting point, never a bound: the
|
|
700
|
+
* switcher still offers every other view and the unfiltered "All", and a
|
|
701
|
+
* viewer's own default view wins over it. */
|
|
702
|
+
default_view?: string;
|
|
677
703
|
/** Action slot promotion for list screens (rule-of-2). UI honors first 2.
|
|
678
704
|
* Note: primary_record_actions (detail header) was removed in Task 5 of plan
|
|
679
705
|
* 2026-04-21-action-toolbar-priority-overflow. Use action_layout instead. */
|