@tamagui/constants 1.126.16 → 1.126.18
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/constants.cjs +5 -2
- package/dist/cjs/constants.js +3 -2
- package/dist/cjs/constants.js.map +2 -2
- package/dist/esm/constants.js +3 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/constants.mjs +4 -2
- package/dist/esm/constants.mjs.map +1 -1
- package/package.json +2 -2
- package/src/constants.ts +4 -0
- package/types/constants.d.ts +1 -0
- package/types/constants.d.ts.map +3 -2
package/dist/cjs/constants.cjs
CHANGED
|
@@ -20,6 +20,7 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
|
20
20
|
}), mod);
|
|
21
21
|
var constants_exports = {};
|
|
22
22
|
__export(constants_exports, {
|
|
23
|
+
IS_REACT_19: () => IS_REACT_19,
|
|
23
24
|
currentPlatform: () => currentPlatform,
|
|
24
25
|
isAndroid: () => isAndroid,
|
|
25
26
|
isChrome: () => isChrome,
|
|
@@ -33,8 +34,10 @@ __export(constants_exports, {
|
|
|
33
34
|
useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
|
|
34
35
|
});
|
|
35
36
|
module.exports = __toCommonJS(constants_exports);
|
|
36
|
-
var import_react = require("react")
|
|
37
|
-
|
|
37
|
+
var import_react = require("react"),
|
|
38
|
+
import_react2 = require("react");
|
|
39
|
+
const IS_REACT_19 = !!import_react2.use,
|
|
40
|
+
isWeb = !0,
|
|
38
41
|
isWindowDefined = typeof window < "u",
|
|
39
42
|
isServer = isWeb && !isWindowDefined,
|
|
40
43
|
isClient = isWeb && isWindowDefined,
|
package/dist/cjs/constants.js
CHANGED
|
@@ -14,6 +14,7 @@ var __export = (target, all) => {
|
|
|
14
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
15
|
var constants_exports = {};
|
|
16
16
|
__export(constants_exports, {
|
|
17
|
+
IS_REACT_19: () => IS_REACT_19,
|
|
17
18
|
currentPlatform: () => currentPlatform,
|
|
18
19
|
isAndroid: () => isAndroid,
|
|
19
20
|
isChrome: () => isChrome,
|
|
@@ -27,6 +28,6 @@ __export(constants_exports, {
|
|
|
27
28
|
useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
|
|
28
29
|
});
|
|
29
30
|
module.exports = __toCommonJS(constants_exports);
|
|
30
|
-
var import_react = require("react");
|
|
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 = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "web";
|
|
31
|
+
var import_react = require("react"), import_react2 = require("react");
|
|
32
|
+
const IS_REACT_19 = !!import_react2.use, 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 = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "web";
|
|
32
33
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2C;
|
|
5
|
-
"names": []
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2C,kBAE3CA,gBAAoB;AAEb,MAAM,cAAuB,CAAC,CAAC,mBAEzB,QAAiB,IACjB,kBAA2B,OAAO,SAAW,KAC7C,WAAoB,SAAS,CAAC,iBAC9B,WAAoB,SAAS,iBAE7B,4BAA8C,WACvD,yBACA,8BAES,WACX,OAAO,YAAc,OAAe,SAAS,KAAK,UAAU,aAAa,EAAE,GAEhE,iBACX,aAAa,kBAAkB,UAAU,UAAU,iBAAiB,IAEzD,cAAuB,CAAC,SAAS,gBAEjC,YAAqB,IACrB,QAAiB,QAAQ,IAAI,yBAAyB,OACtD,kBAAwD;",
|
|
5
|
+
"names": ["import_react"]
|
|
6
6
|
}
|
package/dist/esm/constants.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { useEffect, useLayoutEffect } from "react";
|
|
2
|
-
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
const IS_REACT_19 = !!use, 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 = process.env.TEST_NATIVE_PLATFORM === "ios", currentPlatform = "web";
|
|
3
4
|
export {
|
|
5
|
+
IS_REACT_19,
|
|
4
6
|
currentPlatform,
|
|
5
7
|
isAndroid,
|
|
6
8
|
isChrome,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAS,WAAW,uBAAuB;
|
|
4
|
+
"mappings": "AAAA,SAAS,WAAW,uBAAuB;AAE3C,SAAS,WAAW;AAEb,MAAM,cAAuB,CAAC,CAAC,KAEzB,QAAiB,IACjB,kBAA2B,OAAO,SAAW,KAC7C,WAAoB,SAAS,CAAC,iBAC9B,WAAoB,SAAS,iBAE7B,4BAA8C,WACvD,YACA,iBAES,WACX,OAAO,YAAc,OAAe,SAAS,KAAK,UAAU,aAAa,EAAE,GAEhE,iBACX,aAAa,kBAAkB,UAAU,UAAU,iBAAiB,IAEzD,cAAuB,CAAC,SAAS,gBAEjC,YAAqB,IACrB,QAAiB,QAAQ,IAAI,yBAAyB,OACtD,kBAAwD;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/constants.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { useEffect, useLayoutEffect } from "react";
|
|
2
|
-
|
|
2
|
+
import { use } from "react";
|
|
3
|
+
const IS_REACT_19 = !!use,
|
|
4
|
+
isWeb = !0,
|
|
3
5
|
isWindowDefined = typeof window < "u",
|
|
4
6
|
isServer = isWeb && !isWindowDefined,
|
|
5
7
|
isClient = isWeb && isWindowDefined,
|
|
@@ -10,5 +12,5 @@ const isWeb = !0,
|
|
|
10
12
|
isAndroid = !1,
|
|
11
13
|
isIos = process.env.TEST_NATIVE_PLATFORM === "ios",
|
|
12
14
|
currentPlatform = "web";
|
|
13
|
-
export { currentPlatform, isAndroid, isChrome, isClient, isIos, isServer, isTouchable, isWeb, isWebTouchable, isWindowDefined, useIsomorphicLayoutEffect };
|
|
15
|
+
export { IS_REACT_19, currentPlatform, isAndroid, isChrome, isClient, isIos, isServer, isTouchable, isWeb, isWebTouchable, isWindowDefined, useIsomorphicLayoutEffect };
|
|
14
16
|
//# sourceMappingURL=constants.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useLayoutEffect","isWeb","isWindowDefined","window","isServer","isClient","useIsomorphicLayoutEffect","isChrome","navigator","test","userAgent","isWebTouchable","maxTouchPoints","isTouchable","isAndroid","isIos","process","env","TEST_NATIVE_PLATFORM","currentPlatform"],"sources":["../../src/constants.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,EAAWC,eAAA,QAAuB;
|
|
1
|
+
{"version":3,"names":["useEffect","useLayoutEffect","use","IS_REACT_19","isWeb","isWindowDefined","window","isServer","isClient","useIsomorphicLayoutEffect","isChrome","navigator","test","userAgent","isWebTouchable","maxTouchPoints","isTouchable","isAndroid","isIos","process","env","TEST_NATIVE_PLATFORM","currentPlatform"],"sources":["../../src/constants.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,SAAA,EAAWC,eAAA,QAAuB;AAE3C,SAASC,GAAA,QAAW;AAEb,MAAMC,WAAA,GAAuB,CAAC,CAACD,GAAA;EAEzBE,KAAA,GAAiB;EACjBC,eAAA,GAA2B,OAAOC,MAAA,GAAW;EAC7CC,QAAA,GAAoBH,KAAA,IAAS,CAACC,eAAA;EAC9BG,QAAA,GAAoBJ,KAAA,IAASC,eAAA;EAE7BI,yBAAA,GAA8CF,QAAA,GACvDP,SAAA,GACAC,eAAA;EAESS,QAAA,GACX,OAAOC,SAAA,GAAc,OAAe,SAASC,IAAA,CAAKD,SAAA,CAAUE,SAAA,IAAa,EAAE;EAEhEC,cAAA,GACXN,QAAA,KAAa,kBAAkBF,MAAA,IAAUK,SAAA,CAAUI,cAAA,GAAiB;EAEzDC,WAAA,GAAuB,CAACZ,KAAA,IAASU,cAAA;EAEjCG,SAAA,GAAqB;EACrBC,KAAA,GAAiBC,OAAA,CAAQC,GAAA,CAAIC,oBAAA,KAAyB;EACtDC,eAAA,GAAwD","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/constants",
|
|
3
|
-
"version": "1.126.
|
|
3
|
+
"version": "1.126.18",
|
|
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.126.
|
|
21
|
+
"@tamagui/build": "1.126.18",
|
|
22
22
|
"react": "*"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|
package/src/constants.ts
CHANGED
package/types/constants.d.ts
CHANGED
package/types/constants.d.ts.map
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"mappings": "AAAA,SAAS,iBAAkC,OAAO;
|
|
2
|
+
"mappings": "AAAA,SAAS,iBAAkC,OAAO;AAIlD,OAAO,cAAMA;AAEb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AAEb,OAAO,cAAMC,kCAAkC;AAI/C,OAAO,cAAMC;AAGb,OAAO,cAAMC;AAGb,OAAO,cAAMC;AAEb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC,iBAAiB,QAAQ,QAAQ,WAAW",
|
|
3
3
|
"names": [
|
|
4
|
+
"IS_REACT_19: boolean",
|
|
4
5
|
"isWeb: boolean",
|
|
5
6
|
"isWindowDefined: boolean",
|
|
6
7
|
"isServer: boolean",
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
"src/constants.ts"
|
|
18
19
|
],
|
|
19
20
|
"sourcesContent": [
|
|
20
|
-
"import { useEffect, useLayoutEffect } from 'react'\n\nexport const isWeb: boolean = true\nexport const isWindowDefined: boolean = typeof window !== 'undefined'\nexport const isServer: boolean = isWeb && !isWindowDefined\nexport const isClient: boolean = isWeb && isWindowDefined\n\nexport const useIsomorphicLayoutEffect: typeof useEffect = isServer\n ? useEffect\n : useLayoutEffect\n\nexport const isChrome: boolean =\n typeof navigator !== 'undefined' && /Chrome/.test(navigator.userAgent || '')\n\nexport const isWebTouchable: boolean =\n isClient && ('ontouchstart' in window || navigator.maxTouchPoints > 0)\n\nexport const isTouchable: boolean = !isWeb || isWebTouchable\n// set :boolean to avoid inferring type to false\nexport const isAndroid: boolean = false\nexport const isIos: boolean = process.env.TEST_NATIVE_PLATFORM === 'ios'\nexport const currentPlatform: 'web' | 'ios' | 'native' | 'android' = 'web'\n"
|
|
21
|
+
"import { useEffect, useLayoutEffect } from 'react'\n// @ts-ignore\nimport { use } from 'react'\n\nexport const IS_REACT_19: boolean = !!use\n\nexport const isWeb: boolean = true\nexport const isWindowDefined: boolean = typeof window !== 'undefined'\nexport const isServer: boolean = isWeb && !isWindowDefined\nexport const isClient: boolean = isWeb && isWindowDefined\n\nexport const useIsomorphicLayoutEffect: typeof useEffect = isServer\n ? useEffect\n : useLayoutEffect\n\nexport const isChrome: boolean =\n typeof navigator !== 'undefined' && /Chrome/.test(navigator.userAgent || '')\n\nexport const isWebTouchable: boolean =\n isClient && ('ontouchstart' in window || navigator.maxTouchPoints > 0)\n\nexport const isTouchable: boolean = !isWeb || isWebTouchable\n// set :boolean to avoid inferring type to false\nexport const isAndroid: boolean = false\nexport const isIos: boolean = process.env.TEST_NATIVE_PLATFORM === 'ios'\nexport const currentPlatform: 'web' | 'ios' | 'native' | 'android' = 'web'\n"
|
|
21
22
|
],
|
|
22
23
|
"version": 3
|
|
23
24
|
}
|