Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tamagui/portal

Package Overview
Dependencies
Maintainers
1
Versions
1120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tamagui/portal - npm Package Compare versions

Comparing version 1.117.1 to 1.117.2

dist/cjs/constants.cjs

1

dist/cjs/index.js

@@ -17,2 +17,3 @@ var __defProp = Object.defineProperty;

__reExport(src_exports, require("./GorhomPortal"), module.exports);
__reExport(src_exports, require("./constants"), module.exports);
//# sourceMappingURL=index.js.map

4

dist/cjs/index.native.js

@@ -18,2 +18,3 @@ "use strict";

__reExport(src_exports, require("./GorhomPortal"), module.exports);
__reExport(src_exports, require("./constants"), module.exports);
// Annotate the CommonJS export names for ESM import in node:

@@ -23,4 +24,5 @@ 0 && (module.exports = {

...require("./PortalProps"),
...require("./GorhomPortal")
...require("./GorhomPortal"),
...require("./constants")
});
//# sourceMappingURL=index.js.map

@@ -29,5 +29,5 @@ "use strict";

module.exports = __toCommonJS(Portal_native_exports);
var import_jsx_runtime = require("react/jsx-runtime"), import_stacks = require("@tamagui/stacks"), React = __toESM(require("react")), import_react_native = require("react-native"), import_GorhomPortal = require("./GorhomPortal"), import_useStackedZIndex = require("./useStackedZIndex"), _global, isFabric = (_global = global) === null || _global === void 0 ? void 0 : _global.nativeFabricUIManager, createPortal;
isFabric ? createPortal = require("react-native/Libraries/Renderer/shims/ReactFabric").createPortal : createPortal = require("react-native/Libraries/Renderer/shims/ReactNative").createPortal;
var Portal = function(propsIn) {
var import_jsx_runtime = require("react/jsx-runtime"), import_stacks = require("@tamagui/stacks"), React = __toESM(require("react")), import_react_native = require("react-native"), import_constants = require("./constants"), import_GorhomPortal = require("./GorhomPortal"), import_useStackedZIndex = require("./useStackedZIndex"), createPortal = function() {
return import_constants.IS_FABRIC ? require("react-native/Libraries/Renderer/shims/ReactFabric").createPortal : require("react-native/Libraries/Renderer/shims/ReactNative").createPortal;
}(), Portal = function(propsIn) {
var { stackZIndex, ...props } = propsIn, rootTag = React.useContext(import_react_native.RootTagContext), zIndex = (0, import_useStackedZIndex.useStackedZIndex)(propsIn), contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_stacks.YStack, {

@@ -41,3 +41,3 @@ pointerEvents: "box-none",

});
return process.env.TAMAGUI_USE_NATIVE_PORTAL === "false" || import_react_native.Platform.OS === "android" || !rootTag ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_GorhomPortal.PortalItem, {
return !import_constants.USE_NATIVE_PORTAL || !rootTag ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_GorhomPortal.PortalItem, {
hostName: "root",

@@ -44,0 +44,0 @@ children: contents

export * from "./Portal";
export * from "./PortalProps";
export * from "./GorhomPortal";
export * from "./constants";
//# sourceMappingURL=index.js.map
export * from "./Portal";
export * from "./PortalProps";
export * from "./GorhomPortal";
export * from "./constants";
//# sourceMappingURL=index.js.map
import { jsx as _jsx } from "react/jsx-runtime";
import { YStack } from "@tamagui/stacks";
import * as React from "react";
import { Platform, RootTagContext } from "react-native";
import { RootTagContext } from "react-native";
import { IS_FABRIC, USE_NATIVE_PORTAL } from "./constants";
import { PortalItem } from "./GorhomPortal";
import { useStackedZIndex } from "./useStackedZIndex";
var _global, isFabric = (_global = global) === null || _global === void 0 ? void 0 : _global.nativeFabricUIManager, createPortal;
isFabric ? createPortal = require("react-native/Libraries/Renderer/shims/ReactFabric").createPortal : createPortal = require("react-native/Libraries/Renderer/shims/ReactNative").createPortal;
var Portal = function(propsIn) {
var createPortal = function() {
return IS_FABRIC ? require("react-native/Libraries/Renderer/shims/ReactFabric").createPortal : require("react-native/Libraries/Renderer/shims/ReactNative").createPortal;
}(), Portal = function(propsIn) {
var { stackZIndex, ...props } = propsIn, rootTag = React.useContext(RootTagContext), zIndex = useStackedZIndex(propsIn), contents = /* @__PURE__ */ _jsx(YStack, {

@@ -18,3 +19,3 @@ pointerEvents: "box-none",

});
return process.env.TAMAGUI_USE_NATIVE_PORTAL === "false" || Platform.OS === "android" || !rootTag ? /* @__PURE__ */ _jsx(PortalItem, {
return !USE_NATIVE_PORTAL || !rootTag ? /* @__PURE__ */ _jsx(PortalItem, {
hostName: "root",

@@ -21,0 +22,0 @@ children: contents

{
"name": "@tamagui/portal",
"version": "1.117.1",
"version": "1.117.2",
"source": "src/index.ts",

@@ -35,11 +35,11 @@ "types": "./types/index.d.ts",

"dependencies": {
"@tamagui/constants": "1.117.1",
"@tamagui/core": "1.117.1",
"@tamagui/stacks": "1.117.1",
"@tamagui/start-transition": "1.117.1",
"@tamagui/use-did-finish-ssr": "1.117.1",
"@tamagui/use-event": "1.117.1"
"@tamagui/constants": "1.117.2",
"@tamagui/core": "1.117.2",
"@tamagui/stacks": "1.117.2",
"@tamagui/start-transition": "1.117.2",
"@tamagui/use-did-finish-ssr": "1.117.2",
"@tamagui/use-event": "1.117.2"
},
"devDependencies": {
"@tamagui/build": "1.117.1",
"@tamagui/build": "1.117.2",
"react-native": "0.74.1"

@@ -46,0 +46,0 @@ },

export * from './Portal'
export * from './PortalProps'
export * from './GorhomPortal'
export * from './constants'
export * from './Portal';
export * from './PortalProps';
export * from './GorhomPortal';
export * from './constants';
//# sourceMappingURL=index.d.ts.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc