@dxos/plugin-deck 0.8.2-main.f11618f → 0.8.2-staging.42af850

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 (142) hide show
  1. package/dist/lib/browser/{app-graph-builder-VYZ4IWI3.mjs → app-graph-builder-M5BT34YG.mjs} +17 -16
  2. package/dist/lib/browser/app-graph-builder-M5BT34YG.mjs.map +7 -0
  3. package/dist/lib/browser/{check-app-scheme-O7JPE4TM.mjs → check-app-scheme-7AXGR6UT.mjs} +2 -2
  4. package/dist/lib/browser/check-app-scheme-7AXGR6UT.mjs.map +7 -0
  5. package/dist/lib/browser/{state-Z6UY2Z3M.mjs → chunk-FX44YX3G.mjs} +7 -5
  6. package/dist/lib/browser/chunk-FX44YX3G.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-JE2ARGEB.mjs +1487 -0
  8. package/dist/lib/browser/chunk-JE2ARGEB.mjs.map +7 -0
  9. package/dist/lib/browser/{chunk-XMCG42ID.mjs → chunk-KLN73CM3.mjs} +2 -2
  10. package/dist/lib/browser/{chunk-XMCG42ID.mjs.map → chunk-KLN73CM3.mjs.map} +1 -1
  11. package/dist/lib/browser/chunk-SLQNOATN.mjs +127 -0
  12. package/dist/lib/browser/chunk-SLQNOATN.mjs.map +7 -0
  13. package/dist/lib/browser/chunk-TRFYUEBA.mjs +145 -0
  14. package/dist/lib/browser/chunk-TRFYUEBA.mjs.map +7 -0
  15. package/dist/lib/browser/chunk-YN5OZEGS.mjs +162 -0
  16. package/dist/lib/browser/chunk-YN5OZEGS.mjs.map +7 -0
  17. package/dist/lib/browser/index.mjs +6 -8
  18. package/dist/lib/browser/index.mjs.map +2 -2
  19. package/dist/lib/browser/{intent-resolver-JKWXWUV6.mjs → intent-resolver-3GAC57UA.mjs} +84 -66
  20. package/dist/lib/browser/intent-resolver-3GAC57UA.mjs.map +7 -0
  21. package/dist/lib/browser/meta.json +1 -1
  22. package/dist/lib/browser/{react-root-S6ZAKNZA.mjs → react-root-ISFFOJZX.mjs} +7 -7
  23. package/dist/lib/browser/{react-surface-I7WZBOGM.mjs → react-surface-A63RQB5N.mjs} +7 -7
  24. package/dist/lib/browser/{settings-6NU7CF2B.mjs → settings-X7GDEXU3.mjs} +4 -4
  25. package/dist/lib/browser/{settings-6NU7CF2B.mjs.map → settings-X7GDEXU3.mjs.map} +3 -3
  26. package/dist/lib/browser/state-VJ6E3ADY.mjs +10 -0
  27. package/dist/lib/browser/state-VJ6E3ADY.mjs.map +7 -0
  28. package/dist/lib/browser/{tools-VDVQTJMD.mjs → tools-N57NQ2LH.mjs} +28 -18
  29. package/dist/lib/browser/tools-N57NQ2LH.mjs.map +7 -0
  30. package/dist/lib/browser/types.mjs +1 -1
  31. package/dist/lib/browser/{url-handler-3CARFXQK.mjs → url-handler-BUGI6XRE.mjs} +5 -5
  32. package/dist/lib/browser/url-handler-BUGI6XRE.mjs.map +7 -0
  33. package/dist/types/src/capabilities/app-graph-builder.d.ts +2 -179
  34. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  35. package/dist/types/src/capabilities/capabilities.d.ts +10 -2
  36. package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
  37. package/dist/types/src/capabilities/check-app-scheme.d.ts +2 -2
  38. package/dist/types/src/capabilities/check-app-scheme.d.ts.map +1 -1
  39. package/dist/types/src/capabilities/index.d.ts +6 -181
  40. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  41. package/dist/types/src/capabilities/intent-resolver.d.ts +2 -2
  42. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  43. package/dist/types/src/capabilities/state.d.ts +7 -3
  44. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  45. package/dist/types/src/capabilities/tools.d.ts +1 -1
  46. package/dist/types/src/capabilities/tools.d.ts.map +1 -1
  47. package/dist/types/src/capabilities/url-handler.d.ts +2 -2
  48. package/dist/types/src/capabilities/url-handler.d.ts.map +1 -1
  49. package/dist/types/src/components/DeckLayout/Banner.d.ts.map +1 -1
  50. package/dist/types/src/components/DeckLayout/ContentEmpty.d.ts.map +1 -1
  51. package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
  52. package/dist/types/src/components/DeckLayout/Popover.d.ts.map +1 -1
  53. package/dist/types/src/components/DeckLayout/StatusBar.d.ts.map +1 -1
  54. package/dist/types/src/components/DeckLayout/Toast.d.ts.map +1 -1
  55. package/dist/types/src/components/DeckSettings/DeckSettings.d.ts.map +1 -1
  56. package/dist/types/src/components/Plank/Plank.d.ts +18 -5
  57. package/dist/types/src/components/Plank/Plank.d.ts.map +1 -1
  58. package/dist/types/src/components/Plank/Plank.stories.d.ts +3 -3
  59. package/dist/types/src/components/Plank/Plank.stories.d.ts.map +1 -1
  60. package/dist/types/src/components/Plank/PlankControls.d.ts +1 -0
  61. package/dist/types/src/components/Plank/PlankControls.d.ts.map +1 -1
  62. package/dist/types/src/components/Plank/PlankError.d.ts.map +1 -1
  63. package/dist/types/src/components/Plank/PlankHeading.d.ts.map +1 -1
  64. package/dist/types/src/components/Sidebar/ComplementarySidebar.d.ts.map +1 -1
  65. package/dist/types/src/components/Sidebar/Sidebar.d.ts.map +1 -1
  66. package/dist/types/src/components/Sidebar/SidebarButton.d.ts +2 -1
  67. package/dist/types/src/components/Sidebar/SidebarButton.d.ts.map +1 -1
  68. package/dist/types/src/hooks/index.d.ts +5 -1
  69. package/dist/types/src/hooks/index.d.ts.map +1 -1
  70. package/dist/types/src/hooks/useBreakpoints.d.ts.map +1 -0
  71. package/dist/types/src/hooks/useCompanions.d.ts.map +1 -0
  72. package/dist/types/src/hooks/useDeckCompanions.d.ts +13 -0
  73. package/dist/types/src/hooks/useDeckCompanions.d.ts.map +1 -0
  74. package/dist/types/src/hooks/useHoistStatusbar.d.ts.map +1 -0
  75. package/dist/types/src/hooks/useNodeActionExpander.d.ts.map +1 -1
  76. package/dist/types/src/index.d.ts +1 -1
  77. package/dist/types/src/index.d.ts.map +1 -1
  78. package/dist/types/src/layout.d.ts.map +1 -1
  79. package/dist/types/src/translations.d.ts +0 -1
  80. package/dist/types/src/translations.d.ts.map +1 -1
  81. package/dist/types/src/types.d.ts +106 -104
  82. package/dist/types/src/types.d.ts.map +1 -1
  83. package/dist/types/src/util/index.d.ts +1 -4
  84. package/dist/types/src/util/index.d.ts.map +1 -1
  85. package/dist/types/src/util/layoutAppliesTopbar.d.ts.map +1 -1
  86. package/dist/types/src/util/overscroll.d.ts.map +1 -1
  87. package/dist/types/src/util/set-active.d.ts.map +1 -1
  88. package/dist/types/tsconfig.tsbuildinfo +1 -1
  89. package/package.json +38 -30
  90. package/src/capabilities/app-graph-builder.ts +120 -92
  91. package/src/capabilities/check-app-scheme.ts +3 -5
  92. package/src/capabilities/index.ts +1 -0
  93. package/src/capabilities/intent-resolver.ts +100 -78
  94. package/src/capabilities/settings.ts +2 -2
  95. package/src/capabilities/state.ts +4 -2
  96. package/src/capabilities/tools.ts +15 -12
  97. package/src/capabilities/url-handler.ts +4 -4
  98. package/src/components/DeckLayout/ContentEmpty.tsx +3 -2
  99. package/src/components/DeckLayout/DeckLayout.tsx +12 -10
  100. package/src/components/DeckLayout/Dialog.tsx +2 -2
  101. package/src/components/Plank/Plank.stories.tsx +20 -8
  102. package/src/components/Plank/Plank.tsx +101 -68
  103. package/src/components/Plank/PlankControls.tsx +15 -25
  104. package/src/components/Plank/PlankHeading.tsx +22 -10
  105. package/src/components/Sidebar/ComplementarySidebar.tsx +7 -38
  106. package/src/components/Sidebar/Sidebar.tsx +2 -1
  107. package/src/components/Sidebar/SidebarButton.tsx +26 -7
  108. package/src/components/fragments.ts +1 -1
  109. package/src/hooks/index.ts +5 -1
  110. package/src/{util → hooks}/useCompanions.ts +3 -3
  111. package/src/hooks/useDeckCompanions.ts +33 -0
  112. package/src/hooks/useNodeActionExpander.ts +3 -8
  113. package/src/index.ts +1 -1
  114. package/src/translations.ts +0 -1
  115. package/src/types.ts +74 -71
  116. package/src/util/index.ts +1 -4
  117. package/dist/lib/browser/app-graph-builder-VYZ4IWI3.mjs.map +0 -7
  118. package/dist/lib/browser/check-app-scheme-O7JPE4TM.mjs.map +0 -7
  119. package/dist/lib/browser/chunk-6HJZL3WT.mjs +0 -118
  120. package/dist/lib/browser/chunk-6HJZL3WT.mjs.map +0 -7
  121. package/dist/lib/browser/chunk-FLOVGNYB.mjs +0 -81
  122. package/dist/lib/browser/chunk-FLOVGNYB.mjs.map +0 -7
  123. package/dist/lib/browser/chunk-RBJ6DLAC.mjs +0 -24
  124. package/dist/lib/browser/chunk-RBJ6DLAC.mjs.map +0 -7
  125. package/dist/lib/browser/chunk-RDFJGGGX.mjs +0 -1334
  126. package/dist/lib/browser/chunk-RDFJGGGX.mjs.map +0 -7
  127. package/dist/lib/browser/chunk-ZMJMCN7O.mjs +0 -157
  128. package/dist/lib/browser/chunk-ZMJMCN7O.mjs.map +0 -7
  129. package/dist/lib/browser/intent-resolver-JKWXWUV6.mjs.map +0 -7
  130. package/dist/lib/browser/state-Z6UY2Z3M.mjs.map +0 -7
  131. package/dist/lib/browser/tools-VDVQTJMD.mjs.map +0 -7
  132. package/dist/lib/browser/url-handler-3CARFXQK.mjs.map +0 -7
  133. package/dist/types/src/util/useBreakpoints.d.ts.map +0 -1
  134. package/dist/types/src/util/useCompanions.d.ts.map +0 -1
  135. package/dist/types/src/util/useHoistStatusbar.d.ts.map +0 -1
  136. /package/dist/lib/browser/{react-root-S6ZAKNZA.mjs.map → react-root-ISFFOJZX.mjs.map} +0 -0
  137. /package/dist/lib/browser/{react-surface-I7WZBOGM.mjs.map → react-surface-A63RQB5N.mjs.map} +0 -0
  138. /package/dist/types/src/{util → hooks}/useBreakpoints.d.ts +0 -0
  139. /package/dist/types/src/{util → hooks}/useCompanions.d.ts +0 -0
  140. /package/dist/types/src/{util → hooks}/useHoistStatusbar.d.ts +0 -0
  141. /package/src/{util → hooks}/useBreakpoints.ts +0 -0
  142. /package/src/{util → hooks}/useHoistStatusbar.ts +0 -0
@@ -1 +1 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;;;;;;;;;;;;;;;;;QAtDhD,qFAAqF;;;;;;;;;;;;QAArF,qFAAqF;;;;;;;;;;IAkErF,4EAA4E;;GAEvD,CAAC;AAExB,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC;AAEzE,eAAO,MAAM,WAAW,QAA0B,CAAC;AAEnD,yBAAiB,UAAU,CAAC;IAC1B,MAAM,oBAAoB,kNAOzB,CAAC;IACF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAC7E,MAAM,CAAC,MAAM,UAAU;;;OAAmF,CAAC;IAC3G,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;;;;;;;;;;IAG/D,MAAM,OAAO,MAAO,SAAQ,WAG1B;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAMnC;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAMnC;KAAG;;CACN"}
@@ -1,7 +1,4 @@
1
+ export * from './layoutAppliesTopbar';
1
2
  export * from './overscroll';
2
3
  export * from './set-active';
3
- export * from './useBreakpoints';
4
- export * from './layoutAppliesTopbar';
5
- export * from './useHoistStatusbar';
6
- export * from './useCompanions';
7
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"layoutAppliesTopbar.d.ts","sourceRoot":"","sources":["../../../../src/util/layoutAppliesTopbar.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,mBAAmB,eAAgB,MAAM,eAAe,UAAU,YAM9E,CAAC"}
1
+ {"version":3,"file":"layoutAppliesTopbar.d.ts","sourceRoot":"","sources":["../../../../src/util/layoutAppliesTopbar.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,mBAAmB,GAAI,YAAY,MAAM,EAAE,aAAa,UAAU,YAM9E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"overscroll.d.ts","sourceRoot":"","sources":["../../../../src/util/overscroll.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,eAAO,MAAM,mBAAmB,gBACjB,MAAM,KAClB,IAAI,CAAC,aAAa,EAAE,oBAAoB,GAAG,kBAAkB,CAAC,GAAG,SAgBnE,CAAC"}
1
+ {"version":3,"file":"overscroll.d.ts","sourceRoot":"","sources":["../../../../src/util/overscroll.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,eAAO,MAAM,mBAAmB,GAC9B,aAAa,MAAM,KAClB,IAAI,CAAC,aAAa,EAAE,oBAAoB,GAAG,kBAAkB,CAAC,GAAG,SAgBnE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"set-active.d.ts","sourceRoot":"","sources":["../../../../src/util/set-active.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,SAAS,+BAAgC,gBAAgB,uBA8BrE,CAAC"}
1
+ {"version":3,"file":"set-active.d.ts","sourceRoot":"","sources":["../../../../src/util/set-active.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,4BAA4B,gBAAgB,uBA8BrE,CAAC"}
@@ -1 +1 @@
1
- {"version":"5.7.3"}
1
+ {"version":"5.8.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-deck",
3
- "version": "0.8.2-main.f11618f",
3
+ "version": "0.8.2-staging.42af850",
4
4
  "description": "DXOS Surface plugin for the main application layout.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -32,50 +32,58 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@fluentui/react-tabster": "^9.24.2",
35
- "@preact/signals-core": "^1.6.0",
35
+ "@preact-signals/safe-react": "^0.9.0",
36
+ "@preact/signals-core": "^1.9.0",
36
37
  "@radix-ui/react-context": "1.1.1",
37
- "effect": "3.13.3",
38
+ "effect": "3.14.21",
38
39
  "immer": "^10.1.1",
39
- "@dxos/app-framework": "0.8.2-main.f11618f",
40
- "@dxos/artifact": "0.8.2-main.f11618f",
41
- "@dxos/debug": "0.8.2-main.f11618f",
42
- "@dxos/echo-schema": "0.8.2-main.f11618f",
43
- "@dxos/async": "0.8.2-main.f11618f",
44
- "@dxos/echo-signals": "0.8.2-main.f11618f",
45
- "@dxos/keyboard": "0.8.2-main.f11618f",
46
- "@dxos/live-object": "0.8.2-main.f11618f",
47
- "@dxos/invariant": "0.8.2-main.f11618f",
48
- "@dxos/local-storage": "0.8.2-main.f11618f",
49
- "@dxos/plugin-attention": "0.8.2-main.f11618f",
50
- "@dxos/plugin-graph": "0.8.2-main.f11618f",
51
- "@dxos/log": "0.8.2-main.f11618f",
52
- "@dxos/plugin-observability": "0.8.2-main.f11618f",
53
- "@dxos/react-ui-attention": "0.8.2-main.f11618f",
54
- "@dxos/plugin-theme": "0.8.2-main.f11618f",
55
- "@dxos/react-ui-form": "0.8.2-main.f11618f",
56
- "@dxos/react-client": "0.8.2-main.f11618f",
57
- "@dxos/react-ui-tabs": "0.8.2-main.f11618f",
58
- "@dxos/react-ui-stack": "0.8.2-main.f11618f",
59
- "@dxos/react-ui-text-tooltip": "0.8.2-main.f11618f",
60
- "@dxos/util": "0.8.2-main.f11618f"
40
+ "@dxos/ai": "0.8.2-staging.42af850",
41
+ "@dxos/async": "0.8.2-staging.42af850",
42
+ "@dxos/debug": "0.8.2-staging.42af850",
43
+ "@dxos/artifact": "0.8.2-staging.42af850",
44
+ "@dxos/app-framework": "0.8.2-staging.42af850",
45
+ "@dxos/echo": "0.8.2-staging.42af850",
46
+ "@dxos/echo-schema": "0.8.2-staging.42af850",
47
+ "@dxos/echo-signals": "0.8.2-staging.42af850",
48
+ "@dxos/invariant": "0.8.2-staging.42af850",
49
+ "@dxos/live-object": "0.8.2-staging.42af850",
50
+ "@dxos/keyboard": "0.8.2-staging.42af850",
51
+ "@dxos/plugin-attention": "0.8.2-staging.42af850",
52
+ "@dxos/log": "0.8.2-staging.42af850",
53
+ "@dxos/local-storage": "0.8.2-staging.42af850",
54
+ "@dxos/plugin-graph": "0.8.2-staging.42af850",
55
+ "@dxos/plugin-observability": "0.8.2-staging.42af850",
56
+ "@dxos/plugin-theme": "0.8.2-staging.42af850",
57
+ "@dxos/react-client": "0.8.2-staging.42af850",
58
+ "@dxos/react-ui-form": "0.8.2-staging.42af850",
59
+ "@dxos/react-ui-tabs": "0.8.2-staging.42af850",
60
+ "@dxos/react-ui-stack": "0.8.2-staging.42af850",
61
+ "@dxos/react-ui-attention": "0.8.2-staging.42af850",
62
+ "@dxos/react-ui-text-tooltip": "0.8.2-staging.42af850",
63
+ "@dxos/util": "0.8.2-staging.42af850"
61
64
  },
62
65
  "devDependencies": {
66
+ "@effect-rx/rx-react": "^0.34.1",
67
+ "@effect/platform": "0.80.12",
63
68
  "@phosphor-icons/react": "^2.1.5",
64
69
  "@types/react": "~18.2.0",
65
70
  "@types/react-dom": "~18.2.0",
66
71
  "react": "~18.2.0",
67
72
  "react-dom": "~18.2.0",
68
73
  "vite": "5.4.7",
69
- "@dxos/react-ui-theme": "0.8.2-main.f11618f",
70
- "@dxos/react-ui": "0.8.2-main.f11618f",
71
- "@dxos/storybook-utils": "0.8.2-main.f11618f"
74
+ "@dxos/react-ui": "0.8.2-staging.42af850",
75
+ "@dxos/react-ui-theme": "0.8.2-staging.42af850",
76
+ "@dxos/storybook-utils": "0.8.2-staging.42af850"
72
77
  },
73
78
  "peerDependencies": {
79
+ "@effect-rx/rx-react": "^0.34.1",
80
+ "@effect/platform": "0.80.12",
74
81
  "@phosphor-icons/react": "^2.0.5",
82
+ "effect": "^3.13.3",
75
83
  "react": "~18.2.0",
76
84
  "react-dom": "~18.2.0",
77
- "@dxos/react-ui": "0.8.2-main.f11618f",
78
- "@dxos/react-ui-theme": "0.8.2-main.f11618f"
85
+ "@dxos/react-ui": "0.8.2-staging.42af850",
86
+ "@dxos/react-ui-theme": "0.8.2-staging.42af850"
79
87
  },
80
88
  "publishConfig": {
81
89
  "access": "public"
@@ -2,112 +2,140 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { Capabilities, contributes, createIntent, LayoutAction, type PluginsContext } from '@dxos/app-framework';
5
+ import { Rx } from '@effect-rx/rx-react';
6
+ import { Option, pipe } from 'effect';
7
+
8
+ import { Capabilities, contributes, createIntent, LayoutAction, type PluginContext } from '@dxos/app-framework';
6
9
  import { AttentionCapabilities } from '@dxos/plugin-attention';
7
- import { createExtension, type Node, ROOT_ID } from '@dxos/plugin-graph';
10
+ import { createExtension, ROOT_ID, rxFromSignal } from '@dxos/plugin-graph';
8
11
 
9
12
  import { DeckCapabilities } from './capabilities';
10
13
  import { DECK_PLUGIN } from '../meta';
11
14
 
12
- export default (context: PluginsContext) =>
15
+ export default (context: PluginContext) =>
13
16
  contributes(
14
17
  Capabilities.AppGraphBuilder,
15
18
  createExtension({
16
19
  id: DECK_PLUGIN,
17
- filter: (node): node is Node<null> => node.id === ROOT_ID,
18
- actions: () => {
19
- const state = context.requestCapability(DeckCapabilities.MutableDeckState);
20
+ actions: (node) =>
21
+ Rx.make((get) =>
22
+ pipe(
23
+ get(node),
24
+ Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),
25
+ Option.map(() => {
26
+ const state = context.getCapability(DeckCapabilities.MutableDeckState);
20
27
 
21
- // NOTE(Zan): This is currently disabled.
22
- // TODO(Zan): Fullscreen needs to know the active node and provide that to the layout part.
23
- const _fullscreen = {
24
- id: `${LayoutAction.UpdateLayout._tag}/fullscreen`,
25
- data: async () => {
26
- const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);
27
- await dispatch(createIntent(LayoutAction.SetLayoutMode, { part: 'mode', options: { mode: 'fullscreen' } }));
28
- },
29
- properties: {
30
- label: ['toggle fullscreen label', { ns: DECK_PLUGIN }],
31
- icon: 'ph--arrows-out--regular',
32
- keyBinding: {
33
- macos: 'ctrl+meta+f',
34
- windows: 'shift+ctrl+f',
35
- },
36
- },
37
- };
28
+ // NOTE(Zan): This is currently disabled.
29
+ // TODO(Zan): Fullscreen needs to know the active node and provide that to the layout part.
30
+ const _fullscreen = {
31
+ id: `${LayoutAction.UpdateLayout._tag}/fullscreen`,
32
+ data: async () => {
33
+ const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
34
+ await dispatch(
35
+ createIntent(LayoutAction.SetLayoutMode, { part: 'mode', options: { mode: 'fullscreen' } }),
36
+ );
37
+ },
38
+ properties: {
39
+ label: ['toggle fullscreen label', { ns: DECK_PLUGIN }],
40
+ icon: 'ph--arrows-out--regular',
41
+ keyBinding: {
42
+ macos: 'ctrl+meta+f',
43
+ windows: 'shift+ctrl+f',
44
+ },
45
+ },
46
+ };
38
47
 
39
- const closeCurrent = {
40
- id: `${LayoutAction.Close._tag}/current`,
41
- data: async () => {
42
- const attention = context.requestCapability(AttentionCapabilities.Attention);
43
- const attended = attention.current.at(-1);
44
- if (attended) {
45
- const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);
46
- await dispatch(
47
- createIntent(LayoutAction.Close, { part: 'main', subject: [attended], options: { state: false } }),
48
- );
49
- }
50
- },
51
- properties: {
52
- label: ['close current label', { ns: DECK_PLUGIN }],
53
- icon: 'ph--x--regular',
54
- },
55
- };
48
+ const closeCurrent = {
49
+ id: `${LayoutAction.Close._tag}/current`,
50
+ data: async () => {
51
+ const attention = context.getCapability(AttentionCapabilities.Attention);
52
+ const attended = attention.current.at(-1);
53
+ if (attended) {
54
+ const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
55
+ await dispatch(
56
+ createIntent(LayoutAction.Close, {
57
+ part: 'main',
58
+ subject: [attended],
59
+ options: { state: false },
60
+ }),
61
+ );
62
+ }
63
+ },
64
+ properties: {
65
+ label: ['close current label', { ns: DECK_PLUGIN }],
66
+ icon: 'ph--x--regular',
67
+ },
68
+ };
56
69
 
57
- const closeOthers = {
58
- id: `${LayoutAction.Close._tag}/others`,
59
- data: async () => {
60
- const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);
61
- const attention = context.requestCapability(AttentionCapabilities.Attention);
62
- const attended = attention.current.at(-1);
63
- const ids = state.deck.active.filter((id) => id !== attended) ?? [];
64
- await dispatch(createIntent(LayoutAction.Close, { part: 'main', subject: ids, options: { state: false } }));
65
- },
66
- properties: {
67
- label: ['close others label', { ns: DECK_PLUGIN }],
68
- icon: 'ph--x-square--regular',
69
- },
70
- };
70
+ const closeOthers = {
71
+ id: `${LayoutAction.Close._tag}/others`,
72
+ data: async () => {
73
+ const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
74
+ const attention = context.getCapability(AttentionCapabilities.Attention);
75
+ const attended = attention.current.at(-1);
76
+ const ids = state.deck.active.filter((id) => id !== attended) ?? [];
77
+ await dispatch(
78
+ createIntent(LayoutAction.Close, { part: 'main', subject: ids, options: { state: false } }),
79
+ );
80
+ },
81
+ properties: {
82
+ label: ['close others label', { ns: DECK_PLUGIN }],
83
+ icon: 'ph--x-square--regular',
84
+ },
85
+ };
71
86
 
72
- const closeAll = {
73
- id: `${LayoutAction.Close._tag}/all`,
74
- data: async () => {
75
- const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);
76
- await dispatch(
77
- createIntent(LayoutAction.Close, {
78
- part: 'main',
79
- subject: state.deck.active,
80
- options: { state: false },
81
- }),
82
- );
83
- },
84
- properties: {
85
- label: ['close all label', { ns: DECK_PLUGIN }],
86
- icon: 'ph--x-circle--regular',
87
- },
88
- };
87
+ const closeAll = {
88
+ id: `${LayoutAction.Close._tag}/all`,
89
+ data: async () => {
90
+ const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
91
+ await dispatch(
92
+ createIntent(LayoutAction.Close, {
93
+ part: 'main',
94
+ subject: state.deck.active,
95
+ options: { state: false },
96
+ }),
97
+ );
98
+ },
99
+ properties: {
100
+ label: ['close all label', { ns: DECK_PLUGIN }],
101
+ icon: 'ph--x-circle--regular',
102
+ },
103
+ };
89
104
 
90
- const toggleSidebar = {
91
- id: `${LayoutAction.UpdateSidebar._tag}/nav`,
92
- data: async () => {
93
- state.sidebarState = state.sidebarState === 'expanded' ? 'collapsed' : 'expanded';
94
- },
95
- properties: {
96
- label: [
97
- state.sidebarState === 'expanded' ? 'collapse navigation sidebar label' : 'open navigation sidebar label',
98
- { ns: DECK_PLUGIN },
99
- ],
100
- icon: 'ph--sidebar--regular',
101
- keyBinding: {
102
- macos: 'meta+b',
103
- },
104
- disposition: 'pin-end',
105
- position: 'hoist',
106
- l0Breakpoint: 'lg',
107
- },
108
- };
105
+ const toggleSidebar = {
106
+ id: `${LayoutAction.UpdateSidebar._tag}/nav`,
107
+ data: async () => {
108
+ state.sidebarState = state.sidebarState === 'expanded' ? 'collapsed' : 'expanded';
109
+ },
110
+ properties: {
111
+ label: [
112
+ get(
113
+ rxFromSignal(() =>
114
+ state.sidebarState === 'expanded'
115
+ ? 'collapse navigation sidebar label'
116
+ : 'open navigation sidebar label',
117
+ ),
118
+ ),
119
+ { ns: DECK_PLUGIN },
120
+ ],
121
+ icon: 'ph--sidebar--regular',
122
+ keyBinding: {
123
+ macos: 'meta+b',
124
+ },
125
+ disposition: 'pin-end',
126
+ position: 'hoist',
127
+ l0Breakpoint: 'lg',
128
+ },
129
+ };
109
130
 
110
- return !state.deck.solo ? [closeCurrent, closeOthers, closeAll, toggleSidebar] : [toggleSidebar];
111
- },
131
+ return get(
132
+ rxFromSignal(() =>
133
+ !state.deck.solo ? [closeCurrent, closeOthers, closeAll, toggleSidebar] : [toggleSidebar],
134
+ ),
135
+ );
136
+ }),
137
+ Option.getOrElse(() => []),
138
+ ),
139
+ ),
112
140
  }),
113
141
  );
@@ -2,7 +2,7 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { Capabilities, contributes, type PluginsContext } from '@dxos/app-framework';
5
+ import { Capabilities, contributes, type PluginContext } from '@dxos/app-framework';
6
6
 
7
7
  import { DECK_PLUGIN } from '../meta';
8
8
  import { type DeckSettingsProps } from '../types';
@@ -30,10 +30,8 @@ const checkAppScheme = (url: string) => {
30
30
  });
31
31
  };
32
32
 
33
- export default async (context: PluginsContext) => {
34
- const settings = context
35
- .requestCapability(Capabilities.SettingsStore)
36
- .getStore<DeckSettingsProps>(DECK_PLUGIN)?.value;
33
+ export default async (context: PluginContext) => {
34
+ const settings = context.getCapability(Capabilities.SettingsStore).getStore<DeckSettingsProps>(DECK_PLUGIN)?.value;
37
35
  if (!isSocket && settings?.enableNativeRedirect) {
38
36
  checkAppScheme(appScheme);
39
37
  }
@@ -15,3 +15,4 @@ export const Tools = lazy(() => import('./tools'));
15
15
  export const UrlHandler = lazy(() => import('./url-handler'));
16
16
 
17
17
  export * from './capabilities';
18
+ export * from './state';