@atlaskit/embedded-document 0.9.30 → 0.9.32

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,17 @@
1
1
  # @atlaskit/embedded-document
2
2
 
3
+ ## 0.9.32
4
+
5
+ ### Patch Changes
6
+
7
+ - [#92007](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92007) [`85525725cb0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/85525725cb0d) - Migrated to the new button component
8
+
9
+ ## 0.9.31
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 0.9.30
4
16
 
5
17
  ### Patch Changes
@@ -7,14 +7,18 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
9
9
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
10
  var _react = _interopRequireDefault(require("react"));
12
11
  var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
13
12
  var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
14
13
  var _styledComponents = _interopRequireDefault(require("styled-components"));
15
14
  var _withDocumentActions = _interopRequireDefault(require("../consumers/with-document-actions"));
16
- var _templateObject;
17
- var Toolbar = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding: 0 ", ";\n height: ", ";\n"])), "var(--ds-space-250, 20px)", "var(--ds-space-1000, 80px)");
15
+ var Toolbar = _styledComponents.default.div({
16
+ display: 'flex',
17
+ alignItems: 'center',
18
+ justifyContent: 'flex-end',
19
+ padding: "0 ".concat("var(--ds-space-250, 20px)"),
20
+ height: "var(--ds-space-1000, 80px)"
21
+ });
18
22
  var _default = exports.default = function _default(props) {
19
23
  var mode = props.mode,
20
24
  editorActions = props.editorActions;
@@ -15,19 +15,31 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
15
15
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
16
16
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
17
17
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
18
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
19
18
  var _react = _interopRequireWildcard(require("react"));
20
19
  var _styledComponents = _interopRequireDefault(require("styled-components"));
21
20
  var _context7 = require("./context");
22
21
  var _provider = require("../provider");
23
22
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
24
- var _templateObject;
25
23
  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); }
26
24
  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 && Object.prototype.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; }
27
25
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
28
26
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
29
27
  var akEditorFullPageMaxWidth = exports.akEditorFullPageMaxWidth = 680;
30
- var Content = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n line-height: 24px;\n height: 100%;\n width: 100%;\n max-width: ", "px;\n padding-top: ", ";\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n padding-bottom: ", ";\n\n & > * {\n padding: 0 ", ";\n }\n"])), akEditorFullPageMaxWidth + _editorSharedStyles.akEditorGutterPadding * 2, "var(--ds-space-600, 48px)", "var(--ds-space-600, 48px)", "var(--ds-space-400, 32px)");
28
+ var Content = _styledComponents.default.div({
29
+ lineHeight: '24px',
30
+ height: '100%',
31
+ width: '100%',
32
+ maxWidth: "".concat(akEditorFullPageMaxWidth + _editorSharedStyles.akEditorGutterPadding * 2, "px"),
33
+ paddingTop: "var(--ds-space-600, 48px)",
34
+ margin: '0 auto',
35
+ display: 'flex',
36
+ flexDirection: 'column',
37
+ flexGrow: 1,
38
+ paddingBottom: "var(--ds-space-600, 48px)",
39
+ '& > *': {
40
+ padding: "0 ".concat("var(--ds-space-400, 32px)")
41
+ }
42
+ });
31
43
  var EmbeddedDocument = exports.default = /*#__PURE__*/function (_Component) {
32
44
  (0, _inherits2.default)(EmbeddedDocument, _Component);
33
45
  var _super = _createSuper(EmbeddedDocument);
@@ -3,13 +3,13 @@ import ButtonGroup from '@atlaskit/button/button-group';
3
3
  import Button from '@atlaskit/button/custom-theme-button';
4
4
  import styled from 'styled-components';
5
5
  import WithDocumentActions from '../consumers/with-document-actions';
6
- const Toolbar = styled.div`
7
- display: flex;
8
- align-items: center;
9
- justify-content: flex-end;
10
- padding: 0 ${"var(--ds-space-250, 20px)"};
11
- height: ${"var(--ds-space-1000, 80px)"};
12
- `;
6
+ const Toolbar = styled.div({
7
+ display: 'flex',
8
+ alignItems: 'center',
9
+ justifyContent: 'flex-end',
10
+ padding: `0 ${"var(--ds-space-250, 20px)"}`,
11
+ height: "var(--ds-space-1000, 80px)"
12
+ });
13
13
  export default (props => {
14
14
  const {
15
15
  mode,
@@ -6,22 +6,21 @@ import { Context } from './context';
6
6
  import { getProvider } from '../provider';
7
7
  import { akEditorGutterPadding } from '@atlaskit/editor-shared-styles';
8
8
  export const akEditorFullPageMaxWidth = 680;
9
- const Content = styled.div`
10
- line-height: 24px;
11
- height: 100%;
12
- width: 100%;
13
- max-width: ${akEditorFullPageMaxWidth + akEditorGutterPadding * 2}px;
14
- padding-top: ${"var(--ds-space-600, 48px)"};
15
- margin: 0 auto;
16
- display: flex;
17
- flex-direction: column;
18
- flex-grow: 1;
19
- padding-bottom: ${"var(--ds-space-600, 48px)"};
20
-
21
- & > * {
22
- padding: 0 ${"var(--ds-space-400, 32px)"};
9
+ const Content = styled.div({
10
+ lineHeight: '24px',
11
+ height: '100%',
12
+ width: '100%',
13
+ maxWidth: `${akEditorFullPageMaxWidth + akEditorGutterPadding * 2}px`,
14
+ paddingTop: "var(--ds-space-600, 48px)",
15
+ margin: '0 auto',
16
+ display: 'flex',
17
+ flexDirection: 'column',
18
+ flexGrow: 1,
19
+ paddingBottom: "var(--ds-space-600, 48px)",
20
+ '& > *': {
21
+ padding: `0 ${"var(--ds-space-400, 32px)"}`
23
22
  }
24
- `;
23
+ });
25
24
  export default class EmbeddedDocument extends Component {
26
25
  constructor(props) {
27
26
  super(props);
@@ -1,13 +1,17 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
- var _templateObject;
4
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
5
3
  import React from 'react';
6
4
  import ButtonGroup from '@atlaskit/button/button-group';
7
5
  import Button from '@atlaskit/button/custom-theme-button';
8
6
  import styled from 'styled-components';
9
7
  import WithDocumentActions from '../consumers/with-document-actions';
10
- var Toolbar = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding: 0 ", ";\n height: ", ";\n"])), "var(--ds-space-250, 20px)", "var(--ds-space-1000, 80px)");
8
+ var Toolbar = styled.div({
9
+ display: 'flex',
10
+ alignItems: 'center',
11
+ justifyContent: 'flex-end',
12
+ padding: "0 ".concat("var(--ds-space-250, 20px)"),
13
+ height: "var(--ds-space-1000, 80px)"
14
+ });
11
15
  export default (function (props) {
12
16
  var mode = props.mode,
13
17
  editorActions = props.editorActions;
@@ -6,8 +6,6 @@ import _inherits from "@babel/runtime/helpers/inherits";
6
6
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
10
- var _templateObject;
11
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
12
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
13
11
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
@@ -18,7 +16,21 @@ import { Context } from './context';
18
16
  import { getProvider } from '../provider';
19
17
  import { akEditorGutterPadding } from '@atlaskit/editor-shared-styles';
20
18
  export var akEditorFullPageMaxWidth = 680;
21
- var Content = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n line-height: 24px;\n height: 100%;\n width: 100%;\n max-width: ", "px;\n padding-top: ", ";\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n padding-bottom: ", ";\n\n & > * {\n padding: 0 ", ";\n }\n"])), akEditorFullPageMaxWidth + akEditorGutterPadding * 2, "var(--ds-space-600, 48px)", "var(--ds-space-600, 48px)", "var(--ds-space-400, 32px)");
19
+ var Content = styled.div({
20
+ lineHeight: '24px',
21
+ height: '100%',
22
+ width: '100%',
23
+ maxWidth: "".concat(akEditorFullPageMaxWidth + akEditorGutterPadding * 2, "px"),
24
+ paddingTop: "var(--ds-space-600, 48px)",
25
+ margin: '0 auto',
26
+ display: 'flex',
27
+ flexDirection: 'column',
28
+ flexGrow: 1,
29
+ paddingBottom: "var(--ds-space-600, 48px)",
30
+ '& > *': {
31
+ padding: "0 ".concat("var(--ds-space-400, 32px)")
32
+ }
33
+ });
22
34
  var EmbeddedDocument = /*#__PURE__*/function (_Component) {
23
35
  _inherits(EmbeddedDocument, _Component);
24
36
  var _super = _createSuper(EmbeddedDocument);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/embedded-document",
3
- "version": "0.9.30",
3
+ "version": "0.9.32",
4
4
  "description": "DEPRECATED Embedded Document component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,12 +36,12 @@
36
36
  "runReact18": false
37
37
  },
38
38
  "dependencies": {
39
- "@atlaskit/button": "^17.8.0",
40
- "@atlaskit/editor-common": "^78.23.0",
41
- "@atlaskit/editor-core": "^193.8.0",
39
+ "@atlaskit/button": "^17.14.0",
40
+ "@atlaskit/editor-common": "^78.31.0",
41
+ "@atlaskit/editor-core": "^193.11.0",
42
42
  "@atlaskit/editor-shared-styles": "^2.9.0",
43
- "@atlaskit/renderer": "^109.13.0",
44
- "@atlaskit/tokens": "1.43.0",
43
+ "@atlaskit/renderer": "^109.20.0",
44
+ "@atlaskit/tokens": "1.43.1",
45
45
  "@atlaskit/util-service-support": "^6.2.0",
46
46
  "@babel/runtime": "^7.0.0"
47
47
  },