@animus-ui/extract 0.1.8 → 0.1.9

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.
@@ -55,6 +55,15 @@ export interface EngineOptions {
55
55
  configJson?: string
56
56
  /** Group registry JSON (v1 `group_registry_json`). */
57
57
  groupRegistryJson?: string
58
+ /**
59
+ * Transform source texts (`{ transformName: sourceText }` JSON) from the
60
+ * system evaluation. `config_json` names each prop's transform but cannot
61
+ * carry its body, and the extractor's other seed is `createTransform()`
62
+ * calls parsed out of project files — so without this, transforms shipped
63
+ * inside a package are unresolvable at build time and their props fall
64
+ * back to the raw value.
65
+ */
66
+ transformSourcesJson?: string
58
67
  /** Selector aliases JSON (v1 `selector_aliases_json`). */
59
68
  selectorAliasesJson?: string
60
69
  /**
@@ -122,6 +131,13 @@ export interface NapiSystemConfig {
122
131
  * alias → `{ value, order, kind }`. Absent when the system registers none.
123
132
  */
124
133
  conditionAliases?: string
134
+ /**
135
+ * Transform source texts (`{ transformName: sourceText }` JSON) captured
136
+ * during system evaluation — the only channel by which transforms shipped
137
+ * inside a package reach the build-time evaluator. Absent against a system
138
+ * built by an older @animus-ui/system.
139
+ */
140
+ transformSources?: string
125
141
  globalStyleBlocks?: string
126
142
  keyframesBlocks?: string
127
143
  /**
@@ -24,7 +24,8 @@ export type AnalyzeProjectArgs = [
24
24
  keyframesJson: string | null,
25
25
  staticCssJson: string | null,
26
26
  conditionAliasesJson: string | null,
27
- externalDirsJson: string | null
27
+ externalDirsJson: string | null,
28
+ transformSourcesJson: string | null
28
29
  ];
29
30
  /** @internal */
30
31
  export interface AnalyzeProjectInputs {
@@ -48,6 +49,7 @@ export interface AnalyzeProjectInputs {
48
49
  /** rootDir-relative external package dirs (JSON string array) for the
49
50
  * external-token candidate walk, or null. */
50
51
  externalDirsJson: string | null;
52
+ transformSourcesJson: string | null;
51
53
  }
52
54
  /** @internal */
53
55
  export declare function buildAnalyzeProjectArgs(inputs: AnalyzeProjectInputs): AnalyzeProjectArgs;
@@ -1 +1 @@
1
- {"version":3,"file":"analyze-project-args.d.ts","sourceRoot":"","sources":["../pipeline/analyze-project-args.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,gBAAgB;AAChB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE,MAAM;IAClB,eAAe,EAAE,MAAM;IACvB,kBAAkB,EAAE,MAAM,GAAG,IAAI;IACjC,cAAc,EAAE,MAAM;IACtB,iBAAiB,EAAE,MAAM;IACzB,qBAAqB,EAAE,MAAM;IAC7B,OAAO,EAAE,OAAO;IAChB,iBAAiB,EAAE,MAAM,GAAG,IAAI;IAChC,mBAAmB,EAAE,MAAM,GAAG,IAAI;IAClC,iBAAiB,EAAE,IAAI;IACvB,qBAAqB,EAAE,MAAM,GAAG,IAAI;IACpC,eAAe,EAAE,MAAM,GAAG,IAAI;IAC9B,aAAa,EAAE,MAAM,GAAG,IAAI;IAC5B,aAAa,EAAE,MAAM,GAAG,IAAI;IAG5B,oBAAoB,EAAE,MAAM,GAAG,IAAI;IAInC,gBAAgB,EAAE,MAAM,GAAG,IAAI;CAChC,CAAC;AAEF,gBAAgB;AAChB,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,aAAa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cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,sEAAsE;IACtE,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,qEAAqE;IACrE,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC;kDAC8C;IAC9C,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED,gBAAgB;AAChB,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,oBAAoB,GAC3B,kBAAkB,CAqBpB"}
@@ -80,6 +80,12 @@ export interface CollectedExternalPackages {
80
80
  * single-value view correlation consumers key on derives via
81
81
  * `firstOwners`. */
82
82
  dirOwnerSets: Record<string, string[]>;
83
+ /** Absolute package dir → the EXACT extension list its collection walk
84
+ * used (dist-only dirs widen with the entry's own extension, e.g.
85
+ * `.mjs`). Hosts that rewalk or re-classify paths under a dir must use
86
+ * this same list — recomputing from the project default silently drops
87
+ * every file the widened walk admitted. */
88
+ dirExtensions: Record<string, string[]>;
83
89
  /** rootDir-relative file path → owning specifier, for files THIS collection
84
90
  * pushed (first-contributing specifier wins; files the caller's own set
85
91
  * already supplied stay unattributed — they are consumer-owned). */
@@ -1 +1 @@
1
- {"version":3,"file":"discover-packages.d.ts","sourceRoot":"","sources":["../pipeline/discover-packages.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAS5D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AM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAmNrC;AAED;sEACsE;AACtE,wBAAgB,WAAW,CACzB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GACrC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAMxB;AAED;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,yBAAyB,EACpC,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAAC,EACvC,OAAO,EAAE,MAAM,GACd,yBAAyB,CA4D3B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,sBAAsB,EAAE,GACjC,MAAM,GAAG,IAAI,CAMf;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,sBAAsB,EAAE,GACjC,MAAM,GAAG,IAAI,CAMf;AAED,wBAAgB,yBAAyB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,EAAE,CAoN1E"}
@@ -42,7 +42,7 @@ export interface EngineApi {
42
42
  loadSystemModule: (...args: unknown[]) => any;
43
43
  /** Keyframes-only scan of an external package entry. */
44
44
  scanKeyframesExports: (entryPath: string, rootDir: string) => string | null;
45
- analyzeProject: (filesJson: string, scalesJson: string, variableMapJson: string, contextualVarsJson: string | null, propConfigJson: string, groupRegistryJson: string, packageResolutionJson: string, devMode: boolean, emitterConfigJson: string | null, selectorAliasesJson: string | null, selectorOrderJson: string | null, globalStyleBlocksJson: string | null, pathAliasesJson: string | null, keyframesJson: string | null, staticCssJson: string | null, conditionAliasesJson: string | null, externalDirsJson: string | null) => string;
45
+ analyzeProject: (filesJson: string, scalesJson: string, variableMapJson: string, contextualVarsJson: string | null, propConfigJson: string, groupRegistryJson: string, packageResolutionJson: string, devMode: boolean, emitterConfigJson: string | null, selectorAliasesJson: string | null, selectorOrderJson: string | null, globalStyleBlocksJson: string | null, pathAliasesJson: string | null, keyframesJson: string | null, staticCssJson: string | null, conditionAliasesJson: string | null, externalDirsJson: string | null, transformSourcesJson: string | null) => string;
46
46
  transformFile: (source: string, path: string, manifest: string) => TransformFileResult;
47
47
  clearAnalysisCache: () => void;
48
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"engine-adapter.d.ts","sourceRoot":"","sources":["../pipeline/engine-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,iFAAiF;AACjF,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,UAAU,IAAI,IAAI,CAAC;CACpB;AAED,6DAA6D;AAC7D,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,OAAO,CAAC;CACxB;AAED;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IAIxB,gBAAgB,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,GAAG,CAAC;IAC9C,wDAAwD;IACxD,oBAAoB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;IAC5E,cAAc,EAAE,CACd,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,eAAe,EAAE,MAAM,EACvB,kBAAkB,EAAE,MAAM,GAAG,IAAI,EACjC,cAAc,EAAE,MAAM,EACtB,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,MAAM,GAAG,IAAI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,GAAG,MAAM,SAAS,CAwH5E"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Build-failing escalation for `kind: "error"` manifest diagnostics
3
+ * (extraction-diagnostics §Error diagnostics fail the build; design D8 of
4
+ * transform-result-hardening).
5
+ *
6
+ * ONE policy point shared by BOTH bundler plugins: each calls
7
+ * `assertNoErrorDiagnostics` at its analysis-accept seam, immediately after
8
+ * a completed analysis and BEFORE any stylesheet content is served or
9
+ * written. Failure content is composed here, from the diagnostics alone, so
10
+ * identical input produces identical failure messages in every host —
11
+ * plugin policy must not fork (precedent: pkg-collection divergences).
12
+ */
13
+ /** The fields of a manifest diagnostic the error gate reads — structural
14
+ * (fields used only), so both the parsed-manifest entries and TS-side
15
+ * `ManifestDiagnostic` values qualify. Mirrors the Rust `CssDiagnostic`
16
+ * in `extract-v2/src/analyze_css.rs`. */
17
+ export type CssDiagnosticLike = {
18
+ file: string;
19
+ component: string;
20
+ kind: string;
21
+ message: string;
22
+ };
23
+ /**
24
+ * Throw when the diagnostics carry any `kind: "error"` entry — one
25
+ * aggregated `Error` naming EVERY offender (component, file, message — one
26
+ * line per entry, each prefixed `[animus]`). Warning-only diagnostics
27
+ * (`bail`/`skip`/`warn`, any severity) never trip this gate; their routing
28
+ * stays with `surfaceManifestDiagnostics`. Callers accept the manifest only
29
+ * past this point, so no stylesheet from a failing analysis is published.
30
+ */
31
+ export declare function assertNoErrorDiagnostics(diagnostics: CssDiagnosticLike[] | undefined): void;
32
+ //# sourceMappingURL=error-diagnostics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-diagnostics.d.ts","sourceRoot":"","sources":["../pipeline/error-diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;0CAG0C;AAC1C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,iBAAiB,EAAE,GAAG,SAAS,GAC3C,IAAI,CAsBN"}
package/dist/index.cjs CHANGED
@@ -124,7 +124,8 @@ function buildAnalyzeProjectArgs(inputs) {
124
124
  inputs.keyframesJson,
125
125
  inputs.staticCssJson,
126
126
  inputs.conditionAliasesJson,
127
- inputs.externalDirsJson
127
+ inputs.externalDirsJson,
128
+ inputs.transformSourcesJson
128
129
  ];
129
130
  }
130
131
  //#endregion
@@ -143,7 +144,7 @@ function createV2EngineApi(deps) {
143
144
  return {
144
145
  loadSystemModule: (...args) => native.loadSystemModule(...args),
145
146
  scanKeyframesExports: (entryPath, rootDir) => native.scanKeyframesExports(entryPath, rootDir) ?? null,
146
- analyzeProject: (filesJsonRaw, scalesJson, variableMapJson, contextualVarsJson, propConfigJson, groupRegistryJson, packageResolutionJson, devMode, emitterConfigJson, selectorAliasesJson, _selectorOrderJson, globalStyleBlocksJson, pathAliasesJson, keyframesJson, staticCssJson, conditionAliasesJson, externalDirsJson) => {
147
+ analyzeProject: (filesJsonRaw, scalesJson, variableMapJson, contextualVarsJson, propConfigJson, groupRegistryJson, packageResolutionJson, devMode, emitterConfigJson, selectorAliasesJson, _selectorOrderJson, globalStyleBlocksJson, pathAliasesJson, keyframesJson, staticCssJson, conditionAliasesJson, externalDirsJson, transformSourcesJson) => {
147
148
  const filesJson = deps.rehydrateFilesJson ? deps.rehydrateFilesJson(filesJsonRaw) : filesJsonRaw;
148
149
  const sent = /* @__PURE__ */ new Map();
149
150
  for (const entry of JSON.parse(filesJson)) sent.set(entry.path, entry.source);
@@ -167,6 +168,7 @@ function createV2EngineApi(deps) {
167
168
  pathAliasesJson: pathAliasesJson ?? void 0,
168
169
  staticCssJson: staticCssJson ?? void 0,
169
170
  externalDirsJson: externalDirsJson ?? void 0,
171
+ transformSourcesJson: transformSourcesJson ?? void 0,
170
172
  devMode
171
173
  };
172
174
  const engine = new native.ExtractEngine(config);
@@ -588,6 +590,7 @@ async function collectExternalPackageSources(opts) {
588
590
  const keyframesScanEntries = /* @__PURE__ */ new Map();
589
591
  const packageDirs = [];
590
592
  const dirOwnerSets = {};
593
+ const dirExtensions = {};
591
594
  const fileOwners = {};
592
595
  const outcomes = [];
593
596
  const claimDir = (dir, specifier) => {
@@ -616,6 +619,7 @@ async function collectExternalPackageSources(opts) {
616
619
  if ((0, fs.existsSync)(srcDir)) {
617
620
  packageDirs.push(srcDir);
618
621
  claimDir(srcDir, specifier);
622
+ dirExtensions[srcDir] = [...extensionsSet];
619
623
  onPackageResolved?.(specifier, srcDir);
620
624
  const srcEntry = sourceEntryForSpecifier(specifier, srcDir, extensionsSet);
621
625
  if (srcEntry) {
@@ -668,6 +672,7 @@ async function collectExternalPackageSources(opts) {
668
672
  keyframesScanEntries.set(specifier, absEntry);
669
673
  const outputExtensions = new Set(extensionsSet);
670
674
  outputExtensions.add((0, path.extname)(absEntry));
675
+ dirExtensions[outputDir] = [...outputExtensions];
671
676
  const outputFiles = discoverFiles(outputDir, outputDir, [], outputExtensions).filter((file) => {
672
677
  const relToOutput = (0, path.relative)(outputDir, file);
673
678
  return !PACKAGE_OUTPUT_EXCLUDES.some((pattern) => relToOutput.includes(pattern));
@@ -710,6 +715,7 @@ async function collectExternalPackageSources(opts) {
710
715
  keyframesScanEntries,
711
716
  packageDirs,
712
717
  dirOwnerSets,
718
+ dirExtensions,
713
719
  fileOwners,
714
720
  outcomes
715
721
  };
@@ -756,6 +762,11 @@ function excludeCollectedPackages(collected, rejectedSpecifiers, rootDir) {
756
762
  if (kept.length === 0) continue;
757
763
  dirOwnerSets[dir] = kept;
758
764
  }
765
+ const dirExtensions = {};
766
+ for (const [dir, exts] of Object.entries(collected.dirExtensions)) {
767
+ if (rejectedDirs.includes(dir)) continue;
768
+ dirExtensions[dir] = exts;
769
+ }
759
770
  const fileOwners = {};
760
771
  for (const [relPath, owner] of Object.entries(collected.fileOwners)) {
761
772
  if (rejectedSpecifiers.has(owner)) continue;
@@ -768,6 +779,7 @@ function excludeCollectedPackages(collected, rejectedSpecifiers, rootDir) {
768
779
  keyframesScanEntries,
769
780
  packageDirs: collected.packageDirs.filter((dir) => !rejectedDirs.includes(dir)),
770
781
  dirOwnerSets,
782
+ dirExtensions,
771
783
  fileOwners,
772
784
  outcomes: collected.outcomes
773
785
  };
@@ -1447,6 +1459,7 @@ function buildAnalysisInputs(opts) {
1447
1459
  keyframesJson: opts.system.keyframesJson,
1448
1460
  staticCssJson: opts.staticCssJson ?? null,
1449
1461
  conditionAliasesJson: opts.system.conditionAliasesJson ?? null,
1462
+ transformSourcesJson: opts.system.transformSourcesJson ?? null,
1450
1463
  externalDirsJson: opts.externalDirs?.length && hasSourceThemeManifests(opts.system) ? JSON.stringify(opts.externalDirs) : null
1451
1464
  };
1452
1465
  }
@@ -1588,6 +1601,7 @@ function loadSystemConfig(engineApi, opts) {
1588
1601
  contextualVarsJson,
1589
1602
  selectorAliasesJson: config.selectorAliases || null,
1590
1603
  conditionAliasesJson: config.conditionAliases || null,
1604
+ transformSourcesJson: config.transformSources || null,
1591
1605
  globalStyleBlocksJson: config.globalStyleBlocks || null,
1592
1606
  keyframesJson: config.keyframesBlocks || null,
1593
1607
  dependencies: config.dependencies ?? [],
@@ -1833,6 +1847,22 @@ function readTsconfigAliasPairs(rootDir) {
1833
1847
  return pairs;
1834
1848
  }
1835
1849
  //#endregion
1850
+ //#region pipeline/error-diagnostics.ts
1851
+ /**
1852
+ * Throw when the diagnostics carry any `kind: "error"` entry — one
1853
+ * aggregated `Error` naming EVERY offender (component, file, message — one
1854
+ * line per entry, each prefixed `[animus]`). Warning-only diagnostics
1855
+ * (`bail`/`skip`/`warn`, any severity) never trip this gate; their routing
1856
+ * stays with `surfaceManifestDiagnostics`. Callers accept the manifest only
1857
+ * past this point, so no stylesheet from a failing analysis is published.
1858
+ */
1859
+ function assertNoErrorDiagnostics(diagnostics) {
1860
+ const errors = (diagnostics ?? []).filter((diagnostic) => diagnostic.kind === "error");
1861
+ if (errors.length === 0) return;
1862
+ const lines = [...new Set(errors.map((diagnostic) => `[animus] ${diagnostic.component || "<unknown component>"} (${diagnostic.file || "<unknown file>"}): ${diagnostic.message || "<no message>"}`))];
1863
+ throw new Error(lines.join("\n"));
1864
+ }
1865
+ //#endregion
1836
1866
  //#region pipeline/mdx-preprocessor.ts
1837
1867
  /**
1838
1868
  * MDX source preprocessor for the extraction pipeline.
@@ -2022,6 +2052,7 @@ exports.RETIRED_ENGINE_MESSAGE = RETIRED_ENGINE_MESSAGE;
2022
2052
  exports.applyPrefix = applyPrefix;
2023
2053
  exports.applyUnitFallback = applyUnitFallback;
2024
2054
  exports.assembleStylesheet = assembleStylesheet;
2055
+ exports.assertNoErrorDiagnostics = assertNoErrorDiagnostics;
2025
2056
  exports.assertNoRetiredEngineSelection = assertNoRetiredEngineSelection;
2026
2057
  exports.buildAnalysisInputs = buildAnalysisInputs;
2027
2058
  exports.buildAnalyzeProjectArgs = buildAnalyzeProjectArgs;
package/dist/index.d.ts CHANGED
@@ -30,6 +30,8 @@ export { formatRustTimingWaterfall } from './timing-waterfall';
30
30
  export { readTsconfigAliasPairs } from './tsconfig-paths';
31
31
  export type { DynamicPropConfigEntry, DynamicPropMeta, } from './dynamic-prop-config';
32
32
  export { buildDynamicPropConfig } from './dynamic-prop-config';
33
+ export type { CssDiagnosticLike } from './error-diagnostics';
34
+ export { assertNoErrorDiagnostics } from './error-diagnostics';
33
35
  export type { ManifestDiagnostic } from './manifest-diagnostics';
34
36
  export { isUnresolvedParentDrop, surfaceManifestDiagnostics, unresolvedParentName, } from './manifest-diagnostics';
35
37
  export type { DefaultExtension, PreprocessMdxResult } from './mdx-preprocessor';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../pipeline/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OA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BAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,YAAY,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
package/dist/index.mjs CHANGED
@@ -103,7 +103,8 @@ function buildAnalyzeProjectArgs(inputs) {
103
103
  inputs.keyframesJson,
104
104
  inputs.staticCssJson,
105
105
  inputs.conditionAliasesJson,
106
- inputs.externalDirsJson
106
+ inputs.externalDirsJson,
107
+ inputs.transformSourcesJson
107
108
  ];
108
109
  }
109
110
  //#endregion
@@ -122,7 +123,7 @@ function createV2EngineApi(deps) {
122
123
  return {
123
124
  loadSystemModule: (...args) => native.loadSystemModule(...args),
124
125
  scanKeyframesExports: (entryPath, rootDir) => native.scanKeyframesExports(entryPath, rootDir) ?? null,
125
- analyzeProject: (filesJsonRaw, scalesJson, variableMapJson, contextualVarsJson, propConfigJson, groupRegistryJson, packageResolutionJson, devMode, emitterConfigJson, selectorAliasesJson, _selectorOrderJson, globalStyleBlocksJson, pathAliasesJson, keyframesJson, staticCssJson, conditionAliasesJson, externalDirsJson) => {
126
+ analyzeProject: (filesJsonRaw, scalesJson, variableMapJson, contextualVarsJson, propConfigJson, groupRegistryJson, packageResolutionJson, devMode, emitterConfigJson, selectorAliasesJson, _selectorOrderJson, globalStyleBlocksJson, pathAliasesJson, keyframesJson, staticCssJson, conditionAliasesJson, externalDirsJson, transformSourcesJson) => {
126
127
  const filesJson = deps.rehydrateFilesJson ? deps.rehydrateFilesJson(filesJsonRaw) : filesJsonRaw;
127
128
  const sent = /* @__PURE__ */ new Map();
128
129
  for (const entry of JSON.parse(filesJson)) sent.set(entry.path, entry.source);
@@ -146,6 +147,7 @@ function createV2EngineApi(deps) {
146
147
  pathAliasesJson: pathAliasesJson ?? void 0,
147
148
  staticCssJson: staticCssJson ?? void 0,
148
149
  externalDirsJson: externalDirsJson ?? void 0,
150
+ transformSourcesJson: transformSourcesJson ?? void 0,
149
151
  devMode
150
152
  };
151
153
  const engine = new native.ExtractEngine(config);
@@ -567,6 +569,7 @@ async function collectExternalPackageSources(opts) {
567
569
  const keyframesScanEntries = /* @__PURE__ */ new Map();
568
570
  const packageDirs = [];
569
571
  const dirOwnerSets = {};
572
+ const dirExtensions = {};
570
573
  const fileOwners = {};
571
574
  const outcomes = [];
572
575
  const claimDir = (dir, specifier) => {
@@ -595,6 +598,7 @@ async function collectExternalPackageSources(opts) {
595
598
  if (existsSync(srcDir)) {
596
599
  packageDirs.push(srcDir);
597
600
  claimDir(srcDir, specifier);
601
+ dirExtensions[srcDir] = [...extensionsSet];
598
602
  onPackageResolved?.(specifier, srcDir);
599
603
  const srcEntry = sourceEntryForSpecifier(specifier, srcDir, extensionsSet);
600
604
  if (srcEntry) {
@@ -647,6 +651,7 @@ async function collectExternalPackageSources(opts) {
647
651
  keyframesScanEntries.set(specifier, absEntry);
648
652
  const outputExtensions = new Set(extensionsSet);
649
653
  outputExtensions.add(extname(absEntry));
654
+ dirExtensions[outputDir] = [...outputExtensions];
650
655
  const outputFiles = discoverFiles(outputDir, outputDir, [], outputExtensions).filter((file) => {
651
656
  const relToOutput = relative(outputDir, file);
652
657
  return !PACKAGE_OUTPUT_EXCLUDES.some((pattern) => relToOutput.includes(pattern));
@@ -689,6 +694,7 @@ async function collectExternalPackageSources(opts) {
689
694
  keyframesScanEntries,
690
695
  packageDirs,
691
696
  dirOwnerSets,
697
+ dirExtensions,
692
698
  fileOwners,
693
699
  outcomes
694
700
  };
@@ -735,6 +741,11 @@ function excludeCollectedPackages(collected, rejectedSpecifiers, rootDir) {
735
741
  if (kept.length === 0) continue;
736
742
  dirOwnerSets[dir] = kept;
737
743
  }
744
+ const dirExtensions = {};
745
+ for (const [dir, exts] of Object.entries(collected.dirExtensions)) {
746
+ if (rejectedDirs.includes(dir)) continue;
747
+ dirExtensions[dir] = exts;
748
+ }
738
749
  const fileOwners = {};
739
750
  for (const [relPath, owner] of Object.entries(collected.fileOwners)) {
740
751
  if (rejectedSpecifiers.has(owner)) continue;
@@ -747,6 +758,7 @@ function excludeCollectedPackages(collected, rejectedSpecifiers, rootDir) {
747
758
  keyframesScanEntries,
748
759
  packageDirs: collected.packageDirs.filter((dir) => !rejectedDirs.includes(dir)),
749
760
  dirOwnerSets,
761
+ dirExtensions,
750
762
  fileOwners,
751
763
  outcomes: collected.outcomes
752
764
  };
@@ -1426,6 +1438,7 @@ function buildAnalysisInputs(opts) {
1426
1438
  keyframesJson: opts.system.keyframesJson,
1427
1439
  staticCssJson: opts.staticCssJson ?? null,
1428
1440
  conditionAliasesJson: opts.system.conditionAliasesJson ?? null,
1441
+ transformSourcesJson: opts.system.transformSourcesJson ?? null,
1429
1442
  externalDirsJson: opts.externalDirs?.length && hasSourceThemeManifests(opts.system) ? JSON.stringify(opts.externalDirs) : null
1430
1443
  };
1431
1444
  }
@@ -1567,6 +1580,7 @@ function loadSystemConfig(engineApi, opts) {
1567
1580
  contextualVarsJson,
1568
1581
  selectorAliasesJson: config.selectorAliases || null,
1569
1582
  conditionAliasesJson: config.conditionAliases || null,
1583
+ transformSourcesJson: config.transformSources || null,
1570
1584
  globalStyleBlocksJson: config.globalStyleBlocks || null,
1571
1585
  keyframesJson: config.keyframesBlocks || null,
1572
1586
  dependencies: config.dependencies ?? [],
@@ -1812,6 +1826,22 @@ function readTsconfigAliasPairs(rootDir) {
1812
1826
  return pairs;
1813
1827
  }
1814
1828
  //#endregion
1829
+ //#region pipeline/error-diagnostics.ts
1830
+ /**
1831
+ * Throw when the diagnostics carry any `kind: "error"` entry — one
1832
+ * aggregated `Error` naming EVERY offender (component, file, message — one
1833
+ * line per entry, each prefixed `[animus]`). Warning-only diagnostics
1834
+ * (`bail`/`skip`/`warn`, any severity) never trip this gate; their routing
1835
+ * stays with `surfaceManifestDiagnostics`. Callers accept the manifest only
1836
+ * past this point, so no stylesheet from a failing analysis is published.
1837
+ */
1838
+ function assertNoErrorDiagnostics(diagnostics) {
1839
+ const errors = (diagnostics ?? []).filter((diagnostic) => diagnostic.kind === "error");
1840
+ if (errors.length === 0) return;
1841
+ const lines = [...new Set(errors.map((diagnostic) => `[animus] ${diagnostic.component || "<unknown component>"} (${diagnostic.file || "<unknown file>"}): ${diagnostic.message || "<no message>"}`))];
1842
+ throw new Error(lines.join("\n"));
1843
+ }
1844
+ //#endregion
1815
1845
  //#region pipeline/mdx-preprocessor.ts
1816
1846
  /**
1817
1847
  * MDX source preprocessor for the extraction pipeline.
@@ -1993,4 +2023,4 @@ function realpathThroughNearestExistingAncestor(path) {
1993
2023
  }
1994
2024
  }
1995
2025
  //#endregion
1996
- export { ANIMUS_LAYERS, DEFAULT_EXTENSIONS, KEYFRAMES_EXPORT_COLLISION, KEYFRAMES_EXTERNAL_ENTRY_FAILED, RETIRED_ENGINE_MESSAGE, applyPrefix, applyUnitFallback, assembleStylesheet, assertNoRetiredEngineSelection, buildAnalysisInputs, buildAnalyzeProjectArgs, buildDynamicPropConfig, buildPathAliasesJson, buildSystemPropsModule, camelToKebab, clearEngineCache, collectExternalPackageSources, contentHash, createSourceIdentity, createV2EngineApi, diffFilePlans, discoverFiles, enforceExternalTokenContracts, excludeCollectedPackages, extractSystemFilePackages, findAssetSpecifiers, findPackageRoot, firstOwners, formatRustTimingWaterfall, hashReplacementPlans, isExcludedPackageRelativePath, isPathWithinRoot, isUnresolvedParentDrop, loadSystemConfig, mergeExternalKeyframes, postProcessCss, preprocessMdx, readTsconfigAliasPairs, resolveAbsolutePathSpecifier, resolveAssetFile, resolveLightningTargets, resolveThroughPathAliases, runProjectAnalysis, serializeStaticCss, sharesVolumeRoot, snapshotFilePlans, staleDistIncludesMessage, stripLeadingLayerDeclaration, substituteAssetPlaceholders, surfaceManifestDiagnostics, toWatchKeys, unresolvableIncludesMessage, unresolvedParentName, validateLayerOrder, walkPackageSources };
2026
+ export { ANIMUS_LAYERS, DEFAULT_EXTENSIONS, KEYFRAMES_EXPORT_COLLISION, KEYFRAMES_EXTERNAL_ENTRY_FAILED, RETIRED_ENGINE_MESSAGE, applyPrefix, applyUnitFallback, assembleStylesheet, assertNoErrorDiagnostics, assertNoRetiredEngineSelection, buildAnalysisInputs, buildAnalyzeProjectArgs, buildDynamicPropConfig, buildPathAliasesJson, buildSystemPropsModule, camelToKebab, clearEngineCache, collectExternalPackageSources, contentHash, createSourceIdentity, createV2EngineApi, diffFilePlans, discoverFiles, enforceExternalTokenContracts, excludeCollectedPackages, extractSystemFilePackages, findAssetSpecifiers, findPackageRoot, firstOwners, formatRustTimingWaterfall, hashReplacementPlans, isExcludedPackageRelativePath, isPathWithinRoot, isUnresolvedParentDrop, loadSystemConfig, mergeExternalKeyframes, postProcessCss, preprocessMdx, readTsconfigAliasPairs, resolveAbsolutePathSpecifier, resolveAssetFile, resolveLightningTargets, resolveThroughPathAliases, runProjectAnalysis, serializeStaticCss, sharesVolumeRoot, snapshotFilePlans, staleDistIncludesMessage, stripLeadingLayerDeclaration, substituteAssetPlaceholders, surfaceManifestDiagnostics, toWatchKeys, unresolvableIncludesMessage, unresolvedParentName, validateLayerOrder, walkPackageSources };
@@ -1 +1 @@
1
- {"version":3,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QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC;IACvB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB;;8CAE0C;IAC1C,gBAAgB,CAAC,EAAE,OAAO,wBAAwB,EAAE,kBAAkB,EAAE,CAAC;CAC1E;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,eAAe,GACpB,oBAAoB,CAkCtB;AAQD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAEhC,SAAS,EAAE,MAAM,GAAG,EACpB,IAAI,EAAE,eAAe,GAAG;IAAE,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GAC5E,qBAAqB,CAgCvB;AAED;;;;GAIG;AAEH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,GAAG,IAAI,CAQ3D"}
@@ -18,6 +18,14 @@ export interface SystemConfig {
18
18
  * Optional so the plugins' pre-load `emptySystemConfig()` default need not
19
19
  * restate it; `loadSystemConfig` always populates it after a real load. */
20
20
  conditionAliasesJson?: string | null;
21
+ /** `{ transformName: sourceText }` JSON captured during system evaluation.
22
+ * The build-time evaluator can only be seeded from source text, and
23
+ * `propConfigJson` names each prop's transform without carrying its body —
24
+ * so this is the only channel by which transforms shipped inside a package
25
+ * (rather than declared in a `createTransform()` call the extractor parses
26
+ * out of a project file) become resolvable. Optional so the plugins'
27
+ * pre-load `emptySystemConfig()` default need not restate it. */
28
+ transformSourcesJson?: string | null;
21
29
  globalStyleBlocksJson: string | null;
22
30
  keyframesJson: string | null;
23
31
  /** Canonical absolute paths of every module the loader evaluated for this
@@ -1 +1 @@
1
- {"version":3,"file":"system-config.d.ts","sourceRoot":"","sources":["../pipeline/system-config.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC;;;gFAG4E;IAC5E,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;8DAG0D;IAC1D,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB;;;kDAG8C;IAC9C,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1C;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAE9B,SAAS,EAAE,MAAM,GAAG,EACpB,IAAI,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7D,YAAY,CAuCd"}
1
+ {"version":3,"file":"system-config.d.ts","sourceRoot":"","sources":["../pipeline/system-config.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC;;;gFAG4E;IAC5E,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC;;;;;;sEAMkE;IAClE,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;8DAG0D;IAC1D,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB;;;kDAG8C;IAC9C,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1C;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAE9B,SAAS,EAAE,MAAM,GAAG,EACpB,IAAI,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7D,YAAY,CAwCd"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@animus-ui/extract",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Animus static CSS extraction pipeline (Rust/NAPI)",
5
5
  "keywords": [
6
6
  "animus",
@@ -51,12 +51,12 @@
51
51
  "build:v2:debug": "cd crates/extract-v2 && bunx napi build --platform"
52
52
  },
53
53
  "dependencies": {
54
- "@animus-ui/properties": "0.1.8",
54
+ "@animus-ui/properties": "0.1.9",
55
55
  "browserslist": "^4.24.0",
56
56
  "lightningcss": "^1.29.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@animus-ui/system": "0.1.8",
59
+ "@animus-ui/system": "0.1.9",
60
60
  "@mdx-js/mdx": "3.1.1",
61
61
  "@napi-rs/cli": "^3.7.3"
62
62
  },