@scalar/icons 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/useScalarIcon.d.ts.map +1 -1
- package/dist/library/icons.d.ts +1 -1
- package/dist/library/icons.d.ts.map +1 -1
- package/dist/library/index.d.ts +2 -2
- package/dist/library/index.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/hooks/useScalarIcon.test.d.ts +0 -2
- package/dist/hooks/useScalarIcon.test.d.ts.map +0 -1
- package/dist/scripts/generate-icons.d.ts +0 -3
- package/dist/scripts/generate-icons.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScalarIcon.d.ts","sourceRoot":"","sources":["../../src/hooks/useScalarIcon.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useScalarIcon.d.ts","sourceRoot":"","sources":["../../src/hooks/useScalarIcon.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAIhE,wBAAgB,aAAa,CAAC,KAAK,GAAE,eAAoB;;;;;;;;;;;;;;;EAaxD"}
|
package/dist/library/icons.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { LibraryIconDefinition } from './types';
|
|
2
1
|
import type { Component } from 'vue';
|
|
2
|
+
import type { LibraryIconDefinition } from './types';
|
|
3
3
|
/** Icon list for icon selector */
|
|
4
4
|
export declare const libraryIcons: LibraryIconDefinition[];
|
|
5
5
|
export declare const getLibraryIcon: (src: string) => Component | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/library/icons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/library/icons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAkCpD,kCAAkC;AAClC,eAAO,MAAM,YAAY,EAAE,qBAAqB,EAA6B,CAAA;AAK7E,eAAO,MAAM,cAAc,GAAI,KAAK,MAAM,KAAG,SAAS,GAAG,SAExD,CAAA"}
|
package/dist/library/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from './types';
|
|
1
|
+
export { getLibraryIcon, libraryIcons, } from './icons.js';
|
|
3
2
|
export { default as LibraryIcon } from './LibraryIcon.vue.js';
|
|
3
|
+
export type { LibraryIconDefinition } from './types';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/library/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/library/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,YAAY,GACb,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1D,YAAY,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,12 +10,13 @@
|
|
|
10
10
|
"url": "git+https://github.com/scalar/scalar.git",
|
|
11
11
|
"directory": "packages/icons"
|
|
12
12
|
},
|
|
13
|
-
"version": "0.5.
|
|
13
|
+
"version": "0.5.2",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=20"
|
|
16
16
|
},
|
|
17
17
|
"type": "module",
|
|
18
18
|
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.js",
|
|
19
20
|
"types": "./dist/index.d.ts",
|
|
20
21
|
"exports": {
|
|
21
22
|
".": {
|
|
@@ -35,7 +36,6 @@
|
|
|
35
36
|
"files": [
|
|
36
37
|
"dist"
|
|
37
38
|
],
|
|
38
|
-
"module": "./dist/index.js",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@phosphor-icons/core": "^2.1.1",
|
|
41
41
|
"@types/node": "^22.9.0",
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@vitejs/plugin-vue": "6.0.1",
|
|
47
47
|
"@vue/test-utils": "2.4.6",
|
|
48
|
-
"jsdom": "
|
|
48
|
+
"jsdom": "26.1.0",
|
|
49
49
|
"svglint": "^2.7.1",
|
|
50
50
|
"vite": "7.1.11",
|
|
51
51
|
"vite-svg-loader": "5.1.0",
|
|
52
52
|
"vitest": "3.2.4",
|
|
53
|
-
"@scalar/build-tooling": "0.
|
|
53
|
+
"@scalar/build-tooling": "0.4.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "scalar-build-vite",
|
|
57
57
|
"format": "scalar-format",
|
|
58
58
|
"format:check": "scalar-format-check",
|
|
59
|
-
"generate:icons": "vite-node ./
|
|
60
|
-
"lint:check": "
|
|
61
|
-
"lint:fix": "
|
|
59
|
+
"generate:icons": "vite-node ./scripts/generate-icons.ts && pnpm format",
|
|
60
|
+
"lint:check": "scalar-lint-check && pnpm lint:icons",
|
|
61
|
+
"lint:fix": "scalar-lint-fix",
|
|
62
62
|
"lint:icons": "svglint src/library/icons/*.svg --config src/library/.svglintrc.js",
|
|
63
63
|
"test": "vitest",
|
|
64
64
|
"types:build": "scalar-types-build-vue",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useScalarIcon.test.d.ts","sourceRoot":"","sources":["../../src/hooks/useScalarIcon.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate-icons.d.ts","sourceRoot":"","sources":["../../src/scripts/generate-icons.ts"],"names":[],"mappings":""}
|