@declarion/react 0.47.0 → 0.48.1

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 (31) hide show
  1. package/dist-lib/{DraggableChildrenTable-B6KjWkwD.js → DraggableChildrenTable-p2ZSdwzj.js} +1 -1
  2. package/dist-lib/{Grid-OdquWJNX.js → Grid-CjLFAKMZ.js} +2 -2
  3. package/dist-lib/{LayoutRenderer-CzAdhjNT.js → LayoutRenderer-DCscqXsv.js} +124 -118
  4. package/dist-lib/{MarkdownRenderer-C6bhrAIe.js → MarkdownRenderer-Sb7zcvj0.js} +1 -1
  5. package/dist-lib/{RefreshControl-F9Ib9asP.js → RefreshControl-Cnl9nE0x.js} +255 -225
  6. package/dist-lib/{SmartDetailPage.impl-DdSu3kmW.js → SmartDetailPage.impl-BAW-Tx_H.js} +465 -463
  7. package/dist-lib/{SmartRecordListPage.impl-SkIp0_Rd.js → SmartRecordListPage.impl-DtSSlGrI.js} +141 -139
  8. package/dist-lib/api/agents.d.ts +8 -11
  9. package/dist-lib/components/agents/AgentChatPanel.d.ts +1 -0
  10. package/dist-lib/components/agents/AgentPicker.d.ts +9 -0
  11. package/dist-lib/components/primitives/Tooltip.d.ts +4 -0
  12. package/dist-lib/components/shared/ResponsiveActionBar.d.ts +24 -5
  13. package/dist-lib/declarion-react.css +1 -1
  14. package/dist-lib/hooks/useAgentConversation.d.ts +5 -7
  15. package/dist-lib/hooks/useBrandingChrome.d.ts +11 -0
  16. package/dist-lib/hooks/useLongPress.d.ts +29 -0
  17. package/dist-lib/hooks/useResponsiveMode.d.ts +2 -21
  18. package/dist-lib/index.d.ts +2 -2
  19. package/dist-lib/index.js +2351 -2144
  20. package/dist-lib/lib/actions.d.ts +12 -4
  21. package/dist-lib/lib/longPressGesture.d.ts +55 -0
  22. package/dist-lib/lib/page-inset.d.ts +3 -0
  23. package/dist-lib/lib/viewport-category.d.ts +44 -0
  24. package/dist-lib/{registry-C2VD-5MD.js → registry-CCxnZW2b.js} +1021 -955
  25. package/dist-lib/testing.js +10 -10
  26. package/dist-lib/types/api.d.ts +15 -2
  27. package/dist-lib/{useCurrentScreen-ow4r-nWa.js → useCurrentScreen-BshVTPVq.js} +979 -971
  28. package/dist-lib/{useProperties-lEKfzm2X.js → useProperties-DrHFr0A1.js} +2 -2
  29. package/dist-lib/{value-CXohNH6a.js → value-B1O6QikE.js} +1 -1
  30. package/package.json +1 -1
  31. package/dist-lib/components/agents/AgentVisualHints.d.ts +0 -6
@@ -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-ow4r-nWa.js";
1
+ import { Dt as e, Et as t, Ot as n, er as r, jt as i, r as a, t as o, yt as s } from "./useCurrentScreen-BshVTPVq.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";
@@ -70,7 +70,7 @@ function S() {
70
70
  created_at: "2026-01-01T00:00:00Z",
71
71
  updated_at: "2026-01-01T00:00:00Z"
72
72
  };
73
- r.getState().setUser(t, e);
73
+ i.getState().setUser(t, e);
74
74
  }
75
75
  function C(e) {
76
76
  if (e === void 0) return { rows: [] };
@@ -125,7 +125,7 @@ function w(r) {
125
125
  });
126
126
  }
127
127
  function T() {
128
- n(null), e(null), t(null), r.setState({
128
+ n(null), e(null), t(null), i.setState({
129
129
  user: null,
130
130
  isAuthenticated: !1,
131
131
  activeTenant: null,
@@ -138,28 +138,28 @@ function E(e, t = {}) {
138
138
  gcTime: Infinity
139
139
  } } });
140
140
  S(), n.setQueryData(["schema", !0], t.schema ?? g()), w(t);
141
- let r = t.screenCode ? /* @__PURE__ */ p(a, {
141
+ let i = t.screenCode ? /* @__PURE__ */ p(o, {
142
142
  code: t.screenCode,
143
143
  children: e
144
144
  }) : e, s = /* @__PURE__ */ m(d, {
145
145
  client: n,
146
146
  children: [/* @__PURE__ */ p(l, {
147
147
  initialEntries: [t.route ?? "/"],
148
- children: /* @__PURE__ */ p(i, { children: r })
148
+ children: /* @__PURE__ */ p(a, { children: i })
149
149
  }), /* @__PURE__ */ p(f, {})]
150
- }), c = h(t.viewport ? /* @__PURE__ */ p(o, {
150
+ }), c = h(t.viewport ? /* @__PURE__ */ p(r, {
151
151
  viewportOverride: t.viewport,
152
152
  children: s
153
153
  }) : s);
154
154
  return Object.assign(c, { queryClient: n });
155
155
  }
156
156
  function D({ children: e, authenticated: t = !0, ...n }) {
157
- let [a] = c(() => {
157
+ let [r] = c(() => {
158
158
  let e = new u({ defaultOptions: { queries: {
159
159
  retry: !1,
160
160
  gcTime: Infinity
161
161
  } } });
162
- return t ? (S(), e.setQueryData(["schema", !0], n.schema ?? g())) : r.setState({
162
+ return t ? (S(), e.setQueryData(["schema", !0], n.schema ?? g())) : i.setState({
163
163
  user: null,
164
164
  isAuthenticated: !1,
165
165
  activeTenant: null,
@@ -167,10 +167,10 @@ function D({ children: e, authenticated: t = !0, ...n }) {
167
167
  }), w(n), e;
168
168
  });
169
169
  return /* @__PURE__ */ m(d, {
170
- client: a,
170
+ client: r,
171
171
  children: [/* @__PURE__ */ p(l, {
172
172
  initialEntries: [n.route ?? "/"],
173
- children: /* @__PURE__ */ p(i, { children: e })
173
+ children: /* @__PURE__ */ p(a, { children: e })
174
174
  }), /* @__PURE__ */ p(f, {})]
175
175
  });
176
176
  }
@@ -285,13 +285,25 @@ export interface BrandingShellFlags {
285
285
  }
286
286
  /**
287
287
  * The device class the SDK renders for. `auto` derives it from the measured
288
- * width, which is what the platform has always done and what a deployment that
289
- * declares nothing keeps.
288
+ * viewport, which is what the platform has always done and what a deployment
289
+ * that declares nothing keeps.
290
290
  */
291
291
  export type BrandingViewport = "auto" | "phone" | "tablet" | "desktop";
292
+ /**
293
+ * Where a deployment draws the device-class boundaries. Each key overrides one
294
+ * bound of the SDK's default table; an omitted key keeps the default, so a
295
+ * deployment moves the one boundary its devices need without restating the
296
+ * others. A forced `viewport` bypasses the boundaries entirely and wins.
297
+ */
298
+ export interface BrandingBreakpoints {
299
+ phone_max?: number;
300
+ tablet_max?: number;
301
+ landscape_phone_max_height?: number;
302
+ }
292
303
  export interface BrandingChrome {
293
304
  full?: {
294
305
  viewport?: BrandingViewport;
306
+ breakpoints?: BrandingBreakpoints;
295
307
  shell?: BrandingShellFlags;
296
308
  surfaces?: {
297
309
  list?: BrandingSurfaceFlags;
@@ -302,6 +314,7 @@ export interface BrandingChrome {
302
314
  };
303
315
  embed?: {
304
316
  viewport?: BrandingViewport;
317
+ breakpoints?: BrandingBreakpoints;
305
318
  surfaces?: {
306
319
  list?: BrandingSurfaceFlags;
307
320
  detail?: BrandingSurfaceFlags;