@atlaskit/editor-plugin-hyperlink 21.0.2 → 21.2.0

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,35 @@
1
1
  # @atlaskit/editor-plugin-hyperlink
2
2
 
3
+ ## 21.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c4d3272bbafce`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c4d3272bbafce) -
8
+ Add an opt-in LinkPickerOptions.popupContainerSurface ('default' | 'none') that lets a custom link
9
+ picker component (e.g. RovoLinkPicker) suppress the editor's floating toolbar popup surface
10
+ (background, box-shadow, border-radius, padding) when it renders its own complete surface.
11
+ Threaded through FloatingToolbarConfig/Toolbar's new containerSurface prop. Defaults to the
12
+ existing wrapper surface; only a caller that explicitly opts in is affected.
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
18
+ ## 21.1.0
19
+
20
+ ### Minor Changes
21
+
22
+ - [`9df8889f51f21`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9df8889f51f21) -
23
+ Add an opt-in LinkPickerOptions.popupContainerSurface ('default' | 'none') that lets a custom link
24
+ picker component (e.g. RovoLinkPicker) suppress the editor's floating toolbar popup surface
25
+ (background, box-shadow, border-radius, padding) when it renders its own complete surface.
26
+ Threaded through FloatingToolbarConfig/Toolbar's new containerSurface prop. Defaults to the
27
+ existing wrapper surface; only a caller that explicitly opts in is affected.
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies
32
+
3
33
  ## 21.0.2
4
34
 
5
35
  ### Patch Changes
@@ -241,7 +241,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
241
241
  case 'EDIT_INSERTED':
242
242
  case 'INSERT':
243
243
  {
244
- var _options$linkPicker$p, _options$linkPicker, _options$linkPicker$p2, _options$linkPicker2;
244
+ var _options$linkPicker$p, _options$linkPicker, _options$linkPicker$p2, _options$linkPicker2, _options$linkPicker3;
245
245
  var _link;
246
246
  if (isEditLink(activeLinkMark) && activeLinkMark.node) {
247
247
  var _linkMark = activeLinkMark.node.marks.filter(function (mark) {
@@ -256,6 +256,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
256
256
  preventPopupOverflow: true,
257
257
  height: popupHeight,
258
258
  width: popupWidth,
259
+ containerSurface: options === null || options === void 0 || (_options$linkPicker3 = options.linkPicker) === null || _options$linkPicker3 === void 0 ? void 0 : _options$linkPicker3.popupContainerSurface,
259
260
  items: [{
260
261
  type: 'custom',
261
262
  fallback: [],
@@ -227,7 +227,7 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
227
227
  case 'EDIT_INSERTED':
228
228
  case 'INSERT':
229
229
  {
230
- var _options$linkPicker$p, _options$linkPicker, _options$linkPicker$p2, _options$linkPicker2;
230
+ var _options$linkPicker$p, _options$linkPicker, _options$linkPicker$p2, _options$linkPicker2, _options$linkPicker3;
231
231
  let link;
232
232
  if (isEditLink(activeLinkMark) && activeLinkMark.node) {
233
233
  const linkMark = activeLinkMark.node.marks.filter(mark => mark.type === state.schema.marks.link);
@@ -241,6 +241,7 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
241
241
  preventPopupOverflow: true,
242
242
  height: popupHeight,
243
243
  width: popupWidth,
244
+ containerSurface: options === null || options === void 0 ? void 0 : (_options$linkPicker3 = options.linkPicker) === null || _options$linkPicker3 === void 0 ? void 0 : _options$linkPicker3.popupContainerSurface,
244
245
  items: [{
245
246
  type: 'custom',
246
247
  fallback: [],
@@ -232,7 +232,7 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
232
232
  case 'EDIT_INSERTED':
233
233
  case 'INSERT':
234
234
  {
235
- var _options$linkPicker$p, _options$linkPicker, _options$linkPicker$p2, _options$linkPicker2;
235
+ var _options$linkPicker$p, _options$linkPicker, _options$linkPicker$p2, _options$linkPicker2, _options$linkPicker3;
236
236
  var _link;
237
237
  if (isEditLink(activeLinkMark) && activeLinkMark.node) {
238
238
  var _linkMark = activeLinkMark.node.marks.filter(function (mark) {
@@ -247,6 +247,7 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
247
247
  preventPopupOverflow: true,
248
248
  height: popupHeight,
249
249
  width: popupWidth,
250
+ containerSurface: options === null || options === void 0 || (_options$linkPicker3 = options.linkPicker) === null || _options$linkPicker3 === void 0 ? void 0 : _options$linkPicker3.popupContainerSurface,
250
251
  items: [{
251
252
  type: 'custom',
252
253
  fallback: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-hyperlink",
3
- "version": "21.0.2",
3
+ "version": "21.2.0",
4
4
  "description": "Hyperlink plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^57.5.0",
24
+ "@atlaskit/adf-schema": "^57.6.0",
25
25
  "@atlaskit/analytics-next": "^12.5.0",
26
26
  "@atlaskit/editor-plugin-analytics": "^19.0.0",
27
27
  "@atlaskit/editor-plugin-card": "^25.0.0",
@@ -30,23 +30,23 @@
30
30
  "@atlaskit/editor-plugin-primary-toolbar": "^20.0.0",
31
31
  "@atlaskit/editor-plugin-selection-toolbar": "^20.0.0",
32
32
  "@atlaskit/editor-plugin-toolbar": "^16.0.0",
33
- "@atlaskit/editor-plugin-ui-control-registry": "^13.0.0",
33
+ "@atlaskit/editor-plugin-ui-control-registry": "^13.1.0",
34
34
  "@atlaskit/editor-plugin-user-intent": "^17.0.0",
35
35
  "@atlaskit/editor-prosemirror": "^9.0.0",
36
36
  "@atlaskit/editor-toolbar": "^2.7.0",
37
37
  "@atlaskit/editor-toolbar-model": "^1.2.0",
38
- "@atlaskit/editor-ui-control-model": "^2.9.0",
38
+ "@atlaskit/editor-ui-control-model": "^2.10.0",
39
39
  "@atlaskit/icon": "^37.7.0",
40
40
  "@atlaskit/platform-feature-experiments": "^0.3.0",
41
41
  "@atlaskit/platform-feature-flags": "^2.2.0",
42
42
  "@atlaskit/prosemirror-input-rules": "^4.1.0",
43
- "@atlaskit/tmp-editor-statsig": "^201.0.0",
43
+ "@atlaskit/tmp-editor-statsig": "^202.0.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@emotion/react": "^11.7.1",
46
46
  "uuid": "^11.1.1"
47
47
  },
48
48
  "peerDependencies": {
49
- "@atlaskit/editor-common": "^123.2.0",
49
+ "@atlaskit/editor-common": "^123.5.0",
50
50
  "react": "^18.2.0 || ^19.2.0",
51
51
  "react-dom": "^18.2.0 || ^19.2.0",
52
52
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"