@blotoutio/providers-evo-search-sdk 1.72.0 → 1.73.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.
package/core.cjs.js CHANGED
@@ -2535,7 +2535,7 @@ const init = (params) => {
2535
2535
  const tag = ({ data }) => {
2536
2536
  try {
2537
2537
  return {
2538
- sdkVersion: "1.72.0" || '',
2538
+ sdkVersion: "1.73.0" || '',
2539
2539
  searchQuery: data['searchQuery'],
2540
2540
  searchResults: data['searchResults'],
2541
2541
  timestamp: Date.now(),
@@ -2544,7 +2544,7 @@ const tag = ({ data }) => {
2544
2544
  catch (err) {
2545
2545
  console.error(`EvoSearch SDK: Tagging failed - ${err}`);
2546
2546
  return {
2547
- sdkVersion: "1.72.0" ,
2547
+ sdkVersion: "1.73.0" ,
2548
2548
  timestamp: Date.now(),
2549
2549
  };
2550
2550
  }
package/core.js CHANGED
@@ -2536,7 +2536,7 @@ var ProvidersEvoSearchSdk = (function () {
2536
2536
  const tag = ({ data }) => {
2537
2537
  try {
2538
2538
  return {
2539
- sdkVersion: "1.72.0" || '',
2539
+ sdkVersion: "1.73.0" || '',
2540
2540
  searchQuery: data['searchQuery'],
2541
2541
  searchResults: data['searchResults'],
2542
2542
  timestamp: Date.now(),
@@ -2545,7 +2545,7 @@ var ProvidersEvoSearchSdk = (function () {
2545
2545
  catch (err) {
2546
2546
  console.error(`EvoSearch SDK: Tagging failed - ${err}`);
2547
2547
  return {
2548
- sdkVersion: "1.72.0" ,
2548
+ sdkVersion: "1.73.0" ,
2549
2549
  timestamp: Date.now(),
2550
2550
  };
2551
2551
  }
package/core.mjs CHANGED
@@ -2533,7 +2533,7 @@ const init = (params) => {
2533
2533
  const tag = ({ data }) => {
2534
2534
  try {
2535
2535
  return {
2536
- sdkVersion: "1.72.0" || '',
2536
+ sdkVersion: "1.73.0" || '',
2537
2537
  searchQuery: data['searchQuery'],
2538
2538
  searchResults: data['searchResults'],
2539
2539
  timestamp: Date.now(),
@@ -2542,7 +2542,7 @@ const tag = ({ data }) => {
2542
2542
  catch (err) {
2543
2543
  console.error(`EvoSearch SDK: Tagging failed - ${err}`);
2544
2544
  return {
2545
- sdkVersion: "1.72.0" ,
2545
+ sdkVersion: "1.73.0" ,
2546
2546
  timestamp: Date.now(),
2547
2547
  };
2548
2548
  }
package/hooks.d.ts CHANGED
@@ -132,7 +132,7 @@ declare module '@blotoutio/providers-evo-search-sdk/hooks' {
132
132
  description: string | null
133
133
  url: string | null
134
134
  img: string | null
135
- productCount: number
135
+ productCount: number | null
136
136
  score: number
137
137
  }
138
138
 
@@ -584,7 +584,7 @@ declare module '@blotoutio/providers-evo-search-sdk/hooks' {
584
584
  export type AskEvidenceCollection = {
585
585
  id: string
586
586
  title: string
587
- productCount?: number
587
+ productCount?: number | null
588
588
  }
589
589
 
590
590
  export type AskEvidence = {
package/index.cjs.js CHANGED
@@ -2628,7 +2628,7 @@ const mapAskEvidenceCollectionToAPICollection = (collection) => {
2628
2628
  description: null,
2629
2629
  url: (_a = collection.url) !== null && _a !== void 0 ? _a : null,
2630
2630
  img: (_b = collection.img) !== null && _b !== void 0 ? _b : null,
2631
- productCount: (_c = collection.productCount) !== null && _c !== void 0 ? _c : 0,
2631
+ productCount: (_c = collection.productCount) !== null && _c !== void 0 ? _c : null,
2632
2632
  score: 0,
2633
2633
  });
2634
2634
  };
@@ -5118,7 +5118,7 @@ const init = (params) => {
5118
5118
  const tag = ({ data }) => {
5119
5119
  try {
5120
5120
  return {
5121
- sdkVersion: "1.72.0" || '',
5121
+ sdkVersion: "1.73.0" || '',
5122
5122
  searchQuery: data['searchQuery'],
5123
5123
  searchResults: data['searchResults'],
5124
5124
  timestamp: Date.now(),
@@ -5127,7 +5127,7 @@ const tag = ({ data }) => {
5127
5127
  catch (err) {
5128
5128
  console.error(`EvoSearch SDK: Tagging failed - ${err}`);
5129
5129
  return {
5130
- sdkVersion: "1.72.0" ,
5130
+ sdkVersion: "1.73.0" ,
5131
5131
  timestamp: Date.now(),
5132
5132
  };
5133
5133
  }
@@ -11210,6 +11210,9 @@ class CollectionCard extends ElementWithStylesheet {
11210
11210
  super(...arguments);
11211
11211
  this.collectionId = '';
11212
11212
  this.heading = '';
11213
+ // null is an unknown count; a 0 is an empty collection as often as it is a
11214
+ // payload written before the sync stored unknown counts as null. Neither
11215
+ // earns a meta line.
11213
11216
  this.productCount = 0;
11214
11217
  this.image = null;
11215
11218
  this.href = null;
@@ -11271,9 +11274,11 @@ class CollectionCard extends ElementWithStylesheet {
11271
11274
  ? highlight(this.heading, this.highlightQuery)
11272
11275
  : this.heading}
11273
11276
  </div>
11274
- <div class="collection-card-meta">
11275
- ${this.productCount} products
11276
- </div>
11277
+ ${this.productCount
11278
+ ? b `<div class="collection-card-meta">
11279
+ ${this.productCount} products
11280
+ </div>`
11281
+ : A}
11277
11282
  </div>
11278
11283
  </div>
11279
11284
  </a>
@@ -19409,6 +19414,9 @@ class CollectionCardV2 extends ElementWithStylesheet {
19409
19414
  super(...arguments);
19410
19415
  this.collectionId = '';
19411
19416
  this.heading = '';
19417
+ // null is an unknown count; a 0 is an empty collection as often as it is a
19418
+ // payload written before the sync stored unknown counts as null. Neither
19419
+ // earns a meta line.
19412
19420
  this.productCount = 0;
19413
19421
  this.image = null;
19414
19422
  this.href = null;
@@ -19469,12 +19477,10 @@ class CollectionCardV2 extends ElementWithStylesheet {
19469
19477
  ? highlight(this.heading, this.highlightQuery)
19470
19478
  : this.heading}
19471
19479
  </div>
19472
- ${
19473
- // A 0 is an un-enriched count as often as an empty collection.
19474
- this.productCount > 0
19480
+ ${this.productCount
19475
19481
  ? b `<div class="collection-card-meta">
19476
- ${this.productCount} products
19477
- </div>`
19482
+ ${this.productCount} products
19483
+ </div>`
19478
19484
  : A}
19479
19485
  </div>
19480
19486
  </div>
@@ -28718,7 +28724,7 @@ const startDesignerBridge = ({ token, revision, updatedAt, }) => {
28718
28724
  type: 'evosearch:designer:ready',
28719
28725
  revision,
28720
28726
  updatedAt,
28721
- rendererVersion: "1.72.0" ,
28727
+ rendererVersion: "1.73.0" ,
28722
28728
  liveCatalog: true,
28723
28729
  });
28724
28730
  stopDesignerBridge = () => {
package/index.js CHANGED
@@ -2629,7 +2629,7 @@ var ProvidersEvoSearchSdk = (function () {
2629
2629
  description: null,
2630
2630
  url: (_a = collection.url) !== null && _a !== void 0 ? _a : null,
2631
2631
  img: (_b = collection.img) !== null && _b !== void 0 ? _b : null,
2632
- productCount: (_c = collection.productCount) !== null && _c !== void 0 ? _c : 0,
2632
+ productCount: (_c = collection.productCount) !== null && _c !== void 0 ? _c : null,
2633
2633
  score: 0,
2634
2634
  });
2635
2635
  };
@@ -5119,7 +5119,7 @@ var ProvidersEvoSearchSdk = (function () {
5119
5119
  const tag = ({ data }) => {
5120
5120
  try {
5121
5121
  return {
5122
- sdkVersion: "1.72.0" || '',
5122
+ sdkVersion: "1.73.0" || '',
5123
5123
  searchQuery: data['searchQuery'],
5124
5124
  searchResults: data['searchResults'],
5125
5125
  timestamp: Date.now(),
@@ -5128,7 +5128,7 @@ var ProvidersEvoSearchSdk = (function () {
5128
5128
  catch (err) {
5129
5129
  console.error(`EvoSearch SDK: Tagging failed - ${err}`);
5130
5130
  return {
5131
- sdkVersion: "1.72.0" ,
5131
+ sdkVersion: "1.73.0" ,
5132
5132
  timestamp: Date.now(),
5133
5133
  };
5134
5134
  }
@@ -11211,6 +11211,9 @@ var ProvidersEvoSearchSdk = (function () {
11211
11211
  super(...arguments);
11212
11212
  this.collectionId = '';
11213
11213
  this.heading = '';
11214
+ // null is an unknown count; a 0 is an empty collection as often as it is a
11215
+ // payload written before the sync stored unknown counts as null. Neither
11216
+ // earns a meta line.
11214
11217
  this.productCount = 0;
11215
11218
  this.image = null;
11216
11219
  this.href = null;
@@ -11272,9 +11275,11 @@ var ProvidersEvoSearchSdk = (function () {
11272
11275
  ? highlight(this.heading, this.highlightQuery)
11273
11276
  : this.heading}
11274
11277
  </div>
11275
- <div class="collection-card-meta">
11276
- ${this.productCount} products
11277
- </div>
11278
+ ${this.productCount
11279
+ ? b `<div class="collection-card-meta">
11280
+ ${this.productCount} products
11281
+ </div>`
11282
+ : A}
11278
11283
  </div>
11279
11284
  </div>
11280
11285
  </a>
@@ -19410,6 +19415,9 @@ var ProvidersEvoSearchSdk = (function () {
19410
19415
  super(...arguments);
19411
19416
  this.collectionId = '';
19412
19417
  this.heading = '';
19418
+ // null is an unknown count; a 0 is an empty collection as often as it is a
19419
+ // payload written before the sync stored unknown counts as null. Neither
19420
+ // earns a meta line.
19413
19421
  this.productCount = 0;
19414
19422
  this.image = null;
19415
19423
  this.href = null;
@@ -19470,12 +19478,10 @@ var ProvidersEvoSearchSdk = (function () {
19470
19478
  ? highlight(this.heading, this.highlightQuery)
19471
19479
  : this.heading}
19472
19480
  </div>
19473
- ${
19474
- // A 0 is an un-enriched count as often as an empty collection.
19475
- this.productCount > 0
19481
+ ${this.productCount
19476
19482
  ? b `<div class="collection-card-meta">
19477
- ${this.productCount} products
19478
- </div>`
19483
+ ${this.productCount} products
19484
+ </div>`
19479
19485
  : A}
19480
19486
  </div>
19481
19487
  </div>
@@ -28719,7 +28725,7 @@ var ProvidersEvoSearchSdk = (function () {
28719
28725
  type: 'evosearch:designer:ready',
28720
28726
  revision,
28721
28727
  updatedAt,
28722
- rendererVersion: "1.72.0" ,
28728
+ rendererVersion: "1.73.0" ,
28723
28729
  liveCatalog: true,
28724
28730
  });
28725
28731
  stopDesignerBridge = () => {
package/index.mjs CHANGED
@@ -2626,7 +2626,7 @@ const mapAskEvidenceCollectionToAPICollection = (collection) => {
2626
2626
  description: null,
2627
2627
  url: (_a = collection.url) !== null && _a !== void 0 ? _a : null,
2628
2628
  img: (_b = collection.img) !== null && _b !== void 0 ? _b : null,
2629
- productCount: (_c = collection.productCount) !== null && _c !== void 0 ? _c : 0,
2629
+ productCount: (_c = collection.productCount) !== null && _c !== void 0 ? _c : null,
2630
2630
  score: 0,
2631
2631
  });
2632
2632
  };
@@ -5116,7 +5116,7 @@ const init = (params) => {
5116
5116
  const tag = ({ data }) => {
5117
5117
  try {
5118
5118
  return {
5119
- sdkVersion: "1.72.0" || '',
5119
+ sdkVersion: "1.73.0" || '',
5120
5120
  searchQuery: data['searchQuery'],
5121
5121
  searchResults: data['searchResults'],
5122
5122
  timestamp: Date.now(),
@@ -5125,7 +5125,7 @@ const tag = ({ data }) => {
5125
5125
  catch (err) {
5126
5126
  console.error(`EvoSearch SDK: Tagging failed - ${err}`);
5127
5127
  return {
5128
- sdkVersion: "1.72.0" ,
5128
+ sdkVersion: "1.73.0" ,
5129
5129
  timestamp: Date.now(),
5130
5130
  };
5131
5131
  }
@@ -11208,6 +11208,9 @@ class CollectionCard extends ElementWithStylesheet {
11208
11208
  super(...arguments);
11209
11209
  this.collectionId = '';
11210
11210
  this.heading = '';
11211
+ // null is an unknown count; a 0 is an empty collection as often as it is a
11212
+ // payload written before the sync stored unknown counts as null. Neither
11213
+ // earns a meta line.
11211
11214
  this.productCount = 0;
11212
11215
  this.image = null;
11213
11216
  this.href = null;
@@ -11269,9 +11272,11 @@ class CollectionCard extends ElementWithStylesheet {
11269
11272
  ? highlight(this.heading, this.highlightQuery)
11270
11273
  : this.heading}
11271
11274
  </div>
11272
- <div class="collection-card-meta">
11273
- ${this.productCount} products
11274
- </div>
11275
+ ${this.productCount
11276
+ ? b `<div class="collection-card-meta">
11277
+ ${this.productCount} products
11278
+ </div>`
11279
+ : A}
11275
11280
  </div>
11276
11281
  </div>
11277
11282
  </a>
@@ -19407,6 +19412,9 @@ class CollectionCardV2 extends ElementWithStylesheet {
19407
19412
  super(...arguments);
19408
19413
  this.collectionId = '';
19409
19414
  this.heading = '';
19415
+ // null is an unknown count; a 0 is an empty collection as often as it is a
19416
+ // payload written before the sync stored unknown counts as null. Neither
19417
+ // earns a meta line.
19410
19418
  this.productCount = 0;
19411
19419
  this.image = null;
19412
19420
  this.href = null;
@@ -19467,12 +19475,10 @@ class CollectionCardV2 extends ElementWithStylesheet {
19467
19475
  ? highlight(this.heading, this.highlightQuery)
19468
19476
  : this.heading}
19469
19477
  </div>
19470
- ${
19471
- // A 0 is an un-enriched count as often as an empty collection.
19472
- this.productCount > 0
19478
+ ${this.productCount
19473
19479
  ? b `<div class="collection-card-meta">
19474
- ${this.productCount} products
19475
- </div>`
19480
+ ${this.productCount} products
19481
+ </div>`
19476
19482
  : A}
19477
19483
  </div>
19478
19484
  </div>
@@ -28716,7 +28722,7 @@ const startDesignerBridge = ({ token, revision, updatedAt, }) => {
28716
28722
  type: 'evosearch:designer:ready',
28717
28723
  revision,
28718
28724
  updatedAt,
28719
- rendererVersion: "1.72.0" ,
28725
+ rendererVersion: "1.73.0" ,
28720
28726
  liveCatalog: true,
28721
28727
  });
28722
28728
  stopDesignerBridge = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-evo-search-sdk",
3
- "version": "1.72.0",
3
+ "version": "1.73.0",
4
4
  "description": "Evo Search SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",