@tamagui/constants
Advanced tools
Comparing version 1.107.0 to 1.108.0-1722728147390
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
@@ -15,3 +16,10 @@ for (var name in all) | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target, | ||
mod | ||
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); | ||
var constants_android_exports = {}; | ||
@@ -32,3 +40,3 @@ __export(constants_android_exports, { | ||
module.exports = __toCommonJS(constants_android_exports); | ||
var import_react = require("react"), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !0, isIos = !1, currentPlatform = "android"; | ||
var import_react = __toESM(require("react")), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.default.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !0, isIos = !1, currentPlatform = "android"; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -35,0 +43,0 @@ 0 && (module.exports = { |
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
@@ -15,3 +16,10 @@ for (var name in all) | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target, | ||
mod | ||
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); | ||
var constants_ios_exports = {}; | ||
@@ -32,3 +40,3 @@ __export(constants_ios_exports, { | ||
module.exports = __toCommonJS(constants_ios_exports); | ||
var import_react = require("react"), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !0, currentPlatform = "ios"; | ||
var import_react = __toESM(require("react")), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.default.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !0, currentPlatform = "ios"; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -35,0 +43,0 @@ 0 && (module.exports = { |
@@ -0,5 +1,6 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
@@ -14,3 +15,10 @@ for (var name in all) | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target, | ||
mod | ||
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); | ||
var constants_exports = {}; | ||
@@ -31,4 +39,4 @@ __export(constants_exports, { | ||
module.exports = __toCommonJS(constants_exports); | ||
var import_react = require("react"); | ||
const isWeb = !0, isWindowDefined = typeof window < "u", isServer = isWeb && !isWindowDefined, isClient = isWeb && isWindowDefined, useIsomorphicLayoutEffect = isServer ? import_react.useEffect : import_react.useLayoutEffect, isChrome = typeof navigator < "u" && /Chrome/.test(navigator.userAgent || ""), isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0), isTouchable = !isWeb || isWebTouchable, isAndroid = !1, isIos = !1, currentPlatform = "web"; | ||
var import_react = __toESM(require("react")); | ||
const isWeb = !0, isWindowDefined = typeof window < "u", isServer = isWeb && !isWindowDefined, isClient = isWeb && isWindowDefined, useIsomorphicLayoutEffect = isServer ? import_react.default.useEffect : import_react.default.useLayoutEffect, isChrome = typeof navigator < "u" && /Chrome/.test(navigator.userAgent || ""), isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0), isTouchable = !isWeb || isWebTouchable, isAndroid = !1, isIos = !1, currentPlatform = "web"; | ||
//# sourceMappingURL=constants.js.map |
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
@@ -15,3 +16,10 @@ for (var name in all) | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target, | ||
mod | ||
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); | ||
var constants_native_exports = {}; | ||
@@ -32,3 +40,3 @@ __export(constants_native_exports, { | ||
module.exports = __toCommonJS(constants_native_exports); | ||
var import_react = require("react"), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !1, currentPlatform = "native"; | ||
var import_react = __toESM(require("react")), isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.default.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !1, currentPlatform = "native"; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -35,0 +43,0 @@ 0 && (module.exports = { |
@@ -1,3 +0,3 @@ | ||
import { useLayoutEffect } from "react"; | ||
var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !0, isIos = !1, currentPlatform = "android"; | ||
import React from "react"; | ||
var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = React.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !0, isIos = !1, currentPlatform = "android"; | ||
export { | ||
@@ -4,0 +4,0 @@ currentPlatform, |
@@ -1,3 +0,3 @@ | ||
import { useLayoutEffect } from "react"; | ||
var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !0, currentPlatform = "ios"; | ||
import React from "react"; | ||
var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = React.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !0, currentPlatform = "ios"; | ||
export { | ||
@@ -4,0 +4,0 @@ currentPlatform, |
@@ -1,3 +0,3 @@ | ||
import { useEffect, useLayoutEffect } from "react"; | ||
const isWeb = !0, isWindowDefined = typeof window < "u", isServer = isWeb && !isWindowDefined, isClient = isWeb && isWindowDefined, useIsomorphicLayoutEffect = isServer ? useEffect : useLayoutEffect, isChrome = typeof navigator < "u" && /Chrome/.test(navigator.userAgent || ""), isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0), isTouchable = !isWeb || isWebTouchable, isAndroid = !1, isIos = !1, currentPlatform = "web"; | ||
import React from "react"; | ||
const isWeb = !0, isWindowDefined = typeof window < "u", isServer = isWeb && !isWindowDefined, isClient = isWeb && isWindowDefined, useIsomorphicLayoutEffect = isServer ? React.useEffect : React.useLayoutEffect, isChrome = typeof navigator < "u" && /Chrome/.test(navigator.userAgent || ""), isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0), isTouchable = !isWeb || isWebTouchable, isAndroid = !1, isIos = !1, currentPlatform = "web"; | ||
export { | ||
@@ -4,0 +4,0 @@ currentPlatform, |
@@ -1,3 +0,3 @@ | ||
import { useLayoutEffect } from "react"; | ||
var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !1, currentPlatform = "native"; | ||
import React from "react"; | ||
var isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = React.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !1, currentPlatform = "native"; | ||
export { | ||
@@ -4,0 +4,0 @@ currentPlatform, |
{ | ||
"name": "@tamagui/constants", | ||
"version": "1.107.0", | ||
"version": "1.108.0-1722728147390", | ||
"types": "./types/index.d.ts", | ||
@@ -21,3 +21,3 @@ "main": "dist/cjs", | ||
"devDependencies": { | ||
"@tamagui/build": "1.107.0", | ||
"@tamagui/build": "1.108.0-1722728147390", | ||
"react": "^18.2.0 || ^19.0.0" | ||
@@ -24,0 +24,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
import { useLayoutEffect } from 'react' | ||
import React from 'react' | ||
@@ -7,3 +7,3 @@ export const isWeb: boolean = false | ||
export const isClient: boolean = false | ||
export const useIsomorphicLayoutEffect = useLayoutEffect | ||
export const useIsomorphicLayoutEffect = React.useLayoutEffect | ||
export const isChrome: boolean = false | ||
@@ -10,0 +10,0 @@ export const isWebTouchable: boolean = false |
@@ -1,2 +0,2 @@ | ||
import { useLayoutEffect } from 'react' | ||
import React from 'react' | ||
@@ -7,3 +7,3 @@ export const isWeb: boolean = false | ||
export const isClient: boolean = false | ||
export const useIsomorphicLayoutEffect = useLayoutEffect | ||
export const useIsomorphicLayoutEffect = React.useLayoutEffect | ||
export const isChrome: boolean = false | ||
@@ -10,0 +10,0 @@ export const isWebTouchable: boolean = false |
@@ -1,2 +0,2 @@ | ||
import { useLayoutEffect } from 'react' | ||
import React from 'react' | ||
@@ -7,3 +7,3 @@ export const isWeb: boolean = false | ||
export const isClient: boolean = false | ||
export const useIsomorphicLayoutEffect = useLayoutEffect | ||
export const useIsomorphicLayoutEffect = React.useLayoutEffect | ||
export const isChrome: boolean = false | ||
@@ -10,0 +10,0 @@ export const isWebTouchable: boolean = false |
@@ -1,2 +0,2 @@ | ||
import { useEffect, useLayoutEffect } from 'react' | ||
import React from 'react' | ||
@@ -8,3 +8,5 @@ export const isWeb: boolean = true | ||
export const useIsomorphicLayoutEffect = isServer ? useEffect : useLayoutEffect | ||
export const useIsomorphicLayoutEffect = isServer | ||
? React.useEffect | ||
: React.useLayoutEffect | ||
export const isChrome = | ||
@@ -11,0 +13,0 @@ typeof navigator !== 'undefined' && /Chrome/.test(navigator.userAgent || '') |
@@ -1,2 +0,2 @@ | ||
import { useLayoutEffect } from 'react'; | ||
import React from 'react'; | ||
export declare const isWeb: boolean; | ||
@@ -6,3 +6,3 @@ export declare const isWindowDefined: boolean; | ||
export declare const isClient: boolean; | ||
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect; | ||
export declare const useIsomorphicLayoutEffect: typeof React.useLayoutEffect; | ||
export declare const isChrome: boolean; | ||
@@ -9,0 +9,0 @@ export declare const isWebTouchable: boolean; |
@@ -1,2 +0,2 @@ | ||
import { useLayoutEffect } from 'react'; | ||
import React from 'react'; | ||
export declare const isWeb: boolean; | ||
@@ -6,3 +6,3 @@ export declare const isWindowDefined: boolean; | ||
export declare const isClient: boolean; | ||
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect; | ||
export declare const useIsomorphicLayoutEffect: typeof React.useLayoutEffect; | ||
export declare const isChrome: boolean; | ||
@@ -9,0 +9,0 @@ export declare const isWebTouchable: boolean; |
@@ -1,2 +0,2 @@ | ||
import { useLayoutEffect } from 'react'; | ||
import React from 'react'; | ||
export declare const isWeb: boolean; | ||
@@ -6,3 +6,3 @@ export declare const isWindowDefined: boolean; | ||
export declare const isClient: boolean; | ||
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect; | ||
export declare const useIsomorphicLayoutEffect: typeof React.useLayoutEffect; | ||
export declare const isChrome: boolean; | ||
@@ -9,0 +9,0 @@ export declare const isWebTouchable: boolean; |
@@ -1,2 +0,2 @@ | ||
import { useLayoutEffect } from 'react'; | ||
import React from 'react'; | ||
export declare const isWeb: boolean; | ||
@@ -6,3 +6,3 @@ export declare const isWindowDefined: boolean; | ||
export declare const isClient: boolean; | ||
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect; | ||
export declare const useIsomorphicLayoutEffect: typeof React.useLayoutEffect; | ||
export declare const isChrome: boolean; | ||
@@ -9,0 +9,0 @@ export declare const isWebTouchable: boolean; |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29666
426
2