@dxos/app-framework 0.8.1 → 0.8.2-main.2f9c567

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 (283) hide show
  1. package/dist/lib/browser/{app-graph-builder-576BHZC7.mjs → app-graph-builder-FB4NWT25.mjs} +3 -3
  2. package/dist/lib/browser/{chunk-PPIBZ5N4.mjs → chunk-A7XUUTJN.mjs} +4 -4
  3. package/dist/lib/browser/chunk-A7XUUTJN.mjs.map +7 -0
  4. package/dist/lib/browser/{chunk-SFPT4Z2C.mjs → chunk-KPRHX73H.mjs} +9 -9
  5. package/dist/lib/browser/chunk-KPRHX73H.mjs.map +7 -0
  6. package/dist/lib/browser/{chunk-6AVTZPMT.mjs → chunk-M6UBP7YP.mjs} +204 -173
  7. package/dist/lib/browser/chunk-M6UBP7YP.mjs.map +7 -0
  8. package/dist/lib/browser/index.mjs +8 -6
  9. package/dist/lib/browser/index.mjs.map +1 -1
  10. package/dist/lib/browser/{intent-dispatcher-3Q67MHZZ.mjs → intent-dispatcher-SICNXT2G.mjs} +2 -2
  11. package/dist/lib/browser/{intent-resolver-O763LCLG.mjs → intent-resolver-2K6LNSUE.mjs} +3 -3
  12. package/dist/lib/browser/meta.json +1 -1
  13. package/dist/lib/browser/{store-URSN7DZI.mjs → store-P4XZF26P.mjs} +2 -2
  14. package/dist/lib/browser/testing/index.mjs +2 -2
  15. package/dist/lib/browser/worker.mjs +3 -1
  16. package/dist/lib/node/{app-graph-builder-JZCSKYPY.cjs → app-graph-builder-5QJ6YDE7.cjs} +28 -28
  17. package/dist/lib/node/{chunk-JUSEAFDU.cjs → chunk-JQMNABMK.cjs} +4 -4
  18. package/dist/lib/node/chunk-JQMNABMK.cjs.map +7 -0
  19. package/dist/lib/node/{chunk-YIFTVCOR.cjs → chunk-LPUJODXZ.cjs} +180 -150
  20. package/dist/lib/node/chunk-LPUJODXZ.cjs.map +7 -0
  21. package/dist/lib/node/{chunk-YNTKVTVX.cjs → chunk-MTROSTO7.cjs} +20 -20
  22. package/dist/lib/node/{chunk-YNTKVTVX.cjs.map → chunk-MTROSTO7.cjs.map} +3 -3
  23. package/dist/lib/node/index.cjs +80 -78
  24. package/dist/lib/node/index.cjs.map +1 -1
  25. package/dist/lib/node/{intent-dispatcher-H334XLFD.cjs → intent-dispatcher-XXFKXEHF.cjs} +8 -8
  26. package/dist/lib/node/{intent-dispatcher-H334XLFD.cjs.map → intent-dispatcher-XXFKXEHF.cjs.map} +2 -2
  27. package/dist/lib/node/{intent-resolver-3F4POWAM.cjs → intent-resolver-ZP6S7QKG.cjs} +12 -12
  28. package/dist/lib/node/meta.json +1 -1
  29. package/dist/lib/node/{store-OFDHTDCB.cjs → store-MALHSPHZ.cjs} +7 -7
  30. package/dist/lib/node/testing/index.cjs +8 -8
  31. package/dist/lib/node/worker.cjs +39 -37
  32. package/dist/lib/node/worker.cjs.map +2 -2
  33. package/dist/lib/node-esm/{app-graph-builder-VYKLSMSZ.mjs → app-graph-builder-2KB5VMTB.mjs} +3 -3
  34. package/dist/lib/node-esm/{chunk-PHOUQACM.mjs → chunk-JUJF5L4G.mjs} +9 -9
  35. package/dist/lib/node-esm/chunk-JUJF5L4G.mjs.map +7 -0
  36. package/dist/lib/node-esm/{chunk-R6A7Z4LU.mjs → chunk-MX6ITPIG.mjs} +4 -4
  37. package/dist/lib/{browser/chunk-PPIBZ5N4.mjs.map → node-esm/chunk-MX6ITPIG.mjs.map} +3 -3
  38. package/dist/lib/node-esm/{chunk-AHKIPS2L.mjs → chunk-OZD32CQN.mjs} +204 -173
  39. package/dist/lib/node-esm/chunk-OZD32CQN.mjs.map +7 -0
  40. package/dist/lib/node-esm/index.mjs +8 -6
  41. package/dist/lib/node-esm/index.mjs.map +1 -1
  42. package/dist/lib/node-esm/{intent-dispatcher-YDE2ONZA.mjs → intent-dispatcher-FF5HNHPQ.mjs} +2 -2
  43. package/dist/lib/node-esm/{intent-resolver-LAGJ7LXM.mjs → intent-resolver-QWIKXIGI.mjs} +3 -3
  44. package/dist/lib/node-esm/meta.json +1 -1
  45. package/dist/lib/node-esm/{store-EYSUVNCS.mjs → store-3NM6AWB4.mjs} +2 -2
  46. package/dist/lib/node-esm/testing/index.mjs +2 -2
  47. package/dist/lib/node-esm/worker.mjs +3 -1
  48. package/dist/types/src/common/capabilities.d.ts +2 -2
  49. package/dist/types/src/common/capabilities.d.ts.map +1 -1
  50. package/dist/types/src/common/collaboration.d.ts +19 -0
  51. package/dist/types/src/common/collaboration.d.ts.map +1 -0
  52. package/dist/types/src/common/file.d.ts +7 -7
  53. package/dist/types/src/common/file.d.ts.map +1 -1
  54. package/dist/types/src/common/index.d.ts +1 -0
  55. package/dist/types/src/common/index.d.ts.map +1 -1
  56. package/dist/types/src/common/layout.d.ts +164 -158
  57. package/dist/types/src/common/layout.d.ts.map +1 -1
  58. package/dist/types/src/common/translations.d.ts +7 -7
  59. package/dist/types/src/common/translations.d.ts.map +1 -1
  60. package/dist/types/src/core/capabilities.d.ts +5 -2
  61. package/dist/types/src/core/capabilities.d.ts.map +1 -1
  62. package/dist/types/src/core/events.d.ts +4 -1
  63. package/dist/types/src/core/events.d.ts.map +1 -1
  64. package/dist/types/src/core/manager.d.ts +8 -8
  65. package/dist/types/src/core/manager.d.ts.map +1 -1
  66. package/dist/types/src/core/plugin.d.ts +2 -1
  67. package/dist/types/src/core/plugin.d.ts.map +1 -1
  68. package/dist/types/src/playground/logger/schema.d.ts +6 -6
  69. package/dist/types/src/playground/logger/schema.d.ts.map +1 -1
  70. package/dist/types/src/plugin-intent/actions.d.ts +14 -14
  71. package/dist/types/src/plugin-intent/actions.d.ts.map +1 -1
  72. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts +27 -1
  73. package/dist/types/src/plugin-intent/intent-dispatcher.d.ts.map +1 -1
  74. package/dist/types/src/plugin-intent/intent.d.ts +12 -12
  75. package/dist/types/src/plugin-intent/intent.d.ts.map +1 -1
  76. package/dist/types/src/plugin-settings/actions.d.ts +10 -10
  77. package/dist/types/src/plugin-settings/actions.d.ts.map +1 -1
  78. package/package.json +23 -19
  79. package/project.json +2 -1
  80. package/src/App.tsx +2 -2
  81. package/src/common/capabilities.ts +2 -2
  82. package/src/common/collaboration.ts +22 -0
  83. package/src/common/file.ts +7 -7
  84. package/src/common/index.ts +1 -0
  85. package/src/common/layout.ts +159 -128
  86. package/src/common/translations.ts +7 -7
  87. package/src/core/capabilities.ts +9 -5
  88. package/src/core/events.ts +4 -1
  89. package/src/core/manager.test.ts +3 -3
  90. package/src/core/manager.ts +10 -10
  91. package/src/core/plugin.ts +2 -1
  92. package/src/playground/generator/generator.ts +4 -4
  93. package/src/playground/logger/schema.ts +5 -5
  94. package/src/plugin-intent/actions.ts +9 -9
  95. package/src/plugin-intent/intent-dispatcher.test.ts +23 -23
  96. package/src/plugin-intent/intent-dispatcher.ts +18 -2
  97. package/src/plugin-intent/intent.ts +20 -11
  98. package/src/plugin-settings/actions.ts +8 -8
  99. package/typedoc/.nojekyll +1 -0
  100. package/typedoc/assets/hierarchy.js +1 -0
  101. package/typedoc/assets/highlight.css +106 -0
  102. package/typedoc/assets/icons.js +18 -0
  103. package/typedoc/assets/icons.svg +1 -0
  104. package/typedoc/assets/main.js +60 -0
  105. package/typedoc/assets/navigation.js +1 -0
  106. package/typedoc/assets/search.js +1 -0
  107. package/typedoc/assets/style.css +1640 -0
  108. package/typedoc/classes/CollaborationActions.InsertContent.html +460 -0
  109. package/typedoc/classes/ErrorBoundary.html +125 -0
  110. package/typedoc/classes/IntentAction.ShowUndo.html +227 -0
  111. package/typedoc/classes/IntentAction.Track.html +266 -0
  112. package/typedoc/classes/LayoutAction.AddToast.html +265 -0
  113. package/typedoc/classes/LayoutAction.Close.html +382 -0
  114. package/typedoc/classes/LayoutAction.Expose.html +265 -0
  115. package/typedoc/classes/LayoutAction.Open.html +1123 -0
  116. package/typedoc/classes/LayoutAction.RevertWorkspace.html +343 -0
  117. package/typedoc/classes/LayoutAction.ScrollIntoView.html +460 -0
  118. package/typedoc/classes/LayoutAction.Set.html +460 -0
  119. package/typedoc/classes/LayoutAction.SetLayoutMode.html +499 -0
  120. package/typedoc/classes/LayoutAction.SwitchWorkspace.html +265 -0
  121. package/typedoc/classes/LayoutAction.UpdateComplementary.html +616 -0
  122. package/typedoc/classes/LayoutAction.UpdateDialog.html +811 -0
  123. package/typedoc/classes/LayoutAction.UpdateLayout.html +461 -0
  124. package/typedoc/classes/LayoutAction.UpdatePopover.html +1435 -0
  125. package/typedoc/classes/LayoutAction.UpdateSidebar.html +616 -0
  126. package/typedoc/classes/Plugin.html +6 -0
  127. package/typedoc/classes/PluginManager.html +42 -0
  128. package/typedoc/classes/PluginModule.html +18 -0
  129. package/typedoc/classes/PluginsContext.html +25 -0
  130. package/typedoc/classes/SettingsAction.Open.html +226 -0
  131. package/typedoc/classes/SettingsAction.OpenPluginRegistry.html +265 -0
  132. package/typedoc/functions/Events.createStateEvent.html +2 -0
  133. package/typedoc/functions/IntentPlugin.html +1 -0
  134. package/typedoc/functions/SettingsPlugin.html +1 -0
  135. package/typedoc/functions/allOf.html +2 -0
  136. package/typedoc/functions/chain.html +3 -0
  137. package/typedoc/functions/contributes.html +2 -0
  138. package/typedoc/functions/createApp.html +6 -0
  139. package/typedoc/functions/createDispatcher.html +3 -0
  140. package/typedoc/functions/createIntent.html +6 -0
  141. package/typedoc/functions/createResolver.html +2 -0
  142. package/typedoc/functions/createSurface.html +2 -0
  143. package/typedoc/functions/defineCapability.html +2 -0
  144. package/typedoc/functions/defineEvent.html +2 -0
  145. package/typedoc/functions/defineModule.html +2 -0
  146. package/typedoc/functions/definePlugin.html +2 -0
  147. package/typedoc/functions/eventKey.html +2 -0
  148. package/typedoc/functions/getEvents.html +2 -0
  149. package/typedoc/functions/isAllOf.html +2 -0
  150. package/typedoc/functions/isOneOf.html +2 -0
  151. package/typedoc/functions/isSurfaceAvailable.html +2 -0
  152. package/typedoc/functions/lazy.html +2 -0
  153. package/typedoc/functions/oneOf.html +2 -0
  154. package/typedoc/functions/useAppGraph.html +1 -0
  155. package/typedoc/functions/useCapabilities.html +3 -0
  156. package/typedoc/functions/useCapability.html +4 -0
  157. package/typedoc/functions/useIntentDispatcher.html +1 -0
  158. package/typedoc/functions/useIntentResolver.html +1 -0
  159. package/typedoc/functions/useLayout.html +1 -0
  160. package/typedoc/functions/usePluginManager.html +2 -0
  161. package/typedoc/hierarchy.html +1 -0
  162. package/typedoc/index.html +16 -0
  163. package/typedoc/interfaces/LayoutAction.Toast.html +10 -0
  164. package/typedoc/media/LICENSE +8 -0
  165. package/typedoc/modules/Capabilities.html +1 -0
  166. package/typedoc/modules/CollaborationActions.html +1 -0
  167. package/typedoc/modules/Events.html +1 -0
  168. package/typedoc/modules/IntentAction.html +1 -0
  169. package/typedoc/modules/LayoutAction.html +2 -0
  170. package/typedoc/modules/SettingsAction.html +1 -0
  171. package/typedoc/modules.html +1 -0
  172. package/typedoc/types/ActivationEvent.html +8 -0
  173. package/typedoc/types/ActivationEvents.html +2 -0
  174. package/typedoc/types/AnyCapability.html +1 -0
  175. package/typedoc/types/AnyIntent.html +1 -0
  176. package/typedoc/types/AnyIntentChain.html +1 -0
  177. package/typedoc/types/AnyIntentEffectResult.html +1 -0
  178. package/typedoc/types/AnyIntentResolver.html +1 -0
  179. package/typedoc/types/AnyIntentResult.html +1 -0
  180. package/typedoc/types/Capabilities.FileUploader.html +1 -0
  181. package/typedoc/types/Capabilities.IntentResolver.html +1 -0
  182. package/typedoc/types/Capabilities.Layout.html +1 -0
  183. package/typedoc/types/Capabilities.Metadata.html +1 -0
  184. package/typedoc/types/Capabilities.ReactContext.html +1 -0
  185. package/typedoc/types/Capabilities.ReactRoot.html +1 -0
  186. package/typedoc/types/Capabilities.ReactSurface.html +1 -0
  187. package/typedoc/types/Capabilities.Settings.html +4 -0
  188. package/typedoc/types/Capability.html +9 -0
  189. package/typedoc/types/CreateAppOptions.html +9 -0
  190. package/typedoc/types/FileInfo.html +1 -0
  191. package/typedoc/types/Intent.html +14 -0
  192. package/typedoc/types/IntentChain.html +6 -0
  193. package/typedoc/types/IntentContext.html +5 -0
  194. package/typedoc/types/IntentData.html +1 -0
  195. package/typedoc/types/IntentDispatcher.html +2 -0
  196. package/typedoc/types/IntentDispatcherResult.html +2 -0
  197. package/typedoc/types/IntentEffectDefinition.html +2 -0
  198. package/typedoc/types/IntentEffectResult.html +15 -0
  199. package/typedoc/types/IntentParams.html +3 -0
  200. package/typedoc/types/IntentResolver.html +2 -0
  201. package/typedoc/types/IntentResultData.html +1 -0
  202. package/typedoc/types/IntentSchema.html +1 -0
  203. package/typedoc/types/IntentUndo.html +2 -0
  204. package/typedoc/types/InterfaceDef.html +4 -0
  205. package/typedoc/types/Label.html +1 -0
  206. package/typedoc/types/NodeSerializer.html +8 -0
  207. package/typedoc/types/PluginManagerOptions.html +5 -0
  208. package/typedoc/types/PluginMeta.html +21 -0
  209. package/typedoc/types/PromiseIntentDispatcher.html +2 -0
  210. package/typedoc/types/PromiseIntentUndo.html +2 -0
  211. package/typedoc/types/Resource.html +1 -0
  212. package/typedoc/types/ResourceKey.html +1 -0
  213. package/typedoc/types/ResourceLanguage.html +1 -0
  214. package/typedoc/types/SerializedNode.html +4 -0
  215. package/typedoc/types/SurfaceComponent.html +2 -0
  216. package/typedoc/types/SurfaceDefinition.html +2 -0
  217. package/typedoc/types/SurfaceProps.html +4 -0
  218. package/typedoc/variables/Capabilities.AppGraph.html +1 -0
  219. package/typedoc/variables/Capabilities.AppGraphBuilder.html +1 -0
  220. package/typedoc/variables/Capabilities.AppGraphSerializer.html +1 -0
  221. package/typedoc/variables/Capabilities.ArtifactDefinition.html +1 -0
  222. package/typedoc/variables/Capabilities.FileUploader.html +1 -0
  223. package/typedoc/variables/Capabilities.IntentDispatcher.html +1 -0
  224. package/typedoc/variables/Capabilities.IntentResolver.html +1 -0
  225. package/typedoc/variables/Capabilities.Layout.html +1 -0
  226. package/typedoc/variables/Capabilities.Metadata.html +1 -0
  227. package/typedoc/variables/Capabilities.Null.html +1 -0
  228. package/typedoc/variables/Capabilities.PluginManager.html +1 -0
  229. package/typedoc/variables/Capabilities.ReactContext.html +1 -0
  230. package/typedoc/variables/Capabilities.ReactRoot.html +1 -0
  231. package/typedoc/variables/Capabilities.ReactSurface.html +1 -0
  232. package/typedoc/variables/Capabilities.Settings.html +1 -0
  233. package/typedoc/variables/Capabilities.SettingsStore.html +1 -0
  234. package/typedoc/variables/Capabilities.Tools.html +1 -0
  235. package/typedoc/variables/Capabilities.Translations.html +1 -0
  236. package/typedoc/variables/Events.AppGraphReady.html +2 -0
  237. package/typedoc/variables/Events.DispatcherReady.html +2 -0
  238. package/typedoc/variables/Events.LayoutReady.html +1 -0
  239. package/typedoc/variables/Events.SettingsReady.html +2 -0
  240. package/typedoc/variables/Events.SetupAppGraph.html +2 -0
  241. package/typedoc/variables/Events.SetupArtifactDefinition.html +2 -0
  242. package/typedoc/variables/Events.SetupIntentResolver.html +2 -0
  243. package/typedoc/variables/Events.SetupMetadata.html +2 -0
  244. package/typedoc/variables/Events.SetupReactSurface.html +2 -0
  245. package/typedoc/variables/Events.SetupSettings.html +2 -0
  246. package/typedoc/variables/Events.SetupTranslations.html +2 -0
  247. package/typedoc/variables/Events.Startup.html +2 -0
  248. package/typedoc/variables/FileInfoSchema.html +1 -0
  249. package/typedoc/variables/INTENT_ACTION.html +1 -0
  250. package/typedoc/variables/INTENT_PLUGIN.html +1 -0
  251. package/typedoc/variables/LAYOUT_ACTION.html +1 -0
  252. package/typedoc/variables/LAYOUT_PLUGIN.html +1 -0
  253. package/typedoc/variables/Label.html +1 -0
  254. package/typedoc/variables/LayoutAction.Toast.html +1 -0
  255. package/typedoc/variables/LayoutAction.UPDATE_LAYOUT.html +1 -0
  256. package/typedoc/variables/PluginManagerProvider.html +2 -0
  257. package/typedoc/variables/Resource.html +2 -0
  258. package/typedoc/variables/ResourceKey.html +1 -0
  259. package/typedoc/variables/ResourceLanguage.html +1 -0
  260. package/typedoc/variables/SETTINGS_ACTION.html +1 -0
  261. package/typedoc/variables/SETTINGS_ID.html +1 -0
  262. package/typedoc/variables/SETTINGS_KEY.html +1 -0
  263. package/typedoc/variables/SETTINGS_PLUGIN.html +1 -0
  264. package/typedoc/variables/Surface.html +2 -0
  265. package/typedoc/variables/defaultFileTypes.html +1 -0
  266. package/dist/lib/browser/chunk-6AVTZPMT.mjs.map +0 -7
  267. package/dist/lib/browser/chunk-SFPT4Z2C.mjs.map +0 -7
  268. package/dist/lib/node/chunk-JUSEAFDU.cjs.map +0 -7
  269. package/dist/lib/node/chunk-YIFTVCOR.cjs.map +0 -7
  270. package/dist/lib/node-esm/chunk-AHKIPS2L.mjs.map +0 -7
  271. package/dist/lib/node-esm/chunk-PHOUQACM.mjs.map +0 -7
  272. package/dist/lib/node-esm/chunk-R6A7Z4LU.mjs.map +0 -7
  273. /package/dist/lib/browser/{app-graph-builder-576BHZC7.mjs.map → app-graph-builder-FB4NWT25.mjs.map} +0 -0
  274. /package/dist/lib/browser/{intent-dispatcher-3Q67MHZZ.mjs.map → intent-dispatcher-SICNXT2G.mjs.map} +0 -0
  275. /package/dist/lib/browser/{intent-resolver-O763LCLG.mjs.map → intent-resolver-2K6LNSUE.mjs.map} +0 -0
  276. /package/dist/lib/browser/{store-URSN7DZI.mjs.map → store-P4XZF26P.mjs.map} +0 -0
  277. /package/dist/lib/node/{app-graph-builder-JZCSKYPY.cjs.map → app-graph-builder-5QJ6YDE7.cjs.map} +0 -0
  278. /package/dist/lib/node/{intent-resolver-3F4POWAM.cjs.map → intent-resolver-ZP6S7QKG.cjs.map} +0 -0
  279. /package/dist/lib/node/{store-OFDHTDCB.cjs.map → store-MALHSPHZ.cjs.map} +0 -0
  280. /package/dist/lib/node-esm/{app-graph-builder-VYKLSMSZ.mjs.map → app-graph-builder-2KB5VMTB.mjs.map} +0 -0
  281. /package/dist/lib/node-esm/{intent-dispatcher-YDE2ONZA.mjs.map → intent-dispatcher-FF5HNHPQ.mjs.map} +0 -0
  282. /package/dist/lib/node-esm/{intent-resolver-LAGJ7LXM.mjs.map → intent-resolver-QWIKXIGI.mjs.map} +0 -0
  283. /package/dist/lib/node-esm/{store-EYSUVNCS.mjs.map → store-3NM6AWB4.mjs.map} +0 -0
@@ -2,7 +2,7 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { Schema as S } from 'effect';
5
+ import { Schema } from 'effect';
6
6
 
7
7
  import { Label } from './intent';
8
8
 
@@ -13,21 +13,21 @@ export namespace IntentAction {
13
13
  /**
14
14
  * Log an intent.
15
15
  */
16
- export class Track extends S.TaggedClass<Track>()(`${INTENT_ACTION}/track`, {
17
- input: S.Struct({
18
- intents: S.Array(S.String),
19
- error: S.optional(S.String),
16
+ export class Track extends Schema.TaggedClass<Track>()(`${INTENT_ACTION}/track`, {
17
+ input: Schema.Struct({
18
+ intents: Schema.Array(Schema.String),
19
+ error: Schema.optional(Schema.String),
20
20
  }),
21
- output: S.Void,
21
+ output: Schema.Void,
22
22
  }) {}
23
23
 
24
24
  /**
25
25
  * Fired after an intent is dispatched if the intent is undoable.
26
26
  */
27
- export class ShowUndo extends S.TaggedClass<ShowUndo>()(`${INTENT_ACTION}/show-undo`, {
28
- input: S.Struct({
27
+ export class ShowUndo extends Schema.TaggedClass<ShowUndo>()(`${INTENT_ACTION}/show-undo`, {
28
+ input: Schema.Struct({
29
29
  message: Label,
30
30
  }),
31
- output: S.Void,
31
+ output: Schema.Void,
32
32
  }) {}
33
33
  }
@@ -2,7 +2,7 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- import { Schema as S, Effect, Fiber, pipe } from 'effect';
5
+ import { Schema, Effect, Fiber, pipe } from 'effect';
6
6
  import { describe, expect, test } from 'vitest';
7
7
 
8
8
  import { chain, createIntent } from './intent';
@@ -224,12 +224,12 @@ describe('Intent dispatcher', () => {
224
224
  test.todo('follow up intents');
225
225
  });
226
226
 
227
- class ToString extends S.TaggedClass<ToString>()('ToString', {
228
- input: S.Struct({
229
- value: S.Number,
227
+ class ToString extends Schema.TaggedClass<ToString>()('ToString', {
228
+ input: Schema.Struct({
229
+ value: Schema.Number,
230
230
  }),
231
- output: S.Struct({
232
- string: S.String,
231
+ output: Schema.Struct({
232
+ string: Schema.String,
233
233
  }),
234
234
  }) {}
235
235
 
@@ -238,12 +238,12 @@ const toStringResolver = createResolver({
238
238
  resolve: async (data) => ({ data: { string: data.value.toString() } }),
239
239
  });
240
240
 
241
- class Compute extends S.TaggedClass<Compute>()('Compute', {
242
- input: S.Struct({
243
- value: S.Number,
241
+ class Compute extends Schema.TaggedClass<Compute>()('Compute', {
242
+ input: Schema.Struct({
243
+ value: Schema.Number,
244
244
  }),
245
- output: S.Struct({
246
- value: S.Number,
245
+ output: Schema.Struct({
246
+ value: Schema.Number,
247
247
  }),
248
248
  }) {}
249
249
 
@@ -262,13 +262,13 @@ const computeResolver = createResolver({
262
262
  },
263
263
  });
264
264
 
265
- class Concat extends S.TaggedClass<Concat>()('Concat', {
266
- input: S.Struct({
267
- string: S.String,
268
- plus: S.String,
265
+ class Concat extends Schema.TaggedClass<Concat>()('Concat', {
266
+ input: Schema.Struct({
267
+ string: Schema.String,
268
+ plus: Schema.String,
269
269
  }),
270
- output: S.Struct({
271
- string: S.String,
270
+ output: Schema.Struct({
271
+ string: Schema.String,
272
272
  }),
273
273
  }) {}
274
274
 
@@ -277,9 +277,9 @@ const concatResolver = createResolver({
277
277
  resolve: async (data) => ({ data: { string: data.string + data.plus } }),
278
278
  });
279
279
 
280
- class Add extends S.TaggedClass<Add>()('Add', {
281
- input: S.Tuple(S.Number, S.Number),
282
- output: S.Number,
280
+ class Add extends Schema.TaggedClass<Add>()('Add', {
281
+ input: Schema.Tuple(Schema.Number, Schema.Number),
282
+ output: Schema.Number,
283
283
  }) {}
284
284
 
285
285
  const addResolver = createResolver({
@@ -287,9 +287,9 @@ const addResolver = createResolver({
287
287
  resolve: async (data) => ({ data: data[0] + data[1] }),
288
288
  });
289
289
 
290
- class SideEffect extends S.TaggedClass<SideEffect>()('SideEffect', {
291
- input: S.Void,
292
- output: S.Void,
290
+ class SideEffect extends Schema.TaggedClass<SideEffect>()('SideEffect', {
291
+ input: Schema.Void,
292
+ output: Schema.Void,
293
293
  }) {}
294
294
 
295
295
  const sideEffectResolver = createResolver({
@@ -5,7 +5,7 @@
5
5
  import { Effect, Option, pipe, Ref } from 'effect';
6
6
  import { type Simplify } from 'effect/Types';
7
7
 
8
- import { create } from '@dxos/live-object';
8
+ import { live } from '@dxos/live-object';
9
9
  import { log } from '@dxos/log';
10
10
  import { byPosition, type MaybePromise, type Position, type GuardedType } from '@dxos/util';
11
11
 
@@ -91,9 +91,25 @@ export type IntentEffectDefinition<Input, Output> = (
91
91
  * Intent resolver to match intents to their effects.
92
92
  */
93
93
  export type IntentResolver<Tag extends string, Fields extends IntentParams, Data = IntentData<Fields>> = Readonly<{
94
+ /**
95
+ * The schema of the intent to be resolved.
96
+ */
94
97
  intent: IntentSchema<Tag, Fields>;
98
+
99
+ /**
100
+ * Hint to determine the order the resolvers are processed if multiple resolvers are defined for the same intent.
101
+ * Only one resolver will be used.
102
+ */
95
103
  position?: Position;
104
+
105
+ /**
106
+ * Optional filter to determine if the resolver should be used.
107
+ */
96
108
  filter?: (data: IntentData<Fields>) => data is Data;
109
+
110
+ /**
111
+ * The effect to be performed when the intent is resolved.
112
+ */
97
113
  resolve: IntentEffectDefinition<GuardedType<IntentResolver<Tag, Fields, Data>['filter']>, IntentResultData<Fields>>;
98
114
  }>;
99
115
 
@@ -287,7 +303,7 @@ const defaultEffect = () => Effect.fail(new Error('Intent runtime not ready'));
287
303
  const defaultPromise = () => Effect.runPromise(defaultEffect());
288
304
 
289
305
  export default (context: PluginsContext) => {
290
- const state = create<IntentContext>({
306
+ const state = live<IntentContext>({
291
307
  dispatch: defaultEffect,
292
308
  dispatchPromise: defaultPromise,
293
309
  undo: defaultEffect,
@@ -2,20 +2,24 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { Schema as S } from 'effect';
5
+ import { Schema } from 'effect';
6
6
 
7
7
  export type IntentParams = {
8
- readonly input: S.Schema.All;
9
- readonly output: S.Schema.All;
8
+ readonly input: Schema.Schema.All;
9
+ readonly output: Schema.Schema.All;
10
10
  };
11
11
 
12
12
  export type IntentData<Fields extends IntentParams> =
13
- S.Schema.Type<S.Struct<Fields>> extends { readonly input: any } ? S.Schema.Type<S.Struct<Fields>>['input'] : any;
13
+ Schema.Schema.Type<Schema.Struct<Fields>> extends { readonly input: any }
14
+ ? Schema.Schema.Type<Schema.Struct<Fields>>['input']
15
+ : any;
14
16
 
15
17
  export type IntentResultData<Fields extends IntentParams> =
16
- S.Schema.Type<S.Struct<Fields>> extends { readonly output: any } ? S.Schema.Type<S.Struct<Fields>>['output'] : any;
18
+ Schema.Schema.Type<Schema.Struct<Fields>> extends { readonly output: any }
19
+ ? Schema.Schema.Type<Schema.Struct<Fields>>['output']
20
+ : any;
17
21
 
18
- export type IntentSchema<Tag extends string, Fields extends IntentParams> = S.TaggedClass<any, Tag, Fields>;
22
+ export type IntentSchema<Tag extends string, Fields extends IntentParams> = Schema.TaggedClass<any, Tag, Fields>;
19
23
 
20
24
  /**
21
25
  * An intent is an abstract description of an operation to be performed.
@@ -80,7 +84,7 @@ export const createIntent = <Tag extends string, Fields extends IntentParams>(
80
84
  ): IntentChain<Tag, Tag, Fields, Fields> => {
81
85
  // The output of validateSync breaks proxy objects so this is just used for validation.
82
86
  // TODO(wittjosiah): Is there a better way to make theses types align?
83
- const _ = S.validateSync(schema.fields.input as S.Schema<any, any, unknown>)(data);
87
+ const _ = Schema.validateSync(schema.fields.input as Schema.Schema<any, any, unknown>)(data);
84
88
  const intent = {
85
89
  ...params,
86
90
  _schema: schema,
@@ -139,8 +143,13 @@ export const chain =
139
143
 
140
144
  // NOTE: Should maintain compatibility with `i18next` (and @dxos/react-ui).
141
145
  // TODO(wittjosiah): Making this immutable breaks type compatibility.
142
- export const Label = S.Union(
143
- S.String,
144
- S.mutable(S.Tuple(S.String, S.mutable(S.Struct({ ns: S.String, count: S.optional(S.Number) })))),
146
+ export const Label = Schema.Union(
147
+ Schema.String,
148
+ Schema.mutable(
149
+ Schema.Tuple(
150
+ Schema.String,
151
+ Schema.mutable(Schema.Struct({ ns: Schema.String, count: Schema.optional(Schema.Number) })),
152
+ ),
153
+ ),
145
154
  );
146
- export type Label = S.Schema.Type<typeof Label>;
155
+ export type Label = Schema.Schema.Type<typeof Label>;
@@ -2,7 +2,7 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { Schema as S } from 'effect';
5
+ import { Schema } from 'effect';
6
6
 
7
7
  export const SETTINGS_PLUGIN = 'dxos.org/plugin/settings';
8
8
  export const SETTINGS_ACTION = `${SETTINGS_PLUGIN}/action`;
@@ -12,18 +12,18 @@ export const SETTINGS_ID = '!dxos:settings';
12
12
  export const SETTINGS_KEY = 'settings';
13
13
 
14
14
  export namespace SettingsAction {
15
- export class Open extends S.TaggedClass<Open>()(`${SETTINGS_ACTION}/open`, {
16
- input: S.Struct({
17
- plugin: S.optional(S.String),
15
+ export class Open extends Schema.TaggedClass<Open>()(`${SETTINGS_ACTION}/open`, {
16
+ input: Schema.Struct({
17
+ plugin: Schema.optional(Schema.String),
18
18
  }),
19
- output: S.Void,
19
+ output: Schema.Void,
20
20
  }) {}
21
21
 
22
- export class OpenPluginRegistry extends S.TaggedClass<OpenPluginRegistry>()(
22
+ export class OpenPluginRegistry extends Schema.TaggedClass<OpenPluginRegistry>()(
23
23
  `${SETTINGS_ACTION}/open-plugin-registry`,
24
24
  {
25
- input: S.Void,
26
- output: S.Void,
25
+ input: Schema.Void,
26
+ output: Schema.Void,
27
27
  },
28
28
  ) {}
29
29
  }
@@ -0,0 +1 @@
1
+ TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
@@ -0,0 +1 @@
1
+ window.hierarchyData = "eJyrVirKzy8pVrKKjtVRKkpNy0lNLsnMzytWsqqurQUAmx4Kpg=="
@@ -0,0 +1,106 @@
1
+ :root {
2
+ --light-hl-0: #795E26;
3
+ --dark-hl-0: #DCDCAA;
4
+ --light-hl-1: #000000;
5
+ --dark-hl-1: #D4D4D4;
6
+ --light-hl-2: #A31515;
7
+ --dark-hl-2: #CE9178;
8
+ --light-hl-3: #AF00DB;
9
+ --dark-hl-3: #C586C0;
10
+ --light-hl-4: #001080;
11
+ --dark-hl-4: #9CDCFE;
12
+ --light-hl-5: #0000FF;
13
+ --dark-hl-5: #569CD6;
14
+ --light-hl-6: #267F99;
15
+ --dark-hl-6: #4EC9B0;
16
+ --light-hl-7: #008000;
17
+ --dark-hl-7: #6A9955;
18
+ --light-hl-8: #000000;
19
+ --dark-hl-8: #C8C8C8;
20
+ --light-hl-9: #0070C1;
21
+ --dark-hl-9: #4FC1FF;
22
+ --light-hl-10: #098658;
23
+ --dark-hl-10: #B5CEA8;
24
+ --light-hl-11: #CD3131;
25
+ --dark-hl-11: #F44747;
26
+ --light-code-background: #FFFFFF;
27
+ --dark-code-background: #1E1E1E;
28
+ }
29
+
30
+ @media (prefers-color-scheme: light) { :root {
31
+ --hl-0: var(--light-hl-0);
32
+ --hl-1: var(--light-hl-1);
33
+ --hl-2: var(--light-hl-2);
34
+ --hl-3: var(--light-hl-3);
35
+ --hl-4: var(--light-hl-4);
36
+ --hl-5: var(--light-hl-5);
37
+ --hl-6: var(--light-hl-6);
38
+ --hl-7: var(--light-hl-7);
39
+ --hl-8: var(--light-hl-8);
40
+ --hl-9: var(--light-hl-9);
41
+ --hl-10: var(--light-hl-10);
42
+ --hl-11: var(--light-hl-11);
43
+ --code-background: var(--light-code-background);
44
+ } }
45
+
46
+ @media (prefers-color-scheme: dark) { :root {
47
+ --hl-0: var(--dark-hl-0);
48
+ --hl-1: var(--dark-hl-1);
49
+ --hl-2: var(--dark-hl-2);
50
+ --hl-3: var(--dark-hl-3);
51
+ --hl-4: var(--dark-hl-4);
52
+ --hl-5: var(--dark-hl-5);
53
+ --hl-6: var(--dark-hl-6);
54
+ --hl-7: var(--dark-hl-7);
55
+ --hl-8: var(--dark-hl-8);
56
+ --hl-9: var(--dark-hl-9);
57
+ --hl-10: var(--dark-hl-10);
58
+ --hl-11: var(--dark-hl-11);
59
+ --code-background: var(--dark-code-background);
60
+ } }
61
+
62
+ :root[data-theme='light'] {
63
+ --hl-0: var(--light-hl-0);
64
+ --hl-1: var(--light-hl-1);
65
+ --hl-2: var(--light-hl-2);
66
+ --hl-3: var(--light-hl-3);
67
+ --hl-4: var(--light-hl-4);
68
+ --hl-5: var(--light-hl-5);
69
+ --hl-6: var(--light-hl-6);
70
+ --hl-7: var(--light-hl-7);
71
+ --hl-8: var(--light-hl-8);
72
+ --hl-9: var(--light-hl-9);
73
+ --hl-10: var(--light-hl-10);
74
+ --hl-11: var(--light-hl-11);
75
+ --code-background: var(--light-code-background);
76
+ }
77
+
78
+ :root[data-theme='dark'] {
79
+ --hl-0: var(--dark-hl-0);
80
+ --hl-1: var(--dark-hl-1);
81
+ --hl-2: var(--dark-hl-2);
82
+ --hl-3: var(--dark-hl-3);
83
+ --hl-4: var(--dark-hl-4);
84
+ --hl-5: var(--dark-hl-5);
85
+ --hl-6: var(--dark-hl-6);
86
+ --hl-7: var(--dark-hl-7);
87
+ --hl-8: var(--dark-hl-8);
88
+ --hl-9: var(--dark-hl-9);
89
+ --hl-10: var(--dark-hl-10);
90
+ --hl-11: var(--dark-hl-11);
91
+ --code-background: var(--dark-code-background);
92
+ }
93
+
94
+ .hl-0 { color: var(--hl-0); }
95
+ .hl-1 { color: var(--hl-1); }
96
+ .hl-2 { color: var(--hl-2); }
97
+ .hl-3 { color: var(--hl-3); }
98
+ .hl-4 { color: var(--hl-4); }
99
+ .hl-5 { color: var(--hl-5); }
100
+ .hl-6 { color: var(--hl-6); }
101
+ .hl-7 { color: var(--hl-7); }
102
+ .hl-8 { color: var(--hl-8); }
103
+ .hl-9 { color: var(--hl-9); }
104
+ .hl-10 { color: var(--hl-10); }
105
+ .hl-11 { color: var(--hl-11); }
106
+ pre, code { background: var(--code-background); }
@@ -0,0 +1,18 @@
1
+ (function() {
2
+ addIcons();
3
+ function addIcons() {
4
+ if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons);
5
+ const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg"));
6
+ svg.innerHTML = `<g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g><g id="icon-alertNote" class="tsd-no-select"><path fill="var(--color-alert-note)" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g><g id="icon-alertTip" class="tsd-no-select"><path fill="var(--color-alert-tip)" d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></g><g id="icon-alertImportant" class="tsd-no-select"><path fill="var(--color-alert-important)" d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertWarning" class="tsd-no-select"><path fill="var(--color-alert-warning)" d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertCaution" class="tsd-no-select"><path fill="var(--color-alert-caution)" d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g>`;
7
+ svg.style.display = "none";
8
+ if (location.protocol === "file:") updateUseElements();
9
+ }
10
+
11
+ function updateUseElements() {
12
+ document.querySelectorAll("use").forEach(el => {
13
+ if (el.getAttribute("href").includes("#icon-")) {
14
+ el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#"));
15
+ }
16
+ });
17
+ }
18
+ })()
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg"><g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dominant-baseline="central" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g><g id="icon-alertNote" class="tsd-no-select"><path fill="var(--color-alert-note)" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g><g id="icon-alertTip" class="tsd-no-select"><path fill="var(--color-alert-tip)" d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></g><g id="icon-alertImportant" class="tsd-no-select"><path fill="var(--color-alert-important)" d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertWarning" class="tsd-no-select"><path fill="var(--color-alert-warning)" d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertCaution" class="tsd-no-select"><path fill="var(--color-alert-caution)" d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g></svg>