@tamagui/native 2.0.0-rc.3 → 2.0.0-rc.31
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/.turbo/turbo-build.log +2 -0
- package/dist/cjs/burntState.cjs +44 -0
- package/dist/cjs/burntState.native.js +47 -0
- package/dist/cjs/burntState.native.js.map +1 -0
- package/dist/cjs/gestureState.cjs +12 -17
- package/dist/cjs/gestureState.native.js +8 -13
- package/dist/cjs/gestureState.native.js.map +1 -1
- package/dist/cjs/globalState.cjs +39 -0
- package/dist/cjs/globalState.native.js +42 -0
- package/dist/cjs/globalState.native.js.map +1 -0
- package/dist/cjs/index.cjs +4 -0
- package/dist/cjs/index.native.js +4 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/keyboardControllerState.cjs +14 -18
- package/dist/cjs/keyboardControllerState.native.js +6 -10
- package/dist/cjs/keyboardControllerState.native.js.map +1 -1
- package/dist/cjs/linearGradientState.cjs +6 -5
- package/dist/cjs/linearGradientState.native.js +8 -7
- package/dist/cjs/linearGradientState.native.js.map +1 -1
- package/dist/cjs/{state.cjs → nativeMenuContext.cjs} +6 -15
- package/dist/cjs/{state.native.js → nativeMenuContext.native.js} +7 -16
- package/dist/cjs/nativeMenuContext.native.js.map +1 -0
- package/dist/cjs/portalState.cjs +6 -5
- package/dist/cjs/portalState.native.js +8 -7
- package/dist/cjs/portalState.native.js.map +1 -1
- package/dist/cjs/safeAreaState.cjs +11 -14
- package/dist/cjs/safeAreaState.native.js +11 -14
- package/dist/cjs/safeAreaState.native.js.map +1 -1
- package/dist/cjs/setup-burnt.cjs +16 -0
- package/dist/cjs/setup-burnt.native.js +19 -0
- package/dist/cjs/setup-burnt.native.js.map +1 -0
- package/dist/cjs/setup-zeego.cjs +3 -1
- package/dist/cjs/setup-zeego.native.js +3 -1
- package/dist/cjs/setup-zeego.native.js.map +1 -1
- package/dist/cjs/workletsState.cjs +11 -15
- package/dist/cjs/workletsState.native.js +6 -10
- package/dist/cjs/workletsState.native.js.map +1 -1
- package/dist/cjs/zeegoState.cjs +6 -5
- package/dist/cjs/zeegoState.native.js +9 -8
- package/dist/cjs/zeegoState.native.js.map +1 -1
- package/dist/esm/burntState.mjs +21 -0
- package/dist/esm/burntState.mjs.map +1 -0
- package/dist/esm/burntState.native.js +21 -0
- package/dist/esm/burntState.native.js.map +1 -0
- package/dist/esm/gestureState.mjs +12 -17
- package/dist/esm/gestureState.mjs.map +1 -1
- package/dist/esm/gestureState.native.js +12 -17
- package/dist/esm/gestureState.native.js.map +1 -1
- package/dist/esm/globalState.mjs +16 -0
- package/dist/esm/globalState.mjs.map +1 -0
- package/dist/esm/globalState.native.js +16 -0
- package/dist/esm/globalState.native.js.map +1 -0
- package/dist/esm/index.js +11 -26
- package/dist/esm/index.js.map +1 -6
- package/dist/esm/index.mjs +3 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +3 -1
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/keyboardControllerState.mjs +14 -18
- package/dist/esm/keyboardControllerState.mjs.map +1 -1
- package/dist/esm/keyboardControllerState.native.js +14 -18
- package/dist/esm/keyboardControllerState.native.js.map +1 -1
- package/dist/esm/linearGradientState.mjs +6 -5
- package/dist/esm/linearGradientState.mjs.map +1 -1
- package/dist/esm/linearGradientState.native.js +6 -5
- package/dist/esm/linearGradientState.native.js.map +1 -1
- package/dist/esm/nativeMenuContext.mjs +4 -0
- package/dist/esm/nativeMenuContext.mjs.map +1 -0
- package/dist/esm/nativeMenuContext.native.js +4 -0
- package/dist/esm/nativeMenuContext.native.js.map +1 -0
- package/dist/esm/portalState.mjs +6 -5
- package/dist/esm/portalState.mjs.map +1 -1
- package/dist/esm/portalState.native.js +6 -5
- package/dist/esm/portalState.native.js.map +1 -1
- package/dist/esm/safeAreaState.mjs +11 -14
- package/dist/esm/safeAreaState.mjs.map +1 -1
- package/dist/esm/safeAreaState.native.js +11 -14
- package/dist/esm/safeAreaState.native.js.map +1 -1
- package/dist/esm/setup-burnt.mjs +17 -0
- package/dist/esm/setup-burnt.mjs.map +1 -0
- package/dist/esm/setup-burnt.native.js +17 -0
- package/dist/esm/setup-burnt.native.js.map +1 -0
- package/dist/esm/setup-zeego.mjs +3 -1
- package/dist/esm/setup-zeego.mjs.map +1 -1
- package/dist/esm/setup-zeego.native.js +3 -1
- package/dist/esm/setup-zeego.native.js.map +1 -1
- package/dist/esm/workletsState.mjs +11 -15
- package/dist/esm/workletsState.mjs.map +1 -1
- package/dist/esm/workletsState.native.js +11 -15
- package/dist/esm/workletsState.native.js.map +1 -1
- package/dist/esm/zeegoState.mjs +6 -5
- package/dist/esm/zeegoState.mjs.map +1 -1
- package/dist/esm/zeegoState.native.js +6 -5
- package/dist/esm/zeegoState.native.js.map +1 -1
- package/package.json +61 -73
- package/setup-burnt/index.cjs +2 -0
- package/setup-burnt/index.js +2 -0
- package/setup-burnt/index.native.cjs +2 -0
- package/setup-burnt/index.native.js +2 -0
- package/setup-burnt.cjs +1 -0
- package/setup-expo-linear-gradient/index.cjs +2 -0
- package/setup-expo-linear-gradient/index.js +2 -0
- package/setup-expo-linear-gradient/index.native.cjs +2 -0
- package/setup-expo-linear-gradient/index.native.js +2 -0
- package/setup-expo-linear-gradient.cjs +1 -0
- package/setup-gesture-handler/index.cjs +2 -0
- package/setup-gesture-handler/index.js +2 -0
- package/setup-gesture-handler/index.native.cjs +2 -0
- package/setup-gesture-handler/index.native.js +2 -0
- package/setup-gesture-handler.cjs +1 -0
- package/setup-keyboard-controller/index.cjs +2 -0
- package/setup-keyboard-controller/index.js +2 -0
- package/setup-keyboard-controller/index.native.cjs +2 -0
- package/setup-keyboard-controller/index.native.js +2 -0
- package/setup-keyboard-controller.cjs +1 -0
- package/setup-safe-area/index.cjs +2 -0
- package/setup-safe-area/index.js +2 -0
- package/setup-safe-area/index.native.cjs +2 -0
- package/setup-safe-area/index.native.js +2 -0
- package/setup-safe-area.cjs +1 -0
- package/setup-teleport/index.cjs +2 -0
- package/setup-teleport/index.js +2 -0
- package/setup-teleport/index.native.cjs +2 -0
- package/setup-teleport/index.native.js +2 -0
- package/setup-teleport.cjs +1 -0
- package/setup-worklets/index.cjs +2 -0
- package/setup-worklets/index.js +2 -0
- package/setup-worklets/index.native.cjs +2 -0
- package/setup-worklets/index.native.js +2 -0
- package/setup-worklets.cjs +1 -0
- package/setup-zeego/index.cjs +2 -0
- package/setup-zeego/index.js +2 -0
- package/setup-zeego/index.native.cjs +2 -0
- package/setup-zeego/index.native.js +2 -0
- package/setup-zeego.cjs +1 -0
- package/src/burntState.ts +28 -0
- package/src/gestureState.ts +12 -21
- package/src/globalState.ts +32 -0
- package/src/index.ts +6 -0
- package/src/keyboardControllerState.ts +16 -31
- package/src/linearGradientState.ts +8 -4
- package/src/nativeMenuContext.ts +4 -0
- package/src/portalState.ts +8 -4
- package/src/safeAreaState.ts +16 -23
- package/src/setup-burnt.ts +38 -0
- package/src/setup-zeego.ts +4 -1
- package/src/types.ts +17 -0
- package/src/workletsState.ts +11 -19
- package/src/zeegoState.ts +9 -4
- package/tsconfig.json +12 -0
- package/types/burntState.d.ts +9 -0
- package/types/burntState.d.ts.map +11 -0
- package/types/components.d.ts.map +2 -2
- package/types/gestureState.d.ts.map +4 -4
- package/types/globalState.d.ts +8 -0
- package/types/globalState.d.ts.map +11 -0
- package/types/index.d.ts +4 -1
- package/types/index.d.ts.map +4 -4
- package/types/keyboardControllerState.d.ts +2 -10
- package/types/keyboardControllerState.d.ts.map +4 -4
- package/types/linearGradientState.d.ts.map +4 -4
- package/types/nativeMenuContext.d.ts +4 -0
- package/types/nativeMenuContext.d.ts.map +11 -0
- package/types/portalState.d.ts.map +4 -4
- package/types/safeAreaState.d.ts.map +4 -4
- package/types/setup-burnt.d.ts +3 -0
- package/types/setup-burnt.d.ts.map +11 -0
- package/types/setup-expo-linear-gradient.d.ts.map +2 -2
- package/types/setup-gesture-handler.d.ts.map +2 -2
- package/types/setup-keyboard-controller.d.ts.map +2 -2
- package/types/setup-keyboard-controller.web.d.ts.map +2 -2
- package/types/setup-safe-area.d.ts.map +2 -2
- package/types/setup-teleport.d.ts.map +2 -2
- package/types/setup-worklets.d.ts.map +2 -2
- package/types/setup-zeego.d.ts.map +3 -3
- package/types/types.d.ts +15 -0
- package/types/types.d.ts.map +4 -4
- package/types/workletsState.d.ts.map +4 -4
- package/types/zeegoState.d.ts.map +4 -4
- package/dist/cjs/components.js +0 -41
- package/dist/cjs/components.js.map +0 -6
- package/dist/cjs/gestureState.js +0 -62
- package/dist/cjs/gestureState.js.map +0 -6
- package/dist/cjs/index.js +0 -32
- package/dist/cjs/index.js.map +0 -6
- package/dist/cjs/keyboardControllerState.js +0 -46
- package/dist/cjs/keyboardControllerState.js.map +0 -6
- package/dist/cjs/linearGradientState.js +0 -34
- package/dist/cjs/linearGradientState.js.map +0 -6
- package/dist/cjs/portalState.js +0 -34
- package/dist/cjs/portalState.js.map +0 -6
- package/dist/cjs/safeAreaState.js +0 -52
- package/dist/cjs/safeAreaState.js.map +0 -6
- package/dist/cjs/setup-expo-linear-gradient.js +0 -17
- package/dist/cjs/setup-expo-linear-gradient.js.map +0 -6
- package/dist/cjs/setup-gesture-handler.js +0 -24
- package/dist/cjs/setup-gesture-handler.js.map +0 -6
- package/dist/cjs/setup-keyboard-controller.js +0 -1
- package/dist/cjs/setup-keyboard-controller.js.map +0 -6
- package/dist/cjs/setup-portal.cjs +0 -66
- package/dist/cjs/setup-portal.js +0 -53
- package/dist/cjs/setup-portal.js.map +0 -6
- package/dist/cjs/setup-portal.native.js +0 -74
- package/dist/cjs/setup-portal.native.js.map +0 -1
- package/dist/cjs/setup-safe-area.js +0 -2
- package/dist/cjs/setup-safe-area.js.map +0 -6
- package/dist/cjs/setup-teleport.js +0 -17
- package/dist/cjs/setup-teleport.js.map +0 -6
- package/dist/cjs/setup-worklets.js +0 -20
- package/dist/cjs/setup-worklets.js.map +0 -6
- package/dist/cjs/setup-zeego.js +0 -18
- package/dist/cjs/setup-zeego.js.map +0 -6
- package/dist/cjs/setup.cjs +0 -64
- package/dist/cjs/setup.js +0 -50
- package/dist/cjs/setup.js.map +0 -6
- package/dist/cjs/setup.native.js +0 -72
- package/dist/cjs/setup.native.js.map +0 -1
- package/dist/cjs/state.js +0 -28
- package/dist/cjs/state.js.map +0 -6
- package/dist/cjs/state.native.js.map +0 -1
- package/dist/cjs/types.js +0 -14
- package/dist/cjs/types.js.map +0 -6
- package/dist/cjs/workletsState.js +0 -45
- package/dist/cjs/workletsState.js.map +0 -6
- package/dist/cjs/zeegoState.js +0 -34
- package/dist/cjs/zeegoState.js.map +0 -6
- package/dist/esm/components.js +0 -26
- package/dist/esm/components.js.map +0 -6
- package/dist/esm/gestureState.js +0 -46
- package/dist/esm/gestureState.js.map +0 -6
- package/dist/esm/keyboardControllerState.js +0 -30
- package/dist/esm/keyboardControllerState.js.map +0 -6
- package/dist/esm/linearGradientState.js +0 -18
- package/dist/esm/linearGradientState.js.map +0 -6
- package/dist/esm/portalState.js +0 -18
- package/dist/esm/portalState.js.map +0 -6
- package/dist/esm/safeAreaState.js +0 -36
- package/dist/esm/safeAreaState.js.map +0 -6
- package/dist/esm/setup-expo-linear-gradient.js +0 -17
- package/dist/esm/setup-expo-linear-gradient.js.map +0 -6
- package/dist/esm/setup-gesture-handler.js +0 -24
- package/dist/esm/setup-gesture-handler.js.map +0 -6
- package/dist/esm/setup-keyboard-controller.js +0 -1
- package/dist/esm/setup-keyboard-controller.js.map +0 -6
- package/dist/esm/setup-portal.js +0 -37
- package/dist/esm/setup-portal.js.map +0 -6
- package/dist/esm/setup-portal.mjs +0 -43
- package/dist/esm/setup-portal.mjs.map +0 -1
- package/dist/esm/setup-portal.native.js +0 -48
- package/dist/esm/setup-portal.native.js.map +0 -1
- package/dist/esm/setup-safe-area.js +0 -2
- package/dist/esm/setup-safe-area.js.map +0 -6
- package/dist/esm/setup-teleport.js +0 -17
- package/dist/esm/setup-teleport.js.map +0 -6
- package/dist/esm/setup-worklets.js +0 -20
- package/dist/esm/setup-worklets.js.map +0 -6
- package/dist/esm/setup-zeego.js +0 -18
- package/dist/esm/setup-zeego.js.map +0 -6
- package/dist/esm/setup.js +0 -34
- package/dist/esm/setup.js.map +0 -6
- package/dist/esm/setup.mjs +0 -41
- package/dist/esm/setup.mjs.map +0 -1
- package/dist/esm/setup.native.js +0 -46
- package/dist/esm/setup.native.js.map +0 -1
- package/dist/esm/state.js +0 -12
- package/dist/esm/state.js.map +0 -6
- package/dist/esm/state.mjs +0 -12
- package/dist/esm/state.mjs.map +0 -1
- package/dist/esm/state.native.js +0 -12
- package/dist/esm/state.native.js.map +0 -1
- package/dist/esm/types.js +0 -1
- package/dist/esm/types.js.map +0 -6
- package/dist/esm/workletsState.js +0 -29
- package/dist/esm/workletsState.js.map +0 -6
- package/dist/esm/zeegoState.js +0 -18
- package/dist/esm/zeegoState.js.map +0 -6
- package/types/setup-portal.d.ts.map +0 -11
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
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, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var burntState_exports = {};
|
|
22
|
+
__export(burntState_exports, {
|
|
23
|
+
getBurnt: () => getBurnt
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(burntState_exports);
|
|
26
|
+
var import_globalState = require("./globalState.cjs");
|
|
27
|
+
const state = (0, import_globalState.createGlobalState)("burnt", {
|
|
28
|
+
enabled: !1,
|
|
29
|
+
toast: null,
|
|
30
|
+
dismissAllAlerts: null
|
|
31
|
+
});
|
|
32
|
+
function getBurnt() {
|
|
33
|
+
return {
|
|
34
|
+
get isEnabled() {
|
|
35
|
+
return state.get().enabled;
|
|
36
|
+
},
|
|
37
|
+
get state() {
|
|
38
|
+
return state.get();
|
|
39
|
+
},
|
|
40
|
+
set(newState) {
|
|
41
|
+
state.set(newState);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
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, {
|
|
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);
|
|
23
|
+
var burntState_exports = {};
|
|
24
|
+
__export(burntState_exports, {
|
|
25
|
+
getBurnt: () => getBurnt
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(burntState_exports);
|
|
28
|
+
var import_globalState = require("./globalState.native.js"),
|
|
29
|
+
state = (0, import_globalState.createGlobalState)("burnt", {
|
|
30
|
+
enabled: !1,
|
|
31
|
+
toast: null,
|
|
32
|
+
dismissAllAlerts: null
|
|
33
|
+
});
|
|
34
|
+
function getBurnt() {
|
|
35
|
+
return {
|
|
36
|
+
get isEnabled() {
|
|
37
|
+
return state.get().enabled;
|
|
38
|
+
},
|
|
39
|
+
get state() {
|
|
40
|
+
return state.get();
|
|
41
|
+
},
|
|
42
|
+
set(newState) {
|
|
43
|
+
state.set(newState);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=burntState.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","burntState_exports","__export","getBurnt","module","exports","import_globalState","require","state","createGlobalState","enabled","toast","dismissAllAlerts","isEnabled","get","set","newState"],"sources":["../../src/burntState.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,kBAAA;AAAAC,QAAA,CAAAD,kBAAA;EAAAE,QAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkC,CAAAK,kBAAA;AAGlC,IAAAK,kBAAc,GAAAC,OAAA;EAAAC,KAA8B,OAAAF,kBAAS,CAAAG,iBAAA;IACnDC,OAAA,EAAS;IACTC,KAAA,EAAO;IACPC,gBAAA,EAAkB;EACpB,CAAC;AAQM,SAAST,SAAA,EAA0B;EACxC,OAAO;IACL,IAAIU,UAAA,EAAqB;MACvB,OAAOL,KAAA,CAAMM,GAAA,CAAI,EAAEJ,OAAA;IACrB;IACA,IAAIF,MAAA,EAAoB;MACtB,OAAOA,KAAA,CAAMM,GAAA,CAAI;IACnB;IACAC,IAAIC,QAAA,EAA4B;MAC9BR,KAAA,CAAMO,GAAA,CAAIC,QAAQ;IACpB;EACF;AACF","ignoreList":[]}
|
|
@@ -23,36 +23,31 @@ __export(gestureState_exports, {
|
|
|
23
23
|
getGestureHandler: () => getGestureHandler
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(gestureState_exports);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
ScrollView: null
|
|
34
|
-
}), g[GLOBAL_KEY];
|
|
35
|
-
}
|
|
26
|
+
var import_globalState = require("./globalState.cjs");
|
|
27
|
+
const state = (0, import_globalState.createGlobalState)("gesture", {
|
|
28
|
+
enabled: !1,
|
|
29
|
+
Gesture: null,
|
|
30
|
+
GestureDetector: null,
|
|
31
|
+
ScrollView: null
|
|
32
|
+
});
|
|
36
33
|
function getGestureHandler() {
|
|
37
34
|
return {
|
|
38
35
|
get isEnabled() {
|
|
39
|
-
return
|
|
36
|
+
return state.get().enabled;
|
|
40
37
|
},
|
|
41
38
|
get state() {
|
|
42
|
-
return
|
|
39
|
+
return state.get();
|
|
43
40
|
},
|
|
44
41
|
set(updates) {
|
|
45
|
-
|
|
46
|
-
Object.assign(state, updates);
|
|
42
|
+
Object.assign(state.get(), updates);
|
|
47
43
|
},
|
|
48
44
|
disable() {
|
|
49
|
-
|
|
50
|
-
state.enabled = !1;
|
|
45
|
+
state.get().enabled = !1;
|
|
51
46
|
},
|
|
52
47
|
createPressGesture(config) {
|
|
53
48
|
const {
|
|
54
49
|
Gesture
|
|
55
|
-
} =
|
|
50
|
+
} = state.get();
|
|
56
51
|
if (!Gesture) return null;
|
|
57
52
|
const longPressDuration = config.delayLongPress ?? 500,
|
|
58
53
|
tap = Gesture.Tap().runOnJS(!0).maxDuration(1e4).onBegin(e => {
|
|
@@ -25,36 +25,31 @@ __export(gestureState_exports, {
|
|
|
25
25
|
getGestureHandler: () => getGestureHandler
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(gestureState_exports);
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
var g = globalThis;
|
|
31
|
-
return g[GLOBAL_KEY] || (g[GLOBAL_KEY] = {
|
|
28
|
+
var import_globalState = require("./globalState.native.js"),
|
|
29
|
+
state = (0, import_globalState.createGlobalState)("gesture", {
|
|
32
30
|
enabled: !1,
|
|
33
31
|
Gesture: null,
|
|
34
32
|
GestureDetector: null,
|
|
35
33
|
ScrollView: null
|
|
36
|
-
})
|
|
37
|
-
}
|
|
34
|
+
});
|
|
38
35
|
function getGestureHandler() {
|
|
39
36
|
return {
|
|
40
37
|
get isEnabled() {
|
|
41
|
-
return
|
|
38
|
+
return state.get().enabled;
|
|
42
39
|
},
|
|
43
40
|
get state() {
|
|
44
|
-
return
|
|
41
|
+
return state.get();
|
|
45
42
|
},
|
|
46
43
|
set(updates) {
|
|
47
|
-
|
|
48
|
-
Object.assign(state, updates);
|
|
44
|
+
Object.assign(state.get(), updates);
|
|
49
45
|
},
|
|
50
46
|
disable() {
|
|
51
|
-
|
|
52
|
-
state.enabled = !1;
|
|
47
|
+
state.get().enabled = !1;
|
|
53
48
|
},
|
|
54
49
|
createPressGesture(config) {
|
|
55
50
|
var {
|
|
56
51
|
Gesture
|
|
57
|
-
} =
|
|
52
|
+
} = state.get();
|
|
58
53
|
if (!Gesture) return null;
|
|
59
54
|
var _config_delayLongPress,
|
|
60
55
|
longPressDuration = (_config_delayLongPress = config.delayLongPress) !== null && _config_delayLongPress !== void 0 ? _config_delayLongPress : 500,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","gestureState_exports","__export","getGestureHandler","module","exports","
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","gestureState_exports","__export","getGestureHandler","module","exports","import_globalState","require","state","createGlobalState","enabled","Gesture","GestureDetector","ScrollView","isEnabled","get","set","updates","Object","assign","disable","createPressGesture","config","_config_delayLongPress","longPressDuration","delayLongPress","tap","Tap","runOnJS","maxDuration","onBegin","e","_config_onPressIn","onPressIn","call","onEnd","_config_onPress","onPress","onFinalize","_config_onPressOut","onPressOut","hitSlop","onLongPress","longPress","LongPress","minDuration"],"sources":["../../src/gestureState.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkC,CAAAK,oBAAA;AAGlC,IAAAK,kBAAc,GAAAC,OAAA;EAAAC,KAAgC,OAAAF,kBAAW,CAAAG,iBAAA;IACvDC,OAAA,EAAS;IACTC,OAAA,EAAS;IACTC,eAAA,EAAiB;IACjBC,UAAA,EAAY;EACd,CAAC;AA0BM,SAASV,kBAAA,EAA4C;EAC1D,OAAO;IACL,IAAIW,UAAA,EAAqB;MACvB,OAAON,KAAA,CAAMO,GAAA,CAAI,EAAEL,OAAA;IACrB;IACA,IAAIF,MAAA,EAAsB;MACxB,OAAOA,KAAA,CAAMO,GAAA,CAAI;IACnB;IACAC,IAAIC,OAAA,EAAsC;MACxCC,MAAA,CAAOC,MAAA,CAAOX,KAAA,CAAMO,GAAA,CAAI,GAAGE,OAAO;IACpC;IAEAG,QAAA,EAAgB;MACdZ,KAAA,CAAMO,GAAA,CAAI,EAAEL,OAAA,GAAU;IACxB;IAEAW,mBAAmBC,MAAA,EAAiC;MAClD;QAAMX;MAAE,IAAQH,KAAI,CAAAO,GAAM;MAC1B,IAAI,CAACJ,OAAA,EAAS,OAAO;MAErB,IAAAY,sBAA0B;QAAAC,iBAAO,IAAAD,sBAIb,GAAID,MACrB,CAAAG,cACA,MAAY,IACZ,IAAAF,sBAAoB,cAAAA,sBAAA;QAAAG,GAAA,GAAAf,OAAA,CAAAgB,GAAA,GAAAC,OAAA,KAAAC,WAAA,MAAAC,OAAA,WAAAC,CAAA;UACnB,IAAAC,iBAAoB;UACrB,CACAA,iBAAkB,GAAAV,MAAA,CAAAW,SAAA,cAAAD,iBAAA,eAAAA,iBAAA,CAAAE,IAAA,CAAAZ,MAAA,EAAAS,CAAA;QACjB,GAAAI,KAAA,CAAO,UAAAJ,CAAU,EAAC;UACnB,IACAK,eAAuB;UACtB,CAAAA,eAAO,GAAAd,MAAc,CAAAe,OAAA,cAAAD,eAAA,eAAAA,eAAA,CAAAF,IAAA,CAAAZ,MAAA,EAAAS,CAAA;QACvB,CAAC,EAAAO,UAAA,WAAAP,CAAA;UAKH,IAHIQ,kBAAgB;UAMpB,CAAAA,kBAAkB,GAAAjB,MAAQ,CAAAkB,UACvB,MAAQ,IACR,IAAAD,kBAAY,UACZ,KAAAA,kBAA2B,CAAAL,IAAA,CAAAZ,MAAc,EACzCS,CAAA;QAGH;MAIF,IAAAT,MAAA,CAAAmB,OAAA,IAAAf,GAAA,CAAAe,OAAA,CAAAnB,MAAA,CAAAmB,OAAA,IAAAnB,MAAA,CAAAoB,WAAA,SAAAhB,GAAA;MACF,IAAAiB,SAAA,GAAAhC,OAAA,CAAAiC,SAAA,GAAAhB,OAAA,KAAAiB,WAAA,CAAArB,iBAAA,EAAAM,OAAA,WAAAC,CAAA;QACF,IAAAC,iBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
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, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var globalState_exports = {};
|
|
22
|
+
__export(globalState_exports, {
|
|
23
|
+
createGlobalState: () => createGlobalState
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(globalState_exports);
|
|
26
|
+
function createGlobalState(key, defaultValue) {
|
|
27
|
+
const GLOBAL_KEY = `__tamagui_${key}__`;
|
|
28
|
+
function getGlobalState() {
|
|
29
|
+
const g = globalThis;
|
|
30
|
+
return g[GLOBAL_KEY] || (g[GLOBAL_KEY] = defaultValue), g[GLOBAL_KEY];
|
|
31
|
+
}
|
|
32
|
+
function setGlobalState(newState) {
|
|
33
|
+
globalThis[GLOBAL_KEY] = newState;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
get: getGlobalState,
|
|
37
|
+
set: setGlobalState
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
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, {
|
|
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);
|
|
23
|
+
var globalState_exports = {};
|
|
24
|
+
__export(globalState_exports, {
|
|
25
|
+
createGlobalState: () => createGlobalState
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(globalState_exports);
|
|
28
|
+
function createGlobalState(key, defaultValue) {
|
|
29
|
+
var GLOBAL_KEY = `__tamagui_${key}__`;
|
|
30
|
+
function getGlobalState() {
|
|
31
|
+
var g = globalThis;
|
|
32
|
+
return g[GLOBAL_KEY] || (g[GLOBAL_KEY] = defaultValue), g[GLOBAL_KEY];
|
|
33
|
+
}
|
|
34
|
+
function setGlobalState(newState) {
|
|
35
|
+
globalThis[GLOBAL_KEY] = newState;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
get: getGlobalState,
|
|
39
|
+
set: setGlobalState
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=globalState.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","globalState_exports","__export","createGlobalState","module","exports","key","defaultValue","GLOBAL_KEY","getGlobalState","g","globalThis","setGlobalState","newState","get","set"],"sources":["../../src/globalState.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,iBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAOC,MAAA,CAAAC,OAAS,GAAAT,YACd,CAAAK,mBAKA;AACA,SAAME,iBAAaA,CAAAG,GAAA,EAAAC,YAAgB;EAMnC,IAAAC,UAAS,gBAAoBF,GAAA;EAC3B,SAAMG,cAAIA,CAAA;IACV,IAAAC,CAAA,GAAKC,UAAE;IAMT,OAAAD,CAAA,CAAAF,UAAA,MAAAE,CAAA,CAAAF,UAAA,IAAAD,YAAA,GAAAG,CAAA,CAAAF,UAAA;EAEA;EACG,SAACI,cAAuCA,CAAAC,QAAI;IAC/CF,UAAA,CAAAH,UAAA,IAAAK,QAAA;EAEA;EAAO,OACA;IACLC,GAAA,EAAKL,cAAA;IACPM,GAAA,EAAAH;EACF","ignoreList":[]}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -20,9 +20,11 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
|
20
20
|
}), mod);
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
NativeMenuContext: () => import_nativeMenuContext.NativeMenuContext,
|
|
23
24
|
NativePortal: () => import_components.NativePortal,
|
|
24
25
|
NativePortalHost: () => import_components.NativePortalHost,
|
|
25
26
|
NativePortalProvider: () => import_components.NativePortalProvider,
|
|
27
|
+
getBurnt: () => import_burntState.getBurnt,
|
|
26
28
|
getGestureHandler: () => import_gestureState.getGestureHandler,
|
|
27
29
|
getKeyboardControllerState: () => import_keyboardControllerState.getKeyboardControllerState,
|
|
28
30
|
getLinearGradient: () => import_linearGradientState.getLinearGradient,
|
|
@@ -41,4 +43,6 @@ var import_portalState = require("./portalState.cjs"),
|
|
|
41
43
|
import_linearGradientState = require("./linearGradientState.cjs"),
|
|
42
44
|
import_keyboardControllerState = require("./keyboardControllerState.cjs"),
|
|
43
45
|
import_zeegoState = require("./zeegoState.cjs"),
|
|
46
|
+
import_nativeMenuContext = require("./nativeMenuContext.cjs"),
|
|
47
|
+
import_burntState = require("./burntState.cjs"),
|
|
44
48
|
import_components = require("./components.cjs");
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -22,9 +22,11 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
|
22
22
|
}), mod);
|
|
23
23
|
var index_exports = {};
|
|
24
24
|
__export(index_exports, {
|
|
25
|
+
NativeMenuContext: () => import_nativeMenuContext.NativeMenuContext,
|
|
25
26
|
NativePortal: () => import_components.NativePortal,
|
|
26
27
|
NativePortalHost: () => import_components.NativePortalHost,
|
|
27
28
|
NativePortalProvider: () => import_components.NativePortalProvider,
|
|
29
|
+
getBurnt: () => import_burntState.getBurnt,
|
|
28
30
|
getGestureHandler: () => import_gestureState.getGestureHandler,
|
|
29
31
|
getKeyboardControllerState: () => import_keyboardControllerState.getKeyboardControllerState,
|
|
30
32
|
getLinearGradient: () => import_linearGradientState.getLinearGradient,
|
|
@@ -43,5 +45,7 @@ var import_portalState = require("./portalState.native.js"),
|
|
|
43
45
|
import_linearGradientState = require("./linearGradientState.native.js"),
|
|
44
46
|
import_keyboardControllerState = require("./keyboardControllerState.native.js"),
|
|
45
47
|
import_zeegoState = require("./zeegoState.native.js"),
|
|
48
|
+
import_nativeMenuContext = require("./nativeMenuContext.native.js"),
|
|
49
|
+
import_burntState = require("./burntState.native.js"),
|
|
46
50
|
import_components = require("./components.native.js");
|
|
47
51
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","NativePortal","import_components","NativePortalHost","NativePortalProvider","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,YAAA,EAAAA,CAAA,KAAAC,iBAAA,CAAAD,YAAA;EAAAE,gBAAA,EAAAA,CAAA,KAAAD,iBAAA,CAAAC,gBAAA;EAAAC,oBAAA,EAAAA,CAAA,KAAAF,iBAAA,CAAAE,oBAAA;EAAAC,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;
|
|
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":[]}
|
|
@@ -25,27 +25,23 @@ __export(keyboardControllerState_exports, {
|
|
|
25
25
|
setKeyboardControllerState: () => setKeyboardControllerState
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(keyboardControllerState_exports);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
KeyboardStickyView: null
|
|
40
|
-
}), g[GLOBAL_KEY];
|
|
41
|
-
}
|
|
28
|
+
var import_globalState = require("./globalState.cjs");
|
|
29
|
+
const state = (0, import_globalState.createGlobalState)("keyboard_controller", {
|
|
30
|
+
enabled: !1,
|
|
31
|
+
KeyboardProvider: null,
|
|
32
|
+
KeyboardAwareScrollView: null,
|
|
33
|
+
useKeyboardHandler: null,
|
|
34
|
+
useReanimatedKeyboardAnimation: null,
|
|
35
|
+
KeyboardController: null,
|
|
36
|
+
KeyboardEvents: null,
|
|
37
|
+
KeyboardStickyView: null
|
|
38
|
+
});
|
|
42
39
|
function isKeyboardControllerEnabled() {
|
|
43
|
-
return
|
|
40
|
+
return state.get().enabled;
|
|
44
41
|
}
|
|
45
42
|
function getKeyboardControllerState() {
|
|
46
|
-
return
|
|
43
|
+
return state.get();
|
|
47
44
|
}
|
|
48
45
|
function setKeyboardControllerState(updates) {
|
|
49
|
-
|
|
50
|
-
Object.assign(state, updates);
|
|
46
|
+
Object.assign(state.get(), updates);
|
|
51
47
|
}
|
|
@@ -27,10 +27,8 @@ __export(keyboardControllerState_exports, {
|
|
|
27
27
|
setKeyboardControllerState: () => setKeyboardControllerState
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(keyboardControllerState_exports);
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
var g = globalThis;
|
|
33
|
-
return g[GLOBAL_KEY] || (g[GLOBAL_KEY] = {
|
|
30
|
+
var import_globalState = require("./globalState.native.js"),
|
|
31
|
+
state = (0, import_globalState.createGlobalState)("keyboard_controller", {
|
|
34
32
|
enabled: !1,
|
|
35
33
|
KeyboardProvider: null,
|
|
36
34
|
KeyboardAwareScrollView: null,
|
|
@@ -39,16 +37,14 @@ function getGlobalState() {
|
|
|
39
37
|
KeyboardController: null,
|
|
40
38
|
KeyboardEvents: null,
|
|
41
39
|
KeyboardStickyView: null
|
|
42
|
-
})
|
|
43
|
-
}
|
|
40
|
+
});
|
|
44
41
|
function isKeyboardControllerEnabled() {
|
|
45
|
-
return
|
|
42
|
+
return state.get().enabled;
|
|
46
43
|
}
|
|
47
44
|
function getKeyboardControllerState() {
|
|
48
|
-
return
|
|
45
|
+
return state.get();
|
|
49
46
|
}
|
|
50
47
|
function setKeyboardControllerState(updates) {
|
|
51
|
-
|
|
52
|
-
Object.assign(state, updates);
|
|
48
|
+
Object.assign(state.get(), updates);
|
|
53
49
|
}
|
|
54
50
|
//# sourceMappingURL=keyboardControllerState.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","keyboardControllerState_exports","__export","getKeyboardControllerState","isKeyboardControllerEnabled","setKeyboardControllerState","module","exports","
|
|
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":[]}
|
|
@@ -23,20 +23,21 @@ __export(linearGradientState_exports, {
|
|
|
23
23
|
getLinearGradient: () => getLinearGradient
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(linearGradientState_exports);
|
|
26
|
-
|
|
26
|
+
var import_globalState = require("./globalState.cjs");
|
|
27
|
+
const state = (0, import_globalState.createGlobalState)("linear_gradient", {
|
|
27
28
|
enabled: !1,
|
|
28
29
|
Component: null
|
|
29
|
-
};
|
|
30
|
+
});
|
|
30
31
|
function getLinearGradient() {
|
|
31
32
|
return {
|
|
32
33
|
get isEnabled() {
|
|
33
|
-
return state.enabled;
|
|
34
|
+
return state.get().enabled;
|
|
34
35
|
},
|
|
35
36
|
get state() {
|
|
36
|
-
return state;
|
|
37
|
+
return state.get();
|
|
37
38
|
},
|
|
38
39
|
set(newState) {
|
|
39
|
-
state
|
|
40
|
+
state.set(newState);
|
|
40
41
|
}
|
|
41
42
|
};
|
|
42
43
|
}
|
|
@@ -25,20 +25,21 @@ __export(linearGradientState_exports, {
|
|
|
25
25
|
getLinearGradient: () => getLinearGradient
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(linearGradientState_exports);
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
var import_globalState = require("./globalState.native.js"),
|
|
29
|
+
state = (0, import_globalState.createGlobalState)("linear_gradient", {
|
|
30
|
+
enabled: !1,
|
|
31
|
+
Component: null
|
|
32
|
+
});
|
|
32
33
|
function getLinearGradient() {
|
|
33
34
|
return {
|
|
34
35
|
get isEnabled() {
|
|
35
|
-
return state.enabled;
|
|
36
|
+
return state.get().enabled;
|
|
36
37
|
},
|
|
37
38
|
get state() {
|
|
38
|
-
return state;
|
|
39
|
+
return state.get();
|
|
39
40
|
},
|
|
40
41
|
set(newState) {
|
|
41
|
-
state
|
|
42
|
+
state.set(newState);
|
|
42
43
|
}
|
|
43
44
|
};
|
|
44
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","linearGradientState_exports","__export","getLinearGradient","module","exports","state","enabled","Component","isEnabled","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;
|
|
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":[]}
|
|
@@ -18,19 +18,10 @@ var __export = (target, all) => {
|
|
|
18
18
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
19
|
value: !0
|
|
20
20
|
}), mod);
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
23
|
-
|
|
24
|
-
setNativePortalState: () => setNativePortalState
|
|
21
|
+
var nativeMenuContext_exports = {};
|
|
22
|
+
__export(nativeMenuContext_exports, {
|
|
23
|
+
NativeMenuContext: () => NativeMenuContext
|
|
25
24
|
});
|
|
26
|
-
module.exports = __toCommonJS(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
type: null
|
|
30
|
-
};
|
|
31
|
-
function setNativePortalState(newState) {
|
|
32
|
-
state = newState;
|
|
33
|
-
}
|
|
34
|
-
function getNativePortalState() {
|
|
35
|
-
return state;
|
|
36
|
-
}
|
|
25
|
+
module.exports = __toCommonJS(nativeMenuContext_exports);
|
|
26
|
+
var import_react = require("react");
|
|
27
|
+
const NativeMenuContext = (0, import_react.createContext)(!1);
|
|
@@ -20,20 +20,11 @@ var __export = (target, all) => {
|
|
|
20
20
|
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
21
|
value: !0
|
|
22
22
|
}), mod);
|
|
23
|
-
var
|
|
24
|
-
__export(
|
|
25
|
-
|
|
26
|
-
setNativePortalState: () => setNativePortalState
|
|
23
|
+
var nativeMenuContext_exports = {};
|
|
24
|
+
__export(nativeMenuContext_exports, {
|
|
25
|
+
NativeMenuContext: () => NativeMenuContext
|
|
27
26
|
});
|
|
28
|
-
module.exports = __toCommonJS(
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
function setNativePortalState(newState) {
|
|
34
|
-
state = newState;
|
|
35
|
-
}
|
|
36
|
-
function getNativePortalState() {
|
|
37
|
-
return state;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=state.native.js.map
|
|
27
|
+
module.exports = __toCommonJS(nativeMenuContext_exports);
|
|
28
|
+
var import_react = require("react"),
|
|
29
|
+
NativeMenuContext = (0, import_react.createContext)(!1);
|
|
30
|
+
//# sourceMappingURL=nativeMenuContext.native.js.map
|
|
@@ -0,0 +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":[]}
|
package/dist/cjs/portalState.cjs
CHANGED
|
@@ -23,20 +23,21 @@ __export(portalState_exports, {
|
|
|
23
23
|
getPortal: () => getPortal
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(portalState_exports);
|
|
26
|
-
|
|
26
|
+
var import_globalState = require("./globalState.cjs");
|
|
27
|
+
const state = (0, import_globalState.createGlobalState)("portal", {
|
|
27
28
|
enabled: !1,
|
|
28
29
|
type: null
|
|
29
|
-
};
|
|
30
|
+
});
|
|
30
31
|
function getPortal() {
|
|
31
32
|
return {
|
|
32
33
|
get isEnabled() {
|
|
33
|
-
return state.enabled;
|
|
34
|
+
return state.get().enabled;
|
|
34
35
|
},
|
|
35
36
|
get state() {
|
|
36
|
-
return state;
|
|
37
|
+
return state.get();
|
|
37
38
|
},
|
|
38
39
|
set(newState) {
|
|
39
|
-
state
|
|
40
|
+
state.set(newState);
|
|
40
41
|
}
|
|
41
42
|
};
|
|
42
43
|
}
|
|
@@ -25,20 +25,21 @@ __export(portalState_exports, {
|
|
|
25
25
|
getPortal: () => getPortal
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(portalState_exports);
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
var import_globalState = require("./globalState.native.js"),
|
|
29
|
+
state = (0, import_globalState.createGlobalState)("portal", {
|
|
30
|
+
enabled: !1,
|
|
31
|
+
type: null
|
|
32
|
+
});
|
|
32
33
|
function getPortal() {
|
|
33
34
|
return {
|
|
34
35
|
get isEnabled() {
|
|
35
|
-
return state.enabled;
|
|
36
|
+
return state.get().enabled;
|
|
36
37
|
},
|
|
37
38
|
get state() {
|
|
38
|
-
return state;
|
|
39
|
+
return state.get();
|
|
39
40
|
},
|
|
40
41
|
set(newState) {
|
|
41
|
-
state
|
|
42
|
+
state.set(newState);
|
|
42
43
|
}
|
|
43
44
|
};
|
|
44
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","portalState_exports","__export","getPortal","module","exports","state","enabled","type","isEnabled","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;
|
|
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":[]}
|