@dxos/app-framework 0.8.3-main.7f5a14c → 0.8.3

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 (226) hide show
  1. package/dist/lib/browser/{app-graph-builder-VORGQG5O.mjs → app-graph-builder-BI4VVKSW.mjs} +2 -2
  2. package/dist/lib/browser/{chunk-3WI3RLH5.mjs → chunk-DIBVO47Z.mjs} +69 -52
  3. package/dist/lib/browser/{chunk-3WI3RLH5.mjs.map → chunk-DIBVO47Z.mjs.map} +1 -1
  4. package/dist/lib/browser/{chunk-UTTGEFUI.mjs → chunk-EHM4UI3V.mjs} +5 -4
  5. package/dist/lib/browser/chunk-EHM4UI3V.mjs.map +7 -0
  6. package/dist/lib/browser/index.mjs +5 -5
  7. package/dist/lib/browser/{intent-dispatcher-YJVPXNFZ.mjs → intent-dispatcher-XVBOMF2Y.mjs} +2 -2
  8. package/dist/lib/browser/{intent-resolver-QOQ4LG2S.mjs → intent-resolver-3QMBXLIY.mjs} +2 -2
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/{store-FBG3SOER.mjs → store-5H7XPJGA.mjs} +2 -2
  11. package/dist/lib/browser/testing/index.mjs +4 -4
  12. package/dist/lib/browser/testing/index.mjs.map +2 -2
  13. package/dist/lib/browser/worker.mjs +1 -1
  14. package/dist/lib/node/{app-graph-builder-KGUJCVI7.cjs → app-graph-builder-H7QVE4MJ.cjs} +12 -12
  15. package/dist/lib/node/{chunk-6P7PRTFR.cjs → chunk-VSOSVDQ3.cjs} +7 -6
  16. package/dist/lib/node/chunk-VSOSVDQ3.cjs.map +7 -0
  17. package/dist/lib/node/{chunk-TUTPSPGF.cjs → chunk-YGAY3H34.cjs} +87 -70
  18. package/dist/lib/node/{chunk-TUTPSPGF.cjs.map → chunk-YGAY3H34.cjs.map} +1 -1
  19. package/dist/lib/node/index.cjs +67 -67
  20. package/dist/lib/node/{intent-dispatcher-UZKRXFNO.cjs → intent-dispatcher-C3SVKJ62.cjs} +8 -8
  21. package/dist/lib/node/{intent-dispatcher-UZKRXFNO.cjs.map → intent-dispatcher-C3SVKJ62.cjs.map} +2 -2
  22. package/dist/lib/node/{intent-resolver-DE4IYACM.cjs → intent-resolver-IOJDYO34.cjs} +8 -8
  23. package/dist/lib/node/meta.json +1 -1
  24. package/dist/lib/node/{store-MECBBX2S.cjs → store-ESF5VR57.cjs} +8 -8
  25. package/dist/lib/node/testing/index.cjs +9 -9
  26. package/dist/lib/node/testing/index.cjs.map +2 -2
  27. package/dist/lib/node/worker.cjs +38 -38
  28. package/dist/lib/node/worker.cjs.map +1 -1
  29. package/dist/lib/node-esm/{app-graph-builder-KHVLAK6B.mjs → app-graph-builder-NROP6RPQ.mjs} +2 -2
  30. package/dist/lib/node-esm/{chunk-J2A6ETMM.mjs → chunk-2J6FVECI.mjs} +5 -4
  31. package/dist/lib/node-esm/chunk-2J6FVECI.mjs.map +7 -0
  32. package/dist/lib/node-esm/{chunk-CHHHHSIE.mjs → chunk-FHNZZWP4.mjs} +69 -52
  33. package/dist/lib/node-esm/{chunk-CHHHHSIE.mjs.map → chunk-FHNZZWP4.mjs.map} +1 -1
  34. package/dist/lib/node-esm/index.mjs +5 -5
  35. package/dist/lib/node-esm/{intent-dispatcher-SD7RBNV5.mjs → intent-dispatcher-7JPGLCQ5.mjs} +2 -2
  36. package/dist/lib/node-esm/{intent-resolver-5VKIEW7H.mjs → intent-resolver-VY4X5UHN.mjs} +2 -2
  37. package/dist/lib/node-esm/meta.json +1 -1
  38. package/dist/lib/node-esm/{store-OHMGCWRY.mjs → store-UKD2R2KA.mjs} +2 -2
  39. package/dist/lib/node-esm/testing/index.mjs +4 -4
  40. package/dist/lib/node-esm/testing/index.mjs.map +2 -2
  41. package/dist/lib/node-esm/worker.mjs +1 -1
  42. package/dist/types/src/common/layout.d.ts +10 -0
  43. package/dist/types/src/common/layout.d.ts.map +1 -1
  44. package/dist/types/src/plugin-intent/IntentPlugin.d.ts.map +1 -1
  45. package/dist/types/src/plugin-intent/actions.d.ts +1 -0
  46. package/dist/types/src/plugin-intent/actions.d.ts.map +1 -1
  47. package/dist/types/src/plugin-intent/intent.d.ts +1 -0
  48. package/dist/types/src/plugin-intent/intent.d.ts.map +1 -1
  49. package/package.json +22 -21
  50. package/project.json +2 -1
  51. package/src/plugin-intent/intent.ts +7 -1
  52. package/src/testing/withPluginManager.tsx +2 -2
  53. package/typedoc/classes/CollaborationActions.InsertContent.html +4 -4
  54. package/typedoc/classes/ErrorBoundary.html +6 -6
  55. package/typedoc/classes/IntentAction.ShowUndo.html +15 -15
  56. package/typedoc/classes/IntentAction.Track.html +5 -5
  57. package/typedoc/classes/LayoutAction.AddToast.html +13 -13
  58. package/typedoc/classes/LayoutAction.Close.html +4 -4
  59. package/typedoc/classes/LayoutAction.Expose.html +4 -4
  60. package/typedoc/classes/LayoutAction.Open.html +4 -4
  61. package/typedoc/classes/LayoutAction.RevertWorkspace.html +4 -4
  62. package/typedoc/classes/LayoutAction.ScrollIntoView.html +4 -4
  63. package/typedoc/classes/LayoutAction.Set.html +4 -4
  64. package/typedoc/classes/LayoutAction.SetLayoutMode.html +4 -4
  65. package/typedoc/classes/LayoutAction.SwitchWorkspace.html +4 -4
  66. package/typedoc/classes/LayoutAction.UpdateComplementary.html +4 -4
  67. package/typedoc/classes/LayoutAction.UpdateDialog.html +4 -4
  68. package/typedoc/classes/LayoutAction.UpdateLayout.html +5 -5
  69. package/typedoc/classes/LayoutAction.UpdatePopover.html +4 -4
  70. package/typedoc/classes/LayoutAction.UpdateSidebar.html +4 -4
  71. package/typedoc/classes/Plugin.html +3 -3
  72. package/typedoc/classes/PluginContext.html +10 -10
  73. package/typedoc/classes/PluginManager.html +16 -16
  74. package/typedoc/classes/PluginModule.html +8 -8
  75. package/typedoc/classes/SettingsAction.Open.html +4 -4
  76. package/typedoc/classes/SettingsAction.OpenPluginRegistry.html +4 -4
  77. package/typedoc/functions/Events.createStateEvent.html +2 -2
  78. package/typedoc/functions/IntentPlugin.html +1 -1
  79. package/typedoc/functions/SettingsPlugin.html +1 -1
  80. package/typedoc/functions/allOf.html +2 -2
  81. package/typedoc/functions/chain.html +2 -2
  82. package/typedoc/functions/contributes.html +2 -2
  83. package/typedoc/functions/createDispatcher.html +2 -2
  84. package/typedoc/functions/createIntent.html +2 -2
  85. package/typedoc/functions/createResolver.html +2 -2
  86. package/typedoc/functions/createSurface.html +2 -2
  87. package/typedoc/functions/defineCapability.html +2 -2
  88. package/typedoc/functions/defineEvent.html +2 -2
  89. package/typedoc/functions/defineModule.html +2 -2
  90. package/typedoc/functions/definePlugin.html +2 -2
  91. package/typedoc/functions/eventKey.html +2 -2
  92. package/typedoc/functions/getEvents.html +2 -2
  93. package/typedoc/functions/isAllOf.html +2 -2
  94. package/typedoc/functions/isOneOf.html +2 -2
  95. package/typedoc/functions/isSurfaceAvailable.html +2 -2
  96. package/typedoc/functions/lazy.html +2 -2
  97. package/typedoc/functions/oneOf.html +2 -2
  98. package/typedoc/functions/useApp.html +2 -2
  99. package/typedoc/functions/useAppGraph.html +1 -1
  100. package/typedoc/functions/useCapabilities.html +2 -2
  101. package/typedoc/functions/useCapability.html +2 -2
  102. package/typedoc/functions/useIntentDispatcher.html +1 -1
  103. package/typedoc/functions/useIntentResolver.html +1 -1
  104. package/typedoc/functions/useLayout.html +1 -1
  105. package/typedoc/functions/usePluginManager.html +2 -2
  106. package/typedoc/hierarchy.html +1 -1
  107. package/typedoc/index.html +2 -2
  108. package/typedoc/interfaces/LayoutAction.Toast.html +2 -2
  109. package/typedoc/modules/Capabilities.html +1 -1
  110. package/typedoc/modules/CollaborationActions.html +1 -1
  111. package/typedoc/modules/Events.html +1 -1
  112. package/typedoc/modules/IntentAction.html +1 -1
  113. package/typedoc/modules/LayoutAction.html +2 -2
  114. package/typedoc/modules/SettingsAction.html +1 -1
  115. package/typedoc/modules.html +1 -1
  116. package/typedoc/types/ActivationEvent.html +3 -3
  117. package/typedoc/types/ActivationEvents.html +2 -2
  118. package/typedoc/types/AnyCapability.html +1 -1
  119. package/typedoc/types/AnyIntent.html +1 -1
  120. package/typedoc/types/AnyIntentChain.html +1 -1
  121. package/typedoc/types/AnyIntentEffectResult.html +1 -1
  122. package/typedoc/types/AnyIntentResolver.html +1 -1
  123. package/typedoc/types/AnyIntentResult.html +1 -1
  124. package/typedoc/types/Capabilities.FileUploader.html +1 -1
  125. package/typedoc/types/Capabilities.IntentResolver.html +1 -1
  126. package/typedoc/types/Capabilities.Layout.html +1 -1
  127. package/typedoc/types/Capabilities.Metadata.html +1 -1
  128. package/typedoc/types/Capabilities.ReactContext.html +1 -1
  129. package/typedoc/types/Capabilities.ReactRoot.html +1 -1
  130. package/typedoc/types/Capabilities.ReactSurface.html +1 -1
  131. package/typedoc/types/Capabilities.Settings.html +2 -2
  132. package/typedoc/types/Capability.html +5 -5
  133. package/typedoc/types/CreateAppOptions.html +2 -2
  134. package/typedoc/types/FileInfo.html +1 -1
  135. package/typedoc/types/Intent.html +6 -6
  136. package/typedoc/types/IntentChain.html +3 -3
  137. package/typedoc/types/IntentContext.html +2 -2
  138. package/typedoc/types/IntentData.html +1 -1
  139. package/typedoc/types/IntentDispatcher.html +2 -2
  140. package/typedoc/types/IntentDispatcherResult.html +2 -2
  141. package/typedoc/types/IntentEffectDefinition.html +2 -2
  142. package/typedoc/types/IntentEffectResult.html +6 -6
  143. package/typedoc/types/IntentParams.html +2 -2
  144. package/typedoc/types/IntentResolver.html +2 -2
  145. package/typedoc/types/IntentResultData.html +1 -1
  146. package/typedoc/types/IntentSchema.html +1 -1
  147. package/typedoc/types/IntentUndo.html +2 -2
  148. package/typedoc/types/InterfaceDef.html +3 -3
  149. package/typedoc/types/Label.html +1 -1
  150. package/typedoc/types/NodeSerializer.html +3 -3
  151. package/typedoc/types/PluginManagerOptions.html +2 -2
  152. package/typedoc/types/PluginMeta.html +9 -9
  153. package/typedoc/types/PromiseIntentDispatcher.html +2 -2
  154. package/typedoc/types/PromiseIntentUndo.html +2 -2
  155. package/typedoc/types/Resource.html +1 -1
  156. package/typedoc/types/ResourceKey.html +1 -1
  157. package/typedoc/types/ResourceLanguage.html +1 -1
  158. package/typedoc/types/SerializedNode.html +2 -2
  159. package/typedoc/types/SurfaceComponent.html +2 -2
  160. package/typedoc/types/SurfaceDefinition.html +2 -2
  161. package/typedoc/types/SurfaceProps.html +2 -2
  162. package/typedoc/variables/Capabilities.AnchorSort.html +1 -1
  163. package/typedoc/variables/Capabilities.AppGraph.html +1 -1
  164. package/typedoc/variables/Capabilities.AppGraphBuilder.html +1 -1
  165. package/typedoc/variables/Capabilities.AppGraphSerializer.html +1 -1
  166. package/typedoc/variables/Capabilities.ArtifactDefinition.html +1 -1
  167. package/typedoc/variables/Capabilities.FileUploader.html +1 -1
  168. package/typedoc/variables/Capabilities.IntentDispatcher.html +1 -1
  169. package/typedoc/variables/Capabilities.IntentResolver.html +1 -1
  170. package/typedoc/variables/Capabilities.Layout.html +1 -1
  171. package/typedoc/variables/Capabilities.Metadata.html +1 -1
  172. package/typedoc/variables/Capabilities.Null.html +1 -1
  173. package/typedoc/variables/Capabilities.PluginManager.html +1 -1
  174. package/typedoc/variables/Capabilities.ReactContext.html +1 -1
  175. package/typedoc/variables/Capabilities.ReactRoot.html +1 -1
  176. package/typedoc/variables/Capabilities.ReactSurface.html +1 -1
  177. package/typedoc/variables/Capabilities.RxRegistry.html +1 -1
  178. package/typedoc/variables/Capabilities.Settings.html +1 -1
  179. package/typedoc/variables/Capabilities.SettingsStore.html +1 -1
  180. package/typedoc/variables/Capabilities.Tools.html +1 -1
  181. package/typedoc/variables/Capabilities.Translations.html +1 -1
  182. package/typedoc/variables/Events.AppGraphReady.html +2 -2
  183. package/typedoc/variables/Events.DispatcherReady.html +2 -2
  184. package/typedoc/variables/Events.LayoutReady.html +1 -1
  185. package/typedoc/variables/Events.SettingsReady.html +2 -2
  186. package/typedoc/variables/Events.SetupAppGraph.html +2 -2
  187. package/typedoc/variables/Events.SetupArtifactDefinition.html +2 -2
  188. package/typedoc/variables/Events.SetupIntentResolver.html +2 -2
  189. package/typedoc/variables/Events.SetupMetadata.html +2 -2
  190. package/typedoc/variables/Events.SetupReactSurface.html +2 -2
  191. package/typedoc/variables/Events.SetupSettings.html +2 -2
  192. package/typedoc/variables/Events.SetupTranslations.html +2 -2
  193. package/typedoc/variables/Events.Startup.html +2 -2
  194. package/typedoc/variables/FileInfoSchema.html +1 -1
  195. package/typedoc/variables/INTENT_ACTION.html +1 -1
  196. package/typedoc/variables/INTENT_PLUGIN.html +1 -1
  197. package/typedoc/variables/LAYOUT_ACTION.html +1 -1
  198. package/typedoc/variables/LAYOUT_PLUGIN.html +1 -1
  199. package/typedoc/variables/Label.html +1 -1
  200. package/typedoc/variables/LayoutAction.Toast.html +1 -1
  201. package/typedoc/variables/LayoutAction.UPDATE_LAYOUT.html +1 -1
  202. package/typedoc/variables/PluginManagerProvider.html +2 -2
  203. package/typedoc/variables/Resource.html +2 -2
  204. package/typedoc/variables/ResourceKey.html +1 -1
  205. package/typedoc/variables/ResourceLanguage.html +1 -1
  206. package/typedoc/variables/SETTINGS_ACTION.html +1 -1
  207. package/typedoc/variables/SETTINGS_ID.html +1 -1
  208. package/typedoc/variables/SETTINGS_KEY.html +1 -1
  209. package/typedoc/variables/SETTINGS_PLUGIN.html +1 -1
  210. package/typedoc/variables/Surface.html +2 -2
  211. package/typedoc/variables/defaultFileTypes.html +1 -1
  212. package/dist/lib/browser/chunk-UTTGEFUI.mjs.map +0 -7
  213. package/dist/lib/node/chunk-6P7PRTFR.cjs.map +0 -7
  214. package/dist/lib/node-esm/chunk-J2A6ETMM.mjs.map +0 -7
  215. /package/dist/lib/browser/{app-graph-builder-VORGQG5O.mjs.map → app-graph-builder-BI4VVKSW.mjs.map} +0 -0
  216. /package/dist/lib/browser/{intent-dispatcher-YJVPXNFZ.mjs.map → intent-dispatcher-XVBOMF2Y.mjs.map} +0 -0
  217. /package/dist/lib/browser/{intent-resolver-QOQ4LG2S.mjs.map → intent-resolver-3QMBXLIY.mjs.map} +0 -0
  218. /package/dist/lib/browser/{store-FBG3SOER.mjs.map → store-5H7XPJGA.mjs.map} +0 -0
  219. /package/dist/lib/node/{app-graph-builder-KGUJCVI7.cjs.map → app-graph-builder-H7QVE4MJ.cjs.map} +0 -0
  220. /package/dist/lib/node/{intent-resolver-DE4IYACM.cjs.map → intent-resolver-IOJDYO34.cjs.map} +0 -0
  221. /package/dist/lib/node/{store-MECBBX2S.cjs.map → store-ESF5VR57.cjs.map} +0 -0
  222. /package/dist/lib/node-esm/{app-graph-builder-KHVLAK6B.mjs.map → app-graph-builder-NROP6RPQ.mjs.map} +0 -0
  223. /package/dist/lib/node-esm/{intent-dispatcher-SD7RBNV5.mjs.map → intent-dispatcher-7JPGLCQ5.mjs.map} +0 -0
  224. /package/dist/lib/node-esm/{intent-resolver-5VKIEW7H.mjs.map → intent-resolver-VY4X5UHN.mjs.map} +0 -0
  225. /package/dist/lib/node-esm/{store-OHMGCWRY.mjs.map → store-UKD2R2KA.mjs.map} +0 -0
  226. /package/src/plugin-intent/{IntentPlugin.tsx → IntentPlugin.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  useApp
4
- } from "../chunk-CHHHHSIE.mjs";
4
+ } from "../chunk-FHNZZWP4.mjs";
5
5
  import {
6
6
  Capabilities,
7
7
  Events,
@@ -9,7 +9,7 @@ import {
9
9
  contributes,
10
10
  defineModule,
11
11
  definePlugin
12
- } from "../chunk-J2A6ETMM.mjs";
12
+ } from "../chunk-2J6FVECI.mjs";
13
13
 
14
14
  // packages/sdk/app-framework/src/testing/withPluginManager.tsx
15
15
  import React, { useEffect, useMemo } from "react";
@@ -21,7 +21,7 @@ var setupPluginManager = ({ capabilities, plugins = [], core = plugins.map(({ me
21
21
  const pluginManager = new PluginManager({
22
22
  pluginLoader: () => raise(new Error("Not implemented")),
23
23
  plugins: [
24
- StoryPlugin(),
24
+ storyPlugin(),
25
25
  ...plugins
26
26
  ],
27
27
  core: [
@@ -77,7 +77,7 @@ var withPluginManager = (options = {}) => {
77
77
  };
78
78
  };
79
79
  var STORY_PLUGIN = "dxos.org/app-framework/story";
80
- var StoryPlugin = () => definePlugin({
80
+ var storyPlugin = () => definePlugin({
81
81
  id: STORY_PLUGIN,
82
82
  name: "Story"
83
83
  }, [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/testing/withPluginManager.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { useEffect, useMemo } from 'react';\n\nimport { raise } from '@dxos/debug';\n\nimport { useApp, type CreateAppOptions } from '../App';\nimport { Capabilities, Events } from '../common';\nimport {\n contributes,\n defineModule,\n definePlugin,\n type ActivationEvent,\n type AnyCapability,\n PluginManager,\n type PluginContext,\n} from '../core';\n\n// TODO(burdon): Factor out (use consistently in plugin framework?)\nexport type Provider<C, R> = (context: C) => R;\nexport type ProviderOrValue<C, R> = Provider<C, R> | R;\nexport const getValue = <C, R>(providerOrValue: ProviderOrValue<C, R>, context: C): R => {\n return typeof providerOrValue === 'function' ? (providerOrValue as Provider<C, R>)(context) : providerOrValue;\n};\n\n/**\n * @internal\n */\nexport const setupPluginManager = ({\n capabilities,\n plugins = [],\n core = plugins.map(({ meta }) => meta.id),\n ...options\n}: CreateAppOptions & Pick<WithPluginManagerOptions, 'capabilities'> = {}) => {\n const pluginManager = new PluginManager({\n pluginLoader: () => raise(new Error('Not implemented')),\n plugins: [StoryPlugin(), ...plugins],\n core: [STORY_PLUGIN, ...core],\n ...options,\n });\n\n if (capabilities) {\n getValue(capabilities, pluginManager.context).forEach((capability) => {\n pluginManager.context.contributeCapability({\n interface: capability.interface,\n implementation: capability.implementation,\n module: 'story',\n });\n });\n }\n\n return pluginManager;\n};\n\nexport type WithPluginManagerOptions = CreateAppOptions & {\n capabilities?: ProviderOrValue<PluginContext, AnyCapability[]>;\n fireEvents?: (ActivationEvent | string)[];\n};\n\n/**\n * Wraps a story with a plugin manager.\n * NOTE: This builds up and tears down the plugin manager on every render.\n */\nexport const withPluginManager = (options: WithPluginManagerOptions = {}): Decorator => {\n return (Story, context) => {\n const pluginManager = useMemo(() => setupPluginManager(options), [options]);\n\n // Set-up root capability.\n useEffect(() => {\n const capability = contributes(Capabilities.ReactRoot, {\n id: context.id,\n root: () => <Story />,\n });\n\n pluginManager.context.contributeCapability({\n ...capability,\n module: 'dxos.org/app-framework/withPluginManager',\n });\n\n return () => {\n pluginManager.context.removeCapability(capability.interface, capability.implementation);\n };\n }, [pluginManager, context]);\n\n // Fire events.\n useEffect(() => {\n const timeout = setTimeout(async () => {\n await Promise.all(options.fireEvents?.map((event) => pluginManager.activate(event)) ?? []);\n });\n\n return () => clearTimeout(timeout);\n }, [pluginManager]);\n\n // Create app.\n const App = useApp({ pluginManager });\n\n return <App />;\n };\n};\n\n// No-op plugin to ensure there exists at least one plugin for the startup event.\n// This is necessary because `createApp` expects the startup event to complete before the app is ready.\nconst STORY_PLUGIN = 'dxos.org/app-framework/story';\nconst StoryPlugin = () =>\n definePlugin({ id: STORY_PLUGIN, name: 'Story' }, [\n defineModule({ id: STORY_PLUGIN, activatesOn: Events.Startup, activate: () => [] }),\n ]);\n"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Decorator } from '@storybook/react';\nimport React, { useEffect, useMemo } from 'react';\n\nimport { raise } from '@dxos/debug';\n\nimport { useApp, type CreateAppOptions } from '../App';\nimport { Capabilities, Events } from '../common';\nimport {\n contributes,\n defineModule,\n definePlugin,\n type ActivationEvent,\n type AnyCapability,\n PluginManager,\n type PluginContext,\n} from '../core';\n\n// TODO(burdon): Factor out (use consistently in plugin framework?)\nexport type Provider<C, R> = (context: C) => R;\nexport type ProviderOrValue<C, R> = Provider<C, R> | R;\nexport const getValue = <C, R>(providerOrValue: ProviderOrValue<C, R>, context: C): R => {\n return typeof providerOrValue === 'function' ? (providerOrValue as Provider<C, R>)(context) : providerOrValue;\n};\n\n/**\n * @internal\n */\nexport const setupPluginManager = ({\n capabilities,\n plugins = [],\n core = plugins.map(({ meta }) => meta.id),\n ...options\n}: CreateAppOptions & Pick<WithPluginManagerOptions, 'capabilities'> = {}) => {\n const pluginManager = new PluginManager({\n pluginLoader: () => raise(new Error('Not implemented')),\n plugins: [storyPlugin(), ...plugins],\n core: [STORY_PLUGIN, ...core],\n ...options,\n });\n\n if (capabilities) {\n getValue(capabilities, pluginManager.context).forEach((capability) => {\n pluginManager.context.contributeCapability({\n interface: capability.interface,\n implementation: capability.implementation,\n module: 'story',\n });\n });\n }\n\n return pluginManager;\n};\n\nexport type WithPluginManagerOptions = CreateAppOptions & {\n capabilities?: ProviderOrValue<PluginContext, AnyCapability[]>;\n fireEvents?: (ActivationEvent | string)[];\n};\n\n/**\n * Wraps a story with a plugin manager.\n * NOTE: This builds up and tears down the plugin manager on every render.\n */\nexport const withPluginManager = (options: WithPluginManagerOptions = {}): Decorator => {\n return (Story, context) => {\n const pluginManager = useMemo(() => setupPluginManager(options), [options]);\n\n // Set-up root capability.\n useEffect(() => {\n const capability = contributes(Capabilities.ReactRoot, {\n id: context.id,\n root: () => <Story />,\n });\n\n pluginManager.context.contributeCapability({\n ...capability,\n module: 'dxos.org/app-framework/withPluginManager',\n });\n\n return () => {\n pluginManager.context.removeCapability(capability.interface, capability.implementation);\n };\n }, [pluginManager, context]);\n\n // Fire events.\n useEffect(() => {\n const timeout = setTimeout(async () => {\n await Promise.all(options.fireEvents?.map((event) => pluginManager.activate(event)) ?? []);\n });\n\n return () => clearTimeout(timeout);\n }, [pluginManager]);\n\n // Create app.\n const App = useApp({ pluginManager });\n\n return <App />;\n };\n};\n\n// No-op plugin to ensure there exists at least one plugin for the startup event.\n// This is necessary because `createApp` expects the startup event to complete before the app is ready.\nconst STORY_PLUGIN = 'dxos.org/app-framework/story';\nconst storyPlugin = () =>\n definePlugin({ id: STORY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,QAAQ8B,iBAAiBb,WAAWE,WAAWF,WAAWG,cAAc;MACxF;IACF,GAAG;MAACX;MAAeT;KAAQ;AAG3ByB,cAAU,MAAA;AACR,YAAMM,UAAUC,WAAW,YAAA;AACzB,cAAMC,QAAQC,IAAI1B,QAAQ2B,YAAY9B,IAAI,CAAC+B,UAAU3B,cAAc4B,SAASD,KAAAA,CAAAA,KAAW,CAAA,CAAE;MAC3F,CAAA;AAEA,aAAO,MAAME,aAAaP,OAAAA;IAC5B,GAAG;MAACtB;KAAc;AAGlB,UAAM8B,MAAMC,OAAO;MAAE/B;IAAc,CAAA;AAEnC,WAAO,sBAAA,cAAC8B,KAAAA,IAAAA;EACV;AACF;AAIA,IAAMxB,eAAe;AACrB,IAAMD,cAAc,MAClB2B,aAAa;EAAElC,IAAIQ;EAAc2B,MAAM;AAAQ,GAAG;EAChDC,aAAa;IAAEpC,IAAIQ;IAAc6B,aAAaC,OAAOC;IAAST,UAAU,MAAM,CAAA;EAAG,CAAA;CAClF;",
6
- "names": ["React", "useEffect", "useMemo", "raise", "getValue", "providerOrValue", "context", "setupPluginManager", "capabilities", "plugins", "core", "map", "meta", "id", "options", "pluginManager", "PluginManager", "pluginLoader", "raise", "Error", "StoryPlugin", "STORY_PLUGIN", "forEach", "capability", "contributeCapability", "interface", "implementation", "module", "withPluginManager", "Story", "useMemo", "useEffect", "contributes", "Capabilities", "ReactRoot", "root", "removeCapability", "timeout", "setTimeout", "Promise", "all", "fireEvents", "event", "activate", "clearTimeout", "App", "useApp", "definePlugin", "name", "defineModule", "activatesOn", "Events", "Startup"]
6
+ "names": ["React", "useEffect", "useMemo", "raise", "getValue", "providerOrValue", "context", "setupPluginManager", "capabilities", "plugins", "core", "map", "meta", "id", "options", "pluginManager", "PluginManager", "pluginLoader", "raise", "Error", "storyPlugin", "STORY_PLUGIN", "forEach", "capability", "contributeCapability", "interface", "implementation", "module", "withPluginManager", "Story", "useMemo", "useEffect", "contributes", "Capabilities", "ReactRoot", "root", "removeCapability", "timeout", "setTimeout", "Promise", "all", "fireEvents", "event", "activate", "clearTimeout", "App", "useApp", "definePlugin", "name", "defineModule", "activatesOn", "Events", "Startup"]
7
7
  }
@@ -37,7 +37,7 @@ import {
37
37
  isOneOf,
38
38
  lazy,
39
39
  oneOf
40
- } from "./chunk-J2A6ETMM.mjs";
40
+ } from "./chunk-2J6FVECI.mjs";
41
41
  export {
42
42
  Capabilities,
43
43
  CollaborationActions,
@@ -111,24 +111,29 @@ export declare namespace LayoutAction {
111
111
  title: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
112
112
  ns: typeof Schema.String;
113
113
  count: Schema.optional<typeof Schema.Number>;
114
+ defaultValue: Schema.optional<typeof Schema.String>;
114
115
  }>>>>]>>;
115
116
  description: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
116
117
  ns: typeof Schema.String;
117
118
  count: Schema.optional<typeof Schema.Number>;
119
+ defaultValue: Schema.optional<typeof Schema.String>;
118
120
  }>>>>]>>;
119
121
  icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
120
122
  duration: Schema.optional<Schema.SchemaClass<number, number, never>>;
121
123
  closeLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
122
124
  ns: typeof Schema.String;
123
125
  count: Schema.optional<typeof Schema.Number>;
126
+ defaultValue: Schema.optional<typeof Schema.String>;
124
127
  }>>>>]>>;
125
128
  actionLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
126
129
  ns: typeof Schema.String;
127
130
  count: Schema.optional<typeof Schema.Number>;
131
+ defaultValue: Schema.optional<typeof Schema.String>;
128
132
  }>>>>]>>;
129
133
  actionAlt: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
130
134
  ns: typeof Schema.String;
131
135
  count: Schema.optional<typeof Schema.Number>;
136
+ defaultValue: Schema.optional<typeof Schema.String>;
132
137
  }>>>>]>>;
133
138
  onAction: Schema.optional<Schema.SchemaClass<any, any, never>>;
134
139
  }>;
@@ -145,24 +150,29 @@ export declare namespace LayoutAction {
145
150
  title: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
146
151
  ns: typeof Schema.String;
147
152
  count: Schema.optional<typeof Schema.Number>;
153
+ defaultValue: Schema.optional<typeof Schema.String>;
148
154
  }>>>>]>>;
149
155
  description: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
150
156
  ns: typeof Schema.String;
151
157
  count: Schema.optional<typeof Schema.Number>;
158
+ defaultValue: Schema.optional<typeof Schema.String>;
152
159
  }>>>>]>>;
153
160
  icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
154
161
  duration: Schema.optional<Schema.SchemaClass<number, number, never>>;
155
162
  closeLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
156
163
  ns: typeof Schema.String;
157
164
  count: Schema.optional<typeof Schema.Number>;
165
+ defaultValue: Schema.optional<typeof Schema.String>;
158
166
  }>>>>]>>;
159
167
  actionLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
160
168
  ns: typeof Schema.String;
161
169
  count: Schema.optional<typeof Schema.Number>;
170
+ defaultValue: Schema.optional<typeof Schema.String>;
162
171
  }>>>>]>>;
163
172
  actionAlt: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
164
173
  ns: typeof Schema.String;
165
174
  count: Schema.optional<typeof Schema.Number>;
175
+ defaultValue: Schema.optional<typeof Schema.String>;
166
176
  }>>>>]>>;
167
177
  onAction: Schema.optional<Schema.SchemaClass<any, any, never>>;
168
178
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/common/layout.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,aAAa,2BAA2B,CAAC;AACtD,eAAO,MAAM,aAAa,kCAA4B,CAAC;AAEvD;;GAEG;AACH,yBAAiB,YAAY,CAAC;IAC5B,MAAM,CAAC,MAAM,aAAa,gDAAmC,CAAC;;;;;;;;;;;IAE9D;;OAEG;IACH,MAAM,OAAO,YAAa,SAAQ,iBAWhC;KAAG;;;;;;;;;;;;;;;IAYL,MAAM,OAAO,aAAc,SAAQ,kBAYjC;KAAG;;;;;;;;;;;;;IAEL,MAAM,OAAO,aAAc,SAAQ,kBAejC;KAAG;;;;;;;;;;;;;IAEL,MAAM,OAAO,mBAAoB,SAAQ,wBAevC;KAAG;;;;;;;;;;;;;;;;;;IAEL,MAAM,OAAO,YAAa,SAAQ,iBA4BhC;KAAG;;;;;;;;;;;;;;;;;;;;;IAEL,MAAM,OAAO,aAAc,SAAQ,kBAoCjC;KAAG;IAEL,MAAM,CAAC,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;MAYhB,CAAC;IAEH,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,EAAE,UAAU,CAAC;QAC/E,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;KACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAED,MAAM,OAAO,QAAS,SAAQ,aAM5B;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAMnC;KAAG;;;;;;;;;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/E,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;KACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAED,MAAM,OAAO,QAAS,SAAQ,aAM5B;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAMnC;KAAG;;;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAQnC;KAAG;;;;;;;;;;;;;;;;;;;IAEL,MAAM,OAAO,IAAK,SAAQ,SA4BxB;KAAG;;;;;;;;;;;;;IAEL,MAAM,OAAO,GAAI,SAAQ,QAWvB;KAAG;;;;;;;;;;;;;IAEL,MAAM,OAAO,KAAM,SAAQ,UASzB;KAAG;;;;;;;;;;;IAEL,MAAM,OAAO,cAAe,SAAQ,mBAWlC;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,MAAO,SAAQ,WAM1B;KAAG;;CACN"}
@@ -1 +1 @@
1
- {"version":3,"file":"IntentPlugin.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/IntentPlugin.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY,2BAWrB,CAAC"}
1
+ {"version":3,"file":"IntentPlugin.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/IntentPlugin.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY,2BAWrB,CAAC"}
@@ -23,6 +23,7 @@ export declare namespace IntentAction {
23
23
  message: Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
24
24
  ns: typeof Schema.String;
25
25
  count: Schema.optional<typeof Schema.Number>;
26
+ defaultValue: Schema.optional<typeof Schema.String>;
26
27
  }>>>>]>;
27
28
  }>;
28
29
  output: typeof Schema.Void;
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,aAAa,2BAA2B,CAAC;AACtD,eAAO,MAAM,aAAa,kCAA4B,CAAC;AAEvD,yBAAiB,YAAY,CAAC;;;;;;;;;;IAC5B;;OAEG;IACH,MAAM,OAAO,KAAM,SAAQ,UAMzB;KAAG;;;;;;;;;;;;IAEL;;OAEG;IACH,MAAM,OAAO,QAAS,SAAQ,aAK5B;KAAG;;CACN"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,aAAa,2BAA2B,CAAC;AACtD,eAAO,MAAM,aAAa,kCAA4B,CAAC;AAEvD,yBAAiB,YAAY,CAAC;;;;;;;;;;IAC5B;;OAEG;IACH,MAAM,OAAO,KAAM,SAAQ,UAMzB;KAAG;;;;;;;;;;;;;IAEL;;OAEG;IACH,MAAM,OAAO,QAAS,SAAQ,aAK5B;KAAG;;CACN"}
@@ -57,6 +57,7 @@ export declare const chain: <FirstTag extends string, NextTag extends string, Fi
57
57
  export declare const Label: Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
58
58
  ns: typeof Schema.String;
59
59
  count: Schema.optional<typeof Schema.Number>;
60
+ defaultValue: Schema.optional<typeof Schema.String>;
60
61
  }>>>>]>;
61
62
  export type Label = Schema.Schema.Type<typeof Label>;
62
63
  //# sourceMappingURL=intent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../../../src/plugin-intent/intent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CA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AAM,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,MAAM,gBAAgB,CAAC,UAAU,CAAC,CAAM,EAC3E,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,CAAM,MAGpC,QAAQ,WAAW,CAAC,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,CAAC,KAC1D,WAAW,CAAC,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,CAexD,CAAC;AAQJ,eAAO,MAAM,KAAK;;;;OAcjB,CAAC;AACF,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/app-framework",
3
- "version": "0.8.3-main.7f5a14c",
3
+ "version": "0.8.3",
4
4
  "description": "A framework for building applications from composible plugins.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -37,22 +37,23 @@
37
37
  }
38
38
  },
39
39
  "dependencies": {
40
+ "@preact-signals/safe-react": "^0.9.0",
40
41
  "@preact/signals-core": "^1.9.0",
41
- "@dxos/app-graph": "0.8.3-main.7f5a14c",
42
- "@dxos/ai": "0.8.3-main.7f5a14c",
43
- "@dxos/artifact": "0.8.3-main.7f5a14c",
44
- "@dxos/debug": "0.8.3-main.7f5a14c",
45
- "@dxos/client-protocol": "0.8.3-main.7f5a14c",
46
- "@dxos/echo-schema": "0.8.3-main.7f5a14c",
47
- "@dxos/keys": "0.8.3-main.7f5a14c",
48
- "@dxos/async": "0.8.3-main.7f5a14c",
49
- "@dxos/live-object": "0.8.3-main.7f5a14c",
50
- "@dxos/local-storage": "0.8.3-main.7f5a14c",
51
- "@dxos/invariant": "0.8.3-main.7f5a14c",
52
- "@dxos/react-hooks": "0.8.3-main.7f5a14c",
53
- "@dxos/schema": "0.8.3-main.7f5a14c",
54
- "@dxos/log": "0.8.3-main.7f5a14c",
55
- "@dxos/util": "0.8.3-main.7f5a14c"
42
+ "@dxos/app-graph": "0.8.3",
43
+ "@dxos/ai": "0.8.3",
44
+ "@dxos/artifact": "0.8.3",
45
+ "@dxos/client-protocol": "0.8.3",
46
+ "@dxos/debug": "0.8.3",
47
+ "@dxos/async": "0.8.3",
48
+ "@dxos/invariant": "0.8.3",
49
+ "@dxos/echo-schema": "0.8.3",
50
+ "@dxos/keys": "0.8.3",
51
+ "@dxos/live-object": "0.8.3",
52
+ "@dxos/log": "0.8.3",
53
+ "@dxos/local-storage": "0.8.3",
54
+ "@dxos/react-hooks": "0.8.3",
55
+ "@dxos/util": "0.8.3",
56
+ "@dxos/schema": "0.8.3"
56
57
  },
57
58
  "devDependencies": {
58
59
  "@effect-rx/rx-react": "^0.34.1",
@@ -62,11 +63,11 @@
62
63
  "effect": "3.14.21",
63
64
  "react": "~18.2.0",
64
65
  "typedoc": "0.28.1",
65
- "@dxos/random": "0.8.3-main.7f5a14c",
66
- "@dxos/react-ui": "0.8.3-main.7f5a14c",
67
- "@dxos/react-ui-syntax-highlighter": "0.8.3-main.7f5a14c",
68
- "@dxos/storybook-utils": "0.8.3-main.7f5a14c",
69
- "@dxos/echo-signals": "0.8.3-main.7f5a14c"
66
+ "@dxos/echo-signals": "0.8.3",
67
+ "@dxos/react-ui": "0.8.3",
68
+ "@dxos/random": "0.8.3",
69
+ "@dxos/react-ui-syntax-highlighter": "0.8.3",
70
+ "@dxos/storybook-utils": "0.8.3"
70
71
  },
71
72
  "peerDependencies": {
72
73
  "@effect-rx/rx-react": "^0.34.1",
package/project.json CHANGED
@@ -14,7 +14,8 @@
14
14
  "{projectRoot}/src/index.ts",
15
15
  "{projectRoot}/src/testing/index.ts",
16
16
  "{projectRoot}/src/worker.ts"
17
- ]
17
+ ],
18
+ "preactSignalTracking": true
18
19
  }
19
20
  },
20
21
  "lint": {},
@@ -141,7 +141,13 @@ export const Label = Schema.Union(
141
141
  Schema.mutable(
142
142
  Schema.Tuple(
143
143
  Schema.String,
144
- Schema.mutable(Schema.Struct({ ns: Schema.String, count: Schema.optional(Schema.Number) })),
144
+ Schema.mutable(
145
+ Schema.Struct({
146
+ ns: Schema.String,
147
+ count: Schema.optional(Schema.Number),
148
+ defaultValue: Schema.optional(Schema.String),
149
+ }),
150
+ ),
145
151
  ),
146
152
  ),
147
153
  );
@@ -37,7 +37,7 @@ export const setupPluginManager = ({
37
37
  }: CreateAppOptions & Pick<WithPluginManagerOptions, 'capabilities'> = {}) => {
38
38
  const pluginManager = new PluginManager({
39
39
  pluginLoader: () => raise(new Error('Not implemented')),
40
- plugins: [StoryPlugin(), ...plugins],
40
+ plugins: [storyPlugin(), ...plugins],
41
41
  core: [STORY_PLUGIN, ...core],
42
42
  ...options,
43
43
  });
@@ -104,7 +104,7 @@ export const withPluginManager = (options: WithPluginManagerOptions = {}): Decor
104
104
  // No-op plugin to ensure there exists at least one plugin for the startup event.
105
105
  // This is necessary because `createApp` expects the startup event to complete before the app is ready.
106
106
  const STORY_PLUGIN = 'dxos.org/app-framework/story';
107
- const StoryPlugin = () =>
107
+ const storyPlugin = () =>
108
108
  definePlugin({ id: STORY_PLUGIN, name: 'Story' }, [
109
109
  defineModule({ id: STORY_PLUGIN, activatesOn: Events.Startup, activate: () => [] }),
110
110
  ]);
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>InsertContent | @dxos/app-framework - v0.8.3-main.7f5a14c</title><meta name="description" content="Documentation for @dxos/app-framework"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@dxos/app-framework - v0.8.3-main.7f5a14c</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/CollaborationActions.html">CollaborationActions</a></li><li><a href="" aria-current="page">InsertContent</a></li></ul><h1>Class InsertContent</h1></div><section class="tsd-panel tsd-hierarchy" data-refl="108"><h4>Hierarchy</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-signature-symbol">{</span><br/>    <span class="tsd-kind-property">input</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/>        <span class="tsd-kind-property">at</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>        <span class="tsd-kind-property">label</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>        <span class="tsd-kind-property">object</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Ref</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Expando</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br/>        <span class="tsd-kind-property">target</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Expando</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&amp;</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">output</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span> <span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&amp;</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">_tag</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;assistant/intent-content&quot;</span> <span class="tsd-signature-symbol">}</span><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">InsertContent</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dxos/dxos/blob/7f5a14c7b5ec34f68d0d019987ded79f1bf7a61f/packages/sdk/app-framework/src/common/collaboration.ts#L10">packages/sdk/app-framework/src/common/collaboration.ts:10</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg><h5 class="tsd-index-heading uppercase">Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="#constructor" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>InsertContent | @dxos/app-framework - v0.8.3</title><meta name="description" content="Documentation for @dxos/app-framework"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">@dxos/app-framework - v0.8.3</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/CollaborationActions.html">CollaborationActions</a></li><li><a href="" aria-current="page">InsertContent</a></li></ul><h1>Class InsertContent</h1></div><section class="tsd-panel tsd-hierarchy" data-refl="108"><h4>Hierarchy</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-signature-symbol">{</span><br/>    <span class="tsd-kind-property">input</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br/>        <span class="tsd-kind-property">at</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>        <span class="tsd-kind-property">label</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/>        <span class="tsd-kind-property">object</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Ref</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Expando</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br/>        <span class="tsd-kind-property">target</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Expando</span><span class="tsd-signature-symbol">;</span><br/>    <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&amp;</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">output</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span> <span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">&amp;</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">_tag</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;assistant/intent-content&quot;</span> <span class="tsd-signature-symbol">}</span><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">InsertContent</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dxos/dxos/blob/1e36db483fbad629c5844f213bf0d0d5a0490601/packages/sdk/app-framework/src/common/collaboration.ts#L10">packages/sdk/app-framework/src/common/collaboration.ts:10</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg><h5 class="tsd-index-heading uppercase">Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="#constructor" class="tsd-index-link tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
2
2
  </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="#_tag" class="tsd-index-link tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_tag</span></a>
3
3
  <a href="#input" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>input</span></a>
4
4
  <a href="#output" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>output</span></a>
@@ -46,7 +46,7 @@
46
46
  description: &#39;Enables plugins to inject content blocks or references into a related entity.&#39;,
47
47
  }),
48
48
  output: Schema.Void,
49
- }).input</p><ul><li>Defined in <a href="https://github.com/dxos/dxos/blob/7f5a14c7b5ec34f68d0d019987ded79f1bf7a61f/packages/sdk/app-framework/src/common/collaboration.ts#L11">packages/sdk/app-framework/src/common/collaboration.ts:11</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="output"><code class="tsd-tag">Readonly</code><span>output</span><a href="#output" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">output</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol"> = Schema.Void</span></div><aside class="tsd-sources"><p>Inherited from Schema.TaggedClass&lt;InsertContent&gt;()(&#39;assistant/intent-content&#39;, {
49
+ }).input</p><ul><li>Defined in <a href="https://github.com/dxos/dxos/blob/1e36db483fbad629c5844f213bf0d0d5a0490601/packages/sdk/app-framework/src/common/collaboration.ts#L11">packages/sdk/app-framework/src/common/collaboration.ts:11</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="output"><code class="tsd-tag">Readonly</code><span>output</span><a href="#output" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">output</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol"> = Schema.Void</span></div><aside class="tsd-sources"><p>Inherited from Schema.TaggedClass&lt;InsertContent&gt;()(&#39;assistant/intent-content&#39;, {
50
50
  input: Schema.Struct({
51
51
  target: Expando,
52
52
  object: Ref(Expando),
@@ -56,7 +56,7 @@
56
56
  description: &#39;Enables plugins to inject content blocks or references into a related entity.&#39;,
57
57
  }),
58
58
  output: Schema.Void,
59
- }).output</p><ul><li>Defined in <a href="https://github.com/dxos/dxos/blob/7f5a14c7b5ec34f68d0d019987ded79f1bf7a61f/packages/sdk/app-framework/src/common/collaboration.ts#L19">packages/sdk/app-framework/src/common/collaboration.ts:19</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><h3 class="tsd-anchor-link" id="_tag-1"><code class="tsd-tag">Static</code> <code class="tsd-tag">Readonly</code><span>_tag</span><a href="#_tag-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_tag</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;assistant/intent-content&quot;</span></div><aside class="tsd-sources"><p>Inherited from Schema.TaggedClass&lt;InsertContent&gt;()(&#39;assistant/intent-content&#39;, {
59
+ }).output</p><ul><li>Defined in <a href="https://github.com/dxos/dxos/blob/1e36db483fbad629c5844f213bf0d0d5a0490601/packages/sdk/app-framework/src/common/collaboration.ts#L19">packages/sdk/app-framework/src/common/collaboration.ts:19</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited tsd-is-external"><h3 class="tsd-anchor-link" id="_tag-1"><code class="tsd-tag">Static</code> <code class="tsd-tag">Readonly</code><span>_tag</span><a href="#_tag-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_tag</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;assistant/intent-content&quot;</span></div><aside class="tsd-sources"><p>Inherited from Schema.TaggedClass&lt;InsertContent&gt;()(&#39;assistant/intent-content&#39;, {
60
60
  input: Schema.Struct({
61
61
  target: Expando,
62
62
  object: Ref(Expando),
@@ -418,4 +418,4 @@ any duplicates.</p>
418
418
  description: &#39;Enables plugins to inject content blocks or references into a related entity.&#39;,
419
419
  }),
420
420
  output: Schema.Void,
421
- }).transformOrFailFrom</p><ul><li>Defined in node_modules/.pnpm/effect@3.14.21/node_modules/effect/dist/dts/Schema.d.ts:4359</li></ul></aside></div></li></ul></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><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></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><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></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><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></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Constructors</summary><div><a href="#constructor" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary><div><a href="#_tag" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_tag</span></a><a href="#input" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>input</span></a><a href="#output" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>output</span></a><a href="#_tag-1" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_tag</span></a><a href="#typeid" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>[<wbr/>Type<wbr/>Id]</span></a><a href="#ast" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ast</span></a><a href="#context" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Context</span></a><a href="#encoded" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Encoded</span></a><a href="#fields" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>fields</span></a><a href="#identifier" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>identifier</span></a><a href="#type" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Type</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Methods</summary><div><a href="#annotations" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>annotations</span></a><a href="#extend" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>extend</span></a><a href="#make" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>make</span></a><a href="#pipe" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>pipe</span></a><a href="#transformorfail" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>transform<wbr/>Or<wbr/>Fail</span></a><a href="#transformorfailfrom" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>transform<wbr/>Or<wbr/>Fail<wbr/>From</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@dxos/app-framework - v0.8.3-main.7f5a14c</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
421
+ }).transformOrFailFrom</p><ul><li>Defined in node_modules/.pnpm/effect@3.14.21/node_modules/effect/dist/dts/Schema.d.ts:4359</li></ul></aside></div></li></ul></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><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></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><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></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><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></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Constructors</summary><div><a href="#constructor" class="tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary><div><a href="#_tag" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_tag</span></a><a href="#input" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>input</span></a><a href="#output" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>output</span></a><a href="#_tag-1" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_tag</span></a><a href="#typeid" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>[<wbr/>Type<wbr/>Id]</span></a><a href="#ast" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ast</span></a><a href="#context" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Context</span></a><a href="#encoded" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Encoded</span></a><a href="#fields" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>fields</span></a><a href="#identifier" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>identifier</span></a><a href="#type" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Type</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Methods</summary><div><a href="#annotations" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>annotations</span></a><a href="#extend" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>extend</span></a><a href="#make" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>make</span></a><a href="#pipe" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>pipe</span></a><a href="#transformorfail" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>transform<wbr/>Or<wbr/>Fail</span></a><a href="#transformorfailfrom" class="tsd-is-inherited tsd-is-external"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>transform<wbr/>Or<wbr/>Fail<wbr/>From</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@dxos/app-framework - v0.8.3</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>