@khanacademy/wonder-blocks-modal 7.0.7 → 7.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Khan Academy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/es/index.js CHANGED
@@ -495,7 +495,7 @@ class ModalLauncher extends React.Component {
495
495
  const {
496
496
  onClose
497
497
  } = this.props;
498
- onClose == null ? void 0 : onClose();
498
+ onClose == null || onClose();
499
499
  this._returnFocus();
500
500
  });
501
501
  };
package/dist/index.js CHANGED
@@ -525,7 +525,7 @@ class ModalLauncher extends React__namespace.Component {
525
525
  const {
526
526
  onClose
527
527
  } = this.props;
528
- onClose == null ? void 0 : onClose();
528
+ onClose == null || onClose();
529
529
  this._returnFocus();
530
530
  });
531
531
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-modal",
3
- "version": "7.0.7",
3
+ "version": "7.1.1",
4
4
  "design": "v2",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,22 +9,18 @@
9
9
  "main": "dist/index.js",
10
10
  "types": "dist/index.d.ts",
11
11
  "module": "dist/es/index.js",
12
- "scripts": {
13
- "test": "echo \"Error: no test specified\" && exit 1",
14
- "prepublishOnly": "../../utils/publish/package-pre-publish-check.sh"
15
- },
16
12
  "author": "",
17
13
  "license": "MIT",
18
14
  "dependencies": {
19
- "@babel/runtime": "^7.18.6",
20
- "@khanacademy/wonder-blocks-breadcrumbs": "^3.0.8",
21
- "@khanacademy/wonder-blocks-core": "^12.0.0",
22
- "@khanacademy/wonder-blocks-icon-button": "^6.0.9",
23
- "@khanacademy/wonder-blocks-layout": "^3.0.8",
24
- "@khanacademy/wonder-blocks-theming": "^3.0.1",
25
- "@khanacademy/wonder-blocks-timing": "^6.0.1",
26
- "@khanacademy/wonder-blocks-tokens": "^4.1.0",
27
- "@khanacademy/wonder-blocks-typography": "^3.0.6"
15
+ "@babel/runtime": "^7.24.5",
16
+ "@khanacademy/wonder-blocks-breadcrumbs": "3.1.1",
17
+ "@khanacademy/wonder-blocks-core": "12.1.1",
18
+ "@khanacademy/wonder-blocks-icon-button": "6.1.1",
19
+ "@khanacademy/wonder-blocks-layout": "3.1.1",
20
+ "@khanacademy/wonder-blocks-theming": "3.1.1",
21
+ "@khanacademy/wonder-blocks-timing": "7.0.1",
22
+ "@khanacademy/wonder-blocks-tokens": "4.2.1",
23
+ "@khanacademy/wonder-blocks-typography": "3.1.1"
28
24
  },
29
25
  "peerDependencies": {
30
26
  "@phosphor-icons/core": "^2.0.2",
@@ -34,6 +30,9 @@
34
30
  },
35
31
  "devDependencies": {
36
32
  "@khanacademy/wonder-blocks-breadcrumbs": "^3.0.8",
37
- "@khanacademy/wb-dev-build-settings": "^2.0.0"
33
+ "@khanacademy/wb-dev-build-settings": "2.1.1"
34
+ },
35
+ "scripts": {
36
+ "test": "echo \"Error: no test specified\" && exit 1"
38
37
  }
39
38
  }