@atlaskit/editor-plugin-paste-options-toolbar 0.3.5 → 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 +12 -0
- package/dist/cjs/toolbar.js +3 -5
- package/dist/es2019/toolbar.js +3 -5
- package/dist/esm/toolbar.js +3 -5
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
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
|
+
|
|
9
|
+
## 0.3.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 0.3.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/toolbar.js
CHANGED
|
@@ -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.
|
|
22
|
-
* 3.
|
|
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
|
-
*
|
|
24
|
+
* 4. Cursor is inside the codeblock.
|
|
27
25
|
*/
|
|
28
26
|
if (!(0, _platformFeatureFlags.getBooleanFF)('platform.editor.paste-options-toolbar')) {
|
|
29
27
|
return false;
|
package/dist/es2019/toolbar.js
CHANGED
|
@@ -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.
|
|
15
|
-
* 3.
|
|
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
|
-
*
|
|
17
|
+
* 4. Cursor is inside the codeblock.
|
|
20
18
|
*/
|
|
21
19
|
if (!getBooleanFF('platform.editor.paste-options-toolbar')) {
|
|
22
20
|
return false;
|
package/dist/esm/toolbar.js
CHANGED
|
@@ -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.
|
|
15
|
-
* 3.
|
|
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
|
-
*
|
|
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.
|
|
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",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"releaseModel": "continuous",
|
|
15
15
|
"runReact18": false
|
|
16
16
|
},
|
|
17
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
17
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
18
18
|
"main": "dist/cjs/index.js",
|
|
19
19
|
"module": "dist/esm/index.js",
|
|
20
20
|
"module:es2019": "dist/es2019/index.js",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"./styles": "./src/styles.ts"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@atlaskit/editor-common": "^
|
|
38
|
-
"@atlaskit/editor-markdown-transformer": "^5.
|
|
37
|
+
"@atlaskit/editor-common": "^77.1.0",
|
|
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",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
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.
|
|
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"
|