@tamagui/core 2.0.0-rc.3 → 2.0.0-rc.31
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/.turbo/turbo-build.log +4 -0
- package/bundle-native.mjs +22 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/index.native.js +1 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/index.js +50 -65
- package/dist/esm/index.js.map +1 -6
- package/dist/esm/index.mjs +2 -4
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +2 -2
- package/dist/esm/index.native.js.map +1 -1
- package/dist/native.cjs +2054 -2711
- package/dist/test.native.cjs +1051 -609
- package/inject-styles/index.cjs +2 -0
- package/inject-styles/index.js +2 -0
- package/inject-styles.cjs +1 -0
- package/native/index.cjs +2 -0
- package/native/index.js +2 -0
- package/native-test/index.cjs +2 -0
- package/native-test/index.js +2 -0
- package/package.json +27 -30
- package/reactNativeTypes/index.cjs +2 -0
- package/reactNativeTypes/index.js +2 -0
- package/reactNativeTypes/index.native.cjs +2 -0
- package/reactNativeTypes/index.native.js +2 -0
- package/reactNativeTypes.cjs +1 -0
- package/src/createOptimizedView.native.tsx +2 -2
- package/src/index.tsx +1 -0
- package/tsconfig.json +30 -0
- package/types/createOptimizedView.native.d.ts +4 -6
- package/types/createOptimizedView.native.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/dist/cjs/createOptimizedView.js +0 -22
- package/dist/cjs/createOptimizedView.js.map +0 -6
- package/dist/cjs/getBaseViews.js +0 -23
- package/dist/cjs/getBaseViews.js.map +0 -6
- package/dist/cjs/index.js +0 -78
- package/dist/cjs/index.js.map +0 -6
- package/dist/cjs/inject-styles.js +0 -28
- package/dist/cjs/inject-styles.js.map +0 -6
- package/dist/cjs/reactNativeTypes.js +0 -14
- package/dist/cjs/reactNativeTypes.js.map +0 -6
- package/dist/cjs/vendor/Pressability.js +0 -22
- package/dist/cjs/vendor/Pressability.js.map +0 -6
- package/dist/esm/createOptimizedView.js +0 -6
- package/dist/esm/createOptimizedView.js.map +0 -6
- package/dist/esm/getBaseViews.js +0 -7
- package/dist/esm/getBaseViews.js.map +0 -6
- package/dist/esm/inject-styles.js +0 -12
- package/dist/esm/inject-styles.js.map +0 -6
- package/dist/esm/reactNativeTypes.js +0 -1
- package/dist/esm/reactNativeTypes.js.map +0 -6
- package/dist/esm/vendor/Pressability.js +0 -6
- package/dist/esm/vendor/Pressability.js.map +0 -6
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { bundleNative } from '@tamagui/native-bundle'
|
|
4
|
+
|
|
5
|
+
// Bundle for production (native.cjs)
|
|
6
|
+
await bundleNative({
|
|
7
|
+
entry: 'src/index.tsx',
|
|
8
|
+
outDir: 'dist',
|
|
9
|
+
fileName: 'native.cjs',
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
// Bundle for tests (test.native.cjs)
|
|
13
|
+
// Externalizes react-native so it can be mocked at runtime by vitest-react-native
|
|
14
|
+
await bundleNative({
|
|
15
|
+
entry: 'src/index.tsx',
|
|
16
|
+
outDir: 'dist',
|
|
17
|
+
fileName: 'test.native.cjs',
|
|
18
|
+
isTest: true,
|
|
19
|
+
define: {
|
|
20
|
+
'process.env.NODE_ENV': JSON.stringify('test'),
|
|
21
|
+
},
|
|
22
|
+
})
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -26,6 +26,7 @@ __export(index_exports, {
|
|
|
26
26
|
Text: () => Text,
|
|
27
27
|
View: () => View,
|
|
28
28
|
createTamagui: () => createTamagui,
|
|
29
|
+
registerLayoutNode: () => import_use_element_layout2.registerLayoutNode,
|
|
29
30
|
setOnLayoutStrategy: () => import_use_element_layout2.setOnLayoutStrategy
|
|
30
31
|
});
|
|
31
32
|
module.exports = __toCommonJS(index_exports);
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -28,6 +28,7 @@ __export(index_exports, {
|
|
|
28
28
|
Text: () => Text,
|
|
29
29
|
View: () => View,
|
|
30
30
|
createTamagui: () => createTamagui,
|
|
31
|
+
registerLayoutNode: () => import_use_element_layout2.registerLayoutNode,
|
|
31
32
|
setOnLayoutStrategy: () => import_use_element_layout2.setOnLayoutStrategy
|
|
32
33
|
});
|
|
33
34
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","LayoutMeasurementController","import_use_element_layout2","TamaguiProvider","Text","View","createTamagui","setOnLayoutStrategy","module","exports","import_jsx_runtime","require","__reExport","import_react_native_media_driver","import_use_element_layout","import_web","import_createOptimizedView","import_getBaseViews","props","useIsomorphicLayoutEffect","enable","jsx","conf","media","createMedia","baseViews","getBaseViews","setupHooks","setElementProps","node","measure","_node","_node1","_node2","usePropsTransform","elementType","propsIn","stateRef","willHydrate","isDOM","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","collapsable","focusable","accessible","accessibilityDisabled","onLayout","hrefAttrs","plainDOMProps","href","download","rel","target","useChildren","children","viewProps","process","env","NODE_ENV","TextAncestor","createOptimizedView"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,2BAAA,EAAAA,CAAA,KAAAC,0BAAA,CAAAD,2BAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,IAAA,EAAAA,CAAA,KAAAA,IAAA;EAAAC,IAAA,EAAAA,CAAA,KAAAA,IAAA;EAAAC,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","LayoutMeasurementController","import_use_element_layout2","TamaguiProvider","Text","View","createTamagui","registerLayoutNode","setOnLayoutStrategy","module","exports","import_jsx_runtime","require","__reExport","import_react_native_media_driver","import_use_element_layout","import_web","import_createOptimizedView","import_getBaseViews","props","useIsomorphicLayoutEffect","enable","jsx","conf","media","createMedia","baseViews","getBaseViews","setupHooks","setElementProps","node","measure","_node","_node1","_node2","usePropsTransform","elementType","propsIn","stateRef","willHydrate","isDOM","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","collapsable","focusable","accessible","accessibilityDisabled","onLayout","hrefAttrs","plainDOMProps","href","download","rel","target","useChildren","children","viewProps","process","env","NODE_ENV","TextAncestor","createOptimizedView"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,2BAAA,EAAAA,CAAA,KAAAC,0BAAA,CAAAD,2BAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,IAAA,EAAAA,CAAA,KAAAA,IAAA;EAAAC,IAAA,EAAAA,CAAA,KAAAA,IAAA;EAAAC,aAAA,EAAAA,CAAA,KAAAA,aAAA;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,QAAA,EAAAC,WAAA;IAAA,IACA;MAAA,IACAC,KAAA,EAAAC,wBAAA,EAAAC,+BAAA,EAAAC,cAAA,EAAAC,gBAAA,EAAAC,eAAA,EAAAC,iBAAA,EAAAC,kBAAA,EAAAC,gBAAA,EAAAC,oBAAA,EAAAC,6BAAA,EAAAC,0BAAA,EAAAC,iCAAA,EAAAC,mCAAA,EAAAC,0CAAA,EAAAC,yBAAA,EAAAC,gCAAA,EAAAC,WAAA,EAAAC,SAAA,EAAAC,UAAA,EAAAC,qBAAA,EAAAC,QAAA,EAAAC,SAAA,EAAAC,aAAA;MAAA,IACAvB,KAAA,IAAAuB,aAAA,CAAAC,IAAA,IAAAF,SAAA,EACA,IAAAG,QAAA,EAAAC,GAAA,EAAAC,MAAA;IAAA;EACA;EACAC,WACAA,CAAAhC,WAAA,EAAAiC,QAAA,EAAAC,SAAA;IAAA,IACAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,eAAArC,WAAA,KAAAV,SAAA,CAAArB,IAAA,IAAAqB,SAAA,CAAAgD,YAAA,SACA,IAAAzD,0BAAA,CAAA0D,mBAAA,EAAAN,QAAA,EAAAC,SAAA,EAAA5C,SAAA;EAAA;AACA;AACA,IAAArB,IAAA,GAAAW,UAAA,CAAAX,IAAA;EAAAD,IAAA,GAAAY,UAAA,CAAAZ,IAAA","ignoreList":[]}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,69 +1,60 @@
|
|
|
1
1
|
export * from "@tamagui/web";
|
|
2
|
-
import "@tamagui/
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
enable,
|
|
8
|
-
useElementLayout
|
|
9
|
-
} from "@tamagui/use-element-layout";
|
|
10
|
-
import {
|
|
11
|
-
TamaguiProvider as WebTamaguiProvider,
|
|
12
|
-
Text as WebText,
|
|
13
|
-
View as WebView,
|
|
14
|
-
createTamagui as createTamaguiWeb,
|
|
15
|
-
setupHooks,
|
|
16
|
-
useIsomorphicLayoutEffect
|
|
17
|
-
} from "@tamagui/web";
|
|
18
|
-
import "./createOptimizedView";
|
|
19
|
-
import { getBaseViews } from "./getBaseViews";
|
|
20
|
-
import {
|
|
21
|
-
LayoutMeasurementController,
|
|
22
|
-
setOnLayoutStrategy
|
|
23
|
-
} from "@tamagui/use-element-layout";
|
|
24
|
-
export * from "./reactNativeTypes";
|
|
2
|
+
import { createMeasure, createMeasureInWindow, createMeasureLayout, enable, useElementLayout } from "@tamagui/use-element-layout";
|
|
3
|
+
import { TamaguiProvider as WebTamaguiProvider, Text as WebText, View as WebView, createTamagui as createTamaguiWeb, setupHooks, useIsomorphicLayoutEffect } from "@tamagui/web";
|
|
4
|
+
import { getBaseViews } from "./getBaseViews.mjs";
|
|
5
|
+
import { LayoutMeasurementController, registerLayoutNode, setOnLayoutStrategy } from "@tamagui/use-element-layout";
|
|
6
|
+
export * from "./reactNativeTypes.mjs";
|
|
25
7
|
import { jsx } from "react/jsx-runtime";
|
|
26
|
-
const TamaguiProvider =
|
|
27
|
-
|
|
28
|
-
}, []), /* @__PURE__ */
|
|
8
|
+
const TamaguiProvider = props => (useIsomorphicLayoutEffect(() => {
|
|
9
|
+
enable();
|
|
10
|
+
}, []), /* @__PURE__ */jsx(WebTamaguiProvider, {
|
|
11
|
+
...props
|
|
12
|
+
})),
|
|
13
|
+
createTamagui = conf => createTamaguiWeb(conf),
|
|
14
|
+
baseViews = getBaseViews();
|
|
29
15
|
setupHooks({
|
|
30
16
|
getBaseViews,
|
|
31
|
-
setElementProps:
|
|
17
|
+
setElementProps: node => {
|
|
32
18
|
node && !node.measure && (node.measure ||= createMeasure(node), node.measureInWindow ||= createMeasureInWindow(node), node.measureLayout ||= createMeasureLayout(node));
|
|
33
19
|
},
|
|
34
20
|
usePropsTransform(elementType, propsIn, stateRef, willHydrate) {
|
|
35
21
|
{
|
|
36
|
-
const isDOM = typeof elementType == "string",
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
22
|
+
const isDOM = typeof elementType == "string",
|
|
23
|
+
{
|
|
24
|
+
// remove event props handles by useResponderEvents
|
|
25
|
+
onMoveShouldSetResponder,
|
|
26
|
+
onMoveShouldSetResponderCapture,
|
|
27
|
+
onResponderEnd,
|
|
28
|
+
onResponderGrant,
|
|
29
|
+
onResponderMove,
|
|
30
|
+
onResponderReject,
|
|
31
|
+
onResponderRelease,
|
|
32
|
+
onResponderStart,
|
|
33
|
+
onResponderTerminate,
|
|
34
|
+
onResponderTerminationRequest,
|
|
35
|
+
onScrollShouldSetResponder,
|
|
36
|
+
onScrollShouldSetResponderCapture,
|
|
37
|
+
onSelectionChangeShouldSetResponder,
|
|
38
|
+
onSelectionChangeShouldSetResponderCapture,
|
|
39
|
+
onStartShouldSetResponder,
|
|
40
|
+
onStartShouldSetResponderCapture,
|
|
41
|
+
// android
|
|
42
|
+
collapsable,
|
|
43
|
+
focusable,
|
|
44
|
+
// deprecated,
|
|
45
|
+
accessible,
|
|
46
|
+
accessibilityDisabled,
|
|
47
|
+
onLayout,
|
|
48
|
+
hrefAttrs,
|
|
49
|
+
...plainDOMProps
|
|
50
|
+
} = propsIn;
|
|
64
51
|
if ((willHydrate || isDOM) && useElementLayout(stateRef, isDOM ? onLayout : void 0), isDOM) {
|
|
65
52
|
if (plainDOMProps.href && hrefAttrs) {
|
|
66
|
-
const {
|
|
53
|
+
const {
|
|
54
|
+
download,
|
|
55
|
+
rel,
|
|
56
|
+
target
|
|
57
|
+
} = hrefAttrs;
|
|
67
58
|
download != null && (plainDOMProps.download = download), rel && (plainDOMProps.rel = rel), typeof target == "string" && (plainDOMProps.target = target.charAt(0) !== "_" ? `_${target}` : target);
|
|
68
59
|
}
|
|
69
60
|
return plainDOMProps;
|
|
@@ -71,13 +62,7 @@ setupHooks({
|
|
|
71
62
|
}
|
|
72
63
|
}
|
|
73
64
|
});
|
|
74
|
-
const View = WebView,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
TamaguiProvider,
|
|
78
|
-
Text,
|
|
79
|
-
View,
|
|
80
|
-
createTamagui,
|
|
81
|
-
setOnLayoutStrategy
|
|
82
|
-
};
|
|
65
|
+
const View = WebView,
|
|
66
|
+
Text = WebText;
|
|
67
|
+
export { LayoutMeasurementController, TamaguiProvider, Text, View, createTamagui, registerLayoutNode, setOnLayoutStrategy };
|
|
83
68
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"mappings": "AACA,cAAc;AAEd,OAA4B;AAC5B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAaP;AAAA,EACE,mBAAmB;AAAA,EACnB,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,iBAAiB;AAAA,EACjB;AAAA,EACA;AAAA,OACK;AACP,OAAoC;AACpC,SAAS,oBAAoB;AAI7B;AAAA,EACE;AAAA,EACA;AAAA,OAEK;AA8BP,cAAc;AAQL;AALF,MAAM,kBAAkB,CAAC,WAC9B,0BAA0B,MAAM;AAC9B,SAAO;AACT,GAAG,CAAC,CAAC,GAEE,oBAAC,sBAAoB,GAAG,OAAO,IAI3B,gBAAyC,CAAC,SAM9C,iBAAiB,IAAI,GAGxB,YAAY,aAAa;AAI/B,WAAW;AAAA,EACT;AAAA,EAEA,iBAAiB,CAAC,SAAS;AAGvB,IAAI,QAAQ,CAAC,KAAK,YAChB,KAAK,YAAY,cAAc,IAAI,GACnC,KAAK,oBAAoB,sBAAsB,IAAI,GACnD,KAAK,kBAAkB,oBAAoB,IAAI;AAAA,EAGrD;AAAA,EAEA,kBAAkB,aAAa,SAAS,UAAU,aAAa;AACnB;AACxC,YAAM,QAAQ,OAAO,eAAgB,UAG/B;AAAA;AAAA,QAEJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,QAGA;AAAA,QACA;AAAA;AAAA,QAGA;AAAA,QACA;AAAA,QAEA;AAAA,QACA;AAAA,QAEA,GAAG;AAAA,MACL,IAAI;AAQJ,WANI,eAAe,UACjB,iBAAiB,UAAW,QAAqB,WAAb,MAA6B,GAK/D,OAAO;AAET,YAAI,cAAc,QAAQ,WAAW;AACnC,gBAAM,EAAE,UAAU,KAAK,OAAO,IAAI;AAClC,UAAI,YAAY,SACd,cAAc,WAAW,WAEvB,QACF,cAAc,MAAM,MAElB,OAAO,UAAW,aACpB,cAAc,SAAS,OAAO,OAAO,CAAC,MAAM,MAAM,IAAI,MAAM,KAAK;AAAA,QAErE;AACA,eAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AAgBF,CAAC;AAIM,MAAM,OAAO,SACP,OAAO;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["createMeasure","createMeasureInWindow","createMeasureLayout","enable","useElementLayout","TamaguiProvider","WebTamaguiProvider","Text","WebText","View","WebView","createTamagui","createTamaguiWeb","setupHooks","useIsomorphicLayoutEffect","getBaseViews","LayoutMeasurementController","registerLayoutNode","setOnLayoutStrategy","jsx","props","conf","baseViews","setElementProps","node","measure","measureInWindow","measureLayout","usePropsTransform","elementType","propsIn","stateRef","willHydrate","isDOM","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","collapsable","focusable","accessible","accessibilityDisabled","onLayout","hrefAttrs","plainDOMProps","href","download","rel","target","charAt"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AACA,cAAc;AAGd,SACEA,aAAA,EACAC,qBAAA,EACAC,mBAAA,EACAC,MAAA,EACAC,gBAAA,QACK;AAaP,SACEC,eAAA,IAAmBC,kBAAA,EACnBC,IAAA,IAAQC,OAAA,EACRC,IAAA,IAAQC,OAAA,EACRC,aAAA,IAAiBC,gBAAA,EACjBC,UAAA,EACAC,yBAAA,QACK;AAEP,SAASC,YAAA,QAAoB;AAI7B,SACEC,2BAAA,EACAC,kBAAA,EACAC,mBAAA,QAEK;AA8BP,cAAc;AAQL,SAAAC,GAAA;AALF,MAAMd,eAAA,GAAmBe,KAAA,KAC9BN,yBAAA,CAA0B,MAAM;IAC9BX,MAAA,CAAO;EACT,GAAG,EAAE,GAEE,eAAAgB,GAAA,CAACb,kBAAA;IAAoB,GAAGc;EAAA,CAAO;EAI3BT,aAAA,GAA0CU,IAAA,IAM9CT,gBAAA,CAAiBS,IAAI;EAGxBC,SAAA,GAAYP,YAAA,CAAa;AAI/BF,UAAA,CAAW;EACTE,YAAA;EAEAQ,eAAA,EAAkBC,IAAA,IAAS;IAGnBA,IAAA,IAAQ,CAACA,IAAA,CAAKC,OAAA,KAChBD,IAAA,CAAKC,OAAA,KAAYzB,aAAA,CAAcwB,IAAI,GACnCA,IAAA,CAAKE,eAAA,KAAoBzB,qBAAA,CAAsBuB,IAAI,GACnDA,IAAA,CAAKG,aAAA,KAAkBzB,mBAAA,CAAoBsB,IAAI;EAGrD;EAEAI,kBAAkBC,WAAA,EAAaC,OAAA,EAASC,QAAA,EAAUC,WAAA,EAAa;IACnB;MACxC,MAAMC,KAAA,GAAQ,OAAOJ,WAAA,IAAgB;QAG/B;UAAA;UAEJK,wBAAA;UACAC,+BAAA;UACAC,cAAA;UACAC,gBAAA;UACAC,eAAA;UACAC,iBAAA;UACAC,kBAAA;UACAC,gBAAA;UACAC,oBAAA;UACAC,6BAAA;UACAC,0BAAA;UACAC,iCAAA;UACAC,mCAAA;UACAC,0CAAA;UACAC,yBAAA;UACAC,gCAAA;UAAA;UAGAC,WAAA;UACAC,SAAA;UAAA;UAGAC,UAAA;UACAC,qBAAA;UAEAC,QAAA;UACAC,SAAA;UAEA,GAAGC;QACL,IAAI1B,OAAA;MAQJ,KANIE,WAAA,IAAeC,KAAA,KACjB7B,gBAAA,CAAiB2B,QAAA,EAAWE,KAAA,GAAqBqB,QAAA,GAAb,MAA6B,GAK/DrB,KAAA,EAAO;QAET,IAAIuB,aAAA,CAAcC,IAAA,IAAQF,SAAA,EAAW;UACnC,MAAM;YAAEG,QAAA;YAAUC,GAAA;YAAKC;UAAO,IAAIL,SAAA;UAC9BG,QAAA,IAAY,SACdF,aAAA,CAAcE,QAAA,GAAWA,QAAA,GAEvBC,GAAA,KACFH,aAAA,CAAcG,GAAA,GAAMA,GAAA,GAElB,OAAOC,MAAA,IAAW,aACpBJ,aAAA,CAAcI,MAAA,GAASA,MAAA,CAAOC,MAAA,CAAO,CAAC,MAAM,MAAM,IAAID,MAAM,KAAKA,MAAA;QAErE;QACA,OAAOJ,aAAA;MACT;IACF;EACF;AAgBF,CAAC;AAIM,MAAM/C,IAAA,GAAOC,OAAA;EACPH,IAAA,GAAOC,OAAA","ignoreList":[]}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export * from "@tamagui/web";
|
|
2
|
-
import "@tamagui/react-native-media-driver";
|
|
3
2
|
import { createMeasure, createMeasureInWindow, createMeasureLayout, enable, useElementLayout } from "@tamagui/use-element-layout";
|
|
4
3
|
import { TamaguiProvider as WebTamaguiProvider, Text as WebText, View as WebView, createTamagui as createTamaguiWeb, setupHooks, useIsomorphicLayoutEffect } from "@tamagui/web";
|
|
5
|
-
import "./createOptimizedView.mjs";
|
|
6
4
|
import { getBaseViews } from "./getBaseViews.mjs";
|
|
7
|
-
import { LayoutMeasurementController, setOnLayoutStrategy } from "@tamagui/use-element-layout";
|
|
5
|
+
import { LayoutMeasurementController, registerLayoutNode, setOnLayoutStrategy } from "@tamagui/use-element-layout";
|
|
8
6
|
export * from "./reactNativeTypes.mjs";
|
|
9
7
|
import { jsx } from "react/jsx-runtime";
|
|
10
8
|
const TamaguiProvider = props => (useIsomorphicLayoutEffect(() => {
|
|
@@ -66,5 +64,5 @@ setupHooks({
|
|
|
66
64
|
});
|
|
67
65
|
const View = WebView,
|
|
68
66
|
Text = WebText;
|
|
69
|
-
export { LayoutMeasurementController, TamaguiProvider, Text, View, createTamagui, setOnLayoutStrategy };
|
|
67
|
+
export { LayoutMeasurementController, TamaguiProvider, Text, View, createTamagui, registerLayoutNode, setOnLayoutStrategy };
|
|
70
68
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createMeasure","createMeasureInWindow","createMeasureLayout","enable","useElementLayout","TamaguiProvider","WebTamaguiProvider","Text","WebText","View","WebView","createTamagui","createTamaguiWeb","setupHooks","useIsomorphicLayoutEffect","getBaseViews","LayoutMeasurementController","setOnLayoutStrategy","jsx","props","conf","baseViews","setElementProps","node","measure","measureInWindow","measureLayout","usePropsTransform","elementType","propsIn","stateRef","willHydrate","isDOM","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","collapsable","focusable","accessible","accessibilityDisabled","onLayout","hrefAttrs","plainDOMProps","href","download","rel","target","charAt"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AACA,cAAc;
|
|
1
|
+
{"version":3,"names":["createMeasure","createMeasureInWindow","createMeasureLayout","enable","useElementLayout","TamaguiProvider","WebTamaguiProvider","Text","WebText","View","WebView","createTamagui","createTamaguiWeb","setupHooks","useIsomorphicLayoutEffect","getBaseViews","LayoutMeasurementController","registerLayoutNode","setOnLayoutStrategy","jsx","props","conf","baseViews","setElementProps","node","measure","measureInWindow","measureLayout","usePropsTransform","elementType","propsIn","stateRef","willHydrate","isDOM","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","collapsable","focusable","accessible","accessibilityDisabled","onLayout","hrefAttrs","plainDOMProps","href","download","rel","target","charAt"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AACA,cAAc;AAGd,SACEA,aAAA,EACAC,qBAAA,EACAC,mBAAA,EACAC,MAAA,EACAC,gBAAA,QACK;AAaP,SACEC,eAAA,IAAmBC,kBAAA,EACnBC,IAAA,IAAQC,OAAA,EACRC,IAAA,IAAQC,OAAA,EACRC,aAAA,IAAiBC,gBAAA,EACjBC,UAAA,EACAC,yBAAA,QACK;AAEP,SAASC,YAAA,QAAoB;AAI7B,SACEC,2BAAA,EACAC,kBAAA,EACAC,mBAAA,QAEK;AA8BP,cAAc;AAQL,SAAAC,GAAA;AALF,MAAMd,eAAA,GAAmBe,KAAA,KAC9BN,yBAAA,CAA0B,MAAM;IAC9BX,MAAA,CAAO;EACT,GAAG,EAAE,GAEE,eAAAgB,GAAA,CAACb,kBAAA;IAAoB,GAAGc;EAA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MAAA,IAAW,aACpBJ,aAAA,CAAcI,MAAA,GAASA,MAAA,CAAOC,MAAA,CAAO,CAAC,MAAM,MAAM,IAAID,MAAM,KAAKA,MAAA;QAErE;QACA,OAAOJ,aAAA;MACT;IACF;EACF;AAgBF,CAAC;AAIM,MAAM/C,IAAA,GAAOC,OAAA;EACPH,IAAA,GAAOC,OAAA","ignoreList":[]}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -5,7 +5,7 @@ import { enable } from "@tamagui/use-element-layout";
|
|
|
5
5
|
import { TamaguiProvider as WebTamaguiProvider, Text as WebText, View as WebView, createTamagui as createTamaguiWeb, setupHooks, useIsomorphicLayoutEffect } from "@tamagui/web";
|
|
6
6
|
import { createOptimizedView } from "./createOptimizedView.native.js";
|
|
7
7
|
import { getBaseViews } from "./getBaseViews.native.js";
|
|
8
|
-
import { LayoutMeasurementController, setOnLayoutStrategy } from "@tamagui/use-element-layout";
|
|
8
|
+
import { LayoutMeasurementController, registerLayoutNode, setOnLayoutStrategy } from "@tamagui/use-element-layout";
|
|
9
9
|
export * from "./reactNativeTypes.native.js";
|
|
10
10
|
var TamaguiProvider = function (props) {
|
|
11
11
|
return useIsomorphicLayoutEffect(function () {
|
|
@@ -35,5 +35,5 @@ setupHooks({
|
|
|
35
35
|
});
|
|
36
36
|
var View = WebView,
|
|
37
37
|
Text = WebText;
|
|
38
|
-
export { LayoutMeasurementController, TamaguiProvider, Text, View, createTamagui, setOnLayoutStrategy };
|
|
38
|
+
export { LayoutMeasurementController, TamaguiProvider, Text, View, createTamagui, registerLayoutNode, setOnLayoutStrategy };
|
|
39
39
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["jsx","_jsx","createMedia","enable","TamaguiProvider","WebTamaguiProvider","Text","WebText","View","WebView","createTamagui","createTamaguiWeb","setupHooks","useIsomorphicLayoutEffect","createOptimizedView","getBaseViews","LayoutMeasurementController","setOnLayoutStrategy","props","conf","media","baseViews","setElementProps","node","measure","_node","_node1","_node2","usePropsTransform","elementType","propsIn","stateRef","willHydrate","isDOM","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","collapsable","focusable","accessible","accessibilityDisabled","onLayout","hrefAttrs","plainDOMProps","href","download","rel","target","useChildren","children","viewProps","process","env","NODE_ENV","TextAncestor"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AACA,SAAAA,GAAA,IAAcC,IAAA;AAEd,cAA4B;AAC5B,SAAAC,WAAA;AAAA,SACEC,MAAA;AAAA,SACAC,eAAA,IAAAC,kBAAA,EAAAC,IAAA,IAAAC,OAAA,EAAAC,IAAA,IAAAC,OAAA,EAAAC,aAAA,IAAAC,gBAAA,EAAAC,UAAA,EAAAC,yBAAA;AAAA,SACAC,mBAAA;AAAA,SACAC,YAAA;AAAA,SACAC,2BAAA,EAAAC,mBAAA;AAAA,cACK;AAaP,
|
|
1
|
+
{"version":3,"names":["jsx","_jsx","createMedia","enable","TamaguiProvider","WebTamaguiProvider","Text","WebText","View","WebView","createTamagui","createTamaguiWeb","setupHooks","useIsomorphicLayoutEffect","createOptimizedView","getBaseViews","LayoutMeasurementController","registerLayoutNode","setOnLayoutStrategy","props","conf","media","baseViews","setElementProps","node","measure","_node","_node1","_node2","usePropsTransform","elementType","propsIn","stateRef","willHydrate","isDOM","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture","collapsable","focusable","accessible","accessibilityDisabled","onLayout","hrefAttrs","plainDOMProps","href","download","rel","target","useChildren","children","viewProps","process","env","NODE_ENV","TextAncestor"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AACA,SAAAA,GAAA,IAAcC,IAAA;AAEd,cAA4B;AAC5B,SAAAC,WAAA;AAAA,SACEC,MAAA;AAAA,SACAC,eAAA,IAAAC,kBAAA,EAAAC,IAAA,IAAAC,OAAA,EAAAC,IAAA,IAAAC,OAAA,EAAAC,aAAA,IAAAC,gBAAA,EAAAC,UAAA,EAAAC,yBAAA;AAAA,SACAC,mBAAA;AAAA,SACAC,YAAA;AAAA,SACAC,2BAAA,EAAAC,kBAAA,EAAAC,mBAAA;AAAA,cACK;AAaP,IAAAd,eAAA,YAAAA,CAAAe,KAAA;IACE,OAAAN,yBAAmB;MACnBV,MAAQ;IACR,QAAQ,eAAAF,IAAA,CAAAI,kBAAA;MACR,GAAAc;IACA;EAAA;EACAT,aAAA,YAAAA,CAAAU,IAAA;IAAA,OACKA,IAAA,CAAAC,KAAA,KAAAD,IAAA,CAAAC,KAAA,GAAAnB,WAAA,CAAAkB,IAAA,CAAAC,KAAA,IAAAV,gBAAA,CAAAS,IAAA;EACP;EAAAE,SAAoC,GAAAP,YAAA;AACpCH,UAAS;EAITG,YAAA;EACEQ,eAAA,WAAAA,CAAAC,IAAA;IACA,SAAAA,IAAA,KAAAA,IAAA,CAAAC,OAAA,EACA,IAAAC,KAAA,EAAAC,MAAA,EAAAC,MAAA;EAAA;EAgCFC,iBAAcA,CAAAC,WAAA,EAAAC,OAAA,EAAAC,QAAA,EAAAC,WAAA;IAQL;MALI,IAAAC,KAAA,EAAAC,wBACX,EAAAC,+BAAgC,EAAAC,cAAA,EAAAC,gBAAA,EAAAC,eAAA,EAAAC,iBAAA,EAAAC,kBAAA,EAAAC,gBAAA,EAAAC,oBAAA,EAAAC,6BAAA,EAAAC,0BAAA,EAAAC,iCAAA,EAAAC,mCAAA,EA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