@atlaskit/editor-common 107.4.2 → 107.6.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 +21 -0
- package/dist/cjs/ai-messages/ai.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/OverflowShadow/index.js +4 -26
- package/dist/es2019/ai-messages/ai.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/OverflowShadow/index.js +4 -26
- package/dist/esm/ai-messages/ai.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/OverflowShadow/index.js +4 -26
- package/dist/types/ai-messages/ai.d.ts +5 -0
- package/dist/types/analytics/types/ai-events.d.ts +1 -1
- package/dist/types/analytics/types/alignment-events.d.ts +1 -1
- package/dist/types/analytics/types/ncs-session-step-events.d.ts +1 -1
- package/dist/types/extensibility/Extension/Extension/index.d.ts +0 -2
- package/dist/types/mark/text-formatting.d.ts +1 -1
- package/dist/types/nesting/utilities.d.ts +1 -1
- package/dist/types/safe-plugin/index.d.ts +1 -1
- package/dist/types/ui/OverflowShadow/index.d.ts +0 -2
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +1 -1
- package/dist/types-ts4.5/ai-messages/ai.d.ts +5 -0
- package/dist/types-ts4.5/analytics/types/ai-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/alignment-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/ncs-session-step-events.d.ts +1 -1
- package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +0 -2
- package/dist/types-ts4.5/mark/text-formatting.d.ts +1 -1
- package/dist/types-ts4.5/nesting/utilities.d.ts +1 -1
- package/dist/types-ts4.5/safe-plugin/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +0 -2
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 107.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#178534](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/178534)
|
|
8
|
+
[`98988961ed925`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/98988961ed925) -
|
|
9
|
+
EDITOR-944: Add AI message for Ask Rovo... for the AI text input looking button in the floating
|
|
10
|
+
toolbar.
|
|
11
|
+
|
|
12
|
+
## 107.5.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#180500](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/180500)
|
|
17
|
+
[`11b9d2a6abab1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/11b9d2a6abab1) -
|
|
18
|
+
Cleaned up shadow defer calculation experiment
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 107.4.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -38,6 +38,11 @@ var aiMessages = exports.aiMessages = (0, _reactIntlNext.defineMessages)({
|
|
|
38
38
|
defaultMessage: 'Ask AI',
|
|
39
39
|
description: 'Title for an option to use Atlassian Intellgience'
|
|
40
40
|
},
|
|
41
|
+
askRovoInputButtonLabel: {
|
|
42
|
+
id: 'fabric.editor.ai.toolbar.askRovoInputButton.label',
|
|
43
|
+
defaultMessage: 'Ask Rovo...',
|
|
44
|
+
description: 'Label for the input button prompting user to type a query to Rovo.'
|
|
45
|
+
},
|
|
41
46
|
askAIToolbarIconTooltip: {
|
|
42
47
|
id: 'fabric.editor.ai.toolbar.tryAI.tooltip',
|
|
43
48
|
defaultMessage: 'Open Atlassian Intelligence',
|
|
@@ -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 = "107.
|
|
19
|
+
var packageVersion = "107.5.0";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -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 = "107.
|
|
26
|
+
var packageVersion = "107.5.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -14,8 +14,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
|
17
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
18
|
-
var _nodeVisibilityManager = require("../../node-visibility/node-visibility-manager");
|
|
19
17
|
var _shadowObserver = require("./shadowObserver");
|
|
20
18
|
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)); }
|
|
21
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -105,28 +103,10 @@ function overflowShadow(Component, options) {
|
|
|
105
103
|
_this.initShadowObserver();
|
|
106
104
|
return;
|
|
107
105
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
// Observe the container for first visibility
|
|
114
|
-
_this.visibilityManager.observe({
|
|
115
|
-
element: _this.overflowContainer,
|
|
116
|
-
onFirstVisible: function onFirstVisible() {
|
|
117
|
-
var _this$overflowContain;
|
|
118
|
-
_this.updateShadows();
|
|
119
|
-
// Ignored via go/ees005
|
|
120
|
-
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
121
|
-
(_this$overflowContain = _this.overflowContainer) === null || _this$overflowContain === void 0 || _this$overflowContain.addEventListener('scroll', _this.handleScroll);
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
} else {
|
|
125
|
-
_this.updateShadows();
|
|
126
|
-
// Ignored via go/ees005
|
|
127
|
-
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
128
|
-
_this.overflowContainer.addEventListener('scroll', _this.handleScroll);
|
|
129
|
-
}
|
|
106
|
+
_this.updateShadows();
|
|
107
|
+
// Ignored via go/ees005
|
|
108
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
109
|
+
_this.overflowContainer.addEventListener('scroll', _this.handleScroll);
|
|
130
110
|
});
|
|
131
111
|
return _this;
|
|
132
112
|
}
|
|
@@ -134,8 +114,6 @@ function overflowShadow(Component, options) {
|
|
|
134
114
|
return (0, _createClass2.default)(OverflowShadow, [{
|
|
135
115
|
key: "componentWillUnmount",
|
|
136
116
|
value: function componentWillUnmount() {
|
|
137
|
-
var _this$visibilityManag;
|
|
138
|
-
(_this$visibilityManag = this.visibilityManager) === null || _this$visibilityManag === void 0 || _this$visibilityManag.disconnect();
|
|
139
117
|
if (options.useShadowObserver) {
|
|
140
118
|
return this.shadowObserver && this.shadowObserver.dispose();
|
|
141
119
|
}
|
|
@@ -32,6 +32,11 @@ export const aiMessages = defineMessages({
|
|
|
32
32
|
defaultMessage: 'Ask AI',
|
|
33
33
|
description: 'Title for an option to use Atlassian Intellgience'
|
|
34
34
|
},
|
|
35
|
+
askRovoInputButtonLabel: {
|
|
36
|
+
id: 'fabric.editor.ai.toolbar.askRovoInputButton.label',
|
|
37
|
+
defaultMessage: 'Ask Rovo...',
|
|
38
|
+
description: 'Label for the input button prompting user to type a query to Rovo.'
|
|
39
|
+
},
|
|
35
40
|
askAIToolbarIconTooltip: {
|
|
36
41
|
id: 'fabric.editor.ai.toolbar.tryAI.tooltip',
|
|
37
42
|
defaultMessage: 'Open Atlassian Intelligence',
|
|
@@ -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 = "107.
|
|
4
|
+
const packageVersion = "107.5.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -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 = "107.
|
|
16
|
+
const packageVersion = "107.5.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
|
-
import { nodeVisibilityManager } from '../../node-visibility/node-visibility-manager';
|
|
6
4
|
import { ShadowObserver, shadowObserverClassNames } from './shadowObserver';
|
|
7
5
|
export const shadowClassNames = {
|
|
8
6
|
RIGHT_SHADOW: 'right-shadow',
|
|
@@ -85,33 +83,13 @@ export default function overflowShadow(Component, options) {
|
|
|
85
83
|
this.initShadowObserver();
|
|
86
84
|
return;
|
|
87
85
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
// Observe the container for first visibility
|
|
94
|
-
this.visibilityManager.observe({
|
|
95
|
-
element: this.overflowContainer,
|
|
96
|
-
onFirstVisible: () => {
|
|
97
|
-
var _this$overflowContain;
|
|
98
|
-
this.updateShadows();
|
|
99
|
-
// Ignored via go/ees005
|
|
100
|
-
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
101
|
-
(_this$overflowContain = this.overflowContainer) === null || _this$overflowContain === void 0 ? void 0 : _this$overflowContain.addEventListener('scroll', this.handleScroll);
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
} else {
|
|
105
|
-
this.updateShadows();
|
|
106
|
-
// Ignored via go/ees005
|
|
107
|
-
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
108
|
-
this.overflowContainer.addEventListener('scroll', this.handleScroll);
|
|
109
|
-
}
|
|
86
|
+
this.updateShadows();
|
|
87
|
+
// Ignored via go/ees005
|
|
88
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
89
|
+
this.overflowContainer.addEventListener('scroll', this.handleScroll);
|
|
110
90
|
});
|
|
111
91
|
}
|
|
112
92
|
componentWillUnmount() {
|
|
113
|
-
var _this$visibilityManag;
|
|
114
|
-
(_this$visibilityManag = this.visibilityManager) === null || _this$visibilityManag === void 0 ? void 0 : _this$visibilityManag.disconnect();
|
|
115
93
|
if (options.useShadowObserver) {
|
|
116
94
|
return this.shadowObserver && this.shadowObserver.dispose();
|
|
117
95
|
}
|
|
@@ -32,6 +32,11 @@ export var aiMessages = defineMessages({
|
|
|
32
32
|
defaultMessage: 'Ask AI',
|
|
33
33
|
description: 'Title for an option to use Atlassian Intellgience'
|
|
34
34
|
},
|
|
35
|
+
askRovoInputButtonLabel: {
|
|
36
|
+
id: 'fabric.editor.ai.toolbar.askRovoInputButton.label',
|
|
37
|
+
defaultMessage: 'Ask Rovo...',
|
|
38
|
+
description: 'Label for the input button prompting user to type a query to Rovo.'
|
|
39
|
+
},
|
|
35
40
|
askAIToolbarIconTooltip: {
|
|
36
41
|
id: 'fabric.editor.ai.toolbar.tryAI.tooltip',
|
|
37
42
|
defaultMessage: 'Open Atlassian Intelligence',
|
|
@@ -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 = "107.
|
|
10
|
+
var packageVersion = "107.5.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -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 = "107.
|
|
23
|
+
var packageVersion = "107.5.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -8,8 +8,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
8
8
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
|
-
import { nodeVisibilityManager } from '../../node-visibility/node-visibility-manager';
|
|
13
11
|
import { ShadowObserver, shadowObserverClassNames } from './shadowObserver';
|
|
14
12
|
export var shadowClassNames = {
|
|
15
13
|
RIGHT_SHADOW: 'right-shadow',
|
|
@@ -97,28 +95,10 @@ export default function overflowShadow(Component, options) {
|
|
|
97
95
|
_this.initShadowObserver();
|
|
98
96
|
return;
|
|
99
97
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
// Observe the container for first visibility
|
|
106
|
-
_this.visibilityManager.observe({
|
|
107
|
-
element: _this.overflowContainer,
|
|
108
|
-
onFirstVisible: function onFirstVisible() {
|
|
109
|
-
var _this$overflowContain;
|
|
110
|
-
_this.updateShadows();
|
|
111
|
-
// Ignored via go/ees005
|
|
112
|
-
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
113
|
-
(_this$overflowContain = _this.overflowContainer) === null || _this$overflowContain === void 0 || _this$overflowContain.addEventListener('scroll', _this.handleScroll);
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
} else {
|
|
117
|
-
_this.updateShadows();
|
|
118
|
-
// Ignored via go/ees005
|
|
119
|
-
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
120
|
-
_this.overflowContainer.addEventListener('scroll', _this.handleScroll);
|
|
121
|
-
}
|
|
98
|
+
_this.updateShadows();
|
|
99
|
+
// Ignored via go/ees005
|
|
100
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
101
|
+
_this.overflowContainer.addEventListener('scroll', _this.handleScroll);
|
|
122
102
|
});
|
|
123
103
|
return _this;
|
|
124
104
|
}
|
|
@@ -126,8 +106,6 @@ export default function overflowShadow(Component, options) {
|
|
|
126
106
|
return _createClass(OverflowShadow, [{
|
|
127
107
|
key: "componentWillUnmount",
|
|
128
108
|
value: function componentWillUnmount() {
|
|
129
|
-
var _this$visibilityManag;
|
|
130
|
-
(_this$visibilityManag = this.visibilityManager) === null || _this$visibilityManag === void 0 || _this$visibilityManag.disconnect();
|
|
131
109
|
if (options.useShadowObserver) {
|
|
132
110
|
return this.shadowObserver && this.shadowObserver.dispose();
|
|
133
111
|
}
|
|
@@ -29,6 +29,11 @@ export declare const aiMessages: {
|
|
|
29
29
|
defaultMessage: string;
|
|
30
30
|
description: string;
|
|
31
31
|
};
|
|
32
|
+
askRovoInputButtonLabel: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
32
37
|
askAIToolbarIconTooltip: {
|
|
33
38
|
id: string;
|
|
34
39
|
defaultMessage: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
1
|
+
import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
|
|
2
2
|
import type { OperationalAEP } from './utils';
|
|
3
3
|
type AIUnhandledErrorCaughtAEP = OperationalAEP<ACTION.UNHANDLED_ERROR_CAUGHT, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.EXPERIENCE_APPLICATION, {
|
|
4
4
|
componentStack: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, INPUT_METHOD, ACTION_SUBJECT_ID } from './enums';
|
|
1
|
+
import { type ACTION, type ACTION_SUBJECT, type INPUT_METHOD, type ACTION_SUBJECT_ID } from './enums';
|
|
2
2
|
import { type TrackAEP } from './utils';
|
|
3
3
|
type AlignmentUpdatedAEP = TrackAEP<ACTION.UPDATED, ACTION_SUBJECT.ALIGNMENT, ACTION_SUBJECT_ID, {
|
|
4
4
|
alignmentType?: 'start' | 'end' | 'center';
|
|
@@ -36,7 +36,6 @@ declare const _default: {
|
|
|
36
36
|
overflowContainerWidth: number;
|
|
37
37
|
scrollable?: NodeList | undefined;
|
|
38
38
|
diff?: number | undefined;
|
|
39
|
-
visibilityManager?: import("../../../node-visibility/node-visibility-manager").NodeVisibilityManager | undefined;
|
|
40
39
|
state: {
|
|
41
40
|
showLeftShadow: boolean;
|
|
42
41
|
showRightShadow: boolean;
|
|
@@ -76,7 +75,6 @@ declare const _default: {
|
|
|
76
75
|
overflowContainerWidth: number;
|
|
77
76
|
scrollable?: NodeList | undefined;
|
|
78
77
|
diff?: number | undefined;
|
|
79
|
-
visibilityManager?: import("../../../node-visibility/node-visibility-manager").NodeVisibilityManager | undefined;
|
|
80
78
|
state: {
|
|
81
79
|
showLeftShadow: boolean;
|
|
82
80
|
showRightShadow: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mark, MarkType, Node } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import { Mark, type MarkType, type Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { EditorState, SelectionRange } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
/**
|
|
4
4
|
* Determine if a mark of a specific type exists anywhere in the selection.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NodeType, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import { type EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
export declare const getParentOfTypeCount: (nodeType: NodeType) => ($pos: ResolvedPos) => number;
|
|
4
4
|
export declare const getPositionAfterTopParentNodeOfType: (nodeType: NodeType) => ($pos: ResolvedPos) => number | undefined;
|
|
5
5
|
export declare const isSelectionTableNestedInTable: (state: EditorState) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { Plugin } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { SafePluginSpec } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
/**
|
|
@@ -25,7 +25,6 @@ export default function overflowShadow<P>(Component: React.ComponentType<React.P
|
|
|
25
25
|
overflowContainerWidth: number;
|
|
26
26
|
scrollable?: NodeList | undefined;
|
|
27
27
|
diff?: number | undefined;
|
|
28
|
-
visibilityManager?: import("../../node-visibility/node-visibility-manager").NodeVisibilityManager | undefined;
|
|
29
28
|
state: {
|
|
30
29
|
showLeftShadow: boolean;
|
|
31
30
|
showRightShadow: boolean;
|
|
@@ -65,7 +64,6 @@ export default function overflowShadow<P>(Component: React.ComponentType<React.P
|
|
|
65
64
|
overflowContainerWidth: number;
|
|
66
65
|
scrollable?: NodeList | undefined;
|
|
67
66
|
diff?: number | undefined;
|
|
68
|
-
visibilityManager?: import("../../node-visibility/node-visibility-manager").NodeVisibilityManager | undefined;
|
|
69
67
|
state: {
|
|
70
68
|
showLeftShadow: boolean;
|
|
71
69
|
showRightShadow: boolean;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { ButtonProps } from '@atlaskit/button/types';
|
|
7
7
|
import type { PositionType } from '@atlaskit/tooltip';
|
|
8
|
-
import { TOOLBAR_ACTION_SUBJECT_ID } from '../../analytics';
|
|
8
|
+
import { type TOOLBAR_ACTION_SUBJECT_ID } from '../../analytics';
|
|
9
9
|
import { type Keymap } from '../../keymaps';
|
|
10
10
|
import type { MenuItem } from '../DropdownMenu/types';
|
|
11
11
|
export type Props = {
|
|
@@ -29,6 +29,11 @@ export declare const aiMessages: {
|
|
|
29
29
|
defaultMessage: string;
|
|
30
30
|
description: string;
|
|
31
31
|
};
|
|
32
|
+
askRovoInputButtonLabel: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
32
37
|
askAIToolbarIconTooltip: {
|
|
33
38
|
id: string;
|
|
34
39
|
defaultMessage: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
1
|
+
import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
|
|
2
2
|
import type { OperationalAEP } from './utils';
|
|
3
3
|
type AIUnhandledErrorCaughtAEP = OperationalAEP<ACTION.UNHANDLED_ERROR_CAUGHT, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.EXPERIENCE_APPLICATION, {
|
|
4
4
|
componentStack: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, INPUT_METHOD, ACTION_SUBJECT_ID } from './enums';
|
|
1
|
+
import { type ACTION, type ACTION_SUBJECT, type INPUT_METHOD, type ACTION_SUBJECT_ID } from './enums';
|
|
2
2
|
import { type TrackAEP } from './utils';
|
|
3
3
|
type AlignmentUpdatedAEP = TrackAEP<ACTION.UPDATED, ACTION_SUBJECT.ALIGNMENT, ACTION_SUBJECT_ID, {
|
|
4
4
|
alignmentType?: 'start' | 'end' | 'center';
|
|
@@ -36,7 +36,6 @@ declare const _default: {
|
|
|
36
36
|
overflowContainerWidth: number;
|
|
37
37
|
scrollable?: NodeList | undefined;
|
|
38
38
|
diff?: number | undefined;
|
|
39
|
-
visibilityManager?: import("../../../node-visibility/node-visibility-manager").NodeVisibilityManager | undefined;
|
|
40
39
|
state: {
|
|
41
40
|
showLeftShadow: boolean;
|
|
42
41
|
showRightShadow: boolean;
|
|
@@ -76,7 +75,6 @@ declare const _default: {
|
|
|
76
75
|
overflowContainerWidth: number;
|
|
77
76
|
scrollable?: NodeList | undefined;
|
|
78
77
|
diff?: number | undefined;
|
|
79
|
-
visibilityManager?: import("../../../node-visibility/node-visibility-manager").NodeVisibilityManager | undefined;
|
|
80
78
|
state: {
|
|
81
79
|
showLeftShadow: boolean;
|
|
82
80
|
showRightShadow: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mark, MarkType, Node } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import { Mark, type MarkType, type Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { EditorState, SelectionRange } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
/**
|
|
4
4
|
* Determine if a mark of a specific type exists anywhere in the selection.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NodeType, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import { type EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
export declare const getParentOfTypeCount: (nodeType: NodeType) => ($pos: ResolvedPos) => number;
|
|
4
4
|
export declare const getPositionAfterTopParentNodeOfType: (nodeType: NodeType) => ($pos: ResolvedPos) => number | undefined;
|
|
5
5
|
export declare const isSelectionTableNestedInTable: (state: EditorState) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { Plugin } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { SafePluginSpec } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
/**
|
|
@@ -25,7 +25,6 @@ export default function overflowShadow<P>(Component: React.ComponentType<React.P
|
|
|
25
25
|
overflowContainerWidth: number;
|
|
26
26
|
scrollable?: NodeList | undefined;
|
|
27
27
|
diff?: number | undefined;
|
|
28
|
-
visibilityManager?: import("../../node-visibility/node-visibility-manager").NodeVisibilityManager | undefined;
|
|
29
28
|
state: {
|
|
30
29
|
showLeftShadow: boolean;
|
|
31
30
|
showRightShadow: boolean;
|
|
@@ -65,7 +64,6 @@ export default function overflowShadow<P>(Component: React.ComponentType<React.P
|
|
|
65
64
|
overflowContainerWidth: number;
|
|
66
65
|
scrollable?: NodeList | undefined;
|
|
67
66
|
diff?: number | undefined;
|
|
68
|
-
visibilityManager?: import("../../node-visibility/node-visibility-manager").NodeVisibilityManager | undefined;
|
|
69
67
|
state: {
|
|
70
68
|
showLeftShadow: boolean;
|
|
71
69
|
showRightShadow: boolean;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { ButtonProps } from '@atlaskit/button/types';
|
|
7
7
|
import type { PositionType } from '@atlaskit/tooltip';
|
|
8
|
-
import { TOOLBAR_ACTION_SUBJECT_ID } from '../../analytics';
|
|
8
|
+
import { type TOOLBAR_ACTION_SUBJECT_ID } from '../../analytics';
|
|
9
9
|
import { type Keymap } from '../../keymaps';
|
|
10
10
|
import type { MenuItem } from '../DropdownMenu/types';
|
|
11
11
|
export type Props = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "107.
|
|
3
|
+
"version": "107.6.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/"
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
"@atlaskit/task-decision": "^19.2.0",
|
|
170
170
|
"@atlaskit/textfield": "^8.0.0",
|
|
171
171
|
"@atlaskit/theme": "^18.0.0",
|
|
172
|
-
"@atlaskit/tmp-editor-statsig": "^8.
|
|
172
|
+
"@atlaskit/tmp-editor-statsig": "^8.7.0",
|
|
173
173
|
"@atlaskit/tokens": "^5.4.0",
|
|
174
174
|
"@atlaskit/tooltip": "^20.3.0",
|
|
175
175
|
"@atlaskit/width-detector": "^5.0.0",
|