@atlaskit/editor-common 111.11.5 → 111.11.7
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 +16 -0
- package/dist/cjs/extensibility/ExtensionNodeWrapper.js +1 -9
- package/dist/cjs/messages/block-menu.js +19 -9
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ugc-tokens/editor-ugc-token-names.js +4 -0
- package/dist/cjs/ugc-tokens/index.js +7 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +1 -9
- package/dist/es2019/messages/block-menu.js +19 -9
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ugc-tokens/editor-ugc-token-names.js +4 -0
- package/dist/es2019/ugc-tokens/index.js +2 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/ExtensionNodeWrapper.js +1 -9
- package/dist/esm/messages/block-menu.js +19 -9
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ugc-tokens/editor-ugc-token-names.js +4 -0
- package/dist/esm/ugc-tokens/index.js +2 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/messages/block-menu.d.ts +10 -0
- package/dist/types/ugc-tokens/editor-ugc-token-names.d.ts +3 -0
- package/dist/types/ugc-tokens/index.d.ts +2 -1
- package/dist/types-ts4.5/messages/block-menu.d.ts +10 -0
- package/dist/types-ts4.5/ugc-tokens/editor-ugc-token-names.d.ts +3 -0
- package/dist/types-ts4.5/ugc-tokens/index.d.ts +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 111.11.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 111.11.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`9d0d19d5018ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9d0d19d5018ae) -
|
|
14
|
+
Remove jsx literal strings in block menu fall back components
|
|
15
|
+
- [`9030267782d4c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9030267782d4c) -
|
|
16
|
+
Re-do fix for table overflow in inline excerpt.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 111.11.5
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -28,14 +28,6 @@ var styles = (0, _react2.css)({
|
|
|
28
28
|
position: 'relative'
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
|
-
|
|
32
|
-
// on exp cleanup, merge this style to the one above
|
|
33
|
-
var inlineExtensionFixStyles = (0, _react2.css)({
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
|
-
'&.inline-extension': {
|
|
36
|
-
maxWidth: '100%'
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
31
|
var hoverStyles = (0, _react2.css)({
|
|
40
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
41
33
|
':has(.extension-label:hover) .extension-container, :has(.extension-edit-toggle-container:hover) .extension-container': {
|
|
@@ -88,6 +80,6 @@ var ExtensionNodeWrapper = exports.ExtensionNodeWrapper = function ExtensionNode
|
|
|
88
80
|
return (0, _react2.jsx)("span", {
|
|
89
81
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
90
82
|
className: wrapperClassNames,
|
|
91
|
-
css: [styles, (0, _expValEquals.expValEquals)('
|
|
83
|
+
css: [styles, (0, _expValEquals.expValEquals)('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) && hoverStyles]
|
|
92
84
|
}, children, nodeType === 'inlineExtension' && _whitespace.ZERO_WIDTH_SPACE);
|
|
93
85
|
};
|
|
@@ -19,12 +19,12 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
19
19
|
moveUpBlock: {
|
|
20
20
|
id: 'fabric.editor.block.menu.move.up',
|
|
21
21
|
defaultMessage: 'Move up',
|
|
22
|
-
description: 'Move the selected block up'
|
|
22
|
+
description: 'Move the selected block up in the document'
|
|
23
23
|
},
|
|
24
24
|
moveDownBlock: {
|
|
25
25
|
id: 'fabric.editor.block.menu.move.down',
|
|
26
26
|
defaultMessage: 'Move down',
|
|
27
|
-
description: 'Move the selected block down'
|
|
27
|
+
description: 'Move the selected block down in the document'
|
|
28
28
|
},
|
|
29
29
|
copyLink: {
|
|
30
30
|
id: 'fabric.editor.block.menu.copy.link',
|
|
@@ -49,17 +49,17 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
49
49
|
codeBlock: {
|
|
50
50
|
id: 'fabric.editor.block.menu.codeblock',
|
|
51
51
|
defaultMessage: 'Code block',
|
|
52
|
-
description: 'Convert to a code block'
|
|
52
|
+
description: 'Convert the selected block to a code block'
|
|
53
53
|
},
|
|
54
54
|
layout: {
|
|
55
55
|
id: 'fabric.editor.block.menu.layout',
|
|
56
56
|
defaultMessage: 'Layout',
|
|
57
|
-
description: 'Convert to a layout node'
|
|
57
|
+
description: 'Convert the selected block to a layout node'
|
|
58
58
|
},
|
|
59
59
|
deleteBlock: {
|
|
60
60
|
id: 'fabric.editor.block.menu.delete.block',
|
|
61
61
|
defaultMessage: 'Delete',
|
|
62
|
-
description: 'Delete the selected block'
|
|
62
|
+
description: 'Delete the selected block from the document'
|
|
63
63
|
},
|
|
64
64
|
turnInto: {
|
|
65
65
|
id: 'fabric.editor.block.menu.turn.into',
|
|
@@ -94,21 +94,31 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
94
94
|
create: {
|
|
95
95
|
id: 'fabric.editor.block.menu.create',
|
|
96
96
|
defaultMessage: 'Create',
|
|
97
|
-
description: 'Menu section title'
|
|
97
|
+
description: 'Menu section title for creating new block types'
|
|
98
98
|
},
|
|
99
99
|
headings: {
|
|
100
100
|
id: 'fabric.editor.block.menu.headings',
|
|
101
101
|
defaultMessage: 'Headings',
|
|
102
|
-
description: 'Menu section title'
|
|
102
|
+
description: 'Menu section title for heading block types'
|
|
103
103
|
},
|
|
104
104
|
suggested: {
|
|
105
105
|
id: 'fabric.editor.block.menu.suggested',
|
|
106
106
|
defaultMessage: 'Suggested',
|
|
107
|
-
description: 'Menu section title'
|
|
107
|
+
description: 'Menu section title for suggested block types'
|
|
108
108
|
},
|
|
109
109
|
structure: {
|
|
110
110
|
id: 'fabric.editor.block.menu.structure',
|
|
111
111
|
defaultMessage: 'Structure',
|
|
112
|
-
description: 'Menu section title'
|
|
112
|
+
description: 'Menu section title for structural block types'
|
|
113
|
+
},
|
|
114
|
+
fallbackNestedMenu: {
|
|
115
|
+
id: 'fabric.editor.block.menu.fallback.nested.menu',
|
|
116
|
+
defaultMessage: 'Nested Menu',
|
|
117
|
+
description: 'Fallback text displayed for nested menu component in block menu when proper component is not available'
|
|
118
|
+
},
|
|
119
|
+
fallbackMenuItem: {
|
|
120
|
+
id: 'fabric.editor.block.menu.fallback.menu.item',
|
|
121
|
+
defaultMessage: 'Block Menu Item',
|
|
122
|
+
description: 'Fallback text displayed for menu item component in block menu when proper component is not available'
|
|
113
123
|
}
|
|
114
124
|
});
|
|
@@ -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 = "
|
|
22
|
+
var packageVersion = "0.0.0-development";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -34,6 +34,10 @@ var editorUGCTokensModernized = exports.editorUGCTokensModernized = {
|
|
|
34
34
|
'editor.font.weight.heading.h5.bold': '700',
|
|
35
35
|
'editor.font.weight.heading.h6.bold': '700'
|
|
36
36
|
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* These styles are duplicated in packages/editor/editor-plugin-block-type/src/pm-plugins/ui/ToolbarBlockType/HeadingButton.tsx
|
|
40
|
+
*/
|
|
37
41
|
var editorUGCTokensRefreshed = exports.editorUGCTokensRefreshed = {
|
|
38
42
|
'editor.font.heading.h1': 'normal 600 1.71429em/1.16667 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
39
43
|
'editor.font.heading.h2': 'normal 600 1.42857em/1.2 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
@@ -10,4 +10,11 @@ Object.defineProperty(exports, "editorUGCToken", {
|
|
|
10
10
|
return _getEditorUgcToken.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
+
Object.defineProperty(exports, "editorUGCTokensRefreshed", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _editorUgcTokenNames.editorUGCTokensRefreshed;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
var _editorUgcTokenNames = require("./editor-ugc-token-names");
|
|
13
20
|
var _getEditorUgcToken = _interopRequireDefault(require("./get-editor-ugc-token"));
|
|
@@ -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 = "
|
|
27
|
+
var packageVersion = "0.0.0-development";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -20,14 +20,6 @@ const styles = css({
|
|
|
20
20
|
position: 'relative'
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
|
|
24
|
-
// on exp cleanup, merge this style to the one above
|
|
25
|
-
const inlineExtensionFixStyles = css({
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
|
-
'&.inline-extension': {
|
|
28
|
-
maxWidth: '100%'
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
23
|
const hoverStyles = css({
|
|
32
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
33
25
|
':has(.extension-label:hover) .extension-container, :has(.extension-edit-toggle-container:hover) .extension-container': {
|
|
@@ -82,6 +74,6 @@ export const ExtensionNodeWrapper = ({
|
|
|
82
74
|
return jsx("span", {
|
|
83
75
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
84
76
|
className: wrapperClassNames,
|
|
85
|
-
css: [styles, expValEquals('
|
|
77
|
+
css: [styles, expValEquals('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) && hoverStyles]
|
|
86
78
|
}, children, nodeType === 'inlineExtension' && ZERO_WIDTH_SPACE);
|
|
87
79
|
};
|
|
@@ -13,12 +13,12 @@ export const messages = defineMessages({
|
|
|
13
13
|
moveUpBlock: {
|
|
14
14
|
id: 'fabric.editor.block.menu.move.up',
|
|
15
15
|
defaultMessage: 'Move up',
|
|
16
|
-
description: 'Move the selected block up'
|
|
16
|
+
description: 'Move the selected block up in the document'
|
|
17
17
|
},
|
|
18
18
|
moveDownBlock: {
|
|
19
19
|
id: 'fabric.editor.block.menu.move.down',
|
|
20
20
|
defaultMessage: 'Move down',
|
|
21
|
-
description: 'Move the selected block down'
|
|
21
|
+
description: 'Move the selected block down in the document'
|
|
22
22
|
},
|
|
23
23
|
copyLink: {
|
|
24
24
|
id: 'fabric.editor.block.menu.copy.link',
|
|
@@ -43,17 +43,17 @@ export const messages = defineMessages({
|
|
|
43
43
|
codeBlock: {
|
|
44
44
|
id: 'fabric.editor.block.menu.codeblock',
|
|
45
45
|
defaultMessage: 'Code block',
|
|
46
|
-
description: 'Convert to a code block'
|
|
46
|
+
description: 'Convert the selected block to a code block'
|
|
47
47
|
},
|
|
48
48
|
layout: {
|
|
49
49
|
id: 'fabric.editor.block.menu.layout',
|
|
50
50
|
defaultMessage: 'Layout',
|
|
51
|
-
description: 'Convert to a layout node'
|
|
51
|
+
description: 'Convert the selected block to a layout node'
|
|
52
52
|
},
|
|
53
53
|
deleteBlock: {
|
|
54
54
|
id: 'fabric.editor.block.menu.delete.block',
|
|
55
55
|
defaultMessage: 'Delete',
|
|
56
|
-
description: 'Delete the selected block'
|
|
56
|
+
description: 'Delete the selected block from the document'
|
|
57
57
|
},
|
|
58
58
|
turnInto: {
|
|
59
59
|
id: 'fabric.editor.block.menu.turn.into',
|
|
@@ -88,21 +88,31 @@ export const messages = defineMessages({
|
|
|
88
88
|
create: {
|
|
89
89
|
id: 'fabric.editor.block.menu.create',
|
|
90
90
|
defaultMessage: 'Create',
|
|
91
|
-
description: 'Menu section title'
|
|
91
|
+
description: 'Menu section title for creating new block types'
|
|
92
92
|
},
|
|
93
93
|
headings: {
|
|
94
94
|
id: 'fabric.editor.block.menu.headings',
|
|
95
95
|
defaultMessage: 'Headings',
|
|
96
|
-
description: 'Menu section title'
|
|
96
|
+
description: 'Menu section title for heading block types'
|
|
97
97
|
},
|
|
98
98
|
suggested: {
|
|
99
99
|
id: 'fabric.editor.block.menu.suggested',
|
|
100
100
|
defaultMessage: 'Suggested',
|
|
101
|
-
description: 'Menu section title'
|
|
101
|
+
description: 'Menu section title for suggested block types'
|
|
102
102
|
},
|
|
103
103
|
structure: {
|
|
104
104
|
id: 'fabric.editor.block.menu.structure',
|
|
105
105
|
defaultMessage: 'Structure',
|
|
106
|
-
description: 'Menu section title'
|
|
106
|
+
description: 'Menu section title for structural block types'
|
|
107
|
+
},
|
|
108
|
+
fallbackNestedMenu: {
|
|
109
|
+
id: 'fabric.editor.block.menu.fallback.nested.menu',
|
|
110
|
+
defaultMessage: 'Nested Menu',
|
|
111
|
+
description: 'Fallback text displayed for nested menu component in block menu when proper component is not available'
|
|
112
|
+
},
|
|
113
|
+
fallbackMenuItem: {
|
|
114
|
+
id: 'fabric.editor.block.menu.fallback.menu.item',
|
|
115
|
+
defaultMessage: 'Block Menu Item',
|
|
116
|
+
description: 'Fallback text displayed for menu item component in block menu when proper component is not available'
|
|
107
117
|
}
|
|
108
118
|
});
|
|
@@ -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 = "
|
|
7
|
+
const packageVersion = "0.0.0-development";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -28,6 +28,10 @@ export const editorUGCTokensModernized = {
|
|
|
28
28
|
'editor.font.weight.heading.h5.bold': '700',
|
|
29
29
|
'editor.font.weight.heading.h6.bold': '700'
|
|
30
30
|
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* These styles are duplicated in packages/editor/editor-plugin-block-type/src/pm-plugins/ui/ToolbarBlockType/HeadingButton.tsx
|
|
34
|
+
*/
|
|
31
35
|
export const editorUGCTokensRefreshed = {
|
|
32
36
|
'editor.font.heading.h1': 'normal 600 1.71429em/1.16667 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
33
37
|
'editor.font.heading.h2': 'normal 600 1.42857em/1.2 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
@@ -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 = "
|
|
17
|
+
const packageVersion = "0.0.0-development";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -20,14 +20,6 @@ var styles = css({
|
|
|
20
20
|
position: 'relative'
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
|
|
24
|
-
// on exp cleanup, merge this style to the one above
|
|
25
|
-
var inlineExtensionFixStyles = css({
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
|
-
'&.inline-extension': {
|
|
28
|
-
maxWidth: '100%'
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
23
|
var hoverStyles = css({
|
|
32
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
33
25
|
':has(.extension-label:hover) .extension-container, :has(.extension-edit-toggle-container:hover) .extension-container': {
|
|
@@ -80,6 +72,6 @@ export var ExtensionNodeWrapper = function ExtensionNodeWrapper(_ref) {
|
|
|
80
72
|
return jsx("span", {
|
|
81
73
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
82
74
|
className: wrapperClassNames,
|
|
83
|
-
css: [styles, expValEquals('
|
|
75
|
+
css: [styles, expValEquals('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) && hoverStyles]
|
|
84
76
|
}, children, nodeType === 'inlineExtension' && ZERO_WIDTH_SPACE);
|
|
85
77
|
};
|
|
@@ -13,12 +13,12 @@ export var messages = defineMessages({
|
|
|
13
13
|
moveUpBlock: {
|
|
14
14
|
id: 'fabric.editor.block.menu.move.up',
|
|
15
15
|
defaultMessage: 'Move up',
|
|
16
|
-
description: 'Move the selected block up'
|
|
16
|
+
description: 'Move the selected block up in the document'
|
|
17
17
|
},
|
|
18
18
|
moveDownBlock: {
|
|
19
19
|
id: 'fabric.editor.block.menu.move.down',
|
|
20
20
|
defaultMessage: 'Move down',
|
|
21
|
-
description: 'Move the selected block down'
|
|
21
|
+
description: 'Move the selected block down in the document'
|
|
22
22
|
},
|
|
23
23
|
copyLink: {
|
|
24
24
|
id: 'fabric.editor.block.menu.copy.link',
|
|
@@ -43,17 +43,17 @@ export var messages = defineMessages({
|
|
|
43
43
|
codeBlock: {
|
|
44
44
|
id: 'fabric.editor.block.menu.codeblock',
|
|
45
45
|
defaultMessage: 'Code block',
|
|
46
|
-
description: 'Convert to a code block'
|
|
46
|
+
description: 'Convert the selected block to a code block'
|
|
47
47
|
},
|
|
48
48
|
layout: {
|
|
49
49
|
id: 'fabric.editor.block.menu.layout',
|
|
50
50
|
defaultMessage: 'Layout',
|
|
51
|
-
description: 'Convert to a layout node'
|
|
51
|
+
description: 'Convert the selected block to a layout node'
|
|
52
52
|
},
|
|
53
53
|
deleteBlock: {
|
|
54
54
|
id: 'fabric.editor.block.menu.delete.block',
|
|
55
55
|
defaultMessage: 'Delete',
|
|
56
|
-
description: 'Delete the selected block'
|
|
56
|
+
description: 'Delete the selected block from the document'
|
|
57
57
|
},
|
|
58
58
|
turnInto: {
|
|
59
59
|
id: 'fabric.editor.block.menu.turn.into',
|
|
@@ -88,21 +88,31 @@ export var messages = defineMessages({
|
|
|
88
88
|
create: {
|
|
89
89
|
id: 'fabric.editor.block.menu.create',
|
|
90
90
|
defaultMessage: 'Create',
|
|
91
|
-
description: 'Menu section title'
|
|
91
|
+
description: 'Menu section title for creating new block types'
|
|
92
92
|
},
|
|
93
93
|
headings: {
|
|
94
94
|
id: 'fabric.editor.block.menu.headings',
|
|
95
95
|
defaultMessage: 'Headings',
|
|
96
|
-
description: 'Menu section title'
|
|
96
|
+
description: 'Menu section title for heading block types'
|
|
97
97
|
},
|
|
98
98
|
suggested: {
|
|
99
99
|
id: 'fabric.editor.block.menu.suggested',
|
|
100
100
|
defaultMessage: 'Suggested',
|
|
101
|
-
description: 'Menu section title'
|
|
101
|
+
description: 'Menu section title for suggested block types'
|
|
102
102
|
},
|
|
103
103
|
structure: {
|
|
104
104
|
id: 'fabric.editor.block.menu.structure',
|
|
105
105
|
defaultMessage: 'Structure',
|
|
106
|
-
description: 'Menu section title'
|
|
106
|
+
description: 'Menu section title for structural block types'
|
|
107
|
+
},
|
|
108
|
+
fallbackNestedMenu: {
|
|
109
|
+
id: 'fabric.editor.block.menu.fallback.nested.menu',
|
|
110
|
+
defaultMessage: 'Nested Menu',
|
|
111
|
+
description: 'Fallback text displayed for nested menu component in block menu when proper component is not available'
|
|
112
|
+
},
|
|
113
|
+
fallbackMenuItem: {
|
|
114
|
+
id: 'fabric.editor.block.menu.fallback.menu.item',
|
|
115
|
+
defaultMessage: 'Block Menu Item',
|
|
116
|
+
description: 'Fallback text displayed for menu item component in block menu when proper component is not available'
|
|
107
117
|
}
|
|
108
118
|
});
|
|
@@ -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 = "
|
|
13
|
+
var packageVersion = "0.0.0-development";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -28,6 +28,10 @@ export var editorUGCTokensModernized = {
|
|
|
28
28
|
'editor.font.weight.heading.h5.bold': '700',
|
|
29
29
|
'editor.font.weight.heading.h6.bold': '700'
|
|
30
30
|
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* These styles are duplicated in packages/editor/editor-plugin-block-type/src/pm-plugins/ui/ToolbarBlockType/HeadingButton.tsx
|
|
34
|
+
*/
|
|
31
35
|
export var editorUGCTokensRefreshed = {
|
|
32
36
|
'editor.font.heading.h1': 'normal 600 1.71429em/1.16667 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
33
37
|
'editor.font.heading.h2': 'normal 600 1.42857em/1.2 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
@@ -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 = "
|
|
24
|
+
var packageVersion = "0.0.0-development";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -104,4 +104,14 @@ export declare const messages: {
|
|
|
104
104
|
defaultMessage: string;
|
|
105
105
|
description: string;
|
|
106
106
|
};
|
|
107
|
+
fallbackNestedMenu: {
|
|
108
|
+
id: string;
|
|
109
|
+
defaultMessage: string;
|
|
110
|
+
description: string;
|
|
111
|
+
};
|
|
112
|
+
fallbackMenuItem: {
|
|
113
|
+
id: string;
|
|
114
|
+
defaultMessage: string;
|
|
115
|
+
description: string;
|
|
116
|
+
};
|
|
107
117
|
};
|
|
@@ -15,4 +15,7 @@ export type EditorUGCTokens = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const editorUGCTokens: EditorUGCTokens;
|
|
17
17
|
export declare const editorUGCTokensModernized: EditorUGCTokens;
|
|
18
|
+
/**
|
|
19
|
+
* These styles are duplicated in packages/editor/editor-plugin-block-type/src/pm-plugins/ui/ToolbarBlockType/HeadingButton.tsx
|
|
20
|
+
*/
|
|
18
21
|
export declare const editorUGCTokensRefreshed: EditorUGCTokens;
|
|
@@ -104,4 +104,14 @@ export declare const messages: {
|
|
|
104
104
|
defaultMessage: string;
|
|
105
105
|
description: string;
|
|
106
106
|
};
|
|
107
|
+
fallbackNestedMenu: {
|
|
108
|
+
id: string;
|
|
109
|
+
defaultMessage: string;
|
|
110
|
+
description: string;
|
|
111
|
+
};
|
|
112
|
+
fallbackMenuItem: {
|
|
113
|
+
id: string;
|
|
114
|
+
defaultMessage: string;
|
|
115
|
+
description: string;
|
|
116
|
+
};
|
|
107
117
|
};
|
|
@@ -15,4 +15,7 @@ export type EditorUGCTokens = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const editorUGCTokens: EditorUGCTokens;
|
|
17
17
|
export declare const editorUGCTokensModernized: EditorUGCTokens;
|
|
18
|
+
/**
|
|
19
|
+
* These styles are duplicated in packages/editor/editor-plugin-block-type/src/pm-plugins/ui/ToolbarBlockType/HeadingButton.tsx
|
|
20
|
+
*/
|
|
18
21
|
export declare const editorUGCTokensRefreshed: EditorUGCTokens;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "111.11.
|
|
3
|
+
"version": "111.11.7",
|
|
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/"
|
|
@@ -81,7 +81,7 @@
|
|
|
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": "^
|
|
84
|
+
"@atlaskit/tmp-editor-statsig": "^21.0.0",
|
|
85
85
|
"@atlaskit/tokens": "^11.0.0",
|
|
86
86
|
"@atlaskit/tooltip": "^20.14.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|