@atlaskit/editor-presets 20.0.1 → 20.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,15 @@
1
1
  # @atlaskit/editor-presets
2
2
 
3
+ ## 20.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a4adb021ec6f2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a4adb021ec6f2) -
8
+ Add `enableCopyLinkToSelection` block menu option (default `false`) so the "Copy link" item and
9
+ its keyboard shortcut are opt-in per editor preset, and enable it for Confluence presets. The
10
+ option is only respected behind the `platform_editor_block_menu_copy_link_opt_in` feature gate
11
+ - Updated dependencies
12
+
3
13
  ## 20.0.1
4
14
 
5
15
  ### Patch Changes
@@ -23,6 +23,8 @@ function blockMenuPluginOptions(_ref) {
23
23
  var options = _ref.options;
24
24
  return {
25
25
  getLinkPath: options.getLinkPath,
26
- blockLinkHashPrefix: options.blockLinkHashPrefix
26
+ blockLinkHashPrefix: options.blockLinkHashPrefix,
27
+ // Confluence assigns block localIds and handles block link hashes, so Copy link is supported
28
+ enableCopyLinkToSelection: true
27
29
  };
28
30
  }
@@ -18,6 +18,8 @@ export function blockMenuPluginOptions({
18
18
  }) {
19
19
  return {
20
20
  getLinkPath: options.getLinkPath,
21
- blockLinkHashPrefix: options.blockLinkHashPrefix
21
+ blockLinkHashPrefix: options.blockLinkHashPrefix,
22
+ // Confluence assigns block localIds and handles block link hashes, so Copy link is supported
23
+ enableCopyLinkToSelection: true
22
24
  };
23
25
  }
@@ -17,6 +17,8 @@ export function blockMenuPluginOptions(_ref) {
17
17
  var options = _ref.options;
18
18
  return {
19
19
  getLinkPath: options.getLinkPath,
20
- blockLinkHashPrefix: options.blockLinkHashPrefix
20
+ blockLinkHashPrefix: options.blockLinkHashPrefix,
21
+ // Confluence assigns block localIds and handles block link hashes, so Copy link is supported
22
+ enableCopyLinkToSelection: true
21
23
  };
22
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-presets",
3
- "version": "20.0.1",
3
+ "version": "20.0.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Public editor presets for Atlassian Editor containing base configurations for Confluence and other products",
6
6
  "publishConfig": {
@@ -30,7 +30,7 @@
30
30
  "@atlaskit/editor-plugin-batch-attribute-updates": "^26.0.0",
31
31
  "@atlaskit/editor-plugin-better-type-history": "^26.0.0",
32
32
  "@atlaskit/editor-plugin-block-controls": "^27.0.0",
33
- "@atlaskit/editor-plugin-block-menu": "^25.0.0",
33
+ "@atlaskit/editor-plugin-block-menu": "^25.1.0",
34
34
  "@atlaskit/editor-plugin-block-type": "^30.0.0",
35
35
  "@atlaskit/editor-plugin-border": "^26.0.0",
36
36
  "@atlaskit/editor-plugin-breakout": "^26.0.0",
@@ -80,7 +80,7 @@
80
80
  "@atlaskit/editor-plugin-loom": "^28.0.0",
81
81
  "@atlaskit/editor-plugin-media": "^28.0.0",
82
82
  "@atlaskit/editor-plugin-media-insert": "^44.0.0",
83
- "@atlaskit/editor-plugin-mentions": "^28.0.0",
83
+ "@atlaskit/editor-plugin-mentions": "^28.1.0",
84
84
  "@atlaskit/editor-plugin-metrics": "^27.0.0",
85
85
  "@atlaskit/editor-plugin-panel": "^28.0.0",
86
86
  "@atlaskit/editor-plugin-paste": "^27.0.0",
@@ -95,7 +95,7 @@
95
95
  "@atlaskit/editor-plugin-selection-extension": "^29.0.0",
96
96
  "@atlaskit/editor-plugin-selection-marker": "^26.0.0",
97
97
  "@atlaskit/editor-plugin-selection-toolbar": "^27.0.0",
98
- "@atlaskit/editor-plugin-show-diff": "^24.0.0",
98
+ "@atlaskit/editor-plugin-show-diff": "^24.1.0",
99
99
  "@atlaskit/editor-plugin-status": "^27.0.0",
100
100
  "@atlaskit/editor-plugin-submit-editor": "^26.0.0",
101
101
  "@atlaskit/editor-plugin-synced-block": "^24.0.0",
@@ -116,13 +116,13 @@
116
116
  "@atlaskit/editor-plugin-width": "^27.0.0",
117
117
  "@atlaskit/platform-feature-experiments": "^0.3.0",
118
118
  "@atlaskit/platform-feature-flags": "^2.2.0",
119
- "@atlaskit/tmp-editor-statsig": "^228.0.0",
119
+ "@atlaskit/tmp-editor-statsig": "^229.0.0",
120
120
  "@atlassian/ari": "^3.19.0",
121
121
  "@atlassian/editor-plugin-agent-managed-extension": "^16.0.0",
122
122
  "@babel/runtime": "^7.0.0"
123
123
  },
124
124
  "peerDependencies": {
125
- "@atlaskit/editor-common": "^130.1.0",
125
+ "@atlaskit/editor-common": "^130.3.0",
126
126
  "react": "^18.2.0 || ^19.2.0",
127
127
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
128
128
  },