@vuer-ai/vuer-uikit 0.0.97 → 0.0.98
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/README.md +106 -7
- package/cli/dial-cli.js +49 -7
- package/dist/SyncScroll/SyncScroll.cjs +9 -9
- package/dist/SyncScroll/SyncScroll.mjs +2 -2
- package/dist/SyncScroll/index.cjs +9 -9
- package/dist/SyncScroll/index.mjs +2 -2
- package/dist/chunk-4KWGGESI.cjs +494 -0
- package/dist/{chunk-6YDZA2RP.cjs → chunk-7GWDO25E.cjs} +1 -1
- package/dist/chunk-A5LCX2UQ.cjs +208 -0
- package/dist/chunk-BEJIZ56L.mjs +300 -0
- package/dist/chunk-C7VGRU3O.mjs +283 -0
- package/dist/chunk-LJMNHTTG.cjs +679 -0
- package/dist/chunk-O66RESRR.cjs +285 -0
- package/dist/{chunk-JBHXGZUF.mjs → chunk-TTYSYGVE.mjs} +1 -1
- package/dist/chunk-VA3PEYFM.mjs +489 -0
- package/dist/chunk-VBBJSIY7.cjs +308 -0
- package/dist/chunk-W4JCKCW7.mjs +661 -0
- package/dist/chunk-WWGF6TBZ.mjs +206 -0
- package/dist/dial/DialPanel.cjs +11 -11
- package/dist/dial/DialPanel.mjs +10 -10
- package/dist/dial/index.cjs +27 -27
- package/dist/dial/index.mjs +10 -10
- package/dist/dial/wrapped-inputs/ControlledInputs.cjs +14 -14
- package/dist/dial/wrapped-inputs/ControlledInputs.mjs +10 -10
- package/dist/dial/wrapped-inputs/DialInputs.cjs +21 -21
- package/dist/dial/wrapped-inputs/DialInputs.mjs +10 -10
- package/dist/dial/wrapped-inputs/DialVectorInput.cjs +11 -11
- package/dist/dial/wrapped-inputs/DialVectorInput.mjs +10 -10
- package/dist/dial/wrapped-inputs/index.cjs +26 -26
- package/dist/dial/wrapped-inputs/index.mjs +10 -10
- package/dist/highlight-cursor/cursor-provider.cjs +3 -3
- package/dist/highlight-cursor/cursor-provider.mjs +2 -2
- package/dist/highlight-cursor/enhanced-components.cjs +1 -1
- package/dist/highlight-cursor/enhanced-components.mjs +1 -1
- package/dist/highlight-cursor/index.cjs +3 -3
- package/dist/highlight-cursor/index.mjs +2 -2
- package/dist/index.cjs +86 -86
- package/dist/index.mjs +10 -10
- package/dist/ui/UIKitBadge.cjs +5 -5
- package/dist/ui/UIKitBadge.mjs +1 -1
- package/dist/ui/badge.d.cts +1 -1
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/index.cjs +12 -12
- package/dist/ui/index.mjs +6 -6
- package/dist/ui/inputs/input.d.cts +1 -1
- package/dist/ui/inputs/input.d.ts +1 -1
- package/dist/ui/select.d.cts +1 -1
- package/dist/ui/select.d.ts +1 -1
- package/dist/ui/textarea.d.cts +1 -1
- package/dist/ui/textarea.d.ts +1 -1
- package/dist/ui/tree-view-legacy.cjs +8 -8
- package/dist/ui/tree-view-legacy.mjs +4 -4
- package/dist/ui/waterfall/index.cjs +5 -5
- package/dist/ui/waterfall/index.mjs +4 -4
- package/package.json +1 -1
- package/src/cli/dial-cli.ts +64 -8
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { TreeEntries, TreeEntryItem, TreeSearchBar, TreeView } from '../chunk-
|
|
1
|
+
export { TreeEntries, TreeEntryItem, TreeSearchBar, TreeView } from '../chunk-VA3PEYFM.mjs';
|
|
2
2
|
import '../chunk-ZNPI2TYG.mjs';
|
|
3
|
-
import '../chunk-4XUJBMDE.mjs';
|
|
4
3
|
import '../chunk-BNDRHLLZ.mjs';
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-BEJIZ56L.mjs';
|
|
5
|
+
import '../chunk-SAGQV2YZ.mjs';
|
|
6
|
+
import '../chunk-4XUJBMDE.mjs';
|
|
6
7
|
import '../chunk-F7ZHPSLA.mjs';
|
|
7
8
|
import '../chunk-OEIF3JCH.mjs';
|
|
8
9
|
import '../chunk-VA4LUFKD.mjs';
|
|
@@ -13,4 +14,3 @@ import '../chunk-XHJDRQD7.mjs';
|
|
|
13
14
|
import '../chunk-LQOPO4KU.mjs';
|
|
14
15
|
import '../chunk-IZARTVYN.mjs';
|
|
15
16
|
import '../chunk-HMN4IKTG.mjs';
|
|
16
|
-
import '../chunk-SAGQV2YZ.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkO66RESRR_cjs = require('../../chunk-O66RESRR.cjs');
|
|
4
4
|
require('../../chunk-WJL5HMO6.cjs');
|
|
5
5
|
require('../../chunk-RJ7I6ZQK.cjs');
|
|
6
6
|
require('../../chunk-MVAFOQ67.cjs');
|
|
@@ -19,9 +19,10 @@ require('../../chunk-LP3AGGRK.cjs');
|
|
|
19
19
|
var chunkG2ZYONQO_cjs = require('../../chunk-G2ZYONQO.cjs');
|
|
20
20
|
require('../../chunk-6TSA7KXX.cjs');
|
|
21
21
|
require('../../chunk-2CZEFXEW.cjs');
|
|
22
|
-
require('../../chunk-3UEVUYFQ.cjs');
|
|
23
22
|
require('../../chunk-JMCH2AFN.cjs');
|
|
24
|
-
require('../../chunk-
|
|
23
|
+
require('../../chunk-VBBJSIY7.cjs');
|
|
24
|
+
require('../../chunk-G4FJGNY5.cjs');
|
|
25
|
+
require('../../chunk-3UEVUYFQ.cjs');
|
|
25
26
|
require('../../chunk-QN4N4I3Z.cjs');
|
|
26
27
|
require('../../chunk-LYZJNEOR.cjs');
|
|
27
28
|
require('../../chunk-YZIR6LIY.cjs');
|
|
@@ -32,13 +33,12 @@ require('../../chunk-JR4TVE43.cjs');
|
|
|
32
33
|
require('../../chunk-VXZURKMQ.cjs');
|
|
33
34
|
require('../../chunk-6BOWMGFG.cjs');
|
|
34
35
|
require('../../chunk-OHIB3TEN.cjs');
|
|
35
|
-
require('../../chunk-G4FJGNY5.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
Object.defineProperty(exports, "Waterfall", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkO66RESRR_cjs.Waterfall; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "TOTAL_DURATION", {
|
|
44
44
|
enumerable: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Waterfall } from '../../chunk-
|
|
1
|
+
export { Waterfall } from '../../chunk-C7VGRU3O.mjs';
|
|
2
2
|
import '../../chunk-JWKOW2OV.mjs';
|
|
3
3
|
import '../../chunk-VPQ5SSY3.mjs';
|
|
4
4
|
import '../../chunk-OC4HRPZU.mjs';
|
|
@@ -17,9 +17,10 @@ import '../../chunk-5EXV5EWF.mjs';
|
|
|
17
17
|
export { TOTAL_DURATION, borderColorClasses, colorClasses, formatDuration, leftWedgeClasses, rightWedgeClasses } from '../../chunk-4U232QAX.mjs';
|
|
18
18
|
import '../../chunk-K22BEXUA.mjs';
|
|
19
19
|
import '../../chunk-ZNPI2TYG.mjs';
|
|
20
|
-
import '../../chunk-4XUJBMDE.mjs';
|
|
21
20
|
import '../../chunk-BNDRHLLZ.mjs';
|
|
22
|
-
import '../../chunk-
|
|
21
|
+
import '../../chunk-BEJIZ56L.mjs';
|
|
22
|
+
import '../../chunk-SAGQV2YZ.mjs';
|
|
23
|
+
import '../../chunk-4XUJBMDE.mjs';
|
|
23
24
|
import '../../chunk-F7ZHPSLA.mjs';
|
|
24
25
|
import '../../chunk-OEIF3JCH.mjs';
|
|
25
26
|
import '../../chunk-VA4LUFKD.mjs';
|
|
@@ -30,4 +31,3 @@ import '../../chunk-XHJDRQD7.mjs';
|
|
|
30
31
|
import '../../chunk-LQOPO4KU.mjs';
|
|
31
32
|
import '../../chunk-IZARTVYN.mjs';
|
|
32
33
|
import '../../chunk-HMN4IKTG.mjs';
|
|
33
|
-
import '../../chunk-SAGQV2YZ.mjs';
|
package/package.json
CHANGED
package/src/cli/dial-cli.ts
CHANGED
|
@@ -1,9 +1,56 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
2
|
-
import { basename, join, resolve } from "node:path";
|
|
2
|
+
import { basename, dirname, join, resolve } from "node:path";
|
|
3
3
|
import { parseArgs } from "node:util";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
import { execSync } from "node:child_process";
|
|
4
6
|
import * as docgen from "react-docgen-typescript";
|
|
5
7
|
import * as ts from "typescript";
|
|
6
8
|
|
|
9
|
+
// Get package version and git hash
|
|
10
|
+
function getVersionInfo(): { version: string; gitHash?: string } {
|
|
11
|
+
try {
|
|
12
|
+
// Get the directory of this CLI file
|
|
13
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
14
|
+
const __dirname = dirname(__filename);
|
|
15
|
+
|
|
16
|
+
// Try multiple possible locations for package.json
|
|
17
|
+
// When built, the CLI is in ./cli/dial-cli.js, so package.json is at ../package.json
|
|
18
|
+
// When running from source, it's in ./src/cli/, so package.json is at ../../package.json
|
|
19
|
+
const possiblePaths = [
|
|
20
|
+
resolve(__dirname, '../package.json'), // Built version: cli/dial-cli.js -> package.json
|
|
21
|
+
resolve(__dirname, '../../package.json'), // Source version: src/cli/dial-cli.ts -> package.json
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
let packageJson: any = null;
|
|
25
|
+
for (const path of possiblePaths) {
|
|
26
|
+
try {
|
|
27
|
+
if (existsSync(path)) {
|
|
28
|
+
packageJson = JSON.parse(readFileSync(path, 'utf-8'));
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
} catch {
|
|
32
|
+
// Continue to next path
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const version = packageJson?.version || 'unknown';
|
|
37
|
+
|
|
38
|
+
// Try to get git hash
|
|
39
|
+
let gitHash: string | undefined;
|
|
40
|
+
try {
|
|
41
|
+
gitHash = execSync('git rev-parse --short HEAD', { encoding: 'utf-8', cwd: dirname(__dirname) }).trim();
|
|
42
|
+
} catch {
|
|
43
|
+
// Git not available or not a git repo
|
|
44
|
+
gitHash = undefined;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return { version, gitHash };
|
|
48
|
+
} catch (error) {
|
|
49
|
+
// Fallback if we can't read package.json
|
|
50
|
+
return { version: 'unknown' };
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
7
54
|
interface DialTag {
|
|
8
55
|
grouping?: string;
|
|
9
56
|
min?: number;
|
|
@@ -790,8 +837,12 @@ async function processFile(
|
|
|
790
837
|
}
|
|
791
838
|
}
|
|
792
839
|
|
|
793
|
-
// Help text for the CLI
|
|
794
|
-
|
|
840
|
+
// Help text for the CLI (with dynamic version)
|
|
841
|
+
function getHelpText(): string {
|
|
842
|
+
const { version, gitHash } = getVersionInfo();
|
|
843
|
+
const versionString = gitHash ? `v${version} (${gitHash})` : `v${version}`;
|
|
844
|
+
|
|
845
|
+
return `
|
|
795
846
|
dial-cli - Generate dial metadata from TypeScript/React components
|
|
796
847
|
|
|
797
848
|
SYNOPSIS
|
|
@@ -919,11 +970,12 @@ SEE ALSO
|
|
|
919
970
|
GitHub: https://github.com/vuer-ai/vuer-uikit
|
|
920
971
|
|
|
921
972
|
VERSION
|
|
922
|
-
dial-cli
|
|
973
|
+
dial-cli ${versionString} (part of @vuer-ai/vuer-uikit)
|
|
923
974
|
|
|
924
975
|
AUTHORS
|
|
925
976
|
Vuer AI Team <team@vuer.ai>
|
|
926
977
|
`;
|
|
978
|
+
}
|
|
927
979
|
|
|
928
980
|
// Main CLI function
|
|
929
981
|
async function main() {
|
|
@@ -961,19 +1013,21 @@ async function main() {
|
|
|
961
1013
|
|
|
962
1014
|
// Handle version flag
|
|
963
1015
|
if (values.version) {
|
|
964
|
-
|
|
1016
|
+
const { version, gitHash } = getVersionInfo();
|
|
1017
|
+
const versionString = gitHash ? `v${version} (${gitHash})` : `v${version}`;
|
|
1018
|
+
console.log(`dial-cli ${versionString} (part of @vuer-ai/vuer-uikit)`);
|
|
965
1019
|
process.exit(0);
|
|
966
1020
|
}
|
|
967
1021
|
|
|
968
1022
|
// Handle help flag or no arguments
|
|
969
1023
|
if (values.help || positionals.length === 0) {
|
|
970
|
-
console.log(
|
|
1024
|
+
console.log(getHelpText());
|
|
971
1025
|
process.exit(0);
|
|
972
1026
|
}
|
|
973
1027
|
|
|
974
1028
|
// Check for man page style help requests
|
|
975
1029
|
if (positionals.length === 1 && (positionals[0] === "man" || positionals[0] === "help")) {
|
|
976
|
-
console.log(
|
|
1030
|
+
console.log(getHelpText());
|
|
977
1031
|
process.exit(0);
|
|
978
1032
|
}
|
|
979
1033
|
|
|
@@ -1028,7 +1082,9 @@ async function main() {
|
|
|
1028
1082
|
};
|
|
1029
1083
|
|
|
1030
1084
|
if (!flags.quiet) {
|
|
1031
|
-
|
|
1085
|
+
const { version, gitHash } = getVersionInfo();
|
|
1086
|
+
const versionString = gitHash ? `v${version} (${gitHash})` : `v${version}`;
|
|
1087
|
+
console.log(`🚀 Dial Documentation Generator ${versionString}`);
|
|
1032
1088
|
console.log(`📂 Output directory: ${outputDir}`);
|
|
1033
1089
|
if (flags.verbose && ignoreList.length > 0) {
|
|
1034
1090
|
console.log(`🚫 Ignoring properties: ${ignoreList.join(', ')}`);
|