@unoverse-platform/studio 0.1.109 → 0.1.110

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 (40) hide show
  1. package/bin/studio.mjs +3 -3
  2. package/local/authoring.ts +2 -2
  3. package/local/catalog.ts +8 -4
  4. package/local/design-home.d.mts +2 -0
  5. package/local/design-home.mjs +11 -0
  6. package/local/plugin.ts +51 -22
  7. package/local/sample-identity/brand.yaml +1 -1
  8. package/local/sample-identity/organisation.yaml +1 -1
  9. package/local/sample-identity/purpose.yaml +1 -1
  10. package/local/sample-identity/story.yaml +1 -1
  11. package/local/scaffold.mjs +20 -4
  12. package/local/source.ts +13 -7
  13. package/package.json +1 -1
  14. package/screens/DesignSystemView.tsx +1 -1
  15. package/screens/EmptyLibrary.tsx +1 -1
  16. package/screens/PromptBlocksView.tsx +1 -1
  17. package/src/App.tsx +5 -5
  18. package/vendor/base/src/definitions/load/assets.ts +2 -2
  19. package/vendor/base/src/definitions/registry/catalog.ts +1 -1
  20. package/vendor/base/src/definitions/registry/homes.ts +15 -5
  21. package/vendor/base/src/definitions/registry/objects.ts +1 -1
  22. package/vendor/base/src/definitions/registry/orgDocuments.ts +2 -2
  23. package/vendor/base/src/definitions/registry/orgPack.ts +3 -2
  24. package/vendor/base/src/definitions/registry/pipelines.ts +1 -1
  25. package/vendor/base/src/definitions/theme.ts +5 -6
  26. package/vendor/base/src/items/baseVersion.ts +1 -1
  27. package/vendor/base/src/items/collect.ts +1 -1
  28. package/vendor/base/src/lint/design/file.mjs +2 -2
  29. package/vendor/base/src/lint/design/index.d.mts +6 -0
  30. package/vendor/base/src/lint/design/index.mjs +45 -17
  31. package/vendor/base/src/lint/design/vocabulary.mjs +2 -2
  32. package/vendor/base/src/lint/nodes/blocks.mjs +3 -3
  33. package/vendor/base/src/lint/nodes/node.mjs +1 -1
  34. package/vendor/base/src/lint/objects/index.d.mts +6 -0
  35. package/vendor/base/src/lint/objects/index.mjs +27 -6
  36. package/vendor/base/src/lint/prompts/index.d.mts +6 -0
  37. package/vendor/base/src/lint/prompts/index.mjs +8 -3
  38. package/vendor/base/src/paths.ts +65 -20
  39. package/vendor/base/src/plugins/discovery.ts +1 -1
  40. package/vendor/base/src/plugins/loader.ts +5 -7
@@ -39,7 +39,7 @@ function scanPluginDir(dir: string, scopes: string[]): string[] {
39
39
  return plugins;
40
40
  }
41
41
 
42
- /** The marketplace tier's node packages (apps/unoverse/design/marketplace/nodes). */
42
+ /** The marketplace tier's node packages (packages/marketplace/definitions/nodes). */
43
43
  export function discoverNodesHome(): string[] {
44
44
  return scanPluginDir(NODES_HOME, ["@unoverse-platform/"]);
45
45
  }
@@ -7,7 +7,7 @@ import * as path from "path";
7
7
  import { execSync } from "child_process";
8
8
  import { pathToFileURL } from "url";
9
9
  import { getNodeRegistry, getPluginNodeMap, deleteNode } from "../registry.js";
10
- import { PACKAGES_PATH, MARKETPLACE_PATH, PLUGINS_DIR, NODES_HOME } from "../paths.js";
10
+ import { PACKAGES_PATH, PLUGINS_DIR, NODES_HOME } from "../paths.js";
11
11
 
12
12
  /**
13
13
  * Resolve a package directory's entry file from its package.json.
@@ -87,18 +87,16 @@ export async function loadPlugin(pluginName: string, api: any): Promise<string[]
87
87
 
88
88
  try {
89
89
  const shortName = pluginName.replace(/@[^/]+\//, "");
90
- // Resolution order: the in-Unoverse node home wins, then legacy /packages,
91
- // then /packages-marketplace, then the bare npm specifier.
90
+ // Resolution order: the in-Unoverse node home wins, then legacy /packages, then the
91
+ // bare npm specifier. (A `packages-marketplace` folder was searched third until the
92
+ // marketplace tier took that setting's name; no checkout or image had one.)
92
93
  const homePath = path.join(NODES_HOME, shortName);
93
94
  const pkgPath = path.join(PACKAGES_PATH, shortName);
94
- const mktPath = path.join(MARKETPLACE_PATH, shortName);
95
95
  const resolvedPath = fs.existsSync(homePath)
96
96
  ? homePath
97
97
  : fs.existsSync(pkgPath)
98
98
  ? pkgPath
99
- : fs.existsSync(mktPath)
100
- ? mktPath
101
- : pluginName;
99
+ : pluginName;
102
100
 
103
101
  const pkg = await importPluginModule(resolvedPath);
104
102
  const plugin = pkg.default || pkg;