@khanacademy/wonder-blocks-modal 5.1.7 → 5.1.8
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 +15 -0
- package/dist/es/index.js +1 -15
- package/dist/index.js +18 -31
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-modal
|
|
2
2
|
|
|
3
|
+
## 5.1.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 559e82d5: Update to build tooling, generating smaller output
|
|
8
|
+
- Updated dependencies [559e82d5]
|
|
9
|
+
- @khanacademy/wonder-blocks-breadcrumbs@2.2.4
|
|
10
|
+
- @khanacademy/wonder-blocks-core@6.4.3
|
|
11
|
+
- @khanacademy/wonder-blocks-icon-button@5.3.3
|
|
12
|
+
- @khanacademy/wonder-blocks-layout@2.1.2
|
|
13
|
+
- @khanacademy/wonder-blocks-theming@2.0.3
|
|
14
|
+
- @khanacademy/wonder-blocks-timing@5.0.1
|
|
15
|
+
- @khanacademy/wonder-blocks-tokens@1.3.1
|
|
16
|
+
- @khanacademy/wonder-blocks-typography@2.1.14
|
|
17
|
+
|
|
3
18
|
## 5.1.7
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/es/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from '@babel/runtime/helpers/extends';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { View, IDProvider } from '@khanacademy/wonder-blocks-core';
|
|
3
4
|
import { mergeTheme, createThemeContext, ThemeSwitcherContext, useScopedTheme, useStyles } from '@khanacademy/wonder-blocks-theming';
|
|
@@ -11,21 +12,6 @@ import xIcon from '@phosphor-icons/core/regular/x.svg';
|
|
|
11
12
|
import IconButton from '@khanacademy/wonder-blocks-icon-button';
|
|
12
13
|
import { MediaLayout } from '@khanacademy/wonder-blocks-layout';
|
|
13
14
|
|
|
14
|
-
function _extends() {
|
|
15
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
16
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
17
|
-
var source = arguments[i];
|
|
18
|
-
for (var key in source) {
|
|
19
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
20
|
-
target[key] = source[key];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return target;
|
|
25
|
-
};
|
|
26
|
-
return _extends.apply(this, arguments);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
15
|
const theme$1 = {
|
|
30
16
|
color: {
|
|
31
17
|
bg: {
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var _extends = require('@babel/runtime/helpers/extends');
|
|
5
6
|
var React = require('react');
|
|
6
7
|
var wonderBlocksCore = require('@khanacademy/wonder-blocks-core');
|
|
7
8
|
var wonderBlocksTheming = require('@khanacademy/wonder-blocks-theming');
|
|
@@ -17,44 +18,30 @@ var wonderBlocksLayout = require('@khanacademy/wonder-blocks-layout');
|
|
|
17
18
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
19
|
|
|
19
20
|
function _interopNamespace(e) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
if (e && e.__esModule) return e;
|
|
22
|
+
var n = Object.create(null);
|
|
23
|
+
if (e) {
|
|
24
|
+
Object.keys(e).forEach(function (k) {
|
|
25
|
+
if (k !== 'default') {
|
|
26
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
27
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return e[k]; }
|
|
30
|
+
});
|
|
31
|
+
}
|
|
29
32
|
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
n["default"] = e;
|
|
34
|
-
return Object.freeze(n);
|
|
33
|
+
}
|
|
34
|
+
n["default"] = e;
|
|
35
|
+
return Object.freeze(n);
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
37
39
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
38
40
|
var tokens__namespace = /*#__PURE__*/_interopNamespace(tokens);
|
|
39
41
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
40
42
|
var xIcon__default = /*#__PURE__*/_interopDefaultLegacy(xIcon);
|
|
41
43
|
var IconButton__default = /*#__PURE__*/_interopDefaultLegacy(IconButton);
|
|
42
44
|
|
|
43
|
-
function _extends() {
|
|
44
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
45
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
46
|
-
var source = arguments[i];
|
|
47
|
-
for (var key in source) {
|
|
48
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
49
|
-
target[key] = source[key];
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return target;
|
|
54
|
-
};
|
|
55
|
-
return _extends.apply(this, arguments);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
45
|
const theme$1 = {
|
|
59
46
|
color: {
|
|
60
47
|
bg: {
|
|
@@ -141,7 +128,7 @@ const ModalDialogCore = React__namespace.forwardRef(function ModalDialogCore(pro
|
|
|
141
128
|
}, above));
|
|
142
129
|
});
|
|
143
130
|
const ModalDialog = React__namespace.forwardRef(function ModalDialog(props, ref) {
|
|
144
|
-
return React__namespace.createElement(ThemeModalDialog, null, React__namespace.createElement(ModalDialogCore,
|
|
131
|
+
return React__namespace.createElement(ThemeModalDialog, null, React__namespace.createElement(ModalDialogCore, _extends__default["default"]({}, props, {
|
|
145
132
|
ref: ref
|
|
146
133
|
})));
|
|
147
134
|
});
|
|
@@ -404,7 +391,7 @@ class ModalBackdrop extends React__namespace.Component {
|
|
|
404
391
|
const backdropProps = {
|
|
405
392
|
[ModalLauncherPortalAttributeName]: true
|
|
406
393
|
};
|
|
407
|
-
return React__namespace.createElement(wonderBlocksCore.View,
|
|
394
|
+
return React__namespace.createElement(wonderBlocksCore.View, _extends__default["default"]({
|
|
408
395
|
style: styles$1.modalPositioner,
|
|
409
396
|
onMouseDown: this.handleMouseDown,
|
|
410
397
|
onMouseUp: this.handleMouseUp,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-modal",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.8",
|
|
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": "^2.2.
|
|
20
|
-
"@khanacademy/wonder-blocks-core": "^6.4.
|
|
21
|
-
"@khanacademy/wonder-blocks-icon-button": "^5.3.
|
|
22
|
-
"@khanacademy/wonder-blocks-layout": "^2.1.
|
|
23
|
-
"@khanacademy/wonder-blocks-theming": "^2.0.
|
|
24
|
-
"@khanacademy/wonder-blocks-timing": "^5.0.
|
|
25
|
-
"@khanacademy/wonder-blocks-tokens": "^1.3.
|
|
26
|
-
"@khanacademy/wonder-blocks-typography": "^2.1.
|
|
19
|
+
"@khanacademy/wonder-blocks-breadcrumbs": "^2.2.4",
|
|
20
|
+
"@khanacademy/wonder-blocks-core": "^6.4.3",
|
|
21
|
+
"@khanacademy/wonder-blocks-icon-button": "^5.3.3",
|
|
22
|
+
"@khanacademy/wonder-blocks-layout": "^2.1.2",
|
|
23
|
+
"@khanacademy/wonder-blocks-theming": "^2.0.3",
|
|
24
|
+
"@khanacademy/wonder-blocks-timing": "^5.0.1",
|
|
25
|
+
"@khanacademy/wonder-blocks-tokens": "^1.3.1",
|
|
26
|
+
"@khanacademy/wonder-blocks-typography": "^2.1.14"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@phosphor-icons/core": "^2.0.2",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"react-dom": "16.14.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@khanacademy/wonder-blocks-breadcrumbs": "^2.2.
|
|
36
|
-
"@khanacademy/wb-dev-build-settings": "^1.0.
|
|
35
|
+
"@khanacademy/wonder-blocks-breadcrumbs": "^2.2.4",
|
|
36
|
+
"@khanacademy/wb-dev-build-settings": "^1.0.1"
|
|
37
37
|
}
|
|
38
38
|
}
|