@uniformdev/canvas-next-rsc-client 19.135.1-alpha.10 → 19.135.1-alpha.12
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/index.d.mts +23 -5
- package/dist/index.d.ts +23 -5
- package/dist/index.esm.js +221 -186
- package/dist/index.js +215 -180
- package/dist/index.mjs +221 -186
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ManifestV2, TestEvent, ContextOptions } from '@uniformdev/context';
|
|
1
|
+
import { ManifestV2, TestEvent, ContextOptions, Quirks, ScoreVector } from '@uniformdev/context';
|
|
2
2
|
import { PersonalizationEvent } from '@uniformdev/context/*';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { PureContextualEditingComponentWrapperProps } from '@uniformdev/canvas-react/core';
|
|
@@ -6,6 +6,7 @@ import * as react from 'react';
|
|
|
6
6
|
import { PropsWithChildren } from 'react';
|
|
7
7
|
import * as _uniformdev_canvas_next_rsc_shared from '@uniformdev/canvas-next-rsc-shared';
|
|
8
8
|
import { AppDirectoryContextState, PersonalizeProps, ComponentProps, TestProps, AppDirectoryContext } from '@uniformdev/canvas-next-rsc-shared';
|
|
9
|
+
import { VisibilityParameterValue } from '@uniformdev/canvas';
|
|
9
10
|
|
|
10
11
|
type ClientContextComponentProps = {
|
|
11
12
|
/**
|
|
@@ -50,20 +51,37 @@ type PersonalizeClientProps = PersonalizeProps & {
|
|
|
50
51
|
indexes: number[];
|
|
51
52
|
};
|
|
52
53
|
declare const PersonalizeClient: (props: ComponentProps<PersonalizeClientProps>) => react.FunctionComponentElement<{
|
|
53
|
-
children?: react.ReactNode;
|
|
54
|
+
children?: react.ReactNode | undefined;
|
|
54
55
|
}>;
|
|
55
56
|
|
|
56
57
|
declare const TestClient: (props: ComponentProps<TestProps>) => react.FunctionComponentElement<{
|
|
57
|
-
children?: react.ReactNode;
|
|
58
|
+
children?: react.ReactNode | undefined;
|
|
58
59
|
}> | null;
|
|
59
60
|
|
|
60
61
|
declare const UniformScript: () => react_jsx_runtime.JSX.Element;
|
|
61
62
|
|
|
63
|
+
declare const VisibilityRulesWrapperClient: ({ parameter, initialIsVisible, children, }: PropsWithChildren<{
|
|
64
|
+
parameter: VisibilityParameterValue;
|
|
65
|
+
initialIsVisible: boolean | null;
|
|
66
|
+
}>) => react_jsx_runtime.JSX.Element | null;
|
|
67
|
+
|
|
62
68
|
type CreateClientUniformContextOptions = Omit<ContextOptions, 'transitionStore'>;
|
|
63
|
-
declare const createClientUniformContext: (options: CreateClientUniformContextOptions) => _uniformdev_canvas_next_rsc_shared.
|
|
69
|
+
declare const createClientUniformContext: (options: CreateClientUniformContextOptions) => _uniformdev_canvas_next_rsc_shared.AppDirectoryContextInstance;
|
|
64
70
|
|
|
65
71
|
declare const useInitUniformContext: (callback: () => AppDirectoryContext) => void;
|
|
66
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Provides reactive access to the Uniform Context's current visitor quirks values
|
|
75
|
+
* This can be used when you want to read current quirk values directly.
|
|
76
|
+
*/
|
|
77
|
+
declare function useQuirks(): Quirks;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Provides reactive access to the Uniform Context's current visitor scores values.
|
|
81
|
+
* This can be used when you want to read current score values directly.
|
|
82
|
+
*/
|
|
83
|
+
declare function useScores(): ScoreVector | undefined;
|
|
84
|
+
|
|
67
85
|
declare global {
|
|
68
86
|
interface Window {
|
|
69
87
|
__UNIFORM_CONTEXT__: AppDirectoryContext | undefined;
|
|
@@ -73,4 +91,4 @@ declare const useUniformContext: () => {
|
|
|
73
91
|
context: AppDirectoryContext | undefined;
|
|
74
92
|
};
|
|
75
93
|
|
|
76
|
-
export { type ClientContextComponent, type ClientContextComponentProps, ClientContextPersonalizationTransfer, ClientContextTestTransfer, ClientContextUpdate, ClientContextualEditingComponentWrapper, ContextUpdateTransferClient, type CreateClientUniformContextOptions, DefaultUniformClientContext, PersonalizeClient, type PersonalizeClientProps, TestClient, UniformScript, createClientUniformContext, useInitUniformContext, useUniformContext };
|
|
94
|
+
export { type ClientContextComponent, type ClientContextComponentProps, ClientContextPersonalizationTransfer, ClientContextTestTransfer, ClientContextUpdate, ClientContextualEditingComponentWrapper, ContextUpdateTransferClient, type CreateClientUniformContextOptions, DefaultUniformClientContext, PersonalizeClient, type PersonalizeClientProps, TestClient, UniformScript, VisibilityRulesWrapperClient, createClientUniformContext, useInitUniformContext, useQuirks, useScores, useUniformContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ManifestV2, TestEvent, ContextOptions } from '@uniformdev/context';
|
|
1
|
+
import { ManifestV2, TestEvent, ContextOptions, Quirks, ScoreVector } from '@uniformdev/context';
|
|
2
2
|
import { PersonalizationEvent } from '@uniformdev/context/*';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { PureContextualEditingComponentWrapperProps } from '@uniformdev/canvas-react/core';
|
|
@@ -6,6 +6,7 @@ import * as react from 'react';
|
|
|
6
6
|
import { PropsWithChildren } from 'react';
|
|
7
7
|
import * as _uniformdev_canvas_next_rsc_shared from '@uniformdev/canvas-next-rsc-shared';
|
|
8
8
|
import { AppDirectoryContextState, PersonalizeProps, ComponentProps, TestProps, AppDirectoryContext } from '@uniformdev/canvas-next-rsc-shared';
|
|
9
|
+
import { VisibilityParameterValue } from '@uniformdev/canvas';
|
|
9
10
|
|
|
10
11
|
type ClientContextComponentProps = {
|
|
11
12
|
/**
|
|
@@ -50,20 +51,37 @@ type PersonalizeClientProps = PersonalizeProps & {
|
|
|
50
51
|
indexes: number[];
|
|
51
52
|
};
|
|
52
53
|
declare const PersonalizeClient: (props: ComponentProps<PersonalizeClientProps>) => react.FunctionComponentElement<{
|
|
53
|
-
children?: react.ReactNode;
|
|
54
|
+
children?: react.ReactNode | undefined;
|
|
54
55
|
}>;
|
|
55
56
|
|
|
56
57
|
declare const TestClient: (props: ComponentProps<TestProps>) => react.FunctionComponentElement<{
|
|
57
|
-
children?: react.ReactNode;
|
|
58
|
+
children?: react.ReactNode | undefined;
|
|
58
59
|
}> | null;
|
|
59
60
|
|
|
60
61
|
declare const UniformScript: () => react_jsx_runtime.JSX.Element;
|
|
61
62
|
|
|
63
|
+
declare const VisibilityRulesWrapperClient: ({ parameter, initialIsVisible, children, }: PropsWithChildren<{
|
|
64
|
+
parameter: VisibilityParameterValue;
|
|
65
|
+
initialIsVisible: boolean | null;
|
|
66
|
+
}>) => react_jsx_runtime.JSX.Element | null;
|
|
67
|
+
|
|
62
68
|
type CreateClientUniformContextOptions = Omit<ContextOptions, 'transitionStore'>;
|
|
63
|
-
declare const createClientUniformContext: (options: CreateClientUniformContextOptions) => _uniformdev_canvas_next_rsc_shared.
|
|
69
|
+
declare const createClientUniformContext: (options: CreateClientUniformContextOptions) => _uniformdev_canvas_next_rsc_shared.AppDirectoryContextInstance;
|
|
64
70
|
|
|
65
71
|
declare const useInitUniformContext: (callback: () => AppDirectoryContext) => void;
|
|
66
72
|
|
|
73
|
+
/**
|
|
74
|
+
* Provides reactive access to the Uniform Context's current visitor quirks values
|
|
75
|
+
* This can be used when you want to read current quirk values directly.
|
|
76
|
+
*/
|
|
77
|
+
declare function useQuirks(): Quirks;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Provides reactive access to the Uniform Context's current visitor scores values.
|
|
81
|
+
* This can be used when you want to read current score values directly.
|
|
82
|
+
*/
|
|
83
|
+
declare function useScores(): ScoreVector | undefined;
|
|
84
|
+
|
|
67
85
|
declare global {
|
|
68
86
|
interface Window {
|
|
69
87
|
__UNIFORM_CONTEXT__: AppDirectoryContext | undefined;
|
|
@@ -73,4 +91,4 @@ declare const useUniformContext: () => {
|
|
|
73
91
|
context: AppDirectoryContext | undefined;
|
|
74
92
|
};
|
|
75
93
|
|
|
76
|
-
export { type ClientContextComponent, type ClientContextComponentProps, ClientContextPersonalizationTransfer, ClientContextTestTransfer, ClientContextUpdate, ClientContextualEditingComponentWrapper, ContextUpdateTransferClient, type CreateClientUniformContextOptions, DefaultUniformClientContext, PersonalizeClient, type PersonalizeClientProps, TestClient, UniformScript, createClientUniformContext, useInitUniformContext, useUniformContext };
|
|
94
|
+
export { type ClientContextComponent, type ClientContextComponentProps, ClientContextPersonalizationTransfer, ClientContextTestTransfer, ClientContextUpdate, ClientContextualEditingComponentWrapper, ContextUpdateTransferClient, type CreateClientUniformContextOptions, DefaultUniformClientContext, PersonalizeClient, type PersonalizeClientProps, TestClient, UniformScript, VisibilityRulesWrapperClient, createClientUniformContext, useInitUniformContext, useQuirks, useScores, useUniformContext };
|