tamagui 3.0.16 → 3.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/native.cjs CHANGED
@@ -15715,8 +15715,17 @@ function updateNativeStyleLink(ref, host) {
15715
15715
  ref.nativeLink.unlink();
15716
15716
  ref.nativeLink = null;
15717
15717
  }
15718
- ref.nativePushedKeys = void 0;
15719
- if (host && engine && ref.nativeStyleUpdate) ref.nativeLink = engine.link(host, {});
15718
+ if (host && engine && ref.nativeStyleUpdate) {
15719
+ var _ref_nativePushedKeys;
15720
+ ref.nativeLink = engine.link(host, {});
15721
+ if (host !== ref.nativeHost) {
15722
+ ref.nativeHost = host;
15723
+ ref.nativePushedKeys = void 0;
15724
+ } else if (ref.nativeLink && ((_ref_nativePushedKeys = ref.nativePushedKeys) === null || _ref_nativePushedKeys === void 0 ? void 0 : _ref_nativePushedKeys.size)) {
15725
+ var _ref_nativeResync;
15726
+ (_ref_nativeResync = ref.nativeResync) === null || _ref_nativeResync === void 0 || _ref_nativeResync.call(ref);
15727
+ }
15728
+ }
15720
15729
  }
15721
15730
  function queueNativeViewState(entry) {
15722
15731
  if (!engine) return;
@@ -19896,6 +19905,10 @@ function createComponent(staticConfig) {
19896
19905
  }
19897
19906
  return true;
19898
19907
  } : void 0;
19908
+ stateRef.current.nativeResync = canNativeUpdate ? function() {
19909
+ var style2 = splitStyles.style;
19910
+ if (style2) pushViewState((themeState === null || themeState === void 0 ? void 0 : themeState.name) || "", style2);
19911
+ } : void 0;
19899
19912
  if (canNativeUpdate && stateRef.current.nativeLink) {
19900
19913
  var sr = stateRef.current;
19901
19914
  var style = splitStyles.style;
@@ -36209,7 +36222,7 @@ var SheetScrollViewCustom = createRefComponent(function(param, ref) {
36209
36222
  var gestureContext = useGestureSheetContext();
36210
36223
  var { scrollBridge, setHasScrollView, hasFit, screenSize } = context;
36211
36224
  var keyboardOccludedHeight = Math.max(0, context.keyboardOccludedHeight || 0);
36212
- var isKeyboardVisible = context.isKeyboardVisible === true || false;
36225
+ var isKeyboardVisible = hasFit && (context.isKeyboardVisible === true || false);
36213
36226
  var [scrollEnabled] = useControllableState({
36214
36227
  prop: scrollEnabledProp,
36215
36228
  defaultProp: true
package/dist/test.cjs CHANGED
@@ -15918,8 +15918,17 @@ function updateNativeStyleLink(ref, host) {
15918
15918
  ref.nativeLink.unlink();
15919
15919
  ref.nativeLink = null;
15920
15920
  }
15921
- ref.nativePushedKeys = void 0;
15922
- if (host && engine && ref.nativeStyleUpdate) ref.nativeLink = engine.link(host, {});
15921
+ if (host && engine && ref.nativeStyleUpdate) {
15922
+ var _ref_nativePushedKeys;
15923
+ ref.nativeLink = engine.link(host, {});
15924
+ if (host !== ref.nativeHost) {
15925
+ ref.nativeHost = host;
15926
+ ref.nativePushedKeys = void 0;
15927
+ } else if (ref.nativeLink && ((_ref_nativePushedKeys = ref.nativePushedKeys) === null || _ref_nativePushedKeys === void 0 ? void 0 : _ref_nativePushedKeys.size)) {
15928
+ var _ref_nativeResync;
15929
+ (_ref_nativeResync = ref.nativeResync) === null || _ref_nativeResync === void 0 || _ref_nativeResync.call(ref);
15930
+ }
15931
+ }
15923
15932
  }
15924
15933
  function queueNativeViewState(entry) {
15925
15934
  if (!engine) return;
@@ -20123,6 +20132,10 @@ function createComponent(staticConfig) {
20123
20132
  }
20124
20133
  return true;
20125
20134
  } : void 0;
20135
+ stateRef.current.nativeResync = canNativeUpdate ? function() {
20136
+ var style2 = splitStyles.style;
20137
+ if (style2) pushViewState((themeState === null || themeState === void 0 ? void 0 : themeState.name) || "", style2);
20138
+ } : void 0;
20126
20139
  if (canNativeUpdate && stateRef.current.nativeLink) {
20127
20140
  var sr = stateRef.current;
20128
20141
  var style = splitStyles.style;
@@ -36325,7 +36338,7 @@ var SheetScrollViewCustom = createRefComponent(function(param, ref) {
36325
36338
  var gestureContext = useGestureSheetContext();
36326
36339
  var { scrollBridge, setHasScrollView, hasFit, screenSize } = context;
36327
36340
  var keyboardOccludedHeight = Math.max(0, context.keyboardOccludedHeight || 0);
36328
- var isKeyboardVisible = context.isKeyboardVisible === true || false;
36341
+ var isKeyboardVisible = hasFit && (context.isKeyboardVisible === true || false);
36329
36342
  var [scrollEnabled] = useControllableState({
36330
36343
  prop: scrollEnabledProp,
36331
36344
  defaultProp: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tamagui",
3
- "version": "3.0.16",
3
+ "version": "3.0.18",
4
4
  "license": "MIT",
5
5
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
6
6
  "description": "Style and UI for React (web and native) meet an optimizing compiler",
@@ -315,73 +315,73 @@
315
315
  "check-circular-deps": "npx madge --circular ./src/index.ts"
316
316
  },
317
317
  "dependencies": {
318
- "@tamagui/accordion": "3.0.16",
319
- "@tamagui/adapt": "3.0.16",
320
- "@tamagui/alert-dialog": "3.0.16",
321
- "@tamagui/animate": "3.0.16",
322
- "@tamagui/animate-presence": "3.0.16",
323
- "@tamagui/avatar": "3.0.16",
324
- "@tamagui/button": "3.0.16",
325
- "@tamagui/card": "3.0.16",
326
- "@tamagui/checkbox": "3.0.16",
327
- "@tamagui/collapsible": "3.0.16",
328
- "@tamagui/compose-refs": "3.0.16",
329
- "@tamagui/constants": "3.0.16",
330
- "@tamagui/context-menu": "3.0.16",
331
- "@tamagui/core": "3.0.16",
332
- "@tamagui/create-context": "3.0.16",
333
- "@tamagui/create-menu": "3.0.16",
334
- "@tamagui/dialog": "3.0.16",
335
- "@tamagui/element": "3.0.16",
336
- "@tamagui/fake-react-native": "3.0.16",
337
- "@tamagui/field": "3.0.16",
338
- "@tamagui/focusable": "3.0.16",
339
- "@tamagui/font-size": "3.0.16",
340
- "@tamagui/form": "3.0.16",
341
- "@tamagui/get-font-sized": "3.0.16",
342
- "@tamagui/get-token": "3.0.16",
343
- "@tamagui/group": "3.0.16",
344
- "@tamagui/helpers-tamagui": "3.0.16",
345
- "@tamagui/image": "3.0.16",
346
- "@tamagui/input": "3.0.16",
347
- "@tamagui/label": "3.0.16",
348
- "@tamagui/linear-gradient": "3.0.16",
349
- "@tamagui/list-item": "3.0.16",
350
- "@tamagui/menu": "3.0.16",
351
- "@tamagui/polyfill-dev": "3.0.16",
352
- "@tamagui/popover": "3.0.16",
353
- "@tamagui/popper": "3.0.16",
354
- "@tamagui/portal": "3.0.16",
355
- "@tamagui/progress": "3.0.16",
356
- "@tamagui/radio-group": "3.0.16",
357
- "@tamagui/react-native-media-driver": "3.0.16",
358
- "@tamagui/react-native-types": "3.0.16",
359
- "@tamagui/scroll-view": "3.0.16",
360
- "@tamagui/select": "3.0.16",
361
- "@tamagui/separator": "3.0.16",
362
- "@tamagui/shapes": "3.0.16",
363
- "@tamagui/sheet": "3.0.16",
364
- "@tamagui/slider": "3.0.16",
365
- "@tamagui/spacer": "3.0.16",
366
- "@tamagui/spinner": "3.0.16",
367
- "@tamagui/stacks": "3.0.16",
368
- "@tamagui/switch": "3.0.16",
369
- "@tamagui/tabs": "3.0.16",
370
- "@tamagui/text": "3.0.16",
371
- "@tamagui/theme": "3.0.16",
372
- "@tamagui/toast": "3.0.16",
373
- "@tamagui/toggle-group": "3.0.16",
374
- "@tamagui/tooltip": "3.0.16",
375
- "@tamagui/ui": "3.0.16",
376
- "@tamagui/use-controllable-state": "3.0.16",
377
- "@tamagui/use-debounce": "3.0.16",
378
- "@tamagui/use-force-update": "3.0.16",
379
- "@tamagui/use-window-dimensions": "3.0.16",
380
- "@tamagui/visually-hidden": "3.0.16",
381
- "@tamagui/z-index-stack": "3.0.16"
318
+ "@tamagui/accordion": "3.0.18",
319
+ "@tamagui/adapt": "3.0.18",
320
+ "@tamagui/alert-dialog": "3.0.18",
321
+ "@tamagui/animate": "3.0.18",
322
+ "@tamagui/animate-presence": "3.0.18",
323
+ "@tamagui/avatar": "3.0.18",
324
+ "@tamagui/button": "3.0.18",
325
+ "@tamagui/card": "3.0.18",
326
+ "@tamagui/checkbox": "3.0.18",
327
+ "@tamagui/collapsible": "3.0.18",
328
+ "@tamagui/compose-refs": "3.0.18",
329
+ "@tamagui/constants": "3.0.18",
330
+ "@tamagui/context-menu": "3.0.18",
331
+ "@tamagui/core": "3.0.18",
332
+ "@tamagui/create-context": "3.0.18",
333
+ "@tamagui/create-menu": "3.0.18",
334
+ "@tamagui/dialog": "3.0.18",
335
+ "@tamagui/element": "3.0.18",
336
+ "@tamagui/fake-react-native": "3.0.18",
337
+ "@tamagui/field": "3.0.18",
338
+ "@tamagui/focusable": "3.0.18",
339
+ "@tamagui/font-size": "3.0.18",
340
+ "@tamagui/form": "3.0.18",
341
+ "@tamagui/get-font-sized": "3.0.18",
342
+ "@tamagui/get-token": "3.0.18",
343
+ "@tamagui/group": "3.0.18",
344
+ "@tamagui/helpers-tamagui": "3.0.18",
345
+ "@tamagui/image": "3.0.18",
346
+ "@tamagui/input": "3.0.18",
347
+ "@tamagui/label": "3.0.18",
348
+ "@tamagui/linear-gradient": "3.0.18",
349
+ "@tamagui/list-item": "3.0.18",
350
+ "@tamagui/menu": "3.0.18",
351
+ "@tamagui/polyfill-dev": "3.0.18",
352
+ "@tamagui/popover": "3.0.18",
353
+ "@tamagui/popper": "3.0.18",
354
+ "@tamagui/portal": "3.0.18",
355
+ "@tamagui/progress": "3.0.18",
356
+ "@tamagui/radio-group": "3.0.18",
357
+ "@tamagui/react-native-media-driver": "3.0.18",
358
+ "@tamagui/react-native-types": "3.0.18",
359
+ "@tamagui/scroll-view": "3.0.18",
360
+ "@tamagui/select": "3.0.18",
361
+ "@tamagui/separator": "3.0.18",
362
+ "@tamagui/shapes": "3.0.18",
363
+ "@tamagui/sheet": "3.0.18",
364
+ "@tamagui/slider": "3.0.18",
365
+ "@tamagui/spacer": "3.0.18",
366
+ "@tamagui/spinner": "3.0.18",
367
+ "@tamagui/stacks": "3.0.18",
368
+ "@tamagui/switch": "3.0.18",
369
+ "@tamagui/tabs": "3.0.18",
370
+ "@tamagui/text": "3.0.18",
371
+ "@tamagui/theme": "3.0.18",
372
+ "@tamagui/toast": "3.0.18",
373
+ "@tamagui/toggle-group": "3.0.18",
374
+ "@tamagui/tooltip": "3.0.18",
375
+ "@tamagui/ui": "3.0.18",
376
+ "@tamagui/use-controllable-state": "3.0.18",
377
+ "@tamagui/use-debounce": "3.0.18",
378
+ "@tamagui/use-force-update": "3.0.18",
379
+ "@tamagui/use-window-dimensions": "3.0.18",
380
+ "@tamagui/visually-hidden": "3.0.18",
381
+ "@tamagui/z-index-stack": "3.0.18"
382
382
  },
383
383
  "devDependencies": {
384
- "@tamagui/build": "3.0.16",
384
+ "@tamagui/build": "3.0.18",
385
385
  "react": "19.2.3",
386
386
  "react-native": "0.87.1",
387
387
  "react-native-web": "~0.21.0"
@@ -400,5 +400,5 @@
400
400
  ],
401
401
  "module:jsx": "dist/jsx",
402
402
  "removeSideEffects": true,
403
- "releaseSourceCommit": "615595788ab0077217b078ff402c4620f4f17db7"
403
+ "releaseSourceCommit": "e7ebeed9d446eee3e0eda4b0dd5e55dd8ec46bf7"
404
404
  }