@atlaskit/editor-plugin-caption 1.11.8 → 1.11.10

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-plugin-caption
2
2
 
3
+ ## 1.11.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.11.9
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 1.11.8
4
16
 
5
17
  ### Patch Changes
@@ -18,6 +18,8 @@ var _ui = require("@atlaskit/editor-common/ui");
18
18
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
19
19
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
20
20
  var CaptionNodeView = exports.CaptionNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
21
+ // Ignored via go/ees005
22
+ // eslint-disable-next-line @typescript-eslint/max-params
21
23
  function CaptionNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate, pluginInjectionApi) {
22
24
  var _this;
23
25
  (0, _classCallCheck2.default)(this, CaptionNodeView);
@@ -12,13 +12,36 @@ var _state = require("@atlaskit/editor-prosemirror/state");
12
12
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
13
13
  function captionKeymap() {
14
14
  var list = {};
15
+
16
+ // Ignored via go/ees005
17
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
15
18
  (0, _keymaps.bindKeymapWithCommand)(_keymaps.moveDown.common, createNewParagraphBelowCaption, list);
19
+ // Ignored via go/ees005
20
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
16
21
  (0, _keymaps.bindKeymapWithCommand)(_keymaps.enter.common, createNewParagraphBelowCaption, list);
22
+
23
+ // Ignored via go/ees005
24
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
17
25
  (0, _keymaps.bindKeymapWithCommand)(_keymaps.moveDown.common, getOutOfCaption, list);
26
+
27
+ // Ignored via go/ees005
28
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
18
29
  (0, _keymaps.bindKeymapWithCommand)(_keymaps.enter.common, getOutOfCaption, list);
30
+
31
+ // Ignored via go/ees005
32
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
19
33
  (0, _keymaps.bindKeymapWithCommand)(_keymaps.moveUp.common, selectParentMediaSingle, list);
34
+
35
+ // Ignored via go/ees005
36
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
20
37
  (0, _keymaps.bindKeymapWithCommand)(_keymaps.shiftTab.common, selectParentMediaSingle, list);
38
+
39
+ // Ignored via go/ees005
40
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
21
41
  (0, _keymaps.bindKeymapWithCommand)(_keymaps.tab.common, getOutOfCaption, list);
42
+
43
+ // Ignored via go/ees005
44
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
22
45
  (0, _keymaps.bindKeymapWithCommand)(_keymaps.moveLeft.common, gapCursorSelectLeftParentMediaSingle, list);
23
46
  return (0, _keymap.keymap)(list);
24
47
  }
@@ -18,7 +18,10 @@ var fireAnalytics = function fireAnalytics(tr, action, analyticsApi) {
18
18
  actionSubjectId: _analytics.ACTION_SUBJECT_ID.CAPTION
19
19
  })(tr);
20
20
  };
21
- var _default = exports.default = function _default(portalProviderAPI, eventDispatcher, providerFactory, dispatch, pluginInjectionApi) {
21
+ var _default = exports.default = function _default(portalProviderAPI, eventDispatcher, providerFactory, dispatch, pluginInjectionApi
22
+ // Ignored via go/ees005
23
+ // eslint-disable-next-line @typescript-eslint/max-params
24
+ ) {
22
25
  var _pluginInjectionApi$a;
23
26
  var analyticsApi = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions;
24
27
  return new _safePlugin.SafePlugin({
@@ -3,6 +3,8 @@ import React from 'react';
3
3
  import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
4
4
  import { Caption } from '@atlaskit/editor-common/ui';
5
5
  export class CaptionNodeView extends SelectionBasedNodeView {
6
+ // Ignored via go/ees005
7
+ // eslint-disable-next-line @typescript-eslint/max-params
6
8
  constructor(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate, pluginInjectionApi) {
7
9
  super(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate);
8
10
  _defineProperty(this, "selected", this.insideSelection());
@@ -6,13 +6,36 @@ import { Selection } from '@atlaskit/editor-prosemirror/state';
6
6
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
7
7
  export function captionKeymap() {
8
8
  const list = {};
9
+
10
+ // Ignored via go/ees005
11
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
9
12
  bindKeymapWithCommand(moveDown.common, createNewParagraphBelowCaption, list);
13
+ // Ignored via go/ees005
14
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
10
15
  bindKeymapWithCommand(enter.common, createNewParagraphBelowCaption, list);
16
+
17
+ // Ignored via go/ees005
18
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
11
19
  bindKeymapWithCommand(moveDown.common, getOutOfCaption, list);
20
+
21
+ // Ignored via go/ees005
22
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
12
23
  bindKeymapWithCommand(enter.common, getOutOfCaption, list);
24
+
25
+ // Ignored via go/ees005
26
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
13
27
  bindKeymapWithCommand(moveUp.common, selectParentMediaSingle, list);
28
+
29
+ // Ignored via go/ees005
30
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
14
31
  bindKeymapWithCommand(shiftTab.common, selectParentMediaSingle, list);
32
+
33
+ // Ignored via go/ees005
34
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
15
35
  bindKeymapWithCommand(tab.common, getOutOfCaption, list);
36
+
37
+ // Ignored via go/ees005
38
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
16
39
  bindKeymapWithCommand(moveLeft.common, gapCursorSelectLeftParentMediaSingle, list);
17
40
  return keymap(list);
18
41
  }
@@ -11,7 +11,10 @@ const fireAnalytics = (tr, action, analyticsApi) => {
11
11
  actionSubjectId: ACTION_SUBJECT_ID.CAPTION
12
12
  })(tr);
13
13
  };
14
- export default ((portalProviderAPI, eventDispatcher, providerFactory, dispatch, pluginInjectionApi) => {
14
+ export default ((portalProviderAPI, eventDispatcher, providerFactory, dispatch, pluginInjectionApi
15
+ // Ignored via go/ees005
16
+ // eslint-disable-next-line @typescript-eslint/max-params
17
+ ) => {
15
18
  var _pluginInjectionApi$a;
16
19
  const analyticsApi = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions;
17
20
  return new SafePlugin({
@@ -10,6 +10,8 @@ import React from 'react';
10
10
  import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
11
11
  import { Caption } from '@atlaskit/editor-common/ui';
12
12
  export var CaptionNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
13
+ // Ignored via go/ees005
14
+ // eslint-disable-next-line @typescript-eslint/max-params
13
15
  function CaptionNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate, pluginInjectionApi) {
14
16
  var _this;
15
17
  _classCallCheck(this, CaptionNodeView);
@@ -6,13 +6,36 @@ import { Selection } from '@atlaskit/editor-prosemirror/state';
6
6
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
7
7
  export function captionKeymap() {
8
8
  var list = {};
9
+
10
+ // Ignored via go/ees005
11
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
9
12
  bindKeymapWithCommand(moveDown.common, createNewParagraphBelowCaption, list);
13
+ // Ignored via go/ees005
14
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
10
15
  bindKeymapWithCommand(enter.common, createNewParagraphBelowCaption, list);
16
+
17
+ // Ignored via go/ees005
18
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
11
19
  bindKeymapWithCommand(moveDown.common, getOutOfCaption, list);
20
+
21
+ // Ignored via go/ees005
22
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
12
23
  bindKeymapWithCommand(enter.common, getOutOfCaption, list);
24
+
25
+ // Ignored via go/ees005
26
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
13
27
  bindKeymapWithCommand(moveUp.common, selectParentMediaSingle, list);
28
+
29
+ // Ignored via go/ees005
30
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
14
31
  bindKeymapWithCommand(shiftTab.common, selectParentMediaSingle, list);
32
+
33
+ // Ignored via go/ees005
34
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
15
35
  bindKeymapWithCommand(tab.common, getOutOfCaption, list);
36
+
37
+ // Ignored via go/ees005
38
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
16
39
  bindKeymapWithCommand(moveLeft.common, gapCursorSelectLeftParentMediaSingle, list);
17
40
  return keymap(list);
18
41
  }
@@ -11,7 +11,10 @@ var fireAnalytics = function fireAnalytics(tr, action, analyticsApi) {
11
11
  actionSubjectId: ACTION_SUBJECT_ID.CAPTION
12
12
  })(tr);
13
13
  };
14
- export default (function (portalProviderAPI, eventDispatcher, providerFactory, dispatch, pluginInjectionApi) {
14
+ export default (function (portalProviderAPI, eventDispatcher, providerFactory, dispatch, pluginInjectionApi
15
+ // Ignored via go/ees005
16
+ // eslint-disable-next-line @typescript-eslint/max-params
17
+ ) {
15
18
  var _pluginInjectionApi$a;
16
19
  var analyticsApi = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions;
17
20
  return new SafePlugin({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-caption",
3
- "version": "1.11.8",
3
+ "version": "1.11.10",
4
4
  "description": "Caption plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^46.1.0",
35
- "@atlaskit/editor-common": "^97.0.0",
35
+ "@atlaskit/editor-common": "^99.0.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
37
37
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
38
38
  "@atlaskit/editor-prosemirror": "6.2.1",
@@ -47,8 +47,8 @@
47
47
  "@atlaskit/editor-plugin-grid": "^1.2.0",
48
48
  "@atlaskit/editor-plugin-guideline": "^1.2.0",
49
49
  "@atlaskit/editor-plugin-selection": "^1.6.0",
50
- "@atlaskit/editor-plugin-width": "^1.3.0",
51
- "@atlaskit/renderer": "^112.7.0"
50
+ "@atlaskit/editor-plugin-width": "^2.0.0",
51
+ "@atlaskit/renderer": "^112.8.0"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": "^16.8.0 || ^17.0.0 || ~18.2.0"