bearminion 1.21.0 → 1.22.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 +18 -0
- package/README.md +2 -2
- package/dist/astro.d.ts +3 -3
- package/dist/astro.js +14 -6
- package/dist/cli.js +2 -2
- package/dist/{content-types-POybRzMX.js → content-types-46XqPaW4.js} +2 -1
- package/dist/content.d.ts +1 -1
- package/dist/content.js +2 -2
- package/dist/{editor-context-BwQzdSow.d.ts → editor-context-D1yfPp21.d.ts} +22 -4
- package/dist/{github-store-4-Y4ERBF.js → github-store-B2folBeq.js} +47 -15
- package/dist/{github-store-BVQY4d-Q.d.ts → github-store-CuhvbFCh.d.ts} +1 -1
- package/dist/hosted-astro.js +1 -1
- package/dist/{hosted-middleware-D6cd62SL.js → hosted-middleware-DHLIedeV.js} +1 -1
- package/dist/hosted-overlay.js +1 -1
- package/dist/hosted.d.ts +4 -4
- package/dist/hosted.js +6 -6
- package/dist/index.d.ts +4 -4
- package/dist/index.js +10 -6
- package/dist/{page-CcC5RRMj.js → page-C7zE_HD1.js} +5 -1
- package/dist/{page-aWKWqoh4.d.ts → page-CpVElMPH.d.ts} +24 -8
- package/dist/{request-guards-6WtQV3-a.js → request-guards-DtNVdqQ7.js} +1 -1
- package/dist/{routing-BWuJlNud.js → routing-jKeq4LwO.js} +8 -5
- package/dist/{routing-DimIRnjk.d.ts → routing-yPy8hEfZ.d.ts} +6 -2
- package/dist/{theme-DVMi1524.js → theme-DTVVNMlr.js} +1 -1
- package/dist/ui/mount.js +2886 -1205
- package/package.json +2 -2
- package/registry/default/files/src/components/seo/Seo.astro +3 -1
- package/registry/default/registry.json +3 -2
package/dist/hosted.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { i as StoreKeyError, n as githubStore, r as StoreError, t as GithubStoreOptions } from "./github-store-
|
|
3
|
-
import {
|
|
4
|
-
import { h as ThemePreviewSource, o as Route } from "./routing-
|
|
1
|
+
import { C as collection, S as CollectionOptions, n as ImageConvertOptions, t as EditorContext, w as ContentStore } from "./editor-context-D1yfPp21.js";
|
|
2
|
+
import { i as StoreKeyError, n as githubStore, r as StoreError, t as GithubStoreOptions } from "./github-store-CuhvbFCh.js";
|
|
3
|
+
import { f as ContentModel, n as PageRules, t as Page } from "./page-CpVElMPH.js";
|
|
4
|
+
import { h as ThemePreviewSource, o as Route } from "./routing-yPy8hEfZ.js";
|
|
5
5
|
//#region src/api.d.ts
|
|
6
6
|
interface HandleMeta {
|
|
7
7
|
/**
|
package/dist/hosted.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as ContentValidationError, a as listingRoute, g as resolveCollections, i as listedEntries, k as ContentReadError, l as collection, o as matchPath, s as normalizePath, t as emptySingle, w as previewRenderers } from "./routing-
|
|
2
|
-
import { t as defaultTheme } from "./theme-
|
|
3
|
-
import {
|
|
4
|
-
import { C as pageKey, D as StoreKeyError, E as StoreError, S as SITE_KEY, f as entryKey, i as LISTING_MIGRATION_TYPE, l as createEntrySchema, m as listingKey, u as createListingSchema, y as resolveTypes } from "./content-types-
|
|
1
|
+
import { A as ContentValidationError, a as listingRoute, g as resolveCollections, i as listedEntries, k as ContentReadError, l as collection, o as matchPath, s as normalizePath, t as emptySingle, w as previewRenderers } from "./routing-jKeq4LwO.js";
|
|
2
|
+
import { t as defaultTheme } from "./theme-DTVVNMlr.js";
|
|
3
|
+
import { i as createTolerantPageSchema, l as slugSchema, r as createPageSchema, s as resolvePageRules, u as withoutOrphanSections } from "./page-C7zE_HD1.js";
|
|
4
|
+
import { C as pageKey, D as StoreKeyError, E as StoreError, S as SITE_KEY, f as entryKey, i as LISTING_MIGRATION_TYPE, l as createEntrySchema, m as listingKey, u as createListingSchema, y as resolveTypes } from "./content-types-46XqPaW4.js";
|
|
5
5
|
import { n as createMigrator } from "./migrate-Cm30puW8.js";
|
|
6
6
|
import { i as resolveMaxImageBytes, r as resolveConvert } from "./upload-rules-Cao9uY5K.js";
|
|
7
|
-
import { f as DEFAULT_VIDEO_BYTE_LIMIT, n as missingImageSvg, r as handleEditorRequest, t as githubStore } from "./github-store-
|
|
7
|
+
import { f as DEFAULT_VIDEO_BYTE_LIMIT, n as missingImageSvg, r as handleEditorRequest, t as githubStore } from "./github-store-B2folBeq.js";
|
|
8
8
|
import { S as isAssetPath } from "./draft-store-DBEfw_Gq.js";
|
|
9
|
-
import { n as AUTH_PREFIX, r as createHostedAuth, t as createHostedMiddleware } from "./hosted-middleware-
|
|
9
|
+
import { n as AUTH_PREFIX, r as createHostedAuth, t as createHostedMiddleware } from "./hosted-middleware-DHLIedeV.js";
|
|
10
10
|
//#region src/hosted-context.ts
|
|
11
11
|
/** The context for `handleEditorRequest`. */
|
|
12
12
|
function createHostedContext(options) {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as collection, S as CollectionOptions, _ as SitePreview, a as CommitRequest, b as ChangedFile, c as CreateEntryRequest, d as EntryListItem, f as HistoryEntry, g as SaveResponse, h as SaveRequest, i as ApiProblem, l as CreatePageRequest, m as PageListItem, o as CommitResult, p as ListMeta, r as ApiIssue, s as ContentTypeInfo, u as DocumentAt, v as UploadedImage, x as GitInfo, y as UploadedVideo } from "./editor-context-D1yfPp21.js";
|
|
2
2
|
import { _ as renderMarkedHtml, a as WeightMark, f as markClass, g as reconcileMarks, i as TextRun, l as fontMarks, m as marksFromEmphasis, o as applyTextMark, r as TextMark, t as FontMark, v as splitMarkedText, y as weightMarks } from "./marks-BzLa48Y9.js";
|
|
3
|
-
import { $ as
|
|
3
|
+
import { $ as WireRect, $t as Tone, A as ListingOptions, At as HeaderConfig, B as multi, Bt as brandLogoSchema, C as SCHEMA_VERSION_KEY, Ct as BRAND_LOGO_HEIGHT, D as Entry, Dt as FooterColumn, E as ContentTypes, Et as Footer, F as SingleType, Ft as SiteDefinition, G as SectionOf, Gt as themeColorsSchema, H as single, Ht as siteAnalyticsSchema, I as SortRule, It as SiteOf, J as sectionIdSchema, Jt as Image, K as anchorSchema, Kt as themeSchema, L as TypeOptions, Lt as SiteSeo, M as ResolvedTypes, Mt as SiteAnalytics, N as SINGLES_COLLECTION, Nt as SiteConfig, O as LISTINGS_COLLECTION, Ot as FooterConfig, P as SingleOptions, Pt as SiteConsent, Q as WireKind, Qt as Text, Rt as SiteWith, S as DocumentKind, St as upsertJsonLd, T as ContentType, Tt as DEFAULT_MAX_HEADER_ACTIONS, U as BaseSection, Ut as siteConsentSchema, V as resolveTypes, Vt as defineSite, W as PropsOf, Wt as siteSeoSchema, X as SectionDefinition, Xt as MAX_NAV_DEPTH, Y as SectionConfig, Yt as Link, Z as defineSection, Zt as RichText, _ as defaultTheme, _n as themeModes, _t as jsonLdSchema, a as Seo, an as textSchema, at as FieldChoices, b as ContentMigrator, bn as variantOption, bt as parseJsonLdInput, c as pageStatusSchema, cn as withEmphasis, ct as ShowWhen, d as API_PREFIX, dn as EnumOption, dt as SiteJsonLdIds, en as htmlIdSchema, et as Wireframe, f as ContentModel, fn as NumberOption, ft as SiteJsonLdSource, g as ThemeFont, gn as motionOption, gt as isPlaceholderSiteUrl, h as ThemeDefinition, hn as buttonStyles, ht as hasJsonLdId, i as SYSTEM_PAGES, in as textMarkSchema, it as OptionalContent, j as MultiType, jt as Site, k as ListingDocument, kt as Header, l as seoSchema, ln as BooleanOption, lt as JsonLdBlock, m as ThemeConfig, mn as StringOption, mt as generateSiteJsonLd, nn as linkSchema, nt as wireKinds, o as createPageSchema, on as toneSchema, ot as FieldIcons, p as SectionRegistry, pn as Option, pt as formatJsonLd, q as createSectionSchema, qt as ButtonStyle, r as PageStatus, rn as richTextSchema, rt as wireframeIssues, s as isSystemPage, sn as trackingIdSchema, st as ShowCondition, t as Page, tn as imageSchema, tt as defineWireframe, u as withoutOrphanSections, un as CountRule, ut as JsonLdResult, v as defineTheme, vn as toneOption, vt as jsonLdWarnings, w as createMigrator, wt as DEFAULT_MAX_FOOTER_COLUMNS, x as ContentVersioning, xt as siteJsonLdIds, y as ContentMigration, yn as tones, yt as mergeJsonLd, z as defineTypes, zt as Theme } from "./page-CpVElMPH.js";
|
|
4
4
|
import { a as TURNSTILE_FIELD, i as HONEYPOT_FIELD, n as FormResult, r as FormSubmission, t as FormFieldErrors } from "./form-contract-BURSJP3Y.js";
|
|
5
|
-
import { a as PathMatch, c as SiteContent, d as matchPath, f as siteRoutes, g as defineThemePreview, i as Pagination, l as findRoute, m as ThemePreview, n as ListingRoute, o as Route, p as SitePreviewHtml, r as PageRoute, s as RouteOptions, t as ListedEntry, u as isDraft } from "./routing-
|
|
5
|
+
import { a as PathMatch, c as SiteContent, d as matchPath, f as siteRoutes, g as defineThemePreview, i as Pagination, l as findRoute, m as ThemePreview, n as ListingRoute, o as Route, p as SitePreviewHtml, r as PageRoute, s as RouteOptions, t as ListedEntry, u as isDraft } from "./routing-yPy8hEfZ.js";
|
|
6
6
|
//#region src/errors.d.ts
|
|
7
7
|
/** One schema problem, addressed by a dot path such as `sections.0.props.heading`. */
|
|
8
8
|
interface ContentIssue {
|
|
@@ -167,4 +167,4 @@ interface ContrastCheck {
|
|
|
167
167
|
/** Text pairs a visitor reads: text on its background, label on the accent fill, link on its background. */
|
|
168
168
|
export declare function contrastChecks(colors: ThemeColors | undefined): ContrastCheck[];
|
|
169
169
|
//#endregion
|
|
170
|
-
export { API_PREFIX, type ApiIssue, type ApiProblem, BRAND_LOGO_HEIGHT, type BaseSection, type BooleanOption, type ButtonStyle, type ChangedFile, type CollectionOptions, type CommitRequest, type CommitResult, type ConsentCopy, type ConsentReopen, type ConsentText, type ConsentTextKey, type ContentIssue, type ContentMigration, type ContentMigrator, type ContentModel, type ContentType, type ContentTypeInfo, type ContentTypes, type ContentVersioning, type ContrastCheck, type CountRule, type CreateEntryRequest, type CreatePageRequest, DEFAULT_MAX_FOOTER_COLUMNS, DEFAULT_MAX_HEADER_ACTIONS, type DocumentAt, type DocumentKind, type Entry, type EntryListItem, type EnumOption, type FieldChoices, type FieldIcons, type FontMark, type Footer, type FooterColumn, type FooterConfig, type FormFieldErrors, type FormResult, type FormSubmission, type GitInfo, HONEYPOT_FIELD, type Header, type HeaderConfig, type HistoryEntry, type Image, type ImageFit, type ImagePosition, type JsonLdBlock, type JsonLdResult, LISTINGS_COLLECTION, type Link, type ListedEntry, type ListingDocument, type ListingOptions, type ListingRoute, MAX_NAV_DEPTH, type MediaSource, type MultiType, type NumberOption, type Option, type OptionalContent, type Page, type PageListItem, type PageRoute, type Pagination, type PathMatch, type PropsOf, type ResolvedTypes, type RichText, type Route, type RouteOptions, SCHEMA_VERSION_KEY, SINGLES_COLLECTION, SYSTEM_PAGES, type SaveRequest, type SaveResponse, type SectionConfig, type SectionDefinition, type SectionOf, type SectionRegistry, type Seo, type ShowCondition, type ShowWhen, type SingleOptions, type SingleType, type Site, type SiteAnalytics, type SiteConfig, type SiteConsent, type SiteContent, type SiteDefinition, type SiteJsonLdIds, type SiteJsonLdSource, type SiteOf, type SitePreview, type SitePreviewHtml, type SiteSeo, type SiteWith, type SortRule, type StringOption, TURNSTILE_FIELD, type Text, type TextMark, type TextRun, type Theme, type ThemeColors, type ThemeConfig, type ThemeDefinition, type ThemeFont, type ThemePreview, type Tone, type TypeOptions, type UploadedImage, type UploadedVideo, type WeightMark, type WireKind, type WireRect, type Wireframe, anchorSchema, applyTextMark, brandLogoSchema, buttonStyles, collection, createMigrator, createPageSchema, createSectionSchema, defaultTheme, defineSection, defineSite, defineTheme, defineThemePreview, defineTypes, defineWireframe, findRoute, fontMarks, formatJsonLd, generateSiteJsonLd, hasJsonLdId, htmlIdSchema, imageSchema, isDraft, isPlaceholderSiteUrl, isSystemPage, jsonLdSchema, jsonLdWarnings, linkSchema, markClass, marksFromEmphasis, matchPath, mergeJsonLd, motionOption, multi, parseJsonLdInput, reconcileMarks, renderMarkedHtml, resolveTypes, richTextSchema, sectionIdSchema, seoSchema, single, siteAnalyticsSchema, siteConsentSchema, siteJsonLdIds, siteRoutes, siteSeoSchema, splitMarkedText, textMarkSchema, textSchema, themeColorsSchema, themeModes, themeSchema, toneOption, toneSchema, tones, trackingIdSchema, upsertJsonLd, variantOption, weightMarks, wireKinds, wireframeIssues, withEmphasis, withoutOrphanSections };
|
|
170
|
+
export { API_PREFIX, type ApiIssue, type ApiProblem, BRAND_LOGO_HEIGHT, type BaseSection, type BooleanOption, type ButtonStyle, type ChangedFile, type CollectionOptions, type CommitRequest, type CommitResult, type ConsentCopy, type ConsentReopen, type ConsentText, type ConsentTextKey, type ContentIssue, type ContentMigration, type ContentMigrator, type ContentModel, type ContentType, type ContentTypeInfo, type ContentTypes, type ContentVersioning, type ContrastCheck, type CountRule, type CreateEntryRequest, type CreatePageRequest, DEFAULT_MAX_FOOTER_COLUMNS, DEFAULT_MAX_HEADER_ACTIONS, type DocumentAt, type DocumentKind, type Entry, type EntryListItem, type EnumOption, type FieldChoices, type FieldIcons, type FontMark, type Footer, type FooterColumn, type FooterConfig, type FormFieldErrors, type FormResult, type FormSubmission, type GitInfo, HONEYPOT_FIELD, type Header, type HeaderConfig, type HistoryEntry, type Image, type ImageFit, type ImagePosition, type JsonLdBlock, type JsonLdResult, LISTINGS_COLLECTION, type Link, type ListMeta, type ListedEntry, type ListingDocument, type ListingOptions, type ListingRoute, MAX_NAV_DEPTH, type MediaSource, type MultiType, type NumberOption, type Option, type OptionalContent, type Page, type PageListItem, type PageRoute, type PageStatus, type Pagination, type PathMatch, type PropsOf, type ResolvedTypes, type RichText, type Route, type RouteOptions, SCHEMA_VERSION_KEY, SINGLES_COLLECTION, SYSTEM_PAGES, type SaveRequest, type SaveResponse, type SectionConfig, type SectionDefinition, type SectionOf, type SectionRegistry, type Seo, type ShowCondition, type ShowWhen, type SingleOptions, type SingleType, type Site, type SiteAnalytics, type SiteConfig, type SiteConsent, type SiteContent, type SiteDefinition, type SiteJsonLdIds, type SiteJsonLdSource, type SiteOf, type SitePreview, type SitePreviewHtml, type SiteSeo, type SiteWith, type SortRule, type StringOption, TURNSTILE_FIELD, type Text, type TextMark, type TextRun, type Theme, type ThemeColors, type ThemeConfig, type ThemeDefinition, type ThemeFont, type ThemePreview, type Tone, type TypeOptions, type UploadedImage, type UploadedVideo, type WeightMark, type WireKind, type WireRect, type Wireframe, anchorSchema, applyTextMark, brandLogoSchema, buttonStyles, collection, createMigrator, createPageSchema, createSectionSchema, defaultTheme, defineSection, defineSite, defineTheme, defineThemePreview, defineTypes, defineWireframe, findRoute, fontMarks, formatJsonLd, generateSiteJsonLd, hasJsonLdId, htmlIdSchema, imageSchema, isDraft, isPlaceholderSiteUrl, isSystemPage, jsonLdSchema, jsonLdWarnings, linkSchema, markClass, marksFromEmphasis, matchPath, mergeJsonLd, motionOption, multi, pageStatusSchema, parseJsonLdInput, reconcileMarks, renderMarkedHtml, resolveTypes, richTextSchema, sectionIdSchema, seoSchema, single, siteAnalyticsSchema, siteConsentSchema, siteJsonLdIds, siteRoutes, siteSeoSchema, splitMarkedText, textMarkSchema, textSchema, themeColorsSchema, themeModes, themeSchema, toneOption, toneSchema, tones, trackingIdSchema, upsertJsonLd, variantOption, weightMarks, wireKinds, wireframeIssues, withEmphasis, withoutOrphanSections };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as ContentValidationError, D as schemaProps, O as ContentError, S as defineThemePreview, T as enumFields, c as siteRoutes, j as formatContentIssues, k as ContentReadError, l as collection, n as findRoute, o as matchPath, r as isDraft } from "./routing-
|
|
2
|
-
import { n as defineTheme, t as defaultTheme } from "./theme-
|
|
3
|
-
import { A as
|
|
1
|
+
import { A as ContentValidationError, D as schemaProps, O as ContentError, S as defineThemePreview, T as enumFields, c as siteRoutes, j as formatContentIssues, k as ContentReadError, l as collection, n as findRoute, o as matchPath, r as isDraft } from "./routing-jKeq4LwO.js";
|
|
2
|
+
import { n as defineTheme, t as defaultTheme } from "./theme-DTVVNMlr.js";
|
|
3
|
+
import { A as imageSchema, B as IMAGE_FITS, C as mergeJsonLd, D as MAX_NAV_DEPTH, E as upsertJsonLd, F as toneSchema, G as buttonStyles, H as isImageFit, I as trackingIdSchema, J as toneOption, K as motionOption, L as withEmphasis, M as richTextSchema, N as textMarkSchema, O as addMarkIssues, P as textSchema, R as DEFAULT_IMAGE_FIT, S as jsonLdWarnings, T as siteJsonLdIds, U as isImagePosition, V as IMAGE_POSITIONS, X as variantOption, Y as tones, _ as formatJsonLd, a as isSystemPage, b as isPlaceholderSiteUrl, c as seoSchema, d as anchorSchema, f as createSectionSchema, g as walkLinkIds, h as sectionIdSchema, j as linkSchema, k as htmlIdSchema, o as pageStatusSchema, q as themeModes, r as createPageSchema, t as SYSTEM_PAGES, u as withoutOrphanSections, v as generateSiteJsonLd, w as parseJsonLdInput, x as jsonLdSchema, y as hasJsonLdId, z as DEFAULT_IMAGE_POSITION } from "./page-C7zE_HD1.js";
|
|
4
4
|
import { d as reconcileMarks, f as renderMarkedHtml, i as fontMarks, l as marksFromEmphasis, m as weightMarks, p as splitMarkedText, s as markClass, t as applyTextMark } from "./marks-DPBilumg.js";
|
|
5
|
-
import { _ as multi, b as single, d as defineTypes, n as LISTINGS_COLLECTION, s as SINGLES_COLLECTION, y as resolveTypes } from "./content-types-
|
|
5
|
+
import { _ as multi, b as single, d as defineTypes, n as LISTINGS_COLLECTION, s as SINGLES_COLLECTION, y as resolveTypes } from "./content-types-46XqPaW4.js";
|
|
6
6
|
import { n as createMigrator, r as API_PREFIX, t as SCHEMA_VERSION_KEY } from "./migrate-Cm30puW8.js";
|
|
7
7
|
import { n as TURNSTILE_FIELD, t as HONEYPOT_FIELD } from "./form-contract-CIDTNab-.js";
|
|
8
8
|
import { _ as consentCopy, a as contrastRatio, b as parseMediaSource, c as hasThemeColors, d as tokenToHex, f as CONSENT_COPY, g as CONSENT_REOPEN, h as CONSENT_LIMITS, i as contrastChecks, l as hexToToken, m as CONSENT_HREF_MESSAGE, n as HEX_COLOR, o as derivePalette, p as CONSENT_HREF, s as hasOverrides, u as themeCss, v as consentTextIssues, y as VIDEO_FILE } from "./theme-colors-CHROGZkI.js";
|
|
@@ -251,7 +251,11 @@ const siteSeoSchema = z.object({
|
|
|
251
251
|
description: z.string().optional(),
|
|
252
252
|
ogImage: z.string().min(1).optional(),
|
|
253
253
|
/** Structured data emitted on every page, such as `Organization` and `WebSite`. A page's own blocks add to it. */
|
|
254
|
-
jsonLd: jsonLdSchema.optional()
|
|
254
|
+
jsonLd: jsonLdSchema.optional(),
|
|
255
|
+
/** `false` asks search engines to stay away: every page gets `noindex` and robots.txt disallows the site. Absent means true. */
|
|
256
|
+
robots: z.boolean().optional(),
|
|
257
|
+
/** `false` leaves `sitemap.xml` out of the build. Absent means true. */
|
|
258
|
+
sitemap: z.boolean().optional()
|
|
255
259
|
}).strict();
|
|
256
260
|
/**
|
|
257
261
|
* Raw HTML snippets for analytics and similar tags. A theme renders `head` at the end of `<head>` and
|
|
@@ -460,4 +464,4 @@ function defineSite(config) {
|
|
|
460
464
|
};
|
|
461
465
|
}
|
|
462
466
|
//#endregion
|
|
463
|
-
export { API_PREFIX, BRAND_LOGO_HEIGHT, CONSENT_COPY, CONSENT_HREF, CONSENT_LIMITS, CONSENT_REOPEN, ContentError, ContentReadError, ContentValidationError, DEFAULT_IMAGE_FIT, DEFAULT_IMAGE_POSITION, DEFAULT_MAX_FOOTER_COLUMNS, DEFAULT_MAX_HEADER_ACTIONS, HEX_COLOR, HONEYPOT_FIELD, IMAGE_FITS, IMAGE_POSITIONS, LISTINGS_COLLECTION, MAX_NAV_DEPTH, SCHEMA_VERSION_KEY, SINGLES_COLLECTION, SYSTEM_PAGES, TURNSTILE_FIELD, VIDEO_FILE, anchorSchema, applyTextMark, brandLogoSchema, buttonStyles, collection, consentCopy, consentTextIssues, contrastChecks, contrastRatio, createMigrator, createPageSchema, createSectionSchema, defaultTheme, defineSection, defineSite, defineTheme, defineThemePreview, defineTypes, defineWireframe, derivePalette, findRoute, fontMarks, formatJsonLd, generateSiteJsonLd, hasJsonLdId, hasOverrides, hasThemeColors, hexToToken, htmlIdSchema, imageSchema, isDraft, isImageFit, isImagePosition, isPlaceholderSiteUrl, isSystemPage, jsonLdSchema, jsonLdWarnings, linkSchema, markClass, marksFromEmphasis, matchPath, mergeJsonLd, motionOption, multi, parseJsonLdInput, parseMediaSource, reconcileMarks, renderMarkedHtml, resolveTypes, richTextSchema, sectionIdSchema, seoSchema, single, siteAnalyticsSchema, siteConsentSchema, siteJsonLdIds, siteRoutes, siteSeoSchema, splitMarkedText, textMarkSchema, textSchema, themeColorsSchema, themeCss, themeModes, themeSchema, tokenToHex, toneOption, toneSchema, tones, trackingIdSchema, upsertJsonLd, variantOption, weightMarks, wireKinds, wireframeIssues, withEmphasis, withoutOrphanSections };
|
|
467
|
+
export { API_PREFIX, BRAND_LOGO_HEIGHT, CONSENT_COPY, CONSENT_HREF, CONSENT_LIMITS, CONSENT_REOPEN, ContentError, ContentReadError, ContentValidationError, DEFAULT_IMAGE_FIT, DEFAULT_IMAGE_POSITION, DEFAULT_MAX_FOOTER_COLUMNS, DEFAULT_MAX_HEADER_ACTIONS, HEX_COLOR, HONEYPOT_FIELD, IMAGE_FITS, IMAGE_POSITIONS, LISTINGS_COLLECTION, MAX_NAV_DEPTH, SCHEMA_VERSION_KEY, SINGLES_COLLECTION, SYSTEM_PAGES, TURNSTILE_FIELD, VIDEO_FILE, anchorSchema, applyTextMark, brandLogoSchema, buttonStyles, collection, consentCopy, consentTextIssues, contrastChecks, contrastRatio, createMigrator, createPageSchema, createSectionSchema, defaultTheme, defineSection, defineSite, defineTheme, defineThemePreview, defineTypes, defineWireframe, derivePalette, findRoute, fontMarks, formatJsonLd, generateSiteJsonLd, hasJsonLdId, hasOverrides, hasThemeColors, hexToToken, htmlIdSchema, imageSchema, isDraft, isImageFit, isImagePosition, isPlaceholderSiteUrl, isSystemPage, jsonLdSchema, jsonLdWarnings, linkSchema, markClass, marksFromEmphasis, matchPath, mergeJsonLd, motionOption, multi, pageStatusSchema, parseJsonLdInput, parseMediaSource, reconcileMarks, renderMarkedHtml, resolveTypes, richTextSchema, sectionIdSchema, seoSchema, single, siteAnalyticsSchema, siteConsentSchema, siteJsonLdIds, siteRoutes, siteSeoSchema, splitMarkedText, textMarkSchema, textSchema, themeColorsSchema, themeCss, themeModes, themeSchema, tokenToHex, toneOption, toneSchema, tones, trackingIdSchema, upsertJsonLd, variantOption, weightMarks, wireKinds, wireframeIssues, withEmphasis, withoutOrphanSections };
|
|
@@ -522,6 +522,8 @@ function resolvePageRules(input) {
|
|
|
522
522
|
function isSystemPage(slug) {
|
|
523
523
|
return SYSTEM_PAGES.includes(slug);
|
|
524
524
|
}
|
|
525
|
+
/** Whether a page is built. A draft is left out of `astro build`, the listings and the sitemap; `astro dev` still shows it. */
|
|
526
|
+
const pageStatusSchema = z.enum(["published", "draft"]);
|
|
525
527
|
const slugSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, "Slug must be lowercase kebab-case (the home page uses \"index\")");
|
|
526
528
|
const cache = /* @__PURE__ */ new WeakMap();
|
|
527
529
|
const tolerantCache = /* @__PURE__ */ new WeakMap();
|
|
@@ -545,6 +547,8 @@ function buildPageSchema(section) {
|
|
|
545
547
|
return z.object({
|
|
546
548
|
slug: slugSchema,
|
|
547
549
|
title: textSchema,
|
|
550
|
+
/** Absent means published, so files from before page status read as they always did. */
|
|
551
|
+
status: pageStatusSchema.optional(),
|
|
548
552
|
seo: seoSchema,
|
|
549
553
|
sections: z.array(section).superRefine((sections, ctx) => {
|
|
550
554
|
addSectionIdentityIssues(sections, ctx);
|
|
@@ -563,4 +567,4 @@ function withoutOrphanSections(page, registry) {
|
|
|
563
567
|
};
|
|
564
568
|
}
|
|
565
569
|
//#endregion
|
|
566
|
-
export {
|
|
570
|
+
export { imageSchema as A, IMAGE_FITS as B, mergeJsonLd as C, MAX_NAV_DEPTH as D, upsertJsonLd as E, toneSchema as F, buttonStyles as G, isImageFit as H, trackingIdSchema as I, toneOption as J, motionOption as K, withEmphasis as L, richTextSchema as M, textMarkSchema as N, addMarkIssues as O, textSchema as P, DEFAULT_IMAGE_FIT as R, jsonLdWarnings as S, siteJsonLdIds as T, isImagePosition as U, IMAGE_POSITIONS as V, withImageLayout as W, variantOption as X, tones as Y, formatJsonLd as _, isSystemPage as a, isPlaceholderSiteUrl as b, seoSchema as c, anchorSchema as d, createSectionSchema as f, walkLinkIds as g, sectionIdSchema as h, createTolerantPageSchema as i, linkSchema as j, htmlIdSchema as k, slugSchema as l, isOrphanSection as m, addSectionIdentityIssues as n, pageStatusSchema as o, createTolerantSectionSchema as p, themeModes as q, createPageSchema as r, resolvePageRules as s, SYSTEM_PAGES as t, withoutOrphanSections as u, generateSiteJsonLd as v, parseJsonLdInput as w, jsonLdSchema as x, hasJsonLdId as y, DEFAULT_IMAGE_POSITION as z };
|
|
@@ -104,10 +104,10 @@ declare const textMarkSchema: z.ZodObject<{
|
|
|
104
104
|
start: z.ZodNumber;
|
|
105
105
|
end: z.ZodNumber;
|
|
106
106
|
weight: z.ZodOptional<z.ZodEnum<{
|
|
107
|
+
bold: "bold";
|
|
107
108
|
regular: "regular";
|
|
108
109
|
medium: "medium";
|
|
109
110
|
semibold: "semibold";
|
|
110
|
-
bold: "bold";
|
|
111
111
|
}>>;
|
|
112
112
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
113
113
|
font: z.ZodOptional<z.ZodEnum<{
|
|
@@ -148,10 +148,10 @@ declare function withEmphasis<T extends z.ZodRawShape>(shape: T): z.ZodPipe<z.Zo
|
|
|
148
148
|
start: z.ZodNumber;
|
|
149
149
|
end: z.ZodNumber;
|
|
150
150
|
weight: z.ZodOptional<z.ZodEnum<{
|
|
151
|
+
bold: "bold";
|
|
151
152
|
regular: "regular";
|
|
152
153
|
medium: "medium";
|
|
153
154
|
semibold: "semibold";
|
|
154
|
-
bold: "bold";
|
|
155
155
|
}>>;
|
|
156
156
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
157
157
|
font: z.ZodOptional<z.ZodEnum<{
|
|
@@ -166,10 +166,10 @@ declare function withEmphasis<T extends z.ZodRawShape>(shape: T): z.ZodPipe<z.Zo
|
|
|
166
166
|
start: z.ZodNumber;
|
|
167
167
|
end: z.ZodNumber;
|
|
168
168
|
weight: z.ZodOptional<z.ZodEnum<{
|
|
169
|
+
bold: "bold";
|
|
169
170
|
regular: "regular";
|
|
170
171
|
medium: "medium";
|
|
171
172
|
semibold: "semibold";
|
|
172
|
-
bold: "bold";
|
|
173
173
|
}>>;
|
|
174
174
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
175
175
|
font: z.ZodOptional<z.ZodEnum<{
|
|
@@ -186,10 +186,10 @@ declare function withEmphasis<T extends z.ZodRawShape>(shape: T): z.ZodPipe<z.Zo
|
|
|
186
186
|
start: z.ZodNumber;
|
|
187
187
|
end: z.ZodNumber;
|
|
188
188
|
weight: z.ZodOptional<z.ZodEnum<{
|
|
189
|
+
bold: "bold";
|
|
189
190
|
regular: "regular";
|
|
190
191
|
medium: "medium";
|
|
191
192
|
semibold: "semibold";
|
|
192
|
-
bold: "bold";
|
|
193
193
|
}>>;
|
|
194
194
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
195
195
|
font: z.ZodOptional<z.ZodEnum<{
|
|
@@ -402,6 +402,8 @@ declare const siteSeoSchema: z.ZodObject<{
|
|
|
402
402
|
description: z.ZodOptional<z.ZodString>;
|
|
403
403
|
ogImage: z.ZodOptional<z.ZodString>;
|
|
404
404
|
jsonLd: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
405
|
+
robots: z.ZodOptional<z.ZodBoolean>;
|
|
406
|
+
sitemap: z.ZodOptional<z.ZodBoolean>;
|
|
405
407
|
}, z.core.$strict>;
|
|
406
408
|
/**
|
|
407
409
|
* Raw HTML snippets for analytics and similar tags. A theme renders `head` at the end of `<head>` and
|
|
@@ -447,10 +449,10 @@ declare function createSiteSchema(header: HeaderParts, footer: FooterParts): z.Z
|
|
|
447
449
|
start: z.ZodNumber;
|
|
448
450
|
end: z.ZodNumber;
|
|
449
451
|
weight: z.ZodOptional<z.ZodEnum<{
|
|
452
|
+
bold: "bold";
|
|
450
453
|
regular: "regular";
|
|
451
454
|
medium: "medium";
|
|
452
455
|
semibold: "semibold";
|
|
453
|
-
bold: "bold";
|
|
454
456
|
}>>;
|
|
455
457
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
456
458
|
font: z.ZodOptional<z.ZodEnum<{
|
|
@@ -513,6 +515,8 @@ declare function createSiteSchema(header: HeaderParts, footer: FooterParts): z.Z
|
|
|
513
515
|
description: z.ZodOptional<z.ZodString>;
|
|
514
516
|
ogImage: z.ZodOptional<z.ZodString>;
|
|
515
517
|
jsonLd: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
518
|
+
robots: z.ZodOptional<z.ZodBoolean>;
|
|
519
|
+
sitemap: z.ZodOptional<z.ZodBoolean>;
|
|
516
520
|
}, z.core.$strict>;
|
|
517
521
|
analytics: z.ZodOptional<z.ZodObject<{
|
|
518
522
|
head: z.ZodOptional<z.ZodString>;
|
|
@@ -683,7 +687,7 @@ declare function createSiteSchema(header: HeaderParts, footer: FooterParts): z.Z
|
|
|
683
687
|
nameMarks: {
|
|
684
688
|
start: number;
|
|
685
689
|
end: number;
|
|
686
|
-
weight?: "
|
|
690
|
+
weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
|
|
687
691
|
italic?: boolean | undefined;
|
|
688
692
|
font?: "sans" | "serif" | "mono" | undefined;
|
|
689
693
|
}[] | undefined;
|
|
@@ -694,6 +698,8 @@ declare function createSiteSchema(header: HeaderParts, footer: FooterParts): z.Z
|
|
|
694
698
|
description?: string | undefined;
|
|
695
699
|
ogImage?: string | undefined;
|
|
696
700
|
jsonLd?: Record<string, unknown>[] | undefined;
|
|
701
|
+
robots?: boolean | undefined;
|
|
702
|
+
sitemap?: boolean | undefined;
|
|
697
703
|
};
|
|
698
704
|
theme: {
|
|
699
705
|
mode: "light" | "dark";
|
|
@@ -831,6 +837,8 @@ declare function createSiteSchema(header: HeaderParts, footer: FooterParts): z.Z
|
|
|
831
837
|
description?: string | undefined;
|
|
832
838
|
ogImage?: string | undefined;
|
|
833
839
|
jsonLd?: Record<string, unknown>[] | undefined;
|
|
840
|
+
robots?: boolean | undefined;
|
|
841
|
+
sitemap?: boolean | undefined;
|
|
834
842
|
};
|
|
835
843
|
theme: {
|
|
836
844
|
mode: "light" | "dark";
|
|
@@ -943,7 +951,7 @@ declare function createSiteSchema(header: HeaderParts, footer: FooterParts): z.Z
|
|
|
943
951
|
nameMarks?: {
|
|
944
952
|
start: number;
|
|
945
953
|
end: number;
|
|
946
|
-
weight?: "
|
|
954
|
+
weight?: "bold" | "regular" | "medium" | "semibold" | undefined;
|
|
947
955
|
italic?: boolean | undefined;
|
|
948
956
|
font?: "sans" | "serif" | "mono" | undefined;
|
|
949
957
|
}[] | undefined;
|
|
@@ -1531,6 +1539,12 @@ interface PageRules {
|
|
|
1531
1539
|
delete: boolean;
|
|
1532
1540
|
}
|
|
1533
1541
|
declare function isSystemPage(slug: string): boolean;
|
|
1542
|
+
/** Whether a page is built. A draft is left out of `astro build`, the listings and the sitemap; `astro dev` still shows it. */
|
|
1543
|
+
declare const pageStatusSchema: z.ZodEnum<{
|
|
1544
|
+
published: "published";
|
|
1545
|
+
draft: "draft";
|
|
1546
|
+
}>;
|
|
1547
|
+
type PageStatus = z.infer<typeof pageStatusSchema>;
|
|
1534
1548
|
/** Validates a page document: its own fields, and every section against the registry. Cached per registry. */
|
|
1535
1549
|
declare function createPageSchema<TRegistry extends SectionRegistry>(registry: TRegistry): z.ZodType<Page<SectionOf<TRegistry>>>;
|
|
1536
1550
|
type Seo = z.infer<typeof seoSchema>;
|
|
@@ -1538,6 +1552,8 @@ type Seo = z.infer<typeof seoSchema>;
|
|
|
1538
1552
|
interface Page<TSection extends BaseSection = BaseSection> {
|
|
1539
1553
|
slug: string;
|
|
1540
1554
|
title: string;
|
|
1555
|
+
/** Absent means published. */
|
|
1556
|
+
status?: PageStatus;
|
|
1541
1557
|
seo: Seo;
|
|
1542
1558
|
sections: TSection[];
|
|
1543
1559
|
}
|
|
@@ -1549,4 +1565,4 @@ declare function withoutOrphanSections<TPage extends {
|
|
|
1549
1565
|
sections: readonly unknown[];
|
|
1550
1566
|
}>(page: TPage, registry: SectionRegistry): TPage;
|
|
1551
1567
|
//#endregion
|
|
1552
|
-
export {
|
|
1568
|
+
export { WireRect as $, Tone as $t, ListingOptions as A, HeaderConfig as At, multi as B, brandLogoSchema as Bt, SCHEMA_VERSION_KEY as C, BRAND_LOGO_HEIGHT as Ct, Entry as D, FooterColumn as Dt, ContentTypes as E, Footer as Et, SingleType as F, SiteDefinition as Ft, SectionOf as G, themeColorsSchema as Gt, single as H, siteAnalyticsSchema as Ht, SortRule as I, SiteOf as It, sectionIdSchema as J, Image as Jt, anchorSchema as K, themeSchema as Kt, TypeOptions as L, SiteSeo as Lt, ResolvedTypes as M, SiteAnalytics as Mt, SINGLES_COLLECTION as N, SiteConfig as Nt, LISTINGS_COLLECTION as O, FooterConfig as Ot, SingleOptions as P, SiteConsent as Pt, WireKind as Q, Text as Qt, TypesInput as R, SiteWith as Rt, DocumentKind as S, upsertJsonLd as St, ContentType as T, DEFAULT_MAX_HEADER_ACTIONS as Tt, BaseSection as U, siteConsentSchema as Ut, resolveTypes as V, defineSite as Vt, PropsOf as W, siteSeoSchema as Wt, SectionDefinition as X, MAX_NAV_DEPTH as Xt, SectionConfig as Y, Link as Yt, defineSection as Z, RichText as Zt, defaultTheme as _, themeModes as _n, jsonLdSchema as _t, Seo as a, textSchema as an, FieldChoices as at, ContentMigrator as b, variantOption as bn, parseJsonLdInput as bt, pageStatusSchema as c, withEmphasis as cn, ShowWhen as ct, API_PREFIX as d, EnumOption as dn, SiteJsonLdIds as dt, htmlIdSchema as en, Wireframe as et, ContentModel as f, NumberOption as fn, SiteJsonLdSource as ft, ThemeFont as g, motionOption as gn, isPlaceholderSiteUrl as gt, ThemeDefinition as h, buttonStyles as hn, hasJsonLdId as ht, SYSTEM_PAGES as i, textMarkSchema as in, OptionalContent as it, MultiType as j, Site as jt, ListingDocument as k, Header as kt, seoSchema as l, BooleanOption as ln, JsonLdBlock as lt, ThemeConfig as m, StringOption as mn, generateSiteJsonLd as mt, PageRules as n, linkSchema as nn, wireKinds as nt, createPageSchema as o, toneSchema as on, FieldIcons as ot, SectionRegistry as p, Option as pn, formatJsonLd as pt, createSectionSchema as q, ButtonStyle as qt, PageStatus as r, richTextSchema as rn, wireframeIssues as rt, isSystemPage as s, trackingIdSchema as sn, ShowCondition as st, Page as t, imageSchema as tn, defineWireframe as tt, withoutOrphanSections as u, CountRule as un, JsonLdResult as ut, defineTheme as v, toneOption as vn, jsonLdWarnings as vt, createMigrator as w, DEFAULT_MAX_FOOTER_COLUMNS as wt, ContentVersioning as x, siteJsonLdIds as xt, ContentMigration as y, tones as yn, mergeJsonLd as yt, defineTypes as z, Theme as zt };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as fieldKey } from "./theme-
|
|
2
|
-
import {
|
|
3
|
-
import { T as repoKey, g as listingPath, h as listingPageCount, p as entryPath, t as HOME_SLUG, x as sortEntries, y as resolveTypes } from "./content-types-
|
|
1
|
+
import { r as fieldKey } from "./theme-DTVVNMlr.js";
|
|
2
|
+
import { i as createTolerantPageSchema, l as slugSchema } from "./page-C7zE_HD1.js";
|
|
3
|
+
import { T as repoKey, g as listingPath, h as listingPageCount, p as entryPath, t as HOME_SLUG, x as sortEntries, y as resolveTypes } from "./content-types-46XqPaW4.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { fromMarkdown } from "mdast-util-from-markdown";
|
|
6
6
|
import { gfmFromMarkdown } from "mdast-util-gfm";
|
|
@@ -725,9 +725,12 @@ const emptySeo = (title) => ({
|
|
|
725
725
|
noindex: false,
|
|
726
726
|
nofollow: false
|
|
727
727
|
});
|
|
728
|
-
/**
|
|
728
|
+
/**
|
|
729
|
+
* A document that is not ready to be published: its status is `draft`, or its type declares a `draft` field and it is
|
|
730
|
+
* on. A build leaves it out of the routes, the listings and the sitemap.
|
|
731
|
+
*/
|
|
729
732
|
function isDraft(entry) {
|
|
730
|
-
return entry.fields?.draft === true;
|
|
733
|
+
return entry.status === "draft" || entry.fields?.draft === true;
|
|
731
734
|
}
|
|
732
735
|
/** What a declared single shows before it has been saved once: its label and nothing else. */
|
|
733
736
|
function emptySingle(type) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as Entry, F as SingleType, G as SectionOf, It as SiteOf, M as ResolvedTypes, R as TypesInput, f as ContentModel, j as MultiType, k as ListingDocument } from "./page-CpVElMPH.js";
|
|
2
2
|
//#region src/preview.d.ts
|
|
3
3
|
/** The header and footer of a draft site, as HTML. */
|
|
4
4
|
interface SitePreviewHtml {
|
|
@@ -100,8 +100,12 @@ interface RouteOptions {
|
|
|
100
100
|
/** Include entries whose `fields.draft` is true. For `astro dev` and the editor; a build leaves them out. */
|
|
101
101
|
drafts?: boolean;
|
|
102
102
|
}
|
|
103
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* A document that is not ready to be published: its status is `draft`, or its type declares a `draft` field and it is
|
|
105
|
+
* on. A build leaves it out of the routes, the listings and the sitemap.
|
|
106
|
+
*/
|
|
104
107
|
declare function isDraft(entry: {
|
|
108
|
+
status?: string;
|
|
105
109
|
fields?: Record<string, unknown>;
|
|
106
110
|
}): boolean;
|
|
107
111
|
/**
|