@marvalt/wadapter 2.3.26 → 2.3.29
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/client/wordpress-client.d.ts +31 -33
- package/dist/client/wordpress-client.d.ts.map +1 -1
- package/dist/generators/wordpress/wordpress-generator.d.ts +33 -24
- package/dist/generators/wordpress/wordpress-generator.d.ts.map +1 -1
- package/dist/generators.cjs +12 -393
- package/dist/generators.cjs.map +1 -1
- package/dist/generators.esm.js +14 -395
- package/dist/generators.esm.js.map +1 -1
- package/dist/index.d.ts +33 -121
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -146
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +0 -151
- package/dist/index.js.map +1 -1
- package/dist/static/wordpress-static.d.ts +0 -36
- package/dist/static/wordpress-static.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/utils/imageDownloader.d.ts +0 -33
- package/dist/utils/imageDownloader.d.ts.map +0 -1
- package/dist/utils/theme-styles.d.ts +0 -50
- package/dist/utils/theme-styles.d.ts.map +0 -1
|
@@ -34,41 +34,10 @@ export interface SiteSettings {
|
|
|
34
34
|
site_name?: string;
|
|
35
35
|
site_description?: string;
|
|
36
36
|
}
|
|
37
|
-
export interface ThemeStyles {
|
|
38
|
-
typography?: {
|
|
39
|
-
heading_font_family?: string;
|
|
40
|
-
body_font_family?: string;
|
|
41
|
-
base_font_size?: string;
|
|
42
|
-
line_height?: string;
|
|
43
|
-
};
|
|
44
|
-
colors?: {
|
|
45
|
-
primary?: string;
|
|
46
|
-
secondary?: string;
|
|
47
|
-
text?: string;
|
|
48
|
-
background?: string;
|
|
49
|
-
};
|
|
50
|
-
theme_palette?: Record<string, string>;
|
|
51
|
-
backgrounds?: {
|
|
52
|
-
image?: string;
|
|
53
|
-
repeat?: string;
|
|
54
|
-
position?: string;
|
|
55
|
-
size?: string;
|
|
56
|
-
};
|
|
57
|
-
shadows?: {
|
|
58
|
-
box_shadow?: string;
|
|
59
|
-
text_shadow?: string;
|
|
60
|
-
};
|
|
61
|
-
layout?: {
|
|
62
|
-
container_max_width?: string;
|
|
63
|
-
wide_container_max_width?: string;
|
|
64
|
-
content_padding?: string;
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
37
|
export interface WordPressStaticData {
|
|
68
38
|
generatedAt?: string;
|
|
69
39
|
front_page?: FrontPageMetadata;
|
|
70
40
|
site_settings?: SiteSettings;
|
|
71
|
-
theme_styles?: ThemeStyles;
|
|
72
41
|
posts: WordPressPost[];
|
|
73
42
|
pages: WordPressPage[];
|
|
74
43
|
media: WordPressMedia[];
|
|
@@ -92,9 +61,4 @@ export declare function getFrontpageMetadata(): FrontPageMetadata | undefined;
|
|
|
92
61
|
* This is set by the generator from WordPress theme mods and options
|
|
93
62
|
*/
|
|
94
63
|
export declare function getSiteSettings(): SiteSettings | undefined;
|
|
95
|
-
/**
|
|
96
|
-
* Get theme styles (typography, colors, backgrounds, shadows, layout) from static data
|
|
97
|
-
* This is set by the generator from WordPress Customizer settings
|
|
98
|
-
*/
|
|
99
|
-
export declare function getThemeStyles(): ThemeStyles | undefined;
|
|
100
64
|
//# sourceMappingURL=wordpress-static.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wordpress-static.d.ts","sourceRoot":"","sources":["../../src/static/wordpress-static.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEnH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,cAAc,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UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,IAAI,EAAE,YAAY,EAAE,CAAC;CACtB;AAID,wBAAsB,iBAAiB,CAAC,IAAI,GAAE,MAA+B,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CASlH;AAED,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C;AAED,wBAAgB,iBAAiB,IAAI,aAAa,EAAE,CAEnD;AAED,wBAAgB,iBAAiB,IAAI,aAAa,EAAE,CAEnD;AAED,wBAAgB,iBAAiB,IAAI,cAAc,EAAE,CAEpD;AAED,wBAAgB,sBAAsB,IAAI,iBAAiB,EAAE,CAE5D;AAED,wBAAgB,gBAAgB,IAAI,YAAY,EAAE,CAEjD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,iBAAiB,GAAG,SAAS,CAEpE;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,YAAY,GAAG,SAAS,CAE1D"}
|
package/package.json
CHANGED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license GPL-3.0-or-later
|
|
3
|
-
*
|
|
4
|
-
* This file is part of the MarVAlt Open SDK.
|
|
5
|
-
* Copyright (c) 2025 Vibune Pty Ltd.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
15
|
-
* See the GNU General Public License for more details.
|
|
16
|
-
*/
|
|
17
|
-
export interface ImageDownloadConfig {
|
|
18
|
-
outputDir: string;
|
|
19
|
-
username?: string;
|
|
20
|
-
password?: string;
|
|
21
|
-
timeout?: number;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Download an image from WordPress and save it to public/images
|
|
25
|
-
* Returns the local path relative to public directory (e.g., /images/abc123.jpg)
|
|
26
|
-
* Returns null if download fails
|
|
27
|
-
*/
|
|
28
|
-
export declare function downloadImageToPublic(imageUrl: string, config: ImageDownloadConfig): Promise<string | null>;
|
|
29
|
-
/**
|
|
30
|
-
* Batch download images with concurrency control
|
|
31
|
-
*/
|
|
32
|
-
export declare function downloadImagesBatch(imageUrls: string[], config: ImageDownloadConfig, concurrency?: number): Promise<Map<string, string | null>>;
|
|
33
|
-
//# sourceMappingURL=imageDownloader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"imageDownloader.d.ts","sourceRoot":"","sources":["../../src/utils/imageDownloader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAgBD;;;;GAIG;AACH,wBAAsB,qBAAqB,CACzC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAqDxB;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,SAAS,EAAE,MAAM,EAAE,EACnB,MAAM,EAAE,mBAAmB,EAC3B,WAAW,GAAE,MAAU,GACtB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC,CAiBrC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license GPL-3.0-or-later
|
|
3
|
-
*
|
|
4
|
-
* This file is part of the MarVAlt Open SDK.
|
|
5
|
-
* Copyright (c) 2025 Vibune Pty Ltd.
|
|
6
|
-
*
|
|
7
|
-
* This program is free software: you can redistribute it and/or modify
|
|
8
|
-
* it under the terms of the GNU General Public License as published by
|
|
9
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
-
* (at your option) any later version.
|
|
11
|
-
*
|
|
12
|
-
* This program is distributed in the hope that it will be useful,
|
|
13
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
15
|
-
* See the GNU General Public License for more details.
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* List of popular Google Fonts (for detection and validation)
|
|
19
|
-
*/
|
|
20
|
-
export declare const GOOGLE_FONTS: readonly ["Montserrat", "Open Sans", "Roboto", "Lato", "Poppins", "Source Sans Pro", "Raleway", "Oswald", "Playfair Display", "Merriweather", "Ubuntu", "Nunito", "Inter", "Work Sans", "Crimson Text", "Libre Baskerville", "PT Sans", "PT Serif", "Dancing Script", "Bebas Neue", "Fira Sans", "Noto Sans", "Noto Serif", "Rubik", "Mukta", "Cabin", "Dosis", "Arimo", "Titillium Web"];
|
|
21
|
-
/**
|
|
22
|
-
* Sanitize font name - removes "family" prefix and cleans the name
|
|
23
|
-
*
|
|
24
|
-
* @param fontName - Font name to sanitize
|
|
25
|
-
* @returns Sanitized font name
|
|
26
|
-
*/
|
|
27
|
-
export declare function sanitizeFontName(fontName: string): string;
|
|
28
|
-
/**
|
|
29
|
-
* Format font-family CSS value with quotes and fallback
|
|
30
|
-
*
|
|
31
|
-
* @param fontName - Font name to format
|
|
32
|
-
* @param fallback - Fallback font (default: 'sans-serif')
|
|
33
|
-
* @returns Formatted font-family CSS value
|
|
34
|
-
*/
|
|
35
|
-
export declare function formatFontFamily(fontName: string, fallback?: string): string;
|
|
36
|
-
/**
|
|
37
|
-
* Load Google Font dynamically via link tag
|
|
38
|
-
*
|
|
39
|
-
* @param fontName - Google Font name to load
|
|
40
|
-
* @param weights - Font weights to load (default: 400, 500, 600, 700)
|
|
41
|
-
*/
|
|
42
|
-
export declare function loadGoogleFont(fontName: string, weights?: number[]): void;
|
|
43
|
-
/**
|
|
44
|
-
* Check if a font name is a Google Font
|
|
45
|
-
*
|
|
46
|
-
* @param fontName - Font name to check
|
|
47
|
-
* @returns True if the font is a Google Font
|
|
48
|
-
*/
|
|
49
|
-
export declare function isGoogleFont(fontName: string): boolean;
|
|
50
|
-
//# sourceMappingURL=theme-styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme-styles.d.ts","sourceRoot":"","sources":["../../src/utils/theme-styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY,2XA8Bf,CAAC;AAEX;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAOzD;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAqB,GAAG,MAAM,CAU1F;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,MAAM,EAAyB,GACvC,IAAI,CAqCN;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAStD"}
|