diff --git a/demos/react/ecommerce/README.md b/demos/react/ecommerce/README.md index 62ef32a2..c12851a2 100644 --- a/demos/react/ecommerce/README.md +++ b/demos/react/ecommerce/README.md @@ -1,4 +1,4 @@ -# Algolia React InstantSearch Hooks | E-commerce demo +# Algolia React InstantSearch | E-commerce demo _This project was generated with [create-instantsearch-app](https://github.com/algolia/instantsearch/tree/master/packages/create-instantsearch-app) by [Algolia](https://algolia.com)._ diff --git a/demos/react/ecommerce/index.html b/demos/react/ecommerce/index.html index 2bc3f39d..547041ab 100644 --- a/demos/react/ecommerce/index.html +++ b/demos/react/ecommerce/index.html @@ -27,7 +27,7 @@ - Algolia React InstantSearch Hooks | E-commerce demo + Algolia React InstantSearch | E-commerce demo diff --git a/demos/react/ecommerce/package.json b/demos/react/ecommerce/package.json index 485aa471..af2023fd 100644 --- a/demos/react/ecommerce/package.json +++ b/demos/react/ecommerce/package.json @@ -10,7 +10,7 @@ "algoliasearch": "4.17.1", "react": "18.1.0", "react-dom": "18.1.0", - "react-instantsearch-hooks-web": "6.44.1" + "react-instantsearch": "^7.0.0" }, "devDependencies": { "@types/react": "18.2.7", diff --git a/demos/react/ecommerce/src/App.tsx b/demos/react/ecommerce/src/App.tsx index e76e62c0..c959042f 100644 --- a/demos/react/ecommerce/src/App.tsx +++ b/demos/react/ecommerce/src/App.tsx @@ -8,7 +8,7 @@ import { RefinementList, SearchBox, Stats, -} from 'react-instantsearch-hooks-web' +} from 'react-instantsearch' import { Content } from './Content' import { Panel } from './Panel' diff --git a/demos/react/ecommerce/src/Content.tsx b/demos/react/ecommerce/src/Content.tsx index 9506f273..eecda990 100644 --- a/demos/react/ecommerce/src/Content.tsx +++ b/demos/react/ecommerce/src/Content.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { Hits, useInstantSearch } from 'react-instantsearch-hooks-web' +import { Hits, useInstantSearch } from 'react-instantsearch' import { Hit } from './Hit' export function Content() { diff --git a/demos/react/ecommerce/src/Hit.tsx b/demos/react/ecommerce/src/Hit.tsx index 18ff7ec6..162f56f0 100644 --- a/demos/react/ecommerce/src/Hit.tsx +++ b/demos/react/ecommerce/src/Hit.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { Highlight, Snippet } from 'react-instantsearch-hooks-web' +import { Highlight, Snippet } from 'react-instantsearch' import type { Hit } from 'instantsearch.js' type HitProps = { diff --git a/demos/react/ecommerce/yarn.lock b/demos/react/ecommerce/yarn.lock index 40174564..352ab9c3 100644 --- a/demos/react/ecommerce/yarn.lock +++ b/demos/react/ecommerce/yarn.lock @@ -919,14 +919,14 @@ resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.7.tgz#63bb7d067db107cc1e457c303bc25d511febf6cb" integrity sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw== -"@types/react-dom@^18.2.4": +"@types/react-dom@18.2.4": version "18.2.4" resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.4.tgz#13f25bfbf4e404d26f62ac6e406591451acba9e0" integrity sha512-G2mHoTMTL4yoydITgOGwWdWMVd8sNgyEP85xVmMKAPUBwQWm9wBPQUmvbeF4V3WBY1P7mmL4BkjQ0SqUpf1snw== dependencies: "@types/react" "*" -"@types/react@*", "@types/react@^18.2.7": +"@types/react@*", "@types/react@18.2.7": version "18.2.7" resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.7.tgz#dfb4518042a3117a045b8c222316f83414a783b3" integrity sha512-ojrXpSH2XFCmHm7Jy3q44nXDyN54+EYKP2lBhJ2bqfyPj6cIUW/FZW/Csdia34NQgq7KYcAlHi5184m4X88+yw== @@ -950,10 +950,10 @@ abortcontroller-polyfill@^1.1.9: resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.5.tgz#6738495f4e901fbb57b6c0611d0c75f76c485bed" integrity sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ== -algoliasearch-helper@^3.13.0: - version "3.13.0" - resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.13.0.tgz#1ccca7056fd27c2b0b5c92dd5c0abf4314bec3b8" - integrity sha512-kV3c1jMQCvkARtGsSDvAwuht4PAMSsQILqPiH4WFiARoa3jXJ/r1TQoBWAjWyWF48rsNYCv7kzxgB4LTxrvvuw== +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== dependencies: "@algolia/events" "^4.0.1" @@ -1275,10 +1275,10 @@ import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" -instantsearch.js@4.56.1: - version "4.56.1" - resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.56.1.tgz#ddff17fea5ed8d8a0e14e66a977f107f7143adef" - integrity sha512-4BQdnMEDWP9IRF12xninO/yR1f7F+mE935X0eVKuhUqitZF7GvUsL93MysXxHyPJnrbC6o0Aofc3kNcTKteKWw== +instantsearch.js@4.56.8: + version "4.56.8" + resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.56.8.tgz#c417c68a792a4b7d6cc866cdb059d828799e84da" + integrity sha512-40DJ5l70ZzVzWPK3qrHTKlJLaHGq1PRZpzfL6281P2mz8G19WOHQHKAP4Zh6a4lOZaRtJQUiPjQwqCHSurXZ5g== dependencies: "@algolia/events" "^4.0.1" "@algolia/ui-components-highlight-vdom" "^1.2.1" @@ -1287,7 +1287,7 @@ instantsearch.js@4.56.1: "@types/google.maps" "^3.45.3" "@types/hogan.js" "^3.0.0" "@types/qs" "^6.5.3" - algoliasearch-helper "^3.13.0" + algoliasearch-helper "3.14.0" hogan.js "^3.0.2" htm "^3.0.0" preact "^10.10.0" @@ -1618,7 +1618,7 @@ preact@^10.10.0: resolved "https://registry.yarnpkg.com/preact/-/preact-10.15.1.tgz#a1de60c9fc0c79a522d969c65dcaddc5d994eede" integrity sha512-qs2ansoQEwzNiV5eAcRT1p1EC/dmEzaATVDJNiB3g2sRDWdA7b7MurXdJjB2+/WQktGWZwxvDrnuRFbWuIr64g== -process@^0.11.10: +process@0.11.10: version "0.11.10" resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" integrity sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A== @@ -1641,24 +1641,24 @@ react-error-overlay@6.0.9: resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.9.tgz#3c743010c9359608c375ecd6bc76f35d93995b0a" integrity sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew== -react-instantsearch-hooks-web@6.44.1: - version "6.44.1" - resolved "https://registry.yarnpkg.com/react-instantsearch-hooks-web/-/react-instantsearch-hooks-web-6.44.1.tgz#79706bf83fd70cef1c5cd534fcafc2eba4e65b3b" - integrity sha512-QZwBakRfBEAhla18YMk2te988p7BN6DA2G6DpXKvOCUSBUR72Lp5+DH8OAO0M7jGtH9xzFcCWVMD50hKhK8yaQ== +react-instantsearch-core@7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/react-instantsearch-core/-/react-instantsearch-core-7.0.0.tgz#68037782217eed19f91138e0325a9b171ce5d49a" + integrity sha512-O/ThoTFGMdIWX0EHJ+jjpiB48Bk1DqP9KxpXCGYdk52Gg/UFWB+0f6apJqGULZBgL81qYO7v4YGRz2Caawgngw== dependencies: "@babel/runtime" "^7.1.2" - instantsearch.js "4.56.1" - react-instantsearch-hooks "6.44.1" + algoliasearch-helper "3.14.0" + instantsearch.js "4.56.8" + use-sync-external-store "^1.0.0" -react-instantsearch-hooks@6.44.1: - version "6.44.1" - resolved "https://registry.yarnpkg.com/react-instantsearch-hooks/-/react-instantsearch-hooks-6.44.1.tgz#10483bd27b0c399d3297d055421572914694e653" - integrity sha512-2WZd+Q8iA8J2tSvxNhGg7FOHgng+IE34tfIksoGyxjn6N7AW42VGdL0Wdpm+J98eJemCEiJ3/seTJaOHq3a+YA== +react-instantsearch@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/react-instantsearch/-/react-instantsearch-7.0.0.tgz#93cf4831fd1a7a82b282ec7b1bb93fcb366b36db" + integrity sha512-GulJ8QFj6LELlzwm09Ec0c7NFJdcZl9DCizWevzCss7Dwdkh0Nmo6WQZ99KHIFo5opL+fDQn3OckIUjIP5vGvQ== dependencies: "@babel/runtime" "^7.1.2" - algoliasearch-helper "^3.13.0" - instantsearch.js "4.56.1" - use-sync-external-store "^1.0.0" + instantsearch.js "4.56.8" + react-instantsearch-core "7.0.0" react-refresh@^0.9.0: version "0.9.0" @@ -1770,7 +1770,7 @@ type-fest@^0.20.2: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== -typescript@^5.0.4: +typescript@5.0.4: version "5.0.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b" integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw== diff --git a/demos/react/geo/README.md b/demos/react/geo/README.md index a19c5f41..af2d6c20 100644 --- a/demos/react/geo/README.md +++ b/demos/react/geo/README.md @@ -1,4 +1,4 @@ -# Algolia React InstantSearch Hooks | Geo demo +# Algolia React InstantSearch | Geo demo _This project was generated with [create-instantsearch-app](https://github.com/algolia/instantsearch/tree/master/packages/create-instantsearch-app) by [Algolia](https://algolia.com)._ diff --git a/demos/react/geo/index.html b/demos/react/geo/index.html index 8013aac8..d91a560c 100644 --- a/demos/react/geo/index.html +++ b/demos/react/geo/index.html @@ -34,7 +34,7 @@ - Algolia React InstantSearch Hooks | Geo Search demo + Algolia React InstantSearch | Geo Search demo diff --git a/demos/react/geo/package.json b/demos/react/geo/package.json index ed83c238..5dbbd9a8 100644 --- a/demos/react/geo/package.json +++ b/demos/react/geo/package.json @@ -11,7 +11,7 @@ "leaflet": "1.9.4", "react": "18.1.0", "react-dom": "18.1.0", - "react-instantsearch-hooks-web": "6.44.1", + "react-instantsearch": "^7.0.0", "react-leaflet": "4.2.1" }, "devDependencies": { diff --git a/demos/react/geo/src/Airports.tsx b/demos/react/geo/src/Airports.tsx index 3b9f87f1..7c45f72d 100644 --- a/demos/react/geo/src/Airports.tsx +++ b/demos/react/geo/src/Airports.tsx @@ -1,8 +1,7 @@ import React, { useState } from 'react' import { Marker, Popup, useMapEvents } from 'react-leaflet' import { DivIcon } from 'leaflet' -import { useSearchBox } from 'react-instantsearch-hooks-web' -import { useGeoSearch } from './useGeoSearch' +import { useGeoSearch, useSearchBox } from 'react-instantsearch' import type { GeoHit } from 'instantsearch.js/es/connectors/geo-search/connectGeoSearch' diff --git a/demos/react/geo/src/App.tsx b/demos/react/geo/src/App.tsx index 07d6593c..5e0e54fa 100644 --- a/demos/react/geo/src/App.tsx +++ b/demos/react/geo/src/App.tsx @@ -1,11 +1,6 @@ import React from 'react' import algoliasearch from 'algoliasearch/lite' -import { - Configure, - InstantSearch, - SearchBox, - Stats, -} from 'react-instantsearch-hooks-web' +import { Configure, InstantSearch, SearchBox, Stats } from 'react-instantsearch' import { Map } from './Map' import { Content } from './Content' diff --git a/demos/react/geo/src/Content.tsx b/demos/react/geo/src/Content.tsx index 9506f273..eecda990 100644 --- a/demos/react/geo/src/Content.tsx +++ b/demos/react/geo/src/Content.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { Hits, useInstantSearch } from 'react-instantsearch-hooks-web' +import { Hits, useInstantSearch } from 'react-instantsearch' import { Hit } from './Hit' export function Content() { diff --git a/demos/react/geo/src/Hit.tsx b/demos/react/geo/src/Hit.tsx index 28c09efa..7ce6e006 100644 --- a/demos/react/geo/src/Hit.tsx +++ b/demos/react/geo/src/Hit.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { Highlight } from 'react-instantsearch-hooks-web' +import { Highlight } from 'react-instantsearch' import type { Hit as BaseHit } from 'instantsearch.js' import { Airport } from './Airports' diff --git a/demos/react/geo/src/useGeoSearch.ts b/demos/react/geo/src/useGeoSearch.ts deleted file mode 100644 index 1e8980ed..00000000 --- a/demos/react/geo/src/useGeoSearch.ts +++ /dev/null @@ -1,21 +0,0 @@ -import connectGeoSearch, { - GeoSearchConnector, -} from 'instantsearch.js/es/connectors/geo-search/connectGeoSearch'; -import { useConnector } from 'react-instantsearch-hooks-web'; - -import type { - GeoSearchConnectorParams, - GeoSearchWidgetDescription, -} from 'instantsearch.js/es/connectors/geo-search/connectGeoSearch'; -import { BaseHit } from 'instantsearch.js'; - -type UseGeoSearchProps = GeoSearchConnectorParams; - -export function useGeoSearch( - props?: UseGeoSearchProps -) { - return useConnector< - GeoSearchConnectorParams, - GeoSearchWidgetDescription - >(connectGeoSearch as GeoSearchConnector, props); -} diff --git a/demos/react/geo/yarn.lock b/demos/react/geo/yarn.lock index 0b08fa94..3a9cfa46 100644 --- a/demos/react/geo/yarn.lock +++ b/demos/react/geo/yarn.lock @@ -967,10 +967,10 @@ abortcontroller-polyfill@^1.1.9: resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.5.tgz#6738495f4e901fbb57b6c0611d0c75f76c485bed" integrity sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ== -algoliasearch-helper@^3.13.0: - version "3.13.0" - resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.13.0.tgz#1ccca7056fd27c2b0b5c92dd5c0abf4314bec3b8" - integrity sha512-kV3c1jMQCvkARtGsSDvAwuht4PAMSsQILqPiH4WFiARoa3jXJ/r1TQoBWAjWyWF48rsNYCv7kzxgB4LTxrvvuw== +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== dependencies: "@algolia/events" "^4.0.1" @@ -1292,10 +1292,10 @@ import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" -instantsearch.js@4.56.1: - version "4.56.1" - resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.56.1.tgz#ddff17fea5ed8d8a0e14e66a977f107f7143adef" - integrity sha512-4BQdnMEDWP9IRF12xninO/yR1f7F+mE935X0eVKuhUqitZF7GvUsL93MysXxHyPJnrbC6o0Aofc3kNcTKteKWw== +instantsearch.js@4.56.8: + version "4.56.8" + resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.56.8.tgz#c417c68a792a4b7d6cc866cdb059d828799e84da" + integrity sha512-40DJ5l70ZzVzWPK3qrHTKlJLaHGq1PRZpzfL6281P2mz8G19WOHQHKAP4Zh6a4lOZaRtJQUiPjQwqCHSurXZ5g== dependencies: "@algolia/events" "^4.0.1" "@algolia/ui-components-highlight-vdom" "^1.2.1" @@ -1304,7 +1304,7 @@ instantsearch.js@4.56.1: "@types/google.maps" "^3.45.3" "@types/hogan.js" "^3.0.0" "@types/qs" "^6.5.3" - algoliasearch-helper "^3.13.0" + algoliasearch-helper "3.14.0" hogan.js "^3.0.2" htm "^3.0.0" preact "^10.10.0" @@ -1663,24 +1663,24 @@ react-error-overlay@6.0.9: resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.9.tgz#3c743010c9359608c375ecd6bc76f35d93995b0a" integrity sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew== -react-instantsearch-hooks-web@6.44.1: - version "6.44.1" - resolved "https://registry.yarnpkg.com/react-instantsearch-hooks-web/-/react-instantsearch-hooks-web-6.44.1.tgz#79706bf83fd70cef1c5cd534fcafc2eba4e65b3b" - integrity sha512-QZwBakRfBEAhla18YMk2te988p7BN6DA2G6DpXKvOCUSBUR72Lp5+DH8OAO0M7jGtH9xzFcCWVMD50hKhK8yaQ== +react-instantsearch-core@7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/react-instantsearch-core/-/react-instantsearch-core-7.0.0.tgz#68037782217eed19f91138e0325a9b171ce5d49a" + integrity sha512-O/ThoTFGMdIWX0EHJ+jjpiB48Bk1DqP9KxpXCGYdk52Gg/UFWB+0f6apJqGULZBgL81qYO7v4YGRz2Caawgngw== dependencies: "@babel/runtime" "^7.1.2" - instantsearch.js "4.56.1" - react-instantsearch-hooks "6.44.1" + algoliasearch-helper "3.14.0" + instantsearch.js "4.56.8" + use-sync-external-store "^1.0.0" -react-instantsearch-hooks@6.44.1: - version "6.44.1" - resolved "https://registry.yarnpkg.com/react-instantsearch-hooks/-/react-instantsearch-hooks-6.44.1.tgz#10483bd27b0c399d3297d055421572914694e653" - integrity sha512-2WZd+Q8iA8J2tSvxNhGg7FOHgng+IE34tfIksoGyxjn6N7AW42VGdL0Wdpm+J98eJemCEiJ3/seTJaOHq3a+YA== +react-instantsearch@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/react-instantsearch/-/react-instantsearch-7.0.0.tgz#93cf4831fd1a7a82b282ec7b1bb93fcb366b36db" + integrity sha512-GulJ8QFj6LELlzwm09Ec0c7NFJdcZl9DCizWevzCss7Dwdkh0Nmo6WQZ99KHIFo5opL+fDQn3OckIUjIP5vGvQ== dependencies: "@babel/runtime" "^7.1.2" - algoliasearch-helper "^3.13.0" - instantsearch.js "4.56.1" - use-sync-external-store "^1.0.0" + instantsearch.js "4.56.8" + react-instantsearch-core "7.0.0" react-leaflet@4.2.1: version "4.2.1" diff --git a/demos/react/media/README.md b/demos/react/media/README.md index 7cc56fbc..b9f654f7 100644 --- a/demos/react/media/README.md +++ b/demos/react/media/README.md @@ -1,4 +1,4 @@ -# Algolia React InstantSearch Hooks | Media demo +# Algolia React InstantSearch | Media demo _This project was generated with [create-instantsearch-app](https://github.com/algolia/instantsearch/tree/master/packages/create-instantsearch-app) by [Algolia](https://algolia.com)._ diff --git a/demos/react/media/index.html b/demos/react/media/index.html index d9bb2530..738d0032 100644 --- a/demos/react/media/index.html +++ b/demos/react/media/index.html @@ -27,7 +27,7 @@ - Algolia React InstantSearch Hooks | Media demo + Algolia React InstantSearch | Media demo diff --git a/demos/react/media/package.json b/demos/react/media/package.json index c54de17f..2a0e0cc0 100644 --- a/demos/react/media/package.json +++ b/demos/react/media/package.json @@ -10,7 +10,7 @@ "algoliasearch": "4.17.1", "react": "18.1.0", "react-dom": "18.1.0", - "react-instantsearch-hooks-web": "6.44.1" + "react-instantsearch": "^7.0.0" }, "devDependencies": { "@types/react": "18.2.7", diff --git a/demos/react/media/src/App.tsx b/demos/react/media/src/App.tsx index 13972c20..25194205 100644 --- a/demos/react/media/src/App.tsx +++ b/demos/react/media/src/App.tsx @@ -7,7 +7,7 @@ import { RefinementList, SearchBox, Stats, -} from 'react-instantsearch-hooks-web' +} from 'react-instantsearch' import { Content } from './Content' import { Panel } from './Panel' diff --git a/demos/react/media/src/Content.tsx b/demos/react/media/src/Content.tsx index 9506f273..eecda990 100644 --- a/demos/react/media/src/Content.tsx +++ b/demos/react/media/src/Content.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { Hits, useInstantSearch } from 'react-instantsearch-hooks-web' +import { Hits, useInstantSearch } from 'react-instantsearch' import { Hit } from './Hit' export function Content() { diff --git a/demos/react/media/src/Hit.tsx b/demos/react/media/src/Hit.tsx index 40a3961e..f260cb98 100644 --- a/demos/react/media/src/Hit.tsx +++ b/demos/react/media/src/Hit.tsx @@ -1,5 +1,5 @@ import React, { useState } from 'react' -import { Highlight, Snippet } from 'react-instantsearch-hooks-web' +import { Highlight, Snippet } from 'react-instantsearch' import type { Hit } from 'instantsearch.js' type HitProps = { diff --git a/demos/react/media/yarn.lock b/demos/react/media/yarn.lock index 40174564..a2e542f1 100644 --- a/demos/react/media/yarn.lock +++ b/demos/react/media/yarn.lock @@ -919,14 +919,14 @@ resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.7.tgz#63bb7d067db107cc1e457c303bc25d511febf6cb" integrity sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw== -"@types/react-dom@^18.2.4": +"@types/react-dom@18.2.4": version "18.2.4" resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.4.tgz#13f25bfbf4e404d26f62ac6e406591451acba9e0" integrity sha512-G2mHoTMTL4yoydITgOGwWdWMVd8sNgyEP85xVmMKAPUBwQWm9wBPQUmvbeF4V3WBY1P7mmL4BkjQ0SqUpf1snw== dependencies: "@types/react" "*" -"@types/react@*", "@types/react@^18.2.7": +"@types/react@*", "@types/react@18.2.7": version "18.2.7" resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.7.tgz#dfb4518042a3117a045b8c222316f83414a783b3" integrity sha512-ojrXpSH2XFCmHm7Jy3q44nXDyN54+EYKP2lBhJ2bqfyPj6cIUW/FZW/Csdia34NQgq7KYcAlHi5184m4X88+yw== @@ -950,10 +950,10 @@ abortcontroller-polyfill@^1.1.9: resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.5.tgz#6738495f4e901fbb57b6c0611d0c75f76c485bed" integrity sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ== -algoliasearch-helper@^3.13.0: - version "3.13.0" - resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.13.0.tgz#1ccca7056fd27c2b0b5c92dd5c0abf4314bec3b8" - integrity sha512-kV3c1jMQCvkARtGsSDvAwuht4PAMSsQILqPiH4WFiARoa3jXJ/r1TQoBWAjWyWF48rsNYCv7kzxgB4LTxrvvuw== +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== dependencies: "@algolia/events" "^4.0.1" @@ -1275,10 +1275,10 @@ import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" -instantsearch.js@4.56.1: - version "4.56.1" - resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.56.1.tgz#ddff17fea5ed8d8a0e14e66a977f107f7143adef" - integrity sha512-4BQdnMEDWP9IRF12xninO/yR1f7F+mE935X0eVKuhUqitZF7GvUsL93MysXxHyPJnrbC6o0Aofc3kNcTKteKWw== +instantsearch.js@4.56.8: + version "4.56.8" + resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.56.8.tgz#c417c68a792a4b7d6cc866cdb059d828799e84da" + integrity sha512-40DJ5l70ZzVzWPK3qrHTKlJLaHGq1PRZpzfL6281P2mz8G19WOHQHKAP4Zh6a4lOZaRtJQUiPjQwqCHSurXZ5g== dependencies: "@algolia/events" "^4.0.1" "@algolia/ui-components-highlight-vdom" "^1.2.1" @@ -1287,7 +1287,7 @@ instantsearch.js@4.56.1: "@types/google.maps" "^3.45.3" "@types/hogan.js" "^3.0.0" "@types/qs" "^6.5.3" - algoliasearch-helper "^3.13.0" + algoliasearch-helper "3.14.0" hogan.js "^3.0.2" htm "^3.0.0" preact "^10.10.0" @@ -1618,7 +1618,7 @@ preact@^10.10.0: resolved "https://registry.yarnpkg.com/preact/-/preact-10.15.1.tgz#a1de60c9fc0c79a522d969c65dcaddc5d994eede" integrity sha512-qs2ansoQEwzNiV5eAcRT1p1EC/dmEzaATVDJNiB3g2sRDWdA7b7MurXdJjB2+/WQktGWZwxvDrnuRFbWuIr64g== -process@^0.11.10: +process@0.11.10: version "0.11.10" resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" integrity sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A== @@ -1641,24 +1641,24 @@ react-error-overlay@6.0.9: resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.9.tgz#3c743010c9359608c375ecd6bc76f35d93995b0a" integrity sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew== -react-instantsearch-hooks-web@6.44.1: - version "6.44.1" - resolved "https://registry.yarnpkg.com/react-instantsearch-hooks-web/-/react-instantsearch-hooks-web-6.44.1.tgz#79706bf83fd70cef1c5cd534fcafc2eba4e65b3b" - integrity sha512-QZwBakRfBEAhla18YMk2te988p7BN6DA2G6DpXKvOCUSBUR72Lp5+DH8OAO0M7jGtH9xzFcCWVMD50hKhK8yaQ== +react-instantsearch-core@7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/react-instantsearch-core/-/react-instantsearch-core-7.0.0.tgz#68037782217eed19f91138e0325a9b171ce5d49a" + integrity sha512-O/ThoTFGMdIWX0EHJ+jjpiB48Bk1DqP9KxpXCGYdk52Gg/UFWB+0f6apJqGULZBgL81qYO7v4YGRz2Caawgngw== dependencies: "@babel/runtime" "^7.1.2" - instantsearch.js "4.56.1" - react-instantsearch-hooks "6.44.1" + algoliasearch-helper "3.14.0" + instantsearch.js "4.56.8" + use-sync-external-store "^1.0.0" -react-instantsearch-hooks@6.44.1: - version "6.44.1" - resolved "https://registry.yarnpkg.com/react-instantsearch-hooks/-/react-instantsearch-hooks-6.44.1.tgz#10483bd27b0c399d3297d055421572914694e653" - integrity sha512-2WZd+Q8iA8J2tSvxNhGg7FOHgng+IE34tfIksoGyxjn6N7AW42VGdL0Wdpm+J98eJemCEiJ3/seTJaOHq3a+YA== +react-instantsearch@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/react-instantsearch/-/react-instantsearch-7.0.0.tgz#93cf4831fd1a7a82b282ec7b1bb93fcb366b36db" + integrity sha512-GulJ8QFj6LELlzwm09Ec0c7NFJdcZl9DCizWevzCss7Dwdkh0Nmo6WQZ99KHIFo5opL+fDQn3OckIUjIP5vGvQ== dependencies: "@babel/runtime" "^7.1.2" - algoliasearch-helper "^3.13.0" - instantsearch.js "4.56.1" - use-sync-external-store "^1.0.0" + instantsearch.js "4.56.8" + react-instantsearch-core "7.0.0" react-refresh@^0.9.0: version "0.9.0" diff --git a/demos/react/saas/README.md b/demos/react/saas/README.md index 1dd11408..cb053bbe 100644 --- a/demos/react/saas/README.md +++ b/demos/react/saas/README.md @@ -1,4 +1,4 @@ -# Algolia React InstantSearch Hooks | SaaS demo +# Algolia React InstantSearch | SaaS demo _This project was generated with [create-instantsearch-app](https://github.com/algolia/instantsearch/tree/master/packages/create-instantsearch-app) by [Algolia](https://algolia.com)._ diff --git a/demos/react/saas/index.html b/demos/react/saas/index.html index 91118e7f..3e18ab67 100644 --- a/demos/react/saas/index.html +++ b/demos/react/saas/index.html @@ -27,7 +27,7 @@ - Algolia React InstantSearch Hooks | SaaS demo + Algolia React InstantSearch | SaaS demo diff --git a/demos/react/saas/package.json b/demos/react/saas/package.json index 00df3f08..d7185afb 100644 --- a/demos/react/saas/package.json +++ b/demos/react/saas/package.json @@ -10,7 +10,7 @@ "algoliasearch": "4.17.1", "react": "18.1.0", "react-dom": "18.1.0", - "react-instantsearch-hooks-web": "6.44.1" + "react-instantsearch": "^7.0.0" }, "devDependencies": { "@types/react": "18.2.7", diff --git a/demos/react/saas/src/App.tsx b/demos/react/saas/src/App.tsx index 16a667f1..2798fd06 100644 --- a/demos/react/saas/src/App.tsx +++ b/demos/react/saas/src/App.tsx @@ -6,7 +6,7 @@ import { RefinementList, SearchBox, Stats, -} from 'react-instantsearch-hooks-web' +} from 'react-instantsearch' import { Content } from './Content' import { Panel } from './Panel' diff --git a/demos/react/saas/src/Content.tsx b/demos/react/saas/src/Content.tsx index 2931f790..5d7b9fc3 100644 --- a/demos/react/saas/src/Content.tsx +++ b/demos/react/saas/src/Content.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { useInstantSearch } from 'react-instantsearch-hooks-web' +import { useInstantSearch } from 'react-instantsearch' import { Hits } from './Hits' export function Content() { diff --git a/demos/react/saas/src/Hits.tsx b/demos/react/saas/src/Hits.tsx index e85f0c2b..8b196ba5 100644 --- a/demos/react/saas/src/Hits.tsx +++ b/demos/react/saas/src/Hits.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { Highlight, useHits } from 'react-instantsearch-hooks-web' +import { Highlight, useHits } from 'react-instantsearch' import type { Hit as BaseHit } from 'instantsearch.js' const data = { diff --git a/demos/react/saas/yarn.lock b/demos/react/saas/yarn.lock index 40174564..352ab9c3 100644 --- a/demos/react/saas/yarn.lock +++ b/demos/react/saas/yarn.lock @@ -919,14 +919,14 @@ resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.7.tgz#63bb7d067db107cc1e457c303bc25d511febf6cb" integrity sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw== -"@types/react-dom@^18.2.4": +"@types/react-dom@18.2.4": version "18.2.4" resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.2.4.tgz#13f25bfbf4e404d26f62ac6e406591451acba9e0" integrity sha512-G2mHoTMTL4yoydITgOGwWdWMVd8sNgyEP85xVmMKAPUBwQWm9wBPQUmvbeF4V3WBY1P7mmL4BkjQ0SqUpf1snw== dependencies: "@types/react" "*" -"@types/react@*", "@types/react@^18.2.7": +"@types/react@*", "@types/react@18.2.7": version "18.2.7" resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.7.tgz#dfb4518042a3117a045b8c222316f83414a783b3" integrity sha512-ojrXpSH2XFCmHm7Jy3q44nXDyN54+EYKP2lBhJ2bqfyPj6cIUW/FZW/Csdia34NQgq7KYcAlHi5184m4X88+yw== @@ -950,10 +950,10 @@ abortcontroller-polyfill@^1.1.9: resolved "https://registry.yarnpkg.com/abortcontroller-polyfill/-/abortcontroller-polyfill-1.7.5.tgz#6738495f4e901fbb57b6c0611d0c75f76c485bed" integrity sha512-JMJ5soJWP18htbbxJjG7bG6yuI6pRhgJ0scHHTfkUjf6wjP912xZWvM+A4sJK3gqd9E8fcPbDnOefbA9Th/FIQ== -algoliasearch-helper@^3.13.0: - version "3.13.0" - resolved "https://registry.yarnpkg.com/algoliasearch-helper/-/algoliasearch-helper-3.13.0.tgz#1ccca7056fd27c2b0b5c92dd5c0abf4314bec3b8" - integrity sha512-kV3c1jMQCvkARtGsSDvAwuht4PAMSsQILqPiH4WFiARoa3jXJ/r1TQoBWAjWyWF48rsNYCv7kzxgB4LTxrvvuw== +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== dependencies: "@algolia/events" "^4.0.1" @@ -1275,10 +1275,10 @@ import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" -instantsearch.js@4.56.1: - version "4.56.1" - resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.56.1.tgz#ddff17fea5ed8d8a0e14e66a977f107f7143adef" - integrity sha512-4BQdnMEDWP9IRF12xninO/yR1f7F+mE935X0eVKuhUqitZF7GvUsL93MysXxHyPJnrbC6o0Aofc3kNcTKteKWw== +instantsearch.js@4.56.8: + version "4.56.8" + resolved "https://registry.yarnpkg.com/instantsearch.js/-/instantsearch.js-4.56.8.tgz#c417c68a792a4b7d6cc866cdb059d828799e84da" + integrity sha512-40DJ5l70ZzVzWPK3qrHTKlJLaHGq1PRZpzfL6281P2mz8G19WOHQHKAP4Zh6a4lOZaRtJQUiPjQwqCHSurXZ5g== dependencies: "@algolia/events" "^4.0.1" "@algolia/ui-components-highlight-vdom" "^1.2.1" @@ -1287,7 +1287,7 @@ instantsearch.js@4.56.1: "@types/google.maps" "^3.45.3" "@types/hogan.js" "^3.0.0" "@types/qs" "^6.5.3" - algoliasearch-helper "^3.13.0" + algoliasearch-helper "3.14.0" hogan.js "^3.0.2" htm "^3.0.0" preact "^10.10.0" @@ -1618,7 +1618,7 @@ preact@^10.10.0: resolved "https://registry.yarnpkg.com/preact/-/preact-10.15.1.tgz#a1de60c9fc0c79a522d969c65dcaddc5d994eede" integrity sha512-qs2ansoQEwzNiV5eAcRT1p1EC/dmEzaATVDJNiB3g2sRDWdA7b7MurXdJjB2+/WQktGWZwxvDrnuRFbWuIr64g== -process@^0.11.10: +process@0.11.10: version "0.11.10" resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" integrity sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A== @@ -1641,24 +1641,24 @@ react-error-overlay@6.0.9: resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.9.tgz#3c743010c9359608c375ecd6bc76f35d93995b0a" integrity sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew== -react-instantsearch-hooks-web@6.44.1: - version "6.44.1" - resolved "https://registry.yarnpkg.com/react-instantsearch-hooks-web/-/react-instantsearch-hooks-web-6.44.1.tgz#79706bf83fd70cef1c5cd534fcafc2eba4e65b3b" - integrity sha512-QZwBakRfBEAhla18YMk2te988p7BN6DA2G6DpXKvOCUSBUR72Lp5+DH8OAO0M7jGtH9xzFcCWVMD50hKhK8yaQ== +react-instantsearch-core@7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/react-instantsearch-core/-/react-instantsearch-core-7.0.0.tgz#68037782217eed19f91138e0325a9b171ce5d49a" + integrity sha512-O/ThoTFGMdIWX0EHJ+jjpiB48Bk1DqP9KxpXCGYdk52Gg/UFWB+0f6apJqGULZBgL81qYO7v4YGRz2Caawgngw== dependencies: "@babel/runtime" "^7.1.2" - instantsearch.js "4.56.1" - react-instantsearch-hooks "6.44.1" + algoliasearch-helper "3.14.0" + instantsearch.js "4.56.8" + use-sync-external-store "^1.0.0" -react-instantsearch-hooks@6.44.1: - version "6.44.1" - resolved "https://registry.yarnpkg.com/react-instantsearch-hooks/-/react-instantsearch-hooks-6.44.1.tgz#10483bd27b0c399d3297d055421572914694e653" - integrity sha512-2WZd+Q8iA8J2tSvxNhGg7FOHgng+IE34tfIksoGyxjn6N7AW42VGdL0Wdpm+J98eJemCEiJ3/seTJaOHq3a+YA== +react-instantsearch@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/react-instantsearch/-/react-instantsearch-7.0.0.tgz#93cf4831fd1a7a82b282ec7b1bb93fcb366b36db" + integrity sha512-GulJ8QFj6LELlzwm09Ec0c7NFJdcZl9DCizWevzCss7Dwdkh0Nmo6WQZ99KHIFo5opL+fDQn3OckIUjIP5vGvQ== dependencies: "@babel/runtime" "^7.1.2" - algoliasearch-helper "^3.13.0" - instantsearch.js "4.56.1" - use-sync-external-store "^1.0.0" + instantsearch.js "4.56.8" + react-instantsearch-core "7.0.0" react-refresh@^0.9.0: version "0.9.0" @@ -1770,7 +1770,7 @@ type-fest@^0.20.2: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== -typescript@^5.0.4: +typescript@5.0.4: version "5.0.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b" integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==