@atlaskit/editor-plugin-copy-button 6.0.4 → 6.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,14 @@
1
1
  # @atlaskit/editor-plugin-copy-button
2
2
 
3
+ ## 6.0.5
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
+
3
12
  ## 6.0.4
4
13
 
5
14
  ### Patch Changes
@@ -74,12 +74,14 @@ function copyButtonPlugin() {
74
74
  return new _safePlugin.SafePlugin({
75
75
  key: _pluginKey.copyButtonPluginKey,
76
76
  state: {
77
+ // @ts-ignore - Workaround for help-center local consumption
77
78
  init: function init() {
78
79
  return {
79
80
  copied: false,
80
81
  markSelection: undefined
81
82
  };
82
83
  },
84
+ // @ts-ignore - Workaround for help-center local consumption
83
85
  apply: function apply(tr, currentPluginState) {
84
86
  var meta = tr.getMeta(_pluginKey.copyButtonPluginKey);
85
87
  if ((meta === null || meta === void 0 ? void 0 : meta.copied) !== undefined) {
@@ -116,6 +118,7 @@ function copyButtonPlugin() {
116
118
  }
117
119
  },
118
120
  props: {
121
+ // @ts-ignore - Workaround for help-center local consumption
119
122
  decorations: function decorations(_state) {
120
123
  // Showing visual hints for the hyperlink copy button has been disabled
121
124
  // due to an issue where invalid hyperlink marks cause the floating toolbar
@@ -66,12 +66,16 @@ export function copyButtonPlugin() {
66
66
  return new SafePlugin({
67
67
  key: copyButtonPluginKey,
68
68
  state: {
69
+ // @ts-ignore - Workaround for help-center local consumption
70
+
69
71
  init() {
70
72
  return {
71
73
  copied: false,
72
74
  markSelection: undefined
73
75
  };
74
76
  },
77
+ // @ts-ignore - Workaround for help-center local consumption
78
+
75
79
  apply(tr, currentPluginState) {
76
80
  const meta = tr.getMeta(copyButtonPluginKey);
77
81
  if ((meta === null || meta === void 0 ? void 0 : meta.copied) !== undefined) {
@@ -108,6 +112,8 @@ export function copyButtonPlugin() {
108
112
  }
109
113
  },
110
114
  props: {
115
+ // @ts-ignore - Workaround for help-center local consumption
116
+
111
117
  decorations(_state) {
112
118
  // Showing visual hints for the hyperlink copy button has been disabled
113
119
  // due to an issue where invalid hyperlink marks cause the floating toolbar
@@ -65,12 +65,14 @@ export function copyButtonPlugin() {
65
65
  return new SafePlugin({
66
66
  key: copyButtonPluginKey,
67
67
  state: {
68
+ // @ts-ignore - Workaround for help-center local consumption
68
69
  init: function init() {
69
70
  return {
70
71
  copied: false,
71
72
  markSelection: undefined
72
73
  };
73
74
  },
75
+ // @ts-ignore - Workaround for help-center local consumption
74
76
  apply: function apply(tr, currentPluginState) {
75
77
  var meta = tr.getMeta(copyButtonPluginKey);
76
78
  if ((meta === null || meta === void 0 ? void 0 : meta.copied) !== undefined) {
@@ -107,6 +109,7 @@ export function copyButtonPlugin() {
107
109
  }
108
110
  },
109
111
  props: {
112
+ // @ts-ignore - Workaround for help-center local consumption
110
113
  decorations: function decorations(_state) {
111
114
  // Showing visual hints for the hyperlink copy button has been disabled
112
115
  // due to an issue where invalid hyperlink marks cause the floating toolbar
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-copy-button",
3
- "version": "6.0.4",
3
+ "version": "6.0.5",
4
4
  "description": "editor-plugin-copy-button for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,11 +33,11 @@
33
33
  "@atlaskit/editor-prosemirror": "7.0.0",
34
34
  "@atlaskit/icon": "^29.0.0",
35
35
  "@atlaskit/platform-feature-flags": "^1.1.0",
36
- "@atlaskit/tmp-editor-statsig": "^13.35.0",
36
+ "@atlaskit/tmp-editor-statsig": "^13.42.0",
37
37
  "@babel/runtime": "^7.0.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "@atlaskit/editor-common": "^110.27.0",
40
+ "@atlaskit/editor-common": "^110.34.0",
41
41
  "react": "^18.2.0",
42
42
  "react-dom": "^18.2.0"
43
43
  },