@tamagui/constants 2.0.0-rc.11 → 2.0.0-rc.12
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/constants",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.12",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"clean:build": "tamagui-build clean:build"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@tamagui/build": "2.0.0-rc.
|
|
36
|
+
"@tamagui/build": "2.0.0-rc.12",
|
|
37
37
|
"react": ">=19",
|
|
38
38
|
"react-native": "0.81.5"
|
|
39
39
|
},
|
package/types/constants.d.ts.map
CHANGED
|
@@ -1,24 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"mappings": "AAAA,SAAS,iBAAkC;AAE3C,OAAO,
|
|
3
|
-
"names": [
|
|
4
|
-
"isWeb: boolean",
|
|
5
|
-
"isBrowser: boolean",
|
|
6
|
-
"isServer: boolean",
|
|
7
|
-
"isClient: boolean",
|
|
8
|
-
"isWindowDefined: boolean",
|
|
9
|
-
"useIsomorphicLayoutEffect: typeof useEffect",
|
|
10
|
-
"isChrome: boolean",
|
|
11
|
-
"isWebTouchable: boolean",
|
|
12
|
-
"isTouchable: boolean",
|
|
13
|
-
"isAndroid: boolean",
|
|
14
|
-
"isIos: boolean",
|
|
15
|
-
"currentPlatform: 'web' | 'ios' | 'native' | 'android'"
|
|
16
|
-
],
|
|
2
|
+
"mappings": "AAAA,SAAS,iBAAkC;AAE3C,OAAO,cAAM;AACb,OAAO,cAAM;AACb,OAAO,cAAM;AACb,OAAO,cAAM;;AAEb,OAAO,cAAM;AAEb,OAAO,cAAM,kCAAkC;AAI/C,OAAO,cAAM;AAGb,OAAO,cAAM;AAGb,OAAO,cAAM;AAEb,OAAO,cAAM;AACb,OAAO,cAAM;AACb,OAAO,cAAM,iBAAiB,QAAQ,QAAQ,WAAW",
|
|
3
|
+
"names": [],
|
|
17
4
|
"sources": [
|
|
18
5
|
"src/constants.ts"
|
|
19
6
|
],
|
|
7
|
+
"version": 3,
|
|
20
8
|
"sourcesContent": [
|
|
21
9
|
"import { useEffect, useLayoutEffect } from 'react'\n\nexport const isWeb: boolean = true\nexport const isBrowser: boolean = typeof window !== 'undefined'\nexport const isServer: boolean = isWeb && !isBrowser\nexport const isClient: boolean = isWeb && isBrowser\n/** @deprecated use isBrowser instead */\nexport const isWindowDefined: boolean = isBrowser\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"
|
|
22
|
-
]
|
|
23
|
-
"version": 3
|
|
10
|
+
]
|
|
24
11
|
}
|
|
@@ -1,24 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"mappings": "AAAA,cAA+B,iBAAiB;AAGhD,OAAO,
|
|
3
|
-
"names": [
|
|
4
|
-
"isWeb: boolean",
|
|
5
|
-
"isBrowser: boolean",
|
|
6
|
-
"isServer: boolean",
|
|
7
|
-
"isClient: boolean",
|
|
8
|
-
"isWindowDefined: boolean",
|
|
9
|
-
"useIsomorphicLayoutEffect: typeof useEffect",
|
|
10
|
-
"isChrome: boolean",
|
|
11
|
-
"isWebTouchable: boolean",
|
|
12
|
-
"isTouchable: boolean",
|
|
13
|
-
"isAndroid: boolean",
|
|
14
|
-
"isIos: boolean",
|
|
15
|
-
"currentPlatform: 'web' | 'ios' | 'native' | 'android'"
|
|
16
|
-
],
|
|
2
|
+
"mappings": "AAAA,cAA+B,iBAAiB;AAGhD,OAAO,cAAM;AACb,OAAO,cAAM;AACb,OAAO,cAAM;AACb,OAAO,cAAM;;AAEb,OAAO,cAAM;AACb,OAAO,cAAM,kCAAkC;AAC/C,OAAO,cAAM;AACb,OAAO,cAAM;AACb,OAAO,cAAM;AACb,OAAO,cAAM;AAEb,OAAO,cAAM;AAIb,OAAO,cAAM,iBAAiB,QAAQ,QAAQ,WAAW",
|
|
3
|
+
"names": [],
|
|
17
4
|
"sources": [
|
|
18
5
|
"src/constants.native.ts"
|
|
19
6
|
],
|
|
7
|
+
"version": 3,
|
|
20
8
|
"sourcesContent": [
|
|
21
9
|
"import { useLayoutEffect, type useEffect } from 'react'\nimport { Platform } from 'react-native'\n\nexport const isWeb: boolean = false\nexport const isBrowser: boolean = false\nexport const isServer: boolean = false\nexport const isClient: boolean = true\n/** @deprecated use isBrowser instead */\nexport const isWindowDefined: boolean = false\nexport const useIsomorphicLayoutEffect: typeof useEffect = useLayoutEffect\nexport const isChrome: boolean = false\nexport const isWebTouchable: boolean = false\nexport const isTouchable: boolean = true\nexport const isAndroid: boolean =\n Platform.OS === 'android' || process.env.TEST_NATIVE_PLATFORM === 'android'\nexport const isIos: boolean =\n Platform.OS === 'ios' || process.env.TEST_NATIVE_PLATFORM === 'ios'\n\nconst platforms = { ios: 'ios', android: 'android' } as const\nexport const currentPlatform: 'web' | 'ios' | 'native' | 'android' =\n platforms[Platform.OS] || 'native'\n"
|
|
22
|
-
]
|
|
23
|
-
"version": 3
|
|
10
|
+
]
|
|
24
11
|
}
|