@box/blueprint-web 6.19.1 → 6.19.2

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.
@@ -1,7 +1,8 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { Tab } from '@ariakit/react';
3
3
  import clsx from 'clsx';
4
- import { forwardRef, useRef, useEffect } from 'react';
4
+ import { forwardRef, useRef } from 'react';
5
+ import { useEnhancedEffect } from '../../utils/useEnhancedEffect.js';
5
6
  import { useTabsWidthContext } from './tabs-width-context.js';
6
7
  import styles from './tabs.module.js';
7
8
 
@@ -16,7 +17,7 @@ const ContentSwitchTab = /*#__PURE__*/forwardRef(function Tab$1(props, ref) {
16
17
  minTabWidth,
17
18
  addTabWidth
18
19
  } = useTabsWidthContext();
19
- useEffect(() => {
20
+ useEnhancedEffect(() => {
20
21
  const tabElement = widthSetterRef.current;
21
22
  if (!tabElement) {
22
23
  return;
@@ -1,7 +1,8 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import { Tab } from '@ariakit/react';
3
3
  import clsx from 'clsx';
4
- import { forwardRef, useRef, useEffect } from 'react';
4
+ import { forwardRef, useRef } from 'react';
5
+ import { useEnhancedEffect } from '../../utils/useEnhancedEffect.js';
5
6
  import { useForkRef } from '../../utils/useForkRef.js';
6
7
  import styles from './tabs.module.js';
7
8
  import { useTabs } from './use-tabs.js';
@@ -29,7 +30,7 @@ const DefaultTab = /*#__PURE__*/forwardRef(function Tab$1(props, ref) {
29
30
  const selectedTabId = useTabs()?.useState('selectedId');
30
31
  const isTabSelected = selectedTabId === rest?.id;
31
32
  const checkedScrollOnMount = useRef(false);
32
- useEffect(() => {
33
+ useEnhancedEffect(() => {
33
34
  if (checkedScrollOnMount.current) {
34
35
  return;
35
36
  }
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { type FocusTrapProps } from './types';
3
2
  export declare const FocusTrap: ({ containerRef, children, customInitialFocus }: FocusTrapProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare function sleep(ms: number): Promise<unknown>;
3
2
  export declare const docsDisabledNotice: {
4
3
  docs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web",
3
- "version": "6.19.1",
3
+ "version": "6.19.2",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -57,7 +57,7 @@
57
57
  "devDependencies": {
58
58
  "@box/storybook-utils": "^0.0.3"
59
59
  },
60
- "gitHead": "d16a621ecdb9a71b9bfb8c788986ccb7f871ad42",
60
+ "gitHead": "854289f655623d10832a7c8e30e749eeea9728c1",
61
61
  "module": "lib-esm/index.js",
62
62
  "main": "lib-esm/index.js",
63
63
  "exports": {