@mx-cartographer/experiences 6.1.0-alpha.al16 → 6.1.0-alpha.al18
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.es.js +9 -6
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -21671,14 +21671,15 @@ const P3 = ({
|
|
21671
21671
|
s(a);
|
21672
21672
|
}, [a]), h.useEffect(() => {
|
21673
21673
|
const g = l(r.config.language);
|
21674
|
-
console.log("surveyid is", g),
|
21675
|
-
if (x.length) {
|
21674
|
+
g && (console.log("surveyid is", g), Bt.getActiveMatchingSurveys((x) => {
|
21675
|
+
if (console.log("surveys are ", x), x.length) {
|
21676
21676
|
const y = x.find((j) => j.id === g);
|
21677
|
-
y && (E(y), Bt.capture("survey shown", { $survey_id: y }));
|
21677
|
+
y && (console.log("setting survey to ", y), E(y), Bt.capture("survey shown", { $survey_id: y }));
|
21678
21678
|
}
|
21679
|
-
});
|
21679
|
+
}));
|
21680
21680
|
}, [Bt, r]), h.useEffect(() => {
|
21681
|
-
if (console.log("survey changed"), c !== null) {
|
21681
|
+
if (console.log("survey changed", c), c !== null) {
|
21682
|
+
console.log("survey not null");
|
21682
21683
|
const g = {
|
21683
21684
|
index: 9,
|
21684
21685
|
location: 1,
|
@@ -21686,7 +21687,9 @@ const P3 = ({
|
|
21686
21687
|
};
|
21687
21688
|
f((x) => [...x, g]);
|
21688
21689
|
}
|
21689
|
-
}, [c])
|
21690
|
+
}, [c]), h.useEffect(() => {
|
21691
|
+
console.log("widgets changed", d);
|
21692
|
+
}, [d]);
|
21690
21693
|
const H = h.useMemo(
|
21691
21694
|
() => d.sort((g, x) => g.index - x.index),
|
21692
21695
|
[d]
|