@atlaskit/editor-common 114.4.0 → 114.5.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 +11 -0
- package/dist/cjs/extensibility/ExtensionComponent.js +3 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/ExtensionComponent.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/ExtensionComponent.js +3 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/extensions/extension-handlers.d.ts +1 -0
- package/dist/types-ts4.5/extensions/extension-handlers.d.ts +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 114.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`6940e6da4162d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6940e6da4162d) -
|
|
8
|
+
Wire up sendSelectedChange for native embeds
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 114.4.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
@@ -159,6 +159,8 @@ var ExtensionComponentInner = /*#__PURE__*/function (_Component) {
|
|
|
159
159
|
parameters = _pmNode$attrs.parameters,
|
|
160
160
|
text = _pmNode$attrs.text;
|
|
161
161
|
var isBodiedExtension = pmNode.type.name === 'bodiedExtension';
|
|
162
|
+
var selection = editorView.state.selection;
|
|
163
|
+
var isSelected = selection instanceof _state.NodeSelection && selection.node === pmNode;
|
|
162
164
|
if (isBodiedExtension && !showBodiedExtensionRendererView) {
|
|
163
165
|
return;
|
|
164
166
|
}
|
|
@@ -201,6 +203,7 @@ var ExtensionComponentInner = /*#__PURE__*/function (_Component) {
|
|
|
201
203
|
return /*#__PURE__*/_react.default.createElement(NodeRenderer, {
|
|
202
204
|
node: node,
|
|
203
205
|
references: _this.props.references,
|
|
206
|
+
isSelected: isSelected,
|
|
204
207
|
showUnknownMacroPlaceholder: (0, _platformFeatureFlags.fg)('tinymce_display_unknown_macro_body_content')
|
|
205
208
|
});
|
|
206
209
|
}
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "114.
|
|
22
|
+
var packageVersion = "114.4.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "114.
|
|
27
|
+
var packageVersion = "114.4.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -117,6 +117,10 @@ class ExtensionComponentInner extends Component {
|
|
|
117
117
|
text
|
|
118
118
|
} = pmNode.attrs;
|
|
119
119
|
const isBodiedExtension = pmNode.type.name === 'bodiedExtension';
|
|
120
|
+
const {
|
|
121
|
+
selection
|
|
122
|
+
} = editorView.state;
|
|
123
|
+
const isSelected = selection instanceof NodeSelection && selection.node === pmNode;
|
|
120
124
|
if (isBodiedExtension && !showBodiedExtensionRendererView) {
|
|
121
125
|
return;
|
|
122
126
|
}
|
|
@@ -157,6 +161,7 @@ class ExtensionComponentInner extends Component {
|
|
|
157
161
|
return /*#__PURE__*/React.createElement(NodeRenderer, {
|
|
158
162
|
node: node,
|
|
159
163
|
references: this.props.references,
|
|
164
|
+
isSelected: isSelected,
|
|
160
165
|
showUnknownMacroPlaceholder: fg('tinymce_display_unknown_macro_body_content')
|
|
161
166
|
});
|
|
162
167
|
}
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "114.
|
|
7
|
+
const packageVersion = "114.4.0";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "114.
|
|
17
|
+
const packageVersion = "114.4.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -150,6 +150,8 @@ var ExtensionComponentInner = /*#__PURE__*/function (_Component) {
|
|
|
150
150
|
parameters = _pmNode$attrs.parameters,
|
|
151
151
|
text = _pmNode$attrs.text;
|
|
152
152
|
var isBodiedExtension = pmNode.type.name === 'bodiedExtension';
|
|
153
|
+
var selection = editorView.state.selection;
|
|
154
|
+
var isSelected = selection instanceof NodeSelection && selection.node === pmNode;
|
|
153
155
|
if (isBodiedExtension && !showBodiedExtensionRendererView) {
|
|
154
156
|
return;
|
|
155
157
|
}
|
|
@@ -192,6 +194,7 @@ var ExtensionComponentInner = /*#__PURE__*/function (_Component) {
|
|
|
192
194
|
return /*#__PURE__*/React.createElement(NodeRenderer, {
|
|
193
195
|
node: node,
|
|
194
196
|
references: _this.props.references,
|
|
197
|
+
isSelected: isSelected,
|
|
195
198
|
showUnknownMacroPlaceholder: fg('tinymce_display_unknown_macro_body_content')
|
|
196
199
|
});
|
|
197
200
|
}
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "114.
|
|
13
|
+
var packageVersion = "114.4.0";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "114.
|
|
24
|
+
var packageVersion = "114.4.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -15,6 +15,7 @@ export declare function getExtensionModuleNodePrivateProps(extensionProvider: Ex
|
|
|
15
15
|
}>;
|
|
16
16
|
export declare function getNodeRenderer<T extends Parameters>(extensionProvider: ExtensionProvider, extensionType: ExtensionType, extensionKey: ExtensionKey): React.ComponentType<{
|
|
17
17
|
actions?: MultiBodiedExtensionActions;
|
|
18
|
+
isSelected?: boolean;
|
|
18
19
|
node: ExtensionParams<T>;
|
|
19
20
|
references?: ReferenceEntity[];
|
|
20
21
|
showUnknownMacroPlaceholder?: boolean;
|
|
@@ -15,6 +15,7 @@ export declare function getExtensionModuleNodePrivateProps(extensionProvider: Ex
|
|
|
15
15
|
}>;
|
|
16
16
|
export declare function getNodeRenderer<T extends Parameters>(extensionProvider: ExtensionProvider, extensionType: ExtensionType, extensionKey: ExtensionKey): React.ComponentType<{
|
|
17
17
|
actions?: MultiBodiedExtensionActions;
|
|
18
|
+
isSelected?: boolean;
|
|
18
19
|
node: ExtensionParams<T>;
|
|
19
20
|
references?: ReferenceEntity[];
|
|
20
21
|
showUnknownMacroPlaceholder?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "114.
|
|
3
|
+
"version": "114.5.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"@atlaskit/icon": "^34.2.0",
|
|
62
62
|
"@atlaskit/icon-object": "^7.5.0",
|
|
63
63
|
"@atlaskit/link": "^3.4.0",
|
|
64
|
-
"@atlaskit/link-datasource": "^5.
|
|
65
|
-
"@atlaskit/link-picker": "^5.
|
|
64
|
+
"@atlaskit/link-datasource": "^5.1.0",
|
|
65
|
+
"@atlaskit/link-picker": "^5.1.0",
|
|
66
66
|
"@atlaskit/media-card": "^80.1.0",
|
|
67
67
|
"@atlaskit/media-client": "^36.0.0",
|
|
68
68
|
"@atlaskit/media-client-react": "^5.0.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
82
82
|
"@atlaskit/react-ufo": "^5.15.0",
|
|
83
83
|
"@atlaskit/section-message": "^8.12.0",
|
|
84
|
-
"@atlaskit/smart-card": "^44.
|
|
84
|
+
"@atlaskit/smart-card": "^44.2.0",
|
|
85
85
|
"@atlaskit/smart-user-picker": "^10.0.0",
|
|
86
86
|
"@atlaskit/spinner": "^19.1.0",
|
|
87
87
|
"@atlaskit/task-decision": "^20.0.0",
|