@conloca/content-api 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/node.d.mts CHANGED
@@ -1,4 +1,6 @@
1
- import { $ as DataContext, B as ContentData, C as mapSiteNames, Ct as AssetUsage, D as serializeMdxWithFrontmatter, E as resolvePublishDate, Et as ManifestEntryData, F as APIError, G as ContentMeta, H as ContentIdentity, I as BatchOperationResult, J as CreateBlockInput, K as ContentProp, L as BatchResult, M as ContentAPI, N as Site, O as ComponentEntry, P as Data, Q as DataCollectionEntry, R as BlockFilters, S as mapLocales, St as AssetManifestData, T as parseDate, Tt as FolderTreeNode, U as ContentListResult, V as ContentEntry, W as ContentManifest, X as CreatePageInput, Y as CreateContentInput, Z as CreateResult, _ as isContentPublished, _t as UpdateLocaleInput, a as analyzeUpdateScope, at as GlobalFilters, b as isValidPathname, bt as WriteResult, c as shouldUpdateModifiedTimestamp, ct as LocaleUpdateData, d as validateCreateContent, dt as LocalizedManifest, et as DeleteLocaleInput, f as extractBlockName, ft as MDXFrontmatter, g as getMetadataSize, gt as SitesConfig, h as getCurrentISODate, ht as SiteFilters, i as ValidationResult, it as FindOptions, j as Blocks, k as ComponentEntryWithId, l as updatePublishDates, lt as LocaleVersion, m as generateContentId, mt as PageReference, n as UPDATE_SCOPE, nt as ErrorCode, o as buildLocaleVersion, ot as LocaleFileData, p as formatFileSize, pt as MoveResult, q as ContentType, r as UpdateScope, rt as ErrorCodes, s as buildPathnameHistory, st as LocalePathData, t as CreateValidationResult, tt as DeleteResult, u as validateAndPrepareMetadata, ut as LocalizedEntry, v as isMetadataTooLarge, vt as UpdateResult, w as normalizePathname, wt as FolderListing, x as localesOf, xt as AssetEntry, y as isValidBlockName, yt as VXJSONFile, z as ContentAPIOptions } from "./content-operations-BZLfJWqT.mjs";
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";
2
4
  import { Hono } from "hono";
3
5
  import * as hono_types0 from "hono/types";
4
6
  import { Plugin } from "vite";
@@ -266,121 +268,6 @@ declare class ComponentRegistry {
266
268
  delete(id: string): Promise<void>;
267
269
  }
268
270
  //#endregion
269
- //#region src/filesystem-content-api.d.ts
270
- interface ReindexResult {
271
- filesProcessed: number;
272
- filesSkipped: number;
273
- filesDeleted?: number;
274
- errors?: number;
275
- updated: LocalizedManifest[];
276
- deleted?: Array<{
277
- id: string;
278
- locale: string;
279
- kind: 'page' | 'block' | 'data';
280
- }>;
281
- }
282
- /**
283
- * FileSystem-based Content API Implementation
284
- *
285
- * Stores content as files on disk in a git-friendly format:
286
- * - Pages: /{site}/pages/{filename}.{locale}.vxjson
287
- * - Blocks: /blocks/{collection}/{filename}.{locale}.{mdx|vxjson}
288
- *
289
- * ## Indexing
290
- *
291
- * Content is indexed at startup for performance. The index is cached per
292
- * content root path and cleared when the process restarts.
293
- *
294
- * ## Read-Repair
295
- *
296
- * Since files can be modified externally (git, editors), this implementation:
297
- *
298
- * 1. Repairs invalid VXJSON files (ensures "content" field is last)
299
- * 2. Adds missing required fields (id, created, modified)
300
- * 3. Handles files added after initial indexing
301
- * 4. Updates the index when files are repaired or discovered
302
- *
303
- * ## Performance
304
- *
305
- * - Initial indexing reads only first 4KB of each file
306
- * - Full content is loaded on demand
307
- * - ETags are calculated using streaming for efficiency
308
- */
309
- declare class FileSystemContentAPI implements ContentAPI {
310
- private contentRoot;
311
- private absoluteContentRoot;
312
- private contentIndex;
313
- readonly sitesConfig: SitesConfig;
314
- readonly blocks: Blocks;
315
- readonly data: Data;
316
- private readonly sites;
317
- get normalizedContentRoot(): string;
318
- private constructor();
319
- static create(options: ContentAPIOptions): Promise<FileSystemContentAPI>;
320
- /**
321
- * Clear all caches - useful for testing
322
- */
323
- static clearCaches(): void;
324
- private indexAllContent;
325
- private parseFileHeaderWithRepair;
326
- /**
327
- * Perform read-repair by writing back the file with missing fields
328
- * This ensures stable IDs and timestamps across restarts
329
- */
330
- private performReadRepair;
331
- private scanContentFiles;
332
- private getFilePath;
333
- /**
334
- * Parse a file path back into its components for checking against the path index
335
- * Returns null if the path doesn't match expected patterns
336
- */
337
- parseFilePath(filePath: string): {
338
- kind: 'page' | 'block' | 'data';
339
- site?: string;
340
- collection: string;
341
- pathname?: string;
342
- name?: string;
343
- locale: string;
344
- } | null;
345
- getContent(id: string): Promise<ContentEntry | null>;
346
- getLocalized(id: string, locale: string): Promise<LocalizedEntry | null>;
347
- private readLocaleFile;
348
- createContent(data: CreateContentInput): Promise<CreateResult>;
349
- updateLocalized(input: UpdateLocaleInput): Promise<UpdateResult>;
350
- deleteContent(id: string, etag: string): Promise<DeleteResult>;
351
- deleteLocalized(input: DeleteLocaleInput): Promise<DeleteResult>;
352
- getSite(siteName: string): Site | null;
353
- listAllContent(filters?: GlobalFilters): Generator<ContentManifest>;
354
- findUntranslatedContent(targetLocale: string, options?: FindOptions): Generator<ContentManifest>;
355
- /**
356
- * Reindex files that were added or changed after initial creation
357
- *
358
- * This method:
359
- * 1. Either scans for all content files or processes specific paths
360
- * 2. Uses the path index to check if files are already indexed
361
- * 3. Indexes new files or force-reindexes specified files
362
- * 4. Optionally handles file deletions
363
- *
364
- * @param paths - Optional array of specific file paths to reindex. If not provided, scans all content files.
365
- * @param options - Options for reindexing behavior
366
- * @returns Statistics about the reindexing operation
367
- */
368
- reindex(paths?: string[], options?: {
369
- handleDeletions?: boolean;
370
- }): Promise<ReindexResult>;
371
- /**
372
- * Read content directly from cache
373
- * For testing purposes - returns null if not cached
374
- */
375
- readFromCache(id: string, locale: string): Promise<ContentData | null>;
376
- getContentAsBuffer(id: string, locale: string): Promise<{
377
- buffer: Uint8Array;
378
- etag: string;
379
- contentType: 'application/json' | 'text/mdx';
380
- } | null>;
381
- batchUpdate(operations: UpdateLocaleInput[]): Promise<BatchResult>;
382
- }
383
- //#endregion
384
271
  //#region src/content-watcher.d.ts
385
272
  interface ContentWatcherOptions {
386
273
  contentRoot: string;
@@ -393,6 +280,23 @@ interface WebSocketSender {
393
280
  data: any;
394
281
  }): void;
395
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
+ }
396
300
  /**
397
301
  * Creates a content API instance for the given options
398
302
  */
@@ -400,7 +304,7 @@ declare function createContentAPI(options: ContentWatcherOptions): Promise<FileS
400
304
  /**
401
305
  * Creates file change handlers for content watching
402
306
  */
403
- declare function createContentWatchHandlers(contentApi: FileSystemContentAPI, options: ContentWatcherOptions, ws: WebSocketSender): {
307
+ declare function createContentWatchHandlers(contentApi: ReindexableContentAPI, options: ContentWatcherOptions, ws: WebSocketSender, onReindexed?: (event: ContentWatchEvent) => void | Promise<void>): {
404
308
  onChange: (file: string) => Promise<void>;
405
309
  onAdd: (file: string) => Promise<void>;
406
310
  onUnlink: (file: string) => Promise<void>;
@@ -437,6 +341,9 @@ declare class InMemoryContentAPI implements ContentAPI {
437
341
  } | null>;
438
342
  }
439
343
  //#endregion
344
+ //#region src/mdx/compile.d.ts
345
+ declare function compileMDX(content: string): Promise<MDXCompileResponse>;
346
+ //#endregion
440
347
  //#region src/middleware.d.ts
441
348
  /**
442
349
  * Create REST API router using Hono
@@ -467,5 +374,5 @@ interface ConlocaContentOptions {
467
374
  */
468
375
  declare function conlocaContent(options: ConlocaContentOptions): Plugin;
469
376
  //#endregion
470
- 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, MDXFrontmatter, MoveResult, PageReference, Site, SiteFilters, SitesConfig, UPDATE_SCOPE, UpdateLocaleInput, UpdateResult, UpdateScope, VXJSONFile, ValidationResult, type WebSocketSender, WriteResult, analyzeUpdateScope, buildLocaleVersion, buildPathnameHistory, 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 };
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 };
471
378
  //# sourceMappingURL=node.d.mts.map
@@ -1 +1 @@
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/filesystem-content-api.ts","../src/content-watcher.ts","../src/in-memory-content-api.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;;EAKhC,YAAA,CAAa,EAAA,GAAK,IAAA,EAAM,iBAAA,KAAsB,iBAAA,GAAoB,OAAA;EAgBlE,GAAA,CAAI,YAAA,UAAsB,IAAA,EAAM,iBAAA,GAAoB,OAAA;EAOpD,MAAA,CAAO,YAAA,WAAuB,OAAA;EAU9B,GAAA,CAAI,YAAA,WAAuB,OAAA,CAAQ,iBAAA;EAjCX;;;;EA0CxB,aAAA,CAAc,QAAA,WAAmB,OAAA;IAAU,YAAA;IAAsB,IAAA,EAAM,iBAAA;EAAA;AAAA;;;UClE9D,WAAA;EACf,UAAA;EACA,WAAA;EACA,eAAA;;EAEA,WAAA;AAAA;AAAA,cAkCW,eAAA;EAAA,QACH,MAAA;EAAA,QACA,QAAA;EAAA,QACA,UAAA;EAAA,QACA,QAAA;cAEI,MAAA,EAAQ,WAAA;EDrBgC;EAAA,QCgCtC,aAAA;EAAA,QAOA,SAAA;EDvB4C;;;;EAAA,QCkClD,eAAA;EDR+B;;;;;EAAA,Q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A;EAqCvD,OAAA,CAAQ,QAAA,WAAmB,IAAA;EAU1B,cAAA,CAAe,OAAA,GAAU,aAAA,GAAgB,SAAA,CAAU,eAAA;EAInD,uBAAA,CAAwB,YAAA,UAAsB,OAAA,GAAU,WAAA,GAAc,SAAA,CAAU,eAAA;EAK3E,eAAA,CAAgB,KAAA,EAAO,iBAAA,GAAoB,OAAA,CAAQ,YAAA;EAoDnD,WAAA,CAAY,UAAA,EAAY,iBAAA,KAAsB,OAAA,CAAQ,WAAA;EAmC5D,UAAA,CAAW,EAAA,UAAY,OAAA,EAAS,YAAA;EA+ChC,KAAA,CAAA;EAIM,kBAAA,CACJ,EAAA,UACA,MAAA,WACC,OAAA;IACD,MAAA,EAAQ,UAAA;IACR,IAAA;IACA,WAAA;EAAA;AAAA;;;;;;ANvpBJ;UOgBiB,uBAAA;EACf,UAAA;EACA,WAAA,GAAc,IAAA,CAAK,WAAA;EPVL;EOYd,WAAA;AAAA;AAAA,iBAGc,sBAAA,CAAuB,GAAA,EAAK,UAAA,EAAY,OAAA,GAAU,uBAAA,GAAuB,IAAA,CAAA,WAAA,CAAA,QAAA,EAAA,WAAA,CAAA,WAAA;;;;;iBAgnCzE,uBAAA,CAAwB,UAAA,EAAY,UAAA,IAIpC,GAAA,OAAU,GAAA,OAAU,IAAA,iBAAgB,OAAA;;;UCvpCnC,qBAAA;EACf,WAAA;EACA,SAAA;EACA,QAAA;AAAA;ARSF;;;;AAAA,iBQFgB,cAAA,CAAe,OAAA,EAAS,qBAAA,GAAwB,MAAA"}
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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