@instructure/ui-drilldown 11.7.3-snapshot-3 → 11.7.3-snapshot-6
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 +1 -1
- package/es/Drilldown/v2/index.js +1 -1
- package/lib/Drilldown/v2/index.js +1 -1
- package/package.json +18 -18
- package/src/Drilldown/v2/DrilldownGroup/props.ts +2 -2
- package/src/Drilldown/v2/DrilldownOption/props.ts +2 -2
- package/src/Drilldown/v2/DrilldownSeparator/props.ts +3 -3
- package/src/Drilldown/v2/index.tsx +1 -1
- package/src/Drilldown/v2/props.ts +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Drilldown/v2/DrilldownGroup/props.d.ts +3 -2
- package/types/Drilldown/v2/DrilldownGroup/props.d.ts.map +1 -1
- package/types/Drilldown/v2/DrilldownOption/props.d.ts +3 -2
- package/types/Drilldown/v2/DrilldownOption/props.d.ts.map +1 -1
- package/types/Drilldown/v2/DrilldownSeparator/props.d.ts +3 -2
- package/types/Drilldown/v2/DrilldownSeparator/props.d.ts.map +1 -1
- package/types/Drilldown/v2/props.d.ts +3 -2
- package/types/Drilldown/v2/props.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [11.7.3-snapshot-
|
|
6
|
+
## [11.7.3-snapshot-6](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-6) (2026-04-29)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-drilldown
|
|
9
9
|
|
package/es/Drilldown/v2/index.js
CHANGED
|
@@ -958,7 +958,7 @@ let Drilldown = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle),
|
|
|
958
958
|
|
|
959
959
|
// track as valid active option if not the title and the map doesn't already contain the id
|
|
960
960
|
if (id !== this._headerTitleId && !this._activeOptionsMap[id]) {
|
|
961
|
-
// store index to know the order of ids later; js objects
|
|
961
|
+
// store index to know the order of ids later; js objects don't preserve order
|
|
962
962
|
this._activeOptionsMap[id] = {
|
|
963
963
|
...option,
|
|
964
964
|
...optionData,
|
|
@@ -970,7 +970,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
|
|
|
970
970
|
|
|
971
971
|
// track as valid active option if not the title and the map doesn't already contain the id
|
|
972
972
|
if (id !== this._headerTitleId && !this._activeOptionsMap[id]) {
|
|
973
|
-
// store index to know the order of ids later; js objects
|
|
973
|
+
// store index to know the order of ids later; js objects don't preserve order
|
|
974
974
|
this._activeOptionsMap[id] = {
|
|
975
975
|
...option,
|
|
976
976
|
...optionData,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-drilldown",
|
|
3
|
-
"version": "11.7.3-snapshot-
|
|
3
|
+
"version": "11.7.3-snapshot-6",
|
|
4
4
|
"description": "A drilldown menu component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -15,29 +15,29 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.27.6",
|
|
18
|
-
"@instructure/
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/ui-
|
|
22
|
-
"@instructure/
|
|
23
|
-
"@instructure/
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/ui-
|
|
27
|
-
"@instructure/ui-
|
|
28
|
-
"@instructure/ui-
|
|
29
|
-
"@instructure/
|
|
18
|
+
"@instructure/ui-icons": "11.7.3-snapshot-6",
|
|
19
|
+
"@instructure/ui-popover": "11.7.3-snapshot-6",
|
|
20
|
+
"@instructure/ui-position": "11.7.3-snapshot-6",
|
|
21
|
+
"@instructure/ui-options": "11.7.3-snapshot-6",
|
|
22
|
+
"@instructure/console": "11.7.3-snapshot-6",
|
|
23
|
+
"@instructure/emotion": "11.7.3-snapshot-6",
|
|
24
|
+
"@instructure/ui-react-utils": "11.7.3-snapshot-6",
|
|
25
|
+
"@instructure/ui-selectable": "11.7.3-snapshot-6",
|
|
26
|
+
"@instructure/ui-utils": "11.7.3-snapshot-6",
|
|
27
|
+
"@instructure/ui-themes": "11.7.3-snapshot-6",
|
|
28
|
+
"@instructure/ui-view": "11.7.3-snapshot-6",
|
|
29
|
+
"@instructure/shared-types": "11.7.3-snapshot-6",
|
|
30
|
+
"@instructure/ui-dom-utils": "11.7.3-snapshot-6"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"@testing-library/jest-dom": "^6.6.3",
|
|
33
34
|
"@testing-library/react": "15.0.7",
|
|
34
35
|
"@testing-library/user-event": "^14.6.1",
|
|
35
36
|
"vitest": "^3.2.2",
|
|
36
|
-
"@instructure/ui-axe-check": "11.7.3-snapshot-
|
|
37
|
-
"@instructure/ui-babel-preset": "11.7.3-snapshot-
|
|
38
|
-
"@instructure/ui-color-utils": "11.7.3-snapshot-
|
|
39
|
-
"@instructure/ui-scripts": "11.7.3-snapshot-
|
|
40
|
-
"@instructure/ui-themes": "11.7.3-snapshot-3"
|
|
37
|
+
"@instructure/ui-axe-check": "11.7.3-snapshot-6",
|
|
38
|
+
"@instructure/ui-babel-preset": "11.7.3-snapshot-6",
|
|
39
|
+
"@instructure/ui-color-utils": "11.7.3-snapshot-6",
|
|
40
|
+
"@instructure/ui-scripts": "11.7.3-snapshot-6"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">=18 <=19"
|
|
@@ -26,7 +26,6 @@ import React from 'react'
|
|
|
26
26
|
|
|
27
27
|
import type {
|
|
28
28
|
OtherHTMLAttributes,
|
|
29
|
-
OptionsTheme,
|
|
30
29
|
AsElementType
|
|
31
30
|
} from '@instructure/shared-types'
|
|
32
31
|
import type { WithStyleProps } from '@instructure/emotion'
|
|
@@ -34,6 +33,7 @@ import type { WithStyleProps } from '@instructure/emotion'
|
|
|
34
33
|
import Drilldown from '../index'
|
|
35
34
|
import type { DrilldownOptionValue } from '../DrilldownOption/props'
|
|
36
35
|
import type { OptionChild, SeparatorChild } from '../props'
|
|
36
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
37
37
|
|
|
38
38
|
type GroupChildren = OptionChild | SeparatorChild
|
|
39
39
|
|
|
@@ -113,7 +113,7 @@ type PropKeys = keyof DrilldownGroupOwnProps
|
|
|
113
113
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
114
114
|
|
|
115
115
|
type DrilldownGroupProps = DrilldownGroupOwnProps &
|
|
116
|
-
WithStyleProps<
|
|
116
|
+
WithStyleProps<ReturnType<NewComponentTypes['Options']>, null> &
|
|
117
117
|
OtherHTMLAttributes<DrilldownGroupOwnProps>
|
|
118
118
|
const allowedProps: AllowedPropKeys = [
|
|
119
119
|
'id',
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
import React from 'react'
|
|
26
26
|
import type {
|
|
27
27
|
OtherHTMLAttributes,
|
|
28
|
-
OptionsItemTheme,
|
|
29
28
|
AsElementType
|
|
30
29
|
} from '@instructure/shared-types'
|
|
31
30
|
import type { WithStyleProps } from '@instructure/emotion'
|
|
@@ -36,6 +35,7 @@ import type {
|
|
|
36
35
|
|
|
37
36
|
import Drilldown from '../index'
|
|
38
37
|
import { Renderable } from '@instructure/shared-types'
|
|
38
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
39
39
|
|
|
40
40
|
type DrilldownOptionValue = string | number | undefined
|
|
41
41
|
|
|
@@ -182,7 +182,7 @@ type PropKeys = keyof DrilldownOptionOwnProps
|
|
|
182
182
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
183
183
|
|
|
184
184
|
type DrilldownOptionProps = DrilldownOptionOwnProps &
|
|
185
|
-
WithStyleProps<
|
|
185
|
+
WithStyleProps<ReturnType<NewComponentTypes['OptionsItem']>, null> &
|
|
186
186
|
OtherHTMLAttributes<DrilldownOptionOwnProps>
|
|
187
187
|
const allowedProps: AllowedPropKeys = [
|
|
188
188
|
'id',
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
import type {
|
|
26
26
|
OtherHTMLAttributes,
|
|
27
27
|
PickPropsWithExceptions,
|
|
28
|
-
AsElementType
|
|
29
|
-
OptionsSeparatorTheme
|
|
28
|
+
AsElementType
|
|
30
29
|
} from '@instructure/shared-types'
|
|
31
30
|
import type { WithStyleProps } from '@instructure/emotion'
|
|
32
31
|
import type { OptionsSeparatorProps } from '@instructure/ui-options'
|
|
32
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
33
33
|
|
|
34
34
|
type DrilldownSeparatorOwnProps = {
|
|
35
35
|
id: string
|
|
@@ -48,7 +48,7 @@ type DrilldownSeparatorProps =
|
|
|
48
48
|
// we are passing all props to Options.Separator
|
|
49
49
|
PickPropsWithExceptions<OptionsSeparatorProps, 'as'> &
|
|
50
50
|
DrilldownSeparatorOwnProps &
|
|
51
|
-
WithStyleProps<
|
|
51
|
+
WithStyleProps<ReturnType<NewComponentTypes['OptionsSeparator']>, null> &
|
|
52
52
|
OtherHTMLAttributes<DrilldownSeparatorOwnProps>
|
|
53
53
|
const allowedProps: AllowedPropKeys = ['id', 'as']
|
|
54
54
|
|
|
@@ -1198,7 +1198,7 @@ class Drilldown extends Component<DrilldownProps, DrilldownState> {
|
|
|
1198
1198
|
|
|
1199
1199
|
// track as valid active option if not the title and the map doesn't already contain the id
|
|
1200
1200
|
if (id !== this._headerTitleId && !this._activeOptionsMap[id]) {
|
|
1201
|
-
// store index to know the order of ids later; js objects
|
|
1201
|
+
// store index to know the order of ids later; js objects don't preserve order
|
|
1202
1202
|
this._activeOptionsMap[id] = {
|
|
1203
1203
|
...option,
|
|
1204
1204
|
...optionData,
|
|
@@ -33,7 +33,6 @@ import type {
|
|
|
33
33
|
PositionMountNode
|
|
34
34
|
} from '@instructure/ui-position'
|
|
35
35
|
import type {
|
|
36
|
-
DrilldownTheme,
|
|
37
36
|
OtherHTMLAttributes,
|
|
38
37
|
AsElementType
|
|
39
38
|
} from '@instructure/shared-types'
|
|
@@ -51,6 +50,7 @@ import { DrilldownSeparator } from './DrilldownSeparator'
|
|
|
51
50
|
import type { DrilldownSeparatorProps } from './DrilldownSeparator/props'
|
|
52
51
|
|
|
53
52
|
import { Drilldown } from './index'
|
|
53
|
+
import type { NewComponentTypes } from '@instructure/ui-themes'
|
|
54
54
|
|
|
55
55
|
type PageChild = React.ComponentElement<DrilldownPageProps, DrilldownPage>
|
|
56
56
|
type GroupChild = React.ComponentElement<DrilldownGroupProps, DrilldownGroup>
|
|
@@ -273,7 +273,7 @@ type PropKeys = keyof DrilldownOwnProps
|
|
|
273
273
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
274
274
|
|
|
275
275
|
type DrilldownProps = DrilldownOwnProps &
|
|
276
|
-
WithStyleProps<
|
|
276
|
+
WithStyleProps<ReturnType<NewComponentTypes['Drilldown']>, DrilldownStyle> &
|
|
277
277
|
WithDeterministicIdProps &
|
|
278
278
|
OtherHTMLAttributes<DrilldownOwnProps>
|
|
279
279
|
|