@atlaskit/editor-common 110.36.4 → 110.36.6

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,21 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 110.36.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`55920a92e882a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/55920a92e882a) -
8
+ tsignores added for help-center local consumpton removed
9
+ - Updated dependencies
10
+
11
+ ## 110.36.5
12
+
13
+ ### Patch Changes
14
+
15
+ - [`5d8ba7e59f96f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5d8ba7e59f96f) -
16
+ simplify the media single resizer classnames
17
+ - Updated dependencies
18
+
3
19
  ## 110.36.4
4
20
 
5
21
  ### Patch Changes
@@ -28,7 +28,6 @@ function addLinkMetadata(initialSelection, tr, metadata) {
28
28
  return tr;
29
29
  }
30
30
  function getLinkMetadataFromTransaction(tr) {
31
- // @ts-ignore - Workaround for help-center local consumption
32
31
  return tr.steps.reduce(function (metadata, step) {
33
32
  if (!(step instanceof _steps.LinkMetaStep)) {
34
33
  return metadata;
@@ -95,8 +95,6 @@ function usePluginStateEffect(injectionApi, plugins, effect) {
95
95
  return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, "".concat(String(pluginName), "State"), injectionApi === null || injectionApi === void 0 ? void 0 : injectionApi[pluginName]));
96
96
  }, {});
97
97
  }, [injectionApi, pluginNames]);
98
-
99
- // @ts-ignore - Workaround for help-center local consumption
100
98
  usePluginStateEffectInternal(namedExternalPlugins, effect, options);
101
99
  }
102
100
  function usePluginStateEffectInternal(externalPlugins, effect) {
@@ -19,7 +19,6 @@ var _safePlugin = require("../safe-plugin");
19
19
  function keymap(bindings) {
20
20
  return new _safePlugin.SafePlugin({
21
21
  props: {
22
- // @ts-ignore - Workaround for help-center local consumption
23
22
  handleKeyDown: function handleKeyDown(view, event) {
24
23
  var name = (0, _w3cKeyname.keyName)(event);
25
24
  var keyboardEvent = event;
@@ -327,6 +327,4 @@ var RecentLink = /*#__PURE__*/function (_React$Component) {
327
327
  (0, _defineProperty2.default)(RecentLink, "defaultProps", {
328
328
  limit: DEFAULT_ITEMS_LIMIT
329
329
  });
330
- var _default = exports.default = (0, _withActivityProvider.default)(
331
- // @ts-ignore - Workaround for help-center local consumption (prop type incompatibility)
332
- (0, _reactIntlNext.injectIntl)(RecentLink));
330
+ var _default = exports.default = (0, _withActivityProvider.default)((0, _reactIntlNext.injectIntl)(RecentLink));
@@ -36,6 +36,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
36
36
  defaultMessage: 'Copy link to block',
37
37
  description: 'Copy link to the selected block'
38
38
  },
39
+ linkCopiedToClipboard: {
40
+ id: 'fabric.editor.block.menu.link.copied.to.clipboard',
41
+ defaultMessage: 'Link copied to clipboard',
42
+ description: 'Confirmation message shown when link is copied to clipboard'
43
+ },
39
44
  paragraph: {
40
45
  id: 'fabric.editor.block.menu.paragraph',
41
46
  defaultMessage: 'Paragraph',
@@ -273,6 +273,12 @@ Object.defineProperty(exports, "resizerHandleTrackClassName", {
273
273
  return _resizer.resizerHandleTrackClassName;
274
274
  }
275
275
  });
276
+ Object.defineProperty(exports, "resizerItemClassName", {
277
+ enumerable: true,
278
+ get: function get() {
279
+ return _resizer.resizerItemClassName;
280
+ }
281
+ });
276
282
  Object.defineProperty(exports, "resizerStyles", {
277
283
  enumerable: true,
278
284
  get: function get() {
@@ -20,10 +20,7 @@ var _editorCoreUtils = require("./editor-core-utils");
20
20
  var getStepRange = exports.getStepRange = function getStepRange(transaction) {
21
21
  var from = -1;
22
22
  var to = -1;
23
-
24
- // @ts-ignore - Workaround for help-center local consumption
25
23
  transaction.mapping.maps.forEach(function (stepMap, index) {
26
- // @ts-ignore - Workaround for help-center local consumption
27
24
  stepMap.forEach(function (oldStart, oldEnd) {
28
25
  var newStart = transaction.mapping.slice(index).map(oldStart, -1);
29
26
  var newEnd = transaction.mapping.slice(index).map(oldEnd);
@@ -64,13 +64,9 @@ function pluginFactory(pluginKey, reducer) {
64
64
  return {
65
65
  createPluginState: function createPluginState(dispatch, initialState) {
66
66
  return {
67
- // @ts-ignore - Workaround for help-center local consumption
68
-
69
67
  init: function init(_, state) {
70
68
  return isFunction(initialState) ? initialState(state) : initialState;
71
69
  },
72
- // @ts-ignore - Workaround for help-center local consumption
73
-
74
70
  apply: function apply(tr, _pluginState, _oldEditorState, newEditorState) {
75
71
  var oldPluginState = mapping ? mapping(tr, _pluginState, newEditorState) : _pluginState;
76
72
  var newPluginState = oldPluginState;
@@ -18,7 +18,6 @@ export function addLinkMetadata(initialSelection, tr, metadata) {
18
18
  return tr;
19
19
  }
20
20
  export function getLinkMetadataFromTransaction(tr) {
21
- // @ts-ignore - Workaround for help-center local consumption
22
21
  return tr.steps.reduce((metadata, step) => {
23
22
  if (!(step instanceof LinkMetaStep)) {
24
23
  return metadata;
@@ -79,8 +79,6 @@ export function usePluginStateEffect(injectionApi, plugins, effect, options = {}
79
79
  ...acc,
80
80
  [`${String(pluginName)}State`]: injectionApi === null || injectionApi === void 0 ? void 0 : injectionApi[pluginName]
81
81
  }), {}), [injectionApi, pluginNames]);
82
-
83
- // @ts-ignore - Workaround for help-center local consumption
84
82
  usePluginStateEffectInternal(namedExternalPlugins, effect, options);
85
83
  }
86
84
  function usePluginStateEffectInternal(externalPlugins, effect, options = {}) {
@@ -14,7 +14,6 @@ import { SafePlugin } from '../safe-plugin';
14
14
  export function keymap(bindings) {
15
15
  return new SafePlugin({
16
16
  props: {
17
- // @ts-ignore - Workaround for help-center local consumption
18
17
  handleKeyDown(view, event) {
19
18
  const name = keyName(event);
20
19
  let keyboardEvent = event;
@@ -220,6 +220,4 @@ class RecentLink extends React.Component {
220
220
  _defineProperty(RecentLink, "defaultProps", {
221
221
  limit: DEFAULT_ITEMS_LIMIT
222
222
  });
223
- export default withActivityProvider(
224
- // @ts-ignore - Workaround for help-center local consumption (prop type incompatibility)
225
- injectIntl(RecentLink));
223
+ export default withActivityProvider(injectIntl(RecentLink));
@@ -30,6 +30,11 @@ export const messages = defineMessages({
30
30
  defaultMessage: 'Copy link to block',
31
31
  description: 'Copy link to the selected block'
32
32
  },
33
+ linkCopiedToClipboard: {
34
+ id: 'fabric.editor.block.menu.link.copied.to.clipboard',
35
+ defaultMessage: 'Link copied to clipboard',
36
+ description: 'Confirmation message shown when link is copied to clipboard'
37
+ },
33
38
  paragraph: {
34
39
  id: 'fabric.editor.block.menu.paragraph',
35
40
  defaultMessage: 'Paragraph',
@@ -15,7 +15,7 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
15
15
  export { CodeBlockSharedCssClassName } from './shared/code-block';
16
16
  export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT_COLUMN_WIDTH } from './shared/layout';
17
17
  export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
18
- export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth } from './shared/resizer';
18
+ export { resizerStyles, resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth } from './shared/resizer';
19
19
  export { GRID_GUTTER } from './shared/grid';
20
20
  export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME } from './shared/smartCard';
21
21
  export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding } from './shared/plugins';
@@ -5,10 +5,7 @@ import { isEmptyParagraph } from './editor-core-utils';
5
5
  export const getStepRange = transaction => {
6
6
  let from = -1;
7
7
  let to = -1;
8
-
9
- // @ts-ignore - Workaround for help-center local consumption
10
8
  transaction.mapping.maps.forEach((stepMap, index) => {
11
- // @ts-ignore - Workaround for help-center local consumption
12
9
  stepMap.forEach((oldStart, oldEnd) => {
13
10
  const newStart = transaction.mapping.slice(index).map(oldStart, -1);
14
11
  const newEnd = transaction.mapping.slice(index).map(oldEnd);
@@ -59,11 +59,7 @@ export function pluginFactory(pluginKey, reducer, options = {}) {
59
59
  return {
60
60
  createPluginState(dispatch, initialState) {
61
61
  return {
62
- // @ts-ignore - Workaround for help-center local consumption
63
-
64
62
  init: (_, state) => isFunction(initialState) ? initialState(state) : initialState,
65
- // @ts-ignore - Workaround for help-center local consumption
66
-
67
63
  apply: (tr, _pluginState, _oldEditorState, newEditorState) => {
68
64
  const oldPluginState = mapping ? mapping(tr, _pluginState, newEditorState) : _pluginState;
69
65
  let newPluginState = oldPluginState;
@@ -19,7 +19,6 @@ export function addLinkMetadata(initialSelection, tr, metadata) {
19
19
  return tr;
20
20
  }
21
21
  export function getLinkMetadataFromTransaction(tr) {
22
- // @ts-ignore - Workaround for help-center local consumption
23
22
  return tr.steps.reduce(function (metadata, step) {
24
23
  if (!(step instanceof LinkMetaStep)) {
25
24
  return metadata;
@@ -89,8 +89,6 @@ export function usePluginStateEffect(injectionApi, plugins, effect) {
89
89
  return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, "".concat(String(pluginName), "State"), injectionApi === null || injectionApi === void 0 ? void 0 : injectionApi[pluginName]));
90
90
  }, {});
91
91
  }, [injectionApi, pluginNames]);
92
-
93
- // @ts-ignore - Workaround for help-center local consumption
94
92
  usePluginStateEffectInternal(namedExternalPlugins, effect, options);
95
93
  }
96
94
  function usePluginStateEffectInternal(externalPlugins, effect) {
@@ -14,7 +14,6 @@ import { SafePlugin } from '../safe-plugin';
14
14
  export function keymap(bindings) {
15
15
  return new SafePlugin({
16
16
  props: {
17
- // @ts-ignore - Workaround for help-center local consumption
18
17
  handleKeyDown: function handleKeyDown(view, event) {
19
18
  var name = keyName(event);
20
19
  var keyboardEvent = event;
@@ -320,6 +320,4 @@ var RecentLink = /*#__PURE__*/function (_React$Component) {
320
320
  _defineProperty(RecentLink, "defaultProps", {
321
321
  limit: DEFAULT_ITEMS_LIMIT
322
322
  });
323
- export default withActivityProvider(
324
- // @ts-ignore - Workaround for help-center local consumption (prop type incompatibility)
325
- injectIntl(RecentLink));
323
+ export default withActivityProvider(injectIntl(RecentLink));
@@ -30,6 +30,11 @@ export var messages = defineMessages({
30
30
  defaultMessage: 'Copy link to block',
31
31
  description: 'Copy link to the selected block'
32
32
  },
33
+ linkCopiedToClipboard: {
34
+ id: 'fabric.editor.block.menu.link.copied.to.clipboard',
35
+ defaultMessage: 'Link copied to clipboard',
36
+ description: 'Confirmation message shown when link is copied to clipboard'
37
+ },
33
38
  paragraph: {
34
39
  id: 'fabric.editor.block.menu.paragraph',
35
40
  defaultMessage: 'Paragraph',
@@ -15,7 +15,7 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
15
15
  export { CodeBlockSharedCssClassName } from './shared/code-block';
16
16
  export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT_COLUMN_WIDTH } from './shared/layout';
17
17
  export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
18
- export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth } from './shared/resizer';
18
+ export { resizerStyles, resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth } from './shared/resizer';
19
19
  export { GRID_GUTTER } from './shared/grid';
20
20
  export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME } from './shared/smartCard';
21
21
  export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding } from './shared/plugins';
@@ -5,10 +5,7 @@ import { isEmptyParagraph } from './editor-core-utils';
5
5
  export var getStepRange = function getStepRange(transaction) {
6
6
  var from = -1;
7
7
  var to = -1;
8
-
9
- // @ts-ignore - Workaround for help-center local consumption
10
8
  transaction.mapping.maps.forEach(function (stepMap, index) {
11
- // @ts-ignore - Workaround for help-center local consumption
12
9
  stepMap.forEach(function (oldStart, oldEnd) {
13
10
  var newStart = transaction.mapping.slice(index).map(oldStart, -1);
14
11
  var newEnd = transaction.mapping.slice(index).map(oldEnd);
@@ -58,13 +58,9 @@ export function pluginFactory(pluginKey, reducer) {
58
58
  return {
59
59
  createPluginState: function createPluginState(dispatch, initialState) {
60
60
  return {
61
- // @ts-ignore - Workaround for help-center local consumption
62
-
63
61
  init: function init(_, state) {
64
62
  return isFunction(initialState) ? initialState(state) : initialState;
65
63
  },
66
- // @ts-ignore - Workaround for help-center local consumption
67
-
68
64
  apply: function apply(tr, _pluginState, _oldEditorState, newEditorState) {
69
65
  var oldPluginState = mapping ? mapping(tr, _pluginState, newEditorState) : _pluginState;
70
66
  var newPluginState = oldPluginState;
@@ -29,6 +29,11 @@ export declare const messages: {
29
29
  defaultMessage: string;
30
30
  description: string;
31
31
  };
32
+ linkCopiedToClipboard: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
32
37
  paragraph: {
33
38
  id: string;
34
39
  defaultMessage: string;
@@ -12,7 +12,7 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
12
12
  export { CodeBlockSharedCssClassName } from './shared/code-block';
13
13
  export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT_COLUMN_WIDTH, } from './shared/layout';
14
14
  export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
15
- export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, } from './shared/resizer';
15
+ export { resizerStyles, resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, } from './shared/resizer';
16
16
  export { GRID_GUTTER } from './shared/grid';
17
17
  export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smartCard';
18
18
  export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding, } from './shared/plugins';
@@ -29,6 +29,11 @@ export declare const messages: {
29
29
  defaultMessage: string;
30
30
  description: string;
31
31
  };
32
+ linkCopiedToClipboard: {
33
+ id: string;
34
+ defaultMessage: string;
35
+ description: string;
36
+ };
32
37
  paragraph: {
33
38
  id: string;
34
39
  defaultMessage: string;
@@ -12,7 +12,7 @@ export { DropdownMenuSharedCssClassName } from './shared/dropdown-menu';
12
12
  export { CodeBlockSharedCssClassName } from './shared/code-block';
13
13
  export { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING, DEFAULT_TWO_COLUMN_LAYOUT_COLUMN_WIDTH, } from './shared/layout';
14
14
  export { EXTENSION_PADDING, BODIED_EXT_PADDING } from './shared/extension';
15
- export { resizerStyles, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, } from './shared/resizer';
15
+ export { resizerStyles, resizerItemClassName, resizerHandleClassName, resizerHandleTrackClassName, resizerHandleThumbClassName, resizerHandleThumbWidth, } from './shared/resizer';
16
16
  export { GRID_GUTTER } from './shared/grid';
17
17
  export { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME, DATASOURCE_INNER_CONTAINER_CLASSNAME, } from './shared/smartCard';
18
18
  export { buttonGroupStyle, buttonGroupStyleBeforeVisualRefresh, disableBlueBorderStyles, separatorStyles, wrapperStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding, } from './shared/plugins';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "110.36.4",
3
+ "version": "110.36.6",
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/"
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/editor-prosemirror": "7.0.0",
48
48
  "@atlaskit/editor-shared-styles": "^3.10.0",
49
49
  "@atlaskit/editor-tables": "^2.9.0",
50
- "@atlaskit/editor-toolbar": "^0.17.0",
50
+ "@atlaskit/editor-toolbar": "^0.18.0",
51
51
  "@atlaskit/editor-toolbar-model": "^0.2.0",
52
52
  "@atlaskit/emoji": "^69.8.0",
53
53
  "@atlaskit/icon": "^29.0.0",
@@ -81,7 +81,7 @@
81
81
  "@atlaskit/task-decision": "^19.2.0",
82
82
  "@atlaskit/textfield": "^8.1.0",
83
83
  "@atlaskit/theme": "^21.0.0",
84
- "@atlaskit/tmp-editor-statsig": "^14.1.0",
84
+ "@atlaskit/tmp-editor-statsig": "^14.2.0",
85
85
  "@atlaskit/tokens": "^8.4.0",
86
86
  "@atlaskit/tooltip": "^20.10.0",
87
87
  "@atlaskit/width-detector": "^5.0.0",