material-icon-theme 5.6.0 → 5.8.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/dist/material-icons.json +7810 -7740
- package/dist/module/index.cjs +160 -103
- package/dist/types/core/generator/applyConfigToIcons.d.ts +10 -0
- package/dist/types/core/generator/applyConfigToIcons.d.ts.map +1 -0
- package/dist/types/core/generator/clones/clonesGenerator.d.ts +3 -3
- package/dist/types/core/generator/clones/clonesGenerator.d.ts.map +1 -1
- package/dist/types/core/generator/clones/utils/cloneData.d.ts +2 -2
- package/dist/types/core/generator/clones/utils/cloneData.d.ts.map +1 -1
- package/dist/types/core/generator/clones/utils/cloning.d.ts +7 -8
- package/dist/types/core/generator/clones/utils/cloning.d.ts.map +1 -1
- package/dist/types/core/generator/clones/utils/color/colors.d.ts +4 -4
- package/dist/types/core/generator/clones/utils/color/colors.d.ts.map +1 -1
- package/dist/types/core/generator/clones/utils/color/materialPalette.d.ts +2 -2
- package/dist/types/core/generator/clones/utils/color/materialPalette.d.ts.map +1 -1
- package/dist/types/core/generator/config/defaultConfig.d.ts +1 -1
- package/dist/types/core/generator/config/defaultConfig.d.ts.map +1 -1
- package/dist/types/core/generator/constants.d.ts +8 -0
- package/dist/types/core/generator/constants.d.ts.map +1 -1
- package/dist/types/core/generator/fileGenerator.d.ts +1 -1
- package/dist/types/core/generator/fileGenerator.d.ts.map +1 -1
- package/dist/types/core/generator/folderGenerator.d.ts +1 -1
- package/dist/types/core/generator/folderGenerator.d.ts.map +1 -1
- package/dist/types/core/generator/generateManifest.d.ts +6 -0
- package/dist/types/core/generator/generateManifest.d.ts.map +1 -0
- package/dist/types/core/generator/iconOpacity.d.ts +1 -1
- package/dist/types/core/generator/iconOpacity.d.ts.map +1 -1
- package/dist/types/core/generator/iconSaturation.d.ts +1 -1
- package/dist/types/core/generator/iconSaturation.d.ts.map +1 -1
- package/dist/types/core/generator/languageGenerator.d.ts.map +1 -1
- package/dist/types/core/generator/renameIconFiles.d.ts +9 -0
- package/dist/types/core/generator/renameIconFiles.d.ts.map +1 -0
- package/dist/types/core/generator/shared/svg.d.ts +1 -1
- package/dist/types/core/generator/shared/svg.d.ts.map +1 -1
- package/dist/types/core/helpers/configHash.d.ts.map +1 -1
- package/dist/types/core/helpers/object.d.ts +2 -2
- package/dist/types/core/helpers/object.d.ts.map +1 -1
- package/dist/types/core/helpers/writeFile.d.ts +8 -0
- package/dist/types/core/helpers/writeFile.d.ts.map +1 -0
- package/dist/types/core/i18n/translate.d.ts.map +1 -1
- package/dist/types/core/icons/fileIcons.d.ts.map +1 -1
- package/dist/types/core/icons/folderIcons.d.ts.map +1 -1
- package/dist/types/core/index.d.ts +9 -4
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/core/logging/logger.d.ts +19 -0
- package/dist/types/core/logging/logger.d.ts.map +1 -0
- package/dist/types/core/models/icons/config.d.ts +3 -0
- package/dist/types/core/models/icons/config.d.ts.map +1 -1
- package/dist/types/core/models/manifest.d.ts +13 -3
- package/dist/types/core/models/manifest.d.ts.map +1 -1
- package/dist/types/module/index.d.ts +1 -1
- package/dist/types/module/index.d.ts.map +1 -1
- package/icons/container.clone.svg +1 -0
- package/icons/deepsource.svg +1 -0
- package/icons/folder-snapcraft-open.svg +1 -0
- package/icons/folder-snapcraft.svg +1 -0
- package/icons/hurl.svg +1 -0
- package/icons/liara.svg +1 -0
- package/icons/markdownlint.svg +1 -0
- package/icons/mist.clone.svg +1 -0
- package/icons/remark.svg +1 -0
- package/icons/tape.clone.svg +1 -0
- package/icons/tsil.svg +1 -0
- package/package.json +30 -20
- package/dist/types/core/generator/jsonGenerator.d.ts +0 -31
- package/dist/types/core/generator/jsonGenerator.d.ts.map +0 -1
- package/icons/container.svg +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type INode } from 'svgson';
|
|
2
2
|
/** Get all the colors used in the SVG node as a `Set` list. **/
|
|
3
|
-
export declare
|
|
3
|
+
export declare const getColorList: (node: INode) => Set<string>;
|
|
4
4
|
/** given a set of colors, orders them from dark to light. **/
|
|
5
|
-
export declare
|
|
5
|
+
export declare const orderDarkToLight: (colors: Set<string>) => string[];
|
|
6
6
|
/** checks if a string is a valid color. **/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const isValidColor: (color: string | undefined) => boolean;
|
|
8
8
|
/**
|
|
9
9
|
* Creates a map of color replacements based on the base color and
|
|
10
10
|
* the list of colors.
|
|
@@ -14,5 +14,5 @@ export declare function isValidColor(color: string | undefined): boolean;
|
|
|
14
14
|
* the material palette to find the most appropriate color for the rest
|
|
15
15
|
* in the list.
|
|
16
16
|
*/
|
|
17
|
-
export declare
|
|
17
|
+
export declare const replacementMap: (baseColor: string, colors: Set<string>) => Map<string, string>;
|
|
18
18
|
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/generator/clones/utils/color/colors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAOpC,gEAAgE;AAChE,
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/generator/clones/utils/color/colors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAOpC,gEAAgE;AAChE,eAAO,MAAM,YAAY,SAAU,KAAK,gBAoCvC,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,gBAAgB,WAAY,GAAG,CAAC,MAAM,CAAC,aAenD,CAAC;AAMF,4CAA4C;AAC5C,eAAO,MAAM,YAAY,UAAW,MAAM,GAAG,SAAS,KAAG,OAKxD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,cAAe,MAAM,UAAU,GAAG,CAAC,MAAM,CAAC,wBA0CpE,CAAC"}
|
|
@@ -260,10 +260,10 @@ export declare const materialPalette: {
|
|
|
260
260
|
* Gets the material color from the material palette
|
|
261
261
|
* @param key the key of the material color e.g. 'blue-grey-500'
|
|
262
262
|
*/
|
|
263
|
-
export declare
|
|
263
|
+
export declare const getMaterialColorByKey: (key: string) => string | undefined;
|
|
264
264
|
/**
|
|
265
265
|
* Given a color, returns the closest material color from the
|
|
266
266
|
* material palette.
|
|
267
267
|
*/
|
|
268
|
-
export declare
|
|
268
|
+
export declare const closerMaterialColorTo: (color: string) => string;
|
|
269
269
|
//# sourceMappingURL=materialPalette.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"materialPalette.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/generator/clones/utils/color/materialPalette.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiQ3B,CAAC;AAEF;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"materialPalette.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/generator/clones/utils/color/materialPalette.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiQ3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAAS,MAAM,KAAG,MAAM,GAAG,SAM5D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,UAAW,MAAM,KAAG,MAkBrD,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { RecursivePartial } from '../../types/recursivePartial';
|
|
|
3
3
|
/**
|
|
4
4
|
* The options control the generator and decide which icons are disabled or not.
|
|
5
5
|
*/
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const getDefaultConfig: () => Required<Config>;
|
|
7
7
|
/**
|
|
8
8
|
* Fill in missing configuration values with the default values.
|
|
9
9
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultConfig.d.ts","sourceRoot":"","sources":["../../../../../src/core/generator/config/defaultConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"defaultConfig.d.ts","sourceRoot":"","sources":["../../../../../src/core/generator/config/defaultConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,QAAQ,CAAC,MAAM,CAmBjD,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,YACtB,gBAAgB,CAAC,MAAM,CAAC,KAChC,MAIF,CAAC"}
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
* Name of the VS Code extension.
|
|
3
3
|
*/
|
|
4
4
|
export declare const extensionName = "material-icon-theme";
|
|
5
|
+
/**
|
|
6
|
+
* Name of the extension publisher.
|
|
7
|
+
*/
|
|
8
|
+
export declare const extensionPublisher = "PKief";
|
|
9
|
+
/**
|
|
10
|
+
* Key to identify the log event.
|
|
11
|
+
*/
|
|
12
|
+
export declare const logEventKey = "material-icon-theme-log-event";
|
|
5
13
|
/**
|
|
6
14
|
* Path where the icons are located.
|
|
7
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,aAAa,wBAAwB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,cAAc,gBAAgB,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,YAAY,wBAAwB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,YAAY,UAAU,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,2BAA2B,kBAAkB,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,YAAY,YAAY,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,eAAe,QAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,aAAa,wBAAwB,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,WAAW,kCAA+B,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,cAAc,gBAAgB,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,YAAY,wBAAwB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,YAAY,UAAU,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,2BAA2B,kBAAkB,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,YAAY,YAAY,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,eAAe,QAA2B,CAAC"}
|
|
@@ -5,5 +5,5 @@ import type { Manifest } from '../models/manifest';
|
|
|
5
5
|
* Get all file icons that can be used in this theme.
|
|
6
6
|
*/
|
|
7
7
|
export declare const loadFileIconDefinitions: (fileIcons: FileIcons, config: Config, manifest: Manifest) => Manifest;
|
|
8
|
-
export declare const generateFileIcons: (color: string, opacity: number, saturation: number) => void
|
|
8
|
+
export declare const generateFileIcons: (color: string, opacity: number, saturation: number) => Promise<void>;
|
|
9
9
|
//# sourceMappingURL=fileGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileGenerator.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/fileGenerator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAoB,MAAM,wBAAwB,CAAC;AAEvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAWnD;;GAEG;AACH,eAAO,MAAM,uBAAuB,cACvB,SAAS,UACZ,MAAM,YACJ,QAAQ,KACjB,QAmFF,CAAC;
|
|
1
|
+
{"version":3,"file":"fileGenerator.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/fileGenerator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAoB,MAAM,wBAAwB,CAAC;AAEvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAWnD;;GAEG;AACH,eAAO,MAAM,uBAAuB,cACvB,SAAS,UACZ,MAAM,YACJ,QAAQ,KACjB,QAmFF,CAAC;AAuFF,eAAO,MAAM,iBAAiB,UACrB,MAAM,WACJ,MAAM,cACH,MAAM,kBAenB,CAAC"}
|
|
@@ -5,5 +5,5 @@ import type { Manifest } from '../models/manifest';
|
|
|
5
5
|
* Get the folder icon definitions as object.
|
|
6
6
|
*/
|
|
7
7
|
export declare const loadFolderIconDefinitions: (folderIcons: FolderTheme[], config: Config, manifest: Manifest) => Manifest;
|
|
8
|
-
export declare const generateFolderIcons: (color: string, opacity: number, saturation: number) => void
|
|
8
|
+
export declare const generateFolderIcons: (color: string, opacity: number, saturation: number) => Promise<void>;
|
|
9
9
|
//# sourceMappingURL=folderGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folderGenerator.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/folderGenerator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"folderGenerator.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/folderGenerator.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAoB,MAAM,wBAAwB,CAAC;AAGvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAWnD;;GAEG;AACH,eAAO,MAAM,yBAAyB,gBACvB,WAAW,EAAE,UAClB,MAAM,YACJ,QAAQ,KACjB,QAmCF,CAAC;AA4PF,eAAO,MAAM,mBAAmB,UACvB,MAAM,WACJ,MAAM,cACH,MAAM,kBAuCnB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type Manifest, type ManifestConfig } from '../models/manifest';
|
|
2
|
+
/**
|
|
3
|
+
* Generate the manifest that will be written as JSON file.
|
|
4
|
+
*/
|
|
5
|
+
export declare const generateManifest: (config?: ManifestConfig) => Manifest;
|
|
6
|
+
//# sourceMappingURL=generateManifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateManifest.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/generateManifest.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,cAAc,EAEpB,MAAM,oBAAoB,CAAC;AAM5B;;GAEG;AACH,eAAO,MAAM,gBAAgB,YAAa,cAAc,KAAG,QAwB1D,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Changes the opacity of all icons in the set.
|
|
3
3
|
* @param config Icon JSON options which include the opacity value.
|
|
4
4
|
*/
|
|
5
|
-
export declare const setIconOpacity: (opacity: number, filesAssociations: Record<string, string>) => void
|
|
5
|
+
export declare const setIconOpacity: (opacity: number, filesAssociations: Record<string, string>) => Promise<void>;
|
|
6
6
|
/**
|
|
7
7
|
* Validate the opacity value.
|
|
8
8
|
* @param opacity Opacity value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iconOpacity.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/iconOpacity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"iconOpacity.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/iconOpacity.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,eAAO,MAAM,cAAc,YAChB,MAAM,qBACI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,kBA6B1C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,YAAa,MAAM,GAAG,SAAS,YAE/D,CAAC;AAmCF,gEAAgE;AAChE,eAAO,MAAM,gBAAgB,QAAS,MAAM,WAAW,MAAM,KAAG,MAW/D,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @param config Icon JSON options which include the saturation value.
|
|
4
4
|
* @param fileNames Only change the saturation of certain file names.
|
|
5
5
|
*/
|
|
6
|
-
export declare const setIconSaturation: (saturation: number, filesAssociations: Record<string, string>) => void
|
|
6
|
+
export declare const setIconSaturation: (saturation: number, filesAssociations: Record<string, string>) => Promise<void>;
|
|
7
7
|
/**
|
|
8
8
|
* Validate the saturation value.
|
|
9
9
|
* @param saturation Saturation value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iconSaturation.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/iconSaturation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"iconSaturation.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/iconSaturation.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,eAChB,MAAM,qBACC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,kBA6B1C,CAAC;AAyDF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,eAAgB,MAAM,GAAG,SAAS,YAErE,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,mBAAmB,QACzB,MAAM,cACC,MAAM,KACjB,MAsBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"languageGenerator.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/languageGenerator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAoB,MAAM,wBAAwB,CAAC;AAGvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAOnD;;GAEG;AACH,eAAO,MAAM,2BAA2B,kBACvB,YAAY,EAAE,UACrB,MAAM,YACJ,QAAQ,KACjB,
|
|
1
|
+
{"version":3,"file":"languageGenerator.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/languageGenerator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAoB,MAAM,wBAAwB,CAAC;AAGvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAOnD;;GAEG;AACH,eAAO,MAAM,2BAA2B,kBACvB,YAAY,EAAE,UACrB,MAAM,YACJ,QAAQ,KACjB,QAoCF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Config } from '../models/icons/config';
|
|
2
|
+
/**
|
|
3
|
+
* Rename all icon files according their respective config.
|
|
4
|
+
*
|
|
5
|
+
* The rename triggers a change event in VS Code, which will update the icons in the UI.
|
|
6
|
+
* @param config Icon Json Options
|
|
7
|
+
*/
|
|
8
|
+
export declare const renameIconFiles: (config: Config) => void;
|
|
9
|
+
//# sourceMappingURL=renameIconFiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renameIconFiles.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/renameIconFiles.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGrD;;;;;GAKG;AACH,eAAO,MAAM,eAAe,WAAY,MAAM,SAsC7C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const writeSVGFiles: (iconName: string, svg: string, opacity: number, saturation: number) => void
|
|
1
|
+
export declare const writeSVGFiles: (iconName: string, svg: string, opacity: number, saturation: number) => Promise<void>;
|
|
2
2
|
export declare const getPath: (d: string, color: string) => string;
|
|
3
3
|
export declare const getSVG: (path: string, viewBoxSize?: number) => string;
|
|
4
4
|
//# sourceMappingURL=svg.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg.d.ts","sourceRoot":"","sources":["../../../../../src/core/generator/shared/svg.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"svg.d.ts","sourceRoot":"","sources":["../../../../../src/core/generator/shared/svg.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,aAAa,aACd,MAAM,OACX,MAAM,WACF,MAAM,cACH,MAAM,kBAanB,CAAC;AAEF,eAAO,MAAM,OAAO,MAAO,MAAM,SAAS,MAAM,WACX,CAAC;AAEtC,eAAO,MAAM,MAAM,SAAU,MAAM,iCACkE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configHash.d.ts","sourceRoot":"","sources":["../../../../src/core/helpers/configHash.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"configHash.d.ts","sourceRoot":"","sources":["../../../../src/core/helpers/configHash.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAAY,OAAO,CAAC,MAAM,CAAC,KAAG,MA6B3D,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This solution is lighter than the lodash get-version.
|
|
4
4
|
* Source: http://stackoverflow.com/a/6491621/6942210
|
|
5
5
|
*/
|
|
6
|
-
export declare const get: (obj: Object, path: string) =>
|
|
6
|
+
export declare const get: <T>(obj: Object, path: string) => T | undefined;
|
|
7
7
|
/**
|
|
8
8
|
* Set a value for a nested object property.
|
|
9
9
|
* @param obj Object
|
|
@@ -20,5 +20,5 @@ export declare const set: (obj: {
|
|
|
20
20
|
* @param objects Provide the objects that should be merged.
|
|
21
21
|
* @returns A new object that is the result of the merge.
|
|
22
22
|
*/
|
|
23
|
-
export declare const merge: <T
|
|
23
|
+
export declare const merge: <T extends Record<string, unknown>>(...objects: (T | undefined | null)[]) => T;
|
|
24
24
|
//# sourceMappingURL=object.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../src/core/helpers/object.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../src/core/helpers/object.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,GAAG,GAAI,CAAC,OAAO,MAAM,QAAQ,MAAM,KAAG,CAAC,GAAG,SAqBtD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,GAAG,QAET;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,QACrB,MAAM,GAAG,MAAM,EAAE,SAChB,OAAO,SAmBf,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,cACzC,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,EAAE,KACnC,CAuCF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Write content to a file.
|
|
3
|
+
*
|
|
4
|
+
* @param filePath File path to write to
|
|
5
|
+
* @param data Content to write to the file
|
|
6
|
+
*/
|
|
7
|
+
export declare const writeToFile: (filePath: string, data: string, encoding?: BufferEncoding) => Promise<void>;
|
|
8
|
+
//# sourceMappingURL=writeFile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeFile.d.ts","sourceRoot":"","sources":["../../../../src/core/helpers/writeFile.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,WAAW,aACZ,MAAM,QACV,MAAM,aACD,cAAc,kBAQ1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["../../../../src/core/i18n/translate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["../../../../src/core/i18n/translate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAsB9D,kCAAkC;AAClC,eAAO,MAAM,gBAAgB,aAAoB,MAAM,kBAQtD,CAAC;AAiDF;;;;;KAKK;AACL,eAAO,MAAM,mBAAmB,QACzB,MAAM,yDAGV,MAAM,GAAG,SAEX,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,QAAS,MAAM,gBAAgB,MAAM,EAAE,KAAG,MAK/D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,WAAW,MAAM,gBAAqB,MAAM,EAAE,WAOjE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileIcons.d.ts","sourceRoot":"","sources":["../../../../src/core/icons/fileIcons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAKjE;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"fileIcons.d.ts","sourceRoot":"","sources":["../../../../src/core/icons/fileIcons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAKjE;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,SAw9EvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folderIcons.d.ts","sourceRoot":"","sources":["../../../../src/core/icons/folderIcons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAGvE;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"folderIcons.d.ts","sourceRoot":"","sources":["../../../../src/core/icons/folderIcons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAGvE;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,WAAW,EAs3BpC,CAAC"}
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
+
export { applyConfigToIcons } from './generator/applyConfigToIcons';
|
|
1
2
|
export { customClonesIcons, generateConfiguredClones, hasCustomClones, } from './generator/clones/clonesGenerator';
|
|
2
3
|
export { clearCloneFolder } from './generator/clones/utils/cloneData';
|
|
3
|
-
export {
|
|
4
|
-
export { extensionName, highContrastColorFileEnding, lightColorFileEnding, manifestName, openedFolder, } from './generator/constants';
|
|
4
|
+
export { getDefaultConfig, padWithDefaultConfig, } from './generator/config/defaultConfig';
|
|
5
|
+
export { extensionName, extensionPublisher, highContrastColorFileEnding, lightColorFileEnding, logEventKey, manifestName, openedFolder, } from './generator/constants';
|
|
5
6
|
export { generateFileIcons } from './generator/fileGenerator';
|
|
6
7
|
export { generateFolderIcons } from './generator/folderGenerator';
|
|
8
|
+
export { generateManifest } from './generator/generateManifest';
|
|
7
9
|
export { validateOpacityValue } from './generator/iconOpacity';
|
|
8
10
|
export { validateSaturationValue } from './generator/iconSaturation';
|
|
9
|
-
export {
|
|
11
|
+
export { renameIconFiles } from './generator/renameIconFiles';
|
|
10
12
|
export { validateHEXColorCode } from './generator/shared/validation';
|
|
11
13
|
export { availableIconPacks } from './helpers/iconPacks';
|
|
14
|
+
export { get, merge, set } from './helpers/object';
|
|
12
15
|
export { resolvePath } from './helpers/resolvePath';
|
|
13
16
|
export { capitalizeFirstLetter, toTitleCase } from './helpers/titlecase';
|
|
17
|
+
export { writeToFile } from './helpers/writeFile';
|
|
14
18
|
export { initTranslations, translate } from './i18n/translate';
|
|
15
19
|
export { fileIcons } from './icons/fileIcons';
|
|
16
20
|
export { folderIcons } from './icons/folderIcons';
|
|
17
21
|
export { languageIcons } from './icons/languageIcons';
|
|
22
|
+
export { createLoggingObserver, logger, type LogEvent, type LogLevel, } from './logging/logger';
|
|
18
23
|
export type { CloneOptions } from './models/icons/cloneOptions';
|
|
19
24
|
export type { Config, IconAssociations } from './models/icons/config';
|
|
20
25
|
export type { DefaultIcon } from './models/icons/defaultIcon';
|
|
@@ -25,6 +30,6 @@ export type { FolderTheme, FolderThemeName, } from './models/icons/folders/folde
|
|
|
25
30
|
export { IconPack, type IconPackValue } from './models/icons/iconPack';
|
|
26
31
|
export type { LanguageIcon } from './models/icons/languages/languageIdentifier';
|
|
27
32
|
export { FileNamePattern } from './models/icons/patterns/patterns';
|
|
28
|
-
export { Manifest } from './models/manifest';
|
|
33
|
+
export { type Manifest, type ManifestConfig } from './models/manifest';
|
|
29
34
|
export { parseByPattern } from './patterns/patterns';
|
|
30
35
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EACL,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,2BAA2B,EAC3B,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,YAAY,GACb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EACL,qBAAqB,EACrB,MAAM,EACN,KAAK,QAAQ,EACb,KAAK,QAAQ,GACd,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACtE,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,YAAY,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,YAAY,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,YAAY,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AACpE,YAAY,EACV,WAAW,EACX,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACvE,YAAY,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventEmitter } from 'node:events';
|
|
2
|
+
export type LogLevel = 'info' | 'error' | 'debug';
|
|
3
|
+
export type LogEvent = {
|
|
4
|
+
level: LogLevel;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Create a logging observer that listens to log events and calls a callback function when a log event is emitted.
|
|
9
|
+
*
|
|
10
|
+
* @param minLogLevel Minimum log level to observe
|
|
11
|
+
* @param callback Callback function to be called when a log event is emitted
|
|
12
|
+
*/
|
|
13
|
+
export declare const createLoggingObserver: (minLogLevel: LogLevel, callback: (event: LogEvent) => void) => EventEmitter;
|
|
14
|
+
export declare const logger: {
|
|
15
|
+
info: (message: unknown) => void;
|
|
16
|
+
error: (message: unknown) => void;
|
|
17
|
+
debug: (message: unknown) => void;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../src/core/logging/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAYlD,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,QAAQ,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAsBF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,gBACnB,QAAQ,YACX,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,KAClC,YAQF,CAAC;AAEF,eAAO,MAAM,MAAM;oBAzBC,OAAO;qBACN,OAAO;qBACP,OAAO;CAuBQ,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LogLevel } from '../../logging/logger';
|
|
1
2
|
import type { FolderThemeName } from './folders/folderTheme';
|
|
2
3
|
import type { IconPackValue } from './iconPack';
|
|
3
4
|
export type Config = {
|
|
@@ -19,6 +20,8 @@ export type Config = {
|
|
|
19
20
|
languages: {
|
|
20
21
|
associations: IconAssociations;
|
|
21
22
|
};
|
|
23
|
+
enableLogging: boolean;
|
|
24
|
+
logLevel: LogLevel;
|
|
22
25
|
};
|
|
23
26
|
export type IconAssociations = {
|
|
24
27
|
[pattern: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/core/models/icons/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,MAAM,MAAM,GAAG;IACnB,cAAc,EAAE,aAAa,CAAC;IAC9B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE;QACP,KAAK,EAAE,eAAe,CAAC;QACvB,KAAK,EAAE,MAAM,CAAC;QACd,YAAY,EAAE,gBAAgB,CAAC;QAC/B,YAAY,EAAE,eAAe,EAAE,CAAC;KACjC,CAAC;IACF,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,YAAY,EAAE,gBAAgB,CAAC;QAC/B,YAAY,EAAE,aAAa,EAAE,CAAC;KAC/B,CAAC;IACF,SAAS,EAAE;QACT,YAAY,EAAE,gBAAgB,CAAC;KAChC,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/core/models/icons/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,MAAM,MAAM,GAAG;IACnB,cAAc,EAAE,aAAa,CAAC;IAC9B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE;QACP,KAAK,EAAE,eAAe,CAAC;QACvB,KAAK,EAAE,MAAM,CAAC;QACd,YAAY,EAAE,gBAAgB,CAAC;QAC/B,YAAY,EAAE,eAAe,EAAE,CAAC;KACjC,CAAC;IACF,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,YAAY,EAAE,gBAAgB,CAAC;QAC/B,YAAY,EAAE,aAAa,EAAE,CAAC;KAC/B,CAAC;IACF,SAAS,EAAE;QACT,YAAY,EAAE,gBAAgB,CAAC;KAChC,CAAC;IACF,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG;IACxC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IAC1C,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import type { RecursivePartial } from '../types/recursivePartial';
|
|
2
|
+
import type { Config } from './icons/config';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the manifest. It contains the configuration which is used to generate the manifest.
|
|
5
|
+
*/
|
|
6
|
+
export type ManifestConfig = RecursivePartial<Pick<Config, 'activeIconPack' | 'hidesExplorerArrows' | 'languages'> & {
|
|
7
|
+
files: Pick<Config['files'], 'associations'>;
|
|
8
|
+
} & {
|
|
9
|
+
folders: Pick<Config['folders'], 'associations' | 'theme'>;
|
|
10
|
+
}>;
|
|
11
|
+
export type Manifest = {
|
|
2
12
|
file?: string;
|
|
3
13
|
folder?: string;
|
|
4
14
|
folderExpanded?: string;
|
|
@@ -15,6 +25,6 @@ export declare class Manifest {
|
|
|
15
25
|
light?: Manifest;
|
|
16
26
|
highContrast?: Manifest;
|
|
17
27
|
hidesExplorerArrows?: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
28
|
+
};
|
|
29
|
+
export declare const createEmptyManifest: () => Manifest;
|
|
20
30
|
//# sourceMappingURL=manifest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../../src/core/models/manifest.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../../src/core/models/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAC3C,IAAI,CAAC,MAAM,EAAE,gBAAgB,GAAG,qBAAqB,GAAG,WAAW,CAAC,GAAG;IACrE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC;CAC9C,GAAG;IACF,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC;CAC5D,CACF,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvD,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,QAerC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { availableIconPacks, generateManifest, type FolderThemeName, type IconAssociations, type IconPackValue, type ManifestConfig, type Manifest, } from '../core';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/module/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/module/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,QAAQ,GACd,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#00b0ff" d="M21 16.5c0 .38-.21.71-.53.88l-7.9 4.44c-.16.12-.36.18-.57.18s-.41-.06-.57-.18l-7.9-4.44A.991.991 0 0 1 3 16.5v-9c0-.38.21-.71.53-.88l7.9-4.44c.16-.12.36-.18.57-.18s.41.06.57.18l7.9 4.44c.32.17.53.5.53.88v9M12 4.15 6.04 7.5 12 10.85l5.96-3.35L12 4.15M5 15.91l6 3.38v-6.71L5 9.21v6.7m14 0v-6.7l-6 3.37v6.71z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#1de9b6" d="M2 2h9a1 1 0 0 1 1 .992A1 1 0 0 1 11 4H2z"/><path fill="#f44336" d="M2 12h11a1 1 0 0 1 1 1 1 1 0 0 1-1 1H2z"/><path fill="#ffb300" d="M2 9h7a1 1 0 0 0 1-1 1 1 0 0 0-1-1H2z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#66bb6a" d="M14.033 6H4.597a.97.97 0 0 0-.918.684L2 12V5h11.566c0-.552-.433-1-.967-1H7.343a.947.947 0 0 1-.619-.232l-.622-.536A.947.947 0 0 0 5.483 3H1.967C1.433 3 1 3.448 1 4v8c0 .552.433 1 .967 1h10.632l2.323-5.606c.273-.66-.195-1.394-.889-1.394z"/><path fill="#DCEDC8" d="m12.538 7.077 2.077 1.038-2.077 2.077zM8.385 14l3.807-3.462-1.73-1.73zM7 5l5.192 5.192V7.077zm8.654 2.077-3.116-.346L16 8.46z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#66BB6A" d="m6.922 3.768-.644-.536A1 1 0 0 0 5.638 3H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H7.562a1 1 0 0 1-.64-.232z"/><path fill="#DCEDC8" d="m12.538 7.077 2.077 1.038-2.077 2.077zM8.385 14l3.807-3.462-1.73-1.73zM7 5l5.192 5.192V7.077zm8.654 2.077-3.116-.346L16 8.46z"/></svg>
|
package/icons/hurl.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#ec407a" d="M11 2v2H2v2h9v2l4-3-4-3zM5 8l-4 3 4 3v-2h9v-2H5V8z"/></svg>
|
package/icons/liara.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><defs><linearGradient id="a" x1="11.328" x2="90.301" y1="8.203" y2="10.761" gradientTransform="matrix(.15939 0 0 .16254 -.134 -.857)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#69F0AE"/><stop offset="1" stop-color="#4FC3F7"/></linearGradient><linearGradient id="b" x1="11.328" x2="90.301" y1="8.203" y2="10.761" gradientTransform="matrix(.15939 0 0 .16253 .195 -.856)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#69F0AE"/><stop offset="1" stop-color="#4FC3F7"/></linearGradient><linearGradient id="c" x1="11.328" x2="90.301" y1="8.203" y2="10.761" gradientTransform="matrix(.15784 0 0 .16493 .15 -.355)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#69F0AE"/><stop offset="1" stop-color="#4FC3F7"/></linearGradient></defs><path fill="url(#a)" d="M8.5 8.811c0-.53.368-1.174.82-1.44l3.86-2.257c.452-.265.82-.052.82.479v4.596c0 .527-.368 1.17-.82 1.436l-3.86 2.261c-.452.265-.82.051-.82-.479zm0 0"/><path fill="url(#b)" d="M2 5.593c0-.53.368-.745.82-.479l3.86 2.258c.452.264.82.909.82 1.44v4.595c0 .53-.368.744-.82.48l-3.86-2.262c-.452-.264-.82-.909-.82-1.44zm0 0"/><path fill="url(#c)" d="M3.336 4.467c-.448-.27-.448-.706 0-.972l3.821-2.293c.447-.27 1.173-.27 1.62 0l3.888 2.332c.447.268.447.702 0 .971L8.843 6.799c-.447.268-1.173.268-1.624 0zm0 0"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#42a5f5" d="M6 5 4 6.75 2 5H1v6h2V8l1 1 1-1v3h2V5zm4.73 3.975L10 8H8l2 3h2l3-6h-2z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#2196F3" d="M12 21.669a6.927 6.927 0 0 1-6.927-6.927C5.073 10.124 12 2.33 12 2.33s6.927 7.793 6.927 12.41A6.927 6.927 0 0 1 12 21.67z"/></svg>
|
package/icons/remark.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#ef5350" d="M5.445 2.975C3.724 2.989 3.04 3.93 3 4V3H1v10h2V7c.647-.844 1.609-1.724 3-1V3a5.33 5.33 0 0 0-.555-.025zM10.748 3c-.88 0-1.662.207-2.352.623-.683.41-1.213 1-1.588 1.766-.374.76-.56 1.625-.56 2.593v.25c0 1.444.443 2.6 1.328 3.467C8.467 12.567 9.62 13 11.033 13c.802 0 1.534-.152 2.193-.455.66-.309 1.183-.737 1.569-1.283l-1.266-1.416c-.558.719-1.334 1.078-2.326 1.078-.642 0-1.174-.19-1.596-.57C9.191 9.974 9.083 9.63 9 9h6V7.785c0-1.527-.38-2.705-1.14-3.537C13.104 3.416 12.066 3 10.747 3zm-.008 2.086c.547 0 .969.158 1.266.473.297.309.45.748.463 1.318L12.48 7H9c.089-.642.177-1.054.492-1.398.32-.345.737-.516 1.248-.516z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#BA68C8" d="m24 6 2 6h-4l-2-6h-3l2 6h-4l-2-6h-3l2 6H8L6 6H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h22a3 3 0 0 0 3-3V6Z"/></svg>
|
package/icons/tsil.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#795548" d="M14 13.3a.7.7 0 0 1-.7.7H8V8h6z"/><path fill="#ffe57f" d="M14 8H8V2h5.3a.7.7 0 0 1 .7.7z"/><path fill="#ffab40" d="M8 8H2V2.7a.7.7 0 0 1 .7-.7H8z"/><path fill="#212121" d="M8 14H2.7a.7.7 0 0 1-.7-.7V8h6z"/></svg>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "material-icon-theme",
|
|
3
3
|
"displayName": "Material Icon Theme",
|
|
4
4
|
"description": "Material Design Icons for Visual Studio Code",
|
|
5
|
-
"version": "5.
|
|
5
|
+
"version": "5.8.0",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"precompile": "rimraf dist && bun run verify",
|
|
8
8
|
"compile": "tsc -p ./",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"url": "https://github.com/sponsors/PKief"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
|
-
"vscode": "^1.
|
|
42
|
+
"vscode": "^1.55.0"
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/material-extensions/vscode-material-icon-theme/blob/main/README.md",
|
|
45
45
|
"repository": {
|
|
@@ -82,12 +82,6 @@
|
|
|
82
82
|
"module": "./dist/module/index.cjs",
|
|
83
83
|
"types": "./dist/types/module/index.d.ts",
|
|
84
84
|
"sideEffects": false,
|
|
85
|
-
"files": [
|
|
86
|
-
"icons",
|
|
87
|
-
"dist/material-icons.json",
|
|
88
|
-
"dist/module/index.cjs",
|
|
89
|
-
"dist/types"
|
|
90
|
-
],
|
|
91
85
|
"contributes": {
|
|
92
86
|
"iconThemes": [
|
|
93
87
|
{
|
|
@@ -315,12 +309,28 @@
|
|
|
315
309
|
"minimum": 0,
|
|
316
310
|
"maximum": 1,
|
|
317
311
|
"description": "%configuration.saturation%"
|
|
312
|
+
},
|
|
313
|
+
"material-icon-theme.enableLogging": {
|
|
314
|
+
"type": "boolean",
|
|
315
|
+
"default": false,
|
|
316
|
+
"description": "%configuration.enableLogging%"
|
|
317
|
+
},
|
|
318
|
+
"material-icon-theme.logLevel": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"default": "info",
|
|
321
|
+
"enum": [
|
|
322
|
+
"info",
|
|
323
|
+
"error",
|
|
324
|
+
"debug"
|
|
325
|
+
],
|
|
326
|
+
"description": "%configuration.logLevel%"
|
|
318
327
|
}
|
|
319
328
|
}
|
|
320
329
|
}
|
|
321
330
|
},
|
|
322
331
|
"dependencies": {
|
|
323
332
|
"chroma-js": "^2.4.2",
|
|
333
|
+
"fast-deep-equal": "^3.1.3",
|
|
324
334
|
"svgson": "^5.3.1"
|
|
325
335
|
},
|
|
326
336
|
"devDependencies": {
|
|
@@ -328,18 +338,18 @@
|
|
|
328
338
|
"@softarc/sheriff-core": "^0.15.1",
|
|
329
339
|
"@types/chroma-js": "^2.4.4",
|
|
330
340
|
"@types/glob": "^7.2.0",
|
|
331
|
-
"@types/puppeteer": "^5.4.
|
|
332
|
-
"@types/vscode": "~1.
|
|
333
|
-
"@vscode/test-electron": "^2.
|
|
334
|
-
"axios": "^1.
|
|
335
|
-
"bun-types": "^1.1.
|
|
336
|
-
"changelog-machine": "^1.0
|
|
337
|
-
"esbuild": "^0.21.
|
|
338
|
-
"glob": "^8.0
|
|
339
|
-
"puppeteer": "^22.
|
|
340
|
-
"rimraf": "^6.0.
|
|
341
|
-
"svg-color-linter": "^1.
|
|
341
|
+
"@types/puppeteer": "^5.4.7",
|
|
342
|
+
"@types/vscode": "~1.55.0",
|
|
343
|
+
"@vscode/test-electron": "^2.4.1",
|
|
344
|
+
"axios": "^1.7.2",
|
|
345
|
+
"bun-types": "^1.1.20",
|
|
346
|
+
"changelog-machine": "^1.1.0",
|
|
347
|
+
"esbuild": "^0.21.5",
|
|
348
|
+
"glob": "^8.1.0",
|
|
349
|
+
"puppeteer": "^22.13.1",
|
|
350
|
+
"rimraf": "^6.0.1",
|
|
351
|
+
"svg-color-linter": "^1.4.0",
|
|
342
352
|
"svgo": "^2.8.0",
|
|
343
|
-
"typescript": "^5.5.
|
|
353
|
+
"typescript": "^5.5.4"
|
|
344
354
|
}
|
|
345
355
|
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { Config } from '../models/icons/config';
|
|
2
|
-
import { Manifest } from '../models/manifest';
|
|
3
|
-
import type { RecursivePartial } from '../types/recursivePartial';
|
|
4
|
-
/**
|
|
5
|
-
* Configuration for the manifest. It contains the configuration which is used to generate the manifest.
|
|
6
|
-
*/
|
|
7
|
-
export type ManifestConfig = RecursivePartial<Pick<Config, 'activeIconPack' | 'hidesExplorerArrows' | 'languages'> & {
|
|
8
|
-
files: Pick<Config['files'], 'associations'>;
|
|
9
|
-
} & {
|
|
10
|
-
folders: Pick<Config['folders'], 'associations' | 'theme'>;
|
|
11
|
-
}>;
|
|
12
|
-
/**
|
|
13
|
-
* Generate the manifest that will be written as JSON file.
|
|
14
|
-
*/
|
|
15
|
-
export declare const generateManifest: (config?: ManifestConfig) => Manifest;
|
|
16
|
-
/**
|
|
17
|
-
* Apply the configuration to the icons. But only if the configuration has changed.
|
|
18
|
-
* If the affectedConfig is not set then all icons will be updated.
|
|
19
|
-
*
|
|
20
|
-
* @param config Configuration that customizes the icons and the manifest.
|
|
21
|
-
* @param affectedConfig Set of configuration keys that have changed so that not all functions need to be executed.
|
|
22
|
-
*/
|
|
23
|
-
export declare const applyConfigurationToIcons: (config: Config, affectedConfig?: Set<string>) => void;
|
|
24
|
-
/**
|
|
25
|
-
* Rename all icon files according their respective config.
|
|
26
|
-
*
|
|
27
|
-
* The rename triggers a change event in VS Code, which will update the icons in the UI.
|
|
28
|
-
* @param config Icon Json Options
|
|
29
|
-
*/
|
|
30
|
-
export declare const renameIconFiles: (config: Config) => void;
|
|
31
|
-
//# sourceMappingURL=jsonGenerator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonGenerator.d.ts","sourceRoot":"","sources":["../../../../src/core/generator/jsonGenerator.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAYlE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAC3C,IAAI,CAAC,MAAM,EAAE,gBAAgB,GAAG,qBAAqB,GAAG,WAAW,CAAC,GAAG;IACrE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC;CAC9C,GAAG;IACF,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC;CAC5D,CACF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,YAAa,cAAc,KAAG,QAyB1D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,WAC5B,MAAM,mBACG,GAAG,CAAC,MAAM,CAAC,SAkB7B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,WAAY,MAAM,SA6B7C,CAAC"}
|
package/icons/container.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#00b0ff" d="M28.324 7.815 16.646 2.147a1.487 1.487 0 0 0-1.291 0L3.677 7.816A1.39 1.39 0 0 0 3 9v14a1.4 1.4 0 0 0 .798 1.254l11.622 5.614c.365.176.794.176 1.159 0l11.622-5.614c.49-.238.799-.723.799-1.253V9c0-.482-.256-.93-.676-1.186zM14 26l-8-4V11l8 4zm2-13L8 9l8-4 8 4zm10 9-8 4V15l8-4z"/></svg>
|