@atlaskit/editor-plugin-paste-options-toolbar 0.3.6 → 0.3.7

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,11 @@
1
1
  # @atlaskit/editor-plugin-paste-options-toolbar
2
2
 
3
+ ## 0.3.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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
8
+
3
9
  ## 0.3.6
4
10
 
5
11
  ### Patch Changes
@@ -18,12 +18,10 @@ var isToolbarVisible = exports.isToolbarVisible = function isToolbarVisible(stat
18
18
  /**
19
19
  * Conditions for not showing the toolbar:
20
20
  * 1. Feature flag is disabled
21
- * 2. Content is pasted at gap cursor
22
- * 3. Pasting horizontal rule
23
- * 4. Pasting link, media or text containing media(note: markdown link and images are allowed)
24
- * 5. Content is pasted in a nested node(i.e. inside a table, panel etc.).
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.).
25
23
  * (grandParent node should be root doc for showing up the toolbar)
26
- * 6. Cursor is inside the codeblock.
24
+ * 4. Cursor is inside the codeblock.
27
25
  */
28
26
  if (!(0, _platformFeatureFlags.getBooleanFF)('platform.editor.paste-options-toolbar')) {
29
27
  return false;
@@ -11,12 +11,10 @@ export const isToolbarVisible = (state, lastContentPasted) => {
11
11
  /**
12
12
  * Conditions for not showing the toolbar:
13
13
  * 1. Feature flag is disabled
14
- * 2. Content is pasted at gap cursor
15
- * 3. Pasting horizontal rule
16
- * 4. Pasting link, media or text containing media(note: markdown link and images are allowed)
17
- * 5. Content is pasted in a nested node(i.e. inside a table, panel etc.).
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.).
18
16
  * (grandParent node should be root doc for showing up the toolbar)
19
- * 6. Cursor is inside the codeblock.
17
+ * 4. Cursor is inside the codeblock.
20
18
  */
21
19
  if (!getBooleanFF('platform.editor.paste-options-toolbar')) {
22
20
  return false;
@@ -11,12 +11,10 @@ export var isToolbarVisible = function isToolbarVisible(state, lastContentPasted
11
11
  /**
12
12
  * Conditions for not showing the toolbar:
13
13
  * 1. Feature flag is disabled
14
- * 2. Content is pasted at gap cursor
15
- * 3. Pasting horizontal rule
16
- * 4. Pasting link, media or text containing media(note: markdown link and images are allowed)
17
- * 5. Content is pasted in a nested node(i.e. inside a table, panel etc.).
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.).
18
16
  * (grandParent node should be root doc for showing up the toolbar)
19
- * 6. Cursor is inside the codeblock.
17
+ * 4. Cursor is inside the codeblock.
20
18
  */
21
19
  if (!getBooleanFF('platform.editor.paste-options-toolbar')) {
22
20
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste-options-toolbar",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Paste options toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "./styles": "./src/styles.ts"
35
35
  },
36
36
  "dependencies": {
37
- "@atlaskit/editor-common": "^77.0.0",
37
+ "@atlaskit/editor-common": "^77.1.0",
38
38
  "@atlaskit/editor-markdown-transformer": "^5.3.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
40
40
  "@atlaskit/editor-plugin-paste": "^0.2.0",
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/editor-shared-styles": "^2.9.0",
43
43
  "@atlaskit/icon": "^22.0.0",
44
44
  "@atlaskit/platform-feature-flags": "^0.2.4",
45
- "@atlaskit/tokens": "^1.34.0",
45
+ "@atlaskit/tokens": "^1.35.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@emotion/react": "^11.7.1",
48
48
  "react-intl-next": "npm:react-intl@^5.18.1"