@jobber/components 6.106.4-JOB-147120-f23d7b5.3 → 6.106.4-JOB-147120-bccb8f5.4

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.
@@ -92,12 +92,12 @@ function useModal({ open, activatorRef: refProp, onRequestClose, startedInsideRe
92
92
  onRequestClose === null || onRequestClose === void 0 ? void 0 : onRequestClose();
93
93
  },
94
94
  open: open,
95
+ whileElementsMounted: floatingUi_react.autoUpdate,
95
96
  middleware: [
96
97
  floatingUi_react.size({
97
98
  apply({ availableHeight, elements }) {
98
99
  const maxHeight$1 = maxHeight.calculateMaxHeight(availableHeight, {
99
100
  maxHeight: availableHeight,
100
- edgePadding: 40,
101
101
  });
102
102
  Object.assign(elements.floating.style, {
103
103
  maxHeight: `${maxHeight$1}px`,
@@ -7,7 +7,7 @@ import { H as Heading } from '../Heading-es.js';
7
7
  import { B as Button } from '../Button-es.js';
8
8
  import { B as ButtonDismiss } from '../ButtonDismiss-es.js';
9
9
  import { n as noop } from '../noop-es.js';
10
- import { i as useFloatingNodeId, u as useFloating, c as size, d as useDismiss, n as useRole, g as useInteractions, h as useFloatingParentNodeId, j as FloatingTree, k as FloatingNode, F as FloatingPortal, p as FloatingFocusManager, q as FloatingOverlay } from '../floating-ui.react-es.js';
10
+ import { i as useFloatingNodeId, u as useFloating, b as autoUpdate, c as size, d as useDismiss, n as useRole, g as useInteractions, h as useFloatingParentNodeId, j as FloatingTree, k as FloatingNode, F as FloatingPortal, p as FloatingFocusManager, q as FloatingOverlay } from '../floating-ui.react-es.js';
11
11
  import { b as identity } from '../identity-es.js';
12
12
  import { c as calculateMaxHeight } from '../maxHeight-es.js';
13
13
  import { A as AtlantisPortalContent } from '../AtlantisPortalContent-es.js';
@@ -90,12 +90,12 @@ function useModal({ open, activatorRef: refProp, onRequestClose, startedInsideRe
90
90
  onRequestClose === null || onRequestClose === void 0 ? void 0 : onRequestClose();
91
91
  },
92
92
  open: open,
93
+ whileElementsMounted: autoUpdate,
93
94
  middleware: [
94
95
  size({
95
96
  apply({ availableHeight, elements }) {
96
97
  const maxHeight = calculateMaxHeight(availableHeight, {
97
98
  maxHeight: availableHeight,
98
- edgePadding: 40,
99
99
  });
100
100
  Object.assign(elements.floating.style, {
101
101
  maxHeight: `${maxHeight}px`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "6.106.4-JOB-147120-f23d7b5.3+f23d7b538",
3
+ "version": "6.106.4-JOB-147120-bccb8f5.4+bccb8f506",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -538,5 +538,5 @@
538
538
  "> 1%",
539
539
  "IE 10"
540
540
  ],
541
- "gitHead": "f23d7b5387cc2bf42dedc78d04bd8ffa32a9c79e"
541
+ "gitHead": "bccb8f506b8f1c7ac3a536a8123559e5eab0d57e"
542
542
  }