@iconify/vue
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -426,2 +426,5 @@ import type { AllowedComponentProps } from 'vue'; | ||
palette?: boolean; | ||
// If true, icon set should not appear in icon sets list. | ||
hidden?: boolean; | ||
} | ||
@@ -519,2 +522,10 @@ | ||
addCollection: (data: IconifyJSON, provider?: string) => boolean; | ||
/** | ||
* Share storage (used to share icon data between various components or multiple instances of component) | ||
* | ||
* It works by moving storage to global variable, new instances of component attempt to detect global | ||
* variable during load. Therefore, function should be called as soon as possible. | ||
* Works only in browser, not usable in SSR. | ||
*/ | ||
shareStorage: () => void; | ||
} | ||
@@ -693,2 +704,7 @@ | ||
/** | ||
* Share storage between components | ||
*/ | ||
export declare function shareStorage(): void; | ||
/** | ||
* Callback for "timeout" configuration property. | ||
@@ -695,0 +711,0 @@ * Returns number of milliseconds to wait before failing query, while there are pending resources. |
@@ -232,2 +232,5 @@ import type { AllowedComponentProps } from 'vue'; | ||
palette?: boolean; | ||
// If true, icon set should not appear in icon sets list. | ||
hidden?: boolean; | ||
} | ||
@@ -234,0 +237,0 @@ |
@@ -641,3 +641,3 @@ (function (global, factory) { | ||
var regex = /\sid="(\S+)"/g; | ||
var randomPrefix = "IconifyId-" + Date.now().toString(16) + "-" + (Math.random() * 16777216 | 0).toString(16) + "-"; | ||
var randomPrefix = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16); | ||
var counter = 0; | ||
@@ -794,3 +794,3 @@ function replaceIDs(body, prefix = randomPrefix) { | ||
// Add innerHTML and style to props | ||
componentProps['innerHTML'] = replaceIDs(item.body, id ? () => id + '-' + localCounter++ : 'iconify-vue-'); | ||
componentProps['innerHTML'] = replaceIDs(item.body, id ? () => id + 'ID' + localCounter++ : 'iconifyVue'); | ||
if (Object.keys(style).length > 0) { | ||
@@ -797,0 +797,0 @@ componentProps['style'] = style; |
@@ -5,3 +5,3 @@ { | ||
"author": "Vjacheslav Trushkin", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"license": "MIT", | ||
@@ -41,13 +41,13 @@ "bugs": "https://github.com/iconify/iconify/issues", | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.15.6", | ||
"@iconify/core": "^1.2.0", | ||
"@microsoft/api-extractor": "^7.15.2", | ||
"@rollup/plugin-node-resolve": "^13.0.0", | ||
"@babel/preset-env": "^7.16.8", | ||
"@iconify/core": "^1.2.3", | ||
"@microsoft/api-extractor": "^7.19.4", | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"@types/jest": "^27.0.2", | ||
"@vue/test-utils": "^2.0.0-rc.6", | ||
"@vue/vue3-jest": "^27.0.0-alpha.1", | ||
"babel-jest": "^27.2.2", | ||
"jest": "^27.2.2", | ||
"rollup": "^2.57.0", | ||
"typescript": "^4.4.3", | ||
"@vue/test-utils": "^2.0.0-rc.18", | ||
"@vue/vue3-jest": "^27.0.0-alpha.4", | ||
"babel-jest": "^27.4.6", | ||
"jest": "^27.4.7", | ||
"rollup": "^2.63.0", | ||
"typescript": "^4.5.4", | ||
"vue": "3" | ||
@@ -54,0 +54,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
224203
7102