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.
Files changed (62) hide show
  1. package/README.md +73 -39
  2. package/dist/android-CRDfSB3_.d.cts +126 -0
  3. package/dist/android-DANJjjPO.d.ts +126 -0
  4. package/dist/builders.cjs +220 -64
  5. package/dist/builders.cjs.map +1 -1
  6. package/dist/builders.d.cts +15 -13
  7. package/dist/builders.d.ts +15 -13
  8. package/dist/builders.js +220 -64
  9. package/dist/builders.js.map +1 -1
  10. package/dist/cli/cli.js +120 -7
  11. package/dist/cli/cli.js.map +1 -1
  12. package/dist/cli/config.d.ts +321 -0
  13. package/dist/cli/config.js.map +1 -1
  14. package/dist/cli/index.js +119 -7
  15. package/dist/cli/index.js.map +1 -1
  16. package/dist/dispersa-BC1kDF5u.d.ts +118 -0
  17. package/dist/dispersa-DL3J_Pmz.d.cts +118 -0
  18. package/dist/errors-qT4sJgSA.d.cts +104 -0
  19. package/dist/errors-qT4sJgSA.d.ts +104 -0
  20. package/dist/errors.cjs.map +1 -1
  21. package/dist/errors.d.cts +1 -83
  22. package/dist/errors.d.ts +1 -83
  23. package/dist/errors.js.map +1 -1
  24. package/dist/filters.cjs.map +1 -1
  25. package/dist/filters.d.cts +2 -2
  26. package/dist/filters.d.ts +2 -2
  27. package/dist/filters.js.map +1 -1
  28. package/dist/{index-CNT2Meyf.d.cts → index-Dajm5rvM.d.ts} +311 -132
  29. package/dist/{index-CqdaN3X0.d.ts → index-De6SjZYH.d.cts} +311 -132
  30. package/dist/index.cjs +813 -355
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.d.cts +8 -329
  33. package/dist/index.d.ts +8 -329
  34. package/dist/index.js +807 -355
  35. package/dist/index.js.map +1 -1
  36. package/dist/lint.cjs +1017 -0
  37. package/dist/lint.cjs.map +1 -0
  38. package/dist/lint.d.cts +463 -0
  39. package/dist/lint.d.ts +463 -0
  40. package/dist/lint.js +997 -0
  41. package/dist/lint.js.map +1 -0
  42. package/dist/preprocessors.d.cts +2 -2
  43. package/dist/preprocessors.d.ts +2 -2
  44. package/dist/renderers.cjs.map +1 -1
  45. package/dist/renderers.d.cts +7 -6
  46. package/dist/renderers.d.ts +7 -6
  47. package/dist/renderers.js.map +1 -1
  48. package/dist/transforms.cjs +0 -12
  49. package/dist/transforms.cjs.map +1 -1
  50. package/dist/transforms.d.cts +3 -7
  51. package/dist/transforms.d.ts +3 -7
  52. package/dist/transforms.js +1 -12
  53. package/dist/transforms.js.map +1 -1
  54. package/dist/{types-CZb19kiq.d.ts → types-8MLtztK3.d.ts} +56 -1
  55. package/dist/{types-CussyWwe.d.cts → types-BHBHRm0a.d.cts} +56 -1
  56. package/dist/{types-BAv39mum.d.cts → types-BltzwVYK.d.cts} +1 -1
  57. package/dist/{types-DWKq-eJj.d.cts → types-CAdUV-fa.d.cts} +1 -1
  58. package/dist/{types-CzHa7YkW.d.ts → types-DztXKlka.d.ts} +1 -1
  59. package/dist/{types-Bc0kA7De.d.ts → types-TQHV1MrY.d.cts} +19 -1
  60. package/dist/{types-Bc0kA7De.d.cts → types-TQHV1MrY.d.ts} +19 -1
  61. package/dist/{types-BzNcG-rI.d.ts → types-ebxDimRz.d.ts} +1 -1
  62. 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 ResolvedTokens as R, type ShadowToken as S, type TokenType as T, type ResolvedToken as a, type TokenValue as b, type TokenValueReference 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 };
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 ResolvedTokens as R, type ShadowToken as S, type TokenType as T, type ResolvedToken as a, type TokenValue as b, type TokenValueReference 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 };
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 };
@@ -1,4 +1,4 @@
1
- import { a as ResolvedToken } from './types-Bc0kA7De.js';
1
+ import { R as ResolvedToken } from './types-TQHV1MrY.js';
2
2
 
3
3
  /**
4
4
  * @fileoverview Filter system types for token selection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dispersa",
3
- "version": "0.4.2",
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": [