@tamagui/constants 1.14.0 → 1.14.2
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.js +64 -1
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/index.native.js +53 -1
- package/dist/cjs/index.native.js.map +2 -2
- package/dist/esm/index.js +32 -1
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/index.mjs +32 -1
- package/dist/esm/index.mjs.map +2 -2
- package/dist/esm/index.native.js +21 -1
- package/dist/esm/index.native.js.map +2 -2
- package/dist/esm/index.native.mjs +21 -1
- package/dist/esm/index.native.mjs.map +2 -2
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,65 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var src_exports = {};
|
|
20
|
+
__export(src_exports, {
|
|
21
|
+
isChrome: () => isChrome,
|
|
22
|
+
isClient: () => isClient,
|
|
23
|
+
isRSC: () => isRSC,
|
|
24
|
+
isServer: () => isServer,
|
|
25
|
+
isTouchable: () => isTouchable,
|
|
26
|
+
isWeb: () => isWeb,
|
|
27
|
+
isWebTouchable: () => isWebTouchable,
|
|
28
|
+
isWindowDefined: () => isWindowDefined,
|
|
29
|
+
useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(src_exports);
|
|
32
|
+
var import_react = require("react");
|
|
33
|
+
const isWeb = process.env.TAMAGUI_TARGET === "web";
|
|
34
|
+
const isWindowDefined = typeof window !== "undefined";
|
|
35
|
+
const isServer = isWeb && !isWindowDefined;
|
|
36
|
+
const isClient = isWeb && isWindowDefined;
|
|
37
|
+
const isRSC = process.env.ENABLE_RSC;
|
|
38
|
+
const idFn = () => {
|
|
39
|
+
};
|
|
40
|
+
const useIsomorphicLayoutEffect = isRSC ? idFn : isServer ? import_react.useEffect : import_react.useLayoutEffect;
|
|
41
|
+
const isChrome = typeof navigator !== "undefined" && /Chrome/.test(navigator.userAgent || "");
|
|
42
|
+
const isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0);
|
|
43
|
+
const isTouchable = !isWeb || isWebTouchable;
|
|
44
|
+
if (process.env.NODE_ENV === "development") {
|
|
45
|
+
if (!process.env.TAMAGUI_TARGET) {
|
|
46
|
+
console.warn(`Must set TAMAGUI_TARGET to "web" or "native"`);
|
|
47
|
+
} else if (isClient && process.env.TAMAGUI_TARGET !== "web" && process.env.TAMAGUI_IGNORE_TARGET !== "1") {
|
|
48
|
+
console.warn(
|
|
49
|
+
`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`
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
isChrome,
|
|
56
|
+
isClient,
|
|
57
|
+
isRSC,
|
|
58
|
+
isServer,
|
|
59
|
+
isTouchable,
|
|
60
|
+
isWeb,
|
|
61
|
+
isWebTouchable,
|
|
62
|
+
isWindowDefined,
|
|
63
|
+
useIsomorphicLayoutEffect
|
|
64
|
+
});
|
|
2
65
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["import { useEffect, useLayoutEffect } from 'react'\n\nexport const isWeb = process.env.TAMAGUI_TARGET === 'web'\nexport const isWindowDefined = typeof window !== 'undefined'\nexport const isServer = isWeb && !isWindowDefined\nexport const isClient = isWeb && isWindowDefined\n\n// may want to move to VITE_RSC_BUILD\nexport const isRSC = process.env.ENABLE_RSC\n\n// causing troubles, was used for vite SSR but disabling until fixed\n// ? // note this is statically analyzed so no funny business, just access it without optional chaining\n// // @ts-ignore\n// import.meta.env\n// ? // @ts-ignore\n// import.meta.env.SSR\n// : false\n// : false\n\nconst idFn = () => {}\nexport const useIsomorphicLayoutEffect = isRSC\n ? idFn\n : isServer\n ? useEffect\n : useLayoutEffect\nexport const isChrome =\n typeof navigator !== 'undefined' && /Chrome/.test(navigator.userAgent || '')\n\nexport const isWebTouchable =\n isClient && ('ontouchstart' in window || navigator.maxTouchPoints > 0)\n\nexport const isTouchable = !isWeb || isWebTouchable\n\nif (process.env.NODE_ENV === 'development') {\n if (!process.env.TAMAGUI_TARGET) {\n // eslint-disable-next-line no-console\n console.warn(`Must set TAMAGUI_TARGET to \"web\" or \"native\"`)\n } else if (\n isClient &&\n process.env.TAMAGUI_TARGET !== 'web' &&\n process.env.TAMAGUI_IGNORE_TARGET !== '1'\n ) {\n // eslint-disable-next-line no-console\n console.warn(\n `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`\n )\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2C;AAEpC,MAAM,QAAQ,QAAQ,IAAI,mBAAmB;AAC7C,MAAM,kBAAkB,OAAO,WAAW;AAC1C,MAAM,WAAW,SAAS,CAAC;AAC3B,MAAM,WAAW,SAAS;AAG1B,MAAM,QAAQ,QAAQ,IAAI;AAWjC,MAAM,OAAO,MAAM;AAAC;AACb,MAAM,4BAA4B,QACrC,OACA,WACA,yBACA;AACG,MAAM,WACX,OAAO,cAAc,eAAe,SAAS,KAAK,UAAU,aAAa,EAAE;AAEtE,MAAM,iBACX,aAAa,kBAAkB,UAAU,UAAU,iBAAiB;AAE/D,MAAM,cAAc,CAAC,SAAS;AAErC,IAAI,QAAQ,IAAI,aAAa,eAAe;AAC1C,MAAI,CAAC,QAAQ,IAAI,gBAAgB;AAE/B,YAAQ,KAAK,8CAA8C;AAAA,EAC7D,WACE,YACA,QAAQ,IAAI,mBAAmB,SAC/B,QAAQ,IAAI,0BAA0B,KACtC;AAEA,YAAQ;AAAA,MACN;AAAA,IACF;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -1,2 +1,54 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var index_native_exports = {};
|
|
20
|
+
__export(index_native_exports, {
|
|
21
|
+
isChrome: () => isChrome,
|
|
22
|
+
isClient: () => isClient,
|
|
23
|
+
isRSC: () => isRSC,
|
|
24
|
+
isServer: () => isServer,
|
|
25
|
+
isTouchable: () => isTouchable,
|
|
26
|
+
isWeb: () => isWeb,
|
|
27
|
+
isWebTouchable: () => isWebTouchable,
|
|
28
|
+
isWindowDefined: () => isWindowDefined,
|
|
29
|
+
useIsomorphicLayoutEffect: () => useIsomorphicLayoutEffect
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(index_native_exports);
|
|
32
|
+
var import_react = require("react");
|
|
33
|
+
const isWeb = false;
|
|
34
|
+
const isWindowDefined = false;
|
|
35
|
+
const isServer = false;
|
|
36
|
+
const isClient = false;
|
|
37
|
+
const isRSC = false;
|
|
38
|
+
const useIsomorphicLayoutEffect = import_react.useLayoutEffect;
|
|
39
|
+
const isChrome = false;
|
|
40
|
+
const isWebTouchable = false;
|
|
41
|
+
const isTouchable = true;
|
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
isChrome,
|
|
45
|
+
isClient,
|
|
46
|
+
isRSC,
|
|
47
|
+
isServer,
|
|
48
|
+
isTouchable,
|
|
49
|
+
isWeb,
|
|
50
|
+
isWebTouchable,
|
|
51
|
+
isWindowDefined,
|
|
52
|
+
useIsomorphicLayoutEffect
|
|
53
|
+
});
|
|
2
54
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.native.ts"],
|
|
4
4
|
"sourcesContent": ["import { useLayoutEffect } from 'react'\n\nexport const isWeb = false\nexport const isWindowDefined = false\nexport const isServer = false\nexport const isClient = false\nexport const isRSC = false\nexport const useIsomorphicLayoutEffect = useLayoutEffect\nexport const isChrome = false\nexport const isWebTouchable = false\nexport const isTouchable = true\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAgC;AAEzB,MAAM,QAAQ;AACd,MAAM,kBAAkB;AACxB,MAAM,WAAW;AACjB,MAAM,WAAW;AACjB,MAAM,QAAQ;AACd,MAAM,4BAA4B;AAClC,MAAM,WAAW;AACjB,MAAM,iBAAiB;AACvB,MAAM,cAAc;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,33 @@
|
|
|
1
|
-
import{useEffect
|
|
1
|
+
import { useEffect, useLayoutEffect } from "react";
|
|
2
|
+
const isWeb = process.env.TAMAGUI_TARGET === "web";
|
|
3
|
+
const isWindowDefined = typeof window !== "undefined";
|
|
4
|
+
const isServer = isWeb && !isWindowDefined;
|
|
5
|
+
const isClient = isWeb && isWindowDefined;
|
|
6
|
+
const isRSC = process.env.ENABLE_RSC;
|
|
7
|
+
const idFn = () => {
|
|
8
|
+
};
|
|
9
|
+
const useIsomorphicLayoutEffect = isRSC ? idFn : isServer ? useEffect : useLayoutEffect;
|
|
10
|
+
const isChrome = typeof navigator !== "undefined" && /Chrome/.test(navigator.userAgent || "");
|
|
11
|
+
const isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0);
|
|
12
|
+
const isTouchable = !isWeb || isWebTouchable;
|
|
13
|
+
if (process.env.NODE_ENV === "development") {
|
|
14
|
+
if (!process.env.TAMAGUI_TARGET) {
|
|
15
|
+
console.warn(`Must set TAMAGUI_TARGET to "web" or "native"`);
|
|
16
|
+
} else if (isClient && process.env.TAMAGUI_TARGET !== "web" && process.env.TAMAGUI_IGNORE_TARGET !== "1") {
|
|
17
|
+
console.warn(
|
|
18
|
+
`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`
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
isChrome,
|
|
24
|
+
isClient,
|
|
25
|
+
isRSC,
|
|
26
|
+
isServer,
|
|
27
|
+
isTouchable,
|
|
28
|
+
isWeb,
|
|
29
|
+
isWebTouchable,
|
|
30
|
+
isWindowDefined,
|
|
31
|
+
useIsomorphicLayoutEffect
|
|
32
|
+
};
|
|
2
33
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["import { useEffect, useLayoutEffect } from 'react'\n\nexport const isWeb = process.env.TAMAGUI_TARGET === 'web'\nexport const isWindowDefined = typeof window !== 'undefined'\nexport const isServer = isWeb && !isWindowDefined\nexport const isClient = isWeb && isWindowDefined\n\n// may want to move to VITE_RSC_BUILD\nexport const isRSC = process.env.ENABLE_RSC\n\n// causing troubles, was used for vite SSR but disabling until fixed\n// ? // note this is statically analyzed so no funny business, just access it without optional chaining\n// // @ts-ignore\n// import.meta.env\n// ? // @ts-ignore\n// import.meta.env.SSR\n// : false\n// : false\n\nconst idFn = () => {}\nexport const useIsomorphicLayoutEffect = isRSC\n ? idFn\n : isServer\n ? useEffect\n : useLayoutEffect\nexport const isChrome =\n typeof navigator !== 'undefined' && /Chrome/.test(navigator.userAgent || '')\n\nexport const isWebTouchable =\n isClient && ('ontouchstart' in window || navigator.maxTouchPoints > 0)\n\nexport const isTouchable = !isWeb || isWebTouchable\n\nif (process.env.NODE_ENV === 'development') {\n if (!process.env.TAMAGUI_TARGET) {\n // eslint-disable-next-line no-console\n console.warn(`Must set TAMAGUI_TARGET to \"web\" or \"native\"`)\n } else if (\n isClient &&\n process.env.TAMAGUI_TARGET !== 'web' &&\n process.env.TAMAGUI_IGNORE_TARGET !== '1'\n ) {\n // eslint-disable-next-line no-console\n console.warn(\n `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`\n )\n }\n}\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAAA,SAAS,WAAW,uBAAuB;AAEpC,MAAM,QAAQ,QAAQ,IAAI,mBAAmB;AAC7C,MAAM,kBAAkB,OAAO,WAAW;AAC1C,MAAM,WAAW,SAAS,CAAC;AAC3B,MAAM,WAAW,SAAS;AAG1B,MAAM,QAAQ,QAAQ,IAAI;AAWjC,MAAM,OAAO,MAAM;AAAC;AACb,MAAM,4BAA4B,QACrC,OACA,WACA,YACA;AACG,MAAM,WACX,OAAO,cAAc,eAAe,SAAS,KAAK,UAAU,aAAa,EAAE;AAEtE,MAAM,iBACX,aAAa,kBAAkB,UAAU,UAAU,iBAAiB;AAE/D,MAAM,cAAc,CAAC,SAAS;AAErC,IAAI,QAAQ,IAAI,aAAa,eAAe;AAC1C,MAAI,CAAC,QAAQ,IAAI,gBAAgB;AAE/B,YAAQ,KAAK,8CAA8C;AAAA,EAC7D,WACE,YACA,QAAQ,IAAI,mBAAmB,SAC/B,QAAQ,IAAI,0BAA0B,KACtC;AAEA,YAAQ;AAAA,MACN;AAAA,IACF;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1,33 @@
|
|
|
1
|
-
import{useEffect
|
|
1
|
+
import { useEffect, useLayoutEffect } from "react";
|
|
2
|
+
const isWeb = process.env.TAMAGUI_TARGET === "web";
|
|
3
|
+
const isWindowDefined = typeof window !== "undefined";
|
|
4
|
+
const isServer = isWeb && !isWindowDefined;
|
|
5
|
+
const isClient = isWeb && isWindowDefined;
|
|
6
|
+
const isRSC = process.env.ENABLE_RSC;
|
|
7
|
+
const idFn = () => {
|
|
8
|
+
};
|
|
9
|
+
const useIsomorphicLayoutEffect = isRSC ? idFn : isServer ? useEffect : useLayoutEffect;
|
|
10
|
+
const isChrome = typeof navigator !== "undefined" && /Chrome/.test(navigator.userAgent || "");
|
|
11
|
+
const isWebTouchable = isClient && ("ontouchstart" in window || navigator.maxTouchPoints > 0);
|
|
12
|
+
const isTouchable = !isWeb || isWebTouchable;
|
|
13
|
+
if (process.env.NODE_ENV === "development") {
|
|
14
|
+
if (!process.env.TAMAGUI_TARGET) {
|
|
15
|
+
console.warn(`Must set TAMAGUI_TARGET to "web" or "native"`);
|
|
16
|
+
} else if (isClient && process.env.TAMAGUI_TARGET !== "web" && process.env.TAMAGUI_IGNORE_TARGET !== "1") {
|
|
17
|
+
console.warn(
|
|
18
|
+
`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`
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
isChrome,
|
|
24
|
+
isClient,
|
|
25
|
+
isRSC,
|
|
26
|
+
isServer,
|
|
27
|
+
isTouchable,
|
|
28
|
+
isWeb,
|
|
29
|
+
isWebTouchable,
|
|
30
|
+
isWindowDefined,
|
|
31
|
+
useIsomorphicLayoutEffect
|
|
32
|
+
};
|
|
2
33
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["import { useEffect, useLayoutEffect } from 'react'\n\nexport const isWeb = process.env.TAMAGUI_TARGET === 'web'\nexport const isWindowDefined = typeof window !== 'undefined'\nexport const isServer = isWeb && !isWindowDefined\nexport const isClient = isWeb && isWindowDefined\n\n// may want to move to VITE_RSC_BUILD\nexport const isRSC = process.env.ENABLE_RSC\n\n// causing troubles, was used for vite SSR but disabling until fixed\n// ? // note this is statically analyzed so no funny business, just access it without optional chaining\n// // @ts-ignore\n// import.meta.env\n// ? // @ts-ignore\n// import.meta.env.SSR\n// : false\n// : false\n\nconst idFn = () => {}\nexport const useIsomorphicLayoutEffect = isRSC\n ? idFn\n : isServer\n ? useEffect\n : useLayoutEffect\nexport const isChrome =\n typeof navigator !== 'undefined' && /Chrome/.test(navigator.userAgent || '')\n\nexport const isWebTouchable =\n isClient && ('ontouchstart' in window || navigator.maxTouchPoints > 0)\n\nexport const isTouchable = !isWeb || isWebTouchable\n\nif (process.env.NODE_ENV === 'development') {\n if (!process.env.TAMAGUI_TARGET) {\n // eslint-disable-next-line no-console\n console.warn(`Must set TAMAGUI_TARGET to \"web\" or \"native\"`)\n } else if (\n isClient &&\n process.env.TAMAGUI_TARGET !== 'web' &&\n process.env.TAMAGUI_IGNORE_TARGET !== '1'\n ) {\n // eslint-disable-next-line no-console\n console.warn(\n `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`\n )\n }\n}\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAAA,SAAS,WAAW,uBAAuB;AAEpC,MAAM,QAAQ,QAAQ,IAAI,mBAAmB;AAC7C,MAAM,kBAAkB,OAAO,WAAW;AAC1C,MAAM,WAAW,SAAS,CAAC;AAC3B,MAAM,WAAW,SAAS;AAG1B,MAAM,QAAQ,QAAQ,IAAI;AAWjC,MAAM,OAAO,MAAM;AAAC;AACb,MAAM,4BAA4B,QACrC,OACA,WACA,YACA;AACG,MAAM,WACX,OAAO,cAAc,eAAe,SAAS,KAAK,UAAU,aAAa,EAAE;AAEtE,MAAM,iBACX,aAAa,kBAAkB,UAAU,UAAU,iBAAiB;AAE/D,MAAM,cAAc,CAAC,SAAS;AAErC,IAAI,QAAQ,IAAI,aAAa,eAAe;AAC1C,MAAI,CAAC,QAAQ,IAAI,gBAAgB;AAE/B,YAAQ,KAAK,8CAA8C;AAAA,EAC7D,WACE,YACA,QAAQ,IAAI,mBAAmB,SAC/B,QAAQ,IAAI,0BAA0B,KACtC;AAEA,YAAQ;AAAA,MACN;AAAA,IACF;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
import{useLayoutEffect
|
|
1
|
+
import { useLayoutEffect } from "react";
|
|
2
|
+
const isWeb = false;
|
|
3
|
+
const isWindowDefined = false;
|
|
4
|
+
const isServer = false;
|
|
5
|
+
const isClient = false;
|
|
6
|
+
const isRSC = false;
|
|
7
|
+
const useIsomorphicLayoutEffect = useLayoutEffect;
|
|
8
|
+
const isChrome = false;
|
|
9
|
+
const isWebTouchable = false;
|
|
10
|
+
const isTouchable = true;
|
|
11
|
+
export {
|
|
12
|
+
isChrome,
|
|
13
|
+
isClient,
|
|
14
|
+
isRSC,
|
|
15
|
+
isServer,
|
|
16
|
+
isTouchable,
|
|
17
|
+
isWeb,
|
|
18
|
+
isWebTouchable,
|
|
19
|
+
isWindowDefined,
|
|
20
|
+
useIsomorphicLayoutEffect
|
|
21
|
+
};
|
|
2
22
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.native.ts"],
|
|
4
4
|
"sourcesContent": ["import { useLayoutEffect } from 'react'\n\nexport const isWeb = false\nexport const isWindowDefined = false\nexport const isServer = false\nexport const isClient = false\nexport const isRSC = false\nexport const useIsomorphicLayoutEffect = useLayoutEffect\nexport const isChrome = false\nexport const isWebTouchable = false\nexport const isTouchable = true\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAAA,SAAS,uBAAuB;AAEzB,MAAM,QAAQ;AACd,MAAM,kBAAkB;AACxB,MAAM,WAAW;AACjB,MAAM,WAAW;AACjB,MAAM,QAAQ;AACd,MAAM,4BAA4B;AAClC,MAAM,WAAW;AACjB,MAAM,iBAAiB;AACvB,MAAM,cAAc;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
import{useLayoutEffect
|
|
1
|
+
import { useLayoutEffect } from "react";
|
|
2
|
+
const isWeb = false;
|
|
3
|
+
const isWindowDefined = false;
|
|
4
|
+
const isServer = false;
|
|
5
|
+
const isClient = false;
|
|
6
|
+
const isRSC = false;
|
|
7
|
+
const useIsomorphicLayoutEffect = useLayoutEffect;
|
|
8
|
+
const isChrome = false;
|
|
9
|
+
const isWebTouchable = false;
|
|
10
|
+
const isTouchable = true;
|
|
11
|
+
export {
|
|
12
|
+
isChrome,
|
|
13
|
+
isClient,
|
|
14
|
+
isRSC,
|
|
15
|
+
isServer,
|
|
16
|
+
isTouchable,
|
|
17
|
+
isWeb,
|
|
18
|
+
isWebTouchable,
|
|
19
|
+
isWindowDefined,
|
|
20
|
+
useIsomorphicLayoutEffect
|
|
21
|
+
};
|
|
2
22
|
//# sourceMappingURL=index.native.mjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.native.ts"],
|
|
4
4
|
"sourcesContent": ["import { useLayoutEffect } from 'react'\n\nexport const isWeb = false\nexport const isWindowDefined = false\nexport const isServer = false\nexport const isClient = false\nexport const isRSC = false\nexport const useIsomorphicLayoutEffect = useLayoutEffect\nexport const isChrome = false\nexport const isWebTouchable = false\nexport const isTouchable = true\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": [
|
|
5
|
+
"mappings": "AAAA,SAAS,uBAAuB;AAEzB,MAAM,QAAQ;AACd,MAAM,kBAAkB;AACxB,MAAM,WAAW;AACjB,MAAM,WAAW;AACjB,MAAM,QAAQ;AACd,MAAM,4BAA4B;AAClC,MAAM,WAAW;AACjB,MAAM,iBAAiB;AACvB,MAAM,cAAc;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/constants",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
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.14.
|
|
21
|
+
"@tamagui/build": "1.14.2",
|
|
22
22
|
"react": "^18.2.0"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|