@uniformdev/canvas-next-rsc-client 19.61.1-alpha.18 → 19.62.1-alpha.127
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/LICENSE.txt +1 -1
- package/dist/index.d.mts +29 -5
- package/dist/index.d.ts +29 -5
- package/dist/index.esm.js +885 -50
- package/dist/index.js +882 -57
- package/dist/index.mjs +885 -50
- package/package.json +9 -9
package/LICENSE.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
©
|
|
1
|
+
© 2024 Uniform Systems, Inc. All Rights Reserved.
|
|
2
2
|
See details of Uniform Systems, Inc. Master Subscription Agreement here: https://uniform.dev/eula
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ManifestV2, ContextOptions } from '@uniformdev/context';
|
|
1
|
+
import { ManifestV2, PersonalizationEvent, TestEvent, ContextOptions } from '@uniformdev/context';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { PureContextualEditingComponentWrapperProps } from '@uniformdev/canvas-react/core';
|
|
4
4
|
import * as react from 'react';
|
|
@@ -6,13 +6,37 @@ import { PropsWithChildren } from 'react';
|
|
|
6
6
|
import * as _uniformdev_canvas_next_rsc_shared from '@uniformdev/canvas-next-rsc-shared';
|
|
7
7
|
import { AppDirectoryContextState, PersonalizeProps, ComponentProps, TestProps, AppDirectoryContext } from '@uniformdev/canvas-next-rsc-shared';
|
|
8
8
|
|
|
9
|
-
type
|
|
9
|
+
type ClientContextComponentProps = {
|
|
10
|
+
/**
|
|
11
|
+
* The Uniform project manifest
|
|
12
|
+
*/
|
|
10
13
|
manifest: ManifestV2;
|
|
11
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Whether or not to disable the Uniform Context dev tools
|
|
16
|
+
*/
|
|
17
|
+
disableDevTools: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The default consent value
|
|
20
|
+
*/
|
|
21
|
+
defaultConsent: boolean;
|
|
22
|
+
};
|
|
23
|
+
type ClientContextComponent = (props: ClientContextComponentProps) => JSX.Element | null;
|
|
24
|
+
|
|
25
|
+
declare const ClientContextPersonalizationTransfer: ({ event, ts, }: {
|
|
26
|
+
event: PersonalizationEvent;
|
|
27
|
+
ts: number;
|
|
28
|
+
}) => null;
|
|
29
|
+
|
|
30
|
+
declare const ClientContextTestTransfer: ({ event, ts }: {
|
|
31
|
+
event: TestEvent;
|
|
32
|
+
ts: number;
|
|
33
|
+
}) => null;
|
|
12
34
|
|
|
13
35
|
declare const ClientContextualEditingComponentWrapper: (props: PropsWithChildren<PureContextualEditingComponentWrapperProps>) => react_jsx_runtime.JSX.Element;
|
|
14
36
|
|
|
15
|
-
declare const ClientContextUpdate: (
|
|
37
|
+
declare const ClientContextUpdate: ({ path }: {
|
|
38
|
+
path: string;
|
|
39
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
16
40
|
|
|
17
41
|
declare const ContextUpdateTransferClient: ({ update, ts, }: {
|
|
18
42
|
update: Partial<AppDirectoryContextState>;
|
|
@@ -48,4 +72,4 @@ declare const useUniformContext: () => {
|
|
|
48
72
|
context: AppDirectoryContext | undefined;
|
|
49
73
|
};
|
|
50
74
|
|
|
51
|
-
export { ClientContextComponent, ClientContextUpdate, ClientContextualEditingComponentWrapper, ContextUpdateTransferClient, CreateClientUniformContextOptions, DefaultUniformClientContext, PersonalizeClient, PersonalizeClientProps, TestClient, UniformScript, createClientUniformContext, useInitUniformContext, useUniformContext };
|
|
75
|
+
export { type ClientContextComponent, type ClientContextComponentProps, ClientContextPersonalizationTransfer, ClientContextTestTransfer, ClientContextUpdate, ClientContextualEditingComponentWrapper, ContextUpdateTransferClient, type CreateClientUniformContextOptions, DefaultUniformClientContext, PersonalizeClient, type PersonalizeClientProps, TestClient, UniformScript, createClientUniformContext, useInitUniformContext, useUniformContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ManifestV2, ContextOptions } from '@uniformdev/context';
|
|
1
|
+
import { ManifestV2, PersonalizationEvent, TestEvent, ContextOptions } from '@uniformdev/context';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { PureContextualEditingComponentWrapperProps } from '@uniformdev/canvas-react/core';
|
|
4
4
|
import * as react from 'react';
|
|
@@ -6,13 +6,37 @@ import { PropsWithChildren } from 'react';
|
|
|
6
6
|
import * as _uniformdev_canvas_next_rsc_shared from '@uniformdev/canvas-next-rsc-shared';
|
|
7
7
|
import { AppDirectoryContextState, PersonalizeProps, ComponentProps, TestProps, AppDirectoryContext } from '@uniformdev/canvas-next-rsc-shared';
|
|
8
8
|
|
|
9
|
-
type
|
|
9
|
+
type ClientContextComponentProps = {
|
|
10
|
+
/**
|
|
11
|
+
* The Uniform project manifest
|
|
12
|
+
*/
|
|
10
13
|
manifest: ManifestV2;
|
|
11
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Whether or not to disable the Uniform Context dev tools
|
|
16
|
+
*/
|
|
17
|
+
disableDevTools: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The default consent value
|
|
20
|
+
*/
|
|
21
|
+
defaultConsent: boolean;
|
|
22
|
+
};
|
|
23
|
+
type ClientContextComponent = (props: ClientContextComponentProps) => JSX.Element | null;
|
|
24
|
+
|
|
25
|
+
declare const ClientContextPersonalizationTransfer: ({ event, ts, }: {
|
|
26
|
+
event: PersonalizationEvent;
|
|
27
|
+
ts: number;
|
|
28
|
+
}) => null;
|
|
29
|
+
|
|
30
|
+
declare const ClientContextTestTransfer: ({ event, ts }: {
|
|
31
|
+
event: TestEvent;
|
|
32
|
+
ts: number;
|
|
33
|
+
}) => null;
|
|
12
34
|
|
|
13
35
|
declare const ClientContextualEditingComponentWrapper: (props: PropsWithChildren<PureContextualEditingComponentWrapperProps>) => react_jsx_runtime.JSX.Element;
|
|
14
36
|
|
|
15
|
-
declare const ClientContextUpdate: (
|
|
37
|
+
declare const ClientContextUpdate: ({ path }: {
|
|
38
|
+
path: string;
|
|
39
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
16
40
|
|
|
17
41
|
declare const ContextUpdateTransferClient: ({ update, ts, }: {
|
|
18
42
|
update: Partial<AppDirectoryContextState>;
|
|
@@ -48,4 +72,4 @@ declare const useUniformContext: () => {
|
|
|
48
72
|
context: AppDirectoryContext | undefined;
|
|
49
73
|
};
|
|
50
74
|
|
|
51
|
-
export { ClientContextComponent, ClientContextUpdate, ClientContextualEditingComponentWrapper, ContextUpdateTransferClient, CreateClientUniformContextOptions, DefaultUniformClientContext, PersonalizeClient, PersonalizeClientProps, TestClient, UniformScript, createClientUniformContext, useInitUniformContext, useUniformContext };
|
|
75
|
+
export { type ClientContextComponent, type ClientContextComponentProps, ClientContextPersonalizationTransfer, ClientContextTestTransfer, ClientContextUpdate, ClientContextualEditingComponentWrapper, ContextUpdateTransferClient, type CreateClientUniformContextOptions, DefaultUniformClientContext, PersonalizeClient, type PersonalizeClientProps, TestClient, UniformScript, createClientUniformContext, useInitUniformContext, useUniformContext };
|