@tamagui/native 2.0.0-rc.4 → 2.0.0-rc.5-1770352331483
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/burntState.cjs +44 -0
- package/dist/cjs/burntState.js +39 -0
- package/dist/cjs/burntState.js.map +6 -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.js +12 -17
- package/dist/cjs/gestureState.js.map +1 -1
- 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.js +34 -0
- package/dist/cjs/globalState.js.map +6 -0
- package/dist/cjs/globalState.native.js +42 -0
- package/dist/cjs/globalState.native.js.map +1 -0
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +2 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/keyboardControllerState.cjs +14 -18
- package/dist/cjs/keyboardControllerState.js +14 -18
- package/dist/cjs/keyboardControllerState.js.map +1 -1
- 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.js +8 -4
- package/dist/cjs/linearGradientState.js.map +1 -1
- package/dist/cjs/linearGradientState.native.js +8 -7
- package/dist/cjs/linearGradientState.native.js.map +1 -1
- package/dist/cjs/portalState.cjs +6 -5
- package/dist/cjs/portalState.js +8 -4
- package/dist/cjs/portalState.js.map +1 -1
- 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.js +14 -18
- package/dist/cjs/safeAreaState.js.map +1 -1
- 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.js +18 -0
- package/dist/cjs/setup-burnt.js.map +6 -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.js +2 -1
- package/dist/cjs/setup-zeego.js.map +1 -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.js +11 -15
- package/dist/cjs/workletsState.js.map +1 -1
- 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.js +9 -4
- package/dist/cjs/zeegoState.js.map +1 -1
- package/dist/cjs/zeegoState.native.js +9 -8
- package/dist/cjs/zeegoState.native.js.map +1 -1
- package/dist/esm/burntState.js +23 -0
- package/dist/esm/burntState.js.map +6 -0
- 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.js +12 -17
- package/dist/esm/gestureState.js.map +1 -1
- 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.js +18 -0
- package/dist/esm/globalState.js.map +6 -0
- 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 +2 -0
- 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.js +14 -18
- package/dist/esm/keyboardControllerState.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.js +8 -4
- package/dist/esm/linearGradientState.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/portalState.js +8 -4
- package/dist/esm/portalState.js.map +1 -1
- 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.js +14 -18
- package/dist/esm/safeAreaState.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.js +18 -0
- package/dist/esm/setup-burnt.js.map +6 -0
- 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.js +2 -1
- package/dist/esm/setup-zeego.js.map +1 -1
- 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.js +11 -15
- package/dist/esm/workletsState.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.js +9 -4
- package/dist/esm/zeegoState.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 +22 -2
- package/src/burntState.ts +28 -0
- package/src/gestureState.ts +12 -21
- package/src/globalState.ts +32 -0
- package/src/index.ts +5 -0
- package/src/keyboardControllerState.ts +16 -31
- package/src/linearGradientState.ts +8 -4
- 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/types/burntState.d.ts +9 -0
- package/types/burntState.d.ts.map +11 -0
- package/types/gestureState.d.ts.map +2 -2
- package/types/globalState.d.ts +8 -0
- package/types/globalState.d.ts.map +11 -0
- package/types/index.d.ts +3 -1
- package/types/index.d.ts.map +2 -2
- package/types/keyboardControllerState.d.ts +2 -10
- package/types/keyboardControllerState.d.ts.map +2 -2
- package/types/linearGradientState.d.ts.map +2 -2
- package/types/portalState.d.ts.map +2 -2
- package/types/safeAreaState.d.ts.map +2 -2
- package/types/setup-burnt.d.ts +3 -0
- package/types/setup-burnt.d.ts.map +11 -0
- package/types/setup-zeego.d.ts.map +1 -1
- package/types/types.d.ts +15 -0
- package/types/types.d.ts.map +2 -2
- package/types/workletsState.d.ts.map +2 -2
- package/types/zeegoState.d.ts.map +2 -2
|
@@ -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,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)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var burntState_exports = {};
|
|
16
|
+
__export(burntState_exports, {
|
|
17
|
+
getBurnt: () => getBurnt
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(burntState_exports);
|
|
20
|
+
var import_globalState = require("./globalState");
|
|
21
|
+
const state = (0, import_globalState.createGlobalState)("burnt", {
|
|
22
|
+
enabled: !1,
|
|
23
|
+
toast: null,
|
|
24
|
+
dismissAllAlerts: null
|
|
25
|
+
});
|
|
26
|
+
function getBurnt() {
|
|
27
|
+
return {
|
|
28
|
+
get isEnabled() {
|
|
29
|
+
return state.get().enabled;
|
|
30
|
+
},
|
|
31
|
+
get state() {
|
|
32
|
+
return state.get();
|
|
33
|
+
},
|
|
34
|
+
set(newState) {
|
|
35
|
+
state.set(newState);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=burntState.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/burntState.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAkC;AAGlC,MAAM,YAAQ,sCAA8B,SAAS;AAAA,EACnD,SAAS;AAAA,EACT,OAAO;AAAA,EACP,kBAAkB;AACpB,CAAC;AAQM,SAAS,WAA0B;AACxC,SAAO;AAAA,IACL,IAAI,YAAqB;AACvB,aAAO,MAAM,IAAI,EAAE;AAAA,IACrB;AAAA,IACA,IAAI,QAAoB;AACtB,aAAO,MAAM,IAAI;AAAA,IACnB;AAAA,IACA,IAAI,UAA4B;AAC9B,YAAM,IAAI,QAAQ;AAAA,IACpB;AAAA,EACF;AACF;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -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 => {
|
package/dist/cjs/gestureState.js
CHANGED
|
@@ -17,34 +17,29 @@ __export(gestureState_exports, {
|
|
|
17
17
|
getGestureHandler: () => getGestureHandler
|
|
18
18
|
});
|
|
19
19
|
module.exports = __toCommonJS(gestureState_exports);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
ScrollView: null
|
|
28
|
-
}), g[GLOBAL_KEY];
|
|
29
|
-
}
|
|
20
|
+
var import_globalState = require("./globalState");
|
|
21
|
+
const state = (0, import_globalState.createGlobalState)("gesture", {
|
|
22
|
+
enabled: !1,
|
|
23
|
+
Gesture: null,
|
|
24
|
+
GestureDetector: null,
|
|
25
|
+
ScrollView: null
|
|
26
|
+
});
|
|
30
27
|
function getGestureHandler() {
|
|
31
28
|
return {
|
|
32
29
|
get isEnabled() {
|
|
33
|
-
return
|
|
30
|
+
return state.get().enabled;
|
|
34
31
|
},
|
|
35
32
|
get state() {
|
|
36
|
-
return
|
|
33
|
+
return state.get();
|
|
37
34
|
},
|
|
38
35
|
set(updates) {
|
|
39
|
-
|
|
40
|
-
Object.assign(state, updates);
|
|
36
|
+
Object.assign(state.get(), updates);
|
|
41
37
|
},
|
|
42
38
|
disable() {
|
|
43
|
-
|
|
44
|
-
state.enabled = !1;
|
|
39
|
+
state.get().enabled = !1;
|
|
45
40
|
},
|
|
46
41
|
createPressGesture(config) {
|
|
47
|
-
const { Gesture } =
|
|
42
|
+
const { Gesture } = state.get();
|
|
48
43
|
if (!Gesture) return null;
|
|
49
44
|
const longPressDuration = config.delayLongPress ?? 500, tap = Gesture.Tap().runOnJS(!0).maxDuration(1e4).onBegin((e) => {
|
|
50
45
|
config.onPressIn?.(e);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/gestureState.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAkC;AAGlC,MAAM,YAAQ,sCAAgC,WAAW;AAAA,EACvD,SAAS;AAAA,EACT,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,YAAY;AACd,CAAC;AA0BM,SAAS,oBAA4C;AAC1D,SAAO;AAAA,IACL,IAAI,YAAqB;AACvB,aAAO,MAAM,IAAI,EAAE;AAAA,IACrB;AAAA,IACA,IAAI,QAAsB;AACxB,aAAO,MAAM,IAAI;AAAA,IACnB;AAAA,IACA,IAAI,SAAsC;AACxC,aAAO,OAAO,MAAM,IAAI,GAAG,OAAO;AAAA,IACpC;AAAA,IAEA,UAAgB;AACd,YAAM,IAAI,EAAE,UAAU;AAAA,IACxB;AAAA,IAEA,mBAAmB,QAAiC;AAClD,YAAM,EAAE,QAAQ,IAAI,MAAM,IAAI;AAC9B,UAAI,CAAC,QAAS,QAAO;AAErB,YAAM,oBAAoB,OAAO,kBAAkB,KAI7C,MAAM,QAAQ,IAAI,EACrB,QAAQ,EAAI,EACZ,YAAY,GAAK,EACjB,QAAQ,CAAC,MAAW;AACnB,eAAO,YAAY,CAAC;AAAA,MACtB,CAAC,EACA,MAAM,CAAC,MAAW;AACjB,eAAO,UAAU,CAAC;AAAA,MACpB,CAAC,EACA,WAAW,CAAC,MAAW;AACtB,eAAO,aAAa,CAAC;AAAA,MACvB,CAAC;AAKH,UAHI,OAAO,WAAS,IAAI,QAAQ,OAAO,OAAO,GAG1C,CAAC,OAAO,YAAa,QAAO;AAGhC,YAAM,YAAY,QAAQ,UAAU,EACjC,QAAQ,EAAI,EACZ,YAAY,iBAAiB,EAC7B,QAAQ,CAAC,MAAW,OAAO,YAAY,CAAC,CAAC,EACzC,QAAQ,CAAC,MAAW,OAAO,cAAc,CAAC,CAAC,EAC3C,WAAW,CAAC,MAAW,OAAO,aAAa,CAAC,CAAC;AAEhD,aAAI,OAAO,WAAS,UAAU,QAAQ,OAAO,OAAO,GAG7C,QAAQ,UAAU,WAAW,GAAG;AAAA,IACzC;AAAA,EACF;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -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,34 @@
|
|
|
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)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var globalState_exports = {};
|
|
16
|
+
__export(globalState_exports, {
|
|
17
|
+
createGlobalState: () => createGlobalState
|
|
18
|
+
});
|
|
19
|
+
module.exports = __toCommonJS(globalState_exports);
|
|
20
|
+
function createGlobalState(key, defaultValue) {
|
|
21
|
+
const GLOBAL_KEY = `__tamagui_${key}__`;
|
|
22
|
+
function getGlobalState() {
|
|
23
|
+
const g = globalThis;
|
|
24
|
+
return g[GLOBAL_KEY] || (g[GLOBAL_KEY] = defaultValue), g[GLOBAL_KEY];
|
|
25
|
+
}
|
|
26
|
+
function setGlobalState(newState) {
|
|
27
|
+
globalThis[GLOBAL_KEY] = newState;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
get: getGlobalState,
|
|
31
|
+
set: setGlobalState
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=globalState.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/globalState.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,kBACd,KACA,cAIA;AACA,QAAM,aAAa,aAAa,GAAG;AAMnC,WAAS,iBAAoB;AAC3B,UAAM,IAAI;AACV,WAAK,EAAE,UAAU,MAGf,EAAE,UAAU,IAAI,eAEX,EAAE,UAAU;AAAA,EACrB;AAEA,WAAS,eAAe,UAAmB;AACxC,IAAC,WAA6B,UAAU,IAAI;AAAA,EAC/C;AAEA,SAAO;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AACF;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -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
|
@@ -23,6 +23,7 @@ __export(index_exports, {
|
|
|
23
23
|
NativePortal: () => import_components.NativePortal,
|
|
24
24
|
NativePortalHost: () => import_components.NativePortalHost,
|
|
25
25
|
NativePortalProvider: () => import_components.NativePortalProvider,
|
|
26
|
+
getBurnt: () => import_burntState.getBurnt,
|
|
26
27
|
getGestureHandler: () => import_gestureState.getGestureHandler,
|
|
27
28
|
getKeyboardControllerState: () => import_keyboardControllerState.getKeyboardControllerState,
|
|
28
29
|
getLinearGradient: () => import_linearGradientState.getLinearGradient,
|
|
@@ -41,4 +42,5 @@ var import_portalState = require("./portalState.cjs"),
|
|
|
41
42
|
import_linearGradientState = require("./linearGradientState.cjs"),
|
|
42
43
|
import_keyboardControllerState = require("./keyboardControllerState.cjs"),
|
|
43
44
|
import_zeegoState = require("./zeegoState.cjs"),
|
|
45
|
+
import_burntState = require("./burntState.cjs"),
|
|
44
46
|
import_components = require("./components.cjs");
|
package/dist/cjs/index.js
CHANGED
|
@@ -17,6 +17,7 @@ __export(index_exports, {
|
|
|
17
17
|
NativePortal: () => import_components.NativePortal,
|
|
18
18
|
NativePortalHost: () => import_components.NativePortalHost,
|
|
19
19
|
NativePortalProvider: () => import_components.NativePortalProvider,
|
|
20
|
+
getBurnt: () => import_burntState.getBurnt,
|
|
20
21
|
getGestureHandler: () => import_gestureState.getGestureHandler,
|
|
21
22
|
getKeyboardControllerState: () => import_keyboardControllerState.getKeyboardControllerState,
|
|
22
23
|
getLinearGradient: () => import_linearGradientState.getLinearGradient,
|
|
@@ -28,5 +29,5 @@ __export(index_exports, {
|
|
|
28
29
|
setKeyboardControllerState: () => import_keyboardControllerState.setKeyboardControllerState
|
|
29
30
|
});
|
|
30
31
|
module.exports = __toCommonJS(index_exports);
|
|
31
|
-
var import_portalState = require("./portalState"), import_gestureState = require("./gestureState"), import_workletsState = require("./workletsState"), import_safeAreaState = require("./safeAreaState"), import_linearGradientState = require("./linearGradientState"), import_keyboardControllerState = require("./keyboardControllerState"), import_zeegoState = require("./zeegoState"), import_components = require("./components");
|
|
32
|
+
var import_portalState = require("./portalState"), import_gestureState = require("./gestureState"), import_workletsState = require("./workletsState"), import_safeAreaState = require("./safeAreaState"), import_linearGradientState = require("./linearGradientState"), import_keyboardControllerState = require("./keyboardControllerState"), import_zeegoState = require("./zeegoState"), import_burntState = require("./burntState"), import_components = require("./components");
|
|
32
33
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuCA,yBAA0B,0BAI1B,sBAAkC,2BAIlC,uBAA4B,4BAI5B,uBAA4B,4BAI5B,6BAAkC,kCAIlC,iCAIO,sCAIP,oBAAyB,yBAIzB,oBAAyB,yBAIzB,oBAAqE;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -25,6 +25,7 @@ __export(index_exports, {
|
|
|
25
25
|
NativePortal: () => import_components.NativePortal,
|
|
26
26
|
NativePortalHost: () => import_components.NativePortalHost,
|
|
27
27
|
NativePortalProvider: () => import_components.NativePortalProvider,
|
|
28
|
+
getBurnt: () => import_burntState.getBurnt,
|
|
28
29
|
getGestureHandler: () => import_gestureState.getGestureHandler,
|
|
29
30
|
getKeyboardControllerState: () => import_keyboardControllerState.getKeyboardControllerState,
|
|
30
31
|
getLinearGradient: () => import_linearGradientState.getLinearGradient,
|
|
@@ -43,5 +44,6 @@ var import_portalState = require("./portalState.native.js"),
|
|
|
43
44
|
import_linearGradientState = require("./linearGradientState.native.js"),
|
|
44
45
|
import_keyboardControllerState = require("./keyboardControllerState.native.js"),
|
|
45
46
|
import_zeegoState = require("./zeegoState.native.js"),
|
|
47
|
+
import_burntState = require("./burntState.native.js"),
|
|
46
48
|
import_components = require("./components.native.js");
|
|
47
49
|
//# 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","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,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,GAAA9B,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
|
}
|
|
@@ -19,28 +19,24 @@ __export(keyboardControllerState_exports, {
|
|
|
19
19
|
setKeyboardControllerState: () => setKeyboardControllerState
|
|
20
20
|
});
|
|
21
21
|
module.exports = __toCommonJS(keyboardControllerState_exports);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
KeyboardStickyView: null
|
|
34
|
-
}), g[GLOBAL_KEY];
|
|
35
|
-
}
|
|
22
|
+
var import_globalState = require("./globalState");
|
|
23
|
+
const state = (0, import_globalState.createGlobalState)("keyboard_controller", {
|
|
24
|
+
enabled: !1,
|
|
25
|
+
KeyboardProvider: null,
|
|
26
|
+
KeyboardAwareScrollView: null,
|
|
27
|
+
useKeyboardHandler: null,
|
|
28
|
+
useReanimatedKeyboardAnimation: null,
|
|
29
|
+
KeyboardController: null,
|
|
30
|
+
KeyboardEvents: null,
|
|
31
|
+
KeyboardStickyView: null
|
|
32
|
+
});
|
|
36
33
|
function isKeyboardControllerEnabled() {
|
|
37
|
-
return
|
|
34
|
+
return state.get().enabled;
|
|
38
35
|
}
|
|
39
36
|
function getKeyboardControllerState() {
|
|
40
|
-
return
|
|
37
|
+
return state.get();
|
|
41
38
|
}
|
|
42
39
|
function setKeyboardControllerState(updates) {
|
|
43
|
-
|
|
44
|
-
Object.assign(state, updates);
|
|
40
|
+
Object.assign(state.get(), updates);
|
|
45
41
|
}
|
|
46
42
|
//# sourceMappingURL=keyboardControllerState.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/keyboardControllerState.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAkC;AAKlC,MAAM,YAAQ,sCAA2C,uBAAuB;AAAA,EAC9E,SAAS;AAAA,EACT,kBAAkB;AAAA,EAClB,yBAAyB;AAAA,EACzB,oBAAoB;AAAA,EACpB,gCAAgC;AAAA,EAChC,oBAAoB;AAAA,EACpB,gBAAgB;AAAA,EAChB,oBAAoB;AACtB,CAAC;AAEM,SAAS,8BAAuC;AACrD,SAAO,MAAM,IAAI,EAAE;AACrB;AAEO,SAAS,6BAAsD;AACpE,SAAO,MAAM,IAAI;AACnB;AAEO,SAAS,2BACd,SACM;AACN,SAAO,OAAO,MAAM,IAAI,GAAG,OAAO;AACpC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|