@atlaskit/editor-plugin-floating-toolbar 15.0.3 → 15.1.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,30 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 15.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 15.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`234fda770bd2b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/234fda770bd2b) -
14
+ [ux] Fixed unsafe styles that distorted the inline (top-layer) tooltip/popover by excluding
15
+ top-layer elements from the offending selectors via `:not(:where([popover], dialog))` (and
16
+ `:nth-last-child(... of ...)` for positional selectors). The `:where()` wrapper keeps the guard at
17
+ zero specificity, so matching is otherwise unchanged, and the guards are no-ops for the legacy
18
+ portalled tooltip.
19
+
20
+ `@atlassian/gemini` additionally ignores Emotion's `":nth-last-child"` server-side-rendering
21
+ console warning, which it already ignored for `":first-child"` and `":nth-child"`
22
+ (emotion-js/emotion#1105).
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 15.0.3
4
29
 
5
30
  ### Patch Changes
@@ -548,7 +548,7 @@ var toolbarOverflow = function toolbarOverflow(_ref2) {
548
548
  marginLeft: "var(--ds-space-100, 8px)"
549
549
  }),
550
550
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
551
- '> div:last-child': {
551
+ '> div:nth-last-child(1 of :not(:where([popover], dialog)))': {
552
552
  marginRight: "var(--ds-space-100, 8px)"
553
553
  }
554
554
  }
@@ -568,7 +568,7 @@ var toolbarOverflow = function toolbarOverflow(_ref2) {
568
568
  marginLeft: 0
569
569
  },
570
570
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
571
- '> div:last-child': {
571
+ '> div:nth-last-child(1 of :not(:where([popover], dialog)))': {
572
572
  marginRight: 0
573
573
  }
574
574
  }
@@ -513,7 +513,7 @@ css({
513
513
  marginLeft: "var(--ds-space-100, 8px)"
514
514
  }),
515
515
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
516
- '> div:last-child': {
516
+ '> div:nth-last-child(1 of :not(:where([popover], dialog)))': {
517
517
  marginRight: "var(--ds-space-100, 8px)"
518
518
  }
519
519
  }
@@ -533,7 +533,7 @@ css({
533
533
  marginLeft: 0
534
534
  },
535
535
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
536
- '> div:last-child': {
536
+ '> div:nth-last-child(1 of :not(:where([popover], dialog)))': {
537
537
  marginRight: 0
538
538
  }
539
539
  }
@@ -542,7 +542,7 @@ var toolbarOverflow = function toolbarOverflow(_ref2) {
542
542
  marginLeft: "var(--ds-space-100, 8px)"
543
543
  }),
544
544
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
545
- '> div:last-child': {
545
+ '> div:nth-last-child(1 of :not(:where([popover], dialog)))': {
546
546
  marginRight: "var(--ds-space-100, 8px)"
547
547
  }
548
548
  }
@@ -562,7 +562,7 @@ var toolbarOverflow = function toolbarOverflow(_ref2) {
562
562
  marginLeft: 0
563
563
  },
564
564
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
565
- '> div:last-child': {
565
+ '> div:nth-last-child(1 of :not(:where([popover], dialog)))': {
566
566
  marginRight: 0
567
567
  }
568
568
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "15.0.3",
3
+ "version": "15.1.1",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,19 +32,19 @@
32
32
  "@atlaskit/editor-plugin-editor-disabled": "^13.0.0",
33
33
  "@atlaskit/editor-plugin-editor-viewmode": "^15.0.0",
34
34
  "@atlaskit/editor-plugin-emoji": "^14.0.0",
35
- "@atlaskit/editor-plugin-extension": "^16.0.0",
35
+ "@atlaskit/editor-plugin-extension": "^16.1.0",
36
36
  "@atlaskit/editor-plugin-interaction": "^24.0.0",
37
37
  "@atlaskit/editor-plugin-user-intent": "^11.0.0",
38
38
  "@atlaskit/editor-prosemirror": "^8.0.0",
39
39
  "@atlaskit/emoji": "^71.15.0",
40
40
  "@atlaskit/icon": "^37.3.0",
41
- "@atlaskit/menu": "^9.2.0",
42
- "@atlaskit/modal-dialog": "^16.2.0",
41
+ "@atlaskit/menu": "^10.0.0",
42
+ "@atlaskit/modal-dialog": "^16.3.0",
43
43
  "@atlaskit/platform-feature-flags": "^2.1.0",
44
44
  "@atlaskit/primitives": "^22.2.0",
45
45
  "@atlaskit/select": "^22.6.0",
46
- "@atlaskit/tmp-editor-statsig": "^141.0.0",
47
- "@atlaskit/tokens": "^16.3.0",
46
+ "@atlaskit/tmp-editor-statsig": "^142.0.0",
47
+ "@atlaskit/tokens": "^16.4.0",
48
48
  "@atlaskit/tooltip": "^24.0.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",
@@ -54,7 +54,7 @@
54
54
  "react-loadable": "^5.1.0"
55
55
  },
56
56
  "peerDependencies": {
57
- "@atlaskit/editor-common": "^117.2.0",
57
+ "@atlaskit/editor-common": "^117.4.0",
58
58
  "react": "^18.2.0 || ^19.2.0",
59
59
  "react-dom": "^18.2.0 || ^19.2.0",
60
60
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"