@atlaskit/atlassian-navigation 2.2.9 → 2.3.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.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/common/styles.js +2 -16
- package/dist/cjs/components/AtlassianNavigation/index.js +11 -11
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +14 -14
- package/dist/cjs/components/BadgeContainer/index.js +6 -6
- package/dist/cjs/components/Create/index.js +9 -9
- package/dist/cjs/components/Create/skeleton.js +5 -5
- package/dist/cjs/components/IconButton/skeleton.js +3 -3
- package/dist/cjs/components/PrimaryButton/index.js +6 -6
- package/dist/cjs/components/PrimaryButton/skeleton.js +3 -3
- package/dist/cjs/components/PrimaryDropdownButton/index.js +5 -5
- package/dist/cjs/components/PrimaryItemsContainer/index.js +10 -10
- package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +4 -4
- package/dist/cjs/components/ProductHome/custom-product-home.js +10 -10
- package/dist/cjs/components/ProductHome/product-home.js +12 -12
- package/dist/cjs/components/ProductHome/skeleton.js +9 -9
- package/dist/cjs/components/Search/index.js +13 -12
- package/dist/cjs/components/Search/skeleton.js +7 -7
- package/dist/cjs/components/SkeletonCreateButton/index.js +3 -3
- package/dist/cjs/components/SkeletonIconButton/index.js +3 -3
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +7 -7
- package/dist/cjs/controllers/overflow/index.js +14 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/common/styles.js +1 -10
- package/dist/es2019/components/AtlassianNavigation/index.js +1 -1
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +1 -1
- package/dist/es2019/components/BadgeContainer/index.js +1 -1
- package/dist/es2019/components/Create/index.js +1 -1
- package/dist/es2019/components/Create/skeleton.js +1 -1
- package/dist/es2019/components/IconButton/skeleton.js +1 -1
- package/dist/es2019/components/PrimaryButton/index.js +1 -1
- package/dist/es2019/components/PrimaryButton/skeleton.js +1 -1
- package/dist/es2019/components/PrimaryDropdownButton/index.js +1 -1
- package/dist/es2019/components/PrimaryItemsContainer/index.js +1 -1
- package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +1 -1
- package/dist/es2019/components/ProductHome/custom-product-home.js +1 -1
- package/dist/es2019/components/ProductHome/product-home.js +1 -1
- package/dist/es2019/components/ProductHome/skeleton.js +1 -1
- package/dist/es2019/components/Search/index.js +3 -2
- package/dist/es2019/components/Search/skeleton.js +1 -1
- package/dist/es2019/components/SkeletonCreateButton/index.js +1 -1
- package/dist/es2019/components/SkeletonIconButton/index.js +1 -1
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +1 -1
- package/dist/es2019/controllers/overflow/index.js +14 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/common/styles.js +1 -13
- package/dist/esm/components/AtlassianNavigation/index.js +1 -1
- package/dist/esm/components/AtlassianNavigation/skeleton.js +1 -1
- package/dist/esm/components/BadgeContainer/index.js +1 -1
- package/dist/esm/components/Create/index.js +1 -1
- package/dist/esm/components/Create/skeleton.js +1 -1
- package/dist/esm/components/IconButton/skeleton.js +1 -1
- package/dist/esm/components/PrimaryButton/index.js +1 -1
- package/dist/esm/components/PrimaryButton/skeleton.js +1 -1
- package/dist/esm/components/PrimaryDropdownButton/index.js +1 -1
- package/dist/esm/components/PrimaryItemsContainer/index.js +1 -1
- package/dist/esm/components/PrimaryItemsContainer/skeleton.js +1 -1
- package/dist/esm/components/ProductHome/custom-product-home.js +1 -1
- package/dist/esm/components/ProductHome/product-home.js +1 -1
- package/dist/esm/components/ProductHome/skeleton.js +1 -1
- package/dist/esm/components/Search/index.js +3 -2
- package/dist/esm/components/Search/skeleton.js +1 -1
- package/dist/esm/components/SkeletonCreateButton/index.js +1 -1
- package/dist/esm/components/SkeletonIconButton/index.js +1 -1
- package/dist/esm/components/SkeletonPrimaryButton/index.js +1 -1
- package/dist/esm/controllers/overflow/index.js +14 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/common/styles.d.ts +0 -914
- package/dist/types/components/AtlassianNavigation/index.d.ts +3 -2
- package/dist/types/components/AtlassianNavigation/skeleton.d.ts +3 -2
- package/dist/types/components/BadgeContainer/index.d.ts +3 -2
- package/dist/types/components/Create/index.d.ts +2 -2
- package/dist/types/components/Create/skeleton.d.ts +2 -2
- package/dist/types/components/IconButton/skeleton.d.ts +3 -2
- package/dist/types/components/PrimaryButton/skeleton.d.ts +2 -2
- package/dist/types/components/PrimaryItemsContainer/index.d.ts +2 -2
- package/dist/types/components/PrimaryItemsContainer/skeleton.d.ts +2 -2
- package/dist/types/components/ProductHome/custom-product-home.d.ts +2 -2
- package/dist/types/components/ProductHome/product-home.d.ts +2 -2
- package/dist/types/components/ProductHome/skeleton.d.ts +2 -2
- package/dist/types/components/Search/index.d.ts +2 -2
- package/dist/types/components/Search/skeleton.d.ts +2 -2
- package/dist/types/components/SkeletonCreateButton/index.d.ts +3 -2
- package/dist/types/components/SkeletonIconButton/index.d.ts +3 -2
- package/dist/types/components/SkeletonPrimaryButton/index.d.ts +3 -2
- package/dist/types/theme/types.d.ts +1 -1
- package/dist/types-ts4.0/common/styles.d.ts +0 -914
- package/dist/types-ts4.0/components/AtlassianNavigation/index.d.ts +3 -2
- package/dist/types-ts4.0/components/AtlassianNavigation/skeleton.d.ts +3 -2
- package/dist/types-ts4.0/components/BadgeContainer/index.d.ts +3 -2
- package/dist/types-ts4.0/components/Create/index.d.ts +2 -2
- package/dist/types-ts4.0/components/Create/skeleton.d.ts +2 -2
- package/dist/types-ts4.0/components/IconButton/skeleton.d.ts +3 -2
- package/dist/types-ts4.0/components/PrimaryButton/skeleton.d.ts +2 -2
- package/dist/types-ts4.0/components/PrimaryItemsContainer/index.d.ts +2 -2
- package/dist/types-ts4.0/components/PrimaryItemsContainer/skeleton.d.ts +2 -2
- package/dist/types-ts4.0/components/ProductHome/custom-product-home.d.ts +2 -2
- package/dist/types-ts4.0/components/ProductHome/product-home.d.ts +2 -2
- package/dist/types-ts4.0/components/ProductHome/skeleton.d.ts +2 -2
- package/dist/types-ts4.0/components/Search/index.d.ts +2 -2
- package/dist/types-ts4.0/components/Search/skeleton.d.ts +2 -2
- package/dist/types-ts4.0/components/SkeletonCreateButton/index.d.ts +3 -2
- package/dist/types-ts4.0/components/SkeletonIconButton/index.d.ts +3 -2
- package/dist/types-ts4.0/components/SkeletonPrimaryButton/index.d.ts +3 -2
- package/dist/types-ts4.0/theme/types.d.ts +1 -1
- package/package.json +9 -7
- package/report.api.md +136 -376
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { Fragment } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import SearchIcon from '@atlaskit/icon/glyph/search';
|
|
7
7
|
import { CREATE_BREAKPOINT, fontSize, gridSize } from '../../common/constants';
|
|
8
8
|
import { useTheme } from '../../theme';
|
|
@@ -107,7 +107,8 @@ export const Search = props => {
|
|
|
107
107
|
placeholder: placeholder,
|
|
108
108
|
label: label,
|
|
109
109
|
value: value || ''
|
|
110
|
-
}), jsx(IconButton
|
|
110
|
+
}), jsx(IconButton // @ts-ignore Overriding styles is not supported.
|
|
111
|
+
, _extends({
|
|
111
112
|
css: searchIconStyles,
|
|
112
113
|
icon: jsx(SearchIcon, {
|
|
113
114
|
label: label
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
|
-
import { css, jsx } from '@emotion/
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { CREATE_BREAKPOINT, gridSize } from '../../common/constants';
|
|
5
5
|
import { useTheme } from '../../theme';
|
|
6
6
|
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { useTheme } from '../../theme';
|
|
4
4
|
const VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR = '--primary-button-before-highlighted-background-color';
|
|
5
5
|
const VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR = '--primary-button-after-dropdown-border-color';
|
|
@@ -97,8 +97,21 @@ export const useOverflowController = nodes => {
|
|
|
97
97
|
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* This is not necessarily equal to `lastItemWidth` because the
|
|
102
|
+
* ```js
|
|
103
|
+
* if (wasJustLimited) {}
|
|
104
|
+
* ```
|
|
105
|
+
* branch above modifies `itemsWidths`.
|
|
106
|
+
*
|
|
107
|
+
* Using `lastItemWidth` here can cause collapsing behavior to fail,
|
|
108
|
+
* such as the issue reported in DSP-7329.
|
|
109
|
+
*/
|
|
100
110
|
|
|
101
|
-
|
|
111
|
+
|
|
112
|
+
const currentLastItemWidth = itemsWidths[itemsLimit] || 0;
|
|
113
|
+
|
|
114
|
+
if (width - currentLastItemWidth > ITEM_APPROX_MINWIDTH * 1.1 && itemsLimit < items.length) {
|
|
102
115
|
// If we have enough room to accomodate next item width we increase the limit
|
|
103
116
|
// unless it has been recently removed
|
|
104
117
|
const nextHash = calculateHash(width, itemsLimit + 1);
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
-
|
|
7
2
|
import { CREATE_BREAKPOINT } from './constants';
|
|
8
3
|
export var actionSectionDesktopCSS = _defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
9
4
|
display: 'none !important'
|
|
10
5
|
});
|
|
11
6
|
export var actionSectionMobileCSS = _defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
|
|
12
7
|
display: 'none !important'
|
|
13
|
-
});
|
|
14
|
-
export var skeletonCSS = function skeletonCSS(_ref) {
|
|
15
|
-
var skeleton = _ref.mode.skeleton;
|
|
16
|
-
return _objectSpread({
|
|
17
|
-
//@ts-expect-error TODO Fix legit TypeScript 3.9.6 improved inference error
|
|
18
|
-
opacity: 0.15
|
|
19
|
-
}, skeleton);
|
|
20
|
-
};
|
|
8
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
4
4
|
import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { gridSize, HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { css, jsx } from '@emotion/
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
|
|
4
4
|
import { gridSize, HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
|
|
5
5
|
import { defaultTheme, hexToRGBA, ThemeProvider } from '../../theme';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { Fragment } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
7
7
|
import AddIcon from '@atlaskit/icon/glyph/editor/add';
|
|
8
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { Fragment } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { CREATE_BREAKPOINT, gridSize } from '../../common/constants';
|
|
7
7
|
import { useTheme } from '../../theme';
|
|
8
8
|
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
/** @jsx jsx */
|
|
8
|
-
import { css, jsx } from '@emotion/
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { gridSize } from '../../common/constants';
|
|
10
10
|
import { useTheme } from '../../theme';
|
|
11
11
|
var buttonHeight = gridSize * 4;
|
|
@@ -5,7 +5,7 @@ var _excluded = ["children", "testId", "tooltip", "isSelected", "isHighlighted"]
|
|
|
5
5
|
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import { forwardRef } from 'react';
|
|
8
|
-
import { css, jsx } from '@emotion/
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
10
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
11
|
import { gridSize } from '../../common/constants';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
7
7
|
import { PrimaryButton } from '../PrimaryButton';
|
|
8
8
|
var chevronIconStyles = css({
|
|
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import { useCallback, useState } from 'react';
|
|
6
|
-
import { css, jsx } from '@emotion/
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import Popup from '@atlaskit/popup';
|
|
8
8
|
import { WidthObserver } from '@atlaskit/width-detector';
|
|
9
9
|
import { gridSize } from '../../common/constants';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
|
-
import { css, jsx } from '@emotion/
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { gridSize } from '../../common/constants';
|
|
5
5
|
import { PrimaryButtonSkeleton } from '../PrimaryButton/skeleton';
|
|
6
6
|
var primaryButtonSkeletonStyles = css({
|
|
@@ -7,7 +7,7 @@ var _css3;
|
|
|
7
7
|
|
|
8
8
|
/** @jsx jsx */
|
|
9
9
|
import { Fragment } from 'react';
|
|
10
|
-
import { css, jsx } from '@emotion/
|
|
10
|
+
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { gridSize, PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
|
|
12
12
|
import { useTheme } from '../../theme';
|
|
13
13
|
import { getTag } from './utils';
|
|
@@ -7,7 +7,7 @@ var _css;
|
|
|
7
7
|
|
|
8
8
|
/** @jsx jsx */
|
|
9
9
|
import { Fragment } from 'react';
|
|
10
|
-
import { css, jsx } from '@emotion/
|
|
10
|
+
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { gridSize, PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
|
|
12
12
|
import { useTheme } from '../../theme';
|
|
13
13
|
import { getTag } from './utils';
|
|
@@ -4,7 +4,7 @@ var _css;
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { Fragment } from 'react';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { gridSize, PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
|
|
9
9
|
import { useTheme } from '../../theme';
|
|
10
10
|
var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
|
|
@@ -9,7 +9,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
9
9
|
|
|
10
10
|
/** @jsx jsx */
|
|
11
11
|
import { Fragment } from 'react';
|
|
12
|
-
import { css, jsx } from '@emotion/
|
|
12
|
+
import { css, jsx } from '@emotion/react';
|
|
13
13
|
import SearchIcon from '@atlaskit/icon/glyph/search';
|
|
14
14
|
import { CREATE_BREAKPOINT, fontSize, gridSize } from '../../common/constants';
|
|
15
15
|
import { useTheme } from '../../theme';
|
|
@@ -107,7 +107,8 @@ export var Search = function Search(props) {
|
|
|
107
107
|
placeholder: placeholder,
|
|
108
108
|
label: label,
|
|
109
109
|
value: value || ''
|
|
110
|
-
}), jsx(IconButton
|
|
110
|
+
}), jsx(IconButton // @ts-ignore Overriding styles is not supported.
|
|
111
|
+
, _extends({
|
|
111
112
|
css: searchIconStyles,
|
|
112
113
|
icon: jsx(SearchIcon, {
|
|
113
114
|
label: label
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { Fragment } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { CREATE_BREAKPOINT, gridSize } from '../../common/constants';
|
|
7
7
|
import { useTheme } from '../../theme';
|
|
8
8
|
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
/** @jsx jsx */
|
|
8
|
-
import { css, jsx } from '@emotion/
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { useTheme } from '../../theme';
|
|
10
10
|
var VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR = '--primary-button-before-highlighted-background-color';
|
|
11
11
|
var VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR = '--primary-button-after-dropdown-border-color';
|
|
@@ -116,8 +116,21 @@ export var useOverflowController = function useOverflowController(nodes) {
|
|
|
116
116
|
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* This is not necessarily equal to `lastItemWidth` because the
|
|
121
|
+
* ```js
|
|
122
|
+
* if (wasJustLimited) {}
|
|
123
|
+
* ```
|
|
124
|
+
* branch above modifies `itemsWidths`.
|
|
125
|
+
*
|
|
126
|
+
* Using `lastItemWidth` here can cause collapsing behavior to fail,
|
|
127
|
+
* such as the issue reported in DSP-7329.
|
|
128
|
+
*/
|
|
119
129
|
|
|
120
|
-
|
|
130
|
+
|
|
131
|
+
var currentLastItemWidth = itemsWidths[itemsLimit] || 0;
|
|
132
|
+
|
|
133
|
+
if (width - currentLastItemWidth > ITEM_APPROX_MINWIDTH * 1.1 && itemsLimit < items.length) {
|
|
121
134
|
// If we have enough room to accomodate next item width we increase the limit
|
|
122
135
|
// unless it has been recently removed
|
|
123
136
|
var _nextHash = calculateHash(width, itemsLimit + 1);
|
package/dist/esm/version.json
CHANGED