@flamingo-stack/openframe-frontend-core 0.0.798 → 0.0.799

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 (62) hide show
  1. package/dist/{chunk-PTQVGWJE.cjs → chunk-247LDSQE.cjs} +53 -53
  2. package/dist/{chunk-NK2FSEWD.cjs → chunk-2KEBGXA4.cjs} +4 -4
  3. package/dist/{chunk-6F2UHDCB.cjs → chunk-3MRK7X6Z.cjs} +3 -3
  4. package/dist/{chunk-WUBTAN27.cjs → chunk-4RK62AMV.cjs} +48 -48
  5. package/dist/{chunk-2M6HS23A.cjs → chunk-6CB3AXZM.cjs} +19 -19
  6. package/dist/{chunk-EYE5FLHZ.cjs → chunk-6EDOASF4.cjs} +6 -6
  7. package/dist/{chunk-6YCUP6JJ.cjs → chunk-B3X4J4HQ.cjs} +11 -11
  8. package/dist/{chunk-5IU64YEA.cjs → chunk-BSBCZIPQ.cjs} +39 -39
  9. package/dist/{chunk-FO3N6HDS.cjs → chunk-CS2KLF4O.cjs} +7 -7
  10. package/dist/{chunk-W5ZQDEDT.cjs → chunk-DBRXZC2I.cjs} +116 -107
  11. package/dist/{chunk-KFDAL6NA.cjs → chunk-FDDM5Z52.cjs} +2 -2
  12. package/dist/{chunk-ND7ECICK.cjs → chunk-GRNTIKPD.cjs} +17 -7
  13. package/dist/{chunk-TJQGKIXB.cjs → chunk-HB7FVY46.cjs} +32 -32
  14. package/dist/{chunk-BWTCULUN.cjs → chunk-IJGIWG6G.cjs} +4 -4
  15. package/dist/{chunk-W25OB2R6.cjs → chunk-PO5IIN4S.cjs} +9 -9
  16. package/dist/{chunk-VUHPWSAE.cjs → chunk-PPORXZI7.cjs} +18 -18
  17. package/dist/{chunk-ZXRAYCNB.cjs → chunk-TETW5NR4.cjs} +3 -3
  18. package/dist/{chunk-C2UZWRU5.cjs → chunk-UFCKY7OL.cjs} +10 -10
  19. package/dist/{cloud-tenants-XGL3DYSG.cjs → cloud-tenants-BQAVRN44.cjs} +4 -4
  20. package/dist/components/case-studies/index.cjs +16 -16
  21. package/dist/components/chat/index.cjs +3 -3
  22. package/dist/components/contact/index.cjs +5 -5
  23. package/dist/components/docs/index.cjs +8 -8
  24. package/dist/components/embeds/index.cjs +5 -5
  25. package/dist/components/faq/index.cjs +6 -6
  26. package/dist/components/features/index.cjs +4 -4
  27. package/dist/components/help-center-pages/index.cjs +61 -61
  28. package/dist/components/index.cjs +38 -38
  29. package/dist/components/loading/loading-fallback.d.ts +27 -3
  30. package/dist/components/loading/loading-fallback.d.ts.map +1 -1
  31. package/dist/components/loading/loading-fallback.js +17 -9
  32. package/dist/components/meeting-scheduler/index.cjs +29 -29
  33. package/dist/components/navigation/index.cjs +7 -7
  34. package/dist/components/onboarding-guides/index.cjs +6 -6
  35. package/dist/components/product-demo/index.cjs +13 -13
  36. package/dist/components/tickets/index.cjs +9 -9
  37. package/dist/components/ui/index.cjs +4 -4
  38. package/dist/components/ui/index.d.ts +1 -1
  39. package/dist/components/ui/index.d.ts.map +1 -1
  40. package/dist/components/ui/index.js +9 -1
  41. package/dist/components/ui/markdown-editor.d.ts.map +1 -1
  42. package/dist/components/ui/trendline.d.ts +1 -1
  43. package/dist/components/ui/trendline.d.ts.map +1 -1
  44. package/dist/components/ui/trendline.js +11 -2
  45. package/dist/{devices-U2NQYDI7.cjs → devices-KDT5ZGSG.cjs} +5 -5
  46. package/dist/{embeddable-chat-MPJLN4C6.cjs → embeddable-chat-ODKTSW3C.cjs} +59 -59
  47. package/dist/index.cjs +8 -8
  48. package/dist/{knowledge-BUY6TSK6.cjs → knowledge-4NLP77HP.cjs} +5 -5
  49. package/dist/loading-standard/engine.d.mts +22 -4
  50. package/dist/loading-standard/engine.d.mts.map +1 -1
  51. package/dist/loading-standard/rule-examples.d.mts.map +1 -1
  52. package/dist/{logs-FUPQ7XYE.cjs → logs-U6VMTY4N.cjs} +12 -12
  53. package/dist/{policies-NASADYBK.cjs → policies-TBLFBRFM.cjs} +8 -8
  54. package/dist/{scripts-BGLTDQKV.cjs → scripts-ZMNJWX7I.cjs} +9 -9
  55. package/dist/{software-update-QDIZ32KU.cjs → software-update-Q5AEQ4A4.cjs} +7 -7
  56. package/package.json +1 -1
  57. package/src/components/loading/loading-fallback.tsx +52 -12
  58. package/src/components/ui/index.ts +13 -1
  59. package/src/components/ui/markdown-editor.tsx +1 -0
  60. package/src/components/ui/trendline.tsx +27 -10
  61. package/src/loading-standard/engine.mjs +170 -14
  62. package/src/loading-standard/rule-examples.mjs +50 -0
@@ -8,7 +8,7 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
8
8
  var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
9
9
 
10
10
 
11
- var _chunkW5ZQDEDTcjs = require('./chunk-W5ZQDEDT.cjs');
11
+ var _chunkDBRXZC2Icjs = require('./chunk-DBRXZC2I.cjs');
12
12
  require('./chunk-DTBIIFZG.cjs');
13
13
  require('./chunk-NG3RKTQU.cjs');
14
14
  require('./chunk-E56LN23H.cjs');
@@ -20,10 +20,10 @@ require('./chunk-24I6RFVU.cjs');
20
20
  require('./chunk-A6P6DHEZ.cjs');
21
21
  require('./chunk-MZ4KBSH7.cjs');
22
22
  require('./chunk-YR74H7Z3.cjs');
23
- require('./chunk-VUHPWSAE.cjs');
23
+ require('./chunk-PPORXZI7.cjs');
24
24
 
25
25
 
26
- var _chunkND7ECICKcjs = require('./chunk-ND7ECICK.cjs');
26
+ var _chunkGRNTIKPDcjs = require('./chunk-GRNTIKPD.cjs');
27
27
  require('./chunk-7MV23NNT.cjs');
28
28
  require('./chunk-ZD6SZLO2.cjs');
29
29
  require('./chunk-3NGJ7NPT.cjs');
@@ -1905,10 +1905,10 @@ function KnowledgeScreen(_props) {
1905
1905
  const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
1906
1906
  const fixture = _react.useMemo.call(void 0, () => buildKnowledgeFixture(cast), [cast]);
1907
1907
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1908
- _chunkW5ZQDEDTcjs.KnowledgeBaseArticleView,
1908
+ _chunkDBRXZC2Icjs.KnowledgeBaseArticleView,
1909
1909
  {
1910
1910
  ...fixture.article,
1911
- content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkND7ECICKcjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
1911
+ content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRNTIKPDcjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
1912
1912
  }
1913
1913
  ) });
1914
1914
  }
@@ -1,15 +1,21 @@
1
+ /**
2
+ * The first TypeScript with a compiler API, resolved from each place in order (a file or URL to resolve from).
3
+ * Exported for its test.
4
+ */
5
+ export function loadTypeScript(from?: string[]): any;
1
6
  /**
2
7
  * Every finding over the reported trees of `project`, as `{ rule, path, file, line, message }` (`file` is relative to
3
8
  * the finding's tree), under a config (`CONFIGS.lib`, `CONFIGS.frontend`): `rules` run, `trees` reported, `pageCode`,
4
9
  * `exempt` lifting rules from files, and `files` (absolute paths) narrowing the run.
5
10
  *
6
11
  * @param {Project} project
7
- * @param {{ rules?: string[], trees?: string[], pageCode?: Function, exempt?: Array<{ why?: string, files: RegExp, rules: string[] }>, files?: string[] }} [config]
12
+ * @param {{ rules?: string[], trees?: string[], pageCode?: Function, boundaries?: Record<string, string>, exempt?: Array<{ why?: string, files: RegExp, rules: string[] }>, files?: string[] }} [config]
8
13
  */
9
- export function analyzeProject(project: Project, { rules, trees, pageCode, exempt, files }?: {
14
+ export function analyzeProject(project: Project, { rules, trees, pageCode, boundaries, exempt, files }?: {
10
15
  rules?: string[];
11
16
  trees?: string[];
12
17
  pageCode?: Function;
18
+ boundaries?: Record<string, string>;
13
19
  exempt?: Array<{
14
20
  why?: string;
15
21
  files: RegExp;
@@ -38,6 +44,8 @@ export namespace RULES {
38
44
  let OWN_PULSE: string;
39
45
  let SUSPENSE_FALLBACK: string;
40
46
  let HAND_PAIR: string;
47
+ let RAW_SUSPENSE: string;
48
+ let PAGE_BOUNDARY: string;
41
49
  let WHOLE_VIEW_SKELETON: string;
42
50
  let FOLD_PROP: string;
43
51
  let DEPRECATED_SKELETON: string;
@@ -65,14 +73,24 @@ export namespace CONFIGS {
65
73
  } | null;
66
74
  export let exempt: never[];
67
75
  }
76
+ namespace hub {
77
+ export let rules: string[];
78
+ let trees_1: string[];
79
+ export { trees_1 as trees };
80
+ export namespace boundaries {
81
+ let StreamedSection: string;
82
+ }
83
+ let exempt_1: never[];
84
+ export { exempt_1 as exempt };
85
+ }
68
86
  namespace lib {
69
87
  export { ALL_RULES as rules };
70
- let exempt_1: {
88
+ let exempt_2: {
71
89
  why: string;
72
90
  files: RegExp;
73
91
  rules: string[];
74
92
  }[];
75
- export { exempt_1 as exempt };
93
+ export { exempt_2 as exempt };
76
94
  }
77
95
  }
78
96
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"engine.d.mts","sourceRoot":"","sources":["../../src/loading-standard/engine.mjs"],"names":[],"mappings":"AA8pDA;;;;;;;GAOG;AACH,wCAHW,OAAO,8CACP;IAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,WAAW;IAAC,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE;;;;;;IAiBzJ;AA63CD,4DAA4D;AAC5D;;aAIC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA33FG;;;;WAIG;QACH;;iBAUC;;;;;;;;;;;;;AAshBL;;;;GAIG;AACH;IACE,kGAAkG;IAClG,4BAwCC;IAvCC,WAA4D;IAC5D,oBAAqB;IACrB,sBAAuB;IAWvB,sBAAuB;IACvB,0BAA2B;IAO3B,wBAA8B;IAI9B,2BAA4B;IAC5B,0BAA2B;IAC3B,gBAA8F;IAC9F,eAIC;IACD,qBAIC;IACD,qBAA6C;IAG/C,qHAAqH;IACrH,2BAIC;IAED,sBAcC;IAwCD,yFAAyF;IACzF,6BAEC;IAgBD,yGAAyG;IACzG,uDAeC;IAED,wGAAwG;IACxG;;;;;;;;aAYC;IAED,mHAAmH;IACnH,kDAYC;IA6CD;;;;OAIG;IACH,0EAyBC;IAqBD,sHAAsH;IACtH,mDA0BC;IAeD,sBAQC;IAPmB,kCAAuB;;CAQ5C;AAv3BD,kCAAqC"}
1
+ {"version":3,"file":"engine.d.mts","sourceRoot":"","sources":["../../src/loading-standard/engine.mjs"],"names":[],"mappings":"AAgKA;;;GAGG;AACH,qDAYC;AA+hDD;;;;;;;GAOG;AACH,wCAHW,OAAO,0DACP;IAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,WAAW;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE;;;;;;IAoB9L;AAq+CD,4DAA4D;AAC5D;;aAIC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAj/FG;;;;WAIG;QACH;;iBAUC;;;;;;;;;;;;;;;;;;;;;;;AAiiBL;;;;GAIG;AACH;IACE,kGAAkG;IAClG,4BAwCC;IAvCC,WAA4D;IAC5D,oBAAqB;IACrB,sBAAuB;IAWvB,sBAAuB;IACvB,0BAA2B;IAO3B,wBAA8B;IAI9B,2BAA4B;IAC5B,0BAA2B;IAC3B,gBAA8F;IAC9F,eAIC;IACD,qBAIC;IACD,qBAA6C;IAG/C,qHAAqH;IACrH,2BAIC;IAED,sBAcC;IAwCD,yFAAyF;IACzF,6BAEC;IAgBD,yGAAyG;IACzG,uDAeC;IAED,wGAAwG;IACxG;;;;;;;;aAYC;IAED,mHAAmH;IACnH,kDAYC;IA6CD;;;;OAIG;IACH,0EAyBC;IAqBD,sHAAsH;IACtH,mDA0BC;IAeD,sBAQC;IAPmB,kCAAuB;;CAQ5C;AAp4BD,kCAAqC"}
@@ -1 +1 @@
1
- {"version":3,"file":"rule-examples.d.mts","sourceRoot":"","sources":["../../src/loading-standard/rule-examples.mjs"],"names":[],"mappings":"AAqBA;;;;;GAKG;AACH,4BAFU,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC,CA0iB1G"}
1
+ {"version":3,"file":"rule-examples.d.mts","sourceRoot":"","sources":["../../src/loading-standard/rule-examples.mjs"],"names":[],"mappings":"AAqBA;;;;;GAKG;AACH,4BAFU,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC,CA4lB1G"}
@@ -16,7 +16,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
16
16
 
17
17
 
18
18
 
19
- var _chunkW5ZQDEDTcjs = require('./chunk-W5ZQDEDT.cjs');
19
+ var _chunkDBRXZC2Icjs = require('./chunk-DBRXZC2I.cjs');
20
20
  require('./chunk-DTBIIFZG.cjs');
21
21
  require('./chunk-NG3RKTQU.cjs');
22
22
  require('./chunk-E56LN23H.cjs');
@@ -30,8 +30,8 @@ require('./chunk-MZ4KBSH7.cjs');
30
30
  require('./chunk-YR74H7Z3.cjs');
31
31
 
32
32
 
33
- var _chunkVUHPWSAEcjs = require('./chunk-VUHPWSAE.cjs');
34
- require('./chunk-ND7ECICK.cjs');
33
+ var _chunkPPORXZI7cjs = require('./chunk-PPORXZI7.cjs');
34
+ require('./chunk-GRNTIKPD.cjs');
35
35
  require('./chunk-7MV23NNT.cjs');
36
36
  require('./chunk-ZD6SZLO2.cjs');
37
37
  require('./chunk-3NGJ7NPT.cjs');
@@ -1886,7 +1886,7 @@ function entry(logId, minutesAgo, severity, toolType, device2, summary) {
1886
1886
  id: logId,
1887
1887
  logId,
1888
1888
  timestamp: displayTime(_chunkFDZOE5TLcjs.demoMinutesAgo.call(void 0, minutesAgo)),
1889
- status: { label: severity, variant: _chunkW5ZQDEDTcjs.logSeverityVariant.call(void 0, severity) },
1889
+ status: { label: severity, variant: _chunkDBRXZC2Icjs.logSeverityVariant.call(void 0, severity) },
1890
1890
  source: { name: toolType, toolType },
1891
1891
  device: device2,
1892
1892
  description: { title: summary }
@@ -1958,13 +1958,13 @@ var NO_FILTERS = {};
1958
1958
  var ACTION_COLUMNS = ["copy", "quickView", "open"];
1959
1959
  var BESIDE_DRAWER_HIDDEN = [...ACTION_COLUMNS, "tool", "source"];
1960
1960
  var logHref = () => "#";
1961
- var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW5ZQDEDTcjs.LogCopyIconButton, {});
1961
+ var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.LogCopyIconButton, {});
1962
1962
  function LogsScreen({ compact = false }) {
1963
1963
  const [dock, setDock] = _react.useState.call(void 0, null);
1964
1964
  const selected = LOGS_FIXTURE_SELECTED;
1965
1965
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full bg-ods-bg", children: [
1966
1966
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1967
- _chunkW5ZQDEDTcjs.LogsPageView,
1967
+ _chunkDBRXZC2Icjs.LogsPageView,
1968
1968
  {
1969
1969
  showHeader: false,
1970
1970
  className: "p-[var(--spacing-system-l)]",
@@ -1972,7 +1972,7 @@ function LogsScreen({ compact = false }) {
1972
1972
  onSearchChange: noop,
1973
1973
  onOpenFilters: noop,
1974
1974
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1975
- _chunkW5ZQDEDTcjs.LogsTableView,
1975
+ _chunkDBRXZC2Icjs.LogsTableView,
1976
1976
  {
1977
1977
  logs: LOGS_FIXTURE_ENTRIES,
1978
1978
  facets: LOGS_FIXTURE_FACETS,
@@ -1986,8 +1986,8 @@ function LogsScreen({ compact = false }) {
1986
1986
  )
1987
1987
  }
1988
1988
  ) }),
1989
- !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setDock, className: "relative w-[calc(400px+var(--spacing-system-m))] shrink-0", children: dock && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW5ZQDEDTcjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1990
- _chunkW5ZQDEDTcjs.LogDrawer,
1989
+ !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setDock, className: "relative w-[calc(400px+var(--spacing-system-m))] shrink-0", children: dock && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1990
+ _chunkDBRXZC2Icjs.LogDrawer,
1991
1991
  {
1992
1992
  docked: true,
1993
1993
  isOpen: true,
@@ -1999,12 +1999,12 @@ function LogsScreen({ compact = false }) {
1999
1999
  { label: "Log ID", value: selected.logId },
2000
2000
  {
2001
2001
  label: "Source",
2002
- value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW5ZQDEDTcjs.ToolBadge, { toolType: _chunkVUHPWSAEcjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
2002
+ value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.ToolBadge, { toolType: _chunkPPORXZI7cjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
2003
2003
  },
2004
- { label: "Device", value: _chunkW5ZQDEDTcjs.logSourceLabels.call(void 0, selected.device).deviceName }
2004
+ { label: "Device", value: _chunkDBRXZC2Icjs.logSourceLabels.call(void 0, selected.device).deviceName }
2005
2005
  ],
2006
2006
  deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2007
- _chunkW5ZQDEDTcjs.DeviceCard,
2007
+ _chunkDBRXZC2Icjs.DeviceCard,
2008
2008
  {
2009
2009
  ...LOGS_FIXTURE_DEVICE,
2010
2010
  actions: {
@@ -10,7 +10,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunkW5ZQDEDTcjs = require('./chunk-W5ZQDEDT.cjs');
13
+ var _chunkDBRXZC2Icjs = require('./chunk-DBRXZC2I.cjs');
14
14
  require('./chunk-DTBIIFZG.cjs');
15
15
  require('./chunk-NG3RKTQU.cjs');
16
16
  require('./chunk-E56LN23H.cjs');
@@ -22,8 +22,8 @@ require('./chunk-24I6RFVU.cjs');
22
22
  require('./chunk-A6P6DHEZ.cjs');
23
23
  require('./chunk-MZ4KBSH7.cjs');
24
24
  require('./chunk-YR74H7Z3.cjs');
25
- require('./chunk-VUHPWSAE.cjs');
26
- require('./chunk-ND7ECICK.cjs');
25
+ require('./chunk-PPORXZI7.cjs');
26
+ require('./chunk-GRNTIKPD.cjs');
27
27
  require('./chunk-7MV23NNT.cjs');
28
28
  require('./chunk-ZD6SZLO2.cjs');
29
29
  require('./chunk-3NGJ7NPT.cjs');
@@ -1891,14 +1891,14 @@ var POLICIES = [
1891
1891
  policy("policy-local-admins", "No local admins", "No everyday account is a local administrator.", false, 0)
1892
1892
  ];
1893
1893
  var POLICIES_FIXTURE = {
1894
- summary: _chunkW5ZQDEDTcjs.computePolicySummary.call(void 0, POLICIES),
1894
+ summary: _chunkDBRXZC2Icjs.computePolicySummary.call(void 0, POLICIES),
1895
1895
  rows: POLICIES.map((item) => ({
1896
1896
  id: item.id,
1897
1897
  name: item.name,
1898
1898
  description: item.description,
1899
1899
  critical: item.critical,
1900
1900
  severityLabel: item.critical ? "Critical" : "Low",
1901
- status: _chunkW5ZQDEDTcjs.getPolicyTableStatus.call(void 0, item),
1901
+ status: _chunkDBRXZC2Icjs.getPolicyTableStatus.call(void 0, item),
1902
1902
  actions: [
1903
1903
  { label: "Policy Details", onClick: noop },
1904
1904
  { label: "Delete Policy", onClick: noop }
@@ -1912,16 +1912,16 @@ var POLICIES_FIXTURE = {
1912
1912
  var _jsxruntime = require('react/jsx-runtime');
1913
1913
  function PoliciesScreen({ compact = false }) {
1914
1914
  const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1915
- _chunkW5ZQDEDTcjs.PoliciesTable,
1915
+ _chunkDBRXZC2Icjs.PoliciesTable,
1916
1916
  {
1917
1917
  rows: POLICIES_FIXTURE.rows,
1918
1918
  rowAsLink: true,
1919
- rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW5ZQDEDTcjs.DataTable.RowCount, {}),
1919
+ rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.DataTable.RowCount, {}),
1920
1920
  emptyMessage: "No policies found."
1921
1921
  }
1922
1922
  );
1923
1923
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col gap-[var(--spacing-system-l)] bg-ods-bg p-[var(--spacing-system-l)]", children: [
1924
- !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW5ZQDEDTcjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
1924
+ !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
1925
1925
  table
1926
1926
  ] });
1927
1927
  }
@@ -13,7 +13,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkW5ZQDEDTcjs = require('./chunk-W5ZQDEDT.cjs');
16
+ var _chunkDBRXZC2Icjs = require('./chunk-DBRXZC2I.cjs');
17
17
  require('./chunk-DTBIIFZG.cjs');
18
18
  require('./chunk-NG3RKTQU.cjs');
19
19
 
@@ -27,8 +27,8 @@ require('./chunk-24I6RFVU.cjs');
27
27
  require('./chunk-A6P6DHEZ.cjs');
28
28
  require('./chunk-MZ4KBSH7.cjs');
29
29
  require('./chunk-YR74H7Z3.cjs');
30
- require('./chunk-VUHPWSAE.cjs');
31
- require('./chunk-ND7ECICK.cjs');
30
+ require('./chunk-PPORXZI7.cjs');
31
+ require('./chunk-GRNTIKPD.cjs');
32
32
  require('./chunk-7MV23NNT.cjs');
33
33
  require('./chunk-ZD6SZLO2.cjs');
34
34
  require('./chunk-3NGJ7NPT.cjs');
@@ -1995,8 +1995,8 @@ function buildScriptsFixture(cast) {
1995
1995
  var _jsxruntime = require('react/jsx-runtime');
1996
1996
  var WIDE_HIDDEN_COLUMNS = ["result", "open"];
1997
1997
  var COMPACT_COLUMNS = [
1998
- { ..._chunkW5ZQDEDTcjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
1999
- _chunkW5ZQDEDTcjs.EXECUTION_COLUMNS.status
1998
+ { ..._chunkDBRXZC2Icjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
1999
+ _chunkDBRXZC2Icjs.EXECUTION_COLUMNS.status
2000
2000
  ];
2001
2001
  var COMPACT_ROWS = 4;
2002
2002
  var TOKEN_CLASS = {
@@ -2055,7 +2055,7 @@ function ScriptCodePicture({ script }) {
2055
2055
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center justify-between gap-[var(--spacing-system-m)]", children: [
2056
2056
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE56LN23Hcjs.TruncateText, { variant: "h6", tone: "secondary", children: `Written by ${provenance.author} \xB7 approved by ${provenance.approver}` }),
2057
2057
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2058
- _chunkW5ZQDEDTcjs.ScriptShellBadge,
2058
+ _chunkDBRXZC2Icjs.ScriptShellBadge,
2059
2059
  {
2060
2060
  value: script.shellType,
2061
2061
  className: "shrink-0 text-ods-text-secondary text-h6",
@@ -2079,7 +2079,7 @@ function ScriptsScreen({ compact = false }) {
2079
2079
  return (
2080
2080
  // Four runs of the card's row height fill the frame; the padding is what is left round them.
2081
2081
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full overflow-hidden bg-ods-bg p-[var(--spacing-system-xsf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2082
- _chunkW5ZQDEDTcjs.ScriptExecutionsTable,
2082
+ _chunkDBRXZC2Icjs.ScriptExecutionsTable,
2083
2083
  {
2084
2084
  rows: fixture.executions.slice(0, COMPACT_ROWS),
2085
2085
  columns: COMPACT_COLUMNS,
@@ -2089,13 +2089,13 @@ function ScriptsScreen({ compact = false }) {
2089
2089
  ) })
2090
2090
  );
2091
2091
  }
2092
- const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW5ZQDEDTcjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
2092
+ const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
2093
2093
  return (
2094
2094
  // The frame's tighter padding and no header row: the output opened under a run needs the height.
2095
2095
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full gap-[var(--spacing-system-m)] overflow-hidden bg-ods-bg p-[var(--spacing-system-m)]", children: [
2096
2096
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-[39%] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptCodePicture, { script: fixture.script }) }),
2097
2097
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2098
- _chunkW5ZQDEDTcjs.ScriptExecutionsTable,
2098
+ _chunkDBRXZC2Icjs.ScriptExecutionsTable,
2099
2099
  {
2100
2100
  rows: fixture.executions,
2101
2101
  hideColumns: WIDE_HIDDEN_COLUMNS,
@@ -15,7 +15,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
15
15
 
16
16
 
17
17
 
18
- var _chunkW5ZQDEDTcjs = require('./chunk-W5ZQDEDT.cjs');
18
+ var _chunkDBRXZC2Icjs = require('./chunk-DBRXZC2I.cjs');
19
19
  require('./chunk-DTBIIFZG.cjs');
20
20
  require('./chunk-NG3RKTQU.cjs');
21
21
 
@@ -29,8 +29,8 @@ require('./chunk-24I6RFVU.cjs');
29
29
  require('./chunk-A6P6DHEZ.cjs');
30
30
  require('./chunk-MZ4KBSH7.cjs');
31
31
  require('./chunk-YR74H7Z3.cjs');
32
- require('./chunk-VUHPWSAE.cjs');
33
- require('./chunk-ND7ECICK.cjs');
32
+ require('./chunk-PPORXZI7.cjs');
33
+ require('./chunk-GRNTIKPD.cjs');
34
34
  require('./chunk-7MV23NNT.cjs');
35
35
  require('./chunk-ZD6SZLO2.cjs');
36
36
  require('./chunk-3NGJ7NPT.cjs');
@@ -1922,12 +1922,12 @@ function StaticPackageField({ value }) {
1922
1922
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1923
1923
  _chunkE56LN23Hcjs.Autocomplete,
1924
1924
  {
1925
- label: _chunkW5ZQDEDTcjs.PACKAGE_SEARCH_LABEL,
1925
+ label: _chunkDBRXZC2Icjs.PACKAGE_SEARCH_LABEL,
1926
1926
  labelVariant: "large",
1927
1927
  options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
1928
1928
  value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
1929
1929
  onChange: noop,
1930
- placeholder: _chunkW5ZQDEDTcjs.PACKAGE_SEARCH_PLACEHOLDER
1930
+ placeholder: _chunkDBRXZC2Icjs.PACKAGE_SEARCH_PLACEHOLDER
1931
1931
  }
1932
1932
  );
1933
1933
  }
@@ -1941,7 +1941,7 @@ function SoftwareUpdateScreen({ compact = false }) {
1941
1941
  [fixture.devices, fixture.selectedIds]
1942
1942
  );
1943
1943
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1944
- _chunkW5ZQDEDTcjs.SoftwareActionForm,
1944
+ _chunkDBRXZC2Icjs.SoftwareActionForm,
1945
1945
  {
1946
1946
  action: fixture.action,
1947
1947
  showHeader: false,
@@ -1953,7 +1953,7 @@ function SoftwareUpdateScreen({ compact = false }) {
1953
1953
  initialValues: fixture.initialValues,
1954
1954
  renderPackageSearch,
1955
1955
  renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1956
- _chunkW5ZQDEDTcjs.DeviceSelector,
1956
+ _chunkDBRXZC2Icjs.DeviceSelector,
1957
1957
  {
1958
1958
  devices: selected,
1959
1959
  loading: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.798",
3
+ "version": "0.0.799",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  import { type ElementType, type ReactNode, Suspense } from 'react';
4
- import { AnnouncedLoadingScope } from '../ui/loading-scope';
4
+ import { AnnouncedLoadingScope, LoadingStatus, LoadingWhen, useLoadingScope } from '../ui/loading-scope';
5
5
 
6
6
  /**
7
7
  * A Suspense fallback drawn by the components themselves: the SAME component the boundary waits on, rendered in a
@@ -39,12 +39,18 @@ export function LoadingFallback({
39
39
  }
40
40
 
41
41
  /**
42
- * The one Suspense boundary whose fallback is its own children in a loading scope: what every screen wrote out as
43
- * `<Suspense fallback={<LoadingFallback label={…}>{x}</LoadingFallback>}>{x}</Suspense>`, with the child twice.
42
+ * THE boundary (the loading standard's one Suspense: `src/loading-standard/engine.mjs`, rules RAW_SUSPENSE and
43
+ * PAGE_BOUNDARY). It wraps only the component that waits on a read; its fallback is that component (or `fallback`, its
44
+ * view with no data) drawn in a loading scope, where every part draws its own loading form, so nothing jumps when the
45
+ * content arrives. Sections that share one read, or would look broken arriving one by one, share one boundary. A page's
46
+ * static frame (heading, copy, back link, cached content) renders at once, outside every boundary; a component that reads
47
+ * in the browser keeps its own loading state (`LoadingWhen`, `useLoadingScope`) and needs none.
44
48
  *
45
49
  * <LoadingSuspense label="Loading the tenants"><TenantList /></LoadingSuspense>
46
50
  * <LoadingSuspense label="Loading the script" fallback={<ScriptView script={null} />}><ScriptReader /></LoadingSuspense>
47
51
  * <LoadingSuspense status={false} as="span"><MentionChip id={id} /></LoadingSuspense>
52
+ * <LoadingSuspense live label="Loading the run" fallback={<RunView run={null} />}><RunReader /></LoadingSuspense>
53
+ * <LoadingSuspense gated={!flagReady} label="Loading usage" fallback={<UsageScreen data={null} />}><UsageReader /></LoadingSuspense>
48
54
  */
49
55
  export function LoadingSuspense({
50
56
  label,
@@ -52,6 +58,9 @@ export function LoadingSuspense({
52
58
  as,
53
59
  className,
54
60
  fallback,
61
+ live = false,
62
+ gated = false,
63
+ bare = false,
55
64
  children,
56
65
  }: {
57
66
  label?: string;
@@ -65,17 +74,48 @@ export function LoadingSuspense({
65
74
  * children.
66
75
  */
67
76
  fallback?: ReactNode;
77
+ /**
78
+ * The wait leaves the view usable: it is drawn in a BARE loading scope (no inert region) with the same status, so
79
+ * every part still draws its own loading form and every control that reads the scope still locks itself, while one
80
+ * that does not (Back, a plain `Button`, a search field) stays live. A body whose controls act on the record keeps
81
+ * the default (inert).
82
+ */
83
+ live?: boolean;
84
+ /**
85
+ * A gate the read depends on (a feature flag, a role, a test mode) has not answered: draw the waiting view and send
86
+ * nothing (the children are not rendered). The same view stands in for both waits, so no page spells the two branches.
87
+ */
88
+ gated?: boolean;
89
+ /**
90
+ * The gate's window draws the scope only (no region element of its own), and the scope stays mounted across the gate,
91
+ * so the view is not remounted: for a view inside a surface that already announces its load, or whose layout an extra
92
+ * element would break.
93
+ */
94
+ bare?: boolean;
68
95
  children: ReactNode;
69
96
  }) {
97
+ const view = fallback ?? children;
98
+ const waiting = live ? (
99
+ <LiveWait label={label} status={status}>
100
+ {view}
101
+ </LiveWait>
102
+ ) : (
103
+ <LoadingFallback label={label} status={status} as={as} className={className}>
104
+ {view}
105
+ </LoadingFallback>
106
+ );
107
+ const boundary = <Suspense fallback={waiting}>{children}</Suspense>;
108
+ if (bare) return <LoadingWhen loading={gated}>{gated ? view : boundary}</LoadingWhen>;
109
+ return gated ? waiting : boundary;
110
+ }
111
+
112
+ /** A `live` wait: the view in a bare loading scope, announced once (silent inside an outer scope, which has said it). */
113
+ function LiveWait({ label, status = true, children }: { label?: string; status?: boolean; children: ReactNode }) {
114
+ const outer = useLoadingScope();
70
115
  return (
71
- <Suspense
72
- fallback={
73
- <LoadingFallback label={label} status={status} as={as} className={className}>
74
- {fallback ?? children}
75
- </LoadingFallback>
76
- }
77
- >
78
- {children}
79
- </Suspense>
116
+ <>
117
+ <LoadingWhen loading>{children}</LoadingWhen>
118
+ {status && !outer && <LoadingStatus label={label ?? 'Loading the page'} />}
119
+ </>
80
120
  );
81
121
  }
@@ -117,7 +117,19 @@ export * from './compliance-badge';
117
117
  export * from './feature-card';
118
118
  export * from './feature-list';
119
119
  export { FloatingTooltip } from './floating-tooltip';
120
- export { Trendline, TrendHistory, TREND_TONES, formatTrendChange, trendlinePoints, trendTone, trendToneClass, type TrendTone, type TrendlineProps, type TrendHistoryProps, type TrendHistoryColumn } from './trendline';
120
+ export {
121
+ Trendline,
122
+ TrendHistory,
123
+ TREND_TONES,
124
+ formatTrendChange,
125
+ trendlinePoints,
126
+ trendTone,
127
+ trendToneClass,
128
+ type TrendTone,
129
+ type TrendlineProps,
130
+ type TrendHistoryProps,
131
+ type TrendHistoryColumn,
132
+ } from './trendline';
121
133
  export { SourceTooltip, type SourceTooltipProps, type SourceRef } from './source-tooltip';
122
134
  export { TruncateText, type TruncateTextProps } from './truncate-text';
123
135
  export * from './highlight-card';
@@ -378,6 +378,7 @@ export function MarkdownEditor({
378
378
 
379
379
  {/* `next/dynamic` draws the loader's `loading`; a host on `React.lazy` reaches this boundary. Both are the skeleton. */}
380
380
  <MarkdownEditorHeightContext.Provider value={height}>
381
+ {/* loading-standard-ok(RAW_SUSPENSE): waits on the editor's CODE (React.lazy), like next/dynamic's loading: */}
381
382
  <Suspense fallback={<MarkdownEditorFieldSkeleton height={height} />}>
382
383
  <MDEditor
383
384
  value={value}
@@ -53,7 +53,11 @@ export function trendTone(change: number | null, higherIsBetter = false): TrendT
53
53
  }
54
54
 
55
55
  /** The text colour of a change: its tone's class, from `TREND_TONES` or the host's `tones`. */
56
- export function trendToneClass(change: number | null, higherIsBetter = false, tones: Partial<Record<TrendTone, string>> = {}): string {
56
+ export function trendToneClass(
57
+ change: number | null,
58
+ higherIsBetter = false,
59
+ tones: Partial<Record<TrendTone, string>> = {},
60
+ ): string {
57
61
  const tone = trendTone(change, higherIsBetter);
58
62
  return tones[tone] ?? TREND_TONES[tone];
59
63
  }
@@ -64,9 +68,7 @@ export function trendToneClass(change: number | null, higherIsBetter = false, to
64
68
  * still visible; a flat series sits mid-height, a single value in the middle.
65
69
  */
66
70
  export function trendlinePoints(values: ReadonlyArray<number | null>): Array<{ x: number; y: number }> {
67
- const known = values
68
- .map((v, i) => [i, v] as const)
69
- .filter((p): p is readonly [number, number] => p[1] !== null);
71
+ const known = values.map((v, i) => [i, v] as const).filter((p): p is readonly [number, number] => p[1] !== null);
70
72
  if (known.length === 0) return [];
71
73
  const min = Math.min(...known.map(([, v]) => v));
72
74
  const range = Math.max(...known.map(([, v]) => v)) - min;
@@ -83,7 +85,7 @@ function Spark({ values, toneClass }: { values: ReadonlyArray<number | null>; to
83
85
  <svg className={`${SPARK_CLASS} ${toneClass}`} viewBox={`0 0 ${SPARK_W} ${SPARK_H}`} aria-hidden="true">
84
86
  {points.length > 1 && (
85
87
  <polyline
86
- points={points.map((p) => `${p.x},${p.y}`).join(' ')}
88
+ points={points.map(p => `${p.x},${p.y}`).join(' ')}
87
89
  fill="none"
88
90
  stroke="currentColor"
89
91
  strokeWidth={1.5}
@@ -112,7 +114,15 @@ export interface TrendlineProps {
112
114
  side?: 'top' | 'right' | 'bottom' | 'left';
113
115
  }
114
116
 
115
- export function Trendline({ values, label, change, higherIsBetter = false, tones, details, side = 'top' }: TrendlineProps) {
117
+ export function Trendline({
118
+ values,
119
+ label,
120
+ change,
121
+ higherIsBetter = false,
122
+ tones,
123
+ details,
124
+ side = 'top',
125
+ }: TrendlineProps) {
116
126
  // The ONE switch: in a loading scope, the skeleton at the loaded size.
117
127
  if (useLoadingScope()) {
118
128
  return (
@@ -199,13 +209,15 @@ export function TrendHistory({ title, columns, rows, loadingRows, error, childre
199
209
  ) : (
200
210
  <LoadingWhen loading={rows === null}>
201
211
  <div className="grid gap-x-[var(--spacing-system-mf)] gap-y-[var(--spacing-system-xxs)]" style={grid}>
202
- {columns.map((c) => (
212
+ {columns.map(c => (
203
213
  <span key={c.label} className={`${alignClass(c)} text-ods-text-secondary`}>
204
214
  {c.label}
205
215
  </span>
206
216
  ))}
207
217
  {(rows ?? Array.from({ length: loadingRows }, () => null)).map((row, r) =>
208
- columns.map((c, i) => <TrendHistoryCell key={`${r}:${c.label}`} column={c} value={row ? row[i] : null} />),
218
+ columns.map((c, i) => (
219
+ <TrendHistoryCell key={`${r}:${c.label}`} column={c} value={row ? row[i] : null} />
220
+ )),
209
221
  )}
210
222
  </div>
211
223
  </LoadingWhen>
@@ -216,6 +228,11 @@ export function TrendHistory({ title, columns, rows, loadingRows, error, childre
216
228
  }
217
229
 
218
230
  function TrendHistoryCell({ column, value }: { column: TrendHistoryColumn; value: ReactNode }) {
219
- if (useLoadingScope()) return <TextLineSkeleton type="h6" className={column.align === 'right' ? 'ml-auto w-8' : 'w-12'} />;
220
- return <span className={`${column.align === 'right' ? 'text-right tabular-nums' : 'text-left'} text-ods-text-primary`}>{value}</span>;
231
+ if (useLoadingScope())
232
+ return <TextLineSkeleton type="h6" className={column.align === 'right' ? 'ml-auto w-8' : 'w-12'} />;
233
+ return (
234
+ <span className={`${column.align === 'right' ? 'text-right tabular-nums' : 'text-left'} text-ods-text-primary`}>
235
+ {value}
236
+ </span>
237
+ );
221
238
  }