@atlaskit/editor-common 106.9.2 → 106.10.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 +26 -0
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/extensibility/extensionNodeView.js +22 -0
- package/dist/cjs/messages/insert-block.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/panel.js +1 -5
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui-menu/Dropdown/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/extensibility/extensionNodeView.js +18 -0
- package/dist/es2019/messages/insert-block.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/panel.js +5 -13
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui-menu/Dropdown/index.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/extensibility/extensionNodeView.js +22 -0
- package/dist/esm/messages/insert-block.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/panel.js +1 -5
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui-menu/Dropdown/index.js +1 -1
- package/dist/types/analytics/types/breakout-events.d.ts +5 -1
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types/extensibility/extensionNodeView.d.ts +12 -1
- package/dist/types-ts4.5/analytics/types/breakout-events.d.ts +5 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +1 -0
- package/dist/types-ts4.5/extensibility/extensionNodeView.d.ts +12 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 106.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#173259](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/173259)
|
|
8
|
+
[`8c7a6909826be`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8c7a6909826be) -
|
|
9
|
+
Add new Changed Breakout Mode event and hook it up to breakout button
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#172707](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172707)
|
|
14
|
+
[`52f6fc286190c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/52f6fc286190c) -
|
|
15
|
+
[ux] Reserve minimum height for extension nodes behind a feature gate.
|
|
16
|
+
- [#171695](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/171695)
|
|
17
|
+
[`665ba0151dbd5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/665ba0151dbd5) -
|
|
18
|
+
Fixed copy "new editor" -> "cloud editor"
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
21
|
+
## 106.9.3
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [#171657](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/171657)
|
|
26
|
+
[`cb6c865095af1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cb6c865095af1) -
|
|
27
|
+
Clean-up platform_editor_lcm_nested_panel_icon_fix
|
|
28
|
+
|
|
3
29
|
## 106.9.2
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -25,6 +25,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
25
25
|
ACTION["CHANGED_ICON"] = "changedIcon";
|
|
26
26
|
ACTION["CHANGED_FULL_WIDTH_MODE"] = "changedFullWidthMode";
|
|
27
27
|
ACTION["CHANGED_LAYOUT"] = "changedLayout";
|
|
28
|
+
ACTION["CHANGED_BREAKOUT_MODE"] = "changedBreakoutMode";
|
|
28
29
|
ACTION["CHANGED_REPLACEMENT_TEXT"] = "changedReplacementText";
|
|
29
30
|
ACTION["CHANGED_TYPE"] = "changedType";
|
|
30
31
|
ACTION["CHANGED_URL"] = "changedUrl";
|
|
@@ -10,6 +10,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
11
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
12
12
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
13
|
+
var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
|
|
13
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
15
|
var _react = _interopRequireDefault(require("react"));
|
|
15
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
@@ -18,6 +19,7 @@ var _Extension = require("./Extension");
|
|
|
18
19
|
var _ExtensionNodeWrapper = require("./ExtensionNodeWrapper");
|
|
19
20
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
20
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22
|
+
function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
21
23
|
// getInlineNodeViewProducer is a new api to use instead of ReactNodeView
|
|
22
24
|
// when creating inline node views, however, it is difficult to test the impact
|
|
23
25
|
// on selections when migrating inlineExtension to use the new api.
|
|
@@ -39,6 +41,26 @@ var ExtensionNode = exports.ExtensionNode = /*#__PURE__*/function (_ReactNodeVie
|
|
|
39
41
|
return this.node.type.isAtom || mutation.type !== 'selection' && mutation.attributeName !== 'data-layout';
|
|
40
42
|
}
|
|
41
43
|
|
|
44
|
+
// Reserve height by setting a minimum height for the extension node view element
|
|
45
|
+
}, {
|
|
46
|
+
key: "createDomRef",
|
|
47
|
+
value: function createDomRef() {
|
|
48
|
+
if (!(0, _platformFeatureFlags.fg)('confluence_connect_macro_preset_height')) {
|
|
49
|
+
return _superPropGet(ExtensionNode, "createDomRef", this, 3)([]);
|
|
50
|
+
}
|
|
51
|
+
if (!this.node.isInline) {
|
|
52
|
+
var _this$reactComponentP, _this$reactComponentP2;
|
|
53
|
+
var _htmlElement = document.createElement('div');
|
|
54
|
+
var extensionHeight = (_this$reactComponentP = this.reactComponentProps) === null || _this$reactComponentP === void 0 || (_this$reactComponentP = _this$reactComponentP.extensionNodeViewOptions) === null || _this$reactComponentP === void 0 || (_this$reactComponentP2 = _this$reactComponentP.getExtensionHeight) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.call(_this$reactComponentP, this.node);
|
|
55
|
+
if (extensionHeight) {
|
|
56
|
+
_htmlElement.style.setProperty('min-height', "".concat(extensionHeight, "px"));
|
|
57
|
+
}
|
|
58
|
+
return _htmlElement;
|
|
59
|
+
}
|
|
60
|
+
var htmlElement = document.createElement('span');
|
|
61
|
+
return htmlElement;
|
|
62
|
+
}
|
|
63
|
+
|
|
42
64
|
/**
|
|
43
65
|
* When interacting with input elements inside an extension's body, the events
|
|
44
66
|
* bubble up to the editor and get handled by it. This almost always gets in the way
|
|
@@ -133,7 +133,7 @@ var toolbarInsertBlockMessages = exports.toolbarInsertBlockMessages = (0, _react
|
|
|
133
133
|
},
|
|
134
134
|
feedbackDialogDescription: {
|
|
135
135
|
id: 'fabric.editor.feedbackDialog.description',
|
|
136
|
-
defaultMessage: 'Tell us about your experience using the
|
|
136
|
+
defaultMessage: 'Tell us about your experience using the cloud editor',
|
|
137
137
|
description: 'Description for feedback option under quick insert dropdown'
|
|
138
138
|
},
|
|
139
139
|
horizontalRule: {
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
16
|
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); }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "106.
|
|
19
|
+
var packageVersion = "106.10.0";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -136,11 +136,7 @@ var PanelSharedSelectors = exports.PanelSharedSelectors = {
|
|
|
136
136
|
copyButton: "button[aria-label=\"Copy\"]"
|
|
137
137
|
};
|
|
138
138
|
var getIconStyles = function getIconStyles(panelType) {
|
|
139
|
-
|
|
140
|
-
return "\n\t\t\t.".concat(PanelSharedCssClassName.icon, "[data-panel-type='").concat(panelType, "'] {\n\t\t\t\tcolor: ").concat(lightIconColor[panelType], ";\n\t\t\t}\n\t\t");
|
|
141
|
-
} else {
|
|
142
|
-
return "\n\t\t\t.".concat(PanelSharedCssClassName.icon, " {\n\t\t\t\tcolor: ").concat(lightIconColor[panelType], ";\n\t\t\t}\n\t\t");
|
|
143
|
-
}
|
|
139
|
+
return "\n\t\t.".concat(PanelSharedCssClassName.icon, "[data-panel-type='").concat(panelType, "'] {\n\t\t\tcolor: ").concat(lightIconColor[panelType], ";\n\t\t}\n\t");
|
|
144
140
|
};
|
|
145
141
|
|
|
146
142
|
// Provides the color without tokens, used when converting to a custom panel
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "106.
|
|
26
|
+
var packageVersion = "106.10.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -137,7 +137,7 @@ var Dropdown = exports.Dropdown = /*#__PURE__*/function (_PureComponent) {
|
|
|
137
137
|
isOpen: true,
|
|
138
138
|
onOpenChange: onOpenChange,
|
|
139
139
|
position: popupPlacement.join(' '),
|
|
140
|
-
shouldFitContainer:
|
|
140
|
+
shouldFitContainer: shouldFitContainer,
|
|
141
141
|
id: dropdownListId
|
|
142
142
|
}, children))));
|
|
143
143
|
}
|
|
@@ -19,6 +19,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
19
19
|
ACTION["CHANGED_ICON"] = "changedIcon";
|
|
20
20
|
ACTION["CHANGED_FULL_WIDTH_MODE"] = "changedFullWidthMode";
|
|
21
21
|
ACTION["CHANGED_LAYOUT"] = "changedLayout";
|
|
22
|
+
ACTION["CHANGED_BREAKOUT_MODE"] = "changedBreakoutMode";
|
|
22
23
|
ACTION["CHANGED_REPLACEMENT_TEXT"] = "changedReplacementText";
|
|
23
24
|
ACTION["CHANGED_TYPE"] = "changedType";
|
|
24
25
|
ACTION["CHANGED_URL"] = "changedUrl";
|
|
@@ -17,6 +17,24 @@ export class ExtensionNode extends ReactNodeView {
|
|
|
17
17
|
return this.node.type.isAtom || mutation.type !== 'selection' && mutation.attributeName !== 'data-layout';
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
// Reserve height by setting a minimum height for the extension node view element
|
|
21
|
+
createDomRef() {
|
|
22
|
+
if (!fg('confluence_connect_macro_preset_height')) {
|
|
23
|
+
return super.createDomRef();
|
|
24
|
+
}
|
|
25
|
+
if (!this.node.isInline) {
|
|
26
|
+
var _this$reactComponentP, _this$reactComponentP2, _this$reactComponentP3;
|
|
27
|
+
const htmlElement = document.createElement('div');
|
|
28
|
+
const extensionHeight = (_this$reactComponentP = this.reactComponentProps) === null || _this$reactComponentP === void 0 ? void 0 : (_this$reactComponentP2 = _this$reactComponentP.extensionNodeViewOptions) === null || _this$reactComponentP2 === void 0 ? void 0 : (_this$reactComponentP3 = _this$reactComponentP2.getExtensionHeight) === null || _this$reactComponentP3 === void 0 ? void 0 : _this$reactComponentP3.call(_this$reactComponentP2, this.node);
|
|
29
|
+
if (extensionHeight) {
|
|
30
|
+
htmlElement.style.setProperty('min-height', `${extensionHeight}px`);
|
|
31
|
+
}
|
|
32
|
+
return htmlElement;
|
|
33
|
+
}
|
|
34
|
+
const htmlElement = document.createElement('span');
|
|
35
|
+
return htmlElement;
|
|
36
|
+
}
|
|
37
|
+
|
|
20
38
|
/**
|
|
21
39
|
* When interacting with input elements inside an extension's body, the events
|
|
22
40
|
* bubble up to the editor and get handled by it. This almost always gets in the way
|
|
@@ -127,7 +127,7 @@ export const toolbarInsertBlockMessages = defineMessages({
|
|
|
127
127
|
},
|
|
128
128
|
feedbackDialogDescription: {
|
|
129
129
|
id: 'fabric.editor.feedbackDialog.description',
|
|
130
|
-
defaultMessage: 'Tell us about your experience using the
|
|
130
|
+
defaultMessage: 'Tell us about your experience using the cloud editor',
|
|
131
131
|
description: 'Description for feedback option under quick insert dropdown'
|
|
132
132
|
},
|
|
133
133
|
horizontalRule: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "106.
|
|
4
|
+
const packageVersion = "106.10.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -129,19 +129,11 @@ export const PanelSharedSelectors = {
|
|
|
129
129
|
copyButton: `button[aria-label="Copy"]`
|
|
130
130
|
};
|
|
131
131
|
const getIconStyles = panelType => {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
`;
|
|
138
|
-
} else {
|
|
139
|
-
return `
|
|
140
|
-
.${PanelSharedCssClassName.icon} {
|
|
141
|
-
color: ${lightIconColor[panelType]};
|
|
142
|
-
}
|
|
143
|
-
`;
|
|
144
|
-
}
|
|
132
|
+
return `
|
|
133
|
+
.${PanelSharedCssClassName.icon}[data-panel-type='${panelType}'] {
|
|
134
|
+
color: ${lightIconColor[panelType]};
|
|
135
|
+
}
|
|
136
|
+
`;
|
|
145
137
|
};
|
|
146
138
|
|
|
147
139
|
// Provides the color without tokens, used when converting to a custom panel
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "106.
|
|
16
|
+
const packageVersion = "106.10.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -112,7 +112,7 @@ export class Dropdown extends PureComponent {
|
|
|
112
112
|
isOpen: true,
|
|
113
113
|
onOpenChange: onOpenChange,
|
|
114
114
|
position: popupPlacement.join(' '),
|
|
115
|
-
shouldFitContainer:
|
|
115
|
+
shouldFitContainer: shouldFitContainer,
|
|
116
116
|
id: dropdownListId
|
|
117
117
|
}, children))));
|
|
118
118
|
}
|
|
@@ -19,6 +19,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
19
19
|
ACTION["CHANGED_ICON"] = "changedIcon";
|
|
20
20
|
ACTION["CHANGED_FULL_WIDTH_MODE"] = "changedFullWidthMode";
|
|
21
21
|
ACTION["CHANGED_LAYOUT"] = "changedLayout";
|
|
22
|
+
ACTION["CHANGED_BREAKOUT_MODE"] = "changedBreakoutMode";
|
|
22
23
|
ACTION["CHANGED_REPLACEMENT_TEXT"] = "changedReplacementText";
|
|
23
24
|
ACTION["CHANGED_TYPE"] = "changedType";
|
|
24
25
|
ACTION["CHANGED_URL"] = "changedUrl";
|
|
@@ -2,9 +2,11 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
4
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
+
import _get from "@babel/runtime/helpers/get";
|
|
5
6
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
+
function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
8
10
|
import React from 'react';
|
|
9
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
12
|
import ReactNodeView from '../react-node-view';
|
|
@@ -31,6 +33,26 @@ export var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
31
33
|
return this.node.type.isAtom || mutation.type !== 'selection' && mutation.attributeName !== 'data-layout';
|
|
32
34
|
}
|
|
33
35
|
|
|
36
|
+
// Reserve height by setting a minimum height for the extension node view element
|
|
37
|
+
}, {
|
|
38
|
+
key: "createDomRef",
|
|
39
|
+
value: function createDomRef() {
|
|
40
|
+
if (!fg('confluence_connect_macro_preset_height')) {
|
|
41
|
+
return _superPropGet(ExtensionNode, "createDomRef", this, 3)([]);
|
|
42
|
+
}
|
|
43
|
+
if (!this.node.isInline) {
|
|
44
|
+
var _this$reactComponentP, _this$reactComponentP2;
|
|
45
|
+
var _htmlElement = document.createElement('div');
|
|
46
|
+
var extensionHeight = (_this$reactComponentP = this.reactComponentProps) === null || _this$reactComponentP === void 0 || (_this$reactComponentP = _this$reactComponentP.extensionNodeViewOptions) === null || _this$reactComponentP === void 0 || (_this$reactComponentP2 = _this$reactComponentP.getExtensionHeight) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.call(_this$reactComponentP, this.node);
|
|
47
|
+
if (extensionHeight) {
|
|
48
|
+
_htmlElement.style.setProperty('min-height', "".concat(extensionHeight, "px"));
|
|
49
|
+
}
|
|
50
|
+
return _htmlElement;
|
|
51
|
+
}
|
|
52
|
+
var htmlElement = document.createElement('span');
|
|
53
|
+
return htmlElement;
|
|
54
|
+
}
|
|
55
|
+
|
|
34
56
|
/**
|
|
35
57
|
* When interacting with input elements inside an extension's body, the events
|
|
36
58
|
* bubble up to the editor and get handled by it. This almost always gets in the way
|
|
@@ -127,7 +127,7 @@ export var toolbarInsertBlockMessages = defineMessages({
|
|
|
127
127
|
},
|
|
128
128
|
feedbackDialogDescription: {
|
|
129
129
|
id: 'fabric.editor.feedbackDialog.description',
|
|
130
|
-
defaultMessage: 'Tell us about your experience using the
|
|
130
|
+
defaultMessage: 'Tell us about your experience using the cloud editor',
|
|
131
131
|
description: 'Description for feedback option under quick insert dropdown'
|
|
132
132
|
},
|
|
133
133
|
horizontalRule: {
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "106.
|
|
10
|
+
var packageVersion = "106.10.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -127,11 +127,7 @@ export var PanelSharedSelectors = {
|
|
|
127
127
|
copyButton: "button[aria-label=\"Copy\"]"
|
|
128
128
|
};
|
|
129
129
|
var getIconStyles = function getIconStyles(panelType) {
|
|
130
|
-
|
|
131
|
-
return "\n\t\t\t.".concat(PanelSharedCssClassName.icon, "[data-panel-type='").concat(panelType, "'] {\n\t\t\t\tcolor: ").concat(lightIconColor[panelType], ";\n\t\t\t}\n\t\t");
|
|
132
|
-
} else {
|
|
133
|
-
return "\n\t\t\t.".concat(PanelSharedCssClassName.icon, " {\n\t\t\t\tcolor: ").concat(lightIconColor[panelType], ";\n\t\t\t}\n\t\t");
|
|
134
|
-
}
|
|
130
|
+
return "\n\t\t.".concat(PanelSharedCssClassName.icon, "[data-panel-type='").concat(panelType, "'] {\n\t\t\tcolor: ").concat(lightIconColor[panelType], ";\n\t\t}\n\t");
|
|
135
131
|
};
|
|
136
132
|
|
|
137
133
|
// Provides the color without tokens, used when converting to a custom panel
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "106.
|
|
23
|
+
var packageVersion = "106.10.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -128,7 +128,7 @@ export var Dropdown = /*#__PURE__*/function (_PureComponent) {
|
|
|
128
128
|
isOpen: true,
|
|
129
129
|
onOpenChange: onOpenChange,
|
|
130
130
|
position: popupPlacement.join(' '),
|
|
131
|
-
shouldFitContainer:
|
|
131
|
+
shouldFitContainer: shouldFitContainer,
|
|
132
132
|
id: dropdownListId
|
|
133
133
|
}, children))));
|
|
134
134
|
}
|
|
@@ -13,4 +13,8 @@ export type BreakoutResizedPerfSamplingAEP = OperationalAEP<ACTION.RESIZED_PERF_
|
|
|
13
13
|
docSize: number;
|
|
14
14
|
isInitialSample: boolean;
|
|
15
15
|
}>;
|
|
16
|
-
export type
|
|
16
|
+
export type ChangedBreakoutModeAEP = TrackAEP<ACTION.CHANGED_BREAKOUT_MODE, ACTION_SUBJECT.ELEMENT, undefined, {
|
|
17
|
+
mode: 'center' | 'wide' | 'full-width';
|
|
18
|
+
nodeType: BreakoutSupportedNodes;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
export type BreakoutEventPayload = BreakoutResizedAEP | BreakoutResizedPerfSamplingAEP | ChangedBreakoutModeAEP;
|
|
@@ -18,6 +18,7 @@ export declare enum ACTION {
|
|
|
18
18
|
CHANGED_ICON = "changedIcon",
|
|
19
19
|
CHANGED_FULL_WIDTH_MODE = "changedFullWidthMode",
|
|
20
20
|
CHANGED_LAYOUT = "changedLayout",
|
|
21
|
+
CHANGED_BREAKOUT_MODE = "changedBreakoutMode",
|
|
21
22
|
CHANGED_REPLACEMENT_TEXT = "changedReplacementText",
|
|
22
23
|
CHANGED_TYPE = "changedType",
|
|
23
24
|
CHANGED_URL = "changedUrl",
|
|
@@ -14,11 +14,22 @@ interface ExtensionNodeViewOptions {
|
|
|
14
14
|
appearance?: EditorAppearance;
|
|
15
15
|
getExtensionHeight?: GetPMNodeHeight;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
interface ReactExtensionNodeProps {
|
|
18
|
+
extensionNodeViewOptions?: ExtensionNodeViewOptions;
|
|
19
|
+
providerFactory: ProviderFactory;
|
|
20
|
+
extensionHandlers: ExtensionHandlers;
|
|
21
|
+
pluginInjectionApi: ExtensionsPluginInjectionAPI;
|
|
22
|
+
macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
|
|
23
|
+
showLivePagesBodiedMacrosRendererView?: (node: ADFEntity) => boolean;
|
|
24
|
+
showUpdatedLivePages1PBodiedExtensionUI?: (node: ADFEntity) => boolean;
|
|
25
|
+
rendererExtensionHandlers?: ExtensionHandlers;
|
|
26
|
+
}
|
|
27
|
+
export declare class ExtensionNode<AdditionalParams = unknown> extends ReactNodeView<ReactExtensionNodeProps & AdditionalParams> {
|
|
18
28
|
ignoreMutation(mutation: MutationRecord | {
|
|
19
29
|
type: 'selection';
|
|
20
30
|
target: Node;
|
|
21
31
|
}): boolean;
|
|
32
|
+
createDomRef(): HTMLElement;
|
|
22
33
|
/**
|
|
23
34
|
* When interacting with input elements inside an extension's body, the events
|
|
24
35
|
* bubble up to the editor and get handled by it. This almost always gets in the way
|
|
@@ -13,4 +13,8 @@ export type BreakoutResizedPerfSamplingAEP = OperationalAEP<ACTION.RESIZED_PERF_
|
|
|
13
13
|
docSize: number;
|
|
14
14
|
isInitialSample: boolean;
|
|
15
15
|
}>;
|
|
16
|
-
export type
|
|
16
|
+
export type ChangedBreakoutModeAEP = TrackAEP<ACTION.CHANGED_BREAKOUT_MODE, ACTION_SUBJECT.ELEMENT, undefined, {
|
|
17
|
+
mode: 'center' | 'wide' | 'full-width';
|
|
18
|
+
nodeType: BreakoutSupportedNodes;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
export type BreakoutEventPayload = BreakoutResizedAEP | BreakoutResizedPerfSamplingAEP | ChangedBreakoutModeAEP;
|
|
@@ -18,6 +18,7 @@ export declare enum ACTION {
|
|
|
18
18
|
CHANGED_ICON = "changedIcon",
|
|
19
19
|
CHANGED_FULL_WIDTH_MODE = "changedFullWidthMode",
|
|
20
20
|
CHANGED_LAYOUT = "changedLayout",
|
|
21
|
+
CHANGED_BREAKOUT_MODE = "changedBreakoutMode",
|
|
21
22
|
CHANGED_REPLACEMENT_TEXT = "changedReplacementText",
|
|
22
23
|
CHANGED_TYPE = "changedType",
|
|
23
24
|
CHANGED_URL = "changedUrl",
|
|
@@ -14,11 +14,22 @@ interface ExtensionNodeViewOptions {
|
|
|
14
14
|
appearance?: EditorAppearance;
|
|
15
15
|
getExtensionHeight?: GetPMNodeHeight;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
interface ReactExtensionNodeProps {
|
|
18
|
+
extensionNodeViewOptions?: ExtensionNodeViewOptions;
|
|
19
|
+
providerFactory: ProviderFactory;
|
|
20
|
+
extensionHandlers: ExtensionHandlers;
|
|
21
|
+
pluginInjectionApi: ExtensionsPluginInjectionAPI;
|
|
22
|
+
macroInteractionDesignFeatureFlags?: MacroInteractionDesignFeatureFlags;
|
|
23
|
+
showLivePagesBodiedMacrosRendererView?: (node: ADFEntity) => boolean;
|
|
24
|
+
showUpdatedLivePages1PBodiedExtensionUI?: (node: ADFEntity) => boolean;
|
|
25
|
+
rendererExtensionHandlers?: ExtensionHandlers;
|
|
26
|
+
}
|
|
27
|
+
export declare class ExtensionNode<AdditionalParams = unknown> extends ReactNodeView<ReactExtensionNodeProps & AdditionalParams> {
|
|
18
28
|
ignoreMutation(mutation: MutationRecord | {
|
|
19
29
|
type: 'selection';
|
|
20
30
|
target: Node;
|
|
21
31
|
}): boolean;
|
|
32
|
+
createDomRef(): HTMLElement;
|
|
22
33
|
/**
|
|
23
34
|
* When interacting with input elements inside an extension's body, the events
|
|
24
35
|
* bubble up to the editor and get handled by it. This almost always gets in the way
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "106.
|
|
3
|
+
"version": "106.10.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/"
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
135
135
|
"@atlaskit/css": "^0.10.0",
|
|
136
136
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
137
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
137
|
+
"@atlaskit/dropdown-menu": "^16.1.0",
|
|
138
138
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
139
139
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
140
140
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
@@ -147,13 +147,13 @@
|
|
|
147
147
|
"@atlaskit/link-datasource": "^4.11.0",
|
|
148
148
|
"@atlaskit/link-picker": "^3.5.0",
|
|
149
149
|
"@atlaskit/media-card": "^79.3.0",
|
|
150
|
-
"@atlaskit/media-client": "^33.
|
|
150
|
+
"@atlaskit/media-client": "^33.5.0",
|
|
151
151
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
152
152
|
"@atlaskit/media-common": "^12.2.0",
|
|
153
153
|
"@atlaskit/media-file-preview": "^0.11.0",
|
|
154
154
|
"@atlaskit/media-picker": "^69.0.0",
|
|
155
155
|
"@atlaskit/media-ui": "^28.3.0",
|
|
156
|
-
"@atlaskit/media-viewer": "^52.
|
|
156
|
+
"@atlaskit/media-viewer": "^52.3.0",
|
|
157
157
|
"@atlaskit/mention": "^24.2.0",
|
|
158
158
|
"@atlaskit/menu": "^8.0.0",
|
|
159
159
|
"@atlaskit/onboarding": "^14.2.0",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"@atlaskit/profilecard": "^23.19.0",
|
|
165
165
|
"@atlaskit/react-ufo": "^3.13.0",
|
|
166
166
|
"@atlaskit/section-message": "^8.2.0",
|
|
167
|
-
"@atlaskit/smart-card": "^38.
|
|
167
|
+
"@atlaskit/smart-card": "^38.10.0",
|
|
168
168
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
169
169
|
"@atlaskit/spinner": "^18.0.0",
|
|
170
170
|
"@atlaskit/task-decision": "^19.2.0",
|
|
@@ -320,9 +320,6 @@
|
|
|
320
320
|
"platform_editor_controls_patch_3": {
|
|
321
321
|
"type": "boolean"
|
|
322
322
|
},
|
|
323
|
-
"platform_editor_controls_patch_6": {
|
|
324
|
-
"type": "boolean"
|
|
325
|
-
},
|
|
326
323
|
"platform_editor_lcm_nested_panel_icon_fix": {
|
|
327
324
|
"type": "boolean"
|
|
328
325
|
},
|
|
@@ -389,6 +386,9 @@
|
|
|
389
386
|
"platform_editor_fix_floating_toolbar_focus": {
|
|
390
387
|
"type": "boolean"
|
|
391
388
|
},
|
|
389
|
+
"confluence_connect_macro_preset_height": {
|
|
390
|
+
"type": "boolean"
|
|
391
|
+
},
|
|
392
392
|
"platform_editor_breakout_resizing_hello_release": {
|
|
393
393
|
"type": "boolean"
|
|
394
394
|
},
|