@uniformdev/canvas-next-rsc-shared 19.206.0 → 19.207.0
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 +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.esm.js +5 -1
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -86,6 +86,10 @@ type UniformServerConfig = {
|
|
|
86
86
|
* Enables visual editing mode.
|
|
87
87
|
*/
|
|
88
88
|
vercelVisualEditing?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* When enabled, quirks will be serialized to a cookie so they are available on the server.
|
|
91
|
+
*/
|
|
92
|
+
quirkSerialization?: boolean;
|
|
89
93
|
};
|
|
90
94
|
ppr?: {
|
|
91
95
|
/**
|
|
@@ -167,8 +171,10 @@ type AppDirectoryServerContext = Omit<AppDirectoryContext, 'update'>;
|
|
|
167
171
|
type CreateUniformContextOptions = Omit<ContextOptions, 'transitionStore'> & {
|
|
168
172
|
serverCookieValue: string | undefined;
|
|
169
173
|
cookieAttributes?: CookieTransitionDataStoreOptions['cookieAttributes'];
|
|
174
|
+
quirkCookieValue?: string;
|
|
175
|
+
experimental_quirksEnabled?: CookieTransitionDataStoreOptions['experimental_quirksEnabled'];
|
|
170
176
|
};
|
|
171
|
-
declare const createUniformContext: ({ serverCookieValue, cookieAttributes, ...rest }: CreateUniformContextOptions) => AppDirectoryContextInstance;
|
|
177
|
+
declare const createUniformContext: ({ serverCookieValue, quirkCookieValue, experimental_quirksEnabled, cookieAttributes, ...rest }: CreateUniformContextOptions) => AppDirectoryContextInstance;
|
|
172
178
|
declare class AppDirectoryContextInstance implements AppDirectoryContext {
|
|
173
179
|
#private;
|
|
174
180
|
readonly manifest: ContextInstance['manifest'];
|
package/dist/index.d.ts
CHANGED
|
@@ -86,6 +86,10 @@ type UniformServerConfig = {
|
|
|
86
86
|
* Enables visual editing mode.
|
|
87
87
|
*/
|
|
88
88
|
vercelVisualEditing?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* When enabled, quirks will be serialized to a cookie so they are available on the server.
|
|
91
|
+
*/
|
|
92
|
+
quirkSerialization?: boolean;
|
|
89
93
|
};
|
|
90
94
|
ppr?: {
|
|
91
95
|
/**
|
|
@@ -167,8 +171,10 @@ type AppDirectoryServerContext = Omit<AppDirectoryContext, 'update'>;
|
|
|
167
171
|
type CreateUniformContextOptions = Omit<ContextOptions, 'transitionStore'> & {
|
|
168
172
|
serverCookieValue: string | undefined;
|
|
169
173
|
cookieAttributes?: CookieTransitionDataStoreOptions['cookieAttributes'];
|
|
174
|
+
quirkCookieValue?: string;
|
|
175
|
+
experimental_quirksEnabled?: CookieTransitionDataStoreOptions['experimental_quirksEnabled'];
|
|
170
176
|
};
|
|
171
|
-
declare const createUniformContext: ({ serverCookieValue, cookieAttributes, ...rest }: CreateUniformContextOptions) => AppDirectoryContextInstance;
|
|
177
|
+
declare const createUniformContext: ({ serverCookieValue, quirkCookieValue, experimental_quirksEnabled, cookieAttributes, ...rest }: CreateUniformContextOptions) => AppDirectoryContextInstance;
|
|
172
178
|
declare class AppDirectoryContextInstance implements AppDirectoryContext {
|
|
173
179
|
#private;
|
|
174
180
|
readonly manifest: ContextInstance['manifest'];
|
package/dist/index.esm.js
CHANGED
|
@@ -66,6 +66,8 @@ function getBaseUrl() {
|
|
|
66
66
|
// src/context/createUniformContext.ts
|
|
67
67
|
var createUniformContext = ({
|
|
68
68
|
serverCookieValue,
|
|
69
|
+
quirkCookieValue,
|
|
70
|
+
experimental_quirksEnabled,
|
|
69
71
|
cookieAttributes,
|
|
70
72
|
...rest
|
|
71
73
|
}) => {
|
|
@@ -73,7 +75,9 @@ var createUniformContext = ({
|
|
|
73
75
|
...rest,
|
|
74
76
|
transitionStore: new CookieTransitionDataStore({
|
|
75
77
|
serverCookieValue,
|
|
76
|
-
|
|
78
|
+
quirkCookieValue,
|
|
79
|
+
cookieAttributes,
|
|
80
|
+
experimental_quirksEnabled
|
|
77
81
|
})
|
|
78
82
|
});
|
|
79
83
|
const wrapped = new AppDirectoryContextInstance(context);
|
package/dist/index.js
CHANGED
|
@@ -93,6 +93,8 @@ function getBaseUrl() {
|
|
|
93
93
|
// src/context/createUniformContext.ts
|
|
94
94
|
var createUniformContext = ({
|
|
95
95
|
serverCookieValue,
|
|
96
|
+
quirkCookieValue,
|
|
97
|
+
experimental_quirksEnabled,
|
|
96
98
|
cookieAttributes,
|
|
97
99
|
...rest
|
|
98
100
|
}) => {
|
|
@@ -100,7 +102,9 @@ var createUniformContext = ({
|
|
|
100
102
|
...rest,
|
|
101
103
|
transitionStore: new import_context.CookieTransitionDataStore({
|
|
102
104
|
serverCookieValue,
|
|
103
|
-
|
|
105
|
+
quirkCookieValue,
|
|
106
|
+
cookieAttributes,
|
|
107
|
+
experimental_quirksEnabled
|
|
104
108
|
})
|
|
105
109
|
});
|
|
106
110
|
const wrapped = new AppDirectoryContextInstance(context);
|
package/dist/index.mjs
CHANGED
|
@@ -66,6 +66,8 @@ function getBaseUrl() {
|
|
|
66
66
|
// src/context/createUniformContext.ts
|
|
67
67
|
var createUniformContext = ({
|
|
68
68
|
serverCookieValue,
|
|
69
|
+
quirkCookieValue,
|
|
70
|
+
experimental_quirksEnabled,
|
|
69
71
|
cookieAttributes,
|
|
70
72
|
...rest
|
|
71
73
|
}) => {
|
|
@@ -73,7 +75,9 @@ var createUniformContext = ({
|
|
|
73
75
|
...rest,
|
|
74
76
|
transitionStore: new CookieTransitionDataStore({
|
|
75
77
|
serverCookieValue,
|
|
76
|
-
|
|
78
|
+
quirkCookieValue,
|
|
79
|
+
cookieAttributes,
|
|
80
|
+
experimental_quirksEnabled
|
|
77
81
|
})
|
|
78
82
|
});
|
|
79
83
|
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.207.0",
|
|
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.207.0",
|
|
36
|
+
"@uniformdev/context": "19.207.0"
|
|
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": "e90334452c3b50b7657f7ae55ffb9c6fe97febb3"
|
|
50
50
|
}
|