stera-ui 0.8.1 → 0.9.0
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.
- package/dist/add-JTKZDMNI.js +2 -0
- package/dist/chunk-42DL2YAQ.js +2 -0
- package/dist/chunk-FZGIVCWE.js +42175 -0
- package/dist/chunk-LUUYMQIF.js +97 -0
- package/dist/chunk-MBBLZJIK.js +2 -0
- package/dist/chunk-OPVLMYW5.js +2 -0
- package/dist/chunk-OSMC63WJ.js +2 -0
- package/dist/chunk-P2O7D5BG.js +2 -0
- package/dist/chunk-UVHQPGZ3.js +7 -0
- package/dist/chunk-XJ6VM67K.js +2 -0
- package/dist/cli.js +29 -32
- package/dist/index.js +2 -86
- package/dist/init-XAKB27HW.js +12 -0
- package/dist/list-W7ECLPKW.js +5 -0
- package/dist/registry/index.d.ts +3 -1
- package/dist/registry/index.js +2 -17
- package/dist/schema/index.js +2 -18
- package/dist/utils/index.d.ts +26 -3
- package/dist/utils/index.js +2 -58
- package/package.json +6 -8
- package/dist/add-DBC33IWM.js +0 -201
- package/dist/chunk-4E46BULJ.js +0 -79
- package/dist/chunk-BJNLGEZJ.js +0 -100
- package/dist/chunk-KGMF6UW4.js +0 -21
- package/dist/chunk-KKUJRJ2N.js +0 -209
- package/dist/chunk-RQ7T7RF5.js +0 -880
- package/dist/chunk-UKHKFX2A.js +0 -376
- package/dist/init-EQHYR7MG.js +0 -763
- package/dist/list-M73QTIWR.js +0 -44
package/dist/list-M73QTIWR.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
createSpinner,
|
|
4
|
-
getAllComponents
|
|
5
|
-
} from "./chunk-KKUJRJ2N.js";
|
|
6
|
-
import {
|
|
7
|
-
LOGO,
|
|
8
|
-
dim
|
|
9
|
-
} from "./chunk-KGMF6UW4.js";
|
|
10
|
-
|
|
11
|
-
// src/commands/list.ts
|
|
12
|
-
async function list() {
|
|
13
|
-
const spinner = createSpinner("Fetching registry");
|
|
14
|
-
let items;
|
|
15
|
-
try {
|
|
16
|
-
items = await getAllComponents();
|
|
17
|
-
} catch (err) {
|
|
18
|
-
spinner.fail("Failed to fetch registry");
|
|
19
|
-
throw err;
|
|
20
|
-
}
|
|
21
|
-
spinner.succeed("Registry resolved");
|
|
22
|
-
const groups = /* @__PURE__ */ new Map();
|
|
23
|
-
for (const item of items) {
|
|
24
|
-
const type = item.type.replace("registry:", "");
|
|
25
|
-
if (!groups.has(type)) groups.set(type, []);
|
|
26
|
-
groups.get(type).push(item);
|
|
27
|
-
}
|
|
28
|
-
console.log(`
|
|
29
|
-
${LOGO} Available components
|
|
30
|
-
`);
|
|
31
|
-
for (const [type, groupItems] of groups) {
|
|
32
|
-
console.log(` ${type}`);
|
|
33
|
-
for (const item of groupItems) {
|
|
34
|
-
const deps = item.registryDependencies?.length ? dim(` (depends on: ${item.registryDependencies.join(", ")})`) : "";
|
|
35
|
-
console.log(` ${item.name}${deps}`);
|
|
36
|
-
}
|
|
37
|
-
console.log("");
|
|
38
|
-
}
|
|
39
|
-
console.log(` ${dim(`${items.length} components available`)}
|
|
40
|
-
`);
|
|
41
|
-
}
|
|
42
|
-
export {
|
|
43
|
-
list
|
|
44
|
-
};
|