@searchspring/snap-preact 0.21.0 → 0.21.1
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/cjs/Snap.js +6 -6
- package/dist/esm/Snap.js +5 -5
- package/package.json +11 -11
package/dist/cjs/Snap.js
CHANGED
|
@@ -91,7 +91,7 @@ var DynamicImportNames;
|
|
|
91
91
|
var Snap = /** @class */ (function () {
|
|
92
92
|
function Snap(config) {
|
|
93
93
|
var _this = this;
|
|
94
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
94
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
95
95
|
this.getInstantiator = function (id) {
|
|
96
96
|
return _this._instantiatorPromises[id] || Promise.reject("getInstantiator could not find instantiator with id: ".concat(id));
|
|
97
97
|
};
|
|
@@ -539,15 +539,15 @@ var Snap = /** @class */ (function () {
|
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
|
-
if ((_l = config === null ||
|
|
542
|
+
if ((_m = (_l = this.config) === null || _l === void 0 ? void 0 : _l.instantiators) === null || _m === void 0 ? void 0 : _m.recommendation) {
|
|
543
543
|
try {
|
|
544
544
|
this._instantiatorPromises.recommendations = Promise.resolve().then(function () { return __importStar(require('./Instantiators/RecommendationInstantiator')); }).then(function (_a) {
|
|
545
545
|
var _b, _c, _d, _e, _f, _g;
|
|
546
546
|
var RecommendationInstantiator = _a.RecommendationInstantiator;
|
|
547
|
-
return new RecommendationInstantiator(config.instantiators.recommendation, {
|
|
548
|
-
client: ((_c = (_b = config.instantiators.recommendation) === null || _b === void 0 ? void 0 : _b.services) === null || _c === void 0 ? void 0 : _c.client) || _this.client,
|
|
549
|
-
tracker: ((_e = (_d = config.instantiators.recommendation) === null || _d === void 0 ? void 0 : _d.services) === null || _e === void 0 ? void 0 : _e.tracker) || _this.tracker,
|
|
550
|
-
logger: ((_g = (_f = config.instantiators.recommendation) === null || _f === void 0 ? void 0 : _f.services) === null || _g === void 0 ? void 0 : _g.logger) || _this.logger,
|
|
547
|
+
return new RecommendationInstantiator(_this.config.instantiators.recommendation, {
|
|
548
|
+
client: ((_c = (_b = _this.config.instantiators.recommendation) === null || _b === void 0 ? void 0 : _b.services) === null || _c === void 0 ? void 0 : _c.client) || _this.client,
|
|
549
|
+
tracker: ((_e = (_d = _this.config.instantiators.recommendation) === null || _d === void 0 ? void 0 : _d.services) === null || _e === void 0 ? void 0 : _e.tracker) || _this.tracker,
|
|
550
|
+
logger: ((_g = (_f = _this.config.instantiators.recommendation) === null || _f === void 0 ? void 0 : _f.services) === null || _g === void 0 ? void 0 : _g.logger) || _this.logger,
|
|
551
551
|
}, _this.context);
|
|
552
552
|
});
|
|
553
553
|
}
|
package/dist/esm/Snap.js
CHANGED
|
@@ -390,13 +390,13 @@ The error above happened in the following targeter in the Snap Config`, target);
|
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
});
|
|
393
|
-
if (config?.instantiators?.recommendation) {
|
|
393
|
+
if (this.config?.instantiators?.recommendation) {
|
|
394
394
|
try {
|
|
395
395
|
this._instantiatorPromises.recommendations = import('./Instantiators/RecommendationInstantiator').then(({ RecommendationInstantiator }) => {
|
|
396
|
-
return new RecommendationInstantiator(config.instantiators.recommendation, {
|
|
397
|
-
client: config.instantiators.recommendation?.services?.client || this.client,
|
|
398
|
-
tracker: config.instantiators.recommendation?.services?.tracker || this.tracker,
|
|
399
|
-
logger: config.instantiators.recommendation?.services?.logger || this.logger,
|
|
396
|
+
return new RecommendationInstantiator(this.config.instantiators.recommendation, {
|
|
397
|
+
client: this.config.instantiators.recommendation?.services?.client || this.client,
|
|
398
|
+
tracker: this.config.instantiators.recommendation?.services?.tracker || this.tracker,
|
|
399
|
+
logger: this.config.instantiators.recommendation?.services?.logger || this.logger,
|
|
400
400
|
}, this.context);
|
|
401
401
|
});
|
|
402
402
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@searchspring/snap-preact",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"description": "Snap Preact",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"test:watch": "jest --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@searchspring/snap-client": "^0.21.
|
|
24
|
-
"@searchspring/snap-controller": "^0.21.
|
|
25
|
-
"@searchspring/snap-event-manager": "^0.21.
|
|
26
|
-
"@searchspring/snap-logger": "^0.21.
|
|
27
|
-
"@searchspring/snap-profiler": "^0.21.
|
|
28
|
-
"@searchspring/snap-store-mobx": "^0.21.
|
|
29
|
-
"@searchspring/snap-toolbox": "^0.21.
|
|
30
|
-
"@searchspring/snap-tracker": "^0.21.
|
|
31
|
-
"@searchspring/snap-url-manager": "^0.21.
|
|
23
|
+
"@searchspring/snap-client": "^0.21.1",
|
|
24
|
+
"@searchspring/snap-controller": "^0.21.1",
|
|
25
|
+
"@searchspring/snap-event-manager": "^0.21.1",
|
|
26
|
+
"@searchspring/snap-logger": "^0.21.1",
|
|
27
|
+
"@searchspring/snap-profiler": "^0.21.1",
|
|
28
|
+
"@searchspring/snap-store-mobx": "^0.21.1",
|
|
29
|
+
"@searchspring/snap-toolbox": "^0.21.1",
|
|
30
|
+
"@searchspring/snap-tracker": "^0.21.1",
|
|
31
|
+
"@searchspring/snap-url-manager": "^0.21.1",
|
|
32
32
|
"deepmerge": "^4.2.2",
|
|
33
33
|
"intersection-observer": "^0.12.0"
|
|
34
34
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"files": [
|
|
40
40
|
"dist/**/*"
|
|
41
41
|
],
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "e54d2d21a811b65b0e766d2dc0fd5b0f6da6053e"
|
|
43
43
|
}
|