@bettercms-ai/astro 0.24.0 → 0.25.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.
package/env.d.ts CHANGED
@@ -1,35 +1,35 @@
1
- /// <reference types="astro/client" />
2
-
3
- /**
4
- * Ambient types for the virtual modules registered by the `bettercms()`
5
- * integration, plus the `Astro.locals.bcms` augmentation. Add this package to
6
- * your project's `src/env.d.ts` with:
7
- *
8
- * /// <reference types="@bettercms-ai/astro/env" />
9
- */
10
-
11
- declare module "bettercms:config" {
12
- import type { PublicConfig } from "@bettercms-ai/astro";
13
- export const config: PublicConfig;
14
- export default config;
15
- }
16
-
17
- declare module "bettercms:client" {
18
- import type { BetterCMSRuntime } from "@bettercms-ai/astro";
19
- export const client: BetterCMSRuntime["client"];
20
- export const getClient: BetterCMSRuntime["getClient"];
21
- export const loadEntry: BetterCMSRuntime["loadEntry"];
22
- export const loadEntries: BetterCMSRuntime["loadEntries"];
23
- export const loadPage: BetterCMSRuntime["loadPage"];
24
- export const loadComponents: BetterCMSRuntime["loadComponents"];
25
- export const loadForms: BetterCMSRuntime["loadForms"];
26
- export const loadLayout: BetterCMSRuntime["loadLayout"];
27
- const runtime: BetterCMSRuntime;
28
- export default runtime;
29
- }
30
-
31
- declare namespace App {
32
- interface Locals {
33
- bcms?: import("@bettercms-ai/astro").BcmsLocals;
34
- }
35
- }
1
+ /// <reference types="astro/client" />
2
+
3
+ /**
4
+ * Ambient types for the virtual modules registered by the `bettercms()`
5
+ * integration, plus the `Astro.locals.bcms` augmentation. Add this package to
6
+ * your project's `src/env.d.ts` with:
7
+ *
8
+ * /// <reference types="@bettercms-ai/astro/env" />
9
+ */
10
+
11
+ declare module "bettercms:config" {
12
+ import type { PublicConfig } from "@bettercms-ai/astro";
13
+ export const config: PublicConfig;
14
+ export default config;
15
+ }
16
+
17
+ declare module "bettercms:client" {
18
+ import type { BetterCMSRuntime } from "@bettercms-ai/astro";
19
+ export const client: BetterCMSRuntime["client"];
20
+ export const getClient: BetterCMSRuntime["getClient"];
21
+ export const loadEntry: BetterCMSRuntime["loadEntry"];
22
+ export const loadEntries: BetterCMSRuntime["loadEntries"];
23
+ export const loadPage: BetterCMSRuntime["loadPage"];
24
+ export const loadComponents: BetterCMSRuntime["loadComponents"];
25
+ export const loadForms: BetterCMSRuntime["loadForms"];
26
+ export const loadLayout: BetterCMSRuntime["loadLayout"];
27
+ const runtime: BetterCMSRuntime;
28
+ export default runtime;
29
+ }
30
+
31
+ declare namespace App {
32
+ interface Locals {
33
+ bcms?: import("@bettercms-ai/astro").BcmsLocals;
34
+ }
35
+ }
package/package.json CHANGED
@@ -1,86 +1,86 @@
1
- {
2
- "name": "@bettercms-ai/astro",
3
- "version": "0.24.0",
4
- "type": "module",
5
- "description": "The BetterCMS adapter for Astro — a `bettercms()` integration, a `bettercms:client` virtual module, typed content loaders, draft preview, and native .astro rendering components.",
6
- "main": "./dist/index.js",
7
- "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
9
- "sideEffects": false,
10
- "exports": {
11
- ".": {
12
- "types": "./dist/index.d.ts",
13
- "import": "./dist/index.js",
14
- "default": "./dist/index.js"
15
- },
16
- "./runtime": {
17
- "types": "./dist/runtime.d.ts",
18
- "import": "./dist/runtime.js",
19
- "default": "./dist/runtime.js"
20
- },
21
- "./bindings": {
22
- "types": "./dist/bindings.d.ts",
23
- "import": "./dist/bindings.js",
24
- "default": "./dist/bindings.js"
25
- },
26
- "./middleware": {
27
- "types": "./dist/middleware-entry.d.ts",
28
- "import": "./dist/middleware-entry.js",
29
- "default": "./dist/middleware-entry.js"
30
- },
31
- "./draft-enable": "./dist/routes/draft-enable.js",
32
- "./draft-disable": "./dist/routes/draft-disable.js",
33
- "./components/BcmsBlocks.astro": "./components/BcmsBlocks.astro",
34
- "./components/BcmsLiveBlocks.astro": "./components/BcmsLiveBlocks.astro",
35
- "./components/BcmsField.astro": "./components/BcmsField.astro",
36
- "./components/BcmsButton.astro": "./components/BcmsButton.astro",
37
- "./components/BcmsForm.astro": "./components/BcmsForm.astro",
38
- "./components/BcmsSearch.astro": "./components/BcmsSearch.astro",
39
- "./components/BcmsImage.astro": "./components/BcmsImage.astro",
40
- "./components/BcmsLive.astro": "./components/BcmsLive.astro",
41
- "./components/BcmsVisualEditing.astro": "./components/BcmsVisualEditing.astro",
42
- "./env": "./env.d.ts"
43
- },
44
- "files": [
45
- "dist",
46
- "components",
47
- "env.d.ts",
48
- "README.md"
49
- ],
50
- "scripts": {
51
- "typecheck": "tsc --noEmit",
52
- "build": "tsup",
53
- "test": "vitest run",
54
- "test:watch": "vitest"
55
- },
56
- "dependencies": {
57
- "@bettercms-ai/image-url": "^0.4.0",
58
- "@bettercms-ai/next": "^0.23.0",
59
- "@bettercms-ai/richtext": "^0.8.1",
60
- "@bettercms-ai/sdk": "^1.28.0",
61
- "@bettercms-ai/types": "^1.40.0",
62
- "@bettercms-ai/ui": "^0.15.0",
63
- "libphonenumber-js": "^1.13.13"
64
- },
65
- "peerDependencies": {
66
- "astro": ">=4",
67
- "@astrojs/preact": ">=4"
68
- },
69
- "devDependencies": {
70
- "@types/node": "^20",
71
- "astro": "^7.2.8",
72
- "tsup": "^8.5.1",
73
- "typescript": "^5",
74
- "vitest": "^4.1.4",
75
- "@types/react": "^19.0.0"
76
- },
77
- "publishConfig": {
78
- "registry": "https://registry.npmjs.org/",
79
- "access": "public"
80
- },
81
- "peerDependenciesMeta": {
82
- "@astrojs/preact": {
83
- "optional": true
84
- }
85
- }
86
- }
1
+ {
2
+ "name": "@bettercms-ai/astro",
3
+ "version": "0.25.0",
4
+ "type": "module",
5
+ "description": "The BetterCMS adapter for Astro — a `bettercms()` integration, a `bettercms:client` virtual module, typed content loaders, draft preview, and native .astro rendering components.",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "sideEffects": false,
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "default": "./dist/index.js"
15
+ },
16
+ "./runtime": {
17
+ "types": "./dist/runtime.d.ts",
18
+ "import": "./dist/runtime.js",
19
+ "default": "./dist/runtime.js"
20
+ },
21
+ "./bindings": {
22
+ "types": "./dist/bindings.d.ts",
23
+ "import": "./dist/bindings.js",
24
+ "default": "./dist/bindings.js"
25
+ },
26
+ "./middleware": {
27
+ "types": "./dist/middleware-entry.d.ts",
28
+ "import": "./dist/middleware-entry.js",
29
+ "default": "./dist/middleware-entry.js"
30
+ },
31
+ "./draft-enable": "./dist/routes/draft-enable.js",
32
+ "./draft-disable": "./dist/routes/draft-disable.js",
33
+ "./components/BcmsBlocks.astro": "./components/BcmsBlocks.astro",
34
+ "./components/BcmsLiveBlocks.astro": "./components/BcmsLiveBlocks.astro",
35
+ "./components/BcmsField.astro": "./components/BcmsField.astro",
36
+ "./components/BcmsButton.astro": "./components/BcmsButton.astro",
37
+ "./components/BcmsForm.astro": "./components/BcmsForm.astro",
38
+ "./components/BcmsSearch.astro": "./components/BcmsSearch.astro",
39
+ "./components/BcmsImage.astro": "./components/BcmsImage.astro",
40
+ "./components/BcmsLive.astro": "./components/BcmsLive.astro",
41
+ "./components/BcmsVisualEditing.astro": "./components/BcmsVisualEditing.astro",
42
+ "./env": "./env.d.ts"
43
+ },
44
+ "files": [
45
+ "dist",
46
+ "components",
47
+ "env.d.ts",
48
+ "README.md"
49
+ ],
50
+ "scripts": {
51
+ "typecheck": "tsc --noEmit",
52
+ "build": "tsup",
53
+ "test": "vitest run",
54
+ "test:watch": "vitest"
55
+ },
56
+ "dependencies": {
57
+ "@bettercms-ai/image-url": "^0.4.0",
58
+ "@bettercms-ai/next": "^0.24.0",
59
+ "@bettercms-ai/richtext": "^0.8.1",
60
+ "@bettercms-ai/sdk": "^1.29.0",
61
+ "@bettercms-ai/types": "^1.41.0",
62
+ "@bettercms-ai/ui": "^0.15.1",
63
+ "libphonenumber-js": "^1.13.13"
64
+ },
65
+ "peerDependencies": {
66
+ "astro": ">=4",
67
+ "@astrojs/preact": ">=4"
68
+ },
69
+ "devDependencies": {
70
+ "@types/node": "^20",
71
+ "astro": "^7.2.8",
72
+ "tsup": "^8.5.1",
73
+ "typescript": "^5",
74
+ "vitest": "^4.1.4",
75
+ "@types/react": "^19.0.0"
76
+ },
77
+ "publishConfig": {
78
+ "registry": "https://registry.npmjs.org/",
79
+ "access": "public"
80
+ },
81
+ "peerDependenciesMeta": {
82
+ "@astrojs/preact": {
83
+ "optional": true
84
+ }
85
+ }
86
+ }