@instructure/ui-drilldown 8.25.1-snapshot-19 → 8.25.1-snapshot-20

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 CHANGED
@@ -3,9 +3,12 @@
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
- ## [8.25.1-snapshot-19](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-19) (2022-06-28)
6
+ ## [8.25.1-snapshot-20](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-20) (2022-06-30)
7
7
 
8
- **Note:** Version bump only for package @instructure/ui-drilldown
8
+
9
+ ### Features
10
+
11
+ * **ui-code-editor:** Add ColorPicker component ([1cbd877](https://github.com/instructure/instructure-ui/commit/1cbd87783da67144ffbd1f6ed535ccd370fd4eeb))
9
12
 
10
13
 
11
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-drilldown",
3
- "version": "8.25.1-snapshot-19",
3
+ "version": "8.25.1-snapshot-20",
4
4
  "description": "A drilldown menu component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,28 +24,28 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.13.10",
27
- "@instructure/console": "8.25.1-snapshot-19",
28
- "@instructure/emotion": "8.25.1-snapshot-19",
29
- "@instructure/shared-types": "8.25.1-snapshot-19",
30
- "@instructure/ui-dom-utils": "8.25.1-snapshot-19",
31
- "@instructure/ui-icons": "8.25.1-snapshot-19",
32
- "@instructure/ui-options": "8.25.1-snapshot-19",
33
- "@instructure/ui-popover": "8.25.1-snapshot-19",
34
- "@instructure/ui-position": "8.25.1-snapshot-19",
35
- "@instructure/ui-prop-types": "8.25.1-snapshot-19",
36
- "@instructure/ui-react-utils": "8.25.1-snapshot-19",
37
- "@instructure/ui-selectable": "8.25.1-snapshot-19",
38
- "@instructure/ui-testable": "8.25.1-snapshot-19",
39
- "@instructure/ui-utils": "8.25.1-snapshot-19",
40
- "@instructure/ui-view": "8.25.1-snapshot-19",
27
+ "@instructure/console": "8.25.1-snapshot-20",
28
+ "@instructure/emotion": "8.25.1-snapshot-20",
29
+ "@instructure/shared-types": "8.25.1-snapshot-20",
30
+ "@instructure/ui-dom-utils": "8.25.1-snapshot-20",
31
+ "@instructure/ui-icons": "8.25.1-snapshot-20",
32
+ "@instructure/ui-options": "8.25.1-snapshot-20",
33
+ "@instructure/ui-popover": "8.25.1-snapshot-20",
34
+ "@instructure/ui-position": "8.25.1-snapshot-20",
35
+ "@instructure/ui-prop-types": "8.25.1-snapshot-20",
36
+ "@instructure/ui-react-utils": "8.25.1-snapshot-20",
37
+ "@instructure/ui-selectable": "8.25.1-snapshot-20",
38
+ "@instructure/ui-testable": "8.25.1-snapshot-20",
39
+ "@instructure/ui-utils": "8.25.1-snapshot-20",
40
+ "@instructure/ui-view": "8.25.1-snapshot-20",
41
41
  "prop-types": "^15"
42
42
  },
43
43
  "devDependencies": {
44
- "@instructure/ui-babel-preset": "8.25.1-snapshot-19",
45
- "@instructure/ui-color-utils": "8.25.1-snapshot-19",
46
- "@instructure/ui-test-locator": "8.25.1-snapshot-19",
47
- "@instructure/ui-test-utils": "8.25.1-snapshot-19",
48
- "@instructure/ui-themes": "8.25.1-snapshot-19"
44
+ "@instructure/ui-babel-preset": "8.25.1-snapshot-20",
45
+ "@instructure/ui-color-utils": "8.25.1-snapshot-20",
46
+ "@instructure/ui-test-locator": "8.25.1-snapshot-20",
47
+ "@instructure/ui-test-utils": "8.25.1-snapshot-20",
48
+ "@instructure/ui-themes": "8.25.1-snapshot-20"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": ">=16.8 <=17"
@@ -64,6 +64,21 @@ type SeparatorChild = React.ComponentElement<
64
64
  DrilldownSeparatorProps,
65
65
  DrilldownSeparator
66
66
  >
67
+ type DrilldownOnSelectArgs = {
68
+ value: DrilldownOptionValue | DrilldownOptionValue[]
69
+ isSelected: boolean
70
+ selectedOption: OptionChild
71
+ drilldown: Drilldown
72
+ }
73
+ type DrilldownOnToggleArgs = {
74
+ shown: boolean
75
+ drilldown: Drilldown
76
+ pageHistory: string[]
77
+ goToPage: (
78
+ pageId: string
79
+ ) => { prevPageId: string; newPageId: string } | undefined
80
+ goToPreviousPage: () => { prevPageId: string; newPageId: string } | undefined
81
+ }
67
82
 
68
83
  type DrilldownOwnProps = {
69
84
  /**
@@ -152,31 +167,13 @@ type DrilldownOwnProps = {
152
167
  */
153
168
  onToggle?: (
154
169
  event: React.UIEvent | React.FocusEvent,
155
- args: {
156
- shown: boolean
157
- drilldown: Drilldown
158
- pageHistory: string[]
159
- goToPage: (
160
- pageId: string
161
- ) => { prevPageId: string; newPageId: string } | undefined
162
- goToPreviousPage: () =>
163
- | { prevPageId: string; newPageId: string }
164
- | undefined
165
- }
170
+ args: DrilldownOnToggleArgs
166
171
  ) => void
167
172
 
168
173
  /**
169
174
  * Callback fired when an item within the `<Drilldown />` is selected
170
175
  */
171
- onSelect?: (
172
- event: React.SyntheticEvent,
173
- args: {
174
- value: DrilldownOptionValue | DrilldownOptionValue[]
175
- isSelected: boolean
176
- selectedOption: OptionChild
177
- drilldown: Drilldown
178
- }
179
- ) => void
176
+ onSelect?: (event: React.SyntheticEvent, args: DrilldownOnSelectArgs) => void
180
177
 
181
178
  /**
182
179
  * If a trigger is supplied, callback fired when the `<Drilldown />` is closed
@@ -373,6 +370,8 @@ export type {
373
370
  PageChild,
374
371
  GroupChild,
375
372
  OptionChild,
376
- SeparatorChild
373
+ SeparatorChild,
374
+ DrilldownOnSelectArgs,
375
+ DrilldownOnToggleArgs
377
376
  }
378
377
  export { propTypes, allowedProps }
package/src/index.ts CHANGED
@@ -23,4 +23,8 @@
23
23
  */
24
24
 
25
25
  export { Drilldown } from './Drilldown'
26
- export type { DrilldownProps } from './Drilldown/props'
26
+ export type {
27
+ DrilldownProps,
28
+ DrilldownOnSelectArgs,
29
+ DrilldownOnToggleArgs
30
+ } from './Drilldown/props'