@uniformdev/next-app-router 20.81.1-alpha.4.sha-de16ebeee7 → 20.81.1
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-T7CRvU1H.d.ts → UniformComposition-DBO-oo7J.d.ts} +8 -2
- package/dist/{UniformComposition-fq7Qfhvp.d.mts → UniformComposition-le6UEB_r.d.mts} +8 -2
- package/dist/cache.d.mts +3 -1
- package/dist/cache.d.ts +3 -1
- package/dist/cache.js +811 -127
- package/dist/cache.mjs +810 -126
- package/dist/client-BElN_CWD.d.mts +786 -0
- package/dist/client-BElN_CWD.d.ts +786 -0
- package/dist/compat.d.mts +4 -2
- package/dist/compat.d.ts +4 -2
- package/dist/component.d.mts +1 -10
- package/dist/component.d.ts +1 -10
- package/dist/component.js +617 -113
- package/dist/component.mjs +640 -112
- package/dist/config/default.js +1 -0
- package/dist/config/default.mjs +1 -0
- package/dist/handler.js +616 -87
- package/dist/handler.mjs +614 -85
- package/dist/index.d.mts +36 -15
- package/dist/index.d.ts +36 -15
- package/dist/index.esm.js +5825 -2175
- package/dist/index.js +5839 -2189
- package/dist/index.mjs +5825 -2175
- package/dist/middleware.d.mts +13 -52
- package/dist/middleware.d.ts +13 -52
- package/dist/middleware.js +5741 -405
- package/dist/middleware.mjs +5774 -415
- package/dist/resolveRouteFromCode-BOvjIvM2.d.ts +18 -0
- package/dist/resolveRouteFromCode-CuJ4JHeb.d.mts +18 -0
- package/package.json +9 -24
- package/dist/edge.d.mts +0 -44
- package/dist/edge.d.ts +0 -44
- package/dist/edge.js +0 -751
- package/dist/edge.mjs +0 -720
- package/dist/resolveRouteFromCode-CId7aItt.d.mts +0 -48
- package/dist/resolveRouteFromCode-CId7aItt.d.ts +0 -48
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { RootComponentInstance, ComponentInstance } from '@uniformdev/canvas';
|
|
2
2
|
import { ComponentProps } from '@uniformdev/next-app-router-shared';
|
|
3
3
|
import React, { ComponentType } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { D as DataClient } from './client-BElN_CWD.js';
|
|
5
|
+
import { a as ResolvedRouteResult, R as ResolveRouteFunction } from './resolveRouteFromCode-BOvjIvM2.js';
|
|
5
6
|
import { ClientContextComponent } from '@uniformdev/next-app-router-client';
|
|
6
7
|
|
|
7
8
|
type CompositionCache = {
|
|
@@ -61,7 +62,12 @@ type UniformCompositionProps = {
|
|
|
61
62
|
*/
|
|
62
63
|
resolveComponent: ResolveComponentFunction;
|
|
63
64
|
/**
|
|
64
|
-
*
|
|
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.
|
|
65
71
|
*/
|
|
66
72
|
dataClient?: DataClient;
|
|
67
73
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { RootComponentInstance, ComponentInstance } from '@uniformdev/canvas';
|
|
2
2
|
import { ComponentProps } from '@uniformdev/next-app-router-shared';
|
|
3
3
|
import React, { ComponentType } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { D as DataClient } from './client-BElN_CWD.mjs';
|
|
5
|
+
import { a as ResolvedRouteResult, R as ResolveRouteFunction } from './resolveRouteFromCode-CuJ4JHeb.mjs';
|
|
5
6
|
import { ClientContextComponent } from '@uniformdev/next-app-router-client';
|
|
6
7
|
|
|
7
8
|
type CompositionCache = {
|
|
@@ -61,7 +62,12 @@ type UniformCompositionProps = {
|
|
|
61
62
|
*/
|
|
62
63
|
resolveComponent: ResolveComponentFunction;
|
|
63
64
|
/**
|
|
64
|
-
*
|
|
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.
|
|
65
71
|
*/
|
|
66
72
|
dataClient?: DataClient;
|
|
67
73
|
/**
|
package/dist/cache.d.mts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { R as ResolveRouteFunction } from './resolveRouteFromCode-
|
|
1
|
+
import { R as ResolveRouteFunction } from './resolveRouteFromCode-CuJ4JHeb.mjs';
|
|
2
2
|
import '@uniformdev/canvas';
|
|
3
3
|
import '@uniformdev/next-app-router-shared';
|
|
4
|
+
import './client-BElN_CWD.mjs';
|
|
5
|
+
import '@uniformdev/context';
|
|
4
6
|
|
|
5
7
|
declare const resolveRouteFromCode: ResolveRouteFunction;
|
|
6
8
|
|
package/dist/cache.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { R as ResolveRouteFunction } from './resolveRouteFromCode-
|
|
1
|
+
import { R as ResolveRouteFunction } from './resolveRouteFromCode-BOvjIvM2.js';
|
|
2
2
|
import '@uniformdev/canvas';
|
|
3
3
|
import '@uniformdev/next-app-router-shared';
|
|
4
|
+
import './client-BElN_CWD.js';
|
|
5
|
+
import '@uniformdev/context';
|
|
4
6
|
|
|
5
7
|
declare const resolveRouteFromCode: ResolveRouteFunction;
|
|
6
8
|
|