@elytracms/next 0.0.90 → 0.0.91
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/index.d.ts +189 -225
- package/dist/index.js +131 -109
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { ComponentRegistry,
|
|
2
|
+
import { ComponentRegistry, ComponentManifest } from '@elytracms/core/component-registry';
|
|
3
3
|
export { ComponentManifest, PropField, SlotSpec, defineComponent } from '@elytracms/core/component-registry';
|
|
4
4
|
import { ComponentImplementations, RelationTarget, DocumentBodyItem } from '@elytracms/core/runtime-renderer';
|
|
5
5
|
export { ComponentImplementations, RenderAsset } from '@elytracms/core/runtime-renderer';
|
|
6
6
|
import { HostComponentEntry } from '@elytracms/core/studio-core';
|
|
7
|
-
import { ResolvePageResult, ResolvedAsset, Perspective, ContentClient, CacheTags, ContentDocumentSource, ResolvedDocument } from '@elytracms/core/content';
|
|
7
|
+
import { ContentQueryError, ResolvePageResult, ResolvedAsset, Perspective, ContentClient, CacheTags, ContentDocumentSource, ResolvedDocument } from '@elytracms/core/content';
|
|
8
8
|
export { Perspective } from '@elytracms/core/content';
|
|
9
9
|
import { LocaleConfig, Locale, RouteRecord, CollectionDef, RedirectRecord, LocaleConfigInput } from '@elytracms/core/cms-core';
|
|
10
10
|
export { CmsDocument, CollectionDef, FieldDef, Locale, LocaleConfig, LocaleConfigInput, LocaleRequest, LocaleStrategy, LocaleUrlPath, RedirectRecord, RouteRecord, documentSchema, fallbackHomeRoutes, localeConfigSchema, localeUrlPath, mergeRouteRecords, parseLocaleConfig, redirectRecordSchema, resolveLocale, routeRecordSchema, splitLocalePath, textDirection } from '@elytracms/core/cms-core';
|
|
11
11
|
import { AssetRecord, PersistenceAdapter } from '@elytracms/core/persistence';
|
|
12
12
|
export { AssetRecord } from '@elytracms/core/persistence';
|
|
13
|
+
import { Clock } from '@elytracms/core/determinism';
|
|
13
14
|
import { ResolvingMetadata, Metadata, ResolvedMetadata, MetadataRoute } from 'next';
|
|
14
15
|
import { RevalidationEvent } from '@elytracms/core/revalidation';
|
|
15
16
|
export { REVALIDATE_SIGNATURE_HEADER, RevalidationEvent, RevalidationEventKind, revalidationEventSchema, signRevalidationBody, signedRevalidationRequest } from '@elytracms/core/revalidation';
|
|
@@ -37,48 +38,43 @@ interface HostComponent {
|
|
|
37
38
|
/**
|
|
38
39
|
* The registered component surface a host app hands to `<CanvasRenderer />`
|
|
39
40
|
* and the catch-all route helper: a manifest registry plus the implementation
|
|
40
|
-
* map
|
|
41
|
-
*
|
|
41
|
+
* map. Registration problems — duplicate ids, invalid ids, role claims, and
|
|
42
|
+
* `invalid-implementation` for an entry whose `implementation` is not a React
|
|
43
|
+
* component — are structured issues in `registry.issues`, the ONE record every
|
|
44
|
+
* surface reads (EC-591; never thrown — an unknown component renders the EC-015
|
|
45
|
+
* fallback). The studio registers the same config list through the same core
|
|
46
|
+
* step, so it shows exactly these issues.
|
|
42
47
|
*/
|
|
43
48
|
interface HostComponents {
|
|
44
49
|
registry: ComponentRegistry;
|
|
45
50
|
implementations: ComponentImplementations;
|
|
46
|
-
/**
|
|
47
|
-
* Structural registration issues: the registry's own (duplicate ids, invalid
|
|
48
|
-
* namespaces, …) plus `invalid-implementation` for an entry whose
|
|
49
|
-
* `implementation` is not a React component (EC-541).
|
|
50
|
-
*/
|
|
51
|
-
issues: readonly ComponentIssue[];
|
|
52
|
-
}
|
|
53
|
-
interface DefineHostComponentsOptions {
|
|
54
|
-
/**
|
|
55
|
-
* Include the platform primitives (`base.*`) that ship with
|
|
56
|
-
* `@elytracms/core/runtime-renderer`. Defaults to `true` — graphs authored in the
|
|
57
|
-
* builder assume them.
|
|
58
|
-
*/
|
|
59
|
-
includeBasePrimitives?: boolean;
|
|
60
51
|
}
|
|
61
52
|
/**
|
|
62
|
-
* Component registration
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
53
|
+
* Component registration for the embedded runtime (EC-144, EC-591): the host
|
|
54
|
+
* registers EXACTLY the list it is given — the config's `components` — through
|
|
55
|
+
* core's one registration step `registerComponents`, the same step the studio
|
|
56
|
+
* registry and the preview harness call. The engine adds nothing: there are no
|
|
57
|
+
* base primitives and no override layer (EC-591 deleted `includeBasePrimitives`).
|
|
58
|
+
* The components Elytra ships are an opt-in package listed in the config like any
|
|
59
|
+
* other (`components: [...elytraComponents, ...siteComponents]`).
|
|
60
|
+
*
|
|
61
|
+
* One precedence rule: a duplicate id is refused WHOLE (`duplicate-id`, the first
|
|
62
|
+
* entry kept), so a manifest never ships with another entry's implementation.
|
|
63
|
+
* To replace a shipped component, list yours under the id and leave the shipped
|
|
64
|
+
* entry out; to swap only the Image implementation for `next/image`, wrap the
|
|
65
|
+
* list in {@link withNextImage}.
|
|
67
66
|
*
|
|
68
67
|
* Accepts the CONFIG's entry shape (`implementation: unknown`) rather than the
|
|
69
68
|
* strict {@link HostComponent}: the config declares implementations opaquely,
|
|
70
69
|
* and EC-539 made `createElytraHost({ ...site })` the contract, so a
|
|
71
70
|
* compile-time check at this seam was already gone for the recommended path.
|
|
72
|
-
* The check is RUNTIME instead (EC-541)
|
|
73
|
-
* `registerImplementations` (EC-555 — the studio registry and the preview
|
|
74
|
-
* harness call the same one): a value that is not a component is
|
|
71
|
+
* The check is RUNTIME instead (EC-541): a value that is not a component is
|
|
75
72
|
* recorded as an `invalid-implementation` issue naming the component id and
|
|
76
73
|
* the received kind, and is NOT put into `implementations` — so the renderer
|
|
77
74
|
* takes its missing-component path (a visible EC-015 fallback) instead of
|
|
78
75
|
* crashing the server render on `createElement` ("Element type is invalid")
|
|
79
76
|
* or, for a string, silently rendering an HTML tag. The manifest still
|
|
80
|
-
* registers, so the
|
|
81
|
-
* entry are reported alongside.
|
|
77
|
+
* registers, so the entry shows as broken rather than vanishing.
|
|
82
78
|
*
|
|
83
79
|
* One consequence of the `unknown` parameter: an INLINE
|
|
84
80
|
* `implementation: (props) => …` literal no longer gets `props` contextually
|
|
@@ -87,7 +83,7 @@ interface DefineHostComponentsOptions {
|
|
|
87
83
|
* anyway. (An overload pair was tried and does not restore it: TypeScript
|
|
88
84
|
* resolves the context-sensitive literal against the wider overload.)
|
|
89
85
|
*/
|
|
90
|
-
declare function defineHostComponents(components?: readonly HostComponentEntry[]
|
|
86
|
+
declare function defineHostComponents(components?: readonly HostComponentEntry[]): HostComponents;
|
|
91
87
|
|
|
92
88
|
/**
|
|
93
89
|
* `<CanvasRenderer />` (EC-144, vision AD-1): an async React Server Component
|
|
@@ -120,9 +116,10 @@ interface CanvasRendererProps {
|
|
|
120
116
|
* Documents each `listing` block resolved to, keyed by serialized query (EC-255,
|
|
121
117
|
* from the render outcome). A ProductGrid keyed to a picked `category` reads its
|
|
122
118
|
* products through this; an unknown key (or absent map) degrades to the block's
|
|
123
|
-
* own empty state — the same degradation as a missing relation.
|
|
119
|
+
* own empty state — the same degradation as a missing relation. A query that
|
|
120
|
+
* could not run is baked as its errors (EC-581 6a) and shown above the block.
|
|
124
121
|
*/
|
|
125
|
-
listings?: Record<string,
|
|
122
|
+
listings?: Record<string, BakedListing>;
|
|
126
123
|
/**
|
|
127
124
|
* URL paths for the documents this page's rich-text props LINK to, keyed
|
|
128
125
|
* `collection:id` (EC-291, from the render outcome). A self-typed internal link
|
|
@@ -155,6 +152,14 @@ interface DeliveryPresentation {
|
|
|
155
152
|
/** Field names whose values form the body, in render order. */
|
|
156
153
|
body?: readonly string[];
|
|
157
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* One listing's baked result (EC-255; EC-581 6a): the documents its query matched,
|
|
157
|
+
* or the structured errors `listDocuments` refused it with. Plain data — it rides
|
|
158
|
+
* the serializable render outcome and the RSC boundary like the other bakes.
|
|
159
|
+
*/
|
|
160
|
+
type BakedListing = RelationTarget[] | {
|
|
161
|
+
errors: readonly ContentQueryError[];
|
|
162
|
+
};
|
|
158
163
|
/**
|
|
159
164
|
* Render a resolved page server-side. Async so hosts can compose it like any
|
|
160
165
|
* other RSC; resolution itself is synchronous (the content was prefetched by
|
|
@@ -395,8 +400,24 @@ type CanvasPageOutcome = {
|
|
|
395
400
|
* cannot ride the data cache or cross the RSC boundary. A listing depends on
|
|
396
401
|
* collection MEMBERSHIP (a product joining/leaving the category), so its
|
|
397
402
|
* invalidation rides the per-query `listDocuments` tags merged into `tags`.
|
|
403
|
+
*
|
|
404
|
+
* EC-581 6a: a query `listDocuments` refused (a non-filterable field, an
|
|
405
|
+
* operand of the wrong type, a bad limit) is baked as `{ errors }` — the
|
|
406
|
+
* structured `ContentQueryError`s — and `<CanvasRenderer />` shows them above
|
|
407
|
+
* the block (`data-ec-fallback="invalid-listing"`), never an empty grid
|
|
408
|
+
* indistinguishable from "no matching content".
|
|
398
409
|
*/
|
|
399
|
-
listings: Record<string,
|
|
410
|
+
listings: Record<string, BakedListing>;
|
|
411
|
+
/**
|
|
412
|
+
* EC-581 6a: whether resolving this page READ THE CLOCK — a listing on it
|
|
413
|
+
* binds an operand to `now` (e.g. "events whose date is still ahead"). Such a
|
|
414
|
+
* page's content changes as time passes, not only on publish: a cached entry
|
|
415
|
+
* of it is correct for the instant it was resolved and goes stale when a
|
|
416
|
+
* listed document crosses its `now` boundary, which no publish tag covers. A
|
|
417
|
+
* cache layer must bound that entry's life (the delivery cache — EC-515 —
|
|
418
|
+
* reads this). `false` for every page with no `now`-bound listing.
|
|
419
|
+
*/
|
|
420
|
+
readsNow: boolean;
|
|
400
421
|
/**
|
|
401
422
|
* The public URL path of every document a rich-text prop on this page LINKS
|
|
402
423
|
* to (EC-291), keyed `collection:id`. Baked into the outcome (serializable) so
|
|
@@ -433,6 +454,14 @@ interface ResolveCanvasPageOptions {
|
|
|
433
454
|
* resolution exactly, so no referenced image is ever dropped.
|
|
434
455
|
*/
|
|
435
456
|
registry?: ComponentRegistry;
|
|
457
|
+
/**
|
|
458
|
+
* The clock a `{ now: true }` listing operand reads (EC-581 6a) — an ISO-8601
|
|
459
|
+
* UTC instant, read at most once per resolution so every listing on the page
|
|
460
|
+
* compares against the SAME instant. Defaults to the system clock; tests and
|
|
461
|
+
* fixtures inject a fixed one. Taken as a FUNCTION, read during resolution, so a
|
|
462
|
+
* `now` value is never an argument a cache keys on.
|
|
463
|
+
*/
|
|
464
|
+
clock?: Clock;
|
|
436
465
|
}
|
|
437
466
|
/**
|
|
438
467
|
* Resolve one request URL against a content source: split the locale, run
|
|
@@ -463,8 +492,8 @@ interface CanvasCacheOptions {
|
|
|
463
492
|
* prefetched source (the fixture snapshot) can ignore it; a live loader uses
|
|
464
493
|
* it to fetch the draft-perspective snapshot only for draft-mode requests —
|
|
465
494
|
* it must NOT call request APIs like `draftMode()` itself, because on the
|
|
466
|
-
* cached published path the loader runs inside `
|
|
467
|
-
*
|
|
495
|
+
* cached published path the loader runs inside a `'use cache'` function, where
|
|
496
|
+
* request APIs are unavailable.
|
|
468
497
|
*/
|
|
469
498
|
interface CanvasContentRequest {
|
|
470
499
|
perspective: Perspective;
|
|
@@ -483,11 +512,12 @@ interface CanvasRouteOptions {
|
|
|
483
512
|
/** Host component surface from `defineHostComponents`. */
|
|
484
513
|
components: HostComponents;
|
|
485
514
|
/**
|
|
486
|
-
* EC-146 instant publish: cache the published-perspective resolution
|
|
487
|
-
*
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
*
|
|
515
|
+
* EC-146 instant publish: cache the published-perspective resolution as a
|
|
516
|
+
* `'use cache'` entry tagged with the response's own fetch-time tags,
|
|
517
|
+
* invalidated by the `/api/revalidate` webhook (EC-515). Draft mode and
|
|
518
|
+
* `next dev` always bypass it. Tag-driven only — no time-based revalidation
|
|
519
|
+
* (the AD-5 model, `CANVAS_CACHE_LIFE`). Requires `cacheComponents: true` in
|
|
520
|
+
* the host's `next.config`.
|
|
491
521
|
*/
|
|
492
522
|
cache?: CanvasCacheOptions;
|
|
493
523
|
/**
|
|
@@ -552,7 +582,33 @@ interface CanvasRoute {
|
|
|
552
582
|
* on 0.0.88 (the Turbopack validator is lenient, which is how the gate missed it).
|
|
553
583
|
*/
|
|
554
584
|
generateMetadata: (props: CanvasRouteProps, parent: ResolvingMetadata) => Promise<Metadata>;
|
|
585
|
+
/**
|
|
586
|
+
* `export const generateStaticParams = route.generateStaticParams` — REQUIRED in
|
|
587
|
+
* the catch-all page file under `cacheComponents` (EC-515, measured on Next
|
|
588
|
+
* 16.2.10): without it, awaiting the catch-all's `params` fails `next build`
|
|
589
|
+
* ("Uncached data was accessed outside of <Suspense>"). Wrapping the page in
|
|
590
|
+
* `<Suspense>` (or a root `loading.tsx`) instead also builds, but answers every
|
|
591
|
+
* 404 and every redirect with HTTP 200 — the status is committed before the
|
|
592
|
+
* content resolves. Declaring params keeps the page blocking, so `notFound()` is a
|
|
593
|
+
* real 404 and a redirect a real 308/307.
|
|
594
|
+
*
|
|
595
|
+
* It names ONE param set: {@link CANVAS_VALIDATION_SLUG}, a sample that Next
|
|
596
|
+
* prerenders to validate the route and that resolves to not-found without
|
|
597
|
+
* reading content (the build never touches the backend for it). It fits both
|
|
598
|
+
* catch-all shapes (`[[...slug]]` and the scaffold's required `[...slug]`, which
|
|
599
|
+
* rejects an empty slug), and it is never empty (Next rejects an empty list).
|
|
600
|
+
* Every real URL renders on its first request and is cached from then on.
|
|
601
|
+
*/
|
|
602
|
+
generateStaticParams: () => Promise<Array<{
|
|
603
|
+
slug: string[];
|
|
604
|
+
}>>;
|
|
555
605
|
}
|
|
606
|
+
/**
|
|
607
|
+
* The catch-all's build-time validation sample (see
|
|
608
|
+
* {@link CanvasRoute.generateStaticParams}). The path is reserved: the canvas
|
|
609
|
+
* route answers it with not-found and never resolves it against content.
|
|
610
|
+
*/
|
|
611
|
+
declare const CANVAS_VALIDATION_SLUG: readonly string[];
|
|
556
612
|
/** Create the `{ Page, generateMetadata }` pair for `app/[[...slug]]/page.tsx`. */
|
|
557
613
|
declare function createCanvasRoute(options: CanvasRouteOptions): CanvasRoute;
|
|
558
614
|
|
|
@@ -695,12 +751,15 @@ declare function createCanvasSitemap(options: CreateCanvasSitemapOptions): () =>
|
|
|
695
751
|
* Cache-tag pipeline (EC-146, vision AD-5) — the pure half.
|
|
696
752
|
*
|
|
697
753
|
* This module defines (a) the **canonical Next.js tag string format** mapping
|
|
698
|
-
* the accessor-level `CacheTags` (EC-143) onto `revalidateTag` keys,
|
|
699
|
-
* **tag derivation for a revalidation event** ({@link revalidationTags},
|
|
700
|
-
* the receiver's half of the one emitter), and (c) the **
|
|
701
|
-
*
|
|
702
|
-
*
|
|
703
|
-
* `
|
|
754
|
+
* the accessor-level `CacheTags` (EC-143) onto `cacheTag` / `revalidateTag` keys,
|
|
755
|
+
* (b) the **tag derivation for a revalidation event** ({@link revalidationTags},
|
|
756
|
+
* EC-579 — the receiver's half of the one emitter), and (c) the **pure half of the
|
|
757
|
+
* route's cache entry** (EC-515): its key ({@link canvasCacheKey}), its `cacheTag`
|
|
758
|
+
* calls ({@link entryTagCalls}), its life ({@link CANVAS_CACHE_LIFE}) and the
|
|
759
|
+
* resolver registry the module-level `'use cache'` function reads its loader from
|
|
760
|
+
* ({@link registerCanvasResolver}). No Next.js imports — everything here is
|
|
761
|
+
* unit-testable; `route.tsx` holds the one `'use cache'` function that calls
|
|
762
|
+
* `cacheTag` / `cacheLife` with these values.
|
|
704
763
|
*
|
|
705
764
|
* This is the ONE tag module: the entries are tagged here and the invalidations
|
|
706
765
|
* are derived here, from the same formatters and the same scope. Before EC-579 the
|
|
@@ -723,8 +782,8 @@ declare function createCanvasSitemap(options: CreateCanvasSitemapOptions): () =>
|
|
|
723
782
|
* (alt/dimensions/re-upload) drops exactly the pages that baked it. Not
|
|
724
783
|
* locale-scoped — an asset record is locale-agnostic.
|
|
725
784
|
* - `project` — the whole-project sweep tag attached to **every** cached
|
|
726
|
-
* entry;
|
|
727
|
-
*
|
|
785
|
+
* entry; derived for the events whose effect no narrower tag names (a redirect
|
|
786
|
+
* change, an asset edit — see {@link revalidationTags}).
|
|
728
787
|
*
|
|
729
788
|
* ## Project scope
|
|
730
789
|
*
|
|
@@ -751,7 +810,7 @@ declare function collectionCacheTag(collection: string, locale: string, scope?:
|
|
|
751
810
|
declare function routeCacheTag(pattern: string, locale: string, scope?: string): string;
|
|
752
811
|
/**
|
|
753
812
|
* The whole-project sweep tag. Attached to every cached page entry; derived for
|
|
754
|
-
*
|
|
813
|
+
* the events no narrower tag covers ({@link revalidationTags}).
|
|
755
814
|
*/
|
|
756
815
|
declare function projectSweepTag(scope?: string): string;
|
|
757
816
|
/**
|
|
@@ -773,137 +832,26 @@ interface RevalidationProject {
|
|
|
773
832
|
*
|
|
774
833
|
* - `publish` / `unpublish` / `delete` → `doc:<collection>:<id>` (its detail page and
|
|
775
834
|
* every cached list that contained it) + `collection:<collection>:<locale>` for
|
|
776
|
-
* EVERY locale this host serves (list membership may have changed
|
|
835
|
+
* EVERY locale this host serves (list membership may have changed, and a URL
|
|
836
|
+
* cached as not-found for a document that now exists carries it too). **No
|
|
837
|
+
* sweep** — a publish drops exactly the entries that read the document or its
|
|
838
|
+
* collection (EC-515);
|
|
777
839
|
* - `redirects` → the sweep (routing can change any URL; see the `redirects` trigger
|
|
778
840
|
* in the studio's `convex/triggers.ts` for why a targeted `route:` tag is wrong);
|
|
779
841
|
* - `asset` → `asset:<id>` + the sweep (a page reading the asset through a document
|
|
780
842
|
* asset FIELD carries no `asset:` tag — EC-566 D16, EC-589);
|
|
781
843
|
* - `probe` → nothing (the doctor's no-op ping).
|
|
782
844
|
*
|
|
783
|
-
*
|
|
784
|
-
*
|
|
785
|
-
*
|
|
786
|
-
*
|
|
787
|
-
*
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
*
|
|
791
|
-
* sweep stays on every event, exactly as the Convex path sent it before. Dropping it
|
|
792
|
-
* from a publish is EC-515's job, together with the read that makes it safe.
|
|
845
|
+
* Why the precise tags are enough now (EC-515, option D): each route entry declares
|
|
846
|
+
* its tags with `cacheTag` from INSIDE the cached function, and Next decides an
|
|
847
|
+
* entry's staleness from the tags it was STORED with — so a `doc:` tag drops the
|
|
848
|
+
* entries that read the document, on a self-hosted host as on any other. Until
|
|
849
|
+
* then the read named only the baseline sweep (`unstable_cache` judged the
|
|
850
|
+
* reading wrapper's tags), every precise tag was inert on a self-hosted host, and
|
|
851
|
+
* every publish carried the sweep to compensate (wave-0091). Measured both ways
|
|
852
|
+
* in EC-515's harness.
|
|
793
853
|
*/
|
|
794
854
|
declare function revalidationTags(event: RevalidationEvent, project: RevalidationProject): string[];
|
|
795
|
-
/**
|
|
796
|
-
* The slice of `unstable_cache` the discovery logic needs, injectable so the
|
|
797
|
-
* logic is testable against a faithful in-memory model (and so the test model
|
|
798
|
-
* can mirror the real semantics this design depends on — see below).
|
|
799
|
-
*/
|
|
800
|
-
interface CacheWrapperOptions {
|
|
801
|
-
tags: string[];
|
|
802
|
-
/** `false` = never expire by time (tag-driven invalidation only). */
|
|
803
|
-
revalidate: number | false;
|
|
804
|
-
}
|
|
805
|
-
type CacheWrapper = <T>(cb: () => Promise<T>, keyParts: string[], options: CacheWrapperOptions) => () => Promise<T>;
|
|
806
|
-
/** What one cached request stores: the outcome plus its own discovered tags. */
|
|
807
|
-
interface CachedEntry<T> {
|
|
808
|
-
value: T;
|
|
809
|
-
/** The Next tag strings discovered at fetch time by the run that wrote this entry. */
|
|
810
|
-
tags: string[];
|
|
811
|
-
}
|
|
812
|
-
/**
|
|
813
|
-
* Fetch-time tag discovery over `unstable_cache` — the heart of EC-146.
|
|
814
|
-
*
|
|
815
|
-
* The problem: `unstable_cache` fixes an entry's tags when the *wrapper* is
|
|
816
|
-
* created (`options.tags` is validated and **copied** at construction time in
|
|
817
|
-
* Next 15 — mutating the array during the callback does not propagate), but
|
|
818
|
-
* the correct tags are only known *after* the loader resolved the page. So a
|
|
819
|
-
* single wrapper can never both (a) run the loader and (b) store the result
|
|
820
|
-
* under the tags that run discovered.
|
|
821
|
-
*
|
|
822
|
-
* The design ("resolve once, cache with discovered tags, serve cached
|
|
823
|
-
* thereafter") uses two wrapper constructions per request around **one**
|
|
824
|
-
* cache entry:
|
|
825
|
-
*
|
|
826
|
-
* 1. **Probe pass** — a wrapper keyed by `keyParts` whose callback runs the
|
|
827
|
-
* loader, captures the result + its discovered tags into the closure, and
|
|
828
|
-
* then throws an internal sentinel.
|
|
829
|
-
* - Cache **hit**: the stored entry (written by a previous request with
|
|
830
|
-
* its full discovered tags) is returned; the callback — and therefore
|
|
831
|
-
* the loader and any backend access — never runs. This is the outage
|
|
832
|
-
* story: fully cached routes keep serving when the backend is down.
|
|
833
|
-
* - Cache **miss**: the loader runs exactly once; the sentinel throw
|
|
834
|
-
* prevents `unstable_cache` from persisting the entry under the
|
|
835
|
-
* incomplete baseline tags (thrown callbacks cache nothing).
|
|
836
|
-
* 2. **Write pass** (miss only) — a second wrapper is constructed *now that
|
|
837
|
-
* the tags are known*, with `options.tags` = the discovered set, same key.
|
|
838
|
-
* Its callback just returns the already-loaded entry, so the backend is
|
|
839
|
-
* not hit again; `unstable_cache` persists the entry under the full
|
|
840
|
-
* fetch-time tag set. `revalidateTag` on any of those tags drops the
|
|
841
|
-
* entry and the next request repeats the cycle with fresh data.
|
|
842
|
-
*
|
|
843
|
-
* The loader runs **once per revalidation cycle** (per key), never once per
|
|
844
|
-
* request. Time-based revalidation is intentionally not exposed, and the reason
|
|
845
|
-
* is a real hazard rather than a preference: a stale-while-revalidate background
|
|
846
|
-
* refresh re-runs the probe callback, whose bail aborts the refresh, so the
|
|
847
|
-
* entry is never rewritten. `revalidate: false` keeps *time* from ever putting
|
|
848
|
-
* an entry into that state — which is the AD-5 model.
|
|
849
|
-
*
|
|
850
|
-
* **What `revalidate: false` does NOT buy (EC-515, measured on Next 16.2.10).**
|
|
851
|
-
* The earlier version of this comment claimed `revalidate: false` made the SWR
|
|
852
|
-
* hazard unreachable. It does not: a **tag** can put an entry into the stale
|
|
853
|
-
* state too, and then exactly the aborted-refresh loop above happens. Whether it
|
|
854
|
-
* does is decided by how the invalidator stamps the tag —
|
|
855
|
-
* `revalidateTag(tag, 'max')` marks entries stale (365-day expiry) and triggers
|
|
856
|
-
* the loop; `revalidateTag(tag, { expire: 0 })` drops them outright and does
|
|
857
|
-
* not. `revalidate.ts` therefore sends `{ expire: 0 }`, and the reasoning lives
|
|
858
|
-
* at that call site. Keep the two in step: this design only survives an
|
|
859
|
-
* invalidation that **drops** the entry, never one that merely staleness-marks
|
|
860
|
-
* it.
|
|
861
|
-
*
|
|
862
|
-
* Concurrency: wrappers and the captured closure are per-request, so there is
|
|
863
|
-
* no cross-request mutation; two racing first requests both resolve and the
|
|
864
|
-
* last write wins (deterministic content ⇒ identical entries).
|
|
865
|
-
*
|
|
866
|
-
* ## ⚠️ Self-hosted hosts: only the BASELINE tags invalidate (EC-515)
|
|
867
|
-
*
|
|
868
|
-
* **Measured on a self-hosted `next start` (Next 16.2.10, default
|
|
869
|
-
* `FileSystemCache`, `.next/cache` on disk); NOT measured on Vercel.**
|
|
870
|
-
*
|
|
871
|
-
* Fetch-time tag discovery writes the entry with the tags the response actually
|
|
872
|
-
* read — but the default self-hosted cache handler decides staleness and expiry
|
|
873
|
-
* from the tags the **reading** wrapper names (`ctx.tags`, see
|
|
874
|
-
* `IncrementalCache.get` / `FileSystemCache.get` for `kind: FETCH`), not from
|
|
875
|
-
* the tags the entry was **stored** with. The stored tag set is only ever used
|
|
876
|
-
* to decide whether to re-write the entry with a superset.
|
|
877
|
-
*
|
|
878
|
-
* Every read in {@link loadCachedEntry} goes through the **probe** wrapper,
|
|
879
|
-
* whose tags are `baselineTags`. So on such a host:
|
|
880
|
-
*
|
|
881
|
-
* - revalidating a tag that is in `baselineTags` works (the route helper passes
|
|
882
|
-
* the project sweep tag, so `project` sweeps do invalidate);
|
|
883
|
-
* - revalidating a *discovered* `doc:` / `collection:` / `route:` / `asset:` tag
|
|
884
|
-
* invalidates **nothing** — silently. No error, no log line, no loader run.
|
|
885
|
-
*
|
|
886
|
-
* Measured 2×2 that isolates it (same host, same run): a probe handed the full
|
|
887
|
-
* discovered tag set up front DOES honour a `doc:` tag, and the same probe
|
|
888
|
-
* handed only the baseline does not. So the tags, their formatting and the
|
|
889
|
-
* webhook are all correct — the read simply never consults them.
|
|
890
|
-
*
|
|
891
|
-
* Consequence for a self-hosted deployment: invalidation granularity collapses
|
|
892
|
-
* to whatever is in `baselineTags`. {@link revalidationTags} therefore adds the
|
|
893
|
-
* project sweep to every event that changes live output (EC-579), so instant
|
|
894
|
-
* publish still *works* there, coarsely; its targeted `doc:`/`collection:`/`asset:`
|
|
895
|
-
* tags do not reach a self-hosted host's entries at all. Vercel-hosted deployments
|
|
896
|
-
* are unaffected in practice — both consumer
|
|
897
|
-
* sites were measured healthy on 2026-08-01 — which is consistent with Vercel's
|
|
898
|
-
* cache handler purging by the entry's stored tags, though that has **not** been
|
|
899
|
-
* measured here.
|
|
900
|
-
*
|
|
901
|
-
* Fixing this properly means the read must be able to name the entry's own tags,
|
|
902
|
-
* which no `unstable_cache` API allows without restructuring the probe/bail
|
|
903
|
-
* seam. That is a deliberate open decision — see EC-515, do not "fix" it here
|
|
904
|
-
* incidentally.
|
|
905
|
-
*/
|
|
906
|
-
declare function loadCachedEntry<T>(cache: CacheWrapper, keyParts: string[], baselineTags: readonly string[], load: () => Promise<CachedEntry<T>>): Promise<CachedEntry<T>>;
|
|
907
855
|
|
|
908
856
|
/**
|
|
909
857
|
* Pure request logic of the revalidation webhook receiver (EC-146), kept free of
|
|
@@ -1085,20 +1033,12 @@ interface AssetImageLoaderOptions {
|
|
|
1085
1033
|
*/
|
|
1086
1034
|
declare function createAssetImageLoader(options?: AssetImageLoaderOptions): ImageLoader;
|
|
1087
1035
|
/**
|
|
1088
|
-
*
|
|
1089
|
-
* canonical manifest, rendered optimized through {@link ElytraImage}. The
|
|
1090
|
-
* renderer resolves an `asset`-typed `src` (EC-195) to `{ url, width, height,
|
|
1091
|
-
* alt }` before this runs, so `normalizeImageSource` yields intrinsic dimensions
|
|
1092
|
-
* (→ no layout shift, sized variants) whether the editor picked an uploaded asset
|
|
1093
|
-
* or pasted a URL. `priority` opts an above-the-fold image out of lazy-loading.
|
|
1094
|
-
*/
|
|
1095
|
-
/**
|
|
1096
|
-
* Per-deployment image-delivery options for {@link nextImagePrimitive} (EC-271).
|
|
1036
|
+
* Per-deployment image-delivery options for {@link withNextImage} (EC-271).
|
|
1097
1037
|
* The default is the host's own Next.js optimizer (Vercel) — zero config. A host
|
|
1098
1038
|
* on a different CDN supplies its own `loader` (a plain function) to route variants
|
|
1099
1039
|
* through that CDN instead, without touching component code.
|
|
1100
1040
|
*/
|
|
1101
|
-
interface
|
|
1041
|
+
interface NextImageOptions {
|
|
1102
1042
|
/**
|
|
1103
1043
|
* Custom `next/image` loader — the override seam for non-Vercel hosting. Omit
|
|
1104
1044
|
* for the Vercel default (Next's own `/_next/image` optimizer). Supply a
|
|
@@ -1117,31 +1057,35 @@ interface NextImagePrimitiveOptions {
|
|
|
1117
1057
|
quality?: number;
|
|
1118
1058
|
}
|
|
1119
1059
|
/**
|
|
1120
|
-
*
|
|
1121
|
-
*
|
|
1122
|
-
* (
|
|
1123
|
-
*
|
|
1124
|
-
*
|
|
1060
|
+
* Batteries included, opted into (EC-591): return the component list with the
|
|
1061
|
+
* implementation of the component that fills the `image` role swapped for
|
|
1062
|
+
* `next/image` delivery ({@link ElytraImage}) — the manifest is kept, so the
|
|
1063
|
+
* studio and the host still register the same component. Nothing is added to the
|
|
1064
|
+
* list and nothing is registered by the engine: no image-role component in the
|
|
1065
|
+
* list → the list comes back unchanged.
|
|
1066
|
+
*
|
|
1067
|
+
* Which entry fills the role is decided by core's one registration rule (the first
|
|
1068
|
+
* valid claimant — `ComponentRegistry.roleComponent('image')`), so the swap can
|
|
1069
|
+
* never land on a different entry than the one the registry resolves. Use it on
|
|
1070
|
+
* the DELIVERY side only (the studio's canvas runs on Vite, where `next/image`
|
|
1071
|
+
* does not exist) — the scaffold's host seam file does it in one line:
|
|
1125
1072
|
*
|
|
1126
1073
|
* ```ts
|
|
1127
|
-
* export const
|
|
1128
|
-
* nextImagePrimitive(), // Vercel default optimizer
|
|
1129
|
-
* // ...project components
|
|
1130
|
-
* ])
|
|
1074
|
+
* export const elytra = createElytraHost({ ...site, components: withNextImage(site.components) })
|
|
1131
1075
|
* ```
|
|
1132
1076
|
*
|
|
1133
|
-
* Pass {@link
|
|
1134
|
-
*
|
|
1077
|
+
* Pass {@link NextImageOptions} to delegate image delivery to another CDN
|
|
1078
|
+
* (EC-271) — the v1 default is Vercel, with room to grow:
|
|
1135
1079
|
*
|
|
1136
1080
|
* ```ts
|
|
1137
|
-
*
|
|
1138
|
-
*
|
|
1081
|
+
* withNextImage(site.components, { loader: createAssetImageLoader() }) // ?w=&q= CDN
|
|
1082
|
+
* withNextImage(site.components, { loader: cloudflareImageLoader }) // Cloudflare Images
|
|
1139
1083
|
* ```
|
|
1140
1084
|
*/
|
|
1141
|
-
declare function
|
|
1085
|
+
declare function withNextImage(components: readonly HostComponentEntry[] | undefined, options?: NextImageOptions): HostComponentEntry[];
|
|
1142
1086
|
/** Per-deployment options for {@link elytraHostImage} (the EC-271 loader seam). */
|
|
1143
1087
|
interface ElytraHostImageOptions {
|
|
1144
|
-
/** Custom `next/image` loader for non-Vercel CDNs (see {@link
|
|
1088
|
+
/** Custom `next/image` loader for non-Vercel CDNs (see {@link NextImageOptions}). */
|
|
1145
1089
|
loader?: ImageLoader;
|
|
1146
1090
|
/** Default quality (1–100) when a call site doesn't set one (Next defaults to 75). */
|
|
1147
1091
|
quality?: number;
|
|
@@ -1366,6 +1310,7 @@ declare function createPreviewDisableRoute(): PreviewRouteHandlers;
|
|
|
1366
1310
|
* const route = elytra.canvasRoute()
|
|
1367
1311
|
* export default route.Page
|
|
1368
1312
|
* export const generateMetadata = route.generateMetadata
|
|
1313
|
+
* export const generateStaticParams = route.generateStaticParams // cacheComponents (EC-515)
|
|
1369
1314
|
*
|
|
1370
1315
|
* // app/api/revalidate/route.ts
|
|
1371
1316
|
* export const { POST } = elytra.revalidateRoute()
|
|
@@ -1384,7 +1329,12 @@ declare function createPreviewDisableRoute(): PreviewRouteHandlers;
|
|
|
1384
1329
|
* keeps ownership of project config (AD-11), host components, form endpoints,
|
|
1385
1330
|
* and anything genuinely bespoke.
|
|
1386
1331
|
*/
|
|
1387
|
-
|
|
1332
|
+
/**
|
|
1333
|
+
* EC-581 (ratified 2b): the options are generic over the config's `collections`, so a
|
|
1334
|
+
* project declared with `defineCollection` keeps its literal types through the host and
|
|
1335
|
+
* `InferDocument<typeof host, 'post'>` (`@elytracms/core/cms-core`) is a delivered post.
|
|
1336
|
+
*/
|
|
1337
|
+
interface ElytraHostOptions<Collections extends readonly CollectionDef[] = readonly CollectionDef[]> {
|
|
1388
1338
|
/**
|
|
1389
1339
|
* The project slug (config-as-code identity, mirrors `elytra.config.ts`).
|
|
1390
1340
|
* Used as the content scope when no live backend is configured.
|
|
@@ -1415,14 +1365,17 @@ interface ElytraHostOptions {
|
|
|
1415
1365
|
*/
|
|
1416
1366
|
locales: LocaleConfigInput;
|
|
1417
1367
|
/** CMS collection schema — config-owned (AD-11). */
|
|
1418
|
-
collections:
|
|
1368
|
+
collections: Collections;
|
|
1419
1369
|
/** Routes as code (AD-3/AD-11): records, or the `(collections) => records` derive. */
|
|
1420
1370
|
routes: readonly RouteRecord[] | ((collections: CollectionDef[]) => RouteRecord[]);
|
|
1421
1371
|
/**
|
|
1422
1372
|
* The repo's page-builder components (manifest + implementation pairs — the
|
|
1423
|
-
* SAME
|
|
1424
|
-
*
|
|
1425
|
-
*
|
|
1373
|
+
* SAME list the studio composes with, usually `site.components` via the
|
|
1374
|
+
* `{ ...site }` spread). The host registers exactly this list (EC-591): the
|
|
1375
|
+
* engine adds no components of its own — the shipped ones are the opt-in
|
|
1376
|
+
* `@elytracms/components` package, listed in the config. For `next/image`
|
|
1377
|
+
* delivery of the image-role component, pass the list through
|
|
1378
|
+
* `withNextImage(site.components)` (one line, opt-in).
|
|
1426
1379
|
*
|
|
1427
1380
|
* Typed as the CONFIG's `HostComponentEntry` (`implementation: unknown`), not
|
|
1428
1381
|
* the stricter {@link HostComponent}, so that `createElytraHost({ ...site })`
|
|
@@ -1439,19 +1392,13 @@ interface ElytraHostOptions {
|
|
|
1439
1392
|
* component. The check is RUNTIME instead — `defineHostComponents` takes the
|
|
1440
1393
|
* same `HostComponentEntry` shape (no cast, one signature) and tests every
|
|
1441
1394
|
* implementation on registration; a value that is not a component becomes an
|
|
1442
|
-
* `invalid-implementation` issue in `components.issues` and is withheld from
|
|
1395
|
+
* `invalid-implementation` issue in `components.registry.issues` and is withheld from
|
|
1443
1396
|
* the implementation map, so its nodes render the visible missing-component
|
|
1444
1397
|
* fallback rather than crashing the server render. Authoring a component
|
|
1445
1398
|
* module as the strict {@link HostComponent} keeps the compile-time check at
|
|
1446
1399
|
* the place the implementation is written.
|
|
1447
1400
|
*/
|
|
1448
1401
|
components?: readonly HostComponentEntry[];
|
|
1449
|
-
/**
|
|
1450
|
-
* `base.Image` delivery options (loader/sizes/quality — the non-Vercel CDN
|
|
1451
|
-
* seam), or `false` to keep the plain-`<img>` primitive. Default: Next's own
|
|
1452
|
-
* optimizer, registered out of the box.
|
|
1453
|
-
*/
|
|
1454
|
-
image?: NextImagePrimitiveOptions | false;
|
|
1455
1402
|
/**
|
|
1456
1403
|
* The public base URL of the delivery site (mirrors the config's
|
|
1457
1404
|
* `frontendUrl`) — exposed on the handle for sitemap/canonical use.
|
|
@@ -1491,10 +1438,11 @@ interface HostCanvasRouteOptions {
|
|
|
1491
1438
|
*/
|
|
1492
1439
|
wrap?: (children: ReactNode, ctx: CanvasWrapContext) => ReactNode;
|
|
1493
1440
|
/**
|
|
1494
|
-
* Tagged
|
|
1495
|
-
*
|
|
1496
|
-
*
|
|
1497
|
-
*
|
|
1441
|
+
* Tagged cache entry (instant publish): one `'use cache'` entry per URL, tagged
|
|
1442
|
+
* with what its resolution read (EC-515; the host enables `cacheComponents`).
|
|
1443
|
+
* Always on and always scoped to the kit's {@link ElytraHost.contentScope}, with
|
|
1444
|
+
* the kit's {@link ElytraHost.contentMode} in the entry key (EC-543). `false`
|
|
1445
|
+
* disables caching entirely.
|
|
1498
1446
|
*
|
|
1499
1447
|
* There is no scope override (EC-579): the kit's revalidate receiver derives its
|
|
1500
1448
|
* tags with that same `contentScope`, so one value scopes both the entries and
|
|
@@ -1525,18 +1473,24 @@ interface LoadGlobalsOptions {
|
|
|
1525
1473
|
* once, read here, so a host can *say* which world it is in instead of
|
|
1526
1474
|
* re-deriving it from `env` and drifting.
|
|
1527
1475
|
*
|
|
1528
|
-
* **The mode is also part of the route's
|
|
1529
|
-
*
|
|
1530
|
-
* until 0.0.85 the "clean 404" above held
|
|
1531
|
-
* `next start` with both env vars blanked and a
|
|
1532
|
-
* run answered `200` with the live world's bytes
|
|
1533
|
-
* reporting `empty` — the wrong-world failure EC-527
|
|
1534
|
-
* Keyed on the mode (`canvasCacheKey`, `cache.ts`), a
|
|
1535
|
-
* miss per URL, never a stale hit, in either direction.
|
|
1476
|
+
* **The mode is also part of the route's cache-entry key** (EC-543; since EC-515
|
|
1477
|
+
* an argument of the cached function). An entry can outlive the world that wrote
|
|
1478
|
+
* it and a hit never runs the loader, so until 0.0.85 the "clean 404" above held
|
|
1479
|
+
* only on a COLD cache: measured, a `next start` with both env vars blanked and a
|
|
1480
|
+
* warm `.next/cache` from a live run answered `200` with the live world's bytes
|
|
1481
|
+
* on every cached URL while reporting `empty` — the wrong-world failure EC-527
|
|
1482
|
+
* removed, one layer down. Keyed on the mode (`canvasCacheKey`, `cache.ts`), a
|
|
1483
|
+
* world change is a cold miss per URL, never a stale hit, in either direction.
|
|
1536
1484
|
*/
|
|
1537
1485
|
type ElytraContentMode = 'live' | 'fallback' | 'empty';
|
|
1538
1486
|
/** The delivery host handle {@link createElytraHost} yields. */
|
|
1539
|
-
interface ElytraHost {
|
|
1487
|
+
interface ElytraHost<Collections extends readonly CollectionDef[] = readonly CollectionDef[]> {
|
|
1488
|
+
/**
|
|
1489
|
+
* The config's collections, as passed (EC-581) — typed by their literals when the
|
|
1490
|
+
* project declares them with `defineCollection`, so `InferDocument<typeof host, 'post'>`
|
|
1491
|
+
* types a delivered post with no generation step.
|
|
1492
|
+
*/
|
|
1493
|
+
readonly collections: Collections;
|
|
1540
1494
|
/**
|
|
1541
1495
|
* The cache-tag scope: `ELYTRA_PROJECT_ID` in live mode, else the config slug.
|
|
1542
1496
|
* The ONE scope of this host (EC-579): its cache entries are written under it and
|
|
@@ -1554,7 +1508,7 @@ interface ElytraHost {
|
|
|
1554
1508
|
env: ElytraHostEnv;
|
|
1555
1509
|
/** Materialized route records (a derive is run once, at factory time). */
|
|
1556
1510
|
routes: RouteRecord[];
|
|
1557
|
-
/** The registered component surface
|
|
1511
|
+
/** The registered component surface — exactly the `components` option's list (EC-591). */
|
|
1558
1512
|
components: HostComponents;
|
|
1559
1513
|
/** The public base URL of the delivery site, when configured. */
|
|
1560
1514
|
frontendUrl?: string;
|
|
@@ -1562,12 +1516,21 @@ interface ElytraHost {
|
|
|
1562
1516
|
* The content loader (the seam every kit surface reads through): live
|
|
1563
1517
|
* delivery snapshot when env is configured — published, or the token-gated
|
|
1564
1518
|
* draft for draft-mode requests — else the fallback source.
|
|
1519
|
+
*
|
|
1520
|
+
* An UNCACHED read (EC-515): only the canvas route's entry caches. Under
|
|
1521
|
+
* `cacheComponents`, live-mode I/O in a layout or page outside `<Suspense>` fails
|
|
1522
|
+
* `next build` — call it inside a `<Suspense>`'d component (route handlers and
|
|
1523
|
+
* `sitemap.ts` just render dynamically).
|
|
1565
1524
|
*/
|
|
1566
1525
|
loadContent(request: CanvasContentRequest): Promise<ContentSource>;
|
|
1567
1526
|
/**
|
|
1568
1527
|
* Load + resolve the site-chrome globals (settings singleton, navigation by
|
|
1569
1528
|
* slot alias, link/asset resolution — see `host-globals.ts`). One content
|
|
1570
1529
|
* load per call; published perspective by default.
|
|
1530
|
+
*
|
|
1531
|
+
* An UNCACHED read, like {@link loadContent}: under `cacheComponents`, render the
|
|
1532
|
+
* chrome that awaits it inside `<Suspense>` — and keep the canvas page OUTSIDE
|
|
1533
|
+
* every boundary, or its 404s and redirects answer HTTP 200 (measured, EC-515).
|
|
1571
1534
|
*/
|
|
1572
1535
|
loadGlobals(options?: LoadGlobalsOptions): Promise<SiteGlobals>;
|
|
1573
1536
|
/** The catch-all canvas route pair for `app/[[...slug]]/page.tsx`. */
|
|
@@ -1592,12 +1555,13 @@ interface ElytraHost {
|
|
|
1592
1555
|
/**
|
|
1593
1556
|
* Does the page for this catch-all `slug` OPEN full-bleed? Manifest-driven
|
|
1594
1557
|
* (`presentation.fullBleed`, EC-368) and draft-mode aware — the host lays out
|
|
1595
|
-
* header clearance from data instead of a hand-kept component-id set.
|
|
1558
|
+
* header clearance from data instead of a hand-kept component-id set. An
|
|
1559
|
+
* uncached read (see {@link loadContent}).
|
|
1596
1560
|
*/
|
|
1597
1561
|
pageOpensFullBleed(slug: readonly string[] | undefined): Promise<boolean>;
|
|
1598
1562
|
}
|
|
1599
1563
|
/** Create the delivery host handle — see the module docs for the full wiring. */
|
|
1600
|
-
declare function createElytraHost(options: ElytraHostOptions): ElytraHost
|
|
1564
|
+
declare function createElytraHost<const Collections extends readonly CollectionDef[]>(options: ElytraHostOptions<Collections>): ElytraHost<Collections>;
|
|
1601
1565
|
|
|
1602
1566
|
/**
|
|
1603
1567
|
* The LIVE half of the delivery host kit (EC-368): fetch the delivery snapshot
|
|
@@ -1754,4 +1718,4 @@ declare function evaluatePreviewRequest(requestUrl: string | URL, expectedToken:
|
|
|
1754
1718
|
*/
|
|
1755
1719
|
declare const PACKAGE = "@elytracms/next";
|
|
1756
1720
|
|
|
1757
|
-
export { type AssetImageLoaderOptions, type
|
|
1721
|
+
export { type AssetImageLoaderOptions, type BakedListing, CANVAS_VALIDATION_SLUG, type CanvasCacheOptions, type CanvasContentRequest, type CanvasPageOutcome, CanvasRenderer, type CanvasRendererProps, type CanvasRequestInfo, type CanvasRoute, type CanvasRouteOptions, type CanvasRouteProps, type CanvasSitemapOptions, type CanvasSitemapResult, type CanvasWrapContext, type ContentSnapshot, type ContentSnapshotOptions, type ContentSource, type CreateCanvasSitemapOptions, type DeliveryPresentation, ELYTRA_HOST_ENV_KEYS, type ElytraContentMode, type ElytraHost, type ElytraHostEnv, type ElytraHostImageOptions, type ElytraHostOptions, ElytraImage, type ElytraImageAsset, type ElytraImageProps, type GlobalsConventions, type HostCanvasRouteOptions, type HostComponent, type HostComponents, type LiveContentOptions, type LoadGlobalsOptions, type NextImageOptions, PACKAGE, type PreviewEvaluation, type PreviewRouteHandlers, type PreviewRouteOptions, type ResolveCanvasPageOptions, type ResolveGlobalsOptions, type ResolvedLink, type ResolvedNavEntry, type ResolvedNavLink, type RevalidateEvaluation, type RevalidateRouteHandlers, type RevalidateRouteOptions, type RevalidationProject, type SiteGlobals, type SitemapParamsProvider, type SitemapRouteContext, type SitemapSkippedRoute, type StaticContentData, assembleLiveSource, bodyItemsOf, canvasPageMetadata, canvasSitemapEntries, collectionCacheTag, createAssetImageLoader, createCanvasRoute, createCanvasSitemap, createContentSnapshot, createElytraHost, createPreviewDisableRoute, createPreviewRoute, createRevalidateRoute, createStaticContentSource, defineHostComponents, docCacheTag, elytraHostImage, evaluatePreviewRequest, evaluateRevalidateRequest, firstBlockFullBleed, loadLiveContent, mergeCacheTags, mergeMetadataOverParent, nextCacheTags, openGraphLocale, pathFromSlug, projectSweepTag, resolveCanvasPage, resolveGlobals, resolveHostEnv, revalidationTags, routeCacheTag, safeRedirectTarget, scopeCacheTag, withNextImage };
|