@wikicasa-dev/svg-icons 1.3.1-alpha.2 → 1.3.1-alpha.3

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/lazy.d.ts CHANGED
@@ -185,5 +185,5 @@ declare const icons: {
185
185
  readonly WikiNerdAgency: () => Promise<typeof import("@svgImages/WikiNerdAgency")>;
186
186
  };
187
187
  type AvailableIcons = keyof typeof icons;
188
- export declare const createLazyIcon: (name: AvailableIcons) => any;
188
+ export declare const createLazyIcon: (name: AvailableIcons, hydrateStrategy?: "idle" | "visible") => any;
189
189
  export {};
package/dist/lazy.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineAsyncComponent as r, hydrateOnIdle as t } from "vue";
2
- const n = {
1
+ import { defineAsyncComponent as r, hydrateOnIdle as t, hydrateOnVisible as n } from "vue";
2
+ const c = {
3
3
  /* Icons */
4
4
  AboutUsIcon: () => import("./svgIcons/AboutUsIcon.js"),
5
5
  ArrowIcon: () => import("./svgIcons/ArrowIcon.js"),
@@ -188,13 +188,13 @@ const n = {
188
188
  WikiNoSavedSearchesImg: () => import("./svgImages/WikiNoSavedSearches.js"),
189
189
  WikicasaProIcon: () => import("./svgImages/WikicasaProIcon.js"),
190
190
  WikiNerdAgency: () => import("./svgImages/WikiNerdAgency.js")
191
- }, c = (o) => (
191
+ }, m = (o) => (
192
192
  //@ts-expect-error extracting the default or named module
193
- n[o]().then((i) => i[o] || i.default)
194
- ), p = (o) => r({
195
- loader: () => c(o),
196
- hydrate: t()
193
+ c[o]().then((i) => i[o] || i.default)
194
+ ), I = (o, i = "idle") => r({
195
+ loader: () => m(o),
196
+ hydrate: i === "idle" ? t() : n()
197
197
  });
198
198
  export {
199
- p as createLazyIcon
199
+ I as createLazyIcon
200
200
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/svg-icons",
3
- "version": "1.3.1-alpha.2",
3
+ "version": "1.3.1-alpha.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/lib/index.d.ts",