@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.
@@ -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
- // The runtime cache is keyed on the route path. Development bypasses it so an author sees
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
- // The runtime cache is keyed on the route path. Development bypasses it so an author sees
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-CpEVJ-SR.mjs';
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-Ck7mRTp-.js';
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-CpEVJ-SR.mjs';
6
- export { C as CompositionCache, a as ResolveComponentFunction, R as ResolveComponentResult, b as UniformComposition, c as createCompositionCache } from './UniformComposition-CpEVJ-SR.mjs';
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-Ck7mRTp-.js';
6
- export { C as CompositionCache, a as ResolveComponentFunction, R as ResolveComponentResult, b as UniformComposition, c as createCompositionCache } from './UniformComposition-Ck7mRTp-.js';
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';