@databrainhq/plugin 0.13.0-beta.12 → 0.13.0-beta.13

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.
@@ -25832,7 +25832,7 @@ function _d(t, M, e) {
25832
25832
  var i = V1(t, M, e);
25833
25833
  return xye(i, Iye);
25834
25834
  }
25835
- const qg = "/dashboard", My = "/metric", Tq = "dashboardData", hye = `${qg}/embeddedMetric`, Eye = "embeddedMetric", pye = `${My}/layout`, yq = "dashboardLayout", Sye = `${qg}/scheduledReport`, vye = "dashboardScheduledReport", Qye = `${My}/saveLayout`, wye = "saveLayout", kye = `${qg}/saveScheduleReport`, Uye = "saveScheduleReport", Cye = `${qg}/deleteScheduleReport`, mye = "deleteScheduleReport", Yye = `${qg}/createMetric`, bye = "createMetric", _ye = `${qg}/updateMetric`, Rye = "updateMetric", Pye = `${qg}/updateAdminMetric`, Vye = "updateAdminMetric", Fye = `${qg}/generateMetric`, Wye = "generateMetric", Bye = `${qg}/datasetMetricCreation`, $ye = "datasetMetricCreation", Gye = `${qg}/previewTable`, Hye = "previewTable", Zye = `${My}/query`, Jye = "query", Xye = `${My}/rawDownloadSettings`, Kye = "rawDownloadSettings", qye = `${My}/column`, eze = "column", tze = `${My}/underlyingData`, Mze = "underlyingData", ize = `${My}/invokeShareCsv`, nze = "invokeShareCsv", rze = `${My}/markArchived`, aze = "markArchived", Nze = "http://express-backend-static-ip-alb-992883015.us-east-1.elb.amazonaws.com", jN = async (t, M = { method: "GET" }) => {
25835
+ const qg = "/dashboard", My = "/metric", Tq = "dashboardData", hye = `${qg}/embeddedMetric`, Eye = "embeddedMetric", pye = `${My}/layout`, yq = "dashboardLayout", Sye = `${qg}/scheduledReport`, vye = "dashboardScheduledReport", Qye = `${My}/saveLayout`, wye = "saveLayout", kye = `${qg}/saveScheduleReport`, Uye = "saveScheduleReport", Cye = `${qg}/deleteScheduleReport`, mye = "deleteScheduleReport", Yye = `${qg}/createMetric`, bye = "createMetric", _ye = `${qg}/updateMetric`, Rye = "updateMetric", Pye = `${qg}/updateAdminMetric`, Vye = "updateAdminMetric", Fye = `${qg}/generateMetric`, Wye = "generateMetric", Bye = `${qg}/datasetMetricCreation`, $ye = "datasetMetricCreation", Gye = `${qg}/previewTable`, Hye = "previewTable", Zye = `${My}/query`, Jye = "query", Xye = `${My}/rawDownloadSettings`, Kye = "rawDownloadSettings", qye = `${My}/column`, eze = "column", tze = `${My}/underlyingData`, Mze = "underlyingData", ize = `${My}/invokeShareCsv`, nze = "invokeShareCsv", rze = `${My}/markArchived`, aze = "markArchived", Nze = "https://edetnvlrqissubqlrwbtvwx2ia0tqykw.lambda-url.us-east-1.on.aws", jN = async (t, M = { method: "GET" }) => {
25836
25836
  const e = {
25837
25837
  method: M.method,
25838
25838
  headers: {
@@ -26126,7 +26126,7 @@ const FT = Symbol(), j5 = (t) => !!t[FT], lS = (t) => !t[FT].c, y0 = (t) => {
26126
26126
  ), fze = /* @__PURE__ */ new WeakMap(), jS = (t) => "init" in t, T5 = "r", y5 = "w", vv = "c", z5 = "s", RG = "h", xze = "n", hze = "l", Eze = "a", pze = "m", Sze = (t) => {
26127
26127
  const M = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new Map();
26128
26128
  let n, r;
26129
- if (({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "http://express-backend-static-ip-alb-992883015.us-east-1.elb.amazonaws.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && (n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set()), t)
26129
+ if (({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "https://edetnvlrqissubqlrwbtvwx2ia0tqykw.lambda-url.us-east-1.on.aws", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && (n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set()), t)
26130
26130
  for (const [W, Z] of t) {
26131
26131
  const K = {
26132
26132
  v: Z,
@@ -26135,7 +26135,7 @@ const FT = Symbol(), j5 = (t) => !!t[FT], lS = (t) => !t[FT].c, y0 = (t) => {
26135
26135
  // not invalidated
26136
26136
  d: /* @__PURE__ */ new Map()
26137
26137
  };
26138
- ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "http://express-backend-static-ip-alb-992883015.us-east-1.elb.amazonaws.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && (Object.freeze(K), jS(W) || console.warn(
26138
+ ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "https://edetnvlrqissubqlrwbtvwx2ia0tqykw.lambda-url.us-east-1.on.aws", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && (Object.freeze(K), jS(W) || console.warn(
26139
26139
  "Found initial value for derived atom which can cause unexpected behavior",
26140
26140
  W
26141
26141
  )), M.set(W, K);
@@ -26161,7 +26161,7 @@ const FT = Symbol(), j5 = (t) => !!t[FT], lS = (t) => !t[FT].c, y0 = (t) => {
26161
26161
  }
26162
26162
  return M.get(Z);
26163
26163
  }, s = (W, Z, K) => {
26164
- if (({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "http://express-backend-static-ip-alb-992883015.us-east-1.elb.amazonaws.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && Object.freeze(K), W)
26164
+ if (({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "https://edetnvlrqissubqlrwbtvwx2ia0tqykw.lambda-url.us-east-1.on.aws", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && Object.freeze(K), W)
26165
26165
  o(W).set(Z, K);
26166
26166
  else {
26167
26167
  const q = M.get(Z);
@@ -26266,7 +26266,7 @@ const FT = Symbol(), j5 = (t) => !!t[FT], lS = (t) => !t[FT].c, y0 = (t) => {
26266
26266
  };
26267
26267
  s(W, Z, q);
26268
26268
  } else
26269
- ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "http://express-backend-static-ip-alb-992883015.us-east-1.elb.amazonaws.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn("[Bug] could not invalidate non existing atom", Z);
26269
+ ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "https://edetnvlrqissubqlrwbtvwx2ia0tqykw.lambda-url.us-east-1.on.aws", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn("[Bug] could not invalidate non existing atom", Z);
26270
26270
  }, f = (W, Z, K) => {
26271
26271
  if (!K) {
26272
26272
  const X = g(W, Z);
@@ -26344,14 +26344,14 @@ const FT = Symbol(), j5 = (t) => !!t[FT], lS = (t) => !t[FT].c, y0 = (t) => {
26344
26344
  () => X(ge, le)
26345
26345
  ) : X(ge, le);
26346
26346
  });
26347
- throw ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "http://express-backend-static-ip-alb-992883015.us-east-1.elb.amazonaws.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.info(
26347
+ throw ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "https://edetnvlrqissubqlrwbtvwx2ia0tqykw.lambda-url.us-east-1.on.aws", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.info(
26348
26348
  "Reading pending atom state in write operation. We throw a promise for now.",
26349
26349
  ge
26350
26350
  ), ye.p;
26351
26351
  }
26352
26352
  if ("v" in ye)
26353
26353
  return ye.v;
26354
- throw ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "http://express-backend-static-ip-alb-992883015.us-east-1.elb.amazonaws.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn(
26354
+ throw ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "https://edetnvlrqissubqlrwbtvwx2ia0tqykw.lambda-url.us-east-1.on.aws", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn(
26355
26355
  "[Bug] no value found while reading atom in write operation. This is probably a bug.",
26356
26356
  ge
26357
26357
  ), new Error("no value found");
@@ -26378,7 +26378,7 @@ const FT = Symbol(), j5 = (t) => !!t[FT], lS = (t) => !t[FT].c, y0 = (t) => {
26378
26378
  t: new Set(K && [K]),
26379
26379
  l: /* @__PURE__ */ new Set()
26380
26380
  };
26381
- if (e.set(Z, q), ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "http://express-backend-static-ip-alb-992883015.us-east-1.elb.amazonaws.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && r.add(Z), f(void 0, Z).d.forEach((Me, ne) => {
26381
+ if (e.set(Z, q), ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "https://edetnvlrqissubqlrwbtvwx2ia0tqykw.lambda-url.us-east-1.on.aws", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && r.add(Z), f(void 0, Z).d.forEach((Me, ne) => {
26382
26382
  const ge = e.get(ne);
26383
26383
  ge ? ge.t.add(Z) : ne !== Z && _(W, ne, Z);
26384
26384
  }), v(Z) && Z.onMount) {
@@ -26389,14 +26389,14 @@ const FT = Symbol(), j5 = (t) => !!t[FT], lS = (t) => !t[FT].c, y0 = (t) => {
26389
26389
  }, Y = (W, Z) => {
26390
26390
  var K;
26391
26391
  const q = (K = e.get(Z)) == null ? void 0 : K.u;
26392
- q && q(), e.delete(Z), ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "http://express-backend-static-ip-alb-992883015.us-east-1.elb.amazonaws.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && r.delete(Z);
26392
+ q && q(), e.delete(Z), ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "https://edetnvlrqissubqlrwbtvwx2ia0tqykw.lambda-url.us-east-1.on.aws", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && r.delete(Z);
26393
26393
  const X = g(W, Z);
26394
26394
  X ? ("p" in X && y0(X.p), X.d.forEach((Me, ne) => {
26395
26395
  if (ne !== Z) {
26396
26396
  const ge = e.get(ne);
26397
26397
  ge && (ge.t.delete(Z), L(ne, ge) && Y(W, ne));
26398
26398
  }
26399
- })) : ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "http://express-backend-static-ip-alb-992883015.us-east-1.elb.amazonaws.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn("[Bug] could not find atom state to unmount", Z);
26399
+ })) : ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "https://edetnvlrqissubqlrwbtvwx2ia0tqykw.lambda-url.us-east-1.on.aws", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && console.warn("[Bug] could not find atom state to unmount", Z);
26400
26400
  }, m = (W, Z, K, q) => {
26401
26401
  const X = new Set(K.d.keys());
26402
26402
  q == null || q.forEach((Me, ne) => {
@@ -26432,7 +26432,7 @@ const FT = Symbol(), j5 = (t) => !!t[FT], lS = (t) => !t[FT].c, y0 = (t) => {
26432
26432
  Me == null || Me.l.forEach((ne) => ne());
26433
26433
  });
26434
26434
  }
26435
- ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "http://express-backend-static-ip-alb-992883015.us-east-1.elb.amazonaws.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && n.forEach((Z) => Z());
26435
+ ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "https://edetnvlrqissubqlrwbtvwx2ia0tqykw.lambda-url.us-east-1.on.aws", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && n.forEach((Z) => Z());
26436
26436
  }, P = (W) => {
26437
26437
  o(W).forEach((K, q) => {
26438
26438
  const X = M.get(q);
@@ -26450,7 +26450,7 @@ const FT = Symbol(), j5 = (t) => !!t[FT], lS = (t) => !t[FT].c, y0 = (t) => {
26450
26450
  jS(K) && (z(Z, K, q), w(Z, K));
26451
26451
  R(Z);
26452
26452
  };
26453
- return ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "http://express-backend-static-ip-alb-992883015.us-east-1.elb.amazonaws.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" ? {
26453
+ return ({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "https://edetnvlrqissubqlrwbtvwx2ia0tqykw.lambda-url.us-east-1.on.aws", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" ? {
26454
26454
  [T5]: h,
26455
26455
  [y5]: k,
26456
26456
  [vv]: B,
@@ -26476,7 +26476,7 @@ function Lq(t, M) {
26476
26476
  function Qze(t, M) {
26477
26477
  const e = Oq(M), i = oe.useContext(e), { s: n, v: r } = i, a = (s) => {
26478
26478
  const c = n[T5](t, s);
26479
- if (({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "http://express-backend-static-ip-alb-992883015.us-east-1.elb.amazonaws.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && !c.y)
26479
+ if (({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "https://edetnvlrqissubqlrwbtvwx2ia0tqykw.lambda-url.us-east-1.on.aws", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && !c.y)
26480
26480
  throw new Error("should not be invalidated");
26481
26481
  if ("e" in c)
26482
26482
  throw c.e;
@@ -26514,7 +26514,7 @@ function wze(t, M) {
26514
26514
  const e = Oq(M), { s: i, w: n } = oe.useContext(e);
26515
26515
  return oe.useCallback(
26516
26516
  (a) => {
26517
- if (({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "http://express-backend-static-ip-alb-992883015.us-east-1.elb.amazonaws.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && !("write" in t))
26517
+ if (({ VITE_TOKEN: "b48dfbb2-9a7e-4f16-a840-a8f7a9fa19db", VITE_END_POINT: "https://edetnvlrqissubqlrwbtvwx2ia0tqykw.lambda-url.us-east-1.on.aws", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 } && "production") !== "production" && !("write" in t))
26518
26518
  throw new Error("not writable atom");
26519
26519
  const N = (u) => i[y5](t, a, u);
26520
26520
  return n ? n(N) : N();