@histoire/vendors 1.0.0-alpha.1 → 1.0.0-alpha.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.
Files changed (34) hide show
  1. package/dist/client/b-floating-vue.js +1 -1
  2. package/dist/client/b-iconify.js +142 -255
  3. package/dist/client/b-pinia.js +3 -3
  4. package/dist/client/b-scroll.js +1 -1
  5. package/dist/client/b-vue-use.js +1200 -764
  6. package/dist/client/b-vue.js +1 -1
  7. package/dist/client/node_modules/@babel/parser/package.json +2 -2
  8. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +127 -164
  9. package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +16 -6
  10. package/dist/client/node_modules/@babel/types/lib/index.d.ts +1168 -1157
  11. package/dist/client/node_modules/@babel/types/package.json +12 -12
  12. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +59 -6
  13. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +9 -2
  14. package/dist/client/node_modules/@iconify/vue/package.json +14 -14
  15. package/dist/client/node_modules/@vueuse/core/index.d.ts +486 -236
  16. package/dist/client/node_modules/@vueuse/core/package.json +18 -6
  17. package/dist/client/node_modules/@vueuse/metadata/package.json +11 -4
  18. package/dist/client/node_modules/@vueuse/shared/index.d.ts +50 -16
  19. package/dist/client/node_modules/@vueuse/shared/package.json +15 -3
  20. package/dist/client/node_modules/pinia/dist/pinia.d.ts +1 -1
  21. package/dist/client/node_modules/pinia/package.json +1 -1
  22. package/dist/client/node_modules/postcss/lib/at-rule.d.ts +9 -9
  23. package/dist/client/node_modules/postcss/lib/comment.d.ts +7 -7
  24. package/dist/client/node_modules/postcss/lib/container.d.ts +45 -48
  25. package/dist/client/node_modules/postcss/lib/declaration.d.ts +9 -9
  26. package/dist/client/node_modules/postcss/lib/input.d.ts +15 -17
  27. package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +40 -40
  28. package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +5 -5
  29. package/dist/client/node_modules/postcss/lib/node.d.ts +8 -8
  30. package/dist/client/node_modules/postcss/lib/result.d.ts +10 -10
  31. package/dist/client/node_modules/postcss/lib/rule.d.ts +8 -8
  32. package/dist/client/node_modules/postcss/package.json +1 -1
  33. package/dist/client/vue.runtime.esm-bundler.js +1 -1
  34. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/types",
3
- "version": "7.26.5",
3
+ "version": "7.26.9",
4
4
  "description": "Babel Types is a Lodash-esque utility library for AST nodes",
5
5
  "author": "The Babel Team (https://babel.dev/team)",
6
6
  "homepage": "https://babel.dev/docs/en/next/babel-types",
@@ -15,25 +15,25 @@
15
15
  "directory": "packages/babel-types"
16
16
  },
17
17
  "main": "./lib/index.js",
18
- "types": "./lib/index-legacy.d.ts",
19
- "typesVersions": {
20
- ">=4.1": {
21
- "lib/index-legacy.d.ts": [
22
- "lib/index.d.ts"
23
- ]
24
- }
25
- },
26
18
  "dependencies": {
27
19
  "@babel/helper-string-parser": "^7.25.9",
28
20
  "@babel/helper-validator-identifier": "^7.25.9"
29
21
  },
30
22
  "devDependencies": {
31
- "@babel/generator": "^7.26.5",
32
- "@babel/parser": "^7.26.5",
23
+ "@babel/generator": "^7.26.9",
24
+ "@babel/parser": "^7.26.9",
33
25
  "glob": "^7.2.0"
34
26
  },
35
27
  "engines": {
36
28
  "node": ">=6.9.0"
37
29
  },
38
- "type": "commonjs"
30
+ "type": "commonjs",
31
+ "types": "./lib/index-legacy.d.ts",
32
+ "typesVersions": {
33
+ ">=4.1": {
34
+ "lib/index-legacy.d.ts": [
35
+ "lib/index.d.ts"
36
+ ]
37
+ }
38
+ }
39
39
  }
@@ -1,4 +1,5 @@
1
1
  import type { ComponentOptionsMixin } from 'vue';
2
+ import { ComponentProvideOptions } from 'vue';
2
3
  import type { DefineComponent } from 'vue';
3
4
  import { IconifyIcon } from '@iconify/types';
4
5
  import { IconifyJSON } from '@iconify/types';
@@ -18,13 +19,18 @@ export declare function addCollection(data: IconifyJSON, provider?: string): boo
18
19
  /**
19
20
  * Add one icon
20
21
  */
21
- export declare function addIcon(name: string, data: IconifyIcon): boolean;
22
+ export declare function addIcon(name: string, data: IconifyIcon | null): boolean;
22
23
 
23
24
  /**
24
25
  * Internal API
25
26
  */
26
27
  export declare const _api: IconifyAPIInternalFunctions;
27
28
 
29
+ /**
30
+ * Storage types
31
+ *
32
+ * @deprecated This type is not used anymore
33
+ */
28
34
  declare type BrowserStorageType = 'local' | 'session';
29
35
 
30
36
  /**
@@ -50,11 +56,15 @@ export declare function calculateSize(size: string | number, ratio: number, prec
50
56
 
51
57
  /**
52
58
  * Disable cache
59
+ *
60
+ * @deprecated No longer used
53
61
  */
54
62
  export declare function disableCache(storage: IconifyBrowserCacheType): void;
55
63
 
56
64
  /**
57
65
  * Enable cache
66
+ *
67
+ * @deprecated No longer used
58
68
  */
59
69
  export declare function enableCache(storage: IconifyBrowserCacheType): void;
60
70
 
@@ -66,9 +76,9 @@ export declare type GetAPIConfig = (provider: string) => IconifyAPIConfig | unde
66
76
  /**
67
77
  * Get full icon
68
78
  */
69
- export declare function getIcon(name: string): Required<IconifyIcon> | null;
79
+ export declare function getIcon(name: string): Required<IconifyIcon> | null | undefined;
70
80
 
71
- export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps>, {}, {}>;
81
+ export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
72
82
 
73
83
  /**
74
84
  * API config
@@ -100,6 +110,14 @@ export declare interface IconifyAPIFunctions {
100
110
  * Add API provider
101
111
  */
102
112
  addAPIProvider: (provider: string, customConfig: PartialIconifyAPIConfig) => boolean;
113
+ /**
114
+ * Set custom loader for multple icons
115
+ */
116
+ setCustomIconsLoader: (callback: IconifyCustomIconsLoader, prefix: string, provider?: string) => void;
117
+ /**
118
+ * Set custom loader for one icon
119
+ */
120
+ setCustomIconLoader: (callback: IconifyCustomIconLoader, prefix: string, provider?: string) => void;
103
121
  }
104
122
 
105
123
  /**
@@ -162,6 +180,8 @@ export declare type IconifyAPISendQuery = (host: string, params: IconifyAPIQuery
162
180
 
163
181
  /**
164
182
  * Interface for exported functions
183
+ *
184
+ * @deprecated This type is not used anymore
165
185
  */
166
186
  export declare interface IconifyBrowserCacheFunctions {
167
187
  enableCache: (storage: IconifyBrowserCacheType) => void;
@@ -170,6 +190,8 @@ export declare interface IconifyBrowserCacheFunctions {
170
190
 
171
191
  /**
172
192
  * Cache types
193
+ *
194
+ * @deprecated This type is not used anymore
173
195
  */
174
196
  export declare type IconifyBrowserCacheType = BrowserStorageType | 'all';
175
197
 
@@ -182,13 +204,22 @@ export declare interface IconifyBuilderFunctions {
182
204
  buildIcon: (icon: IconifyIcon, customisations?: IconifyIconCustomisations_2) => IconifyIconBuildResult;
183
205
  }
184
206
 
207
+ /**
208
+ * Custom loader for one icon
209
+ */
210
+ export declare type IconifyCustomIconLoader = (name: string, prefix: string, provider: string) => Promise<IconifyIcon | null> | IconifyIcon | null;
211
+
212
+ /**
213
+ * Custom icons loader
214
+ */
215
+ export declare type IconifyCustomIconsLoader = (icons: string[], prefix: string, provider: string) => Promise<IconifyJSON | null> | IconifyJSON | null;
216
+
185
217
  /**
186
218
  * Properties for element that are mentioned in render.ts
187
219
  */
188
220
  declare interface IconifyElementProps {
189
221
  id?: string;
190
222
  style?: unknown;
191
- onLoad?: IconifyIconOnLoad;
192
223
  }
193
224
 
194
225
  export { IconifyIcon }
@@ -220,6 +251,11 @@ export declare type IconifyIconCustomisations = IconifyIconCustomisations_2 & {
220
251
  declare interface IconifyIconCustomisations_2 extends IconifyTransformations, IconifyIconSizeCustomisations {
221
252
  }
222
253
 
254
+ /**
255
+ * Customise callback
256
+ */
257
+ declare type IconifyIconCustomiseCallback = (content: string, name: string, prefix: string, provider: string) => string;
258
+
223
259
  /**
224
260
  * Function to abort loading (usually just removes callback because loading is already in progress)
225
261
  */
@@ -302,16 +338,21 @@ export declare interface IconifyStorageFunctions {
302
338
  iconExists: (name: string) => boolean;
303
339
  /**
304
340
  * Get icon data with all properties
341
+ *
342
+ * Returns null if icon is missing (attempted to load, but failed)
343
+ * Returns undefined if icon was not loaded
305
344
  */
306
- getIcon: (name: string) => Required<IconifyIcon> | null;
345
+ getIcon: (name: string) => Required<IconifyIcon> | null | undefined;
307
346
  /**
308
347
  * List all available icons
309
348
  */
310
349
  listIcons: (provider?: string, prefix?: string) => string[];
311
350
  /**
312
351
  * Add icon to storage
352
+ *
353
+ * Data is null if icon is missing
313
354
  */
314
- addIcon: (name: string, data: IconifyIcon) => boolean;
355
+ addIcon: (name: string, data: IconifyIcon | null) => boolean;
315
356
  /**
316
357
  * Add icon set to storage
317
358
  */
@@ -336,6 +377,8 @@ export declare interface IconProps extends IconifyElementProps, IconifyIconProps
336
377
  * Note this might hydration mismatches if the icon data is not handled correctly, use with caution.
337
378
  */
338
379
  ssr?: boolean;
380
+ onLoad?: IconifyIconOnLoad;
381
+ customise?: IconifyIconCustomiseCallback;
339
382
  }
340
383
 
341
384
  /**
@@ -414,6 +457,16 @@ declare type RedundancyResource = string;
414
457
  */
415
458
  export declare function replaceIDs(body: string, prefix?: string | ((id: string) => string)): string;
416
459
 
460
+ /**
461
+ * Set custom loader for one icon
462
+ */
463
+ export declare function setCustomIconLoader(loader: IconifyCustomIconLoader, prefix: string, provider?: string): void;
464
+
465
+ /**
466
+ * Set custom loader for multiple icons
467
+ */
468
+ export declare function setCustomIconsLoader(loader: IconifyCustomIconsLoader, prefix: string, provider?: string): void;
469
+
417
470
  /**
418
471
  * SVG viewBox: x, y, width, height
419
472
  */
@@ -1,4 +1,5 @@
1
1
  import type { ComponentOptionsMixin } from 'vue';
2
+ import { ComponentProvideOptions } from 'vue';
2
3
  import type { DefineComponent } from 'vue';
3
4
  import type { IconifyIcon } from '@iconify/types';
4
5
  import type { IconifyJSON } from '@iconify/types';
@@ -24,7 +25,7 @@ export declare function addIcon(name: string, data: IconifyIcon): void;
24
25
  /**
25
26
  * Component
26
27
  */
27
- export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps>, {}, {}>;
28
+ export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
28
29
 
29
30
  /**
30
31
  * Properties for element that are mentioned in render.ts
@@ -32,7 +33,6 @@ export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentO
32
33
  declare interface IconifyElementProps {
33
34
  id?: string;
34
35
  style?: unknown;
35
- onLoad?: IconifyIconOnLoad;
36
36
  }
37
37
 
38
38
  export { IconifyIcon }
@@ -51,6 +51,11 @@ export declare type IconifyIconCustomisations = IconifyIconCustomisations_2 & {
51
51
  declare interface IconifyIconCustomisations_2 extends IconifyTransformations, IconifyIconSizeCustomisations {
52
52
  }
53
53
 
54
+ /**
55
+ * Customise callback
56
+ */
57
+ declare type IconifyIconCustomiseCallback = (content: string, name: string, prefix: string, provider: string) => string;
58
+
54
59
  /**
55
60
  * Callback for when icon has been loaded (only triggered for icons loaded from API)
56
61
  */
@@ -102,6 +107,8 @@ export declare interface IconProps extends IconifyElementProps, IconifyIconProps
102
107
  * Note this might hydration mismatches if the icon data is not handled correctly, use with caution.
103
108
  */
104
109
  ssr?: boolean;
110
+ onLoad?: IconifyIconOnLoad;
111
+ customise?: IconifyIconCustomiseCallback;
105
112
  }
106
113
 
107
114
  export { }
@@ -2,7 +2,7 @@
2
2
  "name": "@iconify/vue",
3
3
  "description": "Iconify icon component for Vue 3.",
4
4
  "author": "Vjacheslav Trushkin",
5
- "version": "4.1.2",
5
+ "version": "4.3.0",
6
6
  "license": "MIT",
7
7
  "bugs": "https://github.com/iconify/iconify/issues",
8
8
  "homepage": "https://iconify.design/",
@@ -37,19 +37,19 @@
37
37
  "@iconify/types": "^2.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@babel/preset-env": "^7.24.4",
41
- "@microsoft/api-extractor": "^7.43.1",
42
- "@rollup/plugin-node-resolve": "^15.2.3",
43
- "@types/jest": "^29.5.12",
44
- "@vitejs/plugin-vue": "^4.6.2",
45
- "@vue/test-utils": "^2.4.5",
46
- "jsdom": "^21.1.2",
47
- "rollup": "^3.29.4",
48
- "typescript": "^5.4.5",
49
- "vitest": "^0.29.8",
50
- "vue": "^3.4.21",
51
- "@iconify/core": "^2.0.2",
52
- "@iconify/utils": "^2.1.23"
40
+ "@babel/preset-env": "^7.26.0",
41
+ "@microsoft/api-extractor": "^7.48.1",
42
+ "@rollup/plugin-node-resolve": "^15.3.1",
43
+ "@types/jest": "^29.5.14",
44
+ "@vitejs/plugin-vue": "^5.2.1",
45
+ "@vue/test-utils": "^2.4.6",
46
+ "jsdom": "^25.0.1",
47
+ "rollup": "^4.29.1",
48
+ "typescript": "^5.7.2",
49
+ "vitest": "^2.1.8",
50
+ "vue": "^3.5.13",
51
+ "@iconify/core": "^3.1.0",
52
+ "@iconify/utils": "^2.2.1"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "vue": ">=3"