@hkdigital/lib-core 0.5.96 → 0.5.97
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/README.md +8 -56
- package/dist/config/generators/imagetools.d.ts +4 -10
- package/dist/config/generators/imagetools.js +43 -25
- package/dist/config/imagetools.d.ts +2 -2
- package/dist/meta/components/Favicons.svelte +1 -1
- package/dist/meta/components/Favicons.svelte.d.ts +9 -5
- package/dist/meta/components/PWA.svelte +2 -2
- package/dist/meta/components/PWA.svelte.d.ts +9 -5
- package/dist/meta/components/SEO.svelte +113 -77
- package/dist/meta/components/SEO.svelte.d.ts +28 -28
- package/dist/{config/meta.d.ts → meta/config.d.ts} +8 -8
- package/dist/{config/meta.js → meta/config.js} +6 -6
- package/dist/meta/templates/README.md +3 -3
- package/dist/meta/templates/lib/{config/meta.d.ts → meta/config.d.ts} +22 -29
- package/dist/meta/templates/lib/{config/meta.js → meta/config.js} +48 -39
- package/dist/meta/templates/lib/meta/favicon.png +0 -0
- package/dist/meta/templates/lib/meta/preview-landscape.png +0 -0
- package/dist/meta/templates/lib/meta/preview-square.png +0 -0
- package/dist/meta/templates/routes/(meta)/manifest.json/+server.js +1 -1
- package/dist/meta/templates/routes/(meta)/robots.txt/+server.js +1 -1
- package/dist/meta/templates/routes/(meta)/sitemap.xml/+server.js +1 -1
- package/dist/meta/typedef.d.ts +100 -1
- package/dist/meta/typedef.js +45 -5
- package/dist/meta.d.ts +1 -1
- package/dist/meta.js +1 -1
- package/package.json +1 -1
- package/dist/meta/config.typedef.d.ts +0 -98
- package/dist/meta/config.typedef.js +0 -44
- package/dist/meta/templates/lib/meta.d.ts +0 -8
- package/dist/meta/templates/lib/meta.js +0 -23
- /package/dist/meta/{templates/lib/assets/meta/favicon.png → favicon.png} +0 -0
- /package/dist/meta/{templates/lib/assets/meta/preview-landscape.png → preview-landscape.png} +0 -0
- /package/dist/meta/{templates/lib/assets/meta/preview-square.png → preview-square.png} +0 -0
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
declare const _default: {};
|
|
2
|
-
export default _default;
|
|
3
|
-
/**
|
|
4
|
-
* App identity
|
|
5
|
-
*/
|
|
6
|
-
export type MetaConfig = {
|
|
7
|
-
/**
|
|
8
|
-
* - Full app name
|
|
9
|
-
*/
|
|
10
|
-
name: string;
|
|
11
|
-
/**
|
|
12
|
-
* - Short app name (max 12 characters)
|
|
13
|
-
*/
|
|
14
|
-
shortName: string;
|
|
15
|
-
/**
|
|
16
|
-
* - App description for search engines
|
|
17
|
-
*
|
|
18
|
-
* Language and locale
|
|
19
|
-
*/
|
|
20
|
-
description: string;
|
|
21
|
-
/**
|
|
22
|
-
* Language configurations
|
|
23
|
-
*/
|
|
24
|
-
languages: Record<string, {
|
|
25
|
-
lang: string;
|
|
26
|
-
locale: string;
|
|
27
|
-
}>;
|
|
28
|
-
/**
|
|
29
|
-
* - Default language code
|
|
30
|
-
*/
|
|
31
|
-
defaultLanguage: string;
|
|
32
|
-
/**
|
|
33
|
-
* - Default locale
|
|
34
|
-
*
|
|
35
|
-
* PWA theme and colors
|
|
36
|
-
*/
|
|
37
|
-
defaultLocale: string;
|
|
38
|
-
/**
|
|
39
|
-
* - Theme color
|
|
40
|
-
*/
|
|
41
|
-
backgroundAndThemeColor: string;
|
|
42
|
-
/**
|
|
43
|
-
* - Theme color for browser UI
|
|
44
|
-
*/
|
|
45
|
-
themeColor: string;
|
|
46
|
-
/**
|
|
47
|
-
* - Background color
|
|
48
|
-
*/
|
|
49
|
-
backgroundColor: string;
|
|
50
|
-
/**
|
|
51
|
-
* - iOS status bar style
|
|
52
|
-
*/
|
|
53
|
-
statusBarStyle: string;
|
|
54
|
-
/**
|
|
55
|
-
* - Screen orientation
|
|
56
|
-
*/
|
|
57
|
-
orientation: string;
|
|
58
|
-
/**
|
|
59
|
-
* - Disable pinch-to-zoom
|
|
60
|
-
*
|
|
61
|
-
* SEO images
|
|
62
|
-
*/
|
|
63
|
-
disablePageZoom: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* - Landscape SEO image URL (1200×630)
|
|
66
|
-
*/
|
|
67
|
-
SeoImageLandscape?: string | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* - Square SEO image URL (1200×1200)
|
|
70
|
-
*
|
|
71
|
-
* Favicon images (processed by imagetools)
|
|
72
|
-
*/
|
|
73
|
-
SeoImageSquare?: string | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* Processed favicon images
|
|
76
|
-
*/
|
|
77
|
-
faviconImages: Array<{
|
|
78
|
-
src: string;
|
|
79
|
-
width: number;
|
|
80
|
-
}>;
|
|
81
|
-
/**
|
|
82
|
-
* Processed apple-touch-icon images
|
|
83
|
-
*
|
|
84
|
-
* Site configuration
|
|
85
|
-
*/
|
|
86
|
-
appleTouchIcons: Array<{
|
|
87
|
-
src: string;
|
|
88
|
-
width: number;
|
|
89
|
-
}>;
|
|
90
|
-
/**
|
|
91
|
-
* Routes for sitemap.xml
|
|
92
|
-
*/
|
|
93
|
-
siteRoutes: import("./utils/sitemap/typedef.js").SitemapRoute[];
|
|
94
|
-
/**
|
|
95
|
-
* Robots.txt configuration
|
|
96
|
-
*/
|
|
97
|
-
robotsConfig: import("./utils/robots/typedef.js").RobotsConfig;
|
|
98
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Meta configuration type definitions
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @typedef {Object} MetaConfig
|
|
7
|
-
*
|
|
8
|
-
* App identity
|
|
9
|
-
* @property {string} name - Full app name
|
|
10
|
-
* @property {string} shortName - Short app name (max 12 characters)
|
|
11
|
-
* @property {string} description - App description for search engines
|
|
12
|
-
*
|
|
13
|
-
* Language and locale
|
|
14
|
-
* @property {Record<string, {lang: string, locale: string}>} languages
|
|
15
|
-
* Language configurations
|
|
16
|
-
* @property {string} defaultLanguage - Default language code
|
|
17
|
-
* @property {string} defaultLocale - Default locale
|
|
18
|
-
*
|
|
19
|
-
* PWA theme and colors
|
|
20
|
-
* @property {string} backgroundAndThemeColor - Theme color
|
|
21
|
-
* @property {string} themeColor - Theme color for browser UI
|
|
22
|
-
* @property {string} backgroundColor - Background color
|
|
23
|
-
* @property {string} statusBarStyle - iOS status bar style
|
|
24
|
-
* @property {string} orientation - Screen orientation
|
|
25
|
-
* @property {boolean} disablePageZoom - Disable pinch-to-zoom
|
|
26
|
-
*
|
|
27
|
-
* SEO images
|
|
28
|
-
* @property {string} [SeoImageLandscape] - Landscape SEO image URL (1200×630)
|
|
29
|
-
* @property {string} [SeoImageSquare] - Square SEO image URL (1200×1200)
|
|
30
|
-
*
|
|
31
|
-
* Favicon images (processed by imagetools)
|
|
32
|
-
* @property {Array<{src: string, width: number}>} faviconImages
|
|
33
|
-
* Processed favicon images
|
|
34
|
-
* @property {Array<{src: string, width: number}>} appleTouchIcons
|
|
35
|
-
* Processed apple-touch-icon images
|
|
36
|
-
*
|
|
37
|
-
* Site configuration
|
|
38
|
-
* @property {import('./utils/sitemap/typedef.js').SitemapRoute[]} siteRoutes
|
|
39
|
-
* Routes for sitemap.xml
|
|
40
|
-
* @property {import('./utils/robots/typedef.js').RobotsConfig} robotsConfig
|
|
41
|
-
* Robots.txt configuration
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
export default {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Favicons } from '../../components.js';
|
|
2
|
-
import { PWA } from '../../components.js';
|
|
3
|
-
import { SEO } from '../../components.js';
|
|
4
|
-
export const getLangFromPath: Function;
|
|
5
|
-
export const injectLang: Function;
|
|
6
|
-
export const handleLang: Function;
|
|
7
|
-
import * as config from '../../../config/meta.js';
|
|
8
|
-
export { Favicons, PWA, SEO, config };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Meta components configured for your app
|
|
3
|
-
*
|
|
4
|
-
* This file imports the library components and configures them with your
|
|
5
|
-
* app's config. Components are automatically updated when you update the
|
|
6
|
-
* @hkdigital/lib-core library.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { Favicons, PWA, SEO } from '../../components.js';
|
|
10
|
-
import { createLangUtils } from '../../utils.js';
|
|
11
|
-
import * as config from '../../../config/meta.js';
|
|
12
|
-
|
|
13
|
-
// Create configured language utilities
|
|
14
|
-
const { getLangFromPath, injectLang, handleLang } = createLangUtils(config);
|
|
15
|
-
|
|
16
|
-
// Re-export components (they'll receive config as a prop in your layout)
|
|
17
|
-
export { Favicons, PWA, SEO };
|
|
18
|
-
|
|
19
|
-
// Export language utilities
|
|
20
|
-
export { getLangFromPath, injectLang, handleLang };
|
|
21
|
-
|
|
22
|
-
// Export config for convenience
|
|
23
|
-
export { config };
|
|
File without changes
|
/package/dist/meta/{templates/lib/assets/meta/preview-landscape.png → preview-landscape.png}
RENAMED
|
File without changes
|
|
File without changes
|