@atlaskit/editor-plugin-paste-options-toolbar 1.1.0 → 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,118 +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
+
3
11
  ## 1.1.0
4
12
 
5
13
  ### Minor Changes
6
14
 
7
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934) [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) - bumped editor-prosemirror version to 4.0.0
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
8
18
 
9
19
  ### Patch Changes
10
20
 
11
- - Updated dependencies
21
+ - Updated dependencies
12
22
 
13
23
  ## 1.0.3
14
24
 
15
25
  ### Patch Changes
16
26
 
17
- - [#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.
18
30
 
19
31
  ## 1.0.2
20
32
 
21
33
  ### Patch Changes
22
34
 
23
- - [#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`
24
38
 
25
39
  ## 1.0.1
26
40
 
27
41
  ### Patch Changes
28
42
 
29
- - Updated dependencies
43
+ - Updated dependencies
30
44
 
31
45
  ## 1.0.0
32
46
 
33
47
  ### Major Changes
34
48
 
35
- - [#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.
36
53
 
37
54
  ### Patch Changes
38
55
 
39
- - Updated dependencies
56
+ - Updated dependencies
40
57
 
41
58
  ## 0.3.9
42
59
 
43
60
  ### Patch Changes
44
61
 
45
- - [#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
46
65
 
47
66
  ## 0.3.8
48
67
 
49
68
  ### Patch Changes
50
69
 
51
- - [#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
52
- - 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
53
74
 
54
75
  ## 0.3.7
55
76
 
56
77
  ### Patch Changes
57
78
 
58
- - [#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
59
82
 
60
83
  ## 0.3.6
61
84
 
62
85
  ### Patch Changes
63
86
 
64
- - Updated dependencies
87
+ - Updated dependencies
65
88
 
66
89
  ## 0.3.5
67
90
 
68
91
  ### Patch Changes
69
92
 
70
- - [#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
71
96
 
72
97
  ## 0.3.4
73
98
 
74
99
  ### Patch Changes
75
100
 
76
- - Updated dependencies
101
+ - Updated dependencies
77
102
 
78
103
  ## 0.3.3
79
104
 
80
105
  ### Patch Changes
81
106
 
82
- - Updated dependencies
107
+ - Updated dependencies
83
108
 
84
109
  ## 0.3.2
85
110
 
86
111
  ### Patch Changes
87
112
 
88
- - [#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
89
116
 
90
117
  ## 0.3.1
91
118
 
92
119
  ### Patch Changes
93
120
 
94
- - Updated dependencies
121
+ - Updated dependencies
95
122
 
96
123
  ## 0.3.0
97
124
 
98
125
  ### Minor Changes
99
126
 
100
- - [#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.
101
131
 
102
132
  ## 0.2.3
103
133
 
104
134
  ### Patch Changes
105
135
 
106
- - [#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
107
139
 
108
140
  ## 0.2.2
109
141
 
110
142
  ### Patch Changes
111
143
 
112
- - Updated dependencies
144
+ - Updated dependencies
113
145
 
114
146
  ## 0.2.1
115
147
 
116
148
  ### Patch Changes
117
149
 
118
- - [#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;
@@ -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,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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste-options-toolbar",
3
- "version": "1.1.0",
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.31.0",
37
+ "@atlaskit/editor-common": "^78.37.0",
38
38
  "@atlaskit/editor-markdown-transformer": "^5.5.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.1.0",
40
40
  "@atlaskit/editor-plugin-paste": "^1.1.0",
41
41
  "@atlaskit/editor-prosemirror": "4.0.0",
42
- "@atlaskit/editor-shared-styles": "^2.9.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
  }