@uniformdev/next-app-router 20.80.2 → 20.81.1-alpha.4.sha-de16ebeee7

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/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-fq7Qfhvp.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 './resolveRouteFromCode-CId7aItt.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-T7CRvU1H.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 './resolveRouteFromCode-CId7aItt.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 };