@trops/dash-core 0.1.126 → 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.esm.js CHANGED
@@ -32684,7 +32684,9 @@ var DashboardDetail = function DashboardDetail(_ref2) {
32684
32684
  _ref2$credentials = _ref2.credentials,
32685
32685
  credentials = _ref2$credentials === void 0 ? null : _ref2$credentials,
32686
32686
  _ref2$onReloadWorkspa = _ref2.onReloadWorkspaces,
32687
- onReloadWorkspaces = _ref2$onReloadWorkspa === void 0 ? null : _ref2$onReloadWorkspa;
32687
+ onReloadWorkspaces = _ref2$onReloadWorkspa === void 0 ? null : _ref2$onReloadWorkspa,
32688
+ _ref2$onOpenWorkspace = _ref2.onOpenWorkspace,
32689
+ onOpenWorkspace = _ref2$onOpenWorkspace === void 0 ? null : _ref2$onOpenWorkspace;
32688
32690
  var ws = workspace;
32689
32691
  var isEditing = editingId === ws.id;
32690
32692
  var widgetCount = (ws.layout || []).length;
@@ -32831,9 +32833,17 @@ var DashboardDetail = function DashboardDetail(_ref2) {
32831
32833
  onClick: onCancelRename,
32832
32834
  size: "sm"
32833
32835
  })]
32834
- }) : /*#__PURE__*/jsx(SubHeading, {
32835
- title: ws.name || "Untitled",
32836
- padding: false
32836
+ }) : /*#__PURE__*/jsxs(Fragment, {
32837
+ children: [/*#__PURE__*/jsx(SubHeading, {
32838
+ title: ws.name || "Untitled",
32839
+ padding: false
32840
+ }), onOpenWorkspace && /*#__PURE__*/jsx(ButtonIcon, {
32841
+ icon: "arrow-up-right-from-square",
32842
+ onClick: function onClick() {
32843
+ return onOpenWorkspace(ws);
32844
+ },
32845
+ size: "sm"
32846
+ })]
32837
32847
  })
32838
32848
  }), /*#__PURE__*/jsxs("div", {
32839
32849
  className: "flex-shrink-0 flex flex-col space-y-3",
@@ -32953,6 +32963,8 @@ var DashboardsSection = function DashboardsSection(_ref) {
32953
32963
  credentials = _ref$credentials === void 0 ? null : _ref$credentials,
32954
32964
  _ref$onReloadWorkspac = _ref.onReloadWorkspaces,
32955
32965
  onReloadWorkspaces = _ref$onReloadWorkspac === void 0 ? null : _ref$onReloadWorkspac,
32966
+ _ref$onOpenWorkspace = _ref.onOpenWorkspace,
32967
+ onOpenWorkspace = _ref$onOpenWorkspace === void 0 ? null : _ref$onOpenWorkspace,
32956
32968
  _ref$createRequested = _ref.createRequested,
32957
32969
  createRequested = _ref$createRequested === void 0 ? false : _ref$createRequested,
32958
32970
  _ref$onCreateAcknowle = _ref.onCreateAcknowledged,
@@ -33207,7 +33219,8 @@ var DashboardsSection = function DashboardsSection(_ref) {
33207
33219
  },
33208
33220
  dashApi: dashApi,
33209
33221
  credentials: credentials,
33210
- onReloadWorkspaces: onReloadWorkspaces
33222
+ onReloadWorkspaces: onReloadWorkspaces,
33223
+ onOpenWorkspace: onOpenWorkspace
33211
33224
  });
33212
33225
  }
33213
33226
  return /*#__PURE__*/jsxs(Fragment, {
@@ -39337,6 +39350,8 @@ var AppSettingsModal = function AppSettingsModal(_ref) {
39337
39350
  onReloadWorkspaces = _ref$onReloadWorkspac === void 0 ? null : _ref$onReloadWorkspac,
39338
39351
  _ref$onReloadMenuItem = _ref.onReloadMenuItems,
39339
39352
  onReloadMenuItems = _ref$onReloadMenuItem === void 0 ? null : _ref$onReloadMenuItem,
39353
+ _ref$onOpenWorkspace = _ref.onOpenWorkspace,
39354
+ onOpenWorkspace = _ref$onOpenWorkspace === void 0 ? null : _ref$onOpenWorkspace,
39340
39355
  _ref$onOpenThemeEdito = _ref.onOpenThemeEditor,
39341
39356
  onOpenThemeEditor = _ref$onOpenThemeEdito === void 0 ? null : _ref$onOpenThemeEdito,
39342
39357
  _ref$authStatus = _ref.authStatus,
@@ -39432,7 +39447,8 @@ var AppSettingsModal = function AppSettingsModal(_ref) {
39432
39447
  createRequested: createRequested,
39433
39448
  onCreateAcknowledged: function onCreateAcknowledged() {
39434
39449
  return setCreateRequested(false);
39435
- }
39450
+ },
39451
+ onOpenWorkspace: onOpenWorkspace
39436
39452
  }), activeSection === "folders" && /*#__PURE__*/jsx(FoldersSection, {
39437
39453
  menuItems: menuItems,
39438
39454
  workspaces: workspaces,
@@ -41914,6 +41930,10 @@ var DashboardStageInner = function DashboardStageInner(_ref2) {
41914
41930
  credentials: credentials,
41915
41931
  onReloadWorkspaces: loadWorkspaces,
41916
41932
  onReloadMenuItems: loadMenuItems,
41933
+ onOpenWorkspace: function onOpenWorkspace(ws) {
41934
+ handleOpenTab(ws);
41935
+ setIsAppSettingsOpen(false);
41936
+ },
41917
41937
  onOpenThemeEditor: function onOpenThemeEditor() {
41918
41938
  setIsAppSettingsOpen(false);
41919
41939
  setIsThemeManagerOpen(true);