@atlaskit/editor-plugin-paste-options-toolbar 7.0.4 → 7.0.5

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,13 @@
1
1
  # @atlaskit/editor-plugin-paste-options-toolbar
2
2
 
3
+ ## 7.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`55920a92e882a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/55920a92e882a) -
8
+ tsignores added for help-center local consumpton removed
9
+ - Updated dependencies
10
+
3
11
  ## 7.0.4
4
12
 
5
13
  ### Patch Changes
@@ -25,30 +25,20 @@ function createPlugin(dispatch) {
25
25
  richTextSlice: _model.Slice.empty,
26
26
  selectedOption: _types.ToolbarDropdownOption.None
27
27
  }),
28
- // @ts-ignore - Workaround for help-center local consumption
29
28
  view: function view(editorView) {
30
29
  return {
31
- // @ts-ignore - Workaround for help-center local consumption
32
30
  update: function update(view, prevState) {
33
31
  return prevState;
34
32
  }
35
33
  };
36
34
  },
37
35
  props: {
38
- // @ts-ignore - Workaround for help-center local consumption
39
-
40
36
  handleDOMEvents: {
41
37
  // Hide toolbar when clicked outside the editor
42
- // @ts-ignore - Workaround for help-center local consumption
43
-
44
38
  blur: _commands.checkAndHideToolbar,
45
39
  // Hide toolbar when clicked anywhere within the editor, tr.getMeta('pointer') does not work if clicked on the same line after pasting so relying on mousedown event
46
- // @ts-ignore - Workaround for help-center local consumption
47
-
48
40
  mousedown: _commands.checkAndHideToolbar
49
41
  },
50
- // @ts-ignore - Workaround for help-center local consumption
51
-
52
42
  handleKeyDown: function handleKeyDown(view) {
53
43
  (0, _commands.checkAndHideToolbar)(view);
54
44
  return false;
@@ -19,32 +19,20 @@ export function createPlugin(dispatch) {
19
19
  richTextSlice: Slice.empty,
20
20
  selectedOption: ToolbarDropdownOption.None
21
21
  }),
22
- // @ts-ignore - Workaround for help-center local consumption
23
-
24
22
  view(editorView) {
25
23
  return {
26
- // @ts-ignore - Workaround for help-center local consumption
27
-
28
24
  update(view, prevState) {
29
25
  return prevState;
30
26
  }
31
27
  };
32
28
  },
33
29
  props: {
34
- // @ts-ignore - Workaround for help-center local consumption
35
-
36
30
  handleDOMEvents: {
37
31
  // Hide toolbar when clicked outside the editor
38
- // @ts-ignore - Workaround for help-center local consumption
39
-
40
32
  blur: checkAndHideToolbar,
41
33
  // Hide toolbar when clicked anywhere within the editor, tr.getMeta('pointer') does not work if clicked on the same line after pasting so relying on mousedown event
42
- // @ts-ignore - Workaround for help-center local consumption
43
-
44
34
  mousedown: checkAndHideToolbar
45
35
  },
46
- // @ts-ignore - Workaround for help-center local consumption
47
-
48
36
  handleKeyDown: view => {
49
37
  checkAndHideToolbar(view);
50
38
  return false;
@@ -19,30 +19,20 @@ export function createPlugin(dispatch) {
19
19
  richTextSlice: Slice.empty,
20
20
  selectedOption: ToolbarDropdownOption.None
21
21
  }),
22
- // @ts-ignore - Workaround for help-center local consumption
23
22
  view: function view(editorView) {
24
23
  return {
25
- // @ts-ignore - Workaround for help-center local consumption
26
24
  update: function update(view, prevState) {
27
25
  return prevState;
28
26
  }
29
27
  };
30
28
  },
31
29
  props: {
32
- // @ts-ignore - Workaround for help-center local consumption
33
-
34
30
  handleDOMEvents: {
35
31
  // Hide toolbar when clicked outside the editor
36
- // @ts-ignore - Workaround for help-center local consumption
37
-
38
32
  blur: checkAndHideToolbar,
39
33
  // Hide toolbar when clicked anywhere within the editor, tr.getMeta('pointer') does not work if clicked on the same line after pasting so relying on mousedown event
40
- // @ts-ignore - Workaround for help-center local consumption
41
-
42
34
  mousedown: checkAndHideToolbar
43
35
  },
44
- // @ts-ignore - Workaround for help-center local consumption
45
-
46
36
  handleKeyDown: function handleKeyDown(view) {
47
37
  checkAndHideToolbar(view);
48
38
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste-options-toolbar",
3
- "version": "7.0.4",
3
+ "version": "7.0.5",
4
4
  "description": "Paste options toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,19 +35,16 @@
35
35
  "@atlaskit/editor-prosemirror": "7.0.0",
36
36
  "@atlaskit/editor-shared-styles": "^3.10.0",
37
37
  "@atlaskit/icon": "^29.0.0",
38
- "@atlaskit/tokens": "^8.3.0",
39
38
  "@babel/runtime": "^7.0.0",
40
39
  "@emotion/react": "^11.7.1",
41
40
  "react-intl-next": "npm:react-intl@^5.18.1"
42
41
  },
43
42
  "peerDependencies": {
44
- "@atlaskit/editor-common": "^110.34.0",
43
+ "@atlaskit/editor-common": "^110.36.0",
45
44
  "react": "^18.2.0",
46
45
  "react-dom": "^18.2.0"
47
46
  },
48
47
  "devDependencies": {
49
- "@af/visual-regression": "workspace:^",
50
- "@atlaskit/ssr": "workspace:^",
51
48
  "@testing-library/react": "^13.4.0",
52
49
  "wait-for-expect": "^1.2.0"
53
50
  },