@atlaskit/editor-common 107.12.10 → 107.13.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 +21 -0
- package/dist/cjs/collab/index.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/preset/core-plugin/index.js +5 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/editor-core-utils.js +1 -6
- package/dist/es2019/collab/index.js +0 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/preset/core-plugin/index.js +5 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/editor-core-utils.js +1 -6
- package/dist/esm/collab/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/preset/core-plugin/index.js +5 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/editor-core-utils.js +1 -6
- package/dist/types/types/next-editor-plugin.d.ts +7 -0
- package/dist/types-ts4.5/types/next-editor-plugin.d.ts +7 -0
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 107.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#193709](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/193709)
|
|
8
|
+
[`9f25c72b75349`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f25c72b75349) -
|
|
9
|
+
EDITOR-338 Cleans up nested tables feature gate platform_editor_nested_tables_column_drag_fix
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 107.13.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#193408](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/193408)
|
|
17
|
+
[`f8d5d3744010c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f8d5d3744010c) -
|
|
18
|
+
Add editor schema to core plugin sharedState
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 107.12.10
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/cjs/collab/index.js
CHANGED
|
@@ -148,7 +148,7 @@ var telepointerStyleWithInitialOnly = exports.telepointerStyleWithInitialOnly =
|
|
|
148
148
|
// ED-22557: Safely convert to object styling
|
|
149
149
|
// Disable top: -14px since it is necessary to align to cursor
|
|
150
150
|
// 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
|
|
151
|
-
var telepointerStyle = exports.telepointerStyle = (0, _react.css)(_templateObject2 || (_templateObject2 = (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&.telepointer-selection-badge {\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\
|
|
151
|
+
var telepointerStyle = exports.telepointerStyle = (0, _react.css)(_templateObject2 || (_templateObject2 = (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&.telepointer-selection-badge {\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"])), "var(--ds-font-body-small, normal 400 11px/16px 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, _editorSharedStyles.participantColors.map(function (participantColor, index) {
|
|
152
152
|
return telepointerColorStyle(participantColor.backgroundColor, participantColor.textColor, index);
|
|
153
153
|
}));
|
|
154
154
|
var tintKey = 'collab:isDirtyTransaction';
|
|
@@ -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.13.0";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -19,6 +19,11 @@ var corePlugin = exports.corePlugin = function corePlugin(_ref) {
|
|
|
19
19
|
var scheduleDocumentRequest = (0, _requestDocument.createThrottleSchedule)(_requestDocument.returnDocumentRequest);
|
|
20
20
|
return {
|
|
21
21
|
name: 'core',
|
|
22
|
+
getSharedState: function getSharedState(state) {
|
|
23
|
+
return {
|
|
24
|
+
schema: state === null || state === void 0 ? void 0 : state.schema
|
|
25
|
+
};
|
|
26
|
+
},
|
|
22
27
|
actions: {
|
|
23
28
|
execute: function execute(command) {
|
|
24
29
|
var editorView = config === null || config === void 0 ? void 0 : config.getEditorView();
|
|
@@ -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.13.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -20,7 +20,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
|
|
|
20
20
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
21
21
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
22
22
|
var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
|
|
23
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
24
23
|
var _dom = require("./dom");
|
|
25
24
|
/**
|
|
26
25
|
* Checks if node is an empty paragraph.
|
|
@@ -65,11 +64,7 @@ var isTextSelection = exports.isTextSelection = function isTextSelection(selecti
|
|
|
65
64
|
return selection instanceof _state.TextSelection;
|
|
66
65
|
};
|
|
67
66
|
var isElementInTableCell = exports.isElementInTableCell = function isElementInTableCell(element) {
|
|
68
|
-
|
|
69
|
-
return (0, _dom.closest)(element, 'td, th');
|
|
70
|
-
} else {
|
|
71
|
-
return (0, _dom.closest)(element, 'td') || (0, _dom.closest)(element, 'th');
|
|
72
|
-
}
|
|
67
|
+
return (0, _dom.closest)(element, 'td, th');
|
|
73
68
|
};
|
|
74
69
|
var isLastItemMediaGroup = exports.isLastItemMediaGroup = function isLastItemMediaGroup(node) {
|
|
75
70
|
var content = node.content;
|
|
@@ -279,7 +279,6 @@ export const telepointerStyle = css`
|
|
|
279
279
|
font: ${"var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"};
|
|
280
280
|
padding-left: ${"var(--ds-space-050, 4px)"};
|
|
281
281
|
padding-right: ${"var(--ds-space-050, 4px)"};
|
|
282
|
-
color: ${"var(--ds-text-inverse, #FFFFFF)"};
|
|
283
282
|
border-radius: 0 2px 2px 0;
|
|
284
283
|
}
|
|
285
284
|
|
|
@@ -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.13.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -15,6 +15,11 @@ export const corePlugin = ({
|
|
|
15
15
|
const scheduleDocumentRequest = createThrottleSchedule(returnDocumentRequest);
|
|
16
16
|
return {
|
|
17
17
|
name: 'core',
|
|
18
|
+
getSharedState(state) {
|
|
19
|
+
return {
|
|
20
|
+
schema: state === null || state === void 0 ? void 0 : state.schema
|
|
21
|
+
};
|
|
22
|
+
},
|
|
18
23
|
actions: {
|
|
19
24
|
execute: command => {
|
|
20
25
|
const editorView = config === null || config === void 0 ? void 0 : config.getEditorView();
|
|
@@ -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.13.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -2,7 +2,6 @@ import { AllSelection, NodeSelection, TextSelection } from '@atlaskit/editor-pro
|
|
|
2
2
|
import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
3
3
|
import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
4
4
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { closest } from './dom';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -44,11 +43,7 @@ export const extractSliceFromStep = step => {
|
|
|
44
43
|
};
|
|
45
44
|
export const isTextSelection = selection => selection instanceof TextSelection;
|
|
46
45
|
export const isElementInTableCell = element => {
|
|
47
|
-
|
|
48
|
-
return closest(element, 'td, th');
|
|
49
|
-
} else {
|
|
50
|
-
return closest(element, 'td') || closest(element, 'th');
|
|
51
|
-
}
|
|
46
|
+
return closest(element, 'td, th');
|
|
52
47
|
};
|
|
53
48
|
export const isLastItemMediaGroup = node => {
|
|
54
49
|
const {
|
package/dist/esm/collab/index.js
CHANGED
|
@@ -165,7 +165,7 @@ export var telepointerStyleWithInitialOnly = css(_templateObject || (_templateOb
|
|
|
165
165
|
// ED-22557: Safely convert to object styling
|
|
166
166
|
// Disable top: -14px since it is necessary to align to cursor
|
|
167
167
|
// 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
|
|
168
|
-
export var telepointerStyle = css(_templateObject2 || (_templateObject2 = _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&.telepointer-selection-badge {\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\
|
|
168
|
+
export var telepointerStyle = css(_templateObject2 || (_templateObject2 = _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&.telepointer-selection-badge {\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"])), "var(--ds-font-body-small, normal 400 11px/16px 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) {
|
|
169
169
|
return telepointerColorStyle(participantColor.backgroundColor, participantColor.textColor, index);
|
|
170
170
|
}));
|
|
171
171
|
var tintKey = 'collab:isDirtyTransaction';
|
|
@@ -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.13.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -14,6 +14,11 @@ export var corePlugin = function corePlugin(_ref) {
|
|
|
14
14
|
var scheduleDocumentRequest = createThrottleSchedule(returnDocumentRequest);
|
|
15
15
|
return {
|
|
16
16
|
name: 'core',
|
|
17
|
+
getSharedState: function getSharedState(state) {
|
|
18
|
+
return {
|
|
19
|
+
schema: state === null || state === void 0 ? void 0 : state.schema
|
|
20
|
+
};
|
|
21
|
+
},
|
|
17
22
|
actions: {
|
|
18
23
|
execute: function execute(command) {
|
|
19
24
|
var editorView = config === null || config === void 0 ? void 0 : config.getEditorView();
|
|
@@ -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.13.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -2,7 +2,6 @@ import { AllSelection, NodeSelection, TextSelection } from '@atlaskit/editor-pro
|
|
|
2
2
|
import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
3
3
|
import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
4
4
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { closest } from './dom';
|
|
7
6
|
|
|
8
7
|
/**
|
|
@@ -48,11 +47,7 @@ export var isTextSelection = function isTextSelection(selection) {
|
|
|
48
47
|
return selection instanceof TextSelection;
|
|
49
48
|
};
|
|
50
49
|
export var isElementInTableCell = function isElementInTableCell(element) {
|
|
51
|
-
|
|
52
|
-
return closest(element, 'td, th');
|
|
53
|
-
} else {
|
|
54
|
-
return closest(element, 'td') || closest(element, 'th');
|
|
55
|
-
}
|
|
50
|
+
return closest(element, 'td, th');
|
|
56
51
|
};
|
|
57
52
|
export var isLastItemMediaGroup = function isLastItemMediaGroup(node) {
|
|
58
53
|
var content = node.content;
|
|
@@ -20,6 +20,13 @@ export type CorePlugin = NextEditorPlugin<'core', {
|
|
|
20
20
|
getEditorView: () => EditorView | undefined;
|
|
21
21
|
fireAnalyticsEvent?: FireAnalyticsCallback;
|
|
22
22
|
};
|
|
23
|
+
sharedState: {
|
|
24
|
+
/**
|
|
25
|
+
* The schema of the editor. It is guarranteed to be static for its lifecycle
|
|
26
|
+
* so is safe to use `currentState`
|
|
27
|
+
*/
|
|
28
|
+
schema: Schema | undefined;
|
|
29
|
+
};
|
|
23
30
|
actions: {
|
|
24
31
|
/**
|
|
25
32
|
* Dispatches an EditorCommand to ProseMirror
|
|
@@ -20,6 +20,13 @@ export type CorePlugin = NextEditorPlugin<'core', {
|
|
|
20
20
|
getEditorView: () => EditorView | undefined;
|
|
21
21
|
fireAnalyticsEvent?: FireAnalyticsCallback;
|
|
22
22
|
};
|
|
23
|
+
sharedState: {
|
|
24
|
+
/**
|
|
25
|
+
* The schema of the editor. It is guarranteed to be static for its lifecycle
|
|
26
|
+
* so is safe to use `currentState`
|
|
27
|
+
*/
|
|
28
|
+
schema: Schema | undefined;
|
|
29
|
+
};
|
|
23
30
|
actions: {
|
|
24
31
|
/**
|
|
25
32
|
* Dispatches an EditorCommand to ProseMirror
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "107.
|
|
3
|
+
"version": "107.13.1",
|
|
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/"
|
|
@@ -135,13 +135,13 @@
|
|
|
135
135
|
"@atlaskit/css": "^0.12.0",
|
|
136
136
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
137
137
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
138
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
138
|
+
"@atlaskit/editor-json-transformer": "^8.25.0",
|
|
139
139
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
140
140
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
141
141
|
"@atlaskit/editor-shared-styles": "^3.5.0",
|
|
142
142
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
143
143
|
"@atlaskit/emoji": "^69.3.0",
|
|
144
|
-
"@atlaskit/icon": "^27.
|
|
144
|
+
"@atlaskit/icon": "^27.8.0",
|
|
145
145
|
"@atlaskit/icon-object": "^7.1.0",
|
|
146
146
|
"@atlaskit/link": "^3.2.0",
|
|
147
147
|
"@atlaskit/link-datasource": "^4.16.0",
|
|
@@ -279,9 +279,6 @@
|
|
|
279
279
|
"platform_editor_renderer_table_header_styles": {
|
|
280
280
|
"type": "boolean"
|
|
281
281
|
},
|
|
282
|
-
"platform_editor_nested_tables_column_drag_fix": {
|
|
283
|
-
"type": "boolean"
|
|
284
|
-
},
|
|
285
282
|
"platform_editor_elements_dnd_multi_select_patch_1": {
|
|
286
283
|
"type": "boolean"
|
|
287
284
|
},
|