reaxes-react 0.0.10 → 0.1.0
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.
- package/changelog.md +3 -3
- package/esm/hooks.js +2 -0
- package/esm/hooks.js.map +1 -0
- package/package.json +11 -1
- package/types/hooks/index.d.ts +1 -0
- package/types/hooks/useReaxable.d.ts +6 -0
package/changelog.md
CHANGED
package/esm/hooks.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as e from"reaxes";import*as r from"react";var a={d:(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r)},t={};a.d(t,{e:()=>c});const o=(e=>{var r={};return a.d(r,e),r})({createReaxable:()=>e.createReaxable});const n=(e=>{var r={};return a.d(r,e),r})({useRef:()=>r.useRef});var c=function(e){return(0,n.useRef)((0,o.createReaxable)(e)).current},s=t.e;export{s as useReaxable};
|
|
2
|
+
//# sourceMappingURL=hooks.js.map
|
package/esm/hooks.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esm/hooks.js","mappings":"iDACA,IAAIA,EAAsB,CCA1BA,EAAwB,CAACC,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDH,EAAwB,CAACS,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,I,sBCIlF,MAAM,EAJE,CAACI,IACR,IAAIC,EAAI,CAAC,EAAgC,OAA7Bf,EAAoBgB,EAAED,EAAGD,GAAWC,GAGZA,CAAE,CAAE,eAAoB,IAAOE,EAAiD,iBCArH,MAAM,EAJE,CAACH,IACR,IAAIC,EAAI,CAAC,EAAgC,OAA7Bf,EAAoBgB,EAAED,EAAGD,GAAWC,GAGZ,CAAE,CAAE,OAAY,IAAOG,EAAwC,SCJ7F,IAAMC,EAAc,SAAEC,GAAK,OAAMC,EAAAA,EAAAA,SAAQC,EAAAA,EAAAA,gBAAgBF,IAAUG,OAAO,E","sources":["webpack://mono-reaxes/webpack/bootstrap","webpack://mono-reaxes/webpack/runtime/define property getters","webpack://mono-reaxes/webpack/runtime/hasOwnProperty shorthand","webpack://mono-reaxes/external module \"reaxes\"","webpack://mono-reaxes/external module \"react\"","webpack://mono-reaxes/./packages/reaxes-react/src/hooks/useReaxable.ts"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","var x = (y) => {\n\tvar x = {}; __webpack_require__.d(x, y); return x\n} \nvar y = (x) => (() => (x))\nconst __WEBPACK_NAMESPACE_OBJECT__ = x({ [\"createReaxable\"]: () => (__WEBPACK_EXTERNAL_MODULE_reaxes__.createReaxable) });","var x = (y) => {\n\tvar x = {}; __webpack_require__.d(x, y); return x\n} \nvar y = (x) => (() => (x))\nconst __WEBPACK_NAMESPACE_OBJECT__ = x({ [\"useRef\"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef) });","export const useReaxable = ( state ) => useRef( createReaxable( state ) ).current;\n\nimport { createReaxable } from 'reaxes';\nimport { useRef } from 'react';\n"],"names":["__webpack_require__","exports","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","y","x","d","__WEBPACK_EXTERNAL_MODULE_reaxes__","__WEBPACK_EXTERNAL_MODULE_react__","useReaxable","state","useRef","createReaxable","current"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reaxes-react",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Combine React with Reaxes, automatically re-render React components when the data in the store changes.",
|
|
5
5
|
"main": "esm/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
7
7
|
"types": "types/index.d.ts",
|
|
8
8
|
"author": "Kane",
|
|
9
9
|
"license": "WTFPL",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./esm/index.js",
|
|
13
|
+
"require": "./esm/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./hooks": {
|
|
16
|
+
"import": "./esm/hooks.js",
|
|
17
|
+
"require": "./esm/hooks.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
10
20
|
"dependencies": {
|
|
11
21
|
"lodash": "4.17.21",
|
|
12
22
|
"reaxes-utils": "^2.0.2"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useReaxable';
|