@atlaskit/editor-extension-dropbox 0.2.23 → 0.2.26
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 +20 -0
- package/dist/cjs/modal.js +14 -14
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/modal.js +3 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/modal.js +5 -5
- package/dist/esm/version.json +1 -1
- package/dist/types/manifest.d.ts +1 -1
- package/dist/types/modal.d.ts +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-extension-dropbox
|
|
2
2
|
|
|
3
|
+
## 0.2.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`55256125722`](https://bitbucket.org/atlassian/atlassian-frontend/commits/55256125722) - ED-14262 update editor packages to use emotion 11
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 0.2.25
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 0.2.24
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - ED-13753 Updated editor-common import entries.
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 0.2.23
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/cjs/modal.js
CHANGED
|
@@ -17,7 +17,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
17
17
|
|
|
18
18
|
var _chromatism = _interopRequireDefault(require("chromatism"));
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _react2 = require("@emotion/react");
|
|
21
21
|
|
|
22
22
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
23
23
|
|
|
@@ -35,14 +35,14 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
35
35
|
|
|
36
36
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
37
|
|
|
38
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
38
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
39
39
|
|
|
40
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
40
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
41
41
|
|
|
42
42
|
var gridSize = (0, _constants.gridSize)();
|
|
43
43
|
|
|
44
44
|
var ModalBody = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
45
|
-
return (0,
|
|
45
|
+
return (0, _react2.jsx)("div", {
|
|
46
46
|
ref: ref,
|
|
47
47
|
style: {
|
|
48
48
|
height: '100%'
|
|
@@ -71,7 +71,7 @@ var hexToRGBA = function hexToRGBA(hex) {
|
|
|
71
71
|
return "rgba(".concat(Object.values(rgba).join(', '), ")");
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
-
var bottomShadow = {
|
|
74
|
+
var bottomShadow = (0, _react2.css)({
|
|
75
75
|
display: 'flex',
|
|
76
76
|
justifyContent: 'space-between',
|
|
77
77
|
alignItems: 'baseline',
|
|
@@ -84,7 +84,7 @@ var bottomShadow = {
|
|
|
84
84
|
height: gridSize / 2,
|
|
85
85
|
background: "linear-gradient(180deg, ".concat(_colors.N40A, " 0, ").concat(_colors.N40A, " 1px, ").concat(_colors.N30A, " 1px, ").concat(hexToRGBA(_colors.N900, 0), " 4px)")
|
|
86
86
|
}
|
|
87
|
-
};
|
|
87
|
+
});
|
|
88
88
|
var spacingDivStyle = {
|
|
89
89
|
width: '28px'
|
|
90
90
|
};
|
|
@@ -97,16 +97,16 @@ var Header = function Header() {
|
|
|
97
97
|
onClose = _useModal.onClose,
|
|
98
98
|
titleId = _useModal.titleId;
|
|
99
99
|
|
|
100
|
-
return (0,
|
|
100
|
+
return (0, _react2.jsx)("div", {
|
|
101
101
|
css: bottomShadow
|
|
102
|
-
}, (0,
|
|
102
|
+
}, (0, _react2.jsx)("div", {
|
|
103
103
|
css: spacingDivStyle
|
|
104
|
-
}), (0,
|
|
104
|
+
}), (0, _react2.jsx)("h5", {
|
|
105
105
|
id: titleId,
|
|
106
106
|
css: headingStyle
|
|
107
|
-
}, "Dropbox"), (0,
|
|
107
|
+
}, "Dropbox"), (0, _react2.jsx)("div", null, (0, _react2.jsx)(_customThemeButton.default, {
|
|
108
108
|
appearance: "subtle",
|
|
109
|
-
iconBefore: (0,
|
|
109
|
+
iconBefore: (0, _react2.jsx)(_close.default, {
|
|
110
110
|
label: "close dropbox modal"
|
|
111
111
|
}),
|
|
112
112
|
onClick: onClose
|
|
@@ -127,7 +127,7 @@ var Modal = function Modal(_ref) {
|
|
|
127
127
|
setIsOpen(showModal);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
return (0,
|
|
130
|
+
return (0, _react2.jsx)(_modalDialog.ModalTransition, null, isOpen && (0, _react2.jsx)(_modalDialog.default, {
|
|
131
131
|
height: "100%",
|
|
132
132
|
width: "large",
|
|
133
133
|
onClose: function onClose() {
|
|
@@ -135,12 +135,12 @@ var Modal = function Modal(_ref) {
|
|
|
135
135
|
|
|
136
136
|
_onClose();
|
|
137
137
|
}
|
|
138
|
-
}, (0,
|
|
138
|
+
}, (0, _react2.jsx)(Header, null), (0, _react2.jsx)(_modalDialog.ModalBody, null, (0, _react2.jsx)(ModalBody, null, TEST_ONLY_src ? (0, _react2.jsx)("iframe", {
|
|
139
139
|
css: iframeStyle,
|
|
140
140
|
name: _constants2.DROPBOX_IFRAME_NAME,
|
|
141
141
|
frameBorder: 0,
|
|
142
142
|
src: TEST_ONLY_src
|
|
143
|
-
}) : (0,
|
|
143
|
+
}) : (0, _react2.jsx)("iframe", {
|
|
144
144
|
css: iframeStyle,
|
|
145
145
|
name: _constants2.DROPBOX_IFRAME_NAME,
|
|
146
146
|
frameBorder: 0
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/modal.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import chromatism from 'chromatism';
|
|
4
|
-
import { jsx } from '@emotion/
|
|
4
|
+
import { jsx, css } from '@emotion/react';
|
|
5
5
|
import ModalDialog, { ModalTransition, useModal, ModalBody as AKModalBody } from '@atlaskit/modal-dialog';
|
|
6
6
|
import EditorCloseIcon from '@atlaskit/icon/glyph/editor/close';
|
|
7
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -37,7 +37,7 @@ const hexToRGBA = (hex, opacity = 1) => {
|
|
|
37
37
|
return `rgba(${Object.values(rgba).join(', ')})`;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
const bottomShadow = {
|
|
40
|
+
const bottomShadow = css({
|
|
41
41
|
display: 'flex',
|
|
42
42
|
justifyContent: 'space-between',
|
|
43
43
|
alignItems: 'baseline',
|
|
@@ -50,7 +50,7 @@ const bottomShadow = {
|
|
|
50
50
|
height: gridSize / 2,
|
|
51
51
|
background: `linear-gradient(180deg, ${N40A} 0, ${N40A} 1px, ${N30A} 1px, ${hexToRGBA(N900, 0)} 4px)`
|
|
52
52
|
}
|
|
53
|
-
};
|
|
53
|
+
});
|
|
54
54
|
const spacingDivStyle = {
|
|
55
55
|
width: '28px'
|
|
56
56
|
};
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/modal.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
5
|
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
|
|
8
8
|
/** @jsx jsx */
|
|
9
9
|
import React, { useState } from 'react';
|
|
10
10
|
import chromatism from 'chromatism';
|
|
11
|
-
import { jsx } from '@emotion/
|
|
11
|
+
import { jsx, css } from '@emotion/react';
|
|
12
12
|
import ModalDialog, { ModalTransition, useModal, ModalBody as AKModalBody } from '@atlaskit/modal-dialog';
|
|
13
13
|
import EditorCloseIcon from '@atlaskit/icon/glyph/editor/close';
|
|
14
14
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -45,7 +45,7 @@ var hexToRGBA = function hexToRGBA(hex) {
|
|
|
45
45
|
return "rgba(".concat(Object.values(rgba).join(', '), ")");
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
var bottomShadow = {
|
|
48
|
+
var bottomShadow = css({
|
|
49
49
|
display: 'flex',
|
|
50
50
|
justifyContent: 'space-between',
|
|
51
51
|
alignItems: 'baseline',
|
|
@@ -58,7 +58,7 @@ var bottomShadow = {
|
|
|
58
58
|
height: gridSize / 2,
|
|
59
59
|
background: "linear-gradient(180deg, ".concat(N40A, " 0, ").concat(N40A, " 1px, ").concat(N30A, " 1px, ").concat(hexToRGBA(N900, 0), " 4px)")
|
|
60
60
|
}
|
|
61
|
-
};
|
|
61
|
+
});
|
|
62
62
|
var spacingDivStyle = {
|
|
63
63
|
width: '28px'
|
|
64
64
|
};
|
package/dist/esm/version.json
CHANGED
package/dist/types/manifest.d.ts
CHANGED
package/dist/types/modal.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
2
|
declare const Modal: ({ onClose, TEST_ONLY_src, showModal, }: {
|
|
3
3
|
onClose: () => any;
|
|
4
4
|
TEST_ONLY_src?: string | undefined;
|
|
5
5
|
showModal?: boolean | undefined;
|
|
6
|
-
}) => JSX.Element;
|
|
6
|
+
}) => jsx.JSX.Element;
|
|
7
7
|
export default Modal;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-extension-dropbox",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.26",
|
|
4
4
|
"description": "A an atlassian editor extension to add a native dropbox picker",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/adf-utils": "^
|
|
28
|
-
"@atlaskit/button": "^16.
|
|
29
|
-
"@atlaskit/editor-common": "^
|
|
30
|
-
"@atlaskit/icon": "^21.
|
|
27
|
+
"@atlaskit/adf-utils": "^16.0.0",
|
|
28
|
+
"@atlaskit/button": "^16.2.0",
|
|
29
|
+
"@atlaskit/editor-common": "^65.0.0",
|
|
30
|
+
"@atlaskit/icon": "^21.10.0",
|
|
31
31
|
"@atlaskit/modal-dialog": "^12.2.0",
|
|
32
|
-
"@atlaskit/theme": "^12.
|
|
32
|
+
"@atlaskit/theme": "^12.1.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
34
|
-
"@emotion/
|
|
34
|
+
"@emotion/react": "^11.7.1",
|
|
35
35
|
"chromatism": "^2.6.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|