@tamagui/adapt 3.0.0-beta.924.1 → 3.0.1
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/Adapt.cjs +90 -67
- package/dist/cjs/Adapt.native.cjs +113 -70
- package/dist/cjs/Adapt.native.js +113 -70
- package/dist/cjs/Adapt.native.js.map +1 -1
- package/dist/esm/Adapt.mjs +90 -68
- package/dist/esm/Adapt.mjs.map +1 -1
- package/dist/esm/Adapt.native.js +113 -71
- package/dist/esm/Adapt.native.js.map +1 -1
- package/package.json +10 -8
- package/src/Adapt.tsx +131 -90
- package/types/Adapt.d.ts +11 -17
- package/types/Adapt.d.ts.map +1 -1
package/dist/esm/Adapt.native.js
CHANGED
|
@@ -55,13 +55,8 @@ var adaptContextKeys = [
|
|
|
55
55
|
"Contents",
|
|
56
56
|
"scopeName",
|
|
57
57
|
"portalName",
|
|
58
|
-
"platform",
|
|
59
|
-
"setPlatform",
|
|
60
|
-
"when",
|
|
61
|
-
"setWhen",
|
|
62
58
|
"active",
|
|
63
|
-
"
|
|
64
|
-
"setRawActive",
|
|
59
|
+
"setAdaptConfig",
|
|
65
60
|
"slot",
|
|
66
61
|
"handoff",
|
|
67
62
|
"targetFullyHidden",
|
|
@@ -76,13 +71,8 @@ var AdaptContext = createStyledContext({
|
|
|
76
71
|
Contents: null,
|
|
77
72
|
scopeName: "",
|
|
78
73
|
portalName: "",
|
|
79
|
-
platform: null,
|
|
80
|
-
setPlatform: function(x) {},
|
|
81
|
-
when: null,
|
|
82
|
-
setWhen: function() {},
|
|
83
74
|
active: false,
|
|
84
|
-
|
|
85
|
-
setRawActive: function() {},
|
|
75
|
+
setAdaptConfig: function() {},
|
|
86
76
|
slot: null,
|
|
87
77
|
handoff: {
|
|
88
78
|
hidden: true,
|
|
@@ -98,6 +88,10 @@ var AdaptContext = createStyledContext({
|
|
|
98
88
|
}, { keys: adaptContextKeys });
|
|
99
89
|
var AdaptCapabilitiesContext = /* @__PURE__ */ createContext({});
|
|
100
90
|
var LastAdaptContextScope = /* @__PURE__ */ createContext("");
|
|
91
|
+
var AdaptTargetScope = /* @__PURE__ */ createContext(null);
|
|
92
|
+
var useAdaptTargetScope = function() {
|
|
93
|
+
return useContext(AdaptTargetScope);
|
|
94
|
+
};
|
|
101
95
|
var ProvideAdaptContext = function(param) {
|
|
102
96
|
var { children, ...context } = param;
|
|
103
97
|
var scope = context.scopeName || "";
|
|
@@ -117,17 +111,64 @@ var useAdaptContext = function(scope) {
|
|
|
117
111
|
var adaptScope = scope !== null && scope !== void 0 ? scope : lastScope;
|
|
118
112
|
return AdaptContext.useStyledContext(adaptScope);
|
|
119
113
|
};
|
|
114
|
+
function findAdaptConfig(children, scope) {
|
|
115
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
116
|
+
try {
|
|
117
|
+
for (var _iterator = React.Children.toArray(children)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
118
|
+
var child = _step.value;
|
|
119
|
+
if (!/* @__PURE__ */ React.isValidElement(child)) continue;
|
|
120
|
+
if (child.type === React.Fragment) {
|
|
121
|
+
var found = findAdaptConfig(child.props.children, scope);
|
|
122
|
+
if (found) return found;
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
if (child.type === Adapt) {
|
|
126
|
+
var childProps = child.props;
|
|
127
|
+
if (childProps.scope == null || childProps.scope === scope) {
|
|
128
|
+
return childProps;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
} catch (err) {
|
|
133
|
+
_didIteratorError = true;
|
|
134
|
+
_iteratorError = err;
|
|
135
|
+
} finally {
|
|
136
|
+
try {
|
|
137
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
138
|
+
_iterator.return();
|
|
139
|
+
}
|
|
140
|
+
} finally {
|
|
141
|
+
if (_didIteratorError) {
|
|
142
|
+
throw _iteratorError;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return null;
|
|
147
|
+
}
|
|
120
148
|
var AdaptParent = function(param) {
|
|
121
|
-
var { children, Contents, scope, open, onOpenChange, state } = param;
|
|
149
|
+
var { children, adaptChildren, Contents, scope, open, onOpenChange, state } = param;
|
|
122
150
|
var id = useId();
|
|
123
151
|
var portalName = `AdaptPortal${scope}${id}`;
|
|
124
152
|
var slotRef = React.useRef(null);
|
|
125
153
|
if (!slotRef.current) {
|
|
126
154
|
slotRef.current = createAdaptSlotStore();
|
|
127
155
|
}
|
|
128
|
-
var
|
|
129
|
-
|
|
130
|
-
|
|
156
|
+
var staticConfig = React.useMemo(function() {
|
|
157
|
+
var _findAdaptConfig;
|
|
158
|
+
return (_findAdaptConfig = findAdaptConfig(adaptChildren, scope)) !== null && _findAdaptConfig !== void 0 ? _findAdaptConfig : findAdaptConfig(children, scope);
|
|
159
|
+
}, [
|
|
160
|
+
adaptChildren,
|
|
161
|
+
children,
|
|
162
|
+
scope
|
|
163
|
+
]);
|
|
164
|
+
var [publishedConfig, setPublishedConfig] = React.useState(null);
|
|
165
|
+
var rawActive = useAdaptIsActiveGiven(staticConfig !== null && staticConfig !== void 0 ? staticConfig : publishedConfig);
|
|
166
|
+
var staticConfigRef = React.useRef(staticConfig);
|
|
167
|
+
staticConfigRef.current = staticConfig;
|
|
168
|
+
var setAdaptConfig = React.useCallback(function(config) {
|
|
169
|
+
if (staticConfigRef.current) return;
|
|
170
|
+
setPublishedConfig(config);
|
|
171
|
+
}, []);
|
|
131
172
|
var [exiting, setExiting] = React.useState(false);
|
|
132
173
|
var [present, setPresent] = React.useState(false);
|
|
133
174
|
var [targetFullyHidden, setTargetFullyHidden] = React.useState(!open);
|
|
@@ -142,12 +183,6 @@ var AdaptParent = function(param) {
|
|
|
142
183
|
var active = rawActive || exiting || shouldStartExit;
|
|
143
184
|
var targetHidden = !rawActive;
|
|
144
185
|
var skipNextAnimation = Boolean(rawActive && wasTargetHiddenRef.current && hasHadActiveTargetRef.current && open);
|
|
145
|
-
rawActiveRef.current = rawActive;
|
|
146
|
-
openRef.current = open;
|
|
147
|
-
if (rawActive) {
|
|
148
|
-
hasHadActiveTargetRef.current = true;
|
|
149
|
-
}
|
|
150
|
-
wasTargetHiddenRef.current = targetHidden;
|
|
151
186
|
var releasePresenceLatch = React.useCallback(function() {
|
|
152
187
|
setExiting(false);
|
|
153
188
|
if (!rawActiveRef.current) {
|
|
@@ -160,6 +195,12 @@ var AdaptParent = function(param) {
|
|
|
160
195
|
}
|
|
161
196
|
}, [shouldStartExit]);
|
|
162
197
|
useIsomorphicLayoutEffect(function() {
|
|
198
|
+
rawActiveRef.current = rawActive;
|
|
199
|
+
openRef.current = open;
|
|
200
|
+
if (rawActive) {
|
|
201
|
+
hasHadActiveTargetRef.current = true;
|
|
202
|
+
}
|
|
203
|
+
wasTargetHiddenRef.current = targetHidden;
|
|
163
204
|
if (open && rawActive) {
|
|
164
205
|
setTargetFullyHidden(false);
|
|
165
206
|
return;
|
|
@@ -170,7 +211,8 @@ var AdaptParent = function(param) {
|
|
|
170
211
|
}, [
|
|
171
212
|
active,
|
|
172
213
|
open,
|
|
173
|
-
rawActive
|
|
214
|
+
rawActive,
|
|
215
|
+
targetHidden
|
|
174
216
|
]);
|
|
175
217
|
useIsomorphicLayoutEffect(function() {
|
|
176
218
|
if (rawActive) {
|
|
@@ -247,13 +289,8 @@ var AdaptParent = function(param) {
|
|
|
247
289
|
value: scope,
|
|
248
290
|
children: /* @__PURE__ */ jsx(ProvideAdaptContext, {
|
|
249
291
|
Contents: FinalContents,
|
|
250
|
-
when,
|
|
251
|
-
platform,
|
|
252
|
-
setPlatform,
|
|
253
|
-
setWhen,
|
|
254
292
|
active,
|
|
255
|
-
|
|
256
|
-
setRawActive,
|
|
293
|
+
setAdaptConfig,
|
|
257
294
|
portalName,
|
|
258
295
|
scopeName: scope,
|
|
259
296
|
slot: slotRef.current,
|
|
@@ -289,31 +326,32 @@ var AdaptContents = function(param) {
|
|
|
289
326
|
context.registerContents,
|
|
290
327
|
context.unregisterContents
|
|
291
328
|
]);
|
|
292
|
-
return /* @__PURE__ */
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
329
|
+
return /* @__PURE__ */ jsx(AdaptTargetScope.Provider, {
|
|
330
|
+
value: null,
|
|
331
|
+
children: /* @__PURE__ */ React.createElement(context.Contents, {
|
|
332
|
+
...rest,
|
|
333
|
+
scope,
|
|
334
|
+
key: `stable`
|
|
335
|
+
})
|
|
296
336
|
});
|
|
297
337
|
};
|
|
298
|
-
AdaptContents.shouldForwardSpace = true;
|
|
299
338
|
var Adapt = withStaticProperties(function Adapt2(props) {
|
|
300
|
-
var {
|
|
339
|
+
var { children, platform, scope, when } = props;
|
|
301
340
|
var context = useAdaptContext(scope);
|
|
302
|
-
var
|
|
303
|
-
var enabled = rawEnabled || context.active;
|
|
341
|
+
var enabled = context.active;
|
|
304
342
|
var isRenderCallback = typeof children === "function";
|
|
305
343
|
useIsomorphicLayoutEffect(function() {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
344
|
+
context.setAdaptConfig({
|
|
345
|
+
when,
|
|
346
|
+
platform
|
|
347
|
+
});
|
|
348
|
+
return function() {
|
|
349
|
+
context.setAdaptConfig(null);
|
|
350
|
+
};
|
|
310
351
|
}, [
|
|
311
352
|
when,
|
|
312
353
|
platform,
|
|
313
|
-
|
|
314
|
-
context.setWhen,
|
|
315
|
-
context.setPlatform,
|
|
316
|
-
context.setRawActive
|
|
354
|
+
context.setAdaptConfig
|
|
317
355
|
]);
|
|
318
356
|
useIsomorphicLayoutEffect(function() {
|
|
319
357
|
if (!enabled || !isRenderCallback) return;
|
|
@@ -327,14 +365,6 @@ var Adapt = withStaticProperties(function Adapt2(props) {
|
|
|
327
365
|
context.registerRenderCallback,
|
|
328
366
|
context.unregisterRenderCallback
|
|
329
367
|
]);
|
|
330
|
-
useIsomorphicLayoutEffect(function() {
|
|
331
|
-
return function() {
|
|
332
|
-
var _context_setWhen, _context_setPlatform, _context_setRawActive;
|
|
333
|
-
context === null || context === void 0 ? void 0 : (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 ? void 0 : _context_setWhen.call(context, null);
|
|
334
|
-
context === null || context === void 0 ? void 0 : (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 ? void 0 : _context_setPlatform.call(context, null);
|
|
335
|
-
context === null || context === void 0 ? void 0 : (_context_setRawActive = context.setRawActive) === null || _context_setRawActive === void 0 ? void 0 : _context_setRawActive.call(context, false);
|
|
336
|
-
};
|
|
337
|
-
}, []);
|
|
338
368
|
var output;
|
|
339
369
|
if (isRenderCallback) {
|
|
340
370
|
var Component = context === null || context === void 0 ? void 0 : context.Contents;
|
|
@@ -342,7 +372,10 @@ var Adapt = withStaticProperties(function Adapt2(props) {
|
|
|
342
372
|
} else {
|
|
343
373
|
output = children;
|
|
344
374
|
}
|
|
345
|
-
return /* @__PURE__ */ jsx(
|
|
375
|
+
return /* @__PURE__ */ jsx(AdaptTargetScope.Provider, {
|
|
376
|
+
value: context.scopeName,
|
|
377
|
+
children: /* @__PURE__ */ jsx(StackZIndexContext, { children: !enabled ? null : output })
|
|
378
|
+
});
|
|
346
379
|
}, { Contents: AdaptContents });
|
|
347
380
|
var AdaptPortalContents = function(props) {
|
|
348
381
|
var isActive = useAdaptIsActive(props.scope);
|
|
@@ -363,25 +396,32 @@ function AdaptSlotContents(param) {
|
|
|
363
396
|
}
|
|
364
397
|
function AdaptSlotPublisher(param) {
|
|
365
398
|
var { isActive, slot, children } = param;
|
|
366
|
-
var publishedRef = React.useRef(
|
|
399
|
+
var publishedRef = React.useRef(null);
|
|
367
400
|
useIsomorphicLayoutEffect(function() {
|
|
368
401
|
if (!slot) return;
|
|
402
|
+
var published = publishedRef.current;
|
|
403
|
+
if (published && published.isActive === isActive && published.element === children) {
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
publishedRef.current = {
|
|
407
|
+
isActive,
|
|
408
|
+
element: children
|
|
409
|
+
};
|
|
369
410
|
if (isActive) {
|
|
370
411
|
slot.publish(children);
|
|
371
|
-
publishedRef.current = true;
|
|
372
412
|
} else {
|
|
373
413
|
slot.clear();
|
|
374
|
-
publishedRef.current = false;
|
|
375
414
|
}
|
|
376
415
|
slot.notify();
|
|
377
416
|
});
|
|
378
417
|
useIsomorphicLayoutEffect(function() {
|
|
379
418
|
return function() {
|
|
380
|
-
|
|
419
|
+
var _publishedRef_current;
|
|
420
|
+
if ((_publishedRef_current = publishedRef.current) === null || _publishedRef_current === void 0 ? void 0 : _publishedRef_current.isActive) {
|
|
381
421
|
slot === null || slot === void 0 ? void 0 : slot.clear();
|
|
382
422
|
slot === null || slot === void 0 ? void 0 : slot.notify();
|
|
383
|
-
publishedRef.current = false;
|
|
384
423
|
}
|
|
424
|
+
publishedRef.current = null;
|
|
385
425
|
};
|
|
386
426
|
}, [slot]);
|
|
387
427
|
return isActive ? null : /* @__PURE__ */ jsx(Fragment, { children });
|
|
@@ -392,15 +432,13 @@ var emptySubscribe = function() {
|
|
|
392
432
|
var emptySnapshot = function() {
|
|
393
433
|
return 0;
|
|
394
434
|
};
|
|
395
|
-
var useAdaptIsActiveGiven = function(
|
|
396
|
-
var { when, platform } = param;
|
|
435
|
+
var useAdaptIsActiveGiven = function(config) {
|
|
397
436
|
var media = useMedia();
|
|
437
|
+
var when = config === null || config === void 0 ? void 0 : config.when;
|
|
438
|
+
var platform = config === null || config === void 0 ? void 0 : config.platform;
|
|
398
439
|
if (when == null && platform == null) {
|
|
399
440
|
return false;
|
|
400
441
|
}
|
|
401
|
-
if (when === true) {
|
|
402
|
-
return true;
|
|
403
|
-
}
|
|
404
442
|
var enabled = false;
|
|
405
443
|
if (platform === "touch") enabled = isTouchable;
|
|
406
444
|
else if (platform === "native") enabled = !isWeb;
|
|
@@ -410,20 +448,23 @@ var useAdaptIsActiveGiven = function(param) {
|
|
|
410
448
|
if (platform && enabled == false) {
|
|
411
449
|
return false;
|
|
412
450
|
}
|
|
451
|
+
if (when === true) {
|
|
452
|
+
return true;
|
|
453
|
+
}
|
|
413
454
|
if (when && typeof when === "string") {
|
|
414
455
|
enabled = media[when];
|
|
415
456
|
}
|
|
416
457
|
return enabled;
|
|
417
458
|
};
|
|
418
459
|
var useAdaptIsActive = function(scope) {
|
|
419
|
-
|
|
420
|
-
var isActiveGiven = useAdaptIsActiveGiven(props);
|
|
421
|
-
return props.active || isActiveGiven;
|
|
460
|
+
return useAdaptContext(scope).active;
|
|
422
461
|
};
|
|
423
462
|
function useAdaptTarget(scope) {
|
|
424
463
|
var context = useAdaptContext(scope);
|
|
464
|
+
var targetScope = useAdaptTargetScope();
|
|
465
|
+
var isTarget = scope !== void 0 || targetScope === context.scopeName;
|
|
425
466
|
useIsomorphicLayoutEffect(function() {
|
|
426
|
-
if (!context.active) return;
|
|
467
|
+
if (!context.active || !isTarget) return;
|
|
427
468
|
context.registerTarget();
|
|
428
469
|
return function() {
|
|
429
470
|
context.unregisterTarget();
|
|
@@ -431,9 +472,10 @@ function useAdaptTarget(scope) {
|
|
|
431
472
|
}, [
|
|
432
473
|
context.active,
|
|
433
474
|
context.registerTarget,
|
|
434
|
-
context.unregisterTarget
|
|
475
|
+
context.unregisterTarget,
|
|
476
|
+
isTarget
|
|
435
477
|
]);
|
|
436
|
-
if (!context.active) {
|
|
478
|
+
if (!context.active || !isTarget) {
|
|
437
479
|
return null;
|
|
438
480
|
}
|
|
439
481
|
return {
|
|
@@ -478,5 +520,5 @@ function getAdaptRenderState(context) {
|
|
|
478
520
|
};
|
|
479
521
|
}
|
|
480
522
|
|
|
481
|
-
export { Adapt, AdaptCapabilities, AdaptContents, AdaptContext, AdaptParent, AdaptPortalContents, ProvideAdaptContext, useAdaptContext, useAdaptIsActive, useAdaptTarget, useAdaptedCapabilities };
|
|
523
|
+
export { Adapt, AdaptCapabilities, AdaptContents, AdaptContext, AdaptParent, AdaptPortalContents, ProvideAdaptContext, useAdaptContext, useAdaptIsActive, useAdaptTarget, useAdaptTargetScope, useAdaptedCapabilities };
|
|
482
524
|
//# sourceMappingURL=Adapt.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Adapt.native.js","names":["_Fragment"],"sources":["esm/Adapt.native.js"],"sourcesContent":["import { jsx as _jsx, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { isAndroid, isIos, isTouchable, isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { createStyledContext, useMedia } from \"@tamagui/core\";\nimport { withStaticProperties } from \"@tamagui/helpers\";\nimport { StackZIndexContext } from \"@tamagui/z-index-stack\";\nimport React, { createContext, useContext, useId } from \"react\";\nfunction createAdaptSlotStore() {\n var listeners = /* @__PURE__ */ new Set();\n var store = {\n element: null,\n version: 0,\n publish(element) {\n store.element = element;\n },\n clear() {\n store.element = null;\n },\n notify() {\n store.version += 1;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = listeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var listener = _step.value;\n listener();\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 getSnapshot() {\n return store.version;\n },\n subscribe(callback) {\n listeners.add(callback);\n return function() {\n listeners.delete(callback);\n };\n }\n };\n return store;\n}\nvar adaptContextKeys = [\n \"Contents\",\n \"scopeName\",\n \"portalName\",\n \"platform\",\n \"setPlatform\",\n \"when\",\n \"setWhen\",\n \"active\",\n \"rawActive\",\n \"setRawActive\",\n \"slot\",\n \"handoff\",\n \"targetFullyHidden\",\n \"registerTarget\",\n \"unregisterTarget\",\n \"registerContents\",\n \"unregisterContents\",\n \"registerRenderCallback\",\n \"unregisterRenderCallback\"\n];\nvar AdaptContext = createStyledContext({\n Contents: null,\n scopeName: \"\",\n portalName: \"\",\n platform: null,\n setPlatform: function(x) {\n },\n when: null,\n setWhen: function() {\n },\n active: false,\n rawActive: false,\n setRawActive: function() {\n },\n slot: null,\n handoff: {\n hidden: true,\n onTransition: function() {\n }\n },\n targetFullyHidden: true,\n registerTarget: function() {\n },\n unregisterTarget: function() {\n },\n registerContents: function() {\n },\n unregisterContents: function() {\n },\n registerRenderCallback: function() {\n },\n unregisterRenderCallback: function() {\n }\n}, {\n keys: adaptContextKeys\n});\nvar AdaptCapabilitiesContext = /* @__PURE__ */ createContext({});\nvar LastAdaptContextScope = /* @__PURE__ */ createContext(\"\");\nvar ProvideAdaptContext = function(param) {\n var { children, ...context } = param;\n var scope = context.scopeName || \"\";\n var lastScope = useContext(LastAdaptContextScope);\n return /* @__PURE__ */ _jsx(LastAdaptContextScope.Provider, {\n value: lastScope || context.lastScope || \"\",\n children: /* @__PURE__ */ _jsx(AdaptContext.Provider, {\n scope,\n lastScope: lastScope || context.lastScope,\n ...context,\n children\n })\n });\n};\nvar useAdaptContext = function(scope) {\n var lastScope = useContext(LastAdaptContextScope);\n var adaptScope = scope !== null && scope !== void 0 ? scope : lastScope;\n return AdaptContext.useStyledContext(adaptScope);\n};\nvar AdaptParent = function(param) {\n var { children, Contents, scope, open, onOpenChange, state } = param;\n var id = useId();\n var portalName = `AdaptPortal${scope}${id}`;\n var slotRef = React.useRef(null);\n if (!slotRef.current) {\n slotRef.current = createAdaptSlotStore();\n }\n var [when, setWhen] = React.useState(null);\n var [platform, setPlatform] = React.useState(null);\n var [rawActive, setRawActive] = React.useState(false);\n var [exiting, setExiting] = React.useState(false);\n var [present, setPresent] = React.useState(false);\n var [targetFullyHidden, setTargetFullyHidden] = React.useState(!open);\n var targetCountRef = React.useRef(0);\n var contentsCountRef = React.useRef(0);\n var renderCallbackCountRef = React.useRef(0);\n var rawActiveRef = React.useRef(false);\n var openRef = React.useRef(open);\n var wasTargetHiddenRef = React.useRef(!rawActive);\n var hasHadActiveTargetRef = React.useRef(false);\n var shouldStartExit = !rawActive && present && Boolean(open);\n var active = rawActive || exiting || shouldStartExit;\n var targetHidden = !rawActive;\n var skipNextAnimation = Boolean(rawActive && wasTargetHiddenRef.current && hasHadActiveTargetRef.current && open);\n rawActiveRef.current = rawActive;\n openRef.current = open;\n if (rawActive) {\n hasHadActiveTargetRef.current = true;\n }\n wasTargetHiddenRef.current = targetHidden;\n var releasePresenceLatch = React.useCallback(function() {\n setExiting(false);\n if (!rawActiveRef.current) {\n setPresent(false);\n }\n }, []);\n useIsomorphicLayoutEffect(function() {\n if (shouldStartExit) {\n setExiting(true);\n }\n }, [\n shouldStartExit\n ]);\n useIsomorphicLayoutEffect(function() {\n if (open && rawActive) {\n setTargetFullyHidden(false);\n return;\n }\n if (!open && !active) {\n setTargetFullyHidden(true);\n }\n }, [\n active,\n open,\n rawActive\n ]);\n useIsomorphicLayoutEffect(function() {\n if (rawActive) {\n setPresent(true);\n } else if (!active) {\n setPresent(false);\n }\n if (rawActive && exiting) {\n setExiting(false);\n }\n }, [\n active,\n exiting,\n rawActive\n ]);\n var handoff = React.useMemo(function() {\n return {\n hidden: targetHidden,\n skipNextAnimation,\n onTransition(e) {\n if (e.phase !== \"end\" || e.finished === false) return;\n if (e.cause !== \"close\") {\n setTargetFullyHidden(false);\n return;\n }\n if (openRef.current && rawActiveRef.current) {\n setTargetFullyHidden(false);\n return;\n }\n setTargetFullyHidden(true);\n releasePresenceLatch();\n }\n };\n }, [\n releasePresenceLatch,\n skipNextAnimation,\n targetHidden\n ]);\n var registerTarget = React.useCallback(function() {\n targetCountRef.current += 1;\n if (process.env.NODE_ENV === \"development\" && targetCountRef.current > 1) {\n console.error(`Adapt expected exactly one target in scope \"${scope}\", but ${targetCountRef.current} targets registered.`);\n }\n }, [\n scope\n ]);\n var unregisterTarget = React.useCallback(function() {\n targetCountRef.current = Math.max(0, targetCountRef.current - 1);\n }, []);\n var registerContents = React.useCallback(function() {\n contentsCountRef.current += 1;\n }, []);\n var unregisterContents = React.useCallback(function() {\n contentsCountRef.current = Math.max(0, contentsCountRef.current - 1);\n }, []);\n var registerRenderCallback = React.useCallback(function() {\n renderCallbackCountRef.current += 1;\n }, []);\n var unregisterRenderCallback = React.useCallback(function() {\n renderCallbackCountRef.current = Math.max(0, renderCallbackCountRef.current - 1);\n }, []);\n React.useEffect(function() {\n if (process.env.NODE_ENV !== \"development\") return;\n if (!active) return;\n var timer = setTimeout(function() {\n if (rawActiveRef.current && targetCountRef.current === 0 && contentsCountRef.current === 0 && renderCallbackCountRef.current === 0) {\n console.error(`Adapt is active in scope \"${scope}\" but no target registered with useAdaptTarget(), Adapt.Contents marker, or render callback consumed it.`);\n }\n });\n return function() {\n return clearTimeout(timer);\n };\n }, [\n active,\n scope\n ]);\n var FinalContents = Contents || AdaptSlotContents;\n return /* @__PURE__ */ _jsx(LastAdaptContextScope.Provider, {\n value: scope,\n children: /* @__PURE__ */ _jsx(ProvideAdaptContext, {\n Contents: FinalContents,\n when,\n platform,\n setPlatform,\n setWhen,\n active,\n rawActive,\n setRawActive,\n portalName,\n scopeName: scope,\n slot: slotRef.current,\n open,\n onOpenChange,\n state,\n handoff,\n targetFullyHidden,\n registerTarget,\n unregisterTarget,\n registerContents,\n unregisterContents,\n registerRenderCallback,\n unregisterRenderCallback,\n children\n })\n });\n};\nvar AdaptContents = function(param) {\n var { scope, ...rest } = param;\n var context = useAdaptContext(scope);\n if (!(context === null || context === void 0 ? void 0 : context.Contents)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? `tamagui.dev/docs/intro/errors#warning-002` : `You're rendering a Tamagui <Adapt /> component without nesting it inside a parent that is able to adapt.`);\n }\n useIsomorphicLayoutEffect(function() {\n if (!context.active) return;\n context.registerContents();\n return function() {\n context.unregisterContents();\n };\n }, [\n context.active,\n context.registerContents,\n context.unregisterContents\n ]);\n return /* @__PURE__ */ React.createElement(context.Contents, {\n ...rest,\n scope,\n key: `stable`\n });\n};\nAdaptContents.shouldForwardSpace = true;\nvar Adapt = withStaticProperties(function Adapt2(props) {\n var { platform, when, children, scope } = props;\n var context = useAdaptContext(scope);\n var rawEnabled = useAdaptIsActiveGiven(props);\n var enabled = rawEnabled || context.active;\n var isRenderCallback = typeof children === \"function\";\n useIsomorphicLayoutEffect(function() {\n var _context_setWhen, _context_setPlatform, _context_setRawActive;\n context === null || context === void 0 ? void 0 : (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 ? void 0 : _context_setWhen.call(context, when || rawEnabled);\n context === null || context === void 0 ? void 0 : (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 ? void 0 : _context_setPlatform.call(context, platform || null);\n context === null || context === void 0 ? void 0 : (_context_setRawActive = context.setRawActive) === null || _context_setRawActive === void 0 ? void 0 : _context_setRawActive.call(context, rawEnabled);\n }, [\n when,\n platform,\n rawEnabled,\n context.setWhen,\n context.setPlatform,\n context.setRawActive\n ]);\n useIsomorphicLayoutEffect(function() {\n if (!enabled || !isRenderCallback) return;\n context.registerRenderCallback();\n return function() {\n context.unregisterRenderCallback();\n };\n }, [\n enabled,\n isRenderCallback,\n context.registerRenderCallback,\n context.unregisterRenderCallback\n ]);\n useIsomorphicLayoutEffect(function() {\n return function() {\n var _context_setWhen, _context_setPlatform, _context_setRawActive;\n context === null || context === void 0 ? void 0 : (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 ? void 0 : _context_setWhen.call(context, null);\n context === null || context === void 0 ? void 0 : (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 ? void 0 : _context_setPlatform.call(context, null);\n context === null || context === void 0 ? void 0 : (_context_setRawActive = context.setRawActive) === null || _context_setRawActive === void 0 ? void 0 : _context_setRawActive.call(context, false);\n };\n }, []);\n var output;\n if (isRenderCallback) {\n var Component = context === null || context === void 0 ? void 0 : context.Contents;\n output = children(Component ? /* @__PURE__ */ _jsx(Component, {}) : null, getAdaptRenderState(context));\n } else {\n output = children;\n }\n return /* @__PURE__ */ _jsx(StackZIndexContext, {\n children: !enabled ? null : output\n });\n}, {\n Contents: AdaptContents\n});\nvar AdaptPortalContents = function(props) {\n var isActive = useAdaptIsActive(props.scope);\n var { slot } = useAdaptContext(props.scope);\n return /* @__PURE__ */ _jsx(AdaptSlotPublisher, {\n isActive,\n slot,\n children: props.children\n });\n};\nfunction AdaptSlotContents(param) {\n var { scope } = param;\n var { slot } = useAdaptContext(scope);\n var _slot_subscribe, _slot_getSnapshot, _slot_getSnapshot1;\n React.useSyncExternalStore((_slot_subscribe = slot === null || slot === void 0 ? void 0 : slot.subscribe) !== null && _slot_subscribe !== void 0 ? _slot_subscribe : emptySubscribe, (_slot_getSnapshot = slot === null || slot === void 0 ? void 0 : slot.getSnapshot) !== null && _slot_getSnapshot !== void 0 ? _slot_getSnapshot : emptySnapshot, (_slot_getSnapshot1 = slot === null || slot === void 0 ? void 0 : slot.getSnapshot) !== null && _slot_getSnapshot1 !== void 0 ? _slot_getSnapshot1 : emptySnapshot);\n var _slot_element;\n return /* @__PURE__ */ _jsx(_Fragment, {\n children: (_slot_element = slot === null || slot === void 0 ? void 0 : slot.element) !== null && _slot_element !== void 0 ? _slot_element : null\n });\n}\nfunction AdaptSlotPublisher(param) {\n var { isActive, slot, children } = param;\n var publishedRef = React.useRef(false);\n useIsomorphicLayoutEffect(function() {\n if (!slot) return;\n if (isActive) {\n slot.publish(children);\n publishedRef.current = true;\n } else {\n slot.clear();\n publishedRef.current = false;\n }\n slot.notify();\n });\n useIsomorphicLayoutEffect(function() {\n return function() {\n if (publishedRef.current) {\n slot === null || slot === void 0 ? void 0 : slot.clear();\n slot === null || slot === void 0 ? void 0 : slot.notify();\n publishedRef.current = false;\n }\n };\n }, [\n slot\n ]);\n return isActive ? null : /* @__PURE__ */ _jsx(_Fragment, {\n children\n });\n}\nvar emptySubscribe = function() {\n return function() {\n };\n};\nvar emptySnapshot = function() {\n return 0;\n};\nvar useAdaptIsActiveGiven = function(param) {\n var { when, platform } = param;\n var media = useMedia();\n if (when == null && platform == null) {\n return false;\n }\n if (when === true) {\n return true;\n }\n var enabled = false;\n if (platform === \"touch\") enabled = isTouchable;\n else if (platform === \"native\") enabled = !isWeb;\n else if (platform === \"web\") enabled = isWeb;\n else if (platform === \"ios\") enabled = isIos;\n else if (platform === \"android\") enabled = isAndroid;\n if (platform && enabled == false) {\n return false;\n }\n if (when && typeof when === \"string\") {\n enabled = media[when];\n }\n return enabled;\n};\nvar useAdaptIsActive = function(scope) {\n var props = useAdaptContext(scope);\n var isActiveGiven = useAdaptIsActiveGiven(props);\n return props.active || isActiveGiven;\n};\nfunction useAdaptTarget(scope) {\n var context = useAdaptContext(scope);\n useIsomorphicLayoutEffect(function() {\n if (!context.active) return;\n context.registerTarget();\n return function() {\n context.unregisterTarget();\n };\n }, [\n context.active,\n context.registerTarget,\n context.unregisterTarget\n ]);\n if (!context.active) {\n return null;\n }\n return {\n open: context.open,\n onOpenChange: context.onOpenChange,\n handoff: context.handoff,\n state: context.state\n };\n}\nvar AdaptCapabilities = function(param) {\n var { children, scroll, overlay, dismiss } = param;\n var parent = useContext(AdaptCapabilitiesContext);\n var value = React.useMemo(function() {\n return {\n scroll: scroll !== null && scroll !== void 0 ? scroll : parent.scroll,\n overlay: overlay !== null && overlay !== void 0 ? overlay : parent.overlay,\n dismiss: dismiss !== null && dismiss !== void 0 ? dismiss : parent.dismiss\n };\n }, [\n dismiss,\n overlay,\n parent.dismiss,\n parent.overlay,\n parent.scroll,\n scroll\n ]);\n return /* @__PURE__ */ _jsx(AdaptCapabilitiesContext.Provider, {\n value,\n children\n });\n};\nvar useAdaptedCapabilities = function() {\n return useContext(AdaptCapabilitiesContext);\n};\nfunction getAdaptRenderState(context) {\n return {\n active: context.active,\n open: context.open,\n onOpenChange: context.onOpenChange,\n state: context.state,\n handoff: context.handoff\n };\n}\nexport {\n Adapt,\n AdaptCapabilities,\n AdaptContents,\n AdaptContext,\n AdaptParent,\n AdaptPortalContents,\n ProvideAdaptContext,\n useAdaptContext,\n useAdaptIsActive,\n useAdaptTarget,\n useAdaptedCapabilities\n};\n//# sourceMappingURL=Adapt.js.map\n"],"mappings":";;;;;;;;AAMA,SAAS,uBAAuB;CAC9B,IAAI,4BAA4B,IAAI,IAAI;CACxC,IAAI,QAAQ;EACV,SAAS;EACT,SAAS;EACT,QAAQ,SAAS;GACf,MAAM,UAAU;EAClB;EACA,QAAQ;GACN,MAAM,UAAU;EAClB;EACA,SAAS;GACP,MAAM,WAAW;GACjB,IAAI,4BAA4B,MAAM,oBAAoB,OAAO,iBAAiB,KAAK;GACvF,IAAI;IACF,KAAK,IAAI,YAAY,UAAU,OAAO,SAAS,CAAC,GAAG,OAAO,EAAE,6BAA6B,QAAQ,UAAU,KAAK,EAAC,CAAE,OAAO,4BAA4B,MAAM;KAC1J,IAAI,WAAW,MAAM;KACrB,SAAS;IACX;GACF,SAAS,KAAK;IACZ,oBAAoB;IACpB,iBAAiB;GACnB,UAAU;IACR,IAAI;KACF,IAAI,CAAC,6BAA6B,UAAU,UAAU,MAAM;MAC1D,UAAU,OAAO;KACnB;IACF,UAAU;KACR,IAAI,mBAAmB;MACrB,MAAM;KACR;IACF;GACF;EACF;EACA,cAAc;GACZ,OAAO,MAAM;EACf;EACA,UAAU,UAAU;GAClB,UAAU,IAAI,QAAQ;GACtB,OAAO,WAAW;IAChB,UAAU,OAAO,QAAQ;GAC3B;EACF;CACF;CACA,OAAO;AACT;AACA,IAAI,mBAAmB;CACrB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AACA,IAAI,eAAe,oBAAoB;CACrC,UAAU;CACV,WAAW;CACX,YAAY;CACZ,UAAU;CACV,aAAa,SAAS,GAAG,CACzB;CACA,MAAM;CACN,SAAS,WAAW,CACpB;CACA,QAAQ;CACR,WAAW;CACX,cAAc,WAAW,CACzB;CACA,MAAM;CACN,SAAS;EACP,QAAQ;EACR,cAAc,WAAW,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0B,WAAW;EACnC,IAAI,CAAC,QAAQ,QAAQ;EACrB,QAAQ,eAAe;EACvB,OAAO,WAAW;GAChB,QAAQ,iBAAiB;EAC3B;CACF,GAAG;EACD,QAAQ;EACR,QAAQ;EACR,QAAQ;CACV,CAAC;CACD,IAAI,CAAC,QAAQ,QAAQ;EACnB,OAAO;CACT;CACA,OAAO;EACL,MAAM,QAAQ;EACd,cAAc,QAAQ;EACtB,SAAS,QAAQ;EACjB,OAAO,QAAQ;CACjB;AACF;AACA,IAAI,oBAAoB,SAAS,OAAO;CACtC,IAAI,EAAE,UAAU,QAAQ,SAAS,YAAY;CAC7C,IAAI,SAAS,WAAW,wBAAwB;CAChD,IAAI,QAAQ,MAAM,QAAQ,WAAW;EACnC,OAAO;GACL,QAAQ,WAAW,QAAQ,WAAW,KAAK,IAAI,SAAS,OAAO;GAC/D,SAAS,YAAY,QAAQ,YAAY,KAAK,IAAI,UAAU,OAAO;GACnE,SAAS,YAAY,QAAQ,YAAY,KAAK,IAAI,UAAU,OAAO;EACrE;CACF,GAAG;EACD;EACA;EACA,OAAO;EACP,OAAO;EACP,OAAO;EACP;CACF,CAAC;CACD,OAAuB,oBAAK,yBAAyB,UAAU;EAC7D;EACA;CACF,CAAC;AACH;AACA,IAAI,yBAAyB,WAAW;CACtC,OAAO,WAAW,wBAAwB;AAC5C;AACA,SAAS,oBAAoB,SAAS;CACpC,OAAO;EACL,QAAQ,QAAQ;EAChB,MAAM,QAAQ;EACd,cAAc,QAAQ;EACtB,OAAO,QAAQ;EACf,SAAS,QAAQ;CACnB;AACF"}
|
|
1
|
+
{"version":3,"file":"Adapt.native.js","names":["_Fragment"],"sources":["esm/Adapt.native.js"],"sourcesContent":["import { jsx as _jsx, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { isAndroid, isIos, isTouchable, isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { createStyledContext, useMedia } from \"@tamagui/core\";\nimport { withStaticProperties } from \"@tamagui/helpers\";\nimport { StackZIndexContext } from \"@tamagui/z-index-stack\";\nimport React, { createContext, useContext, useId } from \"react\";\nfunction createAdaptSlotStore() {\n var listeners = /* @__PURE__ */ new Set();\n var store = {\n element: null,\n version: 0,\n publish(element) {\n store.element = element;\n },\n clear() {\n store.element = null;\n },\n notify() {\n store.version += 1;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = listeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var listener = _step.value;\n listener();\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 getSnapshot() {\n return store.version;\n },\n subscribe(callback) {\n listeners.add(callback);\n return function() {\n listeners.delete(callback);\n };\n }\n };\n return store;\n}\nvar adaptContextKeys = [\n \"Contents\",\n \"scopeName\",\n \"portalName\",\n \"active\",\n \"setAdaptConfig\",\n \"slot\",\n \"handoff\",\n \"targetFullyHidden\",\n \"registerTarget\",\n \"unregisterTarget\",\n \"registerContents\",\n \"unregisterContents\",\n \"registerRenderCallback\",\n \"unregisterRenderCallback\"\n];\nvar AdaptContext = createStyledContext({\n Contents: null,\n scopeName: \"\",\n portalName: \"\",\n active: false,\n setAdaptConfig: function() {\n },\n slot: null,\n handoff: {\n hidden: true,\n onTransition: function() {\n }\n },\n targetFullyHidden: true,\n registerTarget: function() {\n },\n unregisterTarget: function() {\n },\n registerContents: function() {\n },\n unregisterContents: function() {\n },\n registerRenderCallback: function() {\n },\n unregisterRenderCallback: function() {\n }\n}, {\n keys: adaptContextKeys\n});\nvar AdaptCapabilitiesContext = /* @__PURE__ */ createContext({});\nvar LastAdaptContextScope = /* @__PURE__ */ createContext(\"\");\nvar AdaptTargetScope = /* @__PURE__ */ createContext(null);\nvar useAdaptTargetScope = function() {\n return useContext(AdaptTargetScope);\n};\nvar ProvideAdaptContext = function(param) {\n var { children, ...context } = param;\n var scope = context.scopeName || \"\";\n var lastScope = useContext(LastAdaptContextScope);\n return /* @__PURE__ */ _jsx(LastAdaptContextScope.Provider, {\n value: lastScope || context.lastScope || \"\",\n children: /* @__PURE__ */ _jsx(AdaptContext.Provider, {\n scope,\n lastScope: lastScope || context.lastScope,\n ...context,\n children\n })\n });\n};\nvar useAdaptContext = function(scope) {\n var lastScope = useContext(LastAdaptContextScope);\n var adaptScope = scope !== null && scope !== void 0 ? scope : lastScope;\n return AdaptContext.useStyledContext(adaptScope);\n};\nfunction findAdaptConfig(children, scope) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = React.Children.toArray(children)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var child = _step.value;\n if (!/* @__PURE__ */ React.isValidElement(child)) continue;\n if (child.type === React.Fragment) {\n var found = findAdaptConfig(child.props.children, scope);\n if (found) return found;\n continue;\n }\n if (child.type === Adapt) {\n var childProps = child.props;\n if (childProps.scope == null || childProps.scope === scope) {\n return childProps;\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 return null;\n}\nvar AdaptParent = function(param) {\n var { children, adaptChildren, Contents, scope, open, onOpenChange, state } = param;\n var id = useId();\n var portalName = `AdaptPortal${scope}${id}`;\n var slotRef = React.useRef(null);\n if (!slotRef.current) {\n slotRef.current = createAdaptSlotStore();\n }\n var staticConfig = React.useMemo(function() {\n var _findAdaptConfig;\n return (_findAdaptConfig = findAdaptConfig(adaptChildren, scope)) !== null && _findAdaptConfig !== void 0 ? _findAdaptConfig : findAdaptConfig(children, scope);\n }, [\n adaptChildren,\n children,\n scope\n ]);\n var [publishedConfig, setPublishedConfig] = React.useState(null);\n var rawActive = useAdaptIsActiveGiven(staticConfig !== null && staticConfig !== void 0 ? staticConfig : publishedConfig);\n var staticConfigRef = React.useRef(staticConfig);\n staticConfigRef.current = staticConfig;\n var setAdaptConfig = React.useCallback(function(config) {\n if (staticConfigRef.current) return;\n setPublishedConfig(config);\n }, []);\n var [exiting, setExiting] = React.useState(false);\n var [present, setPresent] = React.useState(false);\n var [targetFullyHidden, setTargetFullyHidden] = React.useState(!open);\n var targetCountRef = React.useRef(0);\n var contentsCountRef = React.useRef(0);\n var renderCallbackCountRef = React.useRef(0);\n var rawActiveRef = React.useRef(false);\n var openRef = React.useRef(open);\n var wasTargetHiddenRef = React.useRef(!rawActive);\n var hasHadActiveTargetRef = React.useRef(false);\n var shouldStartExit = !rawActive && present && Boolean(open);\n var active = rawActive || exiting || shouldStartExit;\n var targetHidden = !rawActive;\n var skipNextAnimation = Boolean(rawActive && wasTargetHiddenRef.current && hasHadActiveTargetRef.current && open);\n var releasePresenceLatch = React.useCallback(function() {\n setExiting(false);\n if (!rawActiveRef.current) {\n setPresent(false);\n }\n }, []);\n useIsomorphicLayoutEffect(function() {\n if (shouldStartExit) {\n setExiting(true);\n }\n }, [\n shouldStartExit\n ]);\n useIsomorphicLayoutEffect(function() {\n rawActiveRef.current = rawActive;\n openRef.current = open;\n if (rawActive) {\n hasHadActiveTargetRef.current = true;\n }\n wasTargetHiddenRef.current = targetHidden;\n if (open && rawActive) {\n setTargetFullyHidden(false);\n return;\n }\n if (!open && !active) {\n setTargetFullyHidden(true);\n }\n }, [\n active,\n open,\n rawActive,\n targetHidden\n ]);\n useIsomorphicLayoutEffect(function() {\n if (rawActive) {\n setPresent(true);\n } else if (!active) {\n setPresent(false);\n }\n if (rawActive && exiting) {\n setExiting(false);\n }\n }, [\n active,\n exiting,\n rawActive\n ]);\n var handoff = React.useMemo(function() {\n return {\n hidden: targetHidden,\n skipNextAnimation,\n onTransition(e) {\n if (e.phase !== \"end\" || e.finished === false) return;\n if (e.cause !== \"close\") {\n setTargetFullyHidden(false);\n return;\n }\n if (openRef.current && rawActiveRef.current) {\n setTargetFullyHidden(false);\n return;\n }\n setTargetFullyHidden(true);\n releasePresenceLatch();\n }\n };\n }, [\n releasePresenceLatch,\n skipNextAnimation,\n targetHidden\n ]);\n var registerTarget = React.useCallback(function() {\n targetCountRef.current += 1;\n if (process.env.NODE_ENV === \"development\" && targetCountRef.current > 1) {\n console.error(`Adapt expected exactly one target in scope \"${scope}\", but ${targetCountRef.current} targets registered.`);\n }\n }, [\n scope\n ]);\n var unregisterTarget = React.useCallback(function() {\n targetCountRef.current = Math.max(0, targetCountRef.current - 1);\n }, []);\n var registerContents = React.useCallback(function() {\n contentsCountRef.current += 1;\n }, []);\n var unregisterContents = React.useCallback(function() {\n contentsCountRef.current = Math.max(0, contentsCountRef.current - 1);\n }, []);\n var registerRenderCallback = React.useCallback(function() {\n renderCallbackCountRef.current += 1;\n }, []);\n var unregisterRenderCallback = React.useCallback(function() {\n renderCallbackCountRef.current = Math.max(0, renderCallbackCountRef.current - 1);\n }, []);\n React.useEffect(function() {\n if (process.env.NODE_ENV !== \"development\") return;\n if (!active) return;\n var timer = setTimeout(function() {\n if (rawActiveRef.current && targetCountRef.current === 0 && contentsCountRef.current === 0 && renderCallbackCountRef.current === 0) {\n console.error(`Adapt is active in scope \"${scope}\" but no target registered with useAdaptTarget(), Adapt.Contents marker, or render callback consumed it.`);\n }\n });\n return function() {\n return clearTimeout(timer);\n };\n }, [\n active,\n scope\n ]);\n var FinalContents = Contents || AdaptSlotContents;\n return /* @__PURE__ */ _jsx(LastAdaptContextScope.Provider, {\n value: scope,\n children: /* @__PURE__ */ _jsx(ProvideAdaptContext, {\n Contents: FinalContents,\n active,\n setAdaptConfig,\n portalName,\n scopeName: scope,\n slot: slotRef.current,\n open,\n onOpenChange,\n state,\n handoff,\n targetFullyHidden,\n registerTarget,\n unregisterTarget,\n registerContents,\n unregisterContents,\n registerRenderCallback,\n unregisterRenderCallback,\n children\n })\n });\n};\nvar AdaptContents = function(param) {\n var { scope, ...rest } = param;\n var context = useAdaptContext(scope);\n if (!(context === null || context === void 0 ? void 0 : context.Contents)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? `tamagui.dev/docs/intro/errors#warning-002` : `You're rendering a Tamagui <Adapt /> component without nesting it inside a parent that is able to adapt.`);\n }\n useIsomorphicLayoutEffect(function() {\n if (!context.active) return;\n context.registerContents();\n return function() {\n context.unregisterContents();\n };\n }, [\n context.active,\n context.registerContents,\n context.unregisterContents\n ]);\n return /* @__PURE__ */ _jsx(AdaptTargetScope.Provider, {\n value: null,\n children: /* @__PURE__ */ React.createElement(context.Contents, {\n ...rest,\n scope,\n key: `stable`\n })\n });\n};\nvar Adapt = withStaticProperties(function Adapt2(props) {\n var { children, platform, scope, when } = props;\n var context = useAdaptContext(scope);\n var enabled = context.active;\n var isRenderCallback = typeof children === \"function\";\n useIsomorphicLayoutEffect(function() {\n context.setAdaptConfig({\n when,\n platform\n });\n return function() {\n context.setAdaptConfig(null);\n };\n }, [\n when,\n platform,\n context.setAdaptConfig\n ]);\n useIsomorphicLayoutEffect(function() {\n if (!enabled || !isRenderCallback) return;\n context.registerRenderCallback();\n return function() {\n context.unregisterRenderCallback();\n };\n }, [\n enabled,\n isRenderCallback,\n context.registerRenderCallback,\n context.unregisterRenderCallback\n ]);\n var output;\n if (isRenderCallback) {\n var Component = context === null || context === void 0 ? void 0 : context.Contents;\n output = children(Component ? /* @__PURE__ */ _jsx(Component, {}) : null, getAdaptRenderState(context));\n } else {\n output = children;\n }\n return /* @__PURE__ */ _jsx(AdaptTargetScope.Provider, {\n value: context.scopeName,\n children: /* @__PURE__ */ _jsx(StackZIndexContext, {\n children: !enabled ? null : output\n })\n });\n}, {\n Contents: AdaptContents\n});\nvar AdaptPortalContents = function(props) {\n var isActive = useAdaptIsActive(props.scope);\n var { slot } = useAdaptContext(props.scope);\n return /* @__PURE__ */ _jsx(AdaptSlotPublisher, {\n isActive,\n slot,\n children: props.children\n });\n};\nfunction AdaptSlotContents(param) {\n var { scope } = param;\n var { slot } = useAdaptContext(scope);\n var _slot_subscribe, _slot_getSnapshot, _slot_getSnapshot1;\n React.useSyncExternalStore((_slot_subscribe = slot === null || slot === void 0 ? void 0 : slot.subscribe) !== null && _slot_subscribe !== void 0 ? _slot_subscribe : emptySubscribe, (_slot_getSnapshot = slot === null || slot === void 0 ? void 0 : slot.getSnapshot) !== null && _slot_getSnapshot !== void 0 ? _slot_getSnapshot : emptySnapshot, (_slot_getSnapshot1 = slot === null || slot === void 0 ? void 0 : slot.getSnapshot) !== null && _slot_getSnapshot1 !== void 0 ? _slot_getSnapshot1 : emptySnapshot);\n var _slot_element;\n return /* @__PURE__ */ _jsx(_Fragment, {\n children: (_slot_element = slot === null || slot === void 0 ? void 0 : slot.element) !== null && _slot_element !== void 0 ? _slot_element : null\n });\n}\nfunction AdaptSlotPublisher(param) {\n var { isActive, slot, children } = param;\n var publishedRef = React.useRef(null);\n useIsomorphicLayoutEffect(function() {\n if (!slot) return;\n var published = publishedRef.current;\n if (published && published.isActive === isActive && published.element === children) {\n return;\n }\n publishedRef.current = {\n isActive,\n element: children\n };\n if (isActive) {\n slot.publish(children);\n } else {\n slot.clear();\n }\n slot.notify();\n });\n useIsomorphicLayoutEffect(function() {\n return function() {\n var _publishedRef_current;\n if ((_publishedRef_current = publishedRef.current) === null || _publishedRef_current === void 0 ? void 0 : _publishedRef_current.isActive) {\n slot === null || slot === void 0 ? void 0 : slot.clear();\n slot === null || slot === void 0 ? void 0 : slot.notify();\n }\n publishedRef.current = null;\n };\n }, [\n slot\n ]);\n return isActive ? null : /* @__PURE__ */ _jsx(_Fragment, {\n children\n });\n}\nvar emptySubscribe = function() {\n return function() {\n };\n};\nvar emptySnapshot = function() {\n return 0;\n};\nvar useAdaptIsActiveGiven = function(config) {\n var media = useMedia();\n var when = config === null || config === void 0 ? void 0 : config.when;\n var platform = config === null || config === void 0 ? void 0 : config.platform;\n if (when == null && platform == null) {\n return false;\n }\n var enabled = false;\n if (platform === \"touch\") enabled = isTouchable;\n else if (platform === \"native\") enabled = !isWeb;\n else if (platform === \"web\") enabled = isWeb;\n else if (platform === \"ios\") enabled = isIos;\n else if (platform === \"android\") enabled = isAndroid;\n if (platform && enabled == false) {\n return false;\n }\n if (when === true) {\n return true;\n }\n if (when && typeof when === \"string\") {\n enabled = media[when];\n }\n return enabled;\n};\nvar useAdaptIsActive = function(scope) {\n return useAdaptContext(scope).active;\n};\nfunction useAdaptTarget(scope) {\n var context = useAdaptContext(scope);\n var targetScope = useAdaptTargetScope();\n var isTarget = scope !== void 0 || targetScope === context.scopeName;\n useIsomorphicLayoutEffect(function() {\n if (!context.active || !isTarget) return;\n context.registerTarget();\n return function() {\n context.unregisterTarget();\n };\n }, [\n context.active,\n context.registerTarget,\n context.unregisterTarget,\n isTarget\n ]);\n if (!context.active || !isTarget) {\n return null;\n }\n return {\n open: context.open,\n onOpenChange: context.onOpenChange,\n handoff: context.handoff,\n state: context.state\n };\n}\nvar AdaptCapabilities = function(param) {\n var { children, scroll, overlay, dismiss } = param;\n var parent = useContext(AdaptCapabilitiesContext);\n var value = React.useMemo(function() {\n return {\n scroll: scroll !== null && scroll !== void 0 ? scroll : parent.scroll,\n overlay: overlay !== null && overlay !== void 0 ? overlay : parent.overlay,\n dismiss: dismiss !== null && dismiss !== void 0 ? dismiss : parent.dismiss\n };\n }, [\n dismiss,\n overlay,\n parent.dismiss,\n parent.overlay,\n parent.scroll,\n scroll\n ]);\n return /* @__PURE__ */ _jsx(AdaptCapabilitiesContext.Provider, {\n value,\n children\n });\n};\nvar useAdaptedCapabilities = function() {\n return useContext(AdaptCapabilitiesContext);\n};\nfunction getAdaptRenderState(context) {\n return {\n active: context.active,\n open: context.open,\n onOpenChange: context.onOpenChange,\n state: context.state,\n handoff: context.handoff\n };\n}\nexport {\n Adapt,\n AdaptCapabilities,\n AdaptContents,\n AdaptContext,\n AdaptParent,\n AdaptPortalContents,\n ProvideAdaptContext,\n useAdaptContext,\n useAdaptIsActive,\n useAdaptTarget,\n useAdaptTargetScope,\n useAdaptedCapabilities\n};\n//# sourceMappingURL=Adapt.js.map\n"],"mappings":";;;;;;;;AAMA,SAAS,uBAAuB;CAC9B,IAAI,4BAA4B,IAAI,IAAI;CACxC,IAAI,QAAQ;EACV,SAAS;EACT,SAAS;EACT,QAAQ,SAAS;GACf,MAAM,UAAU;EAClB;EACA,QAAQ;GACN,MAAM,UAAU;EAClB;EACA,SAAS;GACP,MAAM,WAAW;GACjB,IAAI,4BAA4B,MAAM,oBAAoB,OAAO,iBAAiB,KAAK;GACvF,IAAI;IACF,KAAK,IAAI,YAAY,UAAU,OAAO,SAAS,CAAC,GAAG,OAAO,EAAE,6BAA6B,QAAQ,UAAU,KAAK,EAAC,CAAE,OAAO,4BAA4B,MAAM;KAC1J,IAAI,WAAW,MAAM;KACrB,SAAS;IACX;GACF,SAAS,KAAK;IACZ,oBAAoB;IACpB,iBAAiB;GACnB,UAAU;IACR,IAAI;KACF,IAAI,CAAC,6BAA6B,UAAU,UAAU,MAAM;MAC1D,UAAU,OAAO;KACnB;IACF,UAAU;KACR,IAAI,mBAAmB;MACrB,MAAM;KACR;IACF;GACF;EACF;EACA,cAAc;GACZ,OAAO,MAAM;EACf;EACA,UAAU,UAAU;GAClB,UAAU,IAAI,QAAQ;GACtB,OAAO,WAAW;IAChB,UAAU,OAAO,QAAQ;GAC3B;EACF;CACF;CACA,OAAO;AACT;AACA,IAAI,mBAAmB;CACrB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AACA,IAAI,eAAe,oBAAoB;CACrC,UAAU;CACV,WAAW;CACX,YAAY;CACZ,QAAQ;CACR,gBAAgB,WAAW,CAC3B;CACA,MAAM;CACN,SAAS;EACP,QAAQ;EACR,cAAc,WAAW,CACzB;CACF;CACA,mBAAmB;CACnB,gBAAgB,WAAW,CAC3B;CACA,kBAAkB,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,KAAK,IAAI,UAAU,OAAO;EACrE;CACF,GAAG;EACD;EACA;EACA,OAAO;EACP,OAAO;EACP,OAAO;EACP;CACF,CAAC;CACD,OAAuB,oBAAK,yBAAyB,UAAU;EAC7D;EACA;CACF,CAAC;AACH;AACA,IAAI,yBAAyB,WAAW;CACtC,OAAO,WAAW,wBAAwB;AAC5C;AACA,SAAS,oBAAoB,SAAS;CACpC,OAAO;EACL,QAAQ,QAAQ;EAChB,MAAM,QAAQ;EACd,cAAc,QAAQ;EACtB,OAAO,QAAQ;EACf,SAAS,QAAQ;CACnB;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/adapt",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
|
+
"license": "MIT",
|
|
4
5
|
"files": [
|
|
5
6
|
"src",
|
|
6
7
|
"types",
|
|
@@ -33,14 +34,14 @@
|
|
|
33
34
|
"clean:build": "tamagui-build clean:build"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
|
-
"@tamagui/constants": "3.0.
|
|
37
|
-
"@tamagui/core": "3.0.
|
|
38
|
-
"@tamagui/helpers": "3.0.
|
|
39
|
-
"@tamagui/portal": "3.0.
|
|
40
|
-
"@tamagui/z-index-stack": "3.0.
|
|
37
|
+
"@tamagui/constants": "3.0.1",
|
|
38
|
+
"@tamagui/core": "3.0.1",
|
|
39
|
+
"@tamagui/helpers": "3.0.1",
|
|
40
|
+
"@tamagui/portal": "3.0.1",
|
|
41
|
+
"@tamagui/z-index-stack": "3.0.1"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"@tamagui/build": "3.0.
|
|
44
|
+
"@tamagui/build": "3.0.1",
|
|
44
45
|
"react": "19.2.3"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
@@ -50,5 +51,6 @@
|
|
|
50
51
|
"type": "git",
|
|
51
52
|
"url": "git+https://github.com/tamagui/tamagui.git",
|
|
52
53
|
"directory": "code/ui/adapt"
|
|
53
|
-
}
|
|
54
|
+
},
|
|
55
|
+
"releaseSourceCommit": "c156b7cc55e5a6cc5883ebc8189720850ac32dbd"
|
|
54
56
|
}
|