@mtes-mct/monitor-ui 9.1.0 → 9.1.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [9.1.0](https://github.com/MTES-MCT/monitor-ui/compare/v9.0.1...v9.1.0) (2023-08-25)
2
+
3
+
4
+ ### Features
5
+
6
+ * **elements:** add isCompact prop to IconButton ([ec25e63](https://github.com/MTES-MCT/monitor-ui/commit/ec25e63a2dc4b5a2ba846c499819ac02c6a91651))
7
+
1
8
  ## [9.0.1](https://github.com/MTES-MCT/monitor-ui/compare/v9.0.0...v9.0.1) (2023-08-23)
2
9
 
3
10
 
package/index.js CHANGED
@@ -26104,7 +26104,7 @@ class CustomSearch {
26104
26104
  #isDiacriticSensitive;
26105
26105
  /** See {@link CustomSearchOptions.isStrict}. */
26106
26106
  #isStrict;
26107
- constructor(collection, keys, { cacheKey, isCaseSensitive = false, isDiacriticSensitive = false, isStrict = false, threshold = 0.6 } = {}) {
26107
+ constructor(collection, keys, { cacheKey, isCaseSensitive = false, isDiacriticSensitive = false, isStrict = false, shouldIgnoreLocation = true, threshold = 0.4 } = {}) {
26108
26108
  const maybeCache = cacheKey ? FUSE_SEARCH_CACHE[cacheKey] : undefined;
26109
26109
  // eslint-disable-next-line no-nested-ternary
26110
26110
  const normalizedCollection = maybeCache
@@ -26114,7 +26114,7 @@ class CustomSearch {
26114
26114
  : CustomSearch.cleanCollectionDiacritics(collection, keys);
26115
26115
  this.#fuse = new Fuse(normalizedCollection,
26116
26116
  // eslint-disable-next-line @typescript-eslint/naming-convention
26117
- { isCaseSensitive, keys, threshold, useExtendedSearch: isStrict }, maybeCache ? Fuse.parseIndex(maybeCache.fuseSearchIndex) : undefined);
26117
+ { ignoreLocation: shouldIgnoreLocation, isCaseSensitive, keys, threshold, useExtendedSearch: isStrict }, maybeCache ? Fuse.parseIndex(maybeCache.fuseSearchIndex) : undefined);
26118
26118
  this.#isDiacriticSensitive = isDiacriticSensitive;
26119
26119
  this.#isStrict = isStrict;
26120
26120
  this.#originalCollection = maybeCache ? maybeCache.originalCollection : collection;