@jjlmoya/utils-converters 1.10.0 → 1.13.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jjlmoya/utils-converters",
3
- "version": "1.10.0",
3
+ "version": "1.13.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
package/src/index.ts CHANGED
@@ -21,7 +21,7 @@ export * from './tool/jpgAIco';
21
21
  export * from './tool/webpAIco';
22
22
 
23
23
  export { convertersCategory } from './category';
24
- export { default as ConvertersCategorySEO } from './category/seo.astro';
24
+ export const ConvertersCategorySEO = () => import('./category/seo.astro').then((m) => m.default);
25
25
 
26
26
  export type {
27
27
  KnownLocale,
@@ -36,4 +36,4 @@ export type {
36
36
  ConvertersCategoryEntry,
37
37
  } from './types';
38
38
 
39
- export { ALL_TOOLS } from './tools';
39
+ export { ALL_ENTRIES, ALL_TOOLS } from './tools';
@@ -14,7 +14,8 @@ import type { UtilitySEOContent } from "@jjlmoya/utils-shared";
14
14
  export async function getStaticPaths() {
15
15
  const paths = [];
16
16
 
17
- for (const { entry, Component } of ALL_TOOLS) {
17
+ for (const { entry, Component: lazyComp } of ALL_TOOLS) {
18
+ const { default: Component } = await lazyComp();
18
19
  const localeEntries = Object.entries(entry.i18n) as [
19
20
  KnownLocale,
20
21
  () => Promise<ToolLocaleContent>,
@@ -52,8 +53,6 @@ export async function getStaticPaths() {
52
53
  return paths;
53
54
  }
54
55
 
55
- type ToolComponent = (props: { ui: Record<string, string> }) => unknown;
56
-
57
56
  interface NavItem {
58
57
  id: string;
59
58
  title: string;
@@ -62,7 +61,7 @@ interface NavItem {
62
61
  }
63
62
 
64
63
  interface Props {
65
- Component: ToolComponent;
64
+ Component: unknown;
66
65
  locale: KnownLocale;
67
66
  content: ToolLocaleContent;
68
67
  localeUrls: Partial<Record<KnownLocale, string>>;
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import AvifAJpgCalculator from './component.astro';
4
- import AvifAJpgSEO from './seo.astro';
5
- import AvifAJpgBibliography from './bibliography.astro';
6
3
 
7
4
  export type AvifAJpgLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const avifAJpg: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { AvifAJpgCalculator, AvifAJpgSEO, AvifAJpgBibliography };
35
31
 
36
32
  export const AVIF_A_JPG_TOOL: ToolDefinition = {
37
33
  entry: avifAJpg,
38
- Component: AvifAJpgCalculator,
39
- SEOComponent: AvifAJpgSEO,
40
- BibliographyComponent: AvifAJpgBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import AvifAPngCalculator from './component.astro';
4
- import AvifAPngSEO from './seo.astro';
5
- import AvifAPngBibliography from './bibliography.astro';
6
3
 
7
4
  export type AvifAPngLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const avifAPng: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { AvifAPngCalculator, AvifAPngSEO, AvifAPngBibliography };
35
31
 
36
32
  export const AVIF_A_PNG_TOOL: ToolDefinition = {
37
33
  entry: avifAPng,
38
- Component: AvifAPngCalculator,
39
- SEOComponent: AvifAPngSEO,
40
- BibliographyComponent: AvifAPngBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import AvifAWebpCalculator from './component.astro';
4
- import AvifAWebpSEO from './seo.astro';
5
- import AvifAWebpBibliography from './bibliography.astro';
6
3
 
7
4
  export type AvifAWebpLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const avifAWebp: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { AvifAWebpCalculator, AvifAWebpSEO, AvifAWebpBibliography };
35
31
 
36
32
  export const AVIF_A_WEBP_TOOL: ToolDefinition = {
37
33
  entry: avifAWebp,
38
- Component: AvifAWebpCalculator,
39
- SEOComponent: AvifAWebpSEO,
40
- BibliographyComponent: AvifAWebpBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import BmpAJpgCalculator from './component.astro';
4
- import BmpAJpgSEO from './seo.astro';
5
- import BmpAJpgBibliography from './bibliography.astro';
6
3
 
7
4
  export type BmpAJpgLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const bmpAJpg: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { BmpAJpgCalculator, BmpAJpgSEO, BmpAJpgBibliography };
35
31
 
36
32
  export const BMP_A_JPG_TOOL: ToolDefinition = {
37
33
  entry: bmpAJpg,
38
- Component: BmpAJpgCalculator,
39
- SEOComponent: BmpAJpgSEO,
40
- BibliographyComponent: BmpAJpgBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import BmpAPngCalculator from './component.astro';
4
- import BmpAPngSEO from './seo.astro';
5
- import BmpAPngBibliography from './bibliography.astro';
6
3
 
7
4
  export type BmpAPngLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const bmpAPng: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { BmpAPngCalculator, BmpAPngSEO, BmpAPngBibliography };
35
31
 
36
32
  export const BMP_A_PNG_TOOL: ToolDefinition = {
37
33
  entry: bmpAPng,
38
- Component: BmpAPngCalculator,
39
- SEOComponent: BmpAPngSEO,
40
- BibliographyComponent: BmpAPngBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import BmpAWebpCalculator from './component.astro';
4
- import BmpAWebpSEO from './seo.astro';
5
- import BmpAWebpBibliography from './bibliography.astro';
6
3
 
7
4
  export type BmpAWebpLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const bmpAWebp: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { BmpAWebpCalculator, BmpAWebpSEO, BmpAWebpBibliography };
35
31
 
36
32
  export const BMP_A_WEBP_TOOL: ToolDefinition = {
37
33
  entry: bmpAWebp,
38
- Component: BmpAWebpCalculator,
39
- SEOComponent: BmpAWebpSEO,
40
- BibliographyComponent: BmpAWebpBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import GifAJpgCalculator from './component.astro';
4
- import GifAJpgSEO from './seo.astro';
5
- import GifAJpgBibliography from './bibliography.astro';
6
3
 
7
4
  export type GifAJpgLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const gifAJpg: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { GifAJpgCalculator, GifAJpgSEO, GifAJpgBibliography };
35
31
 
36
32
  export const GIF_A_JPG_TOOL: ToolDefinition = {
37
33
  entry: gifAJpg,
38
- Component: GifAJpgCalculator,
39
- SEOComponent: GifAJpgSEO,
40
- BibliographyComponent: GifAJpgBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import GifAPngCalculator from './component.astro';
4
- import GifAPngSEO from './seo.astro';
5
- import GifAPngBibliography from './bibliography.astro';
6
3
 
7
4
  export type GifAPngLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const gifAPng: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { GifAPngCalculator, GifAPngSEO, GifAPngBibliography };
35
31
 
36
32
  export const GIF_A_PNG_TOOL: ToolDefinition = {
37
33
  entry: gifAPng,
38
- Component: GifAPngCalculator,
39
- SEOComponent: GifAPngSEO,
40
- BibliographyComponent: GifAPngBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import GifAWebpCalculator from './component.astro';
4
- import GifAWebpSEO from './seo.astro';
5
- import GifAWebpBibliography from './bibliography.astro';
6
3
 
7
4
  export type GifAWebpLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const gifAWebp: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { GifAWebpCalculator, GifAWebpSEO, GifAWebpBibliography };
35
31
 
36
32
  export const GIF_A_WEBP_TOOL: ToolDefinition = {
37
33
  entry: gifAWebp,
38
- Component: GifAWebpCalculator,
39
- SEOComponent: GifAWebpSEO,
40
- BibliographyComponent: GifAWebpBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,7 +1,4 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
- import ImagenBase64Calculator from './component.astro';
3
- import ImagenBase64SEO from './seo.astro';
4
- import ImagenBase64Bibliography from './bibliography.astro';
5
2
 
6
3
  export interface ImageToBase64UI {
7
4
  [key: string]: string;
@@ -45,11 +42,10 @@ export const imagenBase64: ConvertersToolEntry<ImageToBase64UI> = {
45
42
  },
46
43
  };
47
44
 
48
- export { ImagenBase64Calculator, ImagenBase64SEO, ImagenBase64Bibliography };
49
45
 
50
46
  export const IMAGEN_BASE64_TOOL: ToolDefinition = {
51
47
  entry: imagenBase64,
52
- Component: ImagenBase64Calculator,
53
- SEOComponent: ImagenBase64SEO,
54
- BibliographyComponent: ImagenBase64Bibliography,
48
+ Component: () => import('./component.astro'),
49
+ SEOComponent: () => import('./seo.astro'),
50
+ BibliographyComponent: () => import('./bibliography.astro'),
55
51
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import JpgAIcoCalculator from './component.astro';
4
- import JpgAIcoSEO from './seo.astro';
5
- import JpgAIcoBibliography from './bibliography.astro';
6
3
 
7
4
  export type JpgAIcoLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const jpgAIco: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { JpgAIcoCalculator, JpgAIcoSEO, JpgAIcoBibliography };
35
31
 
36
32
  export const JPG_A_ICO_TOOL: ToolDefinition = {
37
33
  entry: jpgAIco,
38
- Component: JpgAIcoCalculator,
39
- SEOComponent: JpgAIcoSEO,
40
- BibliographyComponent: JpgAIcoBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import JpgAPngCalculator from './component.astro';
4
- import JpgAPngSEO from './seo.astro';
5
- import JpgAPngBibliography from './bibliography.astro';
6
3
 
7
4
  export type JpgAPngLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const jpgAPng: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { JpgAPngCalculator, JpgAPngSEO, JpgAPngBibliography };
35
31
 
36
32
  export const JPG_A_PNG_TOOL: ToolDefinition = {
37
33
  entry: jpgAPng,
38
- Component: JpgAPngCalculator,
39
- SEOComponent: JpgAPngSEO,
40
- BibliographyComponent: JpgAPngBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import JpgAWebpCalculator from './component.astro';
4
- import JpgAWebpSEO from './seo.astro';
5
- import JpgAWebpBibliography from './bibliography.astro';
6
3
 
7
4
  export type JpgAWebpLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const jpgAWebp: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { JpgAWebpCalculator, JpgAWebpSEO, JpgAWebpBibliography };
35
31
 
36
32
  export const JPG_A_WEBP_TOOL: ToolDefinition = {
37
33
  entry: jpgAWebp,
38
- Component: JpgAWebpCalculator,
39
- SEOComponent: JpgAWebpSEO,
40
- BibliographyComponent: JpgAWebpBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import PngAIcoCalculator from './component.astro';
4
- import PngAIcoSEO from './seo.astro';
5
- import PngAIcoBibliography from './bibliography.astro';
6
3
 
7
4
  export type PngAIcoLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const pngAIco: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { PngAIcoCalculator, PngAIcoSEO, PngAIcoBibliography };
35
31
 
36
32
  export const PNG_A_ICO_TOOL: ToolDefinition = {
37
33
  entry: pngAIco,
38
- Component: PngAIcoCalculator,
39
- SEOComponent: PngAIcoSEO,
40
- BibliographyComponent: PngAIcoBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import PngAJpgCalculator from './component.astro';
4
- import PngAJpgSEO from './seo.astro';
5
- import PngAJpgBibliography from './bibliography.astro';
6
3
 
7
4
  export type PngAJpgLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const pngAJpg: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { PngAJpgCalculator, PngAJpgSEO, PngAJpgBibliography };
35
31
 
36
32
  export const PNG_A_JPG_TOOL: ToolDefinition = {
37
33
  entry: pngAJpg,
38
- Component: PngAJpgCalculator,
39
- SEOComponent: PngAJpgSEO,
40
- BibliographyComponent: PngAJpgBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import PngAWebpCalculator from './component.astro';
4
- import PngAWebpSEO from './seo.astro';
5
- import PngAWebpBibliography from './bibliography.astro';
6
3
 
7
4
  export type PngAWebpLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const pngAWebp: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { PngAWebpCalculator, PngAWebpSEO, PngAWebpBibliography };
35
31
 
36
32
  export const PNG_A_WEBP_TOOL: ToolDefinition = {
37
33
  entry: pngAWebp,
38
- Component: PngAWebpCalculator,
39
- SEOComponent: PngAWebpSEO,
40
- BibliographyComponent: PngAWebpBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import SvgAJpgCalculator from './component.astro';
4
- import SvgAJpgSEO from './seo.astro';
5
- import SvgAJpgBibliography from './bibliography.astro';
6
3
 
7
4
  export type SvgAJpgLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const svgAJpg: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { SvgAJpgCalculator, SvgAJpgSEO, SvgAJpgBibliography };
35
31
 
36
32
  export const SVG_A_JPG_TOOL: ToolDefinition = {
37
33
  entry: svgAJpg,
38
- Component: SvgAJpgCalculator,
39
- SEOComponent: SvgAJpgSEO,
40
- BibliographyComponent: SvgAJpgBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import SvgAPngCalculator from './component.astro';
4
- import SvgAPngSEO from './seo.astro';
5
- import SvgAPngBibliography from './bibliography.astro';
6
3
 
7
4
  export type SvgAPngLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const svgAPng: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { SvgAPngCalculator, SvgAPngSEO, SvgAPngBibliography };
35
31
 
36
32
  export const SVG_A_PNG_TOOL: ToolDefinition = {
37
33
  entry: svgAPng,
38
- Component: SvgAPngCalculator,
39
- SEOComponent: SvgAPngSEO,
40
- BibliographyComponent: SvgAPngBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import WebpAIcoCalculator from './component.astro';
4
- import WebpAIcoSEO from './seo.astro';
5
- import WebpAIcoBibliography from './bibliography.astro';
6
3
 
7
4
  export type WebpAIcoLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const webpAIco: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { WebpAIcoCalculator, WebpAIcoSEO, WebpAIcoBibliography };
35
31
 
36
32
  export const WEBP_A_ICO_TOOL: ToolDefinition = {
37
33
  entry: webpAIco,
38
- Component: WebpAIcoCalculator,
39
- SEOComponent: WebpAIcoSEO,
40
- BibliographyComponent: WebpAIcoBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import WebpAJpgCalculator from './component.astro';
4
- import WebpAJpgSEO from './seo.astro';
5
- import WebpAJpgBibliography from './bibliography.astro';
6
3
 
7
4
  export type WebpAJpgLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const webpAJpg: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { WebpAJpgCalculator, WebpAJpgSEO, WebpAJpgBibliography };
35
31
 
36
32
  export const WEBP_A_JPG_TOOL: ToolDefinition = {
37
33
  entry: webpAJpg,
38
- Component: WebpAJpgCalculator,
39
- SEOComponent: WebpAJpgSEO,
40
- BibliographyComponent: WebpAJpgBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
@@ -1,8 +1,5 @@
1
1
  import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
2
  import type { ImageConverterUI } from '../../shared/ImageConverter.astro';
3
- import WebpAPngCalculator from './component.astro';
4
- import WebpAPngSEO from './seo.astro';
5
- import WebpAPngBibliography from './bibliography.astro';
6
3
 
7
4
  export type WebpAPngLocaleContent = ToolLocaleContent<ImageConverterUI>;
8
5
 
@@ -31,11 +28,10 @@ export const webpAPng: ConvertersToolEntry<ImageConverterUI> = {
31
28
  },
32
29
  };
33
30
 
34
- export { WebpAPngCalculator, WebpAPngSEO, WebpAPngBibliography };
35
31
 
36
32
  export const WEBP_A_PNG_TOOL: ToolDefinition = {
37
33
  entry: webpAPng,
38
- Component: WebpAPngCalculator,
39
- SEOComponent: WebpAPngSEO,
40
- BibliographyComponent: WebpAPngBibliography,
34
+ Component: () => import('./component.astro'),
35
+ SEOComponent: () => import('./seo.astro'),
36
+ BibliographyComponent: () => import('./bibliography.astro'),
41
37
  };
package/src/tools.ts CHANGED
@@ -68,3 +68,5 @@ export {
68
68
  JPG_A_ICO_TOOL,
69
69
  WEBP_A_ICO_TOOL,
70
70
  };
71
+
72
+ export const ALL_ENTRIES = ALL_TOOLS.map(t => t.entry);