@tamagui/sheet 1.108.4 → 1.109.0

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.
@@ -180,7 +180,7 @@ const SheetImplementationCustom = (0, import_core.themeable)(
180
180
  (e) => {
181
181
  const next = Math.min(
182
182
  e.nativeEvent?.layout.height,
183
- import_react_native.Dimensions.get("window").height
183
+ import_react_native.Dimensions.get("screen").height
184
184
  );
185
185
  next && setFrameSize(next);
186
186
  },
@@ -189,7 +189,7 @@ const SheetImplementationCustom = (0, import_core.themeable)(
189
189
  (e) => {
190
190
  const next = Math.min(
191
191
  e.nativeEvent?.layout.height,
192
- import_react_native.Dimensions.get("window").height
192
+ import_react_native.Dimensions.get("screen").height
193
193
  );
194
194
  next && setMaxContentSize(next);
195
195
  },
@@ -244,12 +244,12 @@ var hiddenSize = 10000.1, SheetImplementationCustom = (0, import_core.themeable)
244
244
  positions,
245
245
  setPosition
246
246
  ]), handleAnimationViewLayout = import_react.default.useCallback(function(e) {
247
- var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, import_react_native.Dimensions.get("window").height);
247
+ var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, import_react_native.Dimensions.get("screen").height);
248
248
  next && setFrameSize(next);
249
249
  }, [
250
250
  keyboardIsVisible
251
251
  ]), handleMaxContentViewLayout = import_react.default.useCallback(function(e) {
252
- var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, import_react_native.Dimensions.get("window").height);
252
+ var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, import_react_native.Dimensions.get("screen").height);
253
253
  next && setMaxContentSize(next);
254
254
  }, [
255
255
  keyboardIsVisible
@@ -176,7 +176,7 @@ const SheetImplementationCustom = themeable(
176
176
  (e) => {
177
177
  const next = Math.min(
178
178
  e.nativeEvent?.layout.height,
179
- Dimensions.get("window").height
179
+ Dimensions.get("screen").height
180
180
  );
181
181
  next && setFrameSize(next);
182
182
  },
@@ -185,7 +185,7 @@ const SheetImplementationCustom = themeable(
185
185
  (e) => {
186
186
  const next = Math.min(
187
187
  e.nativeEvent?.layout.height,
188
- Dimensions.get("window").height
188
+ Dimensions.get("screen").height
189
189
  );
190
190
  next && setMaxContentSize(next);
191
191
  },
@@ -196,11 +196,11 @@ const SheetImplementationCustom = themeable(React.forwardRef(function (props, fo
196
196
  });
197
197
  }, [disableDrag, isShowingInnerSheet, animateTo, frameSize, positions, setPosition]),
198
198
  handleAnimationViewLayout = React.useCallback(e => {
199
- const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("window").height);
199
+ const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("screen").height);
200
200
  next && setFrameSize(next);
201
201
  }, [keyboardIsVisible]),
202
202
  handleMaxContentViewLayout = React.useCallback(e => {
203
- const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("window").height);
203
+ const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("screen").height);
204
204
  next && setMaxContentSize(next);
205
205
  }, [keyboardIsVisible]),
206
206
  animatedStyle = useAnimatedNumberStyle(animatedNumber, val => {
@@ -231,12 +231,12 @@ var hiddenSize = 10000.1, SheetImplementationCustom = themeable(/* @__PURE__ */
231
231
  positions,
232
232
  setPosition
233
233
  ]), handleAnimationViewLayout = React.useCallback(function(e) {
234
- var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("window").height);
234
+ var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("screen").height);
235
235
  next && setFrameSize(next);
236
236
  }, [
237
237
  keyboardIsVisible
238
238
  ]), handleMaxContentViewLayout = React.useCallback(function(e) {
239
- var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("window").height);
239
+ var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("screen").height);
240
240
  next && setMaxContentSize(next);
241
241
  }, [
242
242
  keyboardIsVisible
@@ -176,7 +176,7 @@ const SheetImplementationCustom = themeable(
176
176
  (e) => {
177
177
  const next = Math.min(
178
178
  e.nativeEvent?.layout.height,
179
- Dimensions.get("window").height
179
+ Dimensions.get("screen").height
180
180
  );
181
181
  next && setFrameSize(next);
182
182
  },
@@ -185,7 +185,7 @@ const SheetImplementationCustom = themeable(
185
185
  (e) => {
186
186
  const next = Math.min(
187
187
  e.nativeEvent?.layout.height,
188
- Dimensions.get("window").height
188
+ Dimensions.get("screen").height
189
189
  );
190
190
  next && setMaxContentSize(next);
191
191
  },
@@ -196,11 +196,11 @@ const SheetImplementationCustom = themeable(React.forwardRef(function (props, fo
196
196
  });
197
197
  }, [disableDrag, isShowingInnerSheet, animateTo, frameSize, positions, setPosition]),
198
198
  handleAnimationViewLayout = React.useCallback(e => {
199
- const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("window").height);
199
+ const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("screen").height);
200
200
  next && setFrameSize(next);
201
201
  }, [keyboardIsVisible]),
202
202
  handleMaxContentViewLayout = React.useCallback(e => {
203
- const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("window").height);
203
+ const next = Math.min(e.nativeEvent?.layout.height, Dimensions.get("screen").height);
204
204
  next && setMaxContentSize(next);
205
205
  }, [keyboardIsVisible]),
206
206
  animatedStyle = useAnimatedNumberStyle(animatedNumber, val => {
@@ -231,12 +231,12 @@ var hiddenSize = 10000.1, SheetImplementationCustom = themeable(/* @__PURE__ */
231
231
  positions,
232
232
  setPosition
233
233
  ]), handleAnimationViewLayout = React.useCallback(function(e) {
234
- var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("window").height);
234
+ var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("screen").height);
235
235
  next && setFrameSize(next);
236
236
  }, [
237
237
  keyboardIsVisible
238
238
  ]), handleMaxContentViewLayout = React.useCallback(function(e) {
239
- var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("window").height);
239
+ var _e_nativeEvent, next = Math.min((_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.layout.height, Dimensions.get("screen").height);
240
240
  next && setMaxContentSize(next);
241
241
  }, [
242
242
  keyboardIsVisible
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/sheet",
3
- "version": "1.108.4",
3
+ "version": "1.109.0",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -34,26 +34,26 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@tamagui/animate-presence": "1.108.4",
38
- "@tamagui/animations-react-native": "1.108.4",
39
- "@tamagui/compose-refs": "1.108.4",
40
- "@tamagui/constants": "1.108.4",
41
- "@tamagui/core": "1.108.4",
42
- "@tamagui/create-context": "1.108.4",
43
- "@tamagui/helpers": "1.108.4",
44
- "@tamagui/portal": "1.108.4",
45
- "@tamagui/remove-scroll": "1.108.4",
46
- "@tamagui/scroll-view": "1.108.4",
47
- "@tamagui/stacks": "1.108.4",
48
- "@tamagui/use-constant": "1.108.4",
49
- "@tamagui/use-controllable-state": "1.108.4",
50
- "@tamagui/use-keyboard-visible": "1.108.4"
37
+ "@tamagui/animate-presence": "1.109.0",
38
+ "@tamagui/animations-react-native": "1.109.0",
39
+ "@tamagui/compose-refs": "1.109.0",
40
+ "@tamagui/constants": "1.109.0",
41
+ "@tamagui/core": "1.109.0",
42
+ "@tamagui/create-context": "1.109.0",
43
+ "@tamagui/helpers": "1.109.0",
44
+ "@tamagui/portal": "1.109.0",
45
+ "@tamagui/remove-scroll": "1.109.0",
46
+ "@tamagui/scroll-view": "1.109.0",
47
+ "@tamagui/stacks": "1.109.0",
48
+ "@tamagui/use-constant": "1.109.0",
49
+ "@tamagui/use-controllable-state": "1.109.0",
50
+ "@tamagui/use-keyboard-visible": "1.109.0"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": "*"
54
54
  },
55
55
  "devDependencies": {
56
- "@tamagui/build": "1.108.4",
56
+ "@tamagui/build": "1.109.0",
57
57
  "react": "^18.2.0 || ^19.0.0"
58
58
  },
59
59
  "publishConfig": {
@@ -339,7 +339,7 @@ export const SheetImplementationCustom = themeable(
339
339
  // avoid bugs where it grows forever for whatever reason
340
340
  const next = Math.min(
341
341
  e.nativeEvent?.layout.height,
342
- Dimensions.get('window').height
342
+ Dimensions.get('screen').height
343
343
  )
344
344
  if (!next) return
345
345
  setFrameSize(next)
@@ -352,7 +352,7 @@ export const SheetImplementationCustom = themeable(
352
352
  // avoid bugs where it grows forever for whatever reason
353
353
  const next = Math.min(
354
354
  e.nativeEvent?.layout.height,
355
- Dimensions.get('window').height
355
+ Dimensions.get('screen').height
356
356
  )
357
357
  if (!next) return
358
358
  setMaxContentSize(next)