@uniformdev/canvas-next-rsc-shared 19.191.0 → 19.194.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 +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.esm.js +11 -0
- package/dist/index.js +11 -0
- package/dist/index.mjs +11 -0
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -141,9 +141,19 @@ type CompositionContext = Omit<RouteGetResponseComposition, 'compositionApiRespo
|
|
|
141
141
|
} | undefined;
|
|
142
142
|
isDraftMode: boolean;
|
|
143
143
|
isContextualEditing: boolean;
|
|
144
|
+
previewMode: 'editor' | 'preview' | undefined;
|
|
144
145
|
};
|
|
145
146
|
type AppDirectoryContext = Omit<ContextInstance, 'update'> & {
|
|
146
147
|
update: (update: Partial<AppDirectoryContextState>) => Promise<void>;
|
|
148
|
+
/**
|
|
149
|
+
* Set the consent state for the current user.
|
|
150
|
+
* @param consent Whether the user has given consent.
|
|
151
|
+
*/
|
|
152
|
+
updateConsent: (consent: boolean) => Promise<void>;
|
|
153
|
+
/**
|
|
154
|
+
* The current consent state for the user.
|
|
155
|
+
*/
|
|
156
|
+
get consent(): Readonly<boolean | undefined>;
|
|
147
157
|
/**
|
|
148
158
|
* Internal use only. Please use `ContextUpdateTransfer` to handle any Context updates.
|
|
149
159
|
*
|
|
@@ -174,6 +184,8 @@ declare class AppDirectoryContextInstance implements AppDirectoryContext {
|
|
|
174
184
|
internal_processTestEvent(event: TestEvent): void;
|
|
175
185
|
internal_processPersonalizationEvent(event: PersonalizationEvent): void;
|
|
176
186
|
update(update: Partial<AppDirectoryContextState>): Promise<void>;
|
|
187
|
+
updateConsent(consent: boolean): Promise<void>;
|
|
188
|
+
get consent(): boolean | undefined;
|
|
177
189
|
internal_update(update: Partial<AppDirectoryContextState>): Promise<void>;
|
|
178
190
|
}
|
|
179
191
|
|
package/dist/index.d.ts
CHANGED
|
@@ -141,9 +141,19 @@ type CompositionContext = Omit<RouteGetResponseComposition, 'compositionApiRespo
|
|
|
141
141
|
} | undefined;
|
|
142
142
|
isDraftMode: boolean;
|
|
143
143
|
isContextualEditing: boolean;
|
|
144
|
+
previewMode: 'editor' | 'preview' | undefined;
|
|
144
145
|
};
|
|
145
146
|
type AppDirectoryContext = Omit<ContextInstance, 'update'> & {
|
|
146
147
|
update: (update: Partial<AppDirectoryContextState>) => Promise<void>;
|
|
148
|
+
/**
|
|
149
|
+
* Set the consent state for the current user.
|
|
150
|
+
* @param consent Whether the user has given consent.
|
|
151
|
+
*/
|
|
152
|
+
updateConsent: (consent: boolean) => Promise<void>;
|
|
153
|
+
/**
|
|
154
|
+
* The current consent state for the user.
|
|
155
|
+
*/
|
|
156
|
+
get consent(): Readonly<boolean | undefined>;
|
|
147
157
|
/**
|
|
148
158
|
* Internal use only. Please use `ContextUpdateTransfer` to handle any Context updates.
|
|
149
159
|
*
|
|
@@ -174,6 +184,8 @@ declare class AppDirectoryContextInstance implements AppDirectoryContext {
|
|
|
174
184
|
internal_processTestEvent(event: TestEvent): void;
|
|
175
185
|
internal_processPersonalizationEvent(event: PersonalizationEvent): void;
|
|
176
186
|
update(update: Partial<AppDirectoryContextState>): Promise<void>;
|
|
187
|
+
updateConsent(consent: boolean): Promise<void>;
|
|
188
|
+
get consent(): boolean | undefined;
|
|
177
189
|
internal_update(update: Partial<AppDirectoryContextState>): Promise<void>;
|
|
178
190
|
}
|
|
179
191
|
|
package/dist/index.esm.js
CHANGED
|
@@ -147,6 +147,17 @@ var AppDirectoryContextInstance = class {
|
|
|
147
147
|
url
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
|
+
async updateConsent(consent) {
|
|
151
|
+
return __privateGet(this, _context).storage.updateData([
|
|
152
|
+
{
|
|
153
|
+
type: "consent",
|
|
154
|
+
data: consent
|
|
155
|
+
}
|
|
156
|
+
]);
|
|
157
|
+
}
|
|
158
|
+
get consent() {
|
|
159
|
+
return __privateGet(this, _context).storage.data.consent;
|
|
160
|
+
}
|
|
150
161
|
internal_update(update) {
|
|
151
162
|
return this.update(update);
|
|
152
163
|
}
|
package/dist/index.js
CHANGED
|
@@ -174,6 +174,17 @@ var AppDirectoryContextInstance = class {
|
|
|
174
174
|
url
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
+
async updateConsent(consent) {
|
|
178
|
+
return __privateGet(this, _context).storage.updateData([
|
|
179
|
+
{
|
|
180
|
+
type: "consent",
|
|
181
|
+
data: consent
|
|
182
|
+
}
|
|
183
|
+
]);
|
|
184
|
+
}
|
|
185
|
+
get consent() {
|
|
186
|
+
return __privateGet(this, _context).storage.data.consent;
|
|
187
|
+
}
|
|
177
188
|
internal_update(update) {
|
|
178
189
|
return this.update(update);
|
|
179
190
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -147,6 +147,17 @@ var AppDirectoryContextInstance = class {
|
|
|
147
147
|
url
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
|
+
async updateConsent(consent) {
|
|
151
|
+
return __privateGet(this, _context).storage.updateData([
|
|
152
|
+
{
|
|
153
|
+
type: "consent",
|
|
154
|
+
data: consent
|
|
155
|
+
}
|
|
156
|
+
]);
|
|
157
|
+
}
|
|
158
|
+
get consent() {
|
|
159
|
+
return __privateGet(this, _context).storage.data.consent;
|
|
160
|
+
}
|
|
150
161
|
internal_update(update) {
|
|
151
162
|
return this.update(update);
|
|
152
163
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc-shared",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.194.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.194.0",
|
|
36
|
+
"@uniformdev/context": "19.194.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": "0ac01d94c0f76fc1d7b7756af8ea09a0c9a14b55"
|
|
50
50
|
}
|