@databrainhq/plugin 0.7.4 → 0.7.5

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/index.es.js CHANGED
@@ -82030,18 +82030,18 @@ const BoxPlot = ({
82030
82030
  })
82031
82031
  });
82032
82032
  };
82033
- const tableSection = "_tableSection_1irbj_1";
82034
- const tableContainer = "_tableContainer_1irbj_5";
82035
- const tableDiv = "_tableDiv_1irbj_9";
82036
- const table$4 = "_table_1irbj_1";
82037
- const tableHead$1 = "_tableHead_1irbj_17";
82038
- const tableHeadColHash = "_tableHeadColHash_1irbj_21";
82039
- const tableCol = "_tableCol_1irbj_25";
82040
- const tableColLabel = "_tableColLabel_1irbj_29";
82041
- const data = "_data_1irbj_33";
82042
- const tableBodyColHash = "_tableBodyColHash_1irbj_37";
82043
- const tableBodyColHashLabel = "_tableBodyColHashLabel_1irbj_41";
82044
- const noData$1 = "_noData_1irbj_53";
82033
+ const tableSection = "_tableSection_20k3k_1";
82034
+ const tableContainer = "_tableContainer_20k3k_5";
82035
+ const tableDiv = "_tableDiv_20k3k_9";
82036
+ const table$4 = "_table_20k3k_1";
82037
+ const tableHead$1 = "_tableHead_20k3k_17";
82038
+ const tableHeadColHash = "_tableHeadColHash_20k3k_21";
82039
+ const tableCol = "_tableCol_20k3k_25";
82040
+ const tableColLabel = "_tableColLabel_20k3k_29";
82041
+ const data = "_data_20k3k_33";
82042
+ const tableBodyColHash = "_tableBodyColHash_20k3k_37";
82043
+ const tableBodyColHashLabel = "_tableBodyColHashLabel_20k3k_41";
82044
+ const noData$1 = "_noData_20k3k_53";
82045
82045
  var style$1 = {
82046
82046
  tableSection,
82047
82047
  tableContainer,
@@ -82054,8 +82054,8 @@ var style$1 = {
82054
82054
  data,
82055
82055
  tableBodyColHash,
82056
82056
  tableBodyColHashLabel,
82057
- "table-loader-container": "_table-loader-container_1irbj_45",
82058
- "table-error-message": "_table-error-message_1irbj_49",
82057
+ "table-loader-container": "_table-loader-container_20k3k_45",
82058
+ "table-error-message": "_table-error-message_20k3k_49",
82059
82059
  noData: noData$1
82060
82060
  };
82061
82061
  var classnames = { exports: {} };
@@ -88838,35 +88838,35 @@ const ChartSettings = ({
88838
88838
  })]
88839
88839
  });
88840
88840
  };
88841
- const searchCommand$1 = "_searchCommand_x9lw6_9";
88842
- const chartText = "_chartText_x9lw6_25";
88843
- const charts = "_charts_x9lw6_33";
88844
- const metricChart = "_metricChart_x9lw6_41";
88845
- const metricChartEmpty = "_metricChartEmpty_x9lw6_49";
88846
- const fullQuery = "_fullQuery_x9lw6_73";
88847
- const noQuery = "_noQuery_x9lw6_81";
88848
- const chartButtonContainer = "_chartButtonContainer_x9lw6_105";
88849
- const searchWrapper = "_searchWrapper_x9lw6_113";
88850
- const searchIcon = "_searchIcon_x9lw6_121";
88851
- const chartConfigure = "_chartConfigure_x9lw6_129";
88852
- const chartSettings = "_chartSettings_x9lw6_137";
88853
- const labels = "_labels_x9lw6_145";
88854
- const chartButtons = "_chartButtons_x9lw6_153";
88855
- const chartButton = "_chartButton_x9lw6_97";
88841
+ const searchCommand$1 = "_searchCommand_1jfcs_9";
88842
+ const chartText = "_chartText_1jfcs_25";
88843
+ const charts = "_charts_1jfcs_33";
88844
+ const metricChart = "_metricChart_1jfcs_41";
88845
+ const metricChartEmpty = "_metricChartEmpty_1jfcs_49";
88846
+ const fullQuery = "_fullQuery_1jfcs_73";
88847
+ const noQuery = "_noQuery_1jfcs_81";
88848
+ const chartButtonContainer = "_chartButtonContainer_1jfcs_105";
88849
+ const searchWrapper = "_searchWrapper_1jfcs_113";
88850
+ const searchIcon = "_searchIcon_1jfcs_121";
88851
+ const chartConfigure = "_chartConfigure_1jfcs_129";
88852
+ const chartSettings = "_chartSettings_1jfcs_137";
88853
+ const labels = "_labels_1jfcs_145";
88854
+ const chartButtons = "_chartButtons_1jfcs_153";
88855
+ const chartButton = "_chartButton_1jfcs_97";
88856
88856
  var styles$d = {
88857
- "outputTab-header": "_outputTab-header_x9lw6_1",
88857
+ "outputTab-header": "_outputTab-header_1jfcs_1",
88858
88858
  searchCommand: searchCommand$1,
88859
- "chartTab-container": "_chartTab-container_x9lw6_17",
88859
+ "chartTab-container": "_chartTab-container_1jfcs_17",
88860
88860
  chartText,
88861
88861
  charts,
88862
88862
  metricChart,
88863
88863
  metricChartEmpty,
88864
- "chartTab-wrapper": "_chartTab-wrapper_x9lw6_57",
88865
- "chartTab-wrapper-head": "_chartTab-wrapper-head_x9lw6_65",
88864
+ "chartTab-wrapper": "_chartTab-wrapper_1jfcs_57",
88865
+ "chartTab-wrapper-head": "_chartTab-wrapper-head_1jfcs_65",
88866
88866
  fullQuery,
88867
88867
  noQuery,
88868
- "tableTab-header": "_tableTab-header_x9lw6_89",
88869
- "chartButton-header": "_chartButton-header_x9lw6_97",
88868
+ "tableTab-header": "_tableTab-header_1jfcs_89",
88869
+ "chartButton-header": "_chartButton-header_1jfcs_97",
88870
88870
  chartButtonContainer,
88871
88871
  searchWrapper,
88872
88872
  searchIcon,
@@ -89393,13 +89393,13 @@ const TableTab = ({
89393
89393
  })]
89394
89394
  });
89395
89395
  };
89396
- const wrapper = "_wrapper_8x5tf_9";
89397
- const searchCommand = "_searchCommand_8x5tf_12";
89398
- const tabButton = "_tabButton_8x5tf_15";
89399
- const tabActive = "_tabActive_8x5tf_18";
89396
+ const wrapper = "_wrapper_wy97p_9";
89397
+ const searchCommand = "_searchCommand_wy97p_12";
89398
+ const tabButton = "_tabButton_wy97p_15";
89399
+ const tabActive = "_tabActive_wy97p_18";
89400
89400
  var styles$8 = {
89401
- "main-container": "_main-container_8x5tf_1",
89402
- "outputTab-header": "_outputTab-header_8x5tf_5",
89401
+ "main-container": "_main-container_wy97p_1",
89402
+ "outputTab-header": "_outputTab-header_wy97p_5",
89403
89403
  wrapper,
89404
89404
  searchCommand,
89405
89405
  tabButton,
@@ -90426,13 +90426,13 @@ const ExternalMetricForm = ({
90426
90426
  onSubmit,
90427
90427
  defaultValues,
90428
90428
  onCancel,
90429
- isEmbedded,
90429
+ isEmbedded = true,
90430
90430
  dashboardIds,
90431
90431
  onDashboardChange,
90432
90432
  companyId,
90433
90433
  error: error2
90434
90434
  }) => {
90435
- var _a2, _b2;
90435
+ var _a2, _b2, _c2;
90436
90436
  const {
90437
90437
  register: register2,
90438
90438
  handleSubmit
@@ -90450,10 +90450,13 @@ const ExternalMetricForm = ({
90450
90450
  companyId
90451
90451
  });
90452
90452
  const dashboards = dashboardsData == null ? void 0 : dashboardsData.externalDashboards;
90453
- const options2 = (_b2 = dashboards == null ? void 0 : dashboards.filter((d2) => d2.id === dashboardIds[0]).map((dash) => ({
90453
+ const options2 = isEmbedded ? (_b2 = dashboards == null ? void 0 : dashboards.filter((d2) => d2.id === dashboardIds[0]).map((dash) => ({
90454
+ value: dash.id,
90455
+ label: dash.name
90456
+ }))) != null ? _b2 : [] : (_c2 = dashboards == null ? void 0 : dashboards.map((dash) => ({
90454
90457
  value: dash.id,
90455
90458
  label: dash.name
90456
- }))) != null ? _b2 : [];
90459
+ }))) != null ? _c2 : [];
90457
90460
  return /* @__PURE__ */ jsxs("form", {
90458
90461
  className: styles$5.form,
90459
90462
  onSubmit: submitMetric,