react-semaphor 0.1.422 → 0.1.424

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 (43) hide show
  1. package/dist/brand-studio/index.cjs +1 -1
  2. package/dist/brand-studio/index.js +1 -1
  3. package/dist/briefings/index.cjs +1 -1
  4. package/dist/briefings/index.js +913 -712
  5. package/dist/chunks/{calendar-preferences-dialog-Cbavs2EK.js → calendar-preferences-dialog-D5mABNDT.js} +2 -2
  6. package/dist/chunks/{calendar-preferences-dialog-C2fBRNZh.js → calendar-preferences-dialog-iokD3HbE.js} +1 -1
  7. package/dist/chunks/card-config-utils-15sRtebL.js +1 -0
  8. package/dist/chunks/card-config-utils-BYZ5MJOh.js +16 -0
  9. package/dist/chunks/dashboard-briefing-launcher-BNDzMjjt.js +3401 -0
  10. package/dist/chunks/dashboard-briefing-launcher-DuWgwtxX.js +26 -0
  11. package/dist/chunks/dashboard-controls-bbEF-AbK.js +52 -0
  12. package/dist/chunks/dashboard-controls-id39vb7G.js +2322 -0
  13. package/dist/chunks/{dashboard-json-Db3rkY_a.js → dashboard-json-CkTEDNtH.js} +11 -10
  14. package/dist/chunks/dashboard-json-DVoqS1ks.js +1 -0
  15. package/dist/chunks/{edit-dashboard-visual-CW7mv_si.js → edit-dashboard-visual-CRjVRZLk.js} +258 -256
  16. package/dist/chunks/edit-dashboard-visual-CkrxZCcp.js +178 -0
  17. package/dist/chunks/{index-OD6mLD7U.js → index-Dzz6jXSY.js} +81915 -75775
  18. package/dist/chunks/index-S1CGUcSz.js +1406 -0
  19. package/dist/chunks/{switch-CWcWwwDJ.js → switch-2bh3Hka1.js} +619 -632
  20. package/dist/chunks/{switch-DRNqX0v0.js → switch-DMT7qf_R.js} +24 -24
  21. package/dist/chunks/use-create-flow-overlay-state-B-bYbtix.js +11 -0
  22. package/dist/chunks/{use-create-flow-overlay-state-CkMmXhI-.js → use-create-flow-overlay-state-B9vArrvr.js} +514 -543
  23. package/dist/dashboard/index.cjs +1 -1
  24. package/dist/dashboard/index.js +1 -1
  25. package/dist/data-app-builder/index.cjs +1 -1
  26. package/dist/data-app-builder/index.js +108 -108
  27. package/dist/index.cjs +1 -1
  28. package/dist/index.js +167 -163
  29. package/dist/style.css +1 -1
  30. package/dist/surfboard/index.cjs +1 -1
  31. package/dist/surfboard/index.js +2 -2
  32. package/dist/types/briefings.d.ts +2388 -7
  33. package/dist/types/main.d.ts +70 -10
  34. package/dist/types/types.d.ts +4 -8
  35. package/package.json +1 -1
  36. package/dist/chunks/dashboard-briefing-launcher-C0_ZbBK3.js +0 -9077
  37. package/dist/chunks/dashboard-briefing-launcher-CGfEFUnX.js +0 -80
  38. package/dist/chunks/dashboard-controls-BUuS-BGl.js +0 -52
  39. package/dist/chunks/dashboard-controls-ae5t32xV.js +0 -2280
  40. package/dist/chunks/dashboard-json-DTL_kYhz.js +0 -1
  41. package/dist/chunks/edit-dashboard-visual-Ciqdu58a.js +0 -178
  42. package/dist/chunks/index-8y8XX7sX.js +0 -1346
  43. package/dist/chunks/use-create-flow-overlay-state-C0Uhmlpd.js +0 -21
@@ -1,22 +1,23 @@
1
1
  import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
2
  import { useMemo as m, useState as f, useRef as b, useEffect as p } from "react";
3
3
  import { X as S } from "./x-CXDkqdur.js";
4
- import { u as o, c as N, B as D, C as J } from "./switch-CWcWwwDJ.js";
4
+ import { u as o, c as N, B as D, C as J } from "./switch-2bh3Hka1.js";
5
5
  import "./analyze-result-contract-D7pjjYPy.js";
6
- import "./index-OD6mLD7U.js";
6
+ import "./index-Dzz6jXSY.js";
7
7
  import "./index-CJdxSyQq.js";
8
8
  import "react-dom";
9
- function j() {
10
- const e = o((s) => s.dashboard), c = o((s) => s.actions.setDashboard), h = o(
9
+ import "../briefings/index.js";
10
+ function z() {
11
+ const r = o((s) => s.dashboard), c = o((s) => s.actions.setDashboard), h = o(
11
12
  (s) => s.showDashboardJSON
12
13
  ), l = o(
13
14
  (s) => s.actions.setShowDashboardJSON
14
15
  ), a = m(
15
- () => e ? JSON.stringify(e, null, 2) : "",
16
- [e]
17
- ), [u, n] = f(a), r = b(a);
16
+ () => r ? JSON.stringify(r, null, 2) : "",
17
+ [r]
18
+ ), [u, n] = f(a), e = b(a);
18
19
  return p(() => {
19
- a !== r.current && (n(a), r.current = a);
20
+ a !== e.current && (n(a), e.current = a);
20
21
  }, [a]), /* @__PURE__ */ d(
21
22
  "div",
22
23
  {
@@ -45,7 +46,7 @@ function j() {
45
46
  n(s);
46
47
  try {
47
48
  const i = JSON.parse(s);
48
- r.current = JSON.stringify(
49
+ e.current = JSON.stringify(
49
50
  i,
50
51
  null,
51
52
  2
@@ -61,5 +62,5 @@ function j() {
61
62
  );
62
63
  }
63
64
  export {
64
- j as default
65
+ z as default
65
66
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("react"),b=require("./x-B6ghREd2.js"),s=require("./switch-DMT7qf_R.js");require("./analyze-result-contract-DpDcImgk.js");require("./index-S1CGUcSz.js");require("./index-DRlMUglg.js");require("react-dom");require("../briefings/index.cjs");function S(){const t=s.useDashboardStore(e=>e.dashboard),c=s.useDashboardStore(e=>e.actions.setDashboard),u=s.useDashboardStore(e=>e.showDashboardJSON),h=s.useDashboardStore(e=>e.actions.setShowDashboardJSON),r=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,i]=o.useState(r),n=o.useRef(r);return o.useEffect(()=>{r!==n.current&&(i(r),n.current=r)},[r]),a.jsxs("div",{className:s.cn("relative p-2",{hidden:!u}),children:[a.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[a.jsx(b.X,{className:"mr-2 h-4 w-4"}),"Close"]}),a.jsx("div",{className:"h-[550px] overflow-hidden",children:a.jsx(s.CodeEditor,{value:l,onValueChange:e=>{i(e);try{const d=JSON.parse(e);n.current=JSON.stringify(d,null,2),c(d)}catch{}},language:"json"})})]})}exports.default=S;