@khanacademy/wonder-blocks-modal 6.0.1 → 7.0.1
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 +29 -0
- package/dist/components/modal-header.d.ts +2 -1
- package/dist/es/index.js +3 -4
- package/dist/index.js +2 -3
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-modal
|
|
2
2
|
|
|
3
|
+
## 7.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [d23c9c5f]
|
|
8
|
+
- @khanacademy/wonder-blocks-core@11.0.0
|
|
9
|
+
- @khanacademy/wonder-blocks-breadcrumbs@3.0.3
|
|
10
|
+
- @khanacademy/wonder-blocks-icon-button@6.0.3
|
|
11
|
+
- @khanacademy/wonder-blocks-layout@3.0.3
|
|
12
|
+
- @khanacademy/wonder-blocks-typography@3.0.3
|
|
13
|
+
|
|
14
|
+
## 7.0.0
|
|
15
|
+
|
|
16
|
+
### Major Changes
|
|
17
|
+
|
|
18
|
+
- 56d961f1: - Migrate Wonder Blocks components off old id providers and onto new `Id` component
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- b6009b77: Deprecate the ID provider and unique ID utilities
|
|
23
|
+
- Updated dependencies [b6009b77]
|
|
24
|
+
- Updated dependencies [897686bc]
|
|
25
|
+
- Updated dependencies [56d961f1]
|
|
26
|
+
- @khanacademy/wonder-blocks-core@10.0.0
|
|
27
|
+
- @khanacademy/wonder-blocks-breadcrumbs@3.0.2
|
|
28
|
+
- @khanacademy/wonder-blocks-icon-button@6.0.2
|
|
29
|
+
- @khanacademy/wonder-blocks-layout@3.0.2
|
|
30
|
+
- @khanacademy/wonder-blocks-typography@3.0.2
|
|
31
|
+
|
|
3
32
|
## 6.0.1
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
|
@@ -55,7 +55,8 @@ type Props = Common | WithSubtitle | WithBreadcrumbs;
|
|
|
55
55
|
* ModalHeader doesn’t have to have the `titleId` prop however this is
|
|
56
56
|
* recommended. It should match the `aria-labelledby` prop of the
|
|
57
57
|
* [ModalDialog](/#modaldialog) component. If you want to see an example of
|
|
58
|
-
* how to generate this ID
|
|
58
|
+
* how to generate this ID look at the `React.useId` hook documentation, o
|
|
59
|
+
* check [Id](/#id).
|
|
59
60
|
*
|
|
60
61
|
* **Implementation notes:**
|
|
61
62
|
*
|
package/dist/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime/helpers/extends';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { View,
|
|
3
|
+
import { View, Id } from '@khanacademy/wonder-blocks-core';
|
|
4
4
|
import { mergeTheme, createThemeContext, ThemeSwitcherContext, useScopedTheme, useStyles } from '@khanacademy/wonder-blocks-theming';
|
|
5
5
|
import * as tokens from '@khanacademy/wonder-blocks-tokens';
|
|
6
6
|
import { color, spacing } from '@khanacademy/wonder-blocks-tokens';
|
|
@@ -777,9 +777,8 @@ class OnePaneDialog extends React.Component {
|
|
|
777
777
|
styleSheets: styleSheets
|
|
778
778
|
}, ({
|
|
779
779
|
styles
|
|
780
|
-
}) => React.createElement(
|
|
781
|
-
id: titleId
|
|
782
|
-
scope: "modal"
|
|
780
|
+
}) => React.createElement(Id, {
|
|
781
|
+
id: titleId
|
|
783
782
|
}, uniqueId => React.createElement(ModalDialog, {
|
|
784
783
|
style: [styles.dialog, style],
|
|
785
784
|
above: above,
|
package/dist/index.js
CHANGED
|
@@ -807,9 +807,8 @@ class OnePaneDialog extends React__namespace.Component {
|
|
|
807
807
|
styleSheets: styleSheets
|
|
808
808
|
}, ({
|
|
809
809
|
styles
|
|
810
|
-
}) => React__namespace.createElement(wonderBlocksCore.
|
|
811
|
-
id: titleId
|
|
812
|
-
scope: "modal"
|
|
810
|
+
}) => React__namespace.createElement(wonderBlocksCore.Id, {
|
|
811
|
+
id: titleId
|
|
813
812
|
}, uniqueId => React__namespace.createElement(ModalDialog, {
|
|
814
813
|
style: [styles.dialog, style],
|
|
815
814
|
above: above,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-modal",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"design": "v2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "^7.18.6",
|
|
19
|
-
"@khanacademy/wonder-blocks-breadcrumbs": "^3.0.
|
|
20
|
-
"@khanacademy/wonder-blocks-core": "^
|
|
21
|
-
"@khanacademy/wonder-blocks-icon-button": "^6.0.
|
|
22
|
-
"@khanacademy/wonder-blocks-layout": "^3.0.
|
|
19
|
+
"@khanacademy/wonder-blocks-breadcrumbs": "^3.0.3",
|
|
20
|
+
"@khanacademy/wonder-blocks-core": "^11.0.0",
|
|
21
|
+
"@khanacademy/wonder-blocks-icon-button": "^6.0.3",
|
|
22
|
+
"@khanacademy/wonder-blocks-layout": "^3.0.3",
|
|
23
23
|
"@khanacademy/wonder-blocks-theming": "^3.0.0",
|
|
24
24
|
"@khanacademy/wonder-blocks-timing": "^6.0.0",
|
|
25
25
|
"@khanacademy/wonder-blocks-tokens": "^3.0.0",
|
|
26
|
-
"@khanacademy/wonder-blocks-typography": "^3.0.
|
|
26
|
+
"@khanacademy/wonder-blocks-typography": "^3.0.3"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@phosphor-icons/core": "^2.0.2",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"react-dom": "18.2.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@khanacademy/wonder-blocks-breadcrumbs": "^3.0.
|
|
35
|
+
"@khanacademy/wonder-blocks-breadcrumbs": "^3.0.3",
|
|
36
36
|
"@khanacademy/wb-dev-build-settings": "^2.0.0"
|
|
37
37
|
}
|
|
38
38
|
}
|