style-dictionary 4.1.1 → 4.1.2
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/examples/advanced/assets-base64-embed/package.json +1 -1
- package/examples/advanced/create-react-app/package.json +1 -1
- package/examples/advanced/create-react-native-app/package.json +1 -1
- package/examples/advanced/custom-parser/package.json +1 -1
- package/examples/advanced/custom-transforms/package.json +1 -1
- package/examples/advanced/font-face-rules/package.json +1 -1
- package/examples/advanced/format-helpers/package.json +1 -1
- package/examples/advanced/matching-build-files/package.json +1 -1
- package/examples/advanced/multi-brand-multi-platform/package.json +1 -1
- package/examples/advanced/node-modules-as-config-and-properties/package.json +1 -1
- package/examples/advanced/npm-module/package.json +1 -1
- package/examples/advanced/referencing_aliasing/package.json +1 -1
- package/examples/advanced/s3/package.json +1 -1
- package/examples/advanced/tokens-deprecation/package.json +1 -1
- package/examples/advanced/transitive-transforms/package.json +1 -1
- package/examples/advanced/variables-in-outputs/package.json +1 -1
- package/examples/advanced/yaml-tokens/package.json +1 -1
- package/lib/Register.d.ts +2 -2
- package/lib/Register.js +5 -5
- package/lib/StyleDictionary.js +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +1 -1
package/lib/Register.d.ts
CHANGED
|
@@ -70,10 +70,10 @@ export class Register {
|
|
|
70
70
|
*/
|
|
71
71
|
static registerParser(cfg: Parser): void;
|
|
72
72
|
/**
|
|
73
|
-
* @param {
|
|
73
|
+
* @param {Parser} parser
|
|
74
74
|
* @param {typeof Register | Register} target
|
|
75
75
|
*/
|
|
76
|
-
static __registerParser(parser:
|
|
76
|
+
static __registerParser(parser: Parser, target: typeof Register | Register): typeof Register | Register;
|
|
77
77
|
/**
|
|
78
78
|
* @param {Preprocessor} cfg
|
|
79
79
|
*/
|
package/lib/Register.js
CHANGED
|
@@ -53,6 +53,10 @@ export class Register {
|
|
|
53
53
|
*/
|
|
54
54
|
static hooks = getBuiltinHooks();
|
|
55
55
|
|
|
56
|
+
constructor() {
|
|
57
|
+
this.hooks = Register.hooks;
|
|
58
|
+
}
|
|
59
|
+
|
|
56
60
|
/** @type {Required<Hooks>} */
|
|
57
61
|
get hooks() {
|
|
58
62
|
const ctor = /** @type {typeof Register} */ (this.constructor);
|
|
@@ -293,7 +297,7 @@ export class Register {
|
|
|
293
297
|
}
|
|
294
298
|
|
|
295
299
|
/**
|
|
296
|
-
* @param {
|
|
300
|
+
* @param {Parser} parser
|
|
297
301
|
* @param {typeof Register | Register} target
|
|
298
302
|
*/
|
|
299
303
|
static __registerParser(parser, target) {
|
|
@@ -393,8 +397,4 @@ export class Register {
|
|
|
393
397
|
});
|
|
394
398
|
return target;
|
|
395
399
|
}
|
|
396
|
-
|
|
397
|
-
constructor() {
|
|
398
|
-
this.hooks = getBuiltinHooks();
|
|
399
|
-
}
|
|
400
400
|
}
|
package/lib/StyleDictionary.js
CHANGED
|
@@ -78,7 +78,7 @@ export default class StyleDictionary extends Register {
|
|
|
78
78
|
// Placeholder is transformed on prepublish -> see scripts/inject-version.js
|
|
79
79
|
// Another option might be import pkg from './package.json' with { "type": "json" } which would work in both browser and node, but support is not there yet.
|
|
80
80
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#browser_compatibility
|
|
81
|
-
static VERSION = '4.1.
|
|
81
|
+
static VERSION = '4.1.2';
|
|
82
82
|
|
|
83
83
|
/** @returns {Config} */
|
|
84
84
|
get options() {
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { Action } from './Action.ts';
|
|
2
|
-
export type { PlatformConfig, Config, LocalOptions, LogConfig } from './Config.ts';
|
|
2
|
+
export type { PlatformConfig, Config, LocalOptions, LogConfig, Hooks, ExpandFilter, Expand, ExpandConfig, } from './Config.ts';
|
|
3
3
|
export type { DesignToken, DesignTokens, PreprocessedTokens, TransformedToken, TransformedTokens, Dictionary, } from './DesignToken.ts';
|
|
4
4
|
export type { FileHeader, File, FormattingOptions } from './File.ts';
|
|
5
5
|
export type { Filter } from './Filter.ts';
|