@atlaskit/editor-plugin-copy-button 22.0.9 → 23.0.1

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.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`457c77d8f6992`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/457c77d8f6992) -
8
+ Behind `platform-dst-top-layer-tooltip`: tooltips whose content changes on press (for example
9
+ "Copy" to "Copied!") stay open to show the new content. `@atlaskit/editor-common` floating toolbar
10
+ buttons and `@atlaskit/smart-card` stack-item actions add an optional
11
+ `hasNewContentOnTriggerClick` prop.
12
+ - Updated dependencies
13
+
14
+ ## 23.0.0
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 22.0.9
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": "22.0.9",
3
+ "version": "23.0.1",
4
4
  "description": "editor-plugin-copy-button for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -19,16 +19,16 @@
19
19
  "sideEffects": false,
20
20
  "atlaskit:src": "src/index.ts",
21
21
  "dependencies": {
22
- "@atlaskit/editor-plugin-accessibility-utils": "^22.0.0",
23
- "@atlaskit/editor-plugin-analytics": "^22.0.0",
24
- "@atlaskit/editor-plugin-decorations": "^22.0.0",
22
+ "@atlaskit/editor-plugin-accessibility-utils": "^23.0.0",
23
+ "@atlaskit/editor-plugin-analytics": "^23.0.0",
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": "^218.0.0",
27
+ "@atlaskit/tmp-editor-statsig": "^219.0.0",
28
28
  "@babel/runtime": "^7.0.0"
29
29
  },
30
30
  "peerDependencies": {
31
- "@atlaskit/editor-common": "^126.4.0",
31
+ "@atlaskit/editor-common": "^127.1.0",
32
32
  "react": "^18.2.0 || ^19.2.0",
33
33
  "react-dom": "^18.2.0 || ^19.2.0"
34
34
  },