@dxos/plugin-registry 0.8.3-staging.0fa589b → 0.8.4-main.28f8d3d
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/dist/lib/browser/{app-graph-builder-J5YHAGNI.mjs → app-graph-builder-6JQNRTEQ.mjs} +4 -4
- package/dist/lib/browser/{app-graph-builder-J5YHAGNI.mjs.map → app-graph-builder-6JQNRTEQ.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-ISC56E5F.mjs → chunk-AEBASNOI.mjs} +2 -2
- package/dist/lib/browser/index.mjs +12 -12
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-AQJNBUT3.mjs → intent-resolver-UGDFPMAG.mjs} +4 -4
- package/dist/lib/browser/{intent-resolver-AQJNBUT3.mjs.map → intent-resolver-UGDFPMAG.mjs.map} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-W5RNDLXV.mjs → react-surface-BQPO3F3E.mjs} +12 -14
- package/dist/lib/browser/{react-surface-W5RNDLXV.mjs.map → react-surface-BQPO3F3E.mjs.map} +3 -3
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/components/Icon.stories.d.ts +1 -1
- package/dist/types/src/components/Icon.stories.d.ts.map +1 -1
- package/dist/types/src/components/PluginDetail.stories.d.ts +1 -1
- package/dist/types/src/components/PluginDetail.stories.d.ts.map +1 -1
- package/dist/types/src/components/PluginList.stories.d.ts +1 -1
- package/dist/types/src/components/PluginList.stories.d.ts.map +1 -1
- package/dist/types/src/components/RegistryContainer.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +19 -19
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +22 -22
- package/src/RegistryPlugin.tsx +2 -2
- package/src/capabilities/app-graph-builder.ts +1 -1
- package/src/capabilities/intent-resolver.ts +4 -4
- package/src/capabilities/react-surface.tsx +2 -2
- package/src/components/Icon.stories.tsx +5 -4
- package/src/components/PluginDetail.stories.tsx +3 -2
- package/src/components/PluginList.stories.tsx +5 -4
- package/src/components/RegistryContainer.tsx +1 -1
- package/src/translations.ts +6 -4
- /package/dist/lib/browser/{chunk-ISC56E5F.mjs.map → chunk-AEBASNOI.mjs.map} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-registry",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4-main.28f8d3d",
|
|
4
4
|
"description": "Braneframe plugin gallery",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
+
"source": "./src/index.ts",
|
|
13
14
|
"types": "./dist/types/src/index.d.ts",
|
|
14
15
|
"browser": "./dist/lib/browser/index.mjs"
|
|
15
16
|
}
|
|
@@ -24,41 +25,40 @@
|
|
|
24
25
|
],
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"@preact-signals/safe-react": "^0.9.0",
|
|
27
|
-
"@dxos/app-framework": "0.8.
|
|
28
|
-
"@dxos/echo": "0.8.
|
|
29
|
-
"@dxos/echo-schema": "0.8.
|
|
30
|
-
"@dxos/
|
|
31
|
-
"@dxos/
|
|
32
|
-
"@dxos/plugin-
|
|
33
|
-
"@dxos/
|
|
34
|
-
"@dxos/react-ui-
|
|
35
|
-
"@dxos/util": "0.8.
|
|
36
|
-
"@dxos/
|
|
28
|
+
"@dxos/app-framework": "0.8.4-main.28f8d3d",
|
|
29
|
+
"@dxos/echo": "0.8.4-main.28f8d3d",
|
|
30
|
+
"@dxos/echo-schema": "0.8.4-main.28f8d3d",
|
|
31
|
+
"@dxos/invariant": "0.8.4-main.28f8d3d",
|
|
32
|
+
"@dxos/live-object": "0.8.4-main.28f8d3d",
|
|
33
|
+
"@dxos/plugin-graph": "0.8.4-main.28f8d3d",
|
|
34
|
+
"@dxos/plugin-observability": "0.8.4-main.28f8d3d",
|
|
35
|
+
"@dxos/react-ui-form": "0.8.4-main.28f8d3d",
|
|
36
|
+
"@dxos/util": "0.8.4-main.28f8d3d",
|
|
37
|
+
"@dxos/react-ui-stack": "0.8.4-main.28f8d3d"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
|
-
"@effect-rx/rx-react": "
|
|
40
|
-
"@effect/platform": "0.
|
|
40
|
+
"@effect-rx/rx-react": "0.38.0",
|
|
41
|
+
"@effect/platform": "0.90.2",
|
|
41
42
|
"@phosphor-icons/react": "^2.1.5",
|
|
42
43
|
"@types/react": "~18.2.0",
|
|
43
44
|
"@types/react-dom": "~18.2.0",
|
|
44
|
-
"effect": "
|
|
45
|
+
"effect": "3.17.7",
|
|
45
46
|
"react": "~18.2.0",
|
|
46
47
|
"react-dom": "~18.2.0",
|
|
47
48
|
"vite": "5.4.7",
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/react-ui": "0.8.
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
49
|
+
"@dxos/random": "0.8.4-main.28f8d3d",
|
|
50
|
+
"@dxos/react-ui": "0.8.4-main.28f8d3d",
|
|
51
|
+
"@dxos/react-ui-theme": "0.8.4-main.28f8d3d",
|
|
52
|
+
"@dxos/storybook-utils": "0.8.4-main.28f8d3d"
|
|
52
53
|
},
|
|
53
54
|
"peerDependencies": {
|
|
54
55
|
"@effect-rx/rx-react": "^0.34.1",
|
|
55
|
-
"@effect/platform": "0.80.12",
|
|
56
|
-
"@phosphor-icons/react": "^2.1.5",
|
|
56
|
+
"@effect/platform": "^0.80.12",
|
|
57
57
|
"effect": "^3.13.3",
|
|
58
58
|
"react": "~18.2.0",
|
|
59
59
|
"react-dom": "~18.2.0",
|
|
60
|
-
"@dxos/react-ui": "0.8.
|
|
61
|
-
"@dxos/react-ui-theme": "0.8.
|
|
60
|
+
"@dxos/react-ui": "0.8.4-main.28f8d3d",
|
|
61
|
+
"@dxos/react-ui-theme": "0.8.4-main.28f8d3d"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
package/src/RegistryPlugin.tsx
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { Capabilities, contributes, defineModule, definePlugin
|
|
5
|
+
import { Capabilities, Events, contributes, defineModule, definePlugin } from '@dxos/app-framework';
|
|
6
6
|
|
|
7
7
|
import { AppGraphBuilder, IntentResolver, ReactSurface } from './capabilities';
|
|
8
8
|
import { meta } from './meta';
|
|
9
|
-
import translations from './translations';
|
|
9
|
+
import { translations } from './translations';
|
|
10
10
|
|
|
11
11
|
export const RegistryPlugin = () =>
|
|
12
12
|
definePlugin(meta, [
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { Rx } from '@effect-rx/rx-react';
|
|
6
6
|
import { Option, pipe } from 'effect';
|
|
7
7
|
|
|
8
|
-
import { Capabilities,
|
|
8
|
+
import { Capabilities, type PluginContext, SettingsAction, contributes, createIntent } from '@dxos/app-framework';
|
|
9
9
|
import { createExtension } from '@dxos/plugin-graph';
|
|
10
10
|
|
|
11
11
|
import { REGISTRY_ID, REGISTRY_KEY, REGISTRY_PLUGIN } from '../meta';
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
contributes,
|
|
7
|
-
SettingsAction,
|
|
8
|
-
createResolver,
|
|
9
|
-
LayoutAction,
|
|
10
6
|
Capabilities,
|
|
7
|
+
LayoutAction,
|
|
8
|
+
SettingsAction,
|
|
9
|
+
contributes,
|
|
11
10
|
createIntent,
|
|
11
|
+
createResolver,
|
|
12
12
|
} from '@dxos/app-framework';
|
|
13
13
|
|
|
14
14
|
import { REGISTRY_ID } from '../meta';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import React, { useCallback, useMemo } from 'react';
|
|
6
6
|
|
|
7
|
-
import { Capabilities, contributes, createSurface,
|
|
7
|
+
import { Capabilities, Plugin, contributes, createSurface, usePluginManager } from '@dxos/app-framework';
|
|
8
8
|
import { StackItem } from '@dxos/react-ui-stack';
|
|
9
9
|
|
|
10
10
|
import { PluginDetail, RegistryContainer } from '../components';
|
|
@@ -81,7 +81,7 @@ export default () =>
|
|
|
81
81
|
);
|
|
82
82
|
|
|
83
83
|
return (
|
|
84
|
-
<StackItem.Content
|
|
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
|
|
8
|
-
import { type Meta } from '@storybook/react';
|
|
9
|
-
import React, {
|
|
7
|
+
import { IconBase, type IconProps, type IconWeight } from '@phosphor-icons/react';
|
|
8
|
+
import { type Meta } from '@storybook/react-vite';
|
|
9
|
+
import React, { type ReactElement, type SVGProps, forwardRef } 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
|
-
<
|
|
93
|
+
<Icon icon='ph--github-logo--regular' classNames={mx(getSize(8))} />
|
|
93
94
|
</div>
|
|
94
95
|
);
|
|
95
96
|
};
|
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
|
-
import { type
|
|
7
|
+
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
8
8
|
|
|
9
9
|
import { faker } from '@dxos/random';
|
|
10
10
|
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
11
11
|
|
|
12
|
+
import { translations } from '../translations';
|
|
13
|
+
|
|
12
14
|
import { PluginDetail, type PluginDetailProps } from './PluginDetail';
|
|
13
|
-
import translations from '../translations';
|
|
14
15
|
|
|
15
16
|
const meta: Meta<PluginDetailProps> = {
|
|
16
17
|
title: 'plugins/plugin-registry/PluginDetail',
|
|
@@ -4,17 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
|
-
import { type Meta } from '@storybook/react';
|
|
7
|
+
import { type Meta } from '@storybook/react-vite';
|
|
8
8
|
import React, { useState } from 'react';
|
|
9
9
|
|
|
10
|
-
import {
|
|
10
|
+
import { type Plugin, definePlugin } from '@dxos/app-framework';
|
|
11
11
|
import { faker } from '@dxos/random';
|
|
12
12
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
13
13
|
import { mx } from '@dxos/react-ui-theme';
|
|
14
|
-
import {
|
|
14
|
+
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
15
|
+
|
|
16
|
+
import { translations } from '../translations';
|
|
15
17
|
|
|
16
18
|
import { PluginList } from './PluginList';
|
|
17
|
-
import translations from '../translations';
|
|
18
19
|
|
|
19
20
|
faker.seed(1);
|
|
20
21
|
|
package/src/translations.ts
CHANGED
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { type Resource } from '@dxos/react-ui';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import { meta } from './meta';
|
|
8
|
+
|
|
9
|
+
export const translations = [
|
|
8
10
|
{
|
|
9
11
|
'en-US': {
|
|
10
|
-
[
|
|
12
|
+
[meta.id]: {
|
|
11
13
|
'plugin name': 'Registry',
|
|
12
14
|
'details label': 'Details',
|
|
13
15
|
'home page label': 'Website',
|
|
@@ -25,4 +27,4 @@ export default [
|
|
|
25
27
|
},
|
|
26
28
|
},
|
|
27
29
|
},
|
|
28
|
-
];
|
|
30
|
+
] as const satisfies Resource[];
|
|
File without changes
|