@atlaskit/editor-extension-dropbox 0.4.32 → 0.4.34
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 +14 -0
- package/afm-cc/tsconfig.json +6 -0
- package/afm-jira/tsconfig.json +6 -0
- package/dist/cjs/modal.js +10 -6
- package/dist/es2019/modal.js +10 -6
- package/dist/esm/modal.js +10 -6
- package/package.json +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-extension-dropbox
|
|
2
2
|
|
|
3
|
+
## 0.4.34
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.4.33
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#150384](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150384)
|
|
14
|
+
[`6d48c5b6ce65e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6d48c5b6ce65e) -
|
|
15
|
+
[ED-25083] Typograpghy migration
|
|
16
|
+
|
|
3
17
|
## 0.4.32
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -27,12 +27,18 @@
|
|
|
27
27
|
{
|
|
28
28
|
"path": "../../editor-common/afm-cc/tsconfig.json"
|
|
29
29
|
},
|
|
30
|
+
{
|
|
31
|
+
"path": "../../../design-system/heading/afm-cc/tsconfig.json"
|
|
32
|
+
},
|
|
30
33
|
{
|
|
31
34
|
"path": "../../../design-system/icon/afm-cc/tsconfig.json"
|
|
32
35
|
},
|
|
33
36
|
{
|
|
34
37
|
"path": "../../../design-system/modal-dialog/afm-cc/tsconfig.json"
|
|
35
38
|
},
|
|
39
|
+
{
|
|
40
|
+
"path": "../../../design-system/primitives/afm-cc/tsconfig.json"
|
|
41
|
+
},
|
|
36
42
|
{
|
|
37
43
|
"path": "../../../design-system/tokens/afm-cc/tsconfig.json"
|
|
38
44
|
}
|
package/afm-jira/tsconfig.json
CHANGED
|
@@ -26,12 +26,18 @@
|
|
|
26
26
|
{
|
|
27
27
|
"path": "../../editor-common/afm-jira/tsconfig.json"
|
|
28
28
|
},
|
|
29
|
+
{
|
|
30
|
+
"path": "../../../design-system/heading/afm-jira/tsconfig.json"
|
|
31
|
+
},
|
|
29
32
|
{
|
|
30
33
|
"path": "../../../design-system/icon/afm-jira/tsconfig.json"
|
|
31
34
|
},
|
|
32
35
|
{
|
|
33
36
|
"path": "../../../design-system/modal-dialog/afm-jira/tsconfig.json"
|
|
34
37
|
},
|
|
38
|
+
{
|
|
39
|
+
"path": "../../../design-system/primitives/afm-jira/tsconfig.json"
|
|
40
|
+
},
|
|
35
41
|
{
|
|
36
42
|
"path": "../../../design-system/tokens/afm-jira/tsconfig.json"
|
|
37
43
|
}
|
package/dist/cjs/modal.js
CHANGED
|
@@ -12,7 +12,9 @@ var _react2 = require("@emotion/react");
|
|
|
12
12
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
13
13
|
var _close = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/close"));
|
|
14
14
|
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
15
|
+
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
15
16
|
var _constants = require("./constants");
|
|
17
|
+
var _primitives = require("@atlaskit/primitives");
|
|
16
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
20
|
/**
|
|
@@ -51,9 +53,9 @@ var spacingDivStyle = {
|
|
|
51
53
|
width: '28px'
|
|
52
54
|
};
|
|
53
55
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
54
|
-
var headingStyle = {
|
|
55
|
-
marginTop:
|
|
56
|
-
};
|
|
56
|
+
var headingStyle = (0, _primitives.xcss)({
|
|
57
|
+
marginTop: 'space.100'
|
|
58
|
+
});
|
|
57
59
|
var Header = function Header() {
|
|
58
60
|
var _useModal = (0, _modalDialog.useModal)(),
|
|
59
61
|
onClose = _useModal.onClose,
|
|
@@ -62,10 +64,12 @@ var Header = function Header() {
|
|
|
62
64
|
css: bottomShadow
|
|
63
65
|
}, (0, _react2.jsx)("div", {
|
|
64
66
|
css: spacingDivStyle
|
|
65
|
-
}), (0, _react2.jsx)(
|
|
67
|
+
}), (0, _react2.jsx)(_primitives.Box, {
|
|
68
|
+
xcss: headingStyle
|
|
69
|
+
}, (0, _react2.jsx)(_heading.default, {
|
|
66
70
|
id: titleId,
|
|
67
|
-
|
|
68
|
-
}, "Dropbox"), (0, _react2.jsx)("div", null, (0, _react2.jsx)(_button.default, {
|
|
71
|
+
size: "xsmall"
|
|
72
|
+
}, "Dropbox")), (0, _react2.jsx)("div", null, (0, _react2.jsx)(_button.default, {
|
|
69
73
|
appearance: "subtle",
|
|
70
74
|
iconBefore: (0, _react2.jsx)(_close.default, {
|
|
71
75
|
label: "close dropbox modal"
|
package/dist/es2019/modal.js
CHANGED
|
@@ -8,7 +8,9 @@ import { jsx, css } from '@emotion/react';
|
|
|
8
8
|
import ModalDialog, { ModalTransition, useModal, ModalBody as AKModalBody } from '@atlaskit/modal-dialog';
|
|
9
9
|
import EditorCloseIcon from '@atlaskit/icon/glyph/editor/close';
|
|
10
10
|
import Button from '@atlaskit/button';
|
|
11
|
+
import Heading from '@atlaskit/heading';
|
|
11
12
|
import { DROPBOX_IFRAME_NAME } from './constants';
|
|
13
|
+
import { xcss, Box } from '@atlaskit/primitives';
|
|
12
14
|
const ModalBody = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
13
15
|
return (
|
|
14
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -38,9 +40,9 @@ const spacingDivStyle = {
|
|
|
38
40
|
width: '28px'
|
|
39
41
|
};
|
|
40
42
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
41
|
-
const headingStyle = {
|
|
42
|
-
marginTop:
|
|
43
|
-
};
|
|
43
|
+
const headingStyle = xcss({
|
|
44
|
+
marginTop: 'space.100'
|
|
45
|
+
});
|
|
44
46
|
const Header = () => {
|
|
45
47
|
const {
|
|
46
48
|
onClose,
|
|
@@ -50,10 +52,12 @@ const Header = () => {
|
|
|
50
52
|
css: bottomShadow
|
|
51
53
|
}, jsx("div", {
|
|
52
54
|
css: spacingDivStyle
|
|
53
|
-
}), jsx(
|
|
55
|
+
}), jsx(Box, {
|
|
56
|
+
xcss: headingStyle
|
|
57
|
+
}, jsx(Heading, {
|
|
54
58
|
id: titleId,
|
|
55
|
-
|
|
56
|
-
}, "Dropbox"), jsx("div", null, jsx(Button, {
|
|
59
|
+
size: "xsmall"
|
|
60
|
+
}, "Dropbox")), jsx("div", null, jsx(Button, {
|
|
57
61
|
appearance: "subtle",
|
|
58
62
|
iconBefore: jsx(EditorCloseIcon, {
|
|
59
63
|
label: "close dropbox modal"
|
package/dist/esm/modal.js
CHANGED
|
@@ -9,7 +9,9 @@ import { jsx, css } from '@emotion/react';
|
|
|
9
9
|
import ModalDialog, { ModalTransition, useModal, ModalBody as AKModalBody } from '@atlaskit/modal-dialog';
|
|
10
10
|
import EditorCloseIcon from '@atlaskit/icon/glyph/editor/close';
|
|
11
11
|
import Button from '@atlaskit/button';
|
|
12
|
+
import Heading from '@atlaskit/heading';
|
|
12
13
|
import { DROPBOX_IFRAME_NAME } from './constants';
|
|
14
|
+
import { xcss, Box } from '@atlaskit/primitives';
|
|
13
15
|
var ModalBody = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
14
16
|
return (
|
|
15
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -39,9 +41,9 @@ var spacingDivStyle = {
|
|
|
39
41
|
width: '28px'
|
|
40
42
|
};
|
|
41
43
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
42
|
-
var headingStyle = {
|
|
43
|
-
marginTop:
|
|
44
|
-
};
|
|
44
|
+
var headingStyle = xcss({
|
|
45
|
+
marginTop: 'space.100'
|
|
46
|
+
});
|
|
45
47
|
var Header = function Header() {
|
|
46
48
|
var _useModal = useModal(),
|
|
47
49
|
onClose = _useModal.onClose,
|
|
@@ -50,10 +52,12 @@ var Header = function Header() {
|
|
|
50
52
|
css: bottomShadow
|
|
51
53
|
}, jsx("div", {
|
|
52
54
|
css: spacingDivStyle
|
|
53
|
-
}), jsx(
|
|
55
|
+
}), jsx(Box, {
|
|
56
|
+
xcss: headingStyle
|
|
57
|
+
}, jsx(Heading, {
|
|
54
58
|
id: titleId,
|
|
55
|
-
|
|
56
|
-
}, "Dropbox"), jsx("div", null, jsx(Button, {
|
|
59
|
+
size: "xsmall"
|
|
60
|
+
}, "Dropbox")), jsx("div", null, jsx(Button, {
|
|
57
61
|
appearance: "subtle",
|
|
58
62
|
iconBefore: jsx(EditorCloseIcon, {
|
|
59
63
|
label: "close dropbox modal"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-extension-dropbox",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.34",
|
|
4
4
|
"description": "A an atlassian editor extension to add a native dropbox picker",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,11 +39,13 @@
|
|
|
39
39
|
"runReact18": false
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@atlaskit/adf-utils": "^19.
|
|
42
|
+
"@atlaskit/adf-utils": "^19.9.0",
|
|
43
43
|
"@atlaskit/button": "^20.2.0",
|
|
44
|
-
"@atlaskit/editor-common": "^
|
|
45
|
-
"@atlaskit/
|
|
44
|
+
"@atlaskit/editor-common": "^94.0.0",
|
|
45
|
+
"@atlaskit/heading": "2.4.6",
|
|
46
|
+
"@atlaskit/icon": "^22.23.0",
|
|
46
47
|
"@atlaskit/modal-dialog": "^12.17.0",
|
|
48
|
+
"@atlaskit/primitives": "^12.2.0",
|
|
47
49
|
"@atlaskit/tokens": "^2.0.0",
|
|
48
50
|
"@babel/runtime": "^7.0.0",
|
|
49
51
|
"@emotion/react": "^11.7.1"
|