2
0
mirror of https://github.com/iconify/iconify.git synced 2025-01-06 07:20:40 +00:00

chore: fix exports in iconify-icon

This commit is contained in:
Vjacheslav Trushkin 2024-01-21 10:36:23 +02:00
parent 5609290538
commit 3463f87533
4 changed files with 9 additions and 5 deletions

View File

@ -20,13 +20,13 @@ Iconify Icon web component renders icons.
Add this line to your page to load IconifyIcon (you can add it to `<head>` section of the page or before `</body>`):
```html
<script src="https://code.iconify.design/iconify-icon/1.1.0-beta.1/iconify-icon.min.js"></script>
<script src="https://code.iconify.design/iconify-icon/1.1.0-beta.4/iconify-icon.min.js"></script>
```
or
```html
<script src="https://cdn.jsdelivr.net/npm/iconify-icon@1.1.0-beta.1/dist/iconify-icon.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/iconify-icon@1.1.0-beta.4/dist/iconify-icon.min.js"></script>
```
or, if you are building a project with a bundler, you can include the script by installing `iconify-icon` as a dependency and importing it in your project:

View File

@ -2,7 +2,7 @@
"name": "iconify-icon",
"description": "Icon web component that loads icon data on demand. Over 150,000 icons to choose from",
"author": "Vjacheslav Trushkin <cyberalien@gmail.com> (https://iconify.design)",
"version": "1.1.0-beta.1",
"version": "1.1.0-beta.4",
"publishConfig": {
"tag": "next"
},

View File

@ -65,8 +65,8 @@ export interface IconifyExportedFunctions
appendCustomStyle: (value: string) => void;
// Render HTML
iconToHTML: typeof iconToHTML;
svgToURL: typeof svgToURL;
iconToHTML: (body: string, attributes: Record<string, string>) => string;
svgToURL: (svg: string) => string;
}
/**

View File

@ -118,6 +118,8 @@ const {
addCollection,
calculateSize,
buildIcon,
iconToHTML,
svgToURL,
loadIcons,
loadIcon,
addAPIProvider,
@ -135,6 +137,8 @@ export {
addCollection,
calculateSize,
buildIcon,
iconToHTML,
svgToURL,
loadIcons,
loadIcon,
addAPIProvider,