@iconify/tools 2.1.0-beta.7 → 2.1.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/lib/colors/attribs.d.ts +2 -0
- package/lib/colors/parse.d.ts +1 -1
- package/lib/colors/validate.d.ts +1 -1
- package/lib/export/directory.d.ts +1 -1
- package/lib/export/icon-package.d.ts +1 -1
- package/lib/export/json-package.d.ts +1 -1
- package/lib/icon-set/index.d.ts +1 -1
- package/lib/icon-set/match.d.ts +1 -1
- package/lib/icon-set/merge.d.ts +1 -1
- package/lib/icon-set/modified.d.ts +1 -1
- package/lib/icon-set/props.d.ts +1 -1
- package/lib/icon-set/types.d.ts +1 -1
- package/lib/import/directory.d.ts +1 -1
- package/lib/import/figma/index.d.ts +1 -1
- package/lib/import/figma/nodes.d.ts +1 -1
- package/lib/import/figma/query.d.ts +1 -1
- package/lib/import/figma/types/nodes.d.ts +1 -1
- package/lib/import/figma/types/options.d.ts +1 -1
- package/lib/import/figma/types/result.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/optimise/flags.d.ts +1 -1
- package/lib/optimise/global-style.d.ts +1 -1
- package/lib/optimise/scale.d.ts +1 -1
- package/lib/optimise/svgo.d.ts +1 -1
- package/lib/svg/analyse.d.ts +1 -1
- package/lib/svg/cleanup/attribs.d.ts +1 -1
- package/lib/svg/cleanup/bad-tags.d.ts +1 -1
- package/lib/svg/cleanup/inline-style.d.ts +1 -1
- package/lib/svg/cleanup/root-style.d.ts +1 -1
- package/lib/svg/cleanup/root-svg.d.ts +1 -1
- package/lib/svg/cleanup/svgo-style.d.ts +1 -1
- package/lib/svg/cleanup.d.ts +1 -1
- package/lib/svg/index.d.ts +2 -2
- package/lib/svg/parse-style.d.ts +1 -1
- package/lib/svg/parse.d.ts +1 -1
- package/lib/{types-f0980297.d.ts → types-6360d61e.d.ts} +3 -0
- package/package.json +4 -4
package/lib/colors/attribs.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ declare const defaultColorValues: Record<ColorAttributes, Color>;
|
|
|
19
19
|
* Ignore default color for some tags:
|
|
20
20
|
* - If value is true, allow default color
|
|
21
21
|
* - If value is attribute name, allow default color if attribute is set
|
|
22
|
+
*
|
|
23
|
+
* Parent elements are not checked for these tags!
|
|
22
24
|
*/
|
|
23
25
|
declare const allowDefaultColorValue: Partial<Record<ColorAttributes, string | true>>;
|
|
24
26
|
|
package/lib/colors/parse.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Color } from '@iconify/utils/lib/colors/types';
|
|
|
2
2
|
import { SVG } from '../svg/index.js';
|
|
3
3
|
import { ColorAttributes } from './attribs.js';
|
|
4
4
|
import { ElementsTreeItem, AnalyseSVGStructureResult, AnalyseSVGStructureOptions, ExtendedTagElement } from '../svg/analyse/types.js';
|
|
5
|
-
import '../types-
|
|
5
|
+
import '../types-6360d61e.js';
|
|
6
6
|
import '@iconify/utils/lib/customisations/defaults';
|
|
7
7
|
|
|
8
8
|
/**
|
package/lib/colors/validate.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SVG } from '../svg/index.js';
|
|
2
2
|
import { ParseColorsOptions, FindColorsResult } from './parse.js';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-6360d61e.js';
|
|
4
4
|
import '@iconify/utils/lib/customisations/defaults';
|
|
5
5
|
import '@iconify/utils/lib/colors/types';
|
|
6
6
|
import './attribs.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconSet } from '../icon-set/index.js';
|
|
2
2
|
import { ExportTargetOptions } from './helpers/prepare.js';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-6360d61e.js';
|
|
4
4
|
import '@iconify/utils/lib/customisations/defaults';
|
|
5
5
|
import '../icon-set/types.js';
|
|
6
6
|
import '../svg/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconSet } from '../icon-set/index.js';
|
|
2
2
|
import { ExportTargetOptions } from './helpers/prepare.js';
|
|
3
3
|
import { ExportOptionsWithCustomFiles } from './helpers/custom-files.js';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-6360d61e.js';
|
|
5
5
|
import '@iconify/utils/lib/customisations/defaults';
|
|
6
6
|
import '../icon-set/types.js';
|
|
7
7
|
import '../svg/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconSet } from '../icon-set/index.js';
|
|
2
2
|
import { ExportTargetOptions } from './helpers/prepare.js';
|
|
3
3
|
import { ExportOptionsWithCustomFiles } from './helpers/custom-files.js';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-6360d61e.js';
|
|
5
5
|
import '@iconify/utils/lib/customisations/defaults';
|
|
6
6
|
import '../icon-set/types.js';
|
|
7
7
|
import '../svg/index.js';
|
package/lib/icon-set/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as IconifyInfo, b as IconifyJSON } from '../types-
|
|
1
|
+
import { a as IconifyInfo, b as IconifyJSON } from '../types-6360d61e.js';
|
|
2
2
|
import { IconifyIconCustomisations } from '@iconify/utils/lib/customisations/defaults';
|
|
3
3
|
import { IconSetIconEntry, IconCategory, IconSetIconType, IconSetAsyncForEachCallback, ResolvedIconifyIcon, CommonIconProps, CheckThemeResult } from './types.js';
|
|
4
4
|
import { SVG } from '../svg/index.js';
|
package/lib/icon-set/match.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FullIconifyIcon } from '@iconify/utils/lib/icon/defaults';
|
|
2
2
|
import { IconSet } from './index.js';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-6360d61e.js';
|
|
4
4
|
import '@iconify/utils/lib/customisations/defaults';
|
|
5
5
|
import './types.js';
|
|
6
6
|
import '../svg/index.js';
|
package/lib/icon-set/merge.d.ts
CHANGED
package/lib/icon-set/props.d.ts
CHANGED
package/lib/icon-set/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as ExtendedIconifyIcon, c as ExtendedIconifyAlias, d as IconifyOptional, I as IconifyIcon } from '../types-
|
|
1
|
+
import { E as ExtendedIconifyIcon, c as ExtendedIconifyAlias, d as IconifyOptional, I as IconifyIcon } from '../types-6360d61e.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Category item
|
|
@@ -2,7 +2,7 @@ import { DocumentNotModified } from '../../download/types/modified.js';
|
|
|
2
2
|
import { FigmaIfModifiedSinceOption, FigmaImportOptions } from './types/options.js';
|
|
3
3
|
import { FigmaImportResult } from './types/result.js';
|
|
4
4
|
import '../../icon-set/index.js';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-6360d61e.js';
|
|
6
6
|
import '@iconify/utils/lib/customisations/defaults';
|
|
7
7
|
import '../../icon-set/types.js';
|
|
8
8
|
import '../../svg/index.js';
|
|
@@ -2,7 +2,7 @@ import { FigmaDocument } from './types/api.js';
|
|
|
2
2
|
import { FigmaGetIconNodesOptions } from './types/options.js';
|
|
3
3
|
import { FigmaNodesImportResult } from './types/result.js';
|
|
4
4
|
import '../../icon-set/index.js';
|
|
5
|
-
import '../../types-
|
|
5
|
+
import '../../types-6360d61e.js';
|
|
6
6
|
import '@iconify/utils/lib/customisations/defaults';
|
|
7
7
|
import '../../icon-set/types.js';
|
|
8
8
|
import '../../svg/index.js';
|
|
@@ -4,7 +4,7 @@ import { FigmaDocument } from './types/api.js';
|
|
|
4
4
|
import { FigmaIfModifiedSinceOption, FigmaFilesQueryOptions, FigmaImagesQueryOptions } from './types/options.js';
|
|
5
5
|
import { FigmaNodesImportResult } from './types/result.js';
|
|
6
6
|
import '../../icon-set/index.js';
|
|
7
|
-
import '../../types-
|
|
7
|
+
import '../../types-6360d61e.js';
|
|
8
8
|
import '@iconify/utils/lib/customisations/defaults';
|
|
9
9
|
import '../../icon-set/types.js';
|
|
10
10
|
import '../../svg/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconFigmaNode, FigmaDocument } from './api.js';
|
|
2
2
|
import { FigmaNodesImportResult, FigmaIconNode } from './result.js';
|
|
3
3
|
import '../../../icon-set/index.js';
|
|
4
|
-
import '../../../types-
|
|
4
|
+
import '../../../types-6360d61e.js';
|
|
5
5
|
import '@iconify/utils/lib/customisations/defaults';
|
|
6
6
|
import '../../../icon-set/types.js';
|
|
7
7
|
import '../../../svg/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconSet } from '../../../icon-set/index.js';
|
|
2
2
|
import { FigmaImportParentNodeFilter, FigmaImportNodeFilter } from './nodes.js';
|
|
3
3
|
import { FigmaIconNode } from './result.js';
|
|
4
|
-
import '../../../types-
|
|
4
|
+
import '../../../types-6360d61e.js';
|
|
5
5
|
import '@iconify/utils/lib/customisations/defaults';
|
|
6
6
|
import '../../../icon-set/types.js';
|
|
7
7
|
import '../../../svg/index.js';
|
package/lib/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export { execAsync } from './misc/exec.js';
|
|
|
44
44
|
export { cleanupIconKeyword } from './misc/keyword.js';
|
|
45
45
|
export { bumpVersion } from './misc/bump-version.js';
|
|
46
46
|
export { sendAPIQuery } from './download/api/index.js';
|
|
47
|
-
import './types-
|
|
47
|
+
import './types-6360d61e.js';
|
|
48
48
|
import '@iconify/utils/lib/customisations/defaults';
|
|
49
49
|
import './misc/cheerio.js';
|
|
50
50
|
import './css/parser/types.js';
|
package/lib/optimise/flags.d.ts
CHANGED
package/lib/optimise/scale.d.ts
CHANGED
package/lib/optimise/svgo.d.ts
CHANGED
package/lib/svg/analyse.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SVG } from '../index.js';
|
|
2
2
|
import { parseSVGStyle } from '../parse-style.js';
|
|
3
|
-
import '../../types-
|
|
3
|
+
import '../../types-6360d61e.js';
|
|
4
4
|
import '@iconify/utils/lib/customisations/defaults';
|
|
5
5
|
import '../../css/parser/types.js';
|
|
6
6
|
import '../parse.js';
|
package/lib/svg/cleanup.d.ts
CHANGED
package/lib/svg/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IconifyIcon } from '../types-
|
|
2
|
-
export { I as IconifyIcon } from '../types-
|
|
1
|
+
import { I as IconifyIcon } from '../types-6360d61e.js';
|
|
2
|
+
export { I as IconifyIcon } from '../types-6360d61e.js';
|
|
3
3
|
import { IconifyIconCustomisations } from '@iconify/utils/lib/customisations/defaults';
|
|
4
4
|
export { IconifyIconCustomisations } from '@iconify/utils/lib/customisations/defaults';
|
|
5
5
|
|
package/lib/svg/parse-style.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SVG } from './index.js';
|
|
2
2
|
import { CSSRuleToken, CSSToken } from '../css/parser/types.js';
|
|
3
3
|
import { ParseSVGCallbackItem } from './parse.js';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-6360d61e.js';
|
|
5
5
|
import '@iconify/utils/lib/customisations/defaults';
|
|
6
6
|
import '../misc/cheerio.js';
|
|
7
7
|
|
package/lib/svg/parse.d.ts
CHANGED
|
@@ -154,6 +154,9 @@ interface IconifyInfo {
|
|
|
154
154
|
// Category on Iconify collections list.
|
|
155
155
|
category?: string;
|
|
156
156
|
|
|
157
|
+
// List of tags to group similar icon sets.
|
|
158
|
+
tags?: string[];
|
|
159
|
+
|
|
157
160
|
// Palette status. True if icons have predefined color scheme, false if icons use currentColor.
|
|
158
161
|
// Ideally, icon set should not mix icons with and without palette to simplify search.
|
|
159
162
|
palette?: boolean;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Collection of functions for cleaning up and parsing SVG for Iconify project",
|
|
5
5
|
"author": "Vjacheslav Trushkin",
|
|
6
|
-
"version": "2.1.0
|
|
6
|
+
"version": "2.1.0",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"bugs": "https://github.com/iconify/tools/issues",
|
|
9
9
|
"homepage": "https://github.com/iconify/tools",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"test": "npm run test:jest-cjs && npm run test:jest-esm && npm run test:jasmine"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@iconify/utils": "^2.0.0
|
|
28
|
+
"@iconify/utils": "^2.0.0",
|
|
29
29
|
"@types/cheerio": "^0.22.30",
|
|
30
30
|
"@types/node-fetch": "^2.5.12",
|
|
31
31
|
"@types/svgo": "^2.6.0",
|
|
32
32
|
"@types/tar": "^6.1.0",
|
|
33
33
|
"cheerio": "^1.0.0-rc.10",
|
|
34
34
|
"extract-zip": "^2.0.1",
|
|
35
|
-
"local-pkg": "^0.4.
|
|
35
|
+
"local-pkg": "^0.4.2",
|
|
36
36
|
"node-fetch": "^2.6.7",
|
|
37
|
-
"pathe": "^0.
|
|
37
|
+
"pathe": "^0.3.7",
|
|
38
38
|
"svgo": "^2.8.0",
|
|
39
39
|
"tar": "^6.1.11"
|
|
40
40
|
},
|