@tamagui/constants 1.125.21 → 1.125.22

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": "1.125.21",
3
+ "version": "1.125.22",
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.125.21",
21
+ "@tamagui/build": "1.125.22",
22
22
  "react": "*"
23
23
  },
24
24
  "exports": {
@@ -0,0 +1,23 @@
1
+ {
2
+ "mappings": "AAAA,SAAS,iBAAkC,OAAO;AAElD,OAAO,cAAMA;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
+ "names": [
4
+ "isWeb: boolean",
5
+ "isWindowDefined: boolean",
6
+ "isServer: boolean",
7
+ "isClient: boolean",
8
+ "useIsomorphicLayoutEffect: typeof useEffect",
9
+ "isChrome: boolean",
10
+ "isWebTouchable: boolean",
11
+ "isTouchable: boolean",
12
+ "isAndroid: boolean",
13
+ "isIos: boolean",
14
+ "currentPlatform: 'web' | 'ios' | 'native' | 'android'"
15
+ ],
16
+ "sources": [
17
+ "src/constants.ts"
18
+ ],
19
+ "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
+ ],
22
+ "version": 3
23
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "mappings": "AAAA,cAA+B,iBAAiB,OAAO;AAGvD,OAAO,cAAMA;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC,kCAAkC;AAC/C,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AACb,OAAO,cAAMC;AAEb,OAAO,cAAMC;AAIb,OAAO,cAAMC,iBAAiB,QAAQ,QAAQ,WAAW",
3
+ "names": [
4
+ "isWeb: boolean",
5
+ "isWindowDefined: boolean",
6
+ "isServer: boolean",
7
+ "isClient: boolean",
8
+ "useIsomorphicLayoutEffect: typeof useEffect",
9
+ "isChrome: boolean",
10
+ "isWebTouchable: boolean",
11
+ "isTouchable: boolean",
12
+ "isAndroid: boolean",
13
+ "isIos: boolean",
14
+ "currentPlatform: 'web' | 'ios' | 'native' | 'android'"
15
+ ],
16
+ "sources": [
17
+ "src/constants.native.ts"
18
+ ],
19
+ "sourcesContent": [
20
+ "import { useLayoutEffect, type useEffect } from 'react'\nimport { Platform } from 'react-native'\n\nexport const isWeb: boolean = false\nexport const isWindowDefined: boolean = false\nexport const isServer: boolean = false\nexport const isClient: 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"
21
+ ],
22
+ "version": 3
23
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "mappings": "AAAA,cAAc",
3
+ "names": [],
4
+ "sources": [
5
+ "src/index.ts"
6
+ ],
7
+ "sourcesContent": [
8
+ "export * from './constants'\n"
9
+ ],
10
+ "version": 3
11
+ }