@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.
- package/dist/cjs/PressBoundary.cjs +92 -0
- package/dist/cjs/PressBoundary.native.js +105 -0
- package/dist/cjs/PressBoundary.native.js.map +1 -0
- package/dist/cjs/burntState.cjs +14 -12
- package/dist/cjs/burntState.native.js +18 -16
- package/dist/cjs/burntState.native.js.map +1 -1
- package/dist/cjs/components.cjs +20 -15
- package/dist/cjs/components.native.js +24 -22
- package/dist/cjs/components.native.js.map +1 -1
- package/dist/cjs/gesture-handler.cjs +36 -0
- package/dist/cjs/gesture-handler.native.js +39 -0
- package/dist/cjs/gesture-handler.native.js.map +1 -0
- package/dist/cjs/gestureState.cjs +116 -23
- package/dist/cjs/gestureState.native.js +127 -38
- package/dist/cjs/gestureState.native.js.map +1 -1
- package/dist/cjs/globalState.cjs +17 -11
- package/dist/cjs/globalState.native.js +17 -11
- package/dist/cjs/globalState.native.js.map +1 -1
- package/dist/cjs/index.cjs +26 -21
- package/dist/cjs/index.native.js +26 -21
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/keyboardControllerState.cjs +14 -12
- package/dist/cjs/keyboardControllerState.native.js +23 -21
- package/dist/cjs/keyboardControllerState.native.js.map +1 -1
- package/dist/cjs/linearGradientState.cjs +14 -12
- package/dist/cjs/linearGradientState.native.js +17 -15
- package/dist/cjs/linearGradientState.native.js.map +1 -1
- package/dist/cjs/nativeMenuContext.cjs +13 -11
- package/dist/cjs/nativeMenuContext.native.js +14 -12
- package/dist/cjs/nativeMenuContext.native.js.map +1 -1
- package/dist/cjs/portalState.cjs +14 -12
- package/dist/cjs/portalState.native.js +17 -15
- package/dist/cjs/portalState.native.js.map +1 -1
- package/dist/cjs/safeAreaState.cjs +38 -30
- package/dist/cjs/safeAreaState.native.js +39 -31
- package/dist/cjs/safeAreaState.native.js.map +1 -1
- package/dist/cjs/setup-burnt.cjs +9 -8
- package/dist/cjs/setup-burnt.native.js +9 -8
- package/dist/cjs/setup-burnt.native.js.map +1 -1
- package/dist/cjs/setup-expo-linear-gradient.cjs +9 -8
- package/dist/cjs/setup-expo-linear-gradient.native.js +9 -8
- package/dist/cjs/setup-expo-linear-gradient.native.js.map +1 -1
- package/dist/cjs/setup-gesture-handler.cjs +58 -18
- package/dist/cjs/setup-gesture-handler.native.js +58 -18
- package/dist/cjs/setup-gesture-handler.native.js.map +1 -1
- package/dist/cjs/setup-keyboard-controller.native.js +20 -17
- package/dist/cjs/setup-safe-area.cjs +28 -1
- package/dist/cjs/setup-safe-area.native.js +19 -13
- package/dist/cjs/setup-safe-area.native.js.map +1 -1
- package/dist/cjs/setup-teleport.cjs +13 -13
- package/dist/cjs/setup-teleport.native.js +13 -13
- package/dist/cjs/setup-teleport.native.js.map +1 -1
- package/dist/cjs/setup-worklets.cjs +11 -8
- package/dist/cjs/setup-worklets.native.js +11 -8
- package/dist/cjs/setup-worklets.native.js.map +1 -1
- package/dist/cjs/setup-zeego.cjs +12 -9
- package/dist/cjs/setup-zeego.native.js +12 -9
- package/dist/cjs/setup-zeego.native.js.map +1 -1
- package/dist/cjs/types.cjs +7 -5
- package/dist/cjs/types.native.js +7 -5
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/workletsState.cjs +14 -12
- package/dist/cjs/workletsState.native.js +20 -18
- package/dist/cjs/workletsState.native.js.map +1 -1
- package/dist/cjs/zeegoState.cjs +14 -12
- package/dist/cjs/zeegoState.native.js +18 -16
- package/dist/cjs/zeegoState.native.js.map +1 -1
- package/dist/esm/PressBoundary.mjs +56 -0
- package/dist/esm/PressBoundary.mjs.map +1 -0
- package/dist/esm/PressBoundary.native.js +66 -0
- package/dist/esm/PressBoundary.native.js.map +1 -0
- package/dist/esm/burntState.mjs +2 -2
- package/dist/esm/burntState.native.js +2 -2
- package/dist/esm/components.mjs +6 -3
- package/dist/esm/components.mjs.map +1 -1
- package/dist/esm/components.native.js +10 -10
- package/dist/esm/components.native.js.map +1 -1
- package/dist/esm/gesture-handler.mjs +6 -0
- package/dist/esm/gesture-handler.mjs.map +1 -0
- package/dist/esm/gesture-handler.native.js +6 -0
- package/dist/esm/gesture-handler.native.js.map +1 -0
- package/dist/esm/gestureState.mjs +102 -13
- package/dist/esm/gestureState.mjs.map +1 -1
- package/dist/esm/gestureState.native.js +108 -23
- package/dist/esm/gestureState.native.js.map +1 -1
- package/dist/esm/globalState.mjs +5 -1
- package/dist/esm/globalState.mjs.map +1 -1
- package/dist/esm/globalState.native.js +5 -1
- package/dist/esm/globalState.native.js.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +2 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +2 -1
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/keyboardControllerState.mjs +2 -2
- package/dist/esm/keyboardControllerState.native.js +2 -2
- package/dist/esm/linearGradientState.mjs +2 -2
- package/dist/esm/linearGradientState.native.js +2 -2
- package/dist/esm/nativeMenuContext.mjs +1 -1
- package/dist/esm/nativeMenuContext.mjs.map +1 -1
- package/dist/esm/nativeMenuContext.native.js +1 -1
- package/dist/esm/nativeMenuContext.native.js.map +1 -1
- package/dist/esm/portalState.mjs +2 -2
- package/dist/esm/portalState.native.js +2 -2
- package/dist/esm/safeAreaState.mjs +26 -20
- package/dist/esm/safeAreaState.mjs.map +1 -1
- package/dist/esm/safeAreaState.native.js +26 -20
- package/dist/esm/safeAreaState.native.js.map +1 -1
- package/dist/esm/setup-burnt.mjs +9 -8
- package/dist/esm/setup-burnt.mjs.map +1 -1
- package/dist/esm/setup-burnt.native.js +9 -8
- package/dist/esm/setup-burnt.native.js.map +1 -1
- package/dist/esm/setup-expo-linear-gradient.mjs +9 -8
- package/dist/esm/setup-expo-linear-gradient.mjs.map +1 -1
- package/dist/esm/setup-expo-linear-gradient.native.js +9 -8
- package/dist/esm/setup-expo-linear-gradient.native.js.map +1 -1
- package/dist/esm/setup-gesture-handler.mjs +31 -18
- package/dist/esm/setup-gesture-handler.mjs.map +1 -1
- package/dist/esm/setup-gesture-handler.native.js +31 -18
- package/dist/esm/setup-gesture-handler.native.js.map +1 -1
- package/dist/esm/setup-keyboard-controller.native.js +20 -17
- package/dist/esm/setup-safe-area.mjs +27 -0
- package/dist/esm/setup-safe-area.mjs.map +1 -1
- package/dist/esm/setup-safe-area.native.js +19 -13
- package/dist/esm/setup-safe-area.native.js.map +1 -1
- package/dist/esm/setup-teleport.mjs +13 -13
- package/dist/esm/setup-teleport.mjs.map +1 -1
- package/dist/esm/setup-teleport.native.js +13 -13
- package/dist/esm/setup-teleport.native.js.map +1 -1
- package/dist/esm/setup-worklets.mjs +11 -8
- package/dist/esm/setup-worklets.mjs.map +1 -1
- package/dist/esm/setup-worklets.native.js +11 -8
- package/dist/esm/setup-worklets.native.js.map +1 -1
- package/dist/esm/setup-zeego.mjs +12 -9
- package/dist/esm/setup-zeego.mjs.map +1 -1
- package/dist/esm/setup-zeego.native.js +12 -9
- package/dist/esm/setup-zeego.native.js.map +1 -1
- package/dist/esm/workletsState.mjs +2 -2
- package/dist/esm/workletsState.native.js +2 -2
- package/dist/esm/zeegoState.mjs +2 -2
- package/dist/esm/zeegoState.native.js +2 -2
- package/gesture-handler/index.cjs +1 -0
- package/gesture-handler/index.js +1 -0
- package/gesture-handler/index.native.cjs +1 -0
- package/gesture-handler/index.native.js +1 -0
- package/gesture-handler.cjs +1 -0
- package/package.json +16 -3
- package/src/PressBoundary.tsx +81 -0
- package/src/gesture-handler.ts +17 -0
- package/src/gestureState.ts +137 -6
- package/src/index.ts +13 -2
- package/src/setup-burnt.ts +1 -1
- package/src/setup-gesture-handler.ts +38 -11
- package/src/setup-keyboard-controller.ts +1 -1
- package/src/setup-safe-area.ts +3 -3
- package/src/setup-worklets.ts +1 -1
- package/src/setup-zeego.ts +1 -1
- package/types/PressBoundary.d.ts +14 -0
- package/types/gesture-handler.d.ts +8 -0
- package/types/gestureState.d.ts +4 -0
- package/types/index.d.ts +4 -2
- 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":"
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
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)(
|
|
30
|
-
enabled:
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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":"
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
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)(
|
|
28
|
-
enabled:
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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":"
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
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)(
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
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
|
-
|
|
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"
|
|
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":[]}
|
package/dist/cjs/portalState.cjs
CHANGED
|
@@ -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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
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)(
|
|
28
|
-
enabled:
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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":"
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
17
|
-
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
18
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
-
value:
|
|
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)(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
20
22
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value:
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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":"
|
|
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":[]}
|