@uniformdev/canvas-next-rsc-shared 20.32.2-alpha.2 → 20.33.1-alpha.53
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 +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.esm.js +13 -0
- package/dist/index.js +13 -0
- package/dist/index.mjs +13 -0
- 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, CookieTransitionDataStoreOptions, 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, CompositionMetadata } from '@uniformdev/context';
|
|
3
3
|
import { ComponentInstance, RouteGetResponseComposition, RootComponentInstance } from '@uniformdev/canvas';
|
|
4
4
|
import { PropsWithChildren } from 'react';
|
|
5
5
|
|
|
@@ -208,6 +208,14 @@ 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>;
|
|
211
219
|
updateConsent(consent: boolean): Promise<void>;
|
|
212
220
|
get consent(): boolean | undefined;
|
|
213
221
|
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 } from '@uniformdev/context';
|
|
2
|
+
import { ContextInstance, ContextState, ContextOptions, CookieTransitionDataStoreOptions, Context, LogMessage, TestVariant, TestOptions, PersonalizedVariant, PersonalizeOptions, TestEvent, PersonalizationEvent, CompositionMetadata } from '@uniformdev/context';
|
|
3
3
|
import { ComponentInstance, RouteGetResponseComposition, RootComponentInstance } from '@uniformdev/canvas';
|
|
4
4
|
import { PropsWithChildren } from 'react';
|
|
5
5
|
|
|
@@ -208,6 +208,14 @@ 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>;
|
|
211
219
|
updateConsent(consent: boolean): Promise<void>;
|
|
212
220
|
get consent(): boolean | undefined;
|
|
213
221
|
internal_update(update: Partial<AppDirectoryContextState>): Promise<void>;
|
package/dist/index.esm.js
CHANGED
|
@@ -153,6 +153,18 @@ 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
|
+
}
|
|
156
168
|
async updateConsent(consent) {
|
|
157
169
|
return __privateGet(this, _context).storage.updateData([
|
|
158
170
|
{
|
|
@@ -276,6 +288,7 @@ var runTest = ({
|
|
|
276
288
|
const event = {
|
|
277
289
|
name: test,
|
|
278
290
|
variantAssigned: true,
|
|
291
|
+
control: true,
|
|
279
292
|
variantId: variantId != null ? variantId : "NO_VARIANTS"
|
|
280
293
|
};
|
|
281
294
|
return {
|
package/dist/index.js
CHANGED
|
@@ -180,6 +180,18 @@ 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
|
+
}
|
|
183
195
|
async updateConsent(consent) {
|
|
184
196
|
return __privateGet(this, _context).storage.updateData([
|
|
185
197
|
{
|
|
@@ -303,6 +315,7 @@ var runTest = ({
|
|
|
303
315
|
const event = {
|
|
304
316
|
name: test,
|
|
305
317
|
variantAssigned: true,
|
|
318
|
+
control: true,
|
|
306
319
|
variantId: variantId != null ? variantId : "NO_VARIANTS"
|
|
307
320
|
};
|
|
308
321
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -153,6 +153,18 @@ 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
|
+
}
|
|
156
168
|
async updateConsent(consent) {
|
|
157
169
|
return __privateGet(this, _context).storage.updateData([
|
|
158
170
|
{
|
|
@@ -276,6 +288,7 @@ var runTest = ({
|
|
|
276
288
|
const event = {
|
|
277
289
|
name: test,
|
|
278
290
|
variantAssigned: true,
|
|
291
|
+
control: true,
|
|
279
292
|
variantId: variantId != null ? variantId : "NO_VARIANTS"
|
|
280
293
|
};
|
|
281
294
|
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.33.1-alpha.53+0eb981d2f2",
|
|
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": "20.
|
|
36
|
-
"@uniformdev/context": "20.
|
|
35
|
+
"@uniformdev/canvas": "20.33.1-alpha.53+0eb981d2f2",
|
|
36
|
+
"@uniformdev/context": "20.33.1-alpha.53+0eb981d2f2"
|
|
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": "0eb981d2f2dc4ac76f097fa4a5cddc8f7988126e"
|
|
50
50
|
}
|