@conloca/astro-cms 0.1.16 → 0.2.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/README.md +250 -298
- package/dist/internal/acorn-default.mjs +11 -3
- package/dist/internal/page-handler.astro +137 -358
- package/dist/ts/node/content.d.ts +4 -0
- package/dist/ts/node/content.d.ts.map +1 -0
- package/dist/ts/node/content.js +3 -0
- package/dist/ts/node/content.js.map +1 -0
- package/dist/ts/node/index.d.ts +9 -0
- package/dist/ts/node/index.d.ts.map +1 -0
- package/dist/ts/node/index.js +14 -0
- package/dist/ts/node/index.js.map +1 -0
- package/dist/ts/src/asset-ref-base.d.ts +3 -0
- package/dist/ts/src/asset-ref-base.d.ts.map +1 -0
- package/dist/ts/src/asset-ref-base.js +48 -0
- package/dist/ts/src/asset-ref-base.js.map +1 -0
- package/dist/ts/src/checks.d.ts +7 -0
- package/dist/ts/src/checks.d.ts.map +1 -0
- package/dist/ts/src/checks.js +7 -0
- package/dist/ts/src/checks.js.map +1 -0
- package/dist/{src → ts/src}/cms-handler.d.ts +0 -1
- package/dist/ts/src/cms-handler.d.ts.map +1 -0
- package/dist/{src → ts/src}/cms-handler.js +9 -130
- package/dist/ts/src/cms-handler.js.map +1 -0
- package/dist/ts/src/collections.d.ts +160 -0
- package/dist/ts/src/collections.d.ts.map +1 -0
- package/dist/ts/src/collections.js +170 -0
- package/dist/ts/src/collections.js.map +1 -0
- package/dist/{src → ts/src}/components/HydrationWrapper.d.ts +1 -1
- package/dist/ts/src/components/HydrationWrapper.d.ts.map +1 -0
- package/dist/{src → ts/src}/components/HydrationWrapper.js +1 -0
- package/dist/ts/src/components/HydrationWrapper.js.map +1 -0
- package/dist/{src/components/RenderWithBlocks.d.ts → ts/src/components/RenderWithFragments.d.ts} +8 -4
- package/dist/ts/src/components/RenderWithFragments.d.ts.map +1 -0
- package/dist/ts/src/components/RenderWithFragments.js +133 -0
- package/dist/ts/src/components/RenderWithFragments.js.map +1 -0
- package/dist/{src → ts/src}/components/RenderWithHydration.d.ts +6 -2
- package/dist/ts/src/components/RenderWithHydration.d.ts.map +1 -0
- package/dist/{src → ts/src}/components/RenderWithHydration.js +6 -3
- package/dist/ts/src/components/RenderWithHydration.js.map +1 -0
- package/dist/ts/src/components.d.ts +4 -0
- package/dist/ts/src/components.d.ts.map +1 -0
- package/dist/ts/src/components.js +4 -0
- package/dist/ts/src/components.js.map +1 -0
- package/dist/ts/src/discovery/astro-frontmatter.d.ts.map +1 -0
- package/dist/{src → ts/src}/discovery/astro-frontmatter.js +1 -0
- package/dist/ts/src/discovery/astro-frontmatter.js.map +1 -0
- package/dist/ts/src/discovery/discover.d.ts +43 -0
- package/dist/ts/src/discovery/discover.d.ts.map +1 -0
- package/dist/ts/src/discovery/discover.js +87 -0
- package/dist/ts/src/discovery/discover.js.map +1 -0
- package/dist/ts/src/discovery/extract-props-ts.d.ts.map +1 -0
- package/dist/{src → ts/src}/discovery/extract-props-ts.js +1 -0
- package/dist/ts/src/discovery/extract-props-ts.js.map +1 -0
- package/dist/{src → ts/src}/discovery/merge-registry.d.ts +3 -3
- package/dist/ts/src/discovery/merge-registry.d.ts.map +1 -0
- package/dist/{src → ts/src}/discovery/merge-registry.js +1 -0
- package/dist/ts/src/discovery/merge-registry.js.map +1 -0
- package/dist/ts/src/discovery/registry-endpoint.d.ts +27 -0
- package/dist/ts/src/discovery/registry-endpoint.d.ts.map +1 -0
- package/dist/ts/src/discovery/registry-endpoint.js +76 -0
- package/dist/ts/src/discovery/registry-endpoint.js.map +1 -0
- package/dist/{src → ts/src}/discovery/scan-components.d.ts +3 -7
- package/dist/ts/src/discovery/scan-components.d.ts.map +1 -0
- package/dist/{src → ts/src}/discovery/scan-components.js +4 -6
- package/dist/ts/src/discovery/scan-components.js.map +1 -0
- package/dist/ts/src/discovery/scan-mdx.d.ts.map +1 -0
- package/dist/{src → ts/src}/discovery/scan-mdx.js +1 -0
- package/dist/ts/src/discovery/scan-mdx.js.map +1 -0
- package/dist/ts/src/discovery/scan-overrides.d.ts.map +1 -0
- package/dist/{src → ts/src}/discovery/scan-overrides.js +1 -0
- package/dist/ts/src/discovery/scan-overrides.js.map +1 -0
- package/dist/ts/src/editor-descriptors.d.ts +31 -0
- package/dist/ts/src/editor-descriptors.d.ts.map +1 -0
- package/dist/ts/src/editor-descriptors.js +84 -0
- package/dist/ts/src/editor-descriptors.js.map +1 -0
- package/dist/ts/src/handlers/collection-content-api.d.ts +32 -0
- package/dist/ts/src/handlers/collection-content-api.d.ts.map +1 -0
- package/dist/ts/src/handlers/collection-content-api.js +166 -0
- package/dist/ts/src/handlers/collection-content-api.js.map +1 -0
- package/dist/ts/src/handlers/page-render-core.d.ts +137 -0
- package/dist/ts/src/handlers/page-render-core.d.ts.map +1 -0
- package/dist/ts/src/handlers/page-render-core.js +315 -0
- package/dist/ts/src/handlers/page-render-core.js.map +1 -0
- package/dist/ts/src/hydration.d.ts.map +1 -0
- package/dist/{src → ts/src}/hydration.js +1 -0
- package/dist/ts/src/hydration.js.map +1 -0
- package/dist/ts/src/index.d.ts +21 -0
- package/dist/ts/src/index.d.ts.map +1 -0
- package/dist/ts/src/index.js +45 -0
- package/dist/ts/src/index.js.map +1 -0
- package/dist/ts/src/internal/declared-collections.d.ts +30 -0
- package/dist/ts/src/internal/declared-collections.d.ts.map +1 -0
- package/dist/ts/src/internal/declared-collections.js +84 -0
- package/dist/ts/src/internal/declared-collections.js.map +1 -0
- package/dist/ts/src/internal/page-collection-schema.d.ts +44 -0
- package/dist/ts/src/internal/page-collection-schema.d.ts.map +1 -0
- package/dist/ts/src/internal/page-collection-schema.js +152 -0
- package/dist/ts/src/internal/page-collection-schema.js.map +1 -0
- package/dist/ts/src/lib/content-config-guard.d.ts +11 -0
- package/dist/ts/src/lib/content-config-guard.d.ts.map +1 -0
- package/dist/ts/src/lib/content-config-guard.js +41 -0
- package/dist/ts/src/lib/content-config-guard.js.map +1 -0
- package/dist/ts/src/lib/hydration-scanner.d.ts.map +1 -0
- package/dist/{src → ts/src}/lib/hydration-scanner.js +1 -0
- package/dist/ts/src/lib/hydration-scanner.js.map +1 -0
- package/dist/ts/src/lib/hydration-script.d.ts.map +1 -0
- package/dist/{src → ts/src}/lib/hydration-script.js +1 -0
- package/dist/ts/src/lib/hydration-script.js.map +1 -0
- package/dist/ts/src/lib/hydration-utils.d.ts.map +1 -0
- package/dist/{src → ts/src}/lib/hydration-utils.js +1 -0
- package/dist/ts/src/lib/hydration-utils.js.map +1 -0
- package/dist/ts/src/lib/resolve-locale.d.ts +15 -0
- package/dist/ts/src/lib/resolve-locale.d.ts.map +1 -0
- package/dist/ts/src/lib/resolve-locale.js +16 -0
- package/dist/ts/src/lib/resolve-locale.js.map +1 -0
- package/dist/ts/src/lib/resolve-site-name.d.ts +8 -0
- package/dist/ts/src/lib/resolve-site-name.d.ts.map +1 -0
- package/dist/ts/src/lib/resolve-site-name.js +12 -0
- package/dist/ts/src/lib/resolve-site-name.js.map +1 -0
- package/dist/{src → ts/src}/lib/route-utils.d.ts +26 -6
- package/dist/ts/src/lib/route-utils.d.ts.map +1 -0
- package/dist/{src → ts/src}/lib/route-utils.js +33 -15
- package/dist/ts/src/lib/route-utils.js.map +1 -0
- package/dist/{src → ts/src}/lib/routing-config.d.ts +7 -1
- package/dist/ts/src/lib/routing-config.d.ts.map +1 -0
- package/dist/{src → ts/src}/lib/routing-config.js +13 -0
- package/dist/ts/src/lib/routing-config.js.map +1 -0
- package/dist/ts/src/lib/serialize-props.d.ts.map +1 -0
- package/dist/{src → ts/src}/lib/serialize-props.js +1 -0
- package/dist/ts/src/lib/serialize-props.js.map +1 -0
- package/dist/ts/src/lib/unknown-components.d.ts +21 -0
- package/dist/ts/src/lib/unknown-components.d.ts.map +1 -0
- package/dist/ts/src/lib/unknown-components.js +49 -0
- package/dist/ts/src/lib/unknown-components.js.map +1 -0
- package/dist/{src → ts/src}/lib/virtual-module-generators.d.ts +0 -24
- package/dist/ts/src/lib/virtual-module-generators.d.ts.map +1 -0
- package/dist/ts/src/lib/virtual-module-generators.js +51 -0
- package/dist/ts/src/lib/virtual-module-generators.js.map +1 -0
- package/dist/ts/src/lib/withHydration.d.ts.map +1 -0
- package/dist/{src → ts/src}/lib/withHydration.js +1 -0
- package/dist/ts/src/lib/withHydration.js.map +1 -0
- package/dist/ts/src/loader.d.ts +27 -0
- package/dist/ts/src/loader.d.ts.map +1 -0
- package/dist/{src → ts/src}/loader.js +33 -4
- package/dist/ts/src/loader.js.map +1 -0
- package/dist/ts/src/locales-helpers.d.ts.map +1 -0
- package/dist/{src → ts/src}/locales-helpers.js +1 -0
- package/dist/ts/src/locales-helpers.js.map +1 -0
- package/dist/ts/src/mime-types.d.ts.map +1 -0
- package/dist/{src → ts/src}/mime-types.js +1 -0
- package/dist/ts/src/mime-types.js.map +1 -0
- package/dist/ts/src/page-feed.d.ts +13 -0
- package/dist/ts/src/page-feed.d.ts.map +1 -0
- package/dist/ts/src/page-feed.js +20 -0
- package/dist/ts/src/page-feed.js.map +1 -0
- package/dist/ts/src/page-schemas.d.ts +6 -0
- package/dist/ts/src/page-schemas.d.ts.map +1 -0
- package/dist/ts/src/page-schemas.js +6 -0
- package/dist/ts/src/page-schemas.js.map +1 -0
- package/dist/ts/src/path-validation.d.ts.map +1 -0
- package/dist/{src → ts/src}/path-validation.js +1 -0
- package/dist/ts/src/path-validation.js.map +1 -0
- package/dist/{src → ts/src}/plugin-spa.d.ts +28 -10
- package/dist/ts/src/plugin-spa.d.ts.map +1 -0
- package/dist/{src → ts/src}/plugin-spa.js +280 -87
- package/dist/ts/src/plugin-spa.js.map +1 -0
- package/dist/ts/src/puck-manifest/components-endpoint.d.ts +30 -0
- package/dist/ts/src/puck-manifest/components-endpoint.d.ts.map +1 -0
- package/dist/ts/src/puck-manifest/components-endpoint.js +54 -0
- package/dist/ts/src/puck-manifest/components-endpoint.js.map +1 -0
- package/dist/ts/src/puck-manifest/field-projection.d.ts +91 -0
- package/dist/ts/src/puck-manifest/field-projection.d.ts.map +1 -0
- package/dist/ts/src/puck-manifest/field-projection.js +422 -0
- package/dist/ts/src/puck-manifest/field-projection.js.map +1 -0
- package/dist/ts/src/puck-manifest/index.d.ts +4 -0
- package/dist/ts/src/puck-manifest/index.d.ts.map +1 -0
- package/dist/ts/src/puck-manifest/index.js +3 -0
- package/dist/ts/src/puck-manifest/index.js.map +1 -0
- package/dist/ts/src/puck-manifest/literal.d.ts +163 -0
- package/dist/ts/src/puck-manifest/literal.d.ts.map +1 -0
- package/dist/ts/src/puck-manifest/literal.js +354 -0
- package/dist/ts/src/puck-manifest/literal.js.map +1 -0
- package/dist/ts/src/puck-manifest/read-config.d.ts +42 -0
- package/dist/ts/src/puck-manifest/read-config.d.ts.map +1 -0
- package/dist/ts/src/puck-manifest/read-config.js +517 -0
- package/dist/ts/src/puck-manifest/read-config.js.map +1 -0
- package/dist/ts/src/puck-manifest/read-field.d.ts +7 -0
- package/dist/ts/src/puck-manifest/read-field.d.ts.map +1 -0
- package/dist/ts/src/puck-manifest/read-field.js +11 -0
- package/dist/ts/src/puck-manifest/read-field.js.map +1 -0
- package/dist/ts/src/puck-manifest/read-wrapper.d.ts +147 -0
- package/dist/ts/src/puck-manifest/read-wrapper.d.ts.map +1 -0
- package/dist/ts/src/puck-manifest/read-wrapper.js +889 -0
- package/dist/ts/src/puck-manifest/read-wrapper.js.map +1 -0
- package/dist/ts/src/puck-manifest/reading-budget.d.ts +50 -0
- package/dist/ts/src/puck-manifest/reading-budget.d.ts.map +1 -0
- package/dist/ts/src/puck-manifest/reading-budget.js +113 -0
- package/dist/ts/src/puck-manifest/reading-budget.js.map +1 -0
- package/dist/ts/src/puck-manifest/resolve-reference.d.ts +4 -0
- package/dist/ts/src/puck-manifest/resolve-reference.d.ts.map +1 -0
- package/dist/ts/src/puck-manifest/resolve-reference.js +4 -0
- package/dist/ts/src/puck-manifest/resolve-reference.js.map +1 -0
- package/dist/ts/src/puck-manifest/source-reference.d.ts +96 -0
- package/dist/ts/src/puck-manifest/source-reference.d.ts.map +1 -0
- package/dist/ts/src/puck-manifest/source-reference.js +424 -0
- package/dist/ts/src/puck-manifest/source-reference.js.map +1 -0
- package/dist/ts/src/puck-manifest/syntax.d.ts +29 -0
- package/dist/ts/src/puck-manifest/syntax.d.ts.map +1 -0
- package/dist/ts/src/puck-manifest/syntax.js +79 -0
- package/dist/ts/src/puck-manifest/syntax.js.map +1 -0
- package/dist/ts/src/puck-manifest/types.d.ts +145 -0
- package/dist/ts/src/puck-manifest/types.d.ts.map +1 -0
- package/dist/ts/src/puck-manifest/types.js +2 -0
- package/dist/ts/src/puck-manifest/types.js.map +1 -0
- package/dist/ts/src/safe-json-stringify.d.ts.map +1 -0
- package/dist/{src → ts/src}/safe-json-stringify.js +1 -0
- package/dist/ts/src/safe-json-stringify.js.map +1 -0
- package/dist/ts/src/sandbox-frame-handler.d.ts +19 -0
- package/dist/ts/src/sandbox-frame-handler.d.ts.map +1 -0
- package/dist/ts/src/sandbox-frame-handler.js +27 -0
- package/dist/ts/src/sandbox-frame-handler.js.map +1 -0
- package/dist/{src → ts/src}/site-styles/content-wrapper-endpoint.d.ts +2 -5
- package/dist/ts/src/site-styles/content-wrapper-endpoint.d.ts.map +1 -0
- package/dist/{src → ts/src}/site-styles/content-wrapper-endpoint.js +5 -8
- package/dist/ts/src/site-styles/content-wrapper-endpoint.js.map +1 -0
- package/dist/{src → ts/src}/site-styles/render-endpoint.d.ts +4 -9
- package/dist/ts/src/site-styles/render-endpoint.d.ts.map +1 -0
- package/dist/{src → ts/src}/site-styles/render-endpoint.js +1 -0
- package/dist/ts/src/site-styles/render-endpoint.js.map +1 -0
- package/dist/{src → ts/src}/site-styles/styles-endpoint.d.ts +2 -4
- package/dist/ts/src/site-styles/styles-endpoint.d.ts.map +1 -0
- package/dist/{src → ts/src}/site-styles/styles-endpoint.js +3 -5
- package/dist/ts/src/site-styles/styles-endpoint.js.map +1 -0
- package/dist/ts/src/sitemap-options.d.ts +21 -0
- package/dist/ts/src/sitemap-options.d.ts.map +1 -0
- package/dist/ts/src/sitemap-options.js +92 -0
- package/dist/ts/src/sitemap-options.js.map +1 -0
- package/dist/ts/src/tiptap-html-static.d.ts +15 -0
- package/dist/ts/src/tiptap-html-static.d.ts.map +1 -0
- package/dist/ts/src/tiptap-html-static.js +67 -0
- package/dist/ts/src/tiptap-html-static.js.map +1 -0
- package/dist/{src → ts/src}/types.d.ts +26 -110
- package/dist/ts/src/types.d.ts.map +1 -0
- package/dist/ts/src/types.js +2 -0
- package/dist/ts/src/types.js.map +1 -0
- package/dist/virtual-modules.d.ts +12 -93
- package/node/content.ts +14 -0
- package/node/index.ts +22 -0
- package/package.json +159 -73
- package/src/asset-ref-base.ts +48 -0
- package/src/checks.ts +10 -0
- package/src/cms-handler.ts +280 -0
- package/src/collections.ts +262 -0
- package/src/components/HydrationWrapper.tsx +41 -0
- package/src/components/RenderWithFragments.tsx +204 -0
- package/src/components/RenderWithHydration.tsx +55 -0
- package/src/components.ts +3 -0
- package/src/discovery/astro-frontmatter.ts +24 -0
- package/src/discovery/discover.ts +108 -0
- package/src/discovery/extract-props-ts.ts +255 -0
- package/src/discovery/merge-registry.ts +411 -0
- package/src/discovery/registry-endpoint.ts +80 -0
- package/src/discovery/scan-components.ts +458 -0
- package/src/discovery/scan-mdx.ts +190 -0
- package/src/discovery/scan-overrides.ts +92 -0
- package/src/editor-descriptors.ts +96 -0
- package/src/env.d.ts +31 -0
- package/src/handlers/collection-content-api.ts +196 -0
- package/src/handlers/page-handler.astro +320 -0
- package/src/handlers/page-render-core.ts +456 -0
- package/src/hydration.ts +7 -0
- package/src/index.ts +111 -0
- package/src/internal/acorn-default.mjs +37 -0
- package/src/internal/declared-collections.ts +98 -0
- package/src/internal/page-collection-schema.ts +210 -0
- package/src/lib/content-config-guard.ts +48 -0
- package/src/lib/hydration-scanner.ts +176 -0
- package/src/lib/hydration-script.ts +126 -0
- package/src/lib/hydration-utils.ts +120 -0
- package/src/lib/resolve-locale.ts +22 -0
- package/src/lib/resolve-site-name.ts +10 -0
- package/src/lib/route-utils.ts +106 -0
- package/src/lib/routing-config.ts +126 -0
- package/src/lib/serialize-props.ts +7 -0
- package/src/lib/unknown-components.ts +64 -0
- package/src/lib/virtual-module-generators.ts +58 -0
- package/{dist/withHydration-DkKpkmzJ.d.mts → src/lib/withHydration.ts} +25 -8
- package/src/loader.ts +145 -0
- package/{dist/locales-helpers-BvYYqnJ5.d.mts → src/locales-helpers.ts} +21 -17
- package/src/mime-types.ts +19 -0
- package/src/page-feed.ts +26 -0
- package/src/page-schemas.ts +19 -0
- package/src/path-validation.ts +13 -0
- package/src/plugin-spa.ts +1480 -0
- package/src/puck-manifest/components-endpoint.ts +55 -0
- package/src/puck-manifest/field-projection.ts +510 -0
- package/src/puck-manifest/index.ts +3 -0
- package/src/puck-manifest/literal.ts +459 -0
- package/src/puck-manifest/read-config.ts +577 -0
- package/src/puck-manifest/read-field.ts +19 -0
- package/src/puck-manifest/read-wrapper.ts +1056 -0
- package/src/puck-manifest/reading-budget.ts +127 -0
- package/src/puck-manifest/resolve-reference.ts +9 -0
- package/src/puck-manifest/source-reference.ts +484 -0
- package/src/puck-manifest/syntax.ts +104 -0
- package/src/puck-manifest/types.ts +139 -0
- package/src/safe-json-stringify.ts +17 -0
- package/src/sandbox-frame-handler.ts +31 -0
- package/src/site-styles/content-wrapper-endpoint.ts +327 -0
- package/src/site-styles/render-endpoint.ts +331 -0
- package/src/site-styles/styles-endpoint.ts +184 -0
- package/src/sitemap-options.ts +115 -0
- package/src/tiptap-html-static.ts +84 -0
- package/{dist/types-CS9neadI.d.mts → src/types.ts} +87 -124
- package/src/virtual-modules.d.ts +74 -0
- package/dist/collections-Bd7EME4b.mjs +0 -129
- package/dist/collections-Bd7EME4b.mjs.map +0 -1
- package/dist/collections.d.mts +0 -35
- package/dist/collections.d.mts.map +0 -1
- package/dist/collections.mjs +0 -2
- package/dist/components.d.mts +0 -41
- package/dist/components.d.mts.map +0 -1
- package/dist/components.mjs +0 -223
- package/dist/components.mjs.map +0 -1
- package/dist/hydration.d.mts +0 -4
- package/dist/hydration.mjs +0 -2
- package/dist/index.d.mts +0 -108
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -67
- package/dist/index.mjs.map +0 -1
- package/dist/internal/cms-handler.d.mts +0 -25
- package/dist/internal/cms-handler.d.mts.map +0 -1
- package/dist/internal/cms-handler.mjs +0 -314
- package/dist/internal/cms-handler.mjs.map +0 -1
- package/dist/lib/hydration-script.d.mts +0 -30
- package/dist/lib/hydration-script.d.mts.map +0 -1
- package/dist/lib/hydration-script.mjs +0 -84
- package/dist/lib/hydration-script.mjs.map +0 -1
- package/dist/locales-helpers-BvYYqnJ5.d.mts.map +0 -1
- package/dist/locales-helpers-qiwh7nxS.mjs +0 -54
- package/dist/locales-helpers-qiwh7nxS.mjs.map +0 -1
- package/dist/node/content.d.mts +0 -18
- package/dist/node/content.d.mts.map +0 -1
- package/dist/node/content.d.ts +0 -3
- package/dist/node/content.d.ts.map +0 -1
- package/dist/node/content.js +0 -2
- package/dist/node/content.mjs +0 -2
- package/dist/node/index.d.mts +0 -200
- package/dist/node/index.d.mts.map +0 -1
- package/dist/node/index.d.ts +0 -4
- package/dist/node/index.d.ts.map +0 -1
- package/dist/node/index.js +0 -3
- package/dist/node/index.mjs +0 -2513
- package/dist/node/index.mjs.map +0 -1
- package/dist/serialize-props-BHoNpzH6.mjs +0 -72
- package/dist/serialize-props-BHoNpzH6.mjs.map +0 -1
- package/dist/src/cms-handler.d.ts.map +0 -1
- package/dist/src/collections.d.ts +0 -32
- package/dist/src/collections.d.ts.map +0 -1
- package/dist/src/collections.js +0 -50
- package/dist/src/components/HydrationWrapper.d.ts.map +0 -1
- package/dist/src/components/RenderWithBlocks.d.ts.map +0 -1
- package/dist/src/components/RenderWithBlocks.js +0 -129
- package/dist/src/components/RenderWithHydration.d.ts.map +0 -1
- package/dist/src/components.d.ts +0 -4
- package/dist/src/components.d.ts.map +0 -1
- package/dist/src/components.js +0 -3
- package/dist/src/discovery/astro-frontmatter.d.ts.map +0 -1
- package/dist/src/discovery/extract-props-ts.d.ts.map +0 -1
- package/dist/src/discovery/merge-registry.d.ts.map +0 -1
- package/dist/src/discovery/registry-endpoint.d.ts +0 -42
- package/dist/src/discovery/registry-endpoint.d.ts.map +0 -1
- package/dist/src/discovery/registry-endpoint.js +0 -81
- package/dist/src/discovery/scan-components.d.ts.map +0 -1
- package/dist/src/discovery/scan-mdx.d.ts.map +0 -1
- package/dist/src/discovery/scan-overrides.d.ts.map +0 -1
- package/dist/src/hydration.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -11
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -25
- package/dist/src/lib/hydration-scanner.d.ts.map +0 -1
- package/dist/src/lib/hydration-script.d.ts.map +0 -1
- package/dist/src/lib/hydration-utils.d.ts.map +0 -1
- package/dist/src/lib/page-api.d.ts +0 -77
- package/dist/src/lib/page-api.d.ts.map +0 -1
- package/dist/src/lib/page-api.js +0 -121
- package/dist/src/lib/route-utils.d.ts.map +0 -1
- package/dist/src/lib/routing-config.d.ts.map +0 -1
- package/dist/src/lib/serialize-props.d.ts.map +0 -1
- package/dist/src/lib/virtual-module-generators.d.ts.map +0 -1
- package/dist/src/lib/virtual-module-generators.js +0 -263
- package/dist/src/lib/withHydration.d.ts.map +0 -1
- package/dist/src/loader.d.ts +0 -14
- package/dist/src/loader.d.ts.map +0 -1
- package/dist/src/locales-helpers.d.ts.map +0 -1
- package/dist/src/mime-types.d.ts.map +0 -1
- package/dist/src/path-validation.d.ts.map +0 -1
- package/dist/src/plugin-spa.d.ts.map +0 -1
- package/dist/src/safe-json-stringify.d.ts.map +0 -1
- package/dist/src/site-styles/content-wrapper-endpoint.d.ts.map +0 -1
- package/dist/src/site-styles/render-endpoint.d.ts.map +0 -1
- package/dist/src/site-styles/styles-endpoint.d.ts.map +0 -1
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/types.js +0 -1
- package/dist/types-CS9neadI.d.mts.map +0 -1
- package/dist/withHydration-C256ox_6.mjs +0 -49
- package/dist/withHydration-C256ox_6.mjs.map +0 -1
- package/dist/withHydration-DkKpkmzJ.d.mts.map +0 -1
- /package/dist/{src → ts/src}/discovery/astro-frontmatter.d.ts +0 -0
- /package/dist/{src → ts/src}/discovery/extract-props-ts.d.ts +0 -0
- /package/dist/{src → ts/src}/discovery/scan-mdx.d.ts +0 -0
- /package/dist/{src → ts/src}/discovery/scan-overrides.d.ts +0 -0
- /package/dist/{src → ts/src}/hydration.d.ts +0 -0
- /package/dist/{src → ts/src}/lib/hydration-scanner.d.ts +0 -0
- /package/dist/{src → ts/src}/lib/hydration-script.d.ts +0 -0
- /package/dist/{src → ts/src}/lib/hydration-utils.d.ts +0 -0
- /package/dist/{src → ts/src}/lib/serialize-props.d.ts +0 -0
- /package/dist/{src → ts/src}/lib/withHydration.d.ts +0 -0
- /package/dist/{src → ts/src}/locales-helpers.d.ts +0 -0
- /package/dist/{src → ts/src}/mime-types.d.ts +0 -0
- /package/dist/{src → ts/src}/path-validation.d.ts +0 -0
- /package/dist/{src → ts/src}/safe-json-stringify.d.ts +0 -0
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
//#region src/locales-helpers.ts
|
|
2
|
-
/**
|
|
3
|
-
* Translate Astro's native `i18n` config into Conloca's locale shape.
|
|
4
|
-
*
|
|
5
|
-
* Astro 4+ accepts both bare strings and `{ codes, path }` objects in
|
|
6
|
-
* its `locales` array — this helper flattens both forms.
|
|
7
|
-
*
|
|
8
|
-
* Usage:
|
|
9
|
-
* ```ts
|
|
10
|
-
* import { conlocaCMS, localesFromAstroI18n } from '@conloca/astro-cms/node';
|
|
11
|
-
* const i18n = { defaultLocale: 'en', locales: ['en', 'de'] };
|
|
12
|
-
* defineConfig({
|
|
13
|
-
* i18n,
|
|
14
|
-
* integrations: [conlocaCMS({ locales: localesFromAstroI18n(i18n) })],
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
function localesFromAstroI18n(i18n) {
|
|
19
|
-
return {
|
|
20
|
-
defaultLocale: i18n.defaultLocale,
|
|
21
|
-
list: i18n.locales.flatMap((l) => typeof l === "string" ? [l] : l.codes)
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Translate Starlight's i18n config into Conloca's locale shape.
|
|
26
|
-
*
|
|
27
|
-
* Starlight shape: `{ defaultLocale: 'en', locales: { en: { label, lang? }, de: { ... } } }`.
|
|
28
|
-
* The default locale falls back to the first key in `locales` if unset,
|
|
29
|
-
* then to `'en'`.
|
|
30
|
-
*
|
|
31
|
-
* Usage:
|
|
32
|
-
* ```ts
|
|
33
|
-
* import { conlocaCMS, localesFromStarlight } from '@conloca/astro-cms/node';
|
|
34
|
-
* const starlightConfig = { defaultLocale: 'en', locales: { en: { label: 'English' } } };
|
|
35
|
-
* defineConfig({
|
|
36
|
-
* integrations: [
|
|
37
|
-
* starlight(starlightConfig),
|
|
38
|
-
* conlocaCMS({ locales: localesFromStarlight(starlightConfig) }),
|
|
39
|
-
* ],
|
|
40
|
-
* });
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
function localesFromStarlight(starlight) {
|
|
44
|
-
const list = Object.keys(starlight.locales ?? {});
|
|
45
|
-
const fallback = starlight.defaultLocale ?? list[0] ?? "en";
|
|
46
|
-
return {
|
|
47
|
-
defaultLocale: fallback,
|
|
48
|
-
list: list.length > 0 ? list : [fallback]
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
//#endregion
|
|
52
|
-
export { localesFromStarlight as n, localesFromAstroI18n as t };
|
|
53
|
-
|
|
54
|
-
//# sourceMappingURL=locales-helpers-qiwh7nxS.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"locales-helpers-qiwh7nxS.mjs","names":[],"sources":["../src/locales-helpers.ts"],"sourcesContent":["/**\n * Conloca's view of a site's locales.\n *\n * `list` is the full set of locales the site supports; `defaultLocale`\n * is the one that lives at the root in the `'directory'` mdx-pages\n * strategy. Pass this shape into `conlocaCMS({ locales })`.\n */\nexport interface ConlocaLocales {\n list: string[];\n defaultLocale: string;\n}\n\n/**\n * Translate Astro's native `i18n` config into Conloca's locale shape.\n *\n * Astro 4+ accepts both bare strings and `{ codes, path }` objects in\n * its `locales` array — this helper flattens both forms.\n *\n * Usage:\n * ```ts\n * import { conlocaCMS, localesFromAstroI18n } from '@conloca/astro-cms/node';\n * const i18n = { defaultLocale: 'en', locales: ['en', 'de'] };\n * defineConfig({\n * i18n,\n * integrations: [conlocaCMS({ locales: localesFromAstroI18n(i18n) })],\n * });\n * ```\n */\nexport function localesFromAstroI18n(i18n: {\n defaultLocale: string;\n locales: ReadonlyArray<string | { codes: string[]; path: string }>;\n}): ConlocaLocales {\n return {\n defaultLocale: i18n.defaultLocale,\n list: i18n.locales.flatMap((l) => (typeof l === 'string' ? [l] : l.codes)),\n };\n}\n\n/**\n * Translate Starlight's i18n config into Conloca's locale shape.\n *\n * Starlight shape: `{ defaultLocale: 'en', locales: { en: { label, lang? }, de: { ... } } }`.\n * The default locale falls back to the first key in `locales` if unset,\n * then to `'en'`.\n *\n * Usage:\n * ```ts\n * import { conlocaCMS, localesFromStarlight } from '@conloca/astro-cms/node';\n * const starlightConfig = { defaultLocale: 'en', locales: { en: { label: 'English' } } };\n * defineConfig({\n * integrations: [\n * starlight(starlightConfig),\n * conlocaCMS({ locales: localesFromStarlight(starlightConfig) }),\n * ],\n * });\n * ```\n */\nexport function localesFromStarlight(starlight: {\n defaultLocale?: string;\n locales?: Record<string, { label?: string; lang?: string }>;\n}): ConlocaLocales {\n const list = Object.keys(starlight.locales ?? {});\n const fallback = starlight.defaultLocale ?? list[0] ?? 'en';\n return {\n defaultLocale: fallback,\n list: list.length > 0 ? list : [fallback],\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AA4BA,SAAgB,qBAAqB,MAGlB;CACjB,OAAO;EACL,eAAe,KAAK;EACpB,MAAM,KAAK,QAAQ,SAAS,MAAO,OAAO,MAAM,WAAW,CAAC,CAAC,IAAI,EAAE,KAAM;CAC3E;AACF;;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,qBAAqB,WAGlB;CACjB,MAAM,OAAO,OAAO,KAAK,UAAU,WAAW,CAAC,CAAC;CAChD,MAAM,WAAW,UAAU,iBAAiB,KAAK,MAAM;CACvD,OAAO;EACL,eAAe;EACf,MAAM,KAAK,SAAS,IAAI,OAAO,CAAC,QAAQ;CAC1C;AACF"}
|
package/dist/node/content.d.mts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ALL_BLOCKS_COLLECTION, ConlocaCollectionsResult, CreateConlocaCollectionsOptions, createConlocaCollections } from "../collections.mjs";
|
|
2
|
-
import { Loader } from "astro/loaders";
|
|
3
|
-
//#region src/loader.d.ts
|
|
4
|
-
interface ConlocaLoaderOptions {
|
|
5
|
-
collection?: string;
|
|
6
|
-
contentRoot: string;
|
|
7
|
-
site?: string;
|
|
8
|
-
/** Collection kind. If not provided, defaults to 'block' for 'blocks' collection, 'page' otherwise. */
|
|
9
|
-
kind?: 'page' | 'block' | 'data';
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Custom Astro content loader for Conloca CMS.
|
|
13
|
-
* Loads content from the Conloca content directory into Astro collections.
|
|
14
|
-
*/
|
|
15
|
-
declare function conlocaLoader(options: ConlocaLoaderOptions): Loader;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { ALL_BLOCKS_COLLECTION, type ConlocaCollectionsResult, type ConlocaLoaderOptions, type CreateConlocaCollectionsOptions, conlocaLoader, createConlocaCollections };
|
|
18
|
-
//# sourceMappingURL=content.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.mts","names":[],"sources":["../../src/loader.ts"],"mappings":";;;UAGiB;EACf;EACA;EACA;;EAEA;;;;;;iBAOc,cAAc,SAAS,uBAAuB"}
|
package/dist/node/content.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { ALL_BLOCKS_COLLECTION, type ConlocaCollectionsResult, type CreateConlocaCollectionsOptions, createConlocaCollections, } from '../src/collections.js';
|
|
2
|
-
export { type ConlocaLoaderOptions, conlocaLoader } from '../src/loader.js';
|
|
3
|
-
//# sourceMappingURL=content.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../node/content.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,oBAAoB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/node/content.js
DELETED
package/dist/node/content.mjs
DELETED
package/dist/node/index.d.mts
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { n as localesFromAstroI18n, r as localesFromStarlight, t as ConlocaLocales } from "../locales-helpers-BvYYqnJ5.mjs";
|
|
2
|
-
import { c as TemplateConfig, s as RoutingConfigInput } from "../types-CS9neadI.mjs";
|
|
3
|
-
import { UIConfig } from "@conloca/cms-spa";
|
|
4
|
-
import { AstroIntegration } from "astro";
|
|
5
|
-
//#region src/lib/hydration-scanner.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* Result of scanning a component file for withHydration usage.
|
|
8
|
-
*/
|
|
9
|
-
interface HydrationDiscovery {
|
|
10
|
-
/** Component name derived from filename (PascalCase) */
|
|
11
|
-
componentName: string;
|
|
12
|
-
/** Absolute path to the component file */
|
|
13
|
-
filePath: string;
|
|
14
|
-
/** Hydration strategy extracted from withHydration call */
|
|
15
|
-
strategy: 'load' | 'visible' | 'idle';
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Scans component directories for files using withHydration wrapper.
|
|
19
|
-
*
|
|
20
|
-
* This function performs static analysis to discover components marked
|
|
21
|
-
* for hydration, without executing any component code.
|
|
22
|
-
*
|
|
23
|
-
* @param componentPaths - Relative paths to scan (e.g., ['src/components/puck'])
|
|
24
|
-
* @param projectRoot - Absolute path to the project root
|
|
25
|
-
* @returns Array of discovered hydratable components with their strategies
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```typescript
|
|
29
|
-
* const discoveries = await scanForHydratableComponents(
|
|
30
|
-
* ['src/components/puck'],
|
|
31
|
-
* '/path/to/project'
|
|
32
|
-
* )
|
|
33
|
-
* // => [{ componentName: 'TestimonialGrid', filePath: '...', strategy: 'visible' }]
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
declare function scanForHydratableComponents(componentPaths: string[], projectRoot: string): Promise<HydrationDiscovery[]>;
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region src/plugin-spa.d.ts
|
|
39
|
-
interface ConlocaCMSOptions extends Omit<UIConfig, 'basename'> {
|
|
40
|
-
contentRoot: string;
|
|
41
|
-
canvasDir?: string;
|
|
42
|
-
route?: string;
|
|
43
|
-
puckConfigPath: string;
|
|
44
|
-
schemasPath?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Default layout for content pages.
|
|
47
|
-
* When provided without routing config, enables routing with catch-all pattern.
|
|
48
|
-
* For multi-route setups, use routing.routes.{name}.layout instead.
|
|
49
|
-
*
|
|
50
|
-
* @example './src/layouts/Layout.astro'
|
|
51
|
-
*/
|
|
52
|
-
layout?: string;
|
|
53
|
-
routing?: RoutingConfigInput;
|
|
54
|
-
templates?: Record<string, TemplateConfig>;
|
|
55
|
-
/**
|
|
56
|
-
* Paths to scan for hydratable components.
|
|
57
|
-
* Components using withHydration() in these directories are auto-discovered.
|
|
58
|
-
*
|
|
59
|
-
* @example ['src/components/puck']
|
|
60
|
-
*/
|
|
61
|
-
componentPaths?: string[];
|
|
62
|
-
/**
|
|
63
|
-
* Folders to scan for locally-authored MDX components. Their
|
|
64
|
-
* `interface Props { ... }` is parsed into the editor's prop
|
|
65
|
-
* panel automatically — no hand-written descriptors needed.
|
|
66
|
-
*
|
|
67
|
-
* Combined with the MDX usage scan (which picks up imports from
|
|
68
|
-
* npm packages like `@astrojs/starlight/components`), this powers
|
|
69
|
-
* the auto-discover registry served at `/__cms/api/registry`.
|
|
70
|
-
*
|
|
71
|
-
* Paths are project-relative. Defaults to `['src/components/mdx']`.
|
|
72
|
-
*
|
|
73
|
-
* @example ['src/components/mdx', 'src/components/blocks']
|
|
74
|
-
*/
|
|
75
|
-
mdxComponentFolders?: string[];
|
|
76
|
-
/**
|
|
77
|
-
* Path to the assets directory for image uploads.
|
|
78
|
-
* When provided, enables the Media Library and asset upload API routes.
|
|
79
|
-
*
|
|
80
|
-
* @example 'src/assets/uploads'
|
|
81
|
-
*/
|
|
82
|
-
assetsPath?: string;
|
|
83
|
-
/**
|
|
84
|
-
* CSS files to load in the CMS editor for component preview styling.
|
|
85
|
-
*
|
|
86
|
-
* Each file is processed by Vite (Tailwind, PostCSS, etc.) and injected
|
|
87
|
-
* directly into Puck's preview iframe `<head>`. Site CSS never enters the
|
|
88
|
-
* CMS admin's parent document, so host-site styles cannot bleed into the
|
|
89
|
-
* CMS chrome (drawer, sidebar, etc.).
|
|
90
|
-
*
|
|
91
|
-
* @example './src/styles/global.css'
|
|
92
|
-
* @example ['./src/styles/global.css', './src/styles/theme.css']
|
|
93
|
-
*/
|
|
94
|
-
siteStyles?: string | string[];
|
|
95
|
-
/**
|
|
96
|
-
* Narrow CSS path injected into the MDX editor's admin document while the
|
|
97
|
-
* editor is mounted. Use this to ship host-component styling
|
|
98
|
-
* (`.conloca-aside`, `.conloca-card`, etc.) so the editor preview matches
|
|
99
|
-
* the published surface, WITHOUT pulling in host Tailwind utilities or
|
|
100
|
-
* `:root` token overrides that would collide with admin chrome.
|
|
101
|
-
*
|
|
102
|
-
* What belongs here: stylesheets that target only host-component class
|
|
103
|
-
* selectors. Examples: `./src/styles/asides.css`,
|
|
104
|
-
* `./src/styles/starlight-components.css`, `./src/styles/code-blocks.css`.
|
|
105
|
-
*
|
|
106
|
-
* What does NOT belong: the host's `global.css` (Tailwind base, theme,
|
|
107
|
-
* utilities), `prose.css` (already loaded by `@conloca/mdx`), or any
|
|
108
|
-
* stylesheet with `body`, `:root`, or `*` rules that would override
|
|
109
|
-
* admin chrome. Those go in `siteStyles` instead — that path is only
|
|
110
|
-
* injected into the Puck iframe, never the admin shell.
|
|
111
|
-
*
|
|
112
|
-
* @example ['./src/styles/asides.css', './src/styles/starlight-components.css']
|
|
113
|
-
*/
|
|
114
|
-
editorStyles?: string | string[];
|
|
115
|
-
/**
|
|
116
|
-
* Route URL whose styles + content-wrapper shape get applied when
|
|
117
|
-
* editing a standalone BLOCK (not a page). Blocks aren't tied to a
|
|
118
|
-
* specific route, but they're consumed inside pages — so the
|
|
119
|
-
* authoring experience should look like the user's actual site. The
|
|
120
|
-
* editor fetches this route's CSS (via `/api/styles?url=…`) and its
|
|
121
|
-
* content-root wrapper (via `/api/content-wrapper?url=…`) the same
|
|
122
|
-
* way it does for pages, then renders the block inside that frame.
|
|
123
|
-
*
|
|
124
|
-
* Pick a representative content page on your site — typically the
|
|
125
|
-
* site root or a docs landing page. Hosts that ship rich typography
|
|
126
|
-
* benefit most; for hosts whose body bg matches the editor chrome,
|
|
127
|
-
* the value barely matters. Defaults to `/` (site root).
|
|
128
|
-
*
|
|
129
|
-
* Per-block overrides via block frontmatter remain on the roadmap
|
|
130
|
-
* for cases where one block ships only inside a specific layout.
|
|
131
|
-
*
|
|
132
|
-
* @example '/getting-started/'
|
|
133
|
-
*/
|
|
134
|
-
blockPreviewRoute?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Inline CSS to inject into the editor's `conloca-host-preview`
|
|
137
|
-
* layer, applied AFTER auto-discovered host stylesheets. The
|
|
138
|
-
* editor's content surround, prose card, and individual MDX
|
|
139
|
-
* components all surface here; anything you write at this layer
|
|
140
|
-
* wins on cascade order against the auto-discovery output (same
|
|
141
|
-
* specificity, later layer position).
|
|
142
|
-
*
|
|
143
|
-
* Use for one-off overrides when:
|
|
144
|
-
* - Your host body bg doesn't read well behind the editor chrome
|
|
145
|
-
* and you want a specific color regardless.
|
|
146
|
-
* - You want a different prose surface only inside the editor
|
|
147
|
-
* (eg lighter for accessibility while authoring).
|
|
148
|
-
* - A component renders correctly on the published page but
|
|
149
|
-
* needs a small visual tweak in the editor — toolbar gutter,
|
|
150
|
-
* focus ring, etc.
|
|
151
|
-
*
|
|
152
|
-
* Pure raw CSS. Conloca does no scoping or transformation, so any
|
|
153
|
-
* selector you write needs to be specific enough not to leak into
|
|
154
|
-
* the admin chrome (the chrome's selectors live in the `cms-admin`
|
|
155
|
-
* layer, which sits LOWER in the cascade — so without explicitly
|
|
156
|
-
* naming admin selectors, your CSS only reaches host components
|
|
157
|
-
* and the content surround).
|
|
158
|
-
*
|
|
159
|
-
* @example `
|
|
160
|
-
* /* Force a darker editor body even though the live page is light. *\/
|
|
161
|
-
* body { background-color: #0a0a0f; }
|
|
162
|
-
* /* Custom focus ring for the prose surface. *\/
|
|
163
|
-
* .conloca-prose--editor:focus-within { outline: 2px solid hotpink; }
|
|
164
|
-
* `
|
|
165
|
-
*/
|
|
166
|
-
editorCSS?: string;
|
|
167
|
-
/**
|
|
168
|
-
* The site's supported locales and default locale.
|
|
169
|
-
*
|
|
170
|
-
* When set, Conloca uses this list as the single source of truth for
|
|
171
|
-
* locale detection — folders or filename suffixes that don't match
|
|
172
|
-
* one of these locales are left in the slug rather than silently
|
|
173
|
-
* classified as a language. When omitted, falls back to the
|
|
174
|
-
* `globalLocales` field in `<contentRoot>/sites.json` (the existing
|
|
175
|
-
* behavior; preserved for backwards compatibility).
|
|
176
|
-
*
|
|
177
|
-
* Use one of the framework-bridge helpers exported from
|
|
178
|
-
* `@conloca/astro-cms` to keep the declaration in a single spot:
|
|
179
|
-
*
|
|
180
|
-
* @example Pass Astro's i18n config directly:
|
|
181
|
-
* ```ts
|
|
182
|
-
* import { conlocaCMS, localesFromAstroI18n } from '@conloca/astro-cms';
|
|
183
|
-
* const i18n = { defaultLocale: 'en', locales: ['en', 'de'] };
|
|
184
|
-
* defineConfig({
|
|
185
|
-
* i18n,
|
|
186
|
-
* integrations: [conlocaCMS({ locales: localesFromAstroI18n(i18n) })],
|
|
187
|
-
* });
|
|
188
|
-
* ```
|
|
189
|
-
*
|
|
190
|
-
* @example Pass a literal list:
|
|
191
|
-
* ```ts
|
|
192
|
-
* conlocaCMS({ locales: { list: ['en', 'de'], defaultLocale: 'en' } });
|
|
193
|
-
* ```
|
|
194
|
-
*/
|
|
195
|
-
locales?: ConlocaLocales;
|
|
196
|
-
}
|
|
197
|
-
declare function conlocaCMS(options: ConlocaCMSOptions): AstroIntegration;
|
|
198
|
-
//#endregion
|
|
199
|
-
export { type ConlocaCMSOptions, type ConlocaLocales, type HydrationDiscovery, conlocaCMS, localesFromAstroI18n, localesFromStarlight, scanForHydratableComponents };
|
|
200
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/lib/hydration-scanner.ts","../../src/plugin-spa.ts"],"mappings":";;;;;;;;UAOiB;;EAEf;;EAEA;;EAEA;;;;;;;;;;;;;;;;;;;;;iBAkFoB,4BACpB,0BACA,sBACC,QAAQ;;;UCvBM,0BAA0B,KAAK;EAC9C;EACA;EACA;EACA;EACA;;;;;;;;EASA;EAEA,UAAU;EACV,YAAY,eAAe;;;;;;;EAQ3B;;;;;;;;;;;;;;EAeA;;;;;;;EAQA;;;;;;;;;;;;EAaA;;;;;;;;;;;;;;;;;;;;EAqBA;;;;;;;;;;;;;;;;;;;;EAqBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BA,UAAU;;iBAsKI,WAAW,SAAS,oBAAoB"}
|
package/dist/node/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { type HydrationDiscovery, scanForHydratableComponents } from '../src/lib/hydration-scanner.js';
|
|
2
|
-
export { type ConlocaLocales, localesFromAstroI18n, localesFromStarlight } from '../src/locales-helpers.js';
|
|
3
|
-
export { type ConlocaCMSOptions, conlocaCMS } from '../src/plugin-spa.js';
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../node/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AACvG,OAAO,EAAE,KAAK,cAAc,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC5G,OAAO,EAAE,KAAK,iBAAiB,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/node/index.js
DELETED