@planningcenter/topbar 10.20.0-rc.1 → 10.20.0-rc.2
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/dist/topbar.js +5 -5
- package/dist/topbar.js.map +1 -1
- package/dist/topbar.modern.js +1 -1
- package/dist/topbar.modern.js.map +1 -1
- package/dist/topbar.module.js +1 -1
- package/dist/topbar.module.js.map +1 -1
- package/dist/topbar.umd.js +8 -8
- package/dist/topbar.umd.js.map +1 -1
- package/package.json +2 -3
package/dist/topbar.js
CHANGED
|
@@ -13,7 +13,7 @@ var people = require('@planningcenter/icons/paths/people');
|
|
|
13
13
|
var toolbar = require('@planningcenter/icons/paths/toolbar');
|
|
14
14
|
var reactCalendly = require('react-calendly');
|
|
15
15
|
var algoliasearch = require('algoliasearch');
|
|
16
|
-
var
|
|
16
|
+
var reactInstantsearchCore = require('react-instantsearch-core');
|
|
17
17
|
var reactTransitionGroup = require('react-transition-group');
|
|
18
18
|
var datetimeFmt = require('@planningcenter/datetime-fmt');
|
|
19
19
|
|
|
@@ -3232,11 +3232,11 @@ const CustomSearchBox = ({
|
|
|
3232
3232
|
const {
|
|
3233
3233
|
query,
|
|
3234
3234
|
refine: setQuery
|
|
3235
|
-
} =
|
|
3235
|
+
} = reactInstantsearchCore.useSearchBox();
|
|
3236
3236
|
const {
|
|
3237
3237
|
hits,
|
|
3238
3238
|
results
|
|
3239
|
-
} =
|
|
3239
|
+
} = reactInstantsearchCore.useHits();
|
|
3240
3240
|
const groups = results?.hits.reduce((acc, hit) => {
|
|
3241
3241
|
const key = hit.category.title;
|
|
3242
3242
|
if (!acc[key]) {
|
|
@@ -3309,10 +3309,10 @@ const DocumentationSearch = ({
|
|
|
3309
3309
|
}
|
|
3310
3310
|
} = useStore();
|
|
3311
3311
|
const searchClient = algoliasearch(algoliaApplicationId, algoliaSearchOnlyApiKey);
|
|
3312
|
-
return /*#__PURE__*/React.createElement(
|
|
3312
|
+
return /*#__PURE__*/React.createElement(reactInstantsearchCore.InstantSearch, {
|
|
3313
3313
|
indexName: indexName,
|
|
3314
3314
|
searchClient: searchClient
|
|
3315
|
-
}, /*#__PURE__*/React.createElement(
|
|
3315
|
+
}, /*#__PURE__*/React.createElement(reactInstantsearchCore.Configure, {
|
|
3316
3316
|
hitsPerPage: 5
|
|
3317
3317
|
}), /*#__PURE__*/React.createElement(CustomSearchBox, {
|
|
3318
3318
|
currentAppName: currentAppName,
|