@databrainhq/plugin 0.17.9-beta.95 → 0.17.9-beta.97
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/{Accordion-B-mKRAWy.mjs → Accordion-W0sRsDtP.mjs} +1 -1
- package/dist/{CardChartSlot-_TC873op.mjs → CardChartSlot-CRNSMqST.mjs} +5 -5
- package/dist/{Chart-DNHZ6SMy.mjs → Chart-Ci82bD4z.mjs} +7 -7
- package/dist/{ChartTypePanel-CC4Iuwdq.mjs → ChartTypePanel-CBWi0BYr.mjs} +8 -8
- package/dist/{CreateGlobalFilter-j2uBDJVD.mjs → CreateGlobalFilter-DhMGRDgS.mjs} +2 -2
- package/dist/{CreateMetricV2-D29UHdPD.mjs → CreateMetricV2-DGbaMJwU.mjs} +11 -11
- package/dist/{HorizontalStackTable-1nBdw-Y2.mjs → HorizontalStackTable-DCOqlS-x.mjs} +3 -3
- package/dist/{ManageMetricsV2-8NR2OJfn.mjs → ManageMetricsV2-_IjBxrmV.mjs} +3 -3
- package/dist/{MetricCardV2-X1ghet6c.mjs → MetricCardV2-9hPj6Jw6.mjs} +7 -7
- package/dist/{NoDataFound-7e3i8HFj.mjs → NoDataFound-COEpAwNN.mjs} +1 -1
- package/dist/{Panel-DBQAP9V5.mjs → Panel-DT1T9FQC.mjs} +1 -1
- package/dist/{PivotTableV2-CmhAUHG7.mjs → PivotTableV2-BimXCOxD.mjs} +2 -2
- package/dist/{PivotTableV3-gq2lHBei.mjs → PivotTableV3-D8eVea4_.mjs} +4 -4
- package/dist/{Portal-DhF0FxQQ.mjs → Portal-CHbWTdj-.mjs} +2 -2
- package/dist/{RadioButton-CP70GAyO.mjs → RadioButton-D6uQxa8X.mjs} +1 -1
- package/dist/{ScheduleEmail-KhKZMYei.mjs → ScheduleEmail-CU4pFO52.mjs} +6 -6
- package/dist/{SearchMetricData-Bsc1eiXr.mjs → SearchMetricData-D5HY3Md4.mjs} +17 -17
- package/dist/{SortPanel-CrhuxkYP.mjs → SortPanel-DONqZ8e6.mjs} +8 -8
- package/dist/{Table-CFciCnZJ.mjs → Table-CSbhB_2F.mjs} +4 -4
- package/dist/{TagInputField-BnGy4Anr.mjs → TagInputField-iiJeQwlq.mjs} +4 -4
- package/dist/{TextAreaField-J3ve9WmH.mjs → TextAreaField-BDw5veG9.mjs} +2 -2
- package/dist/{TimeSeriesSettings-Dy4ReAUW.mjs → TimeSeriesSettings-CH4FQD84.mjs} +2 -2
- package/dist/{clickActions-CyBnJew8.mjs → clickActions-BEigtGIE.mjs} +9 -9
- package/dist/{conditionalFormatting-CtQm4eTv.mjs → conditionalFormatting-DQAe5cYN.mjs} +1 -1
- package/dist/{createGlobalFilter.module-BYQq-DF1.mjs → createGlobalFilter.module-Dxvy1MRi.mjs} +1 -1
- package/dist/{crossPointer-CAqzMjsB.mjs → crossPointer-Bm4RHOfu.mjs} +3 -3
- package/dist/data.cjs +1 -1
- package/dist/data.mjs +1 -1
- package/dist/{metric.mutation-q65SXfMw.mjs → metric.mutation-DVUC9Be1.mjs} +1 -1
- package/dist/{pluginV3Request-DZK299Xe.mjs → pluginV3Request-kkTcVeiD.mjs} +2 -2
- package/dist/{renderer-B0vdyVW4.mjs → renderer-FonTwlG0.mjs} +1 -1
- package/dist/{timeseries-BSV_7c1y.mjs → timeseries-DUHWLyfG.mjs} +1 -1
- package/dist/{useGuesTokenUsageLog-Ds4kufGi.mjs → useGuesTokenUsageLog-BWh1IrzA.mjs} +1 -1
- package/dist/{useLoadingDeadline-vJ_smGwj.mjs → useLoadingDeadline-CVcXHFbK.mjs} +6 -6
- package/dist/{usePublishArchivedMetrics-pJN3xMLo.mjs → usePublishArchivedMetrics-DoJSh0sl.mjs} +2 -2
- package/dist/{useQuery-BMYmX4Z5.mjs → useQuery-BDT0_qZm.mjs} +1 -1
- package/dist/webcomponents.es.js +126 -123
- package/dist/webcomponents.umd.js +3 -3
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ var n = "ref_token", r = "https://api.usedatabrain.com", i = r, a = null, o = (e
|
|
|
16
16
|
}, s = (e) => {
|
|
17
17
|
let t = typeof e == "string" ? o(e) : null;
|
|
18
18
|
return t === null ? (typeof e == "string" && e.trim(), a = null, i = r, i) : (a !== null && a !== t && console.warn(`[databrain] two embeds on this page asked for different base-url values ("${a}" then "${t}"). The API origin is page-global, so the last one wins for BOTH. Render them on separate pages if they must differ.`), a = t, i = t, i);
|
|
19
|
-
}, c = "/api/v2/dashboard", l = "/api/v2/metric", u = "/api/v3/metric", d = "dashboardData", f = `${c}/embeddedMetric`, p = "embeddedMetric", ee = `${l}/layout`, te = "dashboardLayout", ne = `${c}/scheduledReportV2`, re = "dashboardScheduledReportV2", ie = `${l}/saveLayout`, ae = "saveLayout", oe = `${c}/saveScheduleReport`, se = "saveScheduleReport", ce = `${c}/deleteScheduleReport`, le = "deleteScheduleReport", ue = `${c}/createMetric`, de = "createMetric", fe = `${c}/updateMetric`, pe = "updateMetric", me = `${c}/updateAdminMetric`, he = "updateAdminMetric", m = `${c}/generateMetric`, h = "generateMetric", g = `${c}/datasetMetricCreation`, _ = "datasetMetricCreation", v = `${c}/previewTable`, y = "previewTable", b = `${c}/generatetMetricData`, x = "/generatetMetricData", S = `${c}/getOpenaiChatResponse`, C = "getOpenaiChatResponse", w = `${c}/createDashboardFilterView`, T = "createDashboardFilterView", E = `${c}/deleteDashboardFilterView`, D = "deleteDashboardFilterView", O = `${c}/updateDashboardFilters`, k = "updateDashboardFilters", A = `${c}/updateMetricFilterAlias`, j = "updateMetricFilterAlias", M = `${c}/updateDashboardFilterAlias`, N = "updateDashboardFilterAlias", P = `${c}/getDashboardFilterView`, F = "getDashboardFilterView", I = `${c}/getTheme`, L = "getTheme", R = `${u}/query`, ge = "query", _e = `${u}/datasetMetricCreation`, ve = "newDatasetMetricCreation", ye = `${u}/generateDataReport`, be = "generateDataReport", xe = `${u}/chatQuery`, Se = "chatQuery", Ce = `${u}/getDashboardScreenshot`, we = `${l}/rawDownloadSettings`, Te = "rawDownloadSettings", Ee = `${l}/underlyingData`, De = "underlyingData", Oe = `${l}/invokeShareCsv`, ke = "invokeShareCsv", Ae = `${u}/markArchived`, je = "markArchived", Me = `${u}/column`, Ne = "column", Pe = `${u}/addClientGalleryMetrics`, Fe = "addClientGalleryMetrics", Ie = `${u}/publishMetrics`, Le = "publishMetrics", Re = `${u}/download-csv`, ze = `${u}/downloadDashboardMetrics`, Be = "IS_LOADING", z = "DATA_LOADED", Ve = `${u}/summarizeMetric`, He = "summarizeMetric", Ue = `${u}/createGuestTokenUsageLog`, We = "createGuestTokenUsageLog", Ge = "ENTER_FULL_SCREEN_MODE", Ke = "EXIT_FULL_SCREEN_MODE", qe = "ENTER_SCHEDULED_REPORT_MODE", Je = "SAVE_SCHEDULED_REPORT", Ye = "EXIT_SCHEDULED_REPORT_MODE", Xe = "ENTER_CUSTOMIZE_LAYOUT_MODE", Ze = "EXIT_CUSTOMIZE_LAYOUT_MODE", Qe = "SAVE_LAYOUT", $e = "ENTER_MANAGE_METRICS_MODE", et = "ENTER_METRICS_GALLERY_MODE", tt = "EXIT_MANAGE_METRICS_MODE", nt = "EXIT_METRICS_GALLERY_MODE", rt = "SAVE_MANAGE_METRICS", it = "SAVE_CLIENT_GALLERY_METRICS", at = "ARCHIVE_METRIC", ot = "DOWNLOAD_METRIC", st = "DOWNLOAD_METRIC_WITHOUT_FILTERS", ct = "SAVE_METRIC_PNG", lt = "METRIC_FILTER_APPLIED", ut = "DASHBOARD_FILTER_APPLIED", dt = "CREATE_METRIC", ft = "UPDATE_METRIC", pt = "ENTER_CREATE_METRIC", mt = "ENTER_EDIT_METRIC", ht = "DATASET_SEARCH_FOCUSED", gt = "DATASET_TABLE_SELECTED", _t = "COLUMN_DRAGGED_TO_DIMENSIONS", vt = "COLUMN_DRAGGED_TO_MEASURES", yt = "COLUMN_AGGREGATE_CHANGED", bt = "CHART_TYPE_CHANGED", xt = "START_DOWNLOAD_ALL_METRICS", St = "DOWNLOAD_ALL_METRICS", Ct = "START_DASHBOARD_PDF", wt = "EXPORT_DASHBOARD_PDF", Tt = "0.17.9-beta.
|
|
19
|
+
}, c = "/api/v2/dashboard", l = "/api/v2/metric", u = "/api/v3/metric", d = "dashboardData", f = `${c}/embeddedMetric`, p = "embeddedMetric", ee = `${l}/layout`, te = "dashboardLayout", ne = `${c}/scheduledReportV2`, re = "dashboardScheduledReportV2", ie = `${l}/saveLayout`, ae = "saveLayout", oe = `${c}/saveScheduleReport`, se = "saveScheduleReport", ce = `${c}/deleteScheduleReport`, le = "deleteScheduleReport", ue = `${c}/createMetric`, de = "createMetric", fe = `${c}/updateMetric`, pe = "updateMetric", me = `${c}/updateAdminMetric`, he = "updateAdminMetric", m = `${c}/generateMetric`, h = "generateMetric", g = `${c}/datasetMetricCreation`, _ = "datasetMetricCreation", v = `${c}/previewTable`, y = "previewTable", b = `${c}/generatetMetricData`, x = "/generatetMetricData", S = `${c}/getOpenaiChatResponse`, C = "getOpenaiChatResponse", w = `${c}/createDashboardFilterView`, T = "createDashboardFilterView", E = `${c}/deleteDashboardFilterView`, D = "deleteDashboardFilterView", O = `${c}/updateDashboardFilters`, k = "updateDashboardFilters", A = `${c}/updateMetricFilterAlias`, j = "updateMetricFilterAlias", M = `${c}/updateDashboardFilterAlias`, N = "updateDashboardFilterAlias", P = `${c}/getDashboardFilterView`, F = "getDashboardFilterView", I = `${c}/getTheme`, L = "getTheme", R = `${u}/query`, ge = "query", _e = `${u}/datasetMetricCreation`, ve = "newDatasetMetricCreation", ye = `${u}/generateDataReport`, be = "generateDataReport", xe = `${u}/chatQuery`, Se = "chatQuery", Ce = `${u}/getDashboardScreenshot`, we = `${l}/rawDownloadSettings`, Te = "rawDownloadSettings", Ee = `${l}/underlyingData`, De = "underlyingData", Oe = `${l}/invokeShareCsv`, ke = "invokeShareCsv", Ae = `${u}/markArchived`, je = "markArchived", Me = `${u}/column`, Ne = "column", Pe = `${u}/addClientGalleryMetrics`, Fe = "addClientGalleryMetrics", Ie = `${u}/publishMetrics`, Le = "publishMetrics", Re = `${u}/download-csv`, ze = `${u}/downloadDashboardMetrics`, Be = "IS_LOADING", z = "DATA_LOADED", Ve = `${u}/summarizeMetric`, He = "summarizeMetric", Ue = `${u}/createGuestTokenUsageLog`, We = "createGuestTokenUsageLog", Ge = "ENTER_FULL_SCREEN_MODE", Ke = "EXIT_FULL_SCREEN_MODE", qe = "ENTER_SCHEDULED_REPORT_MODE", Je = "SAVE_SCHEDULED_REPORT", Ye = "EXIT_SCHEDULED_REPORT_MODE", Xe = "ENTER_CUSTOMIZE_LAYOUT_MODE", Ze = "EXIT_CUSTOMIZE_LAYOUT_MODE", Qe = "SAVE_LAYOUT", $e = "ENTER_MANAGE_METRICS_MODE", et = "ENTER_METRICS_GALLERY_MODE", tt = "EXIT_MANAGE_METRICS_MODE", nt = "EXIT_METRICS_GALLERY_MODE", rt = "SAVE_MANAGE_METRICS", it = "SAVE_CLIENT_GALLERY_METRICS", at = "ARCHIVE_METRIC", ot = "DOWNLOAD_METRIC", st = "DOWNLOAD_METRIC_WITHOUT_FILTERS", ct = "SAVE_METRIC_PNG", lt = "METRIC_FILTER_APPLIED", ut = "DASHBOARD_FILTER_APPLIED", dt = "CREATE_METRIC", ft = "UPDATE_METRIC", pt = "ENTER_CREATE_METRIC", mt = "ENTER_EDIT_METRIC", ht = "DATASET_SEARCH_FOCUSED", gt = "DATASET_TABLE_SELECTED", _t = "COLUMN_DRAGGED_TO_DIMENSIONS", vt = "COLUMN_DRAGGED_TO_MEASURES", yt = "COLUMN_AGGREGATE_CHANGED", bt = "CHART_TYPE_CHANGED", xt = "START_DOWNLOAD_ALL_METRICS", St = "DOWNLOAD_ALL_METRICS", Ct = "START_DASHBOARD_PDF", wt = "EXPORT_DASHBOARD_PDF", Tt = "0.17.9-beta.97", Et = "X-Dbn-Plugin-Version", Dt = "X-Dbn-Plugin-Contract", B = () => ({
|
|
20
20
|
[Et]: Tt,
|
|
21
21
|
[Dt]: "1"
|
|
22
22
|
}), V = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set(), U = () => {
|
|
@@ -38,7 +38,7 @@ var n = "ref_token", r = "https://api.usedatabrain.com", i = r, a = null, o = (e
|
|
|
38
38
|
}, G = class extends Error {
|
|
39
39
|
code;
|
|
40
40
|
constructor(e) {
|
|
41
|
-
super(e === "MISSING_CLIENT_ID" ? "
|
|
41
|
+
super(e === "MISSING_CLIENT_ID" ? "Select a client to load this data." : "The v3 plugin request has no auth principal"), this.name = "PluginV3AuthError", this.code = e;
|
|
42
42
|
}
|
|
43
43
|
}, K = class extends Error {
|
|
44
44
|
code = "V3_PATH_REQUIRED";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect as e, useMemo as t, useRef as n, useState as r } from "react";
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import { createRoot as i } from "react-dom/client";
|
|
4
|
-
import { m as a, r as o, u as s } from "./pluginV3Request-
|
|
4
|
+
import { m as a, r as o, u as s } from "./pluginV3Request-kkTcVeiD.mjs";
|
|
5
5
|
import { n as c } from "./guestAuth-B3cMy-JK.mjs";
|
|
6
6
|
import { a as l, c as u, i as d, l as f, n as p, o as m, r as h, s as g, t as _ } from "./config-Erpgv7JC.mjs";
|
|
7
7
|
import { t as v } from "./randomUuid-CSIcXQtE.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
|
-
import { Dr as e, Ga as t, Ii as n, Ir as r, Lr as i, Mi as a, Si as o, Ua as s, Vr as c, _r as l, aa as u, c as d, ei as f, gi as p, hi as m, kn as h, ui as g, xi as _, yi as v, yr as y } from "./Portal-
|
|
4
|
+
import { Dr as e, Ga as t, Ii as n, Ir as r, Lr as i, Mi as a, Si as o, Ua as s, Vr as c, _r as l, aa as u, c as d, ei as f, gi as p, hi as m, kn as h, ui as g, xi as _, yi as v, yr as y } from "./Portal-CHbWTdj-.mjs";
|
|
5
5
|
import { B as b, L as x, S, a as C, t as w } from "./format-q49rlYCT.mjs";
|
|
6
6
|
import { a as T, o as E } from "./text-CSXb1-LG.mjs";
|
|
7
7
|
import { Yr as D, t as O, ur as k, y as A } from "./extension-CGyFToYb.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
|
-
import { n as e } from "./metric.mutation-
|
|
4
|
+
import { n as e } from "./metric.mutation-DVUC9Be1.mjs";
|
|
5
5
|
// src/hooks/useGuesTokenUsageLog.ts
|
|
6
6
|
var t = () => {
|
|
7
7
|
let { mutateAsync: t } = e();
|
|
@@ -2,12 +2,12 @@ import * as e from "react";
|
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
4
|
import { d as t, o as n, p as r, s as i } from "./cardStates-YaeHm3yq.mjs";
|
|
5
|
-
import { _t as a, p as o, vt as s } from "./pluginV3Request-
|
|
6
|
-
import { K as c, et as l, it as u, l as d, ot as f } from "./metric.mutation-
|
|
7
|
-
import { Ai as p, Di as m, Ga as h, Gr as g, Jt as _, Kr as ee, Mn as te, Oi as ne, On as re, Pn as ie, Qi as ae, Qt as oe, Sn as v, Ui as se, Ut as ce, Wr as le, Xi as y, Xr as b, Xt as x, Za as ue, Zn as de, Zt as fe, _n as S, ci as C, ei as pe, fn as me, ii as he, mi as ge, na as _e, ni as w, nn as T, oa as ve, on as ye, oo as be, ot as xe, pn as Se, qr as Ce, rn as we, vn as Te, wn as Ee, xn as De, yo as Oe } from "./Portal-
|
|
8
|
-
import { a as ke } from "./timeseries-
|
|
9
|
-
import { _ as E } from "./crossPointer-
|
|
10
|
-
import { c as Ae, g as je, l as Me, n as Ne, s as Pe, u as Fe } from "./RadioButton-
|
|
5
|
+
import { _t as a, p as o, vt as s } from "./pluginV3Request-kkTcVeiD.mjs";
|
|
6
|
+
import { K as c, et as l, it as u, l as d, ot as f } from "./metric.mutation-DVUC9Be1.mjs";
|
|
7
|
+
import { Ai as p, Di as m, Ga as h, Gr as g, Jt as _, Kr as ee, Mn as te, Oi as ne, On as re, Pn as ie, Qi as ae, Qt as oe, Sn as v, Ui as se, Ut as ce, Wr as le, Xi as y, Xr as b, Xt as x, Za as ue, Zn as de, Zt as fe, _n as S, ci as C, ei as pe, fn as me, ii as he, mi as ge, na as _e, ni as w, nn as T, oa as ve, on as ye, oo as be, ot as xe, pn as Se, qr as Ce, rn as we, vn as Te, wn as Ee, xn as De, yo as Oe } from "./Portal-CHbWTdj-.mjs";
|
|
8
|
+
import { a as ke } from "./timeseries-DUHWLyfG.mjs";
|
|
9
|
+
import { _ as E } from "./crossPointer-Bm4RHOfu.mjs";
|
|
10
|
+
import { c as Ae, g as je, l as Me, n as Ne, s as Pe, u as Fe } from "./RadioButton-D6uQxa8X.mjs";
|
|
11
11
|
import { n as Ie } from "./safeNavigation-LZKioSSE.mjs";
|
|
12
12
|
import { t as D } from "./shadowContainer-CigTOXz8.mjs";
|
|
13
13
|
import { t as O } from "./createLucideIcon-B89xLYvS.mjs";
|
package/dist/{usePublishArchivedMetrics-pJN3xMLo.mjs → usePublishArchivedMetrics-DoJSh0sl.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useCallback as e } from "react";
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
|
-
import { nn as t } from "./pluginV3Request-
|
|
5
|
-
import { u as n } from "./metric.mutation-
|
|
4
|
+
import { nn as t } from "./pluginV3Request-kkTcVeiD.mjs";
|
|
5
|
+
import { u as n } from "./metric.mutation-DVUC9Be1.mjs";
|
|
6
6
|
// src/helpers/unpublishedMetric.ts
|
|
7
7
|
var r = "Unpublished. Only you can see this chart.", i = (e) => !e.createdByIdentifier || e.isPublished === !0 ? !1 : e.isPublished === !1 || !!e.externalDashboardMetrics?.[0]?.externalDashboard?.isAllowPrivateMetricsByDefault, a = (r, i) => {
|
|
8
8
|
let { mutate: a, isPending: o } = n();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "react-dom";
|
|
3
3
|
import "react-dom/client";
|
|
4
|
-
import { do as e, mo as t } from "./Portal-
|
|
4
|
+
import { do as e, mo as t } from "./Portal-CHbWTdj-.mjs";
|
|
5
5
|
// ../../../node_modules/.pnpm/@tanstack+react-query@5.103.2_react@19.3.0/node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
6
6
|
function n(n, r) {
|
|
7
7
|
return e(n, t, r);
|