react-semaphor 0.1.132 → 0.1.133
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-DQMFJcPB.js → dashboard-controls-C1rIPoLI.js} +1 -1
- package/dist/chunks/{dashboard-controls-CWG6EatR.js → dashboard-controls-YCOwB4c7.js} +207 -207
- package/dist/chunks/{dashboard-export-dialog-DofqNYdv.js → dashboard-export-dialog-BpjTGwvL.js} +31 -31
- package/dist/chunks/{dashboard-export-dialog-CYRUEIF0.js → dashboard-export-dialog-CsU5-_Nc.js} +1 -1
- package/dist/chunks/{dashboard-json-CfXtWYQo.js → dashboard-json-BwJ6kZV2.js} +1 -1
- package/dist/chunks/{dashboard-json-D5b7lskH.js → dashboard-json-DDxHEaDO.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-C4ur0h-P.js → edit-dashboard-visual-BoV4X2or.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CSfaO06L.js → edit-dashboard-visual-DdK_bxBz.js} +191 -191
- package/dist/chunks/{editor-action-buttons-7cxzFlCm.js → editor-action-buttons-CK2siDBM.js} +2 -2
- package/dist/chunks/{editor-action-buttons-DWHiK2yJ.js → editor-action-buttons-CmA0eoCZ.js} +1 -1
- package/dist/chunks/{index-B6RYfqnr.js → index-BCmbfOd2.js} +4 -4
- package/dist/chunks/{index-CRA38qes.js → index-DilTtW4W.js} +184 -178
- package/dist/chunks/{resource-management-panel-DnKFfVOc.js → resource-management-panel-Bt1zi1Yb.js} +116 -116
- package/dist/chunks/{resource-management-panel-CC_r1yro.js → resource-management-panel-Fs9hg3pC.js} +1 -1
- package/dist/chunks/{use-visual-utils-B41g03Pc.js → use-visual-utils-Cjv_OnmO.js} +1 -1
- package/dist/chunks/{use-visual-utils-CZNuwJRU.js → use-visual-utils-CzQAEa-2.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +30 -29
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/main.d.ts +11 -0
- package/package.json +1 -1
|
@@ -5616,6 +5616,7 @@ function xne(e) {
|
|
|
5616
5616
|
}
|
|
5617
5617
|
const ne = Sl()(
|
|
5618
5618
|
Nb((e, t) => ({
|
|
5619
|
+
relaodToken: 0,
|
|
5619
5620
|
isSessionExpired: !1,
|
|
5620
5621
|
currentBreakpoint: "lg",
|
|
5621
5622
|
dashboard: {
|
|
@@ -5641,12 +5642,17 @@ const ne = Sl()(
|
|
|
5641
5642
|
actions: {
|
|
5642
5643
|
setInitStore: () => {
|
|
5643
5644
|
e((n) => {
|
|
5644
|
-
n.isSessionExpired = !1, n.currentBreakpoint = "lg", n.dashboard = {
|
|
5645
|
+
n.relaodToken = 0, n.isSessionExpired = !1, n.currentBreakpoint = "lg", n.dashboard = {
|
|
5645
5646
|
id: "",
|
|
5646
5647
|
style: Jv
|
|
5647
5648
|
}, n.showContext = !1, n.selectedSheetId = null, n.selectedCardId = null, n.selectedFrameId = null, n.selectedCard = null, n.showFilters = !1, n.isDashboardEditing = !1, n.isVisualEditing = !1, n.showDashboardJSON = !1, n.filteringCards = [], n.selectedLensId = void 0, n.filterValues = void 0;
|
|
5648
5649
|
});
|
|
5649
5650
|
},
|
|
5651
|
+
triggerReload: () => {
|
|
5652
|
+
e((n) => {
|
|
5653
|
+
n.relaodToken = n != null && n.relaodToken ? n.relaodToken + 1 : 1;
|
|
5654
|
+
});
|
|
5655
|
+
},
|
|
5650
5656
|
setAiContext: (n) => {
|
|
5651
5657
|
e((r) => {
|
|
5652
5658
|
r.dashboard.aiContext = n;
|
|
@@ -9424,37 +9430,39 @@ function CD() {
|
|
|
9424
9430
|
version: t,
|
|
9425
9431
|
tokenProps: n,
|
|
9426
9432
|
id: r
|
|
9427
|
-
} = tt(), o = Xo(
|
|
9428
|
-
(
|
|
9429
|
-
),
|
|
9430
|
-
function
|
|
9431
|
-
return
|
|
9433
|
+
} = tt(), o = ne((b) => b.relaodToken), i = Xo(
|
|
9434
|
+
(b) => b.selectedDashboard
|
|
9435
|
+
), a = Xo((b) => b.showHub), s = xe(null);
|
|
9436
|
+
function l() {
|
|
9437
|
+
return a ? null : i != null && i.id ? i == null ? void 0 : i.id : r || (n != null && n.dashboard_id ? n.dashboard_id : null);
|
|
9432
9438
|
}
|
|
9433
|
-
const
|
|
9434
|
-
function
|
|
9435
|
-
return !(!(e != null && e.accessToken) || !
|
|
9439
|
+
const c = ne((b) => b.selectedLensId);
|
|
9440
|
+
function u() {
|
|
9441
|
+
return !(!(e != null && e.accessToken) || !l());
|
|
9436
9442
|
}
|
|
9437
|
-
const { data:
|
|
9443
|
+
const { data: d, isLoading: h, isFetching: p, isError: m, refetch: g } = kn({
|
|
9438
9444
|
queryKey: [
|
|
9439
9445
|
"dashboard",
|
|
9440
|
-
|
|
9446
|
+
c,
|
|
9441
9447
|
e == null ? void 0 : e.accessToken,
|
|
9442
|
-
|
|
9448
|
+
l()
|
|
9443
9449
|
],
|
|
9444
9450
|
queryFn: () => Ene(n.apiServiceUrl, e == null ? void 0 : e.accessToken, {
|
|
9445
|
-
lensId:
|
|
9451
|
+
lensId: c,
|
|
9446
9452
|
version: t,
|
|
9447
|
-
dashboardId:
|
|
9453
|
+
dashboardId: l()
|
|
9448
9454
|
// payload: true,
|
|
9449
9455
|
}),
|
|
9450
9456
|
// staleTime: Infinity,
|
|
9451
|
-
enabled:
|
|
9457
|
+
enabled: u()
|
|
9452
9458
|
//!!authToken?.accessToken,
|
|
9453
9459
|
});
|
|
9454
9460
|
return he(() => {
|
|
9455
|
-
const
|
|
9456
|
-
|
|
9457
|
-
}, [
|
|
9461
|
+
const b = l(), y = s.current;
|
|
9462
|
+
y && y !== b && ks.emit("dashboard:unload"), s.current = b;
|
|
9463
|
+
}, [i == null ? void 0 : i.id, a, n == null ? void 0 : n.dashboard_id]), he(() => {
|
|
9464
|
+
o && g();
|
|
9465
|
+
}, [o]), { data: d, isLoading: h, isFetching: p, isError: m, refetch: g };
|
|
9458
9466
|
}
|
|
9459
9467
|
function rre() {
|
|
9460
9468
|
const { authToken: e } = tt(), t = ne((r) => r.authToken), { setAuthToken: n } = nn();
|
|
@@ -22950,7 +22958,7 @@ function Hhe(e) {
|
|
|
22950
22958
|
return q && (Me.pagination = {
|
|
22951
22959
|
page: ((se = x.paginationConfig) == null ? void 0 : se.page) || 1,
|
|
22952
22960
|
pageSize: ((ce = x.paginationConfig) == null ? void 0 : ce.pageSize) || ((Ce = (ge = x.preferences) == null ? void 0 : ge.tablePrefs) == null ? void 0 : Ce.pageSize) || 50
|
|
22953
|
-
}),
|
|
22961
|
+
}), await Q6(
|
|
22954
22962
|
`${n.apiServiceUrl}/v1/query`,
|
|
22955
22963
|
(t == null ? void 0 : t.accessToken) || (a == null ? void 0 : a.accessToken) || "",
|
|
22956
22964
|
Me
|
|
@@ -50394,31 +50402,29 @@ function Lke(e, t, n, r, o, i) {
|
|
|
50394
50402
|
);
|
|
50395
50403
|
}
|
|
50396
50404
|
async function NW(e, t) {
|
|
50397
|
-
var
|
|
50405
|
+
var a;
|
|
50398
50406
|
if (ne.getState().isDownloadingPdf)
|
|
50399
50407
|
return;
|
|
50400
50408
|
const r = Intl.DateTimeFormat().resolvedOptions().timeZone, o = new URLSearchParams();
|
|
50401
50409
|
o.set("theme", t.theme), o.set("filterValues", JSON.stringify(t.filterValues)), o.set("dashboardId", t.dashboardId), t.selectedSheetId !== void 0 && o.set("selectedSheetId", t.selectedSheetId), t.dashboardTitle !== void 0 && o.set("dashboardTitle", t.dashboardTitle), t.visualId !== void 0 && o.set("visualId", t.visualId), t.frameId !== void 0 && o.set("frameId", t.frameId), t.tableMode !== void 0 && o.set("tableMode", String(t.tableMode)), t.cardType !== void 0 && o.set("cardType", t.cardType), t.cardTitle !== void 0 && o.set("reportTitle", t.cardTitle), t.password && o.set("password", t.password), t.pageSize && o.set("pageSize", t.pageSize), t.orientation && o.set("orientation", t.orientation), t.filterLine && o.set("filterLine", t.filterLine), o.set("timezone", t.timezone || r), t.sheetSelection && o.set("sheetSelection", t.sheetSelection);
|
|
50402
50410
|
const i = `${e}/v1/pdf?params=${encodeURIComponent(o.toString())}`;
|
|
50403
50411
|
ne.setState({ isDownloadingPdf: !0 });
|
|
50404
|
-
const a = (l = ne.getState().authToken) == null ? void 0 : l.accessToken, s = (c = t.authToken) == null ? void 0 : c.accessToken;
|
|
50405
|
-
console.log("[/v1/pdf] token source: context"), !s || !a ? console.log("[/v1/pdf] TOKEN NULL - context:", s ? "present" : "null", ", store:", a ? "present" : "null") : s !== a && (console.log("[/v1/pdf] TOKEN MISMATCH - context token differs from store token"), console.log("[/v1/pdf] context token:", s), console.log("[/v1/pdf] store token:", a));
|
|
50406
50412
|
try {
|
|
50407
|
-
const
|
|
50413
|
+
const s = await fetch(i, {
|
|
50408
50414
|
method: "GET",
|
|
50409
50415
|
headers: {
|
|
50410
|
-
Authorization: `Bearer ${(
|
|
50416
|
+
Authorization: `Bearer ${(a = t.authToken) == null ? void 0 : a.accessToken}`
|
|
50411
50417
|
}
|
|
50412
50418
|
});
|
|
50413
|
-
if (!
|
|
50414
|
-
throw new Error(`HTTP error! status: ${
|
|
50415
|
-
const
|
|
50416
|
-
if (!
|
|
50419
|
+
if (!s.ok)
|
|
50420
|
+
throw new Error(`HTTP error! status: ${s.status}`);
|
|
50421
|
+
const l = await s.json();
|
|
50422
|
+
if (!l.url)
|
|
50417
50423
|
throw new Error("No download URL received from server");
|
|
50418
|
-
const
|
|
50419
|
-
|
|
50420
|
-
} catch (
|
|
50421
|
-
throw ne.setState({ isDownloadingPdf: !1 }),
|
|
50424
|
+
const c = l.url, u = document.createElement("a");
|
|
50425
|
+
u.href = c, u.download = t.fileName, u.click(), ne.setState({ isDownloadingPdf: !1 });
|
|
50426
|
+
} catch (s) {
|
|
50427
|
+
throw ne.setState({ isDownloadingPdf: !1 }), s;
|
|
50422
50428
|
}
|
|
50423
50429
|
}
|
|
50424
50430
|
function kW(e) {
|
|
@@ -113505,10 +113511,10 @@ function KQe() {
|
|
|
113505
113511
|
}
|
|
113506
113512
|
);
|
|
113507
113513
|
}
|
|
113508
|
-
const ZQe = Gw(() => import("./dashboard-controls-
|
|
113509
|
-
() => import("./edit-dashboard-visual-
|
|
113510
|
-
), QQe = Gw(() => import("./dashboard-json-
|
|
113511
|
-
() => import("./resource-management-panel-
|
|
113514
|
+
const ZQe = Gw(() => import("./dashboard-controls-YCOwB4c7.js")), XQe = Gw(
|
|
113515
|
+
() => import("./edit-dashboard-visual-DdK_bxBz.js")
|
|
113516
|
+
), QQe = Gw(() => import("./dashboard-json-BwJ6kZV2.js")), JQe = Gw(
|
|
113517
|
+
() => import("./resource-management-panel-Bt1zi1Yb.js").then(
|
|
113512
113518
|
(e) => ({ default: e.ResourceManagementPanel })
|
|
113513
113519
|
)
|
|
113514
113520
|
);
|
|
@@ -115131,164 +115137,164 @@ const itt = _.forwardRef(({ className: e, icon: t, tooltip: n, ...r }, o) => {
|
|
|
115131
115137
|
});
|
|
115132
115138
|
itt.displayName = "DevModeSwitch";
|
|
115133
115139
|
export {
|
|
115134
|
-
|
|
115135
|
-
|
|
115140
|
+
DQe as $,
|
|
115141
|
+
CD as A,
|
|
115136
115142
|
le as B,
|
|
115137
115143
|
qr as C,
|
|
115138
115144
|
vQe as D,
|
|
115139
115145
|
nu as E,
|
|
115140
115146
|
MR as F,
|
|
115141
|
-
|
|
115142
|
-
|
|
115147
|
+
Htt as G,
|
|
115148
|
+
Utt as H,
|
|
115143
115149
|
Wu as I,
|
|
115144
|
-
|
|
115145
|
-
|
|
115150
|
+
tre as J,
|
|
115151
|
+
kCe as K,
|
|
115146
115152
|
Zn as L,
|
|
115147
|
-
|
|
115148
|
-
|
|
115149
|
-
|
|
115153
|
+
Ptt as M,
|
|
115154
|
+
ont as N,
|
|
115155
|
+
utt as O,
|
|
115150
115156
|
Jo as P,
|
|
115151
|
-
|
|
115157
|
+
dtt as Q,
|
|
115152
115158
|
Wt as R,
|
|
115153
115159
|
w8 as S,
|
|
115154
|
-
|
|
115160
|
+
Ng as T,
|
|
115155
115161
|
UQ as U,
|
|
115156
|
-
|
|
115157
|
-
|
|
115162
|
+
gtt as V,
|
|
115163
|
+
ztt as W,
|
|
115158
115164
|
Pt as X,
|
|
115159
|
-
|
|
115160
|
-
|
|
115161
|
-
|
|
115165
|
+
rSe as Y,
|
|
115166
|
+
Jtt as Z,
|
|
115167
|
+
ent as _,
|
|
115162
115168
|
rnt as a,
|
|
115163
|
-
|
|
115164
|
-
|
|
115165
|
-
|
|
115166
|
-
|
|
115167
|
-
|
|
115168
|
-
|
|
115169
|
-
|
|
115170
|
-
|
|
115171
|
-
|
|
115172
|
-
|
|
115173
|
-
|
|
115174
|
-
|
|
115175
|
-
|
|
115176
|
-
|
|
115177
|
-
|
|
115178
|
-
|
|
115179
|
-
|
|
115180
|
-
|
|
115181
|
-
|
|
115182
|
-
|
|
115183
|
-
|
|
115184
|
-
|
|
115185
|
-
|
|
115186
|
-
|
|
115187
|
-
|
|
115188
|
-
|
|
115189
|
-
|
|
115190
|
-
|
|
115191
|
-
|
|
115192
|
-
|
|
115193
|
-
|
|
115194
|
-
|
|
115195
|
-
|
|
115196
|
-
|
|
115197
|
-
|
|
115198
|
-
|
|
115199
|
-
|
|
115200
|
-
|
|
115201
|
-
|
|
115202
|
-
|
|
115203
|
-
|
|
115204
|
-
|
|
115205
|
-
|
|
115206
|
-
|
|
115207
|
-
|
|
115208
|
-
|
|
115209
|
-
|
|
115210
|
-
|
|
115211
|
-
|
|
115212
|
-
|
|
115213
|
-
|
|
115214
|
-
|
|
115215
|
-
|
|
115216
|
-
|
|
115217
|
-
|
|
115218
|
-
|
|
115219
|
-
|
|
115220
|
-
|
|
115221
|
-
|
|
115222
|
-
|
|
115223
|
-
|
|
115224
|
-
|
|
115225
|
-
|
|
115226
|
-
|
|
115169
|
+
Ko as a$,
|
|
115170
|
+
tnt as a0,
|
|
115171
|
+
nnt as a1,
|
|
115172
|
+
TQe as a2,
|
|
115173
|
+
is as a3,
|
|
115174
|
+
e1 as a4,
|
|
115175
|
+
va as a5,
|
|
115176
|
+
Kd as a6,
|
|
115177
|
+
Y6 as a7,
|
|
115178
|
+
G6 as a8,
|
|
115179
|
+
K6 as a9,
|
|
115180
|
+
yn as aA,
|
|
115181
|
+
oi as aB,
|
|
115182
|
+
Ntt as aC,
|
|
115183
|
+
Lr as aD,
|
|
115184
|
+
Xo as aE,
|
|
115185
|
+
_d as aF,
|
|
115186
|
+
Lb as aG,
|
|
115187
|
+
zb as aH,
|
|
115188
|
+
Db as aI,
|
|
115189
|
+
xp as aJ,
|
|
115190
|
+
fa as aK,
|
|
115191
|
+
t1 as aL,
|
|
115192
|
+
itt as aM,
|
|
115193
|
+
wP as aN,
|
|
115194
|
+
S1 as aO,
|
|
115195
|
+
jb as aP,
|
|
115196
|
+
Hb as aQ,
|
|
115197
|
+
BD as aR,
|
|
115198
|
+
Wb as aS,
|
|
115199
|
+
qb as aT,
|
|
115200
|
+
Ub as aU,
|
|
115201
|
+
Gb as aV,
|
|
115202
|
+
Yb as aW,
|
|
115203
|
+
Ec as aX,
|
|
115204
|
+
ZOe as aY,
|
|
115205
|
+
fs as aZ,
|
|
115206
|
+
pr as a_,
|
|
115207
|
+
as as aa,
|
|
115208
|
+
htt as ab,
|
|
115209
|
+
ptt as ac,
|
|
115210
|
+
mne as ad,
|
|
115211
|
+
sk as ae,
|
|
115212
|
+
hD as af,
|
|
115213
|
+
Z6 as ag,
|
|
115214
|
+
US as ah,
|
|
115215
|
+
wne as ai,
|
|
115216
|
+
Sne as aj,
|
|
115217
|
+
Cne as ak,
|
|
115218
|
+
Dtt as al,
|
|
115219
|
+
RRe as am,
|
|
115220
|
+
tt as an,
|
|
115221
|
+
n1 as ao,
|
|
115222
|
+
f7 as ap,
|
|
115223
|
+
lY as aq,
|
|
115224
|
+
Ske as ar,
|
|
115225
|
+
Po as as,
|
|
115226
|
+
ho as at,
|
|
115227
|
+
po as au,
|
|
115228
|
+
mo as av,
|
|
115229
|
+
ii as aw,
|
|
115230
|
+
de as ax,
|
|
115231
|
+
jn as ay,
|
|
115232
|
+
wp as az,
|
|
115227
115233
|
we as b,
|
|
115228
115234
|
Ltt as b$,
|
|
115229
|
-
|
|
115230
|
-
|
|
115231
|
-
|
|
115232
|
-
|
|
115233
|
-
|
|
115234
|
-
|
|
115235
|
-
|
|
115236
|
-
|
|
115237
|
-
|
|
115238
|
-
|
|
115239
|
-
|
|
115240
|
-
|
|
115241
|
-
|
|
115242
|
-
|
|
115243
|
-
|
|
115244
|
-
|
|
115245
|
-
|
|
115246
|
-
|
|
115247
|
-
|
|
115248
|
-
|
|
115249
|
-
|
|
115250
|
-
|
|
115251
|
-
|
|
115252
|
-
|
|
115253
|
-
|
|
115254
|
-
|
|
115255
|
-
|
|
115256
|
-
|
|
115257
|
-
|
|
115258
|
-
|
|
115259
|
-
|
|
115260
|
-
|
|
115261
|
-
|
|
115262
|
-
|
|
115263
|
-
|
|
115264
|
-
|
|
115235
|
+
oae as b0,
|
|
115236
|
+
$n as b1,
|
|
115237
|
+
ID as b2,
|
|
115238
|
+
xd as b3,
|
|
115239
|
+
RD as b4,
|
|
115240
|
+
wtt as b5,
|
|
115241
|
+
Bb as b6,
|
|
115242
|
+
Oie as b7,
|
|
115243
|
+
Vr as b8,
|
|
115244
|
+
fx as b9,
|
|
115245
|
+
Ea as bA,
|
|
115246
|
+
Ife as bB,
|
|
115247
|
+
_6 as bC,
|
|
115248
|
+
bD,
|
|
115249
|
+
Q6 as bE,
|
|
115250
|
+
_tt as bF,
|
|
115251
|
+
qm as bG,
|
|
115252
|
+
Stt as bH,
|
|
115253
|
+
Sue as bI,
|
|
115254
|
+
Z8 as bJ,
|
|
115255
|
+
d$e as bK,
|
|
115256
|
+
Es as bL,
|
|
115257
|
+
Vc as bM,
|
|
115258
|
+
Ph as bN,
|
|
115259
|
+
Fh as bO,
|
|
115260
|
+
Ott as bP,
|
|
115261
|
+
zH as bQ,
|
|
115262
|
+
Oo as bR,
|
|
115263
|
+
go as bS,
|
|
115264
|
+
Xt as bT,
|
|
115265
|
+
tr as bU,
|
|
115266
|
+
xa as bV,
|
|
115267
|
+
Nae as bW,
|
|
115268
|
+
jH as bX,
|
|
115269
|
+
rc as bY,
|
|
115270
|
+
OCe as bZ,
|
|
115265
115271
|
pT as b_,
|
|
115266
|
-
|
|
115267
|
-
|
|
115268
|
-
|
|
115269
|
-
|
|
115270
|
-
|
|
115271
|
-
|
|
115272
|
-
|
|
115273
|
-
|
|
115274
|
-
|
|
115275
|
-
|
|
115276
|
-
|
|
115277
|
-
|
|
115278
|
-
|
|
115279
|
-
|
|
115280
|
-
|
|
115281
|
-
|
|
115282
|
-
|
|
115283
|
-
|
|
115284
|
-
|
|
115285
|
-
|
|
115286
|
-
|
|
115287
|
-
|
|
115288
|
-
|
|
115289
|
-
|
|
115290
|
-
|
|
115291
|
-
|
|
115272
|
+
CP as ba,
|
|
115273
|
+
Ro as bb,
|
|
115274
|
+
zh as bc,
|
|
115275
|
+
fp as bd,
|
|
115276
|
+
wd as be,
|
|
115277
|
+
Mo as bf,
|
|
115278
|
+
Ctt as bg,
|
|
115279
|
+
ri as bh,
|
|
115280
|
+
$de as bi,
|
|
115281
|
+
ni as bj,
|
|
115282
|
+
Xie as bk,
|
|
115283
|
+
ECe as bl,
|
|
115284
|
+
xtt as bm,
|
|
115285
|
+
Xue as bn,
|
|
115286
|
+
sr as bo,
|
|
115287
|
+
Tn as bp,
|
|
115288
|
+
Mn as bq,
|
|
115289
|
+
rz as br,
|
|
115290
|
+
On as bs,
|
|
115291
|
+
Zue as bt,
|
|
115292
|
+
Tke as bu,
|
|
115293
|
+
Lde as bv,
|
|
115294
|
+
Afe as bw,
|
|
115295
|
+
_b as bx,
|
|
115296
|
+
zde as by,
|
|
115297
|
+
Cl as bz,
|
|
115292
115298
|
J as c,
|
|
115293
115299
|
oz as c$,
|
|
115294
115300
|
g$e as c0,
|