react-semaphor 0.1.525 → 0.1.526
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.js +37 -37
- package/dist/briefings/index.js +3 -3
- package/dist/chunks/{calculated-field-identity-Dy_WpDdo.js → calculated-field-identity-D1ofR4KJ.js} +28 -28
- package/dist/chunks/{card-config-utils-CAyjC5Tp.js → card-config-utils-9sv4e-Vb.js} +15 -15
- package/dist/chunks/{switch-CWPcwAZ4.js → code-highlight-994tgM9v.js} +6309 -8642
- package/dist/chunks/dashboard-CsHvEtjN.js +15 -0
- package/dist/chunks/{dashboard-briefing-launcher-BilVIEyw.js → dashboard-briefing-launcher-DXz1GhFZ.js} +364 -370
- package/dist/chunks/{dashboard-controls-DyLPcvCK.js → dashboard-controls-Df8qOSrs.js} +163 -168
- package/dist/chunks/dashboard-json-Xldp0qww.js +65 -0
- package/dist/chunks/{edit-dashboard-visual-DtmKNNdE.js → edit-dashboard-visual-COHBqyic.js} +1108 -1107
- package/dist/chunks/editor-action-buttons-DahlP57T.js +2071 -0
- package/dist/chunks/{index-ON7Gpvcv.js → index-CbjuruKe.js} +40 -40
- package/dist/chunks/{matrix-control-sources-B1K7x0SL.js → matrix-control-sources-2VAzGlt8.js} +29 -29
- package/dist/chunks/pre-block-Cq1RqhZX.js +3987 -0
- package/dist/chunks/report-preferences-dialog-BcH-0lR-.js +1232 -0
- package/dist/chunks/search-CJz-QQ0Q.js +24 -0
- package/dist/chunks/{selection-reducer-CvCBQbl2.js → selection-reducer-NF5C07yM.js} +25 -46
- package/dist/chunks/{index-DYOaHuLS.js → semaphor-ready-indicator-BLRDuLr4.js} +142229 -147767
- package/dist/chunks/slider-BYIH4icg.js +877 -0
- package/dist/chunks/switch-XaAACBrJ.js +2234 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +4 -4
- package/dist/data-app-builder/index.js +67 -67
- package/dist/data-app-sdk/index.js +33 -32
- package/dist/index.js +435 -243
- package/dist/surfboard/index.js +4 -5
- package/dist/types/components/dashboard/dashboard-container.d.ts +1 -1
- package/dist/types/components/dashboard/sheet/layout-change-guard.d.ts +1 -1
- package/dist/types/components/dashboard/sheet/sheet-layout.d.ts +1 -1
- package/dist/types/components/editor/editor-main/text-card.d.ts +1 -1
- package/dist/types/components/editor/editor.d.ts +1 -1
- package/dist/types/components/providers/semaphor-context-provider.d.ts +1 -1
- package/dist/types/components/providers/theme-provider-context.d.ts +1 -1
- package/dist/types/components/providers/theme-provider.d.ts +1 -1
- package/dist/types/components/shared/unsaved-changes/use-pristine-snapshot-initializer.d.ts +1 -1
- package/dist/types/components/surfboard/dashboard-plus.d.ts +1 -1
- package/dist/types/components/visual/column-display-utils.d.ts +1 -1
- package/dist/types/components/visual/kpi-visual/kpi-utils.d.ts +1 -1
- package/dist/types/components/visual/settings/color-format.d.ts +1 -1
- package/dist/types/components/visual/visual-utils.d.ts +1 -1
- package/dist/types/lib/actions/data-point-click-action.d.ts +2 -1
- package/dist/types/lib/dashboard/normalize-dashboard-for-dirty-check.d.ts +1 -1
- package/dist/types/lib/hooks/explorer/use-schemas.d.ts +1 -1
- package/dist/types/lib/hooks/use-dashboard.d.ts +2 -2
- package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +1 -2
- package/dist/types/lib/stores/editor-store.d.ts +1 -2
- package/dist/types/lib/stores/table-actions.d.ts +2 -1
- package/dist/types/lib/types/token-types.d.ts +0 -12
- package/dist/types/lib/utils.d.ts +0 -2
- package/package.json +2 -1
- package/dist/chunks/dashboard-json-QEoU-mx4.js +0 -75
- package/dist/chunks/editor-action-buttons-B9VRW3Bh.js +0 -2019
- package/dist/chunks/report-preferences-dialog-BLaFmlE2.js +0 -723
- package/dist/types/lib/encrypt-utils.d.ts +0 -9
|
@@ -2,11 +2,12 @@ import { toSemaphorInputSnapshots as rt, toSemaphorInputBinding as tt, toSemapho
|
|
|
2
2
|
import { jsxs as p, Fragment as Tr, jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import { createContext as Ae, useContext as Q, useState as _, useRef as T, useEffect as B, useMemo as x, Fragment as ct, useId as kr, useCallback as L, useReducer as ft } from "react";
|
|
4
4
|
import { q as pt, u as gt, ad as mt, aX as xe, s as yt } from "../chunks/validators-CsdOtZI6.js";
|
|
5
|
-
import { a as
|
|
5
|
+
import { a as Co, b1 as Eo } from "../chunks/validators-CsdOtZI6.js";
|
|
6
6
|
import { Q as ht, a6 as bt, a5 as vt, D as sr, t as ar, L as St } from "../chunks/matrix-operation-contract-D32U2CSw.js";
|
|
7
7
|
import { m as lr } from "../chunks/matrix-formatter-WBgtebUT.js";
|
|
8
|
-
import {
|
|
9
|
-
import { X as
|
|
8
|
+
import { a as wt, M as It, E as xt, r as dr } from "../chunks/selection-reducer-NF5C07yM.js";
|
|
9
|
+
import { X as qt, C as At, j as Tt } from "../chunks/x-CXDkqdur.js";
|
|
10
|
+
import { S as kt, C as Ct } from "../chunks/search-CJz-QQ0Q.js";
|
|
10
11
|
function he(e, r, t) {
|
|
11
12
|
return {
|
|
12
13
|
...t,
|
|
@@ -14,13 +15,13 @@ function he(e, r, t) {
|
|
|
14
15
|
role: r
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
+
function mo(e) {
|
|
18
19
|
return e;
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
+
function yo(e) {
|
|
21
22
|
return e;
|
|
22
23
|
}
|
|
23
|
-
const
|
|
24
|
+
const ho = {
|
|
24
25
|
source: {
|
|
25
26
|
semantic(e) {
|
|
26
27
|
return {
|
|
@@ -1656,7 +1657,7 @@ function Or() {
|
|
|
1656
1657
|
const e = V[V.length - 1];
|
|
1657
1658
|
e ? window.__SEMAPHOR_DEVTOOLS__ = e.bridge : delete window.__SEMAPHOR_DEVTOOLS__;
|
|
1658
1659
|
}
|
|
1659
|
-
function
|
|
1660
|
+
function bo({
|
|
1660
1661
|
id: e,
|
|
1661
1662
|
title: r,
|
|
1662
1663
|
children: t
|
|
@@ -1792,13 +1793,13 @@ function tn({
|
|
|
1792
1793
|
"aria-label": "Close Semaphor Inspector",
|
|
1793
1794
|
style: a.iconButton,
|
|
1794
1795
|
onClick: s.closeDevtools,
|
|
1795
|
-
children: /* @__PURE__ */ l(
|
|
1796
|
+
children: /* @__PURE__ */ l(qt, { size: 15 })
|
|
1796
1797
|
}
|
|
1797
1798
|
)
|
|
1798
1799
|
] })
|
|
1799
1800
|
] }),
|
|
1800
1801
|
/* @__PURE__ */ p("label", { style: a.searchBox, children: [
|
|
1801
|
-
/* @__PURE__ */ l(
|
|
1802
|
+
/* @__PURE__ */ l(kt, { size: 14 }),
|
|
1802
1803
|
/* @__PURE__ */ l(
|
|
1803
1804
|
"input",
|
|
1804
1805
|
{
|
|
@@ -1904,7 +1905,7 @@ function tn({
|
|
|
1904
1905
|
) : null
|
|
1905
1906
|
] });
|
|
1906
1907
|
}
|
|
1907
|
-
function
|
|
1908
|
+
function vo({
|
|
1908
1909
|
queryId: e,
|
|
1909
1910
|
viewId: r,
|
|
1910
1911
|
label: t,
|
|
@@ -1948,7 +1949,7 @@ function bo({
|
|
|
1948
1949
|
viewId: u.viewId
|
|
1949
1950
|
}),
|
|
1950
1951
|
children: [
|
|
1951
|
-
/* @__PURE__ */ l(
|
|
1952
|
+
/* @__PURE__ */ l(xt, { size: 13 }),
|
|
1952
1953
|
/* @__PURE__ */ l("span", { style: a.inspectButtonText, children: ((h = u.latestAttempt) == null ? void 0 : h.status) || "idle" })
|
|
1953
1954
|
]
|
|
1954
1955
|
}
|
|
@@ -2340,7 +2341,7 @@ function dn({
|
|
|
2340
2341
|
onClick: () => n((u) => !u),
|
|
2341
2342
|
children: [
|
|
2342
2343
|
/* @__PURE__ */ p("span", { style: a.issueSummaryHeaderLabel, children: [
|
|
2343
|
-
t ? /* @__PURE__ */ l(
|
|
2344
|
+
t ? /* @__PURE__ */ l(At, { size: 13 }) : /* @__PURE__ */ l(Ct, { size: 13 }),
|
|
2344
2345
|
/* @__PURE__ */ l("span", { children: "Issues" })
|
|
2345
2346
|
] }),
|
|
2346
2347
|
/* @__PURE__ */ l("span", { style: a.issueSummaryCount, children: e.length })
|
|
@@ -4104,7 +4105,7 @@ function Qi(e) {
|
|
|
4104
4105
|
if (!e.token)
|
|
4105
4106
|
return "";
|
|
4106
4107
|
try {
|
|
4107
|
-
return
|
|
4108
|
+
return Tt(e.token).apiServiceUrl || "";
|
|
4108
4109
|
} catch {
|
|
4109
4110
|
return "";
|
|
4110
4111
|
}
|
|
@@ -4117,7 +4118,7 @@ function Ui() {
|
|
|
4117
4118
|
function Gi() {
|
|
4118
4119
|
return Q(Yr);
|
|
4119
4120
|
}
|
|
4120
|
-
function
|
|
4121
|
+
function So(e) {
|
|
4121
4122
|
const [r, t] = _(e.defaultValue), n = Object.prototype.hasOwnProperty.call(e, "value"), i = n ? e.value : r, o = x(
|
|
4122
4123
|
() => qr(e.options),
|
|
4123
4124
|
[e.options]
|
|
@@ -4158,7 +4159,7 @@ function vo(e) {
|
|
|
4158
4159
|
};
|
|
4159
4160
|
}, [f, o, s, e, i]);
|
|
4160
4161
|
}
|
|
4161
|
-
function
|
|
4162
|
+
function wo(e) {
|
|
4162
4163
|
const [r, t] = _(() => no(e));
|
|
4163
4164
|
return B(() => {
|
|
4164
4165
|
t((n) => {
|
|
@@ -4208,7 +4209,7 @@ function So(e) {
|
|
|
4208
4209
|
[e, r]
|
|
4209
4210
|
);
|
|
4210
4211
|
}
|
|
4211
|
-
function
|
|
4212
|
+
function Io(e, r) {
|
|
4212
4213
|
const t = (r == null ? void 0 : r.status) === "success" ? r.options : void 0, n = x(() => Yi(t), [t]);
|
|
4213
4214
|
B(() => {
|
|
4214
4215
|
Ji(e.value, t) || e.clear();
|
|
@@ -4230,7 +4231,7 @@ function Yi(e) {
|
|
|
4230
4231
|
function wr(e) {
|
|
4231
4232
|
return `${typeof e}:${String(e)}`;
|
|
4232
4233
|
}
|
|
4233
|
-
function
|
|
4234
|
+
function xo(e, r = {}) {
|
|
4234
4235
|
const t = x(
|
|
4235
4236
|
() => r.inputs ? {
|
|
4236
4237
|
...e,
|
|
@@ -4653,7 +4654,7 @@ function no(e) {
|
|
|
4653
4654
|
function Ie(e) {
|
|
4654
4655
|
throw new Error(`Unsupported Semaphor query kind: ${JSON.stringify(e)}`);
|
|
4655
4656
|
}
|
|
4656
|
-
function
|
|
4657
|
+
function qo(e) {
|
|
4657
4658
|
const [r, t] = _(() => xr(e, e.defaultTuples || [])), n = Object.prototype.hasOwnProperty.call(e, "tuples"), i = xr(
|
|
4658
4659
|
e,
|
|
4659
4660
|
n ? e.tuples || [] : r
|
|
@@ -4731,7 +4732,7 @@ function Zr(e, r) {
|
|
|
4731
4732
|
function io(e) {
|
|
4732
4733
|
return !e || typeof e == "boolean" || e.enabled === !1 ? null : e.autoRenderDevtools === !0 ? {} : e.autoRenderDevtools ? e.autoRenderDevtools : null;
|
|
4733
4734
|
}
|
|
4734
|
-
function
|
|
4735
|
+
function Ao({
|
|
4735
4736
|
token: e,
|
|
4736
4737
|
apiBaseUrl: r,
|
|
4737
4738
|
executor: t,
|
|
@@ -4754,21 +4755,21 @@ function qo({
|
|
|
4754
4755
|
] }) });
|
|
4755
4756
|
}
|
|
4756
4757
|
export {
|
|
4757
|
-
|
|
4758
|
+
Ao as SemaphorDataAppProvider,
|
|
4758
4759
|
tn as SemaphorDevtools,
|
|
4759
|
-
|
|
4760
|
-
|
|
4760
|
+
vo as SemaphorDevtoolsInspectButton,
|
|
4761
|
+
bo as SemaphorViewBoundary,
|
|
4761
4762
|
_i as createSemaphorQueryExecutor,
|
|
4762
|
-
|
|
4763
|
-
|
|
4763
|
+
mo as defineSemaphorDataApp,
|
|
4764
|
+
yo as defineSemaphorInput,
|
|
4764
4765
|
Ji as isSemaphorInputValueValidForOptions,
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4766
|
+
ho as semaphor,
|
|
4767
|
+
Co as semaphorMetricAggregate,
|
|
4768
|
+
Eo as semaphorMetricMeasureBindingKey,
|
|
4769
|
+
Io as useClearInvalidSemaphorInputValue,
|
|
4769
4770
|
Dr as useSemaphorDevtools,
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4771
|
+
So as useSemaphorInput,
|
|
4772
|
+
wo as useSemaphorInputs,
|
|
4773
|
+
xo as useSemaphorQuery,
|
|
4774
|
+
qo as useSemaphorSelection
|
|
4774
4775
|
};
|