@powerlines/plugin-style-dictionary 0.3.231 → 0.3.233
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/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -3
- package/dist/node_modules/.pnpm/{@storm-software_config-tools@1.189.21_magicast@0.5.2 → @storm-software_config-tools@1.189.26_magicast@0.5.2}/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.cjs +1 -1
- package/dist/node_modules/.pnpm/{@storm-software_config-tools@1.189.21_magicast@0.5.2 → @storm-software_config-tools@1.189.26_magicast@0.5.2}/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.mjs +2 -3
- package/dist/style-dictionary/file-header.mjs +1 -2
- package/package.json +8 -8
- package/dist/index.d.cts +0 -20
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -20
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@storm-software_config-tools@1.189.21_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.mjs.map +0 -1
- package/dist/style-dictionary/file-header.mjs.map +0 -1
- package/dist/types/index.d.cts +0 -2
- package/dist/types/index.d.mts +0 -2
- package/dist/types/plugin.d.cts +0 -117
- package/dist/types/plugin.d.cts.map +0 -1
- package/dist/types/plugin.d.mts +0 -117
- package/dist/types/plugin.d.mts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
-
const require_chunk_POXTJ6GF = require('./node_modules/.pnpm/@storm-software_config-tools@1.189.
|
|
3
|
+
const require_chunk_POXTJ6GF = require('./node_modules/.pnpm/@storm-software_config-tools@1.189.26_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.cjs');
|
|
4
4
|
const require_file_header = require('./style-dictionary/file-header.cjs');
|
|
5
5
|
let __powerlines_plugin_esbuild_helpers_resolve = require("@powerlines/plugin-esbuild/helpers/resolve");
|
|
6
6
|
let __stryke_type_checks_is_function = require("@stryke/type-checks/is-function");
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LogLevelLabel } from "./node_modules/.pnpm/@storm-software_config-tools@1.189.
|
|
1
|
+
import { LogLevelLabel } from "./node_modules/.pnpm/@storm-software_config-tools@1.189.26_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.mjs";
|
|
2
2
|
import { fileHeader } from "./style-dictionary/file-header.mjs";
|
|
3
3
|
import { resolve } from "@powerlines/plugin-esbuild/helpers/resolve";
|
|
4
4
|
import { isFunction } from "@stryke/type-checks/is-function";
|
|
@@ -116,5 +116,4 @@ const plugin = (options = {}) => {
|
|
|
116
116
|
var src_default = plugin;
|
|
117
117
|
|
|
118
118
|
//#endregion
|
|
119
|
-
export { src_default as default, plugin };
|
|
120
|
-
//# sourceMappingURL=index.mjs.map
|
|
119
|
+
export { src_default as default, plugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
2
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.26_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
|
|
3
3
|
var LogLevelLabel = {
|
|
4
4
|
SILENT: "silent",
|
|
5
5
|
FATAL: "fatal",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@storm-software+config-tools@1.189.26_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js
|
|
2
2
|
var LogLevelLabel = {
|
|
3
3
|
SILENT: "silent",
|
|
4
4
|
FATAL: "fatal",
|
|
@@ -12,5 +12,4 @@ var LogLevelLabel = {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
|
-
export { LogLevelLabel };
|
|
16
|
-
//# sourceMappingURL=chunk-POXTJ6GF.mjs.map
|
|
15
|
+
export { LogLevelLabel };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-style-dictionary",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.233",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Powerlines plugin to generate project code with Style Dictionary.",
|
|
6
6
|
"keywords": [
|
|
@@ -95,19 +95,19 @@
|
|
|
95
95
|
"typings": "dist/index.d.mts",
|
|
96
96
|
"files": ["dist/**/*"],
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@powerlines/plugin-esbuild": "^0.13.
|
|
99
|
-
"@stryke/path": "^0.26.
|
|
100
|
-
"@stryke/type-checks": "^0.5.
|
|
101
|
-
"@stryke/types": "^0.10.
|
|
98
|
+
"@powerlines/plugin-esbuild": "^0.13.337",
|
|
99
|
+
"@stryke/path": "^0.26.18",
|
|
100
|
+
"@stryke/type-checks": "^0.5.37",
|
|
101
|
+
"@stryke/types": "^0.10.51",
|
|
102
102
|
"defu": "^6.1.4",
|
|
103
103
|
"jiti": "^2.6.1",
|
|
104
|
-
"powerlines": "^0.40.
|
|
104
|
+
"powerlines": "^0.40.19",
|
|
105
105
|
"style-dictionary": "^5.3.3"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
108
|
+
"@powerlines/plugin-plugin": "^0.12.283",
|
|
109
109
|
"@types/node": "^25.4.0"
|
|
110
110
|
},
|
|
111
111
|
"publishConfig": { "access": "public" },
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "7496a546473274494be487ebc33cf267ed5cd1f0"
|
|
113
113
|
}
|
package/dist/index.d.cts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig } from "./types/plugin.cjs";
|
|
2
|
-
import "./types/index.cjs";
|
|
3
|
-
import { Plugin } from "powerlines";
|
|
4
|
-
|
|
5
|
-
//#region src/index.d.ts
|
|
6
|
-
declare module "powerlines" {
|
|
7
|
-
interface Config {
|
|
8
|
-
styleDictionary?: StyleDictionaryPluginOptions;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* A Powerlines plugin to integrate style-dictionary for code generation.
|
|
13
|
-
*
|
|
14
|
-
* @param options - The plugin options.
|
|
15
|
-
* @returns A Powerlines plugin instance.
|
|
16
|
-
*/
|
|
17
|
-
declare const plugin: <TContext extends StyleDictionaryPluginContext = StyleDictionaryPluginContext>(options?: StyleDictionaryPluginOptions) => Plugin<TContext>;
|
|
18
|
-
//#endregion
|
|
19
|
-
export { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig, plugin as default, plugin };
|
|
20
|
-
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IAsCwB,eAAA,CAAA,EAIF,4BAJE;EAAA;;;;AAcxB;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,4BAGT,GAHwC,4BAGxC,CAAA,CAAA,OAAA,CAAA,EADC,4BACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
|
package/dist/index.d.mts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig } from "./types/plugin.mjs";
|
|
2
|
-
import "./types/index.mjs";
|
|
3
|
-
import { Plugin } from "powerlines";
|
|
4
|
-
|
|
5
|
-
//#region src/index.d.ts
|
|
6
|
-
declare module "powerlines" {
|
|
7
|
-
interface Config {
|
|
8
|
-
styleDictionary?: StyleDictionaryPluginOptions;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* A Powerlines plugin to integrate style-dictionary for code generation.
|
|
13
|
-
*
|
|
14
|
-
* @param options - The plugin options.
|
|
15
|
-
* @returns A Powerlines plugin instance.
|
|
16
|
-
*/
|
|
17
|
-
declare const plugin: <TContext extends StyleDictionaryPluginContext = StyleDictionaryPluginContext>(options?: StyleDictionaryPluginOptions) => Plugin<TContext>;
|
|
18
|
-
//#endregion
|
|
19
|
-
export { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig, plugin as default, plugin };
|
|
20
|
-
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IAsCwB,eAAA,CAAA,EAIF,4BAJE;EAAA;;;;AAcxB;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,4BAGT,GAHwC,4BAGxC,CAAA,CAAA,OAAA,CAAA,EADC,4BACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA"}
|
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["builder!: CustomActionsBuilder","builder!: CustomFileHeadersBuilder","fileHeader","builder!: CustomFiltersBuilder","builder!: CustomPreprocessorsBuilder","builder!: CustomParsersBuilder","builder!: CustomTransformsBuilder","builder!: CustomTransformGroupsBuilder"],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { resolve } from \"@powerlines/plugin-esbuild/helpers/resolve\";\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport StyleDictionary from \"style-dictionary\";\nimport { fileHeader } from \"./style-dictionary/file-header\";\nimport {\n CustomActionsBuilder,\n CustomFileHeadersBuilder,\n CustomFiltersBuilder,\n CustomParsersBuilder,\n CustomPreprocessorsBuilder,\n CustomTransformGroupsBuilder,\n CustomTransformsBuilder,\n StyleDictionaryPluginContext,\n StyleDictionaryPluginOptions,\n StyleDictionaryPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n styleDictionary?: StyleDictionaryPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to integrate style-dictionary for code generation.\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends StyleDictionaryPluginContext = StyleDictionaryPluginContext\n>(\n options: StyleDictionaryPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"style-dictionary\",\n config() {\n return {\n styleDictionary: defu(options, {\n log: {\n verbosity:\n this.config.logLevel === LogLevelLabel.TRACE\n ? \"verbose\"\n : this.config.logLevel === LogLevelLabel.DEBUG\n ? \"default\"\n : \"silent\"\n },\n fileHeader: \"powerlines/file-header\"\n })\n } as Partial<StyleDictionaryPluginUserConfig>;\n },\n async configResolved() {\n this.styleDictionary =\n this.config.styleDictionary.instance ??\n new StyleDictionary(this.config.styleDictionary);\n\n this.styleDictionary.registerFileHeader(fileHeader(this));\n\n if (this.config.styleDictionary.customActions) {\n let builder!: CustomActionsBuilder;\n if (isFunction(this.config.styleDictionary.customActions)) {\n builder = this.config.styleDictionary.customActions;\n } else {\n builder = await resolve<CustomActionsBuilder>(\n this,\n this.config.styleDictionary.customActions\n );\n }\n\n Object.entries(isFunction(builder) ? builder(this) : builder).forEach(\n ([name, action]) => {\n this.styleDictionary.registerAction({\n ...action,\n name\n });\n }\n );\n }\n\n if (this.config.styleDictionary.customFileHeaders) {\n let builder!: CustomFileHeadersBuilder;\n if (isFunction(this.config.styleDictionary.customFileHeaders)) {\n builder = this.config.styleDictionary.customFileHeaders;\n } else {\n builder = await resolve<CustomFileHeadersBuilder>(\n this,\n this.config.styleDictionary.customFileHeaders\n );\n }\n\n Object.entries(isFunction(builder) ? builder(this) : builder).forEach(\n ([name, fileHeader]) => {\n this.styleDictionary.registerFileHeader({\n name,\n fileHeader\n });\n }\n );\n }\n\n if (this.config.styleDictionary.customFilters) {\n let builder!: CustomFiltersBuilder;\n if (isFunction(this.config.styleDictionary.customFilters)) {\n builder = this.config.styleDictionary.customFilters;\n } else {\n builder = await resolve<CustomFiltersBuilder>(\n this,\n this.config.styleDictionary.customFilters\n );\n }\n\n Object.entries(isFunction(builder) ? builder(this) : builder).forEach(\n ([name, filter]) => {\n this.styleDictionary.registerFilter({\n ...filter,\n name\n });\n }\n );\n }\n\n if (this.config.styleDictionary.customPreprocessors) {\n let builder!: CustomPreprocessorsBuilder;\n if (isFunction(this.config.styleDictionary.customPreprocessors)) {\n builder = this.config.styleDictionary.customPreprocessors;\n } else {\n builder = await resolve<CustomPreprocessorsBuilder>(\n this,\n this.config.styleDictionary.customPreprocessors\n );\n }\n\n Object.entries(isFunction(builder) ? builder(this) : builder).forEach(\n ([name, preprocessor]) => {\n this.styleDictionary.registerPreprocessor({\n ...preprocessor,\n name\n });\n }\n );\n }\n\n if (this.config.styleDictionary.customParsers) {\n let builder!: CustomParsersBuilder;\n if (isFunction(this.config.styleDictionary.customParsers)) {\n builder = this.config.styleDictionary.customParsers;\n } else {\n builder = await resolve<CustomParsersBuilder>(\n this,\n this.config.styleDictionary.customParsers\n );\n }\n\n Object.entries(isFunction(builder) ? builder(this) : builder).forEach(\n ([name, parser]) => {\n this.styleDictionary.registerParser({\n ...parser,\n name\n });\n }\n );\n }\n\n if (this.config.styleDictionary.customTransforms) {\n let builder!: CustomTransformsBuilder;\n if (isFunction(this.config.styleDictionary.customTransforms)) {\n builder = this.config.styleDictionary.customTransforms;\n } else {\n builder = await resolve<CustomTransformsBuilder>(\n this,\n this.config.styleDictionary.customTransforms\n );\n }\n\n Object.entries(isFunction(builder) ? builder(this) : builder).forEach(\n ([name, transform]) => {\n this.styleDictionary.registerTransform({\n ...transform,\n name\n });\n }\n );\n }\n\n if (this.config.styleDictionary.customTransformGroups) {\n let builder!: CustomTransformGroupsBuilder;\n if (isFunction(this.config.styleDictionary.customTransformGroups)) {\n builder = this.config.styleDictionary.customTransformGroups;\n } else {\n builder = await resolve<CustomTransformGroupsBuilder>(\n this,\n this.config.styleDictionary.customTransformGroups\n );\n }\n\n Object.entries(isFunction(builder) ? builder(this) : builder).forEach(\n ([name, transformGroup]) => {\n this.styleDictionary.registerTransformGroup({\n name,\n transforms: transformGroup\n });\n }\n );\n }\n },\n async clean() {\n await this.styleDictionary.cleanAllPlatforms({\n cache: !this.config.skipCache\n });\n },\n prepare: {\n order: \"pre\",\n async handler() {\n if (!this.config.styleDictionary.skipBuild) {\n await this.styleDictionary.buildAllPlatforms({\n cache: !this.config.skipCache\n });\n }\n }\n }\n };\n};\n\nexport default plugin;\n"],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-POXTJ6GF.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@storm-software+config-tools@1.189.21_magicast@0.5.2/node_modules/@storm-software/config-tools/dist/chunk-POXTJ6GF.js"],"sourcesContent":["// src/types.ts\nvar LogLevel = {\n SILENT: 0,\n FATAL: 10,\n ERROR: 20,\n WARN: 30,\n SUCCESS: 35,\n INFO: 40,\n DEBUG: 60,\n TRACE: 70,\n ALL: 100\n};\nvar LogLevelLabel = {\n SILENT: \"silent\",\n FATAL: \"fatal\",\n ERROR: \"error\",\n WARN: \"warn\",\n SUCCESS: \"success\",\n INFO: \"info\",\n DEBUG: \"debug\",\n TRACE: \"trace\",\n ALL: \"all\"\n};\n\nexport {\n LogLevel,\n LogLevelLabel\n};\n"],"x_google_ignoreList":[0],"mappings":";AAYA,IAAI,gBAAgB;CAClB,QAAQ;CACR,OAAO;CACP,OAAO;CACP,MAAM;CACN,SAAS;CACT,MAAM;CACN,OAAO;CACP,OAAO;CACP,KAAK;CACN"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-header.mjs","names":[],"sources":["../../src/style-dictionary/file-header.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Context } from \"powerlines\";\nimport type { FileHeader } from \"style-dictionary/types\";\n\nexport const fileHeader = (\n context: Context\n): { name: string; fileHeader: FileHeader } => ({\n name: \"powerlines/file-header\",\n fileHeader: (defaultMessages = [] as string[]) => {\n return [\n `Generated by ${context.config.framework || \"Powerlines\"}`,\n 'NOTE: Do not edit this file manually - it will be overwritten automatically by the \"prepare\" command',\n ...defaultMessages\n ];\n }\n});\n"],"mappings":";AAqBA,MAAa,cACX,aAC8C;CAC9C,MAAM;CACN,aAAa,kBAAkB,EAAE,KAAiB;AAChD,SAAO;GACL,gBAAgB,QAAQ,OAAO,aAAa;GAC5C;GACA,GAAG;GACJ;;CAEJ"}
|
package/dist/types/index.d.cts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig } from "./plugin.cjs";
|
|
2
|
-
export { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig };
|
package/dist/types/index.d.mts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig } from "./plugin.mjs";
|
|
2
|
-
export { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig };
|
package/dist/types/plugin.d.cts
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { EnvironmentConfig, PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
2
|
-
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
3
|
-
import StyleDictionary, { Config } from "style-dictionary";
|
|
4
|
-
import { Action, FileHeader, Filter, Format, Parser, PlatformConfig, Preprocessor, Transform } from "style-dictionary/types";
|
|
5
|
-
|
|
6
|
-
//#region src/types/plugin.d.ts
|
|
7
|
-
type StyleDictionaryExtensionBuilder<T> = (extensionContext: StyleDictionaryPluginContext) => Record<string, T>;
|
|
8
|
-
type CustomActionsBuilder = StyleDictionaryExtensionBuilder<Action>;
|
|
9
|
-
type CustomTransformsBuilder = StyleDictionaryExtensionBuilder<Transform>;
|
|
10
|
-
type CustomFormatsBuilder = StyleDictionaryExtensionBuilder<Format>;
|
|
11
|
-
type CustomTransformGroupsBuilder = StyleDictionaryExtensionBuilder<string[]>;
|
|
12
|
-
type CustomFileHeadersBuilder = StyleDictionaryExtensionBuilder<FileHeader>;
|
|
13
|
-
type CustomFiltersBuilder = StyleDictionaryExtensionBuilder<Filter>;
|
|
14
|
-
type CustomParsersBuilder = (extensionContext: StyleDictionaryPluginContext) => Parser[];
|
|
15
|
-
type CustomPreprocessorsBuilder = StyleDictionaryExtensionBuilder<Preprocessor>;
|
|
16
|
-
type StyleDictionaryPluginOptions = Omit<Config, "platforms"> & {
|
|
17
|
-
/**
|
|
18
|
-
* Whether to skip the Style Dictionary build process.
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
* If set to `true`, the Style Dictionary build step will be skipped (ran during the "prepare" command), allowing for manual control over when the build occurs.
|
|
22
|
-
*
|
|
23
|
-
* @defaultValue false
|
|
24
|
-
*/
|
|
25
|
-
skipBuild?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Custom Style Dictionary actions to register.
|
|
28
|
-
*
|
|
29
|
-
* @remarks
|
|
30
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
31
|
-
*/
|
|
32
|
-
customActions?: TypeDefinitionParameter | CustomActionsBuilder;
|
|
33
|
-
/**
|
|
34
|
-
* Custom Style Dictionary file headers to register.
|
|
35
|
-
*
|
|
36
|
-
* @remarks
|
|
37
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
38
|
-
*/
|
|
39
|
-
customFileHeaders?: TypeDefinitionParameter | CustomFileHeadersBuilder;
|
|
40
|
-
/**
|
|
41
|
-
* Custom Style Dictionary filters to register.
|
|
42
|
-
*
|
|
43
|
-
* @remarks
|
|
44
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
45
|
-
*/
|
|
46
|
-
customFilters?: TypeDefinitionParameter | CustomFiltersBuilder;
|
|
47
|
-
/**
|
|
48
|
-
* Custom Style Dictionary formats to register.
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
52
|
-
*/
|
|
53
|
-
customFormats?: TypeDefinitionParameter | CustomFormatsBuilder;
|
|
54
|
-
/**
|
|
55
|
-
* Custom Style Dictionary preprocessors to register.
|
|
56
|
-
*
|
|
57
|
-
* @remarks
|
|
58
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
59
|
-
*/
|
|
60
|
-
customPreprocessors?: TypeDefinitionParameter | CustomPreprocessorsBuilder;
|
|
61
|
-
/**
|
|
62
|
-
* Custom Style Dictionary parsers to register.
|
|
63
|
-
*
|
|
64
|
-
* @remarks
|
|
65
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
66
|
-
*/
|
|
67
|
-
customParsers?: TypeDefinitionParameter | CustomParsersBuilder;
|
|
68
|
-
/**
|
|
69
|
-
* Custom Style Dictionary transform groups to register.
|
|
70
|
-
*
|
|
71
|
-
* @remarks
|
|
72
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
73
|
-
*/
|
|
74
|
-
customTransformGroups?: TypeDefinitionParameter | CustomTransformGroupsBuilder;
|
|
75
|
-
/**
|
|
76
|
-
* Custom Style Dictionary transforms to register.
|
|
77
|
-
*
|
|
78
|
-
* @remarks
|
|
79
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
80
|
-
*/
|
|
81
|
-
customTransforms?: TypeDefinitionParameter | CustomTransformsBuilder;
|
|
82
|
-
/**
|
|
83
|
-
* An existing Style Dictionary instance to use.
|
|
84
|
-
*
|
|
85
|
-
* @remarks
|
|
86
|
-
* If provided, this instance will be used instead of creating a new one.
|
|
87
|
-
*/
|
|
88
|
-
instance?: StyleDictionary;
|
|
89
|
-
};
|
|
90
|
-
type StyleDictionaryPluginEnvironmentConfig = EnvironmentConfig & PlatformConfig;
|
|
91
|
-
type StyleDictionaryPluginUserConfig = UserConfig & {
|
|
92
|
-
styleDictionary?: StyleDictionaryPluginOptions;
|
|
93
|
-
environments?: Record<string, StyleDictionaryPluginEnvironmentConfig>;
|
|
94
|
-
};
|
|
95
|
-
type StyleDictionaryPluginResolvedConfig = ResolvedConfig & {
|
|
96
|
-
styleDictionary: StyleDictionaryPluginOptions;
|
|
97
|
-
environments: Record<string, StyleDictionaryPluginEnvironmentConfig>;
|
|
98
|
-
};
|
|
99
|
-
type StyleDictionaryPluginContext<TResolvedConfig extends StyleDictionaryPluginResolvedConfig = StyleDictionaryPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
100
|
-
styleDictionary: StyleDictionary;
|
|
101
|
-
};
|
|
102
|
-
declare type __ΩCustomActionsBuilder = any[];
|
|
103
|
-
declare type __ΩCustomTransformsBuilder = any[];
|
|
104
|
-
declare type __ΩCustomFormatsBuilder = any[];
|
|
105
|
-
declare type __ΩCustomTransformGroupsBuilder = any[];
|
|
106
|
-
declare type __ΩCustomFileHeadersBuilder = any[];
|
|
107
|
-
declare type __ΩCustomFiltersBuilder = any[];
|
|
108
|
-
declare type __ΩCustomParsersBuilder = any[];
|
|
109
|
-
declare type __ΩCustomPreprocessorsBuilder = any[];
|
|
110
|
-
declare type __ΩStyleDictionaryPluginOptions = any[];
|
|
111
|
-
declare type __ΩStyleDictionaryPluginEnvironmentConfig = any[];
|
|
112
|
-
declare type __ΩStyleDictionaryPluginUserConfig = any[];
|
|
113
|
-
declare type __ΩStyleDictionaryPluginResolvedConfig = any[];
|
|
114
|
-
declare type __ΩStyleDictionaryPluginContext = any[];
|
|
115
|
-
//#endregion
|
|
116
|
-
export { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig };
|
|
117
|
-
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAqCK,wDACe,iCACf,eAAe;KAER,oBAAA,GAAuB,gCAAgC;AAJ9D,KAKO,uBAAA,GACV,+BANkC,CAMF,SANE,CAAA;AAChB,KAMR,oBAAA,GAAuB,+BANf,CAM+C,MAN/C,CAAA;AACA,KAMR,4BAAA,GAA+B,+BANvB,CAAA,MAAA,EAAA,CAAA;AAAf,KASO,wBAAA,GACV,+BAVG,CAU6B,UAV7B,CAAA;AAAM,KAWC,oBAAA,GAAuB,+BAXxB,CAWwD,MAXxD,CAAA;AAEC,KAUA,oBAAA,GAVoB,CAAA,gBAAG,EAWf,4BAX8C,EAAA,GAY7D,MAZ6D,EAAA;AACtD,KAYA,0BAAA,GACV,+BAZA,CAYgC,YAZD,CAAA;AACrB,KAaA,4BAAA,GAA+B,IAbR,CAaa,MAbb,EAAA,WAAA,CAAA,GAAA;EACvB;AAGZ;AAEA;AACA;AAGA;AAGA;;;EAiBkB,SAAA,CAAA,EAAA,OAAA;EAA0B;;;;;;EAwBA,aAAA,CAAA,EAxB1B,uBAwB0B,GAxBA,oBAwBA;EAQpB;;;;;;EA0BH,iBAAA,CAAA,EAlDC,uBAkDD,GAlD2B,wBAkD3B;EAA0B;;;AAW/C;AAGA;;EACoB,aAAA,CAAA,EAzDF,uBAyDE,GAzDwB,oBAyDxB;EACY;;;AAGhC;;;EAE+B,aAAA,CAAA,EAvDb,uBAuDa,GAvDa,oBAuDb;EAAf;;AAGhB;;;;EAGI,mBAAA,CAAA,EArDoB,uBAqDpB,GArD8C,0BAqD9C;EACe;;;;;;kBA9CD,0BAA0B;;;;;;;0BAStC,0BACA;;;;;;;qBAQe,0BAA0B;;;;;;;aAQlC;;KAGD,sCAAA,GAAyC,oBACnD;KAEU,+BAAA,GAAkC;oBAC1B;iBACH,eAAe;;KAGpB,mCAAA,GAAsC;mBAC/B;gBACH,eAAe;;KAGnB,qDACc,sCACtB,uCACA,cAAc;mBACC"}
|
package/dist/types/plugin.d.mts
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import StyleDictionary, { Config } from "style-dictionary";
|
|
2
|
-
import { EnvironmentConfig, PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
3
|
-
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
4
|
-
import { Action, FileHeader, Filter, Format, Parser, PlatformConfig, Preprocessor, Transform } from "style-dictionary/types";
|
|
5
|
-
|
|
6
|
-
//#region src/types/plugin.d.ts
|
|
7
|
-
type StyleDictionaryExtensionBuilder<T> = (extensionContext: StyleDictionaryPluginContext) => Record<string, T>;
|
|
8
|
-
type CustomActionsBuilder = StyleDictionaryExtensionBuilder<Action>;
|
|
9
|
-
type CustomTransformsBuilder = StyleDictionaryExtensionBuilder<Transform>;
|
|
10
|
-
type CustomFormatsBuilder = StyleDictionaryExtensionBuilder<Format>;
|
|
11
|
-
type CustomTransformGroupsBuilder = StyleDictionaryExtensionBuilder<string[]>;
|
|
12
|
-
type CustomFileHeadersBuilder = StyleDictionaryExtensionBuilder<FileHeader>;
|
|
13
|
-
type CustomFiltersBuilder = StyleDictionaryExtensionBuilder<Filter>;
|
|
14
|
-
type CustomParsersBuilder = (extensionContext: StyleDictionaryPluginContext) => Parser[];
|
|
15
|
-
type CustomPreprocessorsBuilder = StyleDictionaryExtensionBuilder<Preprocessor>;
|
|
16
|
-
type StyleDictionaryPluginOptions = Omit<Config, "platforms"> & {
|
|
17
|
-
/**
|
|
18
|
-
* Whether to skip the Style Dictionary build process.
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
* If set to `true`, the Style Dictionary build step will be skipped (ran during the "prepare" command), allowing for manual control over when the build occurs.
|
|
22
|
-
*
|
|
23
|
-
* @defaultValue false
|
|
24
|
-
*/
|
|
25
|
-
skipBuild?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Custom Style Dictionary actions to register.
|
|
28
|
-
*
|
|
29
|
-
* @remarks
|
|
30
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
31
|
-
*/
|
|
32
|
-
customActions?: TypeDefinitionParameter | CustomActionsBuilder;
|
|
33
|
-
/**
|
|
34
|
-
* Custom Style Dictionary file headers to register.
|
|
35
|
-
*
|
|
36
|
-
* @remarks
|
|
37
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
38
|
-
*/
|
|
39
|
-
customFileHeaders?: TypeDefinitionParameter | CustomFileHeadersBuilder;
|
|
40
|
-
/**
|
|
41
|
-
* Custom Style Dictionary filters to register.
|
|
42
|
-
*
|
|
43
|
-
* @remarks
|
|
44
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
45
|
-
*/
|
|
46
|
-
customFilters?: TypeDefinitionParameter | CustomFiltersBuilder;
|
|
47
|
-
/**
|
|
48
|
-
* Custom Style Dictionary formats to register.
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
52
|
-
*/
|
|
53
|
-
customFormats?: TypeDefinitionParameter | CustomFormatsBuilder;
|
|
54
|
-
/**
|
|
55
|
-
* Custom Style Dictionary preprocessors to register.
|
|
56
|
-
*
|
|
57
|
-
* @remarks
|
|
58
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
59
|
-
*/
|
|
60
|
-
customPreprocessors?: TypeDefinitionParameter | CustomPreprocessorsBuilder;
|
|
61
|
-
/**
|
|
62
|
-
* Custom Style Dictionary parsers to register.
|
|
63
|
-
*
|
|
64
|
-
* @remarks
|
|
65
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
66
|
-
*/
|
|
67
|
-
customParsers?: TypeDefinitionParameter | CustomParsersBuilder;
|
|
68
|
-
/**
|
|
69
|
-
* Custom Style Dictionary transform groups to register.
|
|
70
|
-
*
|
|
71
|
-
* @remarks
|
|
72
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
73
|
-
*/
|
|
74
|
-
customTransformGroups?: TypeDefinitionParameter | CustomTransformGroupsBuilder;
|
|
75
|
-
/**
|
|
76
|
-
* Custom Style Dictionary transforms to register.
|
|
77
|
-
*
|
|
78
|
-
* @remarks
|
|
79
|
-
* This value can be a {@link TypeDefinitionParameter} pointing to a module export or an actual builder function.
|
|
80
|
-
*/
|
|
81
|
-
customTransforms?: TypeDefinitionParameter | CustomTransformsBuilder;
|
|
82
|
-
/**
|
|
83
|
-
* An existing Style Dictionary instance to use.
|
|
84
|
-
*
|
|
85
|
-
* @remarks
|
|
86
|
-
* If provided, this instance will be used instead of creating a new one.
|
|
87
|
-
*/
|
|
88
|
-
instance?: StyleDictionary;
|
|
89
|
-
};
|
|
90
|
-
type StyleDictionaryPluginEnvironmentConfig = EnvironmentConfig & PlatformConfig;
|
|
91
|
-
type StyleDictionaryPluginUserConfig = UserConfig & {
|
|
92
|
-
styleDictionary?: StyleDictionaryPluginOptions;
|
|
93
|
-
environments?: Record<string, StyleDictionaryPluginEnvironmentConfig>;
|
|
94
|
-
};
|
|
95
|
-
type StyleDictionaryPluginResolvedConfig = ResolvedConfig & {
|
|
96
|
-
styleDictionary: StyleDictionaryPluginOptions;
|
|
97
|
-
environments: Record<string, StyleDictionaryPluginEnvironmentConfig>;
|
|
98
|
-
};
|
|
99
|
-
type StyleDictionaryPluginContext<TResolvedConfig extends StyleDictionaryPluginResolvedConfig = StyleDictionaryPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
100
|
-
styleDictionary: StyleDictionary;
|
|
101
|
-
};
|
|
102
|
-
declare type __ΩCustomActionsBuilder = any[];
|
|
103
|
-
declare type __ΩCustomTransformsBuilder = any[];
|
|
104
|
-
declare type __ΩCustomFormatsBuilder = any[];
|
|
105
|
-
declare type __ΩCustomTransformGroupsBuilder = any[];
|
|
106
|
-
declare type __ΩCustomFileHeadersBuilder = any[];
|
|
107
|
-
declare type __ΩCustomFiltersBuilder = any[];
|
|
108
|
-
declare type __ΩCustomParsersBuilder = any[];
|
|
109
|
-
declare type __ΩCustomPreprocessorsBuilder = any[];
|
|
110
|
-
declare type __ΩStyleDictionaryPluginOptions = any[];
|
|
111
|
-
declare type __ΩStyleDictionaryPluginEnvironmentConfig = any[];
|
|
112
|
-
declare type __ΩStyleDictionaryPluginUserConfig = any[];
|
|
113
|
-
declare type __ΩStyleDictionaryPluginResolvedConfig = any[];
|
|
114
|
-
declare type __ΩStyleDictionaryPluginContext = any[];
|
|
115
|
-
//#endregion
|
|
116
|
-
export { CustomActionsBuilder, CustomFileHeadersBuilder, CustomFiltersBuilder, CustomFormatsBuilder, CustomParsersBuilder, CustomPreprocessorsBuilder, CustomTransformGroupsBuilder, CustomTransformsBuilder, StyleDictionaryPluginContext, StyleDictionaryPluginEnvironmentConfig, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig, __ΩCustomActionsBuilder, __ΩCustomFileHeadersBuilder, __ΩCustomFiltersBuilder, __ΩCustomFormatsBuilder, __ΩCustomParsersBuilder, __ΩCustomPreprocessorsBuilder, __ΩCustomTransformGroupsBuilder, __ΩCustomTransformsBuilder, __ΩStyleDictionaryPluginContext, __ΩStyleDictionaryPluginEnvironmentConfig, __ΩStyleDictionaryPluginOptions, __ΩStyleDictionaryPluginResolvedConfig, __ΩStyleDictionaryPluginUserConfig };
|
|
117
|
-
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAqCK,wDACe,iCACf,eAAe;KAER,oBAAA,GAAuB,gCAAgC;AAJ9D,KAKO,uBAAA,GACV,+BANkC,CAMF,SANE,CAAA;AAChB,KAMR,oBAAA,GAAuB,+BANf,CAM+C,MAN/C,CAAA;AACA,KAMR,4BAAA,GAA+B,+BANvB,CAAA,MAAA,EAAA,CAAA;AAAf,KASO,wBAAA,GACV,+BAVG,CAU6B,UAV7B,CAAA;AAAM,KAWC,oBAAA,GAAuB,+BAXxB,CAWwD,MAXxD,CAAA;AAEC,KAUA,oBAAA,GAVoB,CAAA,gBAAG,EAWf,4BAX8C,EAAA,GAY7D,MAZ6D,EAAA;AACtD,KAYA,0BAAA,GACV,+BAZA,CAYgC,YAZD,CAAA;AACrB,KAaA,4BAAA,GAA+B,IAbR,CAaa,MAbb,EAAA,WAAA,CAAA,GAAA;EACvB;AAGZ;AAEA;AACA;AAGA;AAGA;;;EAiBkB,SAAA,CAAA,EAAA,OAAA;EAA0B;;;;;;EAwBA,aAAA,CAAA,EAxB1B,uBAwB0B,GAxBA,oBAwBA;EAQpB;;;;;;EA0BH,iBAAA,CAAA,EAlDC,uBAkDD,GAlD2B,wBAkD3B;EAA0B;;;AAW/C;AAGA;;EACoB,aAAA,CAAA,EAzDF,uBAyDE,GAzDwB,oBAyDxB;EACY;;;AAGhC;;;EAE+B,aAAA,CAAA,EAvDb,uBAuDa,GAvDa,oBAuDb;EAAf;;AAGhB;;;;EAGI,mBAAA,CAAA,EArDoB,uBAqDpB,GArD8C,0BAqD9C;EACe;;;;;;kBA9CD,0BAA0B;;;;;;;0BAStC,0BACA;;;;;;;qBAQe,0BAA0B;;;;;;;aAQlC;;KAGD,sCAAA,GAAyC,oBACnD;KAEU,+BAAA,GAAkC;oBAC1B;iBACH,eAAe;;KAGpB,mCAAA,GAAsC;mBAC/B;gBACH,eAAe;;KAGnB,qDACc,sCACtB,uCACA,cAAc;mBACC"}
|