aio-popup 8.2.2 → 8.2.3

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.
Files changed (2) hide show
  1. package/index.js +11 -11
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -98,7 +98,7 @@ function AddToAttrs(attrs, p) {
98
98
  }
99
99
  const MainContext = createContext({});
100
100
  const MainProvider = ({ value, children }) => {
101
- return _jsx(MainContext, { value: value, children: children });
101
+ return _jsx(MainContext.Provider, { value: value, children: children });
102
102
  };
103
103
  const useMainProvider = () => useContext(MainContext);
104
104
  const usePopup = (props) => {
@@ -750,16 +750,16 @@ function getEasing(highlight) {
750
750
  const { easing } = highlight;
751
751
  var easingNames = [
752
752
  'linear',
753
- 'easeInQuad',
754
- 'easeInSine',
755
- 'easeInCirc',
756
- 'easeInBack',
757
- 'easeOutQuad',
758
- 'easeOutSine',
759
- 'easeOutCirc',
760
- 'easeInOutQuad',
761
- 'easeInOutSine',
762
- 'easeInOutBack',
753
+ 'easeInQuad', //1
754
+ 'easeInSine', //5
755
+ 'easeInCirc', //7
756
+ 'easeInBack', //8
757
+ 'easeOutQuad', //9
758
+ 'easeOutSine', //13
759
+ 'easeOutCirc', //15
760
+ 'easeInOutQuad', //18
761
+ 'easeInOutSine', //22
762
+ 'easeInOutBack', //25
763
763
  'easeOutBounce', //27
764
764
  ];
765
765
  if (typeof easing === 'number') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aio-popup",
3
- "version": "8.2.2",
3
+ "version": "8.2.3",
4
4
  "description": "handle all types of popup and modals in react",
5
5
  "main": "index.js",
6
6
  "scripts": {