@conloca/astro-cms 0.2.1 → 0.2.3

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.
Files changed (101) hide show
  1. package/README.md +21 -19
  2. package/dist/internal/page-handler.astro +8 -2
  3. package/dist/ts/.build-inputs.json +88 -0
  4. package/dist/ts/node/content.d.ts +1 -2
  5. package/dist/ts/node/content.d.ts.map +1 -1
  6. package/dist/ts/node/content.js +1 -1
  7. package/dist/ts/node/content.js.map +1 -1
  8. package/dist/ts/node/index.d.ts +1 -1
  9. package/dist/ts/node/index.d.ts.map +1 -1
  10. package/dist/ts/node/index.js +3 -3
  11. package/dist/ts/node/index.js.map +1 -1
  12. package/dist/ts/src/collections.d.ts +31 -53
  13. package/dist/ts/src/collections.d.ts.map +1 -1
  14. package/dist/ts/src/collections.js +66 -71
  15. package/dist/ts/src/collections.js.map +1 -1
  16. package/dist/ts/src/editor-descriptors.d.ts +19 -5
  17. package/dist/ts/src/editor-descriptors.d.ts.map +1 -1
  18. package/dist/ts/src/editor-descriptors.js +26 -5
  19. package/dist/ts/src/editor-descriptors.js.map +1 -1
  20. package/dist/ts/src/entries.d.ts +44 -0
  21. package/dist/ts/src/entries.d.ts.map +1 -0
  22. package/dist/ts/src/entries.js +48 -0
  23. package/dist/ts/src/entries.js.map +1 -0
  24. package/dist/ts/src/handlers/collection-content-api.d.ts.map +1 -1
  25. package/dist/ts/src/handlers/collection-content-api.js +7 -2
  26. package/dist/ts/src/handlers/collection-content-api.js.map +1 -1
  27. package/dist/ts/src/handlers/collection-names.d.ts +9 -0
  28. package/dist/ts/src/handlers/collection-names.d.ts.map +1 -0
  29. package/dist/ts/src/handlers/collection-names.js +9 -0
  30. package/dist/ts/src/handlers/collection-names.js.map +1 -0
  31. package/dist/ts/src/handlers/page-render-core.d.ts +31 -12
  32. package/dist/ts/src/handlers/page-render-core.d.ts.map +1 -1
  33. package/dist/ts/src/handlers/page-render-core.js +38 -17
  34. package/dist/ts/src/handlers/page-render-core.js.map +1 -1
  35. package/dist/ts/src/index.d.ts +2 -2
  36. package/dist/ts/src/index.d.ts.map +1 -1
  37. package/dist/ts/src/index.js +1 -3
  38. package/dist/ts/src/index.js.map +1 -1
  39. package/dist/ts/src/internal/collection-parsers.d.ts +26 -0
  40. package/dist/ts/src/internal/collection-parsers.d.ts.map +1 -0
  41. package/dist/ts/src/internal/collection-parsers.js +34 -0
  42. package/dist/ts/src/internal/collection-parsers.js.map +1 -0
  43. package/dist/ts/src/internal/entry-issues.d.ts +8 -0
  44. package/dist/ts/src/internal/entry-issues.d.ts.map +1 -0
  45. package/dist/ts/src/internal/entry-issues.js +19 -0
  46. package/dist/ts/src/internal/entry-issues.js.map +1 -0
  47. package/dist/ts/src/internal/entry-validation.d.ts +93 -0
  48. package/dist/ts/src/internal/entry-validation.d.ts.map +1 -0
  49. package/dist/ts/src/internal/entry-validation.js +228 -0
  50. package/dist/ts/src/internal/entry-validation.js.map +1 -0
  51. package/dist/ts/src/lib/virtual-module-generators.d.ts +13 -0
  52. package/dist/ts/src/lib/virtual-module-generators.d.ts.map +1 -1
  53. package/dist/ts/src/lib/virtual-module-generators.js +18 -0
  54. package/dist/ts/src/lib/virtual-module-generators.js.map +1 -1
  55. package/dist/ts/src/loader.d.ts +9 -12
  56. package/dist/ts/src/loader.d.ts.map +1 -1
  57. package/dist/ts/src/loader.js +19 -16
  58. package/dist/ts/src/loader.js.map +1 -1
  59. package/dist/ts/src/page-schemas.d.ts +1 -1
  60. package/dist/ts/src/page-schemas.d.ts.map +1 -1
  61. package/dist/ts/src/page-schemas.js +1 -1
  62. package/dist/ts/src/page-schemas.js.map +1 -1
  63. package/dist/ts/src/plugin-spa.d.ts +12 -0
  64. package/dist/ts/src/plugin-spa.d.ts.map +1 -1
  65. package/dist/ts/src/plugin-spa.js +39 -14
  66. package/dist/ts/src/plugin-spa.js.map +1 -1
  67. package/dist/ts/src/sandbox-frame-handler.d.ts +4 -1
  68. package/dist/ts/src/sandbox-frame-handler.d.ts.map +1 -1
  69. package/dist/ts/src/sandbox-frame-handler.js +22 -11
  70. package/dist/ts/src/sandbox-frame-handler.js.map +1 -1
  71. package/dist/ts/src/site-styles/content-wrapper-endpoint.d.ts +3 -62
  72. package/dist/ts/src/site-styles/content-wrapper-endpoint.d.ts.map +1 -1
  73. package/dist/ts/src/site-styles/content-wrapper-endpoint.js +12 -193
  74. package/dist/ts/src/site-styles/content-wrapper-endpoint.js.map +1 -1
  75. package/dist/virtual-modules.d.ts +14 -0
  76. package/node/content.ts +10 -1
  77. package/node/index.ts +7 -7
  78. package/package.json +12 -9
  79. package/src/collections.ts +107 -76
  80. package/src/editor-descriptors.ts +43 -5
  81. package/src/entries.ts +111 -0
  82. package/src/handlers/collection-content-api.ts +7 -2
  83. package/src/handlers/collection-names.ts +8 -0
  84. package/src/handlers/page-handler.astro +8 -2
  85. package/src/handlers/page-render-core.ts +65 -17
  86. package/src/index.ts +6 -7
  87. package/src/internal/collection-parsers.ts +51 -0
  88. package/src/internal/entry-issues.ts +23 -0
  89. package/src/internal/entry-validation.ts +305 -0
  90. package/src/lib/virtual-module-generators.ts +20 -0
  91. package/src/loader.ts +33 -17
  92. package/src/page-schemas.ts +4 -0
  93. package/src/plugin-spa.ts +58 -13
  94. package/src/sandbox-frame-handler.ts +16 -5
  95. package/src/site-styles/content-wrapper-endpoint.ts +4 -285
  96. package/src/virtual-modules.d.ts +14 -0
  97. package/dist/ts/src/internal/page-collection-schema.d.ts +0 -44
  98. package/dist/ts/src/internal/page-collection-schema.d.ts.map +0 -1
  99. package/dist/ts/src/internal/page-collection-schema.js +0 -152
  100. package/dist/ts/src/internal/page-collection-schema.js.map +0 -1
  101. package/src/internal/page-collection-schema.ts +0 -210
package/README.md CHANGED
@@ -11,7 +11,8 @@ workflow, accessible at `/__cms` routes without requiring authentication or comp
11
11
 
12
12
  ```bash
13
13
  npm install @conloca/astro-cms
14
- npm install @astrojs/react @vitejs/plugin-react astro react react-dom vite zod
14
+ npm install @astrojs/react @vitejs/plugin-react astro react react-dom vite typia
15
+ npm install -D ttsc @ttsc/unplugin
15
16
  ```
16
17
 
17
18
  The second line is the full peer set — the CMS expects the host site to own those packages. `@astrojs/react` is not
@@ -168,24 +169,25 @@ With those four files in place, run the Astro dev server and open `/__cms`.
168
169
 
169
170
  Passed to `conlocaCMS({ ... })`. Only two are required.
170
171
 
171
- | Option | Required | What it does |
172
- | ---------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
173
- | `contentRoot` | yes | Directory holding `sites.json` and the content files. Also handed to the collection factories, so the content config needs no copy of it. |
174
- | `puckConfigPath` | yes | Module whose default export is the Puck `Config`. Supplies the visual editor's component palette and seeds component auto-discovery. |
175
- | `canvasDir` | no | Directory for canvas documents. |
176
- | `route` | no | Where the CMS mounts. Defaults to `/__cms`. |
177
- | `layout` | no | Default layout for content pages. On its own it enables routing with a catch-all pattern. |
178
- | `routing` | no | Full routing configuration, for sites with more than one content route. |
179
- | `templates` | no | Page templates offered in the create-page dialog. |
180
- | `schemasPath` | no | Module exporting `dataSchemas`, `pageSchemas` and `mdxComponents`. Drives the page-settings form and the MDX component registry. |
181
- | `componentPaths` | no | Extra folders to scan for components wrapped in `withHydration()`. |
182
- | `mdxComponentFolders` | no | Folders scanned for locally authored MDX components, whose `interface Props` becomes the editor's prop panel. Defaults to `['src/components/mdx']`. |
183
- | `assetsPath` | no | Upload directory; enables the Media Library. The site must serve it from `publicDir`, directly or through a link there, or dev and build fail. |
184
- | `siteStyles` | no | CSS injected into the Puck preview iframe so components render with site styling. |
185
- | `editorStyles` | no | CSS injected into the MDX editor's admin document. Host-component selectors only — see the file's own notes on what does not belong. |
186
- | `editorCSS` | no | Raw CSS applied after auto-discovered host styles in the editor's host-preview layer. |
187
- | `fragmentPreviewRoute` | no | Route whose styles and content wrapper frame the standalone fragment editor. Defaults to `/`. |
188
- | `locales` | no | The site's locales and default locale. Without it: the site's `locales` and `defaultLocale` in `sites.json`, else `globalLocales`. |
172
+ | Option | Required | What it does |
173
+ | ---------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
174
+ | `contentRoot` | yes | Directory holding `sites.json` and the content files. Also handed to the collection factories, so the content config needs no copy of it. |
175
+ | `puckConfigPath` | yes | Module whose default export is the Puck `Config`. Supplies the visual editor's component palette and seeds component auto-discovery. |
176
+ | `canvasDir` | no | Directory for canvas documents. |
177
+ | `route` | no | Where the CMS mounts. Defaults to `/__cms`. |
178
+ | `layout` | no | Default layout for content pages. On its own it enables routing with a catch-all pattern. |
179
+ | `routing` | no | Full routing configuration, for sites with more than one content route. |
180
+ | `templates` | no | Page templates offered in the create-page dialog. |
181
+ | `schemasPath` | no | Module exporting `dataSchemas`, `pageSchemas` and `mdxComponents`. Drives the page-settings form and the MDX component registry. |
182
+ | `contentSchemasPath` | no | Schema-only module exporting the `pageSchemas` / `dataSchemas` your content config passes to `conlocaPages()` / `conlocaData()`. Draft previews parse entries with the entry parsers built from it, as the build does. |
183
+ | `componentPaths` | no | Extra folders to scan for components wrapped in `withHydration()`. |
184
+ | `mdxComponentFolders` | no | Folders scanned for locally authored MDX components, whose `interface Props` becomes the editor's prop panel. Defaults to `['src/components/mdx']`. |
185
+ | `assetsPath` | no | Upload directory; enables the Media Library. The site must serve it from `publicDir`, directly or through a link there, or dev and build fail. |
186
+ | `siteStyles` | no | CSS injected into the Puck preview iframe so components render with site styling. |
187
+ | `editorStyles` | no | CSS injected into the MDX editor's admin document. Host-component selectors only — see the file's own notes on what does not belong. |
188
+ | `editorCSS` | no | Raw CSS applied after auto-discovered host styles in the editor's host-preview layer. |
189
+ | `fragmentPreviewRoute` | no | Route whose styles and content wrapper frame the standalone fragment editor. Defaults to `/`. |
190
+ | `locales` | no | The site's locales and default locale. Without it: the site's `locales` and `defaultLocale` in `sites.json`, else `globalLocales`. |
189
191
 
190
192
  `ConlocaCMSOptions` also extends the editor's `UIConfig` (minus `basename`), so fields such as `apiBaseUrl`,
191
193
  `siteBaseUrl`, `enableDevtools`, `queryClientOptions`, `projectRoot` and `hosted` are accepted as well. Those exist for
@@ -10,6 +10,7 @@
10
10
  */
11
11
 
12
12
  import { getCollection } from 'astro:content';
13
+ import { loadContentSchemas } from 'virtual:conloca-content-schemas';
13
14
  import Layout from 'virtual:conloca-layout';
14
15
  import puckConfig from 'virtual:conloca-puck-config';
15
16
  import routingConfig from 'virtual:conloca-routing-config';
@@ -37,6 +38,7 @@ import {
37
38
  pageNotFoundResponse,
38
39
  resolvePuckData,
39
40
  } from '../ts/src/handlers/page-render-core.js';
41
+ import { previewEntryParsers } from '../ts/src/internal/collection-parsers.js';
40
42
 
41
43
  // prerender is controlled by injectRoute({ prerender }) in plugin-spa.ts
42
44
  // Do not hardcode here — it overrides the route-level config
@@ -148,11 +150,15 @@ if (!routeName || !collection || !pathname) {
148
150
 
149
151
  // Content-access seam. A caller can install a ContentAPI on
150
152
  // `Astro.locals.contentApi`; when present we read through it, so the page shows
151
- // what that reader serves. Absent — the normal render — we read Astro content
153
+ // what that reader serves, parsed with each collection's entry parser as the build
154
+ // parses its entries. Absent — the normal render — we read Astro content
152
155
  // collections, byte-for-byte identically to before the extraction.
153
156
  const previewContentApi = (Astro.locals as { contentApi?: ContentAPI }).contentApi;
154
157
  const source: PageContentSource = previewContentApi
155
- ? createReaderContentSource(previewContentApi, config.locale)
158
+ ? createReaderContentSource(previewContentApi, {
159
+ renderLocale: config.locale,
160
+ parsers: previewEntryParsers(config, await loadContentSchemas()),
161
+ })
156
162
  : createCollectionContentSource({
157
163
  getCollection: (name) => getCollection(name as never) as Promise<{ data: unknown }[]>,
158
164
  isDev: import.meta.env.DEV,
@@ -0,0 +1,88 @@
1
+ {
2
+ "version": 1,
3
+ "files": {
4
+ "packages/astro-cms/node/content.ts": "c773623e011b5c2f39c3953436a1221a9419bb101b710b0e0cc6fd3f63df2593",
5
+ "packages/astro-cms/node/index.ts": "7d954c16c9730e28343269d94494ab275361aed23a0ea4dcc5da9afe7ffb185b",
6
+ "packages/astro-cms/src/asset-ref-base.ts": "067abe98eabc99d7797017028d20b3fa198cb0103d4fcb7be41d6e318d342e33",
7
+ "packages/astro-cms/src/checks.ts": "440af61df57dd96003a8de06d76ebc224a577886b7296f1bb6f4e3e6a2a4caeb",
8
+ "packages/astro-cms/src/cms-handler.ts": "02f62cb916c5c3410b722cb4683471f17f36cfbe24fc5de1e9a1e6307d79cb7f",
9
+ "packages/astro-cms/src/collections.ts": "5cffaa8c4d774ce0c91ec2b9cd2012db71499eb4c3f5f0d41aa44c5e177f00e2",
10
+ "packages/astro-cms/src/components.ts": "c819b416f5b3fe8750f126babef5450d28b24e1b5f055f6dfbd18613e1f64b3b",
11
+ "packages/astro-cms/src/components/HydrationWrapper.tsx": "a2b1e9b198d969ce4f326aef0634e5876fcc01b1c27f1fe9eaac202946804667",
12
+ "packages/astro-cms/src/components/RenderWithFragments.tsx": "9b01959eb75fa522b4169acdb76f3f32051c36ea9d45c6758ca7d38f0bf9943e",
13
+ "packages/astro-cms/src/components/RenderWithHydration.tsx": "a438f2e0da5bc041cd1abe2857172c19826508be7b2d17edaf8edb0b9a163e2c",
14
+ "packages/astro-cms/src/discovery/astro-frontmatter.ts": "b933216ca24ad672a642804168a0991cc6e63df1a552d63bc29a4e3e9675028d",
15
+ "packages/astro-cms/src/discovery/discover.ts": "4bed6c5fd97ad27380ed77076026426d393d889fdbe885950800b3b62841b4e9",
16
+ "packages/astro-cms/src/discovery/extract-props-ts.ts": "48cb07d8ebc2e9e84a8d60cfaf63a74273e8c7464593d6b0c168849f0503ee12",
17
+ "packages/astro-cms/src/discovery/merge-registry.ts": "eff6b77983417f633b47ee724b7fa74078184b6b08983fdad5014629b9d2fbb3",
18
+ "packages/astro-cms/src/discovery/registry-endpoint.ts": "19434c23476db4bdeb63a7b9f0cc2debb8990b9092c3c9f440313c51832357c4",
19
+ "packages/astro-cms/src/discovery/scan-components.ts": "bd130d8b4028a97ecef6a88a9ec373d2615e7eb1536377db61b731476d7fe185",
20
+ "packages/astro-cms/src/discovery/scan-mdx.ts": "549ad7857fce495c570975891f7dd2e5cb74e5b2161ee50237e834ebd86a749f",
21
+ "packages/astro-cms/src/discovery/scan-overrides.ts": "47aee15f7f5f5bcc1172046d896ae24f0bbcb0148f39da76ef83101d1181d0b5",
22
+ "packages/astro-cms/src/editor-descriptors.ts": "851abe2bc37cd650dd988632953621a119333bac4137f165f44d95c6a5ac9ba2",
23
+ "packages/astro-cms/src/entries.ts": "a0671bf78affdd5f5dae2601ee689e2a72e97d20e5a884b5192a911818826a08",
24
+ "packages/astro-cms/src/env.d.ts": "eef7dbb364ad6c1846070cbbb429ea19cbf2976ef402dc0696bd448a4e50b606",
25
+ "packages/astro-cms/src/handlers/collection-content-api.ts": "ddbf30c429018f3b32e749efff5832967f77adf71c4d4726d9fa924856fc2319",
26
+ "packages/astro-cms/src/handlers/collection-names.ts": "9dbb653d3ae13901036e25e165f2a7188f4a8ffee4879ccd6313dc75ef9f6c43",
27
+ "packages/astro-cms/src/handlers/page-render-core.ts": "de9bbadd2c4efbf910dfc32ba73acc1b4dcfded54818dbc67ea402df6551f59b",
28
+ "packages/astro-cms/src/hydration.ts": "953d23b741665fe14add0fce43e5121e9180ea9c603922acb642fe111c75b7af",
29
+ "packages/astro-cms/src/index.ts": "e98c16ef235804e5e858c5f4d86a577ce07b6f0d0c71714259dc58bef7683465",
30
+ "packages/astro-cms/src/internal/collection-parsers.ts": "360963adfc303bccf4170445f287df46b0e9d1d5ecf5f783e2596a2d7f0b9352",
31
+ "packages/astro-cms/src/internal/declared-collections.ts": "202d750874736cf84ba2fc450df0511e06360e820bbc1dfca1cdc97a17c3ff69",
32
+ "packages/astro-cms/src/internal/entry-issues.ts": "53ad83202add972705f26e9a3c5dcd5cb00d434cb921b46402897b71d7ed1d4a",
33
+ "packages/astro-cms/src/internal/entry-validation.ts": "c0e82e5836ddaa258c14d5419da484a73592b314e502f564be63b19e82c620b6",
34
+ "packages/astro-cms/src/lib/content-config-guard.ts": "c737218f7977350cb382370d0ba225cec8b0b9407593d1883e724bea43f186fd",
35
+ "packages/astro-cms/src/lib/hydration-scanner.ts": "9c0345e6820d4d098707e3a52c4dee7fb699cc301634f95903e0bbd8e4faffc2",
36
+ "packages/astro-cms/src/lib/hydration-script.ts": "d745085732293377495f4737d36665b18514a4c259e118814d38c96445c39539",
37
+ "packages/astro-cms/src/lib/hydration-utils.ts": "ad7303f4814a1ff73cddf7786dfaf0bff8f0871e32d89f481fb2f44747eb61a4",
38
+ "packages/astro-cms/src/lib/resolve-locale.ts": "d9d25edcc18b5b72d231d901815fc3828195171914a15cba96732e00315e3d66",
39
+ "packages/astro-cms/src/lib/resolve-site-name.ts": "cb712d18fbab21c9b55da24fb35401ff3505b20c46b8bea8285773c847f2c942",
40
+ "packages/astro-cms/src/lib/route-utils.ts": "465820fa2e7d1b00a81fa7856ed71f0d3a12ed40bd71cab973ac31c7e4591868",
41
+ "packages/astro-cms/src/lib/routing-config.ts": "bcc76af7ac0545681b90f513a843e1ac3b33e4c904392ba09159caa29af10005",
42
+ "packages/astro-cms/src/lib/serialize-props.ts": "cc393c69d3e32149d78c01f571296b22ad5843217923ba900f2400ac92a5ae29",
43
+ "packages/astro-cms/src/lib/unknown-components.ts": "04cde9fbea129cb7b1d8712db262faf0a4b3a99c2ebdd86fea38143a14eed40c",
44
+ "packages/astro-cms/src/lib/virtual-module-generators.ts": "bec2d598588904c712fecfa8c37ed5a5f397390204dbc03645f0a24dbb84340a",
45
+ "packages/astro-cms/src/lib/withHydration.ts": "3803e16067e769f8c5be6485c74ef3c4c70cda061e2d1929ccbadd7e70a020ed",
46
+ "packages/astro-cms/src/loader.ts": "3f1fccdbff967ffe5892738a439131735eb81610674b7698b0510612e56665e7",
47
+ "packages/astro-cms/src/locales-helpers.ts": "869b5132de90c2a51bcee956b68adc0813c3a34790ba112d35ce2c98f772c939",
48
+ "packages/astro-cms/src/mime-types.ts": "54ceda0b322b03e93cbaaf9c1a978cf512c39c15a93e8c4ae63ec7485c053ad3",
49
+ "packages/astro-cms/src/page-feed.ts": "5f34c09b0dc982bf9712d2e2a2feac620b45cfaba70afb822c5ff757af5c5a44",
50
+ "packages/astro-cms/src/page-schemas.ts": "310c74d83cc6bd9d2f1220beffbf005f5f33a8d3448de7dae8fe689a4dde036e",
51
+ "packages/astro-cms/src/path-validation.ts": "08c6b3c2c577e16accb9063b46769800691f306f6a1c6f85ddd08b93f21da408",
52
+ "packages/astro-cms/src/plugin-spa.ts": "b5607df2870e5bb46348e469fdeea9930555a06602b6295b90cb6141cd24f4f8",
53
+ "packages/astro-cms/src/puck-manifest/components-endpoint.ts": "bee3059e4ae2f84fd148fc370e25f00303f12c783312bc1b3e1ce24228a00e0d",
54
+ "packages/astro-cms/src/puck-manifest/field-projection.ts": "5ffd0a4c02a785e100e0066d88f05e7488cfa5a823aeda1a5464c43b67112dea",
55
+ "packages/astro-cms/src/puck-manifest/index.ts": "9681b175a4e0e225a673422b890963a0c75bb375578b5d91c9b2381ed6208bc2",
56
+ "packages/astro-cms/src/puck-manifest/literal.ts": "d17993c4b374bba7247548d815d26597f318f8d28a07a500be87620dbbf2e627",
57
+ "packages/astro-cms/src/puck-manifest/read-config.ts": "12148ccaa5bc4b37ce984c8d97f13f62cd808acb547e7526d0609e0e3537765d",
58
+ "packages/astro-cms/src/puck-manifest/read-field.ts": "ad685fb7a3b58708e8968480710ff10a5e7375ee914dbc298f7868e401a7b6b6",
59
+ "packages/astro-cms/src/puck-manifest/read-wrapper.ts": "f1557aa64629ad6c24fe33ac502383b058443f79c32fe31e383085f9bec90344",
60
+ "packages/astro-cms/src/puck-manifest/reading-budget.ts": "e6c33211dfd1210496a45a013818d22df76eb4689907d0f511ce0d890d36094d",
61
+ "packages/astro-cms/src/puck-manifest/resolve-reference.ts": "e6f2cdc09ed25b7d74b410c74908c4ed5aadc76566fcfe2cfed472fcc625668e",
62
+ "packages/astro-cms/src/puck-manifest/source-reference.ts": "026ed77de6d6225883c5522f56b726e1d3c0fdbbf8fc3a0c2f43e7668df406eb",
63
+ "packages/astro-cms/src/puck-manifest/syntax.ts": "ce507adeefb90f1190e226edc1df6491c8bbe1e4f163a679dc84453206eb2456",
64
+ "packages/astro-cms/src/puck-manifest/types.ts": "b555d2ddc4410db536929ebbdb587470324139b7ee6eda644a7059153be2068a",
65
+ "packages/astro-cms/src/safe-json-stringify.ts": "73309d0b557b355413778ac964927eedcfd5199c2f59649b53a49aa723ac78fe",
66
+ "packages/astro-cms/src/sandbox-frame-handler.ts": "012305513912b974f74fb2fe848ed0ce4eca54e3e1fade17c7d00d76e35fbbba",
67
+ "packages/astro-cms/src/site-styles/content-wrapper-endpoint.ts": "b5a8ec06931c398a31fa76d14ff5b6e37576861c08ae8df964b7b48e62eab858",
68
+ "packages/astro-cms/src/site-styles/render-endpoint.ts": "bdbeb86f8284e0881ded7ee062f7fc3a47fc6bae89898d24b5c01e3ea4c8ae65",
69
+ "packages/astro-cms/src/site-styles/styles-endpoint.ts": "cf309e00122158f482eae27b1293d48a5f58560c66c9eaa3f81bc2e511232b50",
70
+ "packages/astro-cms/src/sitemap-options.ts": "a35b393092d4c3124c9a7ea4fd63cc502a9096658ad7237852a249f3838ea8b5",
71
+ "packages/astro-cms/src/tiptap-html-static.ts": "b112885665f2b10d9406cf21b8d3d6f5f7d8d80b9d4fe4e3b0689ec2edac106a",
72
+ "packages/astro-cms/src/types.ts": "2d79d9b8ecff8f7b4be877e9609d214c85ebb207f9c824ddfcccc0e0d3f41737",
73
+ "packages/astro-cms/src/virtual-modules.d.ts": "77d7fbeec1a7ddd87cfcccdce7cd434e98077500d84cff5ed0ca3baa310370ba",
74
+ "packages/astro-cms/tsconfig.lib.json": "c1edf2dfd63f69fe4e351c0d1154faa305280fcd8e0a01bf3e8853d03df9ed4c"
75
+ },
76
+ "complete": [
77
+ ":(glob)packages/astro-cms/src/**/*.ts",
78
+ ":(glob)packages/astro-cms/src/**/*.tsx",
79
+ ":(glob)packages/astro-cms/src/**/*.d.ts",
80
+ ":(glob)packages/astro-cms/node/**/*.ts",
81
+ ":(exclude,glob)packages/astro-cms/src/**/*.test.ts",
82
+ ":(exclude,glob)packages/astro-cms/src/__tests__/**/*"
83
+ ],
84
+ "producer": {
85
+ "project": "astro-cms",
86
+ "target": "tsc-js"
87
+ }
88
+ }
@@ -1,4 +1,3 @@
1
- export { ALL_FRAGMENTS_COLLECTION, type ConlocaCollectionsResult, type ConlocaDataOptions, type ConlocaPagesOptions, type CreateConlocaCollectionsOptions, conlocaData, conlocaFragments, conlocaPages, createConlocaCollections, pageSchemasOf, } from '../src/collections.js';
2
- export type { ConlocaPageEntry } from '../src/internal/page-collection-schema.js';
1
+ export { ALL_FRAGMENTS_COLLECTION, type CollectionEntryLike, type ConlocaCollectionsResult, type ConlocaDataEntry, type ConlocaDataOptions, type ConlocaFragmentEntry, type ConlocaPageEntry, type ConlocaPagesOptions, type CreateConlocaCollectionsOptions, conlocaData, conlocaDataEntries, conlocaFragmentEntries, conlocaFragments, conlocaPageEntries, conlocaPages, createConlocaCollections, type EntryParser, entryParserOf, pageSchemasOf, type TypedCollectionEntry, } from '../src/collections.js';
3
2
  export { type ConlocaLoaderOptions, conlocaLoader } from '../src/loader.js';
4
3
  //# sourceMappingURL=content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../node/content.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,EACpC,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,wBAAwB,EACxB,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,KAAK,oBAAoB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../node/content.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,+BAA+B,EACpC,WAAW,EACX,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,KAAK,WAAW,EAChB,aAAa,EACb,aAAa,EACb,KAAK,oBAAoB,GAC1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,oBAAoB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,3 +1,3 @@
1
- export { ALL_FRAGMENTS_COLLECTION, conlocaData, conlocaFragments, conlocaPages, createConlocaCollections, pageSchemasOf, } from '../src/collections.js';
1
+ export { ALL_FRAGMENTS_COLLECTION, conlocaData, conlocaDataEntries, conlocaFragmentEntries, conlocaFragments, conlocaPageEntries, conlocaPages, createConlocaCollections, entryParserOf, pageSchemasOf, } from '../src/collections.js';
2
2
  export { conlocaLoader } from '../src/loader.js';
3
3
  //# sourceMappingURL=content.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"content.js","sourceRoot":"","sources":["../../../node/content.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EAKxB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,wBAAwB,EACxB,aAAa,GACd,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAA6B,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"content.js","sourceRoot":"","sources":["../../../node/content.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EASxB,WAAW,EACX,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EAExB,aAAa,EACb,aAAa,GAEd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAA6B,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,9 +1,9 @@
1
+ export { type ContentWrapperInfo, type DiscoveredWrappers, findContentWrapper, } from '@conloca/cms-spa/content-wrapper';
1
2
  export { discoverMdxComponents, type MdxRegistryScanOptions, toPortableImports } from '../src/discovery/discover.js';
2
3
  export type { DiscoveredComponent } from '../src/discovery/merge-registry.js';
3
4
  export { EDITOR_DESCRIPTORS_ENV_VAR, type EditorDescriptorChannel, readEditorDescriptors, } from '../src/editor-descriptors.js';
4
5
  export { type HydrationDiscovery, scanForHydratableComponents } from '../src/lib/hydration-scanner.js';
5
6
  export { type ConlocaLocales, localesFromAstroI18n, localesFromStarlight } from '../src/locales-helpers.js';
6
7
  export { type ConlocaCMSOptions, conlocaCMS } from '../src/plugin-spa.js';
7
- export { type ContentWrapperInfo, type DiscoveredWrappers, findContentWrapper, } from '../src/site-styles/content-wrapper-endpoint.js';
8
8
  export { type AstroUrlSettings, type ConlocaSitemapOptions, conlocaSitemapOptions } from '../src/sitemap-options.js';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../node/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,KAAK,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACrH,YAAY,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,OAAO,EACL,0BAA0B,EAC1B,KAAK,uBAAuB,EAC5B,qBAAqB,GACtB,MAAM,8BAA8B,CAAC;AACtC,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;AAG1E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,kBAAkB,GACnB,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../node/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,kBAAkB,GACnB,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EAAE,qBAAqB,EAAE,KAAK,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACrH,YAAY,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,OAAO,EACL,0BAA0B,EAC1B,KAAK,uBAAuB,EAC5B,qBAAqB,GACtB,MAAM,8BAA8B,CAAC;AACtC,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;AAE1E,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -1,3 +1,6 @@
1
+ // Pure HTML→wrapper-shape heuristic, for any build-time caller, so it runs
2
+ // the same find-wrapper implementation as the dev endpoint.
3
+ export { findContentWrapper, } from '@conloca/cms-spa/content-wrapper';
1
4
  // The MDX component registry scan, for any build-time caller, so it runs the
2
5
  // same discovery implementation as the dev endpoint.
3
6
  export { discoverMdxComponents, toPortableImports } from '../src/discovery/discover.js';
@@ -6,9 +9,6 @@ export { EDITOR_DESCRIPTORS_ENV_VAR, readEditorDescriptors, } from '../src/edito
6
9
  export { scanForHydratableComponents } from '../src/lib/hydration-scanner.js';
7
10
  export { localesFromAstroI18n, localesFromStarlight } from '../src/locales-helpers.js';
8
11
  export { conlocaCMS } from '../src/plugin-spa.js';
9
- // Pure HTML→wrapper-shape heuristic, for any build-time caller, so it runs
10
- // the same find-wrapper implementation as the dev endpoint.
11
- export { findContentWrapper, } from '../src/site-styles/content-wrapper-endpoint.js';
12
12
  // Sitemap entries for CMS pages, which a sitemap cannot find by itself when they render on demand.
13
13
  export { conlocaSitemapOptions } from '../src/sitemap-options.js';
14
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../node/index.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,qDAAqD;AACrD,OAAO,EAAE,qBAAqB,EAA+B,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAErH,8DAA8D;AAC9D,OAAO,EACL,0BAA0B,EAE1B,qBAAqB,GACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAA2B,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AACvG,OAAO,EAAuB,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC5G,OAAO,EAA0B,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC1E,2EAA2E;AAC3E,4DAA4D;AAC5D,OAAO,EAGL,kBAAkB,GACnB,MAAM,gDAAgD,CAAC;AACxD,mGAAmG;AACnG,OAAO,EAAqD,qBAAqB,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../node/index.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,4DAA4D;AAC5D,OAAO,EAGL,kBAAkB,GACnB,MAAM,kCAAkC,CAAC;AAC1C,6EAA6E;AAC7E,qDAAqD;AACrD,OAAO,EAAE,qBAAqB,EAA+B,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAErH,8DAA8D;AAC9D,OAAO,EACL,0BAA0B,EAE1B,qBAAqB,GACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAA2B,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AACvG,OAAO,EAAuB,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC5G,OAAO,EAA0B,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC1E,mGAAmG;AACnG,OAAO,EAAqD,qBAAqB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -1,7 +1,10 @@
1
1
  import { defineCollection } from 'astro:content';
2
- import type { DataSchemas, PageSchemas } from '@conloca/cms-spa/page-schema-define';
3
- import { z } from 'zod';
4
- import { ALL_FRAGMENTS_COLLECTION } from './handlers/page-render-core.js';
2
+ import type { DataSchemas, HostSchema, PageSchemas } from '@conloca/cms-spa/page-schema-define';
3
+ import type { Loader } from 'astro/loaders';
4
+ import { ALL_FRAGMENTS_COLLECTION } from './handlers/collection-names.js';
5
+ import { type EntryParser } from './internal/entry-validation.js';
6
+ export { type CollectionEntryLike, type ConlocaDataEntry, type ConlocaFragmentEntry, type ConlocaPageEntry, conlocaDataEntries, conlocaFragmentEntries, conlocaPageEntries, type TypedCollectionEntry, } from './entries.js';
7
+ export type { EntryParser };
5
8
  export { ALL_FRAGMENTS_COLLECTION };
6
9
  /**
7
10
  * Options for createConlocaCollections().
@@ -16,8 +19,8 @@ export interface CreateConlocaCollectionsOptions {
16
19
  site?: string;
17
20
  /**
18
21
  * The same `pageSchemas` object the editor loads. Host meta fields are
19
- * validated on every page collection at build time (made optional, because
20
- * the editor scopes a descriptor to a prefix while Astro validates the
22
+ * validated on every page collection at build time (optional, because
23
+ * the editor scopes a descriptor to a prefix while Astro builds the
21
24
  * whole pile). Pass the object itself — not a hand-copied field list — so
22
25
  * the form and the build cannot drift. Listing types come from augmenting
23
26
  * `HostPageMeta`, not from Astro `entry.data`.
@@ -35,10 +38,8 @@ export interface ConlocaCollectionsResult {
35
38
  }
36
39
  /**
37
40
  * @deprecated Declare collections explicitly with {@link conlocaPages},
38
- * {@link conlocaData} and {@link conlocaFragments} — they keep the entry
39
- * types Astro's generated `getCollection` needs, and undeclared content
40
- * fails the build instead of silently not building. This wrapper still
41
- * works but returns untyped entries.
41
+ * {@link conlocaData} and {@link conlocaFragments} — undeclared content fails
42
+ * the build instead of silently not building. This wrapper still works.
42
43
  *
43
44
  * Creates Astro Content Collections by discovering from indexed content.
44
45
  * Uses content-api to find collections that have content.
@@ -47,7 +48,7 @@ export interface ConlocaCollectionsResult {
47
48
  * ```typescript
48
49
  * // src/content.config.ts
49
50
  * import { createConlocaCollections } from '@conloca/astro-cms/node/content';
50
- * import { pageSchemas } from './page-schemas';
51
+ * import { pageSchemas } from './page-schemas.js';
51
52
  *
52
53
  * export const { collections } = await createConlocaCollections({ pageSchemas });
53
54
  * ```
@@ -77,17 +78,22 @@ export interface ConlocaPagesOptions {
77
78
  */
78
79
  export declare function pageSchemasOf(collection: object): PageSchemas | undefined;
79
80
  /**
80
- * One typed Astro collection for Conloca pages — the explicit,
81
- * Starlight-shaped declaration:
81
+ * The entry parser a Conloca-built collection's loader validates every entry
82
+ * with before storing it, or undefined for any other collection.
83
+ */
84
+ export declare function entryParserOf(collection: object): EntryParser<Record<string, unknown>> | undefined;
85
+ /**
86
+ * One Astro collection for Conloca pages — the explicit, Starlight-shaped
87
+ * declaration:
82
88
  *
83
89
  * ```ts
84
90
  * export const collections = { pages: conlocaPages({ pageSchemas }) };
85
91
  * ```
86
92
  *
87
- * Entry data is typed as {@link ConlocaPageEntry}; `getCollection('pages')`
88
- * carries pathname/title/dates and the host's declared meta fields.
93
+ * Every page is validated as {@link ConlocaPageEntry} while it loads; read it
94
+ * typed with `conlocaPageEntries(await getCollection('pages'), pageSchemas)`.
89
95
  */
90
- export declare function conlocaPages(options?: ConlocaPagesOptions): import("astro/content/config").CollectionConfig<z.ZodType<import("./internal/page-collection-schema.js").ConlocaPageEntry, unknown, z.core.$ZodTypeInternals<import("./internal/page-collection-schema.js").ConlocaPageEntry, unknown>>, import("astro/loaders").Loader>;
96
+ export declare function conlocaPages(options?: ConlocaPagesOptions): import("astro/content/config").CollectionConfig<import("astro:content").BaseSchema, Loader>;
91
97
  /** Options for conlocaData(). */
92
98
  export interface ConlocaDataOptions<DS extends DataSchemas> {
93
99
  /**
@@ -103,34 +109,22 @@ export interface ConlocaDataOptions<DS extends DataSchemas> {
103
109
  }
104
110
  /**
105
111
  * Deliberate asymmetry with pages: a data schema is validated AS GIVEN —
106
- * requiredness preserved, no rewrite guard — because the site owns it whole
107
- * for exactly one collection, unlike host page fields folded into the shared
108
- * pages schema. The flip side, accepted for now: a .transform or .default in
109
- * a dataSchema runs at build time but not in the editor form, so the two can
110
- * diverge.
112
+ * requiredness preserved — because the site owns it whole for exactly one
113
+ * collection, unlike host page fields checked across the shared pages pile.
111
114
  */
112
- declare function conlocaDataCollection<T extends z.ZodObject<z.ZodRawShape>>(name: string, payload: T, contentRoot: string, site: string): import("astro/content/config").CollectionConfig<z.ZodObject<{
113
- title: z.ZodString;
114
- description: z.ZodOptional<z.ZodString>;
115
- category: z.ZodOptional<z.ZodString>;
116
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
117
- id: z.ZodString;
118
- locale: z.ZodString;
119
- name: z.ZodString;
120
- data: z.ZodOptional<T>;
121
- }, z.core.$loose>, import("astro/loaders").Loader>;
115
+ declare function conlocaDataCollection(name: string, payload: HostSchema, contentRoot: string, site: string): import("astro/content/config").CollectionConfig<import("astro:content").BaseSchema, Loader>;
122
116
  /**
123
- * Typed Astro collections for Conloca data, one per `dataSchemas` key:
117
+ * Astro collections for Conloca data, one per `dataSchemas` key:
124
118
  *
125
119
  * ```ts
126
120
  * export const collections = { ...conlocaData({ dataSchemas }) };
127
121
  * ```
128
122
  *
129
- * `getCollection('testimonials')` entries carry `data` typed by that key's
130
- * schema, and a stored entry that fails its schema fails the build instead
131
- * of rendering blank.
123
+ * A stored entry whose payload fails its schema fails the build instead of
124
+ * rendering blank. Read entries typed by that key's schema with
125
+ * `conlocaDataEntries(dataSchemas, 'testimonials', await getCollection('testimonials'))`.
132
126
  */
133
- export declare function conlocaData<DS extends DataSchemas>(options: ConlocaDataOptions<DS>): { [K in keyof DS]: ReturnType<typeof conlocaDataCollection<DS[K]>>; };
127
+ export declare function conlocaData<DS extends DataSchemas>(options: ConlocaDataOptions<DS>): { [K in keyof DS]: ReturnType<typeof conlocaDataCollection>; };
134
128
  /**
135
129
  * The fragments aggregate (always) plus one collection per named fragment
136
130
  * folder: `...conlocaFragments('general')`. No arguments declares only the
@@ -140,22 +134,6 @@ export declare function conlocaData<DS extends DataSchemas>(options: ConlocaData
140
134
  * contentRoot (via CONLOCA_CONTENT_ROOT) and the site is always 'default'.
141
135
  */
142
136
  export declare function conlocaFragments<const N extends readonly string[]>(...names: N): {
143
- [ALL_FRAGMENTS_COLLECTION]: ReturnType<(collection?: string) => import("astro/content/config").CollectionConfig<z.ZodObject<{
144
- title: z.ZodString;
145
- description: z.ZodOptional<z.ZodString>;
146
- category: z.ZodOptional<z.ZodString>;
147
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
148
- id: z.ZodString;
149
- locale: z.ZodString;
150
- name: z.ZodString;
151
- }, z.core.$loose>, import("astro/loaders").Loader>>;
152
- } & { [K in N[number]]: ReturnType<(collection?: string) => import("astro/content/config").CollectionConfig<z.ZodObject<{
153
- title: z.ZodString;
154
- description: z.ZodOptional<z.ZodString>;
155
- category: z.ZodOptional<z.ZodString>;
156
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
157
- id: z.ZodString;
158
- locale: z.ZodString;
159
- name: z.ZodString;
160
- }, z.core.$loose>, import("astro/loaders").Loader>>; };
137
+ [ALL_FRAGMENTS_COLLECTION]: ReturnType<(collection?: string) => import("astro/content/config").CollectionConfig<import("astro:content").BaseSchema, Loader>>;
138
+ } & { [K in N[number]]: ReturnType<(collection?: string) => import("astro/content/config").CollectionConfig<import("astro:content").BaseSchema, Loader>>; };
161
139
  //# sourceMappingURL=collections.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../src/collections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAGpF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAK1E,OAAO,EAAE,wBAAwB,EAAE,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,2EAA2E;IAC3E,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC;CAClE;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,wBAAwB,CAC5C,OAAO,GAAE,+BAAoC,GAC5C,OAAO,CAAC,wBAAwB,CAAC,CA4CnC;AAID,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,gFAAgF;IAChF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mGAAmG;IACnG,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAOD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAEzE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB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