Version 8.23.0

@esri/hub-search

Module to search for ArcGIS items and format them for display in ArcGIS Hub.

npm install:

npm install @esri/hub-search @esri/arcgis-rest-auth@^2.13.0 || 3  @esri/arcgis-rest-feature-layer@^2.13.0 || 3  @esri/arcgis-rest-portal@^2.6.1 || 3  @esri/arcgis-rest-request@^2.13.0 || 3  @esri/arcgis-rest-types@^2.13.0 || 3  @esri/hub-common@^8.0.0 

Module Import:

import {
  agoSearch,
  convertHubResponse,
  convertPortalResponse,
  convertToHubParams,
  convertToPortalParams,
  flattenCategories,
  isFilterAnArrayWithData,
  isFilterANonEmptyString,
  isFilterFieldADateRange,
  kMerge,
  mergeAggregations,
  mergePages,
  processPage,
  searchContent,
  searchDatasets,
  serialize,
  BinaryHeap,
  ContentSearchService,
  InvalidPaginationInputError,
} from "@esri/hub-search";

CDN:

<script src="https://unpkg.com/@esri/hub-search@8.23.0/dist/umd/search.umd.min.js"></script>

CDN with SRI: