@atlaskit/editor-plugin-panel 3.2.2 → 3.2.4

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-panel
2
2
 
3
+ ## 3.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.2.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 3.2.2
4
16
 
5
17
  ### Patch Changes
@@ -66,8 +66,6 @@ var PanelIcon = exports.PanelIcon = function PanelIcon(props) {
66
66
  });
67
67
  };
68
68
  var PanelNodeView = /*#__PURE__*/function () {
69
- // Ignored via go/ees005
70
- // eslint-disable-next-line @typescript-eslint/max-params
71
69
  function PanelNodeView(node, view, getPos, pluginOptions, api, nodeViewPortalProviderAPI, providerFactory) {
72
70
  var _this = this;
73
71
  (0, _classCallCheck2.default)(this, PanelNodeView);
@@ -134,10 +132,7 @@ var PanelNodeView = /*#__PURE__*/function () {
134
132
  }
135
133
  }]);
136
134
  }();
137
- var getPanelNodeView = exports.getPanelNodeView = function getPanelNodeView(pluginOptions, api, nodeViewPortalProviderAPI, providerFactory
138
- // Ignored via go/ees005
139
- // eslint-disable-next-line @typescript-eslint/max-params
140
- ) {
135
+ var getPanelNodeView = exports.getPanelNodeView = function getPanelNodeView(pluginOptions, api, nodeViewPortalProviderAPI, providerFactory) {
141
136
  return function (node, view, getPos) {
142
137
  return new PanelNodeView(node, view, getPos, pluginOptions, api, nodeViewPortalProviderAPI, providerFactory);
143
138
  };
@@ -10,10 +10,7 @@ var _selection = require("@atlaskit/editor-common/selection");
10
10
  var _panel2 = require("../nodeviews/panel");
11
11
  var _panelPluginType = require("../panelPluginType");
12
12
  var _utils = require("./utils/utils");
13
- var createPlugin = exports.createPlugin = function createPlugin(dispatch, providerFactory, pluginOptions, api, nodeViewPortalProviderAPI
14
- // Ignored via go/ees005
15
- // eslint-disable-next-line @typescript-eslint/max-params
16
- ) {
13
+ var createPlugin = exports.createPlugin = function createPlugin(dispatch, providerFactory, pluginOptions, api, nodeViewPortalProviderAPI) {
17
14
  var _pluginOptions$useLon = pluginOptions.useLongPressSelection,
18
15
  useLongPressSelection = _pluginOptions$useLon === void 0 ? false : _pluginOptions$useLon;
19
16
  return new _safePlugin.SafePlugin({
@@ -54,10 +54,7 @@ var panelIconMap = exports.panelIconMap = (0, _defineProperty2.default)((0, _def
54
54
  shortName: ':tip:',
55
55
  id: 'atlassian-tip'
56
56
  });
57
- var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatMessage, panelNodeType, isCustomPanelEnabled, isCustomPanelEditable, providerFactory, hoverDecoration, editorAnalyticsAPI, activePanelType, activePanelColor, activePanelIcon, state
58
- // Ignored via go/ees005
59
- // eslint-disable-next-line @typescript-eslint/max-params
60
- ) {
57
+ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatMessage, panelNodeType, isCustomPanelEnabled, isCustomPanelEditable, providerFactory, hoverDecoration, editorAnalyticsAPI, activePanelType, activePanelColor, activePanelIcon, state) {
61
58
  // TODO: ED-14403 investigate why these titles are not getting translated for the tooltips
62
59
  var items = [{
63
60
  id: 'editor.panel.info',
@@ -282,10 +279,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
282
279
  var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(state, intl) {
283
280
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
284
281
  var providerFactory = arguments.length > 3 ? arguments[3] : undefined;
285
- var api
286
- // Ignored via go/ees005
287
- // eslint-disable-next-line @typescript-eslint/max-params
288
- = arguments.length > 4 ? arguments[4] : undefined;
282
+ var api = arguments.length > 4 ? arguments[4] : undefined;
289
283
  var formatMessage = intl.formatMessage;
290
284
  var panelObject = (0, _utils2.findPanel)(state);
291
285
  if (panelObject) {
@@ -62,8 +62,6 @@ export const PanelIcon = props => {
62
62
  });
63
63
  };
64
64
  class PanelNodeView {
65
- // Ignored via go/ees005
66
- // eslint-disable-next-line @typescript-eslint/max-params
67
65
  constructor(node, view, getPos, pluginOptions, api, nodeViewPortalProviderAPI, providerFactory) {
68
66
  this.nodeViewPortalProviderAPI = nodeViewPortalProviderAPI;
69
67
  this.providerFactory = providerFactory;
@@ -122,9 +120,6 @@ class PanelNodeView {
122
120
  }
123
121
  }
124
122
  }
125
- export const getPanelNodeView = (pluginOptions, api, nodeViewPortalProviderAPI, providerFactory
126
- // Ignored via go/ees005
127
- // eslint-disable-next-line @typescript-eslint/max-params
128
- ) => (node, view, getPos) => {
123
+ export const getPanelNodeView = (pluginOptions, api, nodeViewPortalProviderAPI, providerFactory) => (node, view, getPos) => {
129
124
  return new PanelNodeView(node, view, getPos, pluginOptions, api, nodeViewPortalProviderAPI, providerFactory);
130
125
  };
@@ -4,10 +4,7 @@ import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
4
4
  import { getPanelNodeView } from '../nodeviews/panel';
5
5
  import { pluginKey } from '../panelPluginType';
6
6
  import { handleCut } from './utils/utils';
7
- export const createPlugin = (dispatch, providerFactory, pluginOptions, api, nodeViewPortalProviderAPI
8
- // Ignored via go/ees005
9
- // eslint-disable-next-line @typescript-eslint/max-params
10
- ) => {
7
+ export const createPlugin = (dispatch, providerFactory, pluginOptions, api, nodeViewPortalProviderAPI) => {
11
8
  const {
12
9
  useLongPressSelection = false
13
10
  } = pluginOptions;
@@ -48,10 +48,7 @@ export const panelIconMap = {
48
48
  id: 'atlassian-tip'
49
49
  }
50
50
  };
51
- export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabled, isCustomPanelEditable, providerFactory, hoverDecoration, editorAnalyticsAPI, activePanelType, activePanelColor, activePanelIcon, state
52
- // Ignored via go/ees005
53
- // eslint-disable-next-line @typescript-eslint/max-params
54
- ) => {
51
+ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabled, isCustomPanelEditable, providerFactory, hoverDecoration, editorAnalyticsAPI, activePanelType, activePanelColor, activePanelIcon, state) => {
55
52
  // TODO: ED-14403 investigate why these titles are not getting translated for the tooltips
56
53
  const items = [{
57
54
  id: 'editor.panel.info',
@@ -263,10 +260,7 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
263
260
  });
264
261
  return items;
265
262
  };
266
- export const getToolbarConfig = (state, intl, options = {}, providerFactory, api
267
- // Ignored via go/ees005
268
- // eslint-disable-next-line @typescript-eslint/max-params
269
- ) => {
263
+ export const getToolbarConfig = (state, intl, options = {}, providerFactory, api) => {
270
264
  const {
271
265
  formatMessage
272
266
  } = intl;
@@ -60,8 +60,6 @@ export var PanelIcon = function PanelIcon(props) {
60
60
  });
61
61
  };
62
62
  var PanelNodeView = /*#__PURE__*/function () {
63
- // Ignored via go/ees005
64
- // eslint-disable-next-line @typescript-eslint/max-params
65
63
  function PanelNodeView(node, view, getPos, pluginOptions, api, nodeViewPortalProviderAPI, providerFactory) {
66
64
  var _this = this;
67
65
  _classCallCheck(this, PanelNodeView);
@@ -128,10 +126,7 @@ var PanelNodeView = /*#__PURE__*/function () {
128
126
  }
129
127
  }]);
130
128
  }();
131
- export var getPanelNodeView = function getPanelNodeView(pluginOptions, api, nodeViewPortalProviderAPI, providerFactory
132
- // Ignored via go/ees005
133
- // eslint-disable-next-line @typescript-eslint/max-params
134
- ) {
129
+ export var getPanelNodeView = function getPanelNodeView(pluginOptions, api, nodeViewPortalProviderAPI, providerFactory) {
135
130
  return function (node, view, getPos) {
136
131
  return new PanelNodeView(node, view, getPos, pluginOptions, api, nodeViewPortalProviderAPI, providerFactory);
137
132
  };
@@ -4,10 +4,7 @@ import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
4
4
  import { getPanelNodeView } from '../nodeviews/panel';
5
5
  import { pluginKey } from '../panelPluginType';
6
6
  import { handleCut } from './utils/utils';
7
- export var createPlugin = function createPlugin(dispatch, providerFactory, pluginOptions, api, nodeViewPortalProviderAPI
8
- // Ignored via go/ees005
9
- // eslint-disable-next-line @typescript-eslint/max-params
10
- ) {
7
+ export var createPlugin = function createPlugin(dispatch, providerFactory, pluginOptions, api, nodeViewPortalProviderAPI) {
11
8
  var _pluginOptions$useLon = pluginOptions.useLongPressSelection,
12
9
  useLongPressSelection = _pluginOptions$useLon === void 0 ? false : _pluginOptions$useLon;
13
10
  return new SafePlugin({
@@ -44,10 +44,7 @@ export var panelIconMap = _defineProperty(_defineProperty(_defineProperty(_defin
44
44
  shortName: ':tip:',
45
45
  id: 'atlassian-tip'
46
46
  });
47
- export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeType, isCustomPanelEnabled, isCustomPanelEditable, providerFactory, hoverDecoration, editorAnalyticsAPI, activePanelType, activePanelColor, activePanelIcon, state
48
- // Ignored via go/ees005
49
- // eslint-disable-next-line @typescript-eslint/max-params
50
- ) {
47
+ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeType, isCustomPanelEnabled, isCustomPanelEditable, providerFactory, hoverDecoration, editorAnalyticsAPI, activePanelType, activePanelColor, activePanelIcon, state) {
51
48
  // TODO: ED-14403 investigate why these titles are not getting translated for the tooltips
52
49
  var items = [{
53
50
  id: 'editor.panel.info',
@@ -272,10 +269,7 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
272
269
  export var getToolbarConfig = function getToolbarConfig(state, intl) {
273
270
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
274
271
  var providerFactory = arguments.length > 3 ? arguments[3] : undefined;
275
- var api
276
- // Ignored via go/ees005
277
- // eslint-disable-next-line @typescript-eslint/max-params
278
- = arguments.length > 4 ? arguments[4] : undefined;
272
+ var api = arguments.length > 4 ? arguments[4] : undefined;
279
273
  var formatMessage = intl.formatMessage;
280
274
  var panelObject = findPanel(state);
281
275
  if (panelObject) {
@@ -24,9 +24,14 @@ export type EmojiInfo = {
24
24
  shortName: string;
25
25
  id: string;
26
26
  };
27
+ export type PanelPluginDependencies = [
28
+ typeof decorationsPlugin,
29
+ OptionalPlugin<typeof analyticsPlugin>,
30
+ EmojiPlugin
31
+ ];
27
32
  export type PanelPlugin = NextEditorPlugin<'panel', {
28
33
  pluginConfiguration: PanelPluginOptions | undefined;
29
- dependencies: [typeof decorationsPlugin, OptionalPlugin<typeof analyticsPlugin>, EmojiPlugin];
34
+ dependencies: PanelPluginDependencies;
30
35
  actions: {
31
36
  insertPanel: (inputMethod: INPUT_METHOD) => Command;
32
37
  };
@@ -24,13 +24,14 @@ export type EmojiInfo = {
24
24
  shortName: string;
25
25
  id: string;
26
26
  };
27
+ export type PanelPluginDependencies = [
28
+ typeof decorationsPlugin,
29
+ OptionalPlugin<typeof analyticsPlugin>,
30
+ EmojiPlugin
31
+ ];
27
32
  export type PanelPlugin = NextEditorPlugin<'panel', {
28
33
  pluginConfiguration: PanelPluginOptions | undefined;
29
- dependencies: [
30
- typeof decorationsPlugin,
31
- OptionalPlugin<typeof analyticsPlugin>,
32
- EmojiPlugin
33
- ];
34
+ dependencies: PanelPluginDependencies;
34
35
  actions: {
35
36
  insertPanel: (inputMethod: INPUT_METHOD) => Command;
36
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "3.2.2",
3
+ "version": "3.2.4",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,18 +32,18 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^46.1.0",
35
- "@atlaskit/editor-common": "^98.0.0",
36
- "@atlaskit/editor-palette": "1.6.3",
37
- "@atlaskit/editor-plugin-analytics": "^1.10.0",
38
- "@atlaskit/editor-plugin-decorations": "^1.3.0",
39
- "@atlaskit/editor-plugin-emoji": "^2.7.0",
35
+ "@atlaskit/editor-common": "^99.6.0",
36
+ "@atlaskit/editor-palette": "1.7.0",
37
+ "@atlaskit/editor-plugin-analytics": "^1.11.0",
38
+ "@atlaskit/editor-plugin-decorations": "^1.4.0",
39
+ "@atlaskit/editor-plugin-emoji": "^2.8.0",
40
40
  "@atlaskit/editor-prosemirror": "6.2.1",
41
41
  "@atlaskit/editor-shared-styles": "^3.2.0",
42
- "@atlaskit/emoji": "^67.11.0",
43
- "@atlaskit/icon": "^23.1.0",
42
+ "@atlaskit/emoji": "^67.13.0",
43
+ "@atlaskit/icon": "^23.5.0",
44
44
  "@atlaskit/platform-feature-flags": "^0.3.0",
45
- "@atlaskit/theme": "^14.0.0",
46
- "@atlaskit/tmp-editor-statsig": "^2.31.0",
45
+ "@atlaskit/theme": "^14.1.0",
46
+ "@atlaskit/tmp-editor-statsig": "^2.41.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "uuid": "^3.1.0"
49
49
  },