@wollycms/astro 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/types.ts +22 -0
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@wollycms/astro",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "Astro.js integration for WollyCMS — components, helpers, and route generation",
6
6
  "author": "Chad Wollenberg",
7
7
  "license": "MIT",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "https://github.com/wollycms/wollycms.git",
10
+ "url": "https://github.com/WollyCMS/wollycms.git",
11
11
  "directory": "packages/astro"
12
12
  },
13
- "homepage": "https://github.com/wollycms/wollycms",
13
+ "homepage": "https://wollycms.com",
14
14
  "bugs": {
15
- "url": "https://github.com/wollycms/wollycms/issues"
15
+ "url": "https://github.com/WollyCMS/wollycms/issues"
16
16
  },
17
17
  "exports": {
18
18
  ".": "./src/index.ts",
@@ -35,6 +35,6 @@
35
35
  "block-editor"
36
36
  ],
37
37
  "peerDependencies": {
38
- "astro": "^5.0.0 || ^6.0.0"
38
+ "astro": "^5.0.0"
39
39
  }
40
40
  }
package/src/types.ts CHANGED
@@ -34,11 +34,19 @@ export interface PageSummary {
34
34
  title: string;
35
35
  slug: string;
36
36
  status: 'draft' | 'published' | 'archived';
37
+ locale?: string;
37
38
  fields: Record<string, unknown>;
38
39
  terms?: PageTerm[];
39
40
  meta: PageMeta;
40
41
  }
41
42
 
43
+ export interface PageTranslation {
44
+ id: number;
45
+ locale: string;
46
+ slug: string;
47
+ title: string;
48
+ }
49
+
42
50
  /** Resolved block in a page region */
43
51
  export interface ResolvedBlock {
44
52
  id: string;
@@ -62,6 +70,8 @@ export interface PageSeo {
62
70
  export interface Page extends PageSummary {
63
71
  regions: Record<string, ResolvedBlock[]>;
64
72
  seo?: PageSeo;
73
+ translationGroupId?: string | null;
74
+ translations?: PageTranslation[];
65
75
  }
66
76
 
67
77
  /** Menu item (recursive tree) */
@@ -211,4 +221,16 @@ export interface PageListParams {
211
221
  limit?: number;
212
222
  offset?: number;
213
223
  status?: string;
224
+ locale?: string;
225
+ }
226
+
227
+ /** Site configuration (from content API /config) */
228
+ export interface SiteConfig {
229
+ siteName: string;
230
+ tagline: string;
231
+ logo: string | null;
232
+ footer: { text: string };
233
+ social: { facebook: string | null; twitter: string | null; instagram: string | null };
234
+ defaultLocale: string;
235
+ supportedLocales: string[];
214
236
  }