@seamlet/astro 1.3.0 → 1.5.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/CHANGELOG.md +11 -0
- package/README.md +46 -0
- package/dist/bridge.d.ts +3 -2
- package/dist/bridge.js +3 -2
- package/dist/{chunk-ENMUO442.js → chunk-53O34DN3.js} +56 -0
- package/dist/{chunk-VQKAWFCQ.js → chunk-62XHZAPK.js} +1 -1
- package/dist/{chunk-MFD4TJPV.js → chunk-JN6XVHCW.js} +8 -3
- package/dist/{chunk-2GZZHXP5.js → chunk-WABVCYGZ.js} +1 -1
- package/dist/cli.js +4 -4
- package/dist/client.js +1 -1
- package/dist/{parse-content-Bnn6Wa-l.d.ts → content-ZG6F3MPA.d.ts} +20 -81
- package/dist/feeds.d.ts +50 -0
- package/dist/feeds.js +174 -0
- package/dist/index.js +11 -11
- package/dist/{messages-C2OjqFmy.d.ts → messages-d-elsH_0.d.ts} +2 -1
- package/dist/parse-content-Dtec5MKj.d.ts +83 -0
- package/dist/presets-Ch54FeQK.d.ts +104 -0
- package/dist/preview-requests.d.ts +6 -3
- package/dist/preview-requests.js +5 -3
- package/dist/protocol.d.ts +4 -3
- package/dist/protocol.js +2 -2
- package/dist/{request-sending-Y6L55IIM.js → request-sending-PW6OB4W2.js} +1 -1
- package/dist/routes/media.js +6 -6
- package/dist/schema.d.ts +17 -100
- package/dist/schema.js +7 -1
- package/dist/{site-description-DSHyBrAL.d.ts → site-description-0UU5Wukx.d.ts} +2 -1
- package/dist/site.d.ts +3 -2
- package/dist/site.js +5 -5
- package/package.json +5 -1
package/dist/schema.js
CHANGED
|
@@ -39,6 +39,8 @@ import {
|
|
|
39
39
|
defaultValue,
|
|
40
40
|
defineSchema,
|
|
41
41
|
editable,
|
|
42
|
+
estimateOf,
|
|
43
|
+
file,
|
|
42
44
|
findRecord,
|
|
43
45
|
formatFieldPath,
|
|
44
46
|
group,
|
|
@@ -69,6 +71,7 @@ import {
|
|
|
69
71
|
parseContent,
|
|
70
72
|
plainTextOf,
|
|
71
73
|
productFields,
|
|
74
|
+
ratesField,
|
|
72
75
|
readFields,
|
|
73
76
|
readRequestEntries,
|
|
74
77
|
readRequestForm,
|
|
@@ -104,7 +107,7 @@ import {
|
|
|
104
107
|
toggle,
|
|
105
108
|
url,
|
|
106
109
|
withRecordIds
|
|
107
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-53O34DN3.js";
|
|
108
111
|
export {
|
|
109
112
|
CONSENT_REQUIRED_TEXT,
|
|
110
113
|
DEFAULT_LONG_TEXT_LENGTH,
|
|
@@ -146,6 +149,8 @@ export {
|
|
|
146
149
|
defaultValue,
|
|
147
150
|
defineSchema,
|
|
148
151
|
editable,
|
|
152
|
+
estimateOf,
|
|
153
|
+
file,
|
|
149
154
|
findRecord,
|
|
150
155
|
formatFieldPath,
|
|
151
156
|
group,
|
|
@@ -176,6 +181,7 @@ export {
|
|
|
176
181
|
parseContent,
|
|
177
182
|
plainTextOf,
|
|
178
183
|
productFields,
|
|
184
|
+
ratesField,
|
|
179
185
|
readFields,
|
|
180
186
|
readRequestEntries,
|
|
181
187
|
readRequestForm,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as Field, a as CollectionField, F as Fields, G as GroupField, C as Content, i as RecordFields, g as RecordOf } from './content-ZG6F3MPA.js';
|
|
2
|
+
import { F as FieldPath, C as ContentIssue } from './parse-content-Dtec5MKj.js';
|
|
2
3
|
|
|
3
4
|
/** What a path written on a page points at: a field, or a whole record of a collection. */
|
|
4
5
|
type FieldTarget = {
|
package/dist/site.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ImageMetadata } from 'astro';
|
|
2
2
|
import { AstroComponentFactory } from 'astro/runtime/server/index.js';
|
|
3
|
-
import { C as Content, F as Fields,
|
|
4
|
-
import { a as SiteRecordPages, S as SiteDescription, R as RequestForm } from './site-description-
|
|
3
|
+
import { C as Content, F as Fields, e as ContentOf } from './content-ZG6F3MPA.js';
|
|
4
|
+
import { a as SiteRecordPages, S as SiteDescription, R as RequestForm } from './site-description-0UU5Wukx.js';
|
|
5
|
+
import './parse-content-Dtec5MKj.js';
|
|
5
6
|
|
|
6
7
|
/** A page of the site: how the editor names it, and the component that renders it. */
|
|
7
8
|
interface SeamletPage {
|
package/dist/site.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SITE_MODULE_FILE
|
|
3
|
-
} from "./chunk-QCVWHHJC.js";
|
|
4
1
|
import {
|
|
5
2
|
pagePathOf,
|
|
6
3
|
previewedPageAt,
|
|
7
4
|
renderedPageAt,
|
|
8
5
|
staticPagesOf
|
|
9
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-62XHZAPK.js";
|
|
10
7
|
import {
|
|
11
8
|
checkSiteDescription,
|
|
12
9
|
formatFieldPath,
|
|
13
10
|
parseContent
|
|
14
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-53O34DN3.js";
|
|
12
|
+
import {
|
|
13
|
+
SITE_MODULE_FILE
|
|
14
|
+
} from "./chunk-QCVWHHJC.js";
|
|
15
15
|
|
|
16
16
|
// src/site.ts
|
|
17
17
|
import { cmsOrigin, siteId, siteTitle } from "virtual:seamlet/config";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamlet/astro",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Connects an Astro site to the Seamlet CMS: the schema of its content, the preview the editor frames, and its published content.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"types": "./dist/schema.d.ts",
|
|
22
22
|
"default": "./dist/schema.js"
|
|
23
23
|
},
|
|
24
|
+
"./feeds": {
|
|
25
|
+
"types": "./dist/feeds.d.ts",
|
|
26
|
+
"default": "./dist/feeds.js"
|
|
27
|
+
},
|
|
24
28
|
"./bridge": {
|
|
25
29
|
"types": "./dist/bridge.d.ts",
|
|
26
30
|
"default": "./dist/bridge.js"
|