@atlaskit/editor-plugin-paste-options-toolbar 1.0.3 → 1.1.1

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,108 +1,152 @@
1
1
  # @atlaskit/editor-plugin-paste-options-toolbar
2
2
 
3
+ ## 1.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#96138](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96138)
8
+ [`6c157cfaf29f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6c157cfaf29f) -
9
+ [ED-19863] Clean-up the paste options toolbar
10
+
11
+ ## 1.1.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
16
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
17
+ bumped editor-prosemirror version to 4.0.0
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 1.0.3
4
24
 
5
25
  ### Patch Changes
6
26
 
7
- - [#89247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89247) [`a65b4a0870d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a65b4a0870d8) - The internal composition of this package has changed. There is no expected change in behavior.
27
+ - [#89247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89247)
28
+ [`a65b4a0870d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a65b4a0870d8) -
29
+ The internal composition of this package has changed. There is no expected change in behavior.
8
30
 
9
31
  ## 1.0.2
10
32
 
11
33
  ### Patch Changes
12
34
 
13
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
35
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
36
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
37
+ Upgrade Typescript from `4.9.5` to `5.4.2`
14
38
 
15
39
  ## 1.0.1
16
40
 
17
41
  ### Patch Changes
18
42
 
19
- - Updated dependencies
43
+ - Updated dependencies
20
44
 
21
45
  ## 1.0.0
22
46
 
23
47
  ### Major Changes
24
48
 
25
- - [#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.
49
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
50
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
51
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
52
+ is to address an issue with Jira plugin consumption.
26
53
 
27
54
  ### Patch Changes
28
55
 
29
- - Updated dependencies
56
+ - Updated dependencies
30
57
 
31
58
  ## 0.3.9
32
59
 
33
60
  ### Patch Changes
34
61
 
35
- - [#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
62
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
63
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
64
+ Upgrading @atlaskit/editor-prosemirror dependency
36
65
 
37
66
  ## 0.3.8
38
67
 
39
68
  ### Patch Changes
40
69
 
41
- - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136) [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) - Move all plugin translations to editor-common
42
- - Updated dependencies
70
+ - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
71
+ [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
72
+ Move all plugin translations to editor-common
73
+ - Updated dependencies
43
74
 
44
75
  ## 0.3.7
45
76
 
46
77
  ### Patch Changes
47
78
 
48
- - [#69790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69790) [`0de5e8a05235`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0de5e8a05235) - ED-21955-update: Correcting outdated comments
79
+ - [#69790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69790)
80
+ [`0de5e8a05235`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0de5e8a05235) -
81
+ ED-21955-update: Correcting outdated comments
49
82
 
50
83
  ## 0.3.6
51
84
 
52
85
  ### Patch Changes
53
86
 
54
- - Updated dependencies
87
+ - Updated dependencies
55
88
 
56
89
  ## 0.3.5
57
90
 
58
91
  ### Patch Changes
59
92
 
60
- - [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802) [`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) - Ensure all editor plugins are marked as singletons
93
+ - [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
94
+ [`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
95
+ Ensure all editor plugins are marked as singletons
61
96
 
62
97
  ## 0.3.4
63
98
 
64
99
  ### Patch Changes
65
100
 
66
- - Updated dependencies
101
+ - Updated dependencies
67
102
 
68
103
  ## 0.3.3
69
104
 
70
105
  ### Patch Changes
71
106
 
72
- - Updated dependencies
107
+ - Updated dependencies
73
108
 
74
109
  ## 0.3.2
75
110
 
76
111
  ### Patch Changes
77
112
 
78
- - [#43282](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43282) [`ea6aae16859`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ea6aae16859) - Fixed extra paragraph added on pasting codeblock and modified relevant testcases
113
+ - [#43282](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43282)
114
+ [`ea6aae16859`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ea6aae16859) - Fixed
115
+ extra paragraph added on pasting codeblock and modified relevant testcases
79
116
 
80
117
  ## 0.3.1
81
118
 
82
119
  ### Patch Changes
83
120
 
84
- - Updated dependencies
121
+ - Updated dependencies
85
122
 
86
123
  ## 0.3.0
87
124
 
88
125
  ### Minor Changes
89
126
 
90
- - [#42718](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42718) [`954af7ba44b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954af7ba44b) - Changing hasLinkMark function to use pasted slice instead of state.doc while searching for link in pasted text.
127
+ - [#42718](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42718)
128
+ [`954af7ba44b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954af7ba44b) -
129
+ Changing hasLinkMark function to use pasted slice instead of state.doc while searching for link
130
+ in pasted text.
91
131
 
92
132
  ## 0.2.3
93
133
 
94
134
  ### Patch Changes
95
135
 
96
- - [#42152](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42152) [`0097171c562`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0097171c562) - ED-19766-collab: Adding collab support for paste options toolbar for confluence
136
+ - [#42152](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42152)
137
+ [`0097171c562`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0097171c562) -
138
+ ED-19766-collab: Adding collab support for paste options toolbar for confluence
97
139
 
98
140
  ## 0.2.2
99
141
 
100
142
  ### Patch Changes
101
143
 
102
- - Updated dependencies
144
+ - Updated dependencies
103
145
 
104
146
  ## 0.2.1
105
147
 
106
148
  ### Patch Changes
107
149
 
108
- - [#42128](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42128) [`8d06cbeae33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d06cbeae33) - ED-20584: Adding logic to show correct positioning for toolbar in confluence
150
+ - [#42128](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42128)
151
+ [`8d06cbeae33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d06cbeae33) -
152
+ ED-20584: Adding logic to show correct positioning for toolbar in confluence
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.isToolbarVisible = exports.getToolbarMenuConfig = exports.buildToolbar = void 0;
8
8
  var _messages = require("@atlaskit/editor-common/messages");
9
9
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
10
  var _commands = require("./commands");
12
11
  var _constants = require("./pm-plugins/constants");
13
12
  var _types = require("./types");
@@ -17,15 +16,11 @@ var isToolbarVisible = exports.isToolbarVisible = function isToolbarVisible(stat
17
16
  var _$from$parent, _$from$node;
18
17
  /**
19
18
  * Conditions for not showing the toolbar:
20
- * 1. Feature flag is disabled
21
- * 2. Pasting link, media or text containing media(note: markdown link and images are allowed)
22
- * 3. Content is pasted in a nested node(i.e. inside a table, panel etc.).
19
+ * 1. Pasting link, media or text containing media(note: markdown link and images are allowed)
20
+ * 2. Content is pasted in a nested node(i.e. inside a table, panel etc.).
23
21
  * (grandParent node should be root doc for showing up the toolbar)
24
- * 4. Cursor is inside the codeblock.
22
+ * 3. Cursor is inside the codeblock.
25
23
  */
26
- if (!(0, _platformFeatureFlags.getBooleanFF)('platform.editor.paste-options-toolbar')) {
27
- return false;
28
- }
29
24
  var $from = state.selection.$from;
30
25
  if ((0, _util.hasRuleNode)(lastContentPasted.pastedSlice, state.schema)) {
31
26
  return false;
@@ -9,4 +9,5 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
9
9
  var _react = require("@emotion/react");
10
10
  var _constants = require("../pm-plugins/constants");
11
11
  var _templateObject;
12
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
12
13
  var textHighlightStyle = exports.textHighlightStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n background-color: ", ";\n\n border-bottom: 2px solid\n ", ";\n }\n"])), _constants.TEXT_HIGHLIGHT_CLASS, "var(--ds-background-accent-blue-subtlest, #E9F2FF)", "var(--ds-background-accent-blue-subtler, #cce0ff)");
@@ -1,6 +1,5 @@
1
1
  import { pasteOptionsToolbarMessages as messages } from '@atlaskit/editor-common/messages';
2
2
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
3
  import { changeToMarkdownWithAnalytics, changeToPlainTextWithAnalytics, changeToRichTextWithAnalytics, dropdownClickHandler } from './commands';
5
4
  import { PASTE_OPTIONS_TEST_ID, PASTE_TOOLBAR_CLASS, PASTE_TOOLBAR_ITEM_CLASS } from './pm-plugins/constants';
6
5
  import { pasteOptionsPluginKey, ToolbarDropdownOption } from './types';
@@ -10,15 +9,11 @@ export const isToolbarVisible = (state, lastContentPasted) => {
10
9
  var _$from$parent, _$from$node;
11
10
  /**
12
11
  * Conditions for not showing the toolbar:
13
- * 1. Feature flag is disabled
14
- * 2. Pasting link, media or text containing media(note: markdown link and images are allowed)
15
- * 3. Content is pasted in a nested node(i.e. inside a table, panel etc.).
12
+ * 1. Pasting link, media or text containing media(note: markdown link and images are allowed)
13
+ * 2. Content is pasted in a nested node(i.e. inside a table, panel etc.).
16
14
  * (grandParent node should be root doc for showing up the toolbar)
17
- * 4. Cursor is inside the codeblock.
15
+ * 3. Cursor is inside the codeblock.
18
16
  */
19
- if (!getBooleanFF('platform.editor.paste-options-toolbar')) {
20
- return false;
21
- }
22
17
  const $from = state.selection.$from;
23
18
  if (hasRuleNode(lastContentPasted.pastedSlice, state.schema)) {
24
19
  return false;
@@ -1,5 +1,7 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { TEXT_HIGHLIGHT_CLASS } from '../pm-plugins/constants';
3
+
4
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
3
5
  export const textHighlightStyle = css`
4
6
  .${TEXT_HIGHLIGHT_CLASS} {
5
7
  background-color: ${"var(--ds-background-accent-blue-subtlest, #E9F2FF)"};
@@ -1,6 +1,5 @@
1
1
  import { pasteOptionsToolbarMessages as messages } from '@atlaskit/editor-common/messages';
2
2
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
3
  import { changeToMarkdownWithAnalytics, changeToPlainTextWithAnalytics, changeToRichTextWithAnalytics, dropdownClickHandler } from './commands';
5
4
  import { PASTE_OPTIONS_TEST_ID, PASTE_TOOLBAR_CLASS, PASTE_TOOLBAR_ITEM_CLASS } from './pm-plugins/constants';
6
5
  import { pasteOptionsPluginKey, ToolbarDropdownOption } from './types';
@@ -10,15 +9,11 @@ export var isToolbarVisible = function isToolbarVisible(state, lastContentPasted
10
9
  var _$from$parent, _$from$node;
11
10
  /**
12
11
  * Conditions for not showing the toolbar:
13
- * 1. Feature flag is disabled
14
- * 2. Pasting link, media or text containing media(note: markdown link and images are allowed)
15
- * 3. Content is pasted in a nested node(i.e. inside a table, panel etc.).
12
+ * 1. Pasting link, media or text containing media(note: markdown link and images are allowed)
13
+ * 2. Content is pasted in a nested node(i.e. inside a table, panel etc.).
16
14
  * (grandParent node should be root doc for showing up the toolbar)
17
- * 4. Cursor is inside the codeblock.
15
+ * 3. Cursor is inside the codeblock.
18
16
  */
19
- if (!getBooleanFF('platform.editor.paste-options-toolbar')) {
20
- return false;
21
- }
22
17
  var $from = state.selection.$from;
23
18
  if (hasRuleNode(lastContentPasted.pastedSlice, state.schema)) {
24
19
  return false;
@@ -2,4 +2,6 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject;
3
3
  import { css } from '@emotion/react';
4
4
  import { TEXT_HIGHLIGHT_CLASS } from '../pm-plugins/constants';
5
+
6
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
5
7
  export var textHighlightStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n background-color: ", ";\n\n border-bottom: 2px solid\n ", ";\n }\n"])), TEXT_HIGHLIGHT_CLASS, "var(--ds-background-accent-blue-subtlest, #E9F2FF)", "var(--ds-background-accent-blue-subtler, #cce0ff)");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste-options-toolbar",
3
- "version": "1.0.3",
3
+ "version": "1.1.1",
4
4
  "description": "Paste options toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,15 +34,14 @@
34
34
  "./styles": "./src/styles.ts"
35
35
  },
36
36
  "dependencies": {
37
- "@atlaskit/editor-common": "^78.23.0",
38
- "@atlaskit/editor-markdown-transformer": "^5.4.0",
39
- "@atlaskit/editor-plugin-analytics": "^1.0.0",
40
- "@atlaskit/editor-plugin-paste": "^1.0.0",
41
- "@atlaskit/editor-prosemirror": "3.0.0",
42
- "@atlaskit/editor-shared-styles": "^2.9.0",
37
+ "@atlaskit/editor-common": "^78.37.0",
38
+ "@atlaskit/editor-markdown-transformer": "^5.5.0",
39
+ "@atlaskit/editor-plugin-analytics": "^1.1.0",
40
+ "@atlaskit/editor-plugin-paste": "^1.1.0",
41
+ "@atlaskit/editor-prosemirror": "4.0.0",
42
+ "@atlaskit/editor-shared-styles": "^2.10.0",
43
43
  "@atlaskit/icon": "^22.1.0",
44
- "@atlaskit/platform-feature-flags": "^0.2.4",
45
- "@atlaskit/tokens": "^1.43.0",
44
+ "@atlaskit/tokens": "^1.44.0",
46
45
  "@babel/runtime": "^7.0.0",
47
46
  "@emotion/react": "^11.7.1",
48
47
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -101,10 +100,5 @@
101
100
  "@atlassian/tangerine/project-structure"
102
101
  ]
103
102
  },
104
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
105
- "platform-feature-flags": {
106
- "platform.editor.paste-options-toolbar": {
107
- "type": "boolean"
108
- }
109
- }
103
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
110
104
  }