@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/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-TMN7KG5M.js";
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 { a as FieldPath, c as Field, d as CollectionField, F as Fields, G as GroupField, C as Content, e as RecordFields, f as RecordOf, g as ContentIssue } from './parse-content-CT2cUVL-.js';
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, b as ContentOf } from './parse-content-CT2cUVL-.js';
4
- import { a as SiteRecordPages, S as SiteDescription, R as RequestForm } from './site-description-cKiFtNHW.js';
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-ULOKDC6D.js";
6
+ } from "./chunk-CTS7Q45A.js";
10
7
  import {
11
8
  checkSiteDescription,
12
9
  formatFieldPath,
13
10
  parseContent
14
- } from "./chunk-TMN7KG5M.js";
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": "1.4.0",
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"