@searchspring/snap-preact 0.67.5 → 0.69.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.
|
@@ -58,7 +58,13 @@ function configureIntegratedSpellCorrection(config) {
|
|
|
58
58
|
function configureTracking(config) {
|
|
59
59
|
var _a;
|
|
60
60
|
// Searchspring's Shopify Web Pixel App compatibility
|
|
61
|
-
var webPixel
|
|
61
|
+
var webPixel;
|
|
62
|
+
try {
|
|
63
|
+
webPixel = (_a = window.sessionStorage) === null || _a === void 0 ? void 0 : _a.getItem(exports.SHOPIFY_WEBPIXEL_STORAGE_KEY);
|
|
64
|
+
}
|
|
65
|
+
catch (_b) {
|
|
66
|
+
// storage not enabled
|
|
67
|
+
}
|
|
62
68
|
if (webPixel) {
|
|
63
69
|
try {
|
|
64
70
|
var webPixelData = JSON.parse(webPixel);
|
|
@@ -70,6 +76,8 @@ function configureTracking(config) {
|
|
|
70
76
|
config.tracker.config.doNotTrack = (config.tracker.config.doNotTrack || []).concat(doNotTrack);
|
|
71
77
|
}
|
|
72
78
|
}
|
|
73
|
-
catch (
|
|
79
|
+
catch (_c) {
|
|
80
|
+
// storage not enabled
|
|
81
|
+
}
|
|
74
82
|
}
|
|
75
83
|
}
|
|
@@ -48,7 +48,13 @@ function configureIntegratedSpellCorrection(config) {
|
|
|
48
48
|
}
|
|
49
49
|
function configureTracking(config) {
|
|
50
50
|
// Searchspring's Shopify Web Pixel App compatibility
|
|
51
|
-
|
|
51
|
+
let webPixel;
|
|
52
|
+
try {
|
|
53
|
+
webPixel = window.sessionStorage?.getItem(SHOPIFY_WEBPIXEL_STORAGE_KEY);
|
|
54
|
+
}
|
|
55
|
+
catch {
|
|
56
|
+
// storage not enabled
|
|
57
|
+
}
|
|
52
58
|
if (webPixel) {
|
|
53
59
|
try {
|
|
54
60
|
const webPixelData = JSON.parse(webPixel);
|
|
@@ -60,6 +66,8 @@ function configureTracking(config) {
|
|
|
60
66
|
config.tracker.config.doNotTrack = (config.tracker.config.doNotTrack || []).concat(doNotTrack);
|
|
61
67
|
}
|
|
62
68
|
}
|
|
63
|
-
catch
|
|
69
|
+
catch {
|
|
70
|
+
// storage not enabled
|
|
71
|
+
}
|
|
64
72
|
}
|
|
65
73
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@searchspring/snap-preact",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.69.0",
|
|
4
4
|
"description": "Snap Preact",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"test:watch": "jest --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@searchspring/snap-client": "0.
|
|
24
|
-
"@searchspring/snap-controller": "0.
|
|
25
|
-
"@searchspring/snap-event-manager": "0.
|
|
26
|
-
"@searchspring/snap-logger": "0.
|
|
27
|
-
"@searchspring/snap-platforms": "0.
|
|
28
|
-
"@searchspring/snap-preact-components": "0.
|
|
29
|
-
"@searchspring/snap-profiler": "0.
|
|
30
|
-
"@searchspring/snap-store-mobx": "0.
|
|
31
|
-
"@searchspring/snap-toolbox": "0.
|
|
32
|
-
"@searchspring/snap-tracker": "0.
|
|
33
|
-
"@searchspring/snap-url-manager": "0.
|
|
23
|
+
"@searchspring/snap-client": "0.69.0",
|
|
24
|
+
"@searchspring/snap-controller": "0.69.0",
|
|
25
|
+
"@searchspring/snap-event-manager": "0.69.0",
|
|
26
|
+
"@searchspring/snap-logger": "0.69.0",
|
|
27
|
+
"@searchspring/snap-platforms": "0.69.0",
|
|
28
|
+
"@searchspring/snap-preact-components": "0.69.0",
|
|
29
|
+
"@searchspring/snap-profiler": "0.69.0",
|
|
30
|
+
"@searchspring/snap-store-mobx": "0.69.0",
|
|
31
|
+
"@searchspring/snap-toolbox": "0.69.0",
|
|
32
|
+
"@searchspring/snap-tracker": "0.69.0",
|
|
33
|
+
"@searchspring/snap-url-manager": "0.69.0",
|
|
34
34
|
"deepmerge": "4.3.1",
|
|
35
35
|
"intersection-observer": "0.12.0",
|
|
36
36
|
"is-plain-object": "5.0.0"
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"files": [
|
|
44
44
|
"dist/**/*"
|
|
45
45
|
],
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "446629f083776e15b1234fc36f597489795581ce"
|
|
47
47
|
}
|