fast-simon-sdk 1.6.28 → 1.6.80
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/README.md +68 -58
- package/lib/config.d.ts +2 -0
- package/lib/config.js +3 -1
- package/lib/config.js.map +1 -1
- package/lib/index.js +19 -9
- package/lib/index.js.map +1 -1
- package/lib/models/autocomplete.d.ts +3 -0
- package/lib/models/common.d.ts +22 -0
- package/lib/models/common.js +3 -0
- package/lib/models/common.js.map +1 -1
- package/lib/models/events.d.ts +10 -1
- package/lib/models/fullTextSearch.d.ts +2 -1
- package/lib/models/fullTextSearch.js.map +1 -1
- package/lib/models/related.d.ts +3 -0
- package/lib/models/smartCollections.d.ts +3 -1
- package/lib/sections/enums/index.d.ts +2 -0
- package/lib/sections/enums/index.js +2 -0
- package/lib/sections/enums/index.js.map +1 -1
- package/lib/sections/eventReporter/index.js +88 -23
- package/lib/sections/eventReporter/index.js.map +1 -1
- package/lib/sections/eventReporter/utils.d.ts +1 -1
- package/lib/sections/eventReporter/utils.js +6 -2
- package/lib/sections/eventReporter/utils.js.map +1 -1
- package/lib/sections/fullTextSearch/index.js +41 -8
- package/lib/sections/fullTextSearch/index.js.map +1 -1
- package/lib/sections/fullTextSearch/utils.d.ts +0 -1
- package/lib/sections/fullTextSearch/utils.js +11 -5
- package/lib/sections/fullTextSearch/utils.js.map +1 -1
- package/lib/sections/index.js +34 -2
- package/lib/sections/index.js.map +1 -1
- package/lib/sections/initialization/index.d.ts +2 -1
- package/lib/sections/initialization/index.js +63 -17
- package/lib/sections/initialization/index.js.map +1 -1
- package/lib/sections/initialization/utils.js +27 -10
- package/lib/sections/initialization/utils.js.map +1 -1
- package/lib/sections/instantSearch/index.d.ts +1 -1
- package/lib/sections/instantSearch/index.js +3 -3
- package/lib/sections/instantSearch/index.js.map +1 -1
- package/lib/sections/instantSearch/utils.d.ts +2 -1
- package/lib/sections/instantSearch/utils.js +4 -4
- package/lib/sections/instantSearch/utils.js.map +1 -1
- package/lib/sections/landingPage/index.js +9 -0
- package/lib/sections/landingPage/index.js.map +1 -1
- package/lib/sections/recommendations/index.d.ts +14 -0
- package/lib/sections/recommendations/index.js +71 -3
- package/lib/sections/recommendations/index.js.map +1 -1
- package/lib/sections/recommendations/utils.js +12 -7
- package/lib/sections/recommendations/utils.js.map +1 -1
- package/lib/sections/smartCollections/index.js +40 -7
- package/lib/sections/smartCollections/index.js.map +1 -1
- package/lib/sections/smartCollections/utils.d.ts +4 -4
- package/lib/sections/smartCollections/utils.js +47 -93
- package/lib/sections/smartCollections/utils.js.map +1 -1
- package/lib/services/ViewportImpressionTracker.d.ts +37 -0
- package/lib/services/ViewportImpressionTracker.js +218 -0
- package/lib/services/ViewportImpressionTracker.js.map +1 -0
- package/lib/services/common.d.ts +14 -6
- package/lib/services/common.js +35 -10
- package/lib/services/common.js.map +1 -1
- package/lib/services/fullTextSearch.d.ts +1 -1
- package/lib/services/fullTextSearch.js +39 -5
- package/lib/services/fullTextSearch.js.map +1 -1
- package/lib/services/related.d.ts +23 -3
- package/lib/services/related.js +36 -2
- package/lib/services/related.js.map +1 -1
- package/lib/services/reporting.d.ts +11 -13
- package/lib/services/reporting.js +24 -33
- package/lib/services/reporting.js.map +1 -1
- package/lib/services/smartCollections.d.ts +1 -1
- package/lib/services/smartCollections.js +44 -12
- package/lib/services/smartCollections.js.map +1 -1
- package/lib/services/viewportImpressions.d.ts +12 -0
- package/lib/services/viewportImpressions.js +211 -0
- package/lib/services/viewportImpressions.js.map +1 -0
- package/lib/utils/API.js +19 -4
- package/lib/utils/API.js.map +1 -1
- package/lib/utils/attentive.d.ts +1 -0
- package/lib/utils/attentive.js +36 -0
- package/lib/utils/attentive.js.map +1 -0
- package/lib/utils/debug.d.ts +1 -0
- package/lib/utils/debug.js +13 -1
- package/lib/utils/debug.js.map +1 -1
- package/lib/utils/logger.d.ts +2 -0
- package/lib/utils/logger.js +26 -0
- package/lib/utils/logger.js.map +1 -0
- package/lib/utils/personalization.d.ts +5 -0
- package/lib/utils/personalization.js +18 -3
- package/lib/utils/personalization.js.map +1 -1
- package/lib/utils/personalizationSegment.d.ts +2 -0
- package/lib/utils/personalizationSegment.js +17 -0
- package/lib/utils/personalizationSegment.js.map +1 -0
- package/lib/utils/siteStateValidator.d.ts +25 -0
- package/lib/utils/siteStateValidator.js +45 -0
- package/lib/utils/siteStateValidator.js.map +1 -0
- package/lib/utils/validation.d.ts +1 -0
- package/lib/utils/validation.js +13 -1
- package/lib/utils/validation.js.map +1 -1
- package/package.json +44 -41
package/README.md
CHANGED
|
@@ -1,59 +1,69 @@
|
|
|
1
|
-
---
|
|
2
|
-
sidebar_position: 1
|
|
3
|
-
title: Introduction
|
|
4
|
-
---
|
|
5
|
-
## JavaScript SDK Library
|
|
6
|
-
For developer seeking to integrate the best E-commerce collections, filters, search, personalization and merchandising into their Frontend
|
|
7
|
-
|
|
8
|
-
## Overview
|
|
9
|
-
The following document is for web developers seeking to utilize Fast Simon’s cloud service for Search, Collections and product recommendations.
|
|
10
|
-
By using the described JavaScript SDK web developers can easily retrieve data to populate their search, collections and product recommendations.
|
|
11
|
-
|
|
12
|
-
## Pre Installation Steps
|
|
13
|
-
1. Go to Filters & Instant Search App Dashboard.
|
|
14
|
-
2. Choose the Sync tab on the left.
|
|
15
|
-
3. Main Settings > turn on "REST API".
|
|
16
|
-
|
|
17
|
-
## Installation
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
npm
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
//
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 1
|
|
3
|
+
title: Introduction
|
|
4
|
+
---
|
|
5
|
+
## JavaScript SDK Library
|
|
6
|
+
For developer seeking to integrate the best E-commerce collections, filters, search, personalization and merchandising into their Frontend
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
The following document is for web developers seeking to utilize Fast Simon’s cloud service for Search, Collections and product recommendations.
|
|
10
|
+
By using the described JavaScript SDK web developers can easily retrieve data to populate their search, collections and product recommendations.
|
|
11
|
+
|
|
12
|
+
## Pre Installation Steps
|
|
13
|
+
1. Go to Filters & Instant Search App Dashboard.
|
|
14
|
+
2. Choose the Sync tab on the left.
|
|
15
|
+
3. Main Settings > turn on "REST API".
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
### Authenticate with Fast Simon private NPM packages
|
|
20
|
+
|
|
21
|
+
Before installation, run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm config set "//registry.npmjs.org/:_authToken" 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
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### CDN Global Script
|
|
28
|
+
```html title="Latest Version"
|
|
29
|
+
<script src="https://assets.fastsimon.com/sdk/latest/fast_simon_sdk.js" async/>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### NPM Package **(Recommended)**
|
|
33
|
+
```shell
|
|
34
|
+
npm install fast-simon-sdk
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Initialization - CDN
|
|
38
|
+
Insert the following script at the **head** of your site as an **async** script after the original script injection
|
|
39
|
+
```javascript
|
|
40
|
+
// using a cdn script will bind FastSimonSDK to window
|
|
41
|
+
document.addEventListener("DOMContentLoaded", function () {
|
|
42
|
+
window.FastSimonSDK.initialization({
|
|
43
|
+
storeID: 123, // store-id,
|
|
44
|
+
uuid: "this-is-my-uuid", // uuid
|
|
45
|
+
type: "SPA", // multi page application ("MPA") or single page application("SPA") (for reporting)
|
|
46
|
+
onReady: () => {
|
|
47
|
+
// do stuff
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Initialization - NPM Package
|
|
54
|
+
```typescript
|
|
55
|
+
import {FastSimonSDK} from "fast-simon-sdk"
|
|
56
|
+
|
|
57
|
+
// using a cdn script will bind FastSimonSDK to window
|
|
58
|
+
FastSimonSDK.initialization({
|
|
59
|
+
storeID: 123, // store-id,
|
|
60
|
+
uuid: "this-is-my-uuid", // uuid
|
|
61
|
+
type: "SPA", // multi page application ("MPA") or single page application("SPA") (for reporting)
|
|
62
|
+
onReady: () => {
|
|
63
|
+
// do stuff
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Full Docs can be found here:
|
|
59
69
|
[https://docs.fastsimon.com/sdk]('https://docs.fastsimon.com/sdk')
|
package/lib/config.d.ts
CHANGED
|
@@ -7,8 +7,10 @@ export declare const RECENT_RESPONSE_SERP_PRODUCTS_KEY = "isp-recent-response-pr
|
|
|
7
7
|
export declare const RECENT_RESPONSE_COLLECTION_PRODUCTS_KEY = "isp-recent-response-product-collection";
|
|
8
8
|
export declare const PERSONALIZED_PRODUCT_IDS = "PERSONALIZED_PRODUCT_IDS";
|
|
9
9
|
export declare const POST_LOAD_EVENT_KEY = "post-load-event";
|
|
10
|
+
export declare const POST_LOAD_EVENT_SELF_KEY = "post-load-event-self";
|
|
10
11
|
export declare const SDK_DEBUG_LS_LEY = "isp-sdk-version";
|
|
11
12
|
export declare const SDK_NO_CACHING_LS_KEY = "isp-sdk-caching";
|
|
13
|
+
export declare const SDK_VERBOSE_LS_KEY = "fs-sdk-verbose";
|
|
12
14
|
export declare const CART_TOKEN_LS_KEY = "isp-cart-token";
|
|
13
15
|
export declare const CART_TOKEN_COOKIE_NAME = "cart";
|
|
14
16
|
export declare const SESSION_TOKEN_LIFE = 1800;
|
package/lib/config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RECENT_PRODUCTS_LENGTH_LIMIT = exports.RECENT_PRODUCTS_EXPIRY_DAYS = exports.ISP_LOCAL_STORAGE_LOAD_ERROR_MSG = exports.INITIALIZATION_ERROR_MSG = exports.PROMOTED_PRODUCTS_BY_PERSONALIZATION = exports.API_ERROR_MSG = exports.POST_LOAD_WAIT_TIME = exports.MIN_RECENT_SERP_PRODUCTS = exports.MAX_RECENT_SERP_PRODUCT_LIFE = exports.MAX_RECENT_SERP_PRODUCTS_PRODUCTS = exports.MAX_RECENT_COLLECTION_PRODUCTS = exports.MAX_RECENT_PRODUCTS = exports.SESSION_TOKEN_LIFE = exports.CART_TOKEN_COOKIE_NAME = exports.CART_TOKEN_LS_KEY = exports.SDK_NO_CACHING_LS_KEY = exports.SDK_DEBUG_LS_LEY = exports.POST_LOAD_EVENT_KEY = exports.PERSONALIZED_PRODUCT_IDS = exports.RECENT_RESPONSE_COLLECTION_PRODUCTS_KEY = exports.RECENT_RESPONSE_SERP_PRODUCTS_KEY = exports.RECENT_SERP_PRODUCTS_KEY = exports.RECENT_COLLECTION_PRODUCTS_KEY = exports.RECENT_PRODUCT_LS_KEY = exports.USER_SESSION_TOKEN_LS_KEY = exports.SESSION_TOKEN_LS_KEY = void 0;
|
|
3
|
+
exports.RECENT_PRODUCTS_LENGTH_LIMIT = exports.RECENT_PRODUCTS_EXPIRY_DAYS = exports.ISP_LOCAL_STORAGE_LOAD_ERROR_MSG = exports.INITIALIZATION_ERROR_MSG = exports.PROMOTED_PRODUCTS_BY_PERSONALIZATION = exports.API_ERROR_MSG = exports.POST_LOAD_WAIT_TIME = exports.MIN_RECENT_SERP_PRODUCTS = exports.MAX_RECENT_SERP_PRODUCT_LIFE = exports.MAX_RECENT_SERP_PRODUCTS_PRODUCTS = exports.MAX_RECENT_COLLECTION_PRODUCTS = exports.MAX_RECENT_PRODUCTS = exports.SESSION_TOKEN_LIFE = exports.CART_TOKEN_COOKIE_NAME = exports.CART_TOKEN_LS_KEY = exports.SDK_VERBOSE_LS_KEY = exports.SDK_NO_CACHING_LS_KEY = exports.SDK_DEBUG_LS_LEY = exports.POST_LOAD_EVENT_SELF_KEY = exports.POST_LOAD_EVENT_KEY = exports.PERSONALIZED_PRODUCT_IDS = exports.RECENT_RESPONSE_COLLECTION_PRODUCTS_KEY = exports.RECENT_RESPONSE_SERP_PRODUCTS_KEY = exports.RECENT_SERP_PRODUCTS_KEY = exports.RECENT_COLLECTION_PRODUCTS_KEY = exports.RECENT_PRODUCT_LS_KEY = exports.USER_SESSION_TOKEN_LS_KEY = exports.SESSION_TOKEN_LS_KEY = void 0;
|
|
4
4
|
//Local Storage Keys
|
|
5
5
|
exports.SESSION_TOKEN_LS_KEY = "isp-session-token";
|
|
6
6
|
exports.USER_SESSION_TOKEN_LS_KEY = "isp-user-session-token";
|
|
@@ -11,8 +11,10 @@ exports.RECENT_RESPONSE_SERP_PRODUCTS_KEY = "isp-recent-response-product-serp";
|
|
|
11
11
|
exports.RECENT_RESPONSE_COLLECTION_PRODUCTS_KEY = "isp-recent-response-product-collection";
|
|
12
12
|
exports.PERSONALIZED_PRODUCT_IDS = "PERSONALIZED_PRODUCT_IDS";
|
|
13
13
|
exports.POST_LOAD_EVENT_KEY = "post-load-event";
|
|
14
|
+
exports.POST_LOAD_EVENT_SELF_KEY = "post-load-event-self";
|
|
14
15
|
exports.SDK_DEBUG_LS_LEY = "isp-sdk-version";
|
|
15
16
|
exports.SDK_NO_CACHING_LS_KEY = "isp-sdk-caching";
|
|
17
|
+
exports.SDK_VERBOSE_LS_KEY = "fs-sdk-verbose";
|
|
16
18
|
exports.CART_TOKEN_LS_KEY = "isp-cart-token";
|
|
17
19
|
exports.CART_TOKEN_COOKIE_NAME = "cart";
|
|
18
20
|
//constants
|
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;;AAAA,oBAAoB;AACP,QAAA,oBAAoB,GAAG,mBAAmB,CAAC;AAC3C,QAAA,yBAAyB,GAAG,wBAAwB,CAAC;AAErD,QAAA,qBAAqB,GAAG,+BAA+B,CAAC;AACxD,QAAA,8BAA8B,GAAG,+BAA+B,CAAC;AAEjE,QAAA,wBAAwB,GAAG,yBAAyB,CAAC;AACrD,QAAA,iCAAiC,GAAG,kCAAkC,CAAC;AACvE,QAAA,uCAAuC,GAAG,wCAAwC,CAAC;AACnF,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AACtD,QAAA,mBAAmB,GAAG,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;;AAAA,oBAAoB;AACP,QAAA,oBAAoB,GAAG,mBAAmB,CAAC;AAC3C,QAAA,yBAAyB,GAAG,wBAAwB,CAAC;AAErD,QAAA,qBAAqB,GAAG,+BAA+B,CAAC;AACxD,QAAA,8BAA8B,GAAG,+BAA+B,CAAC;AAEjE,QAAA,wBAAwB,GAAG,yBAAyB,CAAC;AACrD,QAAA,iCAAiC,GAAG,kCAAkC,CAAC;AACvE,QAAA,uCAAuC,GAAG,wCAAwC,CAAC;AACnF,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AACtD,QAAA,mBAAmB,GAAG,iBAAiB,CAAC;AACxC,QAAA,wBAAwB,GAAG,sBAAsB,CAAC;AAElD,QAAA,gBAAgB,GAAG,iBAAiB,CAAC;AACrC,QAAA,qBAAqB,GAAG,iBAAiB,CAAC;AAC1C,QAAA,kBAAkB,GAAG,gBAAgB,CAAC;AAEtC,QAAA,iBAAiB,GAAG,gBAAgB,CAAC;AACrC,QAAA,sBAAsB,GAAG,MAAM,CAAA;AAE5C,WAAW;AACE,QAAA,kBAAkB,GAAG,IAAI,CAAC;AAE1B,QAAA,mBAAmB,GAAG,EAAE,CAAC;AACzB,QAAA,8BAA8B,GAAG,CAAC,CAAC;AAEnC,QAAA,iCAAiC,GAAG,EAAE,CAAC;AACvC,QAAA,4BAA4B,GAAG,GAAG,CAAC;AACnC,QAAA,wBAAwB,GAAG,CAAC,CAAC;AAE7B,QAAA,mBAAmB,GAAG,IAAI,CAAC;AAE3B,QAAA,aAAa,GAAG,8GAAuG,CAAC;AAExH,QAAA,oCAAoC,GAAG,0CAA0C,CAAC;AAElF,QAAA,wBAAwB,GAAG,gDAA2C,CAAC;AAEvE,QAAA,gCAAgC,GAAG,6DAAwD,CAAC;AAE5F,QAAA,2BAA2B,GAAG,CAAC,CAAC;AAChC,QAAA,4BAA4B,GAAG,EAAE,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -20,6 +20,8 @@ Object.defineProperty(exports, "FastSimonSDK", { enumerable: true, get: function
|
|
|
20
20
|
var enums_1 = require("./sections/enums");
|
|
21
21
|
var debug_1 = require("./utils/debug");
|
|
22
22
|
var utilities_1 = require("@fast-simon/utilities");
|
|
23
|
+
var config_1 = require("./config");
|
|
24
|
+
var logger_1 = require("./utils/logger");
|
|
23
25
|
// Insert a debug script with the specified handle
|
|
24
26
|
function insertDebugScript(handle) {
|
|
25
27
|
var script = document.createElement('script');
|
|
@@ -40,7 +42,7 @@ window._debugSDKVersion = function (version) {
|
|
|
40
42
|
};
|
|
41
43
|
// Immediately-invoked function to initialize the SDK or load the debug version
|
|
42
44
|
(function () {
|
|
43
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
45
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
44
46
|
var testVersion = localStorage.getItem(utilities_1.FSKeys.ISP_SDK_TEST_VERSION_HANDLE);
|
|
45
47
|
var testVersionLoaded = localStorage.getItem(utilities_1.FSKeys.ISP_SDK_TEST_VERSION_LOADED);
|
|
46
48
|
if (testVersion && !testVersionLoaded) {
|
|
@@ -55,18 +57,26 @@ window._debugSDKVersion = function (version) {
|
|
|
55
57
|
window.FastSimonRecommendationsSource = enums_1.FastRecommendationsSource;
|
|
56
58
|
window.debugSDK = debug_1.debugSDK;
|
|
57
59
|
window.clearDebugSDK = debug_1.clearDebugSDK;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
window._verboseSDK = debug_1.verboseSDK;
|
|
61
|
+
if ((_a = window.__fast_simon_sdk_config) === null || _a === void 0 ? void 0 : _a.verbose) {
|
|
62
|
+
localStorage.setItem(config_1.SDK_VERBOSE_LS_KEY, 'true');
|
|
63
|
+
}
|
|
64
|
+
(0, logger_1.verboseLog)('Verbose logging enabled');
|
|
65
|
+
if ((((_b = window.__fast_simon_sdk_config) === null || _b === void 0 ? void 0 : _b.store_uuid) || ((_c = window.__fast_simon_sdk_config) === null || _c === void 0 ? void 0 : _c.uuid)) && (((_d = window.__fast_simon_sdk_config) === null || _d === void 0 ? void 0 : _d.store_id) || ((_e = window.__fast_simon_sdk_config) === null || _e === void 0 ? void 0 : _e.storeID)) &&
|
|
66
|
+
((_f = window.__fast_simon_sdk_config) === null || _f === void 0 ? void 0 : _f.onReady)) {
|
|
60
67
|
window.FastSimonSDK.initialization({
|
|
61
|
-
storeID: (
|
|
62
|
-
uuid: (
|
|
63
|
-
type: (
|
|
64
|
-
withAttributes: (
|
|
65
|
-
|
|
68
|
+
storeID: (_h = (_g = window.__fast_simon_sdk_config) === null || _g === void 0 ? void 0 : _g.store_id) !== null && _h !== void 0 ? _h : (_j = window.__fast_simon_sdk_config) === null || _j === void 0 ? void 0 : _j.storeID,
|
|
69
|
+
uuid: (_l = (_k = window.__fast_simon_sdk_config) === null || _k === void 0 ? void 0 : _k.store_uuid) !== null && _l !== void 0 ? _l : (_m = window.__fast_simon_sdk_config) === null || _m === void 0 ? void 0 : _m.uuid,
|
|
70
|
+
type: (_o = window.__fast_simon_sdk_config) === null || _o === void 0 ? void 0 : _o.type,
|
|
71
|
+
withAttributes: (_p = window.__fast_simon_sdk_config) === null || _p === void 0 ? void 0 : _p.withAttributes,
|
|
72
|
+
withProductVariants: (_q = window.__fast_simon_sdk_config) === null || _q === void 0 ? void 0 : _q.withProductVariants,
|
|
73
|
+
channel: (_r = window.__fast_simon_sdk_config) === null || _r === void 0 ? void 0 : _r.channel,
|
|
74
|
+
verbose: (_s = window.__fast_simon_sdk_config) === null || _s === void 0 ? void 0 : _s.verbose,
|
|
66
75
|
onReady: function () {
|
|
67
76
|
var _a;
|
|
68
77
|
(_a = window.__fast_simon_sdk_config) === null || _a === void 0 ? void 0 : _a.onReady();
|
|
69
|
-
}
|
|
78
|
+
},
|
|
79
|
+
onError: (_t = window.__fast_simon_sdk_config) === null || _t === void 0 ? void 0 : _t.onError
|
|
70
80
|
});
|
|
71
81
|
}
|
|
72
82
|
})();
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAAmC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAAmC;AAoEpB,6FApEP,kBAAO,OAoEY;AAnE3B,0CAAmG;AACnG,uCAAkE;AAClE,mDAA6C;AAC7C,mCAA4C;AAC5C,yCAA0C;AAE1C,kDAAkD;AAClD,SAAS,iBAAiB,CAAC,MAAc;IACrC,IAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChD,MAAM,CAAC,GAAG,GAAG,2CAAoC,MAAM,uBAAoB,CAAC;IAC5E,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,MA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AAc,CAAC,uBAAuB,0CAAE,OAAO,EAAE,CAAA;YACtD,CAAC;YACD,OAAO,EAAE,MAAC,MAAc,CAAC,uBAAuB,0CAAE,OAAO;SAC5D,CAAC,CAAC;IACP,CAAC;AACL,CAAC,CAAC,EAAE,CAAC;AAML,mDAAiC"}
|
|
@@ -4,6 +4,7 @@ import { ArticleResponse } from "../services/content";
|
|
|
4
4
|
export interface DashboardResponse extends DashboardKeys {
|
|
5
5
|
cdn_cache_key: number;
|
|
6
6
|
platform: string;
|
|
7
|
+
state?: number;
|
|
7
8
|
}
|
|
8
9
|
export interface DashboardKeys {
|
|
9
10
|
site_url: string;
|
|
@@ -32,6 +33,8 @@ export interface DashboardKeys {
|
|
|
32
33
|
has_visual_discovery_tapcart?: boolean;
|
|
33
34
|
collectionsPersonalization?: CollectionsPersonalization;
|
|
34
35
|
searchPersonalization?: boolean;
|
|
36
|
+
is_attentive_recommendations?: boolean;
|
|
37
|
+
isp_attentive?: boolean;
|
|
35
38
|
}
|
|
36
39
|
export interface PopResponse {
|
|
37
40
|
products: Product[];
|
package/lib/models/common.d.ts
CHANGED
|
@@ -37,6 +37,12 @@ export interface SDKData {
|
|
|
37
37
|
collectionsPersonalization?: CollectionsPersonalization;
|
|
38
38
|
searchPersonalization?: boolean;
|
|
39
39
|
channel?: Channel;
|
|
40
|
+
collectionProductIds?: {
|
|
41
|
+
[key: string]: boolean;
|
|
42
|
+
};
|
|
43
|
+
spv?: string | undefined;
|
|
44
|
+
spv_post_load?: string | undefined;
|
|
45
|
+
siteState?: number;
|
|
40
46
|
}
|
|
41
47
|
export interface AutocompleteResults {
|
|
42
48
|
totalResults: number;
|
|
@@ -62,6 +68,7 @@ export interface FullTextResults {
|
|
|
62
68
|
turbolink?: FastTurbolinks;
|
|
63
69
|
relatedCategories?: RelatedCategory[];
|
|
64
70
|
relatedResults?: boolean;
|
|
71
|
+
error?: boolean;
|
|
65
72
|
}
|
|
66
73
|
export interface LandingPageResults {
|
|
67
74
|
slug: string;
|
|
@@ -78,18 +85,24 @@ export interface LandingPageResults {
|
|
|
78
85
|
bannerHTML?: string;
|
|
79
86
|
title?: string;
|
|
80
87
|
}
|
|
88
|
+
export interface CustomData {
|
|
89
|
+
productsPerPage?: number;
|
|
90
|
+
}
|
|
81
91
|
export interface SDKTemp {
|
|
82
92
|
autocomplete: AutocompleteResults;
|
|
83
93
|
fullTextSearch: FullTextResults;
|
|
84
94
|
smartCollections: smartCollectionsResults;
|
|
85
95
|
landingPage: LandingPageResults;
|
|
96
|
+
customData: CustomData;
|
|
86
97
|
}
|
|
87
98
|
export interface initProps {
|
|
88
99
|
storeID: number;
|
|
89
100
|
uuid: string;
|
|
90
101
|
type: AppType;
|
|
91
102
|
onReady?: VoidFunction;
|
|
103
|
+
onError?: (error: any) => void;
|
|
92
104
|
cartToken?: string;
|
|
105
|
+
verbose?: boolean;
|
|
93
106
|
}
|
|
94
107
|
export interface instantSearchProps {
|
|
95
108
|
query: string;
|
|
@@ -97,6 +110,7 @@ export interface instantSearchProps {
|
|
|
97
110
|
withAttributes?: boolean;
|
|
98
111
|
withCategories?: boolean;
|
|
99
112
|
withProductTypes?: boolean;
|
|
113
|
+
withProductVariants?: boolean;
|
|
100
114
|
articlesCallback?: AutocompleteContentCallback;
|
|
101
115
|
}
|
|
102
116
|
export interface FullTextSearchProps {
|
|
@@ -194,6 +208,7 @@ export interface SDKUtils {
|
|
|
194
208
|
status: "loading" | "done";
|
|
195
209
|
data: Record<string, any>;
|
|
196
210
|
} | Record<string, any>;
|
|
211
|
+
viewportImpressions?: any;
|
|
197
212
|
}
|
|
198
213
|
export interface PopularProductsProps {
|
|
199
214
|
withAttributes?: boolean;
|
|
@@ -222,6 +237,7 @@ export interface SDK {
|
|
|
222
237
|
ProductsByImage: ({}: ProductsByImageInternalProps) => void;
|
|
223
238
|
visualSearch: ({}: ImageSearchInternalProps) => void;
|
|
224
239
|
similarStyles: ({}: SimilarStylesInternalProps) => void;
|
|
240
|
+
trackViewportImpression: (element: HTMLElement, productId: string, position: number) => void;
|
|
225
241
|
}
|
|
226
242
|
export declare const defaultSDKTemp: SDKTemp;
|
|
227
243
|
export declare const defaultDashboardData: DashboardKeys;
|
|
@@ -299,5 +315,11 @@ export interface GalleryImageClickedPropsInternalProps {
|
|
|
299
315
|
imageId: string;
|
|
300
316
|
reference: AppReference;
|
|
301
317
|
}
|
|
318
|
+
export interface SearchPersonalization {
|
|
319
|
+
active: boolean;
|
|
320
|
+
avoidProducts: string[] | null;
|
|
321
|
+
recencyLimit: number;
|
|
322
|
+
maxRecencyLimit: number;
|
|
323
|
+
}
|
|
302
324
|
export type Channel = "tapcart";
|
|
303
325
|
export {};
|
package/lib/models/common.js
CHANGED
package/lib/models/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/models/common.ts"],"names":[],"mappings":";;;AAaA,oCAAsD;
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/models/common.ts"],"names":[],"mappings":";;;AAaA,oCAAsD;AAoQzC,QAAA,cAAc,GAAY;IACnC,YAAY,EAAE;QACV,YAAY,EAAE,CAAC;QACf,UAAU,EAAE,EAAE;QACd,eAAe,EAAE,EAAE;QACnB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,KAAK,EAAE,EAAE;KACZ;IACD,cAAc,EAAE;QACZ,KAAK,EAAE,EAAE;QACT,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,EAAE;QACV,YAAY,EAAE,CAAC;KAClB;IACD,gBAAgB,EAAE;QACd,SAAS,EAAE,EAAE;QACb,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,EAAE;QACV,YAAY,EAAE,CAAC;QACf,IAAI,EAAE,EAAE;KACX;IACD,WAAW,EAAE;QACT,IAAI,EAAE,EAAE;QACR,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,EAAE;QACV,YAAY,EAAE,CAAC;KAClB;IACD,UAAU,EAAE;QACR,eAAe,EAAE,CAAC;KACrB;CACJ,CAAC;AAEW,QAAA,oBAAoB,GAAkB;IAC/C,QAAQ,EAAE,EAAE;IACZ,8BAA8B,EAAE,KAAK;IACrC,kCAAkC,EAAE,CAAC;IACrC,gCAAgC,EAAE,CAAC;IACnC,uBAAuB,EAAE,CAAC;IAC1B,aAAa,EAAE,IAAI;IACnB,+BAA+B,EAAE,KAAK;IACtC,iBAAiB,EAAE,EAAE;IACrB,4BAA4B,EAAE,EAAE;IAChC,8BAA8B,EAAE,KAAK;IACrC,UAAU,EAAE,KAAK;IACjB,mCAAmC,EAAE,KAAK;CAC7C,CAAC;AAEW,QAAA,cAAc,GAAY;IACnC,OAAO,EAAE,CAAC;IACV,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,IAAI,CAAC,GAAG,EAAE;IAClB,YAAY,EAAE;QACV,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE;QACtB,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE;KACpB;IACD,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,kCAAyB,CAAC,IAAI,EAAE,EAAE,wCAAwC;IAC1G,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,4BAAoB;IAC/B,eAAe,EAAE,EAAE;IACnB,UAAU,EAAE,EAAE;IACd,UAAU,EAAE,EAAE;IACd,QAAQ,EAAE,EAAE;IACZ,WAAW,EAAE,EAAC,CAAC,EAAE,EAAE,EAAC;IACpB,mBAAmB,EAAE,EAAE;CAC1B,CAAC"}
|
package/lib/models/events.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface Report<T> {
|
|
|
11
11
|
payload: any;
|
|
12
12
|
}) => void;
|
|
13
13
|
}
|
|
14
|
-
export type EventName = "instantsearch-product" | "instantsearch-popular-search" | "instantsearch-category" | "search" | "collection" | "productFromSearch" | "productFromCollection" | "promoTileFromSearch" | "promoTileFromCollection" | "productFromRecommendation" | "productDirect" | "lookALikeViewSerp" | "quickViewSerp" | "lookALikeViewCollection" | "quickViewCollection" | "productFromLookALike" | "productFromQuickView" | "cartVisited" | "cartPerformed" | "collectionPreformedFromTurbolink" | "discoveryOpen" | "discoveryProductVisit" | "vsProductAddedToCart" | "galleryImageClicked";
|
|
14
|
+
export type EventName = "instantsearch-product" | "instantsearch-popular-search" | "instantsearch-category" | "search" | "collection" | "productFromSearch" | "productFromCollection" | "promoTileFromSearch" | "promoTileFromCollection" | "productFromRecommendation" | "productDirect" | "lookALikeViewSerp" | "quickViewSerp" | "lookALikeViewCollection" | "quickViewCollection" | "productFromLookALike" | "productFromQuickView" | "cartVisited" | "cartPerformed" | "collectionPreformedFromTurbolink" | "discoveryOpen" | "discoveryProductVisit" | "vsProductAddedToCart" | "galleryImageClicked" | "recommendationsProductsShown" | "quickViewWidget";
|
|
15
15
|
export interface ProductSeenAutocompleteData {
|
|
16
16
|
query: string;
|
|
17
17
|
productID: string;
|
|
@@ -42,6 +42,7 @@ export interface PromotileSeenSerpData {
|
|
|
42
42
|
export interface ProductSeenRecommendations {
|
|
43
43
|
productID: string;
|
|
44
44
|
sourceProductID: string;
|
|
45
|
+
widget_id?: string;
|
|
45
46
|
position?: number;
|
|
46
47
|
}
|
|
47
48
|
export interface ProductSeenFromLookALike {
|
|
@@ -101,9 +102,17 @@ export interface QuickViewCollectionData {
|
|
|
101
102
|
productID: string;
|
|
102
103
|
position: number;
|
|
103
104
|
}
|
|
105
|
+
export interface QuickViewWidgetData {
|
|
106
|
+
widget_id: string;
|
|
107
|
+
productID: string;
|
|
108
|
+
position: number;
|
|
109
|
+
}
|
|
104
110
|
export interface PostLoadResponse {
|
|
105
111
|
isp_token: string;
|
|
112
|
+
variation_id?: string;
|
|
113
|
+
location?: string;
|
|
106
114
|
isp_segments_serving?: boolean;
|
|
115
|
+
personalization_segment?: string;
|
|
107
116
|
}
|
|
108
117
|
export interface DirectProductViewData {
|
|
109
118
|
productID: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Currency } from "./autocomplete";
|
|
2
2
|
import { CategoryAncestor } from "./smartCollections";
|
|
3
|
-
import { Channel, FullTextResults } from "./common";
|
|
3
|
+
import { Channel, FullTextResults, SDKUtils } from "./common";
|
|
4
4
|
export interface fullTextSearchResponse {
|
|
5
5
|
items: Product[];
|
|
6
6
|
facets: Facet[];
|
|
@@ -53,6 +53,7 @@ export interface fullTextSearchProps {
|
|
|
53
53
|
disableTurbolinks?: boolean;
|
|
54
54
|
searchPersonalization?: boolean;
|
|
55
55
|
channel?: Channel;
|
|
56
|
+
self?: SDKUtils;
|
|
56
57
|
}
|
|
57
58
|
export type SortBy = "price_min_to_max" | "price_max_to_min" | "creation_date" | "creation_date_oldest" | "popularity" | "reviews" | "a_to_z" | "z_to_a" | 'relevency';
|
|
58
59
|
export declare function isSortBy(sort: string | undefined): sort is SortBy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fullTextSearch.js","sourceRoot":"","sources":["../../src/models/fullTextSearch.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"fullTextSearch.js","sourceRoot":"","sources":["../../src/models/fullTextSearch.ts"],"names":[],"mappings":";;;AAuEA,4BAMC;AAND,SAAgB,QAAQ,CAAC,IAAwB;IAC7C,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO,CAAC,CAAC,eAAe,EAAE,QAAQ,EAAE,QAAQ,EAAE,sBAAsB,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACxK,CAAC;AAQD,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,6EAAgB,CAAA;IAChB,yFAAsB,CAAA;IACtB,qFAAoB,CAAA;IACpB,mFAAmB,CAAA;AACvB,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B"}
|
package/lib/models/related.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export interface Widget {
|
|
|
14
14
|
categoriesIDs: string[];
|
|
15
15
|
payload: Product[];
|
|
16
16
|
sources: string;
|
|
17
|
+
title?: string;
|
|
18
|
+
similarByAttributesTiers?: Record<string, string[]>;
|
|
17
19
|
}
|
|
18
20
|
export type WidgetCallback = (response: RecommendationsResponse) => void;
|
|
19
21
|
export interface RecommendationsResponse {
|
|
@@ -31,5 +33,6 @@ interface WidgetResponse {
|
|
|
31
33
|
widget_id: string;
|
|
32
34
|
products: Product[];
|
|
33
35
|
promoted_by_personalization?: number[];
|
|
36
|
+
similar_by_attributes_tiers?: Record<string, string[]>;
|
|
34
37
|
}
|
|
35
38
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FacetRequired, Narrow, Product, RelatedCategoryServer, SortBy } from "./fullTextSearch";
|
|
2
2
|
import { ServerFacet } from "@fast-simon/utilities";
|
|
3
|
-
import { Channel, CollectionsPersonalization } from "./common";
|
|
3
|
+
import { Channel, CollectionsPersonalization, SDKUtils } from "./common";
|
|
4
4
|
export interface SmartCollectionsResponse {
|
|
5
5
|
ancestor_categories: CategoryAncestor[];
|
|
6
6
|
category_description: string;
|
|
@@ -62,6 +62,7 @@ export interface smartCollections {
|
|
|
62
62
|
disableTurbolinks?: boolean;
|
|
63
63
|
collectionPersonalization?: CollectionsPersonalization;
|
|
64
64
|
channel?: Channel;
|
|
65
|
+
self?: SDKUtils;
|
|
65
66
|
}
|
|
66
67
|
export interface smartCollectionsResults {
|
|
67
68
|
ancestors: CategoryAncestor[];
|
|
@@ -79,6 +80,7 @@ export interface smartCollectionsResults {
|
|
|
79
80
|
merch?: any;
|
|
80
81
|
bannerHTML?: string;
|
|
81
82
|
relatedCategories?: RelatedCategory[];
|
|
83
|
+
error?: boolean;
|
|
82
84
|
}
|
|
83
85
|
export type smartCollectionsCallback = ({}: {
|
|
84
86
|
action: "products" | "facets and products";
|
|
@@ -18,10 +18,12 @@ export declare const FastEventName: {
|
|
|
18
18
|
LookALikeClickedCollection: string;
|
|
19
19
|
QuickViewClickedSerp: string;
|
|
20
20
|
LookALikeProductClicked: string;
|
|
21
|
+
QuickViewClickedWidget: string;
|
|
21
22
|
QuickViewProductClicked: string;
|
|
22
23
|
DirectProductClicked: string;
|
|
23
24
|
CartVisited: string;
|
|
24
25
|
AddToCartPerformed: string;
|
|
26
|
+
RecommendationsProductsShown: string;
|
|
25
27
|
};
|
|
26
28
|
export declare const FastSortBy: {
|
|
27
29
|
PriceHighToLow: string;
|
|
@@ -21,10 +21,12 @@ exports.FastEventName = {
|
|
|
21
21
|
LookALikeClickedCollection: "lookALikeViewCollection",
|
|
22
22
|
QuickViewClickedSerp: "quickViewSerp",
|
|
23
23
|
LookALikeProductClicked: "productFromLookALike",
|
|
24
|
+
QuickViewClickedWidget: "quickViewWidget",
|
|
24
25
|
QuickViewProductClicked: "productFromQuickView",
|
|
25
26
|
DirectProductClicked: "productDirect",
|
|
26
27
|
CartVisited: "cartVisited",
|
|
27
28
|
AddToCartPerformed: "cartPerformed",
|
|
29
|
+
RecommendationsProductsShown: "recommendationsProductsShown"
|
|
28
30
|
};
|
|
29
31
|
exports.FastSortBy = {
|
|
30
32
|
PriceHighToLow: "price_max_to_min",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sections/enums/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACvB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE,KAAK;CACnB,CAAC;AAEW,QAAA,aAAa,GAAG;IACzB,0BAA0B,EAAE,uBAAuB;IACnD,2BAA2B,EAAE,wBAAwB;IACrD,0BAA0B,EAAE,8BAA8B;IAC1D,eAAe,EAAE,QAAQ;IACzB,wBAAwB,EAAE,YAAY;IACtC,kBAAkB,EAAE,mBAAmB;IACvC,wBAAwB,EAAE,uBAAuB;IACjD,oBAAoB,EAAE,qBAAqB;IAC3C,0BAA0B,E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