@atlaskit/editor-plugin-code-block 25.0.0 → 25.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,16 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block
|
|
2
2
|
|
|
3
|
+
## 25.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
|
+
|
|
3
14
|
## 25.0.0
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -198,6 +198,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig() {
|
|
|
198
198
|
onFocus: _codeBlockCopySelectionPlugin.provideVisualFeedbackForCopyButton,
|
|
199
199
|
onBlur: _codeBlockCopySelectionPlugin.removeVisualFeedbackForCopyButton,
|
|
200
200
|
hideTooltipOnClick: false,
|
|
201
|
+
hasNewContentOnTriggerClick: true,
|
|
201
202
|
disabled: codeBlockState.isNodeSelected,
|
|
202
203
|
tabIndex: null
|
|
203
204
|
}, separator];
|
|
@@ -168,6 +168,7 @@ export const getToolbarConfig = (allowCopyToClipboard = false, api, overrideLang
|
|
|
168
168
|
onFocus: provideVisualFeedbackForCopyButton,
|
|
169
169
|
onBlur: removeVisualFeedbackForCopyButton,
|
|
170
170
|
hideTooltipOnClick: false,
|
|
171
|
+
hasNewContentOnTriggerClick: true,
|
|
171
172
|
disabled: codeBlockState.isNodeSelected,
|
|
172
173
|
tabIndex: null
|
|
173
174
|
}, separator];
|
|
@@ -189,6 +189,7 @@ export var getToolbarConfig = function getToolbarConfig() {
|
|
|
189
189
|
onFocus: provideVisualFeedbackForCopyButton,
|
|
190
190
|
onBlur: removeVisualFeedbackForCopyButton,
|
|
191
191
|
hideTooltipOnClick: false,
|
|
192
|
+
hasNewContentOnTriggerClick: true,
|
|
192
193
|
disabled: codeBlockState.isNodeSelected,
|
|
193
194
|
tabIndex: null
|
|
194
195
|
}, separator];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "25.0.
|
|
3
|
+
"version": "25.0.1",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@compiled/react": "^1.0.2"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^127.
|
|
54
|
+
"@atlaskit/editor-common": "^127.1.0",
|
|
55
55
|
"react": "^18.2.0 || ^19.2.0",
|
|
56
56
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
57
57
|
},
|