@fragments-sdk/cli 0.12.1 → 0.13.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/bin.js +163 -61
- package/dist/bin.js.map +1 -1
- package/dist/{chunk-AM4MRTMN.js → chunk-3SOAPJDX.js} +2 -2
- package/dist/{chunk-LVWFOLUZ.js → chunk-4K7EAQ5L.js} +2 -2
- package/dist/{chunk-T5OMVL7E.js → chunk-DXX6HADE.js} +2 -2
- package/dist/{chunk-JJ2VRTBU.js → chunk-EYXVAMEX.js} +2 -2
- package/dist/chunk-EYXVAMEX.js.map +1 -0
- package/dist/{chunk-TPWGL2XS.js → chunk-FO6EBJWP.js} +5 -5
- package/dist/{chunk-WFS63PCW.js → chunk-QM7SVOGF.js} +36 -2
- package/dist/chunk-QM7SVOGF.js.map +1 -0
- package/dist/{chunk-GVDSFQ4E.js → chunk-RF3C6LGA.js} +6 -6
- package/dist/{chunk-OQKMEFOS.js → chunk-SM674YAS.js} +2 -2
- package/dist/{chunk-4OC7FTJB.js → chunk-UV5JQV3R.js} +2 -2
- package/dist/core/index.js +5 -1
- package/dist/{discovery-ZJQSXF56.js → discovery-VSGC76JN.js} +3 -3
- package/dist/{generate-RJFS2JWA.js → generate-QZXOXYFW.js} +4 -4
- package/dist/index.js +7 -7
- package/dist/{init-ZSX3NRCZ.js → init-XK6PRUE5.js} +5 -5
- package/dist/mcp-bin.js +2 -2
- package/dist/{scan-3PMCJ4RB.js → scan-CHQHXWVD.js} +6 -6
- package/dist/{scan-generate-SYU4PYZD.js → scan-generate-U3RFVDTX.js} +5 -5
- package/dist/{service-VMGNJZ42.js → service-MMEKG4MZ.js} +3 -3
- package/dist/{snapshot-XOISO2IS.js → snapshot-53TUR3HW.js} +2 -2
- package/dist/{static-viewer-5GXH2MGE.js → static-viewer-KKCR4KXR.js} +3 -3
- package/dist/{test-SI4NSHQX.js → test-5UCKXYSC.js} +4 -4
- package/dist/{tokens-T6SIVUT5.js → tokens-L46MK5AW.js} +5 -5
- package/dist/{viewer-7ZEAFBVN.js → viewer-M2EQQSGE.js} +14 -14
- package/dist/viewer-M2EQQSGE.js.map +1 -0
- package/package.json +11 -9
- package/src/bin.ts +55 -0
- package/src/commands/govern.ts +122 -0
- package/src/core/component-extractor.ts +1 -1
- package/src/viewer/vite-plugin.ts +1 -1
- package/dist/chunk-JJ2VRTBU.js.map +0 -1
- package/dist/chunk-WFS63PCW.js.map +0 -1
- package/dist/viewer-7ZEAFBVN.js.map +0 -1
- /package/dist/{chunk-AM4MRTMN.js.map → chunk-3SOAPJDX.js.map} +0 -0
- /package/dist/{chunk-LVWFOLUZ.js.map → chunk-4K7EAQ5L.js.map} +0 -0
- /package/dist/{chunk-T5OMVL7E.js.map → chunk-DXX6HADE.js.map} +0 -0
- /package/dist/{chunk-TPWGL2XS.js.map → chunk-FO6EBJWP.js.map} +0 -0
- /package/dist/{chunk-GVDSFQ4E.js.map → chunk-RF3C6LGA.js.map} +0 -0
- /package/dist/{chunk-OQKMEFOS.js.map → chunk-SM674YAS.js.map} +0 -0
- /package/dist/{chunk-4OC7FTJB.js.map → chunk-UV5JQV3R.js.map} +0 -0
- /package/dist/{discovery-ZJQSXF56.js.map → discovery-VSGC76JN.js.map} +0 -0
- /package/dist/{generate-RJFS2JWA.js.map → generate-QZXOXYFW.js.map} +0 -0
- /package/dist/{init-ZSX3NRCZ.js.map → init-XK6PRUE5.js.map} +0 -0
- /package/dist/{scan-3PMCJ4RB.js.map → scan-CHQHXWVD.js.map} +0 -0
- /package/dist/{scan-generate-SYU4PYZD.js.map → scan-generate-U3RFVDTX.js.map} +0 -0
- /package/dist/{service-VMGNJZ42.js.map → service-MMEKG4MZ.js.map} +0 -0
- /package/dist/{snapshot-XOISO2IS.js.map → snapshot-53TUR3HW.js.map} +0 -0
- /package/dist/{static-viewer-5GXH2MGE.js.map → static-viewer-KKCR4KXR.js.map} +0 -0
- /package/dist/{test-SI4NSHQX.js.map → test-5UCKXYSC.js.map} +0 -0
- /package/dist/{tokens-T6SIVUT5.js.map → tokens-L46MK5AW.js.map} +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { createRequire as __banner_createRequire } from 'module'; const require = __banner_createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createComponentExtractor
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EYXVAMEX.js";
|
|
5
5
|
import {
|
|
6
6
|
generateContextMd,
|
|
7
7
|
generateRegistry,
|
|
8
8
|
loadFragmentFile,
|
|
9
9
|
parseFragmentFile
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3SOAPJDX.js";
|
|
11
11
|
import {
|
|
12
12
|
discoverBlockFiles,
|
|
13
13
|
discoverComponentFiles,
|
|
14
14
|
discoverFragmentFiles,
|
|
15
15
|
discoverTokenFiles,
|
|
16
16
|
extractComponentName
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SM674YAS.js";
|
|
18
18
|
import {
|
|
19
19
|
BrowserPool,
|
|
20
20
|
CaptureEngine,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
formatMs,
|
|
25
25
|
generateHtmlReport,
|
|
26
26
|
getGrade
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4K7EAQ5L.js";
|
|
28
28
|
import {
|
|
29
29
|
BRAND,
|
|
30
30
|
DEFAULTS,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
fragmentDefinitionSchema,
|
|
34
34
|
parseTokenFile,
|
|
35
35
|
resolvePerformanceConfig
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-QM7SVOGF.js";
|
|
37
37
|
|
|
38
38
|
// src/service/snippet-validation.ts
|
|
39
39
|
import ts from "typescript";
|
|
@@ -2450,4 +2450,4 @@ export {
|
|
|
2450
2450
|
runDiffCommand,
|
|
2451
2451
|
runAnalyzeCommand
|
|
2452
2452
|
};
|
|
2453
|
-
//# sourceMappingURL=chunk-
|
|
2453
|
+
//# sourceMappingURL=chunk-RF3C6LGA.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __banner_createRequire } from 'module'; const require = __banner_createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
BRAND
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QM7SVOGF.js";
|
|
5
5
|
|
|
6
6
|
// src/core/discovery.ts
|
|
7
7
|
import { resolve, dirname } from "path";
|
|
@@ -321,4 +321,4 @@ export {
|
|
|
321
321
|
discoverInstalledFragments,
|
|
322
322
|
discoverAllComponents
|
|
323
323
|
};
|
|
324
|
-
//# sourceMappingURL=chunk-
|
|
324
|
+
//# sourceMappingURL=chunk-SM674YAS.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __banner_createRequire } from 'module'; const require = __banner_createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
BRAND
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QM7SVOGF.js";
|
|
5
5
|
|
|
6
6
|
// src/static-viewer.ts
|
|
7
7
|
import { readFile } from "fs/promises";
|
|
@@ -616,4 +616,4 @@ export {
|
|
|
616
616
|
generateStaticViewer,
|
|
617
617
|
generateViewerFromJson
|
|
618
618
|
};
|
|
619
|
-
//# sourceMappingURL=chunk-
|
|
619
|
+
//# sourceMappingURL=chunk-UV5JQV3R.js.map
|
package/dist/core/index.js
CHANGED
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
defineFragment,
|
|
21
21
|
defineRecipe,
|
|
22
22
|
detectSubComponentPaths,
|
|
23
|
+
discoverComponents,
|
|
23
24
|
executeVariantLoaders,
|
|
24
25
|
figma,
|
|
25
26
|
figmaPropMappingSchema,
|
|
@@ -40,6 +41,7 @@ import {
|
|
|
40
41
|
isExportStory,
|
|
41
42
|
isFigmaPropMapping,
|
|
42
43
|
isForceIncluded,
|
|
44
|
+
isReactComponent,
|
|
43
45
|
normalizeToV1,
|
|
44
46
|
parseTokenFile,
|
|
45
47
|
propDefinitionSchema,
|
|
@@ -52,7 +54,7 @@ import {
|
|
|
52
54
|
storyNameFromExport,
|
|
53
55
|
toId,
|
|
54
56
|
usePreviewVariantRuntime
|
|
55
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-QM7SVOGF.js";
|
|
56
58
|
import "../chunk-Z7EY4VHE.js";
|
|
57
59
|
export {
|
|
58
60
|
BRAND,
|
|
@@ -74,6 +76,7 @@ export {
|
|
|
74
76
|
defineFragment,
|
|
75
77
|
defineRecipe,
|
|
76
78
|
detectSubComponentPaths,
|
|
79
|
+
discoverComponents,
|
|
77
80
|
executeVariantLoaders,
|
|
78
81
|
figma,
|
|
79
82
|
figmaPropMappingSchema,
|
|
@@ -94,6 +97,7 @@ export {
|
|
|
94
97
|
isExportStory,
|
|
95
98
|
isFigmaPropMapping,
|
|
96
99
|
isForceIncluded,
|
|
100
|
+
isReactComponent,
|
|
97
101
|
normalizeToV1,
|
|
98
102
|
parseTokenFile,
|
|
99
103
|
propDefinitionSchema,
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
discoverRecipeFiles,
|
|
11
11
|
discoverTokenFiles,
|
|
12
12
|
extractComponentName
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-SM674YAS.js";
|
|
14
|
+
import "./chunk-QM7SVOGF.js";
|
|
15
15
|
import "./chunk-Z7EY4VHE.js";
|
|
16
16
|
export {
|
|
17
17
|
discoverAllComponents,
|
|
@@ -25,4 +25,4 @@ export {
|
|
|
25
25
|
discoverTokenFiles,
|
|
26
26
|
extractComponentName
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=discovery-
|
|
28
|
+
//# sourceMappingURL=discovery-VSGC76JN.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createRequire as __banner_createRequire } from 'module'; const require = __banner_createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
extractPropsFromFile
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-3SOAPJDX.js";
|
|
5
|
+
import "./chunk-SM674YAS.js";
|
|
6
6
|
import "./chunk-D2CDBRNU.js";
|
|
7
7
|
import {
|
|
8
8
|
BRAND
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QM7SVOGF.js";
|
|
10
10
|
import "./chunk-Z7EY4VHE.js";
|
|
11
11
|
|
|
12
12
|
// src/commands/generate.ts
|
|
@@ -456,4 +456,4 @@ function inferStatus(filePath) {
|
|
|
456
456
|
export {
|
|
457
457
|
generate
|
|
458
458
|
};
|
|
459
|
-
//# sourceMappingURL=generate-
|
|
459
|
+
//# sourceMappingURL=generate-QZXOXYFW.js.map
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createRequire as __banner_createRequire } from 'module'; const require
|
|
|
2
2
|
import {
|
|
3
3
|
generateStaticViewer,
|
|
4
4
|
generateViewerFromJson
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UV5JQV3R.js";
|
|
6
6
|
import {
|
|
7
7
|
buildFragments,
|
|
8
8
|
runAnalyzeCommand,
|
|
@@ -12,23 +12,23 @@ import {
|
|
|
12
12
|
validateCoverage,
|
|
13
13
|
validateSchema,
|
|
14
14
|
validateSnippets
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-RF3C6LGA.js";
|
|
16
|
+
import "./chunk-EYXVAMEX.js";
|
|
17
17
|
import {
|
|
18
18
|
findConfigFile,
|
|
19
19
|
loadConfig
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3SOAPJDX.js";
|
|
21
21
|
import {
|
|
22
22
|
discoverComponentFiles,
|
|
23
23
|
discoverFragmentFiles,
|
|
24
24
|
extractComponentName
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-SM674YAS.js";
|
|
26
|
+
import "./chunk-4K7EAQ5L.js";
|
|
27
27
|
import "./chunk-D2CDBRNU.js";
|
|
28
28
|
import {
|
|
29
29
|
defineBlock,
|
|
30
30
|
defineFragment
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QM7SVOGF.js";
|
|
32
32
|
import "./chunk-Z7EY4VHE.js";
|
|
33
33
|
|
|
34
34
|
// src/cli-commands.ts
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
addTranspilePackages,
|
|
6
6
|
detectSetupFramework,
|
|
7
7
|
findEntryFile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DXX6HADE.js";
|
|
9
9
|
import "./chunk-D2CDBRNU.js";
|
|
10
10
|
import {
|
|
11
11
|
BRAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QM7SVOGF.js";
|
|
13
13
|
import "./chunk-Z7EY4VHE.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/init.ts
|
|
@@ -396,7 +396,7 @@ Scan path not found: ${scanPath}
|
|
|
396
396
|
errors: [`Scan path not found: ${scanPath}`]
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
|
-
const { scanGenerate } = await import("./scan-generate-
|
|
399
|
+
const { scanGenerate } = await import("./scan-generate-U3RFVDTX.js");
|
|
400
400
|
const scanResult = await scanGenerate({
|
|
401
401
|
scanPath,
|
|
402
402
|
force: options.force,
|
|
@@ -581,7 +581,7 @@ ${BRAND.name} init
|
|
|
581
581
|
}
|
|
582
582
|
if (scenario === "components" || scenario === "stories") {
|
|
583
583
|
try {
|
|
584
|
-
const { scan } = await import("./scan-
|
|
584
|
+
const { scan } = await import("./scan-CHQHXWVD.js");
|
|
585
585
|
const scanResult = await scan({
|
|
586
586
|
config: configPath,
|
|
587
587
|
verbose: false,
|
|
@@ -633,4 +633,4 @@ ${BRAND.name} init
|
|
|
633
633
|
export {
|
|
634
634
|
init
|
|
635
635
|
};
|
|
636
|
-
//# sourceMappingURL=init-
|
|
636
|
+
//# sourceMappingURL=init-XK6PRUE5.js.map
|
package/dist/mcp-bin.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
BRAND,
|
|
6
6
|
DEFAULTS,
|
|
7
7
|
generateContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QM7SVOGF.js";
|
|
9
9
|
import "./chunk-Z7EY4VHE.js";
|
|
10
10
|
|
|
11
11
|
// src/mcp/server.ts
|
|
@@ -58,7 +58,7 @@ var _service = null;
|
|
|
58
58
|
async function getService() {
|
|
59
59
|
if (!_service) {
|
|
60
60
|
try {
|
|
61
|
-
_service = await import("./service-
|
|
61
|
+
_service = await import("./service-MMEKG4MZ.js");
|
|
62
62
|
} catch {
|
|
63
63
|
throw new Error(
|
|
64
64
|
"Visual tools require playwright. Install it with: npm install playwright"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { createRequire as __banner_createRequire } from 'module'; const require = __banner_createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
scan
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-FO6EBJWP.js";
|
|
5
|
+
import "./chunk-3SOAPJDX.js";
|
|
6
|
+
import "./chunk-SM674YAS.js";
|
|
7
|
+
import "./chunk-4K7EAQ5L.js";
|
|
8
8
|
import "./chunk-D2CDBRNU.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-QM7SVOGF.js";
|
|
10
10
|
import "./chunk-Z7EY4VHE.js";
|
|
11
11
|
export {
|
|
12
12
|
scan
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=scan-
|
|
14
|
+
//# sourceMappingURL=scan-CHQHXWVD.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createRequire as __banner_createRequire } from 'module'; const require = __banner_createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createComponentExtractor
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-EYXVAMEX.js";
|
|
5
|
+
import "./chunk-3SOAPJDX.js";
|
|
6
6
|
import {
|
|
7
7
|
discoverAllComponents
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SM674YAS.js";
|
|
9
9
|
import "./chunk-D2CDBRNU.js";
|
|
10
10
|
import {
|
|
11
11
|
BRAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QM7SVOGF.js";
|
|
13
13
|
import "./chunk-Z7EY4VHE.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/scan-generate.ts
|
|
@@ -1112,4 +1112,4 @@ export {
|
|
|
1112
1112
|
parseEnrichmentResponse,
|
|
1113
1113
|
scanGenerate
|
|
1114
1114
|
};
|
|
1115
|
-
//# sourceMappingURL=scan-generate-
|
|
1115
|
+
//# sourceMappingURL=scan-generate-U3RFVDTX.js.map
|
|
@@ -97,12 +97,12 @@ import {
|
|
|
97
97
|
shutdownSharedPool,
|
|
98
98
|
sleep,
|
|
99
99
|
summarizePatternsForPrompt
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-4K7EAQ5L.js";
|
|
101
101
|
import "./chunk-D2CDBRNU.js";
|
|
102
102
|
import {
|
|
103
103
|
BRAND,
|
|
104
104
|
DEFAULTS
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-QM7SVOGF.js";
|
|
106
106
|
import "./chunk-Z7EY4VHE.js";
|
|
107
107
|
export {
|
|
108
108
|
BRAND,
|
|
@@ -206,4 +206,4 @@ export {
|
|
|
206
206
|
sleep,
|
|
207
207
|
summarizePatternsForPrompt
|
|
208
208
|
};
|
|
209
|
-
//# sourceMappingURL=service-
|
|
209
|
+
//# sourceMappingURL=service-MMEKG4MZ.js.map
|
|
@@ -2,7 +2,7 @@ import { createRequire as __banner_createRequire } from 'module'; const require
|
|
|
2
2
|
import "./chunk-D2CDBRNU.js";
|
|
3
3
|
import {
|
|
4
4
|
BRAND
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QM7SVOGF.js";
|
|
6
6
|
import "./chunk-Z7EY4VHE.js";
|
|
7
7
|
|
|
8
8
|
// src/commands/snapshot.ts
|
|
@@ -136,4 +136,4 @@ ${BRAND.name} Visual Snapshots
|
|
|
136
136
|
export {
|
|
137
137
|
snapshot
|
|
138
138
|
};
|
|
139
|
-
//# sourceMappingURL=snapshot-
|
|
139
|
+
//# sourceMappingURL=snapshot-53TUR3HW.js.map
|
|
@@ -2,12 +2,12 @@ import { createRequire as __banner_createRequire } from 'module'; const require
|
|
|
2
2
|
import {
|
|
3
3
|
generateStaticViewer,
|
|
4
4
|
generateViewerFromJson
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UV5JQV3R.js";
|
|
6
6
|
import "./chunk-D2CDBRNU.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-QM7SVOGF.js";
|
|
8
8
|
import "./chunk-Z7EY4VHE.js";
|
|
9
9
|
export {
|
|
10
10
|
generateStaticViewer,
|
|
11
11
|
generateViewerFromJson
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=static-viewer-
|
|
13
|
+
//# sourceMappingURL=static-viewer-KKCR4KXR.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRequire as __banner_createRequire } from 'module'; const require = __banner_createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
parseFragmentFile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3SOAPJDX.js";
|
|
5
5
|
import {
|
|
6
6
|
discoverFragmentFiles
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-SM674YAS.js";
|
|
8
|
+
import "./chunk-QM7SVOGF.js";
|
|
9
9
|
import "./chunk-Z7EY4VHE.js";
|
|
10
10
|
|
|
11
11
|
// src/test/index.ts
|
|
@@ -1071,4 +1071,4 @@ export {
|
|
|
1071
1071
|
listTests,
|
|
1072
1072
|
runTestCommand
|
|
1073
1073
|
};
|
|
1074
|
-
//# sourceMappingURL=test-
|
|
1074
|
+
//# sourceMappingURL=test-5UCKXYSC.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createRequire as __banner_createRequire } from 'module'; const require = __banner_createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
loadConfig
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-3SOAPJDX.js";
|
|
5
|
+
import "./chunk-SM674YAS.js";
|
|
6
6
|
import {
|
|
7
7
|
parseTokenFiles
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4K7EAQ5L.js";
|
|
9
9
|
import "./chunk-D2CDBRNU.js";
|
|
10
10
|
import {
|
|
11
11
|
BRAND
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QM7SVOGF.js";
|
|
13
13
|
import "./chunk-Z7EY4VHE.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/tokens.ts
|
|
@@ -172,4 +172,4 @@ export {
|
|
|
172
172
|
tokens_default as default,
|
|
173
173
|
tokens
|
|
174
174
|
};
|
|
175
|
-
//# sourceMappingURL=tokens-
|
|
175
|
+
//# sourceMappingURL=tokens-L46MK5AW.js.map
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
generatePreviewModule,
|
|
6
6
|
loadConfig,
|
|
7
7
|
parseFragmentFile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3SOAPJDX.js";
|
|
9
9
|
import {
|
|
10
10
|
discoverFragmentFiles,
|
|
11
11
|
discoverInstalledFragments
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SM674YAS.js";
|
|
13
13
|
import "./chunk-D2CDBRNU.js";
|
|
14
14
|
import {
|
|
15
15
|
BRAND,
|
|
16
16
|
generateContext
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QM7SVOGF.js";
|
|
18
18
|
import "./chunk-Z7EY4VHE.js";
|
|
19
19
|
|
|
20
20
|
// src/viewer/server.ts
|
|
@@ -373,7 +373,7 @@ var sharedRenderPool = null;
|
|
|
373
373
|
var browserPoolModule = null;
|
|
374
374
|
async function getSharedRenderPool() {
|
|
375
375
|
if (!browserPoolModule) {
|
|
376
|
-
browserPoolModule = await import("./service-
|
|
376
|
+
browserPoolModule = await import("./service-MMEKG4MZ.js");
|
|
377
377
|
}
|
|
378
378
|
if (!sharedRenderPool) {
|
|
379
379
|
sharedRenderPool = new browserPoolModule.BrowserPool({
|
|
@@ -616,7 +616,7 @@ function fragmentsPlugin(options) {
|
|
|
616
616
|
const address = _server.httpServer?.address();
|
|
617
617
|
const port = typeof address === "object" && address ? address.port : 6006;
|
|
618
618
|
const renderViewport = viewport || { width: 800, height: 600 };
|
|
619
|
-
const { FigmaClient, bufferToBase64Url } = await import("./service-
|
|
619
|
+
const { FigmaClient, bufferToBase64Url } = await import("./service-MMEKG4MZ.js");
|
|
620
620
|
const figmaClient = new FigmaClient({
|
|
621
621
|
accessToken: figmaToken
|
|
622
622
|
});
|
|
@@ -707,7 +707,7 @@ function fragmentsPlugin(options) {
|
|
|
707
707
|
);
|
|
708
708
|
return;
|
|
709
709
|
}
|
|
710
|
-
const { FigmaClient } = await import("./service-
|
|
710
|
+
const { FigmaClient } = await import("./service-MMEKG4MZ.js");
|
|
711
711
|
const figmaClient = new FigmaClient({ accessToken: figmaToken });
|
|
712
712
|
const { fileKey, nodeId } = figmaClient.parseUrl(figmaUrl);
|
|
713
713
|
const figmaDesignProps = await figmaClient.getNodeProperties(
|
|
@@ -748,7 +748,7 @@ function fragmentsPlugin(options) {
|
|
|
748
748
|
}));
|
|
749
749
|
return;
|
|
750
750
|
}
|
|
751
|
-
const { getSharedTokenRegistry } = await import("./service-
|
|
751
|
+
const { getSharedTokenRegistry } = await import("./service-MMEKG4MZ.js");
|
|
752
752
|
const registry = getSharedTokenRegistry();
|
|
753
753
|
if (!registry.isInitialized()) {
|
|
754
754
|
await registry.initialize(config.tokens, projectRoot);
|
|
@@ -808,7 +808,7 @@ function fragmentsPlugin(options) {
|
|
|
808
808
|
}));
|
|
809
809
|
return;
|
|
810
810
|
}
|
|
811
|
-
const { getSharedTokenRegistry } = await import("./service-
|
|
811
|
+
const { getSharedTokenRegistry } = await import("./service-MMEKG4MZ.js");
|
|
812
812
|
const registry = getSharedTokenRegistry();
|
|
813
813
|
if (!registry.isInitialized()) {
|
|
814
814
|
await registry.initialize(config.tokens, projectRoot);
|
|
@@ -870,7 +870,7 @@ function fragmentsPlugin(options) {
|
|
|
870
870
|
res.end(JSON.stringify({ error: "Could not resolve fragment file path" }));
|
|
871
871
|
return;
|
|
872
872
|
}
|
|
873
|
-
const { getSharedTokenRegistry } = await import("./service-
|
|
873
|
+
const { getSharedTokenRegistry } = await import("./service-MMEKG4MZ.js");
|
|
874
874
|
const registry = getSharedTokenRegistry();
|
|
875
875
|
if (!registry.isInitialized()) {
|
|
876
876
|
await registry.initialize(config.tokens, projectRoot);
|
|
@@ -1048,7 +1048,7 @@ function fragmentsPlugin(options) {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
if (!config.tokens || !config.tokens.include || config.tokens.include.length === 0) {
|
|
1050
1050
|
try {
|
|
1051
|
-
const { discoverTokenFiles } = await import("./discovery-
|
|
1051
|
+
const { discoverTokenFiles } = await import("./discovery-VSGC76JN.js");
|
|
1052
1052
|
const discovered = await discoverTokenFiles(projectRoot);
|
|
1053
1053
|
if (discovered.length > 0) {
|
|
1054
1054
|
config.tokens = {
|
|
@@ -1085,7 +1085,7 @@ function fragmentsPlugin(options) {
|
|
|
1085
1085
|
const {
|
|
1086
1086
|
getSharedTokenRegistry,
|
|
1087
1087
|
generateTokenPatches
|
|
1088
|
-
} = await import("./service-
|
|
1088
|
+
} = await import("./service-MMEKG4MZ.js");
|
|
1089
1089
|
const registry = getSharedTokenRegistry();
|
|
1090
1090
|
if (!registry.isInitialized()) {
|
|
1091
1091
|
await registry.initialize(config.tokens, projectRoot);
|
|
@@ -1094,7 +1094,7 @@ function fragmentsPlugin(options) {
|
|
|
1094
1094
|
(f) => f.relativePath === fragmentInfo.path
|
|
1095
1095
|
);
|
|
1096
1096
|
const sourceFile = fragmentFile?.relativePath || `${component}.tsx`;
|
|
1097
|
-
|
|
1097
|
+
const styleDiffs = [];
|
|
1098
1098
|
if (fragmentFile) {
|
|
1099
1099
|
try {
|
|
1100
1100
|
const renderScript = generateRenderScript(
|
|
@@ -2194,7 +2194,7 @@ async function loadFullFragmentForCompare(_server, _fragmentFiles, componentName
|
|
|
2194
2194
|
}
|
|
2195
2195
|
}
|
|
2196
2196
|
async function compareImages(image1Base64, image2Base64, threshold) {
|
|
2197
|
-
const { DiffEngine, base64UrlToBuffer, bufferToBase64Url } = await import("./service-
|
|
2197
|
+
const { DiffEngine, base64UrlToBuffer, bufferToBase64Url } = await import("./service-MMEKG4MZ.js");
|
|
2198
2198
|
const { PNG } = await import("pngjs");
|
|
2199
2199
|
const buffer1 = base64UrlToBuffer(image1Base64);
|
|
2200
2200
|
const buffer2 = base64UrlToBuffer(image2Base64);
|
|
@@ -2727,4 +2727,4 @@ export {
|
|
|
2727
2727
|
createDevServer,
|
|
2728
2728
|
fragmentsPlugin
|
|
2729
2729
|
};
|
|
2730
|
-
//# sourceMappingURL=viewer-
|
|
2730
|
+
//# sourceMappingURL=viewer-M2EQQSGE.js.map
|