@hanzogui/native 3.0.6 → 4.4.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.
Files changed (163) hide show
  1. package/dist/cjs/PressBoundary.cjs +92 -0
  2. package/dist/cjs/PressBoundary.native.js +105 -0
  3. package/dist/cjs/PressBoundary.native.js.map +1 -0
  4. package/dist/cjs/burntState.cjs +14 -12
  5. package/dist/cjs/burntState.native.js +18 -16
  6. package/dist/cjs/burntState.native.js.map +1 -1
  7. package/dist/cjs/components.cjs +20 -15
  8. package/dist/cjs/components.native.js +24 -22
  9. package/dist/cjs/components.native.js.map +1 -1
  10. package/dist/cjs/gesture-handler.cjs +36 -0
  11. package/dist/cjs/gesture-handler.native.js +39 -0
  12. package/dist/cjs/gesture-handler.native.js.map +1 -0
  13. package/dist/cjs/gestureState.cjs +116 -23
  14. package/dist/cjs/gestureState.native.js +127 -38
  15. package/dist/cjs/gestureState.native.js.map +1 -1
  16. package/dist/cjs/globalState.cjs +17 -11
  17. package/dist/cjs/globalState.native.js +17 -11
  18. package/dist/cjs/globalState.native.js.map +1 -1
  19. package/dist/cjs/index.cjs +26 -21
  20. package/dist/cjs/index.native.js +26 -21
  21. package/dist/cjs/index.native.js.map +1 -1
  22. package/dist/cjs/keyboardControllerState.cjs +14 -12
  23. package/dist/cjs/keyboardControllerState.native.js +23 -21
  24. package/dist/cjs/keyboardControllerState.native.js.map +1 -1
  25. package/dist/cjs/linearGradientState.cjs +14 -12
  26. package/dist/cjs/linearGradientState.native.js +17 -15
  27. package/dist/cjs/linearGradientState.native.js.map +1 -1
  28. package/dist/cjs/nativeMenuContext.cjs +13 -11
  29. package/dist/cjs/nativeMenuContext.native.js +14 -12
  30. package/dist/cjs/nativeMenuContext.native.js.map +1 -1
  31. package/dist/cjs/portalState.cjs +14 -12
  32. package/dist/cjs/portalState.native.js +17 -15
  33. package/dist/cjs/portalState.native.js.map +1 -1
  34. package/dist/cjs/safeAreaState.cjs +38 -30
  35. package/dist/cjs/safeAreaState.native.js +39 -31
  36. package/dist/cjs/safeAreaState.native.js.map +1 -1
  37. package/dist/cjs/setup-burnt.cjs +9 -8
  38. package/dist/cjs/setup-burnt.native.js +9 -8
  39. package/dist/cjs/setup-burnt.native.js.map +1 -1
  40. package/dist/cjs/setup-expo-linear-gradient.cjs +9 -8
  41. package/dist/cjs/setup-expo-linear-gradient.native.js +9 -8
  42. package/dist/cjs/setup-expo-linear-gradient.native.js.map +1 -1
  43. package/dist/cjs/setup-gesture-handler.cjs +58 -18
  44. package/dist/cjs/setup-gesture-handler.native.js +58 -18
  45. package/dist/cjs/setup-gesture-handler.native.js.map +1 -1
  46. package/dist/cjs/setup-keyboard-controller.native.js +20 -17
  47. package/dist/cjs/setup-safe-area.cjs +28 -1
  48. package/dist/cjs/setup-safe-area.native.js +19 -13
  49. package/dist/cjs/setup-safe-area.native.js.map +1 -1
  50. package/dist/cjs/setup-teleport.cjs +13 -13
  51. package/dist/cjs/setup-teleport.native.js +13 -13
  52. package/dist/cjs/setup-teleport.native.js.map +1 -1
  53. package/dist/cjs/setup-worklets.cjs +11 -8
  54. package/dist/cjs/setup-worklets.native.js +11 -8
  55. package/dist/cjs/setup-worklets.native.js.map +1 -1
  56. package/dist/cjs/setup-zeego.cjs +12 -9
  57. package/dist/cjs/setup-zeego.native.js +12 -9
  58. package/dist/cjs/setup-zeego.native.js.map +1 -1
  59. package/dist/cjs/types.cjs +7 -5
  60. package/dist/cjs/types.native.js +7 -5
  61. package/dist/cjs/types.native.js.map +1 -1
  62. package/dist/cjs/workletsState.cjs +14 -12
  63. package/dist/cjs/workletsState.native.js +20 -18
  64. package/dist/cjs/workletsState.native.js.map +1 -1
  65. package/dist/cjs/zeegoState.cjs +14 -12
  66. package/dist/cjs/zeegoState.native.js +18 -16
  67. package/dist/cjs/zeegoState.native.js.map +1 -1
  68. package/dist/esm/PressBoundary.mjs +56 -0
  69. package/dist/esm/PressBoundary.mjs.map +1 -0
  70. package/dist/esm/PressBoundary.native.js +66 -0
  71. package/dist/esm/PressBoundary.native.js.map +1 -0
  72. package/dist/esm/burntState.mjs +2 -2
  73. package/dist/esm/burntState.native.js +2 -2
  74. package/dist/esm/components.mjs +6 -3
  75. package/dist/esm/components.mjs.map +1 -1
  76. package/dist/esm/components.native.js +10 -10
  77. package/dist/esm/components.native.js.map +1 -1
  78. package/dist/esm/gesture-handler.mjs +6 -0
  79. package/dist/esm/gesture-handler.mjs.map +1 -0
  80. package/dist/esm/gesture-handler.native.js +6 -0
  81. package/dist/esm/gesture-handler.native.js.map +1 -0
  82. package/dist/esm/gestureState.mjs +102 -13
  83. package/dist/esm/gestureState.mjs.map +1 -1
  84. package/dist/esm/gestureState.native.js +108 -23
  85. package/dist/esm/gestureState.native.js.map +1 -1
  86. package/dist/esm/globalState.mjs +5 -1
  87. package/dist/esm/globalState.mjs.map +1 -1
  88. package/dist/esm/globalState.native.js +5 -1
  89. package/dist/esm/globalState.native.js.map +1 -1
  90. package/dist/esm/index.js +2 -1
  91. package/dist/esm/index.js.map +1 -1
  92. package/dist/esm/index.mjs +2 -1
  93. package/dist/esm/index.mjs.map +1 -1
  94. package/dist/esm/index.native.js +2 -1
  95. package/dist/esm/index.native.js.map +1 -1
  96. package/dist/esm/keyboardControllerState.mjs +2 -2
  97. package/dist/esm/keyboardControllerState.native.js +2 -2
  98. package/dist/esm/linearGradientState.mjs +2 -2
  99. package/dist/esm/linearGradientState.native.js +2 -2
  100. package/dist/esm/nativeMenuContext.mjs +1 -1
  101. package/dist/esm/nativeMenuContext.mjs.map +1 -1
  102. package/dist/esm/nativeMenuContext.native.js +1 -1
  103. package/dist/esm/nativeMenuContext.native.js.map +1 -1
  104. package/dist/esm/portalState.mjs +2 -2
  105. package/dist/esm/portalState.native.js +2 -2
  106. package/dist/esm/safeAreaState.mjs +26 -20
  107. package/dist/esm/safeAreaState.mjs.map +1 -1
  108. package/dist/esm/safeAreaState.native.js +26 -20
  109. package/dist/esm/safeAreaState.native.js.map +1 -1
  110. package/dist/esm/setup-burnt.mjs +9 -8
  111. package/dist/esm/setup-burnt.mjs.map +1 -1
  112. package/dist/esm/setup-burnt.native.js +9 -8
  113. package/dist/esm/setup-burnt.native.js.map +1 -1
  114. package/dist/esm/setup-expo-linear-gradient.mjs +9 -8
  115. package/dist/esm/setup-expo-linear-gradient.mjs.map +1 -1
  116. package/dist/esm/setup-expo-linear-gradient.native.js +9 -8
  117. package/dist/esm/setup-expo-linear-gradient.native.js.map +1 -1
  118. package/dist/esm/setup-gesture-handler.mjs +31 -18
  119. package/dist/esm/setup-gesture-handler.mjs.map +1 -1
  120. package/dist/esm/setup-gesture-handler.native.js +31 -18
  121. package/dist/esm/setup-gesture-handler.native.js.map +1 -1
  122. package/dist/esm/setup-keyboard-controller.native.js +20 -17
  123. package/dist/esm/setup-safe-area.mjs +27 -0
  124. package/dist/esm/setup-safe-area.mjs.map +1 -1
  125. package/dist/esm/setup-safe-area.native.js +19 -13
  126. package/dist/esm/setup-safe-area.native.js.map +1 -1
  127. package/dist/esm/setup-teleport.mjs +13 -13
  128. package/dist/esm/setup-teleport.mjs.map +1 -1
  129. package/dist/esm/setup-teleport.native.js +13 -13
  130. package/dist/esm/setup-teleport.native.js.map +1 -1
  131. package/dist/esm/setup-worklets.mjs +11 -8
  132. package/dist/esm/setup-worklets.mjs.map +1 -1
  133. package/dist/esm/setup-worklets.native.js +11 -8
  134. package/dist/esm/setup-worklets.native.js.map +1 -1
  135. package/dist/esm/setup-zeego.mjs +12 -9
  136. package/dist/esm/setup-zeego.mjs.map +1 -1
  137. package/dist/esm/setup-zeego.native.js +12 -9
  138. package/dist/esm/setup-zeego.native.js.map +1 -1
  139. package/dist/esm/workletsState.mjs +2 -2
  140. package/dist/esm/workletsState.native.js +2 -2
  141. package/dist/esm/zeegoState.mjs +2 -2
  142. package/dist/esm/zeegoState.native.js +2 -2
  143. package/gesture-handler/index.cjs +1 -0
  144. package/gesture-handler/index.js +1 -0
  145. package/gesture-handler/index.native.cjs +1 -0
  146. package/gesture-handler/index.native.js +1 -0
  147. package/gesture-handler.cjs +1 -0
  148. package/package.json +16 -3
  149. package/src/PressBoundary.tsx +81 -0
  150. package/src/gesture-handler.ts +17 -0
  151. package/src/gestureState.ts +137 -6
  152. package/src/index.ts +13 -2
  153. package/src/setup-burnt.ts +1 -1
  154. package/src/setup-gesture-handler.ts +38 -11
  155. package/src/setup-keyboard-controller.ts +1 -1
  156. package/src/setup-safe-area.ts +3 -3
  157. package/src/setup-worklets.ts +1 -1
  158. package/src/setup-zeego.ts +1 -1
  159. package/types/PressBoundary.d.ts +14 -0
  160. package/types/gesture-handler.d.ts +8 -0
  161. package/types/gestureState.d.ts +4 -0
  162. package/types/index.d.ts +4 -2
  163. package/types/setup-gesture-handler.d.ts +8 -1
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","NativeMenuContext","import_nativeMenuContext","NativePortal","import_components","NativePortalHost","NativePortalProvider","getBurnt","import_burntState","getGestureHandler","import_gestureState","getKeyboardControllerState","import_keyboardControllerState","getLinearGradient","import_linearGradientState","getPortal","import_portalState","getSafeArea","import_safeAreaState","getWorklets","import_workletsState","getZeego","import_zeegoState","isKeyboardControllerEnabled","setKeyboardControllerState","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,iBAAA,EAAAA,CAAA,KAAAC,wBAAA,CAAAD,iBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAC,iBAAA,CAAAD,YAAA;EAAAE,gBAAA,EAAAA,CAAA,KAAAD,iBAAA,CAAAC,gBAAA;EAAAC,oBAAA,EAAAA,CAAA,KAAAF,iBAAA,CAAAE,oBAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAC,iBAAA,CAAAD,QAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAC,mBAAA,CAAAD,iBAAA;EAAAE,0BAAA,EAAAA,CAAA,KAAAC,8BAAA,CAAAD,0BAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAC,0BAAA,CAAAD,iBAAA;EAAAE,SAAA,EAAAA,CAAA,KAAAC,kBAAA,CAAAD,SAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAC,oBAAA,CAAAD,WAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAC,oBAAA,CAAAD,WAAA;EAAAE,QAAA,EAAAA,CAAA,KAAAC,iBAAA,CAAAD,QAAA;EAAAE,2BAAA,EAAAA,CAAA,KAAAX,8BAAA,CAAAW,2BAAA;EAAAC,0BAAA,EAAAA,CAAA,KAAAZ,8BAAA,CAAAY;AAAA;AAuCAC,MAAA,CAAAC,OAAA,GAAAhC,YAA0B,CAAAK,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","NativeMenuContext","import_nativeMenuContext","NativePortal","import_components","NativePortalHost","NativePortalProvider","getBurnt","import_burntState","getGestureHandler","import_gestureState","getKeyboardControllerState","import_keyboardControllerState","getLinearGradient","import_linearGradientState","getPortal","import_portalState","getSafeArea","import_safeAreaState","getWorklets","import_workletsState","getZeego","import_zeegoState","isKeyboardControllerEnabled","setKeyboardControllerState","unstable_claimExternalPressOwnership","import_gestureState2","claimExternalPressOwnership","unstable_releaseExternalPressOwnership","releaseExternalPressOwnership","module","exports","require"],"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,iBAAA,EAAAA,CAAA,KAAAC,wBAAA,CAAAD,iBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAC,iBAAA,CAAAD,YAAA;EAAAE,gBAAA,EAAAA,CAAA,KAAAD,iBAAA,CAAAC,gBAAA;EAAAC,oBAAA,EAAAA,CAAA,KAAAF,iBAAA,CAAAE,oBAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAC,iBAAA,CAAAD,QAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAC,mBAAA,CAAAD,iBAAA;EAAAE,0BAAA,EAAAA,CAAA,KAAAC,8BAAA,CAAAD,0BAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAC,0BAAA,CAAAD,iBAAA;EAAAE,SAAA,EAAAA,CAAA,KAAAC,kBAAA,CAAAD,SAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAC,oBAAA,CAAAD,WAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAC,oBAAA,CAAAD,WAAA;EAAAE,QAAA,EAAAA,CAAA,KAAAC,iBAAA,CAAAD,QAAA;EAAAE,2BAAA,EAAAA,CAAA,KAAAX,8BAAA,CAAAW,2BAAA;EAAAC,0BAAA,EAAAA,CAAA,KAAAZ,8BAAA,CAAAY,0BAAA;EAAAC,oCAAA,EAAAA,CAAA,KAAAC,oBAAA,CAAAC,2BAAA;EAAAC,sCAAA,EAAAA,CAAA,KAAAF,oBAAA,CAAAG;AAAA;AAuCAC,MAAA,CAAAC,OAAA,GAAArC,YAA0B,CAAAK,aAAA;AAI1B,IAAAiB,kBAAA,GAAAgB,OAAkC;AAClC,IAAAtB,mBAAA,GAAAsB,OAGO;AAWP,IAAAN,oBAAA,GAA4BM,OAAA;AAI5B,IAAAZ,oBAAA,GAA4BY,OAAA;AAI5B,IAAAd,oBAAA,GAAAc,OAAkC;AAIlC,IAAAlB,0BAAA,GAAAkB,OAIO;AAIP,IAAApB,8BAAyB,GAAAoB,OAAA;AAEzB,IAAAV,iBAAA,GAAAU,OAAkC;AAGlC,IAAA9B,wBAAyB,GAAA8B,OAAA;AAIzB,IAAAxB,iBAAA,GAAqEwB,OAAA","ignoreList":[]}
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var keyboardControllerState_exports = {};
22
24
  __export(keyboardControllerState_exports, {
@@ -26,8 +28,8 @@ __export(keyboardControllerState_exports, {
26
28
  });
27
29
  module.exports = __toCommonJS(keyboardControllerState_exports);
28
30
  var import_globalState = require("./globalState.cjs");
29
- const state = (0, import_globalState.createGlobalState)("keyboard_controller", {
30
- enabled: !1,
31
+ const state = (0, import_globalState.createGlobalState)(`keyboard_controller`, {
32
+ enabled: false,
31
33
  KeyboardProvider: null,
32
34
  KeyboardAwareScrollView: null,
33
35
  useKeyboardHandler: null,
@@ -5,20 +5,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
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, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var keyboardControllerState_exports = {};
24
26
  __export(keyboardControllerState_exports, {
@@ -27,17 +29,17 @@ __export(keyboardControllerState_exports, {
27
29
  setKeyboardControllerState: () => setKeyboardControllerState
28
30
  });
29
31
  module.exports = __toCommonJS(keyboardControllerState_exports);
30
- var import_globalState = require("./globalState.native.js"),
31
- state = (0, import_globalState.createGlobalState)("keyboard_controller", {
32
- enabled: !1,
33
- KeyboardProvider: null,
34
- KeyboardAwareScrollView: null,
35
- useKeyboardHandler: null,
36
- useReanimatedKeyboardAnimation: null,
37
- KeyboardController: null,
38
- KeyboardEvents: null,
39
- KeyboardStickyView: null
40
- });
32
+ var import_globalState = require("./globalState.native.js");
33
+ var state = (0, import_globalState.createGlobalState)(`keyboard_controller`, {
34
+ enabled: false,
35
+ KeyboardProvider: null,
36
+ KeyboardAwareScrollView: null,
37
+ useKeyboardHandler: null,
38
+ useReanimatedKeyboardAnimation: null,
39
+ KeyboardController: null,
40
+ KeyboardEvents: null,
41
+ KeyboardStickyView: null
42
+ });
41
43
  function isKeyboardControllerEnabled() {
42
44
  return state.get().enabled;
43
45
  }
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","keyboardControllerState_exports","__export","getKeyboardControllerState","isKeyboardControllerEnabled","setKeyboardControllerState","module","exports","import_globalState","require","state","createGlobalState","enabled","KeyboardProvider","KeyboardAwareScrollView","useKeyboardHandler","useReanimatedKeyboardAnimation","KeyboardController","KeyboardEvents","KeyboardStickyView","get","updates","Object","assign"],"sources":["../../src/keyboardControllerState.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,+BAAA;AAAAC,QAAA,CAAAD,+BAAA;EAAAE,0BAAA,EAAAA,CAAA,KAAAA,0BAAA;EAAAC,2BAAA,EAAAA,CAAA,KAAAA,2BAAA;EAAAC,0BAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAX,YAAkC,CAAAK,+BAAA;AAKlC,IAAAO,kBAAc,GAAAC,OAAA;EAAAC,KAA2C,OAAAF,kBAAuB,CAAAG,iBAAA;IAC9EC,OAAA,EAAS;IACTC,gBAAA,EAAkB;IAClBC,uBAAA,EAAyB;IACzBC,kBAAA,EAAoB;IACpBC,8BAAA,EAAgC;IAChCC,kBAAA,EAAoB;IACpBC,cAAA,EAAgB;IAChBC,kBAAA,EAAoB;EACtB,CAAC;AAEM,SAASf,4BAAA,EAAuC;EACrD,OAAOM,KAAA,CAAMU,GAAA,CAAI,EAAER,OAAA;AACrB;AAEO,SAAST,2BAAA,EAAsD;EACpE,OAAOO,KAAA,CAAMU,GAAA,CAAI;AACnB;AAEO,SAASf,2BACdgB,OAAA,EACM;EACNC,MAAA,CAAOC,MAAA,CAAOb,KAAA,CAAMU,GAAA,CAAI,GAAGC,OAAO;AACpC","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","keyboardControllerState_exports","__export","getKeyboardControllerState","isKeyboardControllerEnabled","setKeyboardControllerState","module","exports","import_globalState","require","state","createGlobalState","enabled","KeyboardProvider","KeyboardAwareScrollView","useKeyboardHandler","useReanimatedKeyboardAnimation","KeyboardController","KeyboardEvents","KeyboardStickyView","get","updates","Object","assign"],"sources":["../../src/keyboardControllerState.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,+BAAA;AAAAC,QAAA,CAAAD,+BAAA;EAAAE,0BAAA,EAAAA,CAAA,KAAAA,0BAAA;EAAAC,2BAAA,EAAAA,CAAA,KAAAA,2BAAA;EAAAC,0BAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAX,YAAkC,CAAAK,+BAAA;AAKlC,IAAAO,kBAAc,GAAAC,OAAA;AAAkE,IAC9EC,KAAA,GAAS,IAAAF,kBAAA,CAAAG,iBAAA;EACTC,OAAA;EACAC,gBAAA;EACAC,uBAAoB;EACpBC,kBAAA;EACAC,8BAAoB;EACpBC,kBAAgB;EAChBC,cAAA,MAAoB;EACrBC,kBAAA;AAEM;AACL,SAAOf,2BAAYA,CAAA;EACrB,OAAAM,KAAA,CAAAU,GAAA,GAAAR,OAAA;AAEO;AACL,SAAOT,0BAAUA,CAAA;EACnB,OAAAO,KAAA,CAAAU,GAAA;AAEO;AAGL,SAAOf,0BAAoBA,CAAOgB,OAAA;EACpCC,MAAA,CAAAC,MAAA,CAAAb,KAAA,CAAAU,GAAA,IAAAC,OAAA","ignoreList":[]}
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var linearGradientState_exports = {};
22
24
  __export(linearGradientState_exports, {
@@ -24,8 +26,8 @@ __export(linearGradientState_exports, {
24
26
  });
25
27
  module.exports = __toCommonJS(linearGradientState_exports);
26
28
  var import_globalState = require("./globalState.cjs");
27
- const state = (0, import_globalState.createGlobalState)("linear_gradient", {
28
- enabled: !1,
29
+ const state = (0, import_globalState.createGlobalState)(`linear_gradient`, {
30
+ enabled: false,
29
31
  Component: null
30
32
  });
31
33
  function getLinearGradient() {
@@ -5,31 +5,33 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
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, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var linearGradientState_exports = {};
24
26
  __export(linearGradientState_exports, {
25
27
  getLinearGradient: () => getLinearGradient
26
28
  });
27
29
  module.exports = __toCommonJS(linearGradientState_exports);
28
- var import_globalState = require("./globalState.native.js"),
29
- state = (0, import_globalState.createGlobalState)("linear_gradient", {
30
- enabled: !1,
31
- Component: null
32
- });
30
+ var import_globalState = require("./globalState.native.js");
31
+ var state = (0, import_globalState.createGlobalState)(`linear_gradient`, {
32
+ enabled: false,
33
+ Component: null
34
+ });
33
35
  function getLinearGradient() {
34
36
  return {
35
37
  get isEnabled() {
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","linearGradientState_exports","__export","getLinearGradient","module","exports","import_globalState","require","state","createGlobalState","enabled","Component","isEnabled","get","set","newState"],"sources":["../../src/linearGradientState.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,2BAAA;AAAAC,QAAA,CAAAD,2BAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkC,CAAAK,2BAAA;AAGlC,IAAAK,kBAAc,GAAAC,OAAA;EAAAC,KAAuC,OAAAF,kBAAmB,CAAAG,iBAAA;IACtEC,OAAA,EAAS;IACTC,SAAA,EAAW;EACb,CAAC;AAQM,SAASR,kBAAA,EAA4C;EAC1D,OAAO;IACL,IAAIS,UAAA,EAAqB;MACvB,OAAOJ,KAAA,CAAMK,GAAA,CAAI,EAAEH,OAAA;IACrB;IACA,IAAIF,MAAA,EAA6B;MAC/B,OAAOA,KAAA,CAAMK,GAAA,CAAI;IACnB;IACAC,IAAIC,QAAA,EAAqC;MACvCP,KAAA,CAAMM,GAAA,CAAIC,QAAQ;IACpB;EACF;AACF","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","linearGradientState_exports","__export","getLinearGradient","module","exports","import_globalState","require","state","createGlobalState","enabled","Component","isEnabled","get","set","newState"],"sources":["../../src/linearGradientState.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,2BAAA;AAAAC,QAAA,CAAAD,2BAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkC,CAAAK,2BAAA;AAGlC,IAAAK,kBAAc,GAAAC,OAAA;AAA0D,IACtEC,KAAA,GAAS,IAAAF,kBAAA,CAAAG,iBAAA;EACTC,OAAA,OAAW;EACZC,SAAA;AAQM;AACL,SAAOR,kBAAA;EAAA,OACD;IACF,IAAAS,SAAOA,CAAA,EAAM;MACf,OAAAJ,KAAA,CAAAK,GAAA,GAAAH,OAAA;IACA;IACE,IAAAF,KAAOA,CAAA;MACT,OAAAA,KAAA,CAAAK,GAAA;IACA;IACEC,IAAAC,QAAU;MACZP,KAAA,CAAAM,GAAA,CAAAC,QAAA;IACF;EACF","ignoreList":[]}
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var nativeMenuContext_exports = {};
22
24
  __export(nativeMenuContext_exports, {
@@ -24,4 +26,4 @@ __export(nativeMenuContext_exports, {
24
26
  });
25
27
  module.exports = __toCommonJS(nativeMenuContext_exports);
26
28
  var import_react = require("react");
27
- const NativeMenuContext = (0, import_react.createContext)(!1);
29
+ const NativeMenuContext = (0, import_react.createContext)(false);
@@ -5,26 +5,28 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
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, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var nativeMenuContext_exports = {};
24
26
  __export(nativeMenuContext_exports, {
25
27
  NativeMenuContext: () => NativeMenuContext
26
28
  });
27
29
  module.exports = __toCommonJS(nativeMenuContext_exports);
28
- var import_react = require("react"),
29
- NativeMenuContext = (0, import_react.createContext)(!1);
30
+ var import_react = require("react");
31
+ var NativeMenuContext = (0, import_react.createContext)(false);
30
32
  //# sourceMappingURL=nativeMenuContext.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","nativeMenuContext_exports","__export","NativeMenuContext","module","exports","import_react","require","createContext"],"sources":["../../src/nativeMenuContext.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,yBAAA;AAAAC,QAAA,CAAAD,yBAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAA8B,CAAAK,yBAAA;AAEvB,IAAAK,YAAM,GAAAC,OAAA,QAA4C;EAAAJ,iBAAA,IAAc,GAAKG,YAAA,CAAAE,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","nativeMenuContext_exports","__export","NativeMenuContext","module","exports","import_react","require"],"sources":["../../src/nativeMenuContext.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,yBAAA;AAAAC,QAAA,CAAAD,yBAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAA;AAAA;AACAC,MAAA,CAAAC,OAAA,GAAAT,YAA8B,CAAAK,yBAAA;AAEvB,IAAAK,YAAM,GAAAC,OAAA,QAA4C","ignoreList":[]}
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var portalState_exports = {};
22
24
  __export(portalState_exports, {
@@ -24,8 +26,8 @@ __export(portalState_exports, {
24
26
  });
25
27
  module.exports = __toCommonJS(portalState_exports);
26
28
  var import_globalState = require("./globalState.cjs");
27
- const state = (0, import_globalState.createGlobalState)("portal", {
28
- enabled: !1,
29
+ const state = (0, import_globalState.createGlobalState)(`portal`, {
30
+ enabled: false,
29
31
  type: null
30
32
  });
31
33
  function getPortal() {
@@ -5,31 +5,33 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
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, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var portalState_exports = {};
24
26
  __export(portalState_exports, {
25
27
  getPortal: () => getPortal
26
28
  });
27
29
  module.exports = __toCommonJS(portalState_exports);
28
- var import_globalState = require("./globalState.native.js"),
29
- state = (0, import_globalState.createGlobalState)("portal", {
30
- enabled: !1,
31
- type: null
32
- });
30
+ var import_globalState = require("./globalState.native.js");
31
+ var state = (0, import_globalState.createGlobalState)(`portal`, {
32
+ enabled: false,
33
+ type: null
34
+ });
33
35
  function getPortal() {
34
36
  return {
35
37
  get isEnabled() {
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","portalState_exports","__export","getPortal","module","exports","import_globalState","require","state","createGlobalState","enabled","type","isEnabled","get","set","newState"],"sources":["../../src/portalState.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,SAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkC,CAAAK,mBAAA;AAGlC,IAAAK,kBAAc,GAAAC,OAAA;EAAAC,KAAqC,OAAAF,kBAAU,CAAAG,iBAAA;IAC3DC,OAAA,EAAS;IACTC,IAAA,EAAM;EACR,CAAC;AAQM,SAASR,UAAA,EAA4B;EAC1C,OAAO;IACL,IAAIS,UAAA,EAAqB;MACvB,OAAOJ,KAAA,CAAMK,GAAA,CAAI,EAAEH,OAAA;IACrB;IACA,IAAIF,MAAA,EAA2B;MAC7B,OAAOA,KAAA,CAAMK,GAAA,CAAI;IACnB;IACAC,IAAIC,QAAA,EAAmC;MACrCP,KAAA,CAAMM,GAAA,CAAIC,QAAQ;IACpB;EACF;AACF","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","portalState_exports","__export","getPortal","module","exports","import_globalState","require","state","createGlobalState","enabled","type","isEnabled","get","set","newState"],"sources":["../../src/portalState.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,SAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkC,CAAAK,mBAAA;AAGlC,IAAAK,kBAAc,GAAAC,OAAA;AAA+C,IAC3DC,KAAA,GAAS,IAAAF,kBAAA,CAAAG,iBAAA;EACTC,OAAM;EACPC,IAAA;AAQM;AACL,SAAOR,UAAA;EAAA,OACD;IACF,IAAAS,SAAOA,CAAA,EAAM;MACf,OAAAJ,KAAA,CAAAK,GAAA,GAAAH,OAAA;IACA;IACE,IAAAF,KAAOA,CAAA;MACT,OAAAA,KAAA,CAAAK,GAAA;IACA;IACEC,IAAAC,QAAU;MACZP,KAAA,CAAAM,GAAA,CAAAC,QAAA;IACF;EACF","ignoreList":[]}
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var safeAreaState_exports = {};
22
24
  __export(safeAreaState_exports, {
@@ -24,24 +26,24 @@ __export(safeAreaState_exports, {
24
26
  });
25
27
  module.exports = __toCommonJS(safeAreaState_exports);
26
28
  var import_globalState = require("./globalState.cjs");
27
- const state = (0, import_globalState.createGlobalState)("safe_area", {
28
- enabled: !1,
29
- useSafeAreaInsets: null,
30
- useSafeAreaFrame: null,
31
- initialMetrics: null
32
- }),
33
- defaultInsets = {
34
- top: 0,
35
- right: 0,
36
- bottom: 0,
37
- left: 0
38
- },
39
- defaultFrame = {
40
- x: 0,
41
- y: 0,
42
- width: 0,
43
- height: 0
44
- };
29
+ const state = (0, import_globalState.createGlobalState)(`safe_area`, {
30
+ enabled: false,
31
+ useSafeAreaInsets: null,
32
+ useSafeAreaFrame: null,
33
+ initialMetrics: null
34
+ });
35
+ const defaultInsets = {
36
+ top: 0,
37
+ right: 0,
38
+ bottom: 0,
39
+ left: 0
40
+ };
41
+ const defaultFrame = {
42
+ x: 0,
43
+ y: 0,
44
+ width: 0,
45
+ height: 0
46
+ };
45
47
  function getSafeArea() {
46
48
  return {
47
49
  get isEnabled() {
@@ -55,11 +57,17 @@ function getSafeArea() {
55
57
  },
56
58
  getInsets() {
57
59
  const s = state.get();
58
- return !s.enabled || !s.initialMetrics ? defaultInsets : s.initialMetrics.insets;
60
+ if (!s.enabled || !s.initialMetrics) {
61
+ return defaultInsets;
62
+ }
63
+ return s.initialMetrics.insets;
59
64
  },
60
65
  getFrame() {
61
66
  const s = state.get();
62
- return !s.enabled || !s.initialMetrics ? defaultFrame : s.initialMetrics.frame;
67
+ if (!s.enabled || !s.initialMetrics) {
68
+ return defaultFrame;
69
+ }
70
+ return s.initialMetrics.frame;
63
71
  }
64
72
  };
65
73
  }
@@ -5,45 +5,47 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
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, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var safeAreaState_exports = {};
24
26
  __export(safeAreaState_exports, {
25
27
  getSafeArea: () => getSafeArea
26
28
  });
27
29
  module.exports = __toCommonJS(safeAreaState_exports);
28
- var import_globalState = require("./globalState.native.js"),
29
- state = (0, import_globalState.createGlobalState)("safe_area", {
30
- enabled: !1,
31
- useSafeAreaInsets: null,
32
- useSafeAreaFrame: null,
33
- initialMetrics: null
34
- }),
35
- defaultInsets = {
36
- top: 0,
37
- right: 0,
38
- bottom: 0,
39
- left: 0
40
- },
41
- defaultFrame = {
42
- x: 0,
43
- y: 0,
44
- width: 0,
45
- height: 0
46
- };
30
+ var import_globalState = require("./globalState.native.js");
31
+ var state = (0, import_globalState.createGlobalState)(`safe_area`, {
32
+ enabled: false,
33
+ useSafeAreaInsets: null,
34
+ useSafeAreaFrame: null,
35
+ initialMetrics: null
36
+ });
37
+ var defaultInsets = {
38
+ top: 0,
39
+ right: 0,
40
+ bottom: 0,
41
+ left: 0
42
+ };
43
+ var defaultFrame = {
44
+ x: 0,
45
+ y: 0,
46
+ width: 0,
47
+ height: 0
48
+ };
47
49
  function getSafeArea() {
48
50
  return {
49
51
  get isEnabled() {
@@ -57,11 +59,17 @@ function getSafeArea() {
57
59
  },
58
60
  getInsets() {
59
61
  var s = state.get();
60
- return !s.enabled || !s.initialMetrics ? defaultInsets : s.initialMetrics.insets;
62
+ if (!s.enabled || !s.initialMetrics) {
63
+ return defaultInsets;
64
+ }
65
+ return s.initialMetrics.insets;
61
66
  },
62
67
  getFrame() {
63
68
  var s = state.get();
64
- return !s.enabled || !s.initialMetrics ? defaultFrame : s.initialMetrics.frame;
69
+ if (!s.enabled || !s.initialMetrics) {
70
+ return defaultFrame;
71
+ }
72
+ return s.initialMetrics.frame;
65
73
  }
66
74
  };
67
75
  }
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","safeAreaState_exports","__export","getSafeArea","module","exports","import_globalState","require","state","createGlobalState","enabled","useSafeAreaInsets","useSafeAreaFrame","initialMetrics","defaultInsets","top","right","bottom","left","defaultFrame","x","y","width","height","isEnabled","get","set","updates","Object","assign"],"sources":["../../src/safeAreaState.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,qBAAA;AAAAC,QAAA,CAAAD,qBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkC,CAAAK,qBAAA;AAGlC,IAAAK,kBAAc,GAAAC,OAAA;EAAAC,KAAiC,OAAAF,kBAAa,CAAAG,iBAAA;IAC1DC,OAAA,EAAS;IACTC,iBAAA,EAAmB;IACnBC,gBAAA,EAAkB;IAClBC,cAAA,EAAgB;EAClB,CAAC;EAEKC,aAAA,GAAgC;IAa/BC,GAAA;IACLC,KAAA,EAAO;IAAAC,MACD;IACFC,IAAA;EAAmB;EAAAC,YACrB;IAAAC,CAAA,EACA;IACEC,CAAA;IAAiBC,KACnB;IAAAC,MACI;EACF;AAAkC,SACpCpB,YAAA;EAAA,OACA;IACE,IAAAqB,SAAUA,CAAA;MACV,OAAIhB,KAAG,CAAAiB,GAAA,GAAAf,OAAc;IAIvB;IACA,IAAAF,MAAA,EAAW;MACT,OAAMA,KAAI,CAAAiB,GAAM;IAChB;IAIFC,IAAAC,OAAA;MACFC,MAAA,CAAAC,MAAA,CAAArB,KAAA,CAAAiB,GAAA,IAAAE,OAAA;IACF","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","safeAreaState_exports","__export","getSafeArea","module","exports","import_globalState","require","state","createGlobalState","enabled","useSafeAreaInsets","useSafeAreaFrame","initialMetrics","defaultInsets","top","right","bottom","left","defaultFrame","x","y","width","height","isEnabled","get","set","updates","Object","assign","getInsets","s"],"sources":["../../src/safeAreaState.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,qBAAA;AAAAC,QAAA,CAAAD,qBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkC,CAAAK,qBAAA;AAGlC,IAAAK,kBAAc,GAAAC,OAAA;AAA8C,IAC1DC,KAAA,GAAS,IAAAF,kBAAA,CAAAG,iBAAA;EACTC,OAAA;EACAC,iBAAA,EAAkB;EAClBC,gBAAgB;EACjBC,cAAA;AAED;AACA,IAAAC,aAAM;EAYCC,GAAA;EACLC,KAAA,EAAO;EAAAC,MACD;EACFC,IAAA;AAAmB;AACrB,IACAC,YAAY;EACVC,CAAA;EAAiBC,CAAA,EACnB;EAAAC,KACA,EAAI;EACFC,MAAA;AAAkC;AACpC,SACApB,WAAYA,CAAA;EACV;IACA,IAAAqB,SAAOA,CAAA;MACL,OAAAhB,KAAO,CAAAiB,GAAA,GAAAf,OAAA;IAAA;IAET,IAAAF,KAAOA,CAAA,EAAE;MACX,OAAAA,KAAA,CAAAiB,GAAA;IACA;IACEC,IAAAC,OAAM,EAAI;MACVC,MAAK,CAAEC,MAAA,CAAArB,KAAY,CAAAiB,GAAE,IAAAE,OAAA;IACnB;IAAOG,SACTA,CAAA;MACA,IAAAC,CAAA,GAAOvB,KAAE,CAAAiB,GAAA;MACX,KAAAM,CAAA,CAAArB,OAAA,KAAAqB,CAAA,CAAAlB,cAAA;QACF,OAAAC,aAAA;MACF","ignoreList":[]}