@databrainhq/plugin 0.15.30 → 0.15.32

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.
@@ -212238,6 +212238,127 @@ const Metric = React__default.memo(
212238
212238
  )
212239
212239
  }
212240
212240
  ),
212241
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
212242
+ "symbol",
212243
+ {
212244
+ id: "rectangle",
212245
+ xmlns: "http://www.w3.org/2000/svg",
212246
+ fill: "none",
212247
+ viewBox: "0 0 32 32",
212248
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
212249
+ "path",
212250
+ {
212251
+ d: "M27 5H5a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h22a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2Zm0 20H5V7h22v18Z",
212252
+ fill: "currentColor"
212253
+ }
212254
+ )
212255
+ }
212256
+ ),
212257
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
212258
+ "symbol",
212259
+ {
212260
+ id: "diamond",
212261
+ xmlns: "http://www.w3.org/2000/svg",
212262
+ fill: "none",
212263
+ viewBox: "0 0 32 32",
212264
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
212265
+ "path",
212266
+ {
212267
+ d: "M29.416 14.59 17.41 2.581a2 2 0 0 0-2.82 0l-12 12.007a2 2 0 0 0 0 2.82l12.006 12.008a2 2 0 0 0 2.82 0l12.006-12.008a2 2 0 0 0 0-2.82h-.006ZM16 28 4 16 16 4l12 12-12 12Z",
212268
+ fill: "currentColor"
212269
+ }
212270
+ )
212271
+ }
212272
+ ),
212273
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
212274
+ "symbol",
212275
+ {
212276
+ id: "triangle",
212277
+ xmlns: "http://www.w3.org/2000/svg",
212278
+ fill: "none",
212279
+ viewBox: "0 0 32 32",
212280
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
212281
+ "path",
212282
+ {
212283
+ d: "M29.6 23.511 18.669 4.528a3.095 3.095 0 0 0-5.338 0L2.4 23.51a2.939 2.939 0 0 0 0 2.965A3.043 3.043 0 0 0 5.069 28H26.93a3.043 3.043 0 0 0 2.666-1.524 2.94 2.94 0 0 0 .003-2.965Zm-1.734 1.964a1.063 1.063 0 0 1-.935.525H5.07a1.064 1.064 0 0 1-.935-.525.949.949 0 0 1 0-.965l10.93-18.984a1.093 1.093 0 0 1 1.876 0L27.87 24.51a.948.948 0 0 1-.005.965Z",
212284
+ fill: "currentColor"
212285
+ }
212286
+ )
212287
+ }
212288
+ ),
212289
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
212290
+ "symbol",
212291
+ {
212292
+ id: "straight-line",
212293
+ xmlns: "http://www.w3.org/2000/svg",
212294
+ fill: "none",
212295
+ viewBox: "0 0 32 32",
212296
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
212297
+ "path",
212298
+ {
212299
+ d: "M28 16a1 1 0 0 1-1 1H5a1 1 0 0 1 0-2h22a1 1 0 0 1 1 1Z",
212300
+ fill: "currentColor"
212301
+ }
212302
+ )
212303
+ }
212304
+ ),
212305
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
212306
+ "symbol",
212307
+ {
212308
+ id: "circular",
212309
+ xmlns: "http://www.w3.org/2000/svg",
212310
+ fill: "none",
212311
+ viewBox: "0 0 32 32",
212312
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
212313
+ "path",
212314
+ {
212315
+ d: "M16 3a13 13 0 1 0 13 13A13.013 13.013 0 0 0 16 3Zm0 24a11 11 0 1 1 11-11 11.012 11.012 0 0 1-11 11Z",
212316
+ fill: "currentColor"
212317
+ }
212318
+ )
212319
+ }
212320
+ ),
212321
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
212322
+ "symbol",
212323
+ {
212324
+ id: "arrow-shape",
212325
+ xmlns: "http://www.w3.org/2000/svg",
212326
+ fill: "none",
212327
+ viewBox: "0 0 18 20",
212328
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
212329
+ "path",
212330
+ {
212331
+ d: "m9 16.5 7.265 2.463c.196.077.42.032.57-.116a.548.548 0 0 0 .134-.572L9 1 1.03 18.275c-.07.2-.017.424.135.572.15.148.374.193.57.116L9 16.5Z",
212332
+ stroke: "#000",
212333
+ strokeLinecap: "round",
212334
+ strokeLinejoin: "round"
212335
+ }
212336
+ )
212337
+ }
212338
+ ),
212339
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
212340
+ "symbol",
212341
+ {
212342
+ id: "angle",
212343
+ xmlns: "http://www.w3.org/2000/svg",
212344
+ fill: "none",
212345
+ viewBox: "0 0 24 24",
212346
+ children: [
212347
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
212348
+ "g",
212349
+ {
212350
+ clipPath: "url(#aa)",
212351
+ stroke: "#000",
212352
+ strokeWidth: "1.5",
212353
+ strokeLinecap: "round",
212354
+ strokeLinejoin: "round",
212355
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M21 19H3l9-15M20.615 15.17h.015M19.516 11.771h.015M17.715 8.67h.015M15.414 5.971h.015" })
212356
+ }
212357
+ ),
212358
+ /* @__PURE__ */ jsxRuntimeExports.jsx("defs", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("clipPath", { id: "aa", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill: "currentColor", d: "M0 0h24v24H0z" }) }) })
212359
+ ]
212360
+ }
212361
+ ),
212241
212362
  /* @__PURE__ */ jsxRuntimeExports.jsx(
212242
212363
  "symbol",
212243
212364
  {
@@ -222248,7 +222369,7 @@ const MetricCard = ({
222248
222369
  ) }) : null,
222249
222370
  isLoadingSummary ? /* @__PURE__ */ jsxRuntimeExports.jsx(SkeletonLoader, { height: "full" }) : null,
222250
222371
  ((_Y = downloadMetrics == null ? void 0 : downloadMetrics.find((m4) => m4.id === (metricItem == null ? void 0 : metricItem.id))) == null ? void 0 : _Y.isInProgress) ? /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { text: "Download is in progress", variant: "primary" }) : null,
222251
- metricItem.footNote ? /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { variant: "small-text", children: metricItem.footNote }) : null,
222372
+ (metricItem == null ? void 0 : metricItem.footNote) ? /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { variant: "small-text", children: metricItem.footNote }) : null,
222252
222373
  onMaximize && (metricItem == null ? void 0 : metricItem.isMetric) && !disableActions && isShowFullScreen && !((chartSettings2 == null ? void 0 : chartSettings2.chartType) === CHART_TYPES.table) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
222253
222374
  Button,
222254
222375
  {
@@ -227809,6 +227930,12 @@ const ExternalMetricList = ({
227809
227930
  }
227810
227931
  }
227811
227932
  }, [shouldFitFullScreen]);
227933
+ useEffect(() => {
227934
+ const handleResize = setTimeout(() => {
227935
+ window.dispatchEvent(new Event("resize"));
227936
+ }, 300);
227937
+ return () => clearTimeout(handleResize);
227938
+ }, [metricsLayout]);
227812
227939
  const metricCards = useMemo(() => {
227813
227940
  return sortedMetricList.map((metricItem) => {
227814
227941
  var _a3, _b3, _c3, _d2, _e, _f, _g, _h, _i;
@@ -246922,7 +247049,7 @@ const ScheduleEmailForm = ({
246922
247049
  error2 && /* @__PURE__ */ jsxRuntimeExports.jsx(Error$1, { message: error2 }),
246923
247050
  isSuccess && /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { variant: "body-text-sm", color: "success", children: "Scheduled successfully!" }),
246924
247051
  isDeleted && /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { variant: "body-text-sm", color: "success", children: "Deleted successfully!" }),
246925
- /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { direction: "row", justify: "end", className: "dbn-w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { className: "dbn-gap-2", children: [
247052
+ getInternalToken && /* @__PURE__ */ jsxRuntimeExports.jsx(Flex, { direction: "row", justify: "end", className: "dbn-w-full", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { className: "dbn-gap-2", children: [
246926
247053
  internalScheduleReportConfig || scheduleReportConfig ? /* @__PURE__ */ jsxRuntimeExports.jsx(
246927
247054
  Button,
246928
247055
  {
@@ -246932,7 +247059,7 @@ const ScheduleEmailForm = ({
246932
247059
  onDelete();
246933
247060
  },
246934
247061
  isDisabled: isLoading,
246935
- className: getInternalToken ? "dbn-bg-gray dbn-border-secondary" : "",
247062
+ className: "dbn-bg-gray dbn-border-secondary",
246936
247063
  children: "Delete"
246937
247064
  }
246938
247065
  ) : /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -250338,6 +250465,127 @@ const Dashboard = ({
250338
250465
  )
250339
250466
  }
250340
250467
  ),
250468
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
250469
+ "symbol",
250470
+ {
250471
+ id: "rectangle",
250472
+ xmlns: "http://www.w3.org/2000/svg",
250473
+ fill: "none",
250474
+ viewBox: "0 0 32 32",
250475
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
250476
+ "path",
250477
+ {
250478
+ d: "M27 5H5a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h22a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2Zm0 20H5V7h22v18Z",
250479
+ fill: "currentColor"
250480
+ }
250481
+ )
250482
+ }
250483
+ ),
250484
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
250485
+ "symbol",
250486
+ {
250487
+ id: "diamond",
250488
+ xmlns: "http://www.w3.org/2000/svg",
250489
+ fill: "none",
250490
+ viewBox: "0 0 32 32",
250491
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
250492
+ "path",
250493
+ {
250494
+ d: "M29.416 14.59 17.41 2.581a2 2 0 0 0-2.82 0l-12 12.007a2 2 0 0 0 0 2.82l12.006 12.008a2 2 0 0 0 2.82 0l12.006-12.008a2 2 0 0 0 0-2.82h-.006ZM16 28 4 16 16 4l12 12-12 12Z",
250495
+ fill: "currentColor"
250496
+ }
250497
+ )
250498
+ }
250499
+ ),
250500
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
250501
+ "symbol",
250502
+ {
250503
+ id: "triangle",
250504
+ xmlns: "http://www.w3.org/2000/svg",
250505
+ fill: "none",
250506
+ viewBox: "0 0 32 32",
250507
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
250508
+ "path",
250509
+ {
250510
+ d: "M29.6 23.511 18.669 4.528a3.095 3.095 0 0 0-5.338 0L2.4 23.51a2.939 2.939 0 0 0 0 2.965A3.043 3.043 0 0 0 5.069 28H26.93a3.043 3.043 0 0 0 2.666-1.524 2.94 2.94 0 0 0 .003-2.965Zm-1.734 1.964a1.063 1.063 0 0 1-.935.525H5.07a1.064 1.064 0 0 1-.935-.525.949.949 0 0 1 0-.965l10.93-18.984a1.093 1.093 0 0 1 1.876 0L27.87 24.51a.948.948 0 0 1-.005.965Z",
250511
+ fill: "currentColor"
250512
+ }
250513
+ )
250514
+ }
250515
+ ),
250516
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
250517
+ "symbol",
250518
+ {
250519
+ id: "straight-line",
250520
+ xmlns: "http://www.w3.org/2000/svg",
250521
+ fill: "none",
250522
+ viewBox: "0 0 32 32",
250523
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
250524
+ "path",
250525
+ {
250526
+ d: "M28 16a1 1 0 0 1-1 1H5a1 1 0 0 1 0-2h22a1 1 0 0 1 1 1Z",
250527
+ fill: "currentColor"
250528
+ }
250529
+ )
250530
+ }
250531
+ ),
250532
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
250533
+ "symbol",
250534
+ {
250535
+ id: "circular",
250536
+ xmlns: "http://www.w3.org/2000/svg",
250537
+ fill: "none",
250538
+ viewBox: "0 0 32 32",
250539
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
250540
+ "path",
250541
+ {
250542
+ d: "M16 3a13 13 0 1 0 13 13A13.013 13.013 0 0 0 16 3Zm0 24a11 11 0 1 1 11-11 11.012 11.012 0 0 1-11 11Z",
250543
+ fill: "currentColor"
250544
+ }
250545
+ )
250546
+ }
250547
+ ),
250548
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
250549
+ "symbol",
250550
+ {
250551
+ id: "arrow-shape",
250552
+ xmlns: "http://www.w3.org/2000/svg",
250553
+ fill: "none",
250554
+ viewBox: "0 0 18 20",
250555
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
250556
+ "path",
250557
+ {
250558
+ d: "m9 16.5 7.265 2.463c.196.077.42.032.57-.116a.548.548 0 0 0 .134-.572L9 1 1.03 18.275c-.07.2-.017.424.135.572.15.148.374.193.57.116L9 16.5Z",
250559
+ stroke: "#000",
250560
+ strokeLinecap: "round",
250561
+ strokeLinejoin: "round"
250562
+ }
250563
+ )
250564
+ }
250565
+ ),
250566
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
250567
+ "symbol",
250568
+ {
250569
+ id: "angle",
250570
+ xmlns: "http://www.w3.org/2000/svg",
250571
+ fill: "none",
250572
+ viewBox: "0 0 24 24",
250573
+ children: [
250574
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
250575
+ "g",
250576
+ {
250577
+ clipPath: "url(#aa)",
250578
+ stroke: "#000",
250579
+ strokeWidth: "1.5",
250580
+ strokeLinecap: "round",
250581
+ strokeLinejoin: "round",
250582
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M21 19H3l9-15M20.615 15.17h.015M19.516 11.771h.015M17.715 8.67h.015M15.414 5.971h.015" })
250583
+ }
250584
+ ),
250585
+ /* @__PURE__ */ jsxRuntimeExports.jsx("defs", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("clipPath", { id: "aa", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { fill: "currentColor", d: "M0 0h24v24H0z" }) }) })
250586
+ ]
250587
+ }
250588
+ ),
250341
250589
  /* @__PURE__ */ jsxRuntimeExports.jsx(
250342
250590
  "symbol",
250343
250591
  {