@airma/react-hooks
Advanced tools
Comparing version 18.3.0-alpha.7 to 18.3.0-alpha.8
@@ -1,1 +0,1 @@ | ||
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@airma/react-state"),require("@airma/react-effect"),require("react"),require("@airma/react-hooks-core")):"function"==typeof define&&define.amd?define(["@airma/react-state","@airma/react-effect","react","@airma/react-hooks-core"],r):"object"==typeof exports?exports["@airma/react-hooks"]=r(require("@airma/react-state"),require("@airma/react-effect"),require("react"),require("@airma/react-hooks-core")):e["@airma/react-hooks"]=r(e["@airma/react-state"],e["@airma/react-effect"],e.react,e["@airma/react-hooks-core"])}(self,(function(e,r,t,n){return function(){"use strict";var o={772:function(e){e.exports=r},309:function(e){e.exports=n},400:function(r){r.exports=e},156:function(e){e.exports=t},726:function(e,r,t){function n(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)t=u[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)t=u[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}t.d(r,{Z:function(){return n}})},763:function(e,r,t){function n(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function o(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,u=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(u.push(n.value),!r||u.length!==r);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw o}}return u}}(e,r)||function(e,r){if(e){if("string"==typeof e)return n(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.d(r,{Z:function(){return o}})}},u={};function i(e){var r=u[e];if(void 0!==r)return r.exports;var t=u[e]={exports:{}};return o[e](t,t.exports,i),t.exports}i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,{a:r}),r},i.d=function(e,r){for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){i.r(a),i.d(a,{ConfigProvider:function(){return l},Provider:function(){return t.Provider},Strategy:function(){return n.Strategy},createKey:function(){return t.createKey},createKeyDangerously:function(){return t.createKeyDangerously},createSessionKey:function(){return n.createSessionKey},model:function(){return t.model},provide:function(){return t.provide},session:function(){return n.session},useControlledModel:function(){return t.useControlledModel},useIsFetching:function(){return n.useIsFetching},useLazyComponent:function(){return n.useLazyComponent},useLoadedSession:function(){return n.useLoadedSession},useModel:function(){return t.useModel},useMutation:function(){return n.useMutation},useQuery:function(){return n.useQuery},useRealtimeInstance:function(){return t.useRealtimeInstance},useResponse:function(){return n.useResponse},useSelector:function(){return t.useSelector},useSession:function(){return n.useSession}});var e=i(726),r=i(763),t=i(400),n=i(772),o=i(156),u=i(309),c={};for(var s in u)["default","createKey","createKeyDangerously","useModel","useControlledModel","useRealtimeInstance","useSelector","model","createSessionKey","Strategy","useQuery","useMutation","useSession","useLoadedSession","useResponse","useIsFetching","useLazyComponent","session","provide","Provider","ConfigProvider"].indexOf(s)<0&&(c[s]=function(e){return u[e]}.bind(0,s));i.d(a,c);var f=["batchUpdate"],l=function(u){var i=u.value,a=u.children,c=(0,o.useMemo)((function(){return[{batchUpdate:i.batchUpdate},(0,e.Z)(i,f)]}),[]),s=(0,r.Z)(c,2),l=s[0],d=s[1];return(0,o.createElement)(t.ConfigProvider,{value:l},(0,o.createElement)(n.ConfigProvider,{value:d},a))}}(),a}()})); | ||
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@airma/react-state"),require("@airma/react-effect"),require("react"),require("@airma/react-hooks-core")):"function"==typeof define&&define.amd?define(["@airma/react-state","@airma/react-effect","react","@airma/react-hooks-core"],r):"object"==typeof exports?exports["@airma/react-hooks"]=r(require("@airma/react-state"),require("@airma/react-effect"),require("react"),require("@airma/react-hooks-core")):e["@airma/react-hooks"]=r(e["@airma/react-state"],e["@airma/react-effect"],e.react,e["@airma/react-hooks-core"])}(self,(function(e,r,t,n){return function(){"use strict";var o={772:function(e){e.exports=r},309:function(e){e.exports=n},400:function(r){r.exports=e},156:function(e){e.exports=t},726:function(e,r,t){function n(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)t=u[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)t=u[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}t.d(r,{Z:function(){return n}})},763:function(e,r,t){function n(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function o(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,u=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(u.push(n.value),!r||u.length!==r);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw o}}return u}}(e,r)||function(e,r){if(e){if("string"==typeof e)return n(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.d(r,{Z:function(){return o}})}},u={};function i(e){var r=u[e];if(void 0!==r)return r.exports;var t=u[e]={exports:{}};return o[e](t,t.exports,i),t.exports}i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,{a:r}),r},i.d=function(e,r){for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){i.r(a),i.d(a,{ConfigProvider:function(){return l},Provider:function(){return t.Provider},Strategy:function(){return n.Strategy},createKey:function(){return t.createKey},createSessionKey:function(){return n.createSessionKey},model:function(){return t.model},provide:function(){return t.provide},session:function(){return n.session},useControlledModel:function(){return t.useControlledModel},useIsFetching:function(){return n.useIsFetching},useLazyComponent:function(){return n.useLazyComponent},useLoadedSession:function(){return n.useLoadedSession},useModel:function(){return t.useModel},useMutation:function(){return n.useMutation},useQuery:function(){return n.useQuery},useRealtimeInstance:function(){return t.useRealtimeInstance},useResponse:function(){return n.useResponse},useSelector:function(){return t.useSelector},useSession:function(){return n.useSession}});var e=i(726),r=i(763),t=i(400),n=i(772),o=i(156),u=i(309),c={};for(var s in u)["default","createKey","useModel","useControlledModel","useRealtimeInstance","useSelector","model","createSessionKey","Strategy","useQuery","useMutation","useSession","useLoadedSession","useResponse","useIsFetching","useLazyComponent","session","provide","Provider","ConfigProvider"].indexOf(s)<0&&(c[s]=function(e){return u[e]}.bind(0,s));i.d(a,c);var f=["batchUpdate"],l=function(u){var i=u.value,a=u.children,c=(0,o.useMemo)((function(){return[{batchUpdate:i.batchUpdate},(0,e.Z)(i,f)]}),[]),s=(0,r.Z)(c,2),l=s[0],d=s[1];return(0,o.createElement)(t.ConfigProvider,{value:l},(0,o.createElement)(n.ConfigProvider,{value:d},a))}}(),a}()})); |
@@ -14,3 +14,2 @@ import { FC, FunctionComponent, NamedExoticComponent, ReactNode } from 'react'; | ||
createKey, | ||
createKeyDangerously, | ||
useModel, | ||
@@ -17,0 +16,0 @@ useControlledModel, |
{ | ||
"private": false, | ||
"name": "@airma/react-hooks", | ||
"version": "18.3.0-alpha.7", | ||
"version": "18.3.0-alpha.8", | ||
"description": "This is a common react hook package", | ||
@@ -28,5 +28,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"@airma/react-effect": "^18.3.0-alpha.7", | ||
"@airma/react-hooks-core": "^18.3.0-alpha.7", | ||
"@airma/react-state": "^18.3.0-alpha.7", | ||
"@airma/react-effect": "^18.3.0-alpha.8", | ||
"@airma/react-hooks-core": "^18.3.0-alpha.8", | ||
"@airma/react-state": "^18.3.0-alpha.8", | ||
"react": ">=16.8.0" | ||
@@ -33,0 +33,0 @@ }, |
7820
41