react-instantsearch-core
Advanced tools
Comparing version 6.8.3 to 6.9.0
@@ -6,7 +6,7 @@ "use strict"; | ||
}); | ||
exports.IndexProvider = exports.IndexConsumer = exports.InstantSearchProvider = exports.InstantSearchConsumer = void 0; | ||
exports.IndexProvider = exports.IndexConsumer = exports.InstantSearchProvider = exports.InstantSearchConsumer = exports.instantSearchContext = void 0; | ||
var _react = require("react"); | ||
var _createContext = (0, _react.createContext)({ | ||
var instantSearchContext = (0, _react.createContext)({ | ||
onInternalStateUpdate: function onInternalStateUpdate() { | ||
@@ -30,14 +30,14 @@ return undefined; | ||
mainTargetedIndex: '' | ||
}), | ||
InstantSearchConsumer = _createContext.Consumer, | ||
InstantSearchProvider = _createContext.Provider; | ||
}); | ||
exports.instantSearchContext = instantSearchContext; | ||
var InstantSearchConsumer = instantSearchContext.Consumer, | ||
InstantSearchProvider = instantSearchContext.Provider; | ||
exports.InstantSearchProvider = InstantSearchProvider; | ||
exports.InstantSearchConsumer = InstantSearchConsumer; | ||
var _createContext2 = (0, _react.createContext)(undefined), | ||
IndexConsumer = _createContext2.Consumer, | ||
IndexProvider = _createContext2.Provider; | ||
var _createContext = (0, _react.createContext)(undefined), | ||
IndexConsumer = _createContext.Consumer, | ||
IndexProvider = _createContext.Provider; | ||
exports.IndexProvider = IndexProvider; | ||
exports.IndexConsumer = IndexConsumer; |
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.default = void 0; | ||
var _default = '6.8.3'; | ||
var _default = '6.9.0'; | ||
exports.default = _default; |
@@ -10,2 +10,5 @@ "use strict"; | ||
createConnector: true, | ||
instantSearchContext: true, | ||
InstantSearchConsumer: true, | ||
InstantSearchProvider: true, | ||
HIGHLIGHT_TAGS: true, | ||
@@ -52,2 +55,20 @@ version: true, | ||
}); | ||
Object.defineProperty(exports, "instantSearchContext", { | ||
enumerable: true, | ||
get: function get() { | ||
return _context.instantSearchContext; | ||
} | ||
}); | ||
Object.defineProperty(exports, "InstantSearchConsumer", { | ||
enumerable: true, | ||
get: function get() { | ||
return _context.InstantSearchConsumer; | ||
} | ||
}); | ||
Object.defineProperty(exports, "InstantSearchProvider", { | ||
enumerable: true, | ||
get: function get() { | ||
return _context.InstantSearchProvider; | ||
} | ||
}); | ||
Object.defineProperty(exports, "HIGHLIGHT_TAGS", { | ||
@@ -260,2 +281,4 @@ enumerable: true, | ||
var _context = require("./core/context"); | ||
var _highlight = require("./core/highlight"); | ||
@@ -262,0 +285,0 @@ |
import { createContext } from 'react'; | ||
var _createContext = createContext({ | ||
export var instantSearchContext = createContext({ | ||
onInternalStateUpdate: function onInternalStateUpdate() { | ||
@@ -22,12 +21,11 @@ return undefined; | ||
mainTargetedIndex: '' | ||
}), | ||
InstantSearchConsumer = _createContext.Consumer, | ||
InstantSearchProvider = _createContext.Provider; | ||
}); | ||
var InstantSearchConsumer = instantSearchContext.Consumer, | ||
InstantSearchProvider = instantSearchContext.Provider; | ||
export { InstantSearchConsumer, InstantSearchProvider }; | ||
var _createContext2 = createContext(undefined), | ||
IndexConsumer = _createContext2.Consumer, | ||
IndexProvider = _createContext2.Provider; | ||
var _createContext = createContext(undefined), | ||
IndexConsumer = _createContext.Consumer, | ||
IndexProvider = _createContext.Provider; | ||
export { IndexConsumer, IndexProvider }; |
@@ -1,1 +0,1 @@ | ||
export default '6.8.3'; | ||
export default '6.9.0'; |
// Core | ||
export { default as createConnector } from './core/createConnector'; // Utils | ||
export { default as createConnector } from './core/createConnector'; | ||
export { instantSearchContext, InstantSearchConsumer, InstantSearchProvider } from './core/context'; // Utils | ||
@@ -4,0 +5,0 @@ export { HIGHLIGHT_TAGS } from './core/highlight'; |
{ | ||
"name": "react-instantsearch-core", | ||
"version": "6.8.3", | ||
"version": "6.9.0", | ||
"description": "⚡ Lightning-fast search for React, by Algolia", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2070771
19929