@databrainhq/plugin 0.17.9-beta.16 → 0.17.9-beta.17

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 (37) hide show
  1. package/dist/{Accordion-Bb74CQ-z.mjs → Accordion-DsORmK4r.mjs} +1 -1
  2. package/dist/{ChartCardOverlay-7PjIkbse.mjs → ChartCardOverlay-CyLHFHJa.mjs} +15 -12
  3. package/dist/{ChartNavigationProvider-CtSvd6kl.mjs → ChartNavigationProvider-I67YIHce.mjs} +1401 -1401
  4. package/dist/{CreateGlobalFilter-BqFhZ5_I.mjs → CreateGlobalFilter-Da6S3dnu.mjs} +2 -2
  5. package/dist/{CreateMetricV2-Bb5xNRY7.mjs → CreateMetricV2-RNLSJMxN.mjs} +21 -21
  6. package/dist/{HorizontalStackTable-Ci6XWwf-.mjs → HorizontalStackTable-Bg3wERrZ.mjs} +4 -4
  7. package/dist/{Loader-fiz_o6YC.mjs → Loader-BOT4ofJi.mjs} +1 -1
  8. package/dist/{ManageMetricsV2-qyk-SCcL.mjs → ManageMetricsV2-B0mbiFlY.mjs} +4 -4
  9. package/dist/{MetricCardV2-YINjQ5xk.mjs → MetricCardV2-A3PVcIkw.mjs} +10 -10
  10. package/dist/{NoDataFound-CVyRVkzK.mjs → NoDataFound-CEBF6MOr.mjs} +1 -1
  11. package/dist/{NoDataState-Dgm3tkCe.mjs → NoDataState-CmQQi1kw.mjs} +4 -4
  12. package/dist/{Panel-BpByQBce.mjs → Panel-DD-9FoTg.mjs} +1 -1
  13. package/dist/{PivotTableV2-DzIDJiSY.mjs → PivotTableV2-pWrTxupk.mjs} +2 -2
  14. package/dist/{PivotTableV3-B4UiH33n.mjs → PivotTableV3-B6QG_LCW.mjs} +4 -4
  15. package/dist/{Portal-CLz2zya_.mjs → Portal-B4Kj0rIP.mjs} +38 -38
  16. package/dist/{RadioButton-Dz-MsEbj.mjs → RadioButton-DpB36vSj.mjs} +44 -44
  17. package/dist/{ScheduleEmail-D85TAzI5.mjs → ScheduleEmail-gqxwqtp3.mjs} +7 -7
  18. package/dist/{TagInputField-CFrkMoTw.mjs → TagInputField-BbP-qWl4.mjs} +119 -110
  19. package/dist/{TextAreaField-B5Gxdaat.mjs → TextAreaField-C9qNJtxa.mjs} +10 -10
  20. package/dist/{charts-B3jV6aAX.mjs → charts-B2lwO2wF.mjs} +2 -2
  21. package/dist/{chevron-down-jFldnWcP.mjs → chevron-down-DYt-7zTT.mjs} +0 -0
  22. package/dist/{conditionalFormatting-ClTTstDV.mjs → conditionalFormatting-CrVixZL6.mjs} +1 -1
  23. package/dist/{createGlobalFilter.module-C1gmnqpy.mjs → createGlobalFilter.module-D9y4fUa6.mjs} +1 -1
  24. package/dist/{echarts-BwNzdyVe.mjs → echarts-CNq_XyLZ.mjs} +1 -1
  25. package/dist/{loading-state-CWZlWaOv.mjs → loading-state-CF_6fTCn.mjs} +3 -3
  26. package/dist/{metric.mutation-rX2iD9gk.mjs → metric.mutation-Bw7qZhLi.mjs} +37 -37
  27. package/dist/{pluginV3Request-CTFUezaJ.mjs → pluginV3Request-Ctr47kPo.mjs} +14 -14
  28. package/dist/{renderer-BQ-2Ksj0.mjs → renderer-BTvVu5ie.mjs} +6 -6
  29. package/dist/{timeseries-BeWDRXFD.mjs → timeseries-1uk9rCLq.mjs} +1 -1
  30. package/dist/{toTasteAppearance-xPVajb_2.mjs → toTasteAppearance-DyYAwtBW.mjs} +1 -1
  31. package/dist/{useGuesTokenUsageLog-R2_v2Wnd.mjs → useGuesTokenUsageLog-C98YQ6dU.mjs} +1 -1
  32. package/dist/{usePublishArchivedMetrics-C19AAeOY.mjs → usePublishArchivedMetrics-C3suEAda.mjs} +2 -2
  33. package/dist/{useQuery-xw_-DpE2.mjs → useQuery-BlfQIaBR.mjs} +1 -1
  34. package/dist/webcomponents.css +1 -1
  35. package/dist/webcomponents.es.js +1989 -1986
  36. package/dist/webcomponents.umd.js +146 -146
  37. package/package.json +1 -1
@@ -2,7 +2,7 @@ import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { t as e } from "./jsx-runtime-B0EUnyJj.mjs";
5
- import { t } from "./chevron-down-jFldnWcP.mjs";
5
+ import { t } from "./chevron-down-DYt-7zTT.mjs";
6
6
  import n, { useEffect as r } from "react";
7
7
  //#region src/charts/toAnswerLineInput.ts
8
8
  var i = Symbol("null-category");
@@ -10,7 +10,6 @@ var n = {
10
10
  }, r = [
11
11
  [/\b(401|unauthori[sz]ed|invalid (guest )?token|token (is )?expired)\b/, "This session expired. Refresh the page to continue."],
12
12
  [/\b(403|forbidden|permission denied|access denied)\b/, "You don't have access to this data."],
13
- [/\b(404|not found)\b/, "This content could not be found. Ask the app owner to check the link."],
14
13
  [/\b(408|timed? ?out|timeout|etimedout|deadline exceeded)\b/, "This took too long to load. Try again."],
15
14
  [/\b(429|too many requests|rate limit)\b/, "Too many requests just now. Try again in a moment."],
16
15
  [/\b(50[0234]|internal server error|bad gateway|service unavailable|gateway timeout)\b/, "The server could not complete this request. Try again. If it keeps failing, contact support."],
@@ -21,23 +20,27 @@ function a(e) {
21
20
  let t = e.trim();
22
21
  return t ? /\b[45]\d{2}\b/.test(t) || /\b(error|exception|traceback|stack)\s*:/i.test(t) || /\b\w+(Error|Exception)\b/.test(t) || /\b[A-Z][A-Z0-9]*(_[A-Z0-9]+)+\b/.test(t) || /^[[{]/.test(t) || /\bhttps?:\/\//.test(t) || /\bat\s+\S+\s+\(/.test(t) || !/[a-z]+\s/.test(t) : !1;
23
22
  }
24
- function o(e, t) {
25
- let n = s(t) ?? s(e), o = e?.trim();
26
- if (!o) return {
23
+ function o(e, t, n) {
24
+ let o = s(t) ?? s(e), c = e?.trim();
25
+ if (!c) return {
27
26
  message: i,
28
- detail: n
27
+ detail: o
29
28
  };
30
- let c = o.toLowerCase().replace(/\s+/g, " ");
31
- for (let [e, t] of r) if (e.test(c)) return {
29
+ let l = c.toLowerCase().replace(/\s+/g, " ");
30
+ if (/\b(404|not found)\b/.test(l)) return {
31
+ message: n === "dashboard" ? "This dashboard no longer exists. Ask the app owner to check the link." : n === "metric" ? "This metric no longer exists. Ask the app owner to check the link." : "This content could not be found. Ask the app owner to check the link.",
32
+ detail: o
33
+ };
34
+ for (let [e, t] of r) if (e.test(l)) return {
32
35
  message: t,
33
- detail: n
36
+ detail: o
34
37
  };
35
- return a(o) ? {
38
+ return a(c) ? {
36
39
  message: i,
37
- detail: n
40
+ detail: o
38
41
  } : {
39
- message: o,
40
- detail: n
42
+ message: c,
43
+ detail: o
41
44
  };
42
45
  }
43
46
  function s(e) {