@seamlet/astro 1.4.0 → 2.0.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 +10 -0
- package/README.md +39 -4
- package/components/RequestForm.astro +7 -15
- package/dist/bridge.d.ts +3 -2
- package/dist/bridge.js +2 -2
- package/dist/{chunk-ULOKDC6D.js → chunk-CTS7Q45A.js} +1 -1
- package/dist/{chunk-JQ4YD7MM.js → chunk-NOAAAA5T.js} +2 -2
- package/dist/{chunk-TMN7KG5M.js → chunk-PAGIPRTS.js} +80 -3
- package/dist/{chunk-BCJUH3ZD.js → chunk-XZDRTVJH.js} +1 -1
- package/dist/cli.js +4 -4
- package/dist/client.js +1 -1
- package/dist/{parse-content-CT2cUVL-.d.ts → content-ZG6F3MPA.d.ts} +1 -81
- package/dist/feeds.d.ts +50 -0
- package/dist/feeds.js +174 -0
- package/dist/index.js +10 -10
- package/dist/{messages-Dwjthhrk.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 +3 -2
- package/dist/preview-requests.js +3 -3
- package/dist/protocol.d.ts +4 -3
- package/dist/protocol.js +2 -2
- package/dist/{request-sending-ZBTK5L7U.js → request-sending-WCEHXPWV.js} +1 -1
- package/dist/routes/media.js +5 -5
- package/dist/schema.d.ts +44 -104
- package/dist/schema.js +11 -3
- package/dist/{site-description-cKiFtNHW.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
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
MAX_REQUEST_FIELD_LENGTH,
|
|
9
9
|
MAX_SLUG_LENGTH,
|
|
10
10
|
PAGE_PATH_SEPARATOR,
|
|
11
|
+
PRIVACY_PAGE_PATH,
|
|
11
12
|
RECORD_ID_KEY,
|
|
12
13
|
RECORD_PLACEHOLDER,
|
|
13
14
|
REQUEST_CONSENT_KEY,
|
|
@@ -39,6 +40,7 @@ import {
|
|
|
39
40
|
defaultValue,
|
|
40
41
|
defineSchema,
|
|
41
42
|
editable,
|
|
43
|
+
estimateOf,
|
|
42
44
|
file,
|
|
43
45
|
findRecord,
|
|
44
46
|
formatFieldPath,
|
|
@@ -58,7 +60,6 @@ import {
|
|
|
58
60
|
isSiteId,
|
|
59
61
|
isSlug,
|
|
60
62
|
isTrapFilled,
|
|
61
|
-
legalPagePathOf,
|
|
62
63
|
linesOf,
|
|
63
64
|
link,
|
|
64
65
|
linkTargetOf,
|
|
@@ -69,7 +70,10 @@ import {
|
|
|
69
70
|
openingHoursField,
|
|
70
71
|
parseContent,
|
|
71
72
|
plainTextOf,
|
|
73
|
+
privacyPolicyFields,
|
|
74
|
+
privacyPolicyTextOf,
|
|
72
75
|
productFields,
|
|
76
|
+
ratesField,
|
|
73
77
|
readFields,
|
|
74
78
|
readRequestEntries,
|
|
75
79
|
readRequestForm,
|
|
@@ -105,7 +109,7 @@ import {
|
|
|
105
109
|
toggle,
|
|
106
110
|
url,
|
|
107
111
|
withRecordIds
|
|
108
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-PAGIPRTS.js";
|
|
109
113
|
export {
|
|
110
114
|
CONSENT_REQUIRED_TEXT,
|
|
111
115
|
DEFAULT_LONG_TEXT_LENGTH,
|
|
@@ -116,6 +120,7 @@ export {
|
|
|
116
120
|
MAX_REQUEST_FIELD_LENGTH,
|
|
117
121
|
MAX_SLUG_LENGTH,
|
|
118
122
|
PAGE_PATH_SEPARATOR,
|
|
123
|
+
PRIVACY_PAGE_PATH,
|
|
119
124
|
RECORD_ID_KEY,
|
|
120
125
|
RECORD_PLACEHOLDER,
|
|
121
126
|
REQUEST_CONSENT_KEY,
|
|
@@ -147,6 +152,7 @@ export {
|
|
|
147
152
|
defaultValue,
|
|
148
153
|
defineSchema,
|
|
149
154
|
editable,
|
|
155
|
+
estimateOf,
|
|
150
156
|
file,
|
|
151
157
|
findRecord,
|
|
152
158
|
formatFieldPath,
|
|
@@ -166,7 +172,6 @@ export {
|
|
|
166
172
|
isSiteId,
|
|
167
173
|
isSlug,
|
|
168
174
|
isTrapFilled,
|
|
169
|
-
legalPagePathOf,
|
|
170
175
|
linesOf,
|
|
171
176
|
link,
|
|
172
177
|
linkTargetOf,
|
|
@@ -177,7 +182,10 @@ export {
|
|
|
177
182
|
openingHoursField,
|
|
178
183
|
parseContent,
|
|
179
184
|
plainTextOf,
|
|
185
|
+
privacyPolicyFields,
|
|
186
|
+
privacyPolicyTextOf,
|
|
180
187
|
productFields,
|
|
188
|
+
ratesField,
|
|
181
189
|
readFields,
|
|
182
190
|
readRequestEntries,
|
|
183
191
|
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-CTS7Q45A.js";
|
|
10
7
|
import {
|
|
11
8
|
checkSiteDescription,
|
|
12
9
|
formatFieldPath,
|
|
13
10
|
parseContent
|
|
14
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PAGIPRTS.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": "
|
|
3
|
+
"version": "2.0.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"
|