@atlaskit/editor-common 107.13.0 → 107.14.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,26 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 107.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#193889](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/193889)
8
+ [`6d4374ce318fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6d4374ce318fd) -
9
+ [EDITOR-1073] Add i18n for Track Changes button & toggle button on toolbar with plugin option
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 107.13.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [#193709](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/193709)
20
+ [`9f25c72b75349`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f25c72b75349) -
21
+ EDITOR-338 Cleans up nested tables feature gate platform_editor_nested_tables_column_drag_fix
22
+ - Updated dependencies
23
+
3
24
  ## 107.13.0
4
25
 
5
26
  ### Minor Changes
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -14,7 +14,13 @@
14
14
  "exclude": [
15
15
  "../src/**/__tests__/*",
16
16
  "../src/**/*.test.*",
17
- "../src/**/test.*"
17
+ "../src/**/test.*",
18
+ "../src/**/examples.*",
19
+ "../src/**/examples/*",
20
+ "../src/**/examples/**/*",
21
+ "../src/**/*.stories.*",
22
+ "../src/**/stories/*",
23
+ "../src/**/stories/**/*"
18
24
  ],
19
25
  "references": [
20
26
  {
@@ -12,6 +12,12 @@
12
12
  "exclude": [
13
13
  "../src/**/__tests__/*",
14
14
  "../src/**/*.test.*",
15
- "../src/**/test.*"
15
+ "../src/**/test.*",
16
+ "../src/**/examples.*",
17
+ "../src/**/examples/*",
18
+ "../src/**/examples/**/*",
19
+ "../src/**/*.stories.*",
20
+ "../src/**/stories/*",
21
+ "../src/**/stories/**/*"
16
22
  ]
17
23
  }
@@ -220,6 +220,12 @@ Object.defineProperty(exports, "toolbarMessages", {
220
220
  return _toolbar.toolbarMessages;
221
221
  }
222
222
  });
223
+ Object.defineProperty(exports, "trackChangesMessages", {
224
+ enumerable: true,
225
+ get: function get() {
226
+ return _trackChanges.trackChangesMessages;
227
+ }
228
+ });
223
229
  Object.defineProperty(exports, "undoRedoMessages", {
224
230
  enumerable: true,
225
231
  get: function get() {
@@ -271,6 +277,7 @@ var _mediaInsert = require("./media-insert");
271
277
  var _selectionExtension = require("./selection-extension");
272
278
  var _selectionToolbar = require("./selection-toolbar");
273
279
  var _contextPanel = require("./context-panel");
280
+ var _trackChanges = require("./track-changes");
274
281
  // Disable no-re-export rule for entry point files
275
282
  /* eslint-disable @atlaskit/editor/no-re-export */
276
283
  var _default = exports.default = (0, _reactIntlNext.defineMessages)({
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.trackChangesMessages = void 0;
7
+ var _reactIntlNext = require("react-intl-next");
8
+ var trackChangesMessages = exports.trackChangesMessages = (0, _reactIntlNext.defineMessages)({
9
+ toolbarIconLabel: {
10
+ id: 'editor.trackChanges.toolbarIconLabel',
11
+ defaultMessage: 'Track Changes',
12
+ description: 'Label for the track changes toolbar icon'
13
+ }
14
+ });
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
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 = "107.12.10";
19
+ var packageVersion = "107.13.1";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "107.12.10";
26
+ var packageVersion = "107.13.1";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -20,7 +20,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
20
20
  var _transform = require("@atlaskit/editor-prosemirror/transform");
21
21
  var _utils = require("@atlaskit/editor-prosemirror/utils");
22
22
  var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
23
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
24
23
  var _dom = require("./dom");
25
24
  /**
26
25
  * Checks if node is an empty paragraph.
@@ -65,11 +64,7 @@ var isTextSelection = exports.isTextSelection = function isTextSelection(selecti
65
64
  return selection instanceof _state.TextSelection;
66
65
  };
67
66
  var isElementInTableCell = exports.isElementInTableCell = function isElementInTableCell(element) {
68
- if ((0, _platformFeatureFlags.fg)('platform_editor_nested_tables_column_drag_fix')) {
69
- return (0, _dom.closest)(element, 'td, th');
70
- } else {
71
- return (0, _dom.closest)(element, 'td') || (0, _dom.closest)(element, 'th');
72
- }
67
+ return (0, _dom.closest)(element, 'td, th');
73
68
  };
74
69
  var isLastItemMediaGroup = exports.isLastItemMediaGroup = function isLastItemMediaGroup(node) {
75
70
  var content = node.content;
@@ -40,6 +40,7 @@ export { mediaInsertMessages } from './media-insert';
40
40
  export { selectionExtensionMessages } from './selection-extension';
41
41
  export { selectionToolbarMessages } from './selection-toolbar';
42
42
  export { contextPanelMessages } from './context-panel';
43
+ export { trackChangesMessages } from './track-changes';
43
44
  export default defineMessages({
44
45
  layoutFixedWidth: {
45
46
  id: 'fabric.editor.layoutFixedWidth',
@@ -0,0 +1,8 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const trackChangesMessages = defineMessages({
3
+ toolbarIconLabel: {
4
+ id: 'editor.trackChanges.toolbarIconLabel',
5
+ defaultMessage: 'Track Changes',
6
+ description: 'Label for the track changes toolbar icon'
7
+ }
8
+ });
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "107.12.10";
4
+ const packageVersion = "107.13.1";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "107.12.10";
16
+ const packageVersion = "107.13.1";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -2,7 +2,6 @@ import { AllSelection, NodeSelection, TextSelection } from '@atlaskit/editor-pro
2
2
  import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
3
3
  import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
4
4
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { closest } from './dom';
7
6
 
8
7
  /**
@@ -44,11 +43,7 @@ export const extractSliceFromStep = step => {
44
43
  };
45
44
  export const isTextSelection = selection => selection instanceof TextSelection;
46
45
  export const isElementInTableCell = element => {
47
- if (fg('platform_editor_nested_tables_column_drag_fix')) {
48
- return closest(element, 'td, th');
49
- } else {
50
- return closest(element, 'td') || closest(element, 'th');
51
- }
46
+ return closest(element, 'td, th');
52
47
  };
53
48
  export const isLastItemMediaGroup = node => {
54
49
  const {
@@ -40,6 +40,7 @@ export { mediaInsertMessages } from './media-insert';
40
40
  export { selectionExtensionMessages } from './selection-extension';
41
41
  export { selectionToolbarMessages } from './selection-toolbar';
42
42
  export { contextPanelMessages } from './context-panel';
43
+ export { trackChangesMessages } from './track-changes';
43
44
  export default defineMessages({
44
45
  layoutFixedWidth: {
45
46
  id: 'fabric.editor.layoutFixedWidth',
@@ -0,0 +1,8 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export var trackChangesMessages = defineMessages({
3
+ toolbarIconLabel: {
4
+ id: 'editor.trackChanges.toolbarIconLabel',
5
+ defaultMessage: 'Track Changes',
6
+ description: 'Label for the track changes toolbar icon'
7
+ }
8
+ });
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "107.12.10";
10
+ var packageVersion = "107.13.1";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "107.12.10";
23
+ var packageVersion = "107.13.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -2,7 +2,6 @@ import { AllSelection, NodeSelection, TextSelection } from '@atlaskit/editor-pro
2
2
  import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
3
3
  import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
4
4
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { closest } from './dom';
7
6
 
8
7
  /**
@@ -48,11 +47,7 @@ export var isTextSelection = function isTextSelection(selection) {
48
47
  return selection instanceof TextSelection;
49
48
  };
50
49
  export var isElementInTableCell = function isElementInTableCell(element) {
51
- if (fg('platform_editor_nested_tables_column_drag_fix')) {
52
- return closest(element, 'td, th');
53
- } else {
54
- return closest(element, 'td') || closest(element, 'th');
55
- }
50
+ return closest(element, 'td, th');
56
51
  };
57
52
  export var isLastItemMediaGroup = function isLastItemMediaGroup(node) {
58
53
  var content = node.content;
@@ -36,6 +36,7 @@ export { mediaInsertMessages } from './media-insert';
36
36
  export { selectionExtensionMessages } from './selection-extension';
37
37
  export { selectionToolbarMessages } from './selection-toolbar';
38
38
  export { contextPanelMessages } from './context-panel';
39
+ export { trackChangesMessages } from './track-changes';
39
40
  declare const _default: {
40
41
  layoutFixedWidth: {
41
42
  id: string;
@@ -0,0 +1,7 @@
1
+ export declare const trackChangesMessages: {
2
+ toolbarIconLabel: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ };
@@ -36,6 +36,7 @@ export { mediaInsertMessages } from './media-insert';
36
36
  export { selectionExtensionMessages } from './selection-extension';
37
37
  export { selectionToolbarMessages } from './selection-toolbar';
38
38
  export { contextPanelMessages } from './context-panel';
39
+ export { trackChangesMessages } from './track-changes';
39
40
  declare const _default: {
40
41
  layoutFixedWidth: {
41
42
  id: string;
@@ -0,0 +1,7 @@
1
+ export declare const trackChangesMessages: {
2
+ toolbarIconLabel: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "107.13.0",
3
+ "version": "107.14.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/"
@@ -144,8 +144,8 @@
144
144
  "@atlaskit/icon": "^27.8.0",
145
145
  "@atlaskit/icon-object": "^7.1.0",
146
146
  "@atlaskit/link": "^3.2.0",
147
- "@atlaskit/link-datasource": "^4.16.0",
148
- "@atlaskit/link-picker": "^3.8.0",
147
+ "@atlaskit/link-datasource": "^4.17.0",
148
+ "@atlaskit/link-picker": "^3.9.0",
149
149
  "@atlaskit/media-card": "^79.4.0",
150
150
  "@atlaskit/media-client": "^35.2.0",
151
151
  "@atlaskit/media-client-react": "^4.1.0",
@@ -164,14 +164,14 @@
164
164
  "@atlaskit/profilecard": "^23.21.0",
165
165
  "@atlaskit/react-ufo": "^4.1.0",
166
166
  "@atlaskit/section-message": "^8.5.0",
167
- "@atlaskit/smart-card": "^40.5.0",
167
+ "@atlaskit/smart-card": "^40.6.0",
168
168
  "@atlaskit/smart-user-picker": "^8.0.0",
169
169
  "@atlaskit/spinner": "^19.0.0",
170
170
  "@atlaskit/status": "^3.0.0",
171
171
  "@atlaskit/task-decision": "^19.2.0",
172
172
  "@atlaskit/textfield": "^8.0.0",
173
173
  "@atlaskit/theme": "^19.0.0",
174
- "@atlaskit/tmp-editor-statsig": "^9.17.0",
174
+ "@atlaskit/tmp-editor-statsig": "^9.18.0",
175
175
  "@atlaskit/tokens": "^5.6.0",
176
176
  "@atlaskit/tooltip": "^20.4.0",
177
177
  "@atlaskit/width-detector": "^5.0.0",
@@ -279,9 +279,6 @@
279
279
  "platform_editor_renderer_table_header_styles": {
280
280
  "type": "boolean"
281
281
  },
282
- "platform_editor_nested_tables_column_drag_fix": {
283
- "type": "boolean"
284
- },
285
282
  "platform_editor_elements_dnd_multi_select_patch_1": {
286
283
  "type": "boolean"
287
284
  },