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

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,20 @@
1
1
  # @atlaskit/editor-plugin-paste-options-toolbar
2
2
 
3
+ ## 7.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4d676bbdb3ce6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4d676bbdb3ce6) -
8
+ ts-ignore added temporarily to unblock local consumption for help-center, will be removed once
9
+ project refs are setup
10
+ - Updated dependencies
11
+
12
+ ## 7.0.3
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 7.0.2
4
19
 
5
20
  ### Patch Changes
@@ -25,20 +25,30 @@ 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
28
29
  view: function view(editorView) {
29
30
  return {
31
+ // @ts-ignore - Workaround for help-center local consumption
30
32
  update: function update(view, prevState) {
31
33
  return prevState;
32
34
  }
33
35
  };
34
36
  },
35
37
  props: {
38
+ // @ts-ignore - Workaround for help-center local consumption
39
+
36
40
  handleDOMEvents: {
37
41
  // Hide toolbar when clicked outside the editor
42
+ // @ts-ignore - Workaround for help-center local consumption
43
+
38
44
  blur: _commands.checkAndHideToolbar,
39
45
  // 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
+
40
48
  mousedown: _commands.checkAndHideToolbar
41
49
  },
50
+ // @ts-ignore - Workaround for help-center local consumption
51
+
42
52
  handleKeyDown: function handleKeyDown(view) {
43
53
  (0, _commands.checkAndHideToolbar)(view);
44
54
  return false;
@@ -19,20 +19,32 @@ 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
24
  view(editorView) {
23
25
  return {
26
+ // @ts-ignore - Workaround for help-center local consumption
27
+
24
28
  update(view, prevState) {
25
29
  return prevState;
26
30
  }
27
31
  };
28
32
  },
29
33
  props: {
34
+ // @ts-ignore - Workaround for help-center local consumption
35
+
30
36
  handleDOMEvents: {
31
37
  // Hide toolbar when clicked outside the editor
38
+ // @ts-ignore - Workaround for help-center local consumption
39
+
32
40
  blur: checkAndHideToolbar,
33
41
  // 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
+
34
44
  mousedown: checkAndHideToolbar
35
45
  },
46
+ // @ts-ignore - Workaround for help-center local consumption
47
+
36
48
  handleKeyDown: view => {
37
49
  checkAndHideToolbar(view);
38
50
  return false;
@@ -19,20 +19,30 @@ 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
22
23
  view: function view(editorView) {
23
24
  return {
25
+ // @ts-ignore - Workaround for help-center local consumption
24
26
  update: function update(view, prevState) {
25
27
  return prevState;
26
28
  }
27
29
  };
28
30
  },
29
31
  props: {
32
+ // @ts-ignore - Workaround for help-center local consumption
33
+
30
34
  handleDOMEvents: {
31
35
  // Hide toolbar when clicked outside the editor
36
+ // @ts-ignore - Workaround for help-center local consumption
37
+
32
38
  blur: checkAndHideToolbar,
33
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
40
+ // @ts-ignore - Workaround for help-center local consumption
41
+
34
42
  mousedown: checkAndHideToolbar
35
43
  },
44
+ // @ts-ignore - Workaround for help-center local consumption
45
+
36
46
  handleKeyDown: function handleKeyDown(view) {
37
47
  checkAndHideToolbar(view);
38
48
  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.2",
3
+ "version": "7.0.4",
4
4
  "description": "Paste options toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,15 +33,15 @@
33
33
  "@atlaskit/editor-plugin-analytics": "^6.2.0",
34
34
  "@atlaskit/editor-plugin-paste": "^7.4.0",
35
35
  "@atlaskit/editor-prosemirror": "7.0.0",
36
- "@atlaskit/editor-shared-styles": "^3.8.0",
37
- "@atlaskit/icon": "^28.5.0",
38
- "@atlaskit/tokens": "^8.0.0",
36
+ "@atlaskit/editor-shared-styles": "^3.10.0",
37
+ "@atlaskit/icon": "^29.0.0",
38
+ "@atlaskit/tokens": "^8.3.0",
39
39
  "@babel/runtime": "^7.0.0",
40
40
  "@emotion/react": "^11.7.1",
41
41
  "react-intl-next": "npm:react-intl@^5.18.1"
42
42
  },
43
43
  "peerDependencies": {
44
- "@atlaskit/editor-common": "^110.24.0",
44
+ "@atlaskit/editor-common": "^110.34.0",
45
45
  "react": "^18.2.0",
46
46
  "react-dom": "^18.2.0"
47
47
  },