@atlaskit/editor-common 76.9.2 → 76.10.1

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,18 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 76.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#41438](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41438) [`b8d36b142ca`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b8d36b142ca) - Make insertDate and deleteDate an Editor Command
8
+ - [#41343](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41343) [`41f1a7aaf16`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41f1a7aaf16) - Fixed typo in comment
9
+
10
+ ## 76.10.0
11
+
12
+ ### Minor Changes
13
+
14
+ - [#41452](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41452) [`53c21a4394a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/53c21a4394a) - Decouple status plugin from editor-core.
15
+
3
16
  ## 76.9.2
4
17
 
5
18
  ### Patch Changes
@@ -70,6 +70,12 @@ Object.defineProperty(exports, "mediaAndEmbedToolbarMessages", {
70
70
  return _mediaAndEmbedToolbar.toolbarMessages;
71
71
  }
72
72
  });
73
+ Object.defineProperty(exports, "statusMessages", {
74
+ enumerable: true,
75
+ get: function get() {
76
+ return _status.messages;
77
+ }
78
+ });
73
79
  Object.defineProperty(exports, "toolbarInsertBlockMessages", {
74
80
  enumerable: true,
75
81
  get: function get() {
@@ -110,6 +116,7 @@ var _fullPage = require("./full-page");
110
116
  var _toolbar = require("./toolbar");
111
117
  var _list = require("./list");
112
118
  var _undoRedo = require("./undo-redo");
119
+ var _status = require("./status");
113
120
  var _default = exports.default = (0, _reactIntlNext.defineMessages)({
114
121
  layoutFixedWidth: {
115
122
  id: 'fabric.editor.layoutFixedWidth',
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.messages = void 0;
7
+ var _reactIntlNext = require("react-intl-next");
8
+ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
9
+ placeholder: {
10
+ id: 'fabric.editor.statusPlaceholder',
11
+ defaultMessage: 'Set a status',
12
+ description: 'Placeholder description for an empty (new) status item in the editor'
13
+ },
14
+ editText: {
15
+ id: 'fabric.editor.editStatusText',
16
+ defaultMessage: 'Edit Status',
17
+ description: 'Title for the input that changes the status text'
18
+ },
19
+ editColor: {
20
+ id: 'fabric.editor.editStatusColor',
21
+ defaultMessage: 'Edit Status Color',
22
+ description: 'Title for the color picker that changes the status color'
23
+ }
24
+ });
@@ -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.9.2";
19
+ var packageVersion = "76.10.1";
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.9.2";
27
+ var packageVersion = "76.10.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -127,7 +127,7 @@ var MediaSingleDimensionHelper = exports.MediaSingleDimensionHelper = function M
127
127
  /* This causes issues for new experience where we don't strip layout attributes
128
128
  when copying top-level node and pasting into a table/layout,
129
129
  because full-width layout will remain, causing node to be edge-to-edge */
130
- !isExtendedResizeExperienceOn && (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n min-width: 100%;\n "]))), isExtendedResizeExperienceOn ? "".concat(containerWidth, "px") : calcMaxWidth(layout, containerWidth), isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && _utils.nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), float(layout), calcMargin(layout), isNestedNode ? /* Make nested node appear responsives when resizing table cell */"max-width: 100%;" : _utils.nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", isImageAligned(layout));
130
+ !isExtendedResizeExperienceOn && (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n min-width: 100%;\n "]))), isExtendedResizeExperienceOn ? "".concat(containerWidth, "px") : calcMaxWidth(layout, containerWidth), isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && _utils.nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), float(layout), calcMargin(layout), isNestedNode ? /* Make nested node appear responsive when resizing table cell */"max-width: 100%;" : _utils.nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", isImageAligned(layout));
131
131
  };
132
132
  var RenderFallbackContainer = function RenderFallbackContainer(_ref2) {
133
133
  var hasFallbackContainer = _ref2.hasFallbackContainer,
@@ -14,6 +14,7 @@ export { messages as fullPageMessages } from './full-page';
14
14
  export { toolbarMessages } from './toolbar';
15
15
  export { messages as listMessages } from './list';
16
16
  export { messages as undoRedoMessages } from './undo-redo';
17
+ export { messages as statusMessages } from './status';
17
18
  export default defineMessages({
18
19
  layoutFixedWidth: {
19
20
  id: 'fabric.editor.layoutFixedWidth',
@@ -0,0 +1,18 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const messages = defineMessages({
3
+ placeholder: {
4
+ id: 'fabric.editor.statusPlaceholder',
5
+ defaultMessage: 'Set a status',
6
+ description: 'Placeholder description for an empty (new) status item in the editor'
7
+ },
8
+ editText: {
9
+ id: 'fabric.editor.editStatusText',
10
+ defaultMessage: 'Edit Status',
11
+ description: 'Title for the input that changes the status text'
12
+ },
13
+ editColor: {
14
+ id: 'fabric.editor.editStatusColor',
15
+ defaultMessage: 'Edit Status Color',
16
+ description: 'Title for the color picker that changes the status color'
17
+ }
18
+ });
@@ -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.9.2";
3
+ const packageVersion = "76.10.1";
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.9.2";
12
+ const packageVersion = "76.10.1";
13
13
  const halfFocusRing = 1;
14
14
  const dropOffset = '0, 8';
15
15
  class DropList extends Component {
@@ -141,7 +141,7 @@ export const MediaSingleDimensionHelper = ({
141
141
  margin: ${calcMargin(layout)};
142
142
 
143
143
  &[class*='not-resizing'] {
144
- ${isNestedNode ? /* Make nested node appear responsives when resizing table cell */
144
+ ${isNestedNode ? /* Make nested node appear responsive when resizing table cell */
145
145
  `max-width: 100%;` : nonWrappedLayouts.includes(layout) && `margin-left: 50%;
146
146
  transform: translateX(-50%);`}
147
147
  }
@@ -14,6 +14,7 @@ export { messages as fullPageMessages } from './full-page';
14
14
  export { toolbarMessages } from './toolbar';
15
15
  export { messages as listMessages } from './list';
16
16
  export { messages as undoRedoMessages } from './undo-redo';
17
+ export { messages as statusMessages } from './status';
17
18
  export default defineMessages({
18
19
  layoutFixedWidth: {
19
20
  id: 'fabric.editor.layoutFixedWidth',
@@ -0,0 +1,18 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export var messages = defineMessages({
3
+ placeholder: {
4
+ id: 'fabric.editor.statusPlaceholder',
5
+ defaultMessage: 'Set a status',
6
+ description: 'Placeholder description for an empty (new) status item in the editor'
7
+ },
8
+ editText: {
9
+ id: 'fabric.editor.editStatusText',
10
+ defaultMessage: 'Edit Status',
11
+ description: 'Title for the input that changes the status text'
12
+ },
13
+ editColor: {
14
+ id: 'fabric.editor.editStatusColor',
15
+ defaultMessage: 'Edit Status Color',
16
+ description: 'Title for the color picker that changes the status color'
17
+ }
18
+ });
@@ -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.9.2";
9
+ var packageVersion = "76.10.1";
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.9.2";
22
+ var packageVersion = "76.10.1";
23
23
  var halfFocusRing = 1;
24
24
  var dropOffset = '0, 8';
25
25
  var DropList = /*#__PURE__*/function (_Component) {
@@ -118,7 +118,7 @@ export var MediaSingleDimensionHelper = function MediaSingleDimensionHelper(_ref
118
118
  /* This causes issues for new experience where we don't strip layout attributes
119
119
  when copying top-level node and pasting into a table/layout,
120
120
  because full-width layout will remain, causing node to be edge-to-edge */
121
- !isExtendedResizeExperienceOn && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-width: 100%;\n "]))), isExtendedResizeExperienceOn ? "".concat(containerWidth, "px") : calcMaxWidth(layout, containerWidth), isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), float(layout), calcMargin(layout), isNestedNode ? /* Make nested node appear responsives when resizing table cell */"max-width: 100%;" : nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", isImageAligned(layout));
121
+ !isExtendedResizeExperienceOn && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-width: 100%;\n "]))), isExtendedResizeExperienceOn ? "".concat(containerWidth, "px") : calcMaxWidth(layout, containerWidth), isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), float(layout), calcMargin(layout), isNestedNode ? /* Make nested node appear responsive when resizing table cell */"max-width: 100%;" : nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", isImageAligned(layout));
122
122
  };
123
123
  var RenderFallbackContainer = function RenderFallbackContainer(_ref2) {
124
124
  var hasFallbackContainer = _ref2.hasFallbackContainer,
@@ -13,6 +13,7 @@ export { messages as fullPageMessages } from './full-page';
13
13
  export { toolbarMessages } from './toolbar';
14
14
  export { messages as listMessages } from './list';
15
15
  export { messages as undoRedoMessages } from './undo-redo';
16
+ export { messages as statusMessages } from './status';
16
17
  declare const _default: {
17
18
  layoutFixedWidth: {
18
19
  id: string;
@@ -0,0 +1,17 @@
1
+ export declare const messages: {
2
+ placeholder: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ editText: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ editColor: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ };
@@ -13,6 +13,7 @@ export { messages as fullPageMessages } from './full-page';
13
13
  export { toolbarMessages } from './toolbar';
14
14
  export { messages as listMessages } from './list';
15
15
  export { messages as undoRedoMessages } from './undo-redo';
16
+ export { messages as statusMessages } from './status';
16
17
  declare const _default: {
17
18
  layoutFixedWidth: {
18
19
  id: string;
@@ -0,0 +1,17 @@
1
+ export declare const messages: {
2
+ placeholder: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ editText: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ editColor: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "76.9.2",
3
+ "version": "76.10.1",
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/"