@atlaskit/editor-common 111.8.2 → 111.8.4
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 +17 -0
- package/afm-products/tsconfig.json +1 -1
- package/dist/cjs/collab/index.js +1 -1
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/cjs/extensibility/Extension/Lozenge/EditToggle.js +1 -1
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/cjs/floating-toolbar/DropdownMenuExtensionItems.js +61 -18
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/cjs/messages/syncBlock.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/generateUniqueNodeKey.js +1 -0
- package/dist/cjs/styles/shared/headings.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/unsupported-content-helper.js +3 -1
- package/dist/cjs/utils/breakout.js +1 -0
- package/dist/es2019/collab/index.js +1 -1
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/EditToggle.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/es2019/floating-toolbar/DropdownMenuExtensionItems.js +31 -6
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/es2019/messages/syncBlock.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/generateUniqueNodeKey.js +2 -0
- package/dist/es2019/styles/shared/headings.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/styled.js +3 -1
- package/dist/es2019/ui/unsupported-content-helper.js +3 -1
- package/dist/es2019/utils/breakout.js +1 -0
- package/dist/esm/collab/index.js +1 -1
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/EditToggle.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/esm/floating-toolbar/DropdownMenuExtensionItems.js +62 -19
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/esm/messages/syncBlock.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/generateUniqueNodeKey.js +2 -0
- package/dist/esm/styles/shared/headings.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/unsupported-content-helper.js +3 -1
- package/dist/esm/utils/breakout.js +1 -0
- package/dist/types/messages/syncBlock.d.ts +5 -0
- package/dist/types/provider-helpers/combine-providers.d.ts +1 -1
- package/dist/types/utils/breakout.d.ts +10 -10
- package/dist/types-ts4.5/messages/syncBlock.d.ts +5 -0
- package/dist/types-ts4.5/provider-helpers/combine-providers.d.ts +1 -1
- package/dist/types-ts4.5/utils/breakout.d.ts +10 -10
- package/package.json +4 -4
- package/build/tsconfig.json +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 111.8.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7b1f7ff1a2235`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b1f7ff1a2235) -
|
|
8
|
+
[ux] [EDITOR-4536] Update synced location dropdown UI
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 111.8.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`ef0c088fb17f6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef0c088fb17f6) -
|
|
16
|
+
[ux] Fix the flickering extensions icon issue in the table's floating toolbar `View more` dropdown
|
|
17
|
+
options.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 111.8.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/cjs/collab/index.js
CHANGED
|
@@ -141,7 +141,7 @@ var TELEPOINTER_DATA_SESSION_ID_ATTR = exports.TELEPOINTER_DATA_SESSION_ID_ATTR
|
|
|
141
141
|
// ED-22557: Safely convert to object styling
|
|
142
142
|
// Disable top: -14px since it is necessary to align to cursor
|
|
143
143
|
// 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
|
|
144
|
-
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&.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
|
|
144
|
+
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&.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 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, _editorSharedStyles.participantColors.map(function (participantColor, index) {
|
|
145
145
|
return telepointerColorStyle(participantColor.backgroundColor, participantColor.textColor, index);
|
|
146
146
|
}));
|
|
147
147
|
var tintKey = 'collab:isDirtyTransaction';
|
|
@@ -59,7 +59,7 @@ function EmptyState(_ref) {
|
|
|
59
59
|
})))));
|
|
60
60
|
}
|
|
61
61
|
var emptyStateHeading = (0, _react2.css)({
|
|
62
|
-
font: "var(--ds-font-heading-medium, normal
|
|
62
|
+
font: "var(--ds-font-heading-medium, normal 653 20px/24px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
63
63
|
color: "var(--ds-text, rgb(23, 43, 77))",
|
|
64
64
|
marginTop: "var(--ds-space-300, 24px)"
|
|
65
65
|
});
|
|
@@ -42,7 +42,7 @@ var buttonStyles = (0, _react2.css)({
|
|
|
42
42
|
borderRadius: "var(--ds-radius-small, 4px)",
|
|
43
43
|
paddingLeft: "var(--ds-space-150, 12px)",
|
|
44
44
|
paddingRight: "var(--ds-space-150, 12px)",
|
|
45
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
45
|
+
font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
46
46
|
'&:hover': {
|
|
47
47
|
backgroundColor: "var(--ds-background-input-hovered, #F8F8F8)"
|
|
48
48
|
},
|
|
@@ -88,7 +88,7 @@ var labelStyles = (0, _react.css)({
|
|
|
88
88
|
'&.remove-nested-left-margin': {
|
|
89
89
|
marginLeft: 0
|
|
90
90
|
},
|
|
91
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
91
|
+
font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
92
92
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
93
93
|
'&.with-bodied-macro-live-page-styles': {
|
|
94
94
|
backgroundColor: "var(--ds-background-input, #FFFFFF)",
|
|
@@ -8,14 +8,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.DropdownMenuExtensionItems = void 0;
|
|
9
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
12
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
14
|
var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
15
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
16
|
var _extensions = require("../extensions");
|
|
15
17
|
var _utils = require("../utils");
|
|
16
18
|
var _DropdownMenuItem = require("./DropdownMenuItem");
|
|
17
19
|
var _DropdownSeparator = require("./DropdownSeparator");
|
|
18
20
|
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); }
|
|
21
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
|
+
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) { (0, _defineProperty2.default)(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; }
|
|
19
23
|
var noop = function noop() {
|
|
20
24
|
return null;
|
|
21
25
|
};
|
|
@@ -53,7 +57,8 @@ var convertExtensionToDropdownMenuItem = function convertExtensionToDropdownMenu
|
|
|
53
57
|
var item = _ref2.item,
|
|
54
58
|
disabled = _ref2.disabled,
|
|
55
59
|
node = _ref2.node,
|
|
56
|
-
extension = _ref2.extension
|
|
60
|
+
extension = _ref2.extension,
|
|
61
|
+
IconComponent = _ref2.IconComponent;
|
|
57
62
|
var ButtonIcon = item.icon ? (0, _reactLoadable.default)({
|
|
58
63
|
// Ignored via go/ees005
|
|
59
64
|
// eslint-disable-next-line require-await
|
|
@@ -85,11 +90,20 @@ var convertExtensionToDropdownMenuItem = function convertExtensionToDropdownMenu
|
|
|
85
90
|
title = item.ariaLabel;
|
|
86
91
|
}
|
|
87
92
|
item.disabled = (disabled === null || disabled === void 0 ? void 0 : disabled(item.key)) || false;
|
|
93
|
+
var getIcon = function getIcon() {
|
|
94
|
+
var label = item.label || '';
|
|
95
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_table_toolbar_icon_ext_fix_exp', 'isEnabled', true)) {
|
|
96
|
+
return IconComponent ? /*#__PURE__*/_react.default.createElement(IconComponent, {
|
|
97
|
+
label: label
|
|
98
|
+
}) : undefined;
|
|
99
|
+
}
|
|
100
|
+
return ButtonIcon ? /*#__PURE__*/_react.default.createElement(ButtonIcon, {
|
|
101
|
+
label: label
|
|
102
|
+
}) : undefined;
|
|
103
|
+
};
|
|
88
104
|
return {
|
|
89
105
|
title: title,
|
|
90
|
-
icon:
|
|
91
|
-
label: item.label || ''
|
|
92
|
-
}) : undefined,
|
|
106
|
+
icon: getIcon(),
|
|
93
107
|
disabled: item.disabled,
|
|
94
108
|
onClick: function onClick() {
|
|
95
109
|
if (typeof item.action !== 'function') {
|
|
@@ -102,18 +116,47 @@ var convertExtensionToDropdownMenuItem = function convertExtensionToDropdownMenu
|
|
|
102
116
|
};
|
|
103
117
|
};
|
|
104
118
|
var DropdownMenuExtensionItem = function DropdownMenuExtensionItem(_ref3) {
|
|
119
|
+
var _iconRef$current;
|
|
105
120
|
var item = _ref3.item,
|
|
106
121
|
editorView = _ref3.editorView,
|
|
107
122
|
disabled = _ref3.disabled,
|
|
108
123
|
node = _ref3.node,
|
|
109
124
|
extension = _ref3.extension,
|
|
110
125
|
dropdownOptions = _ref3.dropdownOptions;
|
|
111
|
-
|
|
126
|
+
// Use ref to keep icon component stable across renders
|
|
127
|
+
var iconRef = (0, _react.useRef)(null);
|
|
128
|
+
if (!iconRef.current && item.icon && (0, _expValEquals.expValEquals)('platform_editor_table_toolbar_icon_ext_fix_exp', 'isEnabled', true)) {
|
|
129
|
+
iconRef.current = (0, _reactLoadable.default)({
|
|
130
|
+
// Ignored via go/ees005
|
|
131
|
+
// eslint-disable-next-line require-await
|
|
132
|
+
loader: function () {
|
|
133
|
+
var _loader2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
134
|
+
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
135
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
136
|
+
case 0:
|
|
137
|
+
return _context3.abrupt("return", resolveExtensionIcon(item.icon));
|
|
138
|
+
case 1:
|
|
139
|
+
case "end":
|
|
140
|
+
return _context3.stop();
|
|
141
|
+
}
|
|
142
|
+
}, _callee3);
|
|
143
|
+
}));
|
|
144
|
+
function loader() {
|
|
145
|
+
return _loader2.apply(this, arguments);
|
|
146
|
+
}
|
|
147
|
+
return loader;
|
|
148
|
+
}(),
|
|
149
|
+
loading: noop
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
var dropdownItem = convertExtensionToDropdownMenuItem(_objectSpread({
|
|
112
153
|
item: item,
|
|
113
154
|
disabled: disabled,
|
|
114
155
|
node: node,
|
|
115
156
|
extension: extension
|
|
116
|
-
})
|
|
157
|
+
}, (0, _expValEquals.expValEquals)('platform_editor_table_toolbar_icon_ext_fix_exp', 'isEnabled', true) ? {
|
|
158
|
+
IconComponent: (_iconRef$current = iconRef.current) !== null && _iconRef$current !== void 0 ? _iconRef$current : undefined
|
|
159
|
+
} : {}));
|
|
117
160
|
if (!dropdownItem) {
|
|
118
161
|
return null;
|
|
119
162
|
}
|
|
@@ -147,30 +190,30 @@ var DropdownMenuExtensionItems = exports.DropdownMenuExtensionItems = function D
|
|
|
147
190
|
return _getExtensions.apply(this, arguments);
|
|
148
191
|
}
|
|
149
192
|
function _getExtensions() {
|
|
150
|
-
_getExtensions = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
193
|
+
_getExtensions = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
151
194
|
var provider;
|
|
152
|
-
return _regenerator.default.wrap(function
|
|
153
|
-
while (1) switch (
|
|
195
|
+
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
196
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
154
197
|
case 0:
|
|
155
|
-
|
|
198
|
+
_context4.next = 2;
|
|
156
199
|
return extension.extensionProvider;
|
|
157
200
|
case 2:
|
|
158
|
-
provider =
|
|
201
|
+
provider = _context4.sent;
|
|
159
202
|
if (!provider) {
|
|
160
|
-
|
|
203
|
+
_context4.next = 9;
|
|
161
204
|
break;
|
|
162
205
|
}
|
|
163
|
-
|
|
164
|
-
|
|
206
|
+
_context4.t0 = setExtensions;
|
|
207
|
+
_context4.next = 7;
|
|
165
208
|
return provider.getExtensions();
|
|
166
209
|
case 7:
|
|
167
|
-
|
|
168
|
-
(0,
|
|
210
|
+
_context4.t1 = _context4.sent;
|
|
211
|
+
(0, _context4.t0)(_context4.t1);
|
|
169
212
|
case 9:
|
|
170
213
|
case "end":
|
|
171
|
-
return
|
|
214
|
+
return _context4.stop();
|
|
172
215
|
}
|
|
173
|
-
},
|
|
216
|
+
}, _callee4);
|
|
174
217
|
}));
|
|
175
218
|
return _getExtensions.apply(this, arguments);
|
|
176
219
|
}
|
|
@@ -79,7 +79,7 @@ var textLabelMargin = (0, _react2.css)({
|
|
|
79
79
|
var inputLabel = (0, _react2.css)({
|
|
80
80
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
81
81
|
paddingBottom: "var(--ds-space-050, 4px)",
|
|
82
|
-
font: "var(--ds-font-body-small, normal 400
|
|
82
|
+
font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
83
83
|
fontWeight: "var(--ds-font-weight-medium, 500)"
|
|
84
84
|
});
|
|
85
85
|
var inputWrapperPosition = (0, _react2.css)({
|
|
@@ -250,5 +250,10 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
|
|
|
250
250
|
id: 'fabric.editor.syncedLocationDropdownSourceLozenge',
|
|
251
251
|
defaultMessage: 'Source',
|
|
252
252
|
description: 'Lozenge label shown in the synced location dropdown option when the sync block is source'
|
|
253
|
+
},
|
|
254
|
+
syncedLocationDropdownRequestAccess: {
|
|
255
|
+
id: 'fabric.editor.syncedLocationDropdownRequestAccess',
|
|
256
|
+
defaultMessage: 'Request access',
|
|
257
|
+
description: 'Label shown in the synced location dropdown option when the sync block is not accessible to the user'
|
|
253
258
|
}
|
|
254
259
|
});
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
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); }
|
|
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 = "111.8.
|
|
22
|
+
var packageVersion = "111.8.3";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -8,6 +8,7 @@ exports.generateUniqueNodeKey = void 0;
|
|
|
8
8
|
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
9
9
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
10
10
|
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
12
|
var generateUniqueNodeKey = exports.generateUniqueNodeKey = function generateUniqueNodeKey() {
|
|
12
13
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
13
14
|
return (0, _v.default)();
|
|
@@ -154,7 +154,7 @@ var headingsSharedStyles = exports.headingsSharedStyles = function headingsShare
|
|
|
154
154
|
fontStyle: 'inherit',
|
|
155
155
|
lineHeight: 16 / 11,
|
|
156
156
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
157
|
-
fontWeight: "var(--ds-font-weight-bold,
|
|
157
|
+
fontWeight: "var(--ds-font-weight-bold, 653)",
|
|
158
158
|
marginTop: '1.455em',
|
|
159
159
|
textTransform: 'none'
|
|
160
160
|
}
|
|
@@ -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 = "111.8.
|
|
27
|
+
var packageVersion = "111.8.3";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -7,7 +7,9 @@ exports.getUnsupportedContent = getUnsupportedContent;
|
|
|
7
7
|
function getUnsupportedContent(
|
|
8
8
|
// Ignored via go/ees005
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10
|
-
message, prefix, node, intl
|
|
10
|
+
message, prefix, node, intl
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
+
) {
|
|
11
13
|
var defaultLocale = 'en';
|
|
12
14
|
var canTranslateToLocale = true;
|
|
13
15
|
var locale = intl ? intl.locale : defaultLocale;
|
|
@@ -108,6 +108,7 @@ var absoluteBreakoutWidth = exports.absoluteBreakoutWidth = function absoluteBre
|
|
|
108
108
|
return parseInt(breakoutWidth, 10);
|
|
109
109
|
};
|
|
110
110
|
var calcWideWidth = exports.calcWideWidth = breakoutConsts.calcWideWidth(breakoutConsts);
|
|
111
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
111
112
|
var calcBreakoutWidth = exports.calcBreakoutWidth = breakoutConsts.calcBreakoutWidth(breakoutConsts);
|
|
112
113
|
var calcBreakoutWithCustomWidth = exports.calcBreakoutWithCustomWidth = breakoutConsts.calcBreakoutWithCustomWidth(breakoutConsts);
|
|
113
114
|
function calculateBreakoutStyles(_ref) {
|
|
@@ -241,7 +241,7 @@ export const telepointerStyle = css`
|
|
|
241
241
|
white-space: pre;
|
|
242
242
|
top: -14px;
|
|
243
243
|
left: 0px;
|
|
244
|
-
font: ${"var(--ds-font-body-small, normal 400
|
|
244
|
+
font: ${"var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"};
|
|
245
245
|
padding-left: ${"var(--ds-space-050, 4px)"};
|
|
246
246
|
padding-right: ${"var(--ds-space-050, 4px)"};
|
|
247
247
|
border-radius: 0 2px 2px 0;
|
|
@@ -51,7 +51,7 @@ export default function EmptyState({
|
|
|
51
51
|
})))));
|
|
52
52
|
}
|
|
53
53
|
const emptyStateHeading = css({
|
|
54
|
-
font: "var(--ds-font-heading-medium, normal
|
|
54
|
+
font: "var(--ds-font-heading-medium, normal 653 20px/24px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
55
55
|
color: "var(--ds-text, rgb(23, 43, 77))",
|
|
56
56
|
marginTop: "var(--ds-space-300, 24px)"
|
|
57
57
|
});
|
|
@@ -34,7 +34,7 @@ const buttonStyles = css({
|
|
|
34
34
|
borderRadius: "var(--ds-radius-small, 4px)",
|
|
35
35
|
paddingLeft: "var(--ds-space-150, 12px)",
|
|
36
36
|
paddingRight: "var(--ds-space-150, 12px)",
|
|
37
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
37
|
+
font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
38
38
|
'&:hover': {
|
|
39
39
|
backgroundColor: "var(--ds-background-input-hovered, #F8F8F8)"
|
|
40
40
|
},
|
|
@@ -78,7 +78,7 @@ const labelStyles = css({
|
|
|
78
78
|
'&.remove-nested-left-margin': {
|
|
79
79
|
marginLeft: 0
|
|
80
80
|
},
|
|
81
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
81
|
+
font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
82
82
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
83
83
|
'&.with-bodied-macro-live-page-styles': {
|
|
84
84
|
backgroundColor: "var(--ds-background-input, #FFFFFF)",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
1
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
4
|
import { getContextualToolbarItemsFromModule } from '../extensions';
|
|
4
5
|
import { nodeToJSON } from '../utils';
|
|
5
6
|
import { DropdownMenuItem } from './DropdownMenuItem';
|
|
@@ -19,7 +20,8 @@ const convertExtensionToDropdownMenuItem = ({
|
|
|
19
20
|
item,
|
|
20
21
|
disabled,
|
|
21
22
|
node,
|
|
22
|
-
extension
|
|
23
|
+
extension,
|
|
24
|
+
IconComponent
|
|
23
25
|
}) => {
|
|
24
26
|
const ButtonIcon = item.icon ? Loadable({
|
|
25
27
|
// Ignored via go/ees005
|
|
@@ -36,11 +38,20 @@ const convertExtensionToDropdownMenuItem = ({
|
|
|
36
38
|
title = item.ariaLabel;
|
|
37
39
|
}
|
|
38
40
|
item.disabled = (disabled === null || disabled === void 0 ? void 0 : disabled(item.key)) || false;
|
|
41
|
+
const getIcon = () => {
|
|
42
|
+
const label = item.label || '';
|
|
43
|
+
if (expValEquals('platform_editor_table_toolbar_icon_ext_fix_exp', 'isEnabled', true)) {
|
|
44
|
+
return IconComponent ? /*#__PURE__*/React.createElement(IconComponent, {
|
|
45
|
+
label: label
|
|
46
|
+
}) : undefined;
|
|
47
|
+
}
|
|
48
|
+
return ButtonIcon ? /*#__PURE__*/React.createElement(ButtonIcon, {
|
|
49
|
+
label: label
|
|
50
|
+
}) : undefined;
|
|
51
|
+
};
|
|
39
52
|
return {
|
|
40
53
|
title,
|
|
41
|
-
icon:
|
|
42
|
-
label: item.label || ''
|
|
43
|
-
}) : undefined,
|
|
54
|
+
icon: getIcon(),
|
|
44
55
|
disabled: item.disabled,
|
|
45
56
|
onClick: () => {
|
|
46
57
|
if (typeof item.action !== 'function') {
|
|
@@ -60,11 +71,25 @@ const DropdownMenuExtensionItem = ({
|
|
|
60
71
|
extension,
|
|
61
72
|
dropdownOptions
|
|
62
73
|
}) => {
|
|
74
|
+
var _iconRef$current;
|
|
75
|
+
// Use ref to keep icon component stable across renders
|
|
76
|
+
const iconRef = useRef(null);
|
|
77
|
+
if (!iconRef.current && item.icon && expValEquals('platform_editor_table_toolbar_icon_ext_fix_exp', 'isEnabled', true)) {
|
|
78
|
+
iconRef.current = Loadable({
|
|
79
|
+
// Ignored via go/ees005
|
|
80
|
+
// eslint-disable-next-line require-await
|
|
81
|
+
loader: async () => resolveExtensionIcon(item.icon),
|
|
82
|
+
loading: noop
|
|
83
|
+
});
|
|
84
|
+
}
|
|
63
85
|
const dropdownItem = convertExtensionToDropdownMenuItem({
|
|
64
86
|
item,
|
|
65
87
|
disabled,
|
|
66
88
|
node,
|
|
67
|
-
extension
|
|
89
|
+
extension,
|
|
90
|
+
...(expValEquals('platform_editor_table_toolbar_icon_ext_fix_exp', 'isEnabled', true) ? {
|
|
91
|
+
IconComponent: (_iconRef$current = iconRef.current) !== null && _iconRef$current !== void 0 ? _iconRef$current : undefined
|
|
92
|
+
} : {})
|
|
68
93
|
});
|
|
69
94
|
if (!dropdownItem) {
|
|
70
95
|
return null;
|
|
@@ -64,7 +64,7 @@ const textLabelMargin = css({
|
|
|
64
64
|
const inputLabel = css({
|
|
65
65
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
66
66
|
paddingBottom: "var(--ds-space-050, 4px)",
|
|
67
|
-
font: "var(--ds-font-body-small, normal 400
|
|
67
|
+
font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
68
68
|
fontWeight: "var(--ds-font-weight-medium, 500)"
|
|
69
69
|
});
|
|
70
70
|
const inputWrapperPosition = css({
|
|
@@ -244,5 +244,10 @@ export const syncBlockMessages = defineMessages({
|
|
|
244
244
|
id: 'fabric.editor.syncedLocationDropdownSourceLozenge',
|
|
245
245
|
defaultMessage: 'Source',
|
|
246
246
|
description: 'Lozenge label shown in the synced location dropdown option when the sync block is source'
|
|
247
|
+
},
|
|
248
|
+
syncedLocationDropdownRequestAccess: {
|
|
249
|
+
id: 'fabric.editor.syncedLocationDropdownRequestAccess',
|
|
250
|
+
defaultMessage: 'Request access',
|
|
251
|
+
description: 'Label shown in the synced location dropdown option when the sync block is not accessible to the user'
|
|
247
252
|
}
|
|
248
253
|
});
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "111.8.
|
|
7
|
+
const packageVersion = "111.8.3";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
2
2
|
import uuid from 'uuid/v4';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3
5
|
export const generateUniqueNodeKey = () => {
|
|
4
6
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
5
7
|
return uuid();
|
|
@@ -148,7 +148,7 @@ export const headingsSharedStyles = _typographyTheme => {
|
|
|
148
148
|
fontStyle: 'inherit',
|
|
149
149
|
lineHeight: 16 / 11,
|
|
150
150
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
151
|
-
fontWeight: "var(--ds-font-weight-bold,
|
|
151
|
+
fontWeight: "var(--ds-font-weight-bold, 653)",
|
|
152
152
|
marginTop: '1.455em',
|
|
153
153
|
textTransform: 'none'
|
|
154
154
|
},
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "111.8.
|
|
17
|
+
const packageVersion = "111.8.3";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -103,7 +103,9 @@ export function calcLegacyWidthForInline(layout, width, containerWidth = 0, full
|
|
|
103
103
|
* @param containerWidth
|
|
104
104
|
* @example
|
|
105
105
|
*/
|
|
106
|
-
export function calcResizedWidth(layout, width, containerWidth = 0
|
|
106
|
+
export function calcResizedWidth(layout, width, containerWidth = 0
|
|
107
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
108
|
+
) {
|
|
107
109
|
switch (layout) {
|
|
108
110
|
case 'wide':
|
|
109
111
|
return calcWideWidth(containerWidth);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export function getUnsupportedContent(
|
|
2
2
|
// Ignored via go/ees005
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
|
-
message, prefix, node, intl
|
|
4
|
+
message, prefix, node, intl
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
) {
|
|
5
7
|
const defaultLocale = 'en';
|
|
6
8
|
let canTranslateToLocale = true;
|
|
7
9
|
const locale = intl ? intl.locale : defaultLocale;
|
|
@@ -85,6 +85,7 @@ export const absoluteBreakoutWidth = (layout, containerWidth) => {
|
|
|
85
85
|
};
|
|
86
86
|
export { breakoutConsts };
|
|
87
87
|
export const calcWideWidth = breakoutConsts.calcWideWidth(breakoutConsts);
|
|
88
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
88
89
|
export const calcBreakoutWidth = breakoutConsts.calcBreakoutWidth(breakoutConsts);
|
|
89
90
|
export const calcBreakoutWithCustomWidth = breakoutConsts.calcBreakoutWithCustomWidth(breakoutConsts);
|
|
90
91
|
export function calculateBreakoutStyles({
|
package/dist/esm/collab/index.js
CHANGED
|
@@ -158,7 +158,7 @@ export var TELEPOINTER_DATA_SESSION_ID_ATTR = 'data-telepointer-sessionid';
|
|
|
158
158
|
// ED-22557: Safely convert to object styling
|
|
159
159
|
// Disable top: -14px since it is necessary to align to cursor
|
|
160
160
|
// 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
|
|
161
|
-
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&.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
|
|
161
|
+
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&.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 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) {
|
|
162
162
|
return telepointerColorStyle(participantColor.backgroundColor, participantColor.textColor, index);
|
|
163
163
|
}));
|
|
164
164
|
var tintKey = 'collab:isDirtyTransaction';
|
|
@@ -50,7 +50,7 @@ export default function EmptyState(_ref) {
|
|
|
50
50
|
})))));
|
|
51
51
|
}
|
|
52
52
|
var emptyStateHeading = css({
|
|
53
|
-
font: "var(--ds-font-heading-medium, normal
|
|
53
|
+
font: "var(--ds-font-heading-medium, normal 653 20px/24px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
54
54
|
color: "var(--ds-text, rgb(23, 43, 77))",
|
|
55
55
|
marginTop: "var(--ds-space-300, 24px)"
|
|
56
56
|
});
|
|
@@ -34,7 +34,7 @@ var buttonStyles = css({
|
|
|
34
34
|
borderRadius: "var(--ds-radius-small, 4px)",
|
|
35
35
|
paddingLeft: "var(--ds-space-150, 12px)",
|
|
36
36
|
paddingRight: "var(--ds-space-150, 12px)",
|
|
37
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
37
|
+
font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
38
38
|
'&:hover': {
|
|
39
39
|
backgroundColor: "var(--ds-background-input-hovered, #F8F8F8)"
|
|
40
40
|
},
|
|
@@ -79,7 +79,7 @@ var labelStyles = css({
|
|
|
79
79
|
'&.remove-nested-left-margin': {
|
|
80
80
|
marginLeft: 0
|
|
81
81
|
},
|
|
82
|
-
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
82
|
+
font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
83
83
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
84
84
|
'&.with-bodied-macro-live-page-styles': {
|
|
85
85
|
backgroundColor: "var(--ds-background-input, #FFFFFF)",
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
3
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
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; }
|
|
3
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
-
import React, { useEffect, useState } from 'react';
|
|
7
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
5
8
|
import Loadable from 'react-loadable';
|
|
9
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
10
|
import { getContextualToolbarItemsFromModule } from '../extensions';
|
|
7
11
|
import { nodeToJSON } from '../utils';
|
|
8
12
|
import { DropdownMenuItem } from './DropdownMenuItem';
|
|
@@ -44,7 +48,8 @@ var convertExtensionToDropdownMenuItem = function convertExtensionToDropdownMenu
|
|
|
44
48
|
var item = _ref2.item,
|
|
45
49
|
disabled = _ref2.disabled,
|
|
46
50
|
node = _ref2.node,
|
|
47
|
-
extension = _ref2.extension
|
|
51
|
+
extension = _ref2.extension,
|
|
52
|
+
IconComponent = _ref2.IconComponent;
|
|
48
53
|
var ButtonIcon = item.icon ? Loadable({
|
|
49
54
|
// Ignored via go/ees005
|
|
50
55
|
// eslint-disable-next-line require-await
|
|
@@ -76,11 +81,20 @@ var convertExtensionToDropdownMenuItem = function convertExtensionToDropdownMenu
|
|
|
76
81
|
title = item.ariaLabel;
|
|
77
82
|
}
|
|
78
83
|
item.disabled = (disabled === null || disabled === void 0 ? void 0 : disabled(item.key)) || false;
|
|
84
|
+
var getIcon = function getIcon() {
|
|
85
|
+
var label = item.label || '';
|
|
86
|
+
if (expValEquals('platform_editor_table_toolbar_icon_ext_fix_exp', 'isEnabled', true)) {
|
|
87
|
+
return IconComponent ? /*#__PURE__*/React.createElement(IconComponent, {
|
|
88
|
+
label: label
|
|
89
|
+
}) : undefined;
|
|
90
|
+
}
|
|
91
|
+
return ButtonIcon ? /*#__PURE__*/React.createElement(ButtonIcon, {
|
|
92
|
+
label: label
|
|
93
|
+
}) : undefined;
|
|
94
|
+
};
|
|
79
95
|
return {
|
|
80
96
|
title: title,
|
|
81
|
-
icon:
|
|
82
|
-
label: item.label || ''
|
|
83
|
-
}) : undefined,
|
|
97
|
+
icon: getIcon(),
|
|
84
98
|
disabled: item.disabled,
|
|
85
99
|
onClick: function onClick() {
|
|
86
100
|
if (typeof item.action !== 'function') {
|
|
@@ -93,18 +107,47 @@ var convertExtensionToDropdownMenuItem = function convertExtensionToDropdownMenu
|
|
|
93
107
|
};
|
|
94
108
|
};
|
|
95
109
|
var DropdownMenuExtensionItem = function DropdownMenuExtensionItem(_ref3) {
|
|
110
|
+
var _iconRef$current;
|
|
96
111
|
var item = _ref3.item,
|
|
97
112
|
editorView = _ref3.editorView,
|
|
98
113
|
disabled = _ref3.disabled,
|
|
99
114
|
node = _ref3.node,
|
|
100
115
|
extension = _ref3.extension,
|
|
101
116
|
dropdownOptions = _ref3.dropdownOptions;
|
|
102
|
-
|
|
117
|
+
// Use ref to keep icon component stable across renders
|
|
118
|
+
var iconRef = useRef(null);
|
|
119
|
+
if (!iconRef.current && item.icon && expValEquals('platform_editor_table_toolbar_icon_ext_fix_exp', 'isEnabled', true)) {
|
|
120
|
+
iconRef.current = Loadable({
|
|
121
|
+
// Ignored via go/ees005
|
|
122
|
+
// eslint-disable-next-line require-await
|
|
123
|
+
loader: function () {
|
|
124
|
+
var _loader2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
125
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
126
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
127
|
+
case 0:
|
|
128
|
+
return _context3.abrupt("return", resolveExtensionIcon(item.icon));
|
|
129
|
+
case 1:
|
|
130
|
+
case "end":
|
|
131
|
+
return _context3.stop();
|
|
132
|
+
}
|
|
133
|
+
}, _callee3);
|
|
134
|
+
}));
|
|
135
|
+
function loader() {
|
|
136
|
+
return _loader2.apply(this, arguments);
|
|
137
|
+
}
|
|
138
|
+
return loader;
|
|
139
|
+
}(),
|
|
140
|
+
loading: noop
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
var dropdownItem = convertExtensionToDropdownMenuItem(_objectSpread({
|
|
103
144
|
item: item,
|
|
104
145
|
disabled: disabled,
|
|
105
146
|
node: node,
|
|
106
147
|
extension: extension
|
|
107
|
-
})
|
|
148
|
+
}, expValEquals('platform_editor_table_toolbar_icon_ext_fix_exp', 'isEnabled', true) ? {
|
|
149
|
+
IconComponent: (_iconRef$current = iconRef.current) !== null && _iconRef$current !== void 0 ? _iconRef$current : undefined
|
|
150
|
+
} : {}));
|
|
108
151
|
if (!dropdownItem) {
|
|
109
152
|
return null;
|
|
110
153
|
}
|
|
@@ -138,30 +181,30 @@ export var DropdownMenuExtensionItems = function DropdownMenuExtensionItems(prop
|
|
|
138
181
|
return _getExtensions.apply(this, arguments);
|
|
139
182
|
}
|
|
140
183
|
function _getExtensions() {
|
|
141
|
-
_getExtensions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
184
|
+
_getExtensions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
142
185
|
var provider;
|
|
143
|
-
return _regeneratorRuntime.wrap(function
|
|
144
|
-
while (1) switch (
|
|
186
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
187
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
145
188
|
case 0:
|
|
146
|
-
|
|
189
|
+
_context4.next = 2;
|
|
147
190
|
return extension.extensionProvider;
|
|
148
191
|
case 2:
|
|
149
|
-
provider =
|
|
192
|
+
provider = _context4.sent;
|
|
150
193
|
if (!provider) {
|
|
151
|
-
|
|
194
|
+
_context4.next = 9;
|
|
152
195
|
break;
|
|
153
196
|
}
|
|
154
|
-
|
|
155
|
-
|
|
197
|
+
_context4.t0 = setExtensions;
|
|
198
|
+
_context4.next = 7;
|
|
156
199
|
return provider.getExtensions();
|
|
157
200
|
case 7:
|
|
158
|
-
|
|
159
|
-
(0,
|
|
201
|
+
_context4.t1 = _context4.sent;
|
|
202
|
+
(0, _context4.t0)(_context4.t1);
|
|
160
203
|
case 9:
|
|
161
204
|
case "end":
|
|
162
|
-
return
|
|
205
|
+
return _context4.stop();
|
|
163
206
|
}
|
|
164
|
-
},
|
|
207
|
+
}, _callee4);
|
|
165
208
|
}));
|
|
166
209
|
return _getExtensions.apply(this, arguments);
|
|
167
210
|
}
|
|
@@ -75,7 +75,7 @@ var textLabelMargin = css({
|
|
|
75
75
|
var inputLabel = css({
|
|
76
76
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
77
77
|
paddingBottom: "var(--ds-space-050, 4px)",
|
|
78
|
-
font: "var(--ds-font-body-small, normal 400
|
|
78
|
+
font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
79
79
|
fontWeight: "var(--ds-font-weight-medium, 500)"
|
|
80
80
|
});
|
|
81
81
|
var inputWrapperPosition = css({
|
|
@@ -244,5 +244,10 @@ export var syncBlockMessages = defineMessages({
|
|
|
244
244
|
id: 'fabric.editor.syncedLocationDropdownSourceLozenge',
|
|
245
245
|
defaultMessage: 'Source',
|
|
246
246
|
description: 'Lozenge label shown in the synced location dropdown option when the sync block is source'
|
|
247
|
+
},
|
|
248
|
+
syncedLocationDropdownRequestAccess: {
|
|
249
|
+
id: 'fabric.editor.syncedLocationDropdownRequestAccess',
|
|
250
|
+
defaultMessage: 'Request access',
|
|
251
|
+
description: 'Label shown in the synced location dropdown option when the sync block is not accessible to the user'
|
|
247
252
|
}
|
|
248
253
|
});
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "111.8.
|
|
13
|
+
var packageVersion = "111.8.3";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
2
2
|
import uuid from 'uuid/v4';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3
5
|
export var generateUniqueNodeKey = function generateUniqueNodeKey() {
|
|
4
6
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
5
7
|
return uuid();
|
|
@@ -153,7 +153,7 @@ export var headingsSharedStyles = function headingsSharedStyles(_typographyTheme
|
|
|
153
153
|
fontStyle: 'inherit',
|
|
154
154
|
lineHeight: 16 / 11,
|
|
155
155
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
156
|
-
fontWeight: "var(--ds-font-weight-bold,
|
|
156
|
+
fontWeight: "var(--ds-font-weight-bold, 653)",
|
|
157
157
|
marginTop: '1.455em',
|
|
158
158
|
textTransform: 'none'
|
|
159
159
|
}
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "111.8.
|
|
24
|
+
var packageVersion = "111.8.3";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export function getUnsupportedContent(
|
|
2
2
|
// Ignored via go/ees005
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
|
-
message, prefix, node, intl
|
|
4
|
+
message, prefix, node, intl
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
) {
|
|
5
7
|
var defaultLocale = 'en';
|
|
6
8
|
var canTranslateToLocale = true;
|
|
7
9
|
var locale = intl ? intl.locale : defaultLocale;
|
|
@@ -98,6 +98,7 @@ export var absoluteBreakoutWidth = function absoluteBreakoutWidth(layout, contai
|
|
|
98
98
|
};
|
|
99
99
|
export { breakoutConsts };
|
|
100
100
|
export var calcWideWidth = breakoutConsts.calcWideWidth(breakoutConsts);
|
|
101
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
101
102
|
export var calcBreakoutWidth = breakoutConsts.calcBreakoutWidth(breakoutConsts);
|
|
102
103
|
export var calcBreakoutWithCustomWidth = breakoutConsts.calcBreakoutWithCustomWidth(breakoutConsts);
|
|
103
104
|
export function calculateBreakoutStyles(_ref) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Handles promise racing and discards rejected promises safely.
|
|
4
4
|
*/
|
|
5
5
|
declare const _default: <P>(providers: (P | Promise<P>)[]) => {
|
|
6
|
-
invokeSingle: <T>(methodName: keyof P, args?: any[]) => Promise<T>;
|
|
7
6
|
invokeList: <T>(methodName: keyof P, args?: any[]) => Promise<T[]>;
|
|
7
|
+
invokeSingle: <T>(methodName: keyof P, args?: any[]) => Promise<T>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -43,23 +43,23 @@ export declare function calculateBreakoutStyles({ mode, widthStateLineLength, wi
|
|
|
43
43
|
*/
|
|
44
44
|
widthStateWidth?: number;
|
|
45
45
|
}): {
|
|
46
|
-
type: "line-length-unknown";
|
|
47
|
-
width: any;
|
|
48
|
-
minWidth: number;
|
|
49
46
|
display: string;
|
|
50
47
|
justifyContent: string;
|
|
51
|
-
transform: string;
|
|
52
|
-
transition: string;
|
|
53
48
|
marginLeft?: undefined;
|
|
54
|
-
} | {
|
|
55
|
-
type: "line-length-known";
|
|
56
|
-
width: any;
|
|
57
49
|
minWidth: number;
|
|
58
|
-
transition: string;
|
|
59
50
|
transform: string;
|
|
60
|
-
|
|
51
|
+
transition: string;
|
|
52
|
+
type: 'line-length-unknown';
|
|
53
|
+
width: any;
|
|
54
|
+
} | {
|
|
61
55
|
display?: undefined;
|
|
62
56
|
justifyContent?: undefined;
|
|
57
|
+
marginLeft: string;
|
|
58
|
+
minWidth: number;
|
|
59
|
+
transform: string;
|
|
60
|
+
transition: string;
|
|
61
|
+
type: 'line-length-known';
|
|
62
|
+
width: any;
|
|
63
63
|
};
|
|
64
64
|
export declare function calcBreakoutWidthPx(mode: BreakoutMarkAttrs['mode'], widthStateWidth?: number, padding?: number): number;
|
|
65
65
|
export declare const getNextBreakoutMode: (currentMode?: BreakoutMode) => Exclude<BreakoutMode, "max">;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Handles promise racing and discards rejected promises safely.
|
|
4
4
|
*/
|
|
5
5
|
declare const _default: <P>(providers: (P | Promise<P>)[]) => {
|
|
6
|
-
invokeSingle: <T>(methodName: keyof P, args?: any[]) => Promise<T>;
|
|
7
6
|
invokeList: <T>(methodName: keyof P, args?: any[]) => Promise<T[]>;
|
|
7
|
+
invokeSingle: <T>(methodName: keyof P, args?: any[]) => Promise<T>;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
@@ -43,23 +43,23 @@ export declare function calculateBreakoutStyles({ mode, widthStateLineLength, wi
|
|
|
43
43
|
*/
|
|
44
44
|
widthStateWidth?: number;
|
|
45
45
|
}): {
|
|
46
|
-
type: "line-length-unknown";
|
|
47
|
-
width: any;
|
|
48
|
-
minWidth: number;
|
|
49
46
|
display: string;
|
|
50
47
|
justifyContent: string;
|
|
51
|
-
transform: string;
|
|
52
|
-
transition: string;
|
|
53
48
|
marginLeft?: undefined;
|
|
54
|
-
} | {
|
|
55
|
-
type: "line-length-known";
|
|
56
|
-
width: any;
|
|
57
49
|
minWidth: number;
|
|
58
|
-
transition: string;
|
|
59
50
|
transform: string;
|
|
60
|
-
|
|
51
|
+
transition: string;
|
|
52
|
+
type: 'line-length-unknown';
|
|
53
|
+
width: any;
|
|
54
|
+
} | {
|
|
61
55
|
display?: undefined;
|
|
62
56
|
justifyContent?: undefined;
|
|
57
|
+
marginLeft: string;
|
|
58
|
+
minWidth: number;
|
|
59
|
+
transform: string;
|
|
60
|
+
transition: string;
|
|
61
|
+
type: 'line-length-known';
|
|
62
|
+
width: any;
|
|
63
63
|
};
|
|
64
64
|
export declare function calcBreakoutWidthPx(mode: BreakoutMarkAttrs['mode'], widthStateWidth?: number, padding?: number): number;
|
|
65
65
|
export declare const getNextBreakoutMode: (currentMode?: BreakoutMode) => Exclude<BreakoutMode, "max">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "111.8.
|
|
3
|
+
"version": "111.8.4",
|
|
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/"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
49
49
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
50
50
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
51
|
-
"@atlaskit/editor-toolbar-model": "^0.
|
|
51
|
+
"@atlaskit/editor-toolbar-model": "^0.3.0",
|
|
52
52
|
"@atlaskit/emoji": "^69.10.0",
|
|
53
53
|
"@atlaskit/icon": "^29.4.0",
|
|
54
54
|
"@atlaskit/icon-object": "^7.4.0",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"@atlaskit/task-decision": "^19.2.0",
|
|
82
82
|
"@atlaskit/textfield": "^8.2.0",
|
|
83
83
|
"@atlaskit/theme": "^21.0.0",
|
|
84
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
85
|
-
"@atlaskit/tokens": "^
|
|
84
|
+
"@atlaskit/tmp-editor-statsig": "^16.23.0",
|
|
85
|
+
"@atlaskit/tokens": "^10.0.0",
|
|
86
86
|
"@atlaskit/tooltip": "^20.14.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|
|
88
88
|
"@babel/runtime": "^7.0.0",
|
package/build/tsconfig.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"target": "es5",
|
|
6
|
-
"paths": {}
|
|
7
|
-
},
|
|
8
|
-
"include": [
|
|
9
|
-
"../src/**/*.ts",
|
|
10
|
-
"../src/**/*.tsx"
|
|
11
|
-
],
|
|
12
|
-
"exclude": [
|
|
13
|
-
"../src/**/__tests__/*",
|
|
14
|
-
"../src/**/*.test.*",
|
|
15
|
-
"../src/**/test.*",
|
|
16
|
-
"../src/**/examples.*",
|
|
17
|
-
"../src/**/examples/*",
|
|
18
|
-
"../src/**/examples/**/*",
|
|
19
|
-
"../src/**/*.stories.*",
|
|
20
|
-
"../src/**/stories/*",
|
|
21
|
-
"../src/**/stories/**/*"
|
|
22
|
-
]
|
|
23
|
-
}
|