@khanacademy/wonder-blocks-banner 1.2.0 → 1.2.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @khanacademy/wonder-blocks-banner
2
2
 
3
+ ## 1.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [8e3d9439]
8
+ - @khanacademy/wonder-blocks-button@3.0.8
9
+
3
10
  ## 1.2.0
4
11
 
5
12
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-banner",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "design": "v1",
5
5
  "description": "Banner components for Wonder Blocks.",
6
6
  "main": "dist/index.js",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@babel/runtime": "^7.18.6",
19
- "@khanacademy/wonder-blocks-button": "^3.0.7",
19
+ "@khanacademy/wonder-blocks-button": "^3.0.8",
20
20
  "@khanacademy/wonder-blocks-color": "^1.2.0",
21
21
  "@khanacademy/wonder-blocks-core": "^4.5.0",
22
22
  "@khanacademy/wonder-blocks-icon": "^1.2.32",
@@ -1,4 +1,6 @@
1
1
  // @flow
2
+ import * as React from "react";
3
+
2
4
  const actionsMappings = {
3
5
  none: null,
4
6
  buttons: [
@@ -60,7 +62,8 @@ export default {
60
62
  description: `Links or tertiary Buttons that appear to the right of the
61
63
  text.\n\nThe ActionTrigger must have either an onClick or an href
62
64
  field, or both.`,
63
- options: actionsMappings,
65
+ options: (Object.keys(actionsMappings): Array<React.Node>),
66
+ mapping: actionsMappings,
64
67
  table: {
65
68
  type: {
66
69
  summary: "Array<ActionTrigger>",
@@ -72,7 +75,8 @@ export default {
72
75
  control: {type: "select"},
73
76
  description:
74
77
  "If present, dismiss button is on right side. If not, no button appears.",
75
- options: dismissMappings,
78
+ options: (Object.keys(dismissMappings): Array<React.Node>),
79
+ mapping: dismissMappings,
76
80
  table: {required: false},
77
81
  },
78
82
  dismissAriaLabel: {