@tamagui/use-event 1.104.0 → 1.104.2

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.
@@ -1,2 +1,3 @@
1
1
  export * from "./useEvent.mjs";
2
- export * from "./useGet.mjs";
2
+ export * from "./useGet.mjs";
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc","ignoreList":[]}
@@ -5,4 +5,5 @@ function useEvent(callback) {
5
5
  const defaultValue = () => {
6
6
  throw new Error("Cannot call an event handler while rendering.");
7
7
  };
8
- export { useEvent };
8
+ export { useEvent };
9
+ //# sourceMappingURL=useEvent.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useGet","useEvent","callback","defaultValue","Error"],"sources":["../../src/useEvent.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,MAAA,QAAc;AAIhB,SAASC,SAAgCC,QAAA,EAAiB;EAC/D,OAAOF,MAAA,CAAOE,QAAA,EAAUC,YAAA,EAAc,EAAI;AAC5C;AAEA,MAAMA,YAAA,GAAeA,CAAA,KAAM;EACzB,MAAM,IAAIC,KAAA,CAAM,+CAA+C;AACjE","ignoreList":[]}
@@ -6,4 +6,5 @@ function useGet(currentValue, initialValue, forwardToFunction) {
6
6
  curRef.current = currentValue;
7
7
  }), useCallback(forwardToFunction ? (...args) => curRef.current?.apply(null, args) : () => curRef.current, []);
8
8
  }
9
- export { useGet };
9
+ export { useGet };
10
+ //# sourceMappingURL=useGet.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useIsomorphicLayoutEffect","useCallback","useRef","useGet","currentValue","initialValue","forwardToFunction","curRef","current","args","apply"],"sources":["../../src/useGet.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,yBAAA,QAAiC;AAC1C,SAASC,WAAA,EAAaC,MAAA,QAAc;AAI7B,SAASC,OACdC,YAAA,EACAC,YAAA,EACAC,iBAAA,EACS;EACT,MAAMC,MAAA,GAASL,MAAA,CAAYG,YAAA,IAAgBD,YAAY;EACvD,OAAAJ,yBAAA,CAA0B,MAAM;IAC9BO,MAAA,CAAOC,OAAA,GAAUJ,YAAA;EACnB,CAAC,GAEMH,WAAA,CACLK,iBAAA,GACI,IAAIG,IAAA,KAASF,MAAA,CAAOC,OAAA,EAASE,KAAA,CAAM,MAAMD,IAAI,IAC7C,MAAMF,MAAA,CAAOC,OAAA,EACjB,EACF;AACF","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/use-event",
3
- "version": "1.104.0",
3
+ "version": "1.104.2",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -18,11 +18,11 @@
18
18
  "clean:build": "tamagui-build clean:build"
19
19
  },
20
20
  "devDependencies": {
21
- "@tamagui/build": "1.104.0",
21
+ "@tamagui/build": "1.104.2",
22
22
  "react": "^18.2.0"
23
23
  },
24
24
  "dependencies": {
25
- "@tamagui/constants": "1.104.0"
25
+ "@tamagui/constants": "1.104.2"
26
26
  },
27
27
  "exports": {
28
28
  "./package.json": "./package.json",