@dxos/plugin-registry 0.8.4-staging.60fe92afc8 → 0.9.1-main.c7dcc2e112

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 (124) hide show
  1. package/dist/lib/neutral/RegistryPlugin.node.mjs +709 -18
  2. package/dist/lib/neutral/RegistryPlugin.node.mjs.map +4 -4
  3. package/dist/lib/neutral/chunk-ZY37XLVF.mjs +46 -0
  4. package/dist/lib/neutral/chunk-ZY37XLVF.mjs.map +7 -0
  5. package/dist/lib/neutral/index.mjs +1 -1
  6. package/dist/lib/neutral/meta.json +1 -1
  7. package/dist/lib/neutral/{open-plugin-registry-II735N76.mjs → open-plugin-registry-ID7LV3SF.mjs} +3 -3
  8. package/dist/lib/neutral/open-plugin-registry-ID7LV3SF.mjs.map +7 -0
  9. package/dist/lib/neutral/plugin.mjs +2 -2
  10. package/dist/lib/neutral/translations.mjs +1 -1
  11. package/dist/lib/neutral/translations.mjs.map +3 -3
  12. package/dist/types/dx.config.d.ts +28 -0
  13. package/dist/types/dx.config.d.ts.map +1 -0
  14. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  15. package/dist/types/src/capabilities/index.d.ts +4 -12
  16. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  17. package/dist/types/src/capabilities/react-surface.d.ts +2 -2
  18. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  19. package/dist/types/src/categories.d.ts.map +1 -1
  20. package/dist/types/src/commands/index.d.ts +2 -2
  21. package/dist/types/src/commands/index.d.ts.map +1 -1
  22. package/dist/types/src/commands/plugin/disable.d.ts.map +1 -0
  23. package/dist/types/src/commands/plugin/enable.d.ts.map +1 -0
  24. package/dist/types/src/commands/plugin/index.d.ts +3 -0
  25. package/dist/types/src/commands/plugin/index.d.ts.map +1 -0
  26. package/dist/types/src/commands/plugin/list.d.ts.map +1 -0
  27. package/dist/types/src/commands/plugin/util.d.ts.map +1 -0
  28. package/dist/types/src/commands/registry/index.d.ts +16 -0
  29. package/dist/types/src/commands/registry/index.d.ts.map +1 -0
  30. package/dist/types/src/commands/registry/publish-package.d.ts +29 -0
  31. package/dist/types/src/commands/registry/publish-package.d.ts.map +1 -0
  32. package/dist/types/src/commands/registry/publish-publisher.d.ts +19 -0
  33. package/dist/types/src/commands/registry/publish-publisher.d.ts.map +1 -0
  34. package/dist/types/src/commands/registry/publish.d.ts +25 -0
  35. package/dist/types/src/commands/registry/publish.d.ts.map +1 -0
  36. package/dist/types/src/commands/registry/records.d.ts +14 -0
  37. package/dist/types/src/commands/registry/records.d.ts.map +1 -0
  38. package/dist/types/src/commands/registry/unpublish.d.ts +15 -0
  39. package/dist/types/src/commands/registry/unpublish.d.ts.map +1 -0
  40. package/dist/types/src/commands/registry/util.d.ts +113 -0
  41. package/dist/types/src/commands/registry/util.d.ts.map +1 -0
  42. package/dist/types/src/commands/registry/verify.d.ts +20 -0
  43. package/dist/types/src/commands/registry/verify.d.ts.map +1 -0
  44. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts +2 -2
  45. package/dist/types/src/components/PluginDetail/PluginDetail.d.ts.map +1 -1
  46. package/dist/types/src/components/PluginDetail/PluginDetail.stories.d.ts.map +1 -1
  47. package/dist/types/src/components/PluginList/PluginItem.d.ts.map +1 -1
  48. package/dist/types/src/components/PluginList/PluginList.stories.d.ts.map +1 -1
  49. package/dist/types/src/containers/LoadPluginDialog/LoadPluginDialog.d.ts.map +1 -1
  50. package/dist/types/src/containers/PluginArticle/PluginArticle.d.ts.map +1 -1
  51. package/dist/types/src/containers/PublicRegistryArticle/PublicRegistryArticle.d.ts.map +1 -1
  52. package/dist/types/src/hooks/useAutoTags.d.ts +2 -2
  53. package/dist/types/src/hooks/useAutoTags.d.ts.map +1 -1
  54. package/dist/types/src/hooks/useCatalogEntry.d.ts +4 -5
  55. package/dist/types/src/hooks/useCatalogEntry.d.ts.map +1 -1
  56. package/dist/types/src/hooks/usePluginActions.d.ts +3 -3
  57. package/dist/types/src/hooks/usePluginActions.d.ts.map +1 -1
  58. package/dist/types/src/hooks/useUpdateAvailable.d.ts +2 -2
  59. package/dist/types/src/hooks/useUpdateAvailable.d.ts.map +1 -1
  60. package/dist/types/src/hooks/useVersionPicker.d.ts +7 -8
  61. package/dist/types/src/hooks/useVersionPicker.d.ts.map +1 -1
  62. package/dist/types/src/meta.d.ts +28 -2
  63. package/dist/types/src/meta.d.ts.map +1 -1
  64. package/dist/types/src/operations/open-plugin-registry.d.ts.map +1 -1
  65. package/dist/types/src/types.d.ts.map +1 -1
  66. package/dist/types/tsconfig.tsbuildinfo +1 -1
  67. package/dx.config.ts +20 -0
  68. package/package.json +31 -24
  69. package/src/RegistryPlugin.node.ts +2 -2
  70. package/src/RegistryPlugin.test.ts +1 -1
  71. package/src/capabilities/app-graph-builder.ts +43 -39
  72. package/src/capabilities/dev-plugin-loader.ts +1 -1
  73. package/src/capabilities/react-surface.tsx +1 -4
  74. package/src/capabilities/settings.ts +2 -2
  75. package/src/categories.ts +5 -4
  76. package/src/commands/index.ts +2 -10
  77. package/src/commands/{disable.ts → plugin/disable.ts} +3 -3
  78. package/src/commands/{enable.ts → plugin/enable.ts} +3 -3
  79. package/src/commands/plugin/index.ts +14 -0
  80. package/src/commands/{list.ts → plugin/list.ts} +4 -4
  81. package/src/commands/registry/index.ts +30 -0
  82. package/src/commands/registry/publish-package.ts +119 -0
  83. package/src/commands/registry/publish-publisher.ts +73 -0
  84. package/src/commands/registry/publish.ts +278 -0
  85. package/src/commands/registry/records.ts +73 -0
  86. package/src/commands/registry/unpublish.ts +70 -0
  87. package/src/commands/registry/util.ts +395 -0
  88. package/src/commands/registry/verify.ts +76 -0
  89. package/src/components/DisableDependentsAlert/DisableDependentsAlert.tsx +1 -1
  90. package/src/components/PluginDetail/PluginDetail.stories.tsx +5 -3
  91. package/src/components/PluginDetail/PluginDetail.tsx +21 -23
  92. package/src/components/PluginFailureBadge/PluginFailureBadge.tsx +1 -1
  93. package/src/components/PluginList/PluginItem.tsx +5 -3
  94. package/src/components/PluginList/PluginList.stories.tsx +1 -2
  95. package/src/components/PluginList/PluginList.tsx +4 -4
  96. package/src/components/RegistrySettings/RegistrySettings.tsx +1 -1
  97. package/src/containers/BaseRegistryArticle/BaseRegistryArticle.tsx +2 -2
  98. package/src/containers/LoadPluginDialog/LoadPluginDialog.tsx +3 -3
  99. package/src/containers/PluginArticle/PluginArticle.tsx +8 -6
  100. package/src/containers/PublicRegistryArticle/PublicRegistryArticle.tsx +35 -28
  101. package/src/containers/RegistryArticle/RegistryArticle.tsx +1 -1
  102. package/src/containers/RegistrySettingsContainer/RegistrySettingsContainer.tsx +1 -1
  103. package/src/hooks/useAutoTags.ts +3 -3
  104. package/src/hooks/useCatalogEntry.ts +6 -7
  105. package/src/hooks/useDisableConfirmation.ts +1 -1
  106. package/src/hooks/usePluginActions.ts +13 -11
  107. package/src/hooks/useUpdateAvailable.ts +5 -5
  108. package/src/hooks/useVersionPicker.ts +22 -30
  109. package/src/meta.ts +6 -15
  110. package/src/operations/open-plugin-registry.ts +2 -2
  111. package/src/translations.ts +1 -1
  112. package/src/types.ts +3 -1
  113. package/dist/lib/neutral/chunk-GRQI6MLI.mjs +0 -36
  114. package/dist/lib/neutral/chunk-GRQI6MLI.mjs.map +0 -7
  115. package/dist/lib/neutral/open-plugin-registry-II735N76.mjs.map +0 -7
  116. package/dist/types/src/commands/disable.d.ts.map +0 -1
  117. package/dist/types/src/commands/enable.d.ts.map +0 -1
  118. package/dist/types/src/commands/list.d.ts.map +0 -1
  119. package/dist/types/src/commands/util.d.ts.map +0 -1
  120. /package/dist/types/src/commands/{disable.d.ts → plugin/disable.d.ts} +0 -0
  121. /package/dist/types/src/commands/{enable.d.ts → plugin/enable.d.ts} +0 -0
  122. /package/dist/types/src/commands/{list.d.ts → plugin/list.d.ts} +0 -0
  123. /package/dist/types/src/commands/{util.d.ts → plugin/util.d.ts} +0 -0
  124. /package/src/commands/{util.ts → plugin/util.ts} +0 -0
@@ -1,4 +1,3 @@
1
- import { Plugin } from '@dxos/app-framework';
2
1
  import { DXN } from '@dxos/keys';
3
2
  export declare const REGISTRY_ID: string;
4
3
  export declare const REGISTRY_KEY = "plugin-registry";
@@ -17,7 +16,34 @@ export declare const getPluginPath: (pluginId: string) => string;
17
16
  * child, the node is absent and the button stays hidden.
18
17
  */
19
18
  export declare const getPluginSpecPath: (pluginId: string) => string;
20
- export declare const meta: Plugin.Meta;
19
+ export declare const meta: {
20
+ readonly profile: {
21
+ readonly key: string;
22
+ readonly name: string;
23
+ readonly description?: string | undefined;
24
+ readonly homePage?: string | undefined;
25
+ readonly source?: string | undefined;
26
+ readonly tags?: readonly string[] | undefined;
27
+ readonly screenshots?: readonly {
28
+ readonly light?: string | undefined;
29
+ readonly dark?: string | undefined;
30
+ }[] | undefined;
31
+ readonly icon?: {
32
+ readonly key: string;
33
+ readonly hue?: string | undefined;
34
+ } | undefined;
35
+ readonly dependsOn?: readonly string[] | undefined;
36
+ readonly spec?: string | undefined;
37
+ readonly author?: string | undefined;
38
+ };
39
+ readonly release?: {
40
+ readonly version: string;
41
+ readonly moduleUrl: string;
42
+ readonly dependencies?: {
43
+ readonly [x: string]: string;
44
+ } | undefined;
45
+ } | undefined;
46
+ };
21
47
  /** Cascade-disable confirmation dialog surface id. */
22
48
  export declare const DISABLE_DEPENDENTS_DIALOG: DXN.DXN;
23
49
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,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;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,aAAc,MAAM,KAAG,MAA2C,CAAC;AAEjG,eAAO,MAAM,IAAI,aAUf,CAAC;AAEH,sDAAsD;AACtD,eAAO,MAAM,yBAAyB,SAAiD,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAIjC,eAAO,MAAM,WAAW,QAAkD,CAAC;AAC3E,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;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,aAAc,MAAM,KAAG,MAA2C,CAAC;AAEjG,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC;AAErD,sDAAsD;AACtD,eAAO,MAAM,yBAAyB,SAA0D,CAAC"}
@@ -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,eAAe,CAAC;AAI1C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,kBAAkB,CAO7E,CAAC;eAEW,OAAO"}
1
+ {"version":3,"file":"open-plugin-registry.d.ts","sourceRoot":"","sources":["../../../../src/operations/open-plugin-registry.ts"],"names":[],"mappings":"AAMA,OAAO,EAA0B,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC9E,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 +1 @@
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;AAEjD,eAAO,MAAM,sBAAsB;;IAG/B;;;;OAIG;;IAEH;;;;;OAKG;;GAGN,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEjF;;GAEG;AACH,yBAAiB,oBAAoB,CAAC,CAAC;IAC9B,MAAM,QAAQ;;;;;;;;OAAqF,CAAC;CAC5G;AAED,eAAO,MAAM,eAAe,qGAS3B,CAAC;AAEF,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;AAIjD,eAAO,MAAM,sBAAsB;;IAG/B;;;;OAIG;;IAEH;;;;;OAKG;;GAGN,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEjF;;GAEG;AACH,yBAAiB,oBAAoB,CAAC,CAAC;IAC9B,MAAM,QAAQ;;;;;;;;OAA8F,CAAC;CACrH;AAED,eAAO,MAAM,eAAe,qGAS3B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC"}