dispersa 0.4.0 → 0.4.1
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 +0 -2
- package/dist/builders.cjs.map +1 -1
- package/dist/builders.d.cts +2 -2
- package/dist/builders.d.ts +2 -2
- package/dist/builders.js.map +1 -1
- package/dist/errors.cjs +0 -16
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +1 -15
- package/dist/errors.d.ts +1 -15
- package/dist/errors.js +1 -15
- package/dist/errors.js.map +1 -1
- package/dist/filters.cjs.map +1 -1
- package/dist/filters.js.map +1 -1
- package/dist/{index-DJ_UHSQG.d.ts → index-Bkedvob6.d.ts} +10 -3
- package/dist/{index-BkvV7Z54.d.cts → index-dwm-xYbQ.d.cts} +10 -3
- package/dist/index.cjs +1 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -22
- package/dist/index.js.map +1 -1
- package/dist/renderers.cjs.map +1 -1
- package/dist/renderers.d.cts +2 -2
- package/dist/renderers.d.ts +2 -2
- package/dist/renderers.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DispersaOptions, B as BuildConfig, a as BuildResult, M as ModifierInputs, R as ResolverDocument } from './index-
|
|
2
|
-
export { A as AndroidRendererOptions, c as BuildError, d as BuildOutput, C as CssRendererOptions, E as ErrorCode, F as FormatOptions, I as IosRendererOptions, L as LifecycleHooks,
|
|
1
|
+
import { D as DispersaOptions, B as BuildConfig, a as BuildResult, M as ModifierInputs, R as ResolverDocument } from './index-dwm-xYbQ.cjs';
|
|
2
|
+
export { A as AndroidRendererOptions, c as BuildError, d as BuildOutput, C as CssRendererOptions, E as ErrorCode, F as FileFunction, e as FormatOptions, I as IosRendererOptions, L as LifecycleHooks, f as MediaQueryFunction, O as OutputConfig, g as OutputTree, P as PermutationData, i as RenderContext, j as RenderMeta, k as RenderOutput, h as Renderer, S as SelectorFunction, T as TailwindRendererOptions, b as ValidationMode, V as ValidationOptions, l as defineRenderer } from './index-dwm-xYbQ.cjs';
|
|
3
3
|
import { R as ResolvedTokens } from './types-Bc0kA7De.cjs';
|
|
4
4
|
export { B as BorderToken, r as BorderValue, k as ColorComponent, j as ColorSpace, C as ColorToken, i as ColorValue, h as ColorValueObject, o as CubicBezierValue, D as DesignTokenValue, d as DimensionToken, l as DimensionValue, e as DurationToken, m as DurationValue, F as FontFamilyValue, n as FontWeightValue, w as GradientStop, G as GradientToken, v as GradientValue, a as ResolvedToken, S as ShadowToken, p as ShadowValueObject, s as StrokeStyleValue, t as StrokeStyleValueObject, T as TokenType, b as TokenValue, c as TokenValueReference, g as TransitionToken, u as TransitionValue, f as TypographyToken, q as TypographyValue, E as isBorderToken, x as isColorToken, y as isDimensionToken, H as isDurationToken, J as isGradientToken, z as isShadowToken, I as isTransitionToken, A as isTypographyToken } from './types-Bc0kA7De.cjs';
|
|
5
5
|
export { T as Transform } from './types-BAv39mum.cjs';
|
|
@@ -7,7 +7,7 @@ export { F as Filter } from './types-DWKq-eJj.cjs';
|
|
|
7
7
|
export { J as JsModuleRendererOptions, a as JsonRendererOptions, P as Preprocessor } from './types-CussyWwe.cjs';
|
|
8
8
|
export { AndroidBuilderConfig, CssBuilderConfig, IosBuilderConfig, JsBuilderConfig, JsonBuilderConfig, TailwindBuilderConfig, android, css, ios, js, json, tailwind } from './builders.cjs';
|
|
9
9
|
export { isOutputTree, outputTree } from './renderers.cjs';
|
|
10
|
-
export { BasePermutationError, CircularReferenceError,
|
|
10
|
+
export { BasePermutationError, CircularReferenceError, ConfigurationError, DispersaError, FileOperationError, ModifierError, TokenReferenceError, ValidationError } from './errors.cjs';
|
|
11
11
|
import 'json-schema-to-ts';
|
|
12
12
|
|
|
13
13
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DispersaOptions, B as BuildConfig, a as BuildResult, M as ModifierInputs, R as ResolverDocument } from './index-
|
|
2
|
-
export { A as AndroidRendererOptions, c as BuildError, d as BuildOutput, C as CssRendererOptions, E as ErrorCode, F as FormatOptions, I as IosRendererOptions, L as LifecycleHooks,
|
|
1
|
+
import { D as DispersaOptions, B as BuildConfig, a as BuildResult, M as ModifierInputs, R as ResolverDocument } from './index-Bkedvob6.js';
|
|
2
|
+
export { A as AndroidRendererOptions, c as BuildError, d as BuildOutput, C as CssRendererOptions, E as ErrorCode, F as FileFunction, e as FormatOptions, I as IosRendererOptions, L as LifecycleHooks, f as MediaQueryFunction, O as OutputConfig, g as OutputTree, P as PermutationData, i as RenderContext, j as RenderMeta, k as RenderOutput, h as Renderer, S as SelectorFunction, T as TailwindRendererOptions, b as ValidationMode, V as ValidationOptions, l as defineRenderer } from './index-Bkedvob6.js';
|
|
3
3
|
import { R as ResolvedTokens } from './types-Bc0kA7De.js';
|
|
4
4
|
export { B as BorderToken, r as BorderValue, k as ColorComponent, j as ColorSpace, C as ColorToken, i as ColorValue, h as ColorValueObject, o as CubicBezierValue, D as DesignTokenValue, d as DimensionToken, l as DimensionValue, e as DurationToken, m as DurationValue, F as FontFamilyValue, n as FontWeightValue, w as GradientStop, G as GradientToken, v as GradientValue, a as ResolvedToken, S as ShadowToken, p as ShadowValueObject, s as StrokeStyleValue, t as StrokeStyleValueObject, T as TokenType, b as TokenValue, c as TokenValueReference, g as TransitionToken, u as TransitionValue, f as TypographyToken, q as TypographyValue, E as isBorderToken, x as isColorToken, y as isDimensionToken, H as isDurationToken, J as isGradientToken, z as isShadowToken, I as isTransitionToken, A as isTypographyToken } from './types-Bc0kA7De.js';
|
|
5
5
|
export { T as Transform } from './types-CzHa7YkW.js';
|
|
@@ -7,7 +7,7 @@ export { F as Filter } from './types-BzNcG-rI.js';
|
|
|
7
7
|
export { J as JsModuleRendererOptions, a as JsonRendererOptions, P as Preprocessor } from './types-CZb19kiq.js';
|
|
8
8
|
export { AndroidBuilderConfig, CssBuilderConfig, IosBuilderConfig, JsBuilderConfig, JsonBuilderConfig, TailwindBuilderConfig, android, css, ios, js, json, tailwind } from './builders.js';
|
|
9
9
|
export { isOutputTree, outputTree } from './renderers.js';
|
|
10
|
-
export { BasePermutationError, CircularReferenceError,
|
|
10
|
+
export { BasePermutationError, CircularReferenceError, ConfigurationError, DispersaError, FileOperationError, ModifierError, TokenReferenceError, ValidationError } from './errors.js';
|
|
11
11
|
import 'json-schema-to-ts';
|
|
12
12
|
|
|
13
13
|
/**
|
package/dist/index.js
CHANGED
|
@@ -59,7 +59,7 @@ var init_token_utils = __esm({
|
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
// src/shared/errors/index.ts
|
|
62
|
-
var DispersaError, TokenReferenceError, CircularReferenceError, ValidationError,
|
|
62
|
+
var DispersaError, TokenReferenceError, CircularReferenceError, ValidationError, FileOperationError, ConfigurationError, BasePermutationError, ModifierError;
|
|
63
63
|
var init_errors = __esm({
|
|
64
64
|
"src/shared/errors/index.ts"() {
|
|
65
65
|
DispersaError = class extends Error {
|
|
@@ -110,20 +110,6 @@ var init_errors = __esm({
|
|
|
110
110
|
this.name = "ValidationError";
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
-
ColorParseError = class extends DispersaError {
|
|
114
|
-
constructor(colorValue) {
|
|
115
|
-
super(`Color parsing failed: '${colorValue}'. Provide a valid CSS color or DTCG color object.`);
|
|
116
|
-
this.colorValue = colorValue;
|
|
117
|
-
this.name = "ColorParseError";
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
DimensionFormatError = class extends DispersaError {
|
|
121
|
-
constructor(dimensionValue) {
|
|
122
|
-
super(`Dimension parsing failed: '${dimensionValue}'. Provide a valid DTCG dimension object.`);
|
|
123
|
-
this.dimensionValue = dimensionValue;
|
|
124
|
-
this.name = "DimensionFormatError";
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
113
|
FileOperationError = class extends DispersaError {
|
|
128
114
|
constructor(operation, filePath, originalError) {
|
|
129
115
|
super(`Failed to ${operation} file: ${filePath}. ${originalError.message}`);
|
|
@@ -3880,12 +3866,6 @@ function toBuildError(error, outputName) {
|
|
|
3880
3866
|
if (error instanceof ValidationError) {
|
|
3881
3867
|
return { message, code: "VALIDATION", severity: "error" };
|
|
3882
3868
|
}
|
|
3883
|
-
if (error instanceof ColorParseError) {
|
|
3884
|
-
return { message, code: "COLOR_PARSE", severity: "error" };
|
|
3885
|
-
}
|
|
3886
|
-
if (error instanceof DimensionFormatError) {
|
|
3887
|
-
return { message, code: "DIMENSION_FORMAT", severity: "error" };
|
|
3888
|
-
}
|
|
3889
3869
|
if (error instanceof FileOperationError) {
|
|
3890
3870
|
return { message, code: "FILE_OPERATION", path: error.filePath, severity: "error" };
|
|
3891
3871
|
}
|
|
@@ -9743,6 +9723,6 @@ init_errors();
|
|
|
9743
9723
|
* LICENSE file in the root directory of this source tree.
|
|
9744
9724
|
*/
|
|
9745
9725
|
|
|
9746
|
-
export { BasePermutationError, CircularReferenceError,
|
|
9726
|
+
export { BasePermutationError, CircularReferenceError, ConfigurationError, Dispersa, DispersaError, FileOperationError, ModifierError, TokenReferenceError, ValidationError, android, css, defineRenderer, ios, isBorderToken, isColorToken, isDimensionToken, isDurationToken, isGradientToken, isOutputTree, isShadowToken, isTransitionToken, isTypographyToken, js, json, outputTree, tailwind };
|
|
9747
9727
|
//# sourceMappingURL=index.js.map
|
|
9748
9728
|
//# sourceMappingURL=index.js.map
|