@uniformdev/next-app-router 20.76.1-alpha.3 → 20.76.3-alpha.7.sha-dd3877d123
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/{UniformComposition-Ck7mRTp-.d.ts → UniformComposition-BWxMuY7i.d.ts} +0 -5
- package/dist/{UniformComposition-CpEVJ-SR.d.mts → UniformComposition-Bo6UsTDC.d.mts} +0 -5
- package/dist/cache.js +1 -3
- package/dist/cache.mjs +1 -3
- package/dist/compat.d.mts +1 -1
- package/dist/compat.d.ts +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +458 -3214
- package/dist/index.js +467 -3220
- package/dist/index.mjs +458 -3214
- package/dist/middleware.js +207 -166
- package/dist/middleware.mjs +204 -163
- package/package.json +10 -10
|
@@ -63,11 +63,6 @@ type UniformCompositionProps = {
|
|
|
63
63
|
resolveComponent: ResolveComponentFunction;
|
|
64
64
|
/**
|
|
65
65
|
* If provided, the composition will use the data client to retrieve data.
|
|
66
|
-
*
|
|
67
|
-
* Pass the same client here that you pass to `handleUniformRoute`. Without it, this component
|
|
68
|
-
* falls back to `DefaultDataClient` for the route it resolves and, on draft requests,
|
|
69
|
-
* for the manifest it evaluates personalization against - so a custom manifest source
|
|
70
|
-
* configured only on the middleware would not apply while the page renders.
|
|
71
66
|
*/
|
|
72
67
|
dataClient?: DataClient;
|
|
73
68
|
/**
|
|
@@ -63,11 +63,6 @@ type UniformCompositionProps = {
|
|
|
63
63
|
resolveComponent: ResolveComponentFunction;
|
|
64
64
|
/**
|
|
65
65
|
* If provided, the composition will use the data client to retrieve data.
|
|
66
|
-
*
|
|
67
|
-
* Pass the same client here that you pass to `handleUniformRoute`. Without it, this component
|
|
68
|
-
* falls back to `DefaultDataClient` for the route it resolves and, on draft requests,
|
|
69
|
-
* for the manifest it evaluates personalization against - so a custom manifest source
|
|
70
|
-
* configured only on the middleware would not apply while the page renders.
|
|
71
66
|
*/
|
|
72
67
|
dataClient?: DataClient;
|
|
73
68
|
/**
|
package/dist/cache.js
CHANGED
|
@@ -2039,9 +2039,7 @@ var DefaultDataClient = class {
|
|
|
2039
2039
|
source: "middleware",
|
|
2040
2040
|
route: options.route,
|
|
2041
2041
|
routeClient,
|
|
2042
|
-
|
|
2043
|
-
// an edit right away, the same way the fetch cache is bypassed for development.
|
|
2044
|
-
enableRuntimeCache: options.route.state === CANVAS_PUBLISHED_STATE && getMiddlewareRuntimeCache() && !isDevelopmentEnvironment(),
|
|
2042
|
+
enableRuntimeCache: options.route.state === CANVAS_PUBLISHED_STATE && getMiddlewareRuntimeCache(),
|
|
2045
2043
|
disableSwrCache: getDisableSwrMiddlewareCache()
|
|
2046
2044
|
});
|
|
2047
2045
|
if (resolvedRoute.type === "composition") {
|
package/dist/cache.mjs
CHANGED
|
@@ -2026,9 +2026,7 @@ var DefaultDataClient = class {
|
|
|
2026
2026
|
source: "middleware",
|
|
2027
2027
|
route: options.route,
|
|
2028
2028
|
routeClient,
|
|
2029
|
-
|
|
2030
|
-
// an edit right away, the same way the fetch cache is bypassed for development.
|
|
2031
|
-
enableRuntimeCache: options.route.state === CANVAS_PUBLISHED_STATE && getMiddlewareRuntimeCache() && !isDevelopmentEnvironment(),
|
|
2029
|
+
enableRuntimeCache: options.route.state === CANVAS_PUBLISHED_STATE && getMiddlewareRuntimeCache(),
|
|
2032
2030
|
disableSwrCache: getDisableSwrMiddlewareCache()
|
|
2033
2031
|
});
|
|
2034
2032
|
if (resolvedRoute.type === "composition") {
|
package/dist/compat.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ComponentType } from 'react';
|
|
2
2
|
import { ComponentProps as ComponentProps$1, ComponentParameter } from '@uniformdev/next-app-router-shared';
|
|
3
3
|
import { U as UniformTextProps$1 } from './UniformText-ChMwHBw4.mjs';
|
|
4
|
-
import { R as ResolveComponentResult, a as ResolveComponentFunction } from './UniformComposition-
|
|
4
|
+
import { R as ResolveComponentResult, a as ResolveComponentFunction } from './UniformComposition-Bo6UsTDC.mjs';
|
|
5
5
|
import '@uniformdev/next-app-router-client';
|
|
6
6
|
import '@uniformdev/canvas';
|
|
7
7
|
import './client-DRMp2gpi.mjs';
|
package/dist/compat.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ComponentType } from 'react';
|
|
2
2
|
import { ComponentProps as ComponentProps$1, ComponentParameter } from '@uniformdev/next-app-router-shared';
|
|
3
3
|
import { U as UniformTextProps$1 } from './UniformText-ChMwHBw4.js';
|
|
4
|
-
import { R as ResolveComponentResult, a as ResolveComponentFunction } from './UniformComposition-
|
|
4
|
+
import { R as ResolveComponentResult, a as ResolveComponentFunction } from './UniformComposition-BWxMuY7i.js';
|
|
5
5
|
import '@uniformdev/next-app-router-client';
|
|
6
6
|
import '@uniformdev/canvas';
|
|
7
7
|
import './client-DRMp2gpi.js';
|
package/dist/index.d.mts
CHANGED
|
@@ -2,8 +2,8 @@ import { CanvasClient, CompositionDeliveryClient, RouteClient, ComponentInstance
|
|
|
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';
|
|
5
|
-
import { U as UniformCompositionProps } from './UniformComposition-
|
|
6
|
-
export { C as CompositionCache, a as ResolveComponentFunction, R as ResolveComponentResult, b as UniformComposition, c as createCompositionCache } from './UniformComposition-
|
|
5
|
+
import { U as UniformCompositionProps } from './UniformComposition-Bo6UsTDC.mjs';
|
|
6
|
+
export { C as CompositionCache, a as ResolveComponentFunction, R as ResolveComponentResult, b as UniformComposition, c as createCompositionCache } from './UniformComposition-Bo6UsTDC.mjs';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
export { D as DataClient, a as DefaultDataClient, E as EnhanceRouteOptions, G as GetRouteFromMiddlewareOptions, b as GetRouteFromPageStateOptions, c as GetRouteOptions, R as RewriteRouteOptions, d as RewriteRouteResult, e as expireMiddlewareCacheTag } from './client-DRMp2gpi.mjs';
|
|
9
9
|
import { a as ResolvedRouteResult } from './resolveRouteFromCode-C0dkUV2T.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { CanvasClient, CompositionDeliveryClient, RouteClient, ComponentInstance
|
|
|
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';
|
|
5
|
-
import { U as UniformCompositionProps } from './UniformComposition-
|
|
6
|
-
export { C as CompositionCache, a as ResolveComponentFunction, R as ResolveComponentResult, b as UniformComposition, c as createCompositionCache } from './UniformComposition-
|
|
5
|
+
import { U as UniformCompositionProps } from './UniformComposition-BWxMuY7i.js';
|
|
6
|
+
export { C as CompositionCache, a as ResolveComponentFunction, R as ResolveComponentResult, b as UniformComposition, c as createCompositionCache } from './UniformComposition-BWxMuY7i.js';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
export { D as DataClient, a as DefaultDataClient, E as EnhanceRouteOptions, G as GetRouteFromMiddlewareOptions, b as GetRouteFromPageStateOptions, c as GetRouteOptions, R as RewriteRouteOptions, d as RewriteRouteResult, e as expireMiddlewareCacheTag } from './client-DRMp2gpi.js';
|
|
9
9
|
import { a as ResolvedRouteResult } from './resolveRouteFromCode-Bhz8EJBu.js';
|