@dxos/plugin-registry 0.8.4-main.406dc2a → 0.8.4-main.52d7546f51

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 (120) hide show
  1. package/dist/lib/browser/app-graph-builder-YOD5EGAY.mjs +167 -0
  2. package/dist/lib/browser/app-graph-builder-YOD5EGAY.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-VOAOTNGS.mjs +19 -0
  4. package/dist/lib/browser/chunk-VOAOTNGS.mjs.map +7 -0
  5. package/dist/lib/browser/cli/index.mjs +224 -0
  6. package/dist/lib/browser/cli/index.mjs.map +7 -0
  7. package/dist/lib/browser/index.mjs +23 -29
  8. package/dist/lib/browser/index.mjs.map +4 -4
  9. package/dist/lib/browser/meta.json +1 -1
  10. package/dist/lib/browser/operation-resolver-7P3NNVSR.mjs +25 -0
  11. package/dist/lib/browser/operation-resolver-7P3NNVSR.mjs.map +7 -0
  12. package/dist/lib/browser/react-surface-IEGOKKMX.mjs +337 -0
  13. package/dist/lib/browser/react-surface-IEGOKKMX.mjs.map +7 -0
  14. package/dist/lib/node-esm/app-graph-builder-WTIS5KI5.mjs +168 -0
  15. package/dist/lib/node-esm/app-graph-builder-WTIS5KI5.mjs.map +7 -0
  16. package/dist/lib/node-esm/chunk-SALMIZ2W.mjs +21 -0
  17. package/dist/lib/node-esm/chunk-SALMIZ2W.mjs.map +7 -0
  18. package/dist/lib/node-esm/cli/index.mjs +225 -0
  19. package/dist/lib/node-esm/cli/index.mjs.map +7 -0
  20. package/dist/lib/node-esm/index.mjs +64 -0
  21. package/dist/lib/node-esm/index.mjs.map +7 -0
  22. package/dist/lib/node-esm/meta.json +1 -0
  23. package/dist/lib/node-esm/operation-resolver-B24QW6IF.mjs +26 -0
  24. package/dist/lib/node-esm/operation-resolver-B24QW6IF.mjs.map +7 -0
  25. package/dist/lib/node-esm/react-surface-SEJBWRMR.mjs +338 -0
  26. package/dist/lib/node-esm/react-surface-SEJBWRMR.mjs.map +7 -0
  27. package/dist/types/src/RegistryPlugin.d.ts +2 -1
  28. package/dist/types/src/RegistryPlugin.d.ts.map +1 -1
  29. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  30. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  31. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  32. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  33. package/dist/types/src/capabilities/index.d.ts +3 -3
  34. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  35. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  36. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  37. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  38. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  39. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  40. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  41. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  42. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  43. package/dist/types/src/cli/commands/disable.d.ts +11 -0
  44. package/dist/types/src/cli/commands/disable.d.ts.map +1 -0
  45. package/dist/types/src/cli/commands/enable.d.ts +11 -0
  46. package/dist/types/src/cli/commands/enable.d.ts.map +1 -0
  47. package/dist/types/src/cli/commands/index.d.ts +3 -0
  48. package/dist/types/src/cli/commands/index.d.ts.map +1 -0
  49. package/dist/types/src/cli/commands/list.d.ts +7 -0
  50. package/dist/types/src/cli/commands/list.d.ts.map +1 -0
  51. package/dist/types/src/cli/commands/util.d.ts +11 -0
  52. package/dist/types/src/cli/commands/util.d.ts.map +1 -0
  53. package/dist/types/src/cli/index.d.ts +3 -0
  54. package/dist/types/src/cli/index.d.ts.map +1 -0
  55. package/dist/types/src/cli/plugin.d.ts +3 -0
  56. package/dist/types/src/cli/plugin.d.ts.map +1 -0
  57. package/dist/types/src/cli/storage.d.ts +18 -0
  58. package/dist/types/src/cli/storage.d.ts.map +1 -0
  59. package/dist/types/src/components/PluginDetail.d.ts +3 -3
  60. package/dist/types/src/components/PluginDetail.d.ts.map +1 -1
  61. package/dist/types/src/components/PluginDetail.stories.d.ts +1 -1
  62. package/dist/types/src/components/PluginDetail.stories.d.ts.map +1 -1
  63. package/dist/types/src/components/PluginItem.d.ts +2 -2
  64. package/dist/types/src/components/PluginItem.d.ts.map +1 -1
  65. package/dist/types/src/components/PluginList.d.ts +1 -1
  66. package/dist/types/src/components/PluginList.d.ts.map +1 -1
  67. package/dist/types/src/components/PluginList.stories.d.ts +2 -5
  68. package/dist/types/src/components/PluginList.stories.d.ts.map +1 -1
  69. package/dist/types/src/components/RegistryContainer.d.ts +4 -3
  70. package/dist/types/src/components/RegistryContainer.d.ts.map +1 -1
  71. package/dist/types/src/meta.d.ts +2 -2
  72. package/dist/types/src/meta.d.ts.map +1 -1
  73. package/dist/types/src/types.d.ts +2 -0
  74. package/dist/types/src/types.d.ts.map +1 -1
  75. package/dist/types/tsconfig.tsbuildinfo +1 -1
  76. package/package.json +48 -32
  77. package/src/RegistryPlugin.tsx +10 -24
  78. package/src/capabilities/app-graph-builder/app-graph-builder.ts +137 -0
  79. package/src/capabilities/app-graph-builder/index.ts +7 -0
  80. package/src/capabilities/index.ts +3 -5
  81. package/src/capabilities/operation-resolver/index.ts +7 -0
  82. package/src/capabilities/operation-resolver/operation-resolver.ts +24 -0
  83. package/src/capabilities/react-surface/index.ts +7 -0
  84. package/src/capabilities/react-surface/react-surface.tsx +99 -0
  85. package/src/cli/commands/disable.ts +47 -0
  86. package/src/cli/commands/enable.ts +44 -0
  87. package/src/cli/commands/index.ts +14 -0
  88. package/src/cli/commands/list.ts +41 -0
  89. package/src/cli/commands/util.ts +24 -0
  90. package/src/cli/index.ts +6 -0
  91. package/src/cli/plugin.ts +17 -0
  92. package/src/cli/storage.ts +57 -0
  93. package/src/components/PluginDetail.stories.tsx +16 -17
  94. package/src/components/PluginDetail.tsx +55 -39
  95. package/src/components/PluginItem.tsx +53 -52
  96. package/src/components/PluginList.stories.tsx +25 -24
  97. package/src/components/PluginList.tsx +3 -5
  98. package/src/components/RegistryContainer.tsx +53 -51
  99. package/src/meta.ts +7 -2
  100. package/src/types.ts +4 -0
  101. package/dist/lib/browser/app-graph-builder-5BKKIS5T.mjs +0 -162
  102. package/dist/lib/browser/app-graph-builder-5BKKIS5T.mjs.map +0 -7
  103. package/dist/lib/browser/chunk-MWZPWWWF.mjs +0 -14
  104. package/dist/lib/browser/chunk-MWZPWWWF.mjs.map +0 -7
  105. package/dist/lib/browser/intent-resolver-RUD6WFGT.mjs +0 -23
  106. package/dist/lib/browser/intent-resolver-RUD6WFGT.mjs.map +0 -7
  107. package/dist/lib/browser/react-surface-FYRVOQGA.mjs +0 -335
  108. package/dist/lib/browser/react-surface-FYRVOQGA.mjs.map +0 -7
  109. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  110. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  111. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  112. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  113. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  114. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  115. package/dist/types/src/components/Icon.stories.d.ts +0 -14
  116. package/dist/types/src/components/Icon.stories.d.ts.map +0 -1
  117. package/src/capabilities/app-graph-builder.ts +0 -156
  118. package/src/capabilities/intent-resolver.ts +0 -27
  119. package/src/capabilities/react-surface.tsx +0 -85
  120. package/src/components/Icon.stories.tsx +0 -110
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAQA,OAAO,EAAgB,KAAK,aAAa,EAA6C,MAAM,qBAAqB,CAAC;yBAKlG,SAAS,aAAa;AAAtC,wBA8IK"}
@@ -1,4 +0,0 @@
1
- import { Capabilities } from '@dxos/app-framework';
2
- declare const _default: () => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Capabilities.IntentResolver>>;
3
- export default _default;
4
- //# sourceMappingURL=intent-resolver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,YAAY,EAMb,MAAM,qBAAqB,CAAC;;AAI7B,wBAWI"}
@@ -1,4 +0,0 @@
1
- import { Capabilities } from '@dxos/app-framework';
2
- declare const _default: () => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Capabilities.ReactSurface>>;
3
- export default _default;
4
- //# sourceMappingURL=react-surface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAwD,MAAM,qBAAqB,CAAC;;AAKzG,wBAyEK"}
@@ -1,14 +0,0 @@
1
- import { type StoryObj } from '@storybook/react-vite';
2
- import React from 'react';
3
- export declare const Default: Story;
4
- declare const meta: {
5
- title: string;
6
- render: () => React.JSX.Element;
7
- decorators: import("@storybook/react").Decorator[];
8
- parameters: {
9
- layout: string;
10
- };
11
- };
12
- export default meta;
13
- type Story = StoryObj<typeof meta>;
14
- //# sourceMappingURL=Icon.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Icon.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAuD,MAAM,OAAO,CAAC;AA0F5E,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,QAAA,MAAM,IAAI;;;;;;;CAOuB,CAAC;AAElC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC"}
@@ -1,156 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { Rx } from '@effect-rx/rx-react';
6
- import * as Function from 'effect/Function';
7
- import * as Option from 'effect/Option';
8
-
9
- import { Capabilities, type PluginContext, SettingsAction, contributes, createIntent } from '@dxos/app-framework';
10
- import { createExtension } from '@dxos/plugin-graph';
11
-
12
- import { REGISTRY_ID, REGISTRY_KEY, meta } from '../meta';
13
-
14
- export default (context: PluginContext) =>
15
- contributes(Capabilities.AppGraphBuilder, [
16
- createExtension({
17
- id: meta.id,
18
- actions: (node) =>
19
- Rx.make((get) =>
20
- Function.pipe(
21
- get(node),
22
- Option.flatMap((node) => (node.id === 'root' ? Option.some(node) : Option.none())),
23
- Option.map((node) => [
24
- {
25
- id: meta.id,
26
- data: async () => {
27
- const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
28
- await dispatch(createIntent(SettingsAction.OpenPluginRegistry));
29
- },
30
- properties: {
31
- label: ['open plugin registry label', { ns: meta.id }],
32
- icon: 'ph--squares-four--regular',
33
- disposition: 'menu',
34
- },
35
- },
36
- ]),
37
- Option.getOrElse(() => []),
38
- ),
39
- ),
40
- }),
41
- createExtension({
42
- id: meta.id,
43
- connector: (node) =>
44
- Rx.make((get) =>
45
- Function.pipe(
46
- get(node),
47
- Option.flatMap((node) => (node.id === 'root' ? Option.some(node) : Option.none())),
48
- Option.map((node) => [
49
- {
50
- id: REGISTRY_ID,
51
- type: meta.id,
52
- properties: {
53
- label: ['plugin registry label', { ns: meta.id }],
54
- icon: 'ph--squares-four--regular',
55
- disposition: 'pin-end',
56
- testId: 'treeView.pluginRegistry',
57
- },
58
- nodes: [
59
- {
60
- id: `${REGISTRY_KEY}+all`,
61
- type: 'category',
62
- data: `${REGISTRY_KEY}+all`,
63
- properties: {
64
- label: ['all plugins label', { ns: meta.id }],
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: ['installed plugins label', { ns: meta.id }],
76
- icon: 'ph--check--regular',
77
- key: REGISTRY_KEY,
78
- testId: 'pluginRegistry.installed',
79
- },
80
- },
81
- {
82
- id: `${REGISTRY_KEY}+recommended`,
83
- type: 'category',
84
- data: `${REGISTRY_KEY}+recommended`,
85
- properties: {
86
- label: ['recommended plugins label', { ns: meta.id }],
87
- icon: 'ph--star--regular',
88
- key: REGISTRY_KEY,
89
- testId: 'pluginRegistry.recommended',
90
- },
91
- },
92
- {
93
- id: `${REGISTRY_KEY}+labs`,
94
- type: 'category',
95
- data: `${REGISTRY_KEY}+labs`,
96
- properties: {
97
- label: ['labs plugins label', { ns: meta.id }],
98
- icon: 'ph--flask--regular',
99
- key: REGISTRY_KEY,
100
- testId: 'pluginRegistry.labs',
101
- },
102
- },
103
- ],
104
- },
105
- ]),
106
- Option.getOrElse(() => []),
107
- ),
108
- ),
109
- }),
110
- createExtension({
111
- id: `${meta.id}/actions`,
112
- actions: (node) =>
113
- Rx.make((get) =>
114
- Function.pipe(
115
- get(node),
116
- Option.flatMap((node) => (node.id === REGISTRY_ID ? Option.some(node) : Option.none())),
117
- Option.map(() => [
118
- {
119
- id: `${meta.id}/load-by-url`,
120
- data: async () => {},
121
- properties: {
122
- label: ['load by url label', { ns: meta.id }],
123
- icon: 'ph--cloud-arrow-down--regular',
124
- disabled: true,
125
- },
126
- },
127
- ]),
128
- Option.getOrElse(() => []),
129
- ),
130
- ),
131
- }),
132
- createExtension({
133
- id: `${meta.id}/plugins`,
134
- connector: (node) =>
135
- Rx.make((get) =>
136
- Function.pipe(
137
- get(node),
138
- Option.flatMap((node) => (node.id === REGISTRY_ID ? Option.some(node) : Option.none())),
139
- Option.map(() => {
140
- const manager = context.getCapability(Capabilities.PluginManager);
141
- return manager.plugins.map((plugin) => ({
142
- id: plugin.meta.id.replaceAll('/', ':'),
143
- type: 'dxos.org/plugin',
144
- data: plugin,
145
- properties: {
146
- label: plugin.meta.name ?? plugin.meta.id,
147
- icon: plugin.meta.icon ?? 'ph--circle--regular',
148
- disposition: 'hidden',
149
- },
150
- }));
151
- }),
152
- Option.getOrElse(() => []),
153
- ),
154
- ),
155
- }),
156
- ]);
@@ -1,27 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import {
6
- Capabilities,
7
- LayoutAction,
8
- SettingsAction,
9
- contributes,
10
- createIntent,
11
- createResolver,
12
- } from '@dxos/app-framework';
13
-
14
- import { REGISTRY_ID } from '../meta';
15
-
16
- export default () =>
17
- contributes(
18
- Capabilities.IntentResolver,
19
- createResolver({
20
- intent: SettingsAction.OpenPluginRegistry,
21
- resolve: () => {
22
- return {
23
- intents: [createIntent(LayoutAction.SwitchWorkspace, { part: 'workspace', subject: REGISTRY_ID })],
24
- };
25
- },
26
- }),
27
- );
@@ -1,85 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import React, { useCallback, useMemo } from 'react';
6
-
7
- import { Capabilities, Plugin, contributes, createSurface, usePluginManager } from '@dxos/app-framework';
8
-
9
- import { PluginDetail, RegistryContainer } from '../components';
10
- import { REGISTRY_KEY, meta } from '../meta';
11
-
12
- export default () =>
13
- contributes(Capabilities.ReactSurface, [
14
- createSurface({
15
- id: `${meta.id}/all`,
16
- role: 'article',
17
- filter: (data): data is any => data.subject === `${REGISTRY_KEY}+all`,
18
- component: () => {
19
- const manager = usePluginManager();
20
- const filtered = useMemo(() => manager.plugins.filter(({ meta }) => !manager.core.includes(meta.id)), []);
21
-
22
- return <RegistryContainer id={`${REGISTRY_KEY}+all`} plugins={filtered} />;
23
- },
24
- }),
25
- createSurface({
26
- id: `${meta.id}/installed`,
27
- role: 'article',
28
- filter: (data): data is any => data.subject === `${REGISTRY_KEY}+installed`,
29
- component: () => {
30
- const manager = usePluginManager();
31
- const filtered = useMemo(
32
- () =>
33
- manager.plugins
34
- .filter(({ meta }) => !manager.core.includes(meta.id))
35
- .filter(({ meta }) => manager.enabled.includes(meta.id)),
36
- [],
37
- );
38
-
39
- return <RegistryContainer id={`${REGISTRY_KEY}+installed`} plugins={filtered} />;
40
- },
41
- }),
42
- createSurface({
43
- id: `${meta.id}/recommended`,
44
- role: 'article',
45
- filter: (data): data is any => data.subject === `${REGISTRY_KEY}+recommended`,
46
- component: () => {
47
- const manager = usePluginManager();
48
- const filtered = useMemo(
49
- () =>
50
- manager.plugins
51
- .filter(({ meta }) => !manager.core.includes(meta.id))
52
- .filter(({ meta }) => !meta.tags?.includes('labs')),
53
- [],
54
- );
55
-
56
- return <RegistryContainer id={`${REGISTRY_KEY}+recommended`} plugins={filtered} />;
57
- },
58
- }),
59
- createSurface({
60
- id: `${meta.id}/labs`,
61
- role: 'article',
62
- filter: (data): data is any => data.subject === `${REGISTRY_KEY}+labs`,
63
- component: () => {
64
- const manager = usePluginManager();
65
- const filtered = useMemo(() => manager.plugins.filter(({ meta }) => meta.tags?.includes('labs')), []);
66
-
67
- return <RegistryContainer id={`${REGISTRY_KEY}+labs`} plugins={filtered} />;
68
- },
69
- }),
70
- createSurface({
71
- id: `${meta.id}/plugin-details`,
72
- role: 'article',
73
- filter: (data): data is { subject: Plugin } => data.subject instanceof Plugin,
74
- component: ({ data: { subject } }) => {
75
- const manager = usePluginManager();
76
- const enabled = manager.enabled.includes(subject.meta.id);
77
- const handleEnable = useCallback(
78
- () => (enabled ? manager.disable(subject.meta.id) : manager.enable(subject.meta.id)),
79
- [manager, subject.meta.id, enabled],
80
- );
81
-
82
- return <PluginDetail plugin={subject} enabled={enabled} onEnable={handleEnable} />;
83
- },
84
- }),
85
- ]);
@@ -1,110 +0,0 @@
1
- //
2
- // Copyright 2023 DXOS.org
3
- //
4
-
5
- import { IconBase, type IconProps, type IconWeight } from '@phosphor-icons/react';
6
- import { type Meta, type StoryObj } from '@storybook/react-vite';
7
- import React, { type ReactElement, type SVGProps, forwardRef } from 'react';
8
-
9
- import { Icon } from '@dxos/react-ui';
10
- import { withTheme } from '@dxos/react-ui/testing';
11
- import { getSize, mx } from '@dxos/react-ui-theme';
12
-
13
- /**
14
- * Serializable icon props.
15
- */
16
- type StoryIconProps = {
17
- name: string;
18
- weights: Record<string, SVGProps<SVGPathElement>[]>;
19
- };
20
-
21
- /**
22
- * Create icon from serializable data.
23
- * https://github.com/phosphor-icons/react#custom-icons
24
- * https://github.com/phosphor-icons/core/tree/main/assets
25
- */
26
- const createIcon = ({ name, weights }: StoryIconProps) => {
27
- const CustomIcon = forwardRef<SVGSVGElement, IconProps>((props, ref) => (
28
- <IconBase
29
- ref={ref}
30
- {...props}
31
- weights={
32
- new Map<IconWeight, ReactElement>(
33
- Object.entries(weights).map(
34
- ([key, paths]) =>
35
- [
36
- key,
37
- <>
38
- {paths.map((props, i) => (
39
- <path key={`${key}-${i}`} {...props} />
40
- ))}
41
- </>,
42
- ] as [IconWeight, ReactElement],
43
- ),
44
- )
45
- }
46
- />
47
- ));
48
- CustomIcon.displayName = name;
49
- return CustomIcon;
50
- };
51
-
52
- const DefaultStory = () => {
53
- const CustomIcon = createIcon({
54
- name: 'GithubLogo',
55
- weights: {
56
- // https://github.com/phosphor-icons/core/tree/main/assets
57
- // <path d="M119.83,56A52,52,0,0,0,76,32a51.92,51.92,0,0,0-3.49,44.7A49.28,49.28,0,0,0,64,104v8a48,48,0,0,0,48,48h48a48,48,0,0,0,48-48v-8a49.28,49.28,0,0,0-8.51-27.3A51.92,51.92,0,0,0,196,32a52,52,0,0,0-43.83,24Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/>
58
- // <path d="M104,232V192a32,32,0,0,1,32-32h0a32,32,0,0,1,32,32v40" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/>
59
- // <path d="M104,208H72a32,32,0,0,1-32-32A32,32,0,0,0,8,144" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/>
60
- regular: [
61
- {
62
- d: 'M119.83,56A52,52,0,0,0,76,32a51.92,51.92,0,0,0-3.49,44.7A49.28,49.28,0,0,0,64,104v8a48,48,0,0,0,48,48h48a48,48,0,0,0,48-48v-8a49.28,49.28,0,0,0-8.51-27.3A51.92,51.92,0,0,0,196,32a52,52,0,0,0-43.83,24Z',
63
- fill: 'none',
64
- stroke: 'currentColor',
65
- strokeLinecap: 'round',
66
- strokeLinejoin: 'round',
67
- strokeWidth: '16',
68
- },
69
- {
70
- d: 'M104,232V192a32,32,0,0,1,32-32h0a32,32,0,0,1,32,32v40',
71
- fill: 'none',
72
- stroke: 'currentColor',
73
- strokeLinecap: 'round',
74
- strokeLinejoin: 'round',
75
- strokeWidth: '16',
76
- },
77
- {
78
- d: 'M104,208H72a32,32,0,0,1-32-32A32,32,0,0,0,8,144',
79
- fill: 'none',
80
- stroke: 'currentColor',
81
- strokeLinecap: 'round',
82
- strokeLinejoin: 'round',
83
- strokeWidth: '16',
84
- },
85
- ],
86
- },
87
- });
88
-
89
- return (
90
- <div className='flex gap-4 p-8 ring'>
91
- <CustomIcon weight={'regular'} className={mx(getSize(8))} />
92
- <Icon icon='ph--github-logo--regular' classNames={mx(getSize(8))} />
93
- </div>
94
- );
95
- };
96
-
97
- export const Default: Story = {};
98
-
99
- const meta = {
100
- title: 'plugins/plugin-registry/Icon',
101
- render: DefaultStory,
102
- decorators: [withTheme],
103
- parameters: {
104
- layout: 'centered',
105
- },
106
- } satisfies Meta<typeof IconBase>;
107
-
108
- export default meta;
109
-
110
- type Story = StoryObj<typeof meta>;