@tamagui/use-keyboard-visible 1.135.4 → 1.135.6

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,26 +1,29 @@
1
1
  "use strict";
2
+
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: !0 });
9
- }, __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from == "object" || typeof from == "function")
11
- for (let key of __getOwnPropNames(from))
12
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- return to;
14
- };
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: !0
22
+ }), mod);
16
23
  var index_exports = {};
17
24
  __export(index_exports, {
18
25
  useKeyboardVisible: () => import_useKeyboardVisible.useKeyboardVisible
19
26
  });
20
27
  module.exports = __toCommonJS(index_exports);
21
- var import_useKeyboardVisible = require("./useKeyboardVisible");
22
- // Annotate the CommonJS export names for ESM import in node:
23
- 0 && (module.exports = {
24
- useKeyboardVisible
25
- });
26
- //# sourceMappingURL=index.js.map
28
+ var import_useKeyboardVisible = require("./useKeyboardVisible.native.js");
29
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAmC;",
5
- "names": []
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","useKeyboardVisible","import_useKeyboardVisible","module","exports"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAC,yBAAA,CAAAD;AAAA;AAAAE,MAAA,CAAAC,OAAA,GAAAV,YAAA,CAAAK,aAAmC","ignoreList":[]}
@@ -34,7 +34,7 @@ __export(useKeyboardVisible_exports, {
34
34
  useKeyboardVisible: () => useKeyboardVisible
35
35
  });
36
36
  module.exports = __toCommonJS(useKeyboardVisible_exports);
37
- var import_react = __toESM(require("react")),
37
+ var import_react = __toESM(require("react"), 1),
38
38
  import_react_native = require("react-native-web");
39
39
  const useKeyboardVisible = () => {
40
40
  const [isKeyboardVisible, setKeyboardVisible] = import_react.default.useState(!1);
@@ -25,7 +25,7 @@ __export(useKeyboardVisible_exports, {
25
25
  useKeyboardVisible: () => useKeyboardVisible
26
26
  });
27
27
  module.exports = __toCommonJS(useKeyboardVisible_exports);
28
- var import_react = __toESM(require("react")), import_react_native = require("react-native-web");
28
+ var import_react = __toESM(require("react"), 1), import_react_native = require("react-native-web");
29
29
  const useKeyboardVisible = () => {
30
30
  const [isKeyboardVisible, setKeyboardVisible] = import_react.default.useState(!1);
31
31
  return import_react.default.useEffect(() => {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/useKeyboardVisible.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,2BAClB,sBAAyB;AAElB,MAAM,qBAAqB,MAAe;AAC/C,QAAM,CAAC,mBAAmB,kBAAkB,IAAI,aAAAA,QAAM,SAAS,EAAK;AAEpE,sBAAAA,QAAM,UAAU,MAAM;AACpB,UAAM,0BAA0B,6BAAS,YAAY,mBAAmB,MAAM;AAC5E,yBAAmB,EAAI;AAAA,IACzB,CAAC,GACK,0BAA0B,6BAAS,YAAY,mBAAmB,MAAM;AAC5E,yBAAmB,EAAK;AAAA,IAC1B,CAAC;AAED,WAAO,MAAM;AACX,8BAAwB,OAAO,GAC/B,wBAAwB,OAAO;AAAA,IACjC;AAAA,EACF,GAAG,CAAC,CAAC,GAEE;AACT;",
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,8BAClB,sBAAyB;AAElB,MAAM,qBAAqB,MAAe;AAC/C,QAAM,CAAC,mBAAmB,kBAAkB,IAAI,aAAAA,QAAM,SAAS,EAAK;AAEpE,sBAAAA,QAAM,UAAU,MAAM;AACpB,UAAM,0BAA0B,6BAAS,YAAY,mBAAmB,MAAM;AAC5E,yBAAmB,EAAI;AAAA,IACzB,CAAC,GACK,0BAA0B,6BAAS,YAAY,mBAAmB,MAAM;AAC5E,yBAAmB,EAAK;AAAA,IAC1B,CAAC;AAED,WAAO,MAAM;AACX,8BAAwB,OAAO,GAC/B,wBAAwB,OAAO;AAAA,IACjC;AAAA,EACF,GAAG,CAAC,CAAC,GAEE;AACT;",
5
5
  "names": ["React"]
6
6
  }
@@ -1,46 +1,55 @@
1
1
  "use strict";
2
+
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf,
8
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: !0 });
10
- }, __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from == "object" || typeof from == "function")
12
- for (let key of __getOwnPropNames(from))
13
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- return to;
15
- };
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: !0
13
+ });
14
+ },
15
+ __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ return to;
21
+ };
16
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
23
  // If the importer is in node compatibility mode or this is not an ESM
18
24
  // file that has been converted to a CommonJS file using a Babel-
19
25
  // compatible transform (i.e. "__esModule" has not been set), then set
20
26
  // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
- mod
23
- )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: !0
30
+ }) : target, mod)),
31
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: !0
33
+ }), mod);
24
34
  var useKeyboardVisible_exports = {};
25
35
  __export(useKeyboardVisible_exports, {
26
36
  useKeyboardVisible: () => useKeyboardVisible
27
37
  });
28
38
  module.exports = __toCommonJS(useKeyboardVisible_exports);
29
- var import_react = __toESM(require("react")), import_react_native = require("react-native"), useKeyboardVisible = function() {
30
- var [isKeyboardVisible, setKeyboardVisible] = import_react.default.useState(!1);
31
- return import_react.default.useEffect(function() {
32
- var keyboardDidShowListener = import_react_native.Keyboard.addListener("keyboardDidShow", function() {
33
- setKeyboardVisible(!0);
34
- }), keyboardDidHideListener = import_react_native.Keyboard.addListener("keyboardDidHide", function() {
35
- setKeyboardVisible(!1);
36
- });
37
- return function() {
38
- keyboardDidHideListener.remove(), keyboardDidShowListener.remove();
39
- };
40
- }, []), isKeyboardVisible;
41
- };
42
- // Annotate the CommonJS export names for ESM import in node:
43
- 0 && (module.exports = {
44
- useKeyboardVisible
45
- });
46
- //# sourceMappingURL=useKeyboardVisible.js.map
39
+ var import_react = __toESM(require("react"), 1),
40
+ import_react_native = require("react-native"),
41
+ useKeyboardVisible = function () {
42
+ var [isKeyboardVisible, setKeyboardVisible] = import_react.default.useState(!1);
43
+ return import_react.default.useEffect(function () {
44
+ var keyboardDidShowListener = import_react_native.Keyboard.addListener("keyboardDidShow", function () {
45
+ setKeyboardVisible(!0);
46
+ }),
47
+ keyboardDidHideListener = import_react_native.Keyboard.addListener("keyboardDidHide", function () {
48
+ setKeyboardVisible(!1);
49
+ });
50
+ return function () {
51
+ keyboardDidHideListener.remove(), keyboardDidShowListener.remove();
52
+ };
53
+ }, []), isKeyboardVisible;
54
+ };
55
+ //# sourceMappingURL=useKeyboardVisible.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/useKeyboardVisible.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,2BAClB,sBAAyB,yBACd,qBAAqB,WAAW;AACvC,MAAI,CAAC,mBAAmB,kBAAkB,IAAI,aAAAA,QAAM,SAAS,EAAK;AAClE,sBAAAA,QAAM,UAAU,WAAW;AACvB,QAAI,0BAA0B,6BAAS,YAAY,mBAAmB,WAAW;AAC7E,yBAAmB,EAAI;AAAA,IAC3B,CAAC,GACG,0BAA0B,6BAAS,YAAY,mBAAmB,WAAW;AAC7E,yBAAmB,EAAK;AAAA,IAC5B,CAAC;AACD,WAAO,WAAW;AACd,8BAAwB,OAAO,GAC/B,wBAAwB,OAAO;AAAA,IACnC;AAAA,EACJ,GAAG,CAAC,CAAC,GACE;AACX;",
5
- "names": ["React"]
6
- }
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","useKeyboardVisible_exports","__export","useKeyboardVisible","module","exports","import_react","__toESM","require","import_react_native","isKeyboardVisible","setKeyboardVisible","default","useState","useEffect","keyboardDidShowListener","Keyboard","addListener","keyboardDidHideListener","remove"],"sources":["../../src/useKeyboardVisible.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,0BAAA;AAAAC,QAAA,CAAAD,0BAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkB,CAAAK,0BAClB;AAEO,IAAAK,YAAM,GAAAC,OAAA,CAAqBC,OAAe;EAAAC,mBAAA,GAAAD,OAAA;EAAAL,kBAAA,YAAAA,CAAA;IAC/C,KAAAO,iBAAO,EAAAC,kBAAmB,IAAkBL,YAAI,CAAAM,OAAA,CAAAC,QAAM,GAAS;IAE/D,OAAAP,YAAA,CAAAM,OAAA,CAAME,SAAA,CAAU,YAAM;MACpB,IAAAC,uBAAM,GAAAN,mBAA0B,CAAAO,QAAA,CAAAC,WAAS,kBAAY,cAAyB;UAC5EN,kBAAA,CAAmB,EAAI;QACzB,CAAC;QACKO,uBAAA,GAA0BT,mBAAA,CAAAO,QAAA,CAASC,WAAA,CAAY,mBAAmB,YAAM;UAC5EN,kBAAA,CAAmB,EAAK;QAC1B,CAAC;MAED,OAAO,YAAM;QACXO,uBAAA,CAAwBC,MAAA,CAAO,GAC/BJ,uBAAA,CAAwBI,MAAA,CAAO;MACjC;IACF,GAAG,EAAE,GAEET,iBAAA;EACT","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@tamagui/use-keyboard-visible",
3
- "version": "1.135.4",
3
+ "version": "1.135.6",
4
+ "type": "module",
4
5
  "types": "./types/index.d.ts",
5
6
  "main": "dist/cjs",
6
7
  "module": "dist/esm",
@@ -31,7 +32,7 @@
31
32
  }
32
33
  },
33
34
  "devDependencies": {
34
- "@tamagui/build": "1.135.4",
35
+ "@tamagui/build": "1.135.6",
35
36
  "react": "*",
36
37
  "react-native": "^0.79.2"
37
38
  },