@animus-ui/extract 0.1.0-next.38 → 0.1.0-next.40

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 ADDED
@@ -0,0 +1,34 @@
1
+ # @animus-ui/extract
2
+
3
+ Rust/NAPI static CSS extraction pipeline for Animus. Analyzes TypeScript source files using OXC, resolves builder chains against serialized system config, and emits layered CSS.
4
+
5
+ This package is consumed by [`@animus-ui/vite-plugin`](../vite-plugin) and [`@animus-ui/next-plugin`](../next-plugin). You typically don't install it directly — the bundler plugins depend on it.
6
+
7
+ ## Platforms
8
+
9
+ Pre-built binaries for:
10
+ - `darwin-arm64` (macOS Apple Silicon)
11
+ - `linux-x64-gnu` (Linux x64)
12
+ - `linux-arm64-gnu` (Linux ARM64)
13
+
14
+ ## API
15
+
16
+ ```tsx
17
+ import { analyzeProject } from '@animus-ui/extract';
18
+
19
+ const manifest = analyzeProject(
20
+ fileEntriesJson,
21
+ scalesJson,
22
+ variableMapJson,
23
+ contextualVarsJson,
24
+ propConfig,
25
+ groupRegistry,
26
+ packageResolutionJson,
27
+ devMode,
28
+ prefix
29
+ );
30
+ ```
31
+
32
+ ## License
33
+
34
+ MIT
Binary file
Binary file
Binary file
package/index.d.ts CHANGED
@@ -16,7 +16,7 @@
16
16
  * Overrides hardcoded import paths in generated source. When `None`, defaults to
17
17
  * `@animus-ui/system` and `virtual:animus/styles.css`.
18
18
  */
19
- export declare function analyzeProject(fileEntriesJson: string, themeJson: string, variableMapJson: string, contextualVarsJson: string | undefined | null, configJson: string, groupRegistryJson: string, packageResolutionJson: string, devMode?: boolean | undefined | null, prefix?: string | undefined | null, emitterConfigJson?: string | undefined | null): string
19
+ export declare function analyzeProject(fileEntriesJson: string, themeJson: string, variableMapJson: string, contextualVarsJson: string | undefined | null, configJson: string, groupRegistryJson: string, packageResolutionJson: string, devMode?: boolean | undefined | null, prefix?: string | undefined | null, emitterConfigJson?: string | undefined | null, selectorAliasesJson?: string | undefined | null, selectorOrderJson?: string | undefined | null): string
20
20
 
21
21
  /**
22
22
  * Clear the per-file extraction cache used by `analyze_project()`.
@@ -25,7 +25,7 @@ export declare function analyzeProject(fileEntriesJson: string, themeJson: strin
25
25
  */
26
26
  export declare function clearAnalysisCache(): void
27
27
 
28
- export declare function extract(source: string, filename: string, themeJson: string, variableMapJson: string, configJson: string, groupRegistryJson: string): ExtractionResult
28
+ export declare function extract(source: string, filename: string, themeJson: string, variableMapJson: string, configJson: string, groupRegistryJson: string, selectorAliasesJson?: string | undefined | null, selectorOrderJson?: string | undefined | null): ExtractionResult
29
29
 
30
30
  export interface ExtractionResult {
31
31
  css: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@animus-ui/extract",
3
- "version": "0.1.0-next.38",
3
+ "version": "0.1.0-next.40",
4
4
  "description": "Animus static CSS extraction pipeline (Rust/NAPI)",
5
5
  "author": "codecaaron <airrobb@gmail.com>",
6
6
  "license": "MIT",
@@ -27,10 +27,22 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
+ "homepage": "https://github.com/codecaaron/animus/tree/main/packages/extract#readme",
30
31
  "repository": {
31
32
  "type": "git",
32
- "url": "git+https://github.com/codecaaron/animus"
33
+ "url": "git+https://github.com/codecaaron/animus",
34
+ "directory": "packages/extract"
33
35
  },
36
+ "keywords": [
37
+ "css",
38
+ "css-in-js",
39
+ "zero-runtime",
40
+ "compiler",
41
+ "static-css",
42
+ "rust",
43
+ "napi",
44
+ "animus"
45
+ ],
34
46
  "napi": {
35
47
  "binaryName": "animus-extract",
36
48
  "targets": [
@@ -46,12 +58,12 @@
46
58
  "compile": "tsc -p tsconfig.build.json --noEmit"
47
59
  },
48
60
  "optionalDependencies": {
49
- "@animus-ui/extract-darwin-arm64": "0.1.0-next.38",
50
- "@animus-ui/extract-linux-x64-gnu": "0.1.0-next.38",
51
- "@animus-ui/extract-linux-arm64-gnu": "0.1.0-next.38"
61
+ "@animus-ui/extract-darwin-arm64": "0.1.0-next.40",
62
+ "@animus-ui/extract-linux-x64-gnu": "0.1.0-next.40",
63
+ "@animus-ui/extract-linux-arm64-gnu": "0.1.0-next.40"
52
64
  },
53
65
  "dependencies": {
54
- "@animus-ui/properties": "0.1.0-next.38"
66
+ "@animus-ui/properties": "0.1.0-next.40"
55
67
  },
56
68
  "devDependencies": {
57
69
  "@animus-ui/system": "workspace:*",