@atlaskit/editor-plugin-panel 0.3.1 → 1.0.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,21 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386) [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) - This changeset exists to bump all editor plugins that currently don't have a major version. This is to address an issue with Jira plugin consumption.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 0.3.2
14
+
15
+ ### Patch Changes
16
+
17
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572) [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) - Upgrading @atlaskit/editor-prosemirror dependency
18
+
3
19
  ## 0.3.1
4
20
 
5
21
  ### Patch Changes
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
@@ -9,7 +10,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
9
10
  var _adfSchema = require("@atlaskit/adf-schema");
10
11
  var _analytics = require("@atlaskit/editor-common/analytics");
11
12
  var _editorAnalytics = require("@atlaskit/editor-common/editor-analytics");
12
- var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages"));
13
+ var _messages = _interopRequireWildcard(require("@atlaskit/editor-common/messages"));
13
14
  var _panel = require("@atlaskit/editor-common/panel");
14
15
  var _uiColor = require("@atlaskit/editor-common/ui-color");
15
16
  var _utils = require("@atlaskit/editor-prosemirror/utils");
@@ -21,9 +22,10 @@ var _removeEmoji = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/r
21
22
  var _success = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/success"));
22
23
  var _warning = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/warning"));
23
24
  var _actions = require("./actions");
24
- var _message = require("./message");
25
25
  var _utils2 = require("./utils");
26
26
  var _panelIconMap;
27
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
28
+ 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; }
27
29
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28
30
  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) { (0, _defineProperty2.default)(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; }
29
31
  var panelIconMap = exports.panelIconMap = (_panelIconMap = {}, (0, _defineProperty2.default)(_panelIconMap, _adfSchema.PanelType.INFO, {
@@ -53,7 +55,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
53
55
  icon: _info.default,
54
56
  onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.INFO),
55
57
  selected: activePanelType === _adfSchema.PanelType.INFO,
56
- title: formatMessage(_message.messages.info),
58
+ title: formatMessage(_messages.panelMessages.info),
57
59
  tabIndex: null
58
60
  }, {
59
61
  id: 'editor.panel.note',
@@ -61,7 +63,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
61
63
  icon: _note.default,
62
64
  onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.NOTE),
63
65
  selected: activePanelType === _adfSchema.PanelType.NOTE,
64
- title: formatMessage(_message.messages.note),
66
+ title: formatMessage(_messages.panelMessages.note),
65
67
  tabIndex: null
66
68
  }, {
67
69
  id: 'editor.panel.success',
@@ -69,7 +71,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
69
71
  icon: _success.default,
70
72
  onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.SUCCESS),
71
73
  selected: activePanelType === _adfSchema.PanelType.SUCCESS,
72
- title: formatMessage(_message.messages.success),
74
+ title: formatMessage(_messages.panelMessages.success),
73
75
  tabIndex: null
74
76
  }, {
75
77
  id: 'editor.panel.warning',
@@ -77,7 +79,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
77
79
  icon: _warning.default,
78
80
  onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.WARNING),
79
81
  selected: activePanelType === _adfSchema.PanelType.WARNING,
80
- title: formatMessage(_message.messages.warning),
82
+ title: formatMessage(_messages.panelMessages.warning),
81
83
  tabIndex: null
82
84
  }, {
83
85
  id: 'editor.panel.error',
@@ -85,7 +87,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
85
87
  icon: _error.default,
86
88
  onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_adfSchema.PanelType.ERROR),
87
89
  selected: activePanelType === _adfSchema.PanelType.ERROR,
88
- title: formatMessage(_message.messages.error),
90
+ title: formatMessage(_messages.panelMessages.error),
89
91
  tabIndex: null
90
92
  }];
91
93
  if (isCustomPanelEnabled) {
@@ -194,7 +196,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
194
196
  if (isCustomPanelEditable) {
195
197
  var colorPicker = {
196
198
  id: 'editor.panel.colorPicker',
197
- title: formatMessage(_message.messages.backgroundColor),
199
+ title: formatMessage(_messages.panelMessages.backgroundColor),
198
200
  isAriaExpanded: true,
199
201
  type: 'select',
200
202
  selectType: 'color',
@@ -206,7 +208,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
206
208
  };
207
209
  var emojiPicker = {
208
210
  id: 'editor.panel.emojiPicker',
209
- title: formatMessage(_message.messages.emoji),
211
+ title: formatMessage(_messages.panelMessages.emoji),
210
212
  type: 'select',
211
213
  selectType: 'emoji',
212
214
  options: [],
@@ -1,7 +1,7 @@
1
1
  import { PanelType } from '@atlaskit/adf-schema';
2
2
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
3
3
  import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
4
- import commonMessages from '@atlaskit/editor-common/messages';
4
+ import commonMessages, { panelMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
6
6
  import { DEFAULT_BORDER_COLOR, panelBackgroundPalette } from '@atlaskit/editor-common/ui-color';
7
7
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
@@ -13,7 +13,6 @@ import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
13
13
  import SuccessIcon from '@atlaskit/icon/glyph/editor/success';
14
14
  import WarningIcon from '@atlaskit/icon/glyph/editor/warning';
15
15
  import { changePanelType, removePanel } from './actions';
16
- import { messages } from './message';
17
16
  import { findPanel } from './utils';
18
17
  export const panelIconMap = {
19
18
  [PanelType.INFO]: {
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  import { PanelType } from '@atlaskit/adf-schema';
6
6
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
7
7
  import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
8
- import commonMessages from '@atlaskit/editor-common/messages';
8
+ import commonMessages, { panelMessages as messages } from '@atlaskit/editor-common/messages';
9
9
  import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
10
10
  import { DEFAULT_BORDER_COLOR, panelBackgroundPalette } from '@atlaskit/editor-common/ui-color';
11
11
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
@@ -17,7 +17,6 @@ import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
17
17
  import SuccessIcon from '@atlaskit/icon/glyph/editor/success';
18
18
  import WarningIcon from '@atlaskit/icon/glyph/editor/warning';
19
19
  import { changePanelType, removePanel } from './actions';
20
- import { messages } from './message';
21
20
  import { findPanel } from './utils';
22
21
  export var panelIconMap = (_panelIconMap = {}, _defineProperty(_panelIconMap, PanelType.INFO, {
23
22
  shortName: ':info:',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "0.3.1",
3
+ "version": "1.0.0",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,11 +34,11 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^35.5.1",
37
- "@atlaskit/editor-common": "^77.2.0",
37
+ "@atlaskit/editor-common": "^77.4.0",
38
38
  "@atlaskit/editor-palette": "1.5.2",
39
- "@atlaskit/editor-plugin-analytics": "^0.4.0",
40
- "@atlaskit/editor-plugin-decorations": "^0.2.0",
41
- "@atlaskit/editor-prosemirror": "1.1.0",
39
+ "@atlaskit/editor-plugin-analytics": "^1.0.0",
40
+ "@atlaskit/editor-plugin-decorations": "^1.0.0",
41
+ "@atlaskit/editor-prosemirror": "3.0.0",
42
42
  "@atlaskit/editor-shared-styles": "^2.9.0",
43
43
  "@atlaskit/emoji": "^67.6.0",
44
44
  "@atlaskit/icon": "^22.0.0",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
56
- "@atlaskit/util-data-test": "^17.8.0",
56
+ "@atlaskit/util-data-test": "^17.9.0",
57
57
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
58
58
  "react-dom": "^16.8.0",
59
59
  "typescript": "~4.9.5"
@@ -1,44 +0,0 @@
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
- info: {
10
- id: 'fabric.editor.info',
11
- defaultMessage: 'Info',
12
- description: 'Panels provide a way to highlight text. The info panel has a blue background.'
13
- },
14
- note: {
15
- id: 'fabric.editor.note',
16
- defaultMessage: 'Note',
17
- description: 'Panels provide a way to highlight text. The note panel has a purple background.'
18
- },
19
- success: {
20
- id: 'fabric.editor.success',
21
- defaultMessage: 'Success',
22
- description: 'Panels provide a way to highlight text. The success panel has a green background.'
23
- },
24
- warning: {
25
- id: 'fabric.editor.warning',
26
- defaultMessage: 'Warning',
27
- description: 'Panels provide a way to highlight text. The warning panel has a yellow background.'
28
- },
29
- error: {
30
- id: 'fabric.editor.error',
31
- defaultMessage: 'Error',
32
- description: 'Panels provide a way to highlight text. The error panel has a red background.'
33
- },
34
- emoji: {
35
- id: 'fabric.editor.panel.emoji',
36
- defaultMessage: 'Add emoji',
37
- description: 'Select the panel icon'
38
- },
39
- backgroundColor: {
40
- id: 'fabric.editor.panel.backgroundColor',
41
- defaultMessage: 'Background color',
42
- description: 'Select the panel background color.'
43
- }
44
- });
@@ -1,38 +0,0 @@
1
- import { defineMessages } from 'react-intl-next';
2
- export const messages = defineMessages({
3
- info: {
4
- id: 'fabric.editor.info',
5
- defaultMessage: 'Info',
6
- description: 'Panels provide a way to highlight text. The info panel has a blue background.'
7
- },
8
- note: {
9
- id: 'fabric.editor.note',
10
- defaultMessage: 'Note',
11
- description: 'Panels provide a way to highlight text. The note panel has a purple background.'
12
- },
13
- success: {
14
- id: 'fabric.editor.success',
15
- defaultMessage: 'Success',
16
- description: 'Panels provide a way to highlight text. The success panel has a green background.'
17
- },
18
- warning: {
19
- id: 'fabric.editor.warning',
20
- defaultMessage: 'Warning',
21
- description: 'Panels provide a way to highlight text. The warning panel has a yellow background.'
22
- },
23
- error: {
24
- id: 'fabric.editor.error',
25
- defaultMessage: 'Error',
26
- description: 'Panels provide a way to highlight text. The error panel has a red background.'
27
- },
28
- emoji: {
29
- id: 'fabric.editor.panel.emoji',
30
- defaultMessage: 'Add emoji',
31
- description: 'Select the panel icon'
32
- },
33
- backgroundColor: {
34
- id: 'fabric.editor.panel.backgroundColor',
35
- defaultMessage: 'Background color',
36
- description: 'Select the panel background color.'
37
- }
38
- });
@@ -1,38 +0,0 @@
1
- import { defineMessages } from 'react-intl-next';
2
- export var messages = defineMessages({
3
- info: {
4
- id: 'fabric.editor.info',
5
- defaultMessage: 'Info',
6
- description: 'Panels provide a way to highlight text. The info panel has a blue background.'
7
- },
8
- note: {
9
- id: 'fabric.editor.note',
10
- defaultMessage: 'Note',
11
- description: 'Panels provide a way to highlight text. The note panel has a purple background.'
12
- },
13
- success: {
14
- id: 'fabric.editor.success',
15
- defaultMessage: 'Success',
16
- description: 'Panels provide a way to highlight text. The success panel has a green background.'
17
- },
18
- warning: {
19
- id: 'fabric.editor.warning',
20
- defaultMessage: 'Warning',
21
- description: 'Panels provide a way to highlight text. The warning panel has a yellow background.'
22
- },
23
- error: {
24
- id: 'fabric.editor.error',
25
- defaultMessage: 'Error',
26
- description: 'Panels provide a way to highlight text. The error panel has a red background.'
27
- },
28
- emoji: {
29
- id: 'fabric.editor.panel.emoji',
30
- defaultMessage: 'Add emoji',
31
- description: 'Select the panel icon'
32
- },
33
- backgroundColor: {
34
- id: 'fabric.editor.panel.backgroundColor',
35
- defaultMessage: 'Background color',
36
- description: 'Select the panel background color.'
37
- }
38
- });
@@ -1,37 +0,0 @@
1
- export declare const messages: {
2
- info: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- note: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- success: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- warning: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- error: {
23
- id: string;
24
- defaultMessage: string;
25
- description: string;
26
- };
27
- emoji: {
28
- id: string;
29
- defaultMessage: string;
30
- description: string;
31
- };
32
- backgroundColor: {
33
- id: string;
34
- defaultMessage: string;
35
- description: string;
36
- };
37
- };
@@ -1,37 +0,0 @@
1
- export declare const messages: {
2
- info: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- note: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- success: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- warning: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- error: {
23
- id: string;
24
- defaultMessage: string;
25
- description: string;
26
- };
27
- emoji: {
28
- id: string;
29
- defaultMessage: string;
30
- description: string;
31
- };
32
- backgroundColor: {
33
- id: string;
34
- defaultMessage: string;
35
- description: string;
36
- };
37
- };