@databrainhq/plugin 0.17.9-beta.89 → 0.17.9-beta.90

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 (43) hide show
  1. package/dist/{Accordion-Cm7NvhtU.mjs → Accordion-CBeM5jJS.mjs} +1 -1
  2. package/dist/{CardChartSlot-C6Mvfs25.mjs → CardChartSlot-B-Ngm7L2.mjs} +7 -7
  3. package/dist/{Chart-D59hFodU.mjs → Chart-DVy_ucZn.mjs} +8 -8
  4. package/dist/{ChartCardOverlay-BU9Az6O8.mjs → ChartCardOverlay-VSQRyMW2.mjs} +1 -1
  5. package/dist/{ChartTypePanel-Bd9xpwBz.mjs → ChartTypePanel-CD8UZYq_.mjs} +12 -12
  6. package/dist/{CreateGlobalFilter-BglIVAbU.mjs → CreateGlobalFilter-B0W6aBZS.mjs} +2 -2
  7. package/dist/{CreateMetricV2-B4Qh8ilT.mjs → CreateMetricV2-CfROozFF.mjs} +18 -14
  8. package/dist/{HorizontalStackTable-CbHC13wB.mjs → HorizontalStackTable-C6Y8jTZx.mjs} +3 -3
  9. package/dist/{ManageMetricsV2-DZ3hRAVE.mjs → ManageMetricsV2-CKLIByOd.mjs} +3 -3
  10. package/dist/{MetricCardV2-78VV9622.mjs → MetricCardV2-DzI3bmvs.mjs} +623 -626
  11. package/dist/{NoDataFound-C49L7xWQ.mjs → NoDataFound-DJlW6hHe.mjs} +1 -1
  12. package/dist/{Panel-CMkiqPwr.mjs → Panel-BHzPWaa8.mjs} +1 -1
  13. package/dist/{PivotTableV2-By0gA5rR.mjs → PivotTableV2-Bd1SHLUx.mjs} +2 -2
  14. package/dist/{PivotTableV3--v3NlWBG.mjs → PivotTableV3-CHm-stWR.mjs} +4 -4
  15. package/dist/{Portal-BINiwYIE.mjs → Portal-CL-S1tXR.mjs} +29 -11
  16. package/dist/{RadioButton-D2xlAse7.mjs → RadioButton-DZWBIci3.mjs} +30 -30
  17. package/dist/{ScheduleEmail-GnNMpHBH.mjs → ScheduleEmail-Dv8m65aQ.mjs} +145 -136
  18. package/dist/{SearchMetricData-DJW7y87n.mjs → SearchMetricData-LScEnff3.mjs} +13 -13
  19. package/dist/{SortPanel-B0K5hI59.mjs → SortPanel-BPOISeUj.mjs} +9 -9
  20. package/dist/{Table-DQlYOUYN.mjs → Table-DI_eYdYo.mjs} +4 -4
  21. package/dist/{TagInputField-BGM6vEtu.mjs → TagInputField-C0AKAT5E.mjs} +5 -5
  22. package/dist/{TextAreaField-DBMbqlLr.mjs → TextAreaField-BGLVqIH_.mjs} +2 -2
  23. package/dist/{TimeSeriesSettings-Bu9CIVts.mjs → TimeSeriesSettings-D-02eLGd.mjs} +2 -2
  24. package/dist/{cardStates-C6q56mQy.mjs → cardStates-YaeHm3yq.mjs} +1 -1
  25. package/dist/{charts-BCsWRROL.mjs → charts-BfKyYVQ3.mjs} +1 -1
  26. package/dist/{clickActions-D9ZeoDnp.mjs → clickActions-GtHmsSzk.mjs} +14 -14
  27. package/dist/{conditionalFormatting-ZjZ6wY0g.mjs → conditionalFormatting-Doxpmemq.mjs} +1 -1
  28. package/dist/{createGlobalFilter.module-B3nAWt-z.mjs → createGlobalFilter.module-D6HjUXWX.mjs} +1 -1
  29. package/dist/{crossPointer-1otwmut1.mjs → crossPointer-B3cgqnZo.mjs} +3 -3
  30. package/dist/data.cjs +1 -1
  31. package/dist/data.mjs +1 -1
  32. package/dist/{metric.mutation-D6RtkleZ.mjs → metric.mutation-BmM7y6ro.mjs} +2 -2
  33. package/dist/{pluginV3Request-DDHTowqW.mjs → pluginV3Request-DSTXpnb2.mjs} +2 -2
  34. package/dist/{renderer-CYUeXAi5.mjs → renderer-DEJWO1tC.mjs} +1 -1
  35. package/dist/{timeseries-hkiBF4TC.mjs → timeseries-C3w9dXh4.mjs} +1 -1
  36. package/dist/{useGuesTokenUsageLog-CHzIT9Ex.mjs → useGuesTokenUsageLog-B4vI8cc-.mjs} +1 -1
  37. package/dist/{useLoadingDeadline-ZhTlljOz.mjs → useLoadingDeadline-AkEY8sVK.mjs} +13 -8
  38. package/dist/{usePublishArchivedMetrics-Cgh9agh-.mjs → usePublishArchivedMetrics-d7UD9S-D.mjs} +2 -2
  39. package/dist/{useQuery-CKH-_Ztf.mjs → useQuery-DsSv-fcD.mjs} +1 -1
  40. package/dist/webcomponents-styles.es.js +1 -1
  41. package/dist/webcomponents.es.js +2007 -1967
  42. package/dist/webcomponents.umd.js +191 -191
  43. package/package.json +1 -1
@@ -2,19 +2,19 @@ import * as e from "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { o as t, r as n, t as r } from "./rolldown-runtime-zXSK1Ut9.mjs";
5
- import { a as i } from "./pluginV3Request-DDHTowqW.mjs";
6
- import { a, r as o } from "./metric.mutation-D6RtkleZ.mjs";
7
- import { $a as s, $r as c, $t as l, Ci as u, Cr as d, Da as f, Ea as p, Ga as m, Gi as h, L as g, Ma as _, Oi as v, Q as y, R as b, Sr as x, Ta as S, Tr as C, V as w, Vi as ee, Wi as te, Yi as ne, Z as T, Za as E, _a as re, a as ie, aa as ae, ai as oe, c as se, ci as ce, co as D, di as le, ei as ue, f as de, fa as O, fi as k, g as fe, ho as A, k as pe, l as me, oa as he, oi as ge, p as _e, pa as j, pi as ve, pr as M, sa as ye, tt as be, v as xe, wa as N, wi as Se, wr as P, y as Ce, yr as we, zi as Te, zn as Ee } from "./Portal-BINiwYIE.mjs";
8
- import { _ as De, b as Oe, c as F, d as ke, f as Ae, g as I, h as je, i as Me, l as Ne, m as Pe, n as Fe, o as Ie, p as L, r as Le, s as Re, t as ze, u as Be } from "./ChartTypePanel-Bd9xpwBz.mjs";
9
- import { C as Ve, S as He, r as Ue } from "./timeseries-hkiBF4TC.mjs";
10
- import { C as We, S as Ge, a as Ke, b as qe, c as Je, d as Ye, h as Xe, i as Ze, l as Qe, m as $e, n as et, o as tt, r as nt, s as rt, t as it, u as at, x as ot } from "./TextAreaField-DBMbqlLr.mjs";
11
- import { t as st } from "./RadioButton-D2xlAse7.mjs";
12
- import { t as ct } from "./Chart-D59hFodU.mjs";
13
- import { n as lt } from "./TimeSeriesSettings-Bu9CIVts.mjs";
14
- import { t as ut } from "./Table-DQlYOUYN.mjs";
15
- import { n as R, t as dt } from "./NoDataFound-C49L7xWQ.mjs";
16
- import { t as z } from "./Accordion-Cm7NvhtU.mjs";
17
- import { t as ft } from "./Panel-CMkiqPwr.mjs";
5
+ import { a as i } from "./pluginV3Request-DSTXpnb2.mjs";
6
+ import { a, r as o } from "./metric.mutation-BmM7y6ro.mjs";
7
+ import { $a as s, $r as c, $t as l, Ci as u, Cr as d, Da as f, Ea as p, Ga as m, Gi as h, L as g, Ma as _, Oi as v, Q as y, R as b, Sr as x, Ta as S, Tr as C, V as w, Vi as ee, Wi as te, Yi as ne, Z as T, Za as E, _a as re, a as ie, aa as ae, ai as oe, c as se, ci as ce, co as D, di as le, ei as ue, f as de, fa as O, fi as k, g as fe, ho as A, k as pe, l as me, oa as he, oi as ge, p as _e, pa as j, pi as ve, pr as M, sa as ye, tt as be, v as xe, wa as N, wi as Se, wr as P, y as Ce, yr as we, zi as Te, zn as Ee } from "./Portal-CL-S1tXR.mjs";
8
+ import { _ as De, b as Oe, c as F, d as ke, f as Ae, g as I, h as je, i as Me, l as Ne, m as Pe, n as Fe, o as Ie, p as L, r as Le, s as Re, t as ze, u as Be } from "./ChartTypePanel-CD8UZYq_.mjs";
9
+ import { C as Ve, S as He, r as Ue } from "./timeseries-C3w9dXh4.mjs";
10
+ import { C as We, S as Ge, a as Ke, b as qe, c as Je, d as Ye, h as Xe, i as Ze, l as Qe, m as $e, n as et, o as tt, r as nt, s as rt, t as it, u as at, x as ot } from "./TextAreaField-BGLVqIH_.mjs";
11
+ import { t as st } from "./RadioButton-DZWBIci3.mjs";
12
+ import { t as ct } from "./Chart-DVy_ucZn.mjs";
13
+ import { n as lt } from "./TimeSeriesSettings-D-02eLGd.mjs";
14
+ import { t as ut } from "./Table-DI_eYdYo.mjs";
15
+ import { n as R, t as dt } from "./NoDataFound-DJlW6hHe.mjs";
16
+ import { t as z } from "./Accordion-CBeM5jJS.mjs";
17
+ import { t as ft } from "./Panel-BHzPWaa8.mjs";
18
18
  import { t as pt } from "./createLucideIcon-B89xLYvS.mjs";
19
19
  import { A as mt, B as ht, E as gt, F as _t, H as vt, I as yt, O as bt, V as xt, a as St, c as Ct, k as wt, n as Tt, r as Et, s as Dt, t as Ot, w as kt, z as At } from "./dist-BN9zta-l.mjs";
20
20
  import { t as jt } from "./Switch-BlOR68qT.mjs";
@@ -1,16 +1,16 @@
1
1
  import { useCallback as e, useEffect as t, useMemo as n, useRef as r, useState as i } from "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { o as a, p as o, s } from "./cardStates-C6q56mQy.mjs";
5
- import { et as c, ot as l } from "./metric.mutation-D6RtkleZ.mjs";
6
- import { Br as u, D as d, Da as f, Di as p, Ea as m, Ga as h, Hi as g, Ki as _, L as v, Mn as y, Nn as b, O as x, Q as S, R as C, Ri as w, Si as ee, Ta as te, Ti as ne, Ui as T, V as re, Xi as E, Yt as D, Za as O, Zi as k, _a as A, _n as ie, co as j, d as M, di as N, ei as ae, et as P, ho as F, ji as I, o as L, or as R, p as z, rn as oe, ta as se, ti as ce, v as le, wr as B, y as ue, za as de } from "./Portal-BINiwYIE.mjs";
7
- import { E as fe, T as pe, a as me, b as he, c as V, d as ge, f as _e, g as H, h as U, m as ve, n as ye, o as be, p as W, r as xe, u as Se, y as Ce } from "./ChartTypePanel-Bd9xpwBz.mjs";
8
- import { C as we, S as Te, r as Ee } from "./timeseries-hkiBF4TC.mjs";
9
- import { v as De, w as Oe } from "./useLoadingDeadline-ZhTlljOz.mjs";
10
- import { n as ke, t as Ae } from "./RadioButton-D2xlAse7.mjs";
4
+ import { o as a, p as o, s } from "./cardStates-YaeHm3yq.mjs";
5
+ import { et as c, ot as l } from "./metric.mutation-BmM7y6ro.mjs";
6
+ import { Br as u, D as d, Da as f, Di as p, Ea as m, Ga as h, Hi as g, Ki as _, L as v, Mn as y, Nn as b, O as x, Q as S, R as C, Ri as w, Si as ee, Ta as te, Ti as ne, Ui as T, V as re, Xi as E, Yt as D, Za as O, Zi as k, _a as A, _n as ie, co as j, d as M, di as N, ei as ae, et as P, ho as F, ji as I, o as L, or as R, p as z, rn as oe, ta as se, ti as ce, v as le, wr as B, y as ue, za as de } from "./Portal-CL-S1tXR.mjs";
7
+ import { E as fe, T as pe, a as me, b as he, c as V, d as ge, f as _e, g as H, h as U, m as ve, n as ye, o as be, p as W, r as xe, u as Se, y as Ce } from "./ChartTypePanel-CD8UZYq_.mjs";
8
+ import { C as we, S as Te, r as Ee } from "./timeseries-C3w9dXh4.mjs";
9
+ import { v as De, w as Oe } from "./useLoadingDeadline-AkEY8sVK.mjs";
10
+ import { n as ke, t as Ae } from "./RadioButton-DZWBIci3.mjs";
11
11
  import { t as je } from "./No_data-CdjBgHVn.mjs";
12
- import { t as G } from "./Accordion-Cm7NvhtU.mjs";
13
- import { t as K } from "./Panel-CMkiqPwr.mjs";
12
+ import { t as G } from "./Accordion-CBeM5jJS.mjs";
13
+ import { t as K } from "./Panel-BHzPWaa8.mjs";
14
14
  import { t as q } from "./Switch-BlOR68qT.mjs";
15
15
  import { Fragment as J, jsx as Y, jsxs as X } from "react/jsx-runtime";
16
16
  // src/hooks/useDrop.ts
@@ -2,16 +2,16 @@ import e, { useEffect as t, useMemo as n, useRef as r, useState as i } from "rea
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { r as a } from "./rolldown-runtime-zXSK1Ut9.mjs";
5
- import { An as o, Ct as s, L as c, Q as l, X as ee, Yi as u, Z as te, a as ne, co as d, ei as re, ho as f, k as p, ki as m, kn as h, ur as g, wr as _, wt as ie } from "./Portal-BINiwYIE.mjs";
6
- import { m as ae, o as v, p as oe } from "./timeseries-hkiBF4TC.mjs";
5
+ import { An as o, Ct as s, L as c, Q as l, X as ee, Yi as u, Z as te, a as ne, co as d, ei as re, ho as f, k as p, ki as m, kn as h, ur as g, wr as _, wt as ie } from "./Portal-CL-S1tXR.mjs";
6
+ import { m as ae, o as v, p as oe } from "./timeseries-C3w9dXh4.mjs";
7
7
  import { B as se, I as ce } from "./format-q49rlYCT.mjs";
8
8
  import { n as y } from "./arrayToCsvString-CRmqd5Fp.mjs";
9
9
  import { i as le, n as b } from "./transformData-CO9XMhAy.mjs";
10
- import { t as x } from "./NoDataFound-C49L7xWQ.mjs";
10
+ import { t as x } from "./NoDataFound-DJlW6hHe.mjs";
11
11
  import { n as ue, r as S, t as de } from "./virtualRowScroll-D65ht4Df.mjs";
12
12
  import { a as fe, i as C, n as pe, o as me, r as he, s as ge, t as _e } from "./dist-AOZRb92r.mjs";
13
13
  import { n as ve, r as ye } from "./cardActions-KAyfWH7u.mjs";
14
- import { t as be } from "./conditionalFormatting-ZjZ6wY0g.mjs";
14
+ import { t as be } from "./conditionalFormatting-Doxpmemq.mjs";
15
15
  import { t as xe } from "./tableAriaRowModel-CVEaIc2a.mjs";
16
16
  import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
17
17
  // src/utils/embedStorage.ts
@@ -1,11 +1,11 @@
1
1
  import e, { createContext as t, useEffect as n, useState as r } from "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { f as i, o as a, p as o } from "./cardStates-C6q56mQy.mjs";
5
- import { $ as s, F as c, H as l, P as u, Q as d, U as f, V as p, X as m, Z as h, dt as g, k as _, l as v, ut as y } from "./pluginV3Request-DDHTowqW.mjs";
6
- import { G as b, W as x, q as S } from "./metric.mutation-D6RtkleZ.mjs";
7
- import { Dt as ee, co as te, ho as C, oo as w, p as ne, wr as re } from "./Portal-BINiwYIE.mjs";
8
- import { t as T } from "./useQuery-CKH-_Ztf.mjs";
4
+ import { f as i, o as a, p as o } from "./cardStates-YaeHm3yq.mjs";
5
+ import { $ as s, F as c, H as l, P as u, Q as d, U as f, V as p, X as m, Z as h, dt as g, k as _, l as v, ut as y } from "./pluginV3Request-DSTXpnb2.mjs";
6
+ import { G as b, W as x, q as S } from "./metric.mutation-BmM7y6ro.mjs";
7
+ import { Dt as ee, co as te, ho as C, oo as w, p as ne, wr as re } from "./Portal-CL-S1tXR.mjs";
8
+ import { t as T } from "./useQuery-DsSv-fcD.mjs";
9
9
  import { jsx as E, jsxs as D } from "react/jsx-runtime";
10
10
  // src/containers/Dashboard/dashboardLoadError.ts
11
11
  var O = (e) => !!e && /^APP_FILTER_[A-Z_]+$/.test(e), k = {
@@ -2,8 +2,8 @@ import { useEffect as e } from "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { o as t } from "./rolldown-runtime-zXSK1Ut9.mjs";
5
- import { $i as n, Ai as r, Di as i, Ei as a, Ga as o, Ja as s, Li as c, Mr as l, Ot as u, Q as d, Rr as f, Ui as p, Vi as m, Wr as h, X as g, Xt as _, Ya as ee, _n as v, co as y, ea as te, ho as b, ia as ne, lo as x, qr as S, wr as C, xr as re } from "./Portal-BINiwYIE.mjs";
6
- import { v as ie } from "./ChartTypePanel-Bd9xpwBz.mjs";
5
+ import { $i as n, Ai as r, Di as i, Ei as a, Ga as o, Ja as s, Li as c, Mr as l, Ot as u, Q as d, Rr as f, Ui as p, Vi as m, Wr as h, X as g, Xt as _, Ya as ee, _n as v, co as y, ea as te, ho as b, ia as ne, lo as x, qr as S, wr as C, xr as re } from "./Portal-CL-S1tXR.mjs";
6
+ import { v as ie } from "./ChartTypePanel-CD8UZYq_.mjs";
7
7
  import { t as ae } from "./Loader-DoUwkcO5.mjs";
8
8
  import { jsx as w, jsxs as T } from "react/jsx-runtime";
9
9
  // src/helpers/autoCompleteHelpers.ts
@@ -1,8 +1,8 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { L as e, Q as t, R as n, Ua as r, d as i, ho as a, k as o, v as s } from "./Portal-BINiwYIE.mjs";
5
- import { t as c } from "./RadioButton-D2xlAse7.mjs";
4
+ import { L as e, Q as t, R as n, Ua as r, d as i, ho as a, k as o, v as s } from "./Portal-CL-S1tXR.mjs";
5
+ import { t as c } from "./RadioButton-DZWBIci3.mjs";
6
6
  import { t as l } from "./Switch-BlOR68qT.mjs";
7
7
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
8
8
  var p = {
@@ -347,7 +347,7 @@ function K(e, t) {
347
347
  let e = typeof window > "u" ? void 0 : window.location.origin, n = e && e !== "null" ? e : "this page's address";
348
348
  return {
349
349
  message: m(`This page's address is not allowed to show this ${t.resourceKind ?? "content"}.`),
350
- hint: m(`Ask your Databrain admin to add ${n} to the data app's allowed origins.`),
350
+ hint: m(`Ask your Databrain admin to add ${n} in Settings > Whitelisted domains.`),
351
351
  code: d,
352
352
  detail: r,
353
353
  retryable: !1
@@ -10,7 +10,7 @@ import { Yr as ye, g as V, kr as be, p as xe } from "./extension-CGyFToYb.mjs";
10
10
  import { a as Se, c as Ce, i as we, l as Te, o as Ee, r as De, s as Oe, t as ke } from "./canvasTeardown-CyzHZCRj.mjs";
11
11
  import { t as Ae } from "./loading-state-D6iHFb1k.mjs";
12
12
  import { t as H } from "./dist-CfZineIA.mjs";
13
- import { t as je } from "./ChartCardOverlay-BU9Az6O8.mjs";
13
+ import { t as je } from "./ChartCardOverlay-VSQRyMW2.mjs";
14
14
  import { i as Me, n as Ne, o as Pe, r as Fe, t as Ie } from "./theme-B3wF6zA5.mjs";
15
15
  import { useCallback as U, useContext as Le, useEffect as W, useId as Re, useLayoutEffect as ze, useMemo as G, useRef as K, useState as q, useSyncExternalStore as Be } from "react";
16
16
  import { Fragment as Ve, jsx as J, jsxs as Y } from "react/jsx-runtime";
@@ -2,18 +2,18 @@ import e, { createContext as t, useCallback as n, useContext as r, useEffect as
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { o as u, t as d } from "./rolldown-runtime-zXSK1Ut9.mjs";
5
- import { d as f, l as p, p as m, u as h } from "./cardStates-C6q56mQy.mjs";
6
- import { Bt as g, It as _, Vt as v, Zt as y, a as b, c as x, l as S, m as C, u as ee, zt as w } from "./pluginV3Request-DDHTowqW.mjs";
7
- import { $ as T, K as E, O as D, Q as te, U as O, X as k, Y as ne, Z as A, a as re, at as j, d as ie, et as M, i as ae, l as N, lt as oe, q as se, s as ce, tt as le } from "./metric.mutation-D6RtkleZ.mjs";
8
- import { $a as P, $n as ue, At as de, Ca as fe, Cn as pe, D as F, Dn as me, Dr as he, En as ge, Fn as _e, Ga as I, Hn as ve, Hr as ye, In as be, Ji as xe, Jn as Se, Jt as Ce, Kt as we, L as Te, Ln as Ee, Nn as De, Nr as L, O as Oe, Q as ke, Qa as Ae, Rn as je, S as Me, Tn as Ne, Ut as Pe, Wn as Fe, Wt as Ie, Xt as Le, Yn as Re, Za as ze, Zt as Be, _n as Ve, aa as He, an as Ue, ar as We, bi as Ge, br as R, co as Ke, cr as qe, dn as Je, en as Ye, eo as Xe, er as Ze, et as Qe, fn as $e, fr as et, ga as tt, gn as nt, gt as rt, ha as it, ho as at, ir as ot, jt as st, k as ct, kn as lt, ln as z, nn as ut, o as B, on as dt, oo as ft, rn as pt, rr as mt, s as ht, sn as gt, so as _t, sr as vt, to as yt, tr as bt, vi as xt, vn as St, wr as Ct, xa as wt, xn as Tt, yn as Et, yt as V, za as Dt } from "./Portal-BINiwYIE.mjs";
9
- import { t as Ot } from "./useQuery-CKH-_Ztf.mjs";
10
- import { n as kt } from "./timeseries-hkiBF4TC.mjs";
5
+ import { d as f, l as p, p as m, u as h } from "./cardStates-YaeHm3yq.mjs";
6
+ import { Bt as g, It as _, Vt as v, Zt as y, a as b, c as x, l as S, m as C, u as ee, zt as w } from "./pluginV3Request-DSTXpnb2.mjs";
7
+ import { $ as T, K as E, O as D, Q as te, U as O, X as k, Y as ne, Z as A, a as re, at as j, d as ie, et as M, i as ae, l as N, lt as oe, q as se, s as ce, tt as le } from "./metric.mutation-BmM7y6ro.mjs";
8
+ import { $a as P, $n as ue, At as de, Ca as fe, Cn as pe, D as F, Dn as me, Dr as he, En as ge, Fn as _e, Ga as I, Hn as ve, Hr as ye, In as be, Ji as xe, Jn as Se, Jt as Ce, Kt as we, L as Te, Ln as Ee, Nn as De, Nr as L, O as Oe, Q as ke, Qa as Ae, Rn as je, S as Me, Tn as Ne, Ut as Pe, Wn as Fe, Wt as Ie, Xt as Le, Yn as Re, Za as ze, Zt as Be, _n as Ve, aa as He, an as Ue, ar as We, bi as Ge, br as R, co as Ke, cr as qe, dn as Je, en as Ye, eo as Xe, er as Ze, et as Qe, fn as $e, fr as et, ga as tt, gn as nt, gt as rt, ha as it, ho as at, ir as ot, jt as st, k as ct, kn as lt, ln as z, nn as ut, o as B, on as dt, oo as ft, rn as pt, rr as mt, s as ht, sn as gt, so as _t, sr as vt, to as yt, tr as bt, vi as xt, vn as St, wr as Ct, xa as wt, xn as Tt, yn as Et, yt as V, za as Dt } from "./Portal-CL-S1tXR.mjs";
9
+ import { t as Ot } from "./useQuery-DsSv-fcD.mjs";
10
+ import { n as kt } from "./timeseries-C3w9dXh4.mjs";
11
11
  import { b as At } from "./format-q49rlYCT.mjs";
12
- import { C as jt, T as Mt, _ as Nt, d as Pt, g as Ft, h as It, l as Lt, u as Rt, v as zt, w as Bt } from "./crossPointer-1otwmut1.mjs";
12
+ import { C as jt, T as Mt, _ as Nt, d as Pt, g as Ft, h as It, l as Lt, u as Rt, v as zt, w as Bt } from "./crossPointer-B3cgqnZo.mjs";
13
13
  import { i as Vt, m as Ht } from "./text-CSXb1-LG.mjs";
14
- import { b as Ut, m as Wt, u as Gt, v as Kt, w as qt, x as Jt } from "./useLoadingDeadline-ZhTlljOz.mjs";
15
- import { f as Yt, o as Xt } from "./RadioButton-D2xlAse7.mjs";
16
- import { t as Zt } from "./TimeSeriesSettings-Bu9CIVts.mjs";
14
+ import { b as Ut, m as Wt, u as Gt, v as Kt, w as qt, x as Jt } from "./useLoadingDeadline-AkEY8sVK.mjs";
15
+ import { o as Yt, p as Xt } from "./RadioButton-DZWBIci3.mjs";
16
+ import { t as Zt } from "./TimeSeriesSettings-D-02eLGd.mjs";
17
17
  import { Fragment as H, jsx as U, jsxs as W } from "react/jsx-runtime";
18
18
  // src/helpers/getValidRlsConditionOptions.ts
19
19
  var Qt = (e, t) => {
@@ -905,7 +905,7 @@ var Br = ({ datasourceId: e, clientName: t, dbName: r, tenancyType: a, values: o
905
905
  isAllClient: _,
906
906
  dataMartRelationships: y,
907
907
  weekStartDay: T
908
- }), fe = k && !x ? Yt(de) : de, pe = jr(S, ae) ? Pr({
908
+ }), fe = k && !x ? Xt(de) : de, pe = jr(S, ae) ? Pr({
909
909
  columnName: n,
910
910
  dataType: i,
911
911
  drillFilters: ae?.length ? [...S ?? [], ...ae] : S,
@@ -2012,7 +2012,7 @@ var Mi = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ni = (e) => ty
2012
2012
  let R = _t(), [Ke, qe] = c(!1), Xe = ie(), [Ze, Qe] = c(null), { state: et, start: tt, stop: rt, reset: it } = Ba(), at = et.summary, st = et.error, ct = et.empty, z = et.status === "running", B = s(null), ft = s(null), [mt, vt] = c({
2013
2013
  limit: parseInt(t?.chartOptions?.tableSettings?.defaultRowSize || "100", 10),
2014
2014
  offset: 0
2015
- }), [yt, xt] = c(0), [St, Ct] = c(0), [V, Ot] = c(t?.rlsConditions || []), [At, Nt] = c([]), [Pt, zt] = c(!1), [Vt, Ht] = c(), [Gt, Yt] = c(""), [H, U] = c([]), [W, en] = c({
2015
+ }), [yt, xt] = c(0), [St, Ct] = c(0), [V, Ot] = c(t?.rlsConditions || []), [At, Nt] = c([]), [Pt, zt] = c(!1), [Vt, Ht] = c(), [Gt, Xt] = c(""), [H, U] = c([]), [W, en] = c({
2016
2016
  isOpen: !1,
2017
2017
  report: "",
2018
2018
  isLoading: !1
@@ -3279,7 +3279,7 @@ var Mi = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ni = (e) => ty
3279
3279
  let n = $t({
3280
3280
  rlsConditions: V,
3281
3281
  isFrontendApp: x
3282
- }), i = Xt({
3282
+ }), i = Yt({
3283
3283
  metric: {
3284
3284
  clientId: t?.clientId,
3285
3285
  isCreatedByClient: t?.isCreatedByClient
@@ -3915,7 +3915,7 @@ var Mi = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ni = (e) => ty
3915
3915
  timeseriesDimension: Ar,
3916
3916
  isPythonMode: J,
3917
3917
  sortOrder: Gt,
3918
- setSortOrder: Yt,
3918
+ setSortOrder: Xt,
3919
3919
  isNotFirstRender: tn,
3920
3920
  setNotFirstRender: nn,
3921
3921
  isSorted: Dn,
@@ -1,7 +1,7 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { p as e } from "./timeseries-hkiBF4TC.mjs";
4
+ import { p as e } from "./timeseries-C3w9dXh4.mjs";
5
5
  // src/helpers/conditionalFormatting.ts
6
6
  var t = ({ rules: t, value: n, formatter: r = "original" }) => {
7
7
  let i = t.find((t) => {
@@ -1,7 +1,7 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { Zn as e } from "./Portal-BINiwYIE.mjs";
4
+ import { Zn as e } from "./Portal-CL-S1tXR.mjs";
5
5
  // src/helpers/dashboardFilterAccess.ts
6
6
  var t = (e) => (e || "").trim().toLowerCase(), n = (n) => {
7
7
  let r = t(n), i = t(e(n).name);
@@ -1,8 +1,8 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { Ga as e, _r as t, aa as n } from "./Portal-BINiwYIE.mjs";
5
- import { S as r, _ as i, f as a, h as o, p as s, x as c, y as l } from "./timeseries-hkiBF4TC.mjs";
4
+ import { Ga as e, _r as t, aa as n } from "./Portal-CL-S1tXR.mjs";
5
+ import { S as r, _ as i, f as a, h as o, p as s, x as c, y as l } from "./timeseries-C3w9dXh4.mjs";
6
6
  import { D as u, E as d, x as f } from "./format-q49rlYCT.mjs";
7
7
  import { n as p, r as m, t as h } from "./config-Erpgv7JC.mjs";
8
8
  import { n as g, r as _ } from "./rendererRegistry-BApA01Jb.mjs";
@@ -11,7 +11,7 @@ var v = /* @__PURE__ */ new Map(), y = (e) => {
11
11
  let t = p(e), n = v.get(e);
12
12
  if (n) return n;
13
13
  if (_(t).kind === "custom") return () => {};
14
- let r = g(t, { load: () => import("./renderer-CYUeXAi5.mjs").then((e) => e.customChartRenderer) }), i = () => {
14
+ let r = g(t, { load: () => import("./renderer-DEJWO1tC.mjs").then((e) => e.customChartRenderer) }), i = () => {
15
15
  v.get(e) === i && v.delete(e), r();
16
16
  };
17
17
  return v.set(e, i), i;
package/dist/data.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("react");var t=`0.17.9-beta.89`,n=`X-Dbn-Plugin-Version`,r=`X-Dbn-Plugin-Contract`,i=()=>({[n]:t,[r]:`1`}),a=class extends Error{status;code;constructor(e,t,n){super(e),this.name=`DashboardDataError`,this.status=t,this.code=n}},o=`https://api.usedatabrain.com`,s=({baseUrl:e=o,dashboardId:t,configId:n,isEn:r})=>{let i=new URLSearchParams;t&&i.set(`dashboardId`,t),n&&i.set(`configId`,n),r!==void 0&&i.set(`isEn`,String(r));let a=i.toString();return`${e.replace(/\/+$/,``)}/api/v2/dashboard${a?`?${a}`:``}`},c=async e=>{try{return await e.json()}catch{throw new a(e.ok?`Databrain returned an invalid response.`:`Databrain request failed with status ${e.status}.`,e.status)}},l=async({token:e,signal:t,...n})=>{let r={"Content-Type":`application/json`,"X-Plugin-Token":e,...i()};typeof window<`u`&&window.location?.host&&(r[`X-Plugin-Origin`]=window.location.host);let o=await fetch(s({token:e,signal:t,...n}),{method:`GET`,headers:r,signal:t}),l=await c(o),u=l.data?.error;if(!o.ok||l.error||u)throw new a(l.error?.message||u?.message||l.message||`Databrain request failed with status ${o.status}.`,o.status,l.error?.code||u?.code);if(!l.data||typeof l.data!=`object`)throw new a(`Databrain returned an invalid response.`,o.status);return l.data},u={data:null,error:null,status:`idle`},d=e=>e instanceof a?e:new a(e instanceof Error?e.message:`Databrain request failed.`),f=({token:t,dashboardId:n,configId:r,isEn:i,baseUrl:a,enabled:o=!0})=>{let[s,c]=(0,e.useState)(u),[f,p]=(0,e.useState)(0),m=(0,e.useCallback)(()=>p(e=>e+1),[]);return(0,e.useEffect)(()=>{if(!o||!t){c(u);return}let e=new AbortController;return c(e=>({data:e.data,error:null,status:`loading`})),l({token:t,dashboardId:n,configId:r,isEn:i,baseUrl:a,signal:e.signal}).then(t=>{e.signal.aborted||c({data:t,error:null,status:`success`})},t=>{e.signal.aborted||c({data:null,error:d(t),status:`error`})}),()=>e.abort()},[a,r,n,o,i,f,t]),(0,e.useMemo)(()=>({...s,isLoading:s.status===`loading`,refetch:m}),[m,s])},p=({children:e,...t})=>e(f(t));exports.DEFAULT_DASHBOARD_API_BASE_URL=o,exports.DashboardData=p,exports.DashboardDataError=a,exports.fetchDashboardData=l,exports.useDashboardData=f;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("react");var t=`0.17.9-beta.90`,n=`X-Dbn-Plugin-Version`,r=`X-Dbn-Plugin-Contract`,i=()=>({[n]:t,[r]:`1`}),a=class extends Error{status;code;constructor(e,t,n){super(e),this.name=`DashboardDataError`,this.status=t,this.code=n}},o=`https://api.usedatabrain.com`,s=({baseUrl:e=o,dashboardId:t,configId:n,isEn:r})=>{let i=new URLSearchParams;t&&i.set(`dashboardId`,t),n&&i.set(`configId`,n),r!==void 0&&i.set(`isEn`,String(r));let a=i.toString();return`${e.replace(/\/+$/,``)}/api/v2/dashboard${a?`?${a}`:``}`},c=async e=>{try{return await e.json()}catch{throw new a(e.ok?`Databrain returned an invalid response.`:`Databrain request failed with status ${e.status}.`,e.status)}},l=async({token:e,signal:t,...n})=>{let r={"Content-Type":`application/json`,"X-Plugin-Token":e,...i()};typeof window<`u`&&window.location?.host&&(r[`X-Plugin-Origin`]=window.location.host);let o=await fetch(s({token:e,signal:t,...n}),{method:`GET`,headers:r,signal:t}),l=await c(o),u=l.data?.error;if(!o.ok||l.error||u)throw new a(l.error?.message||u?.message||l.message||`Databrain request failed with status ${o.status}.`,o.status,l.error?.code||u?.code);if(!l.data||typeof l.data!=`object`)throw new a(`Databrain returned an invalid response.`,o.status);return l.data},u={data:null,error:null,status:`idle`},d=e=>e instanceof a?e:new a(e instanceof Error?e.message:`Databrain request failed.`),f=({token:t,dashboardId:n,configId:r,isEn:i,baseUrl:a,enabled:o=!0})=>{let[s,c]=(0,e.useState)(u),[f,p]=(0,e.useState)(0),m=(0,e.useCallback)(()=>p(e=>e+1),[]);return(0,e.useEffect)(()=>{if(!o||!t){c(u);return}let e=new AbortController;return c(e=>({data:e.data,error:null,status:`loading`})),l({token:t,dashboardId:n,configId:r,isEn:i,baseUrl:a,signal:e.signal}).then(t=>{e.signal.aborted||c({data:t,error:null,status:`success`})},t=>{e.signal.aborted||c({data:null,error:d(t),status:`error`})}),()=>e.abort()},[a,r,n,o,i,f,t]),(0,e.useMemo)(()=>({...s,isLoading:s.status===`loading`,refetch:m}),[m,s])},p=({children:e,...t})=>e(f(t));exports.DEFAULT_DASHBOARD_API_BASE_URL=o,exports.DashboardData=p,exports.DashboardDataError=a,exports.fetchDashboardData=l,exports.useDashboardData=f;
package/dist/data.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useCallback as e, useEffect as t, useMemo as n, useState as r } from "react";
2
2
  // src/data/pluginContract.ts
3
- var i = "0.17.9-beta.89", a = "X-Dbn-Plugin-Version", o = "X-Dbn-Plugin-Contract", s = () => ({
3
+ var i = "0.17.9-beta.90", a = "X-Dbn-Plugin-Version", o = "X-Dbn-Plugin-Contract", s = () => ({
4
4
  [a]: i,
5
5
  [o]: "1"
6
6
  }), c = class extends Error {
@@ -1,8 +1,8 @@
1
1
  import * as e from "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { d as t, f as n } from "./cardStates-C6q56mQy.mjs";
5
- import { $t as r, Gt as i, Ht as a, Jt as o, Lt as s, Mt as c, Nt as l, Qt as u, Rt as d, Ut as f, Wt as p, Xt as ee, Yt as m, _ as h, a as g, b as te, c as ne, d as re, f as ie, i as ae, ln as oe, m as se, o as ce, qt as le, r as ue, s as de, u as fe, un as pe, v as me, y as he } from "./pluginV3Request-DDHTowqW.mjs";
4
+ import { d as t, f as n } from "./cardStates-YaeHm3yq.mjs";
5
+ import { $t as r, Gt as i, Ht as a, Jt as o, Lt as s, Mt as c, Nt as l, Qt as u, Rt as d, Ut as f, Wt as p, Xt as ee, Yt as m, _ as h, a as g, b as te, c as ne, d as re, f as ie, i as ae, ln as oe, m as se, o as ce, qt as le, r as ue, s as de, u as fe, un as pe, v as me, y as he } from "./pluginV3Request-DSTXpnb2.mjs";
6
6
  import { jsx as ge } from "react/jsx-runtime";
7
7
  // src/helpers/drillDebug.ts
8
8
  var _e = "dbnDebug", ve = "dbn-debug", ye = "dbnDrillDebug", be = "dbn-drill-debug", xe = "[DBN Debug]", _ = /* @__PURE__ */ new Set([
@@ -1,7 +1,7 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { d as e, l as t } from "./cardStates-C6q56mQy.mjs";
4
+ import { d as e, l as t } from "./cardStates-YaeHm3yq.mjs";
5
5
  // src/consts/runtime.ts
6
6
  var n = "ref_token", r = "https://api.usedatabrain.com", i = r, a = null, o = (e) => {
7
7
  let t = e.trim();
@@ -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.89", Et = "X-Dbn-Plugin-Version", Dt = "X-Dbn-Plugin-Contract", B = () => ({
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.90", 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 = () => {
@@ -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-DDHTowqW.mjs";
4
+ import { m as a, r as o, u as s } from "./pluginV3Request-DSTXpnb2.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-BINiwYIE.mjs";
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-CL-S1tXR.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-D6RtkleZ.mjs";
4
+ import { n as e } from "./metric.mutation-BmM7y6ro.mjs";
5
5
  // src/hooks/useGuesTokenUsageLog.ts
6
6
  var t = () => {
7
7
  let { mutateAsync: t } = e();
@@ -1,13 +1,13 @@
1
1
  import * as e from "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { d as t, o as n, p as r, s as i } from "./cardStates-C6q56mQy.mjs";
5
- import { _t as a, p as o, vt as s } from "./pluginV3Request-DDHTowqW.mjs";
6
- import { K as c, et as l, it as u, l as d, ot as f } from "./metric.mutation-D6RtkleZ.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-BINiwYIE.mjs";
8
- import { a as ke } from "./timeseries-hkiBF4TC.mjs";
9
- import { _ as E } from "./crossPointer-1otwmut1.mjs";
10
- import { c as Ae, h as je, l as Me, n as Ne, s as Pe, u as Fe } from "./RadioButton-D2xlAse7.mjs";
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-DSTXpnb2.mjs";
6
+ import { K as c, et as l, it as u, l as d, ot as f } from "./metric.mutation-BmM7y6ro.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-CL-S1tXR.mjs";
8
+ import { a as ke } from "./timeseries-C3w9dXh4.mjs";
9
+ import { _ as E } from "./crossPointer-B3cgqnZo.mjs";
10
+ import { c as Ae, g as je, l as Me, n as Ne, s as Pe, u as Fe } from "./RadioButton-DZWBIci3.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";
@@ -554,7 +554,7 @@ var bt = {
554
554
  if (r) {
555
555
  if (S(r)) return O.chartType === h.timeSeries ? [] : Ce;
556
556
  if (m.includes(r?.toLowerCase()) || r?.toLowerCase()?.startsWith("decimal") || r?.toLowerCase()?.startsWith("numeric")) return le;
557
- if (se.includes(r?.toLowerCase()) || r?.toLowerCase()?.includes("char")) {
557
+ if (se.includes(r?.toLowerCase()) || r?.toLowerCase()?.includes("char") || r?.toLowerCase()?.includes("keyword")) {
558
558
  if (qt) {
559
559
  let t = !!(r?.toLowerCase() === "keyword" || r?.toLowerCase().includes("keyword") || e?.datatype?.toLowerCase() === "keyword" || e?.name?.endsWith(".keyword") || r && (se.includes(r?.toLowerCase()) || r?.toLowerCase()?.includes("char")) && !r?.toLowerCase().includes("text"));
560
560
  return ae(t);
@@ -1450,6 +1450,11 @@ var bt = {
1450
1450
  updatedMetrics: n === "METRIC" ? l : void 0
1451
1451
  });
1452
1452
  }, xn = ({ column: e, helperFunction: t, type: n, functionConfiguration: r, percentileValue: i, partitionBy: a, partitionByColumns: s }) => {
1453
+ if (qt && [
1454
+ "lowercase",
1455
+ "uppercase",
1456
+ "distinct"
1457
+ ].includes(t.value) && an(e).find((e) => e.value === t.value)?.tooltip) return;
1453
1458
  let c = t.value === "NONE", l = _e?.includes(t?.value || "") && G?.length && G?.[0]?.helperFunction !== "distinct", u = l ? `${ie("distinct of", D || "")} ${G?.[0]?.dataMartColumnAlias || G?.[0]?.name}` : "", d = `${c ? e.dataMartColumnAlias || e.name : `${ie(`${t.label?.toLowerCase()} of`, D || "")} ${e.dataMartColumnAlias || e.name}`}`, f = n === "DIMENSION" ? G : q;
1454
1459
  [...G, ...q].some((t) => d === t?.alias && !(t?.alias === e?.alias && f.includes(t))) && (d = `${d}_${x(4)?.toLowerCase()}`), d = D?.toLowerCase() === "opensearch" ? d.replaceAll(" ", "_")?.replace("*", "_") : d, tt?.(o, e.dataMartColumnAlias || e.name);
1455
1460
  let p = n === "DIMENSION" ? G?.map((n) => n.alias === e.alias ? {
@@ -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-DDHTowqW.mjs";
5
- import { u as n } from "./metric.mutation-D6RtkleZ.mjs";
4
+ import { nn as t } from "./pluginV3Request-DSTXpnb2.mjs";
5
+ import { u as n } from "./metric.mutation-BmM7y6ro.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-BINiwYIE.mjs";
4
+ import { do as e, mo as t } from "./Portal-CL-S1tXR.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);