@uniformdev/canvas-next-rsc-shared 19.178.2-alpha.25 → 19.179.2-alpha.22
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 +5 -12
- package/dist/index.d.ts +5 -12
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ContextInstance, ContextState, ContextOptions, PersonalizationEvent, TestEvent } from '@uniformdev/context';
|
|
2
|
-
import * as _uniformdev_canvas from '@uniformdev/canvas';
|
|
3
2
|
import { ComponentInstance, RouteGetResponseComposition, RootComponentInstance } from '@uniformdev/canvas';
|
|
4
3
|
import { PropsWithChildren } from 'react';
|
|
5
4
|
|
|
@@ -170,9 +169,9 @@ type PersonalizeWithContextComponentProps = ComponentProps<PersonalizeProps> & {
|
|
|
170
169
|
};
|
|
171
170
|
|
|
172
171
|
declare const runPersonalization: ({ component, trackingEventName, count, contextInstance, }: PersonalizeProps & {
|
|
173
|
-
component: ComponentProps[
|
|
172
|
+
component: ComponentProps["component"];
|
|
174
173
|
} & {
|
|
175
|
-
contextInstance: Pick<ContextInstance,
|
|
174
|
+
contextInstance: Pick<ContextInstance, "personalize"> | undefined;
|
|
176
175
|
}) => {
|
|
177
176
|
indexes: number[];
|
|
178
177
|
event: PersonalizationEvent;
|
|
@@ -182,14 +181,8 @@ type TestProps = {
|
|
|
182
181
|
test: string;
|
|
183
182
|
};
|
|
184
183
|
|
|
185
|
-
declare const runTest: ({ test, component, contextInstance, }: TestProps & {
|
|
186
|
-
|
|
187
|
-
context: CompositionContext;
|
|
188
|
-
slots: Record<string, SlotDefinition>;
|
|
189
|
-
slotName: string | undefined;
|
|
190
|
-
slotIndex: number | undefined;
|
|
191
|
-
} & {
|
|
192
|
-
contextInstance: Pick<ContextInstance, 'test' | 'manifest'> | undefined;
|
|
184
|
+
declare const runTest: ({ test, component, contextInstance, }: ComponentProps<TestProps> & {
|
|
185
|
+
contextInstance: Pick<ContextInstance, "test" | "manifest"> | undefined;
|
|
193
186
|
}) => {
|
|
194
187
|
index: number | null;
|
|
195
188
|
event: TestEvent | null;
|
|
@@ -199,7 +192,7 @@ type ResolvePathResult = {
|
|
|
199
192
|
type: 'path';
|
|
200
193
|
value: string;
|
|
201
194
|
};
|
|
202
|
-
declare const resolvePath: ({ params }: Pick<PageParameters,
|
|
195
|
+
declare const resolvePath: ({ params }: Pick<PageParameters, "params">) => ResolvePathResult;
|
|
203
196
|
|
|
204
197
|
declare function getBaseUrl(): string;
|
|
205
198
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ContextInstance, ContextState, ContextOptions, PersonalizationEvent, TestEvent } from '@uniformdev/context';
|
|
2
|
-
import * as _uniformdev_canvas from '@uniformdev/canvas';
|
|
3
2
|
import { ComponentInstance, RouteGetResponseComposition, RootComponentInstance } from '@uniformdev/canvas';
|
|
4
3
|
import { PropsWithChildren } from 'react';
|
|
5
4
|
|
|
@@ -170,9 +169,9 @@ type PersonalizeWithContextComponentProps = ComponentProps<PersonalizeProps> & {
|
|
|
170
169
|
};
|
|
171
170
|
|
|
172
171
|
declare const runPersonalization: ({ component, trackingEventName, count, contextInstance, }: PersonalizeProps & {
|
|
173
|
-
component: ComponentProps[
|
|
172
|
+
component: ComponentProps["component"];
|
|
174
173
|
} & {
|
|
175
|
-
contextInstance: Pick<ContextInstance,
|
|
174
|
+
contextInstance: Pick<ContextInstance, "personalize"> | undefined;
|
|
176
175
|
}) => {
|
|
177
176
|
indexes: number[];
|
|
178
177
|
event: PersonalizationEvent;
|
|
@@ -182,14 +181,8 @@ type TestProps = {
|
|
|
182
181
|
test: string;
|
|
183
182
|
};
|
|
184
183
|
|
|
185
|
-
declare const runTest: ({ test, component, contextInstance, }: TestProps & {
|
|
186
|
-
|
|
187
|
-
context: CompositionContext;
|
|
188
|
-
slots: Record<string, SlotDefinition>;
|
|
189
|
-
slotName: string | undefined;
|
|
190
|
-
slotIndex: number | undefined;
|
|
191
|
-
} & {
|
|
192
|
-
contextInstance: Pick<ContextInstance, 'test' | 'manifest'> | undefined;
|
|
184
|
+
declare const runTest: ({ test, component, contextInstance, }: ComponentProps<TestProps> & {
|
|
185
|
+
contextInstance: Pick<ContextInstance, "test" | "manifest"> | undefined;
|
|
193
186
|
}) => {
|
|
194
187
|
index: number | null;
|
|
195
188
|
event: TestEvent | null;
|
|
@@ -199,7 +192,7 @@ type ResolvePathResult = {
|
|
|
199
192
|
type: 'path';
|
|
200
193
|
value: string;
|
|
201
194
|
};
|
|
202
|
-
declare const resolvePath: ({ params }: Pick<PageParameters,
|
|
195
|
+
declare const resolvePath: ({ params }: Pick<PageParameters, "params">) => ResolvePathResult;
|
|
203
196
|
|
|
204
197
|
declare function getBaseUrl(): string;
|
|
205
198
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc-shared",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.179.2-alpha.22+79878be48f",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"/dist"
|
|
25
25
|
],
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@types/node": "
|
|
28
|
-
"@types/react": "18.
|
|
29
|
-
"eslint": "
|
|
27
|
+
"@types/node": "20.10.6",
|
|
28
|
+
"@types/react": "18.3.3",
|
|
29
|
+
"eslint": "9.9.0",
|
|
30
30
|
"next": "^14.0.0",
|
|
31
|
-
"react": "18.
|
|
32
|
-
"react-dom": "18.
|
|
31
|
+
"react": "18.3.1",
|
|
32
|
+
"react-dom": "18.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@uniformdev/canvas": "19.
|
|
36
|
-
"@uniformdev/context": "19.
|
|
35
|
+
"@uniformdev/canvas": "19.179.2-alpha.22+79878be48f",
|
|
36
|
+
"@uniformdev/context": "19.179.2-alpha.22+79878be48f"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=16.14.0"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "79878be48f2d4b1c6158026aa632e71c91473ac6"
|
|
50
50
|
}
|