@atlaskit/editor-plugin-copy-button 23.0.0 → 23.0.2

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,22 @@
1
1
  # @atlaskit/editor-plugin-copy-button
2
2
 
3
+ ## 23.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 23.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`457c77d8f6992`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/457c77d8f6992) -
14
+ Behind `platform-dst-top-layer-tooltip`: tooltips whose content changes on press (for example
15
+ "Copy" to "Copied!") stay open to show the new content. `@atlaskit/editor-common` floating toolbar
16
+ buttons and `@atlaskit/smart-card` stack-item actions add an optional
17
+ `hasNewContentOnTriggerClick` prop.
18
+ - Updated dependencies
19
+
3
20
  ## 23.0.0
4
21
 
5
22
  ### Patch Changes
@@ -89,6 +89,7 @@ function getCopyButtonConfig(options, hoverDecoration, editorAnalyticsApi, api)
89
89
  title: formatMessage(copyButtonState !== null && copyButtonState !== void 0 && copyButtonState.copied ? _messages.default.copiedToClipboard : _messages.default.copyToClipboard)
90
90
  }, buttonActionHandlers), {}, {
91
91
  hideTooltipOnClick: false,
92
+ hasNewContentOnTriggerClick: true,
92
93
  tabIndex: null
93
94
  });
94
95
  }
@@ -81,6 +81,7 @@ export function getCopyButtonConfig(options, hoverDecoration, editorAnalyticsApi
81
81
  title: formatMessage(copyButtonState !== null && copyButtonState !== void 0 && copyButtonState.copied ? commonMessages.copiedToClipboard : commonMessages.copyToClipboard),
82
82
  ...buttonActionHandlers,
83
83
  hideTooltipOnClick: false,
84
+ hasNewContentOnTriggerClick: true,
84
85
  tabIndex: null
85
86
  };
86
87
  }
@@ -81,6 +81,7 @@ export function getCopyButtonConfig(options, hoverDecoration, editorAnalyticsApi
81
81
  title: formatMessage(copyButtonState !== null && copyButtonState !== void 0 && copyButtonState.copied ? commonMessages.copiedToClipboard : commonMessages.copyToClipboard)
82
82
  }, buttonActionHandlers), {}, {
83
83
  hideTooltipOnClick: false,
84
+ hasNewContentOnTriggerClick: true,
84
85
  tabIndex: null
85
86
  });
86
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-copy-button",
3
- "version": "23.0.0",
3
+ "version": "23.0.2",
4
4
  "description": "editor-plugin-copy-button for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -24,11 +24,11 @@
24
24
  "@atlaskit/editor-plugin-decorations": "^23.0.0",
25
25
  "@atlaskit/editor-prosemirror": "^9.0.0",
26
26
  "@atlaskit/icon": "^38.0.0",
27
- "@atlaskit/tmp-editor-statsig": "^219.0.0",
27
+ "@atlaskit/tmp-editor-statsig": "^220.0.0",
28
28
  "@babel/runtime": "^7.0.0"
29
29
  },
30
30
  "peerDependencies": {
31
- "@atlaskit/editor-common": "^127.0.0",
31
+ "@atlaskit/editor-common": "^127.2.0",
32
32
  "react": "^18.2.0 || ^19.2.0",
33
33
  "react-dom": "^18.2.0 || ^19.2.0"
34
34
  },