fast-simon-sdk 1.2.57 → 1.2.60

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.
Files changed (82) hide show
  1. package/lib/config.js +1 -1
  2. package/lib/config.js.map +1 -1
  3. package/lib/index.js +3 -3
  4. package/lib/index.js.map +1 -1
  5. package/lib/models/common.d.ts +6 -2
  6. package/lib/models/common.js.map +1 -1
  7. package/lib/models/exports.js +1 -1
  8. package/lib/models/exports.js.map +1 -1
  9. package/lib/sections/contentSearch/index.js +13 -11
  10. package/lib/sections/contentSearch/index.js.map +1 -1
  11. package/lib/sections/eventReporter/index.js +233 -180
  12. package/lib/sections/eventReporter/index.js.map +1 -1
  13. package/lib/sections/eventReporter/utils.js +9 -8
  14. package/lib/sections/eventReporter/utils.js.map +1 -1
  15. package/lib/sections/fullTextSearch/index.js +37 -17
  16. package/lib/sections/fullTextSearch/index.js.map +1 -1
  17. package/lib/sections/fullTextSearch/utils.js +43 -36
  18. package/lib/sections/fullTextSearch/utils.js.map +1 -1
  19. package/lib/sections/index.js +166 -96
  20. package/lib/sections/index.js.map +1 -1
  21. package/lib/sections/initialization/index.js +14 -13
  22. package/lib/sections/initialization/index.js.map +1 -1
  23. package/lib/sections/initialization/utils.js +83 -40
  24. package/lib/sections/initialization/utils.js.map +1 -1
  25. package/lib/sections/instantSearch/index.d.ts +1 -1
  26. package/lib/sections/instantSearch/index.js +34 -17
  27. package/lib/sections/instantSearch/index.js.map +1 -1
  28. package/lib/sections/instantSearch/utils.d.ts +2 -1
  29. package/lib/sections/instantSearch/utils.js +72 -52
  30. package/lib/sections/instantSearch/utils.js.map +1 -1
  31. package/lib/sections/landingPage/index.js +34 -15
  32. package/lib/sections/landingPage/index.js.map +1 -1
  33. package/lib/sections/landingPage/utils.js +28 -22
  34. package/lib/sections/landingPage/utils.js.map +1 -1
  35. package/lib/sections/lookAlikeProductRecommendation/index.js +5 -4
  36. package/lib/sections/lookAlikeProductRecommendation/index.js.map +1 -1
  37. package/lib/sections/recommendations/index.d.ts +1 -1
  38. package/lib/sections/recommendations/index.js +16 -14
  39. package/lib/sections/recommendations/index.js.map +1 -1
  40. package/lib/sections/recommendations/utils.js +8 -8
  41. package/lib/sections/recommendations/utils.js.map +1 -1
  42. package/lib/sections/smartCollections/index.js +48 -26
  43. package/lib/sections/smartCollections/index.js.map +1 -1
  44. package/lib/sections/smartCollections/utils.js +56 -43
  45. package/lib/sections/smartCollections/utils.js.map +1 -1
  46. package/lib/services/autocomplete.d.ts +2 -1
  47. package/lib/services/autocomplete.js +11 -8
  48. package/lib/services/autocomplete.js.map +1 -1
  49. package/lib/services/common.d.ts +2 -1
  50. package/lib/services/common.js +23 -17
  51. package/lib/services/common.js.map +1 -1
  52. package/lib/services/content.js +11 -10
  53. package/lib/services/content.js.map +1 -1
  54. package/lib/services/fullTextSearch.js +12 -11
  55. package/lib/services/fullTextSearch.js.map +1 -1
  56. package/lib/services/landingPage.js +10 -9
  57. package/lib/services/landingPage.js.map +1 -1
  58. package/lib/services/lookAlikeProductRecommendation.js +6 -5
  59. package/lib/services/lookAlikeProductRecommendation.js.map +1 -1
  60. package/lib/services/related.d.ts +2 -1
  61. package/lib/services/related.js +14 -11
  62. package/lib/services/related.js.map +1 -1
  63. package/lib/services/reporting.js +24 -17
  64. package/lib/services/reporting.js.map +1 -1
  65. package/lib/services/smartCollections.js +11 -10
  66. package/lib/services/smartCollections.js.map +1 -1
  67. package/lib/services/utils.js +6 -5
  68. package/lib/services/utils.js.map +1 -1
  69. package/lib/utils/API.js +63 -9
  70. package/lib/utils/API.js.map +1 -1
  71. package/lib/utils/ArrayUtils.js +1 -1
  72. package/lib/utils/cookies.js +36 -23
  73. package/lib/utils/cookies.js.map +1 -1
  74. package/lib/utils/debug.js +5 -5
  75. package/lib/utils/debug.js.map +1 -1
  76. package/lib/utils/klaviyo.js +4 -4
  77. package/lib/utils/klaviyo.js.map +1 -1
  78. package/lib/utils/options.js +2 -2
  79. package/lib/utils/options.js.map +1 -1
  80. package/lib/utils/validation.js +9 -8
  81. package/lib/utils/validation.js.map +1 -1
  82. package/package.json +7 -2
@@ -1 +1 @@
1
- {"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":";;;AACA,sCAAwC;AAEjC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAW,EAAE;IAClD,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QAC9B,OAAO,IAAI,CAAC;KACf;IACD,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,gDAAgD,CAAC,CAAC;IAClG,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC;AANW,QAAA,YAAY,gBAMvB;AAEK,MAAM,cAAc,GAAG,CAAC,UAAoB,EAAE,KAAa,EAAW,EAAE;IAC3E,KAAK,MAAM,CAAC,IAAI,UAAU,EAAE;QACxB,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,EAAE;YACf,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,UAAU,EAAE,gDAAgD,CAAC,CAAC;YACzG,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AARW,QAAA,cAAc,kBAQzB;AAEK,MAAM,cAAc,GAAG,CAAC,QAAkB,EAAE,EAAE;IACjD,IAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,EAAC;QACtC,OAAO,CAAC,GAAG,CAAC,KAAK,sBAAa,EAAE,EAAE,gDAAgD,CAAC,CAAC;QACpF,OAAO,KAAK,CAAC;KAChB;IACD,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AANW,QAAA,cAAc,kBAMzB"}
1
+ {"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":";;;AACA,oCAAwC;AAEjC,IAAM,YAAY,GAAG,UAAC,IAAY;IACrC,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;QAC9B,OAAO,IAAI,CAAC;KACf;IACD,OAAO,CAAC,GAAG,CAAC,uCAAkC,EAAE,gDAAgD,CAAC,CAAC;IAClG,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC;AANW,QAAA,YAAY,gBAMvB;AAEK,IAAM,cAAc,GAAG,UAAC,UAAoB,EAAE,KAAa;IAC9D,KAAgB,UAAU,EAAV,yBAAU,EAAV,wBAAU,EAAV,IAAU,EAAE;QAAvB,IAAM,CAAC,mBAAA;QACR,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,EAAE;YACf,OAAO,CAAC,GAAG,CAAC,qCAA8B,CAAC,aAAU,EAAE,gDAAgD,CAAC,CAAC;YACzG,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AARW,QAAA,cAAc,kBAQzB;AAEK,IAAM,cAAc,GAAG,UAAC,QAAkB;IAC7C,IAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,EAAC;QACtC,OAAO,CAAC,GAAG,CAAC,OAAK,sBAAe,EAAE,gDAAgD,CAAC,CAAC;QACpF,OAAO,KAAK,CAAC;KAChB;IACD,OAAO,IAAI,CAAC;AAChB,CAAC,CAAC;AANW,QAAA,cAAc,kBAMzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-simon-sdk",
3
- "version": "1.2.57",
3
+ "version": "1.2.60",
4
4
  "author": {
5
5
  "name": "Fast Simon inc",
6
6
  "url": "",
@@ -9,7 +9,8 @@
9
9
  "scripts": {
10
10
  "clean": "node ./utils/clean.js",
11
11
  "create-documentation": "node ./utils/markdown.js",
12
- "build-cdn": "webpack",
12
+ "build-cdn": "webpack && npm run babel-ie11",
13
+ "babel-ie11": "npx babel dist/index.js --out-file dist/index.ie11.js",
13
14
  "prepublishOnly": "tsc",
14
15
  "webpack": "webpack",
15
16
  "tsc": "tsc",
@@ -18,6 +19,10 @@
18
19
  "main": "lib/index.js",
19
20
  "types": "lib/index.d.ts",
20
21
  "devDependencies": {
22
+ "@babel/cli": "^7.16.8",
23
+ "@babel/core": "^7.16.7",
24
+ "@babel/preset-env": "^7.16.8",
25
+ "babel-preset-minify": "^0.5.1",
21
26
  "ts-loader": "^8.0.17",
22
27
  "typescript": "^4.2.2",
23
28
  "unminified-webpack-plugin": "^3.0.0",