@uniformdev/next-app-router 20.80.2 → 20.81.1-alpha.10.sha-def425616f

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 (48) hide show
  1. package/dist/{UniformComposition-DBO-oo7J.d.ts → UniformComposition-ChDH4dMd.d.ts} +12 -31
  2. package/dist/{UniformComposition-le6UEB_r.d.mts → UniformComposition-Doa1kKRm.d.mts} +12 -31
  3. package/dist/cache.d.mts +24 -6
  4. package/dist/cache.d.ts +24 -6
  5. package/dist/cache.js +396 -832
  6. package/dist/cache.mjs +391 -830
  7. package/dist/compat.d.mts +2 -4
  8. package/dist/compat.d.ts +2 -4
  9. package/dist/component.d.mts +10 -1
  10. package/dist/component.d.ts +10 -1
  11. package/dist/component.js +113 -617
  12. package/dist/component.mjs +112 -640
  13. package/dist/composition-CGU7iH-k.d.mts +37 -0
  14. package/dist/composition-CGU7iH-k.d.ts +37 -0
  15. package/dist/config/default.js +0 -1
  16. package/dist/config/default.mjs +0 -1
  17. package/dist/createCachedManifestProvider-2-2u3PYd.d.mts +84 -0
  18. package/dist/createCachedManifestProvider-BoorKD15.d.ts +84 -0
  19. package/dist/edge.d.mts +80 -0
  20. package/dist/edge.d.ts +80 -0
  21. package/dist/edge.js +1225 -0
  22. package/dist/edge.mjs +1191 -0
  23. package/dist/handler.d.mts +15 -2
  24. package/dist/handler.d.ts +15 -2
  25. package/dist/handler.js +134 -628
  26. package/dist/handler.mjs +132 -626
  27. package/dist/index.d.mts +81 -41
  28. package/dist/index.d.ts +81 -41
  29. package/dist/index.esm.js +2051 -5614
  30. package/dist/index.js +2092 -5651
  31. package/dist/index.mjs +2051 -5614
  32. package/dist/middleware.d.mts +60 -13
  33. package/dist/middleware.d.ts +60 -13
  34. package/dist/middleware.js +415 -5746
  35. package/dist/middleware.mjs +422 -5776
  36. package/dist/models-C8OdCO44.d.mts +72 -0
  37. package/dist/models-C8OdCO44.d.ts +72 -0
  38. package/dist/resolveRouteFromPath-CnfnaxY2.d.ts +80 -0
  39. package/dist/resolveRouteFromPath-_rauUskz.d.mts +80 -0
  40. package/dist/vercel.d.mts +37 -0
  41. package/dist/vercel.d.ts +37 -0
  42. package/dist/vercel.js +788 -0
  43. package/dist/vercel.mjs +759 -0
  44. package/package.json +37 -9
  45. package/dist/client-BElN_CWD.d.mts +0 -786
  46. package/dist/client-BElN_CWD.d.ts +0 -786
  47. package/dist/resolveRouteFromCode-BOvjIvM2.d.ts +0 -18
  48. package/dist/resolveRouteFromCode-CuJ4JHeb.d.mts +0 -18
package/dist/compat.d.mts CHANGED
@@ -1,12 +1,10 @@
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-le6UEB_r.mjs';
4
+ import { R as ResolveComponentResult, a as ResolveComponentFunction } from './UniformComposition-Doa1kKRm.mjs';
5
5
  import '@uniformdev/next-app-router-client';
6
6
  import '@uniformdev/canvas';
7
- import './client-BElN_CWD.mjs';
8
- import '@uniformdev/context';
9
- import './resolveRouteFromCode-CuJ4JHeb.mjs';
7
+ import './composition-CGU7iH-k.mjs';
10
8
 
11
9
  type ComponentContext = ComponentProps$1['component'] & {
12
10
  parameters: Record<string, ComponentParameter>;
package/dist/compat.d.ts CHANGED
@@ -1,12 +1,10 @@
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-DBO-oo7J.js';
4
+ import { R as ResolveComponentResult, a as ResolveComponentFunction } from './UniformComposition-ChDH4dMd.js';
5
5
  import '@uniformdev/next-app-router-client';
6
6
  import '@uniformdev/canvas';
7
- import './client-BElN_CWD.js';
8
- import '@uniformdev/context';
9
- import './resolveRouteFromCode-BOvjIvM2.js';
7
+ import './composition-CGU7iH-k.js';
10
8
 
11
9
  type ComponentContext = ComponentProps$1['component'] & {
12
10
  parameters: Record<string, ComponentParameter>;
@@ -7,6 +7,15 @@ 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
+
10
19
  type CustomSlotChildRenderFunc = (options: {
11
20
  child: ReactNode;
12
21
  _id: string;
@@ -58,4 +67,4 @@ declare const UniformRichText: React.ForwardRefExoticComponent<{
58
67
  }) => string | undefined);
59
68
  } & Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "placeholder"> & React.RefAttributes<unknown>>;
60
69
 
61
- export { UniformRichText, UniformSlot, type UniformSlotProps, getUniformSlot };
70
+ export { UniformEdgeState, UniformRichText, UniformSlot, type UniformSlotProps, getUniformSlot };
@@ -7,6 +7,15 @@ 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
+
10
19
  type CustomSlotChildRenderFunc = (options: {
11
20
  child: ReactNode;
12
21
  _id: string;
@@ -58,4 +67,4 @@ declare const UniformRichText: React.ForwardRefExoticComponent<{
58
67
  }) => string | undefined);
59
68
  } & Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "placeholder"> & React.RefAttributes<unknown>>;
60
69
 
61
- export { UniformRichText, UniformSlot, type UniformSlotProps, getUniformSlot };
70
+ export { UniformEdgeState, UniformRichText, UniformSlot, type UniformSlotProps, getUniformSlot };