@dxos/plugin-registry 0.8.4-main.f9ba587 → 0.8.4-main.fcc0d83b33

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 (173) hide show
  1. package/dist/lib/browser/cli/index.mjs +179 -0
  2. package/dist/lib/browser/cli/index.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +37 -63
  4. package/dist/lib/browser/index.mjs.map +4 -4
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/translations.mjs +35 -0
  7. package/dist/lib/browser/translations.mjs.map +7 -0
  8. package/dist/lib/node-esm/cli/index.mjs +181 -0
  9. package/dist/lib/node-esm/cli/index.mjs.map +7 -0
  10. package/dist/lib/node-esm/index.mjs +37 -62
  11. package/dist/lib/node-esm/index.mjs.map +4 -4
  12. package/dist/lib/node-esm/meta.json +1 -1
  13. package/dist/lib/node-esm/translations.mjs +37 -0
  14. package/dist/lib/node-esm/translations.mjs.map +7 -0
  15. package/dist/types/src/RegistryPlugin.d.ts +2 -1
  16. package/dist/types/src/RegistryPlugin.d.ts.map +1 -1
  17. package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
  18. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  19. package/dist/types/src/capabilities/index.d.ts +6 -3
  20. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  21. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  22. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  23. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  24. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  25. package/dist/types/src/capabilities/state.d.ts +7 -0
  26. package/dist/types/src/capabilities/state.d.ts.map +1 -0
  27. package/dist/types/src/cli/commands/disable.d.ts +11 -0
  28. package/dist/types/src/cli/commands/disable.d.ts.map +1 -0
  29. package/dist/types/src/cli/commands/enable.d.ts +11 -0
  30. package/dist/types/src/cli/commands/enable.d.ts.map +1 -0
  31. package/dist/types/src/cli/commands/index.d.ts +3 -0
  32. package/dist/types/src/cli/commands/index.d.ts.map +1 -0
  33. package/dist/types/src/cli/commands/list.d.ts +7 -0
  34. package/dist/types/src/cli/commands/list.d.ts.map +1 -0
  35. package/dist/types/src/cli/commands/util.d.ts +11 -0
  36. package/dist/types/src/cli/commands/util.d.ts.map +1 -0
  37. package/dist/types/src/cli/index.d.ts +3 -0
  38. package/dist/types/src/cli/index.d.ts.map +1 -0
  39. package/dist/types/src/cli/plugin.d.ts +3 -0
  40. package/dist/types/src/cli/plugin.d.ts.map +1 -0
  41. package/dist/types/src/cli/storage.d.ts +18 -0
  42. package/dist/types/src/cli/storage.d.ts.map +1 -0
  43. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts +22 -0
  44. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -0
  45. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +42 -0
  46. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts.map +1 -0
  47. package/dist/types/src/components/PluginDetail/index.d.ts +2 -0
  48. package/dist/types/src/components/PluginDetail/index.d.ts.map +1 -0
  49. package/dist/types/src/components/PluginList/PluginItem.d.ts +26 -0
  50. package/dist/types/src/components/PluginList/PluginItem.d.ts.map +1 -0
  51. package/dist/types/src/components/PluginList/PluginList.d.ts +13 -0
  52. package/dist/types/src/components/PluginList/PluginList.d.ts.map +1 -0
  53. package/dist/types/src/components/PluginList/PluginList.stories.d.ts +41 -0
  54. package/dist/types/src/components/PluginList/PluginList.stories.d.ts.map +1 -0
  55. package/dist/types/src/components/PluginList/index.d.ts +2 -0
  56. package/dist/types/src/components/PluginList/index.d.ts.map +1 -0
  57. package/dist/types/src/components/index.d.ts +0 -1
  58. package/dist/types/src/components/index.d.ts.map +1 -1
  59. package/dist/types/src/containers/CommunityRegistry/CommunityRegistry.d.ts +8 -0
  60. package/dist/types/src/containers/CommunityRegistry/CommunityRegistry.d.ts.map +1 -0
  61. package/dist/types/src/containers/CommunityRegistry/index.d.ts +2 -0
  62. package/dist/types/src/containers/CommunityRegistry/index.d.ts.map +1 -0
  63. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts +4 -0
  64. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts.map +1 -0
  65. package/dist/types/src/containers/LoadPluginDialog/index.d.ts +2 -0
  66. package/dist/types/src/containers/LoadPluginDialog/index.d.ts.map +1 -0
  67. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts +7 -0
  68. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts.map +1 -0
  69. package/dist/types/src/containers/PluginArticle/index.d.ts +2 -0
  70. package/dist/types/src/containers/PluginArticle/index.d.ts.map +1 -0
  71. package/dist/types/src/containers/PluginRegistry/PluginRegistry.d.ts +14 -0
  72. package/dist/types/src/containers/PluginRegistry/PluginRegistry.d.ts.map +1 -0
  73. package/dist/types/src/containers/PluginRegistry/index.d.ts +2 -0
  74. package/dist/types/src/containers/PluginRegistry/index.d.ts.map +1 -0
  75. package/dist/types/src/containers/index.d.ts +7 -0
  76. package/dist/types/src/containers/index.d.ts.map +1 -0
  77. package/dist/types/src/hooks/index.d.ts +3 -0
  78. package/dist/types/src/hooks/index.d.ts.map +1 -0
  79. package/dist/types/src/hooks/use-auto-tags.d.ts +20 -0
  80. package/dist/types/src/hooks/use-auto-tags.d.ts.map +1 -0
  81. package/dist/types/src/hooks/use-community-plugins.d.ts +16 -0
  82. package/dist/types/src/hooks/use-community-plugins.d.ts.map +1 -0
  83. package/dist/types/src/meta.d.ts +7 -4
  84. package/dist/types/src/meta.d.ts.map +1 -1
  85. package/dist/types/src/operations/index.d.ts +3 -0
  86. package/dist/types/src/operations/index.d.ts.map +1 -0
  87. package/dist/types/src/operations/open-plugin-registry.d.ts +5 -0
  88. package/dist/types/src/operations/open-plugin-registry.d.ts.map +1 -0
  89. package/dist/types/src/translations.d.ts +22 -16
  90. package/dist/types/src/translations.d.ts.map +1 -1
  91. package/dist/types/src/types.d.ts +14 -1
  92. package/dist/types/src/types.d.ts.map +1 -1
  93. package/dist/types/tsconfig.tsbuildinfo +1 -1
  94. package/package.json +72 -38
  95. package/src/RegistryPlugin.tsx +17 -27
  96. package/src/capabilities/app-graph-builder.ts +173 -135
  97. package/src/capabilities/index.ts +9 -4
  98. package/src/capabilities/operation-handler.ts +16 -0
  99. package/src/capabilities/react-surface.tsx +108 -78
  100. package/src/capabilities/state.ts +40 -0
  101. package/src/cli/commands/disable.ts +47 -0
  102. package/src/cli/commands/enable.ts +44 -0
  103. package/src/cli/commands/index.ts +14 -0
  104. package/src/cli/commands/list.ts +41 -0
  105. package/src/cli/commands/util.ts +24 -0
  106. package/src/cli/index.ts +6 -0
  107. package/src/cli/plugin.ts +17 -0
  108. package/src/cli/storage.ts +50 -0
  109. package/src/components/PluginDetail/PluginDetail.stories.tsx +44 -0
  110. package/src/components/PluginDetail/PluginDetail.tsx +106 -0
  111. package/src/components/PluginDetail/index.ts +5 -0
  112. package/src/components/PluginList/PluginItem.tsx +187 -0
  113. package/src/components/PluginList/PluginList.stories.tsx +87 -0
  114. package/src/components/PluginList/PluginList.tsx +29 -0
  115. package/src/components/PluginList/index.ts +5 -0
  116. package/src/components/index.ts +0 -1
  117. package/src/containers/CommunityRegistry/CommunityRegistry.tsx +181 -0
  118. package/src/containers/CommunityRegistry/index.ts +5 -0
  119. package/src/containers/LoadPluginDialog/LoadPluginDialog.tsx +86 -0
  120. package/src/containers/LoadPluginDialog/index.ts +5 -0
  121. package/src/containers/PluginArticle/PluginArticle.tsx +73 -0
  122. package/src/containers/PluginArticle/index.ts +5 -0
  123. package/src/containers/PluginRegistry/PluginRegistry.tsx +98 -0
  124. package/src/containers/PluginRegistry/index.ts +5 -0
  125. package/src/containers/index.ts +11 -0
  126. package/src/hooks/index.ts +6 -0
  127. package/src/hooks/use-auto-tags.ts +52 -0
  128. package/src/hooks/use-community-plugins.ts +35 -0
  129. package/src/meta.ts +19 -9
  130. package/src/operations/index.ts +7 -0
  131. package/src/operations/open-plugin-registry.ts +21 -0
  132. package/src/translations.ts +22 -15
  133. package/src/types.ts +30 -1
  134. package/dist/lib/browser/app-graph-builder-LKQBQDUA.mjs +0 -161
  135. package/dist/lib/browser/app-graph-builder-LKQBQDUA.mjs.map +0 -7
  136. package/dist/lib/browser/chunk-AEBASNOI.mjs +0 -16
  137. package/dist/lib/browser/chunk-AEBASNOI.mjs.map +0 -7
  138. package/dist/lib/browser/intent-resolver-W67CIJI3.mjs +0 -23
  139. package/dist/lib/browser/intent-resolver-W67CIJI3.mjs.map +0 -7
  140. package/dist/lib/browser/react-surface-SRFVJQKE.mjs +0 -335
  141. package/dist/lib/browser/react-surface-SRFVJQKE.mjs.map +0 -7
  142. package/dist/lib/node-esm/app-graph-builder-N44OGVQA.mjs +0 -162
  143. package/dist/lib/node-esm/app-graph-builder-N44OGVQA.mjs.map +0 -7
  144. package/dist/lib/node-esm/chunk-R3GXMWPJ.mjs +0 -18
  145. package/dist/lib/node-esm/chunk-R3GXMWPJ.mjs.map +0 -7
  146. package/dist/lib/node-esm/intent-resolver-M2CBVUVQ.mjs +0 -24
  147. package/dist/lib/node-esm/intent-resolver-M2CBVUVQ.mjs.map +0 -7
  148. package/dist/lib/node-esm/react-surface-5XAG2EYX.mjs +0 -336
  149. package/dist/lib/node-esm/react-surface-5XAG2EYX.mjs.map +0 -7
  150. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  151. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  152. package/dist/types/src/components/Icon.stories.d.ts +0 -6
  153. package/dist/types/src/components/Icon.stories.d.ts.map +0 -1
  154. package/dist/types/src/components/PluginDetail.d.ts +0 -9
  155. package/dist/types/src/components/PluginDetail.d.ts.map +0 -1
  156. package/dist/types/src/components/PluginDetail.stories.d.ts +0 -8
  157. package/dist/types/src/components/PluginDetail.stories.d.ts.map +0 -1
  158. package/dist/types/src/components/PluginItem.d.ts +0 -13
  159. package/dist/types/src/components/PluginItem.d.ts.map +0 -1
  160. package/dist/types/src/components/PluginList.d.ts +0 -8
  161. package/dist/types/src/components/PluginList.d.ts.map +0 -1
  162. package/dist/types/src/components/PluginList.stories.d.ts +0 -11
  163. package/dist/types/src/components/PluginList.stories.d.ts.map +0 -1
  164. package/dist/types/src/components/RegistryContainer.d.ts +0 -7
  165. package/dist/types/src/components/RegistryContainer.d.ts.map +0 -1
  166. package/src/capabilities/intent-resolver.ts +0 -27
  167. package/src/components/Icon.stories.tsx +0 -107
  168. package/src/components/PluginDetail.stories.tsx +0 -45
  169. package/src/components/PluginDetail.tsx +0 -63
  170. package/src/components/PluginItem.tsx +0 -119
  171. package/src/components/PluginList.stories.tsx +0 -82
  172. package/src/components/PluginList.tsx +0 -26
  173. package/src/components/RegistryContainer.tsx +0 -84
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disable.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/disable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAK/C,eAAO,MAAM,OAAO;QAAsC,MAAM;2MAuB9D,CAAC;AAEH,eAAO,MAAM,OAAO;;EAMgC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import * as Command from '@effect/cli/Command';
2
+ import * as Effect from 'effect/Effect';
3
+ import { Plugin } from '@dxos/app-framework';
4
+ import { CommandConfig } from '@dxos/cli-util';
5
+ export declare const handler: (args_0: {
6
+ id: string;
7
+ }) => Effect.Effect<void, Error | import("@effect/platform/Error").PlatformError, CommandConfig | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path | Plugin.Service>;
8
+ export declare const enable: Command.Command<"enable", CommandConfig | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path | Plugin.Service, Error | import("@effect/platform/Error").PlatformError, {
9
+ readonly id: string;
10
+ }>;
11
+ //# sourceMappingURL=enable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/enable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAK/C,eAAO,MAAM,OAAO;QAAsC,MAAM;2MAoB9D,CAAC;AAEH,eAAO,MAAM,MAAM;;EAMgC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import * as Command from '@effect/cli/Command';
2
+ export declare const plugin: Command.Command<any, any, any, any>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAM/C,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAGtD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import * as Command from '@effect/cli/Command';
2
+ import * as Effect from 'effect/Effect';
3
+ import { Plugin } from '@dxos/app-framework';
4
+ import { CommandConfig } from '@dxos/cli-util';
5
+ export declare const handler: () => Effect.Effect<void, never, CommandConfig | Plugin.Service>;
6
+ export declare const list: Command.Command<"list", CommandConfig | Plugin.Service, never, {}>;
7
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/list.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAa,MAAM,gBAAgB,CAAC;AAI1D,eAAO,MAAM,OAAO,kEAyBlB,CAAC;AAEH,eAAO,MAAM,IAAI,oEAAiG,CAAC"}
@@ -0,0 +1,11 @@
1
+ export type FormattedPlugin = {
2
+ id: string;
3
+ name: string;
4
+ enabled: boolean;
5
+ core: boolean;
6
+ };
7
+ /**
8
+ * Pretty prints a plugin with ANSI colors.
9
+ */
10
+ export declare const printPlugin: (plugin: FormattedPlugin) => import("@effect/printer/Doc").Doc<any>;
11
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/util.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,WAAY,eAAe,2CAOlD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './plugin';
2
+ export * from './storage';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const RegistryPlugin: Plugin.PluginFactory<void>;
3
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/cli/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO7C,eAAO,MAAM,cAAc,4BAK1B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import * as FileSystem from '@effect/platform/FileSystem';
2
+ import * as Path from '@effect/platform/Path';
3
+ import * as Effect from 'effect/Effect';
4
+ /**
5
+ * Load enabled plugins from plugins/<profile>.yml (sibling to profile/).
6
+ * Returns the list of enabled plugin IDs, or an empty array if the file doesn't exist.
7
+ */
8
+ export declare const loadEnabledPlugins: (args_0: {
9
+ profile: string;
10
+ }) => Effect.Effect<string[] | readonly string[], import("@effect/platform/Error").BadArgument, FileSystem.FileSystem>;
11
+ /**
12
+ * Save enabled plugins to plugins/<profile>.yml.
13
+ */
14
+ export declare const saveEnabledPlugins: (args_0: {
15
+ profile: string;
16
+ enabled: string[];
17
+ }) => Effect.Effect<void, import("@effect/platform/Error").PlatformError, FileSystem.FileSystem | Path.Path>;
18
+ //# sourceMappingURL=storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../src/cli/storage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAaxC;;;GAGG;AACH,eAAO,MAAM,kBAAkB;aAAgD,MAAM;sHAcnF,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;aAAyD,MAAM;aAAW,MAAM,EAAE;4GAO/G,CAAC"}
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { type Plugin } from '@dxos/app-framework';
3
+ export type PluginDetailProps = {
4
+ plugin: Plugin.Plugin;
5
+ enabled?: boolean;
6
+ onEnabledChange?: (enabled: boolean) => void;
7
+ /**
8
+ * When provided, an Uninstall button is rendered. Leave undefined for core
9
+ * or non-removable plugins.
10
+ */
11
+ onUninstall?: () => void;
12
+ /**
13
+ * When provided, the plugin is not installed and an Install button is shown
14
+ * in place of the enable Switch.
15
+ */
16
+ onInstall?: () => void;
17
+ installing?: boolean;
18
+ };
19
+ export declare const PluginDetail: React.ForwardRefExoticComponent<Omit<PluginDetailProps, "className"> & {
20
+ classNames?: import("@dxos/ui-types").ClassNameValue;
21
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
22
+ //# sourceMappingURL=PluginDetail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginDetail.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginDetail/PluginDetail.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAMlD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,YAAY;;2HA0ExB,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("react").ForwardRefExoticComponent<Omit<import("./PluginDetail").PluginDetailProps, "className"> & {
5
+ classNames?: import("@dxos/ui-types").ClassNameValue;
6
+ } & Pick<import("react").HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & import("react").RefAttributes<HTMLDivElement>>;
7
+ decorators: import("@storybook/react").Decorator[];
8
+ parameters: {
9
+ layout: string;
10
+ translations: [{
11
+ readonly 'en-US': {
12
+ readonly [x: string]: {
13
+ readonly 'plugin.name': 'Registry';
14
+ readonly 'details.label': 'Details';
15
+ readonly 'home-page.label': 'Website';
16
+ readonly 'source.label': 'Source';
17
+ readonly 'plugin-registry.label': 'Plugin Registry';
18
+ readonly 'plugin-settings.label': 'Plugin Settings';
19
+ readonly 'official-plugins.label': 'Official';
20
+ readonly 'installed-plugins.label': 'Enabled';
21
+ readonly 'recommended-plugins.label': 'Recommended';
22
+ readonly 'labs-plugins.label': 'Labs';
23
+ readonly 'community-plugins.label': 'Community';
24
+ readonly 'load-by-url.label': 'Load from URL';
25
+ readonly 'load-by-url-dialog.title': 'Load Plugin from URL';
26
+ readonly 'plugin-url.label': 'Plugin URL';
27
+ readonly 'load-plugin.label': 'Load Plugin';
28
+ readonly 'loading.label': 'Loading...';
29
+ readonly 'coming-soon.label': 'Coming soon!';
30
+ readonly 'open-plugin-registry.label': 'Open plugin registry';
31
+ readonly 'install.label': 'Install';
32
+ readonly 'installing.label': 'Installing\u2026';
33
+ readonly 'uninstall.label': 'Uninstall';
34
+ };
35
+ };
36
+ }];
37
+ };
38
+ };
39
+ export default meta;
40
+ type Story = StoryObj<typeof meta>;
41
+ export declare const Default: Story;
42
+ //# sourceMappingURL=PluginDetail.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginDetail.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginDetail/PluginDetail.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAUjE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAerB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './PluginDetail';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginDetail/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { type Plugin } from '@dxos/app-framework';
3
+ export type PluginItemProps = {
4
+ plugin: Plugin.Plugin;
5
+ /** Ids of plugins currently installed (loaded into the manager). */
6
+ installed?: readonly string[];
7
+ /** Ids of plugins whose install is in flight. */
8
+ installing?: readonly string[];
9
+ enabled?: readonly string[];
10
+ /**
11
+ * Derived tags (e.g. `community`, `local`) to display alongside the plugin's own meta.tags.
12
+ * Not persisted to plugin meta; computed per-render by the container.
13
+ */
14
+ extraTags?: readonly string[];
15
+ onClick?: (id: string) => void;
16
+ onChange?: (id: string, enabled: boolean) => void;
17
+ /**
18
+ * Install handler. When provided and the plugin is not installed, an Install button
19
+ * is rendered in place of the enable switch.
20
+ */
21
+ onInstall?: (id: string) => void;
22
+ hasSettings?: (id: string) => boolean;
23
+ onSettings?: (id: string) => void;
24
+ };
25
+ export declare const PluginItem: ({ plugin, installed, installing, enabled, extraTags, onClick, onChange, onInstall, hasSettings: hasSettingsProp, onSettings, }: PluginItemProps) => React.JSX.Element;
26
+ //# sourceMappingURL=PluginItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginList/PluginItem.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAmBlD,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;IACtB,oEAAoE;IACpE,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,iDAAiD;IACjD,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;IACtC,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,UAAU,mIAWpB,eAAe,sBAoHjB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { type Plugin } from '@dxos/app-framework';
3
+ import { type PluginItemProps } from './PluginItem';
4
+ export type PluginListProps = Omit<PluginItemProps, 'plugin' | 'extraTags'> & {
5
+ plugins?: readonly Plugin.Plugin[];
6
+ /**
7
+ * Map from plugin id → extra tags to display (e.g. `community`, `local`).
8
+ * Computed by the container; not persisted to plugin meta.
9
+ */
10
+ extraTagsById?: Record<string, readonly string[]>;
11
+ };
12
+ export declare const PluginList: ({ plugins, extraTagsById, ...props }: PluginListProps) => React.JSX.Element;
13
+ //# sourceMappingURL=PluginList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginList.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginList/PluginList.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEhE,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,WAAW,CAAC,GAAG;IAC5E,OAAO,CAAC,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC;IACnC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,UAAU,yCAA+C,eAAe,sBAQpF,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ plugins, extraTagsById, ...props }: import("./PluginList").PluginListProps) => React.JSX.Element;
6
+ render: () => React.JSX.Element;
7
+ parameters: {
8
+ translations: [{
9
+ readonly 'en-US': {
10
+ readonly [x: string]: {
11
+ readonly 'plugin.name': 'Registry';
12
+ readonly 'details.label': 'Details';
13
+ readonly 'home-page.label': 'Website';
14
+ readonly 'source.label': 'Source';
15
+ readonly 'plugin-registry.label': 'Plugin Registry';
16
+ readonly 'plugin-settings.label': 'Plugin Settings';
17
+ readonly 'official-plugins.label': 'Official';
18
+ readonly 'installed-plugins.label': 'Enabled';
19
+ readonly 'recommended-plugins.label': 'Recommended';
20
+ readonly 'labs-plugins.label': 'Labs';
21
+ readonly 'community-plugins.label': 'Community';
22
+ readonly 'load-by-url.label': 'Load from URL';
23
+ readonly 'load-by-url-dialog.title': 'Load Plugin from URL';
24
+ readonly 'plugin-url.label': 'Plugin URL';
25
+ readonly 'load-plugin.label': 'Load Plugin';
26
+ readonly 'loading.label': 'Loading...';
27
+ readonly 'coming-soon.label': 'Coming soon!';
28
+ readonly 'open-plugin-registry.label': 'Open plugin registry';
29
+ readonly 'install.label': 'Install';
30
+ readonly 'installing.label': 'Installing\u2026';
31
+ readonly 'uninstall.label': 'Uninstall';
32
+ };
33
+ };
34
+ }];
35
+ };
36
+ };
37
+ export default meta;
38
+ type Story = StoryObj<typeof meta>;
39
+ export declare const Default: Story;
40
+ export declare const FullScreen: Story;
41
+ //# sourceMappingURL=PluginList.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginList.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginList/PluginList.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAwDxC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOyB,CAAC;eAErB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './PluginList';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/PluginList/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC"}
@@ -1,4 +1,3 @@
1
1
  export * from './PluginDetail';
2
2
  export * from './PluginList';
3
- export * from './RegistryContainer';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export type CommunityRegistryProps = {
3
+ id: string;
4
+ };
5
+ export declare const CommunityRegistry: React.ForwardRefExoticComponent<Omit<CommunityRegistryProps, "className"> & {
6
+ classNames?: import("@dxos/ui-types").ClassNameValue;
7
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
8
+ //# sourceMappingURL=CommunityRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommunityRegistry.d.ts","sourceRoot":"","sources":["../../../../../src/containers/CommunityRegistry/CommunityRegistry.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAkC9D,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,iBAAiB;;2HAsI7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { CommunityRegistry as default, CommunityRegistry } from './CommunityRegistry';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/CommunityRegistry/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,IAAI,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const LOAD_PLUGIN_DIALOG: string;
3
+ export declare const LoadPluginDialog: () => React.JSX.Element;
4
+ //# sourceMappingURL=LoadPluginDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadPluginDialog.d.ts","sourceRoot":"","sources":["../../../../../src/containers/LoadPluginDialog/LoadPluginDialog.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAQ7D,eAAO,MAAM,kBAAkB,QAAgC,CAAC;AAEhE,eAAO,MAAM,gBAAgB,yBAsE5B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { LoadPluginDialog as default } from './LoadPluginDialog';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/LoadPluginDialog/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { type Plugin } from '@dxos/app-framework';
3
+ export type PluginArticleProps = {
4
+ subject: Plugin.Plugin;
5
+ };
6
+ export declare const PluginArticle: ({ subject: plugin }: PluginArticleProps) => React.JSX.Element;
7
+ //# sourceMappingURL=PluginArticle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PluginArticle/PluginArticle.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AASlD,MAAM,MAAM,kBAAkB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAA;CAAE,CAAC;AAE5D,eAAO,MAAM,aAAa,wBAAyB,kBAAkB,sBAqDpE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { PluginArticle as default } from './PluginArticle';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PluginArticle/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { type Plugin } from '@dxos/app-framework';
3
+ export type PluginRegistryProps = {
4
+ id: string;
5
+ plugins: Plugin.Plugin[];
6
+ /**
7
+ * Map from plugin id → display-only tags (e.g. `community`, `local`) computed by the caller.
8
+ */
9
+ extraTagsById?: Record<string, readonly string[]>;
10
+ };
11
+ export declare const PluginRegistry: React.ForwardRefExoticComponent<Omit<PluginRegistryProps, "className"> & {
12
+ classNames?: import("@dxos/ui-types").ClassNameValue;
13
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
14
+ //# sourceMappingURL=PluginRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PluginRegistry.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PluginRegistry/PluginRegistry.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAclD,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;IACzB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,cAAc;;2HAgE1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { PluginRegistry as default } from './PluginRegistry';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PluginRegistry/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type ComponentType } from 'react';
2
+ export { LOAD_PLUGIN_DIALOG } from './LoadPluginDialog/LoadPluginDialog';
3
+ export declare const CommunityRegistry: ComponentType<any>;
4
+ export declare const LoadPluginDialog: ComponentType<any>;
5
+ export declare const PluginArticle: ComponentType<any>;
6
+ export declare const PluginRegistry: ComponentType<any>;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,eAAO,MAAM,iBAAiB,EAAE,aAAa,CAAC,GAAG,CAA6C,CAAC;AAC/F,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,GAAG,CAA4C,CAAC;AAC7F,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,GAAG,CAAyC,CAAC;AACvF,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,GAAG,CAA0C,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './use-auto-tags';
2
+ export * from './use-community-plugins';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { type PluginEntry } from '@dxos/protocols';
2
+ /**
3
+ * Auto-tags that are derived at display time rather than persisted to `Plugin.Meta`.
4
+ * - `community`: plugin id appears in the community registry manifest.
5
+ * - `local`: plugin was loaded from a `localhost` / `127.0.0.1` / `::1` URL.
6
+ */
7
+ export type AutoTagsMap = Record<string, readonly string[]>;
8
+ /**
9
+ * Computes the per-plugin-id extra tags the UI should display.
10
+ *
11
+ * Reads the persisted remote-plugin entries synchronously to derive `local`, and
12
+ * adds `community` for any plugin id found in the supplied community manifest entries.
13
+ */
14
+ export declare const useAutoTags: (communityEntries: readonly PluginEntry[]) => AutoTagsMap;
15
+ /**
16
+ * Returns the set of plugin ids known to originate from a remote URL (not bundled).
17
+ * Used to filter the Official/Recommended sections so third-party plugins are excluded.
18
+ */
19
+ export declare const useRemotePluginIds: () => ReadonlySet<string>;
20
+ //# sourceMappingURL=use-auto-tags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-auto-tags.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-auto-tags.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,WAAW,qBAAsB,SAAS,WAAW,EAAE,KAAG,WAsB/C,CAAC;AAEzB;;;GAGG;AACH,eAAO,MAAM,kBAAkB,QAAO,WAAW,CAAC,MAAM,CAC2B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { type EdgeHttpClient } from '@dxos/edge-client';
3
+ import { type PluginEntry } from '@dxos/protocols';
4
+ import { type CommunityPluginsState } from '#types';
5
+ /**
6
+ * Fetches the community plugin catalog from the Edge registry service and
7
+ * filters out unhealthy entries.
8
+ */
9
+ export declare const loadCommunityPlugins: (client: EdgeHttpClient) => Effect.Effect<readonly PluginEntry[], Error>;
10
+ /**
11
+ * Reads the community plugin catalog from the registry state capability. The
12
+ * catalog is loaded once at plugin startup so this hook is purely reactive.
13
+ * Returns the empty/loading state until the state capability activates.
14
+ */
15
+ export declare const useCommunityPlugins: () => CommunityPluginsState;
16
+ //# sourceMappingURL=use-community-plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-community-plugins.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-community-plugins.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAAwB,KAAK,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,oBAAoB,WAAY,cAAc,KAAG,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,EAAE,EAAE,KAAK,CAInB,CAAC;AAIvF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAAO,qBAGtC,CAAC"}
@@ -1,6 +1,9 @@
1
- import { type PluginMeta } from '@dxos/app-framework';
2
- export declare const REGISTRY_PLUGIN = "dxos.org/plugin/registry";
3
- export declare const REGISTRY_ID = "!dxos:plugin-registry";
1
+ import { type Plugin } from '@dxos/app-framework';
2
+ export declare const REGISTRY_ID: string;
4
3
  export declare const REGISTRY_KEY = "plugin-registry";
5
- export declare const meta: PluginMeta;
4
+ /** Build a registry category node ID. */
5
+ export declare const registryCategoryId: (category: string) => string;
6
+ /** Qualified graph path to a specific plugin node. */
7
+ export declare const getPluginPath: (pluginId: string) => string;
8
+ export declare const meta: Plugin.Meta;
6
9
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAK1D,eAAO,MAAM,WAAW,0BAA0B,CAAC;AACnD,eAAO,MAAM,YAAY,oBAAoB,CAAC;AAE9C,eAAO,MAAM,IAAI,EAAE,UAGlB,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAIlD,eAAO,MAAM,WAAW,QAA4C,CAAC;AACrE,eAAO,MAAM,YAAY,oBAAoB,CAAC;AAK9C,yCAAyC;AACzC,eAAO,MAAM,kBAAkB,aAAc,MAAM,KAAG,MAA2D,CAAC;AAElH,sDAAsD;AACtD,eAAO,MAAM,aAAa,aAAc,MAAM,KAAG,MAA2C,CAAC;AAE7F,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAOzB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { OperationHandlerSet } from '@dxos/compute';
2
+ export declare const RegistryOperationHandlerSet: OperationHandlerSet.OperationHandlerSet;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,2BAA2B,yCAAmE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { SettingsOperation } from '@dxos/app-toolkit';
2
+ import { Operation } from '@dxos/compute';
3
+ declare const handler: Operation.WithHandler<typeof SettingsOperation.OpenPluginRegistry>;
4
+ export default handler;
5
+ //# sourceMappingURL=open-plugin-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-plugin-registry.d.ts","sourceRoot":"","sources":["../../../../src/operations/open-plugin-registry.ts"],"names":[],"mappings":"AAMA,OAAO,EAAmB,iBAAiB,EAAgB,MAAM,mBAAmB,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,kBAAkB,CAO7E,CAAC;eAEW,OAAO"}
@@ -1,21 +1,27 @@
1
- import { meta } from './meta';
2
1
  export declare const translations: [{
3
2
  readonly 'en-US': {
4
- readonly [meta.id]: {
5
- readonly 'plugin name': "Registry";
6
- readonly 'details label': "Details";
7
- readonly 'home page label': "Website";
8
- readonly 'source label': "Source";
9
- readonly 'plugin registry label': "Plugin Registry";
10
- readonly 'all plugins label': "All";
11
- readonly 'installed plugins label': "Enabled";
12
- readonly 'recommended plugins label': "Recommended";
13
- readonly 'labs plugins label': "Labs";
14
- readonly 'community plugins label': "Community";
15
- readonly 'load by url label': "Load by URL (soon)";
16
- readonly 'coming soon label': "Coming soon!";
17
- readonly 'open plugin registry label': "Open plugin registry";
18
- readonly 'settings label': "Settings";
3
+ readonly [x: string]: {
4
+ readonly 'plugin.name': 'Registry';
5
+ readonly 'details.label': 'Details';
6
+ readonly 'home-page.label': 'Website';
7
+ readonly 'source.label': 'Source';
8
+ readonly 'plugin-registry.label': 'Plugin Registry';
9
+ readonly 'plugin-settings.label': 'Plugin Settings';
10
+ readonly 'official-plugins.label': 'Official';
11
+ readonly 'installed-plugins.label': 'Enabled';
12
+ readonly 'recommended-plugins.label': 'Recommended';
13
+ readonly 'labs-plugins.label': 'Labs';
14
+ readonly 'community-plugins.label': 'Community';
15
+ readonly 'load-by-url.label': 'Load from URL';
16
+ readonly 'load-by-url-dialog.title': 'Load Plugin from URL';
17
+ readonly 'plugin-url.label': 'Plugin URL';
18
+ readonly 'load-plugin.label': 'Load Plugin';
19
+ readonly 'loading.label': 'Loading...';
20
+ readonly 'coming-soon.label': 'Coming soon!';
21
+ readonly 'open-plugin-registry.label': 'Open plugin registry';
22
+ readonly 'install.label': 'Install';
23
+ readonly 'installing.label': 'Installing\u2026';
24
+ readonly 'uninstall.label': 'Uninstall';
19
25
  };
20
26
  };
21
27
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;UAeR;;EAGwB,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;oCAIF,UAAU;sCACR,SAAS;wCACP,SAAS;qCACZ,QAAQ;8CACC,iBAAiB;8CACjB,iBAAiB;+CAChB,UAAU;gDACT,SAAS;kDACP,aAAa;2CACpB,MAAM;gDACD,WAAW;0CACjB,eAAe;iDACR,sBAAsB;yCAC9B,YAAY;0CACX,aAAa;sCACjB,YAAY;0CACR,cAAc;mDACL,sBAAsB;sCACnC,SAAS;yCACN,kBAAa;wCACd,WAAW;;;EAIP,CAAC"}
@@ -1,6 +1,19 @@
1
- import { Schema } from 'effect';
1
+ import { type Atom } from '@effect-atom/atom-react';
2
+ import * as Schema from 'effect/Schema';
3
+ import { Capability } from '@dxos/app-framework';
4
+ import { type PluginEntry } from '@dxos/protocols';
5
+ export type CommunityPluginsState = {
6
+ entries: readonly PluginEntry[];
7
+ loading: boolean;
8
+ error: Error | null;
9
+ };
10
+ export declare namespace RegistryCapabilities {
11
+ const State: Capability.InterfaceDef<Atom.Atom<CommunityPluginsState>>;
12
+ }
2
13
  export declare const RegistrySettingsSchema: Schema.mutable<Schema.Struct<{
3
14
  experimental: Schema.optional<typeof Schema.Boolean>;
4
15
  }>>;
5
16
  export type RegistrySettings = Schema.Schema.Type<typeof RegistrySettingsSchema>;
17
+ export declare const RegistryTagType: Schema.Literal<["new", "beta", "labs", "popular", "featured", "experimental", "community", "local"]>;
18
+ export type RegistryTagType = Schema.Schema.Type<typeof RegistryTagType>;
6
19
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,eAAO,MAAM,sBAAsB;;GAIlC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAInD,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB,CAAC;AAEF,yBAAiB,oBAAoB,CAAC,CAAC;IAC9B,MAAM,KAAK,2DAAmF,CAAC;CACvG;AAED,eAAO,MAAM,sBAAsB;;GAIlC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEjF,eAAO,MAAM,eAAe,sGAS3B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC"}