@atlaskit/editor-common 95.3.0 → 95.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/annotation.js +8 -2
- package/dist/cjs/types/annotation/emitter.js +2 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/annotation.js +11 -1
- package/dist/es2019/types/annotation/emitter.js +2 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/annotation.js +8 -2
- package/dist/esm/types/annotation/emitter.js +2 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types/annotation/index.d.ts +1 -1
- package/dist/types/styles/shared/annotation.d.ts +3 -0
- package/dist/types/types/annotation/emitter.d.ts +4 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +1 -0
- package/dist/types-ts4.5/annotation/index.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/annotation.d.ts +3 -0
- package/dist/types-ts4.5/types/annotation/emitter.d.ts +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 95.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#166140](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166140)
|
|
8
|
+
[`3c5e0d8de190a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3c5e0d8de190a) -
|
|
9
|
+
[ux] EDF-1724: Additional cleanup of unused action and types for ai panels and adding render
|
|
10
|
+
analytics for better usage tracking including a new `aiPanelsBodiedExtension rendered` UI event
|
|
11
|
+
that includes tracking panel status and nodeMarkCount.
|
|
12
|
+
|
|
13
|
+
## 95.4.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [#167231](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167231)
|
|
18
|
+
[`335a373081eaf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/335a373081eaf) -
|
|
19
|
+
[ux] Added hoveredAnnotation for the renderer and the editor to accomodate the newly implemented
|
|
20
|
+
comment's panel
|
|
21
|
+
|
|
3
22
|
## 95.3.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
@@ -275,6 +275,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
|
|
|
275
275
|
ACTION_SUBJECT_ID["ACTION"] = "action";
|
|
276
276
|
ACTION_SUBJECT_ID["AI_DEFINITIONS_DEFINE_BUTTON"] = "aiDefinitionsDefineButton";
|
|
277
277
|
ACTION_SUBJECT_ID["AI_DEFINITIONS_AUTO_HIGHLIGHT"] = "aiDefinitionsAutoHighlight";
|
|
278
|
+
ACTION_SUBJECT_ID["AI_PANELS_BODIED_EXTENSION"] = "aiPanelsBodiedExtension";
|
|
278
279
|
ACTION_SUBJECT_ID["ALL"] = "all";
|
|
279
280
|
ACTION_SUBJECT_ID["ALT_TEXT"] = "altText";
|
|
280
281
|
ACTION_SUBJECT_ID["ANNOTATE_BUTTON"] = "annotateButton";
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "95.
|
|
20
|
+
var packageVersion = "95.5.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -13,7 +13,8 @@ var annotationPrefix = exports.annotationPrefix = 'ak-editor-annotation';
|
|
|
13
13
|
var AnnotationSharedClassNames = exports.AnnotationSharedClassNames = {
|
|
14
14
|
focus: "".concat(annotationPrefix, "-focus"),
|
|
15
15
|
blur: "".concat(annotationPrefix, "-blur"),
|
|
16
|
-
draft: "".concat(annotationPrefix, "-draft")
|
|
16
|
+
draft: "".concat(annotationPrefix, "-draft"),
|
|
17
|
+
hover: "".concat(annotationPrefix, "-hover")
|
|
17
18
|
};
|
|
18
19
|
var blockAnnotationPrefix = exports.blockAnnotationPrefix = 'ak-editor-block-annotation';
|
|
19
20
|
var BlockAnnotationSharedClassNames = exports.BlockAnnotationSharedClassNames = {
|
|
@@ -52,6 +53,11 @@ var AnnotationSharedCSSByState = exports.AnnotationSharedCSSByState = function A
|
|
|
52
53
|
blur: (0, _react.css)({
|
|
53
54
|
background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
|
|
54
55
|
borderBottomColor: "var(--ds-border-accent-yellow, #B38600)"
|
|
56
|
+
}),
|
|
57
|
+
hover: (0, _react.css)({
|
|
58
|
+
background: "var(--ds-background-accent-yellow-subtlest-hovered, #F8E6A0)",
|
|
59
|
+
borderBottomColor: "var(--ds-border-accent-yellow, #B38600)",
|
|
60
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)"
|
|
55
61
|
})
|
|
56
62
|
};
|
|
57
63
|
} else {
|
|
@@ -75,6 +81,6 @@ var AnnotationSharedCSSByState = exports.AnnotationSharedCSSByState = function A
|
|
|
75
81
|
};
|
|
76
82
|
var annotationSharedStyles = exports.annotationSharedStyles = function annotationSharedStyles() {
|
|
77
83
|
return (0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
|
|
78
|
-
(0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.blur, AnnotationSharedClassNames.focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().common, AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
|
|
84
|
+
(0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.blur, AnnotationSharedClassNames.focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().common, AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur, AnnotationSharedClassNames.hover, AnnotationSharedCSSByState().common, AnnotationSharedCSSByState().hover) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
|
|
79
85
|
(0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur);
|
|
80
86
|
};
|
|
@@ -11,8 +11,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
var _events = _interopRequireDefault(require("events"));
|
|
12
12
|
var AnnotationUpdateEvent = exports.AnnotationUpdateEvent = /*#__PURE__*/function (AnnotationUpdateEvent) {
|
|
13
13
|
AnnotationUpdateEvent["SET_ANNOTATION_FOCUS"] = "SET_ANNOTATION_FOCUS";
|
|
14
|
+
AnnotationUpdateEvent["SET_ANNOTATION_HOVERED"] = "SET_ANNOTATION_HOVERED";
|
|
14
15
|
AnnotationUpdateEvent["SET_ANNOTATION_STATE"] = "SET_ANNOTATION_STATE";
|
|
15
16
|
AnnotationUpdateEvent["REMOVE_ANNOTATION_FOCUS"] = "REMOVE_ANNOTATION_FOCUS";
|
|
17
|
+
AnnotationUpdateEvent["REMOVE_ANNOTATION_HOVERED"] = "REMOVE_ANNOTATION_HOVERED";
|
|
16
18
|
AnnotationUpdateEvent["ON_ANNOTATION_CLICK"] = "ON_ANNOTATION_CLICK";
|
|
17
19
|
AnnotationUpdateEvent["DESELECT_ANNOTATIONS"] = "DESELECT_ANNOTATIONS";
|
|
18
20
|
return AnnotationUpdateEvent;
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "95.
|
|
27
|
+
var packageVersion = "95.5.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -269,6 +269,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
269
269
|
ACTION_SUBJECT_ID["ACTION"] = "action";
|
|
270
270
|
ACTION_SUBJECT_ID["AI_DEFINITIONS_DEFINE_BUTTON"] = "aiDefinitionsDefineButton";
|
|
271
271
|
ACTION_SUBJECT_ID["AI_DEFINITIONS_AUTO_HIGHLIGHT"] = "aiDefinitionsAutoHighlight";
|
|
272
|
+
ACTION_SUBJECT_ID["AI_PANELS_BODIED_EXTENSION"] = "aiPanelsBodiedExtension";
|
|
272
273
|
ACTION_SUBJECT_ID["ALL"] = "all";
|
|
273
274
|
ACTION_SUBJECT_ID["ALT_TEXT"] = "altText";
|
|
274
275
|
ACTION_SUBJECT_ID["ANNOTATE_BUTTON"] = "annotateButton";
|
|
@@ -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 = "95.
|
|
4
|
+
const packageVersion = "95.5.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -5,7 +5,8 @@ export const annotationPrefix = 'ak-editor-annotation';
|
|
|
5
5
|
export const AnnotationSharedClassNames = {
|
|
6
6
|
focus: `${annotationPrefix}-focus`,
|
|
7
7
|
blur: `${annotationPrefix}-blur`,
|
|
8
|
-
draft: `${annotationPrefix}-draft
|
|
8
|
+
draft: `${annotationPrefix}-draft`,
|
|
9
|
+
hover: `${annotationPrefix}-hover`
|
|
9
10
|
};
|
|
10
11
|
export const blockAnnotationPrefix = 'ak-editor-block-annotation';
|
|
11
12
|
export const BlockAnnotationSharedClassNames = {
|
|
@@ -44,6 +45,11 @@ export const AnnotationSharedCSSByState = () => {
|
|
|
44
45
|
blur: css({
|
|
45
46
|
background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
|
|
46
47
|
borderBottomColor: "var(--ds-border-accent-yellow, #B38600)"
|
|
48
|
+
}),
|
|
49
|
+
hover: css({
|
|
50
|
+
background: "var(--ds-background-accent-yellow-subtlest-hovered, #F8E6A0)",
|
|
51
|
+
borderBottomColor: "var(--ds-border-accent-yellow, #B38600)",
|
|
52
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)"
|
|
47
53
|
})
|
|
48
54
|
};
|
|
49
55
|
} else {
|
|
@@ -87,6 +93,10 @@ css`
|
|
|
87
93
|
.${AnnotationSharedClassNames.blur} {
|
|
88
94
|
${AnnotationSharedCSSByState().blur};
|
|
89
95
|
}
|
|
96
|
+
.${AnnotationSharedClassNames.hover} {
|
|
97
|
+
${AnnotationSharedCSSByState().common};
|
|
98
|
+
${AnnotationSharedCSSByState().hover};
|
|
99
|
+
}
|
|
90
100
|
}
|
|
91
101
|
` :
|
|
92
102
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
|
|
@@ -2,8 +2,10 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import EventEmitter from 'events';
|
|
3
3
|
export let AnnotationUpdateEvent = /*#__PURE__*/function (AnnotationUpdateEvent) {
|
|
4
4
|
AnnotationUpdateEvent["SET_ANNOTATION_FOCUS"] = "SET_ANNOTATION_FOCUS";
|
|
5
|
+
AnnotationUpdateEvent["SET_ANNOTATION_HOVERED"] = "SET_ANNOTATION_HOVERED";
|
|
5
6
|
AnnotationUpdateEvent["SET_ANNOTATION_STATE"] = "SET_ANNOTATION_STATE";
|
|
6
7
|
AnnotationUpdateEvent["REMOVE_ANNOTATION_FOCUS"] = "REMOVE_ANNOTATION_FOCUS";
|
|
8
|
+
AnnotationUpdateEvent["REMOVE_ANNOTATION_HOVERED"] = "REMOVE_ANNOTATION_HOVERED";
|
|
7
9
|
AnnotationUpdateEvent["ON_ANNOTATION_CLICK"] = "ON_ANNOTATION_CLICK";
|
|
8
10
|
AnnotationUpdateEvent["DESELECT_ANNOTATIONS"] = "DESELECT_ANNOTATIONS";
|
|
9
11
|
return AnnotationUpdateEvent;
|
|
@@ -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 = "95.
|
|
16
|
+
const packageVersion = "95.5.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
class DropList extends Component {
|
|
@@ -269,6 +269,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
269
269
|
ACTION_SUBJECT_ID["ACTION"] = "action";
|
|
270
270
|
ACTION_SUBJECT_ID["AI_DEFINITIONS_DEFINE_BUTTON"] = "aiDefinitionsDefineButton";
|
|
271
271
|
ACTION_SUBJECT_ID["AI_DEFINITIONS_AUTO_HIGHLIGHT"] = "aiDefinitionsAutoHighlight";
|
|
272
|
+
ACTION_SUBJECT_ID["AI_PANELS_BODIED_EXTENSION"] = "aiPanelsBodiedExtension";
|
|
272
273
|
ACTION_SUBJECT_ID["ALL"] = "all";
|
|
273
274
|
ACTION_SUBJECT_ID["ALT_TEXT"] = "altText";
|
|
274
275
|
ACTION_SUBJECT_ID["ANNOTATE_BUTTON"] = "annotateButton";
|
|
@@ -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 = "95.
|
|
10
|
+
var packageVersion = "95.5.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -7,7 +7,8 @@ export var annotationPrefix = 'ak-editor-annotation';
|
|
|
7
7
|
export var AnnotationSharedClassNames = {
|
|
8
8
|
focus: "".concat(annotationPrefix, "-focus"),
|
|
9
9
|
blur: "".concat(annotationPrefix, "-blur"),
|
|
10
|
-
draft: "".concat(annotationPrefix, "-draft")
|
|
10
|
+
draft: "".concat(annotationPrefix, "-draft"),
|
|
11
|
+
hover: "".concat(annotationPrefix, "-hover")
|
|
11
12
|
};
|
|
12
13
|
export var blockAnnotationPrefix = 'ak-editor-block-annotation';
|
|
13
14
|
export var BlockAnnotationSharedClassNames = {
|
|
@@ -46,6 +47,11 @@ export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
|
|
|
46
47
|
blur: css({
|
|
47
48
|
background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
|
|
48
49
|
borderBottomColor: "var(--ds-border-accent-yellow, #B38600)"
|
|
50
|
+
}),
|
|
51
|
+
hover: css({
|
|
52
|
+
background: "var(--ds-background-accent-yellow-subtlest-hovered, #F8E6A0)",
|
|
53
|
+
borderBottomColor: "var(--ds-border-accent-yellow, #B38600)",
|
|
54
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)"
|
|
49
55
|
})
|
|
50
56
|
};
|
|
51
57
|
} else {
|
|
@@ -69,6 +75,6 @@ export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
|
|
|
69
75
|
};
|
|
70
76
|
export var annotationSharedStyles = function annotationSharedStyles() {
|
|
71
77
|
return fg('editor_inline_comments_on_inline_nodes') ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
|
|
72
|
-
css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.blur, AnnotationSharedClassNames.focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().common, AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
|
|
78
|
+
css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.blur, AnnotationSharedClassNames.focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().common, AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur, AnnotationSharedClassNames.hover, AnnotationSharedCSSByState().common, AnnotationSharedCSSByState().hover) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
|
|
73
79
|
css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur);
|
|
74
80
|
};
|
|
@@ -4,8 +4,10 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
import EventEmitter from 'events';
|
|
5
5
|
export var AnnotationUpdateEvent = /*#__PURE__*/function (AnnotationUpdateEvent) {
|
|
6
6
|
AnnotationUpdateEvent["SET_ANNOTATION_FOCUS"] = "SET_ANNOTATION_FOCUS";
|
|
7
|
+
AnnotationUpdateEvent["SET_ANNOTATION_HOVERED"] = "SET_ANNOTATION_HOVERED";
|
|
7
8
|
AnnotationUpdateEvent["SET_ANNOTATION_STATE"] = "SET_ANNOTATION_STATE";
|
|
8
9
|
AnnotationUpdateEvent["REMOVE_ANNOTATION_FOCUS"] = "REMOVE_ANNOTATION_FOCUS";
|
|
10
|
+
AnnotationUpdateEvent["REMOVE_ANNOTATION_HOVERED"] = "REMOVE_ANNOTATION_HOVERED";
|
|
9
11
|
AnnotationUpdateEvent["ON_ANNOTATION_CLICK"] = "ON_ANNOTATION_CLICK";
|
|
10
12
|
AnnotationUpdateEvent["DESELECT_ANNOTATIONS"] = "DESELECT_ANNOTATIONS";
|
|
11
13
|
return AnnotationUpdateEvent;
|
|
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
21
21
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "95.
|
|
24
|
+
var packageVersion = "95.5.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -271,6 +271,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
271
271
|
ACTION = "action",
|
|
272
272
|
AI_DEFINITIONS_DEFINE_BUTTON = "aiDefinitionsDefineButton",
|
|
273
273
|
AI_DEFINITIONS_AUTO_HIGHLIGHT = "aiDefinitionsAutoHighlight",
|
|
274
|
+
AI_PANELS_BODIED_EXTENSION = "aiPanelsBodiedExtension",
|
|
274
275
|
ALL = "all",
|
|
275
276
|
ALT_TEXT = "altText",
|
|
276
277
|
ANNOTATE_BUTTON = "annotateButton",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
/// <reference types="node/events" />
|
|
4
4
|
import { EventEmitter } from 'events';
|
|
5
|
-
export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve' | 'setselectedannotation';
|
|
5
|
+
export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve' | 'setselectedannotation' | 'sethoveredannotation' | 'removehoveredannotation';
|
|
6
6
|
export type VisibilityEvent = 'setvisibility';
|
|
7
7
|
type AnnotationCallback = (params: string) => void;
|
|
8
8
|
type VisibilityCallback = (params: boolean) => void;
|
|
@@ -3,6 +3,7 @@ export declare const AnnotationSharedClassNames: {
|
|
|
3
3
|
focus: string;
|
|
4
4
|
blur: string;
|
|
5
5
|
draft: string;
|
|
6
|
+
hover: string;
|
|
6
7
|
};
|
|
7
8
|
export declare const blockAnnotationPrefix = "ak-editor-block-annotation";
|
|
8
9
|
export declare const BlockAnnotationSharedClassNames: {
|
|
@@ -32,9 +33,11 @@ export declare const AnnotationSharedCSSByState: () => {
|
|
|
32
33
|
};
|
|
33
34
|
focus: import("@emotion/react").SerializedStyles;
|
|
34
35
|
blur: import("@emotion/react").SerializedStyles;
|
|
36
|
+
hover: import("@emotion/react").SerializedStyles;
|
|
35
37
|
} | {
|
|
36
38
|
focus: import("@emotion/react").SerializedStyles;
|
|
37
39
|
blur: import("@emotion/react").SerializedStyles;
|
|
38
40
|
common?: undefined;
|
|
41
|
+
hover?: undefined;
|
|
39
42
|
};
|
|
40
43
|
export declare const annotationSharedStyles: () => import("@emotion/react").SerializedStyles;
|
|
@@ -6,12 +6,15 @@ export interface AnnotationState<Type> {
|
|
|
6
6
|
}
|
|
7
7
|
export declare enum AnnotationUpdateEvent {
|
|
8
8
|
SET_ANNOTATION_FOCUS = "SET_ANNOTATION_FOCUS",
|
|
9
|
+
SET_ANNOTATION_HOVERED = "SET_ANNOTATION_HOVERED",
|
|
9
10
|
SET_ANNOTATION_STATE = "SET_ANNOTATION_STATE",
|
|
10
11
|
REMOVE_ANNOTATION_FOCUS = "REMOVE_ANNOTATION_FOCUS",
|
|
12
|
+
REMOVE_ANNOTATION_HOVERED = "REMOVE_ANNOTATION_HOVERED",
|
|
11
13
|
ON_ANNOTATION_CLICK = "ON_ANNOTATION_CLICK",
|
|
12
14
|
DESELECT_ANNOTATIONS = "DESELECT_ANNOTATIONS"
|
|
13
15
|
}
|
|
14
16
|
type SetFocusPayload = Record<'annotationId', AnnotationId>;
|
|
17
|
+
type SetHoveredPayload = Record<'annotationId', AnnotationId>;
|
|
15
18
|
export type OnAnnotationClickPayload = {
|
|
16
19
|
annotationIds: Array<AnnotationId>;
|
|
17
20
|
eventTarget: HTMLElement;
|
|
@@ -22,6 +25,7 @@ type SetStatePayload = Record<AnnotationId, AnnotationState<AnnotationTypes.INLI
|
|
|
22
25
|
export type AnnotationUpdateEventPayloads = {
|
|
23
26
|
[AnnotationUpdateEvent.ON_ANNOTATION_CLICK]: OnAnnotationClickPayload;
|
|
24
27
|
[AnnotationUpdateEvent.SET_ANNOTATION_FOCUS]: SetFocusPayload;
|
|
28
|
+
[AnnotationUpdateEvent.SET_ANNOTATION_HOVERED]: SetHoveredPayload;
|
|
25
29
|
[AnnotationUpdateEvent.SET_ANNOTATION_STATE]: SetStatePayload;
|
|
26
30
|
};
|
|
27
31
|
type Callback<T> = T extends keyof AnnotationUpdateEventPayloads ? (payload: AnnotationUpdateEventPayloads[T]) => void : () => void;
|
|
@@ -271,6 +271,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
271
271
|
ACTION = "action",
|
|
272
272
|
AI_DEFINITIONS_DEFINE_BUTTON = "aiDefinitionsDefineButton",
|
|
273
273
|
AI_DEFINITIONS_AUTO_HIGHLIGHT = "aiDefinitionsAutoHighlight",
|
|
274
|
+
AI_PANELS_BODIED_EXTENSION = "aiPanelsBodiedExtension",
|
|
274
275
|
ALL = "all",
|
|
275
276
|
ALT_TEXT = "altText",
|
|
276
277
|
ANNOTATE_BUTTON = "annotateButton",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
/// <reference types="node/events" />
|
|
4
4
|
import { EventEmitter } from 'events';
|
|
5
|
-
export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve' | 'setselectedannotation';
|
|
5
|
+
export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve' | 'setselectedannotation' | 'sethoveredannotation' | 'removehoveredannotation';
|
|
6
6
|
export type VisibilityEvent = 'setvisibility';
|
|
7
7
|
type AnnotationCallback = (params: string) => void;
|
|
8
8
|
type VisibilityCallback = (params: boolean) => void;
|
|
@@ -3,6 +3,7 @@ export declare const AnnotationSharedClassNames: {
|
|
|
3
3
|
focus: string;
|
|
4
4
|
blur: string;
|
|
5
5
|
draft: string;
|
|
6
|
+
hover: string;
|
|
6
7
|
};
|
|
7
8
|
export declare const blockAnnotationPrefix = "ak-editor-block-annotation";
|
|
8
9
|
export declare const BlockAnnotationSharedClassNames: {
|
|
@@ -32,9 +33,11 @@ export declare const AnnotationSharedCSSByState: () => {
|
|
|
32
33
|
};
|
|
33
34
|
focus: import("@emotion/react").SerializedStyles;
|
|
34
35
|
blur: import("@emotion/react").SerializedStyles;
|
|
36
|
+
hover: import("@emotion/react").SerializedStyles;
|
|
35
37
|
} | {
|
|
36
38
|
focus: import("@emotion/react").SerializedStyles;
|
|
37
39
|
blur: import("@emotion/react").SerializedStyles;
|
|
38
40
|
common?: undefined;
|
|
41
|
+
hover?: undefined;
|
|
39
42
|
};
|
|
40
43
|
export declare const annotationSharedStyles: () => import("@emotion/react").SerializedStyles;
|
|
@@ -6,12 +6,15 @@ export interface AnnotationState<Type> {
|
|
|
6
6
|
}
|
|
7
7
|
export declare enum AnnotationUpdateEvent {
|
|
8
8
|
SET_ANNOTATION_FOCUS = "SET_ANNOTATION_FOCUS",
|
|
9
|
+
SET_ANNOTATION_HOVERED = "SET_ANNOTATION_HOVERED",
|
|
9
10
|
SET_ANNOTATION_STATE = "SET_ANNOTATION_STATE",
|
|
10
11
|
REMOVE_ANNOTATION_FOCUS = "REMOVE_ANNOTATION_FOCUS",
|
|
12
|
+
REMOVE_ANNOTATION_HOVERED = "REMOVE_ANNOTATION_HOVERED",
|
|
11
13
|
ON_ANNOTATION_CLICK = "ON_ANNOTATION_CLICK",
|
|
12
14
|
DESELECT_ANNOTATIONS = "DESELECT_ANNOTATIONS"
|
|
13
15
|
}
|
|
14
16
|
type SetFocusPayload = Record<'annotationId', AnnotationId>;
|
|
17
|
+
type SetHoveredPayload = Record<'annotationId', AnnotationId>;
|
|
15
18
|
export type OnAnnotationClickPayload = {
|
|
16
19
|
annotationIds: Array<AnnotationId>;
|
|
17
20
|
eventTarget: HTMLElement;
|
|
@@ -22,6 +25,7 @@ type SetStatePayload = Record<AnnotationId, AnnotationState<AnnotationTypes.INLI
|
|
|
22
25
|
export type AnnotationUpdateEventPayloads = {
|
|
23
26
|
[AnnotationUpdateEvent.ON_ANNOTATION_CLICK]: OnAnnotationClickPayload;
|
|
24
27
|
[AnnotationUpdateEvent.SET_ANNOTATION_FOCUS]: SetFocusPayload;
|
|
28
|
+
[AnnotationUpdateEvent.SET_ANNOTATION_HOVERED]: SetHoveredPayload;
|
|
25
29
|
[AnnotationUpdateEvent.SET_ANNOTATION_STATE]: SetStatePayload;
|
|
26
30
|
};
|
|
27
31
|
type Callback<T> = T extends keyof AnnotationUpdateEventPayloads ? (payload: AnnotationUpdateEventPayloads[T]) => void : () => void;
|
package/package.json
CHANGED