diff --git a/package.json b/package.json index 746148b..ccfeaf8 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "prop-types": "^15.8.1", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-instantsearch-dom": "^6.40.4", + "react-instantsearch": "^7.13.3", "react-json-view": "^1.21.3", "react-lazy-load-image-component": "^1.6.0", "react-scripts": "5.0.1", diff --git a/src/components/Body.js b/src/components/Body.js index 4bb7929..1b008ab 100644 --- a/src/components/Body.js +++ b/src/components/Body.js @@ -1,6 +1,5 @@ import React from 'react' -import { InstantSearch } from 'react-instantsearch-dom' - +import { InstantSearch } from 'react-instantsearch' import { useMeilisearchClientContext } from 'context/MeilisearchClientContext' import Box from 'components/Box' import Header from 'components/Header/index' diff --git a/src/components/Results/Highlight.js b/src/components/Results/Highlight.js index d448c93..84e9e0a 100644 --- a/src/components/Results/Highlight.js +++ b/src/components/Results/Highlight.js @@ -1,27 +1,11 @@ import React from 'react' -import { connectHighlight } from 'react-instantsearch-dom' +import { Highlight as InstantSearchHighLight } from 'react-instantsearch' import Typography from 'components/Typography' -const Highlight = connectHighlight( - ({ highlight, attribute, hit, indexContextValue, ...props }) => { - const parsedHit = highlight({ - highlightProperty: '_highlightResult', - attribute, - hit, - }) - - return ( - - {parsedHit.map((part, index) => - part.isHighlighted ? ( - {part.value} - ) : ( - {part.value} - ) - )} - - ) - } +const Highlight = ({ attribute, hit, ...props }) => ( + + + ) export default Highlight diff --git a/src/components/Results/InfiniteHits.js b/src/components/Results/InfiniteHits.js index a99ddc5..2357c24 100644 --- a/src/components/Results/InfiniteHits.js +++ b/src/components/Results/InfiniteHits.js @@ -1,11 +1,7 @@ import React from 'react' import styled from 'styled-components' -import { connectInfiniteHits } from 'react-instantsearch-dom' -// import ReactJson from 'react-json-view' - -// import { jsonTheme } from 'theme' +import { useInfiniteHits } from 'react-instantsearch' import Button from 'components/Button' -// import Card from 'components/Card' import ScrollToTop from 'components/ScrollToTop' import Hit from './Hit' @@ -46,7 +42,7 @@ const findImageKey = async (array) => { return imageField?.[0] } -const InfiniteHits = connectInfiniteHits(({ hits, hasMore, refineNext }) => { +const InfiniteHitsList = ({ hits, isLastPage, showMore }) => { const [imageKey, setImageKey] = React.useState(false) React.useEffect(() => { @@ -55,33 +51,18 @@ const InfiniteHits = connectInfiniteHits(({ hits, hasMore, refineNext }) => { } getImageKey() }, [hits[0]]) - // ({ hits, hasMore, refineNext, mode }) => { return (
- {/* {mode === 'fancy' ? ( */} {hits.map((hit, index) => ( ))} - {/* ) : ( - - - - )} */} - {hasMore && ( + {!isLastPage && (
) -}) +} + +const InfiniteHits = (props) => { + const inifiniteHitsApi = useInfiniteHits(props) + + return +} export default InfiniteHits diff --git a/src/components/Results/index.js b/src/components/Results/index.js index b5845d9..c1e10c4 100644 --- a/src/components/Results/index.js +++ b/src/components/Results/index.js @@ -1,33 +1,19 @@ /* eslint-disable no-unused-vars */ import React from 'react' -import { connectStateResults, connectStats } from 'react-instantsearch-dom' - -// import { DocumentMedium, Picture } from 'components/icons' +import { useStats, useInstantSearch } from 'react-instantsearch' import Box from 'components/Box' import Stats from 'components/Stats' -// import Toggle from 'components/Toggle' -// import useLocalStorage from 'hooks/useLocalStorage' import InfiniteHits from './InfiniteHits' import NoResultForRequest from './NoResultForRequest' -// const Label1 = () => ( -// <> -// -// Fancy -// -// ) - -// const Label2 = () => ( -// <> -// -// Json -// -// ) - -const ConnectedStats = connectStats((props) => ) +const ConnectedStats = (props) => { + const statsApi = useStats(props) + return +} -const Results = connectStateResults(({ searchResults }) => { - const hasResults = !!searchResults && searchResults?.nbHits !== 0 +const Results = () => { + const { results } = useInstantSearch() + const hasResults = !!results && results?.nbHits !== 0 return ( <> @@ -38,20 +24,12 @@ const Results = connectStateResults(({ searchResults }) => { mb={56} >
- +
- {/* } - offLabel={} - ariaLabel="toggleMode" - initialValue={mode === 'fancy'} - onChange={(e) => setMode(e.target.checked ? 'fancy' : 'json')} - /> */} - {/* {hasResults ? : } */} {hasResults ? : } ) -}) +} export default Results diff --git a/src/components/SearchBox.js b/src/components/SearchBox.js index 5976103..ed5d1ab 100644 --- a/src/components/SearchBox.js +++ b/src/components/SearchBox.js @@ -1,6 +1,6 @@ import React from 'react' import styled from 'styled-components' -import { connectSearchBox } from 'react-instantsearch-dom' +import { useSearchBox } from 'react-instantsearch' import Input from 'components/Input' import { SearchMedium } from 'components/icons' @@ -10,29 +10,33 @@ const SearchIcon = styled(SearchMedium)` color: ${(p) => p.theme.colors.gray[2]}; ` -const SearchBox = connectSearchBox( - ({ currentRefinement, refine, refreshIndexes, currentIndex }) => { - const [value, setValue] = React.useState(currentRefinement) - - React.useEffect(() => { - if (currentIndex?.stats?.numberOfDocuments === 0) { - refreshIndexes() - } - refine(value) - }, [value]) - - return ( - setValue(e.target.value)} - clear={() => setValue('')} - placeholder="Search something" - icon={} - style={{ width: 520 }} - /> - ) - } -) +const SearchInput = ({ query, refine, refreshIndexes, currentIndex }) => { + const [value, setValue] = React.useState(query) + + React.useEffect(() => { + if (currentIndex?.stats?.numberOfDocuments === 0) { + refreshIndexes() + } + refine(value) + }, [value]) + + return ( + setValue(e.target.value)} + clear={() => setValue('')} + placeholder="Search something" + icon={} + style={{ width: 520 }} + /> + ) +} + +const SearchBox = (props) => { + const searchBoxApi = useSearchBox(props) + + return +} export default SearchBox diff --git a/yarn.lock b/yarn.lock index 671d174..a1e9dcd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4428,6 +4428,11 @@ resolved "https://registry.yarnpkg.com/@types/doctrine/-/doctrine-0.0.9.tgz#d86a5f452a15e3e3113b99e39616a9baa0f9863f" integrity sha512-eOIHzCUSH7SMfonMG1LsC2f8vxBFtho6NGBznK41R84YzPuvSBzrhEps33IsQiOW9+VL6NQ9DbjQJznk/S4uRA== +"@types/dom-speech-recognition@^0.0.1": + version "0.0.1" + resolved "https://registry.yarnpkg.com/@types/dom-speech-recognition/-/dom-speech-recognition-0.0.1.tgz#e326761a04b4a49c0eec2ac7948afc1c6aa12baa" + integrity sha512-udCxb8DvjcDKfk1WTBzDsxFbLgYxmQGKrE/ricoMqHRNjSlSUCcamVTA5lIQqzY10mY5qCY0QDwBfFEwhfoDPw== + "@types/emscripten@^1.39.6": version "1.39.11" resolved "https://registry.yarnpkg.com/@types/emscripten/-/emscripten-1.39.11.tgz#8f8c40cb831a2406c0ee5b0c6e847b3bf659c2e3" @@ -4500,6 +4505,11 @@ "@types/qs" "*" "@types/serve-static" "*" +"@types/google.maps@^3.55.12": + version "3.58.1" + resolved "https://registry.yarnpkg.com/@types/google.maps/-/google.maps-3.58.1.tgz#71ce3dec44de1452f56641d2c87c7dd8ea964b4d" + integrity sha512-X9QTSvGJ0nCfMzYOnaVs/k6/4L+7F5uCS+4iUmkLEls6J9S/Phv+m/i3mDeyc49ZBgwab3EFO1HEoBY7k98EGQ== + "@types/graceful-fs@^4.1.2": version "4.1.5" resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15" @@ -4514,6 +4524,11 @@ dependencies: "@types/unist" "*" +"@types/hogan.js@^3.0.0": + version "3.0.5" + resolved "https://registry.yarnpkg.com/@types/hogan.js/-/hogan.js-3.0.5.tgz#09f5b916ad88e1975b093ab7a25a37ffc0418be5" + integrity sha512-/uRaY3HGPWyLqOyhgvW9Aa43BNnLZrNeQxl2p8wqId4UHMfPKolSB+U7BlZyO1ng7MkLnyEAItsBzCG0SDhqrA== + "@types/html-minifier-terser@^6.0.0": version "6.1.0" resolved "https://registry.yarnpkg.com/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz#4fc33a00c1d0c16987b1a20cf92d20614c55ac35" @@ -4607,6 +4622,11 @@ resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.7.tgz#63bb7d067db107cc1e457c303bc25d511febf6cb" integrity sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw== +"@types/qs@^6.5.3": + version "6.9.16" + resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.16.tgz#52bba125a07c0482d26747d5d4947a64daf8f794" + integrity sha512-7i+zxXdPD0T4cKDuxCUXJ4wHcsJLwENa6Z3dCu8cfCK743OGy5Nu1RmAGqDPsoTDINVEcdXKRvR/zre+P2Ku1A== + "@types/qs@^6.9.5": version "6.9.6" resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.6.tgz#df9c3c8b31a247ec315e6996566be3171df4b3b1" @@ -4989,6 +5009,11 @@ abab@^2.0.3, abab@^2.0.5: resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a" integrity sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q== +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + accepts@~1.3.4, accepts@~1.3.5: version "1.3.7" resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.7.tgz#531bc726517a3b2b41f850021c6cc15eaab507cd" @@ -5119,10 +5144,10 @@ ajv@^8.0.0, ajv@^8.6.0, ajv@^8.8.0: require-from-string "^2.0.2" uri-js "^4.2.2" -algoliasearch-helper@3.14.0: - version "3.14.0" - resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.14.0.tgz#2409c2591952719ab6fba1de77b3bbe5094ab85e" - integrity sha512-gXDXzsSS0YANn5dHr71CUXOo84cN4azhHKUbg71vAWnH+1JBiR4jf7to3t3JHXknXkbV0F7f055vUSBKrltHLQ== +algoliasearch-helper@3.22.5: + version "3.22.5" + resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.22.5.tgz#2fcc26814e10a121a2c2526a1b05c754061c56c0" + integrity sha512-lWvhdnc+aKOKx8jyA3bsdEgHzm/sglC4cYdMG4xSQyRiPLJVJtH/IVYZG3Hp6PkTEhQqhyVYkeP9z2IlcHJsWw== dependencies: "@algolia/events" "^4.0.1" @@ -6010,11 +6035,6 @@ cjs-module-lexer@^1.2.3: resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz#c485341ae8fd999ca4ee5af2d7a1c9ae01e0099c" integrity sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q== -classnames@^2.2.5: - version "2.3.1" - resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.3.1.tgz#dfcfa3891e306ec1dad105d0e88f4417b8535e8e" - integrity sha512-OlQdbZ7gLfGarSqxesMesDa5uz7KFbID8Kpq/SxIoNGDqY8lSYs0D+hhtBXhcdB3rcbXArFr7vlHheLk1voeNA== - clean-css@^5.2.2: version "5.3.0" resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-5.3.0.tgz#ad3d8238d5f3549e83d5f87205189494bc7cbb59" @@ -8729,6 +8749,14 @@ he@^1.2.0: resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== +hogan.js@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/hogan.js/-/hogan.js-3.0.2.tgz#4cd9e1abd4294146e7679e41d7898732b02c7bfd" + integrity sha512-RqGs4wavGYJWE07t35JQccByczmNUXQT0E12ZYV1VKYu5UiAU9lsos/yBAcf840+zrUQQxgVduCR5/B8nNtibg== + dependencies: + mkdirp "0.3.0" + nopt "1.0.10" + hoist-non-react-statics@^3.0.0: version "3.3.2" resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45" @@ -8751,6 +8779,11 @@ hpack.js@^2.1.6: readable-stream "^2.0.1" wbuf "^1.1.0" +htm@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/htm/-/htm-3.1.1.tgz#49266582be0dc66ed2235d5ea892307cc0c24b78" + integrity sha512-983Vyg8NwUE7JkZ6NmOqpCZ+sh1bKv2iYTlUkzlWmA5JD2acKoxd4KVxbMmxX/85mtfdnDmTFoNKcg5DGAvxNQ== + html-encoding-sniffer@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3" @@ -8994,6 +9027,31 @@ ini@^1.3.5: resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== +instantsearch-ui-components@0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/instantsearch-ui-components/-/instantsearch-ui-components-0.9.0.tgz#f7ae71fe623d18eff32b73071749f31826cb7b89" + integrity sha512-ugQ+XdPx3i3Sxu+woRo6tPE0Fz/kWd4KblTUfZD1TZZBsm/8qFvcbg5dVBDvXX9v7ntoyugXCzC/XCZMzrSkig== + dependencies: + "@babel/runtime" "^7.1.2" + +instantsearch.js@4.75.0: + version "4.75.0" + resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.75.0.tgz#c7dfba45ca479dd57a1f63b54cf744cd2a1b562f" + integrity sha512-sP2bCNORXb2Bu7IPZdUXmvSOA7JMzZ3iRl1sFsaBu0qP+vs7SclKs9GjkRBxHmJ8GeMfJGGjHuFEIAaiTwEVOA== + dependencies: + "@algolia/events" "^4.0.1" + "@types/dom-speech-recognition" "^0.0.1" + "@types/google.maps" "^3.55.12" + "@types/hogan.js" "^3.0.0" + "@types/qs" "^6.5.3" + algoliasearch-helper "3.22.5" + hogan.js "^3.0.2" + htm "^3.0.0" + instantsearch-ui-components "0.9.0" + preact "^10.10.0" + qs "^6.5.1 < 6.10" + search-insights "^2.15.0" + internal-slot@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.3.tgz#7347e307deeea2faac2ac6205d4bc7d34967f59c" @@ -10568,6 +10626,11 @@ minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6, minimist@^1.2.8: resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.0.tgz#b545f84af94e567386770159302ca113469c80b8" integrity sha512-oGZRv2OT1lO2UF1zUcwdTb3wqUwI0kBGTgt/T7OdSj6M6N5m3o5uPf0AIW6lVxGGoiWUR7e2AwTE+xiwK8WQig== +mkdirp@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.3.0.tgz#1bbf5ab1ba827af23575143490426455f481fe1e" + integrity sha512-OHsdUcVAQ6pOtg5JYWpCBo9W/GySVuwvP9hueRMW7UqshC0tbfzLv8wjySTPm3tfUZ/21CE9E1pJagOA91Pxew== + mkdirp@~0.5.1: version "0.5.5" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" @@ -10663,6 +10726,13 @@ node-releases@^2.0.5: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.5.tgz#280ed5bc3eba0d96ce44897d8aee478bfb3d9666" integrity sha512-U9h1NLROZTq9uE1SNffn6WuPDg8icmi3ns4rEl/oTfIle4iLjTliCzgTsbaIFMq/Xn078/lfY/BL0GWZ+psK4Q== +nopt@1.0.10: + version "1.0.10" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee" + integrity sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg== + dependencies: + abbrev "1" + normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" @@ -11703,6 +11773,11 @@ postcss@^7.0.35, postcss@^8.3.5, postcss@^8.4.14, postcss@^8.4.31, postcss@^8.4. picocolors "^1.0.0" source-map-js "^1.2.0" +preact@^10.10.0: + version "10.24.2" + resolved "https://registry.yarnpkg.com/preact/-/preact-10.24.2.tgz#42179771d3b06e7adb884e3f8127ddd3d99b78f6" + integrity sha512-1cSoF0aCC8uaARATfrlz4VCBqE8LwZwRfLgkxJOQwAlQt6ayTmi0D9OF7nXid1POI5SZidFuG9CnlXbDfLqY/Q== + prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" @@ -11799,7 +11874,7 @@ prompts@^2.0.1, prompts@^2.4.2: kleur "^3.0.3" sisteransi "^1.0.5" -prop-types@^15.6.2, prop-types@^15.7.2, prop-types@^15.8.1: +prop-types@^15.7.2, prop-types@^15.8.1: version "15.8.1" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg== @@ -11875,6 +11950,11 @@ qs@^6.10.0: dependencies: side-channel "^1.0.6" +"qs@^6.5.1 < 6.10": + version "6.9.7" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.7.tgz#4610846871485e1e048f44ae3b94033f0e675afe" + integrity sha512-IhMFgUmuNpyRfxA90umL7ByLlgRXu6tIfKPpF5TmcfRLlLCckfP/g3IQmju6jjpu+Hh8rA+2p6A27ZSPOOHdKw== + querystring@0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" @@ -12029,32 +12109,25 @@ react-error-overlay@^6.0.11: resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.11.tgz#92835de5841c5cf08ba00ddd2d677b6d17ff9adb" integrity sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg== -react-fast-compare@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.0.tgz#641a9da81b6a6320f270e89724fb45a0b39e43bb" - integrity sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA== - -react-instantsearch-core@6.40.4: - version "6.40.4" - resolved "https://registry.yarnpkg.com/react-instantsearch-core/-/react-instantsearch-core-6.40.4.tgz#74feaa94436a20df91febe64b7d8ef0f7b3e657a" - integrity sha512-sEOgRU2MKL8edO85sNHvKlZ5yq9OFw++CDsEqYpHJvbWLE/2J2N49XAUY90kior09I2kBkbgowBbov+Py1AubQ== +react-instantsearch-core@7.13.3: + version "7.13.3" + resolved "https://registry.yarnpkg.com/react-instantsearch-core/-/react-instantsearch-core-7.13.3.tgz#a8cdf076483fff27db98bd3bd98474a962975e47" + integrity sha512-eljDLrdHMw8Wbwpqc/5Sj77o+P6NWqlFuBSL0MMbBccXpbt4UfEw5Gf64AtwpO+oYF4L0BKOQpVEm6+poLd9Kw== dependencies: "@babel/runtime" "^7.1.2" - algoliasearch-helper "3.14.0" - prop-types "^15.6.2" - react-fast-compare "^3.0.0" + algoliasearch-helper "3.22.5" + instantsearch.js "4.75.0" + use-sync-external-store "^1.0.0" -react-instantsearch-dom@^6.40.4: - version "6.40.4" - resolved "https://registry.yarnpkg.com/react-instantsearch-dom/-/react-instantsearch-dom-6.40.4.tgz#9e56bb66626a66da523bd343e2cb5cd6362efbe4" - integrity sha512-Oy8EKEOg/dfTE8tHc7GZRlzUdbZY4Mxas1x2OtvSNui+YAbIWafIf1g98iOGyVTB2qI5WH91YyUJTLPNfLrs6Q== +react-instantsearch@^7.13.3: + version "7.13.3" + resolved "https://registry.yarnpkg.com/react-instantsearch/-/react-instantsearch-7.13.3.tgz#253cfac564bfa1f99da51cc2806c562f17305c27" + integrity sha512-an3nuqBELpXQb2fs016YgcosjmAfg24aR5eRxZjYDH+Sa3H/GnhzkYqyaLUpEVwGu5uDJvauHIBGZZKrrQ/lvw== dependencies: "@babel/runtime" "^7.1.2" - algoliasearch-helper "3.14.0" - classnames "^2.2.5" - prop-types "^15.6.2" - react-fast-compare "^3.0.0" - react-instantsearch-core "6.40.4" + instantsearch-ui-components "0.9.0" + instantsearch.js "4.75.0" + react-instantsearch-core "7.13.3" react-is@18.1.0: version "18.1.0" @@ -12705,6 +12778,11 @@ schema-utils@^4.0.0: ajv-formats "^2.1.1" ajv-keywords "^5.0.0" +search-insights@^2.15.0: + version "2.17.2" + resolved "https://registry.yarnpkg.com/search-insights/-/search-insights-2.17.2.tgz#d13b2cabd44e15ade8f85f1c3b65c8c02138629a" + integrity sha512-zFNpOpUO+tY2D85KrxJ+aqwnIfdEGi06UH2+xEb+Bp9Mwznmauqc9djbnBibJO5mpfUPPa8st6Sx65+vbeO45g== + select-hose@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" @@ -14053,6 +14131,11 @@ use-sidecar@^1.1.2: detect-node-es "^1.1.0" tslib "^2.0.0" +use-sync-external-store@^1.0.0: + version "1.2.2" + resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.2.tgz#c3b6390f3a30eba13200d2302dcdf1e7b57b2ef9" + integrity sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw== + util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"