@marvalt/wadapter 2.3.25 → 2.3.27

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.
@@ -34,40 +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
- backgrounds?: {
51
- image?: string;
52
- repeat?: string;
53
- position?: string;
54
- size?: string;
55
- };
56
- shadows?: {
57
- box_shadow?: string;
58
- text_shadow?: string;
59
- };
60
- layout?: {
61
- container_max_width?: string;
62
- wide_container_max_width?: string;
63
- content_padding?: string;
64
- };
65
- }
66
37
  export interface WordPressStaticData {
67
38
  generatedAt?: string;
68
39
  front_page?: FrontPageMetadata;
69
40
  site_settings?: SiteSettings;
70
- theme_styles?: ThemeStyles;
71
41
  posts: WordPressPost[];
72
42
  pages: WordPressPage[];
73
43
  media: WordPressMedia[];
@@ -91,9 +61,4 @@ export declare function getFrontpageMetadata(): FrontPageMetadata | undefined;
91
61
  * This is set by the generator from WordPress theme mods and options
92
62
  */
93
63
  export declare function getSiteSettings(): SiteSettings | undefined;
94
- /**
95
- * Get theme styles (typography, colors, backgrounds, shadows, layout) from static data
96
- * This is set by the generator from WordPress Customizer settings
97
- */
98
- export declare function getThemeStyles(): ThemeStyles | undefined;
99
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,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SAAS,CAEpE;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,YAAY,GAAG,SAAS,CAE1D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marvalt/wadapter",
3
- "version": "2.3.25",
3
+ "version": "2.3.27",
4
4
  "description": "WordPress and Gravity Forms integration package for React applications with static data generation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -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"}