tamagui 3.0.3 → 3.0.5
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/native.cjs +114 -65
- package/dist/test.cjs +114 -65
- package/package.json +67 -67
package/dist/native.cjs
CHANGED
|
@@ -15500,22 +15500,7 @@ function resolveCompiledMapping(compiled, stateName, theme) {
|
|
|
15500
15500
|
renderProps = normalizeNativeStyle(renderProps, true);
|
|
15501
15501
|
var _engine_processStyleColors;
|
|
15502
15502
|
var nativeProps = (_engine_processStyleColors = engine === null || engine === void 0 ? void 0 : engine.processStyleColors(renderProps)) !== null && _engine_processStyleColors !== void 0 ? _engine_processStyleColors : renderProps;
|
|
15503
|
-
if (compiled.states.size >= 1e4)
|
|
15504
|
-
compiled.states.clear();
|
|
15505
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
15506
|
-
try {
|
|
15507
|
-
for (var _iterator = compiled.links[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _step.value.stateThemes.clear();
|
|
15508
|
-
} catch (err) {
|
|
15509
|
-
_didIteratorError = true;
|
|
15510
|
-
_iteratorError = err;
|
|
15511
|
-
} finally {
|
|
15512
|
-
try {
|
|
15513
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
15514
|
-
} finally {
|
|
15515
|
-
if (_didIteratorError) throw _iteratorError;
|
|
15516
|
-
}
|
|
15517
|
-
}
|
|
15518
|
-
}
|
|
15503
|
+
if (compiled.states.size >= 1e4) compiled.states.clear();
|
|
15519
15504
|
var resolved = {
|
|
15520
15505
|
theme,
|
|
15521
15506
|
renderProps,
|
|
@@ -15524,10 +15509,19 @@ function resolveCompiledMapping(compiled, stateName, theme) {
|
|
|
15524
15509
|
compiled.states.set(stateName, resolved);
|
|
15525
15510
|
return resolved;
|
|
15526
15511
|
}
|
|
15512
|
+
function syncTableState(compiled, stateName, theme) {
|
|
15513
|
+
var resolved = resolveCompiledMapping(compiled, stateName, theme);
|
|
15514
|
+
if (compiled.sent.get(stateName) === resolved) return;
|
|
15515
|
+
compiled.sent.set(stateName, resolved);
|
|
15516
|
+
engine.setTableState(compiled.tableId, stateName, resolved.nativeProps);
|
|
15517
|
+
}
|
|
15527
15518
|
function setNativeStyleEngine(next) {
|
|
15528
15519
|
if (engine !== next) {
|
|
15520
|
+
settleReleases();
|
|
15529
15521
|
compiledMappings.clear();
|
|
15530
|
-
|
|
15522
|
+
scopeMappings.clear();
|
|
15523
|
+
pendingLinks = [];
|
|
15524
|
+
unlinkedPending = 0;
|
|
15531
15525
|
}
|
|
15532
15526
|
engine = next;
|
|
15533
15527
|
if (next) {
|
|
@@ -15555,53 +15549,31 @@ function getNativeStyleEngine() {
|
|
|
15555
15549
|
function updateNativeStyleScope(scopeId, stateName, theme) {
|
|
15556
15550
|
var previous = scopeStates.get(scopeId);
|
|
15557
15551
|
if ((previous === null || previous === void 0 ? void 0 : previous.name) === stateName && previous.theme === theme) return;
|
|
15552
|
+
flushNativeStyleLinks();
|
|
15558
15553
|
scopeStates.set(scopeId, {
|
|
15559
15554
|
name: stateName,
|
|
15560
15555
|
theme
|
|
15561
15556
|
});
|
|
15562
15557
|
if (engine) {
|
|
15563
|
-
var
|
|
15564
|
-
|
|
15565
|
-
|
|
15566
|
-
|
|
15567
|
-
var
|
|
15568
|
-
|
|
15569
|
-
|
|
15558
|
+
var linked = scopeMappings.get(scopeId);
|
|
15559
|
+
if (linked) {
|
|
15560
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
15561
|
+
try {
|
|
15562
|
+
for (var _iterator = linked.keys()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
15563
|
+
var compiled = _step.value;
|
|
15564
|
+
syncTableState(compiled, stateName, theme);
|
|
15565
|
+
}
|
|
15566
|
+
} catch (err) {
|
|
15567
|
+
_didIteratorError = true;
|
|
15568
|
+
_iteratorError = err;
|
|
15569
|
+
} finally {
|
|
15570
15570
|
try {
|
|
15571
|
-
|
|
15572
|
-
var link = _step1.value;
|
|
15573
|
-
if (link.scopeId !== scopeId) continue;
|
|
15574
|
-
if (link.stateThemes.get(stateName) === theme) continue;
|
|
15575
|
-
props || (props = resolveCompiledMapping(compiled, stateName, theme).nativeProps);
|
|
15576
|
-
entries.push({
|
|
15577
|
-
id: link.handle.id,
|
|
15578
|
-
state: stateName,
|
|
15579
|
-
props
|
|
15580
|
-
});
|
|
15581
|
-
link.stateThemes.set(stateName, theme);
|
|
15582
|
-
}
|
|
15583
|
-
} catch (err) {
|
|
15584
|
-
_didIteratorError1 = true;
|
|
15585
|
-
_iteratorError1 = err;
|
|
15571
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
15586
15572
|
} finally {
|
|
15587
|
-
|
|
15588
|
-
if (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();
|
|
15589
|
-
} finally {
|
|
15590
|
-
if (_didIteratorError1) throw _iteratorError1;
|
|
15591
|
-
}
|
|
15573
|
+
if (_didIteratorError) throw _iteratorError;
|
|
15592
15574
|
}
|
|
15593
15575
|
}
|
|
15594
|
-
} catch (err) {
|
|
15595
|
-
_didIteratorError = true;
|
|
15596
|
-
_iteratorError = err;
|
|
15597
|
-
} finally {
|
|
15598
|
-
try {
|
|
15599
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
15600
|
-
} finally {
|
|
15601
|
-
if (_didIteratorError) throw _iteratorError;
|
|
15602
|
-
}
|
|
15603
15576
|
}
|
|
15604
|
-
if (entries.length) engine.updateViewStateTables(entries);
|
|
15605
15577
|
}
|
|
15606
15578
|
engine === null || engine === void 0 || engine.setStateName(stateName, scopeId);
|
|
15607
15579
|
}
|
|
@@ -15609,6 +15581,80 @@ function removeNativeStyleScope(scopeId) {
|
|
|
15609
15581
|
if (!scopeStates.delete(scopeId)) return;
|
|
15610
15582
|
engine === null || engine === void 0 || engine.removeScope(scopeId);
|
|
15611
15583
|
}
|
|
15584
|
+
function trackScopeMapping(link, delta) {
|
|
15585
|
+
var linked = scopeMappings.get(link.scopeId);
|
|
15586
|
+
if (!linked) scopeMappings.set(link.scopeId, linked = /* @__PURE__ */ new Map());
|
|
15587
|
+
var _linked_get;
|
|
15588
|
+
var count = ((_linked_get = linked.get(link.compiled)) !== null && _linked_get !== void 0 ? _linked_get : 0) + delta;
|
|
15589
|
+
if (count) linked.set(link.compiled, count);
|
|
15590
|
+
else {
|
|
15591
|
+
linked.delete(link.compiled);
|
|
15592
|
+
if (!linked.size) scopeMappings.delete(link.scopeId);
|
|
15593
|
+
}
|
|
15594
|
+
}
|
|
15595
|
+
function flushNativeStyleLinks() {
|
|
15596
|
+
settleReleases();
|
|
15597
|
+
if (!pendingLinks.length) return;
|
|
15598
|
+
var links = pendingLinks;
|
|
15599
|
+
pendingLinks = [];
|
|
15600
|
+
unlinkedPending = 0;
|
|
15601
|
+
if (!engine) return;
|
|
15602
|
+
var live = links.filter(function(link2) {
|
|
15603
|
+
return link2.id === 0;
|
|
15604
|
+
});
|
|
15605
|
+
if (!live.length) return;
|
|
15606
|
+
var refs = [];
|
|
15607
|
+
var tableIds = [];
|
|
15608
|
+
var scopeIndexes = [];
|
|
15609
|
+
var scopes = [];
|
|
15610
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
15611
|
+
try {
|
|
15612
|
+
for (var _iterator = live[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
15613
|
+
var link = _step.value;
|
|
15614
|
+
var scopeIndex = scopes.indexOf(link.scopeId);
|
|
15615
|
+
if (scopeIndex === -1) scopeIndex = scopes.push(link.scopeId) - 1;
|
|
15616
|
+
refs.push(link.ref);
|
|
15617
|
+
tableIds.push(link.compiled.tableId);
|
|
15618
|
+
scopeIndexes.push(scopeIndex);
|
|
15619
|
+
}
|
|
15620
|
+
} catch (err) {
|
|
15621
|
+
_didIteratorError = true;
|
|
15622
|
+
_iteratorError = err;
|
|
15623
|
+
} finally {
|
|
15624
|
+
try {
|
|
15625
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
15626
|
+
} finally {
|
|
15627
|
+
if (_didIteratorError) throw _iteratorError;
|
|
15628
|
+
}
|
|
15629
|
+
}
|
|
15630
|
+
var firstId = engine.linkTables(refs, tableIds, scopeIndexes, scopes);
|
|
15631
|
+
for (var i = 0; i < live.length; i++) {
|
|
15632
|
+
var link1 = live[i];
|
|
15633
|
+
link1.id = firstId + i;
|
|
15634
|
+
link1.owner = engine;
|
|
15635
|
+
link1.ref = null;
|
|
15636
|
+
trackScopeMapping(link1, 1);
|
|
15637
|
+
}
|
|
15638
|
+
}
|
|
15639
|
+
function settleReleases() {
|
|
15640
|
+
settleQueued = false;
|
|
15641
|
+
if (!releases.size) return;
|
|
15642
|
+
var settling = [...releases.values()];
|
|
15643
|
+
releases.clear();
|
|
15644
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
15645
|
+
try {
|
|
15646
|
+
for (var _iterator = settling[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _step.value.settle();
|
|
15647
|
+
} catch (err) {
|
|
15648
|
+
_didIteratorError = true;
|
|
15649
|
+
_iteratorError = err;
|
|
15650
|
+
} finally {
|
|
15651
|
+
try {
|
|
15652
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
15653
|
+
} finally {
|
|
15654
|
+
if (_didIteratorError) throw _iteratorError;
|
|
15655
|
+
}
|
|
15656
|
+
}
|
|
15657
|
+
}
|
|
15612
15658
|
function updateNativeStyleLink(ref, host) {
|
|
15613
15659
|
if (ref.nativeLink) {
|
|
15614
15660
|
ref.nativeLink.unlink();
|
|
@@ -15630,7 +15676,7 @@ function queueNativeViewState(entry) {
|
|
|
15630
15676
|
}
|
|
15631
15677
|
pending.push(entry);
|
|
15632
15678
|
}
|
|
15633
|
-
var nativeTextInputColorProps, nativeOutlineProps, nativeIntrinsicSizeProps, engine, scopeStates, compiledMappings,
|
|
15679
|
+
var nativeTextInputColorProps, nativeOutlineProps, nativeIntrinsicSizeProps, engine, scopeStates, compiledMappings, scopeMappings, pendingLinks, unlinkedPending, releases, settleQueued, pending, flushListener;
|
|
15634
15680
|
var init_nativeStyleEngine_native = __esmMin((() => {
|
|
15635
15681
|
init_createVariable_native();
|
|
15636
15682
|
init_objectSpread2();
|
|
@@ -15657,9 +15703,20 @@ var init_nativeStyleEngine_native = __esmMin((() => {
|
|
|
15657
15703
|
engine = null;
|
|
15658
15704
|
scopeStates = /* @__PURE__ */ new Map();
|
|
15659
15705
|
compiledMappings = /* @__PURE__ */ new Map();
|
|
15660
|
-
|
|
15706
|
+
scopeMappings = /* @__PURE__ */ new Map();
|
|
15707
|
+
pendingLinks = [];
|
|
15708
|
+
releases = /* @__PURE__ */ new Map();
|
|
15661
15709
|
pending = null;
|
|
15662
15710
|
flushListener = null;
|
|
15711
|
+
}));
|
|
15712
|
+
//#endregion
|
|
15713
|
+
//#region ../../core/web/dist/esm/setupHooks.native.js
|
|
15714
|
+
function setupHooks$1(next) {
|
|
15715
|
+
Object.assign(hooks, next);
|
|
15716
|
+
}
|
|
15717
|
+
var hooks;
|
|
15718
|
+
var init_setupHooks_native = __esmMin((() => {
|
|
15719
|
+
hooks = {};
|
|
15663
15720
|
})), defaultComponentState, defaultComponentStateMounted;
|
|
15664
15721
|
var init_defaultComponentState_native = __esmMin((() => {
|
|
15665
15722
|
init_objectSpread2();
|
|
@@ -19415,15 +19472,6 @@ var init_useSplitStyles_native = __esmMin((() => {
|
|
|
19415
19472
|
};
|
|
19416
19473
|
}));
|
|
19417
19474
|
//#endregion
|
|
19418
|
-
//#region ../../core/web/dist/esm/setupHooks.native.js
|
|
19419
|
-
function setupHooks$1(next) {
|
|
19420
|
-
Object.assign(hooks, next);
|
|
19421
|
-
}
|
|
19422
|
-
var hooks;
|
|
19423
|
-
var init_setupHooks_native = __esmMin((() => {
|
|
19424
|
-
hooks = {};
|
|
19425
|
-
}));
|
|
19426
|
-
//#endregion
|
|
19427
19475
|
//#region ../../core/web/dist/esm/views/Slot.native.js
|
|
19428
19476
|
function mergeSlotProps(child, slotProps) {
|
|
19429
19477
|
var childProps = child.props;
|
|
@@ -23666,6 +23714,7 @@ function getBaseViews() {
|
|
|
23666
23714
|
View: rn.View || ((_rn_default = rn.default) === null || _rn_default === void 0 ? void 0 : _rn_default.View),
|
|
23667
23715
|
Text: rn.Text || ((_rn_default1 = rn.default) === null || _rn_default1 === void 0 ? void 0 : _rn_default1.Text),
|
|
23668
23716
|
TextAncestor: rn.unstable_TextAncestorContext,
|
|
23717
|
+
NativeText: rn.unstable_NativeText,
|
|
23669
23718
|
StyleSheet: rn.StyleSheet || ((_rn_default2 = rn.default) === null || _rn_default2 === void 0 ? void 0 : _rn_default2.StyleSheet),
|
|
23670
23719
|
Pressable: rn.Pressable || ((_rn_default3 = rn.default) === null || _rn_default3 === void 0 ? void 0 : _rn_default3.Pressable)
|
|
23671
23720
|
};
|
package/dist/test.cjs
CHANGED
|
@@ -15703,22 +15703,7 @@ function resolveCompiledMapping(compiled, stateName, theme) {
|
|
|
15703
15703
|
renderProps = normalizeNativeStyle(renderProps, true);
|
|
15704
15704
|
var _engine_processStyleColors;
|
|
15705
15705
|
var nativeProps = (_engine_processStyleColors = engine === null || engine === void 0 ? void 0 : engine.processStyleColors(renderProps)) !== null && _engine_processStyleColors !== void 0 ? _engine_processStyleColors : renderProps;
|
|
15706
|
-
if (compiled.states.size >= 1e4)
|
|
15707
|
-
compiled.states.clear();
|
|
15708
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
15709
|
-
try {
|
|
15710
|
-
for (var _iterator = compiled.links[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _step.value.stateThemes.clear();
|
|
15711
|
-
} catch (err) {
|
|
15712
|
-
_didIteratorError = true;
|
|
15713
|
-
_iteratorError = err;
|
|
15714
|
-
} finally {
|
|
15715
|
-
try {
|
|
15716
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
15717
|
-
} finally {
|
|
15718
|
-
if (_didIteratorError) throw _iteratorError;
|
|
15719
|
-
}
|
|
15720
|
-
}
|
|
15721
|
-
}
|
|
15706
|
+
if (compiled.states.size >= 1e4) compiled.states.clear();
|
|
15722
15707
|
var resolved = {
|
|
15723
15708
|
theme,
|
|
15724
15709
|
renderProps,
|
|
@@ -15727,10 +15712,19 @@ function resolveCompiledMapping(compiled, stateName, theme) {
|
|
|
15727
15712
|
compiled.states.set(stateName, resolved);
|
|
15728
15713
|
return resolved;
|
|
15729
15714
|
}
|
|
15715
|
+
function syncTableState(compiled, stateName, theme) {
|
|
15716
|
+
var resolved = resolveCompiledMapping(compiled, stateName, theme);
|
|
15717
|
+
if (compiled.sent.get(stateName) === resolved) return;
|
|
15718
|
+
compiled.sent.set(stateName, resolved);
|
|
15719
|
+
engine.setTableState(compiled.tableId, stateName, resolved.nativeProps);
|
|
15720
|
+
}
|
|
15730
15721
|
function setNativeStyleEngine(next) {
|
|
15731
15722
|
if (engine !== next) {
|
|
15723
|
+
settleReleases();
|
|
15732
15724
|
compiledMappings.clear();
|
|
15733
|
-
|
|
15725
|
+
scopeMappings.clear();
|
|
15726
|
+
pendingLinks = [];
|
|
15727
|
+
unlinkedPending = 0;
|
|
15734
15728
|
}
|
|
15735
15729
|
engine = next;
|
|
15736
15730
|
if (next) {
|
|
@@ -15758,53 +15752,31 @@ function getNativeStyleEngine() {
|
|
|
15758
15752
|
function updateNativeStyleScope(scopeId, stateName, theme) {
|
|
15759
15753
|
var previous = scopeStates.get(scopeId);
|
|
15760
15754
|
if ((previous === null || previous === void 0 ? void 0 : previous.name) === stateName && previous.theme === theme) return;
|
|
15755
|
+
flushNativeStyleLinks();
|
|
15761
15756
|
scopeStates.set(scopeId, {
|
|
15762
15757
|
name: stateName,
|
|
15763
15758
|
theme
|
|
15764
15759
|
});
|
|
15765
15760
|
if (engine) {
|
|
15766
|
-
var
|
|
15767
|
-
|
|
15768
|
-
|
|
15769
|
-
|
|
15770
|
-
var
|
|
15771
|
-
|
|
15772
|
-
|
|
15761
|
+
var linked = scopeMappings.get(scopeId);
|
|
15762
|
+
if (linked) {
|
|
15763
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
15764
|
+
try {
|
|
15765
|
+
for (var _iterator = linked.keys()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
15766
|
+
var compiled = _step.value;
|
|
15767
|
+
syncTableState(compiled, stateName, theme);
|
|
15768
|
+
}
|
|
15769
|
+
} catch (err) {
|
|
15770
|
+
_didIteratorError = true;
|
|
15771
|
+
_iteratorError = err;
|
|
15772
|
+
} finally {
|
|
15773
15773
|
try {
|
|
15774
|
-
|
|
15775
|
-
var link = _step1.value;
|
|
15776
|
-
if (link.scopeId !== scopeId) continue;
|
|
15777
|
-
if (link.stateThemes.get(stateName) === theme) continue;
|
|
15778
|
-
props || (props = resolveCompiledMapping(compiled, stateName, theme).nativeProps);
|
|
15779
|
-
entries.push({
|
|
15780
|
-
id: link.handle.id,
|
|
15781
|
-
state: stateName,
|
|
15782
|
-
props
|
|
15783
|
-
});
|
|
15784
|
-
link.stateThemes.set(stateName, theme);
|
|
15785
|
-
}
|
|
15786
|
-
} catch (err) {
|
|
15787
|
-
_didIteratorError1 = true;
|
|
15788
|
-
_iteratorError1 = err;
|
|
15774
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
15789
15775
|
} finally {
|
|
15790
|
-
|
|
15791
|
-
if (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();
|
|
15792
|
-
} finally {
|
|
15793
|
-
if (_didIteratorError1) throw _iteratorError1;
|
|
15794
|
-
}
|
|
15776
|
+
if (_didIteratorError) throw _iteratorError;
|
|
15795
15777
|
}
|
|
15796
15778
|
}
|
|
15797
|
-
} catch (err) {
|
|
15798
|
-
_didIteratorError = true;
|
|
15799
|
-
_iteratorError = err;
|
|
15800
|
-
} finally {
|
|
15801
|
-
try {
|
|
15802
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
15803
|
-
} finally {
|
|
15804
|
-
if (_didIteratorError) throw _iteratorError;
|
|
15805
|
-
}
|
|
15806
15779
|
}
|
|
15807
|
-
if (entries.length) engine.updateViewStateTables(entries);
|
|
15808
15780
|
}
|
|
15809
15781
|
engine === null || engine === void 0 || engine.setStateName(stateName, scopeId);
|
|
15810
15782
|
}
|
|
@@ -15812,6 +15784,80 @@ function removeNativeStyleScope(scopeId) {
|
|
|
15812
15784
|
if (!scopeStates.delete(scopeId)) return;
|
|
15813
15785
|
engine === null || engine === void 0 || engine.removeScope(scopeId);
|
|
15814
15786
|
}
|
|
15787
|
+
function trackScopeMapping(link, delta) {
|
|
15788
|
+
var linked = scopeMappings.get(link.scopeId);
|
|
15789
|
+
if (!linked) scopeMappings.set(link.scopeId, linked = /* @__PURE__ */ new Map());
|
|
15790
|
+
var _linked_get;
|
|
15791
|
+
var count = ((_linked_get = linked.get(link.compiled)) !== null && _linked_get !== void 0 ? _linked_get : 0) + delta;
|
|
15792
|
+
if (count) linked.set(link.compiled, count);
|
|
15793
|
+
else {
|
|
15794
|
+
linked.delete(link.compiled);
|
|
15795
|
+
if (!linked.size) scopeMappings.delete(link.scopeId);
|
|
15796
|
+
}
|
|
15797
|
+
}
|
|
15798
|
+
function flushNativeStyleLinks() {
|
|
15799
|
+
settleReleases();
|
|
15800
|
+
if (!pendingLinks.length) return;
|
|
15801
|
+
var links = pendingLinks;
|
|
15802
|
+
pendingLinks = [];
|
|
15803
|
+
unlinkedPending = 0;
|
|
15804
|
+
if (!engine) return;
|
|
15805
|
+
var live = links.filter(function(link2) {
|
|
15806
|
+
return link2.id === 0;
|
|
15807
|
+
});
|
|
15808
|
+
if (!live.length) return;
|
|
15809
|
+
var refs = [];
|
|
15810
|
+
var tableIds = [];
|
|
15811
|
+
var scopeIndexes = [];
|
|
15812
|
+
var scopes = [];
|
|
15813
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
15814
|
+
try {
|
|
15815
|
+
for (var _iterator = live[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
15816
|
+
var link = _step.value;
|
|
15817
|
+
var scopeIndex = scopes.indexOf(link.scopeId);
|
|
15818
|
+
if (scopeIndex === -1) scopeIndex = scopes.push(link.scopeId) - 1;
|
|
15819
|
+
refs.push(link.ref);
|
|
15820
|
+
tableIds.push(link.compiled.tableId);
|
|
15821
|
+
scopeIndexes.push(scopeIndex);
|
|
15822
|
+
}
|
|
15823
|
+
} catch (err) {
|
|
15824
|
+
_didIteratorError = true;
|
|
15825
|
+
_iteratorError = err;
|
|
15826
|
+
} finally {
|
|
15827
|
+
try {
|
|
15828
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
15829
|
+
} finally {
|
|
15830
|
+
if (_didIteratorError) throw _iteratorError;
|
|
15831
|
+
}
|
|
15832
|
+
}
|
|
15833
|
+
var firstId = engine.linkTables(refs, tableIds, scopeIndexes, scopes);
|
|
15834
|
+
for (var i = 0; i < live.length; i++) {
|
|
15835
|
+
var link1 = live[i];
|
|
15836
|
+
link1.id = firstId + i;
|
|
15837
|
+
link1.owner = engine;
|
|
15838
|
+
link1.ref = null;
|
|
15839
|
+
trackScopeMapping(link1, 1);
|
|
15840
|
+
}
|
|
15841
|
+
}
|
|
15842
|
+
function settleReleases() {
|
|
15843
|
+
settleQueued = false;
|
|
15844
|
+
if (!releases.size) return;
|
|
15845
|
+
var settling = [...releases.values()];
|
|
15846
|
+
releases.clear();
|
|
15847
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
15848
|
+
try {
|
|
15849
|
+
for (var _iterator = settling[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _step.value.settle();
|
|
15850
|
+
} catch (err) {
|
|
15851
|
+
_didIteratorError = true;
|
|
15852
|
+
_iteratorError = err;
|
|
15853
|
+
} finally {
|
|
15854
|
+
try {
|
|
15855
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
15856
|
+
} finally {
|
|
15857
|
+
if (_didIteratorError) throw _iteratorError;
|
|
15858
|
+
}
|
|
15859
|
+
}
|
|
15860
|
+
}
|
|
15815
15861
|
function updateNativeStyleLink(ref, host) {
|
|
15816
15862
|
if (ref.nativeLink) {
|
|
15817
15863
|
ref.nativeLink.unlink();
|
|
@@ -15833,7 +15879,7 @@ function queueNativeViewState(entry) {
|
|
|
15833
15879
|
}
|
|
15834
15880
|
pending.push(entry);
|
|
15835
15881
|
}
|
|
15836
|
-
var nativeTextInputColorProps, nativeOutlineProps, nativeIntrinsicSizeProps, engine, scopeStates, compiledMappings,
|
|
15882
|
+
var nativeTextInputColorProps, nativeOutlineProps, nativeIntrinsicSizeProps, engine, scopeStates, compiledMappings, scopeMappings, pendingLinks, unlinkedPending, releases, settleQueued, pending, flushListener;
|
|
15837
15883
|
var init_nativeStyleEngine_native = __esmMin((() => {
|
|
15838
15884
|
init_createVariable_native();
|
|
15839
15885
|
init_objectSpread2();
|
|
@@ -15860,9 +15906,20 @@ var init_nativeStyleEngine_native = __esmMin((() => {
|
|
|
15860
15906
|
engine = null;
|
|
15861
15907
|
scopeStates = /* @__PURE__ */ new Map();
|
|
15862
15908
|
compiledMappings = /* @__PURE__ */ new Map();
|
|
15863
|
-
|
|
15909
|
+
scopeMappings = /* @__PURE__ */ new Map();
|
|
15910
|
+
pendingLinks = [];
|
|
15911
|
+
releases = /* @__PURE__ */ new Map();
|
|
15864
15912
|
pending = null;
|
|
15865
15913
|
flushListener = null;
|
|
15914
|
+
}));
|
|
15915
|
+
//#endregion
|
|
15916
|
+
//#region ../../core/web/dist/esm/setupHooks.native.js
|
|
15917
|
+
function setupHooks$1(next) {
|
|
15918
|
+
Object.assign(hooks, next);
|
|
15919
|
+
}
|
|
15920
|
+
var hooks;
|
|
15921
|
+
var init_setupHooks_native = __esmMin((() => {
|
|
15922
|
+
hooks = {};
|
|
15866
15923
|
})), defaultComponentState, defaultComponentStateMounted;
|
|
15867
15924
|
var init_defaultComponentState_native = __esmMin((() => {
|
|
15868
15925
|
init_objectSpread2();
|
|
@@ -19632,15 +19689,6 @@ var init_useSplitStyles_native = __esmMin((() => {
|
|
|
19632
19689
|
};
|
|
19633
19690
|
}));
|
|
19634
19691
|
//#endregion
|
|
19635
|
-
//#region ../../core/web/dist/esm/setupHooks.native.js
|
|
19636
|
-
function setupHooks$1(next) {
|
|
19637
|
-
Object.assign(hooks, next);
|
|
19638
|
-
}
|
|
19639
|
-
var hooks;
|
|
19640
|
-
var init_setupHooks_native = __esmMin((() => {
|
|
19641
|
-
hooks = {};
|
|
19642
|
-
}));
|
|
19643
|
-
//#endregion
|
|
19644
19692
|
//#region ../../core/web/dist/esm/views/Slot.native.js
|
|
19645
19693
|
function mergeSlotProps(child, slotProps) {
|
|
19646
19694
|
var childProps = child.props;
|
|
@@ -23784,6 +23832,7 @@ function getBaseViews() {
|
|
|
23784
23832
|
View: rn.View || ((_rn_default = rn.default) === null || _rn_default === void 0 ? void 0 : _rn_default.View),
|
|
23785
23833
|
Text: rn.Text || ((_rn_default1 = rn.default) === null || _rn_default1 === void 0 ? void 0 : _rn_default1.Text),
|
|
23786
23834
|
TextAncestor: rn.unstable_TextAncestorContext,
|
|
23835
|
+
NativeText: rn.unstable_NativeText,
|
|
23787
23836
|
StyleSheet: rn.StyleSheet || ((_rn_default2 = rn.default) === null || _rn_default2 === void 0 ? void 0 : _rn_default2.StyleSheet),
|
|
23788
23837
|
Pressable: rn.Pressable || ((_rn_default3 = rn.default) === null || _rn_default3 === void 0 ? void 0 : _rn_default3.Pressable)
|
|
23789
23838
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tamagui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
6
6
|
"description": "Style and UI for React (web and native) meet an optimizing compiler",
|
|
@@ -315,73 +315,73 @@
|
|
|
315
315
|
"check-circular-deps": "npx madge --circular ./src/index.ts"
|
|
316
316
|
},
|
|
317
317
|
"dependencies": {
|
|
318
|
-
"@tamagui/accordion": "3.0.
|
|
319
|
-
"@tamagui/adapt": "3.0.
|
|
320
|
-
"@tamagui/alert-dialog": "3.0.
|
|
321
|
-
"@tamagui/animate": "3.0.
|
|
322
|
-
"@tamagui/animate-presence": "3.0.
|
|
323
|
-
"@tamagui/avatar": "3.0.
|
|
324
|
-
"@tamagui/button": "3.0.
|
|
325
|
-
"@tamagui/card": "3.0.
|
|
326
|
-
"@tamagui/checkbox": "3.0.
|
|
327
|
-
"@tamagui/collapsible": "3.0.
|
|
328
|
-
"@tamagui/compose-refs": "3.0.
|
|
329
|
-
"@tamagui/constants": "3.0.
|
|
330
|
-
"@tamagui/context-menu": "3.0.
|
|
331
|
-
"@tamagui/core": "3.0.
|
|
332
|
-
"@tamagui/create-context": "3.0.
|
|
333
|
-
"@tamagui/create-menu": "3.0.
|
|
334
|
-
"@tamagui/dialog": "3.0.
|
|
335
|
-
"@tamagui/element": "3.0.
|
|
336
|
-
"@tamagui/fake-react-native": "3.0.
|
|
337
|
-
"@tamagui/field": "3.0.
|
|
338
|
-
"@tamagui/focusable": "3.0.
|
|
339
|
-
"@tamagui/font-size": "3.0.
|
|
340
|
-
"@tamagui/form": "3.0.
|
|
341
|
-
"@tamagui/get-font-sized": "3.0.
|
|
342
|
-
"@tamagui/get-token": "3.0.
|
|
343
|
-
"@tamagui/group": "3.0.
|
|
344
|
-
"@tamagui/helpers-tamagui": "3.0.
|
|
345
|
-
"@tamagui/image": "3.0.
|
|
346
|
-
"@tamagui/input": "3.0.
|
|
347
|
-
"@tamagui/label": "3.0.
|
|
348
|
-
"@tamagui/linear-gradient": "3.0.
|
|
349
|
-
"@tamagui/list-item": "3.0.
|
|
350
|
-
"@tamagui/menu": "3.0.
|
|
351
|
-
"@tamagui/polyfill-dev": "3.0.
|
|
352
|
-
"@tamagui/popover": "3.0.
|
|
353
|
-
"@tamagui/popper": "3.0.
|
|
354
|
-
"@tamagui/portal": "3.0.
|
|
355
|
-
"@tamagui/progress": "3.0.
|
|
356
|
-
"@tamagui/radio-group": "3.0.
|
|
357
|
-
"@tamagui/react-native-media-driver": "3.0.
|
|
358
|
-
"@tamagui/react-native-types": "3.0.
|
|
359
|
-
"@tamagui/scroll-view": "3.0.
|
|
360
|
-
"@tamagui/select": "3.0.
|
|
361
|
-
"@tamagui/separator": "3.0.
|
|
362
|
-
"@tamagui/shapes": "3.0.
|
|
363
|
-
"@tamagui/sheet": "3.0.
|
|
364
|
-
"@tamagui/slider": "3.0.
|
|
365
|
-
"@tamagui/spacer": "3.0.
|
|
366
|
-
"@tamagui/spinner": "3.0.
|
|
367
|
-
"@tamagui/stacks": "3.0.
|
|
368
|
-
"@tamagui/switch": "3.0.
|
|
369
|
-
"@tamagui/tabs": "3.0.
|
|
370
|
-
"@tamagui/text": "3.0.
|
|
371
|
-
"@tamagui/theme": "3.0.
|
|
372
|
-
"@tamagui/toast": "3.0.
|
|
373
|
-
"@tamagui/toggle-group": "3.0.
|
|
374
|
-
"@tamagui/tooltip": "3.0.
|
|
375
|
-
"@tamagui/ui": "3.0.
|
|
376
|
-
"@tamagui/use-controllable-state": "3.0.
|
|
377
|
-
"@tamagui/use-debounce": "3.0.
|
|
378
|
-
"@tamagui/use-force-update": "3.0.
|
|
379
|
-
"@tamagui/use-window-dimensions": "3.0.
|
|
380
|
-
"@tamagui/visually-hidden": "3.0.
|
|
381
|
-
"@tamagui/z-index-stack": "3.0.
|
|
318
|
+
"@tamagui/accordion": "3.0.5",
|
|
319
|
+
"@tamagui/adapt": "3.0.5",
|
|
320
|
+
"@tamagui/alert-dialog": "3.0.5",
|
|
321
|
+
"@tamagui/animate": "3.0.5",
|
|
322
|
+
"@tamagui/animate-presence": "3.0.5",
|
|
323
|
+
"@tamagui/avatar": "3.0.5",
|
|
324
|
+
"@tamagui/button": "3.0.5",
|
|
325
|
+
"@tamagui/card": "3.0.5",
|
|
326
|
+
"@tamagui/checkbox": "3.0.5",
|
|
327
|
+
"@tamagui/collapsible": "3.0.5",
|
|
328
|
+
"@tamagui/compose-refs": "3.0.5",
|
|
329
|
+
"@tamagui/constants": "3.0.5",
|
|
330
|
+
"@tamagui/context-menu": "3.0.5",
|
|
331
|
+
"@tamagui/core": "3.0.5",
|
|
332
|
+
"@tamagui/create-context": "3.0.5",
|
|
333
|
+
"@tamagui/create-menu": "3.0.5",
|
|
334
|
+
"@tamagui/dialog": "3.0.5",
|
|
335
|
+
"@tamagui/element": "3.0.5",
|
|
336
|
+
"@tamagui/fake-react-native": "3.0.5",
|
|
337
|
+
"@tamagui/field": "3.0.5",
|
|
338
|
+
"@tamagui/focusable": "3.0.5",
|
|
339
|
+
"@tamagui/font-size": "3.0.5",
|
|
340
|
+
"@tamagui/form": "3.0.5",
|
|
341
|
+
"@tamagui/get-font-sized": "3.0.5",
|
|
342
|
+
"@tamagui/get-token": "3.0.5",
|
|
343
|
+
"@tamagui/group": "3.0.5",
|
|
344
|
+
"@tamagui/helpers-tamagui": "3.0.5",
|
|
345
|
+
"@tamagui/image": "3.0.5",
|
|
346
|
+
"@tamagui/input": "3.0.5",
|
|
347
|
+
"@tamagui/label": "3.0.5",
|
|
348
|
+
"@tamagui/linear-gradient": "3.0.5",
|
|
349
|
+
"@tamagui/list-item": "3.0.5",
|
|
350
|
+
"@tamagui/menu": "3.0.5",
|
|
351
|
+
"@tamagui/polyfill-dev": "3.0.5",
|
|
352
|
+
"@tamagui/popover": "3.0.5",
|
|
353
|
+
"@tamagui/popper": "3.0.5",
|
|
354
|
+
"@tamagui/portal": "3.0.5",
|
|
355
|
+
"@tamagui/progress": "3.0.5",
|
|
356
|
+
"@tamagui/radio-group": "3.0.5",
|
|
357
|
+
"@tamagui/react-native-media-driver": "3.0.5",
|
|
358
|
+
"@tamagui/react-native-types": "3.0.5",
|
|
359
|
+
"@tamagui/scroll-view": "3.0.5",
|
|
360
|
+
"@tamagui/select": "3.0.5",
|
|
361
|
+
"@tamagui/separator": "3.0.5",
|
|
362
|
+
"@tamagui/shapes": "3.0.5",
|
|
363
|
+
"@tamagui/sheet": "3.0.5",
|
|
364
|
+
"@tamagui/slider": "3.0.5",
|
|
365
|
+
"@tamagui/spacer": "3.0.5",
|
|
366
|
+
"@tamagui/spinner": "3.0.5",
|
|
367
|
+
"@tamagui/stacks": "3.0.5",
|
|
368
|
+
"@tamagui/switch": "3.0.5",
|
|
369
|
+
"@tamagui/tabs": "3.0.5",
|
|
370
|
+
"@tamagui/text": "3.0.5",
|
|
371
|
+
"@tamagui/theme": "3.0.5",
|
|
372
|
+
"@tamagui/toast": "3.0.5",
|
|
373
|
+
"@tamagui/toggle-group": "3.0.5",
|
|
374
|
+
"@tamagui/tooltip": "3.0.5",
|
|
375
|
+
"@tamagui/ui": "3.0.5",
|
|
376
|
+
"@tamagui/use-controllable-state": "3.0.5",
|
|
377
|
+
"@tamagui/use-debounce": "3.0.5",
|
|
378
|
+
"@tamagui/use-force-update": "3.0.5",
|
|
379
|
+
"@tamagui/use-window-dimensions": "3.0.5",
|
|
380
|
+
"@tamagui/visually-hidden": "3.0.5",
|
|
381
|
+
"@tamagui/z-index-stack": "3.0.5"
|
|
382
382
|
},
|
|
383
383
|
"devDependencies": {
|
|
384
|
-
"@tamagui/build": "3.0.
|
|
384
|
+
"@tamagui/build": "3.0.5",
|
|
385
385
|
"react": "19.2.3",
|
|
386
386
|
"react-native": "0.87.1",
|
|
387
387
|
"react-native-web": "~0.21.0"
|
|
@@ -400,5 +400,5 @@
|
|
|
400
400
|
],
|
|
401
401
|
"module:jsx": "dist/jsx",
|
|
402
402
|
"removeSideEffects": true,
|
|
403
|
-
"releaseSourceCommit": "
|
|
403
|
+
"releaseSourceCommit": "2500e65729dfd41ce27b4b3271f22f9c1d1ff5a3"
|
|
404
404
|
}
|