@atlaskit/editor-common 78.5.0 → 78.6.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 +12 -0
- package/dist/cjs/__tests_external__/page-objects/EditorSmartLink.js +1 -1
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +26 -7
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/preset/plugin-injection-api.js +1 -1
- package/dist/cjs/quick-insert/messages.js +5 -0
- package/dist/cjs/types/annotation/emitter.js +1 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/index.js +6 -0
- package/dist/es2019/__tests_external__/page-objects/EditorSmartLink.js +0 -1
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +25 -24
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/preset/plugin-injection-api.js +1 -1
- package/dist/es2019/quick-insert/messages.js +5 -0
- package/dist/es2019/types/annotation/emitter.js +1 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/index.js +1 -1
- package/dist/esm/__tests_external__/page-objects/EditorSmartLink.js +0 -1
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +25 -7
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/preset/plugin-injection-api.js +1 -1
- package/dist/esm/quick-insert/messages.js +5 -0
- package/dist/esm/types/annotation/emitter.js +1 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/index.js +1 -1
- package/dist/types/__tests_external__/cases/fundamentals/collection.d.ts +1 -1
- package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts +1 -1
- package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-typing.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/block/delete.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/block/edit.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/block/index.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/block/insert.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/embed/delete.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/embed/edit.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/embed/index.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/embed/insert.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/inline/delete.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/inline/edit.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/inline/index.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/inline/insert.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/inline/unlink.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/types.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/url/index.d.ts +1 -1
- package/dist/types/__tests_external__/cases/smart-links/test-cases/url/insert.d.ts +1 -1
- package/dist/types/__tests_external__/page-objects/Editor.d.ts +1 -1
- package/dist/types/preset/plugin-injection-api.d.ts +1 -1
- package/dist/types/quick-insert/messages.d.ts +5 -0
- package/dist/types/types/annotation/emitter.d.ts +2 -1
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/fundamentals/collection.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/fundamentals/test-cases/editor-typing.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/delete.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/edit.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/index.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/insert.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/delete.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/edit.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/index.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/insert.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/delete.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/edit.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/index.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/insert.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/unlink.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/types.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/url/index.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/url/insert.d.ts +1 -1
- package/dist/types-ts4.5/__tests_external__/page-objects/Editor.d.ts +1 -1
- package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +1 -1
- package/dist/types-ts4.5/quick-insert/messages.d.ts +5 -0
- package/dist/types-ts4.5/types/annotation/emitter.d.ts +2 -1
- package/dist/types-ts4.5/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 78.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#74886](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74886) [`5b79ded33f58`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5b79ded33f58) - [EDF-324] Element Browser now has a separate categories for ai config items
|
|
8
|
+
|
|
9
|
+
## 78.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#76262](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76262) [`19f46b47a53f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/19f46b47a53f) - Adding new AnnotationUpdateEvent to deselect all annotations
|
|
14
|
+
|
|
3
15
|
## 78.5.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -15,7 +15,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
15
15
|
var _inProductTesting = require("@atlaskit/in-product-testing");
|
|
16
16
|
var _inProduct = require("@atlaskit/smart-card/in-product");
|
|
17
17
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
18
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
18
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
19
19
|
var EditorSmartLinkPageObject = exports.EditorSmartLinkPageObject = /*#__PURE__*/function (_InProductTestPageObj) {
|
|
20
20
|
(0, _inherits2.default)(EditorSmartLinkPageObject, _InProductTestPageObj);
|
|
21
21
|
var _super = _createSuper(EditorSmartLinkPageObject);
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = EmptyState;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
8
|
var _react = require("@emotion/react");
|
|
10
9
|
var _reactIntlNext = require("react-intl-next");
|
|
11
10
|
var _button = _interopRequireDefault(require("@atlaskit/button"));
|
|
12
11
|
var _NotFoundIllustration = _interopRequireDefault(require("./NotFoundIllustration"));
|
|
13
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
14
12
|
/** @jsx jsx */
|
|
13
|
+
|
|
15
14
|
function EmptyState(_ref) {
|
|
16
15
|
var onExternalLinkClick = _ref.onExternalLinkClick;
|
|
17
16
|
return (0, _react.jsx)("div", {
|
|
18
|
-
css: emptyStateWrapper
|
|
17
|
+
css: emptyStateWrapper,
|
|
18
|
+
"data-testid": "empty-state-wrapper"
|
|
19
19
|
}, (0, _react.jsx)(_NotFoundIllustration.default, null), (0, _react.jsx)("div", {
|
|
20
20
|
css: emptyStateHeading
|
|
21
21
|
}, (0, _react.jsx)(_reactIntlNext.FormattedMessage, {
|
|
@@ -41,7 +41,26 @@ function EmptyState(_ref) {
|
|
|
41
41
|
description: "Empty state sub-heading external link"
|
|
42
42
|
})))));
|
|
43
43
|
}
|
|
44
|
-
var emptyStateHeading = (0, _react.css)(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
var
|
|
44
|
+
var emptyStateHeading = (0, _react.css)({
|
|
45
|
+
fontSize: '1.42857em',
|
|
46
|
+
lineHeight: 1.2,
|
|
47
|
+
color: "var(--ds-text, rgb(23, 43, 77))",
|
|
48
|
+
fontWeight: 500,
|
|
49
|
+
letterSpacing: '-0.008em',
|
|
50
|
+
marginTop: '28px'
|
|
51
|
+
});
|
|
52
|
+
var emptyStateSubHeading = (0, _react.css)({
|
|
53
|
+
marginTop: "var(--ds-space-200, 16px)",
|
|
54
|
+
maxWidth: '400px',
|
|
55
|
+
textAlign: 'center'
|
|
56
|
+
});
|
|
57
|
+
var emptyStateWrapper = (0, _react.css)({
|
|
58
|
+
display: 'flex',
|
|
59
|
+
flexDirection: 'column',
|
|
60
|
+
justifyContent: 'center',
|
|
61
|
+
alignItems: 'center',
|
|
62
|
+
width: '100%'
|
|
63
|
+
});
|
|
64
|
+
var externalLinkWrapper = (0, _react.css)({
|
|
65
|
+
marginTop: '14px'
|
|
66
|
+
});
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
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 = "78.
|
|
19
|
+
var packageVersion = "78.6.1";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -262,7 +262,7 @@ var EditorPluginInjectionAPI = exports.EditorPluginInjectionAPI = /*#__PURE__*/f
|
|
|
262
262
|
// For some reason in some tests we have duplicates that are missed.
|
|
263
263
|
// To follow-up in ED-19611
|
|
264
264
|
if (plugin.name === 'core' && _this2.plugins.has(plugin.name)) {
|
|
265
|
-
throw new Error("Plugin ".concat(plugin.name, " has already been initialised in the Editor API
|
|
265
|
+
throw new Error("Plugin ".concat(plugin.name, " has already been initialised in the Editor API!\n There cannot be duplicate plugins or you will have unexpected behaviour"));
|
|
266
266
|
}
|
|
267
267
|
_this2.plugins.set(plugin.name, plugin);
|
|
268
268
|
});
|
|
@@ -65,5 +65,10 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
65
65
|
id: 'fabric.editor.elementbrowser.categorylist.category-development',
|
|
66
66
|
defaultMessage: 'Development',
|
|
67
67
|
description: 'development'
|
|
68
|
+
},
|
|
69
|
+
AI: {
|
|
70
|
+
id: 'fabric.editor.elementbrowser.categorylist.category-ai',
|
|
71
|
+
defaultMessage: 'Atlassian Intelligence',
|
|
72
|
+
description: 'AI'
|
|
68
73
|
}
|
|
69
74
|
});
|
|
@@ -14,6 +14,7 @@ var AnnotationUpdateEvent = exports.AnnotationUpdateEvent = /*#__PURE__*/functio
|
|
|
14
14
|
AnnotationUpdateEvent["SET_ANNOTATION_STATE"] = "SET_ANNOTATION_STATE";
|
|
15
15
|
AnnotationUpdateEvent["REMOVE_ANNOTATION_FOCUS"] = "REMOVE_ANNOTATION_FOCUS";
|
|
16
16
|
AnnotationUpdateEvent["ON_ANNOTATION_CLICK"] = "ON_ANNOTATION_CLICK";
|
|
17
|
+
AnnotationUpdateEvent["DESELECT_ANNOTATIONS"] = "DESELECT_ANNOTATIONS";
|
|
17
18
|
return AnnotationUpdateEvent;
|
|
18
19
|
}({});
|
|
19
20
|
var AnnotationUpdateEmitter = exports.AnnotationUpdateEmitter = /*#__PURE__*/function () {
|
|
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
23
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "78.
|
|
25
|
+
var packageVersion = "78.6.1";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -52,6 +52,12 @@ Object.defineProperty(exports, "LinkMatcher", {
|
|
|
52
52
|
return _hyperlink.LinkMatcher;
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
+
Object.defineProperty(exports, "PROFILER_KEY", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function get() {
|
|
58
|
+
return _renderCount.PROFILER_KEY;
|
|
59
|
+
}
|
|
60
|
+
});
|
|
55
61
|
Object.defineProperty(exports, "RenderCountProfiler", {
|
|
56
62
|
enumerable: true,
|
|
57
63
|
get: function get() {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
3
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
4
3
|
import { BlockCardPageObject, EmbedCardPageObject, InlineCardPageObject } from '@atlaskit/smart-card/in-product';
|
|
5
4
|
export class EditorSmartLinkPageObject extends InProductTestPageObject {
|
|
6
5
|
constructor(cy, editor) {
|
|
@@ -7,7 +7,8 @@ export default function EmptyState({
|
|
|
7
7
|
onExternalLinkClick
|
|
8
8
|
}) {
|
|
9
9
|
return jsx("div", {
|
|
10
|
-
css: emptyStateWrapper
|
|
10
|
+
css: emptyStateWrapper,
|
|
11
|
+
"data-testid": "empty-state-wrapper"
|
|
11
12
|
}, jsx(NotFoundIllustration, null), jsx("div", {
|
|
12
13
|
css: emptyStateHeading
|
|
13
14
|
}, jsx(FormattedMessage, {
|
|
@@ -33,26 +34,26 @@ export default function EmptyState({
|
|
|
33
34
|
description: "Empty state sub-heading external link"
|
|
34
35
|
})))));
|
|
35
36
|
}
|
|
36
|
-
const emptyStateHeading = css
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
color:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const emptyStateSubHeading = css
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const emptyStateWrapper = css
|
|
50
|
-
display: flex
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
width: 100
|
|
55
|
-
|
|
56
|
-
const externalLinkWrapper = css
|
|
57
|
-
|
|
58
|
-
|
|
37
|
+
const emptyStateHeading = css({
|
|
38
|
+
fontSize: '1.42857em',
|
|
39
|
+
lineHeight: 1.2,
|
|
40
|
+
color: "var(--ds-text, rgb(23, 43, 77))",
|
|
41
|
+
fontWeight: 500,
|
|
42
|
+
letterSpacing: '-0.008em',
|
|
43
|
+
marginTop: '28px'
|
|
44
|
+
});
|
|
45
|
+
const emptyStateSubHeading = css({
|
|
46
|
+
marginTop: "var(--ds-space-200, 16px)",
|
|
47
|
+
maxWidth: '400px',
|
|
48
|
+
textAlign: 'center'
|
|
49
|
+
});
|
|
50
|
+
const emptyStateWrapper = css({
|
|
51
|
+
display: 'flex',
|
|
52
|
+
flexDirection: 'column',
|
|
53
|
+
justifyContent: 'center',
|
|
54
|
+
alignItems: 'center',
|
|
55
|
+
width: '100%'
|
|
56
|
+
});
|
|
57
|
+
const externalLinkWrapper = css({
|
|
58
|
+
marginTop: '14px'
|
|
59
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "78.
|
|
3
|
+
const packageVersion = "78.6.1";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -182,7 +182,7 @@ export class EditorPluginInjectionAPI {
|
|
|
182
182
|
// For some reason in some tests we have duplicates that are missed.
|
|
183
183
|
// To follow-up in ED-19611
|
|
184
184
|
if (plugin.name === 'core' && this.plugins.has(plugin.name)) {
|
|
185
|
-
throw new Error(`Plugin ${plugin.name} has already been initialised in the Editor API!
|
|
185
|
+
throw new Error(`Plugin ${plugin.name} has already been initialised in the Editor API!
|
|
186
186
|
There cannot be duplicate plugins or you will have unexpected behaviour`);
|
|
187
187
|
}
|
|
188
188
|
this.plugins.set(plugin.name, plugin);
|
|
@@ -59,5 +59,10 @@ export const messages = defineMessages({
|
|
|
59
59
|
id: 'fabric.editor.elementbrowser.categorylist.category-development',
|
|
60
60
|
defaultMessage: 'Development',
|
|
61
61
|
description: 'development'
|
|
62
|
+
},
|
|
63
|
+
AI: {
|
|
64
|
+
id: 'fabric.editor.elementbrowser.categorylist.category-ai',
|
|
65
|
+
defaultMessage: 'Atlassian Intelligence',
|
|
66
|
+
description: 'AI'
|
|
62
67
|
}
|
|
63
68
|
});
|
|
@@ -5,6 +5,7 @@ export let AnnotationUpdateEvent = /*#__PURE__*/function (AnnotationUpdateEvent)
|
|
|
5
5
|
AnnotationUpdateEvent["SET_ANNOTATION_STATE"] = "SET_ANNOTATION_STATE";
|
|
6
6
|
AnnotationUpdateEvent["REMOVE_ANNOTATION_FOCUS"] = "REMOVE_ANNOTATION_FOCUS";
|
|
7
7
|
AnnotationUpdateEvent["ON_ANNOTATION_CLICK"] = "ON_ANNOTATION_CLICK";
|
|
8
|
+
AnnotationUpdateEvent["DESELECT_ANNOTATIONS"] = "DESELECT_ANNOTATIONS";
|
|
8
9
|
return AnnotationUpdateEvent;
|
|
9
10
|
}({});
|
|
10
11
|
export class AnnotationUpdateEmitter {
|
|
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
7
7
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import Layer from '../Layer';
|
|
9
9
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "78.
|
|
10
|
+
const packageVersion = "78.6.1";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -31,7 +31,7 @@ export { shouldForceTracking } from './should-force-tracking';
|
|
|
31
31
|
export { getModeFromTheme } from './getModeFromTheme';
|
|
32
32
|
export { getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered } from './get-performance-options';
|
|
33
33
|
export { sniffUserBrowserExtensions } from './browser-extensions';
|
|
34
|
-
export { RenderCountProfiler } from './profiler/render-count';
|
|
34
|
+
export { RenderCountProfiler, PROFILER_KEY } from './profiler/render-count';
|
|
35
35
|
export { validateADFEntity, validationErrorHandler } from './validate-using-spec';
|
|
36
36
|
export { getShallowPropsDifference, getPropsDifference } from './compare-props';
|
|
37
37
|
export { useComponentRenderTracking } from './performance/hooks/use-component-render-tracking';
|
|
@@ -8,7 +8,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
10
|
import { InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
11
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
12
11
|
import { BlockCardPageObject, EmbedCardPageObject, InlineCardPageObject } from '@atlaskit/smart-card/in-product';
|
|
13
12
|
export var EditorSmartLinkPageObject = /*#__PURE__*/function (_InProductTestPageObj) {
|
|
14
13
|
_inherits(EditorSmartLinkPageObject, _InProductTestPageObj);
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
1
|
/** @jsx jsx */
|
|
4
2
|
import { css, jsx } from '@emotion/react';
|
|
5
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
@@ -8,7 +6,8 @@ import NotFoundIllustration from './NotFoundIllustration';
|
|
|
8
6
|
export default function EmptyState(_ref) {
|
|
9
7
|
var onExternalLinkClick = _ref.onExternalLinkClick;
|
|
10
8
|
return jsx("div", {
|
|
11
|
-
css: emptyStateWrapper
|
|
9
|
+
css: emptyStateWrapper,
|
|
10
|
+
"data-testid": "empty-state-wrapper"
|
|
12
11
|
}, jsx(NotFoundIllustration, null), jsx("div", {
|
|
13
12
|
css: emptyStateHeading
|
|
14
13
|
}, jsx(FormattedMessage, {
|
|
@@ -34,7 +33,26 @@ export default function EmptyState(_ref) {
|
|
|
34
33
|
description: "Empty state sub-heading external link"
|
|
35
34
|
})))));
|
|
36
35
|
}
|
|
37
|
-
var emptyStateHeading = css(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
var
|
|
36
|
+
var emptyStateHeading = css({
|
|
37
|
+
fontSize: '1.42857em',
|
|
38
|
+
lineHeight: 1.2,
|
|
39
|
+
color: "var(--ds-text, rgb(23, 43, 77))",
|
|
40
|
+
fontWeight: 500,
|
|
41
|
+
letterSpacing: '-0.008em',
|
|
42
|
+
marginTop: '28px'
|
|
43
|
+
});
|
|
44
|
+
var emptyStateSubHeading = css({
|
|
45
|
+
marginTop: "var(--ds-space-200, 16px)",
|
|
46
|
+
maxWidth: '400px',
|
|
47
|
+
textAlign: 'center'
|
|
48
|
+
});
|
|
49
|
+
var emptyStateWrapper = css({
|
|
50
|
+
display: 'flex',
|
|
51
|
+
flexDirection: 'column',
|
|
52
|
+
justifyContent: 'center',
|
|
53
|
+
alignItems: 'center',
|
|
54
|
+
width: '100%'
|
|
55
|
+
});
|
|
56
|
+
var externalLinkWrapper = css({
|
|
57
|
+
marginTop: '14px'
|
|
58
|
+
});
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "78.
|
|
9
|
+
var packageVersion = "78.6.1";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -255,7 +255,7 @@ export var EditorPluginInjectionAPI = /*#__PURE__*/function () {
|
|
|
255
255
|
// For some reason in some tests we have duplicates that are missed.
|
|
256
256
|
// To follow-up in ED-19611
|
|
257
257
|
if (plugin.name === 'core' && _this2.plugins.has(plugin.name)) {
|
|
258
|
-
throw new Error("Plugin ".concat(plugin.name, " has already been initialised in the Editor API
|
|
258
|
+
throw new Error("Plugin ".concat(plugin.name, " has already been initialised in the Editor API!\n There cannot be duplicate plugins or you will have unexpected behaviour"));
|
|
259
259
|
}
|
|
260
260
|
_this2.plugins.set(plugin.name, plugin);
|
|
261
261
|
});
|
|
@@ -59,5 +59,10 @@ export var messages = defineMessages({
|
|
|
59
59
|
id: 'fabric.editor.elementbrowser.categorylist.category-development',
|
|
60
60
|
defaultMessage: 'Development',
|
|
61
61
|
description: 'development'
|
|
62
|
+
},
|
|
63
|
+
AI: {
|
|
64
|
+
id: 'fabric.editor.elementbrowser.categorylist.category-ai',
|
|
65
|
+
defaultMessage: 'Atlassian Intelligence',
|
|
66
|
+
description: 'AI'
|
|
62
67
|
}
|
|
63
68
|
});
|
|
@@ -7,6 +7,7 @@ export var AnnotationUpdateEvent = /*#__PURE__*/function (AnnotationUpdateEvent)
|
|
|
7
7
|
AnnotationUpdateEvent["SET_ANNOTATION_STATE"] = "SET_ANNOTATION_STATE";
|
|
8
8
|
AnnotationUpdateEvent["REMOVE_ANNOTATION_FOCUS"] = "REMOVE_ANNOTATION_FOCUS";
|
|
9
9
|
AnnotationUpdateEvent["ON_ANNOTATION_CLICK"] = "ON_ANNOTATION_CLICK";
|
|
10
|
+
AnnotationUpdateEvent["DESELECT_ANNOTATIONS"] = "DESELECT_ANNOTATIONS";
|
|
10
11
|
return AnnotationUpdateEvent;
|
|
11
12
|
}({});
|
|
12
13
|
export var AnnotationUpdateEmitter = /*#__PURE__*/function () {
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "78.
|
|
20
|
+
var packageVersion = "78.6.1";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -31,7 +31,7 @@ export { shouldForceTracking } from './should-force-tracking';
|
|
|
31
31
|
export { getModeFromTheme } from './getModeFromTheme';
|
|
32
32
|
export { getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered } from './get-performance-options';
|
|
33
33
|
export { sniffUserBrowserExtensions } from './browser-extensions';
|
|
34
|
-
export { RenderCountProfiler } from './profiler/render-count';
|
|
34
|
+
export { RenderCountProfiler, PROFILER_KEY } from './profiler/render-count';
|
|
35
35
|
export { validateADFEntity, validationErrorHandler } from './validate-using-spec';
|
|
36
36
|
export { getShallowPropsDifference, getPropsDifference } from './compare-props';
|
|
37
37
|
export { useComponentRenderTracking } from './performance/hooks/use-component-render-tracking';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCollection } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { EditorTestCaseOpts } from '../types';
|
|
2
|
+
import type { EditorTestCaseOpts } from '../types';
|
|
3
3
|
export declare const fundamentalsTestCollection: (opts: EditorTestCaseOpts) => InProductTestCollection;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { EditorTestCaseOpts } from '../../types';
|
|
2
|
+
import type { EditorTestCaseOpts } from '../../types';
|
|
3
3
|
export declare const editorIsPresentTestCase: (testOptions?: EditorTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const deleteBlockSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const editBlockSmartLinkTitleTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
4
4
|
export declare const editBlockSmartLinkUrlTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCollection } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const blockSmartLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const switchToBlockSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const deleteEmbedSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const editEmbedSmartLinkTitleTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
4
4
|
export declare const editEmbedSmartLinkUrlTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCollection } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const embedSmartLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const switchToEmbedSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const deleteInlineSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const editInlineSmartLinkTitleTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
4
4
|
export declare const editInlineSmartLinkUrlTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCollection } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const inlineSmartLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const insertInlineSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const unlinkInlineSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCollection } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const blueLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const switchToUrlTestCase: ({ ui, url }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="cypress" />
|
|
3
3
|
/// <reference types="cypress" />
|
|
4
4
|
import { InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
5
|
-
import { EditorTestCaseOpts } from '../cases/types';
|
|
5
|
+
import type { EditorTestCaseOpts } from '../cases/types';
|
|
6
6
|
import { RendererPageObject } from './Renderer';
|
|
7
7
|
export declare class EditorPageObject extends InProductTestPageObject {
|
|
8
8
|
getEditorArea(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
@@ -8,7 +8,7 @@ type SharedStateAPIProps = {
|
|
|
8
8
|
interface PluginInjectionAPIProps extends SharedStateAPIProps {
|
|
9
9
|
getEditorView: () => EditorView | undefined;
|
|
10
10
|
}
|
|
11
|
-
type EditorStateDiff = {
|
|
11
|
+
export type EditorStateDiff = {
|
|
12
12
|
readonly newEditorState: EditorState;
|
|
13
13
|
readonly oldEditorState: EditorState | undefined;
|
|
14
14
|
};
|
|
@@ -8,7 +8,8 @@ export declare enum AnnotationUpdateEvent {
|
|
|
8
8
|
SET_ANNOTATION_FOCUS = "SET_ANNOTATION_FOCUS",
|
|
9
9
|
SET_ANNOTATION_STATE = "SET_ANNOTATION_STATE",
|
|
10
10
|
REMOVE_ANNOTATION_FOCUS = "REMOVE_ANNOTATION_FOCUS",
|
|
11
|
-
ON_ANNOTATION_CLICK = "ON_ANNOTATION_CLICK"
|
|
11
|
+
ON_ANNOTATION_CLICK = "ON_ANNOTATION_CLICK",
|
|
12
|
+
DESELECT_ANNOTATIONS = "DESELECT_ANNOTATIONS"
|
|
12
13
|
}
|
|
13
14
|
type SetFocusPayload = Record<'annotationId', AnnotationId>;
|
|
14
15
|
export type OnAnnotationClickPayload = {
|
|
@@ -41,7 +41,7 @@ export { getModeFromTheme } from './getModeFromTheme';
|
|
|
41
41
|
export { getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered, } from './get-performance-options';
|
|
42
42
|
export type { UserBrowserExtensionResults } from './browser-extensions';
|
|
43
43
|
export { sniffUserBrowserExtensions } from './browser-extensions';
|
|
44
|
-
export { RenderCountProfiler } from './profiler/render-count';
|
|
44
|
+
export { RenderCountProfiler, PROFILER_KEY } from './profiler/render-count';
|
|
45
45
|
export { validateADFEntity, validationErrorHandler, } from './validate-using-spec';
|
|
46
46
|
export { getShallowPropsDifference, getPropsDifference } from './compare-props';
|
|
47
47
|
export type { ShallowPropsDifference, PropsDifference } from './compare-props';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCollection } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { EditorTestCaseOpts } from '../types';
|
|
2
|
+
import type { EditorTestCaseOpts } from '../types';
|
|
3
3
|
export declare const fundamentalsTestCollection: (opts: EditorTestCaseOpts) => InProductTestCollection;
|
package/dist/types-ts4.5/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { EditorTestCaseOpts } from '../../types';
|
|
2
|
+
import type { EditorTestCaseOpts } from '../../types';
|
|
3
3
|
export declare const editorIsPresentTestCase: (testOptions?: EditorTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const deleteBlockSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const editBlockSmartLinkTitleTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
4
4
|
export declare const editBlockSmartLinkUrlTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCollection } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const blockSmartLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const switchToBlockSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const deleteEmbedSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const editEmbedSmartLinkTitleTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
4
4
|
export declare const editEmbedSmartLinkUrlTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCollection } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const embedSmartLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const switchToEmbedSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const deleteInlineSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const editInlineSmartLinkTitleTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
4
4
|
export declare const editInlineSmartLinkUrlTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCollection } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const inlineSmartLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const insertInlineSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const unlinkInlineSmartLinkTestCase: ({ ui, url, }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCollection } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const blueLinksTestCollection: (opts: SmartLinkTestCaseOpts) => InProductTestCollection;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
|
-
import { SmartLinkTestCaseOpts } from '../types';
|
|
2
|
+
import type { SmartLinkTestCaseOpts } from '../types';
|
|
3
3
|
export declare const switchToUrlTestCase: ({ ui, url }: SmartLinkTestCaseOpts) => InProductTestCase;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="cypress" />
|
|
2
2
|
import { InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
3
|
-
import { EditorTestCaseOpts } from '../cases/types';
|
|
3
|
+
import type { EditorTestCaseOpts } from '../cases/types';
|
|
4
4
|
import { RendererPageObject } from './Renderer';
|
|
5
5
|
export declare class EditorPageObject extends InProductTestPageObject {
|
|
6
6
|
getEditorArea(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
@@ -8,7 +8,7 @@ type SharedStateAPIProps = {
|
|
|
8
8
|
interface PluginInjectionAPIProps extends SharedStateAPIProps {
|
|
9
9
|
getEditorView: () => EditorView | undefined;
|
|
10
10
|
}
|
|
11
|
-
type EditorStateDiff = {
|
|
11
|
+
export type EditorStateDiff = {
|
|
12
12
|
readonly newEditorState: EditorState;
|
|
13
13
|
readonly oldEditorState: EditorState | undefined;
|
|
14
14
|
};
|
|
@@ -8,7 +8,8 @@ export declare enum AnnotationUpdateEvent {
|
|
|
8
8
|
SET_ANNOTATION_FOCUS = "SET_ANNOTATION_FOCUS",
|
|
9
9
|
SET_ANNOTATION_STATE = "SET_ANNOTATION_STATE",
|
|
10
10
|
REMOVE_ANNOTATION_FOCUS = "REMOVE_ANNOTATION_FOCUS",
|
|
11
|
-
ON_ANNOTATION_CLICK = "ON_ANNOTATION_CLICK"
|
|
11
|
+
ON_ANNOTATION_CLICK = "ON_ANNOTATION_CLICK",
|
|
12
|
+
DESELECT_ANNOTATIONS = "DESELECT_ANNOTATIONS"
|
|
12
13
|
}
|
|
13
14
|
type SetFocusPayload = Record<'annotationId', AnnotationId>;
|
|
14
15
|
export type OnAnnotationClickPayload = {
|
|
@@ -41,7 +41,7 @@ export { getModeFromTheme } from './getModeFromTheme';
|
|
|
41
41
|
export { getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered, } from './get-performance-options';
|
|
42
42
|
export type { UserBrowserExtensionResults } from './browser-extensions';
|
|
43
43
|
export { sniffUserBrowserExtensions } from './browser-extensions';
|
|
44
|
-
export { RenderCountProfiler } from './profiler/render-count';
|
|
44
|
+
export { RenderCountProfiler, PROFILER_KEY } from './profiler/render-count';
|
|
45
45
|
export { validateADFEntity, validationErrorHandler, } from './validate-using-spec';
|
|
46
46
|
export { getShallowPropsDifference, getPropsDifference } from './compare-props';
|
|
47
47
|
export type { ShallowPropsDifference, PropsDifference } from './compare-props';
|
package/package.json
CHANGED