@tamagui/web 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/cjs/_withNativeStyle.cjs +85 -46
- package/dist/cjs/_withNativeStyle.native.cjs +91 -41
- package/dist/cjs/_withNativeStyle.native.js +91 -41
- package/dist/cjs/_withNativeStyle.native.js.map +1 -1
- package/dist/cjs/helpers/nativeStyleEngine.cjs +140 -69
- package/dist/cjs/helpers/nativeStyleEngine.native.cjs +177 -118
- package/dist/cjs/helpers/nativeStyleEngine.native.js +177 -118
- package/dist/cjs/helpers/nativeStyleEngine.native.js.map +1 -1
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/index.native.cjs +1 -0
- package/dist/cjs/index.native.js +1 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/_withNativeStyle.mjs +85 -40
- package/dist/esm/_withNativeStyle.mjs.map +1 -1
- package/dist/esm/_withNativeStyle.native.js +92 -42
- package/dist/esm/_withNativeStyle.native.js.map +1 -1
- package/dist/esm/helpers/nativeStyleEngine.mjs +141 -71
- package/dist/esm/helpers/nativeStyleEngine.mjs.map +1 -1
- package/dist/esm/helpers/nativeStyleEngine.native.js +177 -119
- package/dist/esm/helpers/nativeStyleEngine.native.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/index.native.js +2 -2
- package/package.json +17 -17
- package/src/_withNativeStyle.tsx +141 -55
- package/src/helpers/nativeStyleEngine.ts +230 -101
- package/src/index.ts +1 -0
- package/src/setupHooks.ts +1 -0
- package/types/_withNativeStyle.d.ts +22 -2
- package/types/_withNativeStyle.d.ts.map +1 -1
- package/types/helpers/nativeStyleEngine.d.ts +24 -9
- package/types/helpers/nativeStyleEngine.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/setupHooks.d.ts +1 -0
- package/types/setupHooks.d.ts.map +1 -1
|
@@ -84,8 +84,8 @@ var engine = null;
|
|
|
84
84
|
var scopeStates = /* @__PURE__ */ new Map();
|
|
85
85
|
var mappingKeys = /* @__PURE__ */ new WeakMap();
|
|
86
86
|
var compiledMappings = /* @__PURE__ */ new Map();
|
|
87
|
-
var
|
|
88
|
-
var
|
|
87
|
+
var scopeMappings = /* @__PURE__ */ new Map();
|
|
88
|
+
var nextTableId = 1;
|
|
89
89
|
function getCompiledMapping(mapping) {
|
|
90
90
|
var key = mappingKeys.get(mapping);
|
|
91
91
|
if (!key) {
|
|
@@ -99,7 +99,8 @@ function getCompiledMapping(mapping) {
|
|
|
99
99
|
compiled = {
|
|
100
100
|
mapping,
|
|
101
101
|
states: /* @__PURE__ */ new Map(),
|
|
102
|
-
|
|
102
|
+
tableId: nextTableId++,
|
|
103
|
+
sent: /* @__PURE__ */ new Map()
|
|
103
104
|
};
|
|
104
105
|
if (compiledMappings.size >= 1e4) {
|
|
105
106
|
compiledMappings.clear();
|
|
@@ -121,26 +122,6 @@ function resolveCompiledMapping(compiled, stateName, theme) {
|
|
|
121
122
|
var nativeProps = (_engine_processStyleColors = engine === null || engine === void 0 ? void 0 : engine.processStyleColors(renderProps)) !== null && _engine_processStyleColors !== void 0 ? _engine_processStyleColors : renderProps;
|
|
122
123
|
if (compiled.states.size >= 1e4) {
|
|
123
124
|
compiled.states.clear();
|
|
124
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
125
|
-
try {
|
|
126
|
-
for (var _iterator = compiled.links[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
127
|
-
var link = _step.value;
|
|
128
|
-
link.stateThemes.clear();
|
|
129
|
-
}
|
|
130
|
-
} catch (err) {
|
|
131
|
-
_didIteratorError = true;
|
|
132
|
-
_iteratorError = err;
|
|
133
|
-
} finally {
|
|
134
|
-
try {
|
|
135
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
136
|
-
_iterator.return();
|
|
137
|
-
}
|
|
138
|
-
} finally {
|
|
139
|
-
if (_didIteratorError) {
|
|
140
|
-
throw _iteratorError;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
125
|
}
|
|
145
126
|
var resolved = {
|
|
146
127
|
theme,
|
|
@@ -150,10 +131,19 @@ function resolveCompiledMapping(compiled, stateName, theme) {
|
|
|
150
131
|
compiled.states.set(stateName, resolved);
|
|
151
132
|
return resolved;
|
|
152
133
|
}
|
|
134
|
+
function syncTableState(compiled, stateName, theme) {
|
|
135
|
+
var resolved = resolveCompiledMapping(compiled, stateName, theme);
|
|
136
|
+
if (compiled.sent.get(stateName) === resolved) return;
|
|
137
|
+
compiled.sent.set(stateName, resolved);
|
|
138
|
+
engine.setTableState(compiled.tableId, stateName, resolved.nativeProps);
|
|
139
|
+
}
|
|
153
140
|
function setNativeStyleEngine(next) {
|
|
154
141
|
if (engine !== next) {
|
|
142
|
+
settleReleases();
|
|
155
143
|
compiledMappings.clear();
|
|
156
|
-
|
|
144
|
+
scopeMappings.clear();
|
|
145
|
+
pendingLinks = [];
|
|
146
|
+
unlinkedPending = 0;
|
|
157
147
|
}
|
|
158
148
|
engine = next;
|
|
159
149
|
if (next) {
|
|
@@ -185,62 +175,35 @@ function getNativeStyleEngine() {
|
|
|
185
175
|
function updateNativeStyleScope(scopeId, stateName, theme) {
|
|
186
176
|
var previous = scopeStates.get(scopeId);
|
|
187
177
|
if ((previous === null || previous === void 0 ? void 0 : previous.name) === stateName && previous.theme === theme) return;
|
|
178
|
+
flushNativeStyleLinks();
|
|
188
179
|
scopeStates.set(scopeId, {
|
|
189
180
|
name: stateName,
|
|
190
181
|
theme
|
|
191
182
|
});
|
|
192
183
|
if (engine) {
|
|
193
|
-
var
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
var
|
|
198
|
-
|
|
199
|
-
|
|
184
|
+
var linked = scopeMappings.get(scopeId);
|
|
185
|
+
if (linked) {
|
|
186
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
187
|
+
try {
|
|
188
|
+
for (var _iterator = linked.keys()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
189
|
+
var compiled = _step.value;
|
|
190
|
+
syncTableState(compiled, stateName, theme);
|
|
191
|
+
}
|
|
192
|
+
} catch (err) {
|
|
193
|
+
_didIteratorError = true;
|
|
194
|
+
_iteratorError = err;
|
|
195
|
+
} finally {
|
|
200
196
|
try {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
if (link.scopeId !== scopeId) continue;
|
|
204
|
-
var linkedTheme = link.stateThemes.get(stateName);
|
|
205
|
-
if (linkedTheme === theme) continue;
|
|
206
|
-
props || (props = resolveCompiledMapping(compiled, stateName, theme).nativeProps);
|
|
207
|
-
entries.push({
|
|
208
|
-
id: link.handle.id,
|
|
209
|
-
state: stateName,
|
|
210
|
-
props
|
|
211
|
-
});
|
|
212
|
-
link.stateThemes.set(stateName, theme);
|
|
197
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
198
|
+
_iterator.return();
|
|
213
199
|
}
|
|
214
|
-
} catch (err) {
|
|
215
|
-
_didIteratorError1 = true;
|
|
216
|
-
_iteratorError1 = err;
|
|
217
200
|
} finally {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
_iterator1.return();
|
|
221
|
-
}
|
|
222
|
-
} finally {
|
|
223
|
-
if (_didIteratorError1) {
|
|
224
|
-
throw _iteratorError1;
|
|
225
|
-
}
|
|
201
|
+
if (_didIteratorError) {
|
|
202
|
+
throw _iteratorError;
|
|
226
203
|
}
|
|
227
204
|
}
|
|
228
205
|
}
|
|
229
|
-
} catch (err) {
|
|
230
|
-
_didIteratorError = true;
|
|
231
|
-
_iteratorError = err;
|
|
232
|
-
} finally {
|
|
233
|
-
try {
|
|
234
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
235
|
-
_iterator.return();
|
|
236
|
-
}
|
|
237
|
-
} finally {
|
|
238
|
-
if (_didIteratorError) {
|
|
239
|
-
throw _iteratorError;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
206
|
}
|
|
243
|
-
if (entries.length) engine.updateViewStateTables(entries);
|
|
244
207
|
}
|
|
245
208
|
engine === null || engine === void 0 ? void 0 : engine.setStateName(stateName, scopeId);
|
|
246
209
|
}
|
|
@@ -251,32 +214,80 @@ function removeNativeStyleScope(scopeId) {
|
|
|
251
214
|
function resolveNativeStyleMapping(mapping, stateName, theme) {
|
|
252
215
|
return resolveCompiledMapping(getCompiledMapping(mapping), stateName, theme).renderProps;
|
|
253
216
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
var
|
|
258
|
-
|
|
259
|
-
var
|
|
260
|
-
var
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
base = {
|
|
267
|
-
engine,
|
|
268
|
-
props: engine.processStyleColors(normalizeNativeStyle(baseStyle))
|
|
269
|
-
};
|
|
270
|
-
processedBases.set(baseStyle, base);
|
|
217
|
+
var pendingLinks = [];
|
|
218
|
+
var unlinkedPending = 0;
|
|
219
|
+
function trackScopeMapping(link, delta) {
|
|
220
|
+
var linked = scopeMappings.get(link.scopeId);
|
|
221
|
+
if (!linked) scopeMappings.set(link.scopeId, linked = /* @__PURE__ */ new Map());
|
|
222
|
+
var _linked_get;
|
|
223
|
+
var count = ((_linked_get = linked.get(link.compiled)) !== null && _linked_get !== void 0 ? _linked_get : 0) + delta;
|
|
224
|
+
if (count) {
|
|
225
|
+
linked.set(link.compiled, count);
|
|
226
|
+
} else {
|
|
227
|
+
linked.delete(link.compiled);
|
|
228
|
+
if (!linked.size) scopeMappings.delete(link.scopeId);
|
|
271
229
|
}
|
|
272
|
-
|
|
273
|
-
|
|
230
|
+
}
|
|
231
|
+
function flushNativeStyleLinks() {
|
|
232
|
+
settleReleases();
|
|
233
|
+
if (!pendingLinks.length) return;
|
|
234
|
+
var links = pendingLinks;
|
|
235
|
+
pendingLinks = [];
|
|
236
|
+
unlinkedPending = 0;
|
|
237
|
+
if (!engine) return;
|
|
238
|
+
var live = links.filter(function(link2) {
|
|
239
|
+
return link2.id === 0;
|
|
240
|
+
});
|
|
241
|
+
if (!live.length) return;
|
|
242
|
+
var refs = [];
|
|
243
|
+
var tableIds = [];
|
|
244
|
+
var scopeIndexes = [];
|
|
245
|
+
var scopes = [];
|
|
246
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
247
|
+
try {
|
|
248
|
+
for (var _iterator = live[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
249
|
+
var link = _step.value;
|
|
250
|
+
var scopeIndex = scopes.indexOf(link.scopeId);
|
|
251
|
+
if (scopeIndex === -1) scopeIndex = scopes.push(link.scopeId) - 1;
|
|
252
|
+
refs.push(link.ref);
|
|
253
|
+
tableIds.push(link.compiled.tableId);
|
|
254
|
+
scopeIndexes.push(scopeIndex);
|
|
255
|
+
}
|
|
256
|
+
} catch (err) {
|
|
257
|
+
_didIteratorError = true;
|
|
258
|
+
_iteratorError = err;
|
|
259
|
+
} finally {
|
|
260
|
+
try {
|
|
261
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
262
|
+
_iterator.return();
|
|
263
|
+
}
|
|
264
|
+
} finally {
|
|
265
|
+
if (_didIteratorError) {
|
|
266
|
+
throw _iteratorError;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
var firstId = engine.linkTables(refs, tableIds, scopeIndexes, scopes);
|
|
271
|
+
for (var i = 0; i < live.length; i++) {
|
|
272
|
+
var link1 = live[i];
|
|
273
|
+
link1.id = firstId + i;
|
|
274
|
+
link1.owner = engine;
|
|
275
|
+
link1.ref = null;
|
|
276
|
+
trackScopeMapping(link1, 1);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
var releases = /* @__PURE__ */ new Map();
|
|
280
|
+
var settleQueued = false;
|
|
281
|
+
function settleReleases() {
|
|
282
|
+
settleQueued = false;
|
|
283
|
+
if (!releases.size) return;
|
|
284
|
+
var settling = [...releases.values()];
|
|
285
|
+
releases.clear();
|
|
274
286
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
275
287
|
try {
|
|
276
|
-
for (var _iterator =
|
|
277
|
-
var
|
|
278
|
-
|
|
279
|
-
stateThemes.set(name, cached.theme);
|
|
288
|
+
for (var _iterator = settling[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
289
|
+
var release = _step.value;
|
|
290
|
+
release.settle();
|
|
280
291
|
}
|
|
281
292
|
} catch (err) {
|
|
282
293
|
_didIteratorError = true;
|
|
@@ -292,43 +303,90 @@ function linkNativeStyleMapping(ref, baseStyle, mapping, scopeId, stateName, the
|
|
|
292
303
|
}
|
|
293
304
|
}
|
|
294
305
|
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
var handle =
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
306
|
+
}
|
|
307
|
+
function releasable(ref, compiled, scopeId, id, settle) {
|
|
308
|
+
var handle = {
|
|
309
|
+
id,
|
|
310
|
+
unlink: function() {
|
|
311
|
+
var prior = releases.get(ref);
|
|
312
|
+
if (prior && prior.handle !== handle) prior.settle();
|
|
313
|
+
releases.set(ref, {
|
|
314
|
+
compiled,
|
|
315
|
+
scopeId,
|
|
316
|
+
handle,
|
|
317
|
+
settle
|
|
318
|
+
});
|
|
319
|
+
if (!settleQueued) {
|
|
320
|
+
settleQueued = true;
|
|
321
|
+
queueMicrotask(settleReleases);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
return handle;
|
|
326
|
+
}
|
|
327
|
+
function linkNativeStyleMapping(ref, mapping, scopeId, stateName, theme) {
|
|
328
|
+
if (!engine) return null;
|
|
329
|
+
var compiled = getCompiledMapping(mapping);
|
|
330
|
+
var scopeState = scopeStates.get(scopeId);
|
|
331
|
+
var stale = scopeState && (scopeState.name !== stateName || scopeState.theme !== theme);
|
|
332
|
+
var kept = releases.get(ref);
|
|
333
|
+
if (kept) {
|
|
334
|
+
releases.delete(ref);
|
|
335
|
+
if (!stale && kept.compiled === compiled && kept.scopeId === scopeId) return kept.handle;
|
|
336
|
+
kept.settle();
|
|
337
|
+
}
|
|
302
338
|
if (stale) {
|
|
303
|
-
|
|
339
|
+
syncTableState(compiled, scopeState.name, scopeState.theme);
|
|
340
|
+
var handle = engine.link(ref, compiled.tableId, scopeId, true);
|
|
341
|
+
if (!handle) return null;
|
|
342
|
+
var link = {
|
|
343
|
+
ref: null,
|
|
344
|
+
compiled,
|
|
345
|
+
scopeId,
|
|
304
346
|
id: handle.id,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
347
|
+
owner: engine
|
|
348
|
+
};
|
|
349
|
+
trackScopeMapping(link, 1);
|
|
350
|
+
return releasable(ref, compiled, scopeId, handle.id, function() {
|
|
351
|
+
if (link.id === -1) return;
|
|
352
|
+
link.id = -1;
|
|
353
|
+
if (link.owner === engine) trackScopeMapping(link, -1);
|
|
354
|
+
handle.unlink();
|
|
355
|
+
});
|
|
308
356
|
}
|
|
309
|
-
|
|
310
|
-
|
|
357
|
+
syncTableState(compiled, stateName, theme);
|
|
358
|
+
var link1 = {
|
|
359
|
+
ref,
|
|
360
|
+
compiled,
|
|
311
361
|
scopeId,
|
|
312
|
-
|
|
362
|
+
id: 0,
|
|
363
|
+
owner: null
|
|
313
364
|
};
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
id
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
365
|
+
pendingLinks.push(link1);
|
|
366
|
+
return releasable(ref, compiled, scopeId, 0, function() {
|
|
367
|
+
var id = link1.id;
|
|
368
|
+
if (id === -1) return;
|
|
369
|
+
link1.id = -1;
|
|
370
|
+
link1.ref = null;
|
|
371
|
+
if (id > 0) {
|
|
372
|
+
if (link1.owner === engine) trackScopeMapping(link1, -1);
|
|
373
|
+
link1.owner.unlink(id);
|
|
374
|
+
} else if (++unlinkedPending > 512 && unlinkedPending * 2 > pendingLinks.length) {
|
|
375
|
+
pendingLinks = pendingLinks.filter(function(pending2) {
|
|
376
|
+
return pending2.id === 0;
|
|
377
|
+
});
|
|
378
|
+
unlinkedPending = 0;
|
|
324
379
|
}
|
|
325
|
-
};
|
|
380
|
+
});
|
|
326
381
|
}
|
|
327
382
|
var getNativeStyleEngineCacheStats = function() {
|
|
383
|
+
var active = new Set([...scopeMappings.values()].flatMap(function(linked) {
|
|
384
|
+
return [...linked.keys()];
|
|
385
|
+
}));
|
|
328
386
|
return {
|
|
329
387
|
mappings: compiledMappings.size,
|
|
330
|
-
activeMappings:
|
|
331
|
-
states: [.../* @__PURE__ */ new Set([...compiledMappings.values(), ...
|
|
388
|
+
activeMappings: active.size,
|
|
389
|
+
states: [.../* @__PURE__ */ new Set([...compiledMappings.values(), ...active])].reduce(function(total, compiled) {
|
|
332
390
|
return total + compiled.states.size;
|
|
333
391
|
}, 0)
|
|
334
392
|
};
|
|
@@ -362,5 +420,5 @@ function queueNativeViewState(entry) {
|
|
|
362
420
|
pending.push(entry);
|
|
363
421
|
}
|
|
364
422
|
|
|
365
|
-
export { getNativeStyleEngine, getNativeStyleEngineCacheStats, linkNativeStyleMapping, nativeTextInputColorProps, normalizeNativeStyle, queueNativeViewState, removeNativeStyleScope, resolveNativeStyleMapping, setNativeStyleEngine, setNativeStyleEngineFlushListener, updateNativeStyleLink, updateNativeStyleScope };
|
|
423
|
+
export { flushNativeStyleLinks, getNativeStyleEngine, getNativeStyleEngineCacheStats, linkNativeStyleMapping, nativeTextInputColorProps, normalizeNativeStyle, queueNativeViewState, removeNativeStyleScope, resolveNativeStyleMapping, setNativeStyleEngine, setNativeStyleEngineFlushListener, updateNativeStyleLink, updateNativeStyleScope };
|
|
366
424
|
//# sourceMappingURL=nativeStyleEngine.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeStyleEngine.native.js","names":[],"sources":["esm/helpers/nativeStyleEngine.native.js"],"sourcesContent":["import { getVariableValue } from \"../createVariable\";\nvar nativeTextInputColorProps = {\n placeholderTextColor: \"placeholderTextColor\",\n selectionColor: \"selectionColor\",\n cursorColor: \"cursorColor\",\n selectionHandleColor: \"selectionHandleColor\"\n};\nvar nativeOutlineProps = [\n \"outlineStyle\",\n \"outlineWidth\",\n \"outlineColor\",\n \"outlineOffset\"\n];\nvar nativeIntrinsicSizeProps = [\n \"width\",\n \"height\",\n \"minWidth\",\n \"minHeight\",\n \"maxWidth\",\n \"maxHeight\"\n];\nfunction normalizeNativeStyle(style) {\n var reset = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n var next;\n if (style.outlineStyle === \"none\") {\n next = {\n ...style\n };\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = nativeOutlineProps[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var key = _step.value;\n if (reset) {\n next[key] = null;\n } else {\n delete next[key];\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = nativeIntrinsicSizeProps[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var key1 = _step1.value;\n var value = style[key1];\n if (value === \"max-content\" || value === \"min-content\" || value === \"fit-content\") {\n next || (next = {\n ...style\n });\n if (reset) {\n next[key1] = null;\n } else {\n delete next[key1];\n }\n }\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n return next !== null && next !== void 0 ? next : style;\n}\nvar engine = null;\nvar scopeStates = /* @__PURE__ */ new Map();\nvar mappingKeys = /* @__PURE__ */ new WeakMap();\nvar compiledMappings = /* @__PURE__ */ new Map();\nvar activeCompiledMappings = /* @__PURE__ */ new Set();\nvar processedBases = /* @__PURE__ */ new WeakMap();\nfunction getCompiledMapping(mapping) {\n var key = mappingKeys.get(mapping);\n if (!key) {\n key = JSON.stringify(Object.keys(mapping).sort().map(function(styleKey) {\n return [\n styleKey,\n mapping[styleKey]\n ];\n }));\n mappingKeys.set(mapping, key);\n }\n var compiled = compiledMappings.get(key);\n if (!compiled) {\n compiled = {\n mapping,\n states: /* @__PURE__ */ new Map(),\n links: /* @__PURE__ */ new Set()\n };\n if (compiledMappings.size >= 1e4) {\n compiledMappings.clear();\n }\n compiledMappings.set(key, compiled);\n }\n return compiled;\n}\nfunction resolveCompiledMapping(compiled, stateName, theme) {\n var cached = compiled.states.get(stateName);\n if ((cached === null || cached === void 0 ? void 0 : cached.theme) === theme) return cached;\n var renderProps = {};\n for (var styleKey in compiled.mapping) {\n var value = theme[compiled.mapping[styleKey]];\n renderProps[styleKey] = value === void 0 ? null : getVariableValue(value);\n }\n renderProps = normalizeNativeStyle(renderProps, true);\n var _engine_processStyleColors;\n var nativeProps = (_engine_processStyleColors = engine === null || engine === void 0 ? void 0 : engine.processStyleColors(renderProps)) !== null && _engine_processStyleColors !== void 0 ? _engine_processStyleColors : renderProps;\n if (compiled.states.size >= 1e4) {\n compiled.states.clear();\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = compiled.links[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var link = _step.value;\n link.stateThemes.clear();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n var resolved = {\n theme,\n renderProps,\n nativeProps\n };\n compiled.states.set(stateName, resolved);\n return resolved;\n}\nfunction setNativeStyleEngine(next) {\n if (engine !== next) {\n compiledMappings.clear();\n activeCompiledMappings.clear();\n }\n engine = next;\n if (next) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = scopeStates[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [scopeId, state] = _step.value;\n next.setStateName(state.name, scopeId);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n}\nfunction getNativeStyleEngine() {\n return engine;\n}\nfunction updateNativeStyleScope(scopeId, stateName, theme) {\n var previous = scopeStates.get(scopeId);\n if ((previous === null || previous === void 0 ? void 0 : previous.name) === stateName && previous.theme === theme) return;\n scopeStates.set(scopeId, {\n name: stateName,\n theme\n });\n if (engine) {\n var entries = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = activeCompiledMappings[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var compiled = _step.value;\n var props = void 0;\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = compiled.links[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var link = _step1.value;\n if (link.scopeId !== scopeId) continue;\n var linkedTheme = link.stateThemes.get(stateName);\n if (linkedTheme === theme) continue;\n props || (props = resolveCompiledMapping(compiled, stateName, theme).nativeProps);\n entries.push({\n id: link.handle.id,\n state: stateName,\n props\n });\n link.stateThemes.set(stateName, theme);\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (entries.length) engine.updateViewStateTables(entries);\n }\n engine === null || engine === void 0 ? void 0 : engine.setStateName(stateName, scopeId);\n}\nfunction removeNativeStyleScope(scopeId) {\n if (!scopeStates.delete(scopeId)) return;\n engine === null || engine === void 0 ? void 0 : engine.removeScope(scopeId);\n}\nfunction resolveNativeStyleMapping(mapping, stateName, theme) {\n return resolveCompiledMapping(getCompiledMapping(mapping), stateName, theme).renderProps;\n}\nfunction linkNativeStyleMapping(ref, baseStyle, mapping, scopeId, stateName, theme) {\n if (!engine) return null;\n var compiled = getCompiledMapping(mapping);\n var scopeState = scopeStates.get(scopeId);\n var _scopeState_name;\n var currentStateName = (_scopeState_name = scopeState === null || scopeState === void 0 ? void 0 : scopeState.name) !== null && _scopeState_name !== void 0 ? _scopeState_name : stateName;\n var _scopeState_theme;\n var currentTheme = (_scopeState_theme = scopeState === null || scopeState === void 0 ? void 0 : scopeState.theme) !== null && _scopeState_theme !== void 0 ? _scopeState_theme : theme;\n var stale = currentStateName !== stateName || currentTheme !== theme;\n var stateProps = resolveCompiledMapping(compiled, currentStateName, currentTheme).nativeProps;\n var base = processedBases.get(baseStyle);\n if (!base || base.engine !== engine) {\n base = {\n engine,\n props: engine.processStyleColors(normalizeNativeStyle(baseStyle))\n };\n processedBases.set(baseStyle, base);\n }\n var state = {};\n var stateThemes = /* @__PURE__ */ new Map();\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = compiled.states[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [name, cached] = _step.value;\n state[name] = cached.nativeProps;\n stateThemes.set(name, cached.theme);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n state[currentStateName] = stateProps;\n stateThemes.set(currentStateName, currentTheme);\n var handle = engine.link(ref, {\n base: base.props,\n state\n }, scopeId);\n if (!handle) return null;\n if (stale) {\n engine.updateViewStateTables([\n {\n id: handle.id,\n state: currentStateName,\n props: stateProps\n }\n ]);\n }\n var link = {\n handle,\n scopeId,\n stateThemes\n };\n compiled.links.add(link);\n activeCompiledMappings.add(compiled);\n return {\n id: handle.id,\n unlink: function() {\n compiled.links.delete(link);\n if (!compiled.links.size) {\n activeCompiledMappings.delete(compiled);\n }\n handle.unlink();\n }\n };\n}\nvar getNativeStyleEngineCacheStats = function() {\n return {\n mappings: compiledMappings.size,\n activeMappings: activeCompiledMappings.size,\n states: [\n .../* @__PURE__ */ new Set([\n ...compiledMappings.values(),\n ...activeCompiledMappings\n ])\n ].reduce(function(total, compiled) {\n return total + compiled.states.size;\n }, 0)\n };\n};\nvar pending = null;\nvar flushListener = null;\nfunction setNativeStyleEngineFlushListener(cb) {\n flushListener = cb;\n}\nfunction updateNativeStyleLink(ref, host) {\n if (ref.nativeLink) {\n ref.nativeLink.unlink();\n ref.nativeLink = null;\n }\n ref.nativePushedKeys = void 0;\n if (host && engine && ref.nativeStyleUpdate) {\n ref.nativeLink = engine.link(host, {});\n }\n}\nfunction queueNativeViewState(entry) {\n if (!engine) return;\n if (!pending) {\n pending = [];\n queueMicrotask(function() {\n var entries = pending;\n pending = null;\n engine === null || engine === void 0 ? void 0 : engine.applyViewStates(entries);\n flushListener === null || flushListener === void 0 ? void 0 : flushListener(entries);\n });\n }\n pending.push(entry);\n}\nexport {\n getNativeStyleEngine,\n getNativeStyleEngineCacheStats,\n linkNativeStyleMapping,\n nativeTextInputColorProps,\n normalizeNativeStyle,\n queueNativeViewState,\n removeNativeStyleScope,\n resolveNativeStyleMapping,\n setNativeStyleEngine,\n setNativeStyleEngineFlushListener,\n updateNativeStyleLink,\n updateNativeStyleScope\n};\n//# sourceMappingURL=nativeStyleEngine.js.map\n"],"mappings":";;;AACA,IAAI,4BAA4B;CAC9B,sBAAsB;CACtB,gBAAgB;CAChB,aAAa;CACb,sBAAsB;AACxB;AACA,IAAI,qBAAqB;CACvB;CACA;CACA;CACA;AACF;AACA,IAAI,2BAA2B;CAC7B;CACA;CACA;CACA;CACA;CACA;AACF;AACA,SAAS,qBAAqB,OAAO;CACnC,IAAI,QAAQ,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAC7E,IAAI;CACJ,IAAI,MAAM,iBAAiB,QAAQ;EACjC,OAAO,EACL,GAAG,MACL;EACA,IAAI,4BAA4B,MAAM,oBAAoB,OAAO,iBAAiB,KAAK;EACvF,IAAI;GACF,KAAK,IAAI,YAAY,mBAAmB,OAAO,SAAS,CAAC,GAAG,OAAO,EAAE,6BAA6B,QAAQ,UAAU,KAAK,EAAC,CAAE,OAAO,4BAA4B,MAAM;IACnK,IAAI,MAAM,MAAM;IAChB,IAAI,OAAO;KACT,KAAK,OAAO;IACd,OAAO;KACL,OAAO,KAAK;IACd;GACF;EACF,SAAS,KAAK;GACZ,oBAAoB;GACpB,iBAAiB;EACnB,UAAU;G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AS,qBAAqB,OAAO;CACnC,IAAI,CAAC,QAAQ;CACb,IAAI,CAAC,SAAS;EACZ,UAAU,CAAC;EACX,eAAe,WAAW;GACxB,IAAI,UAAU;GACd,UAAU;GACV,WAAW,QAAQ,WAAW,KAAK,IAAI,KAAK,IAAI,OAAO,gBAAgB,OAAO;GAC9E,kBAAkB,QAAQ,kBAAkB,KAAK,IAAI,KAAK,IAAI,cAAc,OAAO;EACrF,CAAC;CACH;CACA,QAAQ,KAAK,KAAK;AACpB"}
|
|
1
|
+
{"version":3,"file":"nativeStyleEngine.native.js","names":[],"sources":["esm/helpers/nativeStyleEngine.native.js"],"sourcesContent":["import { getVariableValue } from \"../createVariable\";\nvar nativeTextInputColorProps = {\n placeholderTextColor: \"placeholderTextColor\",\n selectionColor: \"selectionColor\",\n cursorColor: \"cursorColor\",\n selectionHandleColor: \"selectionHandleColor\"\n};\nvar nativeOutlineProps = [\n \"outlineStyle\",\n \"outlineWidth\",\n \"outlineColor\",\n \"outlineOffset\"\n];\nvar nativeIntrinsicSizeProps = [\n \"width\",\n \"height\",\n \"minWidth\",\n \"minHeight\",\n \"maxWidth\",\n \"maxHeight\"\n];\nfunction normalizeNativeStyle(style) {\n var reset = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n var next;\n if (style.outlineStyle === \"none\") {\n next = {\n ...style\n };\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = nativeOutlineProps[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var key = _step.value;\n if (reset) {\n next[key] = null;\n } else {\n delete next[key];\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;\n try {\n for (var _iterator1 = nativeIntrinsicSizeProps[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {\n var key1 = _step1.value;\n var value = style[key1];\n if (value === \"max-content\" || value === \"min-content\" || value === \"fit-content\") {\n next || (next = {\n ...style\n });\n if (reset) {\n next[key1] = null;\n } else {\n delete next[key1];\n }\n }\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally {\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n return next !== null && next !== void 0 ? next : style;\n}\nvar engine = null;\nvar scopeStates = /* @__PURE__ */ new Map();\nvar mappingKeys = /* @__PURE__ */ new WeakMap();\nvar compiledMappings = /* @__PURE__ */ new Map();\nvar scopeMappings = /* @__PURE__ */ new Map();\nvar nextTableId = 1;\nfunction getCompiledMapping(mapping) {\n var key = mappingKeys.get(mapping);\n if (!key) {\n key = JSON.stringify(Object.keys(mapping).sort().map(function(styleKey) {\n return [\n styleKey,\n mapping[styleKey]\n ];\n }));\n mappingKeys.set(mapping, key);\n }\n var compiled = compiledMappings.get(key);\n if (!compiled) {\n compiled = {\n mapping,\n states: /* @__PURE__ */ new Map(),\n tableId: nextTableId++,\n sent: /* @__PURE__ */ new Map()\n };\n if (compiledMappings.size >= 1e4) {\n compiledMappings.clear();\n }\n compiledMappings.set(key, compiled);\n }\n return compiled;\n}\nfunction resolveCompiledMapping(compiled, stateName, theme) {\n var cached = compiled.states.get(stateName);\n if ((cached === null || cached === void 0 ? void 0 : cached.theme) === theme) return cached;\n var renderProps = {};\n for (var styleKey in compiled.mapping) {\n var value = theme[compiled.mapping[styleKey]];\n renderProps[styleKey] = value === void 0 ? null : getVariableValue(value);\n }\n renderProps = normalizeNativeStyle(renderProps, true);\n var _engine_processStyleColors;\n var nativeProps = (_engine_processStyleColors = engine === null || engine === void 0 ? void 0 : engine.processStyleColors(renderProps)) !== null && _engine_processStyleColors !== void 0 ? _engine_processStyleColors : renderProps;\n if (compiled.states.size >= 1e4) {\n compiled.states.clear();\n }\n var resolved = {\n theme,\n renderProps,\n nativeProps\n };\n compiled.states.set(stateName, resolved);\n return resolved;\n}\nfunction syncTableState(compiled, stateName, theme) {\n var resolved = resolveCompiledMapping(compiled, stateName, theme);\n if (compiled.sent.get(stateName) === resolved) return;\n compiled.sent.set(stateName, resolved);\n engine.setTableState(compiled.tableId, stateName, resolved.nativeProps);\n}\nfunction setNativeStyleEngine(next) {\n if (engine !== next) {\n settleReleases();\n compiledMappings.clear();\n scopeMappings.clear();\n pendingLinks = [];\n unlinkedPending = 0;\n }\n engine = next;\n if (next) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = scopeStates[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var [scopeId, state] = _step.value;\n next.setStateName(state.name, scopeId);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n}\nfunction getNativeStyleEngine() {\n return engine;\n}\nfunction updateNativeStyleScope(scopeId, stateName, theme) {\n var previous = scopeStates.get(scopeId);\n if ((previous === null || previous === void 0 ? void 0 : previous.name) === stateName && previous.theme === theme) return;\n flushNativeStyleLinks();\n scopeStates.set(scopeId, {\n name: stateName,\n theme\n });\n if (engine) {\n var linked = scopeMappings.get(scopeId);\n if (linked) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = linked.keys()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var compiled = _step.value;\n syncTableState(compiled, stateName, theme);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n }\n engine === null || engine === void 0 ? void 0 : engine.setStateName(stateName, scopeId);\n}\nfunction removeNativeStyleScope(scopeId) {\n if (!scopeStates.delete(scopeId)) return;\n engine === null || engine === void 0 ? void 0 : engine.removeScope(scopeId);\n}\nfunction resolveNativeStyleMapping(mapping, stateName, theme) {\n return resolveCompiledMapping(getCompiledMapping(mapping), stateName, theme).renderProps;\n}\nvar pendingLinks = [];\nvar unlinkedPending = 0;\nfunction trackScopeMapping(link, delta) {\n var linked = scopeMappings.get(link.scopeId);\n if (!linked) scopeMappings.set(link.scopeId, linked = /* @__PURE__ */ new Map());\n var _linked_get;\n var count = ((_linked_get = linked.get(link.compiled)) !== null && _linked_get !== void 0 ? _linked_get : 0) + delta;\n if (count) {\n linked.set(link.compiled, count);\n } else {\n linked.delete(link.compiled);\n if (!linked.size) scopeMappings.delete(link.scopeId);\n }\n}\nfunction flushNativeStyleLinks() {\n settleReleases();\n if (!pendingLinks.length) return;\n var links = pendingLinks;\n pendingLinks = [];\n unlinkedPending = 0;\n if (!engine) return;\n var live = links.filter(function(link2) {\n return link2.id === 0;\n });\n if (!live.length) return;\n var refs = [];\n var tableIds = [];\n var scopeIndexes = [];\n var scopes = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = live[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var link = _step.value;\n var scopeIndex = scopes.indexOf(link.scopeId);\n if (scopeIndex === -1) scopeIndex = scopes.push(link.scopeId) - 1;\n refs.push(link.ref);\n tableIds.push(link.compiled.tableId);\n scopeIndexes.push(scopeIndex);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n var firstId = engine.linkTables(refs, tableIds, scopeIndexes, scopes);\n for (var i = 0; i < live.length; i++) {\n var link1 = live[i];\n link1.id = firstId + i;\n link1.owner = engine;\n link1.ref = null;\n trackScopeMapping(link1, 1);\n }\n}\nvar releases = /* @__PURE__ */ new Map();\nvar settleQueued = false;\nfunction settleReleases() {\n settleQueued = false;\n if (!releases.size) return;\n var settling = [\n ...releases.values()\n ];\n releases.clear();\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = settling[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var release = _step.value;\n release.settle();\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n}\nfunction releasable(ref, compiled, scopeId, id, settle) {\n var handle = {\n id,\n unlink: function() {\n var prior = releases.get(ref);\n if (prior && prior.handle !== handle) prior.settle();\n releases.set(ref, {\n compiled,\n scopeId,\n handle,\n settle\n });\n if (!settleQueued) {\n settleQueued = true;\n queueMicrotask(settleReleases);\n }\n }\n };\n return handle;\n}\nfunction linkNativeStyleMapping(ref, mapping, scopeId, stateName, theme) {\n if (!engine) return null;\n var compiled = getCompiledMapping(mapping);\n var scopeState = scopeStates.get(scopeId);\n var stale = scopeState && (scopeState.name !== stateName || scopeState.theme !== theme);\n var kept = releases.get(ref);\n if (kept) {\n releases.delete(ref);\n if (!stale && kept.compiled === compiled && kept.scopeId === scopeId) return kept.handle;\n kept.settle();\n }\n if (stale) {\n syncTableState(compiled, scopeState.name, scopeState.theme);\n var handle = engine.link(ref, compiled.tableId, scopeId, true);\n if (!handle) return null;\n var link = {\n ref: null,\n compiled,\n scopeId,\n id: handle.id,\n owner: engine\n };\n trackScopeMapping(link, 1);\n return releasable(ref, compiled, scopeId, handle.id, function() {\n if (link.id === -1) return;\n link.id = -1;\n if (link.owner === engine) trackScopeMapping(link, -1);\n handle.unlink();\n });\n }\n syncTableState(compiled, stateName, theme);\n var link1 = {\n ref,\n compiled,\n scopeId,\n id: 0,\n owner: null\n };\n pendingLinks.push(link1);\n return releasable(ref, compiled, scopeId, 0, function() {\n var id = link1.id;\n if (id === -1) return;\n link1.id = -1;\n link1.ref = null;\n if (id > 0) {\n if (link1.owner === engine) trackScopeMapping(link1, -1);\n link1.owner.unlink(id);\n } else if (++unlinkedPending > 512 && unlinkedPending * 2 > pendingLinks.length) {\n pendingLinks = pendingLinks.filter(function(pending2) {\n return pending2.id === 0;\n });\n unlinkedPending = 0;\n }\n });\n}\nvar getNativeStyleEngineCacheStats = function() {\n var active = new Set([\n ...scopeMappings.values()\n ].flatMap(function(linked) {\n return [\n ...linked.keys()\n ];\n }));\n return {\n mappings: compiledMappings.size,\n activeMappings: active.size,\n states: [\n .../* @__PURE__ */ new Set([\n ...compiledMappings.values(),\n ...active\n ])\n ].reduce(function(total, compiled) {\n return total + compiled.states.size;\n }, 0)\n };\n};\nvar pending = null;\nvar flushListener = null;\nfunction setNativeStyleEngineFlushListener(cb) {\n flushListener = cb;\n}\nfunction updateNativeStyleLink(ref, host) {\n if (ref.nativeLink) {\n ref.nativeLink.unlink();\n ref.nativeLink = null;\n }\n ref.nativePushedKeys = void 0;\n if (host && engine && ref.nativeStyleUpdate) {\n ref.nativeLink = engine.link(host, {});\n }\n}\nfunction queueNativeViewState(entry) {\n if (!engine) return;\n if (!pending) {\n pending = [];\n queueMicrotask(function() {\n var entries = pending;\n pending = null;\n engine === null || engine === void 0 ? void 0 : engine.applyViewStates(entries);\n flushListener === null || flushListener === void 0 ? void 0 : flushListener(entries);\n });\n }\n pending.push(entry);\n}\nexport {\n flushNativeStyleLinks,\n getNativeStyleEngine,\n getNativeStyleEngineCacheStats,\n linkNativeStyleMapping,\n nativeTextInputColorProps,\n normalizeNativeStyle,\n queueNativeViewState,\n removeNativeStyleScope,\n resolveNativeStyleMapping,\n setNativeStyleEngine,\n setNativeStyleEngineFlushListener,\n updateNativeStyleLink,\n updateNativeStyleScope\n};\n//# sourceMappingURL=nativeStyleEngine.js.map\n"],"mappings":";;;AACA,IAAI,4BAA4B;CAC9B,sBAAsB;CACtB,gBAAgB;CAChB,aAAa;CACb,sBAAsB;AACxB;AACA,IAAI,qBAAqB;CACvB;CACA;CACA;CACA;AACF;AACA,IAAI,2BAA2B;CAC7B;CACA;CACA;CACA;CACA;CACA;AACF;AACA,SAAS,qBAAqB,OAAO;CACnC,IAAI,QAAQ,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAC7E,IAAI;CACJ,IAAI,MAAM,iBAAiB,QAAQ;EACjC,OAAO,EACL,GAAG,MACL;EACA,IAAI,4BAA4B,MAAM,oBAAoB,OAAO,iBAAiB,KAAK;EACvF,IAAI;GACF,KAAK,IAAI,YAAY,mBAAmB,OAAO,SAAS,CAAC,GAAG,OAAO,EAAE,6BAA6B,QAAQ,UAAU,KAAK,EAAC,CAAE,OAAO,4BAA4B,MAAM;IACnK,IAAI,MAAM,MAAM;IAChB,IAAI,OAAO;KACT,KAAK,OAAO;IACd,OAAO;KACL,OAAO,KAAK;IACd;GACF;EACF,SAAS,KAAK;GACZ,oBAAoB;GACpB,iBAAiB;EACnB,UAAU;GACR,IAAI;IACF,IAAI,CAAC,6BAA6B,UAAU,UAAU,MAAM;KAC1D,UAAU,OAAO;IACnB;GACF,UAAU;IACR,IAAI,mBAAmB;KACrB,MAAM;IACR;GACF;EACF;CACF;CACA,IAAI,6BAA6B,MAAM,qBAAqB,OAAO,kBAAkB,KAAK;CAC1F,IAAI;EACF,KAAK,IAAI,aAAa,yBAAyB,OAAO,SAAS,CAAC,GAAG,QAAQ,EAAE,8BAA8B,SAAS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C,SAAS;EACZ,UAAU,CAAC;EACX,eAAe,WAAW;GACxB,IAAI,UAAU;GACd,UAAU;GACV,WAAW,QAAQ,WAAW,KAAK,IAAI,KAAK,IAAI,OAAO,gBAAgB,OAAO;GAC9E,kBAAkB,QAAQ,kBAAkB,KAAK,IAAI,KAAK,IAAI,cAAc,OAAO;EACrF,CAAC;CACH;CACA,QAAQ,KAAK,KAAK;AACpB"}
|
package/dist/esm/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { getCSSStylesAtomic } from "./helpers/getCSSStylesAtomic.mjs";
|
|
|
9
9
|
import { getExpandedShorthand } from "./helpers/getExpandedShorthands.mjs";
|
|
10
10
|
import { formatDiagnostic } from "./helpers/formatDiagnostic.mjs";
|
|
11
11
|
import { getSplitStyles, getStyleStaticConfig, isValidStyleKey } from "./helpers/getSplitStyles.mjs";
|
|
12
|
-
import { getNativeStyleEngine, removeNativeStyleScope, setNativeStyleEngine, setNativeStyleEngineFlushListener, updateNativeStyleScope } from "./helpers/nativeStyleEngine.mjs";
|
|
12
|
+
import { flushNativeStyleLinks, getNativeStyleEngine, removeNativeStyleScope, setNativeStyleEngine, setNativeStyleEngineFlushListener, updateNativeStyleScope } from "./helpers/nativeStyleEngine.mjs";
|
|
13
13
|
import { autoVariables, getAutoVariableCSS, getMutatedAutoVariableCSS, mutatedAutoVariables } from "./helpers/registerCSSVariable.mjs";
|
|
14
14
|
import { insertStyleRules, setNonce } from "./helpers/insertStyleRule.mjs";
|
|
15
15
|
import { isTamaguiComponent } from "./helpers/isTamaguiComponent.mjs";
|
|
@@ -65,4 +65,4 @@ import { ClientOnly, ClientOnlyContext, useClientValue, useDidFinishSSR, useIsCl
|
|
|
65
65
|
import { useEvent, useGet } from "@tamagui/use-event";
|
|
66
66
|
import { hooks, setupHooks } from "./setupHooks.mjs";
|
|
67
67
|
|
|
68
|
-
export { ClientOnly, ClientOnlyContext, ComponentContext, Configuration, FontLanguage, GroupContext, Slot, Slottable, StyleObjectIdentifier, StyleObjectProperty, StyleObjectPseudo, StyleObjectRules, StyleObjectValue, Tamagui, TamaguiProvider, TamaguiRoot, Text, Theme, ThemeProvider, View, _disableMediaTouch, _mediaListenerStats, _withNativeStyle, _withStableStyle, autoVariables, clamp, composeEventHandlers, composeRefs, configureMedia, containsThemeRef, createCSSVariable, createChangeEventDetails, createComponent, createFont, createRefComponent, createShorthands, createStyledContext, createStyledHOC, createTamagui, createTokens, createVariable, cssShorthandLonghands, currentPlatform, defaultSizing, fluid, forceUpdateThemes, formatDiagnostic, getAutoVariableCSS, getCSSStylesAtomic, getConfig, getExpandedShorthand, getMedia, getMutatedAutoVariableCSS, getNativeStyleEngine, getPlatformDriver, getSetting, getSplitStyles, getStyleCompat, getStyleStaticConfig, getStyleTags, getThemeClassNames, getThemeProviderChainSizes, getThemes, getToken, getTokenValue, getTokens, getVariable, getVariableValue, hooks, html, insertFont, insertStyleRules, installTamaguiConfig, isAndroid, isBrowser, isChrome, isClient, isEqualShallow, isIos, isNativeDesktop, isServer, isTV, isTamaguiComponent, isTamaguiElement, isTouchable, isValidStyleKey, isVariable, isWeb, isWebTouchable, loadAnimationDriver, matchMedia, mediaKeyMatch, mediaObjectToString, mediaQueryConfig, mediaState, mergeIfNotShallowEqual, mergeProps, mergeSlotStyleProps, mutatedAutoVariables, nonAnimatableStyleProps, nonAnimatableWebTextProps, nonAnimatableWebViewProps, normalizeColor, normalizeStyle, px, removeNativeStyleScope, reservedThemeProps, resolveSizing, resolveTextMetrics, resolveThemeName, setConfig, setMediaState, setNativeStyleEngine, setNativeStyleEngineFlushListener, setNonce, setRef, setupDev, setupHooks, setupMatchMedia, setupPlatformDriver, shouldRenderNativePlatform, simpleHash, splitStyleProps, style, stylePieceSymbol, stylePropsAll, stylePropsInput, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, styled, supportsDynamicColorIOS, textStaticConfig, themeRefKey, tokenCategories, updateConfig, updateFont, updateMediaListeners, updateNativeStyleScope, useAnimatedNumber, useAnimatedNumberReaction, useAnimatedNumberStyle, useAnimatedNumbersStyle, useAnimationDriver, useClientValue, useComposedRefs, useConfiguration, useCreateShallowSetState, useDidFinishSSR, useEvent, useGet, useIsClientOnly, useIsTouchDevice, useIsomorphicLayoutEffect, useMedia, usePortalThemeState, useStyle, useTheme, useThemeName, validStyles, variableToString, viewStaticConfig, webOnlyStylePropsText, webOnlyStylePropsView, withStaticProperties };
|
|
68
|
+
export { ClientOnly, ClientOnlyContext, ComponentContext, Configuration, FontLanguage, GroupContext, Slot, Slottable, StyleObjectIdentifier, StyleObjectProperty, StyleObjectPseudo, StyleObjectRules, StyleObjectValue, Tamagui, TamaguiProvider, TamaguiRoot, Text, Theme, ThemeProvider, View, _disableMediaTouch, _mediaListenerStats, _withNativeStyle, _withStableStyle, autoVariables, clamp, composeEventHandlers, composeRefs, configureMedia, containsThemeRef, createCSSVariable, createChangeEventDetails, createComponent, createFont, createRefComponent, createShorthands, createStyledContext, createStyledHOC, createTamagui, createTokens, createVariable, cssShorthandLonghands, currentPlatform, defaultSizing, fluid, flushNativeStyleLinks, forceUpdateThemes, formatDiagnostic, getAutoVariableCSS, getCSSStylesAtomic, getConfig, getExpandedShorthand, getMedia, getMutatedAutoVariableCSS, getNativeStyleEngine, getPlatformDriver, getSetting, getSplitStyles, getStyleCompat, getStyleStaticConfig, getStyleTags, getThemeClassNames, getThemeProviderChainSizes, getThemes, getToken, getTokenValue, getTokens, getVariable, getVariableValue, hooks, html, insertFont, insertStyleRules, installTamaguiConfig, isAndroid, isBrowser, isChrome, isClient, isEqualShallow, isIos, isNativeDesktop, isServer, isTV, isTamaguiComponent, isTamaguiElement, isTouchable, isValidStyleKey, isVariable, isWeb, isWebTouchable, loadAnimationDriver, matchMedia, mediaKeyMatch, mediaObjectToString, mediaQueryConfig, mediaState, mergeIfNotShallowEqual, mergeProps, mergeSlotStyleProps, mutatedAutoVariables, nonAnimatableStyleProps, nonAnimatableWebTextProps, nonAnimatableWebViewProps, normalizeColor, normalizeStyle, px, removeNativeStyleScope, reservedThemeProps, resolveSizing, resolveTextMetrics, resolveThemeName, setConfig, setMediaState, setNativeStyleEngine, setNativeStyleEngineFlushListener, setNonce, setRef, setupDev, setupHooks, setupMatchMedia, setupPlatformDriver, shouldRenderNativePlatform, simpleHash, splitStyleProps, style, stylePieceSymbol, stylePropsAll, stylePropsInput, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, styled, supportsDynamicColorIOS, textStaticConfig, themeRefKey, tokenCategories, updateConfig, updateFont, updateMediaListeners, updateNativeStyleScope, useAnimatedNumber, useAnimatedNumberReaction, useAnimatedNumberStyle, useAnimatedNumbersStyle, useAnimationDriver, useClientValue, useComposedRefs, useConfiguration, useCreateShallowSetState, useDidFinishSSR, useEvent, useGet, useIsClientOnly, useIsTouchDevice, useIsomorphicLayoutEffect, useMedia, usePortalThemeState, useStyle, useTheme, useThemeName, validStyles, variableToString, viewStaticConfig, webOnlyStylePropsText, webOnlyStylePropsView, withStaticProperties };
|
package/dist/esm/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { getCSSStylesAtomic } from "./helpers/getCSSStylesAtomic.mjs";
|
|
|
9
9
|
import { getExpandedShorthand } from "./helpers/getExpandedShorthands.mjs";
|
|
10
10
|
import { formatDiagnostic } from "./helpers/formatDiagnostic.mjs";
|
|
11
11
|
import { getSplitStyles, getStyleStaticConfig, isValidStyleKey } from "./helpers/getSplitStyles.mjs";
|
|
12
|
-
import { getNativeStyleEngine, removeNativeStyleScope, setNativeStyleEngine, setNativeStyleEngineFlushListener, updateNativeStyleScope } from "./helpers/nativeStyleEngine.mjs";
|
|
12
|
+
import { flushNativeStyleLinks, getNativeStyleEngine, removeNativeStyleScope, setNativeStyleEngine, setNativeStyleEngineFlushListener, updateNativeStyleScope } from "./helpers/nativeStyleEngine.mjs";
|
|
13
13
|
import { autoVariables, getAutoVariableCSS, getMutatedAutoVariableCSS, mutatedAutoVariables } from "./helpers/registerCSSVariable.mjs";
|
|
14
14
|
import { insertStyleRules, setNonce } from "./helpers/insertStyleRule.mjs";
|
|
15
15
|
import { isTamaguiComponent } from "./helpers/isTamaguiComponent.mjs";
|
|
@@ -65,4 +65,4 @@ import { ClientOnly, ClientOnlyContext, useClientValue, useDidFinishSSR, useIsCl
|
|
|
65
65
|
import { useEvent, useGet } from "@tamagui/use-event";
|
|
66
66
|
import { hooks, setupHooks } from "./setupHooks.mjs";
|
|
67
67
|
|
|
68
|
-
export { ClientOnly, ClientOnlyContext, ComponentContext, Configuration, FontLanguage, GroupContext, Slot, Slottable, StyleObjectIdentifier, StyleObjectProperty, StyleObjectPseudo, StyleObjectRules, StyleObjectValue, Tamagui, TamaguiProvider, TamaguiRoot, Text, Theme, ThemeProvider, View, _disableMediaTouch, _mediaListenerStats, _withNativeStyle, _withStableStyle, autoVariables, clamp, composeEventHandlers, composeRefs, configureMedia, containsThemeRef, createCSSVariable, createChangeEventDetails, createComponent, createFont, createRefComponent, createShorthands, createStyledContext, createStyledHOC, createTamagui, createTokens, createVariable, cssShorthandLonghands, currentPlatform, defaultSizing, fluid, forceUpdateThemes, formatDiagnostic, getAutoVariableCSS, getCSSStylesAtomic, getConfig, getExpandedShorthand, getMedia, getMutatedAutoVariableCSS, getNativeStyleEngine, getPlatformDriver, getSetting, getSplitStyles, getStyleCompat, getStyleStaticConfig, getStyleTags, getThemeClassNames, getThemeProviderChainSizes, getThemes, getToken, getTokenValue, getTokens, getVariable, getVariableValue, hooks, html, insertFont, insertStyleRules, installTamaguiConfig, isAndroid, isBrowser, isChrome, isClient, isEqualShallow, isIos, isNativeDesktop, isServer, isTV, isTamaguiComponent, isTamaguiElement, isTouchable, isValidStyleKey, isVariable, isWeb, isWebTouchable, loadAnimationDriver, matchMedia, mediaKeyMatch, mediaObjectToString, mediaQueryConfig, mediaState, mergeIfNotShallowEqual, mergeProps, mergeSlotStyleProps, mutatedAutoVariables, nonAnimatableStyleProps, nonAnimatableWebTextProps, nonAnimatableWebViewProps, normalizeColor, normalizeStyle, px, removeNativeStyleScope, reservedThemeProps, resolveSizing, resolveTextMetrics, resolveThemeName, setConfig, setMediaState, setNativeStyleEngine, setNativeStyleEngineFlushListener, setNonce, setRef, setupDev, setupHooks, setupMatchMedia, setupPlatformDriver, shouldRenderNativePlatform, simpleHash, splitStyleProps, style, stylePieceSymbol, stylePropsAll, stylePropsInput, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, styled, supportsDynamicColorIOS, textStaticConfig, themeRefKey, tokenCategories, updateConfig, updateFont, updateMediaListeners, updateNativeStyleScope, useAnimatedNumber, useAnimatedNumberReaction, useAnimatedNumberStyle, useAnimatedNumbersStyle, useAnimationDriver, useClientValue, useComposedRefs, useConfiguration, useCreateShallowSetState, useDidFinishSSR, useEvent, useGet, useIsClientOnly, useIsTouchDevice, useIsomorphicLayoutEffect, useMedia, usePortalThemeState, useStyle, useTheme, useThemeName, validStyles, variableToString, viewStaticConfig, webOnlyStylePropsText, webOnlyStylePropsView, withStaticProperties };
|
|
68
|
+
export { ClientOnly, ClientOnlyContext, ComponentContext, Configuration, FontLanguage, GroupContext, Slot, Slottable, StyleObjectIdentifier, StyleObjectProperty, StyleObjectPseudo, StyleObjectRules, StyleObjectValue, Tamagui, TamaguiProvider, TamaguiRoot, Text, Theme, ThemeProvider, View, _disableMediaTouch, _mediaListenerStats, _withNativeStyle, _withStableStyle, autoVariables, clamp, composeEventHandlers, composeRefs, configureMedia, containsThemeRef, createCSSVariable, createChangeEventDetails, createComponent, createFont, createRefComponent, createShorthands, createStyledContext, createStyledHOC, createTamagui, createTokens, createVariable, cssShorthandLonghands, currentPlatform, defaultSizing, fluid, flushNativeStyleLinks, forceUpdateThemes, formatDiagnostic, getAutoVariableCSS, getCSSStylesAtomic, getConfig, getExpandedShorthand, getMedia, getMutatedAutoVariableCSS, getNativeStyleEngine, getPlatformDriver, getSetting, getSplitStyles, getStyleCompat, getStyleStaticConfig, getStyleTags, getThemeClassNames, getThemeProviderChainSizes, getThemes, getToken, getTokenValue, getTokens, getVariable, getVariableValue, hooks, html, insertFont, insertStyleRules, installTamaguiConfig, isAndroid, isBrowser, isChrome, isClient, isEqualShallow, isIos, isNativeDesktop, isServer, isTV, isTamaguiComponent, isTamaguiElement, isTouchable, isValidStyleKey, isVariable, isWeb, isWebTouchable, loadAnimationDriver, matchMedia, mediaKeyMatch, mediaObjectToString, mediaQueryConfig, mediaState, mergeIfNotShallowEqual, mergeProps, mergeSlotStyleProps, mutatedAutoVariables, nonAnimatableStyleProps, nonAnimatableWebTextProps, nonAnimatableWebViewProps, normalizeColor, normalizeStyle, px, removeNativeStyleScope, reservedThemeProps, resolveSizing, resolveTextMetrics, resolveThemeName, setConfig, setMediaState, setNativeStyleEngine, setNativeStyleEngineFlushListener, setNonce, setRef, setupDev, setupHooks, setupMatchMedia, setupPlatformDriver, shouldRenderNativePlatform, simpleHash, splitStyleProps, style, stylePieceSymbol, stylePropsAll, stylePropsInput, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, styled, supportsDynamicColorIOS, textStaticConfig, themeRefKey, tokenCategories, updateConfig, updateFont, updateMediaListeners, updateNativeStyleScope, useAnimatedNumber, useAnimatedNumberReaction, useAnimatedNumberStyle, useAnimatedNumbersStyle, useAnimationDriver, useClientValue, useComposedRefs, useConfiguration, useCreateShallowSetState, useDidFinishSSR, useEvent, useGet, useIsClientOnly, useIsTouchDevice, useIsomorphicLayoutEffect, useMedia, usePortalThemeState, useStyle, useTheme, useThemeName, validStyles, variableToString, viewStaticConfig, webOnlyStylePropsText, webOnlyStylePropsView, withStaticProperties };
|
package/dist/esm/index.native.js
CHANGED
|
@@ -9,7 +9,7 @@ import { getCSSStylesAtomic } from "./helpers/getCSSStylesAtomic.native.js";
|
|
|
9
9
|
import { getExpandedShorthand } from "./helpers/getExpandedShorthands.native.js";
|
|
10
10
|
import { formatDiagnostic } from "./helpers/formatDiagnostic.native.js";
|
|
11
11
|
import { getSplitStyles, getStyleStaticConfig, isValidStyleKey } from "./helpers/getSplitStyles.native.js";
|
|
12
|
-
import { getNativeStyleEngine, removeNativeStyleScope, setNativeStyleEngine, setNativeStyleEngineFlushListener, updateNativeStyleScope } from "./helpers/nativeStyleEngine.native.js";
|
|
12
|
+
import { flushNativeStyleLinks, getNativeStyleEngine, removeNativeStyleScope, setNativeStyleEngine, setNativeStyleEngineFlushListener, updateNativeStyleScope } from "./helpers/nativeStyleEngine.native.js";
|
|
13
13
|
import { autoVariables, getAutoVariableCSS, getMutatedAutoVariableCSS, mutatedAutoVariables } from "./helpers/registerCSSVariable.native.js";
|
|
14
14
|
import { insertStyleRules, setNonce } from "./helpers/insertStyleRule.native.js";
|
|
15
15
|
import { isTamaguiComponent } from "./helpers/isTamaguiComponent.native.js";
|
|
@@ -65,4 +65,4 @@ import { ClientOnly, ClientOnlyContext, useClientValue, useDidFinishSSR, useIsCl
|
|
|
65
65
|
import { useEvent, useGet } from "@tamagui/use-event";
|
|
66
66
|
import { hooks, setupHooks } from "./setupHooks.native.js";
|
|
67
67
|
|
|
68
|
-
export { ClientOnly, ClientOnlyContext, ComponentContext, Configuration, FontLanguage, GroupContext, Slot, Slottable, StyleObjectIdentifier, StyleObjectProperty, StyleObjectPseudo, StyleObjectRules, StyleObjectValue, Tamagui, TamaguiProvider, TamaguiRoot, Text, Theme, ThemeProvider, View, _disableMediaTouch, _mediaListenerStats, _withNativeStyle, _withStableStyle, autoVariables, clamp, composeEventHandlers, composeRefs, configureMedia, containsThemeRef, createCSSVariable, createChangeEventDetails, createComponent, createFont, createRefComponent, createShorthands, createStyledContext, createStyledHOC, createTamagui, createTokens, createVariable, cssShorthandLonghands, currentPlatform, defaultSizing, fluid, forceUpdateThemes, formatDiagnostic, getAutoVariableCSS, getCSSStylesAtomic, getConfig, getExpandedShorthand, getMedia, getMutatedAutoVariableCSS, getNativeStyleEngine, getPlatformDriver, getSetting, getSplitStyles, getStyleCompat, getStyleStaticConfig, getStyleTags, getThemeClassNames, getThemeProviderChainSizes, getThemes, getToken, getTokenValue, getTokens, getVariable, getVariableValue, hooks, html, insertFont, insertStyleRules, installTamaguiConfig, isAndroid, isBrowser, isChrome, isClient, isEqualShallow, isIos, isNativeDesktop, isServer, isTV, isTamaguiComponent, isTamaguiElement, isTouchable, isValidStyleKey, isVariable, isWeb, isWebTouchable, loadAnimationDriver, matchMedia, mediaKeyMatch, mediaObjectToString, mediaQueryConfig, mediaState, mergeIfNotShallowEqual, mergeProps, mergeSlotStyleProps, mutatedAutoVariables, nonAnimatableStyleProps, nonAnimatableWebTextProps, nonAnimatableWebViewProps, normalizeColor, normalizeStyle, px, removeNativeStyleScope, reservedThemeProps, resolveSizing, resolveTextMetrics, resolveThemeName, setConfig, setMediaState, setNativeStyleEngine, setNativeStyleEngineFlushListener, setNonce, setRef, setupDev, setupHooks, setupMatchMedia, setupPlatformDriver, shouldRenderNativePlatform, simpleHash, splitStyleProps, style, stylePieceSymbol, stylePropsAll, stylePropsInput, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, styled, supportsDynamicColorIOS, textStaticConfig, themeRefKey, tokenCategories, updateConfig, updateFont, updateMediaListeners, updateNativeStyleScope, useAnimatedNumber, useAnimatedNumberReaction, useAnimatedNumberStyle, useAnimatedNumbersStyle, useAnimationDriver, useClientValue, useComposedRefs, useConfiguration, useCreateShallowSetState, useDidFinishSSR, useEvent, useGet, useIsClientOnly, useIsTouchDevice, useIsomorphicLayoutEffect, useMedia, usePortalThemeState, useStyle, useTheme, useThemeName, validStyles, variableToString, viewStaticConfig, webOnlyStylePropsText, webOnlyStylePropsView, withStaticProperties };
|
|
68
|
+
export { ClientOnly, ClientOnlyContext, ComponentContext, Configuration, FontLanguage, GroupContext, Slot, Slottable, StyleObjectIdentifier, StyleObjectProperty, StyleObjectPseudo, StyleObjectRules, StyleObjectValue, Tamagui, TamaguiProvider, TamaguiRoot, Text, Theme, ThemeProvider, View, _disableMediaTouch, _mediaListenerStats, _withNativeStyle, _withStableStyle, autoVariables, clamp, composeEventHandlers, composeRefs, configureMedia, containsThemeRef, createCSSVariable, createChangeEventDetails, createComponent, createFont, createRefComponent, createShorthands, createStyledContext, createStyledHOC, createTamagui, createTokens, createVariable, cssShorthandLonghands, currentPlatform, defaultSizing, fluid, flushNativeStyleLinks, forceUpdateThemes, formatDiagnostic, getAutoVariableCSS, getCSSStylesAtomic, getConfig, getExpandedShorthand, getMedia, getMutatedAutoVariableCSS, getNativeStyleEngine, getPlatformDriver, getSetting, getSplitStyles, getStyleCompat, getStyleStaticConfig, getStyleTags, getThemeClassNames, getThemeProviderChainSizes, getThemes, getToken, getTokenValue, getTokens, getVariable, getVariableValue, hooks, html, insertFont, insertStyleRules, installTamaguiConfig, isAndroid, isBrowser, isChrome, isClient, isEqualShallow, isIos, isNativeDesktop, isServer, isTV, isTamaguiComponent, isTamaguiElement, isTouchable, isValidStyleKey, isVariable, isWeb, isWebTouchable, loadAnimationDriver, matchMedia, mediaKeyMatch, mediaObjectToString, mediaQueryConfig, mediaState, mergeIfNotShallowEqual, mergeProps, mergeSlotStyleProps, mutatedAutoVariables, nonAnimatableStyleProps, nonAnimatableWebTextProps, nonAnimatableWebViewProps, normalizeColor, normalizeStyle, px, removeNativeStyleScope, reservedThemeProps, resolveSizing, resolveTextMetrics, resolveThemeName, setConfig, setMediaState, setNativeStyleEngine, setNativeStyleEngineFlushListener, setNonce, setRef, setupDev, setupHooks, setupMatchMedia, setupPlatformDriver, shouldRenderNativePlatform, simpleHash, splitStyleProps, style, stylePieceSymbol, stylePropsAll, stylePropsInput, stylePropsText, stylePropsTextOnly, stylePropsTransform, stylePropsUnitless, stylePropsView, styled, supportsDynamicColorIOS, textStaticConfig, themeRefKey, tokenCategories, updateConfig, updateFont, updateMediaListeners, updateNativeStyleScope, useAnimatedNumber, useAnimatedNumberReaction, useAnimatedNumberStyle, useAnimatedNumbersStyle, useAnimationDriver, useClientValue, useComposedRefs, useConfiguration, useCreateShallowSetState, useDidFinishSSR, useEvent, useGet, useIsClientOnly, useIsTouchDevice, useIsomorphicLayoutEffect, useMedia, usePortalThemeState, useStyle, useTheme, useThemeName, validStyles, variableToString, viewStaticConfig, webOnlyStylePropsText, webOnlyStylePropsView, withStaticProperties };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/web",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Nate Wienert"
|
|
@@ -100,23 +100,23 @@
|
|
|
100
100
|
"test:web": "vitest --typecheck --run"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@tamagui/animation-helpers": "3.0.
|
|
104
|
-
"@tamagui/compose-refs": "3.0.
|
|
105
|
-
"@tamagui/constants": "3.0.
|
|
106
|
-
"@tamagui/dom": "3.0.
|
|
107
|
-
"@tamagui/helpers": "3.0.
|
|
108
|
-
"@tamagui/is-equal-shallow": "3.0.
|
|
109
|
-
"@tamagui/native": "3.0.
|
|
110
|
-
"@tamagui/normalize-css-color": "3.0.
|
|
111
|
-
"@tamagui/react-native-types": "3.0.
|
|
112
|
-
"@tamagui/style-grammar": "3.0.
|
|
113
|
-
"@tamagui/types": "3.0.
|
|
114
|
-
"@tamagui/use-did-finish-ssr": "3.0.
|
|
115
|
-
"@tamagui/use-event": "3.0.
|
|
116
|
-
"@tamagui/use-force-update": "3.0.
|
|
103
|
+
"@tamagui/animation-helpers": "3.0.5",
|
|
104
|
+
"@tamagui/compose-refs": "3.0.5",
|
|
105
|
+
"@tamagui/constants": "3.0.5",
|
|
106
|
+
"@tamagui/dom": "3.0.5",
|
|
107
|
+
"@tamagui/helpers": "3.0.5",
|
|
108
|
+
"@tamagui/is-equal-shallow": "3.0.5",
|
|
109
|
+
"@tamagui/native": "3.0.5",
|
|
110
|
+
"@tamagui/normalize-css-color": "3.0.5",
|
|
111
|
+
"@tamagui/react-native-types": "3.0.5",
|
|
112
|
+
"@tamagui/style-grammar": "3.0.5",
|
|
113
|
+
"@tamagui/types": "3.0.5",
|
|
114
|
+
"@tamagui/use-did-finish-ssr": "3.0.5",
|
|
115
|
+
"@tamagui/use-event": "3.0.5",
|
|
116
|
+
"@tamagui/use-force-update": "3.0.5"
|
|
117
117
|
},
|
|
118
118
|
"devDependencies": {
|
|
119
|
-
"@tamagui/build": "3.0.
|
|
119
|
+
"@tamagui/build": "3.0.5",
|
|
120
120
|
"@testing-library/react": "^16.1.0",
|
|
121
121
|
"csstype": "^3.0.10",
|
|
122
122
|
"react": "19.2.3",
|
|
@@ -133,5 +133,5 @@
|
|
|
133
133
|
"./dist/cjs": "./dist/esm/index.native.js",
|
|
134
134
|
"./theme-update": "./dist/esm/theme-update.native.js"
|
|
135
135
|
},
|
|
136
|
-
"releaseSourceCommit": "
|
|
136
|
+
"releaseSourceCommit": "2500e65729dfd41ce27b4b3271f22f9c1d1ff5a3"
|
|
137
137
|
}
|