@atlaskit/editor-core 228.1.9 → 228.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/cjs/composable-editor/editor-internal-compiled.js +1 -1
- package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/Chromeless-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/Comment/Comment-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPage-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +1 -1
- package/dist/cjs/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +1 -1
- package/dist/cjs/ui/ContextPanel/index-compiled.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/styles/ruleWithAttrs.js +43 -5
- package/dist/cjs/ui/PluginSlot/PluginSlot-compiled.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarPortal.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +1 -1
- package/dist/cjs/ui/WithFlash/withFlash-compiled.js +1 -1
- package/dist/cjs/ui/quick-insert/ExtensionQuickInsertIcon.js +15 -0
- package/dist/cjs/ui/quick-insert/ExtensionQuickInsertMenuItem.js +3 -0
- package/dist/cjs/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +31 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal-compiled.js +1 -1
- package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/Chromeless-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +1 -1
- package/dist/es2019/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +1 -1
- package/dist/es2019/ui/ContextPanel/index-compiled.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/styles/ruleWithAttrs.js +43 -5
- package/dist/es2019/ui/PluginSlot/PluginSlot-compiled.js +1 -1
- package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +1 -1
- package/dist/es2019/ui/Toolbar/ToolbarPortal.js +1 -1
- package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +1 -1
- package/dist/es2019/ui/WithFlash/withFlash-compiled.js +1 -1
- package/dist/es2019/ui/quick-insert/ExtensionQuickInsertIcon.js +15 -0
- package/dist/es2019/ui/quick-insert/ExtensionQuickInsertMenuItem.js +3 -0
- package/dist/es2019/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +23 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal-compiled.js +1 -1
- package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +1 -1
- package/dist/esm/ui/Appearance/Chromeless-compiled.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment-compiled.js +1 -1
- package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.js +1 -1
- package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-compiled.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage-compiled.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/MainToolbar-compiled.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +1 -1
- package/dist/esm/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +1 -1
- package/dist/esm/ui/ContextPanel/index-compiled.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -1
- package/dist/esm/ui/EditorContentContainer/styles/ruleWithAttrs.js +43 -5
- package/dist/esm/ui/PluginSlot/PluginSlot-compiled.js +1 -1
- package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +1 -1
- package/dist/esm/ui/Toolbar/ToolbarPortal.js +1 -1
- package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +1 -1
- package/dist/esm/ui/WithFlash/withFlash-compiled.js +1 -1
- package/dist/esm/ui/quick-insert/ExtensionQuickInsertIcon.js +15 -0
- package/dist/esm/ui/quick-insert/ExtensionQuickInsertMenuItem.js +3 -0
- package/dist/esm/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +25 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/quick-insert/ExtensionQuickInsertIcon.d.ts +2 -1
- package/dist/types/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.d.ts +7 -0
- package/package.json +6 -6
|
@@ -4,11 +4,19 @@
|
|
|
4
4
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled */
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
const dashedStrokeMask = 'linear-gradient(to right, black 0, black 4px, transparent 4px, transparent 10px)';
|
|
7
|
-
const dottedStrokeMask = 'radial-gradient(circle at center, black 1px, transparent 1.1px)';
|
|
8
|
-
const sketchStrokePath = 'M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107';
|
|
9
|
-
const sketchStrokeMask = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='${sketchStrokePath}'/%3E%3C/svg%3E")`;
|
|
10
7
|
const fadeStrokeMask = 'linear-gradient(to right, transparent 0%, black 27.4%, black 74%, transparent 100%)';
|
|
11
8
|
|
|
9
|
+
// dotted strokes
|
|
10
|
+
const dottedStrokeMaskSmall = 'radial-gradient(circle at center, black 0.5px, transparent 0.6px)';
|
|
11
|
+
const dottedStrokeMaskMedium = 'radial-gradient(circle at center, black 1px, transparent 1.1px)';
|
|
12
|
+
const dottedStrokeMaskLarge = 'radial-gradient(circle at center, black 1.5px, transparent 1.6px)';
|
|
13
|
+
|
|
14
|
+
// sketch strokes
|
|
15
|
+
const sketchStrokePath = 'M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107';
|
|
16
|
+
const sketchStrokeMaskSmall = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1' d='${sketchStrokePath}'/%3E%3C/svg%3E")`;
|
|
17
|
+
const sketchStrokeMaskMedium = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='${sketchStrokePath}'/%3E%3C/svg%3E")`;
|
|
18
|
+
const sketchStrokeMaskLarge = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1 233 8'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' d='${sketchStrokePath}'/%3E%3C/svg%3E")`;
|
|
19
|
+
|
|
12
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
13
21
|
export const ruleWithAttrsStyles = css({
|
|
14
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -19,7 +27,7 @@ export const ruleWithAttrsStyles = css({
|
|
|
19
27
|
},
|
|
20
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
21
29
|
'.ProseMirror hr[data-style="dotted"]': {
|
|
22
|
-
maskImage:
|
|
30
|
+
maskImage: dottedStrokeMaskMedium,
|
|
23
31
|
maskPosition: 'center',
|
|
24
32
|
maskRepeat: 'repeat-x',
|
|
25
33
|
maskSize: '6px 2px'
|
|
@@ -27,7 +35,7 @@ export const ruleWithAttrsStyles = css({
|
|
|
27
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
28
36
|
'.ProseMirror hr[data-style="sketch"]': {
|
|
29
37
|
height: `calc(2px + ${"var(--ds-space-050, 4px)"} + ${"var(--ds-space-050, 4px)"})`,
|
|
30
|
-
maskImage:
|
|
38
|
+
maskImage: sketchStrokeMaskMedium,
|
|
31
39
|
maskPosition: 'center',
|
|
32
40
|
maskRepeat: 'repeat-x',
|
|
33
41
|
maskSize: '233px 7px',
|
|
@@ -39,5 +47,35 @@ export const ruleWithAttrsStyles = css({
|
|
|
39
47
|
maskImage: fadeStrokeMask,
|
|
40
48
|
maskRepeat: 'no-repeat',
|
|
41
49
|
maskSize: '100% 100%'
|
|
50
|
+
},
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
52
|
+
'.ProseMirror hr[data-weight="1"]': {
|
|
53
|
+
height: '1px'
|
|
54
|
+
},
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
56
|
+
'.ProseMirror hr[data-weight="3"]': {
|
|
57
|
+
height: '3px'
|
|
58
|
+
},
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
60
|
+
'.ProseMirror hr[data-style="dotted"][data-weight="1"]': {
|
|
61
|
+
maskImage: dottedStrokeMaskSmall,
|
|
62
|
+
maskSize: '6px 1px'
|
|
63
|
+
},
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
65
|
+
'.ProseMirror hr[data-style="dotted"][data-weight="3"]': {
|
|
66
|
+
maskImage: dottedStrokeMaskLarge,
|
|
67
|
+
maskSize: '6px 3px'
|
|
68
|
+
},
|
|
69
|
+
// Sketch needs a mask per weight because CSS cannot change the SVG stroke width.
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
71
|
+
'.ProseMirror hr[data-style="sketch"][data-weight="1"]': {
|
|
72
|
+
height: `calc(1px + ${"var(--ds-space-050, 4px)"} + ${"var(--ds-space-050, 4px)"})`,
|
|
73
|
+
maskImage: sketchStrokeMaskSmall
|
|
74
|
+
},
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
76
|
+
'.ProseMirror hr[data-style="sketch"][data-weight="3"]': {
|
|
77
|
+
height: `calc(3px + ${"var(--ds-space-050, 4px)"} + ${"var(--ds-space-050, 4px)"})`,
|
|
78
|
+
maskImage: sketchStrokeMaskLarge,
|
|
79
|
+
maskSize: '233px 8px'
|
|
42
80
|
}
|
|
43
81
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* PluginSlot-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* PluginSlot-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./PluginSlot-compiled.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ToolbarComponentsWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* ToolbarComponentsWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `ToolbarInner.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ToolbarSizeDetectorWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* ToolbarSizeDetectorWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `ToolbarWithSizeDetector.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* withFlash-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* withFlash-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import "./withFlash-compiled.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -6,6 +6,10 @@ import CarouselIcon from '@atlaskit/icon-lab/core/carousel';
|
|
|
6
6
|
import TableOfContentIcon from '@atlaskit/icon-lab/core/table-of-content';
|
|
7
7
|
import TemplateIcon from '@atlaskit/icon-lab/core/template';
|
|
8
8
|
const lazyExtensionIconCache = new WeakMap();
|
|
9
|
+
const brandedSlashCommandIconUrls = {
|
|
10
|
+
amplitude: 'https://dam-cdn.atl.orangelogic.com/AssetLink/730r6bie0211kg6obni4343y4g1wv6n5.svg',
|
|
11
|
+
figma: 'https://dam-cdn.atl.orangelogic.com/AssetLink/68t3023r7347271te7qw370k2pk37rgb.svg'
|
|
12
|
+
};
|
|
9
13
|
const whiteboardQuickInsertItemKeys = new Set(['whiteboard-extension:create-whiteboard', 'whiteboard-extension:create-diagram', 'whiteboard-extension:create-flowchart', 'whiteboard-extension:create-brainstorming', 'whiteboard-extension:create-retrospective', 'whiteboard-extension:create-roadmap']);
|
|
10
14
|
const quickInsertItemIcons = {
|
|
11
15
|
'toc:toc': TableOfContentIcon,
|
|
@@ -50,8 +54,10 @@ const createLazyExtensionIcon = getIcon => {
|
|
|
50
54
|
export const ExtensionQuickInsertIcon = ({
|
|
51
55
|
getIcon,
|
|
52
56
|
itemKey,
|
|
57
|
+
itemTitle,
|
|
53
58
|
label
|
|
54
59
|
}) => {
|
|
60
|
+
const brandedIconUrl = brandedSlashCommandIconUrls[itemTitle.toLowerCase()];
|
|
55
61
|
const Icon = React.useMemo(() => {
|
|
56
62
|
const quickInsertItemIcon = quickInsertItemIcons[itemKey];
|
|
57
63
|
if (quickInsertItemIcon) {
|
|
@@ -62,6 +68,15 @@ export const ExtensionQuickInsertIcon = ({
|
|
|
62
68
|
}
|
|
63
69
|
return getIcon ? createLazyExtensionIcon(getIcon) : AppsIcon;
|
|
64
70
|
}, [getIcon, itemKey]);
|
|
71
|
+
if (brandedIconUrl) {
|
|
72
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
73
|
+
alt: "",
|
|
74
|
+
"aria-hidden": "true",
|
|
75
|
+
height: 24,
|
|
76
|
+
src: brandedIconUrl,
|
|
77
|
+
width: 24
|
|
78
|
+
});
|
|
79
|
+
}
|
|
65
80
|
return /*#__PURE__*/React.createElement(Icon, {
|
|
66
81
|
label: label
|
|
67
82
|
});
|
|
@@ -3,6 +3,7 @@ import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-i
|
|
|
3
3
|
import { useQuickInsertContext } from '@atlaskit/editor-common/quick-insert/use-quick-insert-context';
|
|
4
4
|
import { executeExtensionQuickInsertItem } from './executeExtensionQuickInsertItem';
|
|
5
5
|
import { ExtensionQuickInsertIcon } from './ExtensionQuickInsertIcon';
|
|
6
|
+
import { getExtensionQuickInsertPreviewImageUrls } from './getExtensionQuickInsertPreviewImageUrls';
|
|
6
7
|
export const ExtensionQuickInsertMenuItem = ({
|
|
7
8
|
apiRef,
|
|
8
9
|
createAnalyticsEvent,
|
|
@@ -36,10 +37,12 @@ export const ExtensionQuickInsertMenuItem = ({
|
|
|
36
37
|
iconBefore: /*#__PURE__*/React.createElement(ExtensionQuickInsertIcon, {
|
|
37
38
|
getIcon: item.icon,
|
|
38
39
|
itemKey: item.key,
|
|
40
|
+
itemTitle: item.title,
|
|
39
41
|
label: ""
|
|
40
42
|
}),
|
|
41
43
|
isDisabled: isOffline,
|
|
42
44
|
onSelect: onSelect,
|
|
45
|
+
previewImageUrls: getExtensionQuickInsertPreviewImageUrls(item),
|
|
43
46
|
title: item.title
|
|
44
47
|
});
|
|
45
48
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const previewImageUrlsByTitle = {
|
|
2
|
+
amplitude: {
|
|
3
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7v8shu6n3wd15644f3ys785628dkt632.png',
|
|
4
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/2r34o120k40e0us4w66oqpud63o4lef4.png'
|
|
5
|
+
},
|
|
6
|
+
dropbox: {
|
|
7
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/83f1773ur08qm4t3bqaabpwb173313tg.png',
|
|
8
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/37v2dk5n1ltwc82j1w76dv1tyr8puwq0.png'
|
|
9
|
+
},
|
|
10
|
+
figma: {
|
|
11
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/svedc2lju60bgq3r43kfmi7213wj46as.png',
|
|
12
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/u80s30071b4c10vdjr5rw0uje8cu2pk7.png'
|
|
13
|
+
},
|
|
14
|
+
'google drive': {
|
|
15
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/y01wj4t58w86byx86l6k81a22axud131.png',
|
|
16
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/wi413m0837rjykg23r6y0256b7377185.png'
|
|
17
|
+
},
|
|
18
|
+
iframe: {
|
|
19
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/77p6d5rb343gue8580bacbl0xf82u5jv.png',
|
|
20
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/72a0j8eddxg82rnp8j48bipi8sq8g0ke.png'
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export const getExtensionQuickInsertPreviewImageUrls = item => previewImageUrlsByTitle[item.title.toLowerCase()];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* editor-internal-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* editor-internal-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `editor-internal.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* clickAreaBlock-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* clickAreaBlock-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["children"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Chromeless-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* Chromeless-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `Chromeless.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Comment-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* Comment-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./Comment-compiled.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* FixedToolbar-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* FixedToolbar-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `Toolbar.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* StickyToolbar-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* StickyToolbar-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./StickyToolbar-compiled.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* BeforeWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* BeforeWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `BeforeWrapper.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* CustomToolbarWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* CustomToolbarWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `CustomToolbarWrapper.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* FullPage-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* FullPage-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `FullPage.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* FullPageContentArea-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* FullPageContentArea-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import "./FullPageContentArea-compiled.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useImperativeHandle, useRef } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* FullPageToolbarNext.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* FullPageToolbarNext.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import "./FullPageToolbarNext.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback, useMemo } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* MainToolbar-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* MainToolbar-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `MainToolbar.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* MainToolbarWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* MainToolbarWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `MainToolbarWrapper.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ChromeCollapsed-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* ChromeCollapsed-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
|
|
3
3
|
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import "./ChromeCollapsed-compiled.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* index-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["children", "customWidth", "visible"],
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
.cc-1wz6obl .ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor){caret-color:transparent}.cc-1wz6obl .ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor{display:none}.cc-1wz6obl .ProseMirror:has(.ProseMirror-hide-cursor){caret-color:transparent}
|
|
28
28
|
.cc-1aoj0mo .dateView-content-wrap.ak-editor-selected-node.danger .date-lozenger-container>span{box-shadow:0 0 0 1px var(--ds-border-danger,#e2483d)}
|
|
29
29
|
.cc-5hyj3q .ProseMirror hr.ak-editor-selected-node.danger{background-color:var(--ds-border-danger,#e2483d)}
|
|
30
|
-
.cc-dgsww3 .ProseMirror hr[data-style=dashed]{-webkit-mask-image:linear-gradient(90deg,#000 0,#000 4px,transparent 0,transparent 10px);mask-image:linear-gradient(90deg,#000 0,#000 4px,transparent 0,transparent 10px);-webkit-mask-repeat:repeat-x;mask-repeat:repeat-x;-webkit-mask-size:10px 100%;mask-size:10px 100%}.cc-dgsww3 .ProseMirror hr[data-style=dotted]{-webkit-mask-image:radial-gradient(circle at center,#000 1px,transparent 1.1px);mask-image:radial-gradient(circle at center,#000 1px,transparent 1.1px);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:repeat-x;mask-repeat:repeat-x;-webkit-mask-size:6px 2px;mask-size:6px 2px}.cc-dgsww3 .ProseMirror hr[data-style=sketch]{height:calc(2px + var(--ds-space-050, 4px) + var(--ds-space-050, 4px));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:repeat-x;mask-repeat:repeat-x;-webkit-mask-size:233px 7px;mask-size:233px 7px;padding-top:0;padding-bottom:0}.cc-dgsww3 .ProseMirror hr[data-style=fade]{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 27.4%,#000 74%,transparent);mask-image:linear-gradient(90deg,transparent 0,#000 27.4%,#000 74%,transparent);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%}
|
|
30
|
+
.cc-dgsww3 .ProseMirror hr[data-style=dashed]{-webkit-mask-image:linear-gradient(90deg,#000 0,#000 4px,transparent 0,transparent 10px);mask-image:linear-gradient(90deg,#000 0,#000 4px,transparent 0,transparent 10px);-webkit-mask-repeat:repeat-x;mask-repeat:repeat-x;-webkit-mask-size:10px 100%;mask-size:10px 100%}.cc-dgsww3 .ProseMirror hr[data-style=dotted]{-webkit-mask-image:radial-gradient(circle at center,#000 1px,transparent 1.1px);mask-image:radial-gradient(circle at center,#000 1px,transparent 1.1px);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:repeat-x;mask-repeat:repeat-x;-webkit-mask-size:6px 2px;mask-size:6px 2px}.cc-dgsww3 .ProseMirror hr[data-style=sketch]{height:calc(2px + var(--ds-space-050, 4px) + var(--ds-space-050, 4px));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:repeat-x;mask-repeat:repeat-x;-webkit-mask-size:233px 7px;mask-size:233px 7px;padding-top:0;padding-bottom:0}.cc-dgsww3 .ProseMirror hr[data-style=fade]{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 27.4%,#000 74%,transparent);mask-image:linear-gradient(90deg,transparent 0,#000 27.4%,#000 74%,transparent);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%}.cc-dgsww3 .ProseMirror hr[data-weight="1"]{height:1px}.cc-dgsww3 .ProseMirror hr[data-weight="3"]{height:3px}.cc-dgsww3 .ProseMirror hr[data-style=dotted][data-weight="1"]{-webkit-mask-image:radial-gradient(circle at center,#000 .5px,transparent .6px);mask-image:radial-gradient(circle at center,#000 .5px,transparent .6px);-webkit-mask-size:6px 1px;mask-size:6px 1px}.cc-dgsww3 .ProseMirror hr[data-style=dotted][data-weight="3"]{-webkit-mask-image:radial-gradient(circle at center,#000 1.5px,transparent .1pc);mask-image:radial-gradient(circle at center,#000 1.5px,transparent .1pc);-webkit-mask-size:6px 3px;mask-size:6px 3px}.cc-dgsww3 .ProseMirror hr[data-style=sketch][data-weight="1"]{height:calc(1px + var(--ds-space-050, 4px) + var(--ds-space-050, 4px));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1' d='M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1' d='M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107'/%3E%3C/svg%3E")}.cc-dgsww3 .ProseMirror hr[data-style=sketch][data-weight="3"]{height:calc(3px + var(--ds-space-050, 4px) + var(--ds-space-050, 4px));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1 233 8'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' d='M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1 233 8'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' d='M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107'/%3E%3C/svg%3E");-webkit-mask-size:233px 8px;mask-size:233px 8px}
|
|
31
31
|
.cc-1mmt8n5 .show-diff-atomic-inline-changed-date{--show-diff-atomic-inline-changed-border-color:var(--ds-border-accent-purple,#af59e1);outline:2px solid var(--show-diff-atomic-inline-changed-border-color,var(--ds-border-accent-purple,#af59e1));outline-offset:1px;border-radius:var(--ds-radius-medium,6px)}.cc-1mmt8n5 .show-diff-atomic-inline-changed-date.show-diff-atomic-inline-changed-traditional{--show-diff-atomic-inline-changed-border-color:var(--ds-border-accent-green,#22a06b)}.cc-1mmt8n5 .date-lozenger-container span{white-space:unset}.cc-1mmt8n5 .dateView-content-wrap .date-lozenger-container{line-height:normal;cursor:pointer}.cc-1mmt8n5 .dateView-content-wrap.ak-editor-selected-node .date-lozenger-container>span{box-shadow:0 0 0 1px var(--ds-border-selected,#1868db);border-color:transparent}.cc-1mmt8n5 .dateView-content-wrap.ak-editor-selected-node .date-lozenger-container>span ::selection, .cc-1mmt8n5 .dateView-content-wrap.ak-editor-selected-node .date-lozenger-container>span::selection{background-color:transparent}.cc-1mmt8n5 .dateView-content-wrap.ak-editor-selected-node .date-lozenger-container>span ::-moz-selection, .cc-1mmt8n5 .dateView-content-wrap.ak-editor-selected-node .date-lozenger-container>span::-moz-selection{background-color:transparent}.cc-1mmt8n5 .danger .dateView-content-wrap.ak-editor-selected-node .date-lozenger-container>span{box-shadow:0 0 0 1px var(--ds-border-danger,#e2483d)}
|
|
32
32
|
.cc-avdkma [data-prosemirror-node-name=date] .date-lozenger-container span{background-color:var(--ds-background-neutral,#0515240f);color:var(--ds-text,#292a2e);border-radius:var(--ds-radius-small,4px);padding-top:var(--ds-space-025,2px);padding-right:var(--ds-space-050,4px);padding-bottom:var(--ds-space-025,2px);padding-left:var(--ds-space-050,4px);margin-top:0;margin-right:1px;margin-bottom:0;margin-left:1px;position:relative;transition-property:background;transition-duration:.3s;white-space:nowrap;cursor:unset}.cc-avdkma [data-prosemirror-node-name=date] .date-lozenger-container span:hover{background-color:var(--ds-background-neutral-hovered,#0b120e24)}.cc-avdkma [data-prosemirror-node-name=date] .date-lozenger-container span.date-node-color-red{background-color:var(--ds-background-accent-red-subtlest,#ffeceb);color:var(--ds-text-accent-red,#ae2e24)}.cc-avdkma [data-prosemirror-node-name=date] .date-lozenger-container span.date-node-color-red:hover{background-color:var(--ds-background-accent-red-subtler,#ffd5d2)}
|
|
33
33
|
.cc-ak695d .ak-editor-selected-node.danger>[data-decision-wrapper], .cc-ak695d ol[data-node-type=decisionList].ak-editor-selected-node.danger{background-color:var(--ds-background-danger,#ffeceb);box-shadow:0 0 0 1px var(--ds-border-danger,#e2483d)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* EditorContentContainer-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* EditorContentContainer-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import "./EditorContentContainer-compiled.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -4,11 +4,19 @@
|
|
|
4
4
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled */
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
var dashedStrokeMask = 'linear-gradient(to right, black 0, black 4px, transparent 4px, transparent 10px)';
|
|
7
|
-
var dottedStrokeMask = 'radial-gradient(circle at center, black 1px, transparent 1.1px)';
|
|
8
|
-
var sketchStrokePath = 'M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107';
|
|
9
|
-
var sketchStrokeMask = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='".concat(sketchStrokePath, "'/%3E%3C/svg%3E\")");
|
|
10
7
|
var fadeStrokeMask = 'linear-gradient(to right, transparent 0%, black 27.4%, black 74%, transparent 100%)';
|
|
11
8
|
|
|
9
|
+
// dotted strokes
|
|
10
|
+
var dottedStrokeMaskSmall = 'radial-gradient(circle at center, black 0.5px, transparent 0.6px)';
|
|
11
|
+
var dottedStrokeMaskMedium = 'radial-gradient(circle at center, black 1px, transparent 1.1px)';
|
|
12
|
+
var dottedStrokeMaskLarge = 'radial-gradient(circle at center, black 1.5px, transparent 1.6px)';
|
|
13
|
+
|
|
14
|
+
// sketch strokes
|
|
15
|
+
var sketchStrokePath = 'M0.00161171 1.0107C6.6387 1 9.94061 5.16958 16.6371 5.16958C23.3336 5.16958 26.5761 1.00913 33.2726 1.0107C39.3797 1.01213 42.4198 4.22998 48.5219 4.47643C55.9487 4.77638 59.8075 0.780687 67.2368 1.0107C73.6051 1.20786 76.8081 4.42122 83.1792 4.47643C89.815 4.53393 93.1788 1.06378 99.8147 1.0107C106.716 0.95549 110.244 4.6564 117.143 4.47643C123.248 4.31717 126.289 1.21517 132.393 1.0107C139.555 0.770735 143.25 4.64894 150.414 4.47643C156.784 4.32307 159.986 1.06591 166.357 1.0107C172.993 0.953195 176.356 4.47655 182.992 4.47643C189.628 4.47632 192.992 1.01007 199.628 1.01007C206.264 1.01007 209.627 4.47632 216.263 4.47643C222.899 4.47655 226.263 1.0107 232.899 1.0107';
|
|
16
|
+
var sketchStrokeMaskSmall = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1' d='".concat(sketchStrokePath, "'/%3E%3C/svg%3E\")");
|
|
17
|
+
var sketchStrokeMaskMedium = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 233 7'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='".concat(sketchStrokePath, "'/%3E%3C/svg%3E\")");
|
|
18
|
+
var sketchStrokeMaskLarge = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1 233 8'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' d='".concat(sketchStrokePath, "'/%3E%3C/svg%3E\")");
|
|
19
|
+
|
|
12
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
13
21
|
export var ruleWithAttrsStyles = css({
|
|
14
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -19,7 +27,7 @@ export var ruleWithAttrsStyles = css({
|
|
|
19
27
|
},
|
|
20
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
21
29
|
'.ProseMirror hr[data-style="dotted"]': {
|
|
22
|
-
maskImage:
|
|
30
|
+
maskImage: dottedStrokeMaskMedium,
|
|
23
31
|
maskPosition: 'center',
|
|
24
32
|
maskRepeat: 'repeat-x',
|
|
25
33
|
maskSize: '6px 2px'
|
|
@@ -27,7 +35,7 @@ export var ruleWithAttrsStyles = css({
|
|
|
27
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
28
36
|
'.ProseMirror hr[data-style="sketch"]': {
|
|
29
37
|
height: "calc(2px + ".concat("var(--ds-space-050, 4px)", " + ", "var(--ds-space-050, 4px)", ")"),
|
|
30
|
-
maskImage:
|
|
38
|
+
maskImage: sketchStrokeMaskMedium,
|
|
31
39
|
maskPosition: 'center',
|
|
32
40
|
maskRepeat: 'repeat-x',
|
|
33
41
|
maskSize: '233px 7px',
|
|
@@ -39,5 +47,35 @@ export var ruleWithAttrsStyles = css({
|
|
|
39
47
|
maskImage: fadeStrokeMask,
|
|
40
48
|
maskRepeat: 'no-repeat',
|
|
41
49
|
maskSize: '100% 100%'
|
|
50
|
+
},
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
52
|
+
'.ProseMirror hr[data-weight="1"]': {
|
|
53
|
+
height: '1px'
|
|
54
|
+
},
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
56
|
+
'.ProseMirror hr[data-weight="3"]': {
|
|
57
|
+
height: '3px'
|
|
58
|
+
},
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
60
|
+
'.ProseMirror hr[data-style="dotted"][data-weight="1"]': {
|
|
61
|
+
maskImage: dottedStrokeMaskSmall,
|
|
62
|
+
maskSize: '6px 1px'
|
|
63
|
+
},
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
65
|
+
'.ProseMirror hr[data-style="dotted"][data-weight="3"]': {
|
|
66
|
+
maskImage: dottedStrokeMaskLarge,
|
|
67
|
+
maskSize: '6px 3px'
|
|
68
|
+
},
|
|
69
|
+
// Sketch needs a mask per weight because CSS cannot change the SVG stroke width.
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
71
|
+
'.ProseMirror hr[data-style="sketch"][data-weight="1"]': {
|
|
72
|
+
height: "calc(1px + ".concat("var(--ds-space-050, 4px)", " + ", "var(--ds-space-050, 4px)", ")"),
|
|
73
|
+
maskImage: sketchStrokeMaskSmall
|
|
74
|
+
},
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
76
|
+
'.ProseMirror hr[data-style="sketch"][data-weight="3"]': {
|
|
77
|
+
height: "calc(3px + ".concat("var(--ds-space-050, 4px)", " + ", "var(--ds-space-050, 4px)", ")"),
|
|
78
|
+
maskImage: sketchStrokeMaskLarge,
|
|
79
|
+
maskSize: '233px 8px'
|
|
42
80
|
}
|
|
43
81
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* PluginSlot-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* PluginSlot-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["children"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ToolbarComponentsWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* ToolbarComponentsWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `ToolbarInner.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ToolbarSizeDetectorWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* ToolbarSizeDetectorWrapper-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
/**
|
|
3
3
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
4
|
* Used via `componentWithCondition` in `ToolbarWithSizeDetector.tsx`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* withFlash-compiled.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* withFlash-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
@@ -8,6 +8,10 @@ import CarouselIcon from '@atlaskit/icon-lab/core/carousel';
|
|
|
8
8
|
import TableOfContentIcon from '@atlaskit/icon-lab/core/table-of-content';
|
|
9
9
|
import TemplateIcon from '@atlaskit/icon-lab/core/template';
|
|
10
10
|
var lazyExtensionIconCache = new WeakMap();
|
|
11
|
+
var brandedSlashCommandIconUrls = {
|
|
12
|
+
amplitude: 'https://dam-cdn.atl.orangelogic.com/AssetLink/730r6bie0211kg6obni4343y4g1wv6n5.svg',
|
|
13
|
+
figma: 'https://dam-cdn.atl.orangelogic.com/AssetLink/68t3023r7347271te7qw370k2pk37rgb.svg'
|
|
14
|
+
};
|
|
11
15
|
var whiteboardQuickInsertItemKeys = new Set(['whiteboard-extension:create-whiteboard', 'whiteboard-extension:create-diagram', 'whiteboard-extension:create-flowchart', 'whiteboard-extension:create-brainstorming', 'whiteboard-extension:create-retrospective', 'whiteboard-extension:create-roadmap']);
|
|
12
16
|
var quickInsertItemIcons = {
|
|
13
17
|
'toc:toc': TableOfContentIcon,
|
|
@@ -81,7 +85,9 @@ var createLazyExtensionIcon = function createLazyExtensionIcon(getIcon) {
|
|
|
81
85
|
export var ExtensionQuickInsertIcon = function ExtensionQuickInsertIcon(_ref2) {
|
|
82
86
|
var getIcon = _ref2.getIcon,
|
|
83
87
|
itemKey = _ref2.itemKey,
|
|
88
|
+
itemTitle = _ref2.itemTitle,
|
|
84
89
|
label = _ref2.label;
|
|
90
|
+
var brandedIconUrl = brandedSlashCommandIconUrls[itemTitle.toLowerCase()];
|
|
85
91
|
var Icon = React.useMemo(function () {
|
|
86
92
|
var quickInsertItemIcon = quickInsertItemIcons[itemKey];
|
|
87
93
|
if (quickInsertItemIcon) {
|
|
@@ -92,6 +98,15 @@ export var ExtensionQuickInsertIcon = function ExtensionQuickInsertIcon(_ref2) {
|
|
|
92
98
|
}
|
|
93
99
|
return getIcon ? createLazyExtensionIcon(getIcon) : AppsIcon;
|
|
94
100
|
}, [getIcon, itemKey]);
|
|
101
|
+
if (brandedIconUrl) {
|
|
102
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
103
|
+
alt: "",
|
|
104
|
+
"aria-hidden": "true",
|
|
105
|
+
height: 24,
|
|
106
|
+
src: brandedIconUrl,
|
|
107
|
+
width: 24
|
|
108
|
+
});
|
|
109
|
+
}
|
|
95
110
|
return /*#__PURE__*/React.createElement(Icon, {
|
|
96
111
|
label: label
|
|
97
112
|
});
|
|
@@ -3,6 +3,7 @@ import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-i
|
|
|
3
3
|
import { useQuickInsertContext } from '@atlaskit/editor-common/quick-insert/use-quick-insert-context';
|
|
4
4
|
import { executeExtensionQuickInsertItem } from './executeExtensionQuickInsertItem';
|
|
5
5
|
import { ExtensionQuickInsertIcon } from './ExtensionQuickInsertIcon';
|
|
6
|
+
import { getExtensionQuickInsertPreviewImageUrls } from './getExtensionQuickInsertPreviewImageUrls';
|
|
6
7
|
export var ExtensionQuickInsertMenuItem = function ExtensionQuickInsertMenuItem(_ref) {
|
|
7
8
|
var apiRef = _ref.apiRef,
|
|
8
9
|
createAnalyticsEvent = _ref.createAnalyticsEvent,
|
|
@@ -33,10 +34,12 @@ export var ExtensionQuickInsertMenuItem = function ExtensionQuickInsertMenuItem(
|
|
|
33
34
|
iconBefore: /*#__PURE__*/React.createElement(ExtensionQuickInsertIcon, {
|
|
34
35
|
getIcon: item.icon,
|
|
35
36
|
itemKey: item.key,
|
|
37
|
+
itemTitle: item.title,
|
|
36
38
|
label: ""
|
|
37
39
|
}),
|
|
38
40
|
isDisabled: isOffline,
|
|
39
41
|
onSelect: onSelect,
|
|
42
|
+
previewImageUrls: getExtensionQuickInsertPreviewImageUrls(item),
|
|
40
43
|
title: item.title
|
|
41
44
|
});
|
|
42
45
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var previewImageUrlsByTitle = {
|
|
2
|
+
amplitude: {
|
|
3
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7v8shu6n3wd15644f3ys785628dkt632.png',
|
|
4
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/2r34o120k40e0us4w66oqpud63o4lef4.png'
|
|
5
|
+
},
|
|
6
|
+
dropbox: {
|
|
7
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/83f1773ur08qm4t3bqaabpwb173313tg.png',
|
|
8
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/37v2dk5n1ltwc82j1w76dv1tyr8puwq0.png'
|
|
9
|
+
},
|
|
10
|
+
figma: {
|
|
11
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/svedc2lju60bgq3r43kfmi7213wj46as.png',
|
|
12
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/u80s30071b4c10vdjr5rw0uje8cu2pk7.png'
|
|
13
|
+
},
|
|
14
|
+
'google drive': {
|
|
15
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/y01wj4t58w86byx86l6k81a22axud131.png',
|
|
16
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/wi413m0837rjykg23r6y0256b7377185.png'
|
|
17
|
+
},
|
|
18
|
+
iframe: {
|
|
19
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/77p6d5rb343gue8580bacbl0xf82u5jv.png',
|
|
20
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/72a0j8eddxg82rnp8j48bipi8sq8g0ke.png'
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export var getExtensionQuickInsertPreviewImageUrls = function getExtensionQuickInsertPreviewImageUrls(item) {
|
|
24
|
+
return previewImageUrlsByTitle[item.title.toLowerCase()];
|
|
25
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { MenuItem } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
export declare const ExtensionQuickInsertIcon: ({ getIcon, itemKey, label, }: {
|
|
3
|
+
export declare const ExtensionQuickInsertIcon: ({ getIcon, itemKey, itemTitle, label, }: {
|
|
4
4
|
getIcon?: MenuItem['icon'];
|
|
5
5
|
itemKey: string;
|
|
6
|
+
itemTitle: string;
|
|
6
7
|
label: string;
|
|
7
8
|
}) => React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MenuItem } from '@atlaskit/editor-common/extensions';
|
|
2
|
+
type PreviewImageUrls = {
|
|
3
|
+
dark: string;
|
|
4
|
+
light: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const getExtensionQuickInsertPreviewImageUrls: (item: Pick<MenuItem, 'title'>) => PreviewImageUrls | undefined;
|
|
7
|
+
export {};
|