@dxos/plugin-simple-layout 0.9.0 → 0.9.1-main.c7dcc2e112

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.
Files changed (83) hide show
  1. package/dist/lib/neutral/capabilities/index.mjs +3 -3
  2. package/dist/lib/neutral/{chunk-7UDV3JDT.mjs → chunk-5DF656PN.mjs} +2 -2
  3. package/dist/lib/neutral/{chunk-FD2CAY4Q.mjs → chunk-LLTNQSEB.mjs} +2 -2
  4. package/dist/lib/neutral/chunk-LLTNQSEB.mjs.map +7 -0
  5. package/dist/lib/neutral/chunk-NTI42Y3O.mjs +8 -0
  6. package/dist/lib/neutral/chunk-T2JFEPBT.mjs +31 -0
  7. package/dist/lib/neutral/chunk-T2JFEPBT.mjs.map +7 -0
  8. package/dist/lib/neutral/{close-WKMURGUB.mjs → close-5ZAMG3N7.mjs} +3 -3
  9. package/dist/lib/neutral/components/index.mjs +10 -12
  10. package/dist/lib/neutral/components/index.mjs.map +3 -3
  11. package/dist/lib/neutral/hooks/index.mjs +4 -4
  12. package/dist/lib/neutral/hooks/index.mjs.map +3 -3
  13. package/dist/lib/neutral/index.mjs +2 -2
  14. package/dist/lib/neutral/meta.json +1 -1
  15. package/dist/lib/neutral/meta.mjs +1 -1
  16. package/dist/lib/neutral/{open-Y4KNROHW.mjs → open-TI35QPEC.mjs} +6 -6
  17. package/dist/lib/neutral/open-TI35QPEC.mjs.map +7 -0
  18. package/dist/lib/neutral/operations/index.mjs +1 -1
  19. package/dist/lib/neutral/plugin.mjs +2 -2
  20. package/dist/lib/neutral/{react-root-VE265VX4.mjs → react-root-JX7QKKR2.mjs} +2 -2
  21. package/dist/lib/neutral/{react-root-VE265VX4.mjs.map → react-root-JX7QKKR2.mjs.map} +3 -3
  22. package/dist/lib/neutral/{react-surface-N3PGKIYV.mjs → react-surface-GV3O3I25.mjs} +6 -12
  23. package/dist/lib/neutral/react-surface-GV3O3I25.mjs.map +7 -0
  24. package/dist/lib/neutral/{revert-workspace-ST6NZUNG.mjs → revert-workspace-KI6QHPTX.mjs} +3 -3
  25. package/dist/lib/neutral/{set-6ZRLWPJS.mjs → set-C4HII3NF.mjs} +3 -3
  26. package/dist/lib/neutral/{switch-workspace-PYWPTMFO.mjs → switch-workspace-E664GRHY.mjs} +5 -5
  27. package/dist/lib/neutral/switch-workspace-E664GRHY.mjs.map +7 -0
  28. package/dist/lib/neutral/translations.mjs +1 -1
  29. package/dist/lib/neutral/translations.mjs.map +3 -3
  30. package/dist/lib/neutral/types/index.mjs +1 -1
  31. package/dist/lib/neutral/{update-complementary-HKWF5OXT.mjs → update-complementary-BCWHK4SM.mjs} +3 -3
  32. package/dist/lib/neutral/{update-dialog-P4ASXCE7.mjs → update-dialog-TCKGS26T.mjs} +3 -3
  33. package/dist/lib/neutral/{update-popover-REAKC2GN.mjs → update-popover-NRI2OATE.mjs} +3 -3
  34. package/dist/lib/neutral/{url-handler-DGZ4WISE.mjs → url-handler-BJX33VLR.mjs} +5 -5
  35. package/dist/lib/neutral/url-handler-BJX33VLR.mjs.map +7 -0
  36. package/dist/types/dx.config.d.ts +28 -0
  37. package/dist/types/dx.config.d.ts.map +1 -0
  38. package/dist/types/src/capabilities/index.d.ts +6 -18
  39. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  40. package/dist/types/src/capabilities/react-surface.d.ts +2 -2
  41. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  42. package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
  43. package/dist/types/src/hooks/useAppBarProps.d.ts.map +1 -1
  44. package/dist/types/src/meta.d.ts +28 -2
  45. package/dist/types/src/meta.d.ts.map +1 -1
  46. package/dist/types/src/operations/open.d.ts.map +1 -1
  47. package/dist/types/src/operations/switch-workspace.d.ts.map +1 -1
  48. package/dist/types/src/types/SimpleLayoutCapabilities.d.ts +1 -1
  49. package/dist/types/src/types/SimpleLayoutCapabilities.d.ts.map +1 -1
  50. package/dist/types/tsconfig.tsbuildinfo +1 -1
  51. package/dx.config.ts +20 -0
  52. package/package.json +29 -28
  53. package/src/capabilities/react-root.tsx +1 -1
  54. package/src/capabilities/react-surface.tsx +8 -16
  55. package/src/capabilities/url-handler.ts +4 -4
  56. package/src/components/Home/Home.tsx +3 -3
  57. package/src/components/NavBranch/NavBranch.tsx +2 -2
  58. package/src/components/Popover/Popover.tsx +7 -5
  59. package/src/components/SimpleLayout/AppBar.tsx +2 -2
  60. package/src/hooks/useAppBarProps.ts +3 -2
  61. package/src/hooks/useDrawerActions.ts +1 -1
  62. package/src/hooks/useNavbarActions.ts +1 -1
  63. package/src/meta.ts +3 -13
  64. package/src/operations/open.ts +5 -8
  65. package/src/operations/switch-workspace.ts +2 -2
  66. package/src/translations.ts +1 -1
  67. package/src/types/SimpleLayoutCapabilities.ts +2 -2
  68. package/dist/lib/neutral/chunk-FD2CAY4Q.mjs.map +0 -7
  69. package/dist/lib/neutral/chunk-NKAPURKM.mjs +0 -8
  70. package/dist/lib/neutral/chunk-OK5336TS.mjs +0 -22
  71. package/dist/lib/neutral/chunk-OK5336TS.mjs.map +0 -7
  72. package/dist/lib/neutral/open-Y4KNROHW.mjs.map +0 -7
  73. package/dist/lib/neutral/react-surface-N3PGKIYV.mjs.map +0 -7
  74. package/dist/lib/neutral/switch-workspace-PYWPTMFO.mjs.map +0 -7
  75. package/dist/lib/neutral/url-handler-DGZ4WISE.mjs.map +0 -7
  76. /package/dist/lib/neutral/{chunk-7UDV3JDT.mjs.map → chunk-5DF656PN.mjs.map} +0 -0
  77. /package/dist/lib/neutral/{chunk-NKAPURKM.mjs.map → chunk-NTI42Y3O.mjs.map} +0 -0
  78. /package/dist/lib/neutral/{close-WKMURGUB.mjs.map → close-5ZAMG3N7.mjs.map} +0 -0
  79. /package/dist/lib/neutral/{revert-workspace-ST6NZUNG.mjs.map → revert-workspace-KI6QHPTX.mjs.map} +0 -0
  80. /package/dist/lib/neutral/{set-6ZRLWPJS.mjs.map → set-C4HII3NF.mjs.map} +0 -0
  81. /package/dist/lib/neutral/{update-complementary-HKWF5OXT.mjs.map → update-complementary-BCWHK4SM.mjs.map} +0 -0
  82. /package/dist/lib/neutral/{update-dialog-P4ASXCE7.mjs.map → update-dialog-TCKGS26T.mjs.map} +0 -0
  83. /package/dist/lib/neutral/{update-popover-REAKC2GN.mjs.map → update-popover-NRI2OATE.mjs.map} +0 -0
@@ -5,8 +5,8 @@ import * as Effect from "effect/Effect";
5
5
  import React from "react";
6
6
  import { Capabilities, Capability } from "@dxos/app-framework";
7
7
  import { Surface } from "@dxos/app-framework/ui";
8
- import { NOT_FOUND_PATH } from "@dxos/app-toolkit";
9
- import { NotFoundArticle } from "@dxos/app-toolkit/ui";
8
+ import { NotFound } from "@dxos/app-toolkit";
9
+ import { AppSurface, NotFoundArticle } from "@dxos/app-toolkit/ui";
10
10
  import { Node } from "@dxos/plugin-graph";
11
11
  import { Home, NavBranch } from "#components";
12
12
  var ALLOWED_DISPOSITIONS = [
@@ -17,24 +17,18 @@ var ALLOWED_DISPOSITIONS = [
17
17
  var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, [
18
18
  Surface.create({
19
19
  id: "home",
20
- role: "article",
21
- filter: (data) => data.attendableId === Node.RootId,
20
+ filter: Surface.makeFilter(AppSurface.Article, (data) => data.attendableId === Node.RootId),
22
21
  component: () => /* @__PURE__ */ React.createElement(Home, null)
23
22
  }),
24
23
  Surface.create({
25
24
  id: "notFound",
26
- role: "article",
27
- filter: (data) => data.attendableId === NOT_FOUND_PATH,
25
+ filter: Surface.makeFilter(AppSurface.Article, (data) => data.attendableId === NotFound.NOT_FOUND_PATH),
28
26
  component: () => /* @__PURE__ */ React.createElement(NotFoundArticle, null)
29
27
  }),
30
28
  Surface.create({
31
29
  id: "navBranch",
32
- role: "article",
33
30
  position: "last",
34
- filter: (data) => {
35
- const props = data.properties;
36
- return ALLOWED_DISPOSITIONS.includes(props?.disposition) || props?.role === "branch";
37
- },
31
+ filter: Surface.makeFilter(AppSurface.Article, (data) => ALLOWED_DISPOSITIONS.includes(data.properties?.disposition) || data.properties?.role === "branch"),
38
32
  component: ({ data }) => /* @__PURE__ */ React.createElement(NavBranch, {
39
33
  id: data.attendableId
40
34
  })
@@ -43,4 +37,4 @@ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capabilit
43
37
  export {
44
38
  react_surface_default as default
45
39
  };
46
- //# sourceMappingURL=react-surface-N3PGKIYV.mjs.map
40
+ //# sourceMappingURL=react-surface-GV3O3I25.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/react-surface.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { NotFound } from '@dxos/app-toolkit';\nimport { AppSurface, NotFoundArticle } from '@dxos/app-toolkit/ui';\nimport { Node } from '@dxos/plugin-graph';\n\nimport { Home, NavBranch } from '#components';\n\nconst ALLOWED_DISPOSITIONS = ['workspace', 'user-account', 'pin-end'];\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: 'home',\n filter: Surface.makeFilter(AppSurface.Article, (data) => data.attendableId === Node.RootId),\n component: () => <Home />,\n }),\n Surface.create({\n id: 'notFound',\n filter: Surface.makeFilter(AppSurface.Article, (data) => data.attendableId === NotFound.NOT_FOUND_PATH),\n component: () => <NotFoundArticle />,\n }),\n Surface.create({\n id: 'navBranch',\n position: 'last',\n filter: Surface.makeFilter(\n AppSurface.Article,\n (data) => ALLOWED_DISPOSITIONS.includes(data.properties?.disposition) || data.properties?.role === 'branch',\n ),\n component: ({ data }) => <NavBranch id={data.attendableId} />,\n }),\n ]),\n ),\n);\n"],
5
+ "mappings": ";;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,gBAAgB;AACzB,SAASC,YAAYC,uBAAuB;AAC5C,SAASC,YAAY;AAErB,SAASC,MAAMC,iBAAiB;AAEhC,IAAMC,uBAAuB;EAAC;EAAa;EAAgB;;AAE3D,IAAA,wBAAeR,WAAWS,WAAW,MAC5BC,eACLV,WAAWW,YAAYZ,aAAaa,cAAc;EAChDX,QAAQY,OAAO;IACbC,IAAI;IACJC,QAAQd,QAAQe,WAAWb,WAAWc,SAAS,CAACC,SAASA,KAAKC,iBAAiBd,KAAKe,MAAM;IAC1FC,WAAW,MAAM,sBAAA,cAACf,MAAAA,IAAAA;EACpB,CAAA;EACAL,QAAQY,OAAO;IACbC,IAAI;IACJC,QAAQd,QAAQe,WAAWb,WAAWc,SAAS,CAACC,SAASA,KAAKC,iBAAiBjB,SAASoB,cAAc;IACtGD,WAAW,MAAM,sBAAA,cAACjB,iBAAAA,IAAAA;EACpB,CAAA;EACAH,QAAQY,OAAO;IACbC,IAAI;IACJS,UAAU;IACVR,QAAQd,QAAQe,WACdb,WAAWc,SACX,CAACC,SAASV,qBAAqBgB,SAASN,KAAKO,YAAYC,WAAAA,KAAgBR,KAAKO,YAAYE,SAAS,QAAA;IAErGN,WAAW,CAAC,EAAEH,KAAI,MAAO,sBAAA,cAACX,WAAAA;MAAUO,IAAII,KAAKC;;EAC/C,CAAA;CACD,CAAA,CAAA;",
6
+ "names": ["Effect", "React", "Capabilities", "Capability", "Surface", "NotFound", "AppSurface", "NotFoundArticle", "Node", "Home", "NavBranch", "ALLOWED_DISPOSITIONS", "makeModule", "succeed", "contributes", "ReactSurface", "create", "id", "filter", "makeFilter", "Article", "data", "attendableId", "RootId", "component", "NOT_FOUND_PATH", "position", "includes", "properties", "disposition", "role"]
7
+ }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  layoutStateAccess
3
- } from "./chunk-7UDV3JDT.mjs";
4
- import "./chunk-FD2CAY4Q.mjs";
3
+ } from "./chunk-5DF656PN.mjs";
4
+ import "./chunk-LLTNQSEB.mjs";
5
5
  import "./chunk-J5LGTIGS.mjs";
6
6
 
7
7
  // src/operations/revert-workspace.ts
@@ -19,4 +19,4 @@ var revert_workspace_default = handler;
19
19
  export {
20
20
  revert_workspace_default as default
21
21
  };
22
- //# sourceMappingURL=revert-workspace-ST6NZUNG.mjs.map
22
+ //# sourceMappingURL=revert-workspace-KI6QHPTX.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  layoutStateAccess
3
- } from "./chunk-7UDV3JDT.mjs";
4
- import "./chunk-FD2CAY4Q.mjs";
3
+ } from "./chunk-5DF656PN.mjs";
4
+ import "./chunk-LLTNQSEB.mjs";
5
5
  import "./chunk-J5LGTIGS.mjs";
6
6
 
7
7
  // src/operations/set.ts
@@ -19,4 +19,4 @@ var set_default = handler;
19
19
  export {
20
20
  set_default as default
21
21
  };
22
- //# sourceMappingURL=set-6ZRLWPJS.mjs.map
22
+ //# sourceMappingURL=set-C4HII3NF.mjs.map
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  layoutStateAccess
3
- } from "./chunk-7UDV3JDT.mjs";
4
- import "./chunk-FD2CAY4Q.mjs";
3
+ } from "./chunk-5DF656PN.mjs";
4
+ import "./chunk-LLTNQSEB.mjs";
5
5
  import "./chunk-J5LGTIGS.mjs";
6
6
 
7
7
  // src/operations/switch-workspace.ts
8
8
  import * as Effect from "effect/Effect";
9
- import { isPinnedWorkspace, LayoutOperation } from "@dxos/app-toolkit";
9
+ import { LayoutOperation, Paths } from "@dxos/app-toolkit";
10
10
  import { Operation } from "@dxos/compute";
11
11
  var handler = LayoutOperation.SwitchWorkspace.pipe(Operation.withHandler(Effect.fnUntraced(function* (input) {
12
12
  const { updateState } = yield* layoutStateAccess;
13
13
  updateState((state) => ({
14
14
  ...state,
15
- previousWorkspace: !isPinnedWorkspace(state.workspace) ? state.workspace : state.previousWorkspace,
15
+ previousWorkspace: !Paths.isPinnedWorkspace(state.workspace) ? state.workspace : state.previousWorkspace,
16
16
  workspace: input.subject,
17
17
  active: void 0,
18
18
  history: []
@@ -22,4 +22,4 @@ var switch_workspace_default = handler;
22
22
  export {
23
23
  switch_workspace_default as default
24
24
  };
25
- //# sourceMappingURL=switch-workspace-PYWPTMFO.mjs.map
25
+ //# sourceMappingURL=switch-workspace-E664GRHY.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/switch-workspace.ts"],
4
+ "sourcesContent": ["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation, Paths } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { layoutStateAccess } from './state-access';\n\nconst handler: Operation.WithHandler<typeof LayoutOperation.SwitchWorkspace> = LayoutOperation.SwitchWorkspace.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const { updateState } = yield* layoutStateAccess;\n\n updateState((state) => ({\n ...state,\n previousWorkspace: !Paths.isPinnedWorkspace(state.workspace) ? state.workspace : state.previousWorkspace,\n workspace: input.subject,\n active: undefined,\n history: [],\n }));\n }),\n ),\n);\n\nexport default handler;\n"],
5
+ "mappings": ";;;;;;;AAEA,YAAYA,YAAY;AAExB,SAASC,iBAAiBC,aAAa;AACvC,SAASC,iBAAiB;AAI1B,IAAMC,UAAyEC,gBAAgBC,gBAAgBC,KAC7GC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,QAAM,EAAEC,YAAW,IAAK,OAAOC;AAE/BD,cAAY,CAACE,WAAW;IACtB,GAAGA;IACHC,mBAAmB,CAACC,MAAMC,kBAAkBH,MAAMI,SAAS,IAAIJ,MAAMI,YAAYJ,MAAMC;IACvFG,WAAWP,MAAMQ;IACjBC,QAAQC;IACRC,SAAS,CAAA;EACX,EAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,2BAAelB;",
6
+ "names": ["Effect", "LayoutOperation", "Paths", "Operation", "handler", "LayoutOperation", "SwitchWorkspace", "pipe", "Operation", "withHandler", "fnUntraced", "input", "updateState", "layoutStateAccess", "state", "previousWorkspace", "Paths", "isPinnedWorkspace", "workspace", "subject", "active", "undefined", "history"]
7
+ }
@@ -7,7 +7,7 @@ var translations = [
7
7
  ...searchTranslations,
8
8
  {
9
9
  "en-US": {
10
- [meta.id]: {
10
+ [meta.profile.key]: {
11
11
  "plugin.name": "Simple layout",
12
12
  "settings.title": "Simple layout settings",
13
13
  "workspaces.heading": "Workspaces",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as searchTranslations } from '@dxos/react-ui-search/translations';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n ...searchTranslations,\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Simple layout',\n 'settings.title': 'Simple layout settings',\n 'workspaces.heading': 'Workspaces',\n 'settings.heading': 'Settings',\n 'back.label': 'Back',\n 'browse.label': 'Browse',\n 'notifications.label': 'Notifications',\n 'profile.label': 'Profile',\n 'app-menu.label': 'App menu',\n 'main-menu.label': 'Main menu',\n 'companions-menu.label': 'Companions',\n 'error-fallback.message': 'An error occurred',\n 'drawer.label': 'Drawer',\n 'close-drawer.label': 'Close drawer',\n 'expand-drawer.label': 'Expand drawer',\n 'collapse-drawer.label': 'Collapse drawer',\n 'actions-menu.label': 'Actions',\n 'done.label': 'Done',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
- "mappings": ";;;AAKA,SAASA,gBAAgBC,0BAA0B;AAEnD,SAASC,YAAY;AAEd,IAAMF,eAAe;KACvBC;EACH;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,kBAAkB;QAClB,sBAAsB;QACtB,oBAAoB;QACpB,cAAc;QACd,gBAAgB;QAChB,uBAAuB;QACvB,iBAAiB;QACjB,kBAAkB;QAClB,mBAAmB;QACnB,yBAAyB;QACzB,0BAA0B;QAC1B,gBAAgB;QAChB,sBAAsB;QACtB,uBAAuB;QACvB,yBAAyB;QACzB,sBAAsB;QACtB,cAAc;MAChB;IACF;EACF;;",
6
- "names": ["translations", "searchTranslations", "meta", "id"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as searchTranslations } from '@dxos/react-ui-search/translations';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n ...searchTranslations,\n {\n 'en-US': {\n [meta.profile.key]: {\n 'plugin.name': 'Simple layout',\n 'settings.title': 'Simple layout settings',\n 'workspaces.heading': 'Workspaces',\n 'settings.heading': 'Settings',\n 'back.label': 'Back',\n 'browse.label': 'Browse',\n 'notifications.label': 'Notifications',\n 'profile.label': 'Profile',\n 'app-menu.label': 'App menu',\n 'main-menu.label': 'Main menu',\n 'companions-menu.label': 'Companions',\n 'error-fallback.message': 'An error occurred',\n 'drawer.label': 'Drawer',\n 'close-drawer.label': 'Close drawer',\n 'expand-drawer.label': 'Expand drawer',\n 'collapse-drawer.label': 'Collapse drawer',\n 'actions-menu.label': 'Actions',\n 'done.label': 'Done',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;AAKA,SAASA,gBAAgBC,0BAA0B;AAEnD,SAASC,YAAY;AAEd,IAAMF,eAAe;KACvBC;EACH;IACE,SAAS;MACP,CAACC,KAAKC,QAAQC,GAAG,GAAG;QAClB,eAAe;QACf,kBAAkB;QAClB,sBAAsB;QACtB,oBAAoB;QACpB,cAAc;QACd,gBAAgB;QAChB,uBAAuB;QACvB,iBAAiB;QACjB,kBAAkB;QAClB,mBAAmB;QACnB,yBAAyB;QACzB,0BAA0B;QAC1B,gBAAgB;QAChB,sBAAsB;QACtB,uBAAuB;QACvB,yBAAyB;QACzB,sBAAsB;QACtB,cAAc;MAChB;IACF;EACF;;",
6
+ "names": ["translations", "searchTranslations", "meta", "profile", "key"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SimpleLayoutCapabilities_exports,
3
3
  SimpleLayoutEvents_exports
4
- } from "../chunk-FD2CAY4Q.mjs";
4
+ } from "../chunk-LLTNQSEB.mjs";
5
5
  import "../chunk-J5LGTIGS.mjs";
6
6
  export {
7
7
  SimpleLayoutCapabilities_exports as SimpleLayoutCapabilities,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  layoutStateAccess
3
- } from "./chunk-7UDV3JDT.mjs";
4
- import "./chunk-FD2CAY4Q.mjs";
3
+ } from "./chunk-5DF656PN.mjs";
4
+ import "./chunk-LLTNQSEB.mjs";
5
5
  import "./chunk-J5LGTIGS.mjs";
6
6
 
7
7
  // src/operations/update-complementary.ts
@@ -30,4 +30,4 @@ var update_complementary_default = handler;
30
30
  export {
31
31
  update_complementary_default as default
32
32
  };
33
- //# sourceMappingURL=update-complementary-HKWF5OXT.mjs.map
33
+ //# sourceMappingURL=update-complementary-BCWHK4SM.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  layoutStateAccess
3
- } from "./chunk-7UDV3JDT.mjs";
4
- import "./chunk-FD2CAY4Q.mjs";
3
+ } from "./chunk-5DF656PN.mjs";
4
+ import "./chunk-LLTNQSEB.mjs";
5
5
  import "./chunk-J5LGTIGS.mjs";
6
6
 
7
7
  // src/operations/update-dialog.ts
@@ -27,4 +27,4 @@ var update_dialog_default = handler;
27
27
  export {
28
28
  update_dialog_default as default
29
29
  };
30
- //# sourceMappingURL=update-dialog-P4ASXCE7.mjs.map
30
+ //# sourceMappingURL=update-dialog-TCKGS26T.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  layoutStateAccess
3
- } from "./chunk-7UDV3JDT.mjs";
4
- import "./chunk-FD2CAY4Q.mjs";
3
+ } from "./chunk-5DF656PN.mjs";
4
+ import "./chunk-LLTNQSEB.mjs";
5
5
  import "./chunk-J5LGTIGS.mjs";
6
6
 
7
7
  // src/operations/update-popover.ts
@@ -31,4 +31,4 @@ var update_popover_default = handler;
31
31
  export {
32
32
  update_popover_default as default
33
33
  };
34
- //# sourceMappingURL=update-popover-REAKC2GN.mjs.map
34
+ //# sourceMappingURL=update-popover-NRI2OATE.mjs.map
@@ -3,7 +3,7 @@ import "./chunk-J5LGTIGS.mjs";
3
3
  // src/capabilities/url-handler.ts
4
4
  import * as Effect from "effect/Effect";
5
5
  import { Capabilities, Capability } from "@dxos/app-framework";
6
- import { AppCapabilities, LayoutOperation, fromUrlPath, getWorkspaceFromPath, toUrlPath } from "@dxos/app-toolkit";
6
+ import { AppCapabilities, LayoutOperation, Paths } from "@dxos/app-toolkit";
7
7
  import { EffectEx } from "@dxos/effect";
8
8
  import { log } from "@dxos/log";
9
9
  import { isTauri } from "@dxos/util";
@@ -28,8 +28,8 @@ var url_handler_default = Capability.makeModule(Effect.fnUntraced(function* () {
28
28
  }, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 34, S: this });
29
29
  pathname = "/";
30
30
  }
31
- const qualifiedId = fromUrlPath(pathname);
32
- const workspace = getWorkspaceFromPath(qualifiedId);
31
+ const qualifiedId = Paths.fromUrlPath(pathname);
32
+ const workspace = Paths.getWorkspaceFromPath(qualifiedId);
33
33
  void invokePromise(LayoutOperation.SwitchWorkspace, {
34
34
  subject: workspace
35
35
  });
@@ -85,7 +85,7 @@ var url_handler_default = Capability.makeModule(Effect.fnUntraced(function* () {
85
85
  if (workspace !== lastWorkspace || active !== lastActive) {
86
86
  lastWorkspace = workspace;
87
87
  lastActive = active;
88
- const path = active ? toUrlPath(active) : toUrlPath(workspace);
88
+ const path = active ? Paths.toUrlPath(active) : Paths.toUrlPath(workspace);
89
89
  if (window.location.pathname !== path) {
90
90
  history.pushState(null, "", `${path}${window.location.search}`);
91
91
  }
@@ -126,4 +126,4 @@ var handleDeepLink = (urlString, navigate) => {
126
126
  export {
127
127
  url_handler_default as default
128
128
  };
129
- //# sourceMappingURL=url-handler-DGZ4WISE.mjs.map
129
+ //# sourceMappingURL=url-handler-BJX33VLR.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/url-handler.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { AppCapabilities, LayoutOperation, Paths } from '@dxos/app-toolkit';\nimport { EffectEx } from '@dxos/effect';\nimport { log } from '@dxos/log';\nimport { isTauri } from '@dxos/util';\n\nimport { SimpleLayoutCapabilities } from '#types';\n\n/**\n * URL handler for simple layout that syncs browser URL with layout state.\n * URL paths map directly to qualified graph IDs with the leading `root` segment stripped.\n * Root is represented as `/`.\n *\n * On Tauri, also listens for deep links via the deep-link plugin.\n */\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const { invokePromise } = yield* Capability.get(Capabilities.OperationInvoker);\n const capabilities = yield* Capability.Service;\n\n /** Dispatch all NavigationHandler contributions with a given URL. */\n const dispatchNavigationHandlers = (url: URL) =>\n Effect.gen(function* () {\n const handlers = yield* Capability.getAll(AppCapabilities.NavigationHandler);\n yield* Effect.all(\n handlers.map((handler) => handler(url)),\n { concurrency: 'unbounded' },\n );\n }).pipe(Effect.provideService(Capability.Service, capabilities), EffectEx.runAndForwardErrors);\n\n /**\n * Handle navigation from a URL.\n * Dispatches to NavigationHandler contributions, then handles pathname routing.\n */\n const handlePathNavigation = (url?: URL) => {\n const resolvedUrl = url ?? new URL(window.location.href);\n void dispatchNavigationHandlers(resolvedUrl);\n\n let pathname = resolvedUrl.pathname;\n if (isFilePath(pathname)) {\n log.info('[UrlHandler] Skipping file path (not a graph node)', { pathname });\n pathname = '/';\n }\n\n const qualifiedId = Paths.fromUrlPath(pathname);\n const workspace = Paths.getWorkspaceFromPath(qualifiedId);\n\n void invokePromise(LayoutOperation.SwitchWorkspace, { subject: workspace });\n\n const activeId = qualifiedId !== workspace ? qualifiedId : undefined;\n if (activeId) {\n void invokePromise(LayoutOperation.Open, { subject: [activeId] });\n }\n };\n\n const onPopState = () => {\n handlePathNavigation();\n };\n\n // Initial navigation.\n yield* Effect.sync(() => handlePathNavigation());\n window.addEventListener('popstate', onPopState);\n\n // Tauri deep link support.\n let unlistenDeepLink: (() => void) | undefined;\n if (isTauri()) {\n yield* Effect.tryPromise({\n try: async () => {\n const { getCurrent, onOpenUrl } = await import('@tauri-apps/plugin-deep-link');\n\n const launchUrls = await getCurrent();\n if (launchUrls && launchUrls.length > 0) {\n log.info('[UrlHandler] App launched with deep links', { urls: launchUrls });\n for (const urlString of launchUrls) {\n handleDeepLink(urlString, handlePathNavigation);\n }\n }\n\n unlistenDeepLink = await onOpenUrl((urls) => {\n log.info('[UrlHandler] Deep links received', { urls });\n for (const urlString of urls) {\n handleDeepLink(urlString, handlePathNavigation);\n }\n });\n },\n catch: (error) => {\n log.warn('[UrlHandler] Failed to initialize deep link listener', { error });\n return error;\n },\n }).pipe(Effect.catchAll(() => Effect.void));\n }\n\n // Sync URL with layout state changes.\n let lastWorkspace: string | undefined;\n let lastActive: string | undefined;\n const unsubscribe = yield* Capabilities.subscribeAtom(\n SimpleLayoutCapabilities.State,\n (state: SimpleLayoutCapabilities.SimpleLayoutState) => {\n const { workspace, active } = state;\n\n if (workspace !== lastWorkspace || active !== lastActive) {\n lastWorkspace = workspace;\n lastActive = active;\n\n const path = active ? Paths.toUrlPath(active) : Paths.toUrlPath(workspace);\n if (window.location.pathname !== path) {\n history.pushState(null, '', `${path}${window.location.search}`);\n }\n }\n },\n );\n\n return Capability.contributes(Capabilities.Null, null, () =>\n Effect.sync(() => {\n window.removeEventListener('popstate', onPopState);\n unsubscribe();\n unlistenDeepLink?.();\n }),\n );\n }),\n);\n\n/** Check if a path is a redirect path handled elsewhere (e.g., OAuth). */\nconst isRedirectPath = (pathname: string): boolean => pathname.startsWith('/redirect/');\n\n/** Paths with file extensions are not graph node paths. */\nconst isFilePath = (pathname: string): boolean => /\\.[a-z]+$/i.test(pathname);\n\n/** Handle a deep link URL string. Merges query params into window.location and navigates. */\nconst handleDeepLink = (urlString: string, navigate: (url?: URL) => void): void => {\n log.info('[UrlHandler] Deep link received', { url: urlString });\n try {\n const deepLinkUrl = new URL(urlString);\n\n // For custom schemes (e.g., composer://a/b/c), new URL() treats the first segment as the\n // hostname. Reconstruct the full path from hostname + pathname.\n const fullPath =\n deepLinkUrl.protocol !== 'https:' && deepLinkUrl.protocol !== 'http:' && deepLinkUrl.hostname\n ? '/' + deepLinkUrl.hostname + deepLinkUrl.pathname\n : deepLinkUrl.pathname;\n\n if (isRedirectPath(fullPath)) {\n return;\n }\n\n // Merge deep link query params into the current window URL so handlers can read them.\n const current = new URL(window.location.href);\n if (deepLinkUrl.search) {\n deepLinkUrl.searchParams.forEach((value, key) => current.searchParams.set(key, value));\n }\n current.pathname = fullPath;\n history.replaceState(null, '', current.pathname + current.search);\n\n navigate(current);\n } catch (error) {\n log.warn('[UrlHandler] Failed to parse deep link URL', { urlString, error });\n }\n};\n"],
5
+ "mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,iBAAiBC,iBAAiBC,aAAa;AACxD,SAASC,gBAAgB;AACzB,SAASC,WAAW;AACpB,SAASC,eAAe;AAExB,SAASC,gCAAgC;AAEzC,IAAA,eAAA;AAUI,IAAMC,sBAAAA,WAAe,WAAkBC,kBAAO,aAAA;AAE9C,QAAA,EAAA,cAAA,IAAA,OAAA,WAAA,IAAA,aAAA,gBACMC;uBAEIC,OAAW,WAAOX;AAGtB,QAAA,6BAAA,CAAA,QAAA,WAAA,aAAA;UAAEY,WAAa,OAAA,WAAA,OAAA,gBAAA,iBAAA;AAAY,WAAA,WAAA,SAAA,IAAA,CAAA,YAAA,QAAA,GAAA,CAAA,GAAA;MAEvBd,aAAOe;IAEjB,CAAA;;AAME,QAAKH,uBAAAA,CAAAA,QAA2BI;AAEhC,UAAIC,cAAWD,OAAYC,IAAAA,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T,YAAOhB,aAAO,MAAA,IAAA,QAAA,WAAA,QAAA,MAAA;AACd5B,aAAS,OAAA;WAAgDwB,OAAAA;QAAWI,KAAAA,8CAAAA;MAAM;MAC5E;IACF,GAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,KAAA,GAAA,OAAA,CAAA;;;",
6
+ "names": ["Effect", "Capabilities", "Capability", "AppCapabilities", "LayoutOperation", "Paths", "EffectEx", "log", "isTauri", "SimpleLayoutCapabilities", "capabilities", "Service", "dispatchNavigationHandlers", "handlers", "concurrency", "provideService", "resolvedUrl", "pathname", "isFilePath", "qualifiedId", "invokePromise", "SwitchWorkspace", "subject", "workspace", "activeId", "unlistenDeepLink", "try", "getCurrent", "launchUrls", "length", "handleDeepLink", "urlString", "handlePathNavigation", "urls", "catch", "error", "catchAll", "lastWorkspace", "active", "lastActive", "location", "history", "pushState", "path", "window", "unsubscribe", "navigate", "deepLinkUrl", "searchParams", "forEach", "value", "current", "fullPath"]
7
+ }
@@ -0,0 +1,28 @@
1
+ declare const _default: {
2
+ readonly plugin: {
3
+ readonly key: string;
4
+ readonly name: string;
5
+ readonly description?: string | undefined;
6
+ readonly author?: string | undefined;
7
+ readonly homePage?: string | undefined;
8
+ readonly source?: string | undefined;
9
+ readonly screenshots?: readonly {
10
+ readonly light?: string | undefined;
11
+ readonly dark?: string | undefined;
12
+ }[] | undefined;
13
+ readonly tags?: readonly string[] | undefined;
14
+ readonly icon?: {
15
+ readonly key: string;
16
+ readonly hue?: string | undefined;
17
+ } | undefined;
18
+ readonly spec?: string | undefined;
19
+ readonly dependsOn?: readonly string[] | undefined;
20
+ };
21
+ readonly publish?: {
22
+ readonly buildCommand?: string | undefined;
23
+ readonly outputDirectory?: string | undefined;
24
+ readonly assetBaseUrl?: string | undefined;
25
+ } | undefined;
26
+ };
27
+ export default _default;
28
+ //# sourceMappingURL=dx.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dx.config.d.ts","sourceRoot":"","sources":["../../dx.config.ts"],"names":[],"mappings":""}
@@ -1,22 +1,10 @@
1
1
  import { Capability } from '@dxos/app-framework';
2
2
  import { OperationHandlerSet } from '@dxos/compute';
3
- export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
3
+ export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
4
4
  export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
5
- export declare const ReactRoot: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<Readonly<{
6
- id: string;
7
- root: import("react").FC<import("react").PropsWithChildren>;
8
- }>>>, Error>;
9
- export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
10
- export declare const SpotlightDismiss: Capability.LazyCapability<import("./spotlight-dismiss").SpotlightDismissOptions | undefined, Capability.Capability<Capability.InterfaceDef<null>> | [], Error>;
11
- export declare const State: Capability.LazyCapability<import("./state").SimpleLayoutStateOptions | undefined, [Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Writable<import("../types/SimpleLayoutCapabilities").SimpleLayoutState, import("../types/SimpleLayoutCapabilities").SimpleLayoutState>>>, Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Atom<Readonly<{
12
- mode: string;
13
- dialogOpen: boolean;
14
- sidebarOpen: boolean;
15
- complementarySidebarOpen: boolean;
16
- workspace: string;
17
- active: string[];
18
- inactive: string[];
19
- scrollIntoView: string | undefined;
20
- }>>>>], Error>;
21
- export declare const UrlHandler: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<null>>, Error>;
5
+ export declare const ReactRoot: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
6
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
7
+ export declare const SpotlightDismiss: Capability.LazyCapability<import("./spotlight-dismiss").SpotlightDismissOptions | undefined, Capability.ModuleReturn, Error>;
8
+ export declare const State: Capability.LazyCapability<import("./state").SimpleLayoutStateOptions | undefined, Capability.ModuleReturn, Error>;
9
+ export declare const UrlHandler: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
22
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,SAAS;;;YAA6D,CAAC;AACpF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,gBAAgB,gKAA2E,CAAC;AACzG,eAAO,MAAM,KAAK;;;;;;;;;cAAoD,CAAC;AACvE,eAAO,MAAM,UAAU,8FAA+D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,eAAe,iEAA0E,CAAC;AACvG,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,SAAS,iEAA6D,CAAC;AACpF,eAAO,MAAM,YAAY,iEAAmE,CAAC;AAC7F,eAAO,MAAM,gBAAgB,8HAA2E,CAAC;AACzG,eAAO,MAAM,KAAK,mHAAoD,CAAC;AACvE,eAAO,MAAM,UAAU,iEAA+D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as Effect from 'effect/Effect';
2
- import { Capabilities, Capability } from '@dxos/app-framework';
3
- declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
2
+ import { Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<any>>, never, never>;
4
4
  export default _default;
5
5
  //# sourceMappingURL=react-surface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAqD,MAAM,OAAO,CAAC;AAkBzG,eAAO,MAAM,WAAW,iBAAkB,iBAAiB,sBA+B1D,CAAC;AAEF,eAAO,MAAM,cAAc,yBAqE1B,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAqD,MAAM,OAAO,CAAC;AAkBzG,eAAO,MAAM,WAAW,iBAAkB,iBAAiB,sBA+B1D,CAAC;AAEF,eAAO,MAAM,cAAc,yBAuE1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useAppBarProps.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAppBarProps.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAO,IAAI,CAAC,WAAW,EAAE,YAAY,CAuE/D,CAAC"}
1
+ {"version":3,"file":"useAppBarProps.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAppBarProps.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAO,IAAI,CAAC,WAAW,EAAE,YAAY,CAwE/D,CAAC"}
@@ -1,3 +1,29 @@
1
- import { Plugin } from '@dxos/app-framework';
2
- export declare const meta: Plugin.Meta;
1
+ export declare const meta: {
2
+ readonly profile: {
3
+ readonly key: string;
4
+ readonly name: string;
5
+ readonly description?: string | undefined;
6
+ readonly homePage?: string | undefined;
7
+ readonly source?: string | undefined;
8
+ readonly tags?: readonly string[] | undefined;
9
+ readonly screenshots?: readonly {
10
+ readonly light?: string | undefined;
11
+ readonly dark?: string | undefined;
12
+ }[] | undefined;
13
+ readonly icon?: {
14
+ readonly key: string;
15
+ readonly hue?: string | undefined;
16
+ } | undefined;
17
+ readonly dependsOn?: readonly string[] | undefined;
18
+ readonly spec?: string | undefined;
19
+ readonly author?: string | undefined;
20
+ };
21
+ readonly release?: {
22
+ readonly version: string;
23
+ readonly moduleUrl: string;
24
+ readonly dependencies?: {
25
+ readonly [x: string]: string;
26
+ } | undefined;
27
+ } | undefined;
28
+ };
3
29
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,IAAI,aAUf,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../../../src/operations/open.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,eAAe,EAGhB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ1C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,IAAI,CA0D/D,CAAC;eAEa,OAAO"}
1
+ {"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../../../src/operations/open.ts"],"names":[],"mappings":"AAKA,OAAO,EAAmB,eAAe,EAAY,MAAM,mBAAmB,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ1C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,IAAI,CA4D/D,CAAC;eAEa,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"switch-workspace.d.ts","sourceRoot":"","sources":["../../../../src/operations/switch-workspace.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,eAAe,CAc1E,CAAC;eAEa,OAAO"}
1
+ {"version":3,"file":"switch-workspace.d.ts","sourceRoot":"","sources":["../../../../src/operations/switch-workspace.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAS,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,eAAe,CAc1E,CAAC;eAEa,OAAO"}
@@ -21,7 +21,7 @@ export type SimpleLayoutState = {
21
21
  popoverVariant?: 'virtual' | 'react';
22
22
  popoverAnchor?: HTMLButtonElement;
23
23
  popoverAnchorId?: string;
24
- popoverKind?: 'base' | 'card';
24
+ popoverKind?: 'base' | 'card' | 'rename';
25
25
  popoverTitle?: Label;
26
26
  popoverContent?: {
27
27
  component: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SimpleLayoutCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/types/SimpleLayoutCapabilities.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAI5C,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAEzD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAC9C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACzC,aAAa,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,GAAG,CAAA;KAAE,GAAG,IAAI,CAAC;IAC1D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAClD,cAAc,CAAC,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