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.
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +1 -1
- package/dist/briefings/index.cjs +1 -1
- package/dist/briefings/index.js +913 -712
- package/dist/chunks/{calendar-preferences-dialog-Cbavs2EK.js → calendar-preferences-dialog-D5mABNDT.js} +2 -2
- package/dist/chunks/{calendar-preferences-dialog-C2fBRNZh.js → calendar-preferences-dialog-iokD3HbE.js} +1 -1
- package/dist/chunks/card-config-utils-15sRtebL.js +1 -0
- package/dist/chunks/card-config-utils-BYZ5MJOh.js +16 -0
- package/dist/chunks/dashboard-briefing-launcher-BNDzMjjt.js +3401 -0
- package/dist/chunks/dashboard-briefing-launcher-DuWgwtxX.js +26 -0
- package/dist/chunks/dashboard-controls-bbEF-AbK.js +52 -0
- package/dist/chunks/dashboard-controls-id39vb7G.js +2322 -0
- package/dist/chunks/{dashboard-json-Db3rkY_a.js → dashboard-json-CkTEDNtH.js} +11 -10
- package/dist/chunks/dashboard-json-DVoqS1ks.js +1 -0
- package/dist/chunks/{edit-dashboard-visual-CW7mv_si.js → edit-dashboard-visual-CRjVRZLk.js} +258 -256
- package/dist/chunks/edit-dashboard-visual-CkrxZCcp.js +178 -0
- package/dist/chunks/{index-OD6mLD7U.js → index-Dzz6jXSY.js} +81915 -75775
- package/dist/chunks/index-S1CGUcSz.js +1406 -0
- package/dist/chunks/{switch-CWcWwwDJ.js → switch-2bh3Hka1.js} +619 -632
- package/dist/chunks/{switch-DRNqX0v0.js → switch-DMT7qf_R.js} +24 -24
- package/dist/chunks/use-create-flow-overlay-state-B-bYbtix.js +11 -0
- package/dist/chunks/{use-create-flow-overlay-state-CkMmXhI-.js → use-create-flow-overlay-state-B9vArrvr.js} +514 -543
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +108 -108
- package/dist/index.cjs +1 -1
- package/dist/index.js +167 -163
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings.d.ts +2388 -7
- package/dist/types/main.d.ts +70 -10
- package/dist/types/types.d.ts +4 -8
- package/package.json +1 -1
- package/dist/chunks/dashboard-briefing-launcher-C0_ZbBK3.js +0 -9077
- package/dist/chunks/dashboard-briefing-launcher-CGfEFUnX.js +0 -80
- package/dist/chunks/dashboard-controls-BUuS-BGl.js +0 -52
- package/dist/chunks/dashboard-controls-ae5t32xV.js +0 -2280
- package/dist/chunks/dashboard-json-DTL_kYhz.js +0 -1
- package/dist/chunks/edit-dashboard-visual-Ciqdu58a.js +0 -178
- package/dist/chunks/index-8y8XX7sX.js +0 -1346
- 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-
|
|
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-
|
|
6
|
+
import "./index-Dzz6jXSY.js";
|
|
7
7
|
import "./index-CJdxSyQq.js";
|
|
8
8
|
import "react-dom";
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
() =>
|
|
16
|
-
[
|
|
17
|
-
), [u, n] = f(a),
|
|
16
|
+
() => r ? JSON.stringify(r, null, 2) : "",
|
|
17
|
+
[r]
|
|
18
|
+
), [u, n] = f(a), e = b(a);
|
|
18
19
|
return p(() => {
|
|
19
|
-
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
|
-
|
|
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
|
-
|
|
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;
|