dispersa 0.4.2 → 1.0.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/README.md +73 -39
- package/dist/android-CRDfSB3_.d.cts +126 -0
- package/dist/android-DANJjjPO.d.ts +126 -0
- package/dist/builders.cjs +220 -64
- package/dist/builders.cjs.map +1 -1
- package/dist/builders.d.cts +15 -13
- package/dist/builders.d.ts +15 -13
- package/dist/builders.js +220 -64
- package/dist/builders.js.map +1 -1
- package/dist/cli/cli.js +120 -7
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/config.d.ts +321 -0
- package/dist/cli/config.js.map +1 -1
- package/dist/cli/index.js +119 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/dispersa-BC1kDF5u.d.ts +118 -0
- package/dist/dispersa-DL3J_Pmz.d.cts +118 -0
- package/dist/errors-qT4sJgSA.d.cts +104 -0
- package/dist/errors-qT4sJgSA.d.ts +104 -0
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +1 -83
- package/dist/errors.d.ts +1 -83
- package/dist/errors.js.map +1 -1
- package/dist/filters.cjs.map +1 -1
- package/dist/filters.d.cts +2 -2
- package/dist/filters.d.ts +2 -2
- package/dist/filters.js.map +1 -1
- package/dist/{index-CNT2Meyf.d.cts → index-Dajm5rvM.d.ts} +311 -132
- package/dist/{index-CqdaN3X0.d.ts → index-De6SjZYH.d.cts} +311 -132
- package/dist/index.cjs +813 -355
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -329
- package/dist/index.d.ts +8 -329
- package/dist/index.js +807 -355
- package/dist/index.js.map +1 -1
- package/dist/lint.cjs +1017 -0
- package/dist/lint.cjs.map +1 -0
- package/dist/lint.d.cts +463 -0
- package/dist/lint.d.ts +463 -0
- package/dist/lint.js +997 -0
- package/dist/lint.js.map +1 -0
- package/dist/preprocessors.d.cts +2 -2
- package/dist/preprocessors.d.ts +2 -2
- package/dist/renderers.cjs.map +1 -1
- package/dist/renderers.d.cts +7 -6
- package/dist/renderers.d.ts +7 -6
- package/dist/renderers.js.map +1 -1
- package/dist/transforms.cjs +0 -12
- package/dist/transforms.cjs.map +1 -1
- package/dist/transforms.d.cts +3 -7
- package/dist/transforms.d.ts +3 -7
- package/dist/transforms.js +1 -12
- package/dist/transforms.js.map +1 -1
- package/dist/{types-CZb19kiq.d.ts → types-8MLtztK3.d.ts} +56 -1
- package/dist/{types-CussyWwe.d.cts → types-BHBHRm0a.d.cts} +56 -1
- package/dist/{types-BAv39mum.d.cts → types-BltzwVYK.d.cts} +1 -1
- package/dist/{types-DWKq-eJj.d.cts → types-CAdUV-fa.d.cts} +1 -1
- package/dist/{types-CzHa7YkW.d.ts → types-DztXKlka.d.ts} +1 -1
- package/dist/{types-Bc0kA7De.d.ts → types-TQHV1MrY.d.cts} +19 -1
- package/dist/{types-Bc0kA7De.d.cts → types-TQHV1MrY.d.ts} +19 -1
- package/dist/{types-BzNcG-rI.d.ts → types-ebxDimRz.d.ts} +1 -1
- package/package.json +11 -1
|
@@ -364,5 +364,23 @@ type ResolvedToken = Token & {
|
|
|
364
364
|
* ```
|
|
365
365
|
*/
|
|
366
366
|
type ResolvedTokens = Record<string, ResolvedToken>;
|
|
367
|
+
/**
|
|
368
|
+
* Internal resolved token with metadata used by the pipeline and bundlers
|
|
369
|
+
*
|
|
370
|
+
* These fields are not part of the DTCG spec and should be stripped before
|
|
371
|
+
* returning tokens to public callers or rendering output.
|
|
372
|
+
*/
|
|
373
|
+
type InternalResolvedToken = ResolvedToken & {
|
|
374
|
+
/** Internal: Whether this token was originally an alias (not part of DTCG spec) */
|
|
375
|
+
_isAlias?: boolean;
|
|
376
|
+
/** Internal: Source modifier tag for bundle outputs (not part of DTCG spec) */
|
|
377
|
+
_sourceModifier?: string;
|
|
378
|
+
/** Internal: Source set name for bundle outputs (not part of DTCG spec) */
|
|
379
|
+
_sourceSet?: string;
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* Internal collection of resolved tokens (with internal metadata)
|
|
383
|
+
*/
|
|
384
|
+
type InternalResolvedTokens = Record<string, InternalResolvedToken>;
|
|
367
385
|
|
|
368
|
-
export { isTypographyToken as A, type BorderToken as B, type ColorToken as C, type DesignTokenValue as D, isBorderToken as E, type FontFamilyValue as F, type GradientToken as G, isDurationToken as H, isTransitionToken as I, isGradientToken as J, type InternalTokenDocument as K, type
|
|
386
|
+
export { isTypographyToken as A, type BorderToken as B, type ColorToken as C, type DesignTokenValue as D, isBorderToken as E, type FontFamilyValue as F, type GradientToken as G, isDurationToken as H, isTransitionToken as I, isGradientToken as J, type InternalTokenDocument as K, type InternalResolvedTokens as L, type ResolvedToken as R, type ShadowToken as S, type TokenValue as T, type ResolvedTokens as a, type TokenValueReference as b, type TokenType as c, type DimensionToken as d, type DurationToken as e, type TypographyToken as f, type TransitionToken as g, type ColorValueObject as h, type ColorValue as i, type ColorSpace as j, type ColorComponent as k, type DimensionValue as l, type DurationValue as m, type FontWeightValue as n, type CubicBezierValue as o, type ShadowValueObject as p, type TypographyValue as q, type BorderValue as r, type StrokeStyleValue as s, type StrokeStyleValueObject as t, type TransitionValue as u, type GradientValue as v, type GradientStop as w, isColorToken as x, isDimensionToken as y, isShadowToken as z };
|
|
@@ -364,5 +364,23 @@ type ResolvedToken = Token & {
|
|
|
364
364
|
* ```
|
|
365
365
|
*/
|
|
366
366
|
type ResolvedTokens = Record<string, ResolvedToken>;
|
|
367
|
+
/**
|
|
368
|
+
* Internal resolved token with metadata used by the pipeline and bundlers
|
|
369
|
+
*
|
|
370
|
+
* These fields are not part of the DTCG spec and should be stripped before
|
|
371
|
+
* returning tokens to public callers or rendering output.
|
|
372
|
+
*/
|
|
373
|
+
type InternalResolvedToken = ResolvedToken & {
|
|
374
|
+
/** Internal: Whether this token was originally an alias (not part of DTCG spec) */
|
|
375
|
+
_isAlias?: boolean;
|
|
376
|
+
/** Internal: Source modifier tag for bundle outputs (not part of DTCG spec) */
|
|
377
|
+
_sourceModifier?: string;
|
|
378
|
+
/** Internal: Source set name for bundle outputs (not part of DTCG spec) */
|
|
379
|
+
_sourceSet?: string;
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* Internal collection of resolved tokens (with internal metadata)
|
|
383
|
+
*/
|
|
384
|
+
type InternalResolvedTokens = Record<string, InternalResolvedToken>;
|
|
367
385
|
|
|
368
|
-
export { isTypographyToken as A, type BorderToken as B, type ColorToken as C, type DesignTokenValue as D, isBorderToken as E, type FontFamilyValue as F, type GradientToken as G, isDurationToken as H, isTransitionToken as I, isGradientToken as J, type InternalTokenDocument as K, type
|
|
386
|
+
export { isTypographyToken as A, type BorderToken as B, type ColorToken as C, type DesignTokenValue as D, isBorderToken as E, type FontFamilyValue as F, type GradientToken as G, isDurationToken as H, isTransitionToken as I, isGradientToken as J, type InternalTokenDocument as K, type InternalResolvedTokens as L, type ResolvedToken as R, type ShadowToken as S, type TokenValue as T, type ResolvedTokens as a, type TokenValueReference as b, type TokenType as c, type DimensionToken as d, type DurationToken as e, type TypographyToken as f, type TransitionToken as g, type ColorValueObject as h, type ColorValue as i, type ColorSpace as j, type ColorComponent as k, type DimensionValue as l, type DurationValue as m, type FontWeightValue as n, type CubicBezierValue as o, type ShadowValueObject as p, type TypographyValue as q, type BorderValue as r, type StrokeStyleValue as s, type StrokeStyleValueObject as t, type TransitionValue as u, type GradientValue as v, type GradientStop as w, isColorToken as x, isDimensionToken as y, isShadowToken as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dispersa",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Core library for processing DTCG design tokens",
|
|
5
5
|
"author": "Tim Gesemann",
|
|
6
6
|
"license": "MIT",
|
|
@@ -117,6 +117,16 @@
|
|
|
117
117
|
"types": "./dist/cli/cli.d.ts",
|
|
118
118
|
"default": "./dist/cli/cli.js"
|
|
119
119
|
}
|
|
120
|
+
},
|
|
121
|
+
"./lint": {
|
|
122
|
+
"import": {
|
|
123
|
+
"types": "./dist/lint.d.ts",
|
|
124
|
+
"default": "./dist/lint.js"
|
|
125
|
+
},
|
|
126
|
+
"require": {
|
|
127
|
+
"types": "./dist/lint.d.cts",
|
|
128
|
+
"default": "./dist/lint.cjs"
|
|
129
|
+
}
|
|
120
130
|
}
|
|
121
131
|
},
|
|
122
132
|
"files": [
|