@atlaskit/editor-common 78.12.0 → 78.12.2
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 +13 -0
- package/dist/cjs/analytics/types/block.js +1 -5
- package/dist/cjs/analytics/types/performance-report.js +1 -5
- package/dist/cjs/collab/index.js +12 -38
- package/dist/cjs/extensions/types/extension-parameters.js +1 -5
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/provider-factory/context-identifier-provider.js +1 -5
- package/dist/cjs/provider-factory/search-provider.js +1 -5
- package/dist/cjs/resizer/types.js +1 -5
- package/dist/cjs/types/block-type.js +1 -5
- package/dist/cjs/types/breakout.js +1 -5
- package/dist/cjs/types/datasource.js +1 -5
- package/dist/cjs/types/editor-appearance.js +1 -5
- package/dist/cjs/types/editor-container-width.js +1 -5
- package/dist/cjs/types/empty-state-handler.js +1 -5
- package/dist/cjs/types/feedback-dialog.js +1 -5
- package/dist/cjs/types/grid.js +1 -5
- package/dist/cjs/types/image-upload-reference-event.js +1 -5
- package/dist/cjs/types/performance-tracking.js +1 -5
- package/dist/cjs/types/selection.js +1 -5
- package/dist/cjs/types/supported-browsers.js +0 -3
- package/dist/cjs/types/tables.js +1 -5
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/MediaSingle/types.js +1 -5
- package/dist/cjs/utils/types.js +1 -5
- package/dist/es2019/analytics/types/block.js +0 -1
- package/dist/es2019/analytics/types/performance-report.js +0 -1
- package/dist/es2019/collab/index.js +42 -34
- package/dist/es2019/extensions/types/extension-parameters.js +0 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/provider-factory/context-identifier-provider.js +0 -1
- package/dist/es2019/provider-factory/search-provider.js +0 -1
- package/dist/es2019/resizer/types.js +0 -1
- package/dist/es2019/types/block-type.js +0 -1
- package/dist/es2019/types/breakout.js +0 -1
- package/dist/es2019/types/datasource.js +0 -1
- package/dist/es2019/types/editor-appearance.js +0 -1
- package/dist/es2019/types/editor-container-width.js +0 -1
- package/dist/es2019/types/empty-state-handler.js +0 -1
- package/dist/es2019/types/feedback-dialog.js +0 -1
- package/dist/es2019/types/grid.js +0 -1
- package/dist/es2019/types/image-upload-reference-event.js +0 -1
- package/dist/es2019/types/performance-tracking.js +0 -1
- package/dist/es2019/types/selection.js +0 -1
- package/dist/es2019/types/supported-browsers.js +1 -2
- package/dist/es2019/types/tables.js +0 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/types.js +0 -1
- package/dist/es2019/utils/types.js +0 -1
- package/dist/esm/analytics/types/block.js +0 -1
- package/dist/esm/analytics/types/performance-report.js +0 -1
- package/dist/esm/collab/index.js +12 -38
- package/dist/esm/extensions/types/extension-parameters.js +0 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/provider-factory/context-identifier-provider.js +0 -1
- package/dist/esm/provider-factory/search-provider.js +0 -1
- package/dist/esm/resizer/types.js +0 -1
- package/dist/esm/types/block-type.js +0 -1
- package/dist/esm/types/breakout.js +0 -1
- package/dist/esm/types/datasource.js +0 -1
- package/dist/esm/types/editor-appearance.js +0 -1
- package/dist/esm/types/editor-container-width.js +0 -1
- package/dist/esm/types/empty-state-handler.js +0 -1
- package/dist/esm/types/feedback-dialog.js +0 -1
- package/dist/esm/types/grid.js +0 -1
- package/dist/esm/types/image-upload-reference-event.js +0 -1
- package/dist/esm/types/performance-tracking.js +0 -1
- package/dist/esm/types/selection.js +0 -1
- package/dist/esm/types/supported-browsers.js +1 -2
- package/dist/esm/types/tables.js +0 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/MediaSingle/types.js +0 -1
- package/dist/esm/utils/types.js +0 -1
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 78.12.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#80973](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80973) [`cdff30287b21`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cdff30287b21) - [ux] Fix collab telepointer styling
|
|
8
|
+
|
|
9
|
+
## 78.12.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#80085](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80085) [`7febfed958dd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7febfed958dd) - Update usage of `React.FC` to explicity include `children`
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 78.12.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/dist/cjs/collab/index.js
CHANGED
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.tintDirtyTransaction = exports.telepointerStyle = exports.isDirtyTransaction = exports.colors = exports.TELEPOINTER_DIM_CLASS = exports.PROVIDER_ERROR_CODE = exports.DisconnectReason = void 0;
|
|
9
|
-
var
|
|
10
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
11
10
|
var _react = require("@emotion/react");
|
|
12
11
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
13
12
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
14
13
|
var themeColors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
14
|
+
var _templateObject;
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
16
|
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 && Object.prototype.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; }
|
|
17
17
|
// Format of the payload returned by the callback function passed to the collab provider
|
|
@@ -130,43 +130,17 @@ var colors = exports.colors = [themeColors.R100, themeColors.R300, themeColors.R
|
|
|
130
130
|
selection: (0, _adfSchema.hexToRgba)(solid, 0.2)
|
|
131
131
|
};
|
|
132
132
|
});
|
|
133
|
+
var telepointerColorStyle = function telepointerColorStyle(color, index) {
|
|
134
|
+
return "\n &.color-".concat(index, " {\n background-color: ").concat(color.selection, ";\n &::after {\n background-color: ").concat(color.solid, ";\n color: ", "var(--ds-text-inverse, #fff)", ";\n border-color: ").concat(color.solid, ";\n }\n }\n");
|
|
135
|
+
};
|
|
133
136
|
var TELEPOINTER_DIM_CLASS = exports.TELEPOINTER_DIM_CLASS = 'telepointer-dim';
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
userSelect: 'none'
|
|
142
|
-
},
|
|
143
|
-
'&.telepointer-selection-badge::after': {
|
|
144
|
-
content: 'attr(data-initial)',
|
|
145
|
-
position: 'absolute',
|
|
146
|
-
display: 'block',
|
|
147
|
-
// Disable top: -14px since it is necessary to align to cursor
|
|
148
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
149
|
-
top: '-14px',
|
|
150
|
-
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)(9),
|
|
151
|
-
padding: "var(--ds-space-025, 2px)",
|
|
152
|
-
color: "var(--ds-text-inverse, white)",
|
|
153
|
-
left: '0px',
|
|
154
|
-
borderRadius: '2px 2px 2px 0',
|
|
155
|
-
lineHeight: 'initial'
|
|
156
|
-
}
|
|
157
|
-
}, "&.".concat(TELEPOINTER_DIM_CLASS), {
|
|
158
|
-
opacity: 0.2
|
|
159
|
-
})
|
|
160
|
-
}].concat((0, _toConsumableArray2.default)(colors.map(function (color, index) {
|
|
161
|
-
return (0, _defineProperty2.default)({}, "&.color-".concat(index), {
|
|
162
|
-
backgroundColor: color.selection,
|
|
163
|
-
'&::after': {
|
|
164
|
-
backgroundColor: color.solid,
|
|
165
|
-
color: "var(--ds-text-inverse, #fff)",
|
|
166
|
-
borderColor: color.solid
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
}))));
|
|
137
|
+
|
|
138
|
+
// ED-22557: Safely convert to object styling
|
|
139
|
+
// Disable top: -14px since it is necessary to align to cursor
|
|
140
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression
|
|
141
|
+
var telepointerStyle = exports.telepointerStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror .telepointer {\n position: relative;\n transition: opacity 200ms;\n\n &.telepointer-selection {\n line-height: 1.2;\n pointer-events: none;\n user-select: none;\n }\n\n &.telepointer-selection-badge::after {\n content: attr(data-initial);\n position: absolute;\n display: block;\n top: -14px;\n font-size: ", ";\n padding: ", ";\n color: ", ";\n left: 0px;\n border-radius: 2px 2px 2px 0;\n line-height: initial;\n }\n\n &.", " {\n opacity: 0.2;\n }\n\n ", ";\n }\n"])), (0, _editorSharedStyles.relativeFontSizeToBase16)(9), "var(--ds-space-025, 2px)", "var(--ds-text-inverse, white)", TELEPOINTER_DIM_CLASS, colors.map(function (color, index) {
|
|
142
|
+
return telepointerColorStyle(color, index);
|
|
143
|
+
}));
|
|
170
144
|
var tintKey = 'collab:isDirtyTransaction';
|
|
171
145
|
var isDirtyTransaction = exports.isDirtyTransaction = function isDirtyTransaction(tr) {
|
|
172
146
|
return Boolean(tr.getMeta(tintKey));
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
16
16
|
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 && Object.prototype.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; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "78.12.
|
|
19
|
+
var packageVersion = "78.12.2";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
package/dist/cjs/types/grid.js
CHANGED
package/dist/cjs/types/tables.js
CHANGED
|
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
23
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "78.12.
|
|
25
|
+
var packageVersion = "78.12.2";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
package/dist/cjs/utils/types.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -132,44 +132,52 @@ export const colors = [themeColors.R100, themeColors.R300, themeColors.R500, the
|
|
|
132
132
|
solid,
|
|
133
133
|
selection: hexToRgba(solid, 0.2)
|
|
134
134
|
}));
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
pointerEvents: 'none',
|
|
143
|
-
userSelect: 'none'
|
|
144
|
-
},
|
|
145
|
-
'&.telepointer-selection-badge::after': {
|
|
146
|
-
content: 'attr(data-initial)',
|
|
147
|
-
position: 'absolute',
|
|
148
|
-
display: 'block',
|
|
149
|
-
// Disable top: -14px since it is necessary to align to cursor
|
|
150
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
151
|
-
top: '-14px',
|
|
152
|
-
fontSize: relativeFontSizeToBase16(9),
|
|
153
|
-
padding: "var(--ds-space-025, 2px)",
|
|
154
|
-
color: "var(--ds-text-inverse, white)",
|
|
155
|
-
left: '0px',
|
|
156
|
-
borderRadius: '2px 2px 2px 0',
|
|
157
|
-
lineHeight: 'initial'
|
|
158
|
-
},
|
|
159
|
-
[`&.${TELEPOINTER_DIM_CLASS}`]: {
|
|
160
|
-
opacity: 0.2
|
|
135
|
+
const telepointerColorStyle = (color, index) => `
|
|
136
|
+
&.color-${index} {
|
|
137
|
+
background-color: ${color.selection};
|
|
138
|
+
&::after {
|
|
139
|
+
background-color: ${color.solid};
|
|
140
|
+
color: ${"var(--ds-text-inverse, #fff)"};
|
|
141
|
+
border-color: ${color.solid};
|
|
161
142
|
}
|
|
162
143
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
144
|
+
`;
|
|
145
|
+
export const TELEPOINTER_DIM_CLASS = 'telepointer-dim';
|
|
146
|
+
|
|
147
|
+
// ED-22557: Safely convert to object styling
|
|
148
|
+
// Disable top: -14px since it is necessary to align to cursor
|
|
149
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression
|
|
150
|
+
export const telepointerStyle = css`
|
|
151
|
+
.ProseMirror .telepointer {
|
|
152
|
+
position: relative;
|
|
153
|
+
transition: opacity 200ms;
|
|
154
|
+
|
|
155
|
+
&.telepointer-selection {
|
|
156
|
+
line-height: 1.2;
|
|
157
|
+
pointer-events: none;
|
|
158
|
+
user-select: none;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&.telepointer-selection-badge::after {
|
|
162
|
+
content: attr(data-initial);
|
|
163
|
+
position: absolute;
|
|
164
|
+
display: block;
|
|
165
|
+
top: -14px;
|
|
166
|
+
font-size: ${relativeFontSizeToBase16(9)};
|
|
167
|
+
padding: ${"var(--ds-space-025, 2px)"};
|
|
168
|
+
color: ${"var(--ds-text-inverse, white)"};
|
|
169
|
+
left: 0px;
|
|
170
|
+
border-radius: 2px 2px 2px 0;
|
|
171
|
+
line-height: initial;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&.${TELEPOINTER_DIM_CLASS} {
|
|
175
|
+
opacity: 0.2;
|
|
170
176
|
}
|
|
177
|
+
|
|
178
|
+
${colors.map((color, index) => telepointerColorStyle(color, index))};
|
|
171
179
|
}
|
|
172
|
-
|
|
180
|
+
`;
|
|
173
181
|
const tintKey = 'collab:isDirtyTransaction';
|
|
174
182
|
export const isDirtyTransaction = tr => {
|
|
175
183
|
return Boolean(tr.getMeta(tintKey));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "78.12.
|
|
3
|
+
const packageVersion = "78.12.2";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const SupportedBrowsers = ['ie', 'gecko', 'chrome', 'safari'];
|
|
2
|
-
export {};
|
|
1
|
+
const SupportedBrowsers = ['ie', 'gecko', 'chrome', 'safari'];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
7
7
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import Layer from '../Layer';
|
|
9
9
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "78.12.
|
|
10
|
+
const packageVersion = "78.12.2";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/esm/collab/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
+
var _templateObject;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { hexToRgba } from '@atlaskit/adf-schema';
|
|
5
5
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
@@ -136,43 +136,17 @@ export var colors = [themeColors.R100, themeColors.R300, themeColors.R500, theme
|
|
|
136
136
|
selection: hexToRgba(solid, 0.2)
|
|
137
137
|
};
|
|
138
138
|
});
|
|
139
|
+
var telepointerColorStyle = function telepointerColorStyle(color, index) {
|
|
140
|
+
return "\n &.color-".concat(index, " {\n background-color: ").concat(color.selection, ";\n &::after {\n background-color: ").concat(color.solid, ";\n color: ", "var(--ds-text-inverse, #fff)", ";\n border-color: ").concat(color.solid, ";\n }\n }\n");
|
|
141
|
+
};
|
|
139
142
|
export var TELEPOINTER_DIM_CLASS = 'telepointer-dim';
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
userSelect: 'none'
|
|
148
|
-
},
|
|
149
|
-
'&.telepointer-selection-badge::after': {
|
|
150
|
-
content: 'attr(data-initial)',
|
|
151
|
-
position: 'absolute',
|
|
152
|
-
display: 'block',
|
|
153
|
-
// Disable top: -14px since it is necessary to align to cursor
|
|
154
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
155
|
-
top: '-14px',
|
|
156
|
-
fontSize: relativeFontSizeToBase16(9),
|
|
157
|
-
padding: "var(--ds-space-025, 2px)",
|
|
158
|
-
color: "var(--ds-text-inverse, white)",
|
|
159
|
-
left: '0px',
|
|
160
|
-
borderRadius: '2px 2px 2px 0',
|
|
161
|
-
lineHeight: 'initial'
|
|
162
|
-
}
|
|
163
|
-
}, "&.".concat(TELEPOINTER_DIM_CLASS), {
|
|
164
|
-
opacity: 0.2
|
|
165
|
-
})
|
|
166
|
-
}].concat(_toConsumableArray(colors.map(function (color, index) {
|
|
167
|
-
return _defineProperty({}, "&.color-".concat(index), {
|
|
168
|
-
backgroundColor: color.selection,
|
|
169
|
-
'&::after': {
|
|
170
|
-
backgroundColor: color.solid,
|
|
171
|
-
color: "var(--ds-text-inverse, #fff)",
|
|
172
|
-
borderColor: color.solid
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
}))));
|
|
143
|
+
|
|
144
|
+
// ED-22557: Safely convert to object styling
|
|
145
|
+
// Disable top: -14px since it is necessary to align to cursor
|
|
146
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression
|
|
147
|
+
export var telepointerStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror .telepointer {\n position: relative;\n transition: opacity 200ms;\n\n &.telepointer-selection {\n line-height: 1.2;\n pointer-events: none;\n user-select: none;\n }\n\n &.telepointer-selection-badge::after {\n content: attr(data-initial);\n position: absolute;\n display: block;\n top: -14px;\n font-size: ", ";\n padding: ", ";\n color: ", ";\n left: 0px;\n border-radius: 2px 2px 2px 0;\n line-height: initial;\n }\n\n &.", " {\n opacity: 0.2;\n }\n\n ", ";\n }\n"])), relativeFontSizeToBase16(9), "var(--ds-space-025, 2px)", "var(--ds-text-inverse, white)", TELEPOINTER_DIM_CLASS, colors.map(function (color, index) {
|
|
148
|
+
return telepointerColorStyle(color, index);
|
|
149
|
+
}));
|
|
176
150
|
var tintKey = 'collab:isDirtyTransaction';
|
|
177
151
|
export var isDirtyTransaction = function isDirtyTransaction(tr) {
|
|
178
152
|
return Boolean(tr.getMeta(tintKey));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "78.12.
|
|
9
|
+
var packageVersion = "78.12.2";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/esm/types/grid.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
var SupportedBrowsers = ['ie', 'gecko', 'chrome', 'safari'];
|
|
2
|
-
export {};
|
|
1
|
+
var SupportedBrowsers = ['ie', 'gecko', 'chrome', 'safari'];
|
package/dist/esm/types/tables.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "78.12.
|
|
20
|
+
var packageVersion = "78.12.2";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/esm/utils/types.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -27,5 +27,5 @@ type Props = WithAnalyticsEventsProps & {
|
|
|
27
27
|
skipFocusButtonAfterPick?: boolean;
|
|
28
28
|
absoluteOffset?: PopupPosition;
|
|
29
29
|
};
|
|
30
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "
|
|
30
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "cols" | "isAriaExpanded" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
|
|
31
31
|
export default _default;
|
|
@@ -27,5 +27,5 @@ type Props = WithAnalyticsEventsProps & {
|
|
|
27
27
|
skipFocusButtonAfterPick?: boolean;
|
|
28
28
|
absoluteOffset?: PopupPosition;
|
|
29
29
|
};
|
|
30
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "
|
|
30
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "cols" | "isAriaExpanded" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
|
|
31
31
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "78.12.
|
|
3
|
+
"version": "78.12.2",
|
|
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/"
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"@atlaskit/media-file-preview": "^0.5.0",
|
|
123
123
|
"@atlaskit/media-picker": "^66.3.0",
|
|
124
124
|
"@atlaskit/media-ui": "^25.4.0",
|
|
125
|
-
"@atlaskit/media-viewer": "48.3.
|
|
125
|
+
"@atlaskit/media-viewer": "48.3.7",
|
|
126
126
|
"@atlaskit/mention": "^23.0.0",
|
|
127
127
|
"@atlaskit/menu": "^2.1.0",
|
|
128
128
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|