cueplayer-react
Advanced tools
Comparing version 0.3.21 to 0.3.22
@@ -11,3 +11,3 @@ "use strict"; | ||
exports.usePlayer = usePlayer; | ||
exports.PlayerProvider = exports.PlayerContext = exports.playerAtom = void 0; | ||
exports.PlayerProvider = exports.PlayerContext = exports.managerAtom = exports.playerAtom = void 0; | ||
@@ -31,2 +31,4 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")); | ||
exports.playerAtom = playerAtom; | ||
var managerAtom = (0, _jotai.atom)(); | ||
exports.managerAtom = managerAtom; | ||
var PlayerContext = /*#__PURE__*/React.createContext(defaultPlayerContext); | ||
@@ -42,12 +44,12 @@ exports.PlayerContext = PlayerContext; | ||
var _React$useState = React.useState(), | ||
_React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2), | ||
manager = _React$useState2[0], | ||
setManager = _React$useState2[1]; | ||
var _useAtom = (0, _jotai.useAtom)(playerAtom), | ||
var _useAtom = (0, _jotai.useAtom)(managerAtom), | ||
_useAtom2 = (0, _slicedToArray2["default"])(_useAtom, 2), | ||
player = _useAtom2[0], | ||
setPlayer = _useAtom2[1]; | ||
manager = _useAtom2[0], | ||
setManager = _useAtom2[1]; | ||
var _useAtom3 = (0, _jotai.useAtom)(playerAtom), | ||
_useAtom4 = (0, _slicedToArray2["default"])(_useAtom3, 2), | ||
player = _useAtom4[0], | ||
setPlayer = _useAtom4[1]; | ||
return /*#__PURE__*/React.createElement(PlayerContext.Provider, { | ||
@@ -54,0 +56,0 @@ value: { |
@@ -196,2 +196,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "managerAtom", { | ||
enumerable: true, | ||
get: function get() { | ||
return _playerContext.managerAtom; | ||
} | ||
}); | ||
Object.defineProperty(exports, "playerReducer", { | ||
@@ -198,0 +204,0 @@ enumerable: true, |
{ | ||
"name": "cueplayer-react", | ||
"version": "0.3.21", | ||
"version": "0.3.22", | ||
"description": "cueplayer-react is a web video player built from the ground up for an HTML5 world using React library.", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
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
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
4117842
34711