@khanacademy/wonder-blocks-modal 6.0.1 → 7.0.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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @khanacademy/wonder-blocks-modal
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 56d961f1: - Migrate Wonder Blocks components off old id providers and onto new `Id` component
8
+
9
+ ### Patch Changes
10
+
11
+ - b6009b77: Deprecate the ID provider and unique ID utilities
12
+ - Updated dependencies [b6009b77]
13
+ - Updated dependencies [897686bc]
14
+ - Updated dependencies [56d961f1]
15
+ - @khanacademy/wonder-blocks-core@10.0.0
16
+ - @khanacademy/wonder-blocks-breadcrumbs@3.0.2
17
+ - @khanacademy/wonder-blocks-icon-button@6.0.2
18
+ - @khanacademy/wonder-blocks-layout@3.0.2
19
+ - @khanacademy/wonder-blocks-typography@3.0.2
20
+
3
21
  ## 6.0.1
4
22
 
5
23
  ### 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, check [IDProvider](/#idprovider).
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, IDProvider } from '@khanacademy/wonder-blocks-core';
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(IDProvider, {
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.IDProvider, {
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": "6.0.1",
3
+ "version": "7.0.0",
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.1",
20
- "@khanacademy/wonder-blocks-core": "^9.0.0",
21
- "@khanacademy/wonder-blocks-icon-button": "^6.0.1",
22
- "@khanacademy/wonder-blocks-layout": "^3.0.1",
19
+ "@khanacademy/wonder-blocks-breadcrumbs": "^3.0.2",
20
+ "@khanacademy/wonder-blocks-core": "^10.0.0",
21
+ "@khanacademy/wonder-blocks-icon-button": "^6.0.2",
22
+ "@khanacademy/wonder-blocks-layout": "^3.0.2",
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.1"
26
+ "@khanacademy/wonder-blocks-typography": "^3.0.2"
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.1",
35
+ "@khanacademy/wonder-blocks-breadcrumbs": "^3.0.2",
36
36
  "@khanacademy/wb-dev-build-settings": "^2.0.0"
37
37
  }
38
38
  }