@dxos/plugin-registry 0.8.3 → 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.
Files changed (33) hide show
  1. package/dist/lib/browser/{app-graph-builder-J5YHAGNI.mjs → app-graph-builder-6JQNRTEQ.mjs} +4 -4
  2. package/dist/lib/browser/{app-graph-builder-J5YHAGNI.mjs.map → app-graph-builder-6JQNRTEQ.mjs.map} +3 -3
  3. package/dist/lib/browser/{chunk-ISC56E5F.mjs → chunk-AEBASNOI.mjs} +2 -2
  4. package/dist/lib/browser/index.mjs +12 -12
  5. package/dist/lib/browser/index.mjs.map +3 -3
  6. package/dist/lib/browser/{intent-resolver-AQJNBUT3.mjs → intent-resolver-UGDFPMAG.mjs} +4 -4
  7. package/dist/lib/browser/{intent-resolver-AQJNBUT3.mjs.map → intent-resolver-UGDFPMAG.mjs.map} +3 -3
  8. package/dist/lib/browser/meta.json +1 -1
  9. package/dist/lib/browser/{react-surface-W5RNDLXV.mjs → react-surface-BQPO3F3E.mjs} +12 -14
  10. package/dist/lib/browser/{react-surface-W5RNDLXV.mjs.map → react-surface-BQPO3F3E.mjs.map} +3 -3
  11. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  12. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  13. package/dist/types/src/components/Icon.stories.d.ts +1 -1
  14. package/dist/types/src/components/Icon.stories.d.ts.map +1 -1
  15. package/dist/types/src/components/PluginDetail.stories.d.ts +1 -1
  16. package/dist/types/src/components/PluginDetail.stories.d.ts.map +1 -1
  17. package/dist/types/src/components/PluginList.stories.d.ts +1 -1
  18. package/dist/types/src/components/PluginList.stories.d.ts.map +1 -1
  19. package/dist/types/src/components/RegistryContainer.d.ts.map +1 -1
  20. package/dist/types/src/translations.d.ts +19 -19
  21. package/dist/types/src/translations.d.ts.map +1 -1
  22. package/dist/types/tsconfig.tsbuildinfo +1 -1
  23. package/package.json +22 -22
  24. package/src/RegistryPlugin.tsx +2 -2
  25. package/src/capabilities/app-graph-builder.ts +1 -1
  26. package/src/capabilities/intent-resolver.ts +4 -4
  27. package/src/capabilities/react-surface.tsx +2 -2
  28. package/src/components/Icon.stories.tsx +5 -4
  29. package/src/components/PluginDetail.stories.tsx +3 -2
  30. package/src/components/PluginList.stories.tsx +5 -4
  31. package/src/components/RegistryContainer.tsx +1 -1
  32. package/src/translations.ts +6 -4
  33. /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",
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/invariant": "0.8.3",
28
- "@dxos/app-framework": "0.8.3",
29
- "@dxos/echo-schema": "0.8.3",
30
- "@dxos/plugin-graph": "0.8.3",
31
- "@dxos/live-object": "0.8.3",
32
- "@dxos/plugin-observability": "0.8.3",
33
- "@dxos/react-ui-form": "0.8.3",
34
- "@dxos/util": "0.8.3",
35
- "@dxos/react-ui-stack": "0.8.3",
36
- "@dxos/echo": "0.8.3"
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": "^0.34.1",
40
- "@effect/platform": "0.80.12",
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": "^3.13.3",
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/random": "0.8.3",
49
- "@dxos/react-ui": "0.8.3",
50
- "@dxos/react-ui-theme": "0.8.3",
51
- "@dxos/storybook-utils": "0.8.3"
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.3",
61
- "@dxos/react-ui-theme": "0.8.3"
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"
@@ -2,11 +2,11 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { Capabilities, contributes, defineModule, definePlugin, Events } from '@dxos/app-framework';
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, contributes, createIntent, SettingsAction, type PluginContext } from '@dxos/app-framework';
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, Plugin, usePluginManager } from '@dxos/app-framework';
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 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';
8
- import { type Meta } from '@storybook/react';
9
- import React, { forwardRef, type SVGProps, type ReactElement } from '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
- <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
  };
@@ -4,13 +4,14 @@
4
4
 
5
5
  import '@dxos-theme';
6
6
 
7
- import { type StoryObj, type Meta } from '@storybook/react';
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 { definePlugin, type Plugin } from '@dxos/app-framework';
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 { withTheme, withLayout } from '@dxos/storybook-utils';
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
 
@@ -6,10 +6,10 @@ import React, { useCallback, useMemo } from 'react';
6
6
 
7
7
  import {
8
8
  Capabilities,
9
- createIntent,
10
9
  LayoutAction,
11
10
  type Plugin,
12
11
  SettingsAction,
12
+ createIntent,
13
13
  useCapability,
14
14
  useIntentDispatcher,
15
15
  usePluginManager,
@@ -2,12 +2,14 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { REGISTRY_PLUGIN } from './meta';
5
+ import { type Resource } from '@dxos/react-ui';
6
6
 
7
- export default [
7
+ import { meta } from './meta';
8
+
9
+ export const translations = [
8
10
  {
9
11
  'en-US': {
10
- [REGISTRY_PLUGIN]: {
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[];