From 3463f875332e09aaf1424d60d3ae8d237892f9c8 Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Sun, 21 Jan 2024 10:36:23 +0200 Subject: [PATCH] chore: fix exports in iconify-icon --- iconify-icon/icon/README.md | 4 ++-- iconify-icon/icon/package.json | 2 +- iconify-icon/icon/src/functions.ts | 4 ++-- iconify-icon/icon/src/index.ts | 4 ++++ 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/iconify-icon/icon/README.md b/iconify-icon/icon/README.md index 7b7d250..0b41266 100644 --- a/iconify-icon/icon/README.md +++ b/iconify-icon/icon/README.md @@ -20,13 +20,13 @@ Iconify Icon web component renders icons. Add this line to your page to load IconifyIcon (you can add it to `` section of the page or before ``): ```html - + ``` or ```html - + ``` 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: diff --git a/iconify-icon/icon/package.json b/iconify-icon/icon/package.json index c6f63a4..4b6f450 100644 --- a/iconify-icon/icon/package.json +++ b/iconify-icon/icon/package.json @@ -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 (https://iconify.design)", - "version": "1.1.0-beta.1", + "version": "1.1.0-beta.4", "publishConfig": { "tag": "next" }, diff --git a/iconify-icon/icon/src/functions.ts b/iconify-icon/icon/src/functions.ts index bd4a936..9c60898 100644 --- a/iconify-icon/icon/src/functions.ts +++ b/iconify-icon/icon/src/functions.ts @@ -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; + svgToURL: (svg: string) => string; } /** diff --git a/iconify-icon/icon/src/index.ts b/iconify-icon/icon/src/index.ts index 579c095..3f083e7 100644 --- a/iconify-icon/icon/src/index.ts +++ b/iconify-icon/icon/src/index.ts @@ -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,