@tamagui/constants 1.61.2 → 1.62.0
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/index.android.js +6 -19
- package/dist/cjs/index.android.js.map +1 -1
- package/dist/cjs/index.ios.js +6 -19
- package/dist/cjs/index.ios.js.map +1 -1
- package/dist/cjs/index.js +6 -33
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +6 -19
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/index.js +1 -24
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -22
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/dist/esm/index.android.js +0 -26
- package/dist/esm/index.android.js.map +0 -6
- package/dist/esm/index.ios.js +0 -26
- package/dist/esm/index.ios.js.map +0 -6
- package/dist/esm/index.native.js +0 -26
- package/dist/esm/index.native.js.map +0 -6
|
@@ -5,17 +5,14 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
6
|
var __export = (target, all) => {
|
|
7
7
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
11
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
13
|
return to;
|
|
17
14
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
16
|
var index_android_exports = {};
|
|
20
17
|
__export(index_android_exports, {
|
|
21
18
|
currentPlatform: () => currentPlatform,
|
|
@@ -32,17 +29,7 @@ __export(index_android_exports, {
|
|
|
32
29
|
});
|
|
33
30
|
module.exports = __toCommonJS(index_android_exports);
|
|
34
31
|
var import_react = require("react");
|
|
35
|
-
const isWeb =
|
|
36
|
-
const isWindowDefined = false;
|
|
37
|
-
const isServer = false;
|
|
38
|
-
const isClient = false;
|
|
39
|
-
const useIsomorphicLayoutEffect = import_react.useLayoutEffect;
|
|
40
|
-
const isChrome = false;
|
|
41
|
-
const isWebTouchable = false;
|
|
42
|
-
const isTouchable = true;
|
|
43
|
-
const isAndroid = true;
|
|
44
|
-
const isIos = false;
|
|
45
|
-
const currentPlatform = "android";
|
|
32
|
+
const isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !0, isIos = !1, currentPlatform = "android";
|
|
46
33
|
// Annotate the CommonJS export names for ESM import in node:
|
|
47
34
|
0 && (module.exports = {
|
|
48
35
|
currentPlatform,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.android.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAgC;AAEzB,MAAM,QAAQ,IACR,kBAAkB,IAClB,WAAW,IACX,WAAW,IACX,4BAA4B,8BAC5B,WAAW,IACX,iBAAiB,IACjB,cAAc,IACd,YAAY,IACZ,QAAQ,IACR,kBAAkB;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/cjs/index.ios.js
CHANGED
|
@@ -5,17 +5,14 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
6
|
var __export = (target, all) => {
|
|
7
7
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
11
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
13
|
return to;
|
|
17
14
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
16
|
var index_ios_exports = {};
|
|
20
17
|
__export(index_ios_exports, {
|
|
21
18
|
currentPlatform: () => currentPlatform,
|
|
@@ -32,17 +29,7 @@ __export(index_ios_exports, {
|
|
|
32
29
|
});
|
|
33
30
|
module.exports = __toCommonJS(index_ios_exports);
|
|
34
31
|
var import_react = require("react");
|
|
35
|
-
const isWeb =
|
|
36
|
-
const isWindowDefined = false;
|
|
37
|
-
const isServer = false;
|
|
38
|
-
const isClient = false;
|
|
39
|
-
const useIsomorphicLayoutEffect = import_react.useLayoutEffect;
|
|
40
|
-
const isChrome = false;
|
|
41
|
-
const isWebTouchable = false;
|
|
42
|
-
const isTouchable = true;
|
|
43
|
-
const isAndroid = false;
|
|
44
|
-
const isIos = true;
|
|
45
|
-
const currentPlatform = "ios";
|
|
32
|
+
const isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !0, currentPlatform = "ios";
|
|
46
33
|
// Annotate the CommonJS export names for ESM import in node:
|
|
47
34
|
0 && (module.exports = {
|
|
48
35
|
currentPlatform,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ios.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAgC;AAEzB,MAAM,QAAQ,IACR,kBAAkB,IAClB,WAAW,IACX,WAAW,IACX,4BAA4B,8BAC5B,WAAW,IACX,iBAAiB,IACjB,cAAc,IACd,YAAY,IACZ,QAAQ,IACR,kBAAkB;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var src_exports = {};
|
|
20
16
|
__export(src_exports, {
|
|
21
17
|
currentPlatform: () => currentPlatform,
|
|
@@ -32,30 +28,7 @@ __export(src_exports, {
|
|
|
32
28
|
});
|
|
33
29
|
module.exports = __toCommonJS(src_exports);
|
|
34
30
|
var import_react = require("react");
|
|
35
|
-
const isWeb =
|
|
36
|
-
const isWindowDefined = typeof window !== "undefined";
|
|
37
|
-
const isServer = isWeb && !isWindowDefined;
|
|
38
|
-
const isClient = isWeb && isWindowDefined;
|
|
39
|
-
const useIsomorphicLayoutEffect = isServer ? import_react.useEffect : import_react.useLayoutEffect;
|
|
40
|
-
const isChrome = typeof navigator !== "undefined" && /Chrome/.test(navigator.userAgent || "");
|
|
41
|
-
const isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0);
|
|
42
|
-
const isTouchable = !isWeb || isWebTouchable;
|
|
43
|
-
const isAndroid = false;
|
|
44
|
-
const isIos = false;
|
|
45
|
-
const currentPlatform = "web";
|
|
46
|
-
if (!process.env.TAMAGUI_TARGET) {
|
|
47
|
-
console.warn(`\u26A0\uFE0F Must set TAMAGUI_TARGET (set TAMAGUI_SHOW_TRACE=1 to see trace)`);
|
|
48
|
-
if (process.env.TAMAGUI_SHOW_TRACE) {
|
|
49
|
-
console.trace();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
if (process.env.NODE_ENV === "development") {
|
|
53
|
-
if (isClient && process.env.TAMAGUI_TARGET !== "web" && process.env.TAMAGUI_IGNORE_TARGET !== "1") {
|
|
54
|
-
console.warn(
|
|
55
|
-
`Must set TAMAGUI_TARGET to "web" for web apps - if you have window defined outside of the browser, set TAMAGUI_IGNORE_TARGET=1 to hide this`
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
31
|
+
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";
|
|
59
32
|
// Annotate the CommonJS export names for ESM import in node:
|
|
60
33
|
0 && (module.exports = {
|
|
61
34
|
currentPlatform,
|
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": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2C;AAEpC,MAAM,QAAQ,IACR,kBAAkB,OAAO,SAAW,KACpC,WAAW,SAAS,CAAC,iBACrB,WAAW,SAAS,iBAEpB,4BAA4B,WAAW,yBAAY,8BACnD,WACX,OAAO,YAAc,OAAe,SAAS,KAAK,UAAU,aAAa,EAAE,GAEhE,iBACX,aAAa,kBAAkB,UAAU,UAAU,iBAAiB,IAEzD,cAAc,CAAC,SAAS,gBAExB,YAAqB,IACrB,QAAiB,IACjB,kBAAkB;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -5,17 +5,14 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
6
|
var __export = (target, all) => {
|
|
7
7
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
11
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
12
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
13
|
return to;
|
|
17
14
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
16
|
var index_native_exports = {};
|
|
20
17
|
__export(index_native_exports, {
|
|
21
18
|
currentPlatform: () => currentPlatform,
|
|
@@ -32,17 +29,7 @@ __export(index_native_exports, {
|
|
|
32
29
|
});
|
|
33
30
|
module.exports = __toCommonJS(index_native_exports);
|
|
34
31
|
var import_react = require("react");
|
|
35
|
-
const isWeb =
|
|
36
|
-
const isWindowDefined = false;
|
|
37
|
-
const isServer = false;
|
|
38
|
-
const isClient = false;
|
|
39
|
-
const useIsomorphicLayoutEffect = import_react.useLayoutEffect;
|
|
40
|
-
const isChrome = false;
|
|
41
|
-
const isWebTouchable = false;
|
|
42
|
-
const isTouchable = true;
|
|
43
|
-
const isAndroid = false;
|
|
44
|
-
const isIos = false;
|
|
45
|
-
const currentPlatform = "native";
|
|
32
|
+
const isWeb = !1, isWindowDefined = !1, isServer = !1, isClient = !1, useIsomorphicLayoutEffect = import_react.useLayoutEffect, isChrome = !1, isWebTouchable = !1, isTouchable = !0, isAndroid = !1, isIos = !1, currentPlatform = "native";
|
|
46
33
|
// Annotate the CommonJS export names for ESM import in node:
|
|
47
34
|
0 && (module.exports = {
|
|
48
35
|
currentPlatform,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.native.ts"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAgC;AAEzB,MAAM,QAAQ,IACR,kBAAkB,IAClB,WAAW,IACX,WAAW,IACX,4BAA4B,8BAC5B,WAAW,IACX,iBAAiB,IACjB,cAAc,IACd,YAAY,IACZ,QAAQ,IACR,kBAAkB;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,28 +1,5 @@
|
|
|
1
1
|
import { useEffect, useLayoutEffect } from "react";
|
|
2
|
-
const isWeb =
|
|
3
|
-
const isWindowDefined = typeof window !== "undefined";
|
|
4
|
-
const isServer = isWeb && !isWindowDefined;
|
|
5
|
-
const isClient = isWeb && isWindowDefined;
|
|
6
|
-
const useIsomorphicLayoutEffect = isServer ? useEffect : useLayoutEffect;
|
|
7
|
-
const isChrome = typeof navigator !== "undefined" && /Chrome/.test(navigator.userAgent || "");
|
|
8
|
-
const isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0);
|
|
9
|
-
const isTouchable = !isWeb || isWebTouchable;
|
|
10
|
-
const isAndroid = false;
|
|
11
|
-
const isIos = false;
|
|
12
|
-
const currentPlatform = "web";
|
|
13
|
-
if (!process.env.TAMAGUI_TARGET) {
|
|
14
|
-
console.warn(`\u26A0\uFE0F Must set TAMAGUI_TARGET (set TAMAGUI_SHOW_TRACE=1 to see trace)`);
|
|
15
|
-
if (process.env.TAMAGUI_SHOW_TRACE) {
|
|
16
|
-
console.trace();
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
if (process.env.NODE_ENV === "development") {
|
|
20
|
-
if (isClient && process.env.TAMAGUI_TARGET !== "web" && process.env.TAMAGUI_IGNORE_TARGET !== "1") {
|
|
21
|
-
console.warn(
|
|
22
|
-
`Must set TAMAGUI_TARGET to "web" for web apps - if you have window defined outside of the browser, set TAMAGUI_IGNORE_TARGET=1 to hide this`
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
2
|
+
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";
|
|
26
3
|
export {
|
|
27
4
|
currentPlatform,
|
|
28
5
|
isAndroid,
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAS,WAAW,uBAAuB;AAEpC,MAAM,QAAQ,
|
|
4
|
+
"mappings": "AAAA,SAAS,WAAW,uBAAuB;AAEpC,MAAM,QAAQ,IACR,kBAAkB,OAAO,SAAW,KACpC,WAAW,SAAS,CAAC,iBACrB,WAAW,SAAS,iBAEpB,4BAA4B,WAAW,YAAY,iBACnD,WACX,OAAO,YAAc,OAAe,SAAS,KAAK,UAAU,aAAa,EAAE,GAEhE,iBACX,aAAa,kBAAkB,UAAU,UAAU,iBAAiB,IAEzD,cAAc,CAAC,SAAS,gBAExB,YAAqB,IACrB,QAAiB,IACjB,kBAAkB;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/constants",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.62.0",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"clean:build": "tamagui-build clean:build"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@tamagui/build": "1.
|
|
21
|
+
"@tamagui/build": "1.62.0",
|
|
22
22
|
"react": "^18.2.0"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useLayoutEffect } from 'react'
|
|
2
2
|
|
|
3
|
-
export const isWeb =
|
|
3
|
+
export const isWeb = true
|
|
4
4
|
export const isWindowDefined = typeof window !== 'undefined'
|
|
5
5
|
export const isServer = isWeb && !isWindowDefined
|
|
6
6
|
export const isClient = isWeb && isWindowDefined
|
|
@@ -17,24 +17,3 @@ export const isTouchable = !isWeb || isWebTouchable
|
|
|
17
17
|
export const isAndroid: boolean = false
|
|
18
18
|
export const isIos: boolean = false
|
|
19
19
|
export const currentPlatform = 'web'
|
|
20
|
-
|
|
21
|
-
// --- development warnings ---
|
|
22
|
-
|
|
23
|
-
if (!process.env.TAMAGUI_TARGET) {
|
|
24
|
-
console.warn(`⚠️ Must set TAMAGUI_TARGET (set TAMAGUI_SHOW_TRACE=1 to see trace)`)
|
|
25
|
-
if (process.env.TAMAGUI_SHOW_TRACE) {
|
|
26
|
-
console.trace()
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
if (process.env.NODE_ENV === 'development') {
|
|
31
|
-
if (
|
|
32
|
-
isClient &&
|
|
33
|
-
process.env.TAMAGUI_TARGET !== 'web' &&
|
|
34
|
-
process.env.TAMAGUI_IGNORE_TARGET !== '1'
|
|
35
|
-
) {
|
|
36
|
-
console.warn(
|
|
37
|
-
`Must set TAMAGUI_TARGET to "web" for web apps - if you have window defined outside of the browser, set TAMAGUI_IGNORE_TARGET=1 to hide this`
|
|
38
|
-
)
|
|
39
|
-
}
|
|
40
|
-
}
|
package/types/index.d.ts
CHANGED
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAE,MAAM,OAAO,CAAA;AAElD,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAE,MAAM,OAAO,CAAA;AAElD,eAAO,MAAM,KAAK,OAAO,CAAA;AACzB,eAAO,MAAM,eAAe,SAAgC,CAAA;AAC5D,eAAO,MAAM,QAAQ,SAA4B,CAAA;AACjD,eAAO,MAAM,QAAQ,SAA2B,CAAA;AAEhD,eAAO,MAAM,yBAAyB,wBAAyC,CAAA;AAC/E,eAAO,MAAM,QAAQ,SACyD,CAAA;AAE9E,eAAO,MAAM,cAAc,SAC6C,CAAA;AAExE,eAAO,MAAM,WAAW,SAA2B,CAAA;AAEnD,eAAO,MAAM,SAAS,EAAE,OAAe,CAAA;AACvC,eAAO,MAAM,KAAK,EAAE,OAAe,CAAA;AACnC,eAAO,MAAM,eAAe,QAAQ,CAAA"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { useLayoutEffect } from "react";
|
|
2
|
-
const isWeb = false;
|
|
3
|
-
const isWindowDefined = false;
|
|
4
|
-
const isServer = false;
|
|
5
|
-
const isClient = false;
|
|
6
|
-
const useIsomorphicLayoutEffect = useLayoutEffect;
|
|
7
|
-
const isChrome = false;
|
|
8
|
-
const isWebTouchable = false;
|
|
9
|
-
const isTouchable = true;
|
|
10
|
-
const isAndroid = true;
|
|
11
|
-
const isIos = false;
|
|
12
|
-
const currentPlatform = "android";
|
|
13
|
-
export {
|
|
14
|
-
currentPlatform,
|
|
15
|
-
isAndroid,
|
|
16
|
-
isChrome,
|
|
17
|
-
isClient,
|
|
18
|
-
isIos,
|
|
19
|
-
isServer,
|
|
20
|
-
isTouchable,
|
|
21
|
-
isWeb,
|
|
22
|
-
isWebTouchable,
|
|
23
|
-
isWindowDefined,
|
|
24
|
-
useIsomorphicLayoutEffect
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=index.android.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.android.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAS,uBAAuB;AAEzB,MAAM,QAAQ;AACd,MAAM,kBAAkB;AACxB,MAAM,WAAW;AACjB,MAAM,WAAW;AACjB,MAAM,4BAA4B;AAClC,MAAM,WAAW;AACjB,MAAM,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,QAAQ;AACd,MAAM,kBAAkB;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/esm/index.ios.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { useLayoutEffect } from "react";
|
|
2
|
-
const isWeb = false;
|
|
3
|
-
const isWindowDefined = false;
|
|
4
|
-
const isServer = false;
|
|
5
|
-
const isClient = false;
|
|
6
|
-
const useIsomorphicLayoutEffect = useLayoutEffect;
|
|
7
|
-
const isChrome = false;
|
|
8
|
-
const isWebTouchable = false;
|
|
9
|
-
const isTouchable = true;
|
|
10
|
-
const isAndroid = false;
|
|
11
|
-
const isIos = true;
|
|
12
|
-
const currentPlatform = "ios";
|
|
13
|
-
export {
|
|
14
|
-
currentPlatform,
|
|
15
|
-
isAndroid,
|
|
16
|
-
isChrome,
|
|
17
|
-
isClient,
|
|
18
|
-
isIos,
|
|
19
|
-
isServer,
|
|
20
|
-
isTouchable,
|
|
21
|
-
isWeb,
|
|
22
|
-
isWebTouchable,
|
|
23
|
-
isWindowDefined,
|
|
24
|
-
useIsomorphicLayoutEffect
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=index.ios.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.ios.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAS,uBAAuB;AAEzB,MAAM,QAAQ;AACd,MAAM,kBAAkB;AACxB,MAAM,WAAW;AACjB,MAAM,WAAW;AACjB,MAAM,4BAA4B;AAClC,MAAM,WAAW;AACjB,MAAM,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,QAAQ;AACd,MAAM,kBAAkB;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/esm/index.native.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { useLayoutEffect } from "react";
|
|
2
|
-
const isWeb = false;
|
|
3
|
-
const isWindowDefined = false;
|
|
4
|
-
const isServer = false;
|
|
5
|
-
const isClient = false;
|
|
6
|
-
const useIsomorphicLayoutEffect = useLayoutEffect;
|
|
7
|
-
const isChrome = false;
|
|
8
|
-
const isWebTouchable = false;
|
|
9
|
-
const isTouchable = true;
|
|
10
|
-
const isAndroid = false;
|
|
11
|
-
const isIos = false;
|
|
12
|
-
const currentPlatform = "native";
|
|
13
|
-
export {
|
|
14
|
-
currentPlatform,
|
|
15
|
-
isAndroid,
|
|
16
|
-
isChrome,
|
|
17
|
-
isClient,
|
|
18
|
-
isIos,
|
|
19
|
-
isServer,
|
|
20
|
-
isTouchable,
|
|
21
|
-
isWeb,
|
|
22
|
-
isWebTouchable,
|
|
23
|
-
isWindowDefined,
|
|
24
|
-
useIsomorphicLayoutEffect
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=index.native.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.native.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAS,uBAAuB;AAEzB,MAAM,QAAQ;AACd,MAAM,kBAAkB;AACxB,MAAM,WAAW;AACjB,MAAM,WAAW;AACjB,MAAM,4BAA4B;AAClC,MAAM,WAAW;AACjB,MAAM,iBAAiB;AACvB,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,QAAQ;AACd,MAAM,kBAAkB;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|