@cloudhal/astro-renderer 0.4.0 → 0.6.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 (38) hide show
  1. package/README.md +40 -1
  2. package/dist/src/cloudflare-entry.d.ts +3 -2
  3. package/dist/src/cloudflare-entry.js +3 -2
  4. package/dist/src/collection-feed-middleware.d.ts +5 -0
  5. package/dist/src/collection-feed-middleware.js +22 -0
  6. package/dist/src/collection-feed-route.d.ts +21 -0
  7. package/dist/src/collection-feed-route.js +92 -0
  8. package/dist/src/collection-feeds.d.ts +40 -0
  9. package/dist/src/collection-feeds.js +87 -0
  10. package/dist/src/components/ContentList.astro +26 -9
  11. package/dist/src/components/EntryFields.astro +43 -0
  12. package/dist/src/components/index.d.ts +1 -0
  13. package/dist/src/components/index.js +1 -0
  14. package/dist/src/entry-query.d.ts +85 -0
  15. package/dist/src/entry-query.js +227 -0
  16. package/dist/src/entry-views.d.ts +36 -0
  17. package/dist/src/entry-views.js +73 -0
  18. package/dist/src/fields.d.ts +77 -0
  19. package/dist/src/fields.js +201 -0
  20. package/dist/src/index.d.ts +6 -1
  21. package/dist/src/index.js +10 -1
  22. package/dist/src/integration.js +30 -19
  23. package/dist/src/live-source.d.ts +53 -0
  24. package/dist/src/live-source.js +318 -0
  25. package/dist/src/locales.js +4 -3
  26. package/dist/src/preview.d.ts +16 -1
  27. package/dist/src/preview.js +89 -14
  28. package/dist/src/routing.d.ts +1 -1
  29. package/dist/src/routing.js +13 -3
  30. package/dist/src/seo.d.ts +4 -1
  31. package/dist/src/seo.js +9 -0
  32. package/dist/src/source-helpers.d.ts +11 -0
  33. package/dist/src/source-helpers.js +48 -0
  34. package/dist/src/source.d.ts +40 -45
  35. package/dist/src/source.js +104 -283
  36. package/dist/src/structured-data.d.ts +35 -0
  37. package/dist/src/structured-data.js +88 -0
  38. package/package.json +31 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudhal/astro-renderer",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "Render a Cloudhal Site Graph with Astro: data sources (live/snapshot), section components and the cloudhal() integration",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://cloudhal.dev",
@@ -22,6 +22,14 @@
22
22
  "types": "./dist/src/source.d.ts",
23
23
  "default": "./dist/src/source.js"
24
24
  },
25
+ "./queries": {
26
+ "types": "./dist/src/entry-query.d.ts",
27
+ "default": "./dist/src/entry-query.js"
28
+ },
29
+ "./fields": {
30
+ "types": "./dist/src/fields.d.ts",
31
+ "default": "./dist/src/fields.js"
32
+ },
25
33
  "./routing": {
26
34
  "types": "./dist/src/routing.d.ts",
27
35
  "default": "./dist/src/routing.js"
@@ -38,6 +46,18 @@
38
46
  "types": "./dist/src/feeds.d.ts",
39
47
  "default": "./dist/src/feeds.js"
40
48
  },
49
+ "./collection-feeds": {
50
+ "types": "./dist/src/collection-feeds.d.ts",
51
+ "default": "./dist/src/collection-feeds.js"
52
+ },
53
+ "./collection-feed-route": {
54
+ "types": "./dist/src/collection-feed-route.d.ts",
55
+ "default": "./dist/src/collection-feed-route.js"
56
+ },
57
+ "./collection-feed-middleware": {
58
+ "types": "./dist/src/collection-feed-middleware.d.ts",
59
+ "default": "./dist/src/collection-feed-middleware.js"
60
+ },
41
61
  "./taxonomy": {
42
62
  "types": "./dist/src/taxonomy.d.ts",
43
63
  "default": "./dist/src/taxonomy.js"
@@ -81,6 +101,10 @@
81
101
  "types": "./dist/src/preview.d.ts",
82
102
  "default": "./dist/src/preview.js"
83
103
  },
104
+ "./structured-data": {
105
+ "types": "./dist/src/structured-data.d.ts",
106
+ "default": "./dist/src/structured-data.js"
107
+ },
84
108
  "./resolver": {
85
109
  "types": "./dist/src/resolver.d.ts",
86
110
  "default": "./dist/src/resolver.js"
@@ -179,14 +203,14 @@
179
203
  "README.md"
180
204
  ],
181
205
  "dependencies": {
182
- "@cloudhal/core-contracts": "0.4.0",
183
- "@cloudhal/core-ts": "0.4.0",
184
- "@cloudhal/storage": "0.4.0",
206
+ "@cloudhal/core-contracts": "0.6.0",
207
+ "@cloudhal/core-ts": "0.6.0",
208
+ "@cloudhal/storage": "0.6.0",
185
209
  "marked": "^18.1.0",
186
210
  "parse5": "8.0.1",
187
- "@cloudhal/analytics": "0.4.0",
211
+ "@cloudhal/analytics": "0.6.0",
188
212
  "vite": "^8.3.3",
189
- "@cloudhal/comments": "0.4.0"
213
+ "@cloudhal/comments": "0.6.0"
190
214
  },
191
215
  "peerDependencies": {
192
216
  "astro": "^7.3.0",
@@ -217,6 +241,7 @@
217
241
  "scripts": {
218
242
  "typecheck": "tsc --noEmit -p tsconfig.json",
219
243
  "test": "vitest run",
244
+ "bench:lists": "vitest run -c bench/vitest.config.ts",
220
245
  "check": "pnpm typecheck && pnpm test"
221
246
  }
222
247
  }