@uniformdev/canvas-next-rsc-shared 20.34.2-alpha.67 → 20.35.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 +1 -9
- package/dist/index.d.ts +1 -9
- package/dist/index.esm.js +0 -13
- package/dist/index.js +0 -13
- package/dist/index.mjs +0 -13
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _uniformdev_context from '@uniformdev/context';
|
|
2
|
-
import { ContextInstance, ContextState, ContextOptions, CookieTransitionDataStoreOptions, Context, LogMessage, TestVariant, TestOptions, PersonalizedVariant, PersonalizeOptions, TestEvent, PersonalizationEvent
|
|
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
|
|
|
@@ -208,14 +208,6 @@ declare class AppDirectoryContextInstance implements AppDirectoryContext {
|
|
|
208
208
|
internal_processTestEvent(event: TestEvent): void;
|
|
209
209
|
internal_processPersonalizationEvent(event: PersonalizationEvent): void;
|
|
210
210
|
update(update: Partial<AppDirectoryContextState>): Promise<void>;
|
|
211
|
-
/**
|
|
212
|
-
* Gets the current canvas data
|
|
213
|
-
*/
|
|
214
|
-
getCompositionMetadata(): Readonly<CompositionMetadata | undefined>;
|
|
215
|
-
/**
|
|
216
|
-
* Updates the canvas data and emits a canvasDataUpdated event
|
|
217
|
-
*/
|
|
218
|
-
updateCompositionMetadata(newData: CompositionMetadata): Promise<void>;
|
|
219
211
|
updateConsent(consent: boolean): Promise<void>;
|
|
220
212
|
get consent(): boolean | undefined;
|
|
221
213
|
internal_update(update: Partial<AppDirectoryContextState>): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _uniformdev_context from '@uniformdev/context';
|
|
2
|
-
import { ContextInstance, ContextState, ContextOptions, CookieTransitionDataStoreOptions, Context, LogMessage, TestVariant, TestOptions, PersonalizedVariant, PersonalizeOptions, TestEvent, PersonalizationEvent
|
|
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
|
|
|
@@ -208,14 +208,6 @@ declare class AppDirectoryContextInstance implements AppDirectoryContext {
|
|
|
208
208
|
internal_processTestEvent(event: TestEvent): void;
|
|
209
209
|
internal_processPersonalizationEvent(event: PersonalizationEvent): void;
|
|
210
210
|
update(update: Partial<AppDirectoryContextState>): Promise<void>;
|
|
211
|
-
/**
|
|
212
|
-
* Gets the current canvas data
|
|
213
|
-
*/
|
|
214
|
-
getCompositionMetadata(): Readonly<CompositionMetadata | undefined>;
|
|
215
|
-
/**
|
|
216
|
-
* Updates the canvas data and emits a canvasDataUpdated event
|
|
217
|
-
*/
|
|
218
|
-
updateCompositionMetadata(newData: CompositionMetadata): Promise<void>;
|
|
219
211
|
updateConsent(consent: boolean): Promise<void>;
|
|
220
212
|
get consent(): boolean | undefined;
|
|
221
213
|
internal_update(update: Partial<AppDirectoryContextState>): Promise<void>;
|
package/dist/index.esm.js
CHANGED
|
@@ -153,18 +153,6 @@ var AppDirectoryContextInstance = class {
|
|
|
153
153
|
url
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
/**
|
|
157
|
-
* Gets the current canvas data
|
|
158
|
-
*/
|
|
159
|
-
getCompositionMetadata() {
|
|
160
|
-
return __privateGet(this, _context).getCompositionMetadata();
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Updates the canvas data and emits a canvasDataUpdated event
|
|
164
|
-
*/
|
|
165
|
-
async updateCompositionMetadata(newData) {
|
|
166
|
-
return __privateGet(this, _context).updateCompositionMetadata(newData);
|
|
167
|
-
}
|
|
168
156
|
async updateConsent(consent) {
|
|
169
157
|
return __privateGet(this, _context).storage.updateData([
|
|
170
158
|
{
|
|
@@ -288,7 +276,6 @@ var runTest = ({
|
|
|
288
276
|
const event = {
|
|
289
277
|
name: test,
|
|
290
278
|
variantAssigned: true,
|
|
291
|
-
control: true,
|
|
292
279
|
variantId: variantId != null ? variantId : "NO_VARIANTS"
|
|
293
280
|
};
|
|
294
281
|
return {
|
package/dist/index.js
CHANGED
|
@@ -180,18 +180,6 @@ var AppDirectoryContextInstance = class {
|
|
|
180
180
|
url
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
/**
|
|
184
|
-
* Gets the current canvas data
|
|
185
|
-
*/
|
|
186
|
-
getCompositionMetadata() {
|
|
187
|
-
return __privateGet(this, _context).getCompositionMetadata();
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Updates the canvas data and emits a canvasDataUpdated event
|
|
191
|
-
*/
|
|
192
|
-
async updateCompositionMetadata(newData) {
|
|
193
|
-
return __privateGet(this, _context).updateCompositionMetadata(newData);
|
|
194
|
-
}
|
|
195
183
|
async updateConsent(consent) {
|
|
196
184
|
return __privateGet(this, _context).storage.updateData([
|
|
197
185
|
{
|
|
@@ -315,7 +303,6 @@ var runTest = ({
|
|
|
315
303
|
const event = {
|
|
316
304
|
name: test,
|
|
317
305
|
variantAssigned: true,
|
|
318
|
-
control: true,
|
|
319
306
|
variantId: variantId != null ? variantId : "NO_VARIANTS"
|
|
320
307
|
};
|
|
321
308
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -153,18 +153,6 @@ var AppDirectoryContextInstance = class {
|
|
|
153
153
|
url
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
/**
|
|
157
|
-
* Gets the current canvas data
|
|
158
|
-
*/
|
|
159
|
-
getCompositionMetadata() {
|
|
160
|
-
return __privateGet(this, _context).getCompositionMetadata();
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Updates the canvas data and emits a canvasDataUpdated event
|
|
164
|
-
*/
|
|
165
|
-
async updateCompositionMetadata(newData) {
|
|
166
|
-
return __privateGet(this, _context).updateCompositionMetadata(newData);
|
|
167
|
-
}
|
|
168
156
|
async updateConsent(consent) {
|
|
169
157
|
return __privateGet(this, _context).storage.updateData([
|
|
170
158
|
{
|
|
@@ -288,7 +276,6 @@ var runTest = ({
|
|
|
288
276
|
const event = {
|
|
289
277
|
name: test,
|
|
290
278
|
variantAssigned: true,
|
|
291
|
-
control: true,
|
|
292
279
|
variantId: variantId != null ? variantId : "NO_VARIANTS"
|
|
293
280
|
};
|
|
294
281
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc-shared",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.35.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsup",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"/dist"
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@types/node": "
|
|
29
|
-
"@types/react": "18.3.
|
|
28
|
+
"@types/node": "24.3.1",
|
|
29
|
+
"@types/react": "18.3.24",
|
|
30
30
|
"next": "15.2.4",
|
|
31
31
|
"react": "18.3.1",
|
|
32
32
|
"react-dom": "18.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@uniformdev/canvas": "20.
|
|
36
|
-
"@uniformdev/context": "20.
|
|
35
|
+
"@uniformdev/canvas": "20.35.0",
|
|
36
|
+
"@uniformdev/context": "20.35.0"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": "^18.18.0 || ^19.8.0 || >= 20.0.0"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "f228361828ef49a596ca3841e5b79768c64418cf"
|
|
50
50
|
}
|