@atlaskit/editor-extension-dropbox 0.2.25 → 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 CHANGED
@@ -1,5 +1,12 @@
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
+
3
10
  ## 0.2.25
4
11
 
5
12
  ### 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 _core = require("@emotion/core");
20
+ var _react2 = require("@emotion/react");
21
21
 
22
22
  var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
23
23
 
@@ -42,7 +42,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
42
42
  var gridSize = (0, _constants.gridSize)();
43
43
 
44
44
  var ModalBody = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
45
- return (0, _core.jsx)("div", {
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, _core.jsx)("div", {
100
+ return (0, _react2.jsx)("div", {
101
101
  css: bottomShadow
102
- }, (0, _core.jsx)("div", {
102
+ }, (0, _react2.jsx)("div", {
103
103
  css: spacingDivStyle
104
- }), (0, _core.jsx)("h5", {
104
+ }), (0, _react2.jsx)("h5", {
105
105
  id: titleId,
106
106
  css: headingStyle
107
- }, "Dropbox"), (0, _core.jsx)("div", null, (0, _core.jsx)(_customThemeButton.default, {
107
+ }, "Dropbox"), (0, _react2.jsx)("div", null, (0, _react2.jsx)(_customThemeButton.default, {
108
108
  appearance: "subtle",
109
- iconBefore: (0, _core.jsx)(_close.default, {
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, _core.jsx)(_modalDialog.ModalTransition, null, isOpen && (0, _core.jsx)(_modalDialog.default, {
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, _core.jsx)(Header, null), (0, _core.jsx)(_modalDialog.ModalBody, null, (0, _core.jsx)(ModalBody, null, TEST_ONLY_src ? (0, _core.jsx)("iframe", {
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, _core.jsx)("iframe", {
143
+ }) : (0, _react2.jsx)("iframe", {
144
144
  css: iframeStyle,
145
145
  name: _constants2.DROPBOX_IFRAME_NAME,
146
146
  frameBorder: 0
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "sideEffects": false
5
5
  }
@@ -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/core';
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
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "sideEffects": false
5
5
  }
package/dist/esm/modal.js CHANGED
@@ -8,7 +8,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
8
8
  /** @jsx jsx */
9
9
  import React, { useState } from 'react';
10
10
  import chromatism from 'chromatism';
11
- import { jsx } from '@emotion/core';
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
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "sideEffects": false
5
5
  }
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
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.25",
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/"
@@ -25,13 +25,13 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@atlaskit/adf-utils": "^16.0.0",
28
- "@atlaskit/button": "^16.0.0",
29
- "@atlaskit/editor-common": "^64.0.0",
28
+ "@atlaskit/button": "^16.2.0",
29
+ "@atlaskit/editor-common": "^65.0.0",
30
30
  "@atlaskit/icon": "^21.10.0",
31
31
  "@atlaskit/modal-dialog": "^12.2.0",
32
32
  "@atlaskit/theme": "^12.1.0",
33
33
  "@babel/runtime": "^7.0.0",
34
- "@emotion/core": "^10.0.9",
34
+ "@emotion/react": "^11.7.1",
35
35
  "chromatism": "^2.6.0"
36
36
  },
37
37
  "peerDependencies": {