@uniformdev/canvas-next-rsc-shared 19.132.0 → 19.133.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.esm.js +10 -2
- package/dist/index.js +10 -2
- package/dist/index.mjs +10 -2
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -148,7 +148,10 @@ var runPersonalization = ({
|
|
|
148
148
|
if (variations) {
|
|
149
149
|
for (let i = 0; i < variations.length; i++) {
|
|
150
150
|
indexes.push(variations[i].index);
|
|
151
|
-
variantIds.push(
|
|
151
|
+
variantIds.push({
|
|
152
|
+
id: variations[i].id,
|
|
153
|
+
control: variations[i].control
|
|
154
|
+
});
|
|
152
155
|
}
|
|
153
156
|
}
|
|
154
157
|
} else {
|
|
@@ -163,7 +166,12 @@ var runPersonalization = ({
|
|
|
163
166
|
}
|
|
164
167
|
}
|
|
165
168
|
indexes.push(...defaults);
|
|
166
|
-
variantIds.push(
|
|
169
|
+
variantIds.push(
|
|
170
|
+
...defaults.map((i) => ({
|
|
171
|
+
id: componentVariations[i].id,
|
|
172
|
+
control: false
|
|
173
|
+
}))
|
|
174
|
+
);
|
|
167
175
|
}
|
|
168
176
|
const event = {
|
|
169
177
|
name: trackingEventName,
|
package/dist/index.js
CHANGED
|
@@ -178,7 +178,10 @@ var runPersonalization = ({
|
|
|
178
178
|
if (variations) {
|
|
179
179
|
for (let i = 0; i < variations.length; i++) {
|
|
180
180
|
indexes.push(variations[i].index);
|
|
181
|
-
variantIds.push(
|
|
181
|
+
variantIds.push({
|
|
182
|
+
id: variations[i].id,
|
|
183
|
+
control: variations[i].control
|
|
184
|
+
});
|
|
182
185
|
}
|
|
183
186
|
}
|
|
184
187
|
} else {
|
|
@@ -193,7 +196,12 @@ var runPersonalization = ({
|
|
|
193
196
|
}
|
|
194
197
|
}
|
|
195
198
|
indexes.push(...defaults);
|
|
196
|
-
variantIds.push(
|
|
199
|
+
variantIds.push(
|
|
200
|
+
...defaults.map((i) => ({
|
|
201
|
+
id: componentVariations[i].id,
|
|
202
|
+
control: false
|
|
203
|
+
}))
|
|
204
|
+
);
|
|
197
205
|
}
|
|
198
206
|
const event = {
|
|
199
207
|
name: trackingEventName,
|
package/dist/index.mjs
CHANGED
|
@@ -148,7 +148,10 @@ var runPersonalization = ({
|
|
|
148
148
|
if (variations) {
|
|
149
149
|
for (let i = 0; i < variations.length; i++) {
|
|
150
150
|
indexes.push(variations[i].index);
|
|
151
|
-
variantIds.push(
|
|
151
|
+
variantIds.push({
|
|
152
|
+
id: variations[i].id,
|
|
153
|
+
control: variations[i].control
|
|
154
|
+
});
|
|
152
155
|
}
|
|
153
156
|
}
|
|
154
157
|
} else {
|
|
@@ -163,7 +166,12 @@ var runPersonalization = ({
|
|
|
163
166
|
}
|
|
164
167
|
}
|
|
165
168
|
indexes.push(...defaults);
|
|
166
|
-
variantIds.push(
|
|
169
|
+
variantIds.push(
|
|
170
|
+
...defaults.map((i) => ({
|
|
171
|
+
id: componentVariations[i].id,
|
|
172
|
+
control: false
|
|
173
|
+
}))
|
|
174
|
+
);
|
|
167
175
|
}
|
|
168
176
|
const event = {
|
|
169
177
|
name: trackingEventName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-next-rsc-shared",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.133.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.2.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@uniformdev/canvas": "19.
|
|
36
|
-
"@uniformdev/context": "19.
|
|
35
|
+
"@uniformdev/canvas": "19.133.0",
|
|
36
|
+
"@uniformdev/context": "19.133.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": "405a628b0f592ca13bf65006ef5c92261468c144"
|
|
50
50
|
}
|