@xenosystem/generate 0.0.5 โ 0.0.7
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 +33 -33
- package/dist/manifest.d.ts +9 -0
- package/dist/manifest.js +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
# @xenosystem/generate
|
|
2
|
-
|
|
3
|
-
**Declarations โ per-platform artifacts**
|
|
4
|
-
|
|
5
|
-
> Status: ๐ต **planned** โ see [`../../SPEC.md`](../../SPEC.md) ยง13 for the build order.
|
|
6
|
-
|
|
7
|
-
Turns `@xenosystem/elements` declarations into artifacts for each runtime โ the Style
|
|
8
|
-
Dictionary model, generalised past tokens to geometry and state machines.
|
|
9
|
-
|
|
10
|
-
**Not built yet** โ Phase 2.
|
|
11
|
-
|
|
12
|
-
## Pipeline
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
Figma / XENO Canvas โ SVGO (30โ70% reduction) โ declaration generator โ @xenosystem/elements โ CI
|
|
16
|
-
โ
|
|
17
|
-
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
|
|
18
|
-
โผ โผ โผ
|
|
19
|
-
elements-react XenoElementsKit xenosystem-elements
|
|
20
|
-
(npm) (SPM) (Maven)
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Swift cannot be an npm package, which is why renderers ship on each runtime's native channel
|
|
24
|
-
rather than pretending to be siblings in one scope.
|
|
25
|
-
|
|
26
|
-
## Rules
|
|
27
|
-
|
|
28
|
-
- **Never hand-author a renderer component.** 300 hand-maintained animated components will rot.
|
|
29
|
-
- The generator is the only writer of generated output; generated files are marked as such and
|
|
30
|
-
are not edited by hand or by an agent.
|
|
31
|
-
|
|
32
|
-
---
|
|
33
|
-
Part of [`xeno-elements`](../../README.md). Visual authority: [`DESIGN_SYSTEM.md`](../../DESIGN_SYSTEM.md) โ LOCKED.
|
|
1
|
+
# @xenosystem/generate
|
|
2
|
+
|
|
3
|
+
**Declarations โ per-platform artifacts**
|
|
4
|
+
|
|
5
|
+
> Status: ๐ต **planned** โ see [`../../SPEC.md`](../../SPEC.md) ยง13 for the build order.
|
|
6
|
+
|
|
7
|
+
Turns `@xenosystem/elements` declarations into artifacts for each runtime โ the Style
|
|
8
|
+
Dictionary model, generalised past tokens to geometry and state machines.
|
|
9
|
+
|
|
10
|
+
**Not built yet** โ Phase 2.
|
|
11
|
+
|
|
12
|
+
## Pipeline
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
Figma / XENO Canvas โ SVGO (30โ70% reduction) โ declaration generator โ @xenosystem/elements โ CI
|
|
16
|
+
โ
|
|
17
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
|
|
18
|
+
โผ โผ โผ
|
|
19
|
+
elements-react XenoElementsKit xenosystem-elements
|
|
20
|
+
(npm) (SPM) (Maven)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Swift cannot be an npm package, which is why renderers ship on each runtime's native channel
|
|
24
|
+
rather than pretending to be siblings in one scope.
|
|
25
|
+
|
|
26
|
+
## Rules
|
|
27
|
+
|
|
28
|
+
- **Never hand-author a renderer component.** 300 hand-maintained animated components will rot.
|
|
29
|
+
- The generator is the only writer of generated output; generated files are marked as such and
|
|
30
|
+
are not edited by hand or by an agent.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
Part of [`xeno-elements`](../../README.md). Visual authority: [`DESIGN_SYSTEM.md`](../../DESIGN_SYSTEM.md) โ LOCKED.
|
package/dist/manifest.d.ts
CHANGED
|
@@ -12,6 +12,15 @@ export interface ManifestEntry {
|
|
|
12
12
|
/** Axes the element honours โ empty for a degenerate icon. */
|
|
13
13
|
readonly axes: readonly string[];
|
|
14
14
|
readonly signals: readonly string[];
|
|
15
|
+
/**
|
|
16
|
+
* Per-axis value narrowing, when the element honours only some values of an axis
|
|
17
|
+
* (`{ selection: ['off', 'on'] }` for a two-state morph). Absent = every value of every axis.
|
|
18
|
+
* Surfaced because this manifest is what an agent reads: without it a consumer would infer a
|
|
19
|
+
* `mixed` state the element deliberately does not have.
|
|
20
|
+
*/
|
|
21
|
+
readonly values?: {
|
|
22
|
+
readonly [axis: string]: readonly string[];
|
|
23
|
+
};
|
|
15
24
|
/** Geometry variant keys beyond `base` (e.g. `selection:on`), sorted. */
|
|
16
25
|
readonly variants: readonly string[];
|
|
17
26
|
readonly tags: readonly string[];
|
package/dist/manifest.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xenosystem/generate",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "XENO declarations โ per-platform artifacts. The only writer of generated output.",
|
|
6
6
|
"author": "XENO Corporation <emilian@bnkrsys.com>",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"artifacts": "npm run build && node scripts/build-artifacts.mjs"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@xenosystem/elements": "0.0.
|
|
30
|
+
"@xenosystem/elements": "0.0.7"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"typescript": "^5.4.0"
|