@trops/dash-core 0.1.125 → 0.1.127

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.js CHANGED
@@ -14818,7 +14818,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
14818
14818
  className: "flex-1 text-center",
14819
14819
  children: /*#__PURE__*/jsxRuntime.jsxs("span", {
14820
14820
  className: "text-xs opacity-40",
14821
- children: ["Step", " ", inlineWizardStep + 1, " ", "of ", inlineTotalSteps]
14821
+ children: ["Step", " ", inlineWizardStep + 1, " of", " ", inlineTotalSteps]
14822
14822
  })
14823
14823
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
14824
14824
  className: "flex flex-row gap-2",
@@ -32702,7 +32702,9 @@ var DashboardDetail = function DashboardDetail(_ref2) {
32702
32702
  _ref2$credentials = _ref2.credentials,
32703
32703
  credentials = _ref2$credentials === void 0 ? null : _ref2$credentials,
32704
32704
  _ref2$onReloadWorkspa = _ref2.onReloadWorkspaces,
32705
- onReloadWorkspaces = _ref2$onReloadWorkspa === void 0 ? null : _ref2$onReloadWorkspa;
32705
+ onReloadWorkspaces = _ref2$onReloadWorkspa === void 0 ? null : _ref2$onReloadWorkspa,
32706
+ _ref2$onOpenWorkspace = _ref2.onOpenWorkspace,
32707
+ onOpenWorkspace = _ref2$onOpenWorkspace === void 0 ? null : _ref2$onOpenWorkspace;
32706
32708
  var ws = workspace;
32707
32709
  var isEditing = editingId === ws.id;
32708
32710
  var widgetCount = (ws.layout || []).length;
@@ -32849,9 +32851,17 @@ var DashboardDetail = function DashboardDetail(_ref2) {
32849
32851
  onClick: onCancelRename,
32850
32852
  size: "sm"
32851
32853
  })]
32852
- }) : /*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading, {
32853
- title: ws.name || "Untitled",
32854
- padding: false
32854
+ }) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
32855
+ children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.SubHeading, {
32856
+ title: ws.name || "Untitled",
32857
+ padding: false
32858
+ }), onOpenWorkspace && /*#__PURE__*/jsxRuntime.jsx(DashReact.ButtonIcon, {
32859
+ icon: "arrow-up-right-from-square",
32860
+ onClick: function onClick() {
32861
+ return onOpenWorkspace(ws);
32862
+ },
32863
+ size: "sm"
32864
+ })]
32855
32865
  })
32856
32866
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
32857
32867
  className: "flex-shrink-0 flex flex-col space-y-3",
@@ -32971,6 +32981,8 @@ var DashboardsSection = function DashboardsSection(_ref) {
32971
32981
  credentials = _ref$credentials === void 0 ? null : _ref$credentials,
32972
32982
  _ref$onReloadWorkspac = _ref.onReloadWorkspaces,
32973
32983
  onReloadWorkspaces = _ref$onReloadWorkspac === void 0 ? null : _ref$onReloadWorkspac,
32984
+ _ref$onOpenWorkspace = _ref.onOpenWorkspace,
32985
+ onOpenWorkspace = _ref$onOpenWorkspace === void 0 ? null : _ref$onOpenWorkspace,
32974
32986
  _ref$createRequested = _ref.createRequested,
32975
32987
  createRequested = _ref$createRequested === void 0 ? false : _ref$createRequested,
32976
32988
  _ref$onCreateAcknowle = _ref.onCreateAcknowledged,
@@ -33225,7 +33237,8 @@ var DashboardsSection = function DashboardsSection(_ref) {
33225
33237
  },
33226
33238
  dashApi: dashApi,
33227
33239
  credentials: credentials,
33228
- onReloadWorkspaces: onReloadWorkspaces
33240
+ onReloadWorkspaces: onReloadWorkspaces,
33241
+ onOpenWorkspace: onOpenWorkspace
33229
33242
  });
33230
33243
  }
33231
33244
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
@@ -37072,7 +37085,7 @@ var RegistryPackageDetail = function RegistryPackageDetail(_ref) {
37072
37085
  children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
37073
37086
  icon: "triangle-exclamation",
37074
37087
  className: "mr-1"
37075
- }), "Incompatible \u2014 requires", " ", widget.missingApis.join(", "), " API", widget.missingApis.length !== 1 ? "s" : ""]
37088
+ }), "Incompatible \u2014 requires ", widget.missingApis.join(", "), " API", widget.missingApis.length !== 1 ? "s" : ""]
37076
37089
  })
37077
37090
  }), widget.repository && /*#__PURE__*/jsxRuntime.jsxs("div", {
37078
37091
  children: [/*#__PURE__*/jsxRuntime.jsx("span", {
@@ -39355,6 +39368,8 @@ var AppSettingsModal = function AppSettingsModal(_ref) {
39355
39368
  onReloadWorkspaces = _ref$onReloadWorkspac === void 0 ? null : _ref$onReloadWorkspac,
39356
39369
  _ref$onReloadMenuItem = _ref.onReloadMenuItems,
39357
39370
  onReloadMenuItems = _ref$onReloadMenuItem === void 0 ? null : _ref$onReloadMenuItem,
39371
+ _ref$onOpenWorkspace = _ref.onOpenWorkspace,
39372
+ onOpenWorkspace = _ref$onOpenWorkspace === void 0 ? null : _ref$onOpenWorkspace,
39358
39373
  _ref$onOpenThemeEdito = _ref.onOpenThemeEditor,
39359
39374
  onOpenThemeEditor = _ref$onOpenThemeEdito === void 0 ? null : _ref$onOpenThemeEdito,
39360
39375
  _ref$authStatus = _ref.authStatus,
@@ -39450,7 +39465,8 @@ var AppSettingsModal = function AppSettingsModal(_ref) {
39450
39465
  createRequested: createRequested,
39451
39466
  onCreateAcknowledged: function onCreateAcknowledged() {
39452
39467
  return setCreateRequested(false);
39453
- }
39468
+ },
39469
+ onOpenWorkspace: onOpenWorkspace
39454
39470
  }), activeSection === "folders" && /*#__PURE__*/jsxRuntime.jsx(FoldersSection, {
39455
39471
  menuItems: menuItems,
39456
39472
  workspaces: workspaces,
@@ -41932,6 +41948,10 @@ var DashboardStageInner = function DashboardStageInner(_ref2) {
41932
41948
  credentials: credentials,
41933
41949
  onReloadWorkspaces: loadWorkspaces,
41934
41950
  onReloadMenuItems: loadMenuItems,
41951
+ onOpenWorkspace: function onOpenWorkspace(ws) {
41952
+ handleOpenTab(ws);
41953
+ setIsAppSettingsOpen(false);
41954
+ },
41935
41955
  onOpenThemeEditor: function onOpenThemeEditor() {
41936
41956
  setIsAppSettingsOpen(false);
41937
41957
  setIsThemeManagerOpen(true);