@atlaskit/editor-plugin-media 1.20.11 → 1.20.12

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-plugin-media
2
2
 
3
+ ## 1.20.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [#110948](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110948)
8
+ [`6567f4bf996b3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6567f4bf996b3) -
9
+ [ux] When we select caption comment, the comment badge should not be active (with FF) and rename
10
+ prop name to mediaSingleElement
11
+ - Updated dependencies
12
+
3
13
  ## 1.20.11
4
14
 
5
15
  ### Patch Changes
@@ -57,14 +57,14 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref) {
57
57
  if (!isDrafting && hasNoComments || !mediaNode) {
58
58
  return null;
59
59
  }
60
- var mediaElement = view.domAtPos(pos + 1).node;
60
+ var mediaSingleElement = view.domAtPos(pos + 1).node;
61
61
  return /*#__PURE__*/_react.default.createElement(_mediaSingle.CommentBadge, {
62
62
  commentsOnMediaBugFixEnabled: commentsOnMediaBugFixEnabled,
63
63
  badgeOffsetRight: badgeOffsetRight,
64
64
  width: mediaNode.attrs.width,
65
65
  height: mediaNode.attrs.height,
66
66
  onClick: onClick,
67
- mediaElement: mediaElement,
67
+ mediaSingleElement: mediaSingleElement,
68
68
  intl: intl,
69
69
  status: entered ? 'entered' : status,
70
70
  onMouseEnter: function onMouseEnter() {
@@ -50,14 +50,14 @@ const CommentBadgeWrapper = ({
50
50
  if (!isDrafting && hasNoComments || !mediaNode) {
51
51
  return null;
52
52
  }
53
- const mediaElement = view.domAtPos(pos + 1).node;
53
+ const mediaSingleElement = view.domAtPos(pos + 1).node;
54
54
  return /*#__PURE__*/React.createElement(CommentBadgeComponent, {
55
55
  commentsOnMediaBugFixEnabled: commentsOnMediaBugFixEnabled,
56
56
  badgeOffsetRight: badgeOffsetRight,
57
57
  width: mediaNode.attrs.width,
58
58
  height: mediaNode.attrs.height,
59
59
  onClick: onClick,
60
- mediaElement: mediaElement,
60
+ mediaSingleElement: mediaSingleElement,
61
61
  intl: intl,
62
62
  status: entered ? 'entered' : status,
63
63
  onMouseEnter: () => setEntered(true),
@@ -47,14 +47,14 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref) {
47
47
  if (!isDrafting && hasNoComments || !mediaNode) {
48
48
  return null;
49
49
  }
50
- var mediaElement = view.domAtPos(pos + 1).node;
50
+ var mediaSingleElement = view.domAtPos(pos + 1).node;
51
51
  return /*#__PURE__*/React.createElement(CommentBadgeComponent, {
52
52
  commentsOnMediaBugFixEnabled: commentsOnMediaBugFixEnabled,
53
53
  badgeOffsetRight: badgeOffsetRight,
54
54
  width: mediaNode.attrs.width,
55
55
  height: mediaNode.attrs.height,
56
56
  onClick: onClick,
57
- mediaElement: mediaElement,
57
+ mediaSingleElement: mediaSingleElement,
58
58
  intl: intl,
59
59
  status: entered ? 'entered' : status,
60
60
  onMouseEnter: function onMouseEnter() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "1.20.11",
3
+ "version": "1.20.12",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -20,7 +20,10 @@
20
20
  "types": "dist/types/index.d.ts",
21
21
  "typesVersions": {
22
22
  ">=4.5 <4.9": {
23
- "*": ["dist/types-ts4.5/*", "dist/types-ts4.5/index.d.ts"]
23
+ "*": [
24
+ "dist/types-ts4.5/*",
25
+ "dist/types-ts4.5/index.d.ts"
26
+ ]
24
27
  }
25
28
  },
26
29
  "sideEffects": false,
@@ -34,14 +37,14 @@
34
37
  "@atlaskit/analytics-namespaced-context": "^6.10.0",
35
38
  "@atlaskit/analytics-next": "^9.3.0",
36
39
  "@atlaskit/button": "^17.17.0",
37
- "@atlaskit/editor-common": "^82.6.0",
40
+ "@atlaskit/editor-common": "^82.8.0",
38
41
  "@atlaskit/editor-palette": "1.6.0",
39
42
  "@atlaskit/editor-plugin-analytics": "^1.2.0",
40
43
  "@atlaskit/editor-plugin-annotation": "1.10.2",
41
44
  "@atlaskit/editor-plugin-decorations": "^1.1.0",
42
45
  "@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
43
46
  "@atlaskit/editor-plugin-editor-viewmode": "^1.2.0",
44
- "@atlaskit/editor-plugin-floating-toolbar": "^1.6.0",
47
+ "@atlaskit/editor-plugin-floating-toolbar": "^1.7.0",
45
48
  "@atlaskit/editor-plugin-focus": "^1.2.0",
46
49
  "@atlaskit/editor-plugin-grid": "^1.1.0",
47
50
  "@atlaskit/editor-plugin-guideline": "^1.1.0",
@@ -61,7 +64,7 @@
61
64
  "@atlaskit/media-ui": "^25.10.0",
62
65
  "@atlaskit/media-viewer": "^48.6.0",
63
66
  "@atlaskit/platform-feature-flags": "^0.2.0",
64
- "@atlaskit/primitives": "^7.2.0",
67
+ "@atlaskit/primitives": "^7.3.0",
65
68
  "@atlaskit/textfield": "^6.3.0",
66
69
  "@atlaskit/theme": "^12.9.0",
67
70
  "@atlaskit/tokens": "^1.50.0",
@@ -86,18 +89,35 @@
86
89
  },
87
90
  "techstack": {
88
91
  "@atlassian/frontend": {
89
- "import-structure": ["atlassian-conventions"],
90
- "circular-dependencies": ["file-and-folder-level"]
92
+ "import-structure": [
93
+ "atlassian-conventions"
94
+ ],
95
+ "circular-dependencies": [
96
+ "file-and-folder-level"
97
+ ]
91
98
  },
92
99
  "@repo/internal": {
93
100
  "dom-events": "use-bind-event-listener",
94
- "analytics": ["analytics-next"],
95
- "design-tokens": ["color"],
96
- "theming": ["react-context"],
97
- "ui-components": ["lite-mode"],
101
+ "analytics": [
102
+ "analytics-next"
103
+ ],
104
+ "design-tokens": [
105
+ "color"
106
+ ],
107
+ "theming": [
108
+ "react-context"
109
+ ],
110
+ "ui-components": [
111
+ "lite-mode"
112
+ ],
98
113
  "deprecation": "no-deprecated-imports",
99
- "styling": ["emotion", "emotion"],
100
- "imports": ["import-no-extraneous-disable-for-examples-and-docs"]
114
+ "styling": [
115
+ "emotion",
116
+ "emotion"
117
+ ],
118
+ "imports": [
119
+ "import-no-extraneous-disable-for-examples-and-docs"
120
+ ]
101
121
  }
102
122
  },
103
123
  "platform-feature-flags": {