@uniformdev/next-app-router 20.81.1-alpha.7.sha-91a5b13e0c → 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.
Files changed (46) hide show
  1. package/dist/{UniformComposition-C00_YDOg.d.ts → UniformComposition-DBO-oo7J.d.ts} +31 -11
  2. package/dist/{UniformComposition-DiArCpVQ.d.mts → UniformComposition-le6UEB_r.d.mts} +31 -11
  3. package/dist/cache.d.mts +6 -24
  4. package/dist/cache.d.ts +6 -24
  5. package/dist/cache.js +831 -410
  6. package/dist/cache.mjs +829 -405
  7. package/dist/client-BElN_CWD.d.mts +786 -0
  8. package/dist/client-BElN_CWD.d.ts +786 -0
  9. package/dist/compat.d.mts +4 -2
  10. package/dist/compat.d.ts +4 -2
  11. package/dist/component.d.mts +1 -10
  12. package/dist/component.d.ts +1 -10
  13. package/dist/component.js +617 -113
  14. package/dist/component.mjs +640 -112
  15. package/dist/config/default.js +1 -0
  16. package/dist/config/default.mjs +1 -0
  17. package/dist/handler.d.mts +2 -15
  18. package/dist/handler.d.ts +2 -15
  19. package/dist/handler.js +628 -134
  20. package/dist/handler.mjs +626 -132
  21. package/dist/index.d.mts +42 -73
  22. package/dist/index.d.ts +42 -73
  23. package/dist/index.esm.js +5802 -2205
  24. package/dist/index.js +5615 -2022
  25. package/dist/index.mjs +5802 -2205
  26. package/dist/middleware.d.mts +13 -52
  27. package/dist/middleware.d.ts +13 -52
  28. package/dist/middleware.js +5741 -405
  29. package/dist/middleware.mjs +5774 -415
  30. package/dist/resolveRouteFromCode-BOvjIvM2.d.ts +18 -0
  31. package/dist/resolveRouteFromCode-CuJ4JHeb.d.mts +18 -0
  32. package/package.json +9 -37
  33. package/dist/composition-BvOM-LIW.d.mts +0 -28
  34. package/dist/composition-BvOM-LIW.d.ts +0 -28
  35. package/dist/createCachedManifestProvider-C7faGJJ8.d.mts +0 -69
  36. package/dist/createCachedManifestProvider-C7faGJJ8.d.ts +0 -69
  37. package/dist/edge.d.mts +0 -57
  38. package/dist/edge.d.ts +0 -57
  39. package/dist/edge.js +0 -1105
  40. package/dist/edge.mjs +0 -1073
  41. package/dist/resolveRouteFromPath-BHJGOpBN.d.ts +0 -82
  42. package/dist/resolveRouteFromPath-BsZUVkRX.d.mts +0 -82
  43. package/dist/vercel.d.mts +0 -24
  44. package/dist/vercel.d.ts +0 -24
  45. package/dist/vercel.js +0 -703
  46. package/dist/vercel.mjs +0 -675
package/dist/compat.d.mts CHANGED
@@ -1,10 +1,12 @@
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-DiArCpVQ.mjs';
4
+ import { R as ResolveComponentResult, a as ResolveComponentFunction } from './UniformComposition-le6UEB_r.mjs';
5
5
  import '@uniformdev/next-app-router-client';
6
6
  import '@uniformdev/canvas';
7
- import './composition-BvOM-LIW.mjs';
7
+ import './client-BElN_CWD.mjs';
8
+ import '@uniformdev/context';
9
+ import './resolveRouteFromCode-CuJ4JHeb.mjs';
8
10
 
9
11
  type ComponentContext = ComponentProps$1['component'] & {
10
12
  parameters: Record<string, ComponentParameter>;
package/dist/compat.d.ts CHANGED
@@ -1,10 +1,12 @@
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-C00_YDOg.js';
4
+ import { R as ResolveComponentResult, a as ResolveComponentFunction } from './UniformComposition-DBO-oo7J.js';
5
5
  import '@uniformdev/next-app-router-client';
6
6
  import '@uniformdev/canvas';
7
- import './composition-BvOM-LIW.js';
7
+ import './client-BElN_CWD.js';
8
+ import '@uniformdev/context';
9
+ import './resolveRouteFromCode-BOvjIvM2.js';
8
10
 
9
11
  type ComponentContext = ComponentProps$1['component'] & {
10
12
  parameters: Record<string, ComponentParameter>;
@@ -7,15 +7,6 @@ export { a as UniformText, U as UniformTextProps } from './UniformText-ChMwHBw4.
7
7
 
8
8
  declare const getUniformSlot: ({ slot, children }: UniformSlotProps) => ReactNode[] | undefined;
9
9
 
10
- /**
11
- * Renders the empty script the edge middleware fills with the visitor state it computed, such as
12
- * new test assignments and personalization control groups. The browser's Context reads it on
13
- * start. Place it at the end of `<body>` in the root layout when using `uniformEdgeMiddleware`.
14
- *
15
- * Optional: without it, test assignments still persist through the placements the edge kept.
16
- */
17
- declare function UniformEdgeState(): React.JSX.Element;
18
-
19
10
  type CustomSlotChildRenderFunc = (options: {
20
11
  child: ReactNode;
21
12
  _id: string;
@@ -67,4 +58,4 @@ declare const UniformRichText: React.ForwardRefExoticComponent<{
67
58
  }) => string | undefined);
68
59
  } & Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "placeholder"> & React.RefAttributes<unknown>>;
69
60
 
70
- export { UniformEdgeState, UniformRichText, UniformSlot, type UniformSlotProps, getUniformSlot };
61
+ export { UniformRichText, UniformSlot, type UniformSlotProps, getUniformSlot };
@@ -7,15 +7,6 @@ export { a as UniformText, U as UniformTextProps } from './UniformText-ChMwHBw4.
7
7
 
8
8
  declare const getUniformSlot: ({ slot, children }: UniformSlotProps) => ReactNode[] | undefined;
9
9
 
10
- /**
11
- * Renders the empty script the edge middleware fills with the visitor state it computed, such as
12
- * new test assignments and personalization control groups. The browser's Context reads it on
13
- * start. Place it at the end of `<body>` in the root layout when using `uniformEdgeMiddleware`.
14
- *
15
- * Optional: without it, test assignments still persist through the placements the edge kept.
16
- */
17
- declare function UniformEdgeState(): React.JSX.Element;
18
-
19
10
  type CustomSlotChildRenderFunc = (options: {
20
11
  child: ReactNode;
21
12
  _id: string;
@@ -67,4 +58,4 @@ declare const UniformRichText: React.ForwardRefExoticComponent<{
67
58
  }) => string | undefined);
68
59
  } & Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "placeholder"> & React.RefAttributes<unknown>>;
69
60
 
70
- export { UniformEdgeState, UniformRichText, UniformSlot, type UniformSlotProps, getUniformSlot };
61
+ export { UniformRichText, UniformSlot, type UniformSlotProps, getUniformSlot };