@uniformdev/next-app-router 20.50.2-alpha.146 → 20.50.2-alpha.167
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/cache.js +670 -515
- package/dist/cache.mjs +670 -515
- package/dist/component.js +81 -380
- package/dist/component.mjs +81 -380
- package/dist/handler.js +755 -640
- package/dist/handler.mjs +755 -640
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +775 -649
- package/dist/index.js +778 -652
- package/dist/index.mjs +775 -649
- package/dist/middleware.js +716 -599
- package/dist/middleware.mjs +716 -599
- package/package.json +19 -19
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompositionDeliveryClient, RouteClient, ComponentInstance } from '@uniformdev/canvas';
|
|
2
2
|
import { CacheMode, CanvasCacheMode, ManifestCacheMode, ProjectMapCacheMode, RewriteRequestPathResult } from '@uniformdev/next-app-router-shared';
|
|
3
3
|
import { ManifestClient } from '@uniformdev/context/api';
|
|
4
4
|
import { ProjectMapClient } from '@uniformdev/project-map';
|
|
@@ -24,7 +24,7 @@ type DetectCacheMode = {
|
|
|
24
24
|
type ResolvableCacheOptions<TCacheMode extends CacheMode> = SpecificCacheMode<TCacheMode> | StateCacheMode | DetectCacheMode;
|
|
25
25
|
|
|
26
26
|
type GetCanvasClientOptions = ResolvableCacheOptions<CanvasCacheMode>;
|
|
27
|
-
declare const getCanvasClient: (options?: GetCanvasClientOptions) =>
|
|
27
|
+
declare const getCanvasClient: (options?: GetCanvasClientOptions) => CompositionDeliveryClient;
|
|
28
28
|
|
|
29
29
|
type GetManifestClientOptions = ResolvableCacheOptions<ManifestCacheMode>;
|
|
30
30
|
declare const getManifestClient: (options?: GetManifestClientOptions) => ManifestClient;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompositionDeliveryClient, RouteClient, ComponentInstance } from '@uniformdev/canvas';
|
|
2
2
|
import { CacheMode, CanvasCacheMode, ManifestCacheMode, ProjectMapCacheMode, RewriteRequestPathResult } from '@uniformdev/next-app-router-shared';
|
|
3
3
|
import { ManifestClient } from '@uniformdev/context/api';
|
|
4
4
|
import { ProjectMapClient } from '@uniformdev/project-map';
|
|
@@ -24,7 +24,7 @@ type DetectCacheMode = {
|
|
|
24
24
|
type ResolvableCacheOptions<TCacheMode extends CacheMode> = SpecificCacheMode<TCacheMode> | StateCacheMode | DetectCacheMode;
|
|
25
25
|
|
|
26
26
|
type GetCanvasClientOptions = ResolvableCacheOptions<CanvasCacheMode>;
|
|
27
|
-
declare const getCanvasClient: (options?: GetCanvasClientOptions) =>
|
|
27
|
+
declare const getCanvasClient: (options?: GetCanvasClientOptions) => CompositionDeliveryClient;
|
|
28
28
|
|
|
29
29
|
type GetManifestClientOptions = ResolvableCacheOptions<ManifestCacheMode>;
|
|
30
30
|
declare const getManifestClient: (options?: GetManifestClientOptions) => ManifestClient;
|