@tamagui/core 1.1.6 → 1.1.7
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.
|
@@ -31,14 +31,15 @@ function setupReactNative(rnExports) {
|
|
|
31
31
|
for (const key in rnExports) {
|
|
32
32
|
if (key[0].toLowerCase() === key[0])
|
|
33
33
|
continue;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
const val = rnExports[key];
|
|
35
|
+
if (val && typeof val === "object") {
|
|
36
|
+
ReactNativeStaticConfigs.set(val, {
|
|
37
|
+
isReactNative: true,
|
|
38
|
+
isText: key === "Text" || key === "TextInput",
|
|
39
|
+
isInput: key === "TextInput",
|
|
40
|
+
inlineProps: key === "Image" ? /* @__PURE__ */ new Set(["src", "width", "height"]) : void 0
|
|
41
|
+
});
|
|
42
|
+
}
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/setupReactNative.ts"],
|
|
4
|
-
"sourcesContent": ["import { StaticConfig } from './types'\n\nexport const ReactNativeStaticConfigs = new WeakMap<any, Partial<StaticConfig> | null>()\n\nexport function getReactNativeConfig(Component: any) {\n return ReactNativeStaticConfigs.get(Component)\n}\n\nexport function setupReactNative(rnExports: Record<string, any>) {\n for (const key in rnExports) {\n if (key[0].toLowerCase() === key[0]) continue\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,2BAA2B,oBAAI,QAA2C;AAEhF,SAAS,qBAAqB,WAAgB;AACnD,SAAO,yBAAyB,IAAI,SAAS;AAC/C;AAEO,SAAS,iBAAiB,WAAgC;AAC/D,aAAW,OAAO,WAAW;AAC3B,QAAI,IAAI,GAAG,YAAY,MAAM,IAAI;AAAI;AACrC,
|
|
4
|
+
"sourcesContent": ["import { StaticConfig } from './types'\n\nexport const ReactNativeStaticConfigs = new WeakMap<any, Partial<StaticConfig> | null>()\n\nexport function getReactNativeConfig(Component: any) {\n return ReactNativeStaticConfigs.get(Component)\n}\n\nexport function setupReactNative(rnExports: Record<string, any>) {\n for (const key in rnExports) {\n if (key[0].toLowerCase() === key[0]) continue\n const val = rnExports[key]\n if (val && typeof val === 'object') {\n ReactNativeStaticConfigs.set(val, {\n isReactNative: true,\n isText: key === 'Text' || key === 'TextInput',\n isInput: key === 'TextInput',\n inlineProps: key === 'Image' ? new Set(['src', 'width', 'height']) : undefined,\n })\n }\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,2BAA2B,oBAAI,QAA2C;AAEhF,SAAS,qBAAqB,WAAgB;AACnD,SAAO,yBAAyB,IAAI,SAAS;AAC/C;AAEO,SAAS,iBAAiB,WAAgC;AAC/D,aAAW,OAAO,WAAW;AAC3B,QAAI,IAAI,GAAG,YAAY,MAAM,IAAI;AAAI;AACrC,UAAM,MAAM,UAAU;AACtB,QAAI,OAAO,OAAO,QAAQ,UAAU;AAClC,+BAAyB,IAAI,KAAK;AAAA,QAChC,eAAe;AAAA,QACf,QAAQ,QAAQ,UAAU,QAAQ;AAAA,QAClC,SAAS,QAAQ;AAAA,QACjB,aAAa,QAAQ,UAAU,oBAAI,IAAI,CAAC,OAAO,SAAS,QAAQ,CAAC,IAAI;AAAA,MACvE,CAAC;AAAA,IACH;AAAA,EACF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -6,14 +6,15 @@ function setupReactNative(rnExports) {
|
|
|
6
6
|
for (const key in rnExports) {
|
|
7
7
|
if (key[0].toLowerCase() === key[0])
|
|
8
8
|
continue;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
const val = rnExports[key];
|
|
10
|
+
if (val && typeof val === "object") {
|
|
11
|
+
ReactNativeStaticConfigs.set(val, {
|
|
12
|
+
isReactNative: true,
|
|
13
|
+
isText: key === "Text" || key === "TextInput",
|
|
14
|
+
isInput: key === "TextInput",
|
|
15
|
+
inlineProps: key === "Image" ? /* @__PURE__ */ new Set(["src", "width", "height"]) : void 0
|
|
16
|
+
});
|
|
17
|
+
}
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/setupReactNative.ts"],
|
|
4
|
-
"sourcesContent": ["import { StaticConfig } from './types'\n\nexport const ReactNativeStaticConfigs = new WeakMap<any, Partial<StaticConfig> | null>()\n\nexport function getReactNativeConfig(Component: any) {\n return ReactNativeStaticConfigs.get(Component)\n}\n\nexport function setupReactNative(rnExports: Record<string, any>) {\n for (const key in rnExports) {\n if (key[0].toLowerCase() === key[0]) continue\n
|
|
5
|
-
"mappings": "AAEO,MAAM,2BAA2B,oBAAI,QAA2C;AAEhF,SAAS,qBAAqB,WAAgB;AACnD,SAAO,yBAAyB,IAAI,SAAS;AAC/C;AAEO,SAAS,iBAAiB,WAAgC;AAC/D,aAAW,OAAO,WAAW;AAC3B,QAAI,IAAI,GAAG,YAAY,MAAM,IAAI;AAAI;AACrC,
|
|
4
|
+
"sourcesContent": ["import { StaticConfig } from './types'\n\nexport const ReactNativeStaticConfigs = new WeakMap<any, Partial<StaticConfig> | null>()\n\nexport function getReactNativeConfig(Component: any) {\n return ReactNativeStaticConfigs.get(Component)\n}\n\nexport function setupReactNative(rnExports: Record<string, any>) {\n for (const key in rnExports) {\n if (key[0].toLowerCase() === key[0]) continue\n const val = rnExports[key]\n if (val && typeof val === 'object') {\n ReactNativeStaticConfigs.set(val, {\n isReactNative: true,\n isText: key === 'Text' || key === 'TextInput',\n isInput: key === 'TextInput',\n inlineProps: key === 'Image' ? new Set(['src', 'width', 'height']) : undefined,\n })\n }\n }\n}\n"],
|
|
5
|
+
"mappings": "AAEO,MAAM,2BAA2B,oBAAI,QAA2C;AAEhF,SAAS,qBAAqB,WAAgB;AACnD,SAAO,yBAAyB,IAAI,SAAS;AAC/C;AAEO,SAAS,iBAAiB,WAAgC;AAC/D,aAAW,OAAO,WAAW;AAC3B,QAAI,IAAI,GAAG,YAAY,MAAM,IAAI;AAAI;AACrC,UAAM,MAAM,UAAU;AACtB,QAAI,OAAO,OAAO,QAAQ,UAAU;AAClC,+BAAyB,IAAI,KAAK;AAAA,QAChC,eAAe;AAAA,QACf,QAAQ,QAAQ,UAAU,QAAQ;AAAA,QAClC,SAAS,QAAQ;AAAA,QACjB,aAAa,QAAQ,UAAU,oBAAI,IAAI,CAAC,OAAO,SAAS,QAAQ,CAAC,IAAI;AAAA,MACvE,CAAC;AAAA,IACH;AAAA,EACF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -30,22 +30,22 @@
|
|
|
30
30
|
"reset.css"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@tamagui/compose-refs": "^1.1.
|
|
34
|
-
"@tamagui/constants": "^1.1.
|
|
35
|
-
"@tamagui/helpers": "^1.1.
|
|
36
|
-
"@tamagui/normalize-css-color": "^1.1.
|
|
37
|
-
"@tamagui/react-native-use-pressable": "^1.1.
|
|
38
|
-
"@tamagui/react-native-use-responder-events": "^1.1.
|
|
39
|
-
"@tamagui/use-did-finish-ssr": "^1.1.
|
|
40
|
-
"@tamagui/use-event": "^1.1.
|
|
41
|
-
"@tamagui/use-force-update": "^1.1.
|
|
33
|
+
"@tamagui/compose-refs": "^1.1.7",
|
|
34
|
+
"@tamagui/constants": "^1.1.7",
|
|
35
|
+
"@tamagui/helpers": "^1.1.7",
|
|
36
|
+
"@tamagui/normalize-css-color": "^1.1.7",
|
|
37
|
+
"@tamagui/react-native-use-pressable": "^1.1.7",
|
|
38
|
+
"@tamagui/react-native-use-responder-events": "^1.1.7",
|
|
39
|
+
"@tamagui/use-did-finish-ssr": "^1.1.7",
|
|
40
|
+
"@tamagui/use-event": "^1.1.7",
|
|
41
|
+
"@tamagui/use-force-update": "^1.1.7"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": "*",
|
|
45
45
|
"react-dom": "*"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@tamagui/build": "^1.1.
|
|
48
|
+
"@tamagui/build": "^1.1.7",
|
|
49
49
|
"@testing-library/react": "^13.4.0",
|
|
50
50
|
"csstype": "^3.0.10",
|
|
51
51
|
"react": "^18.2.0",
|
package/src/setupReactNative.ts
CHANGED
|
@@ -9,12 +9,14 @@ export function getReactNativeConfig(Component: any) {
|
|
|
9
9
|
export function setupReactNative(rnExports: Record<string, any>) {
|
|
10
10
|
for (const key in rnExports) {
|
|
11
11
|
if (key[0].toLowerCase() === key[0]) continue
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
const val = rnExports[key]
|
|
13
|
+
if (val && typeof val === 'object') {
|
|
14
|
+
ReactNativeStaticConfigs.set(val, {
|
|
15
|
+
isReactNative: true,
|
|
16
|
+
isText: key === 'Text' || key === 'TextInput',
|
|
17
|
+
isInput: key === 'TextInput',
|
|
18
|
+
inlineProps: key === 'Image' ? new Set(['src', 'width', 'height']) : undefined,
|
|
19
|
+
})
|
|
20
|
+
}
|
|
19
21
|
}
|
|
20
22
|
}
|