react-semaphor 0.1.98 → 0.1.100
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/{dashboard-controls-SfIULlwq.js → dashboard-controls-DKci3my0.js} +1 -1
- package/dist/chunks/{dashboard-controls-B7wa2KRe.js → dashboard-controls-DW1JJWP7.js} +28 -28
- package/dist/chunks/{dashboard-json-BJtvpPq-.js → dashboard-json-BDAEIUep.js} +1 -1
- package/dist/chunks/{dashboard-json-CmSkMcC5.js → dashboard-json-C0CKQW3d.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-Dx85J19h.js → edit-dashboard-visual-BtV3RWgf.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-BFFO7nug.js → edit-dashboard-visual-DQzy1fUR.js} +165 -165
- package/dist/chunks/{editor-action-buttons-B_i5UaKQ.js → editor-action-buttons-BJRrkj_n.js} +2 -2
- package/dist/chunks/{editor-action-buttons-DljIU0p-.js → editor-action-buttons-CReBF7FV.js} +1 -1
- package/dist/chunks/{index-C37s4iSV.js → index-BDtdPUUE.js} +155 -155
- package/dist/chunks/{index-DNQRM5V-.js → index-f2IZ7tlh.js} +7590 -7575
- package/dist/chunks/{resource-management-panel-h3nqEz3m.js → resource-management-panel-BQVERuRi.js} +1 -1
- package/dist/chunks/{resource-management-panel-CMoCDvGf.js → resource-management-panel-DNpbhYNu.js} +51 -51
- package/dist/chunks/{schedule-dashboard-CGKeVpPU.js → schedule-dashboard-CfeYnMXp.js} +149 -141
- package/dist/chunks/schedule-dashboard-D8ctQToc.js +6 -0
- package/dist/chunks/{use-visual-utils-not8LVVZ.js → use-visual-utils-BN4h1-xa.js} +1 -1
- package/dist/chunks/{use-visual-utils-B1-TK4CN.js → use-visual-utils-CRA2-3Z2.js} +14 -15
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -4
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/schedule-dashboard-D1TDsh3L.js +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-BDtdPUUE.js"),f=require("react");require("react-dom");const O=require("./schedule-dashboard-D8ctQToc.js"),oe=require("./editor-action-buttons-CReBF7FV.js");function Me(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const D=Me(f);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e, Fragment as E } from "react/jsx-runtime";
|
|
2
|
-
import { b as X,
|
|
2
|
+
import { b as X, bt as ys, bu as ws, u as w, aC as Se, aD as Me, B as M, aF as ke, aG as J, bv as Le, a8 as Qe, aj as R, ao as ie, bw as xs, aS as Pe, ap as le, aq as ce, ar as de, as as Ae, at as re, bx as Q, ax as He, I as V, by as Ds, aW as Cs, bz as Ss, bA as ze, bB as Be, c as Y, bC as Ke, bD as Ms, bE as ks, bF as Ls, bG as Ps, bH as As, ah as C, z as _e, ad as ue, bI as me, bJ as We, av as Is, bK as Es, ac as H, aR as z, bL as Fs, bM as Ts, bN as Gs, bp as Je, bq as Xe, br as ne, bs as oe, bO as ve, aM as Ne, bP as ye, aX as Ye, bQ as we, aw as Ze, b0 as es, bR as Rs, b3 as Os, b4 as Us, b5 as qs, b6 as zs, b7 as _s, b8 as $s, b9 as js, ba as Vs, bS as Qs, aO as Hs, be as Bs, bT as Ks, bU as Ws, aa as $e, aA as ae, bV as Js, R as be, bW as Xs, bX as Ys, bY as Zs, bZ as ea, y as sa, b_ as aa, b$ as ta, c0 as ra, c1 as na, v as oa } from "./index-f2IZ7tlh.js";
|
|
3
3
|
import * as S from "react";
|
|
4
4
|
import { useState as x, useMemo as te, useEffect as ia } from "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { g as xe, A as la, V as ca, S as da } from "./schedule-dashboard-
|
|
7
|
-
import { S as je } from "./editor-action-buttons-
|
|
6
|
+
import { g as xe, A as la, V as ca, S as da } from "./schedule-dashboard-CfeYnMXp.js";
|
|
7
|
+
import { S as je } from "./editor-action-buttons-BJRrkj_n.js";
|
|
8
8
|
/**
|
|
9
9
|
* @license lucide-react v0.453.0 - ISC
|
|
10
10
|
*
|
|
@@ -266,9 +266,9 @@ function wa() {
|
|
|
266
266
|
value: t,
|
|
267
267
|
onValueChange: h,
|
|
268
268
|
children: [
|
|
269
|
-
/* @__PURE__ */ e(
|
|
269
|
+
/* @__PURE__ */ e(ze, { value: "original", children: "Original" }),
|
|
270
270
|
a == null ? void 0 : a.map((o) => /* @__PURE__ */ n(
|
|
271
|
-
|
|
271
|
+
ze,
|
|
272
272
|
{
|
|
273
273
|
className: "group flex justify-between gap-2",
|
|
274
274
|
value: o.id,
|
|
@@ -618,7 +618,7 @@ function Ia({
|
|
|
618
618
|
/* @__PURE__ */ e(H, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
619
619
|
"Creating..."
|
|
620
620
|
] }) : /* @__PURE__ */ n(E, { children: [
|
|
621
|
-
/* @__PURE__ */ e(
|
|
621
|
+
/* @__PURE__ */ e(z, { className: "mr-2 h-4 w-4" }),
|
|
622
622
|
"Create Group"
|
|
623
623
|
] })
|
|
624
624
|
}
|
|
@@ -722,11 +722,11 @@ function Oa() {
|
|
|
722
722
|
return () => {
|
|
723
723
|
};
|
|
724
724
|
}
|
|
725
|
-
var Ee = "Avatar", [Ua] = Ea(Ee), [
|
|
725
|
+
var Ee = "Avatar", [Ua] = Ea(Ee), [qa, ss] = Ua(Ee), as = S.forwardRef(
|
|
726
726
|
(s, r) => {
|
|
727
727
|
const { __scopeAvatar: a, ...t } = s, [l, c] = S.useState("idle");
|
|
728
728
|
return /* @__PURE__ */ e(
|
|
729
|
-
|
|
729
|
+
qa,
|
|
730
730
|
{
|
|
731
731
|
scope: a,
|
|
732
732
|
imageLoadingStatus: l,
|
|
@@ -740,7 +740,7 @@ as.displayName = Ee;
|
|
|
740
740
|
var ts = "AvatarImage", rs = S.forwardRef(
|
|
741
741
|
(s, r) => {
|
|
742
742
|
const { __scopeAvatar: a, src: t, onLoadingStatusChange: l = () => {
|
|
743
|
-
}, ...c } = s, i = ss(ts, a), u =
|
|
743
|
+
}, ...c } = s, i = ss(ts, a), u = za(t, c), h = Ta((f) => {
|
|
744
744
|
l(f), i.onImageLoadingStatusChange(f);
|
|
745
745
|
});
|
|
746
746
|
return Ce(() => {
|
|
@@ -764,7 +764,7 @@ os.displayName = ns;
|
|
|
764
764
|
function Ve(s, r) {
|
|
765
765
|
return s ? r ? (s.src !== r && (s.src = r), s.complete && s.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function za(s, { referrerPolicy: r, crossOrigin: a }) {
|
|
768
768
|
const t = Ra(), l = S.useRef(null), c = t ? (l.current || (l.current = new window.Image()), l.current) : null, [i, u] = S.useState(
|
|
769
769
|
() => Ve(c, s)
|
|
770
770
|
);
|
|
@@ -826,16 +826,16 @@ function $a({
|
|
|
826
826
|
tenantId: a.tenantId || void 0,
|
|
827
827
|
active: !0,
|
|
828
828
|
limit: 100
|
|
829
|
-
}), U = Pa(), T = Aa(), A = (m == null ? void 0 : m.members) || [], _ = te(() => new Set(A.map((p) => p.userId)), [A]),
|
|
830
|
-
if (!i) return
|
|
829
|
+
}), U = Pa(), T = Aa(), A = (m == null ? void 0 : m.members) || [], _ = te(() => new Set(A.map((p) => p.userId)), [A]), q = te(() => k.filter((p) => !_.has(p.id)), [k, _]), D = te(() => {
|
|
830
|
+
if (!i) return q;
|
|
831
831
|
const p = i.toLowerCase();
|
|
832
|
-
return
|
|
832
|
+
return q.filter(
|
|
833
833
|
(L) => {
|
|
834
834
|
var I, O;
|
|
835
835
|
return ((I = L.name) == null ? void 0 : I.toLowerCase().includes(p)) || ((O = L.email) == null ? void 0 : O.toLowerCase().includes(p));
|
|
836
836
|
}
|
|
837
837
|
);
|
|
838
|
-
}, [
|
|
838
|
+
}, [q, i]), v = te(() => {
|
|
839
839
|
if (!i) return A;
|
|
840
840
|
const p = i.toLowerCase();
|
|
841
841
|
return A.filter(
|
|
@@ -913,7 +913,7 @@ function $a({
|
|
|
913
913
|
)
|
|
914
914
|
] }),
|
|
915
915
|
/* @__PURE__ */ e(Ne, { className: g.length > 0 ? "h-[300px]" : "h-[350px]", children: b ? /* @__PURE__ */ e("div", { className: "space-y-2", children: [1, 2, 3].map((p) => /* @__PURE__ */ e(ye, { className: "h-16 w-full" }, p)) }) : v.length === 0 ? /* @__PURE__ */ n("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
|
|
916
|
-
/* @__PURE__ */ e(
|
|
916
|
+
/* @__PURE__ */ e(z, { className: "h-12 w-12 mb-3 opacity-50" }),
|
|
917
917
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: i ? "No members found" : "No members yet" }),
|
|
918
918
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: i ? "Try a different search" : 'Switch to the "Add Members" tab to add people to this group' })
|
|
919
919
|
] }) : /* @__PURE__ */ e("div", { className: "space-y-2", children: v.map((p) => /* @__PURE__ */ e(
|
|
@@ -1068,7 +1068,7 @@ function Qa({
|
|
|
1068
1068
|
} catch (v) {
|
|
1069
1069
|
console.error("Failed to delete group:", v);
|
|
1070
1070
|
}
|
|
1071
|
-
},
|
|
1071
|
+
}, q = (v) => {
|
|
1072
1072
|
u(v), f(!0);
|
|
1073
1073
|
}, D = () => {
|
|
1074
1074
|
t("groups"), T();
|
|
@@ -1077,7 +1077,7 @@ function Qa({
|
|
|
1077
1077
|
/* @__PURE__ */ e(ie, { open: s, onOpenChange: r, children: /* @__PURE__ */ n(le, { className: "max-w-4xl max-h-[80vh]", children: [
|
|
1078
1078
|
/* @__PURE__ */ n(ce, { children: [
|
|
1079
1079
|
/* @__PURE__ */ n(de, { className: "flex items-center gap-2", children: [
|
|
1080
|
-
/* @__PURE__ */ e(
|
|
1080
|
+
/* @__PURE__ */ e(z, { className: "h-5 w-5" }),
|
|
1081
1081
|
"Group Management"
|
|
1082
1082
|
] }),
|
|
1083
1083
|
/* @__PURE__ */ e(Ae, { children: "Manage your groups, create new groups, and control group membership" })
|
|
@@ -1085,7 +1085,7 @@ function Qa({
|
|
|
1085
1085
|
/* @__PURE__ */ n(Je, { value: a, onValueChange: t, className: "mt-4", children: [
|
|
1086
1086
|
/* @__PURE__ */ n(Xe, { className: "grid w-full grid-cols-2", children: [
|
|
1087
1087
|
/* @__PURE__ */ n(ne, { value: "groups", className: "flex items-center gap-2", children: [
|
|
1088
|
-
/* @__PURE__ */ e(
|
|
1088
|
+
/* @__PURE__ */ e(z, { className: "h-4 w-4" }),
|
|
1089
1089
|
"Groups"
|
|
1090
1090
|
] }),
|
|
1091
1091
|
/* @__PURE__ */ n(ne, { value: "create", className: "flex items-center gap-2", children: [
|
|
@@ -1107,14 +1107,14 @@ function Qa({
|
|
|
1107
1107
|
)
|
|
1108
1108
|
] }),
|
|
1109
1109
|
/* @__PURE__ */ e(Ne, { className: "h-[400px]", children: U ? /* @__PURE__ */ e("div", { className: "space-y-3", children: [1, 2, 3].map((v) => /* @__PURE__ */ e(ye, { className: "h-24 w-full" }, v)) }) : A.length === 0 ? /* @__PURE__ */ n("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
|
|
1110
|
-
/* @__PURE__ */ e(
|
|
1110
|
+
/* @__PURE__ */ e(z, { className: "h-12 w-12 mb-3 opacity-50" }),
|
|
1111
1111
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: "No groups found" }),
|
|
1112
1112
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: l ? "Try a different search" : "Create your first group to get started" })
|
|
1113
1113
|
] }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: A.map((v) => /* @__PURE__ */ e(
|
|
1114
1114
|
Ha,
|
|
1115
1115
|
{
|
|
1116
1116
|
group: v,
|
|
1117
|
-
onManageMembers: () =>
|
|
1117
|
+
onManageMembers: () => q(v),
|
|
1118
1118
|
onDelete: () => o(v),
|
|
1119
1119
|
currentUserId: b == null ? void 0 : b.id
|
|
1120
1120
|
},
|
|
@@ -1146,8 +1146,8 @@ function Qa({
|
|
|
1146
1146
|
open: !!g,
|
|
1147
1147
|
onOpenChange: () => o(null),
|
|
1148
1148
|
children: /* @__PURE__ */ n(Us, { children: [
|
|
1149
|
-
/* @__PURE__ */ n(
|
|
1150
|
-
/* @__PURE__ */ e(
|
|
1149
|
+
/* @__PURE__ */ n(qs, { children: [
|
|
1150
|
+
/* @__PURE__ */ e(zs, { children: "Delete Group" }),
|
|
1151
1151
|
/* @__PURE__ */ n(_s, { children: [
|
|
1152
1152
|
'Are you sure you want to delete "',
|
|
1153
1153
|
g == null ? void 0 : g.name,
|
|
@@ -1189,7 +1189,7 @@ function Ha({
|
|
|
1189
1189
|
] }),
|
|
1190
1190
|
/* @__PURE__ */ n("div", { className: "flex flex-wrap items-center gap-3 text-xs text-muted-foreground", children: [
|
|
1191
1191
|
/* @__PURE__ */ n("span", { className: "flex items-center gap-1", children: [
|
|
1192
|
-
/* @__PURE__ */ e(
|
|
1192
|
+
/* @__PURE__ */ e(z, { className: "h-3 w-3" }),
|
|
1193
1193
|
s.memberCount,
|
|
1194
1194
|
" ",
|
|
1195
1195
|
s.memberCount === 1 ? "member" : "members"
|
|
@@ -1226,7 +1226,7 @@ function Ha({
|
|
|
1226
1226
|
] }) });
|
|
1227
1227
|
}
|
|
1228
1228
|
function et() {
|
|
1229
|
-
var Oe, Ue,
|
|
1229
|
+
var Oe, Ue, qe;
|
|
1230
1230
|
const {
|
|
1231
1231
|
authToken: s,
|
|
1232
1232
|
tokenProps: r,
|
|
@@ -1239,7 +1239,7 @@ function et() {
|
|
|
1239
1239
|
(d) => d.isDashboardEditing
|
|
1240
1240
|
), { setDashboardTitle: b } = w((d) => d.actions), [N, y] = x(!1), [k, P] = x(!1), [U, T] = x(!1), A = w((d) => d.isDashboardPanelOpen), _ = w(
|
|
1241
1241
|
(d) => d.actions.setIsDashboardPanelOpen
|
|
1242
|
-
),
|
|
1242
|
+
), q = w((d) => d.filterValues), D = w((d) => d.isVisualEditing);
|
|
1243
1243
|
$e((d) => d.card);
|
|
1244
1244
|
const v = ae(
|
|
1245
1245
|
(d) => d.selectedDashboard
|
|
@@ -1326,7 +1326,7 @@ function et() {
|
|
|
1326
1326
|
), F = JSON.stringify(d), W = {
|
|
1327
1327
|
...g,
|
|
1328
1328
|
template: F,
|
|
1329
|
-
filterValues:
|
|
1329
|
+
filterValues: q
|
|
1330
1330
|
};
|
|
1331
1331
|
await De(
|
|
1332
1332
|
r.apiServiceUrl,
|
|
@@ -1419,10 +1419,10 @@ function et() {
|
|
|
1419
1419
|
tooltip: "Manage Groups",
|
|
1420
1420
|
onClick: () => T(!0),
|
|
1421
1421
|
className: "h-7 p-2",
|
|
1422
|
-
children: /* @__PURE__ */ e(
|
|
1422
|
+
children: /* @__PURE__ */ e(z, { className: "h-4 w-4" })
|
|
1423
1423
|
}
|
|
1424
1424
|
),
|
|
1425
|
-
!D && i && ((
|
|
1425
|
+
!D && i && ((qe = j == null ? void 0 : j.permissions) == null ? void 0 : qe.canShare) && /* @__PURE__ */ e(
|
|
1426
1426
|
V,
|
|
1427
1427
|
{
|
|
1428
1428
|
tooltip: "Share Dashboard",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { u as s, c as l, B as h, X as d, d as c } from "./index-
|
|
2
|
+
import { u as s, c as l, B as h, X as d, d as c } from "./index-f2IZ7tlh.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
function N() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-BDtdPUUE.js");require("react");require("react-dom");function i(){const o=a.useDashboardStore(e=>e.dashboard),r=a.useDashboardStore(e=>e.actions.setDashboard),t=a.useDashboardStore(e=>e.showDashboardJSON),n=a.useDashboardStore(e=>e.actions.setShowDashboardJSON);return s.jsxs("div",{className:a.cn("relative p-2",{hidden:!t}),children:[s.jsxs(a.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>n(!1),children:[s.jsx(a.X,{className:"mr-2 h-4 w-4"}),"Close"]}),s.jsx(a.de,{onChange:e=>{if(e)try{JSON.parse(e),r(JSON.parse(e))}catch{}},defaultLanguage:"json",className:"h-[550px] overflow-y-auto",value:JSON.stringify(o,null,2),options:{minimap:{enabled:!1},glyphMargin:!1,wordWrap:"on",scrollbar:{verticalScrollbarSize:0,horizontalScrollbarSize:0},fontSize:12,renderLineHighlight:"none"}})]})}exports.default=i;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-BDtdPUUE.js"),A=require("react"),He=require("./editor-action-buttons-CReBF7FV.js"),Ys=require("react-dom"),Ve=require("./use-local-storage-state-DXYWw213.js"),Ws=require("./use-visual-utils-BN4h1-xa.js");function Xs(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const Ue=Xs(A);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|