@dxos/plugin-registry 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef

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 (123) hide show
  1. package/dist/lib/browser/cli/index.mjs +1 -188
  2. package/dist/lib/browser/cli/index.mjs.map +4 -4
  3. package/dist/lib/browser/index.mjs +5 -45
  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 +1 -188
  9. package/dist/lib/node-esm/cli/index.mjs.map +4 -4
  10. package/dist/lib/node-esm/index.mjs +5 -45
  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 +1 -0
  16. package/dist/types/src/RegistryPlugin.d.ts.map +1 -1
  17. package/dist/types/src/{cli/plugin.d.ts → RegistryPlugin.node.d.ts} +2 -1
  18. package/dist/types/src/RegistryPlugin.node.d.ts.map +1 -0
  19. package/dist/types/src/RegistryPlugin.test.d.ts +2 -0
  20. package/dist/types/src/RegistryPlugin.test.d.ts.map +1 -0
  21. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  22. package/dist/types/src/capabilities/index.d.ts +2 -1
  23. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  24. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  25. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  26. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  27. package/dist/types/src/capabilities/state.d.ts +7 -0
  28. package/dist/types/src/capabilities/state.d.ts.map +1 -0
  29. package/dist/types/src/cli/index.d.ts +1 -2
  30. package/dist/types/src/cli/index.d.ts.map +1 -1
  31. package/dist/types/src/{cli/commands → commands}/disable.d.ts +2 -2
  32. package/dist/types/src/commands/disable.d.ts.map +1 -0
  33. package/dist/types/src/{cli/commands → commands}/enable.d.ts +2 -2
  34. package/dist/types/src/commands/enable.d.ts.map +1 -0
  35. package/dist/types/src/commands/index.d.ts.map +1 -0
  36. package/dist/types/src/commands/list.d.ts +7 -0
  37. package/dist/types/src/commands/list.d.ts.map +1 -0
  38. package/dist/types/src/commands/util.d.ts.map +1 -0
  39. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts +12 -1
  40. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -1
  41. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts +23 -20
  42. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts.map +1 -1
  43. package/dist/types/src/components/PluginList/PluginItem.d.ts +14 -1
  44. package/dist/types/src/components/PluginList/PluginItem.d.ts.map +1 -1
  45. package/dist/types/src/components/PluginList/PluginList.d.ts +7 -2
  46. package/dist/types/src/components/PluginList/PluginList.d.ts.map +1 -1
  47. package/dist/types/src/components/PluginList/PluginList.stories.d.ts +23 -20
  48. package/dist/types/src/components/PluginList/PluginList.stories.d.ts.map +1 -1
  49. package/dist/types/src/containers/CommunityRegistry/CommunityRegistry.d.ts +8 -0
  50. package/dist/types/src/containers/CommunityRegistry/CommunityRegistry.d.ts.map +1 -0
  51. package/dist/types/src/containers/CommunityRegistry/index.d.ts +2 -0
  52. package/dist/types/src/containers/CommunityRegistry/index.d.ts.map +1 -0
  53. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts.map +1 -1
  54. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts.map +1 -1
  55. package/dist/types/src/containers/PluginRegistry/PluginRegistry.d.ts +5 -1
  56. package/dist/types/src/containers/PluginRegistry/PluginRegistry.d.ts.map +1 -1
  57. package/dist/types/src/containers/index.d.ts +1 -0
  58. package/dist/types/src/containers/index.d.ts.map +1 -1
  59. package/dist/types/src/hooks/index.d.ts +3 -0
  60. package/dist/types/src/hooks/index.d.ts.map +1 -0
  61. package/dist/types/src/hooks/use-auto-tags.d.ts +20 -0
  62. package/dist/types/src/hooks/use-auto-tags.d.ts.map +1 -0
  63. package/dist/types/src/hooks/use-community-plugins.d.ts +16 -0
  64. package/dist/types/src/hooks/use-community-plugins.d.ts.map +1 -0
  65. package/dist/types/src/index.d.ts +2 -1
  66. package/dist/types/src/index.d.ts.map +1 -1
  67. package/dist/types/src/meta.d.ts.map +1 -1
  68. package/dist/types/src/operations/index.d.ts +1 -1
  69. package/dist/types/src/operations/index.d.ts.map +1 -1
  70. package/dist/types/src/operations/open-plugin-registry.d.ts +1 -1
  71. package/dist/types/src/operations/open-plugin-registry.d.ts.map +1 -1
  72. package/dist/types/src/storage.d.ts.map +1 -0
  73. package/dist/types/src/translations.d.ts +22 -20
  74. package/dist/types/src/translations.d.ts.map +1 -1
  75. package/dist/types/src/types.d.ts +12 -1
  76. package/dist/types/src/types.d.ts.map +1 -1
  77. package/dist/types/tsconfig.tsbuildinfo +1 -1
  78. package/package.json +41 -25
  79. package/src/{cli/plugin.ts → RegistryPlugin.node.ts} +2 -0
  80. package/src/RegistryPlugin.test.ts +24 -0
  81. package/src/RegistryPlugin.tsx +9 -3
  82. package/src/capabilities/app-graph-builder.ts +61 -17
  83. package/src/capabilities/index.ts +2 -1
  84. package/src/capabilities/operation-handler.ts +1 -1
  85. package/src/capabilities/react-surface.tsx +49 -24
  86. package/src/capabilities/state.ts +38 -0
  87. package/src/cli/index.ts +1 -2
  88. package/src/components/PluginDetail/PluginDetail.stories.tsx +2 -1
  89. package/src/components/PluginDetail/PluginDetail.tsx +27 -5
  90. package/src/components/PluginList/PluginItem.tsx +71 -8
  91. package/src/components/PluginList/PluginList.stories.tsx +1 -1
  92. package/src/components/PluginList/PluginList.tsx +8 -3
  93. package/src/containers/CommunityRegistry/CommunityRegistry.tsx +181 -0
  94. package/src/containers/CommunityRegistry/index.ts +5 -0
  95. package/src/containers/LoadPluginDialog/LoadPluginDialog.tsx +2 -1
  96. package/src/containers/PluginArticle/PluginArticle.tsx +47 -2
  97. package/src/containers/PluginRegistry/PluginRegistry.tsx +6 -2
  98. package/src/containers/index.ts +1 -0
  99. package/src/hooks/index.ts +6 -0
  100. package/src/hooks/use-auto-tags.ts +52 -0
  101. package/src/hooks/use-community-plugins.ts +35 -0
  102. package/src/index.ts +5 -1
  103. package/src/operations/index.ts +1 -1
  104. package/src/operations/open-plugin-registry.ts +1 -1
  105. package/src/translations.ts +5 -2
  106. package/src/types.ts +26 -1
  107. package/dist/types/src/cli/commands/disable.d.ts.map +0 -1
  108. package/dist/types/src/cli/commands/enable.d.ts.map +0 -1
  109. package/dist/types/src/cli/commands/index.d.ts.map +0 -1
  110. package/dist/types/src/cli/commands/list.d.ts +0 -7
  111. package/dist/types/src/cli/commands/list.d.ts.map +0 -1
  112. package/dist/types/src/cli/commands/util.d.ts.map +0 -1
  113. package/dist/types/src/cli/plugin.d.ts.map +0 -1
  114. package/dist/types/src/cli/storage.d.ts.map +0 -1
  115. /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
  116. /package/dist/types/src/{cli/commands → commands}/util.d.ts +0 -0
  117. /package/dist/types/src/{cli/storage.d.ts → storage.d.ts} +0 -0
  118. /package/src/{cli/commands → commands}/disable.ts +0 -0
  119. /package/src/{cli/commands → commands}/enable.ts +0 -0
  120. /package/src/{cli/commands → commands}/index.ts +0 -0
  121. /package/src/{cli/commands → commands}/list.ts +0 -0
  122. /package/src/{cli/commands → commands}/util.ts +0 -0
  123. /package/src/{cli/storage.ts → storage.ts} +0 -0
@@ -2,30 +2,33 @@ import { type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ plugins, ...props }: import("./PluginList").PluginListProps) => React.JSX.Element;
5
+ component: ({ plugins, extraTagsById, ...props }: import("./PluginList").PluginListProps) => React.JSX.Element;
6
6
  render: () => React.JSX.Element;
7
7
  parameters: {
8
8
  translations: [{
9
9
  readonly 'en-US': {
10
- readonly [meta.id]: {
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 'all-plugins.label': "All";
17
- readonly 'installed-plugins.label': "Enabled";
18
- readonly 'recommended-plugins.label': "Recommended";
19
- readonly 'labs-plugins.label': "Labs";
20
- readonly 'community-plugins.label': "Community";
21
- readonly 'load-by-url.label': "Load from URL";
22
- readonly 'load-by-url-dialog.title': "Load Plugin from URL";
23
- readonly 'plugin-url.label': "Plugin URL";
24
- readonly 'load-plugin.label': "Load Plugin";
25
- readonly 'loading.label': "Loading...";
26
- readonly 'coming-soon.label': "Coming soon!";
27
- readonly 'open-plugin-registry.label': "Open plugin registry";
28
- readonly 'settings.label': "Settings";
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';
29
32
  };
30
33
  };
31
34
  }];
@@ -1 +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;;;;;;;yBAtDU,CAAS,IAAG,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;CA6DD,CAAC;AAEpC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAC"}
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,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"}
@@ -1 +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,yBAqE5B,CAAC"}
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"PluginArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PluginArticle/PluginArticle.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAOlD,MAAM,MAAM,kBAAkB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAA;CAAE,CAAC;AAE5D,eAAO,MAAM,aAAa,GAAI,qBAAqB,kBAAkB,sBAYpE,CAAC"}
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"}
@@ -3,8 +3,12 @@ import { type Plugin } from '@dxos/app-framework';
3
3
  export type PluginRegistryProps = {
4
4
  id: string;
5
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[]>;
6
10
  };
7
11
  export declare const PluginRegistry: React.ForwardRefExoticComponent<Omit<PluginRegistryProps, "className"> & {
8
12
  classNames?: import("@dxos/ui-types").ClassNameValue;
9
- } & Pick<React.HTMLAttributes<Element>, "className" | "style" | "role" | "children"> & React.RefAttributes<HTMLDivElement>>;
13
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
10
14
  //# sourceMappingURL=PluginRegistry.d.ts.map
@@ -1 +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;CAC1B,CAAC;AAEF,eAAO,MAAM,cAAc;;2HAgE1B,CAAC"}
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"}
@@ -1,5 +1,6 @@
1
1
  import { type ComponentType } from 'react';
2
2
  export { LOAD_PLUGIN_DIALOG } from './LoadPluginDialog/LoadPluginDialog';
3
+ export declare const CommunityRegistry: ComponentType<any>;
3
4
  export declare const LoadPluginDialog: ComponentType<any>;
4
5
  export declare const PluginArticle: ComponentType<any>;
5
6
  export declare const PluginRegistry: ComponentType<any>;
@@ -1 +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,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"}
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,3 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
1
2
  export * from './meta';
2
- export * from './RegistryPlugin';
3
+ export declare const RegistryPlugin: Plugin.PluginFactory<void>;
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,cAAc,QAAQ,CAAC;AACvB,eAAO,MAAM,cAAc,4BAA6C,CAAC"}
@@ -1 +1 @@
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,GAAI,UAAU,MAAM,KAAG,MAA2D,CAAC;AAElH,sDAAsD;AACtD,eAAO,MAAM,aAAa,GAAI,UAAU,MAAM,KAAG,MAA2C,CAAC;AAE7F,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAOzB,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"}
@@ -1,3 +1,3 @@
1
- import { OperationHandlerSet } from '@dxos/operation';
1
+ import { OperationHandlerSet } from '@dxos/compute';
2
2
  export declare const RegistryOperationHandlerSet: OperationHandlerSet.OperationHandlerSet;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,eAAO,MAAM,2BAA2B,yCAAmE,CAAC"}
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"}
@@ -1,5 +1,5 @@
1
1
  import { SettingsOperation } from '@dxos/app-toolkit';
2
- import { Operation } from '@dxos/operation';
2
+ import { Operation } from '@dxos/compute';
3
3
  declare const handler: Operation.WithHandler<typeof SettingsOperation.OpenPluginRegistry>;
4
4
  export default handler;
5
5
  //# sourceMappingURL=open-plugin-registry.d.ts.map
@@ -1 +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,iBAAiB,CAAC;AAI5C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,kBAAkB,CAO7E,CAAC;AAEJ,eAAe,OAAO,CAAC"}
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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/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"}
@@ -1,25 +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 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 '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';
23
25
  };
24
26
  };
25
27
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;UAmBR;;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,8 +1,19 @@
1
+ import { type Atom } from '@effect-atom/atom-react';
1
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>;
6
- export declare const RegistryTagType: Schema.Literal<["new", "beta", "labs", "popular", "featured", "experimental"]>;
17
+ export declare const RegistryTagType: Schema.Literal<["new", "beta", "labs", "popular", "featured", "experimental", "community", "local"]>;
7
18
  export type RegistryTagType = Schema.Schema.Type<typeof RegistryTagType>;
8
19
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,eAAO,MAAM,sBAAsB;;GAIlC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEjF,eAAO,MAAM,eAAe,gFAA+E,CAAC;AAE5G,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,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"}