@dxos/plugin-registry 0.8.4-main.84f28bd → 0.8.4-main.c1de068

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-registry",
3
- "version": "0.8.4-main.84f28bd",
3
+ "version": "0.8.4-main.c1de068",
4
4
  "description": "Braneframe plugin gallery",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -24,41 +24,40 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@preact-signals/safe-react": "^0.9.0",
27
- "@dxos/app-framework": "0.8.4-main.84f28bd",
28
- "@dxos/invariant": "0.8.4-main.84f28bd",
29
- "@dxos/echo": "0.8.4-main.84f28bd",
30
- "@dxos/plugin-graph": "0.8.4-main.84f28bd",
31
- "@dxos/live-object": "0.8.4-main.84f28bd",
32
- "@dxos/plugin-observability": "0.8.4-main.84f28bd",
33
- "@dxos/echo-schema": "0.8.4-main.84f28bd",
34
- "@dxos/react-ui-form": "0.8.4-main.84f28bd",
35
- "@dxos/react-ui-stack": "0.8.4-main.84f28bd",
36
- "@dxos/util": "0.8.4-main.84f28bd"
27
+ "@dxos/app-framework": "0.8.4-main.c1de068",
28
+ "@dxos/echo": "0.8.4-main.c1de068",
29
+ "@dxos/invariant": "0.8.4-main.c1de068",
30
+ "@dxos/echo-schema": "0.8.4-main.c1de068",
31
+ "@dxos/live-object": "0.8.4-main.c1de068",
32
+ "@dxos/plugin-observability": "0.8.4-main.c1de068",
33
+ "@dxos/react-ui-form": "0.8.4-main.c1de068",
34
+ "@dxos/plugin-graph": "0.8.4-main.c1de068",
35
+ "@dxos/util": "0.8.4-main.c1de068",
36
+ "@dxos/react-ui-stack": "0.8.4-main.c1de068"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@effect-rx/rx-react": "0.38.0",
40
- "@effect/platform": "0.88.0",
40
+ "@effect/platform": "0.89.0",
41
41
  "@phosphor-icons/react": "^2.1.5",
42
42
  "@types/react": "~18.2.0",
43
43
  "@types/react-dom": "~18.2.0",
44
- "effect": "3.16.13",
44
+ "effect": "3.17.0",
45
45
  "react": "~18.2.0",
46
46
  "react-dom": "~18.2.0",
47
47
  "vite": "5.4.7",
48
- "@dxos/random": "0.8.4-main.84f28bd",
49
- "@dxos/react-ui": "0.8.4-main.84f28bd",
50
- "@dxos/react-ui-theme": "0.8.4-main.84f28bd",
51
- "@dxos/storybook-utils": "0.8.4-main.84f28bd"
48
+ "@dxos/react-ui": "0.8.4-main.c1de068",
49
+ "@dxos/react-ui-theme": "0.8.4-main.c1de068",
50
+ "@dxos/storybook-utils": "0.8.4-main.c1de068",
51
+ "@dxos/random": "0.8.4-main.c1de068"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@effect-rx/rx-react": "^0.34.1",
55
55
  "@effect/platform": "^0.80.12",
56
- "@phosphor-icons/react": "^2.1.5",
57
56
  "effect": "^3.13.3",
58
57
  "react": "~18.2.0",
59
58
  "react-dom": "~18.2.0",
60
- "@dxos/react-ui": "0.8.4-main.84f28bd",
61
- "@dxos/react-ui-theme": "0.8.4-main.84f28bd"
59
+ "@dxos/react-ui": "0.8.4-main.c1de068",
60
+ "@dxos/react-ui-theme": "0.8.4-main.c1de068"
62
61
  },
63
62
  "publishConfig": {
64
63
  "access": "public"
@@ -81,7 +81,7 @@ export default () =>
81
81
  );
82
82
 
83
83
  return (
84
- <StackItem.Content role='article'>
84
+ <StackItem.Content>
85
85
  <PluginDetail plugin={subject} enabled={enabled} onEnable={handleEnable} />
86
86
  </StackItem.Content>
87
87
  );
@@ -4,10 +4,11 @@
4
4
 
5
5
  import '@dxos-theme';
6
6
 
7
- import { IconBase, type IconWeight, GithubLogo, type IconProps } from '@phosphor-icons/react';
7
+ import { IconBase, type IconWeight, type IconProps } from '@phosphor-icons/react';
8
8
  import { type Meta } from '@storybook/react-vite';
9
9
  import React, { forwardRef, type SVGProps, type ReactElement } from 'react';
10
10
 
11
+ import { Icon } from '@dxos/react-ui';
11
12
  import { getSize, mx } from '@dxos/react-ui-theme';
12
13
 
13
14
  /**
@@ -89,7 +90,7 @@ const DefaultStory = () => {
89
90
  return (
90
91
  <div className='flex gap-4 p-8 ring'>
91
92
  <CustomIcon weight={'regular'} className={mx(getSize(8))} />
92
- <GithubLogo weight={'regular'} className={mx(getSize(8))} />
93
+ <Icon icon='ph--github-logo--regular' classNames={mx(getSize(8))} />
93
94
  </div>
94
95
  );
95
96
  };
@@ -1,162 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- REGISTRY_ID,
4
- REGISTRY_KEY,
5
- REGISTRY_PLUGIN
6
- } from "./chunk-R3GXMWPJ.mjs";
7
-
8
- // src/capabilities/app-graph-builder.ts
9
- import { Rx } from "@effect-rx/rx-react";
10
- import { Option, pipe } from "effect";
11
- import { Capabilities, contributes, createIntent, SettingsAction } from "@dxos/app-framework";
12
- import { createExtension } from "@dxos/plugin-graph";
13
- var app_graph_builder_default = (context) => contributes(Capabilities.AppGraphBuilder, [
14
- createExtension({
15
- id: REGISTRY_PLUGIN,
16
- actions: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === "root" ? Option.some(node2) : Option.none()), Option.map((node2) => [
17
- {
18
- id: REGISTRY_PLUGIN,
19
- data: async () => {
20
- const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
21
- await dispatch(createIntent(SettingsAction.OpenPluginRegistry));
22
- },
23
- properties: {
24
- label: [
25
- "open plugin registry label",
26
- {
27
- ns: REGISTRY_PLUGIN
28
- }
29
- ],
30
- icon: "ph--squares-four--regular",
31
- disposition: "menu"
32
- }
33
- }
34
- ]), Option.getOrElse(() => [])))
35
- }),
36
- createExtension({
37
- id: REGISTRY_PLUGIN,
38
- connector: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === "root" ? Option.some(node2) : Option.none()), Option.map((node2) => [
39
- {
40
- id: REGISTRY_ID,
41
- type: REGISTRY_PLUGIN,
42
- properties: {
43
- label: [
44
- "plugin registry label",
45
- {
46
- ns: REGISTRY_PLUGIN
47
- }
48
- ],
49
- icon: "ph--squares-four--regular",
50
- disposition: "pin-end",
51
- testId: "treeView.pluginRegistry"
52
- },
53
- nodes: [
54
- {
55
- id: `${REGISTRY_KEY}+all`,
56
- type: "category",
57
- data: `${REGISTRY_KEY}+all`,
58
- properties: {
59
- label: [
60
- "all plugins label",
61
- {
62
- ns: REGISTRY_PLUGIN
63
- }
64
- ],
65
- icon: "ph--squares-four--regular",
66
- key: REGISTRY_KEY,
67
- testId: "pluginRegistry.all"
68
- }
69
- },
70
- {
71
- id: `${REGISTRY_KEY}+installed`,
72
- type: "category",
73
- data: `${REGISTRY_KEY}+installed`,
74
- properties: {
75
- label: [
76
- "installed plugins label",
77
- {
78
- ns: REGISTRY_PLUGIN
79
- }
80
- ],
81
- icon: "ph--check--regular",
82
- key: REGISTRY_KEY,
83
- testId: "pluginRegistry.installed"
84
- }
85
- },
86
- {
87
- id: `${REGISTRY_KEY}+recommended`,
88
- type: "category",
89
- data: `${REGISTRY_KEY}+recommended`,
90
- properties: {
91
- label: [
92
- "recommended plugins label",
93
- {
94
- ns: REGISTRY_PLUGIN
95
- }
96
- ],
97
- icon: "ph--star--regular",
98
- key: REGISTRY_KEY,
99
- testId: "pluginRegistry.recommended"
100
- }
101
- },
102
- {
103
- id: `${REGISTRY_KEY}+labs`,
104
- type: "category",
105
- data: `${REGISTRY_KEY}+labs`,
106
- properties: {
107
- label: [
108
- "labs plugins label",
109
- {
110
- ns: REGISTRY_PLUGIN
111
- }
112
- ],
113
- icon: "ph--flask--regular",
114
- key: REGISTRY_KEY,
115
- testId: "pluginRegistry.labs"
116
- }
117
- }
118
- ]
119
- }
120
- ]), Option.getOrElse(() => [])))
121
- }),
122
- createExtension({
123
- id: `${REGISTRY_PLUGIN}/actions`,
124
- actions: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === REGISTRY_ID ? Option.some(node2) : Option.none()), Option.map(() => [
125
- {
126
- id: `${REGISTRY_PLUGIN}/load-by-url`,
127
- data: async () => {
128
- },
129
- properties: {
130
- label: [
131
- "load by url label",
132
- {
133
- ns: REGISTRY_PLUGIN
134
- }
135
- ],
136
- icon: "ph--cloud-arrow-down--regular",
137
- disabled: true
138
- }
139
- }
140
- ]), Option.getOrElse(() => [])))
141
- }),
142
- createExtension({
143
- id: `${REGISTRY_PLUGIN}/plugins`,
144
- connector: (node) => Rx.make((get) => pipe(get(node), Option.flatMap((node2) => node2.id === REGISTRY_ID ? Option.some(node2) : Option.none()), Option.map(() => {
145
- const manager = context.getCapability(Capabilities.PluginManager);
146
- return manager.plugins.map((plugin) => ({
147
- id: plugin.meta.id.replaceAll("/", ":"),
148
- type: "dxos.org/plugin",
149
- data: plugin,
150
- properties: {
151
- label: plugin.meta.name ?? plugin.meta.id,
152
- icon: plugin.meta.icon ?? "ph--circle--regular",
153
- disposition: "hidden"
154
- }
155
- }));
156
- }), Option.getOrElse(() => [])))
157
- })
158
- ]);
159
- export {
160
- app_graph_builder_default as default
161
- };
162
- //# sourceMappingURL=app-graph-builder-N44OGVQA.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/app-graph-builder.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Rx } from '@effect-rx/rx-react';\nimport { Option, pipe } from 'effect';\n\nimport { Capabilities, contributes, createIntent, SettingsAction, type PluginContext } from '@dxos/app-framework';\nimport { createExtension } from '@dxos/plugin-graph';\n\nimport { REGISTRY_ID, REGISTRY_KEY, REGISTRY_PLUGIN } from '../meta';\n\nexport default (context: PluginContext) =>\n contributes(Capabilities.AppGraphBuilder, [\n createExtension({\n id: REGISTRY_PLUGIN,\n actions: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === 'root' ? Option.some(node) : Option.none())),\n Option.map((node) => [\n {\n id: REGISTRY_PLUGIN,\n data: async () => {\n const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);\n await dispatch(createIntent(SettingsAction.OpenPluginRegistry));\n },\n properties: {\n label: ['open plugin registry label', { ns: REGISTRY_PLUGIN }],\n icon: 'ph--squares-four--regular',\n disposition: 'menu',\n },\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n createExtension({\n id: REGISTRY_PLUGIN,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === 'root' ? Option.some(node) : Option.none())),\n Option.map((node) => [\n {\n id: REGISTRY_ID,\n type: REGISTRY_PLUGIN,\n properties: {\n label: ['plugin registry label', { ns: REGISTRY_PLUGIN }],\n icon: 'ph--squares-four--regular',\n disposition: 'pin-end',\n testId: 'treeView.pluginRegistry',\n },\n nodes: [\n {\n id: `${REGISTRY_KEY}+all`,\n type: 'category',\n data: `${REGISTRY_KEY}+all`,\n properties: {\n label: ['all plugins label', { ns: REGISTRY_PLUGIN }],\n icon: 'ph--squares-four--regular',\n key: REGISTRY_KEY,\n testId: 'pluginRegistry.all',\n },\n },\n {\n id: `${REGISTRY_KEY}+installed`,\n type: 'category',\n data: `${REGISTRY_KEY}+installed`,\n properties: {\n label: ['installed plugins label', { ns: REGISTRY_PLUGIN }],\n icon: 'ph--check--regular',\n key: REGISTRY_KEY,\n testId: 'pluginRegistry.installed',\n },\n },\n {\n id: `${REGISTRY_KEY}+recommended`,\n type: 'category',\n data: `${REGISTRY_KEY}+recommended`,\n properties: {\n label: ['recommended plugins label', { ns: REGISTRY_PLUGIN }],\n icon: 'ph--star--regular',\n key: REGISTRY_KEY,\n testId: 'pluginRegistry.recommended',\n },\n },\n {\n id: `${REGISTRY_KEY}+labs`,\n type: 'category',\n data: `${REGISTRY_KEY}+labs`,\n properties: {\n label: ['labs plugins label', { ns: REGISTRY_PLUGIN }],\n icon: 'ph--flask--regular',\n key: REGISTRY_KEY,\n testId: 'pluginRegistry.labs',\n },\n },\n ],\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n createExtension({\n id: `${REGISTRY_PLUGIN}/actions`,\n actions: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === REGISTRY_ID ? Option.some(node) : Option.none())),\n Option.map(() => [\n {\n id: `${REGISTRY_PLUGIN}/load-by-url`,\n data: async () => {},\n properties: {\n label: ['load by url label', { ns: REGISTRY_PLUGIN }],\n icon: 'ph--cloud-arrow-down--regular',\n disabled: true,\n },\n },\n ]),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n createExtension({\n id: `${REGISTRY_PLUGIN}/plugins`,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === REGISTRY_ID ? Option.some(node) : Option.none())),\n Option.map(() => {\n const manager = context.getCapability(Capabilities.PluginManager);\n return manager.plugins.map((plugin) => ({\n id: plugin.meta.id.replaceAll('/', ':'),\n type: 'dxos.org/plugin',\n data: plugin,\n properties: {\n label: plugin.meta.name ?? plugin.meta.id,\n icon: plugin.meta.icon ?? 'ph--circle--regular',\n disposition: 'hidden',\n },\n }));\n }),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n ]);\n"],
5
- "mappings": ";;;;;;;;AAIA,SAASA,UAAU;AACnB,SAASC,QAAQC,YAAY;AAE7B,SAASC,cAAcC,aAAaC,cAAcC,sBAA0C;AAC5F,SAASC,uBAAuB;AAIhC,IAAA,4BAAe,CAACC,YACdC,YAAYC,aAAaC,iBAAiB;EACxCC,gBAAgB;IACdC,IAAIC;IACJC,SAAS,CAACC,SACRC,GAAGC,KAAK,CAACC,QACPC,KACED,IAAIH,IAAAA,GACJK,OAAOC,QAAQ,CAACN,UAAUA,MAAKH,OAAO,SAASQ,OAAOE,KAAKP,KAAAA,IAAQK,OAAOG,KAAI,CAAA,GAC9EH,OAAOI,IAAI,CAACT,UAAS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B,MAAMyB;QACNjB,YAAY;UACVC,OAAOgB,OAAOC,KAAKE,QAAQH,OAAOC,KAAKvC;UACvCwB,MAAMc,OAAOC,KAAKf,QAAQ;UAC1BC,aAAa;QACf;MACF,EAAA;IACF,CAAA,GACAjB,OAAOkB,UAAU,MAAM,CAAA,CAAE,CAAA,CAAA;EAGjC,CAAA;CACD;",
6
- "names": ["Rx", "Option", "pipe", "Capabilities", "contributes", "createIntent", "SettingsAction", "createExtension", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "REGISTRY_PLUGIN", "actions", "node", "Rx", "make", "get", "pipe", "Option", "flatMap", "some", "none", "map", "data", "dispatchPromise", "dispatch", "getCapability", "IntentDispatcher", "createIntent", "SettingsAction", "OpenPluginRegistry", "properties", "label", "ns", "icon", "disposition", "getOrElse", "connector", "REGISTRY_ID", "type", "testId", "nodes", "REGISTRY_KEY", "key", "disabled", "manager", "PluginManager", "plugins", "plugin", "meta", "replaceAll", "name"]
7
- }
@@ -1,18 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
-
3
- // src/meta.ts
4
- var REGISTRY_PLUGIN = "dxos.org/plugin/registry";
5
- var REGISTRY_ID = "!dxos:plugin-registry";
6
- var REGISTRY_KEY = "plugin-registry";
7
- var meta = {
8
- id: REGISTRY_PLUGIN,
9
- name: "Plugins"
10
- };
11
-
12
- export {
13
- REGISTRY_PLUGIN,
14
- REGISTRY_ID,
15
- REGISTRY_KEY,
16
- meta
17
- };
18
- //# sourceMappingURL=chunk-R3GXMWPJ.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const REGISTRY_PLUGIN = 'dxos.org/plugin/registry';\n\n// TODO(wittjosiah): Deck does not currently support `/` in ids.\n// TODO(wittjosiah): This is a hack to prevent the previous deck from being set for pinned items.\n// Ideally this should be worked into the data model in a generic way.\nexport const REGISTRY_ID = '!dxos:plugin-registry';\nexport const REGISTRY_KEY = 'plugin-registry';\n\nexport const meta: PluginMeta = {\n id: REGISTRY_PLUGIN,\n name: 'Plugins',\n};\n"],
5
- "mappings": ";;;AAMO,IAAMA,kBAAkB;AAKxB,IAAMC,cAAc;AACpB,IAAMC,eAAe;AAErB,IAAMC,OAAmB;EAC9BC,IAAIJ;EACJK,MAAM;AACR;",
6
- "names": ["REGISTRY_PLUGIN", "REGISTRY_ID", "REGISTRY_KEY", "meta", "id", "name"]
7
- }
@@ -1,72 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- REGISTRY_ID,
4
- REGISTRY_KEY,
5
- REGISTRY_PLUGIN,
6
- meta
7
- } from "./chunk-R3GXMWPJ.mjs";
8
-
9
- // src/RegistryPlugin.tsx
10
- import { Capabilities, contributes, defineModule, definePlugin, Events } from "@dxos/app-framework";
11
-
12
- // src/capabilities/index.ts
13
- import { lazy } from "@dxos/app-framework";
14
- var AppGraphBuilder = lazy(() => import("./app-graph-builder-N44OGVQA.mjs"));
15
- var IntentResolver = lazy(() => import("./intent-resolver-M2CBVUVQ.mjs"));
16
- var ReactSurface = lazy(() => import("./react-surface-5XAG2EYX.mjs"));
17
-
18
- // src/translations.ts
19
- var translations = [
20
- {
21
- "en-US": {
22
- [meta.id]: {
23
- "plugin name": "Registry",
24
- "details label": "Details",
25
- "home page label": "Website",
26
- "source label": "Source",
27
- "plugin registry label": "Plugin Registry",
28
- "all plugins label": "All",
29
- "installed plugins label": "Enabled",
30
- "recommended plugins label": "Recommended",
31
- "labs plugins label": "Labs",
32
- "community plugins label": "Community",
33
- "load by url label": "Load by URL (soon)",
34
- "coming soon label": "Coming soon!",
35
- "open plugin registry label": "Open plugin registry",
36
- "settings label": "Settings"
37
- }
38
- }
39
- }
40
- ];
41
-
42
- // src/RegistryPlugin.tsx
43
- var RegistryPlugin = () => definePlugin(meta, [
44
- defineModule({
45
- id: `${meta.id}/module/translations`,
46
- activatesOn: Events.SetupTranslations,
47
- activate: () => contributes(Capabilities.Translations, translations)
48
- }),
49
- defineModule({
50
- id: `${meta.id}/module/react-surface`,
51
- activatesOn: Events.SetupReactSurface,
52
- activate: ReactSurface
53
- }),
54
- defineModule({
55
- id: `${meta.id}/module/intent-resolver`,
56
- activatesOn: Events.SetupIntentResolver,
57
- activate: IntentResolver
58
- }),
59
- defineModule({
60
- id: `${meta.id}/module/app-graph-builder`,
61
- activatesOn: Events.SetupAppGraph,
62
- activate: AppGraphBuilder
63
- })
64
- ]);
65
- export {
66
- REGISTRY_ID,
67
- REGISTRY_KEY,
68
- REGISTRY_PLUGIN,
69
- RegistryPlugin,
70
- meta
71
- };
72
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/RegistryPlugin.tsx", "../../../src/capabilities/index.ts", "../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Capabilities, contributes, defineModule, definePlugin, Events } from '@dxos/app-framework';\n\nimport { AppGraphBuilder, IntentResolver, ReactSurface } from './capabilities';\nimport { meta } from './meta';\nimport { translations } from './translations';\n\nexport const RegistryPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupReactSurface,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntentResolver,\n activate: IntentResolver,\n }),\n defineModule({\n id: `${meta.id}/module/app-graph-builder`,\n activatesOn: Events.SetupAppGraph,\n activate: AppGraphBuilder,\n }),\n ]);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const AppGraphBuilder = lazy(() => import('./app-graph-builder'));\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from './meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin name': 'Registry',\n 'details label': 'Details',\n 'home page label': 'Website',\n 'source label': 'Source',\n 'plugin registry label': 'Plugin Registry',\n 'all plugins label': 'All',\n 'installed plugins label': 'Enabled',\n 'recommended plugins label': 'Recommended',\n 'labs plugins label': 'Labs',\n 'community plugins label': 'Community',\n 'load by url label': 'Load by URL (soon)',\n 'coming soon label': 'Coming soon!',\n 'open plugin registry label': 'Open plugin registry',\n 'settings label': 'Settings',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
- "mappings": ";;;;;;;;;AAIA,SAASA,cAAcC,aAAaC,cAAcC,cAAcC,cAAc;;;ACA9E,SAASC,YAAY;AAEd,IAAMC,kBAAkBC,KAAK,MAAM,OAAO,kCAAA,CAAA;AAC1C,IAAMC,iBAAiBD,KAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAME,eAAeF,KAAK,MAAM,OAAO,8BAAA,CAAA;;;ACAvC,IAAMG,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,iBAAiB;QACjB,mBAAmB;QACnB,gBAAgB;QAChB,yBAAyB;QACzB,qBAAqB;QACrB,2BAA2B;QAC3B,6BAA6B;QAC7B,sBAAsB;QACtB,2BAA2B;QAC3B,qBAAqB;QACrB,qBAAqB;QACrB,8BAA8B;QAC9B,kBAAkB;MACpB;IACF;EACF;;;;AFlBK,IAAMC,iBAAiB,MAC5BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAU,MAAMC,YAAYC,aAAaC,cAAcC,YAAAA;EACzD,CAAA;EACAT,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOO;IACpBL,UAAUM;EACZ,CAAA;EACAX,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOS;IACpBP,UAAUQ;EACZ,CAAA;EACAb,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOW;IACpBT,UAAUU;EACZ,CAAA;CACD;",
6
- "names": ["Capabilities", "contributes", "defineModule", "definePlugin", "Events", "lazy", "AppGraphBuilder", "lazy", "IntentResolver", "ReactSurface", "translations", "meta", "id", "RegistryPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupReactSurface", "ReactSurface", "SetupIntentResolver", "IntentResolver", "SetupAppGraph", "AppGraphBuilder"]
7
- }
@@ -1,24 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- REGISTRY_ID
4
- } from "./chunk-R3GXMWPJ.mjs";
5
-
6
- // src/capabilities/intent-resolver.ts
7
- import { contributes, SettingsAction, createResolver, LayoutAction, Capabilities, createIntent } from "@dxos/app-framework";
8
- var intent_resolver_default = () => contributes(Capabilities.IntentResolver, createResolver({
9
- intent: SettingsAction.OpenPluginRegistry,
10
- resolve: () => {
11
- return {
12
- intents: [
13
- createIntent(LayoutAction.SwitchWorkspace, {
14
- part: "workspace",
15
- subject: REGISTRY_ID
16
- })
17
- ]
18
- };
19
- }
20
- }));
21
- export {
22
- intent_resolver_default as default
23
- };
24
- //# sourceMappingURL=intent-resolver-M2CBVUVQ.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/intent-resolver.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport {\n contributes,\n SettingsAction,\n createResolver,\n LayoutAction,\n Capabilities,\n createIntent,\n} from '@dxos/app-framework';\n\nimport { REGISTRY_ID } from '../meta';\n\nexport default () =>\n contributes(\n Capabilities.IntentResolver,\n createResolver({\n intent: SettingsAction.OpenPluginRegistry,\n resolve: () => {\n return {\n intents: [createIntent(LayoutAction.SwitchWorkspace, { part: 'workspace', subject: REGISTRY_ID })],\n };\n },\n }),\n );\n"],
5
- "mappings": ";;;;;;AAIA,SACEA,aACAC,gBACAC,gBACAC,cACAC,cACAC,oBACK;AAIP,IAAA,0BAAe,MACbC,YACEC,aAAaC,gBACbC,eAAe;EACbC,QAAQC,eAAeC;EACvBC,SAAS,MAAA;AACP,WAAO;MACLC,SAAS;QAACC,aAAaC,aAAaC,iBAAiB;UAAEC,MAAM;UAAaC,SAASC;QAAY,CAAA;;IACjG;EACF;AACF,CAAA,CAAA;",
6
- "names": ["contributes", "SettingsAction", "createResolver", "LayoutAction", "Capabilities", "createIntent", "contributes", "Capabilities", "IntentResolver", "createResolver", "intent", "SettingsAction", "OpenPluginRegistry", "resolve", "intents", "createIntent", "LayoutAction", "SwitchWorkspace", "part", "subject", "REGISTRY_ID"]
7
- }
@@ -1 +0,0 @@
1
- {"inputs":{"src/meta.ts":{"bytes":1893,"imports":[],"format":"esm"},"src/capabilities/app-graph-builder.ts":{"bytes":21253,"imports":[{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/capabilities/intent-resolver.ts":{"bytes":2395,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/PluginDetail.tsx":{"bytes":7710,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/PluginItem.tsx":{"bytes":13093,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/components/PluginList.tsx":{"bytes":2682,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"src/components/PluginItem.tsx","kind":"import-statement","original":"./PluginItem"}],"format":"esm"},"src/components/RegistryContainer.tsx":{"bytes":9236,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"src/components/PluginList.tsx","kind":"import-statement","original":"./PluginList"}],"format":"esm"},"src/components/index.ts":{"bytes":689,"imports":[{"path":"src/components/PluginDetail.tsx","kind":"import-statement","original":"./PluginDetail"},{"path":"src/components/PluginList.tsx","kind":"import-statement","original":"./PluginList"},{"path":"src/components/RegistryContainer.tsx","kind":"import-statement","original":"./RegistryContainer"}],"format":"esm"},"src/capabilities/react-surface.tsx":{"bytes":12303,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"src/capabilities/index.ts":{"bytes":1302,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"src/translations.ts":{"bytes":2832,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/RegistryPlugin.tsx":{"bytes":4038,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/index.ts":{"bytes":557,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/RegistryPlugin.tsx","kind":"import-statement","original":"./RegistryPlugin"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3743},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-R3GXMWPJ.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/app-graph-builder-N44OGVQA.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/intent-resolver-M2CBVUVQ.mjs","kind":"dynamic-import"},{"path":"dist/lib/node-esm/react-surface-5XAG2EYX.mjs","kind":"dynamic-import"}],"exports":["REGISTRY_ID","REGISTRY_KEY","REGISTRY_PLUGIN","RegistryPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0},"src/RegistryPlugin.tsx":{"bytesInOutput":750},"src/capabilities/index.ts":{"bytesInOutput":268},"src/translations.ts":{"bytesInOutput":690}},"bytes":2127},"dist/lib/node-esm/app-graph-builder-N44OGVQA.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9266},"dist/lib/node-esm/app-graph-builder-N44OGVQA.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-R3GXMWPJ.mjs","kind":"import-statement"},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/app-graph-builder.ts","inputs":{"src/capabilities/app-graph-builder.ts":{"bytesInOutput":4841}},"bytes":5171},"dist/lib/node-esm/intent-resolver-M2CBVUVQ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1266},"dist/lib/node-esm/intent-resolver-M2CBVUVQ.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-R3GXMWPJ.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/intent-resolver.ts","inputs":{"src/capabilities/intent-resolver.ts":{"bytesInOutput":461}},"bytes":750},"dist/lib/node-esm/react-surface-5XAG2EYX.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":22568},"dist/lib/node-esm/react-surface-5XAG2EYX.mjs":{"imports":[{"path":"dist/lib/node-esm/chunk-R3GXMWPJ.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-observability/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"src/capabilities/react-surface.tsx","inputs":{"src/capabilities/react-surface.tsx":{"bytesInOutput":3131},"src/components/PluginDetail.tsx":{"bytesInOutput":2439},"src/components/index.ts":{"bytesInOutput":0},"src/components/PluginList.tsx":{"bytesInOutput":661},"src/components/PluginItem.tsx":{"bytesInOutput":3972},"src/components/RegistryContainer.tsx":{"bytesInOutput":2339}},"bytes":13064},"dist/lib/node-esm/chunk-R3GXMWPJ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":871},"dist/lib/node-esm/chunk-R3GXMWPJ.mjs":{"imports":[],"exports":["REGISTRY_ID","REGISTRY_KEY","REGISTRY_PLUGIN","meta"],"inputs":{"src/meta.ts":{"bytesInOutput":188}},"bytes":410}}}