@tamagui/native 2.7.7 → 3.0.0-beta.643.1
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 +53 -71
- package/dist/cjs/PressBoundary.native.cjs +86 -0
- package/dist/cjs/PressBoundary.native.js +63 -80
- package/dist/cjs/PressBoundary.native.js.map +1 -1
- package/dist/cjs/burntState.cjs +29 -32
- package/dist/cjs/burntState.native.cjs +45 -0
- package/dist/cjs/burntState.native.js +29 -31
- package/dist/cjs/burntState.native.js.map +1 -1
- package/dist/cjs/components.cjs +35 -55
- package/dist/cjs/components.native.cjs +56 -0
- package/dist/cjs/components.native.js +35 -54
- package/dist/cjs/components.native.js.map +1 -1
- package/dist/cjs/expoUIMenuAdapter.cjs +240 -254
- package/dist/cjs/expoUIMenuAdapter.native.cjs +315 -0
- package/dist/cjs/expoUIMenuAdapter.native.js +285 -303
- package/dist/cjs/expoUIMenuAdapter.native.js.map +1 -1
- package/dist/cjs/gesture-handler.cjs +21 -22
- package/dist/cjs/gesture-handler.native.cjs +38 -0
- package/dist/cjs/gesture-handler.native.js +21 -21
- package/dist/cjs/gesture-handler.native.js.map +1 -1
- package/dist/cjs/gestureState.cjs +202 -207
- package/dist/cjs/gestureState.native.cjs +262 -0
- package/dist/cjs/gestureState.native.js +215 -219
- package/dist/cjs/gestureState.native.js.map +1 -1
- package/dist/cjs/globalState.cjs +31 -34
- package/dist/cjs/globalState.native.cjs +44 -0
- package/dist/cjs/globalState.native.js +31 -33
- package/dist/cjs/globalState.native.js.map +1 -1
- package/dist/cjs/index.cjs +34 -34
- package/dist/cjs/index.native.cjs +59 -0
- package/dist/cjs/index.native.js +34 -33
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/keyboardControllerState.cjs +28 -29
- package/dist/cjs/keyboardControllerState.native.cjs +50 -0
- package/dist/cjs/keyboardControllerState.native.js +28 -28
- package/dist/cjs/keyboardControllerState.native.js.map +1 -1
- package/dist/cjs/linearGradientState.cjs +28 -31
- package/dist/cjs/linearGradientState.native.cjs +44 -0
- package/dist/cjs/linearGradientState.native.js +28 -30
- package/dist/cjs/linearGradientState.native.js.map +1 -1
- package/dist/cjs/nativeMenuContext.cjs +15 -18
- package/dist/cjs/nativeMenuContext.native.cjs +28 -0
- package/dist/cjs/nativeMenuContext.native.js +15 -17
- package/dist/cjs/nativeMenuContext.native.js.map +1 -1
- package/dist/cjs/nativeMenuState.cjs +27 -28
- package/dist/cjs/nativeMenuState.native.cjs +47 -0
- package/dist/cjs/nativeMenuState.native.js +27 -27
- package/dist/cjs/nativeMenuState.native.js.map +1 -1
- package/dist/cjs/portalState.cjs +28 -31
- package/dist/cjs/portalState.native.cjs +44 -0
- package/dist/cjs/portalState.native.js +28 -30
- package/dist/cjs/portalState.native.js.map +1 -1
- package/dist/cjs/safeAreaState.cjs +77 -53
- package/dist/cjs/safeAreaState.native.cjs +101 -0
- package/dist/cjs/safeAreaState.native.js +79 -52
- package/dist/cjs/safeAreaState.native.js.map +1 -1
- package/dist/cjs/setup-burnt.cjs +15 -14
- package/dist/cjs/setup-burnt.native.cjs +20 -0
- package/dist/cjs/setup-burnt.native.js +15 -13
- package/dist/cjs/setup-burnt.native.js.map +1 -1
- package/dist/cjs/setup-expo-linear-gradient.cjs +14 -13
- package/dist/cjs/setup-expo-linear-gradient.native.cjs +19 -0
- package/dist/cjs/setup-expo-linear-gradient.native.js +14 -12
- package/dist/cjs/setup-expo-linear-gradient.native.js.map +1 -1
- package/dist/cjs/setup-expo-ui-menu.cjs +12 -13
- package/dist/cjs/setup-expo-ui-menu.native.cjs +18 -0
- package/dist/cjs/setup-expo-ui-menu.native.js +12 -12
- package/dist/cjs/setup-expo-ui-menu.native.js.map +1 -1
- package/dist/cjs/setup-gesture-handler.cjs +51 -57
- package/dist/cjs/setup-gesture-handler.native.cjs +72 -0
- package/dist/cjs/setup-gesture-handler.native.js +51 -56
- package/dist/cjs/setup-gesture-handler.native.js.map +1 -1
- package/dist/cjs/setup-keyboard-controller.native.cjs +28 -0
- package/dist/cjs/setup-keyboard-controller.native.js +23 -29
- package/dist/cjs/setup-keyboard-controller.native.js.map +1 -1
- package/dist/cjs/setup-safe-area.cjs +17 -3
- package/dist/cjs/setup-safe-area.native.cjs +28 -0
- package/dist/cjs/setup-safe-area.native.js +23 -16
- package/dist/cjs/setup-safe-area.native.js.map +1 -1
- package/dist/cjs/setup-teleport.cjs +16 -15
- package/dist/cjs/setup-teleport.native.cjs +21 -0
- package/dist/cjs/setup-teleport.native.js +16 -14
- package/dist/cjs/setup-teleport.native.js.map +1 -1
- package/dist/cjs/setup-worklets.cjs +19 -18
- package/dist/cjs/setup-worklets.native.cjs +24 -0
- package/dist/cjs/setup-worklets.native.js +19 -17
- package/dist/cjs/setup-worklets.native.js.map +1 -1
- package/dist/cjs/setup-zeego.cjs +18 -17
- package/dist/cjs/setup-zeego.native.cjs +23 -0
- package/dist/cjs/setup-zeego.native.js +18 -16
- package/dist/cjs/setup-zeego.native.js.map +1 -1
- package/dist/cjs/types.cjs +10 -11
- package/dist/cjs/types.native.cjs +19 -0
- package/dist/cjs/types.native.js +10 -10
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/workletsState.cjs +31 -34
- package/dist/cjs/workletsState.native.cjs +47 -0
- package/dist/cjs/workletsState.native.js +31 -33
- package/dist/cjs/workletsState.native.js.map +1 -1
- package/dist/esm/PressBoundary.mjs +37 -45
- package/dist/esm/PressBoundary.mjs.map +1 -1
- package/dist/esm/PressBoundary.native.js +48 -56
- package/dist/esm/PressBoundary.native.js.map +1 -1
- package/dist/esm/burntState.mjs +16 -14
- package/dist/esm/burntState.mjs.map +1 -1
- package/dist/esm/burntState.native.js +16 -14
- package/dist/esm/burntState.native.js.map +1 -1
- package/dist/esm/components.mjs +20 -37
- package/dist/esm/components.mjs.map +1 -1
- package/dist/esm/components.native.js +21 -38
- package/dist/esm/components.native.js.map +1 -1
- package/dist/esm/expoUIMenuAdapter.mjs +224 -228
- package/dist/esm/expoUIMenuAdapter.mjs.map +1 -1
- package/dist/esm/expoUIMenuAdapter.native.js +270 -279
- package/dist/esm/expoUIMenuAdapter.native.js.map +1 -1
- package/dist/esm/gesture-handler.mjs +3 -4
- package/dist/esm/gesture-handler.native.js +3 -4
- package/dist/esm/gestureState.mjs +185 -187
- package/dist/esm/gestureState.mjs.map +1 -1
- package/dist/esm/gestureState.native.js +198 -200
- package/dist/esm/gestureState.native.js.map +1 -1
- package/dist/esm/globalState.mjs +17 -16
- package/dist/esm/globalState.mjs.map +1 -1
- package/dist/esm/globalState.native.js +17 -16
- package/dist/esm/globalState.native.js.map +1 -1
- package/dist/esm/index.js +5 -6
- package/dist/esm/index.mjs +5 -6
- package/dist/esm/index.native.js +5 -6
- package/dist/esm/keyboardControllerState.mjs +13 -11
- package/dist/esm/keyboardControllerState.mjs.map +1 -1
- package/dist/esm/keyboardControllerState.native.js +13 -11
- package/dist/esm/keyboardControllerState.native.js.map +1 -1
- package/dist/esm/linearGradientState.mjs +15 -13
- package/dist/esm/linearGradientState.mjs.map +1 -1
- package/dist/esm/linearGradientState.native.js +15 -13
- package/dist/esm/linearGradientState.native.js.map +1 -1
- package/dist/esm/nativeMenuContext.mjs +2 -0
- package/dist/esm/nativeMenuContext.mjs.map +1 -1
- package/dist/esm/nativeMenuContext.native.js +2 -0
- package/dist/esm/nativeMenuContext.native.js.map +1 -1
- package/dist/esm/nativeMenuState.mjs +13 -11
- package/dist/esm/nativeMenuState.mjs.map +1 -1
- package/dist/esm/nativeMenuState.native.js +13 -11
- package/dist/esm/nativeMenuState.native.js.map +1 -1
- package/dist/esm/portalState.mjs +15 -13
- package/dist/esm/portalState.mjs.map +1 -1
- package/dist/esm/portalState.native.js +15 -13
- package/dist/esm/portalState.native.js.map +1 -1
- package/dist/esm/safeAreaState.mjs +64 -38
- package/dist/esm/safeAreaState.mjs.map +1 -1
- package/dist/esm/safeAreaState.native.js +66 -38
- package/dist/esm/safeAreaState.native.js.map +1 -1
- package/dist/esm/setup-burnt.mjs +20 -13
- package/dist/esm/setup-burnt.mjs.map +1 -1
- package/dist/esm/setup-burnt.native.js +20 -13
- package/dist/esm/setup-burnt.native.js.map +1 -1
- package/dist/esm/setup-expo-linear-gradient.mjs +19 -12
- package/dist/esm/setup-expo-linear-gradient.mjs.map +1 -1
- package/dist/esm/setup-expo-linear-gradient.native.js +19 -12
- package/dist/esm/setup-expo-linear-gradient.native.js.map +1 -1
- package/dist/esm/setup-expo-ui-menu.mjs +17 -12
- package/dist/esm/setup-expo-ui-menu.mjs.map +1 -1
- package/dist/esm/setup-expo-ui-menu.native.js +17 -12
- package/dist/esm/setup-expo-ui-menu.native.js.map +1 -1
- package/dist/esm/setup-gesture-handler.mjs +42 -40
- package/dist/esm/setup-gesture-handler.mjs.map +1 -1
- package/dist/esm/setup-gesture-handler.native.js +42 -40
- package/dist/esm/setup-gesture-handler.native.js.map +1 -1
- package/dist/esm/setup-keyboard-controller.mjs +0 -2
- package/dist/esm/setup-keyboard-controller.native.js +28 -29
- package/dist/esm/setup-keyboard-controller.native.js.map +1 -1
- package/dist/esm/setup-safe-area.mjs +0 -4
- package/dist/esm/setup-safe-area.native.js +23 -22
- package/dist/esm/setup-safe-area.native.js.map +1 -1
- package/dist/esm/setup-teleport.mjs +21 -14
- package/dist/esm/setup-teleport.mjs.map +1 -1
- package/dist/esm/setup-teleport.native.js +21 -14
- package/dist/esm/setup-teleport.native.js.map +1 -1
- package/dist/esm/setup-worklets.mjs +24 -17
- package/dist/esm/setup-worklets.mjs.map +1 -1
- package/dist/esm/setup-worklets.native.js +24 -17
- package/dist/esm/setup-worklets.native.js.map +1 -1
- package/dist/esm/setup-zeego.mjs +23 -16
- package/dist/esm/setup-zeego.mjs.map +1 -1
- package/dist/esm/setup-zeego.native.js +23 -16
- package/dist/esm/setup-zeego.native.js.map +1 -1
- package/dist/esm/types.mjs +0 -2
- package/dist/esm/types.native.js +0 -2
- package/dist/esm/workletsState.mjs +18 -16
- package/dist/esm/workletsState.mjs.map +1 -1
- package/dist/esm/workletsState.native.js +18 -16
- package/dist/esm/workletsState.native.js.map +1 -1
- package/package.json +84 -7
- package/src/PressBoundary.tsx +48 -45
- package/src/expoUIMenuAdapter.tsx +1 -2
- package/src/gestureState.ts +2 -2
- package/src/index.ts +1 -1
- package/src/safeAreaState.ts +59 -27
- package/src/setup-safe-area.ts +27 -22
- package/src/setup-safe-area.web.ts +2 -0
- package/src/types.ts +1 -0
- package/types/PressBoundary.d.ts +3 -1
- package/types/PressBoundary.d.ts.map +2 -2
- package/types/expoUIMenuAdapter.d.ts.map +2 -2
- package/types/gestureState.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +2 -2
- package/types/safeAreaState.d.ts +5 -2
- package/types/safeAreaState.d.ts.map +2 -2
- package/types/setup-safe-area.d.ts.map +1 -1
- package/types/setup-safe-area.web.d.ts +3 -0
- package/types/setup-safe-area.web.d.ts.map +11 -0
- package/types/types.d.ts +1 -0
- package/types/types.d.ts.map +2 -2
- package/.turbo/turbo-build.log +0 -2
- package/dist/esm/gesture-handler.mjs.map +0 -1
- package/dist/esm/gesture-handler.native.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/setup-keyboard-controller.mjs.map +0 -1
- package/dist/esm/setup-safe-area.mjs.map +0 -1
- package/dist/esm/types.mjs.map +0 -1
- package/dist/esm/types.native.js.map +0 -1
- package/tsconfig.json +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"setup-gesture-handler.native.js","names":[],"sources":["esm/setup-gesture-handler.native.js"],"sourcesContent":["import { canChangeGestureHandlerEnabled, getGestureHandler } from \"./gestureState\";\nvar currentConfig = {\n pressEvents: true,\n sheet: true\n};\nfunction getGestureHandlerConfig() {\n return currentConfig;\n}\nfunction setupGestureHandler(config) {\n var g = globalThis;\n if (config) {\n currentConfig = config;\n if (config.pressEvents !== void 0 && !canChangeGestureHandlerEnabled(config.pressEvents !== false, \"setupGestureHandler()\")) {\n currentConfig = {\n ...currentConfig,\n pressEvents: getGestureHandler().isEnabled\n };\n }\n }\n var isFirstRun = !g.__tamagui_native_gesture_setup_complete;\n g.__tamagui_native_gesture_setup_complete = true;\n try {\n var rngh = require(\"react-native-gesture-handler\");\n var { Gesture, GestureDetector, ScrollView, GestureHandlerRootView } = rngh;\n if (Gesture && GestureDetector) {\n getGestureHandler().set({\n enabled: currentConfig.pressEvents !== false,\n Gesture,\n GestureDetector,\n ScrollView: ScrollView || null,\n RootView: GestureHandlerRootView || null\n });\n g.__tamagui_sheet_gesture_state__ = {\n enabled: currentConfig.sheet !== false,\n Gesture,\n GestureDetector,\n ScrollView: ScrollView || null,\n RootView: GestureHandlerRootView || null\n };\n }\n } catch (e) {\n }\n}\nsetupGestureHandler();\nexport {\n getGestureHandlerConfig,\n setupGestureHandler\n};\n//# sourceMappingURL=setup-gesture-handler.js.map\n"],"mappings":";;;;;;;;;;AACA,IAAI,gBAAgB;CAClB,aAAa;CACb,OAAO;AACT;AACA,SAAS,0BAA0B;CACjC,OAAO;AACT;AACA,SAAS,oBAAoB,QAAQ;CACnC,IAAI,IAAI;CACR,IAAI,QAAQ;EACV,gBAAgB;EAChB,IAAI,OAAO,gBAAgB,KAAK,KAAK,CAAC,+BAA+B,OAAO,gBAAgB,OAAO,uBAAuB,GAAG;GAC3H,gBAAgB;IACd,GAAG;IACH,aAAa,kBAAkB,EAAE;GACnC;EACF;CACF;CACA,IAAI,aAAa,CAAC,EAAE;CACpB,EAAE,0CAA0C;CAC5C,IAAI;EACF,IAAI,iBAAe,8BAA8B;EACjD,IAAI,EAAE,SAAS,iBAAiB,YAAY,2BAA2B;EACvE,IAAI,WAAW,iBAAiB;GAC9B,kBAAkB,EAAE,IAAI;IACtB,SAAS,cAAc,gBAAgB;IACvC;IACA;IACA,YAAY,cAAc;IAC1B,UAAU,0BAA0B;GACtC,CAAC;GACD,EAAE,kCAAkC;IAClC,SAAS,cAAc,UAAU;IACjC;IACA;IACA,YAAY,cAAc;IAC1B,UAAU,0BAA0B;GACtC;EACF;CACF,SAAS,GAAG,CACZ;AACF;AACA,oBAAoB"}
|
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
import { setKeyboardControllerState } from "./keyboardControllerState.native.js";
|
|
2
|
+
|
|
3
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
+
});
|
|
7
|
+
|
|
2
8
|
function setup() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
useKeyboardHandler: useKeyboardHandler || null,
|
|
25
|
-
useReanimatedKeyboardAnimation: useReanimatedKeyboardAnimation || null,
|
|
26
|
-
KeyboardController: KeyboardController || null,
|
|
27
|
-
KeyboardEvents: KeyboardEvents || null,
|
|
28
|
-
KeyboardStickyView: KeyboardStickyView || null
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
} catch (e) {}
|
|
9
|
+
var g = globalThis;
|
|
10
|
+
if (g.__tamagui_native_keyboard_controller_setup_complete) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
g.__tamagui_native_keyboard_controller_setup_complete = true;
|
|
14
|
+
try {
|
|
15
|
+
var rnkc = require("react-native-keyboard-controller");
|
|
16
|
+
var { KeyboardProvider, KeyboardAwareScrollView, useKeyboardHandler, useReanimatedKeyboardAnimation, KeyboardController, KeyboardEvents, KeyboardStickyView } = rnkc;
|
|
17
|
+
if (useKeyboardHandler && KeyboardProvider) {
|
|
18
|
+
setKeyboardControllerState({
|
|
19
|
+
enabled: true,
|
|
20
|
+
KeyboardProvider: KeyboardProvider || null,
|
|
21
|
+
KeyboardAwareScrollView: KeyboardAwareScrollView || null,
|
|
22
|
+
useKeyboardHandler: useKeyboardHandler || null,
|
|
23
|
+
useReanimatedKeyboardAnimation: useReanimatedKeyboardAnimation || null,
|
|
24
|
+
KeyboardController: KeyboardController || null,
|
|
25
|
+
KeyboardEvents: KeyboardEvents || null,
|
|
26
|
+
KeyboardStickyView: KeyboardStickyView || null
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
} catch (e) {}
|
|
32
30
|
}
|
|
33
31
|
setup();
|
|
32
|
+
|
|
34
33
|
//# sourceMappingURL=setup-keyboard-controller.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setup-keyboard-controller.native.js","names":[],"sources":["esm/setup-keyboard-controller.native.js"],"sourcesContent":["import { setKeyboardControllerState } from \"./keyboardControllerState\";\nfunction setup() {\n var g = globalThis;\n if (g.__tamagui_native_keyboard_controller_setup_complete) {\n return;\n }\n g.__tamagui_native_keyboard_controller_setup_complete = true;\n try {\n var rnkc = require(\"react-native-keyboard-controller\");\n var { KeyboardProvider, KeyboardAwareScrollView, useKeyboardHandler, useReanimatedKeyboardAnimation, KeyboardController, KeyboardEvents, KeyboardStickyView } = rnkc;\n if (useKeyboardHandler && KeyboardProvider) {\n setKeyboardControllerState({\n enabled: true,\n KeyboardProvider: KeyboardProvider || null,\n KeyboardAwareScrollView: KeyboardAwareScrollView || null,\n useKeyboardHandler: useKeyboardHandler || null,\n useReanimatedKeyboardAnimation: useReanimatedKeyboardAnimation || null,\n KeyboardController: KeyboardController || null,\n KeyboardEvents: KeyboardEvents || null,\n KeyboardStickyView: KeyboardStickyView || null\n });\n }\n } catch (e) {\n }\n}\nsetup();\n//# sourceMappingURL=setup-keyboard-controller.js.map\n"],"mappings":";;;;;;;;;;AACA,SAAS,QAAQ;CACf,IAAI,IAAI;CACR,IAAI,EAAE,qDAAqD;EACzD;CACF;CACA,EAAE,sDAAsD;CACxD,IAAI;EACF,IAAI,iBAAe,kCAAkC;EACrD,IAAI,EAAE,kBAAkB,yBAAyB,oBAAoB,gCAAgC,oBAAoB,gBAAgB,uBAAuB;EAChK,IAAI,sBAAsB,kBAAkB;GAC1C,2BAA2B;IACzB,SAAS;IACT,kBAAkB,oBAAoB;IACtC,yBAAyB,2BAA2B;IACpD,oBAAoB,sBAAsB;IAC1C,gCAAgC,kCAAkC;IAClE,oBAAoB,sBAAsB;IAC1C,gBAAgB,kBAAkB;IAClC,oBAAoB,sBAAsB;GAC5C,CAAC;EACH;CACF,SAAS,GAAG,CACZ;AACF;AACA,MAAM"}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
+
import { useLayoutEffect } from "react";
|
|
2
|
+
import { initialWindowMetrics, useSafeAreaFrame, useSafeAreaInsets } from "react-native-safe-area-context";
|
|
1
3
|
import { getSafeArea } from "./safeAreaState.native.js";
|
|
2
|
-
|
|
3
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
4
|
-
}) : x)(function (x) {
|
|
5
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
6
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
7
|
-
});
|
|
4
|
+
|
|
8
5
|
function setup() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
6
|
+
var safeArea = getSafeArea();
|
|
7
|
+
safeArea.set({ didSetup: true });
|
|
8
|
+
var useTrackedSafeAreaInsets = function() {
|
|
9
|
+
var insets = useSafeAreaInsets();
|
|
10
|
+
var frame = useSafeAreaFrame();
|
|
11
|
+
useLayoutEffect(function() {
|
|
12
|
+
safeArea.set({ initialMetrics: {
|
|
13
|
+
insets,
|
|
14
|
+
frame
|
|
15
|
+
} });
|
|
16
|
+
}, [insets, frame]);
|
|
17
|
+
return insets;
|
|
18
|
+
};
|
|
19
|
+
safeArea.set({
|
|
20
|
+
enabled: true,
|
|
21
|
+
useSafeAreaInsets: useTrackedSafeAreaInsets,
|
|
22
|
+
useSafeAreaFrame,
|
|
23
|
+
initialMetrics: initialWindowMetrics
|
|
24
|
+
});
|
|
25
25
|
}
|
|
26
26
|
setup();
|
|
27
|
+
|
|
27
28
|
//# sourceMappingURL=setup-safe-area.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"setup-safe-area.native.js","names":[],"sources":["esm/setup-safe-area.native.js"],"sourcesContent":["import { useLayoutEffect } from \"react\";\nimport { initialWindowMetrics, useSafeAreaFrame, useSafeAreaInsets } from \"react-native-safe-area-context\";\nimport { getSafeArea } from \"./safeAreaState\";\nfunction setup() {\n var safeArea = getSafeArea();\n safeArea.set({\n didSetup: true\n });\n var useTrackedSafeAreaInsets = function() {\n var insets = useSafeAreaInsets();\n var frame = useSafeAreaFrame();\n useLayoutEffect(function() {\n safeArea.set({\n initialMetrics: {\n insets,\n frame\n }\n });\n }, [\n insets,\n frame\n ]);\n return insets;\n };\n safeArea.set({\n enabled: true,\n useSafeAreaInsets: useTrackedSafeAreaInsets,\n useSafeAreaFrame,\n initialMetrics: initialWindowMetrics\n });\n}\nsetup();\n//# sourceMappingURL=setup-safe-area.js.map\n"],"mappings":";;;;;AAGA,SAAS,QAAQ;CACf,IAAI,WAAW,YAAY;CAC3B,SAAS,IAAI,EACX,UAAU,KACZ,CAAC;CACD,IAAI,2BAA2B,WAAW;EACxC,IAAI,SAAS,kBAAkB;EAC/B,IAAI,QAAQ,iBAAiB;EAC7B,gBAAgB,WAAW;GACzB,SAAS,IAAI,EACX,gBAAgB;IACd;IACA;GACF,EACF,CAAC;EACH,GAAG,CACD,QACA,KACF,CAAC;EACD,OAAO;CACT;CACA,SAAS,IAAI;EACX,SAAS;EACT,mBAAmB;EACnB;EACA,gBAAgB;CAClB,CAAC;AACH;AACA,MAAM"}
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { getPortal } from "./portalState.mjs";
|
|
2
|
+
|
|
3
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
+
});
|
|
7
|
+
|
|
2
8
|
function setup() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
const g = globalThis;
|
|
10
|
+
if (g.__tamagui_native_portal_setup) return;
|
|
11
|
+
g.__tamagui_native_portal_setup = true;
|
|
12
|
+
try {
|
|
13
|
+
const teleport = __require("react-native-teleport");
|
|
14
|
+
if (teleport?.Portal && teleport?.PortalHost && teleport?.PortalProvider) {
|
|
15
|
+
g.__tamagui_teleport = teleport;
|
|
16
|
+
getPortal().set({
|
|
17
|
+
enabled: true,
|
|
18
|
+
type: "teleport"
|
|
19
|
+
});
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
} catch {}
|
|
17
23
|
}
|
|
18
24
|
setup();
|
|
25
|
+
|
|
19
26
|
//# sourceMappingURL=setup-teleport.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"setup-teleport.js","names":[],"sources":["esm/setup-teleport.js"],"sourcesContent":["import { getPortal } from \"./portalState\";\nfunction setup() {\n const g = globalThis;\n if (g.__tamagui_native_portal_setup) return;\n g.__tamagui_native_portal_setup = true;\n try {\n const teleport = require(\"react-native-teleport\");\n if (teleport?.Portal && teleport?.PortalHost && teleport?.PortalProvider) {\n g.__tamagui_teleport = teleport;\n getPortal().set({ enabled: true, type: \"teleport\" });\n return;\n }\n } catch {\n }\n}\nsetup();\n//# sourceMappingURL=setup-teleport.js.map\n"],"mappings":";;;;;;;;;;AACA,SAAS,QAAQ;CACf,MAAM,IAAI;CACV,IAAI,EAAE,+BAA+B;CACrC,EAAE,gCAAgC;CAClC,IAAI;EACF,MAAM,qBAAmB,uBAAuB;EAChD,IAAI,UAAU,UAAU,UAAU,cAAc,UAAU,gBAAgB;GACxE,EAAE,qBAAqB;GACvB,UAAU,EAAE,IAAI;IAAE,SAAS;IAAM,MAAM;GAAW,CAAC;GACnD;EACF;CACF,QAAQ,CACR;AACF;AACA,MAAM"}
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { getPortal } from "./portalState.native.js";
|
|
2
|
+
|
|
3
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
+
});
|
|
7
|
+
|
|
2
8
|
function setup() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
var g = globalThis;
|
|
10
|
+
if (g.__tamagui_native_portal_setup) return;
|
|
11
|
+
g.__tamagui_native_portal_setup = true;
|
|
12
|
+
try {
|
|
13
|
+
var teleport = require("react-native-teleport");
|
|
14
|
+
if ((teleport === null || teleport === void 0 ? void 0 : teleport.Portal) && (teleport === null || teleport === void 0 ? void 0 : teleport.PortalHost) && (teleport === null || teleport === void 0 ? void 0 : teleport.PortalProvider)) {
|
|
15
|
+
g.__tamagui_teleport = teleport;
|
|
16
|
+
getPortal().set({
|
|
17
|
+
enabled: true,
|
|
18
|
+
type: "teleport"
|
|
19
|
+
});
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
} catch (e) {}
|
|
17
23
|
}
|
|
18
24
|
setup();
|
|
25
|
+
|
|
19
26
|
//# sourceMappingURL=setup-teleport.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"setup-teleport.native.js","names":[],"sources":["esm/setup-teleport.native.js"],"sourcesContent":["import { getPortal } from \"./portalState\";\nfunction setup() {\n var g = globalThis;\n if (g.__tamagui_native_portal_setup) return;\n g.__tamagui_native_portal_setup = true;\n try {\n var teleport = require(\"react-native-teleport\");\n if ((teleport === null || teleport === void 0 ? void 0 : teleport.Portal) && (teleport === null || teleport === void 0 ? void 0 : teleport.PortalHost) && (teleport === null || teleport === void 0 ? void 0 : teleport.PortalProvider)) {\n g.__tamagui_teleport = teleport;\n getPortal().set({\n enabled: true,\n type: \"teleport\"\n });\n return;\n }\n } catch (e) {\n }\n}\nsetup();\n//# sourceMappingURL=setup-teleport.js.map\n"],"mappings":";;;;;;;;;;AACA,SAAS,QAAQ;CACf,IAAI,IAAI;CACR,IAAI,EAAE,+BAA+B;CACrC,EAAE,gCAAgC;CAClC,IAAI;EACF,IAAI,qBAAmB,uBAAuB;EAC9C,KAAK,aAAa,QAAQ,aAAa,KAAK,IAAI,KAAK,IAAI,SAAS,YAAY,aAAa,QAAQ,aAAa,KAAK,IAAI,KAAK,IAAI,SAAS,gBAAgB,aAAa,QAAQ,aAAa,KAAK,IAAI,KAAK,IAAI,SAAS,iBAAiB;GACvO,EAAE,qBAAqB;GACvB,UAAU,EAAE,IAAI;IACd,SAAS;IACT,MAAM;GACR,CAAC;GACD;EACF;CACF,SAAS,GAAG,CACZ;AACF;AACA,MAAM"}
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
import { getWorklets } from "./workletsState.mjs";
|
|
2
|
+
|
|
3
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
+
});
|
|
7
|
+
|
|
2
8
|
function setup() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
const g = globalThis;
|
|
10
|
+
if (g.__tamagui_native_worklets_setup_complete) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
g.__tamagui_native_worklets_setup_complete = true;
|
|
14
|
+
try {
|
|
15
|
+
const worklets = __require("react-native-worklets-core");
|
|
16
|
+
if (worklets) {
|
|
17
|
+
getWorklets().set({
|
|
18
|
+
enabled: true,
|
|
19
|
+
Worklets: worklets.Worklets,
|
|
20
|
+
useRunOnJS: worklets.useRunOnJS,
|
|
21
|
+
useWorklet: worklets.useWorklet,
|
|
22
|
+
createWorkletContextValue: worklets.createWorkletContextValue
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
} catch {}
|
|
20
26
|
}
|
|
21
27
|
setup();
|
|
28
|
+
|
|
22
29
|
//# sourceMappingURL=setup-worklets.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"setup-worklets.js","names":[],"sources":["esm/setup-worklets.js"],"sourcesContent":["import { getWorklets } from \"./workletsState\";\nfunction setup() {\n const g = globalThis;\n if (g.__tamagui_native_worklets_setup_complete) {\n return;\n }\n g.__tamagui_native_worklets_setup_complete = true;\n try {\n const worklets = require(\"react-native-worklets-core\");\n if (worklets) {\n getWorklets().set({\n enabled: true,\n Worklets: worklets.Worklets,\n useRunOnJS: worklets.useRunOnJS,\n useWorklet: worklets.useWorklet,\n createWorkletContextValue: worklets.createWorkletContextValue\n });\n }\n } catch {\n }\n}\nsetup();\n//# sourceMappingURL=setup-worklets.js.map\n"],"mappings":";;;;;;;;;;AACA,SAAS,QAAQ;CACf,MAAM,IAAI;CACV,IAAI,EAAE,0CAA0C;EAC9C;CACF;CACA,EAAE,2CAA2C;CAC7C,IAAI;EACF,MAAM,qBAAmB,4BAA4B;EACrD,IAAI,UAAU;GACZ,YAAY,EAAE,IAAI;IAChB,SAAS;IACT,UAAU,SAAS;IACnB,YAAY,SAAS;IACrB,YAAY,SAAS;IACrB,2BAA2B,SAAS;GACtC,CAAC;EACH;CACF,QAAQ,CACR;AACF;AACA,MAAM"}
|
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
import { getWorklets } from "./workletsState.native.js";
|
|
2
|
+
|
|
3
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
+
});
|
|
7
|
+
|
|
2
8
|
function setup() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
var g = globalThis;
|
|
10
|
+
if (g.__tamagui_native_worklets_setup_complete) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
g.__tamagui_native_worklets_setup_complete = true;
|
|
14
|
+
try {
|
|
15
|
+
var worklets = require("react-native-worklets-core");
|
|
16
|
+
if (worklets) {
|
|
17
|
+
getWorklets().set({
|
|
18
|
+
enabled: true,
|
|
19
|
+
Worklets: worklets.Worklets,
|
|
20
|
+
useRunOnJS: worklets.useRunOnJS,
|
|
21
|
+
useWorklet: worklets.useWorklet,
|
|
22
|
+
createWorkletContextValue: worklets.createWorkletContextValue
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
} catch (e) {}
|
|
20
26
|
}
|
|
21
27
|
setup();
|
|
28
|
+
|
|
22
29
|
//# sourceMappingURL=setup-worklets.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"setup-worklets.native.js","names":[],"sources":["esm/setup-worklets.native.js"],"sourcesContent":["import { getWorklets } from \"./workletsState\";\nfunction setup() {\n var g = globalThis;\n if (g.__tamagui_native_worklets_setup_complete) {\n return;\n }\n g.__tamagui_native_worklets_setup_complete = true;\n try {\n var worklets = require(\"react-native-worklets-core\");\n if (worklets) {\n getWorklets().set({\n enabled: true,\n Worklets: worklets.Worklets,\n useRunOnJS: worklets.useRunOnJS,\n useWorklet: worklets.useWorklet,\n createWorkletContextValue: worklets.createWorkletContextValue\n });\n }\n } catch (e) {\n }\n}\nsetup();\n//# sourceMappingURL=setup-worklets.js.map\n"],"mappings":";;;;;;;;;;AACA,SAAS,QAAQ;CACf,IAAI,IAAI;CACR,IAAI,EAAE,0CAA0C;EAC9C;CACF;CACA,EAAE,2CAA2C;CAC7C,IAAI;EACF,IAAI,qBAAmB,4BAA4B;EACnD,IAAI,UAAU;GACZ,YAAY,EAAE,IAAI;IAChB,SAAS;IACT,UAAU,SAAS;IACnB,YAAY,SAAS;IACrB,YAAY,SAAS;IACrB,2BAA2B,SAAS;GACtC,CAAC;EACH;CACF,SAAS,GAAG,CACZ;AACF;AACA,MAAM"}
|
package/dist/esm/setup-zeego.mjs
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import { registerNativeMenuAdapter } from "./nativeMenuState.mjs";
|
|
2
|
+
|
|
3
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
+
});
|
|
7
|
+
|
|
2
8
|
function setup() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
let Menu;
|
|
10
|
+
let ContextMenu;
|
|
11
|
+
try {
|
|
12
|
+
Menu = __require("zeego/dropdown-menu");
|
|
13
|
+
ContextMenu = __require("zeego/context-menu");
|
|
14
|
+
} catch (err) {
|
|
15
|
+
if (process.env.NODE_ENV === "development") {
|
|
16
|
+
console.warn(`Error setting up Zeego`, err);
|
|
17
|
+
}
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
registerNativeMenuAdapter({
|
|
21
|
+
name: "zeego",
|
|
22
|
+
Menu,
|
|
23
|
+
ContextMenu
|
|
24
|
+
});
|
|
19
25
|
}
|
|
20
26
|
setup();
|
|
27
|
+
|
|
21
28
|
//# sourceMappingURL=setup-zeego.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"setup-zeego.js","names":[],"sources":["esm/setup-zeego.js"],"sourcesContent":["import { registerNativeMenuAdapter } from \"./nativeMenuState\";\nfunction setup() {\n let Menu;\n let ContextMenu;\n try {\n Menu = require(\"zeego/dropdown-menu\");\n ContextMenu = require(\"zeego/context-menu\");\n } catch (err) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(`Error setting up Zeego`, err);\n }\n return;\n }\n registerNativeMenuAdapter({\n name: \"zeego\",\n Menu,\n ContextMenu\n });\n}\nsetup();\n//# sourceMappingURL=setup-zeego.js.map\n"],"mappings":";;;;;;;;;;AACA,SAAS,QAAQ;CACf,IAAI;CACJ,IAAI;CACJ,IAAI;EACF,iBAAe,qBAAqB;EACpC,wBAAsB,oBAAoB;CAC5C,SAAS,KAAK;EACZ,IAAI,QAAQ,IAAI,aAAa,eAAe;GAC1C,QAAQ,KAAK,0BAA0B,GAAG;EAC5C;EACA;CACF;CACA,0BAA0B;EACxB,MAAM;EACN;EACA;CACF,CAAC;AACH;AACA,MAAM"}
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import { registerNativeMenuAdapter } from "./nativeMenuState.native.js";
|
|
2
|
+
|
|
3
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
+
});
|
|
7
|
+
|
|
2
8
|
function setup() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
var Menu;
|
|
10
|
+
var ContextMenu;
|
|
11
|
+
try {
|
|
12
|
+
Menu = require("zeego/dropdown-menu");
|
|
13
|
+
ContextMenu = require("zeego/context-menu");
|
|
14
|
+
} catch (err) {
|
|
15
|
+
if (process.env.NODE_ENV === "development") {
|
|
16
|
+
console.warn(`Error setting up Zeego`, err);
|
|
17
|
+
}
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
registerNativeMenuAdapter({
|
|
21
|
+
name: "zeego",
|
|
22
|
+
Menu,
|
|
23
|
+
ContextMenu
|
|
24
|
+
});
|
|
19
25
|
}
|
|
20
26
|
setup();
|
|
27
|
+
|
|
21
28
|
//# sourceMappingURL=setup-zeego.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"file":"setup-zeego.native.js","names":[],"sources":["esm/setup-zeego.native.js"],"sourcesContent":["import { registerNativeMenuAdapter } from \"./nativeMenuState\";\nfunction setup() {\n var Menu;\n var ContextMenu;\n try {\n Menu = require(\"zeego/dropdown-menu\");\n ContextMenu = require(\"zeego/context-menu\");\n } catch (err) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(`Error setting up Zeego`, err);\n }\n return;\n }\n registerNativeMenuAdapter({\n name: \"zeego\",\n Menu,\n ContextMenu\n });\n}\nsetup();\n//# sourceMappingURL=setup-zeego.js.map\n"],"mappings":";;;;;;;;;;AACA,SAAS,QAAQ;CACf,IAAI;CACJ,IAAI;CACJ,IAAI;EACF,iBAAe,qBAAqB;EACpC,wBAAsB,oBAAoB;CAC5C,SAAS,KAAK;EACZ,IAAI,QAAQ,IAAI,aAAa,eAAe;GAC1C,QAAQ,KAAK,0BAA0B,GAAG;EAC5C;EACA;CACF;CACA,0BAA0B;EACxB,MAAM;EACN;EACA;CACF,CAAC;AACH;AACA,MAAM"}
|
package/dist/esm/types.mjs
CHANGED
package/dist/esm/types.native.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { createGlobalState } from "./globalState.mjs";
|
|
2
|
+
|
|
2
3
|
const state = createGlobalState(`worklets`, {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
enabled: false,
|
|
5
|
+
Worklets: null,
|
|
6
|
+
useRunOnJS: null,
|
|
7
|
+
useWorklet: null,
|
|
8
|
+
createWorkletContextValue: null
|
|
8
9
|
});
|
|
9
10
|
function getWorklets() {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
return {
|
|
12
|
+
get isEnabled() {
|
|
13
|
+
return state.get().enabled;
|
|
14
|
+
},
|
|
15
|
+
get state() {
|
|
16
|
+
return state.get();
|
|
17
|
+
},
|
|
18
|
+
set(updates) {
|
|
19
|
+
Object.assign(state.get(), updates);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
21
22
|
}
|
|
23
|
+
|
|
22
24
|
export { getWorklets };
|
|
23
25
|
//# sourceMappingURL=workletsState.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"workletsState.js","names":[],"sources":["esm/workletsState.js"],"sourcesContent":["import { createGlobalState } from \"./globalState\";\nconst state = createGlobalState(`worklets`, {\n enabled: false,\n Worklets: null,\n useRunOnJS: null,\n useWorklet: null,\n createWorkletContextValue: null\n});\nfunction getWorklets() {\n return {\n get isEnabled() {\n return state.get().enabled;\n },\n get state() {\n return state.get();\n },\n set(updates) {\n Object.assign(state.get(), updates);\n }\n };\n}\nexport {\n getWorklets\n};\n//# sourceMappingURL=workletsState.js.map\n"],"mappings":";;;AACA,MAAM,QAAQ,kBAAkB,YAAY;CAC1C,SAAS;CACT,UAAU;CACV,YAAY;CACZ,YAAY;CACZ,2BAA2B;AAC7B,CAAC;AACD,SAAS,cAAc;CACrB,OAAO;EACL,IAAI,YAAY;GACd,OAAO,MAAM,IAAI,EAAE;EACrB;EACA,IAAI,QAAQ;GACV,OAAO,MAAM,IAAI;EACnB;EACA,IAAI,SAAS;GACX,OAAO,OAAO,MAAM,IAAI,GAAG,OAAO;EACpC;CACF;AACF"}
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { createGlobalState } from "./globalState.native.js";
|
|
2
|
+
|
|
2
3
|
var state = createGlobalState(`worklets`, {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
enabled: false,
|
|
5
|
+
Worklets: null,
|
|
6
|
+
useRunOnJS: null,
|
|
7
|
+
useWorklet: null,
|
|
8
|
+
createWorkletContextValue: null
|
|
8
9
|
});
|
|
9
10
|
function getWorklets() {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
return {
|
|
12
|
+
get isEnabled() {
|
|
13
|
+
return state.get().enabled;
|
|
14
|
+
},
|
|
15
|
+
get state() {
|
|
16
|
+
return state.get();
|
|
17
|
+
},
|
|
18
|
+
set(updates) {
|
|
19
|
+
Object.assign(state.get(), updates);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
21
22
|
}
|
|
23
|
+
|
|
22
24
|
export { getWorklets };
|
|
23
25
|
//# sourceMappingURL=workletsState.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"workletsState.native.js","names":[],"sources":["esm/workletsState.native.js"],"sourcesContent":["import { createGlobalState } from \"./globalState\";\nvar state = createGlobalState(`worklets`, {\n enabled: false,\n Worklets: null,\n useRunOnJS: null,\n useWorklet: null,\n createWorkletContextValue: null\n});\nfunction getWorklets() {\n return {\n get isEnabled() {\n return state.get().enabled;\n },\n get state() {\n return state.get();\n },\n set(updates) {\n Object.assign(state.get(), updates);\n }\n };\n}\nexport {\n getWorklets\n};\n//# sourceMappingURL=workletsState.js.map\n"],"mappings":";;;AACA,IAAI,QAAQ,kBAAkB,YAAY;CACxC,SAAS;CACT,UAAU;CACV,YAAY;CACZ,YAAY;CACZ,2BAA2B;AAC7B,CAAC;AACD,SAAS,cAAc;CACrB,OAAO;EACL,IAAI,YAAY;GACd,OAAO,MAAM,IAAI,EAAE;EACrB;EACA,IAAI,QAAQ;GACV,OAAO,MAAM,IAAI;EACnB;EACA,IAAI,SAAS;GACX,OAAO,OAAO,MAAM,IAAI,GAAG,OAAO;EACpC;CACF;AACF"}
|