@tamagui/native 3.0.0-beta.1216.1 → 3.0.0-beta.1310.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.
@@ -1,16 +1,11 @@
1
1
  import { getBurnt } from "./burntState.mjs";
2
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
-
8
3
  function setup() {
9
4
  const g = globalThis;
10
5
  if (g.__tamagui_native_burnt_setup) return;
11
6
  g.__tamagui_native_burnt_setup = true;
12
7
  try {
13
- const Burnt = __require("burnt");
8
+ const Burnt = require("burnt");
14
9
  if (Burnt) {
15
10
  getBurnt().set({
16
11
  enabled: true,
@@ -1,10 +1,5 @@
1
1
  import { getBurnt } from "./burntState.native.js";
2
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
-
8
3
  function setup() {
9
4
  var g = globalThis;
10
5
  if (g.__tamagui_native_burnt_setup) return;
@@ -1,16 +1,11 @@
1
1
  import { getLinearGradient } from "./linearGradientState.mjs";
2
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
-
8
3
  function setup() {
9
4
  const g = globalThis;
10
5
  if (g.__tamagui_native_linear_gradient_setup) return;
11
6
  g.__tamagui_native_linear_gradient_setup = true;
12
7
  try {
13
- const expoLinearGradient = __require("expo-linear-gradient");
8
+ const expoLinearGradient = require("expo-linear-gradient");
14
9
  if (expoLinearGradient?.LinearGradient) {
15
10
  getLinearGradient().set({
16
11
  enabled: true,
@@ -1,10 +1,5 @@
1
1
  import { getLinearGradient } from "./linearGradientState.native.js";
2
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
-
8
3
  function setup() {
9
4
  var g = globalThis;
10
5
  if (g.__tamagui_native_linear_gradient_setup) return;
@@ -3,18 +3,13 @@ import { createExpoUIMenuView } from "./expoUIMenuView.mjs";
3
3
  import { registerNativeMenuAdapter } from "./nativeMenuState.mjs";
4
4
  import { Platform } from "react-native-web";
5
5
 
6
- 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) {
7
- if (typeof require !== "undefined") return require.apply(this, arguments);
8
- 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.");
9
- });
10
-
11
6
  function setup() {
12
7
  let MenuView;
13
8
  try {
14
9
  MenuView = Platform.OS === "ios" ? createExpoUIMenuView({
15
- swiftUI: __require("@expo/ui/swift-ui"),
16
- modifiers: __require("@expo/ui/swift-ui/modifiers")
17
- }) : __require("@expo/ui/community/menu").MenuView;
10
+ swiftUI: require("@expo/ui/swift-ui"),
11
+ modifiers: require("@expo/ui/swift-ui/modifiers")
12
+ }) : require("@expo/ui/community/menu").MenuView;
18
13
  } catch (error) {
19
14
  if (process.env.NODE_ENV === "development") {
20
15
  console.warn("Error setting up Expo UI native menus", error);
@@ -3,11 +3,6 @@ import { createExpoUIMenuView } from "./expoUIMenuView.native.js";
3
3
  import { registerNativeMenuAdapter } from "./nativeMenuState.native.js";
4
4
  import { Platform } from "react-native";
5
5
 
6
- 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) {
7
- if (typeof require !== "undefined") return require.apply(this, arguments);
8
- 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.");
9
- });
10
-
11
6
  function setup() {
12
7
  var MenuView;
13
8
  try {
@@ -1,10 +1,5 @@
1
1
  import { canChangeGestureHandlerEnabled, getGestureHandler } from "./gestureState.mjs";
2
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
-
8
3
  let currentConfig = {
9
4
  pressEvents: true,
10
5
  sheet: true
@@ -26,7 +21,7 @@ function setupGestureHandler(config) {
26
21
  const isFirstRun = !g.__tamagui_native_gesture_setup_complete;
27
22
  g.__tamagui_native_gesture_setup_complete = true;
28
23
  try {
29
- const rngh = __require("react-native-gesture-handler");
24
+ const rngh = require("react-native-gesture-handler");
30
25
  const { Gesture, GestureDetector, ScrollView, GestureHandlerRootView } = rngh;
31
26
  if (Gesture && GestureDetector) {
32
27
  getGestureHandler().set({
@@ -1,10 +1,5 @@
1
1
  import { canChangeGestureHandlerEnabled, getGestureHandler } from "./gestureState.native.js";
2
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
-
8
3
  var currentConfig = {
9
4
  pressEvents: true,
10
5
  sheet: true
@@ -1,10 +1,5 @@
1
1
  import { setKeyboardControllerState } from "./keyboardControllerState.native.js";
2
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
-
8
3
  function setup() {
9
4
  var g = globalThis;
10
5
  if (g.__tamagui_native_keyboard_controller_setup_complete) {
@@ -1,16 +1,11 @@
1
1
  import { getPortal } from "./portalState.mjs";
2
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
-
8
3
  function setup() {
9
4
  const g = globalThis;
10
5
  if (g.__tamagui_native_portal_setup) return;
11
6
  g.__tamagui_native_portal_setup = true;
12
7
  try {
13
- const teleport = __require("react-native-teleport");
8
+ const teleport = require("react-native-teleport");
14
9
  if (teleport?.Portal && teleport?.PortalHost && teleport?.PortalProvider) {
15
10
  g.__tamagui_teleport = teleport;
16
11
  getPortal().set({
@@ -1,10 +1,5 @@
1
1
  import { getPortal } from "./portalState.native.js";
2
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
-
8
3
  function setup() {
9
4
  var g = globalThis;
10
5
  if (g.__tamagui_native_portal_setup) return;
@@ -1,10 +1,5 @@
1
1
  import { getWorklets } from "./workletsState.mjs";
2
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
-
8
3
  function setup() {
9
4
  const g = globalThis;
10
5
  if (g.__tamagui_native_worklets_setup_complete) {
@@ -12,7 +7,7 @@ function setup() {
12
7
  }
13
8
  g.__tamagui_native_worklets_setup_complete = true;
14
9
  try {
15
- const worklets = __require("react-native-worklets-core");
10
+ const worklets = require("react-native-worklets-core");
16
11
  if (worklets) {
17
12
  getWorklets().set({
18
13
  enabled: true,
@@ -1,10 +1,5 @@
1
1
  import { getWorklets } from "./workletsState.native.js";
2
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
-
8
3
  function setup() {
9
4
  var g = globalThis;
10
5
  if (g.__tamagui_native_worklets_setup_complete) {
@@ -1,16 +1,11 @@
1
1
  import { registerNativeMenuAdapter } from "./nativeMenuState.mjs";
2
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
-
8
3
  function setup() {
9
4
  let Menu;
10
5
  let ContextMenu;
11
6
  try {
12
- Menu = __require("zeego/dropdown-menu");
13
- ContextMenu = __require("zeego/context-menu");
7
+ Menu = require("zeego/dropdown-menu");
8
+ ContextMenu = require("zeego/context-menu");
14
9
  } catch (err) {
15
10
  if (process.env.NODE_ENV === "development") {
16
11
  console.warn(`Error setting up Zeego`, err);
@@ -1,10 +1,5 @@
1
1
  import { registerNativeMenuAdapter } from "./nativeMenuState.native.js";
2
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
-
8
3
  function setup() {
9
4
  var Menu;
10
5
  var ContextMenu;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/native",
3
- "version": "3.0.0-beta.1216.1",
3
+ "version": "3.0.0-beta.1310.1",
4
4
  "license": "MIT",
5
5
  "description": "Native setup modules for Tamagui - portals, gesture handler, worklets, and more",
6
6
  "type": "module",
@@ -182,12 +182,12 @@
182
182
  "clean:build": "tamagui-build clean:build"
183
183
  },
184
184
  "dependencies": {
185
- "@tamagui/compose-refs": "3.0.0-beta.1216.1",
186
- "@tamagui/react-native-types": "3.0.0-beta.1216.1"
185
+ "@tamagui/compose-refs": "3.0.0-beta.1310.1",
186
+ "@tamagui/react-native-types": "3.0.0-beta.1310.1"
187
187
  },
188
188
  "devDependencies": {
189
189
  "@expo/ui": "~57.0.12",
190
- "@tamagui/build": "3.0.0-beta.1216.1",
190
+ "@tamagui/build": "3.0.0-beta.1310.1",
191
191
  "burnt": "^0.13.0",
192
192
  "expo-linear-gradient": "~57.0.1",
193
193
  "react": "19.2.3",