Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-instantsearch-core

Package Overview
Dependencies
Maintainers
5
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-instantsearch-core - npm Package Compare versions

Comparing version 6.11.2 to 6.12.0-alpha.1

dist/cjs/connectors/connectDynamicWidgets.js

12

dist/cjs/connectors/connectHierarchicalMenu.js

@@ -168,3 +168,4 @@ "use strict";

showMoreLimit: _propTypes.default.number,
transformItems: _propTypes.default.func
transformItems: _propTypes.default.func,
facetOrdering: _propTypes.default.bool
},

@@ -177,3 +178,4 @@ defaultProps: {

rootPath: null,
showParentLevel: true
showParentLevel: true,
facetOrdering: true
},

@@ -183,3 +185,4 @@ getProvidedProps: function getProvidedProps(props, searchState, searchResults) {

limit = props.limit,
showMoreLimit = props.showMoreLimit;
showMoreLimit = props.showMoreLimit,
facetOrdering = props.facetOrdering;
var id = getId(props);

@@ -205,3 +208,4 @@ var results = (0, _indexUtils.getResults)(searchResults, {

var value = results.getFacetValues(id, {
sortBy: sortBy
sortBy: sortBy,
facetOrdering: facetOrdering
});

@@ -208,0 +212,0 @@ var items = value.data ? transformValue(value.data, props, searchState, {

@@ -88,3 +88,4 @@ "use strict";

transformItems: _propTypes.default.func,
searchable: _propTypes.default.bool
searchable: _propTypes.default.bool,
facetOrdering: _propTypes.default.bool
},

@@ -94,3 +95,4 @@ defaultProps: {

limit: 10,
showMoreLimit: 20
showMoreLimit: 20,
facetOrdering: true
},

@@ -100,3 +102,4 @@ getProvidedProps: function getProvidedProps(props, searchState, searchResults, meta, searchForFacetValuesResults) {

searchable = props.searchable,
indexContextValue = props.indexContextValue;
indexContextValue = props.indexContextValue,
facetOrdering = props.facetOrdering;
var results = (0, _indexUtils.getResults)(searchResults, {

@@ -147,3 +150,4 @@ ais: props.contextValue,

items = results.getFacetValues(attribute, {
sortBy: searchable ? undefined : defaultSortBy
sortBy: searchable ? undefined : defaultSortBy,
facetOrdering: facetOrdering
}).map(function (v) {

@@ -150,0 +154,0 @@ return {

@@ -111,3 +111,4 @@ "use strict";

searchable: _propTypes.default.bool,
transformItems: _propTypes.default.func
transformItems: _propTypes.default.func,
facetOrdering: _propTypes.default.bool
},

@@ -118,3 +119,4 @@ defaultProps: {

limit: 10,
showMoreLimit: 20
showMoreLimit: 20,
facetOrdering: true
},

@@ -124,3 +126,4 @@ getProvidedProps: function getProvidedProps(props, searchState, searchResults, metadata, searchForFacetValuesResults) {

searchable = props.searchable,
indexContextValue = props.indexContextValue;
indexContextValue = props.indexContextValue,
facetOrdering = props.facetOrdering;
var results = (0, _indexUtils.getResults)(searchResults, {

@@ -166,3 +169,4 @@ ais: props.contextValue,

}) : results.getFacetValues(attribute, {
sortBy: sortBy
sortBy: sortBy,
facetOrdering: facetOrdering
}).map(function (v) {

@@ -169,0 +173,0 @@ return {

@@ -24,3 +24,7 @@ "use strict";

}
/**
* @returns {import('algoliasearch-helper').SearchResults} results
*/
function getResults(searchResults, context) {

@@ -27,0 +31,0 @@ if (searchResults.results) {

@@ -7,3 +7,3 @@ "use strict";

exports.default = void 0;
var _default = '6.11.2';
var _default = '6.12.0-alpha.1';
exports.default = _default;

@@ -18,2 +18,3 @@ "use strict";

ExperimentalConfigureRelatedItems: true,
ExperimentalDynamicWidgets: true,
QueryRuleContext: true,

@@ -27,2 +28,3 @@ Index: true,

connectCurrentRefinements: true,
EXPERIMENTAL_connectDynamicWidgets: true,
connectGeoSearch: true,

@@ -105,2 +107,8 @@ connectHierarchicalMenu: true,

});
Object.defineProperty(exports, "ExperimentalDynamicWidgets", {
enumerable: true,
get: function get() {
return _DynamicWidgets.default;
}
});
Object.defineProperty(exports, "QueryRuleContext", {

@@ -154,2 +162,8 @@ enumerable: true,

});
Object.defineProperty(exports, "EXPERIMENTAL_connectDynamicWidgets", {
enumerable: true,
get: function get() {
return _connectDynamicWidgets.default;
}
});
Object.defineProperty(exports, "connectGeoSearch", {

@@ -302,2 +316,4 @@ enumerable: true,

var _DynamicWidgets = _interopRequireDefault(require("./widgets/DynamicWidgets"));
var _QueryRuleContext = _interopRequireDefault(require("./widgets/QueryRuleContext"));

@@ -319,2 +335,4 @@

var _connectDynamicWidgets = _interopRequireDefault(require("./connectors/connectDynamicWidgets"));
var _connectGeoSearch = _interopRequireDefault(require("./connectors/connectGeoSearch"));

@@ -321,0 +339,0 @@

@@ -153,3 +153,4 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

showMoreLimit: PropTypes.number,
transformItems: PropTypes.func
transformItems: PropTypes.func,
facetOrdering: PropTypes.bool
},

@@ -162,3 +163,4 @@ defaultProps: {

rootPath: null,
showParentLevel: true
showParentLevel: true,
facetOrdering: true
},

@@ -168,3 +170,4 @@ getProvidedProps: function getProvidedProps(props, searchState, searchResults) {

limit = props.limit,
showMoreLimit = props.showMoreLimit;
showMoreLimit = props.showMoreLimit,
facetOrdering = props.facetOrdering;
var id = getId(props);

@@ -190,3 +193,4 @@ var results = getResults(searchResults, {

var value = results.getFacetValues(id, {
sortBy: sortBy
sortBy: sortBy,
facetOrdering: facetOrdering
});

@@ -193,0 +197,0 @@ var items = value.data ? transformValue(value.data, props, searchState, {

@@ -77,3 +77,4 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

transformItems: PropTypes.func,
searchable: PropTypes.bool
searchable: PropTypes.bool,
facetOrdering: PropTypes.bool
},

@@ -83,3 +84,4 @@ defaultProps: {

limit: 10,
showMoreLimit: 20
showMoreLimit: 20,
facetOrdering: true
},

@@ -89,3 +91,4 @@ getProvidedProps: function getProvidedProps(props, searchState, searchResults, meta, searchForFacetValuesResults) {

searchable = props.searchable,
indexContextValue = props.indexContextValue;
indexContextValue = props.indexContextValue,
facetOrdering = props.facetOrdering;
var results = getResults(searchResults, {

@@ -136,3 +139,4 @@ ais: props.contextValue,

items = results.getFacetValues(attribute, {
sortBy: searchable ? undefined : defaultSortBy
sortBy: searchable ? undefined : defaultSortBy,
facetOrdering: facetOrdering
}).map(function (v) {

@@ -139,0 +143,0 @@ return {

@@ -98,3 +98,4 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

searchable: PropTypes.bool,
transformItems: PropTypes.func
transformItems: PropTypes.func,
facetOrdering: PropTypes.bool
},

@@ -105,3 +106,4 @@ defaultProps: {

limit: 10,
showMoreLimit: 20
showMoreLimit: 20,
facetOrdering: true
},

@@ -111,3 +113,4 @@ getProvidedProps: function getProvidedProps(props, searchState, searchResults, metadata, searchForFacetValuesResults) {

searchable = props.searchable,
indexContextValue = props.indexContextValue;
indexContextValue = props.indexContextValue,
facetOrdering = props.facetOrdering;
var results = getResults(searchResults, {

@@ -153,3 +156,4 @@ ais: props.contextValue,

}) : results.getFacetValues(attribute, {
sortBy: sortBy
sortBy: sortBy,
facetOrdering: facetOrdering
}).map(function (v) {

@@ -156,0 +160,0 @@ return {

@@ -7,2 +7,6 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";

}
/**
* @returns {import('algoliasearch-helper').SearchResults} results
*/
export function getResults(searchResults, context) {

@@ -9,0 +13,0 @@ if (searchResults.results) {

@@ -1,1 +0,1 @@

export default '6.11.2';
export default '6.12.0-alpha.1';

@@ -11,2 +11,3 @@ // Core

export { default as ExperimentalConfigureRelatedItems } from './widgets/ConfigureRelatedItems';
export { default as ExperimentalDynamicWidgets } from './widgets/DynamicWidgets';
export { default as QueryRuleContext } from './widgets/QueryRuleContext';

@@ -21,2 +22,3 @@ export { default as Index } from './widgets/Index';

export { default as connectCurrentRefinements } from './connectors/connectCurrentRefinements';
export { default as EXPERIMENTAL_connectDynamicWidgets } from './connectors/connectDynamicWidgets';
export { default as connectGeoSearch } from './connectors/connectGeoSearch';

@@ -23,0 +25,0 @@ export { default as connectHierarchicalMenu } from './connectors/connectHierarchicalMenu';

{
"name": "react-instantsearch-core",
"version": "6.11.2",
"version": "6.12.0-alpha.1",
"description": "⚡ Lightning-fast search for React, by Algolia",

@@ -40,3 +40,3 @@ "main": "dist/cjs/index.js",

"@babel/runtime": "^7.1.2",
"algoliasearch-helper": "^3.4.3",
"algoliasearch-helper": "^3.5.3",
"prop-types": "^15.6.2",

@@ -48,3 +48,4 @@ "react-fast-compare": "^3.0.0"

"react": ">= 16.3.0 < 18"
}
},
"gitHead": "266e27db5e3ce0f239e7486a9b341d13c8283ae3"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc