@searchcraft/javascript-sdk 0.10.6 → 0.10.7

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 (44) hide show
  1. package/dist/components/index.d.ts +11 -4
  2. package/dist/components/index.js +4 -4
  3. package/dist/components/{p-b54873ff.js → p-062d6b80.js} +122 -110
  4. package/dist/components/p-062d6b80.js.map +1 -0
  5. package/dist/components/{p-f2976b33.js → p-274c5cc8.js} +2 -2
  6. package/dist/components/{p-f2976b33.js.map → p-274c5cc8.js.map} +1 -1
  7. package/dist/components/{p-2735dceb.js → p-320e3895.js} +2 -2
  8. package/dist/components/{p-2735dceb.js.map → p-320e3895.js.map} +1 -1
  9. package/dist/components/{p-a7d611cd.js → p-acab4d41.js} +2 -2
  10. package/dist/components/{p-a7d611cd.js.map → p-acab4d41.js.map} +1 -1
  11. package/dist/components/{p-6e5ed641.js → p-adc6236e.js} +80 -35
  12. package/dist/components/p-adc6236e.js.map +1 -0
  13. package/dist/components/{p-aba24c85.js → p-b01f8216.js} +11 -11
  14. package/dist/components/p-b01f8216.js.map +1 -0
  15. package/dist/components/{p-9f4c50ed.js → p-b4cac872.js} +2 -2
  16. package/dist/components/{p-9f4c50ed.js.map → p-b4cac872.js.map} +1 -1
  17. package/dist/components/{p-b194d081.js → p-e99cd628.js} +2 -2
  18. package/dist/components/{p-b194d081.js.map → p-e99cd628.js.map} +1 -1
  19. package/dist/components/{p-75134ca7.js → p-ea48ccae.js} +2 -2
  20. package/dist/components/{p-75134ca7.js.map → p-ea48ccae.js.map} +1 -1
  21. package/dist/components/searchcraft-ad.js +1 -1
  22. package/dist/components/searchcraft-facet-list.js +1 -1
  23. package/dist/components/searchcraft-filter-panel.js +3 -3
  24. package/dist/components/searchcraft-input-form.js +1 -1
  25. package/dist/components/searchcraft-pagination.js +1 -1
  26. package/dist/components/searchcraft-popover-button.js +1 -1
  27. package/dist/components/searchcraft-popover-footer.js +1 -1
  28. package/dist/components/searchcraft-popover-form.js +6 -6
  29. package/dist/components/searchcraft-popover-list-item.js +1 -1
  30. package/dist/components/searchcraft-popover-list-view.js +1 -1
  31. package/dist/components/searchcraft-results-info.js +1 -1
  32. package/dist/components/searchcraft-search-result.js +1 -1
  33. package/dist/components/searchcraft-search-results-per-page.js +1 -1
  34. package/dist/components/searchcraft-search-results.js +10 -10
  35. package/dist/components/searchcraft-search-results.js.map +1 -1
  36. package/dist/components/searchcraft-toggle-button.js +1 -1
  37. package/dist/hydrate/index.js +144 -99
  38. package/dist/hydrate/index.mjs +144 -99
  39. package/dist/types/components/searchcraft-ad/searchcraft-ad.d.ts +22 -2
  40. package/dist/types/components.d.ts +8 -2
  41. package/package.json +3 -3
  42. package/dist/components/p-6e5ed641.js.map +0 -1
  43. package/dist/components/p-aba24c85.js.map +0 -1
  44. package/dist/components/p-b54873ff.js.map +0 -1
@@ -543,6 +543,7 @@ declare class SearchClient {
543
543
  private parent;
544
544
  private searchCompletedEventTimeout;
545
545
  private abortController;
546
+ private supplementalAbortController;
546
547
  constructor(parent: SearchcraftCore, config: SearchcraftConfig, userId: string);
547
548
  /**
548
549
  * Getter for the base url used by the /search endpoint.
@@ -551,10 +552,10 @@ declare class SearchClient {
551
552
  /**
552
553
  * Make the request to get the search results.
553
554
  * @param {properties} properties - The properties for the search.
554
- * @param sendTelemetry - Whether or not to emit measure and subscription events for this search.
555
+ * @param isSupplemental - Whether or not this is a supplemental search request (for the purpose of getting top-level facet counts)
555
556
  * @returns
556
557
  */
557
- getSearchResponseItems: (properties: SearchClientRequestProperties | string, sendTelemetry?: boolean) => Promise<SearchcraftResponse>;
558
+ getSearchResponseItems: (properties: SearchClientRequestProperties | string, isSupplemental?: boolean) => Promise<SearchcraftResponse>;
558
559
  private handleGetSearchResponseItemsWithString;
559
560
  private handleGetSearchResponseItemsWithObject;
560
561
  /**
@@ -681,8 +682,11 @@ export namespace Components {
681
682
  */
682
683
  interface SearchcraftAd {
683
684
  "adClientResponseItem"?: AdClientResponseItem;
684
- "adContainerId": string;
685
685
  "adSource": SearchcraftAdSource;
686
+ /**
687
+ * Where the ad is being rendered within the search results div. Lifecycle behavior differs for ads being rendered in different positions, so we need to be able to handle all of those cases.
688
+ */
689
+ "renderPosition": "interstitial" | "top" | "bottom";
686
690
  }
687
691
  /**
688
692
  * This web component represents a button.
@@ -1781,8 +1785,11 @@ declare namespace LocalJSX {
1781
1785
  */
1782
1786
  interface SearchcraftAd {
1783
1787
  "adClientResponseItem"?: AdClientResponseItem;
1784
- "adContainerId"?: string;
1785
1788
  "adSource"?: SearchcraftAdSource;
1789
+ /**
1790
+ * Where the ad is being rendered within the search results div. Lifecycle behavior differs for ads being rendered in different positions, so we need to be able to handle all of those cases.
1791
+ */
1792
+ "renderPosition"?: "interstitial" | "top" | "bottom";
1786
1793
  }
1787
1794
  /**
1788
1795
  * This web component represents a button.
@@ -1,6 +1,6 @@
1
1
  export { g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-5365011f.js';
2
- import { v as ve } from './p-b54873ff.js';
3
- export { v as SearchcraftCore, s as searchcraftStore } from './p-b54873ff.js';
2
+ import { v as ve } from './p-062d6b80.js';
3
+ export { v as SearchcraftCore, s as searchcraftStore } from './p-062d6b80.js';
4
4
  export { SearchcraftAd, defineCustomElement as defineCustomElementSearchcraftAd } from './searchcraft-ad.js';
5
5
  export { SearchcraftButton, defineCustomElement as defineCustomElementSearchcraftButton } from './searchcraft-button.js';
6
6
  export { SearchcraftErrorMessage, defineCustomElement as defineCustomElementSearchcraftErrorMessage } from './searchcraft-error-message.js';
@@ -24,7 +24,7 @@ export { SearchcraftTheme, defineCustomElement as defineCustomElementSearchcraft
24
24
  export { SearchcraftToggleButton, defineCustomElement as defineCustomElementSearchcraftToggleButton } from './searchcraft-toggle-button.js';
25
25
 
26
26
  const name = "@searchcraft/javascript-sdk";
27
- const version = "0.10.6";
27
+ const version = "0.10.7";
28
28
  const description = "Searchcraft Javascript SDK";
29
29
  const author = "Searchcraft Inc.";
30
30
  const license = "Apache-2.0";
@@ -67,7 +67,7 @@ const dependencies = {
67
67
  nanoid: "^5.0.9"
68
68
  };
69
69
  const devDependencies = {
70
- "@searchcraft/core": "^0.10.6",
70
+ "@searchcraft/core": "^0.10.7",
71
71
  "@stencil/core": "^4.7.0",
72
72
  "@stencil/react-output-target": "^0.8.2",
73
73
  "@stencil/sass": "^3.0.12",