@qvibi-toolbox/qapp-react
Advanced tools
Comparing version 0.1.7 to 0.1.10
import React from 'react'; | ||
import { IQApp } from '@qvibi-toolbox/qapp'; | ||
export declare function withQApp(qApp: IQApp, node: React.ReactNode): JSX.Element; | ||
export declare const withQApp: (qApp: IQApp, Element: React.ElementType) => ({ ...props }: { | ||
[x: string]: any; | ||
}) => JSX.Element; |
{ | ||
"name": "@qvibi-toolbox/qapp-react", | ||
"version": "0.1.7", | ||
"version": "0.1.10", | ||
"main": "./qapp-qapp-react.umd.js", | ||
@@ -10,6 +10,6 @@ "module": "./qapp-qapp-react.esm.js", | ||
"react-redux": "7.2.2", | ||
"@qvibi-toolbox/qapp": "0.1.7", | ||
"@qvibi-toolbox/qapp": "0.1.10", | ||
"redux-saga": "1.1.3", | ||
"redux": "4.0.5", | ||
"@qvibi-toolbox/core": "0.1.7", | ||
"@qvibi-toolbox/core": "0.1.10", | ||
"react-router": "5.2.0", | ||
@@ -16,0 +16,0 @@ "reselect": "4.0.0" |
@@ -5,8 +5,50 @@ import React from 'react'; | ||
function withQApp(qApp, node) { | ||
return React.createElement(Provider, { | ||
store: qApp.getReduxStore() | ||
}, node); | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
function __rest(s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
} | ||
var withQApp = function withQApp(qApp, Element) { | ||
return function (_a) { | ||
var props = __rest(_a, []); | ||
return React.createElement(Provider, { | ||
store: qApp.getReduxStore() | ||
}, React.createElement(Element, __assign({}, props))); | ||
}; | ||
}; | ||
export { withQApp }; |
@@ -9,8 +9,50 @@ (function (global, factory) { | ||
function withQApp(qApp, node) { | ||
return React.createElement(reactRedux.Provider, { | ||
store: qApp.getReduxStore() | ||
}, node); | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var __assign = function() { | ||
__assign = Object.assign || function __assign(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
function __rest(s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
} | ||
var withQApp = function withQApp(qApp, Element) { | ||
return function (_a) { | ||
var props = __rest(_a, []); | ||
return React.createElement(reactRedux.Provider, { | ||
store: qApp.getReduxStore() | ||
}, React.createElement(Element, __assign({}, props))); | ||
}; | ||
}; | ||
Object.defineProperty(exports, 'useDispatch', { | ||
@@ -17,0 +59,0 @@ enumerable: true, |
9139
116
+ Added@qvibi-toolbox/core@0.1.10(transitive)
+ Added@qvibi-toolbox/qapp@0.1.10(transitive)
- Removed@qvibi-toolbox/core@0.1.7(transitive)
- Removed@qvibi-toolbox/qapp@0.1.7(transitive)
Updated@qvibi-toolbox/core@0.1.10
Updated@qvibi-toolbox/qapp@0.1.10