@itwin/itwinui-react 3.15.1 → 3.15.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.
- package/CHANGELOG.md +8 -0
- package/DEV-cjs/core/Table/columns/expanderColumn.js +1 -0
- package/DEV-cjs/react-table/react-table.types-test.js +1 -0
- package/DEV-cjs/styles.js +1 -1
- package/DEV-cjs/utils/functions/dev.js +3 -1
- package/DEV-esm/core/Table/columns/expanderColumn.js +1 -0
- package/DEV-esm/react-table/react-table.types-test.js +1 -0
- package/DEV-esm/styles.js +1 -1
- package/DEV-esm/utils/functions/dev.js +3 -1
- package/cjs/core/Table/columns/expanderColumn.js +1 -0
- package/cjs/react-table/react-table.d.ts +5 -2
- package/cjs/react-table/react-table.types-test.js +1 -0
- package/cjs/styles.js +1 -1
- package/cjs/utils/functions/dev.js +3 -1
- package/esm/core/Table/columns/expanderColumn.js +1 -0
- package/esm/react-table/react-table.d.ts +5 -2
- package/esm/react-table/react-table.types-test.js +1 -0
- package/esm/styles.js +1 -1
- package/esm/utils/functions/dev.js +3 -1
- package/package.json +1 -1
- package/styles.css +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.15.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2275](https://github.com/iTwin/iTwinUI/pull/2275): Made the `ActionType.type` type in `Table` more specific. This will help when using the `action` argument in the `stateReducer` function, for example.
|
|
8
|
+
- [#2273](https://github.com/iTwin/iTwinUI/pull/2273): Fixed an issue where the internal unit test detection logic was incorrectly treating Cypress like a unit test environment.
|
|
9
|
+
|
|
3
10
|
## 3.15.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -13,6 +20,7 @@
|
|
|
13
20
|
### Minor Changes
|
|
14
21
|
|
|
15
22
|
- [#2233](https://github.com/iTwin/iTwinUI/pull/2233): `Popover` now enables the [`hide` middleware](https://floating-ui.com/docs/hide) to hide the floating content when the trigger is hidden.
|
|
23
|
+
|
|
16
24
|
- This also affects other popover-like components (e.g. `Select`, `ComboBox`, `DropdownMenu`, `SplitButton`).
|
|
17
25
|
- If the floating content gets hidden even when it shouldn't (e.g. due to some custom styles interfering with the trigger's hide detection), consider disabling the `hide` middleware.
|
|
18
26
|
|
package/DEV-cjs/styles.js
CHANGED
|
@@ -9,9 +9,11 @@ Object.defineProperty(exports, 'isUnitTest', {
|
|
|
9
9
|
},
|
|
10
10
|
});
|
|
11
11
|
const isJest = 'undefined' != typeof jest;
|
|
12
|
+
const isCypress = void 0 !== globalThis.Cypress;
|
|
12
13
|
const isMocha =
|
|
13
14
|
void 0 !== globalThis.beforeEach &&
|
|
14
15
|
'function(name,fn){suites[0].beforeEach(name,fn);}' ===
|
|
15
|
-
`${globalThis.beforeEach}`.replace(/\s/g, '')
|
|
16
|
+
`${globalThis.beforeEach}`.replace(/\s/g, '') &&
|
|
17
|
+
!isCypress;
|
|
16
18
|
const isVitest = void 0 !== globalThis.__vitest_index__;
|
|
17
19
|
const isUnitTest = isJest || isVitest || isMocha;
|
package/DEV-esm/styles.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
let isJest = 'undefined' != typeof jest;
|
|
2
|
+
let isCypress = void 0 !== globalThis.Cypress;
|
|
2
3
|
let isMocha =
|
|
3
4
|
void 0 !== globalThis.beforeEach &&
|
|
4
5
|
'function(name,fn){suites[0].beforeEach(name,fn);}' ===
|
|
5
|
-
`${globalThis.beforeEach}`.replace(/\s/g, '')
|
|
6
|
+
`${globalThis.beforeEach}`.replace(/\s/g, '') &&
|
|
7
|
+
!isCypress;
|
|
6
8
|
let isVitest = void 0 !== globalThis.__vitest_index__;
|
|
7
9
|
let isUnitTest = isJest || isVitest || isMocha;
|
|
8
10
|
export { isUnitTest };
|
|
@@ -721,9 +721,12 @@ export interface SortingRule<D> {
|
|
|
721
721
|
id: IdType<D>;
|
|
722
722
|
desc?: boolean | undefined;
|
|
723
723
|
}
|
|
724
|
-
|
|
724
|
+
type BuiltInAction = 'init' | 'resetHiddenColumns' | 'toggleHideColumn' | 'setHiddenColumns' | 'toggleHideAllColumns' | 'resetPivot' | 'togglePivot' | 'resetColumnOrder' | 'setColumnOrder' | 'resetExpanded' | 'toggleRowExpanded' | 'toggleAllRowsExpanded' | 'resetFilters' | 'setFilter' | 'setAllFilters' | 'resetGlobalFilter' | 'setGlobalFilter' | 'columnStartResizing' | 'columnResizing' | 'columnDoneResizing' | 'resetResize' | 'resetGroupBy' | 'setGroupBy' | 'toggleGroupBy' | 'resetPage' | 'gotoPage' | 'setPageSize' | 'resetSelectedRows' | 'toggleAllRowsSelected' | 'toggleRowSelected' | 'toggleAllPageRowsSelected' | 'setRowState' | 'setCellState' | 'resetRowState' | 'resetSortBy' | 'setSortBy' | 'toggleSortBy' | 'clearSortBy';
|
|
725
|
+
type CustomAction = 'setScrolledLeft' | 'setScrolledRight' | 'columnDragStart' | 'columnDragEnd' | 'singleRowSelected' | 'shiftRowSelected' | 'tableResizeStart' | 'tableResizeEnd';
|
|
726
|
+
type PossibleActionType = BuiltInAction | CustomAction | AnyString;
|
|
727
|
+
export declare const actions: Record<PossibleActionType, string>;
|
|
725
728
|
export type ActionType = {
|
|
726
|
-
type:
|
|
729
|
+
type: PossibleActionType;
|
|
727
730
|
} & Record<string, any>;
|
|
728
731
|
export declare const defaultColumn: Partial<Column> & Record<string, any>;
|
|
729
732
|
export type StringKey<D> = Extract<keyof D, string>;
|
package/cjs/styles.js
CHANGED
|
@@ -9,9 +9,11 @@ Object.defineProperty(exports, 'isUnitTest', {
|
|
|
9
9
|
},
|
|
10
10
|
});
|
|
11
11
|
const isJest = 'undefined' != typeof jest;
|
|
12
|
+
const isCypress = void 0 !== globalThis.Cypress;
|
|
12
13
|
const isMocha =
|
|
13
14
|
void 0 !== globalThis.beforeEach &&
|
|
14
15
|
'function(name,fn){suites[0].beforeEach(name,fn);}' ===
|
|
15
|
-
`${globalThis.beforeEach}`.replace(/\s/g, '')
|
|
16
|
+
`${globalThis.beforeEach}`.replace(/\s/g, '') &&
|
|
17
|
+
!isCypress;
|
|
16
18
|
const isVitest = void 0 !== globalThis.__vitest_index__;
|
|
17
19
|
const isUnitTest = isJest || isVitest || isMocha;
|
|
@@ -721,9 +721,12 @@ export interface SortingRule<D> {
|
|
|
721
721
|
id: IdType<D>;
|
|
722
722
|
desc?: boolean | undefined;
|
|
723
723
|
}
|
|
724
|
-
|
|
724
|
+
type BuiltInAction = 'init' | 'resetHiddenColumns' | 'toggleHideColumn' | 'setHiddenColumns' | 'toggleHideAllColumns' | 'resetPivot' | 'togglePivot' | 'resetColumnOrder' | 'setColumnOrder' | 'resetExpanded' | 'toggleRowExpanded' | 'toggleAllRowsExpanded' | 'resetFilters' | 'setFilter' | 'setAllFilters' | 'resetGlobalFilter' | 'setGlobalFilter' | 'columnStartResizing' | 'columnResizing' | 'columnDoneResizing' | 'resetResize' | 'resetGroupBy' | 'setGroupBy' | 'toggleGroupBy' | 'resetPage' | 'gotoPage' | 'setPageSize' | 'resetSelectedRows' | 'toggleAllRowsSelected' | 'toggleRowSelected' | 'toggleAllPageRowsSelected' | 'setRowState' | 'setCellState' | 'resetRowState' | 'resetSortBy' | 'setSortBy' | 'toggleSortBy' | 'clearSortBy';
|
|
725
|
+
type CustomAction = 'setScrolledLeft' | 'setScrolledRight' | 'columnDragStart' | 'columnDragEnd' | 'singleRowSelected' | 'shiftRowSelected' | 'tableResizeStart' | 'tableResizeEnd';
|
|
726
|
+
type PossibleActionType = BuiltInAction | CustomAction | AnyString;
|
|
727
|
+
export declare const actions: Record<PossibleActionType, string>;
|
|
725
728
|
export type ActionType = {
|
|
726
|
-
type:
|
|
729
|
+
type: PossibleActionType;
|
|
727
730
|
} & Record<string, any>;
|
|
728
731
|
export declare const defaultColumn: Partial<Column> & Record<string, any>;
|
|
729
732
|
export type StringKey<D> = Extract<keyof D, string>;
|
package/esm/styles.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
let isJest = 'undefined' != typeof jest;
|
|
2
|
+
let isCypress = void 0 !== globalThis.Cypress;
|
|
2
3
|
let isMocha =
|
|
3
4
|
void 0 !== globalThis.beforeEach &&
|
|
4
5
|
'function(name,fn){suites[0].beforeEach(name,fn);}' ===
|
|
5
|
-
`${globalThis.beforeEach}`.replace(/\s/g, '')
|
|
6
|
+
`${globalThis.beforeEach}`.replace(/\s/g, '') &&
|
|
7
|
+
!isCypress;
|
|
6
8
|
let isVitest = void 0 !== globalThis.__vitest_index__;
|
|
7
9
|
let isUnitTest = isJest || isVitest || isMocha;
|
|
8
10
|
export { isUnitTest };
|