@atlaskit/editor-common 76.17.4 → 76.18.0

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/editor-common
2
2
 
3
+ ## 76.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#42391](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42391) [`f46e9fd8b00`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f46e9fd8b00) - [ux] ED-20479: Extracts placeholder-test editor plugin from editor-core
8
+
9
+ ## 76.17.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#42505](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42505) [`48e5f1efdde`](https://bitbucket.org/atlassian/atlassian-frontend/commits/48e5f1efdde) - Extract layout plugin into new package @atlaskit/editor-plugin-layout.
14
+
3
15
  ## 76.17.4
4
16
 
5
17
  ### Patch Changes
@@ -52,6 +52,12 @@ Object.defineProperty(exports, "fullPageMessages", {
52
52
  return _fullPage.messages;
53
53
  }
54
54
  });
55
+ Object.defineProperty(exports, "layoutMessages", {
56
+ enumerable: true,
57
+ get: function get() {
58
+ return _layout.toolbarMessages;
59
+ }
60
+ });
55
61
  Object.defineProperty(exports, "linkMessages", {
56
62
  enumerable: true,
57
63
  get: function get() {
@@ -131,6 +137,7 @@ var _list = require("./list");
131
137
  var _undoRedo = require("./undo-redo");
132
138
  var _status = require("./status");
133
139
  var _date = require("./date");
140
+ var _layout = require("./layout");
134
141
  var _default = exports.default = (0, _reactIntlNext.defineMessages)({
135
142
  layoutFixedWidth: {
136
143
  id: 'fabric.editor.layoutFixedWidth',
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.toolbarMessages = void 0;
7
+ var _reactIntlNext = require("react-intl-next");
8
+ var toolbarMessages = exports.toolbarMessages = (0, _reactIntlNext.defineMessages)({
9
+ singleColumn: {
10
+ id: 'fabric.editor.single',
11
+ defaultMessage: 'Single column',
12
+ description: 'Layout with one single column'
13
+ },
14
+ twoColumns: {
15
+ id: 'fabric.editor.twoColumns',
16
+ defaultMessage: 'Two columns',
17
+ description: 'Layout with two columns of equal width'
18
+ },
19
+ threeColumns: {
20
+ id: 'fabric.editor.threeColumns',
21
+ defaultMessage: 'Three columns',
22
+ description: 'Layout with three columns of equal width'
23
+ },
24
+ rightSidebar: {
25
+ id: 'fabric.editor.rightSidebar',
26
+ defaultMessage: 'Right sidebar',
27
+ description: 'Layout with two columns, left column is 2/3 and right is 1/3 of page'
28
+ },
29
+ leftSidebar: {
30
+ id: 'fabric.editor.leftSidebar',
31
+ defaultMessage: 'Left sidebar',
32
+ description: 'Layout with two columns, left column is 1/3 and right is 2/3 of page'
33
+ },
34
+ threeColumnsWithSidebars: {
35
+ id: 'fabric.editor.threeColumnsWithSidebars',
36
+ defaultMessage: 'Three columns with sidebars',
37
+ description: 'Layout with 3 columns laid out as 25% - 50% - 25%'
38
+ }
39
+ });
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
16
16
  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; }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "76.17.4";
19
+ var packageVersion = "76.18.0";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // TODO: Sanitise the URL instead of just removing it
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
24
24
  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); }; }
25
25
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "76.17.4";
27
+ var packageVersion = "76.18.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -17,6 +17,7 @@ export { messages as listMessages } from './list';
17
17
  export { messages as undoRedoMessages } from './undo-redo';
18
18
  export { messages as statusMessages } from './status';
19
19
  export { messages as dateMessages } from './date';
20
+ export { toolbarMessages as layoutMessages } from './layout';
20
21
  export default defineMessages({
21
22
  layoutFixedWidth: {
22
23
  id: 'fabric.editor.layoutFixedWidth',
@@ -0,0 +1,33 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const toolbarMessages = defineMessages({
3
+ singleColumn: {
4
+ id: 'fabric.editor.single',
5
+ defaultMessage: 'Single column',
6
+ description: 'Layout with one single column'
7
+ },
8
+ twoColumns: {
9
+ id: 'fabric.editor.twoColumns',
10
+ defaultMessage: 'Two columns',
11
+ description: 'Layout with two columns of equal width'
12
+ },
13
+ threeColumns: {
14
+ id: 'fabric.editor.threeColumns',
15
+ defaultMessage: 'Three columns',
16
+ description: 'Layout with three columns of equal width'
17
+ },
18
+ rightSidebar: {
19
+ id: 'fabric.editor.rightSidebar',
20
+ defaultMessage: 'Right sidebar',
21
+ description: 'Layout with two columns, left column is 2/3 and right is 1/3 of page'
22
+ },
23
+ leftSidebar: {
24
+ id: 'fabric.editor.leftSidebar',
25
+ defaultMessage: 'Left sidebar',
26
+ description: 'Layout with two columns, left column is 1/3 and right is 2/3 of page'
27
+ },
28
+ threeColumnsWithSidebars: {
29
+ id: 'fabric.editor.threeColumnsWithSidebars',
30
+ defaultMessage: 'Three columns with sidebars',
31
+ description: 'Layout with 3 columns laid out as 25% - 50% - 25%'
32
+ }
33
+ });
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "76.17.4";
3
+ const packageVersion = "76.18.0";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
9
9
  import { borderRadius } from '@atlaskit/theme/constants';
10
10
  import Layer from '../Layer';
11
11
  const packageName = "@atlaskit/editor-common";
12
- const packageVersion = "76.17.4";
12
+ const packageVersion = "76.18.0";
13
13
  const halfFocusRing = 1;
14
14
  const dropOffset = '0, 8';
15
15
  class DropList extends Component {
@@ -17,6 +17,7 @@ export { messages as listMessages } from './list';
17
17
  export { messages as undoRedoMessages } from './undo-redo';
18
18
  export { messages as statusMessages } from './status';
19
19
  export { messages as dateMessages } from './date';
20
+ export { toolbarMessages as layoutMessages } from './layout';
20
21
  export default defineMessages({
21
22
  layoutFixedWidth: {
22
23
  id: 'fabric.editor.layoutFixedWidth',
@@ -0,0 +1,33 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export var toolbarMessages = defineMessages({
3
+ singleColumn: {
4
+ id: 'fabric.editor.single',
5
+ defaultMessage: 'Single column',
6
+ description: 'Layout with one single column'
7
+ },
8
+ twoColumns: {
9
+ id: 'fabric.editor.twoColumns',
10
+ defaultMessage: 'Two columns',
11
+ description: 'Layout with two columns of equal width'
12
+ },
13
+ threeColumns: {
14
+ id: 'fabric.editor.threeColumns',
15
+ defaultMessage: 'Three columns',
16
+ description: 'Layout with three columns of equal width'
17
+ },
18
+ rightSidebar: {
19
+ id: 'fabric.editor.rightSidebar',
20
+ defaultMessage: 'Right sidebar',
21
+ description: 'Layout with two columns, left column is 2/3 and right is 1/3 of page'
22
+ },
23
+ leftSidebar: {
24
+ id: 'fabric.editor.leftSidebar',
25
+ defaultMessage: 'Left sidebar',
26
+ description: 'Layout with two columns, left column is 1/3 and right is 2/3 of page'
27
+ },
28
+ threeColumnsWithSidebars: {
29
+ id: 'fabric.editor.threeColumnsWithSidebars',
30
+ defaultMessage: 'Three columns with sidebars',
31
+ description: 'Layout with 3 columns laid out as 25% - 50% - 25%'
32
+ }
33
+ });
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "76.17.4";
9
+ var packageVersion = "76.18.0";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -19,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
19
19
  import { borderRadius } from '@atlaskit/theme/constants';
20
20
  import Layer from '../Layer';
21
21
  var packageName = "@atlaskit/editor-common";
22
- var packageVersion = "76.17.4";
22
+ var packageVersion = "76.18.0";
23
23
  var halfFocusRing = 1;
24
24
  var dropOffset = '0, 8';
25
25
  var DropList = /*#__PURE__*/function (_Component) {
@@ -16,6 +16,7 @@ export { messages as listMessages } from './list';
16
16
  export { messages as undoRedoMessages } from './undo-redo';
17
17
  export { messages as statusMessages } from './status';
18
18
  export { messages as dateMessages } from './date';
19
+ export { toolbarMessages as layoutMessages } from './layout';
19
20
  declare const _default: {
20
21
  layoutFixedWidth: {
21
22
  id: string;
@@ -0,0 +1,32 @@
1
+ export declare const toolbarMessages: {
2
+ singleColumn: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ twoColumns: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ threeColumns: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ rightSidebar: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ leftSidebar: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
27
+ threeColumnsWithSidebars: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ };
@@ -16,6 +16,7 @@ export { messages as listMessages } from './list';
16
16
  export { messages as undoRedoMessages } from './undo-redo';
17
17
  export { messages as statusMessages } from './status';
18
18
  export { messages as dateMessages } from './date';
19
+ export { toolbarMessages as layoutMessages } from './layout';
19
20
  declare const _default: {
20
21
  layoutFixedWidth: {
21
22
  id: string;
@@ -0,0 +1,32 @@
1
+ export declare const toolbarMessages: {
2
+ singleColumn: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ twoColumns: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ threeColumns: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ rightSidebar: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ leftSidebar: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
27
+ threeColumnsWithSidebars: {
28
+ id: string;
29
+ defaultMessage: string;
30
+ description: string;
31
+ };
32
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "76.17.4",
3
+ "version": "76.18.0",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"