@jjlmoya/utils-converters 1.14.0 → 1.15.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.14.0",
3
+ "version": "1.15.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
package/src/entries.ts CHANGED
@@ -38,6 +38,8 @@ export { webpAJpg } from './tool/webpAJpg/entry';
38
38
  export type { WebpAJpgLocaleContent } from './tool/webpAJpg/entry';
39
39
  export { webpAPng } from './tool/webpAPng/entry';
40
40
  export type { WebpAPngLocaleContent } from './tool/webpAPng/entry';
41
+ export { imagenBase64 } from './tool/imagenBase64/entry';
42
+ export type { ImagenBase64LocaleContent } from './tool/imagenBase64/entry';
41
43
  export { convertersCategory } from './category';
42
44
  import { avifAJpg } from './tool/avifAJpg/entry';
43
45
  import { avifAPng } from './tool/avifAPng/entry';
@@ -59,4 +61,5 @@ import { svgAPng } from './tool/svgAPng/entry';
59
61
  import { webpAIco } from './tool/webpAIco/entry';
60
62
  import { webpAJpg } from './tool/webpAJpg/entry';
61
63
  import { webpAPng } from './tool/webpAPng/entry';
62
- export const ALL_ENTRIES = [avifAJpg, avifAPng, avifAWebp, bmpAJpg, bmpAPng, bmpAWebp, gifAJpg, gifAPng, gifAWebp, jpgAIco, jpgAPng, jpgAWebp, pngAIco, pngAJpg, pngAWebp, svgAJpg, svgAPng, webpAIco, webpAJpg, webpAPng];
64
+ import { imagenBase64 } from './tool/imagenBase64/entry';
65
+ export const ALL_ENTRIES = [avifAJpg, avifAPng, avifAWebp, bmpAJpg, bmpAPng, bmpAWebp, gifAJpg, gifAPng, gifAWebp, imagenBase64, jpgAIco, jpgAPng, jpgAWebp, pngAIco, pngAJpg, pngAWebp, svgAJpg, svgAPng, webpAIco, webpAJpg, webpAPng];
@@ -0,0 +1,43 @@
1
+ import type { ConvertersToolEntry, ToolLocaleContent } from '../../types';
2
+
3
+ export interface ImageToBase64UI {
4
+ [key: string]: string;
5
+ dragTitle: string;
6
+ dragSubtext: string;
7
+ formatBadge: string;
8
+ dataUriLabel: string;
9
+ base64Label: string;
10
+ copyBtn: string;
11
+ dataUriPlaceholder: string;
12
+ base64Placeholder: string;
13
+ toastMessage: string;
14
+ invalidImageAlert: string;
15
+ bibliographyTitle: string;
16
+ }
17
+
18
+ export type ImagenBase64LocaleContent = ToolLocaleContent<ImageToBase64UI>;
19
+
20
+ export const imagenBase64: ConvertersToolEntry<ImageToBase64UI> = {
21
+ id: 'imagen-base64',
22
+ icons: {
23
+ bg: 'mdi:file-image',
24
+ fg: 'mdi:code-tags',
25
+ },
26
+ i18n: {
27
+ es: () => import('./i18n/es').then((m) => m.content),
28
+ en: () => import('./i18n/en').then((m) => m.content),
29
+ fr: () => import('./i18n/fr').then((m) => m.content),
30
+ de: () => import('./i18n/de').then((m) => m.content),
31
+ id: () => import('./i18n/id').then((m) => m.content),
32
+ it: () => import('./i18n/it').then((m) => m.content),
33
+ ja: () => import('./i18n/ja').then((m) => m.content),
34
+ ko: () => import('./i18n/ko').then((m) => m.content),
35
+ nl: () => import('./i18n/nl').then((m) => m.content),
36
+ pl: () => import('./i18n/pl').then((m) => m.content),
37
+ pt: () => import('./i18n/pt').then((m) => m.content),
38
+ ru: () => import('./i18n/ru').then((m) => m.content),
39
+ sv: () => import('./i18n/sv').then((m) => m.content),
40
+ tr: () => import('./i18n/tr').then((m) => m.content),
41
+ zh: () => import('./i18n/zh').then((m) => m.content),
42
+ },
43
+ };
@@ -1,48 +1,6 @@
1
- import type { ConvertersToolEntry, ToolLocaleContent, ToolDefinition } from '../../types';
2
-
3
- export interface ImageToBase64UI {
4
- [key: string]: string;
5
- dragTitle: string;
6
- dragSubtext: string;
7
- formatBadge: string;
8
- dataUriLabel: string;
9
- base64Label: string;
10
- copyBtn: string;
11
- dataUriPlaceholder: string;
12
- base64Placeholder: string;
13
- toastMessage: string;
14
- invalidImageAlert: string;
15
- bibliographyTitle: string;
16
- }
17
-
18
- export type ImagenBase64LocaleContent = ToolLocaleContent<ImageToBase64UI>;
19
-
20
- export const imagenBase64: ConvertersToolEntry<ImageToBase64UI> = {
21
- id: 'imagen-base64',
22
- icons: {
23
- bg: 'mdi:file-image',
24
- fg: 'mdi:code-tags',
25
- },
26
- i18n: {
27
- es: () => import('./i18n/es').then((m) => m.content),
28
- en: () => import('./i18n/en').then((m) => m.content),
29
- fr: () => import('./i18n/fr').then((m) => m.content),
30
- de: () => import('./i18n/de').then((m) => m.content),
31
- id: () => import('./i18n/id').then((m) => m.content),
32
- it: () => import('./i18n/it').then((m) => m.content),
33
- ja: () => import('./i18n/ja').then((m) => m.content),
34
- ko: () => import('./i18n/ko').then((m) => m.content),
35
- nl: () => import('./i18n/nl').then((m) => m.content),
36
- pl: () => import('./i18n/pl').then((m) => m.content),
37
- pt: () => import('./i18n/pt').then((m) => m.content),
38
- ru: () => import('./i18n/ru').then((m) => m.content),
39
- sv: () => import('./i18n/sv').then((m) => m.content),
40
- tr: () => import('./i18n/tr').then((m) => m.content),
41
- zh: () => import('./i18n/zh').then((m) => m.content),
42
- },
43
- };
44
-
45
-
1
+ import type { ToolDefinition } from '../../types';
2
+ import { imagenBase64 } from './entry';
3
+ export * from './entry';
46
4
  export const IMAGEN_BASE64_TOOL: ToolDefinition = {
47
5
  entry: imagenBase64,
48
6
  Component: () => import('./component.astro'),