@conloca/content-api 0.1.15 → 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.
Files changed (281) hide show
  1. package/dist/asset-constraints.d.ts +16 -0
  2. package/dist/asset-constraints.d.ts.map +1 -0
  3. package/dist/asset-constraints.js +29 -0
  4. package/dist/asset-constraints.js.map +1 -0
  5. package/dist/asset-metadata-store.d.ts +60 -0
  6. package/dist/asset-metadata-store.d.ts.map +1 -0
  7. package/dist/asset-metadata-store.js +335 -0
  8. package/dist/asset-metadata-store.js.map +1 -0
  9. package/dist/asset-operations.d.ts +164 -0
  10. package/dist/asset-operations.d.ts.map +1 -0
  11. package/dist/asset-operations.js +784 -0
  12. package/dist/asset-operations.js.map +1 -0
  13. package/dist/asset-types.d.ts +72 -0
  14. package/dist/asset-types.d.ts.map +1 -0
  15. package/dist/asset-types.js +13 -0
  16. package/dist/asset-types.js.map +1 -0
  17. package/dist/asset-usage.d.ts +10 -0
  18. package/dist/asset-usage.d.ts.map +1 -0
  19. package/dist/asset-usage.js +49 -0
  20. package/dist/asset-usage.js.map +1 -0
  21. package/dist/base-content-index.d.ts +63 -0
  22. package/dist/base-content-index.d.ts.map +1 -0
  23. package/dist/base-content-index.js +200 -0
  24. package/dist/base-content-index.js.map +1 -0
  25. package/dist/cf-access.d.ts +31 -0
  26. package/dist/cf-access.d.ts.map +1 -0
  27. package/dist/cf-access.js +67 -0
  28. package/dist/cf-access.js.map +1 -0
  29. package/dist/component-registry.d.ts +50 -0
  30. package/dist/component-registry.d.ts.map +1 -0
  31. package/dist/component-registry.js +121 -0
  32. package/dist/component-registry.js.map +1 -0
  33. package/dist/component-registry.types.d.ts +11 -0
  34. package/dist/component-registry.types.d.ts.map +1 -0
  35. package/dist/component-registry.types.js +2 -0
  36. package/dist/component-registry.types.js.map +1 -0
  37. package/dist/component-vocabulary.d.ts +33 -0
  38. package/dist/component-vocabulary.d.ts.map +1 -0
  39. package/dist/component-vocabulary.js +105 -0
  40. package/dist/component-vocabulary.js.map +1 -0
  41. package/dist/content-api.interface.d.ts +64 -0
  42. package/dist/content-api.interface.d.ts.map +1 -0
  43. package/dist/content-api.interface.js +2 -0
  44. package/dist/content-api.interface.js.map +1 -0
  45. package/dist/content-filters.d.ts +31 -0
  46. package/dist/content-filters.d.ts.map +1 -0
  47. package/dist/content-filters.js +247 -0
  48. package/dist/content-filters.js.map +1 -0
  49. package/dist/content-index.d.ts +184 -0
  50. package/dist/content-index.d.ts.map +1 -0
  51. package/dist/content-index.js +546 -0
  52. package/dist/content-index.js.map +1 -0
  53. package/dist/content-operations.d.ts +157 -0
  54. package/dist/content-operations.d.ts.map +1 -0
  55. package/dist/content-operations.js +359 -0
  56. package/dist/content-operations.js.map +1 -0
  57. package/dist/content-path.d.ts +59 -0
  58. package/dist/content-path.d.ts.map +1 -0
  59. package/dist/content-path.js +88 -0
  60. package/dist/content-path.js.map +1 -0
  61. package/dist/content-reader.d.ts +10 -0
  62. package/dist/content-reader.d.ts.map +1 -0
  63. package/dist/content-reader.js +14 -0
  64. package/dist/content-reader.js.map +1 -0
  65. package/dist/content-utils.d.ts +175 -0
  66. package/dist/content-utils.d.ts.map +1 -0
  67. package/dist/content-utils.js +421 -0
  68. package/dist/content-utils.js.map +1 -0
  69. package/dist/content-watcher.d.ts +43 -0
  70. package/dist/content-watcher.d.ts.map +1 -0
  71. package/dist/content-watcher.js +86 -0
  72. package/dist/content-watcher.js.map +1 -0
  73. package/dist/data-index.d.ts +8 -0
  74. package/dist/data-index.d.ts.map +1 -0
  75. package/dist/data-index.js +8 -0
  76. package/dist/data-index.js.map +1 -0
  77. package/dist/data.d.ts +35 -0
  78. package/dist/data.d.ts.map +1 -0
  79. package/dist/data.js +104 -0
  80. package/dist/data.js.map +1 -0
  81. package/dist/editor-data-bindings.d.ts +10 -0
  82. package/dist/editor-data-bindings.d.ts.map +1 -0
  83. package/dist/editor-data-bindings.js +67 -0
  84. package/dist/editor-data-bindings.js.map +1 -0
  85. package/dist/etag-utils.d.ts +77 -0
  86. package/dist/etag-utils.d.ts.map +1 -0
  87. package/dist/etag-utils.js +161 -0
  88. package/dist/etag-utils.js.map +1 -0
  89. package/dist/filesystem-content-api.d.ts +162 -0
  90. package/dist/filesystem-content-api.d.ts.map +1 -0
  91. package/dist/filesystem-content-api.js +2307 -0
  92. package/dist/filesystem-content-api.js.map +1 -0
  93. package/dist/filesystem-reader-backend.d.ts +46 -0
  94. package/dist/filesystem-reader-backend.d.ts.map +1 -0
  95. package/dist/filesystem-reader-backend.js +119 -0
  96. package/dist/filesystem-reader-backend.js.map +1 -0
  97. package/dist/fragment-index.d.ts +8 -0
  98. package/dist/fragment-index.d.ts.map +1 -0
  99. package/dist/fragment-index.js +8 -0
  100. package/dist/fragment-index.js.map +1 -0
  101. package/dist/fragments.d.ts +16 -0
  102. package/dist/fragments.d.ts.map +1 -0
  103. package/dist/fragments.js +104 -0
  104. package/dist/fragments.js.map +1 -0
  105. package/dist/git-operations.d.ts +49 -0
  106. package/dist/git-operations.d.ts.map +1 -0
  107. package/dist/git-operations.js +256 -0
  108. package/dist/git-operations.js.map +1 -0
  109. package/dist/header-parser.d.ts +37 -0
  110. package/dist/header-parser.d.ts.map +1 -0
  111. package/dist/header-parser.js +233 -0
  112. package/dist/header-parser.js.map +1 -0
  113. package/dist/in-memory-content-api.d.ts +35 -0
  114. package/dist/in-memory-content-api.d.ts.map +1 -0
  115. package/dist/in-memory-content-api.js +609 -0
  116. package/dist/in-memory-content-api.js.map +1 -0
  117. package/dist/index.d.ts +26 -0
  118. package/dist/index.d.ts.map +1 -0
  119. package/dist/index.js +28 -0
  120. package/dist/index.js.map +1 -0
  121. package/dist/indexing.d.ts +5 -0
  122. package/dist/indexing.d.ts.map +1 -0
  123. package/dist/indexing.js +8 -0
  124. package/dist/indexing.js.map +1 -0
  125. package/dist/json-whitespace-view.d.ts +32 -0
  126. package/dist/json-whitespace-view.d.ts.map +1 -0
  127. package/dist/json-whitespace-view.js +153 -0
  128. package/dist/json-whitespace-view.js.map +1 -0
  129. package/dist/middleware.d.ts +20 -0
  130. package/dist/middleware.d.ts.map +1 -0
  131. package/dist/middleware.js +1082 -0
  132. package/dist/middleware.js.map +1 -0
  133. package/dist/node.d.ts +32 -0
  134. package/dist/node.d.ts.map +1 -0
  135. package/dist/node.js +27 -0
  136. package/dist/node.js.map +1 -0
  137. package/dist/page-references.d.ts +21 -0
  138. package/dist/page-references.d.ts.map +1 -0
  139. package/dist/page-references.js +50 -0
  140. package/dist/page-references.js.map +1 -0
  141. package/dist/read-date.d.ts +3 -0
  142. package/dist/read-date.d.ts.map +1 -0
  143. package/dist/read-date.js +9 -0
  144. package/dist/read-date.js.map +1 -0
  145. package/dist/reader-backend.d.ts +54 -0
  146. package/dist/reader-backend.d.ts.map +1 -0
  147. package/dist/reader-backend.js +2 -0
  148. package/dist/reader-backend.js.map +1 -0
  149. package/dist/reader.d.ts +15 -0
  150. package/dist/reader.d.ts.map +1 -0
  151. package/dist/reader.js +14 -0
  152. package/dist/reader.js.map +1 -0
  153. package/dist/schemas/index.d.ts +102 -0
  154. package/dist/schemas/index.d.ts.map +1 -0
  155. package/dist/schemas/index.js +88 -0
  156. package/dist/schemas/index.js.map +1 -0
  157. package/dist/site-index.d.ts +60 -0
  158. package/dist/site-index.d.ts.map +1 -0
  159. package/dist/site-index.js +291 -0
  160. package/dist/site-index.js.map +1 -0
  161. package/dist/site.d.ts +23 -0
  162. package/dist/site.d.ts.map +1 -0
  163. package/dist/site.js +180 -0
  164. package/dist/site.js.map +1 -0
  165. package/dist/types.d.ts +641 -0
  166. package/dist/types.d.ts.map +1 -0
  167. package/dist/types.js +45 -0
  168. package/dist/types.js.map +1 -0
  169. package/dist/url-safe-base64.d.ts +12 -0
  170. package/dist/url-safe-base64.d.ts.map +1 -0
  171. package/dist/url-safe-base64.js +41 -0
  172. package/dist/url-safe-base64.js.map +1 -0
  173. package/dist/url-validation.d.ts +28 -0
  174. package/dist/url-validation.d.ts.map +1 -0
  175. package/dist/url-validation.js +123 -0
  176. package/dist/url-validation.js.map +1 -0
  177. package/dist/utils/atomic-write.d.ts +6 -0
  178. package/dist/utils/atomic-write.d.ts.map +1 -0
  179. package/dist/utils/atomic-write.js +21 -0
  180. package/dist/utils/atomic-write.js.map +1 -0
  181. package/dist/utils.d.ts +46 -0
  182. package/dist/utils.d.ts.map +1 -0
  183. package/dist/utils.js +71 -0
  184. package/dist/utils.js.map +1 -0
  185. package/dist/vite-plugin.d.ts +12 -0
  186. package/dist/vite-plugin.d.ts.map +1 -0
  187. package/dist/vite-plugin.js +30 -0
  188. package/dist/vite-plugin.js.map +1 -0
  189. package/dist/vxjson-serialize.d.ts +13 -0
  190. package/dist/vxjson-serialize.d.ts.map +1 -0
  191. package/dist/vxjson-serialize.js +53 -0
  192. package/dist/vxjson-serialize.js.map +1 -0
  193. package/dist/vxjson.d.ts +113 -0
  194. package/dist/vxjson.d.ts.map +1 -0
  195. package/dist/vxjson.js +381 -0
  196. package/dist/vxjson.js.map +1 -0
  197. package/dist/xxhash.d.ts +10 -0
  198. package/dist/xxhash.d.ts.map +1 -0
  199. package/dist/xxhash.js +35 -0
  200. package/dist/xxhash.js.map +1 -0
  201. package/package.json +132 -34
  202. package/src/asset-constraints.ts +33 -0
  203. package/src/asset-metadata-store.ts +401 -0
  204. package/src/asset-operations.ts +914 -0
  205. package/src/asset-types.ts +74 -0
  206. package/src/asset-usage.ts +47 -0
  207. package/src/base-content-index.ts +227 -0
  208. package/src/cf-access.ts +85 -0
  209. package/src/component-registry.ts +145 -0
  210. package/src/component-registry.types.ts +12 -0
  211. package/src/component-vocabulary.ts +87 -0
  212. package/src/content-api.interface.ts +94 -0
  213. package/src/content-filters.ts +278 -0
  214. package/src/content-index.ts +642 -0
  215. package/src/content-operations.ts +497 -0
  216. package/src/content-path.ts +113 -0
  217. package/src/content-reader.ts +18 -0
  218. package/src/content-utils.ts +474 -0
  219. package/src/content-watcher.ts +122 -0
  220. package/src/data-index.ts +7 -0
  221. package/src/data.ts +134 -0
  222. package/src/editor-data-bindings.ts +66 -0
  223. package/src/etag-utils.ts +204 -0
  224. package/src/filesystem-content-api.ts +2685 -0
  225. package/src/filesystem-reader-backend.ts +135 -0
  226. package/src/fragment-index.ts +7 -0
  227. package/src/fragments.ts +113 -0
  228. package/src/git-operations.ts +340 -0
  229. package/src/header-parser.ts +272 -0
  230. package/src/in-memory-content-api.ts +760 -0
  231. package/src/index.ts +45 -0
  232. package/src/indexing.ts +8 -0
  233. package/src/json-whitespace-view.ts +155 -0
  234. package/src/middleware.ts +1341 -0
  235. package/src/node.ts +40 -0
  236. package/src/page-references.ts +76 -0
  237. package/src/read-date.ts +7 -0
  238. package/src/reader-backend.ts +54 -0
  239. package/src/reader.ts +15 -0
  240. package/src/schemas/index.ts +113 -0
  241. package/src/site-index.ts +330 -0
  242. package/src/site.ts +198 -0
  243. package/src/types.ts +759 -0
  244. package/src/url-safe-base64.ts +38 -0
  245. package/src/url-validation.ts +121 -0
  246. package/src/utils/atomic-write.ts +20 -0
  247. package/src/utils.ts +84 -0
  248. package/src/vite-plugin.ts +45 -0
  249. package/src/vxjson-serialize.ts +66 -0
  250. package/src/vxjson.ts +442 -0
  251. package/src/xxhash.ts +43 -0
  252. package/dist/component-registry.types-CBGONnYn.d.mts +0 -71
  253. package/dist/component-registry.types-CBGONnYn.d.mts.map +0 -1
  254. package/dist/content-operations-Dv67amz3.d.mts +0 -852
  255. package/dist/content-operations-Dv67amz3.d.mts.map +0 -1
  256. package/dist/data-Db1Iv9T0.mjs +0 -60
  257. package/dist/data-Db1Iv9T0.mjs.map +0 -1
  258. package/dist/filesystem-content-api-C1TM0GLo.d.mts +0 -119
  259. package/dist/filesystem-content-api-C1TM0GLo.d.mts.map +0 -1
  260. package/dist/filesystem-content-api-kxKY5IUw.mjs +0 -2678
  261. package/dist/filesystem-content-api-kxKY5IUw.mjs.map +0 -1
  262. package/dist/index.d.mts +0 -79
  263. package/dist/index.d.mts.map +0 -1
  264. package/dist/index.mjs +0 -47
  265. package/dist/index.mjs.map +0 -1
  266. package/dist/node.d.mts +0 -378
  267. package/dist/node.d.mts.map +0 -1
  268. package/dist/node.mjs +0 -2618
  269. package/dist/node.mjs.map +0 -1
  270. package/dist/reader.d.mts +0 -18
  271. package/dist/reader.d.mts.map +0 -1
  272. package/dist/reader.mjs +0 -22
  273. package/dist/reader.mjs.map +0 -1
  274. package/dist/schemas/index.d.mts +0 -90
  275. package/dist/schemas/index.d.mts.map +0 -1
  276. package/dist/schemas/index.mjs +0 -70
  277. package/dist/schemas/index.mjs.map +0 -1
  278. package/dist/site-vNtJ5jCh.mjs +0 -538
  279. package/dist/site-vNtJ5jCh.mjs.map +0 -1
  280. package/dist/types-DWt912tu.mjs +0 -33
  281. package/dist/types-DWt912tu.mjs.map +0 -1
package/dist/index.mjs DELETED
@@ -1,47 +0,0 @@
1
- import { C as parseDate, E as Blocks, S as normalizePathname, T as serializeMdxWithFrontmatter, _ as isValidBlockName, a as buildPathnameHistory, b as mapLocales, c as validateAndPrepareMetadata, d as formatFileSize, f as generateContentId, g as isMetadataTooLarge, h as isContentPublished, i as buildLocaleVersion, l as validateCreateContent, m as getMetadataSize, n as UPDATE_SCOPE, o as shouldUpdateModifiedTimestamp, p as getCurrentISODate, r as analyzeUpdateScope, s as updatePublishDates, t as Site, u as extractBlockName, v as isValidPathname, w as resolvePublishDate, x as mapSiteNames, y as localesOf } from "./site-vNtJ5jCh.mjs";
2
- import { blockEditableSchema, blockMetaSchema, dataEditableSchema, dataMetaSchema, pageEditableSchema, pageMetaSchema } from "./schemas/index.mjs";
3
- import { t as ErrorCodes } from "./types-DWt912tu.mjs";
4
-
5
- //#region src/utils.ts
6
- /**
7
- * Utilities for working with suffix pattern as specified in 04-cms-api.md
8
- */
9
- const ContentUtils = {
10
- extractLocale(filename) {
11
- return filename.match(/\.([a-z]{2})\.(vxjson|mdx)$/)?.[1] || "en";
12
- },
13
- extractBasePath(filename) {
14
- return filename.replace(/\.([a-z]{2})?\.(vxjson|mdx)$/, "").replace(/\.(vxjson|mdx)$/, "");
15
- },
16
- buildFilename(basePath, locale, extension = "vxjson") {
17
- if (locale === "en" && extension === "vxjson") return `${basePath}.${extension}`;
18
- return `${basePath}.${locale}.${extension}`;
19
- },
20
- groupByContent(filenames) {
21
- const groups = /* @__PURE__ */ new Map();
22
- for (const filename of filenames) {
23
- const base = this.extractBasePath(filename);
24
- const locale = this.extractLocale(filename);
25
- if (!groups.has(base)) groups.set(base, {});
26
- const localeFiles = groups.get(base);
27
- localeFiles[locale] = filename;
28
- }
29
- return groups;
30
- },
31
- isContentFile(filename) {
32
- return /\.(vxjson|mdx)$/.test(filename);
33
- },
34
- parseFilename(filename) {
35
- const extension = filename.match(/\.(vxjson|mdx)$/)?.[1] || "";
36
- const locale = this.extractLocale(filename);
37
- return {
38
- basePath: this.extractBasePath(filename),
39
- locale,
40
- extension
41
- };
42
- }
43
- };
44
-
45
- //#endregion
46
- export { Blocks, ContentUtils, ErrorCodes, Site, UPDATE_SCOPE, analyzeUpdateScope, blockEditableSchema, blockMetaSchema, buildLocaleVersion, buildPathnameHistory, dataEditableSchema, dataMetaSchema, extractBlockName, formatFileSize, generateContentId, getCurrentISODate, getMetadataSize, isContentPublished, isMetadataTooLarge, isValidBlockName, isValidPathname, localesOf, mapLocales, mapSiteNames, normalizePathname, pageEditableSchema, pageMetaSchema, parseDate, resolvePublishDate, serializeMdxWithFrontmatter, shouldUpdateModifiedTimestamp, updatePublishDates, validateAndPrepareMetadata, validateCreateContent };
47
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/utils.ts"],"sourcesContent":["/**\n * Utilities for working with suffix pattern as specified in 04-cms-api.md\n */\nexport const ContentUtils = {\n /**\n * Extract locale from filename\n * @example\n * - about.en.vxjson → 'en'\n * - about.nl.vxjson → 'nl'\n * - hero-main.mdx → 'en' (default)\n * - hero-main.nl.mdx → 'nl'\n */\n extractLocale(filename: string): string {\n const match = filename.match(/\\.([a-z]{2})\\.(vxjson|mdx)$/);\n return match?.[1] || 'en';\n },\n\n /**\n * Get base path without locale and extension\n * @example\n * - about.en.vxjson → 'about'\n * - about.nl.vxjson → 'about'\n * - hero-main.mdx → 'hero-main'\n */\n extractBasePath(filename: string): string {\n return filename.replace(/\\.([a-z]{2})?\\.(vxjson|mdx)$/, '').replace(/\\.(vxjson|mdx)$/, '');\n },\n\n /**\n * Build filename from base path and locale\n * @example\n * - ('about', 'en') → 'about.en.vxjson'\n * - ('about', 'nl') → 'about.nl.vxjson'\n */\n buildFilename(basePath: string, locale: string, extension = 'vxjson'): string {\n if (locale === 'en' && extension === 'vxjson') {\n return `${basePath}.${extension}`;\n }\n return `${basePath}.${locale}.${extension}`;\n },\n\n /**\n * Group files by base path for i18n\n */\n groupByContent(filenames: string[]): Map<string, Record<string, string>> {\n const groups = new Map<string, Record<string, string>>();\n\n for (const filename of filenames) {\n const base = this.extractBasePath(filename);\n const locale = this.extractLocale(filename);\n\n if (!groups.has(base)) {\n groups.set(base, {});\n }\n\n const localeFiles = groups.get(base)!;\n localeFiles[locale] = filename;\n }\n\n return groups;\n },\n\n /**\n * Check if a file is a content file (vxjson or mdx)\n */\n isContentFile(filename: string): boolean {\n return /\\.(vxjson|mdx)$/.test(filename);\n },\n\n /**\n * Parse filename to get all components\n */\n parseFilename(filename: string): {\n basePath: string;\n locale: string;\n extension: string;\n } {\n const extension = filename.match(/\\.(vxjson|mdx)$/)?.[1] || '';\n const locale = this.extractLocale(filename);\n const basePath = this.extractBasePath(filename);\n\n return { basePath, locale, extension };\n },\n};\n"],"mappings":";;;;;;;;AAGA,MAAa,eAAe;CAS1B,cAAc,UAA0B;AAEtC,SADc,SAAS,MAAM,8BAA8B,GAC5C,MAAM;;CAUvB,gBAAgB,UAA0B;AACxC,SAAO,SAAS,QAAQ,gCAAgC,GAAG,CAAC,QAAQ,mBAAmB,GAAG;;CAS5F,cAAc,UAAkB,QAAgB,YAAY,UAAkB;AAC5E,MAAI,WAAW,QAAQ,cAAc,SACnC,QAAO,GAAG,SAAS,GAAG;AAExB,SAAO,GAAG,SAAS,GAAG,OAAO,GAAG;;CAMlC,eAAe,WAA0D;EACvE,MAAM,yBAAS,IAAI,KAAqC;AAExD,OAAK,MAAM,YAAY,WAAW;GAChC,MAAM,OAAO,KAAK,gBAAgB,SAAS;GAC3C,MAAM,SAAS,KAAK,cAAc,SAAS;AAE3C,OAAI,CAAC,OAAO,IAAI,KAAK,CACnB,QAAO,IAAI,MAAM,EAAE,CAAC;GAGtB,MAAM,cAAc,OAAO,IAAI,KAAK;AACpC,eAAY,UAAU;;AAGxB,SAAO;;CAMT,cAAc,UAA2B;AACvC,SAAO,kBAAkB,KAAK,SAAS;;CAMzC,cAAc,UAIZ;EACA,MAAM,YAAY,SAAS,MAAM,kBAAkB,GAAG,MAAM;EAC5D,MAAM,SAAS,KAAK,cAAc,SAAS;AAG3C,SAAO;GAAE,UAFQ,KAAK,gBAAgB,SAAS;GAE5B;GAAQ;GAAW;;CAEzC"}
package/dist/node.d.mts DELETED
@@ -1,378 +0,0 @@
1
- import { a as AssetManifestData, c as FolderTreeNode, i as AssetEntry, l as ManifestEntryData, n as ComponentEntryWithId, o as AssetUsage, s as FolderListing, t as ComponentEntry } from "./component-registry.types-CBGONnYn.mjs";
2
- import { $ as ErrorCode, A as Site, B as ContentListResult, C as mapSiteNames, D as serializeMdxWithFrontmatter, E as resolvePublishDate, F as BlockFilters, G as CreateBlockInput, H as ContentMeta, I as ContentAPIOptions, J as CreateResult, K as CreateContentInput, L as ContentData, M as APIError, N as BatchOperationResult, O as Blocks, P as BatchResult, Q as DeleteResult, R as ContentEntry, S as mapLocales, T as parseDate, U as ContentProp, V as ContentManifest, W as ContentType, X as DataContext, Y as DataCollectionEntry, Z as DeleteLocaleInput, _ as isContentPublished, _t as VXJSONFile, a as analyzeUpdateScope, at as LocaleUpdateData, b as isValidPathname, c as shouldUpdateModifiedTimestamp, ct as LocalizedManifest, d as validateCreateContent, dt as MoveResult, et as ErrorCodes, f as extractBlockName, ft as PageReference, g as getMetadataSize, gt as UpdateResult, h as getCurrentISODate, ht as UpdateLocaleInput, i as ValidationResult, it as LocalePathData, j as Data, k as ContentAPI, l as updatePublishDates, lt as MDXCompileResponse, m as generateContentId, mt as SitesConfig, n as UPDATE_SCOPE, nt as GlobalFilters, o as buildLocaleVersion, ot as LocaleVersion, p as formatFileSize, pt as SiteFilters, q as CreatePageInput, r as UpdateScope, rt as LocaleFileData, s as buildPathnameHistory, st as LocalizedEntry, t as CreateValidationResult, tt as FindOptions, u as validateAndPrepareMetadata, ut as MDXFrontmatter, v as isMetadataTooLarge, vt as WriteResult, w as normalizePathname, x as localesOf, y as isValidBlockName, z as ContentIdentity } from "./content-operations-Dv67amz3.mjs";
3
- import { t as FileSystemContentAPI } from "./filesystem-content-api-C1TM0GLo.mjs";
4
- import { Hono } from "hono";
5
- import * as hono_types0 from "hono/types";
6
- import { Plugin } from "vite";
7
-
8
- //#region src/asset-manifest.d.ts
9
- declare class AssetManifest {
10
- private manifestPath;
11
- private _lock;
12
- constructor(assetsPath: string);
13
- read(): Promise<AssetManifestData>;
14
- write(data: AssetManifestData): Promise<void>;
15
- /** Atomic read-modify-write with promise-based mutex to prevent concurrent corruption */
16
- withManifest(fn: (data: AssetManifestData) => AssetManifestData): Promise<void>;
17
- add(relativePath: string, data: ManifestEntryData): Promise<void>;
18
- remove(relativePath: string): Promise<boolean>;
19
- get(relativePath: string): Promise<ManifestEntryData | undefined>;
20
- /**
21
- * Backward compat helper: search manifest keys for entry ending with /filename or equal to filename
22
- * Useful during transition when only filename is known (not full relative path)
23
- */
24
- getByFilename(filename: string): Promise<{
25
- relativePath: string;
26
- data: ManifestEntryData;
27
- } | undefined>;
28
- }
29
- //#endregion
30
- //#region src/asset-operations.d.ts
31
- interface AssetConfig {
32
- assetsPath: string;
33
- maxFileSize?: number;
34
- acceptedFormats?: string[];
35
- /** Content root directory for usage tracking (scanning VXJSON files) */
36
- contentRoot?: string;
37
- }
38
- declare class AssetOperations {
39
- private config;
40
- private manifest;
41
- private dirEnsured;
42
- private lfsSetup;
43
- constructor(config: AssetConfig);
44
- /** Resolve folder from manifest when only filename is known */
45
- private resolveFolder;
46
- private ensureDir;
47
- /**
48
- * Validate that a subpath is safe (no path traversal attacks)
49
- * Returns the resolved full path if valid, throws if invalid
50
- */
51
- private validateSubpath;
52
- /**
53
- * Resolve a unique filename by appending -1, -2, etc. if collision exists
54
- * @param originalName Original filename
55
- * @param folder Optional folder path (relative to assets root)
56
- */
57
- private resolveFilename;
58
- private validateFormat;
59
- private validateSize;
60
- /**
61
- * Get image dimensions from manifest cache or by reading file headers
62
- */
63
- private getDimensions;
64
- /**
65
- * Build an AssetEntry from a directory entry, enriching with manifest metadata
66
- */
67
- private buildAssetEntry;
68
- upload(file: File, metadata?: {
69
- alt?: string;
70
- uploadedBy?: string;
71
- width?: number;
72
- height?: number;
73
- folder?: string;
74
- }): Promise<{
75
- success: true;
76
- asset: AssetEntry;
77
- } | {
78
- success: false;
79
- error: string;
80
- }>;
81
- /**
82
- * List all assets recursively from filesystem
83
- */
84
- list(): Promise<AssetEntry[]>;
85
- /**
86
- * Get asset by filename and optional folder
87
- */
88
- getAsset(filename: string, folder?: string): Promise<AssetEntry | undefined>;
89
- /**
90
- * Delete asset file and manifest entry
91
- */
92
- delete(filename: string, folder?: string): Promise<{
93
- success: true;
94
- } | {
95
- success: false;
96
- error: string;
97
- }>;
98
- /**
99
- * Import an image from a URL (server-side fetch, no CORS issues)
100
- * Validates URL against SSRF, enforces 30s timeout, and checks response size.
101
- */
102
- importFromUrl(url: string, metadata?: {
103
- alt?: string;
104
- uploadedBy?: string;
105
- folder?: string;
106
- }): Promise<{
107
- success: true;
108
- asset: AssetEntry;
109
- } | {
110
- success: false;
111
- error: string;
112
- }>;
113
- /**
114
- * List assets and subfolders within a folder (filesystem-first)
115
- * @param subpath Folder path relative to assets root (default '/')
116
- */
117
- listFolder(subpath?: string): Promise<FolderListing>;
118
- /**
119
- * Create a folder on disk
120
- * @param subpath Folder path relative to assets root
121
- */
122
- createFolder(subpath: string): Promise<{
123
- success: true;
124
- } | {
125
- success: false;
126
- error: string;
127
- }>;
128
- /**
129
- * Update asset metadata (alt text, tags)
130
- * @param filename Asset filename
131
- * @param updates Metadata updates (alt, tags)
132
- * @param folder Optional folder path (default '/')
133
- */
134
- updateMetadata(filename: string, updates: Partial<ManifestEntryData>, folder?: string): Promise<{
135
- success: true;
136
- asset: AssetEntry;
137
- } | {
138
- success: false;
139
- error: string;
140
- }>;
141
- /**
142
- * Get usage information for an asset (which pages reference it)
143
- * @param filename Asset filename
144
- */
145
- getUsage(filename: string): Promise<AssetUsage[]>;
146
- /**
147
- * Get the file path for an asset
148
- * @param filename Asset filename
149
- * @param folder Optional folder path (defaults to asset's stored folder)
150
- */
151
- getAssetPath(filename: string, folder?: string): string;
152
- /**
153
- * Read asset file contents for serving (filesystem-first)
154
- * @param filename Asset filename
155
- * @param folder Optional folder path (default '/')
156
- */
157
- readAssetFile(filename: string, folder?: string): Promise<{
158
- success: true;
159
- buffer: Buffer;
160
- mimeType: string;
161
- } | {
162
- success: false;
163
- error: string;
164
- }>;
165
- /**
166
- * Helper to find which field contains an asset reference
167
- */
168
- private findFieldWithAsset;
169
- /**
170
- * Move assets from one folder to another
171
- * @param filenames List of filenames to move
172
- * @param sourceFolder Source folder path (relative to assets root)
173
- * @param targetFolder Target folder path (relative to assets root)
174
- */
175
- moveAssets(filenames: string[], sourceFolder: string, targetFolder: string): Promise<{
176
- success: true;
177
- moved: number;
178
- } | {
179
- success: false;
180
- error: string;
181
- }>;
182
- /**
183
- * Get the complete folder tree with asset counts
184
- * @returns Array of folder tree nodes representing the folder hierarchy
185
- */
186
- getFolderTree(): Promise<FolderTreeNode[]>;
187
- }
188
- //#endregion
189
- //#region src/cf-access.d.ts
190
- /**
191
- * Cloudflare Access JWT validation utility
192
- *
193
- * Validates JWT tokens from CF Access for API authorization and git commit attribution.
194
- * When CF_ACCESS_TEAM_NAME and CF_ACCESS_AUD env vars are set, requests must have valid tokens.
195
- * When env vars are not set (local dev), validation is skipped.
196
- */
197
- interface CFAccessUser {
198
- email?: string;
199
- sub?: string;
200
- }
201
- interface CFAccessResult {
202
- valid: boolean;
203
- required: boolean;
204
- user?: CFAccessUser;
205
- error?: string;
206
- }
207
- /**
208
- * Extract CF Access JWT token from request.
209
- * Checks Cf-Access-Jwt-Assertion header first, falls back to CF_Authorization cookie.
210
- */
211
- declare function extractCFAccessToken(request: Request): string | null;
212
- /**
213
- * Validate CF Access JWT from request.
214
- *
215
- * Returns { valid: true, required: false } when env vars not set (local dev mode).
216
- * Returns { valid: true, required: true, user } when token is valid.
217
- * Returns { valid: false, required: true, error } when token is invalid or missing.
218
- */
219
- declare function validateCFAccessRequest(request: Request): Promise<CFAccessResult>;
220
- //#endregion
221
- //#region src/component-registry.d.ts
222
- /**
223
- * Component Registry for managing linked and unlinked components
224
- *
225
- * Registry is stored at {canvasDir}/components/registry.json
226
- * Component IDs must follow the format: vx-{uuid}
227
- */
228
- declare class ComponentRegistry {
229
- private registryPath;
230
- private registry;
231
- private initialized;
232
- constructor(canvasDir: string);
233
- /**
234
- * Initialize the registry by loading from disk or creating new
235
- */
236
- initialize(): Promise<void>;
237
- /**
238
- * Validate component ID format (vx-{uuid})
239
- */
240
- private validateComponentId;
241
- /**
242
- * Save registry to disk atomically
243
- */
244
- private save;
245
- /**
246
- * Register a new component or update existing
247
- */
248
- register(id: string, entry: ComponentEntry): Promise<void>;
249
- /**
250
- * Get a component entry by ID
251
- */
252
- get(id: string): Promise<ComponentEntry | null>;
253
- /**
254
- * Link a component to a path
255
- */
256
- link(id: string, path: string): Promise<void>;
257
- /**
258
- * Unlink a component (set path to null)
259
- */
260
- unlink(id: string): Promise<void>;
261
- /**
262
- * List all components
263
- */
264
- list(): Promise<ComponentEntryWithId[]>;
265
- /**
266
- * Delete a component from registry
267
- */
268
- delete(id: string): Promise<void>;
269
- }
270
- //#endregion
271
- //#region src/content-watcher.d.ts
272
- interface ContentWatcherOptions {
273
- contentRoot: string;
274
- canvasDir?: string;
275
- }
276
- interface WebSocketSender {
277
- send(payload: {
278
- type: string;
279
- event: string;
280
- data: any;
281
- }): void;
282
- }
283
- interface ContentWatchEvent {
284
- file: string;
285
- action: 'update' | 'create' | 'delete';
286
- }
287
- interface ReindexResultLike {
288
- updated: unknown[];
289
- deleted?: {
290
- id: string;
291
- locale: string;
292
- kind: 'page' | 'block' | 'data';
293
- }[];
294
- }
295
- interface ReindexableContentAPI {
296
- reindex(paths: string[], options?: {
297
- handleDeletions?: boolean;
298
- }): Promise<ReindexResultLike>;
299
- }
300
- /**
301
- * Creates a content API instance for the given options
302
- */
303
- declare function createContentAPI(options: ContentWatcherOptions): Promise<FileSystemContentAPI>;
304
- /**
305
- * Creates file change handlers for content watching
306
- */
307
- declare function createContentWatchHandlers(contentApi: ReindexableContentAPI, options: ContentWatcherOptions, ws: WebSocketSender, onReindexed?: (event: ContentWatchEvent) => void | Promise<void>): {
308
- onChange: (file: string) => Promise<void>;
309
- onAdd: (file: string) => Promise<void>;
310
- onUnlink: (file: string) => Promise<void>;
311
- };
312
- //#endregion
313
- //#region src/in-memory-content-api.d.ts
314
- /**
315
- * In-memory implementation of ContentAPI for testing
316
- * Provides a clean, mock-free way to test the API without filesystem dependencies
317
- */
318
- declare class InMemoryContentAPI implements ContentAPI {
319
- private contentIndex;
320
- readonly sitesConfig: SitesConfig;
321
- readonly blocks: Blocks;
322
- readonly data: Data;
323
- private readonly sites;
324
- constructor(sitesConfig?: SitesConfig);
325
- getContent(id: string): Promise<ContentEntry | null>;
326
- getLocalized(id: string, locale: string): Promise<LocalizedEntry | null>;
327
- createContent(data: CreateContentInput): Promise<CreateResult>;
328
- updateLocalized(input: UpdateLocaleInput): Promise<UpdateResult>;
329
- deleteContent(id: string, etag: string): Promise<DeleteResult>;
330
- getSite(siteName: string): Site | null;
331
- listAllContent(filters?: GlobalFilters): Generator<ContentManifest>;
332
- findUntranslatedContent(targetLocale: string, options?: FindOptions): Generator<ContentManifest>;
333
- deleteLocalized(input: DeleteLocaleInput): Promise<DeleteResult>;
334
- batchUpdate(operations: UpdateLocaleInput[]): Promise<BatchResult>;
335
- setContent(id: string, content: ContentEntry): void;
336
- clear(): void;
337
- getContentAsBuffer(id: string, locale: string): Promise<{
338
- buffer: Uint8Array;
339
- etag: string;
340
- contentType: 'application/json' | 'text/mdx';
341
- } | null>;
342
- }
343
- //#endregion
344
- //#region src/mdx/compile.d.ts
345
- declare function compileMDX(content: string): Promise<MDXCompileResponse>;
346
- //#endregion
347
- //#region src/middleware.d.ts
348
- /**
349
- * Create REST API router using Hono
350
- * Implements the ID-based API specification from implementation-plan.md
351
- */
352
- interface ContentAPIRouterOptions {
353
- assetsPath?: string;
354
- assetConfig?: Omit<AssetConfig, 'assetsPath'>;
355
- /** Content root directory for asset usage tracking */
356
- contentRoot?: string;
357
- }
358
- declare function createContentAPIRouter(api: ContentAPI, options?: ContentAPIRouterOptions): Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
359
- /**
360
- * Create middleware for backwards compatibility with existing code
361
- * This wraps the Hono app to work with Node.js IncomingMessage/ServerResponse
362
- */
363
- declare function createContentMiddleware(contentApi: ContentAPI): (req: any, res: any, next: () => void) => Promise<void>;
364
- //#endregion
365
- //#region src/vite-plugin.d.ts
366
- interface ConlocaContentOptions {
367
- contentRoot: string;
368
- canvasDir?: string;
369
- basePath?: string;
370
- }
371
- /**
372
- * Vite plugin wrapper for content middleware
373
- * This follows the spec in 04-cms-api.md and 09-conloca-content-editing.md
374
- */
375
- declare function conlocaContent(options: ConlocaContentOptions): Plugin;
376
- //#endregion
377
- export { APIError, type AssetConfig, type AssetEntry, AssetManifest, type AssetManifestData, AssetOperations, BatchOperationResult, BatchResult, BlockFilters, Blocks, type CFAccessResult, type CFAccessUser, ComponentEntry, ComponentEntryWithId, ComponentRegistry, type ConlocaContentOptions, type ContentAPI, ContentAPIOptions, ContentData, ContentEntry, ContentIdentity, ContentListResult, ContentManifest, ContentMeta, ContentProp, ContentType, type ContentWatcherOptions, CreateBlockInput, CreateContentInput, CreatePageInput, CreateResult, CreateValidationResult, DataCollectionEntry, DataContext, DeleteLocaleInput, DeleteResult, ErrorCode, ErrorCodes, FileSystemContentAPI, FindOptions, GlobalFilters, InMemoryContentAPI, LocaleFileData, LocalePathData, LocaleUpdateData, LocaleVersion, LocalizedEntry, LocalizedManifest, MDXCompileResponse, MDXFrontmatter, MoveResult, PageReference, Site, SiteFilters, SitesConfig, UPDATE_SCOPE, UpdateLocaleInput, UpdateResult, UpdateScope, VXJSONFile, ValidationResult, type WebSocketSender, WriteResult, analyzeUpdateScope, buildLocaleVersion, buildPathnameHistory, compileMDX, conlocaContent, createContentAPI, createContentAPIRouter, createContentMiddleware, createContentWatchHandlers, extractBlockName, extractCFAccessToken, formatFileSize, generateContentId, getCurrentISODate, getMetadataSize, isContentPublished, isMetadataTooLarge, isValidBlockName, isValidPathname, localesOf, mapLocales, mapSiteNames, normalizePathname, parseDate, resolvePublishDate, serializeMdxWithFrontmatter, shouldUpdateModifiedTimestamp, updatePublishDates, validateAndPrepareMetadata, validateCFAccessRequest, validateCreateContent };
378
- //# sourceMappingURL=node.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node.d.mts","names":[],"sources":["../src/asset-manifest.ts","../src/asset-operations.ts","../src/cf-access.ts","../src/component-registry.ts","../src/content-watcher.ts","../src/in-memory-content-api.ts","../src/mdx/compile.ts","../src/middleware.ts","../src/vite-plugin.ts"],"mappings":";;;;;;;;cAkBa,aAAA;EAAA,QACH,YAAA;EAAA,QACA,KAAA;cAEI,UAAA;EAIN,IAAA,CAAA,GAAQ,OAAA,CAAQ,iBAAA;EAShB,KAAA,CAAM,IAAA,EAAM,iBAAA,GAAoB,OAAA;EAjB3B;EAsBL,YAAA,CAAa,EAAA,GAAK,IAAA,EAAM,iBAAA,KAAsB,iBAAA,GAAoB,O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