@atlaskit/editor-common 137.1.1 → 137.2.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 +18 -0
- package/dist/cjs/collab/index.js +4 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/collab/index.js +3 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/collab/index.js +3 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/sync-block-events.d.ts +15 -18
- package/dist/types/collab/index.d.ts +2 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 137.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`62503287902cb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/62503287902cb) -
|
|
8
|
+
Export TELEPOINTER_SELECTION_BADGE_CLASS and AI_IN_EDITOR_TELEPOINTER_CLASS from editor-common
|
|
9
|
+
collab and use them where telepointers are created
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 137.1.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 137.1.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/cjs/collab/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.tintDirtyTransaction = exports.telepointerStyle = exports.isDirtyTransaction = exports.TELEPOINTER_PULSE_DURING_TR_DURATION_MS = exports.TELEPOINTER_PULSE_DURING_TR_CLASS = exports.TELEPOINTER_PULSE_CLASS = exports.TELEPOINTER_DIM_CLASS = exports.TELEPOINTER_DATA_SESSION_ID_ATTR = exports.PROVIDER_ERROR_CODE = exports.DisconnectReason = void 0;
|
|
7
|
+
exports.tintDirtyTransaction = exports.telepointerStyle = exports.isDirtyTransaction = exports.TELEPOINTER_SELECTION_BADGE_CLASS = exports.TELEPOINTER_PULSE_DURING_TR_DURATION_MS = exports.TELEPOINTER_PULSE_DURING_TR_CLASS = exports.TELEPOINTER_PULSE_CLASS = exports.TELEPOINTER_DIM_CLASS = exports.TELEPOINTER_DATA_SESSION_ID_ATTR = exports.PROVIDER_ERROR_CODE = exports.DisconnectReason = exports.AI_IN_EDITOR_TELEPOINTER_CLASS = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
@@ -149,11 +149,13 @@ var TELEPOINTER_PULSE_CLASS = exports.TELEPOINTER_PULSE_CLASS = 'telepointer-pul
|
|
|
149
149
|
var TELEPOINTER_PULSE_DURING_TR_CLASS = exports.TELEPOINTER_PULSE_DURING_TR_CLASS = 'telepointer-pulse-during-tr';
|
|
150
150
|
var TELEPOINTER_PULSE_DURING_TR_DURATION_MS = exports.TELEPOINTER_PULSE_DURING_TR_DURATION_MS = 7500; // Keeping it longer so it'll be easier to spot during transactions
|
|
151
151
|
var TELEPOINTER_DATA_SESSION_ID_ATTR = exports.TELEPOINTER_DATA_SESSION_ID_ATTR = 'data-telepointer-sessionid';
|
|
152
|
+
var TELEPOINTER_SELECTION_BADGE_CLASS = exports.TELEPOINTER_SELECTION_BADGE_CLASS = 'telepointer-selection-badge';
|
|
153
|
+
var AI_IN_EDITOR_TELEPOINTER_CLASS = exports.AI_IN_EDITOR_TELEPOINTER_CLASS = 'ai-in-editor-telepointer';
|
|
152
154
|
|
|
153
155
|
// ED-22557: Safely convert to object styling
|
|
154
156
|
// Disable top: -14px since it is necessary to align to cursor
|
|
155
157
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
156
|
-
var telepointerStyle = exports.telepointerStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t@keyframes pulseIn {\n\t\t0%,\n\t\t100% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t\t10% {\n\t\t\ttransform: scaleX(1.4);\n\t\t\topacity: 1;\n\t\t}\n\t\t15%,\n\t\t85% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t@keyframes pulseOut {\n\t\t0%,\n\t\t90%,\n\t\t100% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t10%,\n\t\t80% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes pulseInDuringTr {\n\t\t0%,\n\t\t95% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes pulseOutDuringTr {\n\t\t100% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t0%,\n\t\t90% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t.ProseMirror .telepointer {\n\t\tposition: relative;\n\t\ttransition: opacity 200ms;\n\n\t\t&.telepointer-selection:not(.inlineNodeView) {\n\t\t\tline-height: 1.2;\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t}\n\n\t\t&.
|
|
158
|
+
var telepointerStyle = exports.telepointerStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t@keyframes pulseIn {\n\t\t0%,\n\t\t100% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t\t10% {\n\t\t\ttransform: scaleX(1.4);\n\t\t\topacity: 1;\n\t\t}\n\t\t15%,\n\t\t85% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t@keyframes pulseOut {\n\t\t0%,\n\t\t90%,\n\t\t100% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t10%,\n\t\t80% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes pulseInDuringTr {\n\t\t0%,\n\t\t95% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes pulseOutDuringTr {\n\t\t100% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t0%,\n\t\t90% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t.ProseMirror .telepointer {\n\t\tposition: relative;\n\t\ttransition: opacity 200ms;\n\n\t\t&.telepointer-selection:not(.inlineNodeView) {\n\t\t\tline-height: 1.2;\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t}\n\n\t\t&.", " {\n\t\t\t.telepointer-initial,\n\t\t\t.telepointer-fullname {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t\tuser-select: none;\n\t\t\t\twhite-space: pre;\n\t\t\t\ttop: -14px;\n\t\t\t\tleft: 0px;\n\t\t\t\tfont: ", ";\n\t\t\t\tpadding-left: ", ";\n\t\t\t\tpadding-right: ", ";\n\t\t\t\tborder-radius: 0 2px 2px 0;\n\t\t\t}\n\n\t\t\t.telepointer-initial {\n\t\t\t\topacity: 1;\n\t\t\t\ttransition: opacity 0.15s ease-out;\n\t\t\t}\n\n\t\t\t.telepointer-fullname {\n\t\t\t\topacity: 0;\n\t\t\t\ttransform: scaleX(0);\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransition:\n\t\t\t\t\ttransform 0.15s ease-out,\n\t\t\t\t\topacity 0.15s ease-out;\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t.telepointer-initial {\n\t\t\t\tanimation: pulseOut 2.5s ease-in-out;\n\t\t\t}\n\n\t\t\t.telepointer-fullname {\n\t\t\t\tanimation: pulseIn 2.5s ease-in-out;\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t.telepointer-initial {\n\t\t\t\tanimation: pulseOutDuringTr ", "ms ease-in-out;\n\t\t\t}\n\n\t\t\t.telepointer-fullname {\n\t\t\t\tanimation: pulseInDuringTr ", "ms ease-in-out;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t.telepointer-initial {\n\t\t\t\topacity: 0;\n\t\t\t\ttransition-delay: 150ms;\n\t\t\t}\n\n\t\t\t.telepointer-fullname {\n\t\t\t\ttransform: scaleX(1);\n\t\t\t\topacity: 1;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\topacity: 0.2;\n\t\t}\n\n\t\t", ";\n\t}\n"])), TELEPOINTER_SELECTION_BADGE_CLASS, "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)", TELEPOINTER_PULSE_CLASS, TELEPOINTER_PULSE_DURING_TR_CLASS, TELEPOINTER_PULSE_DURING_TR_DURATION_MS, TELEPOINTER_PULSE_DURING_TR_DURATION_MS, TELEPOINTER_DIM_CLASS, _constants.participantColors.map(function (participantColor, index) {
|
|
157
159
|
return telepointerColorStyle(participantColor.backgroundColor, participantColor.textColor, index);
|
|
158
160
|
}));
|
|
159
161
|
var tintKey = 'collab:isDirtyTransaction';
|
|
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
27
27
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
28
28
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
29
29
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
30
|
-
var packageVersion = "137.1.
|
|
30
|
+
var packageVersion = "137.1.2";
|
|
31
31
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
32
32
|
// Remove URL as it has UGC
|
|
33
33
|
// 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 = "137.1.
|
|
26
|
+
var packageVersion = "137.1.2";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -175,6 +175,8 @@ export const TELEPOINTER_PULSE_CLASS = 'telepointer-pulse-animate';
|
|
|
175
175
|
export const TELEPOINTER_PULSE_DURING_TR_CLASS = 'telepointer-pulse-during-tr';
|
|
176
176
|
export const TELEPOINTER_PULSE_DURING_TR_DURATION_MS = 7500; // Keeping it longer so it'll be easier to spot during transactions
|
|
177
177
|
export const TELEPOINTER_DATA_SESSION_ID_ATTR = 'data-telepointer-sessionid';
|
|
178
|
+
export const TELEPOINTER_SELECTION_BADGE_CLASS = 'telepointer-selection-badge';
|
|
179
|
+
export const AI_IN_EDITOR_TELEPOINTER_CLASS = 'ai-in-editor-telepointer';
|
|
178
180
|
|
|
179
181
|
// ED-22557: Safely convert to object styling
|
|
180
182
|
// Disable top: -14px since it is necessary to align to cursor
|
|
@@ -245,7 +247,7 @@ export const telepointerStyle = css`
|
|
|
245
247
|
user-select: none;
|
|
246
248
|
}
|
|
247
249
|
|
|
248
|
-
|
|
250
|
+
&.${TELEPOINTER_SELECTION_BADGE_CLASS} {
|
|
249
251
|
.telepointer-initial,
|
|
250
252
|
.telepointer-fullname {
|
|
251
253
|
position: absolute;
|
|
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
13
13
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
14
14
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
15
15
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
16
|
-
const packageVersion = "137.1.
|
|
16
|
+
const packageVersion = "137.1.2";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// 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 = "137.1.
|
|
16
|
+
const packageVersion = "137.1.2";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
package/dist/esm/collab/index.js
CHANGED
|
@@ -167,11 +167,13 @@ export var TELEPOINTER_PULSE_CLASS = 'telepointer-pulse-animate';
|
|
|
167
167
|
export var TELEPOINTER_PULSE_DURING_TR_CLASS = 'telepointer-pulse-during-tr';
|
|
168
168
|
export var TELEPOINTER_PULSE_DURING_TR_DURATION_MS = 7500; // Keeping it longer so it'll be easier to spot during transactions
|
|
169
169
|
export var TELEPOINTER_DATA_SESSION_ID_ATTR = 'data-telepointer-sessionid';
|
|
170
|
+
export var TELEPOINTER_SELECTION_BADGE_CLASS = 'telepointer-selection-badge';
|
|
171
|
+
export var AI_IN_EDITOR_TELEPOINTER_CLASS = 'ai-in-editor-telepointer';
|
|
170
172
|
|
|
171
173
|
// ED-22557: Safely convert to object styling
|
|
172
174
|
// Disable top: -14px since it is necessary to align to cursor
|
|
173
175
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
174
|
-
export var telepointerStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t@keyframes pulseIn {\n\t\t0%,\n\t\t100% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t\t10% {\n\t\t\ttransform: scaleX(1.4);\n\t\t\topacity: 1;\n\t\t}\n\t\t15%,\n\t\t85% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t@keyframes pulseOut {\n\t\t0%,\n\t\t90%,\n\t\t100% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t10%,\n\t\t80% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes pulseInDuringTr {\n\t\t0%,\n\t\t95% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes pulseOutDuringTr {\n\t\t100% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t0%,\n\t\t90% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t.ProseMirror .telepointer {\n\t\tposition: relative;\n\t\ttransition: opacity 200ms;\n\n\t\t&.telepointer-selection:not(.inlineNodeView) {\n\t\t\tline-height: 1.2;\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t}\n\n\t\t&.
|
|
176
|
+
export var telepointerStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t@keyframes pulseIn {\n\t\t0%,\n\t\t100% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t\t10% {\n\t\t\ttransform: scaleX(1.4);\n\t\t\topacity: 1;\n\t\t}\n\t\t15%,\n\t\t85% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t@keyframes pulseOut {\n\t\t0%,\n\t\t90%,\n\t\t100% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t10%,\n\t\t80% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes pulseInDuringTr {\n\t\t0%,\n\t\t95% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes pulseOutDuringTr {\n\t\t100% {\n\t\t\ttransform: scaleX(1);\n\t\t\topacity: 1;\n\t\t}\n\t\t0%,\n\t\t90% {\n\t\t\ttransform: scaleX(0);\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t.ProseMirror .telepointer {\n\t\tposition: relative;\n\t\ttransition: opacity 200ms;\n\n\t\t&.telepointer-selection:not(.inlineNodeView) {\n\t\t\tline-height: 1.2;\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t}\n\n\t\t&.", " {\n\t\t\t.telepointer-initial,\n\t\t\t.telepointer-fullname {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t\tuser-select: none;\n\t\t\t\twhite-space: pre;\n\t\t\t\ttop: -14px;\n\t\t\t\tleft: 0px;\n\t\t\t\tfont: ", ";\n\t\t\t\tpadding-left: ", ";\n\t\t\t\tpadding-right: ", ";\n\t\t\t\tborder-radius: 0 2px 2px 0;\n\t\t\t}\n\n\t\t\t.telepointer-initial {\n\t\t\t\topacity: 1;\n\t\t\t\ttransition: opacity 0.15s ease-out;\n\t\t\t}\n\n\t\t\t.telepointer-fullname {\n\t\t\t\topacity: 0;\n\t\t\t\ttransform: scaleX(0);\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransition:\n\t\t\t\t\ttransform 0.15s ease-out,\n\t\t\t\t\topacity 0.15s ease-out;\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t.telepointer-initial {\n\t\t\t\tanimation: pulseOut 2.5s ease-in-out;\n\t\t\t}\n\n\t\t\t.telepointer-fullname {\n\t\t\t\tanimation: pulseIn 2.5s ease-in-out;\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t.telepointer-initial {\n\t\t\t\tanimation: pulseOutDuringTr ", "ms ease-in-out;\n\t\t\t}\n\n\t\t\t.telepointer-fullname {\n\t\t\t\tanimation: pulseInDuringTr ", "ms ease-in-out;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t.telepointer-initial {\n\t\t\t\topacity: 0;\n\t\t\t\ttransition-delay: 150ms;\n\t\t\t}\n\n\t\t\t.telepointer-fullname {\n\t\t\t\ttransform: scaleX(1);\n\t\t\t\topacity: 1;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\topacity: 0.2;\n\t\t}\n\n\t\t", ";\n\t}\n"])), TELEPOINTER_SELECTION_BADGE_CLASS, "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)", "var(--ds-space-050, 4px)", "var(--ds-space-050, 4px)", TELEPOINTER_PULSE_CLASS, TELEPOINTER_PULSE_DURING_TR_CLASS, TELEPOINTER_PULSE_DURING_TR_DURATION_MS, TELEPOINTER_PULSE_DURING_TR_DURATION_MS, TELEPOINTER_DIM_CLASS, participantColors.map(function (participantColor, index) {
|
|
175
177
|
return telepointerColorStyle(participantColor.backgroundColor, participantColor.textColor, index);
|
|
176
178
|
}));
|
|
177
179
|
var tintKey = 'collab:isDirtyTransaction';
|
|
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
19
19
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "137.1.
|
|
22
|
+
var packageVersion = "137.1.2";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// 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 = "137.1.
|
|
23
|
+
var packageVersion = "137.1.2";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -16,13 +16,23 @@ import type { OperationalAEP, TrackAEP } from './utils';
|
|
|
16
16
|
export type SyncedBlockErrorReasonAttribute = 'errored' | 'not_found' | 'forbidden' | 'invalid_request' | 'rate_limited' | 'conflict' | 'server_error' | 'invalid_content' | 'offline' | 'unpublished' | 'aborted' | 'entity_not_found' | 'unknown' | 'source_deleted' | 'source_unpublished' | 'source_unsynced' | 'source_not_found' | 'permission_denied' | 'unauthenticated' | 'websocket_drop' | 'websocket_exhausted' | 'network' | 'data_provider_not_ready';
|
|
17
17
|
/**
|
|
18
18
|
* Mirrors the provider's `SyncBlockSourceLocation` union: which Jira work item field holds
|
|
19
|
-
* the source block. Only emitted for Jira sources
|
|
20
|
-
* `editor_synced_blocks_jira_custom_rich_text` is enabled, so Confluence sources and the
|
|
21
|
-
* control cohort leave it unset.
|
|
19
|
+
* the source block. Only emitted for Jira sources; Confluence sources leave it unset.
|
|
22
20
|
*/
|
|
23
21
|
export type SyncedBlockSourceLocationAttribute = 'description' | 'custom-field';
|
|
24
22
|
type SyncedBlockErrorAttributes = {
|
|
23
|
+
/**
|
|
24
|
+
* Whether the failure reason is a benign/working-as-designed outcome (e.g. the source
|
|
25
|
+
* was intentionally deleted/unpublished, or permission denied) rather than a genuine
|
|
26
|
+
* system failure. Lets the dashboard compute a true error rate without free-text regex.
|
|
27
|
+
* Only emitted on fetch/subscribe error events (EDITOR-7862).
|
|
28
|
+
*/
|
|
29
|
+
benign?: boolean;
|
|
25
30
|
error: string;
|
|
31
|
+
/**
|
|
32
|
+
* Categorical failure cause for dashboard grouping. Populated when error
|
|
33
|
+
* attribution data is available (EDITOR-7796 / EDITOR-7862).
|
|
34
|
+
*/
|
|
35
|
+
reason?: SyncedBlockErrorReasonAttribute;
|
|
26
36
|
resourceId?: string;
|
|
27
37
|
sourceLocation?: SyncedBlockSourceLocationAttribute;
|
|
28
38
|
/**
|
|
@@ -30,20 +40,8 @@ type SyncedBlockErrorAttributes = {
|
|
|
30
40
|
* Always optional because batch / subscription init paths fire without a `resourceId`.
|
|
31
41
|
*/
|
|
32
42
|
sourceProduct?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Categorical failure cause for dashboard grouping. Populated when error
|
|
35
|
-
* attribution data is available (EDITOR-7796 / EDITOR-7862).
|
|
36
|
-
*/
|
|
37
|
-
reason?: SyncedBlockErrorReasonAttribute;
|
|
38
43
|
/** Backend HTTP status code when the failure came from a `BlockError`. */
|
|
39
44
|
statusCode?: number;
|
|
40
|
-
/**
|
|
41
|
-
* Whether the failure reason is a benign/working-as-designed outcome (e.g. the source
|
|
42
|
-
* was intentionally deleted/unpublished, or permission denied) rather than a genuine
|
|
43
|
-
* system failure. Lets the dashboard compute a true error rate without free-text regex.
|
|
44
|
-
* Only emitted on fetch/subscribe error events (EDITOR-7862).
|
|
45
|
-
*/
|
|
46
|
-
benign?: boolean;
|
|
47
45
|
};
|
|
48
46
|
type SyncedBlockSuccessAttributes = {
|
|
49
47
|
blockInstanceId?: string;
|
|
@@ -74,9 +72,8 @@ type SyncedBlockDeleteSuccessAttributes = SyncedBlockSuccessAttributes & {
|
|
|
74
72
|
};
|
|
75
73
|
type FetchSyncedBlockSuccessAttributes = SyncedBlockSuccessAttributes;
|
|
76
74
|
/**
|
|
77
|
-
* Per-request source-info success attrs. `sourceLocation` is only set for Jira sources
|
|
78
|
-
*
|
|
79
|
-
* experiment).
|
|
75
|
+
* Per-request source-info success attrs. `sourceLocation` is only set for Jira sources
|
|
76
|
+
* behind the `platform_editor_blocks_patch_12` experiment.
|
|
80
77
|
*/
|
|
81
78
|
type SyncedBlockGetSourceInfoSuccessAttributes = SyncedBlockSuccessAttributes & {
|
|
82
79
|
sourceLocation?: SyncedBlockSourceLocationAttribute;
|
|
@@ -561,6 +561,8 @@ export declare const TELEPOINTER_PULSE_CLASS = "telepointer-pulse-animate";
|
|
|
561
561
|
export declare const TELEPOINTER_PULSE_DURING_TR_CLASS = "telepointer-pulse-during-tr";
|
|
562
562
|
export declare const TELEPOINTER_PULSE_DURING_TR_DURATION_MS = 7500;
|
|
563
563
|
export declare const TELEPOINTER_DATA_SESSION_ID_ATTR = "data-telepointer-sessionid";
|
|
564
|
+
export declare const TELEPOINTER_SELECTION_BADGE_CLASS = "telepointer-selection-badge";
|
|
565
|
+
export declare const AI_IN_EDITOR_TELEPOINTER_CLASS = "ai-in-editor-telepointer";
|
|
564
566
|
export declare const telepointerStyle: SerializedStyles;
|
|
565
567
|
export declare const isDirtyTransaction: (tr: Transaction | ReadonlyTransaction) => boolean;
|
|
566
568
|
export declare const tintDirtyTransaction: (tr: Transaction) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "137.
|
|
3
|
+
"version": "137.2.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/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/codemod-utils": "^5.2.0",
|
|
42
42
|
"@atlaskit/css": "^1.1.0",
|
|
43
43
|
"@atlaskit/custom-steps": "^1.1.0",
|
|
44
|
-
"@atlaskit/dropdown-menu": "^
|
|
44
|
+
"@atlaskit/dropdown-menu": "^22.0.0",
|
|
45
45
|
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
46
46
|
"@atlaskit/editor-palette": "^3.5.0",
|
|
47
47
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
76
76
|
"@atlaskit/popper": "^9.4.0",
|
|
77
77
|
"@atlaskit/popup": "^10.2.0",
|
|
78
|
-
"@atlaskit/primitives": "^22.
|
|
79
|
-
"@atlaskit/profilecard": "^27.
|
|
78
|
+
"@atlaskit/primitives": "^22.8.0",
|
|
79
|
+
"@atlaskit/profilecard": "^27.11.0",
|
|
80
80
|
"@atlaskit/prosemirror-history": "^1.3.0",
|
|
81
81
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
82
82
|
"@atlaskit/react-ufo": "^8.5.0",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"@atlaskit/task-decision": "^21.16.0",
|
|
88
88
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
89
89
|
"@atlaskit/textfield": "^11.0.0",
|
|
90
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
91
|
-
"@atlaskit/tokens": "^20.
|
|
90
|
+
"@atlaskit/tmp-editor-statsig": "^266.0.0",
|
|
91
|
+
"@atlaskit/tokens": "^20.14.0",
|
|
92
92
|
"@atlaskit/tooltip": "^24.4.0",
|
|
93
93
|
"@atlaskit/width-detector": "^7.2.0",
|
|
94
94
|
"@babel/runtime": "^7.0.0",
|