react-semaphor 0.1.182 → 0.1.184
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/chunks/calendar-preferences-dialog-D9oF_URo.js +1 -0
- package/dist/chunks/calendar-preferences-dialog-DeXKY9JD.js +457 -0
- package/dist/chunks/common-types-CfJLrTJd.js +1 -0
- package/dist/chunks/common-types-DhqlRVrq.js +8 -0
- package/dist/chunks/{dashboard-controls-pGlGtKRR.js → dashboard-controls-CB8282ob.js} +8 -8
- package/dist/chunks/{dashboard-controls-BnBXzFOj.js → dashboard-controls-lRs5t5cg.js} +499 -484
- package/dist/chunks/{dashboard-json-UVBr47Qj.js → dashboard-json-BmzqRV5Q.js} +1 -1
- package/dist/chunks/{dashboard-json-CiIyCwJi.js → dashboard-json-Brn4hMd-.js} +1 -1
- package/dist/chunks/date-formatter-Sz6QDaM8.js +1 -0
- package/dist/chunks/{index-B4EhQdS9.js → date-formatter-Y8Za1ib3.js} +500 -544
- package/dist/chunks/{edit-dashboard-visual-DoP_x_tT.js → edit-dashboard-visual--FJBg3i3.js} +914 -914
- package/dist/chunks/{edit-dashboard-visual-CXvyi_qa.js → edit-dashboard-visual-DNq8ni5W.js} +8 -8
- package/dist/chunks/{editor-action-buttons-5UEhKl88.js → editor-action-buttons-COCkxvCM.js} +27 -27
- package/dist/chunks/{editor-action-buttons-Bftd6Bfx.js → editor-action-buttons-RPpMm3Zr.js} +1 -1
- package/dist/chunks/{index-ahdw_esL.js → index-CyYJ0bVW.js} +24904 -24743
- package/dist/chunks/{index-D59dkH2b.js → index-Dz2kwOQh.js} +229 -229
- package/dist/chunks/{notification-bell-CKI2j8jH.js → notification-bell-B86bWytX.js} +109 -109
- package/dist/chunks/{notification-bell-DtWcBdzp.js → notification-bell-Bdk-qQIx.js} +2 -2
- package/dist/chunks/{resource-management-panel-qkl060k8.js → resource-management-panel-BZKSwkRq.js} +160 -160
- package/dist/chunks/{resource-management-panel-BLiCtZZE.js → resource-management-panel-CvKBoIFQ.js} +1 -1
- package/dist/chunks/{use-role-aware-display-preferences-CLf3yEts.js → use-role-aware-display-preferences-D-jgaajh.js} +1 -1
- package/dist/chunks/{use-role-aware-display-preferences-JstD5WLE.js → use-role-aware-display-preferences-Kxc427Zx.js} +1 -1
- package/dist/chunks/{use-visual-utils-TGjvLx_R.js → use-visual-utils-Du4NIgMk.js} +1 -1
- package/dist/chunks/{use-visual-utils-BbN7rxtD.js → use-visual-utils-DwQQN6wI.js} +33 -33
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +3 -3
- package/dist/format-utils/index.cjs +5 -5
- package/dist/format-utils/index.js +200 -250
- package/dist/index.cjs +1 -1
- package/dist/index.js +75 -71
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +6 -4
- package/dist/types/dashboard.d.ts +6 -2
- package/dist/types/format-utils.d.ts +43 -20
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +8 -5
- package/dist/types/main.d.ts +99 -9
- package/dist/types/surfboard.d.ts +13 -2
- package/dist/types/types.d.ts +319 -2
- package/package.json +1 -1
- package/dist/chunks/index-8Crk3ROJ.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aT as Q, aJ as b, aI as t, B as S, c as g, E as k, u as D, aG as z, H as F, aU as I, aV as E, aW as U, aX as B, X as T, I as h } from "./index-CyYJ0bVW.js";
|
|
2
2
|
import { jsxs as u, jsx as y, Fragment as C } from "react/jsx-runtime";
|
|
3
|
-
import { u as
|
|
3
|
+
import { u as L, a as N } from "./use-visual-utils-DwQQN6wI.js";
|
|
4
4
|
import { useState as V } from "react";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -19,7 +19,7 @@ const O = Q("CircleX", [
|
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
|
-
const
|
|
22
|
+
const K = Q("Save", [
|
|
23
23
|
[
|
|
24
24
|
"path",
|
|
25
25
|
{
|
|
@@ -30,7 +30,7 @@ const U = Q("Save", [
|
|
|
30
30
|
["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
|
|
31
31
|
["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
|
|
32
32
|
]);
|
|
33
|
-
function
|
|
33
|
+
function X({
|
|
34
34
|
className: d,
|
|
35
35
|
variant: c = "outline"
|
|
36
36
|
}) {
|
|
@@ -38,7 +38,7 @@ function w({
|
|
|
38
38
|
const { setCardSql: o } = b();
|
|
39
39
|
t((e) => e.frame);
|
|
40
40
|
const l = t((e) => e.card);
|
|
41
|
-
|
|
41
|
+
L(
|
|
42
42
|
((m = l.customCardPreferences) == null ? void 0 : m.url) || ""
|
|
43
43
|
), t(
|
|
44
44
|
(e) => e.selectedSchemaName
|
|
@@ -68,13 +68,13 @@ function w({
|
|
|
68
68
|
}
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function w({
|
|
72
72
|
className: d,
|
|
73
73
|
variant: c = "default"
|
|
74
74
|
}) {
|
|
75
|
-
const o = I(), [l, a] = V(!1), n =
|
|
75
|
+
const o = I(), [l, a] = V(!1), n = D(
|
|
76
76
|
(r) => r.actions.setIsDashboardPanelOpen
|
|
77
|
-
), { setIsVisualEditing: i } =
|
|
77
|
+
), { setIsVisualEditing: i } = z(), { getUpdatedFrame: m } = N(), e = E(), s = t((r) => r.frame), f = U();
|
|
78
78
|
return /* @__PURE__ */ u(
|
|
79
79
|
S,
|
|
80
80
|
{
|
|
@@ -113,17 +113,17 @@ function G({
|
|
|
113
113
|
" Saving"
|
|
114
114
|
] }),
|
|
115
115
|
!l && /* @__PURE__ */ u(C, { children: [
|
|
116
|
-
/* @__PURE__ */ y(
|
|
116
|
+
/* @__PURE__ */ y(K, { className: "mr-2 size-4 font-bold" }),
|
|
117
117
|
"Save to Library"
|
|
118
118
|
] })
|
|
119
119
|
]
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function G({
|
|
124
124
|
className: d
|
|
125
125
|
}) {
|
|
126
|
-
const c = I(), [o, l] = V(!1), a = E(), n = t((r) => r.frame), i =
|
|
126
|
+
const c = I(), [o, l] = V(!1), a = E(), n = t((r) => r.frame), i = D((r) => r.selectedSheetId), { updateFrame: m, setIsVisualEditing: e } = z(), { getUpdatedFrame: s } = N(), f = U();
|
|
127
127
|
return /* @__PURE__ */ y(
|
|
128
128
|
S,
|
|
129
129
|
{
|
|
@@ -146,12 +146,12 @@ function H({
|
|
|
146
146
|
frameObject: p
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
|
-
const
|
|
149
|
+
const A = {
|
|
150
150
|
...p,
|
|
151
151
|
visualId: r
|
|
152
152
|
// Keep the link to library visual
|
|
153
153
|
};
|
|
154
|
-
m(i,
|
|
154
|
+
m(i, A), c.invalidateQueries({ queryKey: ["visuals"] }), c.invalidateQueries({ queryKey: ["visual", r] }), h.success("Saved to library and applied locally"), setTimeout(() => {
|
|
155
155
|
e(!1);
|
|
156
156
|
}, 300);
|
|
157
157
|
} catch (p) {
|
|
@@ -168,16 +168,16 @@ function H({
|
|
|
168
168
|
/* @__PURE__ */ y(F, { className: "mr-2 size-4 animate-spin font-bold" }),
|
|
169
169
|
" Saving..."
|
|
170
170
|
] }) : /* @__PURE__ */ u(C, { children: [
|
|
171
|
-
/* @__PURE__ */ y(
|
|
171
|
+
/* @__PURE__ */ y(K, { className: "mr-2 size-4 font-bold" }),
|
|
172
172
|
"Save & Apply"
|
|
173
173
|
] })
|
|
174
174
|
}
|
|
175
175
|
);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function H({ className: d }) {
|
|
178
178
|
const { getUpdatedFrame: c } = N();
|
|
179
179
|
t((e) => e.frame);
|
|
180
|
-
const o =
|
|
180
|
+
const o = D((e) => e.selectedSheetId), { updateFrame: l, setIsVisualEditing: a } = z(), [n, i] = V(!1);
|
|
181
181
|
return /* @__PURE__ */ u(
|
|
182
182
|
S,
|
|
183
183
|
{
|
|
@@ -213,7 +213,7 @@ function X({ className: d }) {
|
|
|
213
213
|
);
|
|
214
214
|
}
|
|
215
215
|
function J({ className: d }) {
|
|
216
|
-
const { setTempQueryData: c, setSqlGen: o } = b(), l = I(), a = t((s) => s.tempQueryData), n = t((s) => s.onClose), i = t((s) => s.card), { queryKey: m } =
|
|
216
|
+
const { setTempQueryData: c, setSqlGen: o } = b(), l = I(), a = t((s) => s.tempQueryData), n = t((s) => s.onClose), i = t((s) => s.card), { queryKey: m } = B(i);
|
|
217
217
|
function e() {
|
|
218
218
|
if (a) {
|
|
219
219
|
const { queryKey: s, queryData: f } = a;
|
|
@@ -229,7 +229,7 @@ function J({ className: d }) {
|
|
|
229
229
|
size: "sm",
|
|
230
230
|
variant: "outline",
|
|
231
231
|
children: [
|
|
232
|
-
/* @__PURE__ */ y(
|
|
232
|
+
/* @__PURE__ */ y(T, { className: "mr-2 size-4" }),
|
|
233
233
|
"Close"
|
|
234
234
|
]
|
|
235
235
|
}
|
|
@@ -238,7 +238,7 @@ function J({ className: d }) {
|
|
|
238
238
|
function R() {
|
|
239
239
|
const { setTempQueryData: d } = b(), c = I();
|
|
240
240
|
t((v) => v.isDevMode);
|
|
241
|
-
const o = t((v) => v.tempQueryData), l = t((v) => v.card), { queryKey: a } =
|
|
241
|
+
const o = t((v) => v.tempQueryData), l = t((v) => v.card), { queryKey: a } = B(l), {
|
|
242
242
|
setCardSql: n,
|
|
243
243
|
setSqlGen: i,
|
|
244
244
|
setCardPython: m,
|
|
@@ -249,7 +249,7 @@ function R() {
|
|
|
249
249
|
setCardConfig: r,
|
|
250
250
|
setCardType: p
|
|
251
251
|
} = b();
|
|
252
|
-
function
|
|
252
|
+
function A() {
|
|
253
253
|
const v = c.getQueryData(a);
|
|
254
254
|
o != null && o.queryData || d({
|
|
255
255
|
queryKey: a,
|
|
@@ -259,12 +259,12 @@ function R() {
|
|
|
259
259
|
return /* @__PURE__ */ u(
|
|
260
260
|
S,
|
|
261
261
|
{
|
|
262
|
-
onClick:
|
|
262
|
+
onClick: A,
|
|
263
263
|
className: "h-8",
|
|
264
264
|
size: "sm",
|
|
265
265
|
variant: "secondary",
|
|
266
266
|
children: [
|
|
267
|
-
/* @__PURE__ */ y(
|
|
267
|
+
/* @__PURE__ */ y(T, { className: "mr-2 size-3.5" }),
|
|
268
268
|
"Clear"
|
|
269
269
|
]
|
|
270
270
|
}
|
|
@@ -272,11 +272,11 @@ function R() {
|
|
|
272
272
|
}
|
|
273
273
|
export {
|
|
274
274
|
O as C,
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
275
|
+
X as E,
|
|
276
|
+
K as S,
|
|
277
|
+
H as V,
|
|
278
|
+
w as a,
|
|
279
|
+
G as b,
|
|
280
280
|
J as c,
|
|
281
281
|
R as d
|
|
282
282
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("./index-
|
|
1
|
+
"use strict";const e=require("./index-Dz2kwOQh.js"),s=require("react/jsx-runtime"),v=require("./use-visual-utils-Du4NIgMk.js"),f=require("react");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|