@uniformdev/canvas-next-rsc-shared 19.198.3-alpha.5 → 19.200.1-alpha.3
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 +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.esm.js +3 -1
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _uniformdev_context from '@uniformdev/context';
|
|
2
|
-
import { ContextInstance, ContextState, ContextOptions, Context, LogMessage, TestVariant, TestOptions, PersonalizedVariant, PersonalizeOptions, TestEvent, PersonalizationEvent } from '@uniformdev/context';
|
|
2
|
+
import { ContextInstance, ContextState, ContextOptions, CookieTransitionDataStoreOptions, Context, LogMessage, TestVariant, TestOptions, PersonalizedVariant, PersonalizeOptions, TestEvent, PersonalizationEvent } from '@uniformdev/context';
|
|
3
3
|
import { ComponentInstance, RouteGetResponseComposition, RootComponentInstance } from '@uniformdev/canvas';
|
|
4
4
|
import { PropsWithChildren } from 'react';
|
|
5
5
|
|
|
@@ -164,9 +164,11 @@ type AppDirectoryContext = Omit<ContextInstance, 'update'> & {
|
|
|
164
164
|
type AppDirectoryContextState = Omit<ContextState, 'url'> & PageParameters;
|
|
165
165
|
type AppDirectoryServerContext = Omit<AppDirectoryContext, 'update'>;
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
type CreateUniformContextOptions = Omit<ContextOptions, 'transitionStore'> & {
|
|
168
168
|
serverCookieValue: string | undefined;
|
|
169
|
-
|
|
169
|
+
cookieAttributes?: CookieTransitionDataStoreOptions['cookieAttributes'];
|
|
170
|
+
};
|
|
171
|
+
declare const createUniformContext: ({ serverCookieValue, cookieAttributes, ...rest }: CreateUniformContextOptions) => AppDirectoryContextInstance;
|
|
170
172
|
declare class AppDirectoryContextInstance implements AppDirectoryContext {
|
|
171
173
|
#private;
|
|
172
174
|
readonly manifest: ContextInstance['manifest'];
|
|
@@ -225,4 +227,4 @@ declare const resolvePath: ({ params }: Pick<PageParameters, "params">) => Resol
|
|
|
225
227
|
|
|
226
228
|
declare function getBaseUrl(): string;
|
|
227
229
|
|
|
228
|
-
export { type AppDirectoryContext, AppDirectoryContextInstance, type AppDirectoryContextState, type AppDirectoryServerContext, type CacheMode, type ComponentProps, type CompositionContext, type PageParameters, type PersonalizeProps, type PersonalizeWithContextComponentProps, type PlaygroundParameters, type ResolvePathResult, type SlotDefinition, type TestProps, type UniformServerConfig, createUniformContext, getBaseUrl, resolvePath, runPersonalization, runTest };
|
|
230
|
+
export { type AppDirectoryContext, AppDirectoryContextInstance, type AppDirectoryContextState, type AppDirectoryServerContext, type CacheMode, type ComponentProps, type CompositionContext, type CreateUniformContextOptions, type PageParameters, type PersonalizeProps, type PersonalizeWithContextComponentProps, type PlaygroundParameters, type ResolvePathResult, type SlotDefinition, type TestProps, type UniformServerConfig, createUniformContext, getBaseUrl, resolvePath, runPersonalization, runTest };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _uniformdev_context from '@uniformdev/context';
|
|
2
|
-
import { ContextInstance, ContextState, ContextOptions, Context, LogMessage, TestVariant, TestOptions, PersonalizedVariant, PersonalizeOptions, TestEvent, PersonalizationEvent } from '@uniformdev/context';
|
|
2
|
+
import { ContextInstance, ContextState, ContextOptions, CookieTransitionDataStoreOptions, Context, LogMessage, TestVariant, TestOptions, PersonalizedVariant, PersonalizeOptions, TestEvent, PersonalizationEvent } from '@uniformdev/context';
|
|
3
3
|
import { ComponentInstance, RouteGetResponseComposition, RootComponentInstance } from '@uniformdev/canvas';
|
|
4
4
|
import { PropsWithChildren } from 'react';
|
|
5
5
|
|
|
@@ -164,9 +164,11 @@ type AppDirectoryContext = Omit<ContextInstance, 'update'> & {
|
|
|
164
164
|
type AppDirectoryContextState = Omit<ContextState, 'url'> & PageParameters;
|
|
165
165
|
type AppDirectoryServerContext = Omit<AppDirectoryContext, 'update'>;
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
type CreateUniformContextOptions = Omit<ContextOptions, 'transitionStore'> & {
|
|
168
168
|
serverCookieValue: string | undefined;
|
|
169
|
-
|
|
169
|
+
cookieAttributes?: CookieTransitionDataStoreOptions['cookieAttributes'];
|
|
170
|
+
};
|
|
171
|
+
declare const createUniformContext: ({ serverCookieValue, cookieAttributes, ...rest }: CreateUniformContextOptions) => AppDirectoryContextInstance;
|
|
170
172
|
declare class AppDirectoryContextInstance implements AppDirectoryContext {
|
|
171
173
|
#private;
|
|
172
174
|
readonly manifest: ContextInstance['manifest'];
|
|
@@ -225,4 +227,4 @@ declare const resolvePath: ({ params }: Pick<PageParameters, "params">) => Resol
|
|
|
225
227
|
|
|
226
228
|
declare function getBaseUrl(): string;
|
|
227
229
|
|
|
228
|
-
export { type AppDirectoryContext, AppDirectoryContextInstance, type AppDirectoryContextState, type AppDirectoryServerContext, type CacheMode, type ComponentProps, type CompositionContext, type PageParameters, type PersonalizeProps, type PersonalizeWithContextComponentProps, type PlaygroundParameters, type ResolvePathResult, type SlotDefinition, type TestProps, type UniformServerConfig, createUniformContext, getBaseUrl, resolvePath, runPersonalization, runTest };
|
|
230
|
+
export { type AppDirectoryContext, AppDirectoryContextInstance, type AppDirectoryContextState, type AppDirectoryServerContext, type CacheMode, type ComponentProps, type CompositionContext, type CreateUniformContextOptions, type PageParameters, type PersonalizeProps, type PersonalizeWithContextComponentProps, type PlaygroundParameters, type ResolvePathResult, type SlotDefinition, type TestProps, type UniformServerConfig, createUniformContext, getBaseUrl, resolvePath, runPersonalization, runTest };
|
package/dist/index.esm.js
CHANGED
|
@@ -66,12 +66,14 @@ function getBaseUrl() {
|
|
|
66
66
|
// src/context/createUniformContext.ts
|
|
67
67
|
var createUniformContext = ({
|
|
68
68
|
serverCookieValue,
|
|
69
|
+
cookieAttributes,
|
|
69
70
|
...rest
|
|
70
71
|
}) => {
|
|
71
72
|
const context = new Context({
|
|
72
73
|
...rest,
|
|
73
74
|
transitionStore: new CookieTransitionDataStore({
|
|
74
|
-
serverCookieValue
|
|
75
|
+
serverCookieValue,
|
|
76
|
+
cookieAttributes
|
|
75
77
|
})
|
|
76
78
|
});
|
|
77
79
|
const wrapped = new AppDirectoryContextInstance(context);
|
package/dist/index.js
CHANGED
|
@@ -93,12 +93,14 @@ function getBaseUrl() {
|
|
|
93
93
|
// src/context/createUniformContext.ts
|
|
94
94
|
var createUniformContext = ({
|
|
95
95
|
serverCookieValue,
|
|
96
|
+
cookieAttributes,
|
|
96
97
|
...rest
|
|
97
98
|
}) => {
|
|
98
99
|
const context = new import_context.Context({
|
|
99
100
|
...rest,
|
|
100
101
|
transitionStore: new import_context.CookieTransitionDataStore({
|
|
101
|
-
serverCookieValue
|
|
102
|
+
serverCookieValue,
|
|
103
|
+
cookieAttributes
|
|
102
104
|
})
|
|
103
105
|
});
|
|
104
106
|
const wrapped = new AppDirectoryContextInstance(context);
|
package/dist/index.mjs
CHANGED
|
@@ -66,12 +66,14 @@ function getBaseUrl() {
|
|
|
66
66
|
// src/context/createUniformContext.ts
|
|
67
67
|
var createUniformContext = ({
|
|
68
68
|
serverCookieValue,
|
|
69
|
+
cookieAttributes,
|
|
69
70
|
...rest
|
|
70
71
|
}) => {
|
|
71
72
|
const context = new Context({
|
|
72
73
|
...rest,
|
|
73
74
|
transitionStore: new CookieTransitionDataStore({
|
|
74
|
-
serverCookieValue
|
|
75
|
+
serverCookieValue,
|
|
76
|
+
cookieAttributes
|
|
75
77
|
})
|
|
76
78
|
});
|
|
77
79
|
const wrapped = new AppDirectoryContextInstance(context);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc-shared",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.200.1-alpha.3+7a2e55fa9d",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"react-dom": "18.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@uniformdev/canvas": "19.
|
|
36
|
-
"@uniformdev/context": "19.
|
|
35
|
+
"@uniformdev/canvas": "19.200.1-alpha.3+7a2e55fa9d",
|
|
36
|
+
"@uniformdev/context": "19.200.1-alpha.3+7a2e55fa9d"
|
|
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": "7a2e55fa9d1a10a1bf4ee474173283d2844107ea"
|
|
50
50
|
}
|