@conloca/content-api 0.1.13 → 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 DeleteResult, B as ContentData, C as mapSiteNames, Ct as ManifestEntryData, D as serializeMdxWithFrontmatter, E as resolvePublishDate, 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 DeleteLocaleInput, R as BlockFilters, S as mapLocales, St as FolderTreeNode, T as parseDate, U as ContentListResult, V as ContentEntry, W as ContentManifest, X as CreatePageInput, Y as CreateContentInput, Z as CreateResult, _ as isContentPublished, _t as WriteResult, a as analyzeUpdateScope, at as LocalePathData, b as isValidPathname, bt as AssetUsage, c as shouldUpdateModifiedTimestamp, ct as LocalizedEntry, d as validateCreateContent, dt as MoveResult, et as ErrorCode, f as extractBlockName, ft as SiteFilters, g as getMetadataSize, gt as VXJSONFile, h as getCurrentISODate, ht as UpdateResult, i as ValidationResult, it as LocaleFileData, j as Blocks, k as ComponentEntryWithId, l as updatePublishDates, lt as LocalizedManifest, m as generateContentId, mt as UpdateLocaleInput, n as UPDATE_SCOPE, nt as FindOptions, o as buildLocaleVersion, ot as LocaleUpdateData, p as formatFileSize, pt as SitesConfig, q as ContentType, r as UpdateScope, rt as GlobalFilters, s as buildPathnameHistory, st as LocaleVersion, t as CreateValidationResult, tt as ErrorCodes, u as validateAndPrepareMetadata, ut as MDXFrontmatter, v as isMetadataTooLarge, vt as AssetEntry, w as normalizePathname, x as localesOf, xt as FolderListing, y as isValidBlockName, yt as AssetManifestData, z as ContentAPIOptions } from "./content-operations-CGGNiuJk.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";
@@ -6,9 +8,12 @@ import { Plugin } from "vite";
6
8
  //#region src/asset-manifest.d.ts
7
9
  declare class AssetManifest {
8
10
  private manifestPath;
11
+ private _lock;
9
12
  constructor(assetsPath: string);
10
13
  read(): Promise<AssetManifestData>;
11
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>;
12
17
  add(relativePath: string, data: ManifestEntryData): Promise<void>;
13
18
  remove(relativePath: string): Promise<boolean>;
14
19
  get(relativePath: string): Promise<ManifestEntryData | undefined>;
@@ -92,6 +97,7 @@ declare class AssetOperations {
92
97
  }>;
93
98
  /**
94
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.
95
101
  */
96
102
  importFromUrl(url: string, metadata?: {
97
103
  alt?: string;
@@ -189,8 +195,8 @@ declare class AssetOperations {
189
195
  * When env vars are not set (local dev), validation is skipped.
190
196
  */
191
197
  interface CFAccessUser {
192
- email: string;
193
- sub: string;
198
+ email?: string;
199
+ sub?: string;
194
200
  }
195
201
  interface CFAccessResult {
196
202
  valid: boolean;
@@ -262,121 +268,6 @@ declare class ComponentRegistry {
262
268
  delete(id: string): Promise<void>;
263
269
  }
264
270
  //#endregion
265
- //#region src/filesystem-content-api.d.ts
266
- interface ReindexResult {
267
- filesProcessed: number;
268
- filesSkipped: number;
269
- filesDeleted?: number;
270
- errors?: number;
271
- updated: LocalizedManifest[];
272
- deleted?: Array<{
273
- id: string;
274
- locale: string;
275
- kind: 'page' | 'block' | 'data';
276
- }>;
277
- }
278
- /**
279
- * FileSystem-based Content API Implementation
280
- *
281
- * Stores content as files on disk in a git-friendly format:
282
- * - Pages: /{site}/pages/{filename}.{locale}.vxjson
283
- * - Blocks: /blocks/{collection}/{filename}.{locale}.{mdx|vxjson}
284
- *
285
- * ## Indexing
286
- *
287
- * Content is indexed at startup for performance. The index is cached per
288
- * content root path and cleared when the process restarts.
289
- *
290
- * ## Read-Repair
291
- *
292
- * Since files can be modified externally (git, editors), this implementation:
293
- *
294
- * 1. Repairs invalid VXJSON files (ensures "content" field is last)
295
- * 2. Adds missing required fields (id, created, modified)
296
- * 3. Handles files added after initial indexing
297
- * 4. Updates the index when files are repaired or discovered
298
- *
299
- * ## Performance
300
- *
301
- * - Initial indexing reads only first 4KB of each file
302
- * - Full content is loaded on demand
303
- * - ETags are calculated using streaming for efficiency
304
- */
305
- declare class FileSystemContentAPI implements ContentAPI {
306
- private contentRoot;
307
- private absoluteContentRoot;
308
- private contentIndex;
309
- readonly sitesConfig: SitesConfig;
310
- readonly blocks: Blocks;
311
- readonly data: Data;
312
- private readonly sites;
313
- get normalizedContentRoot(): string;
314
- private constructor();
315
- static create(options: ContentAPIOptions): Promise<FileSystemContentAPI>;
316
- /**
317
- * Clear all caches - useful for testing
318
- */
319
- static clearCaches(): void;
320
- private indexAllContent;
321
- private parseFileHeaderWithRepair;
322
- /**
323
- * Perform read-repair by writing back the file with missing fields
324
- * This ensures stable IDs and timestamps across restarts
325
- */
326
- private performReadRepair;
327
- private scanContentFiles;
328
- private getFilePath;
329
- /**
330
- * Parse a file path back into its components for checking against the path index
331
- * Returns null if the path doesn't match expected patterns
332
- */
333
- parseFilePath(filePath: string): {
334
- kind: 'page' | 'block' | 'data';
335
- site?: string;
336
- collection: string;
337
- pathname?: string;
338
- name?: string;
339
- locale: string;
340
- } | null;
341
- getContent(id: string): Promise<ContentEntry | null>;
342
- getLocalized(id: string, locale: string): Promise<LocalizedEntry | null>;
343
- private readLocaleFile;
344
- createContent(data: CreateContentInput): Promise<CreateResult>;
345
- updateLocalized(input: UpdateLocaleInput): Promise<UpdateResult>;
346
- deleteContent(id: string, etag: string): Promise<DeleteResult>;
347
- deleteLocalized(input: DeleteLocaleInput): Promise<DeleteResult>;
348
- getSite(siteName: string): Site | null;
349
- listAllContent(filters?: GlobalFilters): Generator<ContentManifest>;
350
- findUntranslatedContent(targetLocale: string, options?: FindOptions): Generator<ContentManifest>;
351
- /**
352
- * Reindex files that were added or changed after initial creation
353
- *
354
- * This method:
355
- * 1. Either scans for all content files or processes specific paths
356
- * 2. Uses the path index to check if files are already indexed
357
- * 3. Indexes new files or force-reindexes specified files
358
- * 4. Optionally handles file deletions
359
- *
360
- * @param paths - Optional array of specific file paths to reindex. If not provided, scans all content files.
361
- * @param options - Options for reindexing behavior
362
- * @returns Statistics about the reindexing operation
363
- */
364
- reindex(paths?: string[], options?: {
365
- handleDeletions?: boolean;
366
- }): Promise<ReindexResult>;
367
- /**
368
- * Read content directly from cache
369
- * For testing purposes - returns null if not cached
370
- */
371
- readFromCache(id: string, locale: string): Promise<ContentData | null>;
372
- getContentAsBuffer(id: string, locale: string): Promise<{
373
- buffer: Uint8Array;
374
- etag: string;
375
- contentType: 'application/json' | 'text/mdx';
376
- } | null>;
377
- batchUpdate(operations: UpdateLocaleInput[]): Promise<BatchResult>;
378
- }
379
- //#endregion
380
271
  //#region src/content-watcher.d.ts
381
272
  interface ContentWatcherOptions {
382
273
  contentRoot: string;
@@ -389,6 +280,23 @@ interface WebSocketSender {
389
280
  data: any;
390
281
  }): void;
391
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
+ }
392
300
  /**
393
301
  * Creates a content API instance for the given options
394
302
  */
@@ -396,7 +304,7 @@ declare function createContentAPI(options: ContentWatcherOptions): Promise<FileS
396
304
  /**
397
305
  * Creates file change handlers for content watching
398
306
  */
399
- 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>): {
400
308
  onChange: (file: string) => Promise<void>;
401
309
  onAdd: (file: string) => Promise<void>;
402
310
  onUnlink: (file: string) => Promise<void>;
@@ -433,6 +341,9 @@ declare class InMemoryContentAPI implements ContentAPI {
433
341
  } | null>;
434
342
  }
435
343
  //#endregion
344
+ //#region src/mdx/compile.d.ts
345
+ declare function compileMDX(content: string): Promise<MDXCompileResponse>;
346
+ //#endregion
436
347
  //#region src/middleware.d.ts
437
348
  /**
438
349
  * Create REST API router using Hono
@@ -463,5 +374,5 @@ interface ConlocaContentOptions {
463
374
  */
464
375
  declare function conlocaContent(options: ConlocaContentOptions): Plugin;
465
376
  //#endregion
466
- 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, DeleteLocaleInput, DeleteResult, ErrorCode, ErrorCodes, FileSystemContentAPI, FindOptions, GlobalFilters, InMemoryContentAPI, LocaleFileData, LocalePathData, LocaleUpdateData, LocaleVersion, LocalizedEntry, LocalizedManifest, MDXFrontmatter, MoveResult, 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 };
467
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":";;;;;;cAiBa,aAAA;EAAA,QACH,YAAA;cAEI,UAAA;EAIN,IAAA,CAAA,GAAQ,OAAA,CAAQ,i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AA,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;ARQF;;;;AAAA,iBQDgB,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,iBAAA;EAShB,KAAA,CAAM,IAAA,EAAM,iBAAA,GAAoB,OAAA;EAjB3B;EAsBL,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;EAtCvB;;;;EA+CZ,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;ED1BkB;EAAA,QCqCxB,aAAA;EAAA,QAOA,SAAA;EDvC0D;;;;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