react-semaphor 0.1.210 → 0.1.211

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 (32) hide show
  1. package/dist/chunks/{dashboard-controls-C08300Wi.js → dashboard-controls-7KpXzAWL.js} +592 -585
  2. package/dist/chunks/dashboard-controls-CnDq9Uh_.js +42 -0
  3. package/dist/chunks/{dashboard-json-GjDBGO26.js → dashboard-json-dqey5VK0.js} +1 -1
  4. package/dist/chunks/{dashboard-json-DlEE5-WA.js → dashboard-json-stWvjp2O.js} +1 -1
  5. package/dist/chunks/{dashboard-summary-settings-dialog-THx-gjnG.js → dashboard-summary-settings-dialog-DPEe6XBC.js} +1 -1
  6. package/dist/chunks/{dashboard-summary-settings-dialog-QUuhhXU9.js → dashboard-summary-settings-dialog-DuxhidK1.js} +1 -1
  7. package/dist/chunks/{edit-dashboard-visual-Bsmow1Pa.js → edit-dashboard-visual-CQAk_UsI.js} +483 -484
  8. package/dist/chunks/{edit-dashboard-visual-PfWJXb2-.js → edit-dashboard-visual-D_XPr8f8.js} +2 -2
  9. package/dist/chunks/{editor-action-buttons-FPyaC09X.js → editor-action-buttons-CH7W6KdH.js} +1 -1
  10. package/dist/chunks/{editor-action-buttons-DNbp_ZWy.js → editor-action-buttons-D34_GSZu.js} +27 -27
  11. package/dist/chunks/{index-CAVrkf9d.js → index-BDS2sWhv.js} +27718 -27508
  12. package/dist/chunks/index-BfiIPyeS.js +1109 -0
  13. package/dist/chunks/{notification-bell-C3a7wC1u.js → notification-bell-Cu3qDd9V.js} +251 -285
  14. package/dist/chunks/notification-bell-hijGST9g.js +6 -0
  15. package/dist/chunks/{resource-management-panel-BVTgbma8.js → resource-management-panel-BvHqslqC.js} +73 -73
  16. package/dist/chunks/{resource-management-panel-C5NjrVsA.js → resource-management-panel-gK3a6OEj.js} +1 -1
  17. package/dist/chunks/{use-role-aware-display-preferences-l7NFLYnn.js → use-role-aware-display-preferences-BlR29aKQ.js} +1 -1
  18. package/dist/chunks/{use-role-aware-display-preferences-DxCPoCgr.js → use-role-aware-display-preferences-a5FH9Y0k.js} +1 -1
  19. package/dist/chunks/{use-visual-utils-B82Q-Ytl.js → use-visual-utils-B11AA2fd.js} +1 -1
  20. package/dist/chunks/{use-visual-utils-D9IJz9R0.js → use-visual-utils-ptPsQ3nC.js} +23 -23
  21. package/dist/dashboard/index.cjs +1 -1
  22. package/dist/dashboard/index.js +1 -1
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.js +251 -216
  25. package/dist/style.css +1 -1
  26. package/dist/surfboard/index.cjs +1 -1
  27. package/dist/surfboard/index.js +2 -2
  28. package/dist/types/main.d.ts +49 -0
  29. package/package.json +1 -1
  30. package/dist/chunks/dashboard-controls-BAOrAMV9.js +0 -42
  31. package/dist/chunks/index-CXKjmjfB.js +0 -1104
  32. package/dist/chunks/notification-bell-BqvKQSw9.js +0 -6
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("./index-CXKjmjfB.js"),a=require("react/jsx-runtime"),k=require("./use-visual-utils-B82Q-Ytl.js"),f=require("react");/**
1
+ "use strict";const e=require("./index-BfiIPyeS.js"),a=require("react/jsx-runtime"),k=require("./use-visual-utils-B11AA2fd.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.
@@ -1,6 +1,6 @@
1
- import { bP as T, bA as u, bQ as B, bR as ee, bS as ae, bT as te, bU as se, bV as re, u as V, bE as le, bW as oe, bX as ne, bY as ie, bZ as de, c as g, b_ as ue, b$ as ce, by as q, B as I, E as pe, bJ as D, bs as K, bK as U, c0 as j, H as O, c1 as H, X, I as S } from "./index-CAVrkf9d.js";
1
+ import { bS as T, a1 as u, bT as B, bU as ee, bV as ae, bW as te, bX as se, bY as re, u as F, bO as le, bZ as oe, b_ as ne, b$ as ie, c0 as de, c as g, c1 as ue, c2 as ce, Y as q, B as I, E as pe, U as D, Z as U, V as K, c3 as j, H as O, c4 as H, X, I as S } from "./index-BDS2sWhv.js";
2
2
  import { jsx as m, jsxs as f, Fragment as x } from "react/jsx-runtime";
3
- import { u as me, a as A } from "./use-visual-utils-D9IJz9R0.js";
3
+ import { u as me, a as M } from "./use-visual-utils-ptPsQ3nC.js";
4
4
  import { useMemo as C, useState as G } from "react";
5
5
  /**
6
6
  * @license lucide-react v0.453.0 - ISC
@@ -42,7 +42,7 @@ const be = T("Link2", [
42
42
  * This source code is licensed under the ISC license.
43
43
  * See the LICENSE file in the root directory of this source tree.
44
44
  */
45
- const R = T("Save", [
45
+ const Y = T("Save", [
46
46
  [
47
47
  "path",
48
48
  {
@@ -53,7 +53,7 @@ const R = T("Save", [
53
53
  ["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
54
54
  ["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
55
55
  ]);
56
- function J() {
56
+ function Z() {
57
57
  var e, y;
58
58
  const r = u((p) => p.card), i = u((p) => p.frame), s = C(
59
59
  () => B(i, r),
@@ -96,7 +96,7 @@ function ge({
96
96
  className: s,
97
97
  showLabel: d = !1
98
98
  }) {
99
- const a = V((v) => v.selectedFrameId), l = le((v) => v.selectedVisual), o = u((v) => v.frame);
99
+ const a = F((v) => v.selectedFrameId), l = le((v) => v.selectedVisual), o = u((v) => v.frame);
100
100
  let t;
101
101
  if (r)
102
102
  t = r;
@@ -195,7 +195,7 @@ function Ie({
195
195
  ), u((e) => e.selectedTableName), u(
196
196
  (e) => e.selectedConnectionId
197
197
  ), u((e) => e.isShowingVisual), d.sql;
198
- const a = u((e) => e.onSave), { getUpdatedFrame: l } = A();
198
+ const a = u((e) => e.onSave), { getUpdatedFrame: l } = M();
199
199
  function o() {
200
200
  const e = l();
201
201
  a == null || a(e);
@@ -218,9 +218,9 @@ function Ne({
218
218
  className: r,
219
219
  variant: i = "default"
220
220
  }) {
221
- const s = D(), [d, a] = G(!1), l = V(
221
+ const s = D(), [d, a] = G(!1), l = F(
222
222
  (n) => n.actions.setIsDashboardPanelOpen
223
- ), { setIsVisualEditing: o } = K(), { getUpdatedFrame: t } = A(), e = U(), y = u((n) => n.frame), p = j();
223
+ ), { setIsVisualEditing: o } = U(), { getUpdatedFrame: t } = M(), e = K(), y = u((n) => n.frame), p = j();
224
224
  return /* @__PURE__ */ f(
225
225
  I,
226
226
  {
@@ -259,7 +259,7 @@ function Ne({
259
259
  " Saving"
260
260
  ] }),
261
261
  !d && /* @__PURE__ */ f(x, { children: [
262
- /* @__PURE__ */ m(R, { className: "mr-2 size-4 font-bold" }),
262
+ /* @__PURE__ */ m(Y, { className: "mr-2 size-4 font-bold" }),
263
263
  "Save to Library"
264
264
  ] })
265
265
  ]
@@ -269,7 +269,7 @@ function Ne({
269
269
  function qe({
270
270
  className: r
271
271
  }) {
272
- const i = D(), [s, d] = G(!1), a = U(), l = u((n) => n.frame), o = V((n) => n.selectedSheetId), { updateFrame: t, setIsVisualEditing: e } = K(), { getUpdatedFrame: y } = A(), p = j();
272
+ const i = D(), [s, d] = G(!1), a = K(), l = u((n) => n.frame), o = F((n) => n.selectedSheetId), { updateFrame: t, setIsVisualEditing: e } = U(), { getUpdatedFrame: y } = M(), p = j();
273
273
  return /* @__PURE__ */ m(
274
274
  I,
275
275
  {
@@ -314,14 +314,14 @@ function qe({
314
314
  /* @__PURE__ */ m(O, { className: "mr-2 size-4 animate-spin font-bold" }),
315
315
  " Saving..."
316
316
  ] }) : /* @__PURE__ */ f(x, { children: [
317
- /* @__PURE__ */ m(R, { className: "mr-2 size-4 font-bold" }),
317
+ /* @__PURE__ */ m(Y, { className: "mr-2 size-4 font-bold" }),
318
318
  "Save & Apply"
319
319
  ] })
320
320
  }
321
321
  );
322
322
  }
323
323
  function xe({ className: r }) {
324
- const { setTempQueryData: i, setSqlGen: s } = q(), d = D(), a = u((c) => c.tempQueryData), l = u((c) => c.onClose), o = u((c) => c.card), t = J(), e = C(() => t !== o.type ? { ...o, type: t } : o, [o, t]), { queryKey: y } = H(e);
324
+ const { setTempQueryData: i, setSqlGen: s } = q(), d = D(), a = u((c) => c.tempQueryData), l = u((c) => c.onClose), o = u((c) => c.card), t = Z(), e = C(() => t !== o.type ? { ...o, type: t } : o, [o, t]), { queryKey: y } = H(e);
325
325
  function p() {
326
326
  if (a) {
327
327
  const { queryKey: c, queryData: n } = a;
@@ -346,7 +346,7 @@ function xe({ className: r }) {
346
346
  function Te() {
347
347
  const { setTempQueryData: r } = q(), i = D();
348
348
  u((k) => k.isDevMode);
349
- const s = u((k) => k.tempQueryData), d = u((k) => k.card), a = J(), l = C(() => a !== d.type ? { ...d, type: a } : d, [d, a]), { queryKey: o } = H(l), {
349
+ const s = u((k) => k.tempQueryData), d = u((k) => k.card), a = Z(), l = C(() => a !== d.type ? { ...d, type: a } : d, [d, a]), { queryKey: o } = H(l), {
350
350
  setCardSql: t,
351
351
  setSqlGen: e,
352
352
  setCardPython: y,
@@ -355,30 +355,30 @@ function Te() {
355
355
  updateDataSource: n,
356
356
  clearQueryConfig: b,
357
357
  setCardConfig: v,
358
- setCardType: W,
359
- setFrame: Y,
360
- setCard: Z,
361
- setActiveTabCardId: _
358
+ setCardType: R,
359
+ setFrame: W,
360
+ setCard: _,
361
+ setActiveTabCardId: $
362
362
  } = q();
363
- function $() {
364
- var z, E, Q, w;
363
+ function J() {
364
+ var P, E, Q, w;
365
365
  const k = i.getQueryData(o);
366
366
  s != null && s.queryData || r({
367
367
  queryKey: o,
368
368
  queryData: k
369
369
  }), i.setQueryData(o, null), i.removeQueries({ queryKey: o, exact: !0 }), t(""), e({}), b(), v(void 0), y(""), p(""), c({});
370
- const F = u.getState().frame, M = u.getState().card, h = B(F, M), P = ((z = h == null ? void 0 : h.customCardPreferences) == null ? void 0 : z.visualType) === "multiple" || !!((E = h == null ? void 0 : h.customCardPreferences) != null && E.dataInputCardIds) || (((Q = h == null ? void 0 : h.customCardPreferences) == null ? void 0 : Q.minInputs) || 0) > 1 || (((w = h == null ? void 0 : h.customCardPreferences) == null ? void 0 : w.maxInputs) || 0) > 1, N = he(M, P);
371
- Y({
372
- ...F,
373
- cards: F.cards.map(
370
+ const V = u.getState().frame, z = u.getState().card, h = B(V, z), A = ((P = h == null ? void 0 : h.customCardPreferences) == null ? void 0 : P.visualType) === "multiple" || !!((E = h == null ? void 0 : h.customCardPreferences) != null && E.dataInputCardIds) || (((Q = h == null ? void 0 : h.customCardPreferences) == null ? void 0 : Q.minInputs) || 0) > 1 || (((w = h == null ? void 0 : h.customCardPreferences) == null ? void 0 : w.maxInputs) || 0) > 1, N = he(z, A);
371
+ W({
372
+ ...V,
373
+ cards: V.cards.map(
374
374
  (L) => L.id === N.id ? N : L
375
375
  )
376
- }), _(N.id), Z(N), P || W("bar");
376
+ }), $(N.id), _(N), A || R("bar");
377
377
  }
378
378
  return /* @__PURE__ */ f(
379
379
  I,
380
380
  {
381
- onClick: $,
381
+ onClick: J,
382
382
  className: "h-8",
383
383
  size: "sm",
384
384
  variant: "secondary",
@@ -393,12 +393,12 @@ export {
393
393
  Se as C,
394
394
  Ie as E,
395
395
  ye as L,
396
- R as S,
396
+ Y as S,
397
397
  ge as V,
398
398
  Ne as a,
399
399
  qe as b,
400
400
  be as c,
401
401
  xe as d,
402
402
  Te as e,
403
- J as u
403
+ Z as u
404
404
  };