@atlaskit/editor-core 234.3.2 → 235.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/cjs/composable-editor/editor-internal-compiled.js +0 -6
- package/dist/cjs/composable-editor/editor-internal.js +3 -12
- package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +0 -5
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +1 -7
- package/dist/cjs/ui/Appearance/ChromelessEditorContainer.js +26 -13
- package/dist/cjs/ui/Appearance/Comment/Comment.js +262 -7
- package/dist/cjs/ui/Appearance/Comment/FixedToolbar-compiled.js +0 -6
- package/dist/cjs/ui/Appearance/Comment/StickyToolbar-compiled.js +0 -6
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +2 -13
- package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper.js +15 -7
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper.js +41 -10
- package/dist/cjs/ui/Appearance/FullPage/FullPage-compiled.js +0 -6
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -6
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +192 -14
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +3 -5
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar-compiled.js +0 -6
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper.js +23 -7
- package/dist/cjs/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +0 -6
- package/dist/cjs/ui/ChromeCollapsed/index.js +1 -7
- package/dist/cjs/ui/ContextPanel/index-compiled.js +0 -6
- package/dist/cjs/ui/ContextPanel/index.js +2 -11
- package/dist/cjs/ui/PluginSlot/PluginSlot-compiled.js +0 -7
- package/dist/cjs/ui/PluginSlot/index.js +1 -6
- package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +0 -6
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +1 -8
- package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +0 -6
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +2 -11
- package/dist/cjs/ui/WithFlash/index.js +1 -6
- package/dist/cjs/ui/WithFlash/withFlash-compiled.js +1 -6
- package/dist/cjs/ui/quick-insert/getExtensionQuickInsertComponents.js +7 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal-compiled.js +0 -6
- package/dist/es2019/composable-editor/editor-internal.js +3 -10
- package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +0 -5
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +1 -5
- package/dist/es2019/ui/Appearance/ChromelessEditorContainer.js +24 -12
- package/dist/es2019/ui/Appearance/Comment/Comment.js +254 -5
- package/dist/es2019/ui/Appearance/Comment/FixedToolbar-compiled.js +0 -6
- package/dist/es2019/ui/Appearance/Comment/StickyToolbar-compiled.js +0 -6
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -8
- package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +11 -5
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper.js +37 -6
- package/dist/es2019/ui/Appearance/FullPage/FullPage-compiled.js +0 -6
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -4
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +186 -11
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +3 -5
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar-compiled.js +0 -6
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper.js +24 -5
- package/dist/es2019/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +0 -6
- package/dist/es2019/ui/ChromeCollapsed/index.js +1 -5
- package/dist/es2019/ui/ContextPanel/index-compiled.js +0 -6
- package/dist/es2019/ui/ContextPanel/index.js +2 -7
- package/dist/es2019/ui/PluginSlot/PluginSlot-compiled.js +0 -7
- package/dist/es2019/ui/PluginSlot/index.js +1 -4
- package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +0 -6
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +1 -5
- package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +0 -6
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +2 -9
- package/dist/es2019/ui/WithFlash/index.js +1 -4
- package/dist/es2019/ui/WithFlash/withFlash-compiled.js +0 -6
- package/dist/es2019/ui/quick-insert/getExtensionQuickInsertComponents.js +6 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal-compiled.js +0 -6
- package/dist/esm/composable-editor/editor-internal.js +3 -12
- package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +0 -5
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +1 -7
- package/dist/esm/ui/Appearance/ChromelessEditorContainer.js +25 -14
- package/dist/esm/ui/Appearance/Comment/Comment.js +260 -7
- package/dist/esm/ui/Appearance/Comment/FixedToolbar-compiled.js +0 -6
- package/dist/esm/ui/Appearance/Comment/StickyToolbar-compiled.js +0 -7
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -12
- package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +13 -7
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper.js +39 -10
- package/dist/esm/ui/Appearance/FullPage/FullPage-compiled.js +0 -6
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -6
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +190 -13
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +3 -5
- package/dist/esm/ui/Appearance/FullPage/MainToolbar-compiled.js +0 -6
- package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper.js +23 -7
- package/dist/esm/ui/ChromeCollapsed/ChromeCollapsed-compiled.js +0 -6
- package/dist/esm/ui/ChromeCollapsed/index.js +1 -7
- package/dist/esm/ui/ContextPanel/index-compiled.js +0 -6
- package/dist/esm/ui/ContextPanel/index.js +2 -11
- package/dist/esm/ui/PluginSlot/PluginSlot-compiled.js +0 -7
- package/dist/esm/ui/PluginSlot/index.js +1 -6
- package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-compiled.js +0 -6
- package/dist/esm/ui/Toolbar/ToolbarInner.js +1 -7
- package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.js +0 -6
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +2 -11
- package/dist/esm/ui/WithFlash/index.js +1 -6
- package/dist/esm/ui/WithFlash/withFlash-compiled.js +0 -6
- package/dist/esm/ui/quick-insert/getExtensionQuickInsertComponents.js +8 -5
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor-internal-compiled.d.ts +0 -6
- package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +0 -4
- package/dist/types/ui/Appearance/ChromelessEditorContainer.d.ts +10 -7
- package/dist/types/ui/Appearance/Comment/Comment.d.ts +24 -2
- package/dist/types/ui/Appearance/Comment/FixedToolbar-compiled.d.ts +0 -6
- package/dist/types/ui/Appearance/Comment/StickyToolbar-compiled.d.ts +0 -6
- package/dist/types/ui/Appearance/FullPage/BeforeWrapper.d.ts +7 -3
- package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +2 -3
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +54 -6
- package/dist/types/ui/Appearance/FullPage/MainToolbar-compiled.d.ts +0 -6
- package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +13 -3
- package/dist/types/ui/ChromeCollapsed/ChromeCollapsed-compiled.d.ts +0 -6
- package/dist/types/ui/PluginSlot/PluginSlot-compiled.d.ts +0 -6
- package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-compiled.d.ts +0 -6
- package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.d.ts +0 -6
- package/dist/types/ui/WithFlash/index.d.ts +1 -1
- package/dist/types/ui/WithFlash/withFlash-compiled.d.ts +0 -6
- package/package.json +44 -44
- package/dist/cjs/composable-editor/BaseThemeWrapper.js +0 -47
- package/dist/cjs/composable-editor/editor-internal-emotion.js +0 -35
- package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +0 -36
- package/dist/cjs/ui/Appearance/Chromeless-compiled.js +0 -38
- package/dist/cjs/ui/Appearance/Chromeless-emotion.js +0 -89
- package/dist/cjs/ui/Appearance/Comment/Comment-compiled.js +0 -273
- package/dist/cjs/ui/Appearance/Comment/Comment-emotion.js +0 -339
- package/dist/cjs/ui/Appearance/Comment/FixedToolbar-emotion.js +0 -89
- package/dist/cjs/ui/Appearance/Comment/StickyToolbar-emotion.js +0 -126
- package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-compiled.js +0 -29
- package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-emotion.js +0 -34
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +0 -57
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +0 -89
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +0 -13
- package/dist/cjs/ui/Appearance/FullPage/FullPage-emotion.js +0 -38
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.js +0 -201
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +0 -398
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar-emotion.js +0 -63
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +0 -13
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +0 -35
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +0 -70
- package/dist/cjs/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +0 -13
- package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +0 -65
- package/dist/cjs/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +0 -37
- package/dist/cjs/ui/ContextPanel/index-emotion.js +0 -86
- package/dist/cjs/ui/PluginSlot/PluginSlot-emotion.js +0 -35
- package/dist/cjs/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +0 -36
- package/dist/cjs/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +0 -32
- package/dist/cjs/ui/WithFlash/withFlash-emotion.js +0 -91
- package/dist/es2019/composable-editor/BaseThemeWrapper.js +0 -35
- package/dist/es2019/composable-editor/editor-internal-emotion.js +0 -27
- package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +0 -26
- package/dist/es2019/ui/Appearance/Chromeless-compiled.js +0 -30
- package/dist/es2019/ui/Appearance/Chromeless-emotion.js +0 -80
- package/dist/es2019/ui/Appearance/Comment/Comment-compiled.js +0 -260
- package/dist/es2019/ui/Appearance/Comment/Comment-emotion.js +0 -326
- package/dist/es2019/ui/Appearance/Comment/FixedToolbar-emotion.js +0 -86
- package/dist/es2019/ui/Appearance/Comment/StickyToolbar-emotion.js +0 -123
- package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-compiled.js +0 -19
- package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-emotion.js +0 -25
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +0 -47
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +0 -79
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +0 -5
- package/dist/es2019/ui/Appearance/FullPage/FullPage-emotion.js +0 -29
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.js +0 -190
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +0 -390
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar-emotion.js +0 -53
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +0 -5
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +0 -30
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +0 -65
- package/dist/es2019/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +0 -5
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +0 -59
- package/dist/es2019/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +0 -27
- package/dist/es2019/ui/ContextPanel/index-emotion.js +0 -74
- package/dist/es2019/ui/PluginSlot/PluginSlot-emotion.js +0 -25
- package/dist/es2019/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +0 -28
- package/dist/es2019/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +0 -24
- package/dist/es2019/ui/WithFlash/withFlash-emotion.js +0 -75
- package/dist/esm/composable-editor/BaseThemeWrapper.js +0 -39
- package/dist/esm/composable-editor/editor-internal-emotion.js +0 -28
- package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +0 -30
- package/dist/esm/ui/Appearance/Chromeless-compiled.js +0 -31
- package/dist/esm/ui/Appearance/Chromeless-emotion.js +0 -83
- package/dist/esm/ui/Appearance/Comment/Comment-compiled.js +0 -266
- package/dist/esm/ui/Appearance/Comment/Comment-emotion.js +0 -328
- package/dist/esm/ui/Appearance/Comment/FixedToolbar-emotion.js +0 -81
- package/dist/esm/ui/Appearance/Comment/StickyToolbar-emotion.js +0 -119
- package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-compiled.js +0 -21
- package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-emotion.js +0 -27
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +0 -49
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +0 -81
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapperMigration.js +0 -7
- package/dist/esm/ui/Appearance/FullPage/FullPage-emotion.js +0 -31
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.js +0 -194
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +0 -388
- package/dist/esm/ui/Appearance/FullPage/MainToolbar-emotion.js +0 -55
- package/dist/esm/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.js +0 -7
- package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +0 -29
- package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +0 -62
- package/dist/esm/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.js +0 -7
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +0 -59
- package/dist/esm/ui/ChromeCollapsed/ChromeCollapsed-emotion.js +0 -29
- package/dist/esm/ui/ContextPanel/index-emotion.js +0 -79
- package/dist/esm/ui/PluginSlot/PluginSlot-emotion.js +0 -29
- package/dist/esm/ui/Toolbar/ToolbarComponentsWrapper-emotion.js +0 -28
- package/dist/esm/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.js +0 -25
- package/dist/esm/ui/WithFlash/withFlash-emotion.js +0 -88
- package/dist/types/composable-editor/BaseThemeWrapper.d.ts +0 -7
- package/dist/types/composable-editor/editor-internal-emotion.d.ts +0 -15
- package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.d.ts +0 -12
- package/dist/types/ui/Appearance/Chromeless-compiled.d.ts +0 -18
- package/dist/types/ui/Appearance/Chromeless-emotion.d.ts +0 -18
- package/dist/types/ui/Appearance/Comment/Comment-compiled.d.ts +0 -30
- package/dist/types/ui/Appearance/Comment/Comment-emotion.d.ts +0 -20
- package/dist/types/ui/Appearance/Comment/FixedToolbar-emotion.d.ts +0 -19
- package/dist/types/ui/Appearance/Comment/StickyToolbar-emotion.d.ts +0 -21
- package/dist/types/ui/Appearance/FullPage/BeforeWrapper-compiled.d.ts +0 -16
- package/dist/types/ui/Appearance/FullPage/BeforeWrapper-emotion.d.ts +0 -16
- package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.d.ts +0 -3
- package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.d.ts +0 -14
- package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapperMigration.d.ts +0 -4
- package/dist/types/ui/Appearance/FullPage/FullPage-emotion.d.ts +0 -7
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea-compiled.d.ts +0 -57
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea-emotion.d.ts +0 -57
- package/dist/types/ui/Appearance/FullPage/MainToolbar-emotion.d.ts +0 -21
- package/dist/types/ui/Appearance/FullPage/MainToolbarIconBeforeMigration.d.ts +0 -4
- package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper-compiled.d.ts +0 -19
- package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper-emotion.d.ts +0 -19
- package/dist/types/ui/Appearance/FullPage/NonCustomToolbarWrapperMigration.d.ts +0 -4
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +0 -19
- package/dist/types/ui/ChromeCollapsed/ChromeCollapsed-emotion.d.ts +0 -13
- package/dist/types/ui/ContextPanel/index-emotion.d.ts +0 -13
- package/dist/types/ui/PluginSlot/PluginSlot-emotion.d.ts +0 -12
- package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-emotion.d.ts +0 -17
- package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-emotion.d.ts +0 -17
- package/dist/types/ui/WithFlash/withFlash-emotion.d.ts +0 -19
- /package/dist/cjs/ui/Appearance/{Chromeless-compiled.compiled.css → ChromelessEditorContainer.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/Comment/{Comment-compiled.compiled.css → Comment.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/FullPage/{BeforeWrapper-compiled.compiled.css → BeforeWrapper.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/FullPage/{CustomToolbarWrapper-compiled.compiled.css → CustomToolbarWrapper.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/FullPage/{FullPageContentArea-compiled.compiled.css → FullPageContentArea.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/FullPage/{MainToolbarWrapper-compiled.compiled.css → MainToolbarWrapper.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/{Chromeless-compiled.compiled.css → ChromelessEditorContainer.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/Comment/{Comment-compiled.compiled.css → Comment.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/FullPage/{BeforeWrapper-compiled.compiled.css → BeforeWrapper.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/FullPage/{CustomToolbarWrapper-compiled.compiled.css → CustomToolbarWrapper.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/FullPage/{FullPageContentArea-compiled.compiled.css → FullPageContentArea.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/FullPage/{MainToolbarWrapper-compiled.compiled.css → MainToolbarWrapper.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/{Chromeless-compiled.compiled.css → ChromelessEditorContainer.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/Comment/{Comment-compiled.compiled.css → Comment.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/FullPage/{BeforeWrapper-compiled.compiled.css → BeforeWrapper.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/FullPage/{CustomToolbarWrapper-compiled.compiled.css → CustomToolbarWrapper.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/FullPage/{FullPageContentArea-compiled.compiled.css → FullPageContentArea.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/FullPage/{MainToolbarWrapper-compiled.compiled.css → MainToolbarWrapper.compiled.css} +0 -0
|
@@ -15,8 +15,6 @@ var _keys = require("@atlaskit/editor-common/quick-insert/keys");
|
|
|
15
15
|
var _rank = require("@atlaskit/editor-common/quick-insert/rank");
|
|
16
16
|
var _ExtensionQuickInsertMenuItem = require("./ExtensionQuickInsertMenuItem");
|
|
17
17
|
var _QuickInsertSkillMenuItem = require("./QuickInsertSkillMenuItem");
|
|
18
|
-
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; }
|
|
19
|
-
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; }
|
|
20
18
|
var structureExtensionItemKeyRanks = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
21
19
|
'toc:toc': 600
|
|
22
20
|
}, _keys.TABS_MENU_ITEM.key, 1900), 'cards:quick-insert', 2000), 'carousel:quick-insert', 2100), 'spotlight:quick-insert', 2200), 'create-from-template:create-from-template', 2700), 'anchor:anchor', 2900), 'smart-button:quick-insert', 3000);
|
|
@@ -78,6 +76,9 @@ var createExtensionItemRanker = function createExtensionItemRanker(items) {
|
|
|
78
76
|
if (knownRank !== undefined) {
|
|
79
77
|
return knownRank;
|
|
80
78
|
}
|
|
79
|
+
if (sectionKey === _keys.BLOCK_TEMPLATES_SECTION.key && item.priority !== undefined) {
|
|
80
|
+
return item.priority;
|
|
81
|
+
}
|
|
81
82
|
var sectionRank = (_ranksBySection$get = ranksBySection.get(sectionKey)) === null || _ranksBySection$get === void 0 ? void 0 : _ranksBySection$get.get(item);
|
|
82
83
|
return sectionRank !== null && sectionRank !== void 0 ? sectionRank : _rank.EXTENSION_ITEM_RANK + ((_item$priority = item.priority) !== null && _item$priority !== void 0 ? _item$priority : index);
|
|
83
84
|
};
|
|
@@ -102,14 +103,16 @@ var getExtensionQuickInsertComponents = exports.getExtensionQuickInsertComponent
|
|
|
102
103
|
key: item.key,
|
|
103
104
|
parents: parents.map(function (parent) {
|
|
104
105
|
var _CREATE_SECTION_RANK$;
|
|
105
|
-
return
|
|
106
|
+
return {
|
|
107
|
+
key: parent.key,
|
|
108
|
+
type: parent.type,
|
|
106
109
|
rank: getExtensionItemRank({
|
|
107
110
|
index: index,
|
|
108
111
|
knownRank: (_CREATE_SECTION_RANK$ = _rank.CREATE_SECTION_RANK[item.key]) !== null && _CREATE_SECTION_RANK$ !== void 0 ? _CREATE_SECTION_RANK$ : structureRank,
|
|
109
112
|
item: item,
|
|
110
113
|
sectionKey: parent.key
|
|
111
114
|
})
|
|
112
|
-
}
|
|
115
|
+
};
|
|
113
116
|
}),
|
|
114
117
|
match: (0, _createQuickInsertMatcher.createQuickInsertMatcher)(function () {
|
|
115
118
|
return {
|
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
8
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
9
|
-
var version = exports.version = "
|
|
9
|
+
var version = exports.version = "235.0.0";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
/* editor-internal-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
-
/**
|
|
3
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
|
-
* Used via `componentWithCondition` in `editor-internal.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
2
|
import "./editor-internal-compiled.compiled.css";
|
|
9
3
|
import * as React from 'react';
|
|
10
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -3,19 +3,14 @@ import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
|
3
3
|
import { usePortalProvider } from '@atlaskit/editor-common/portal';
|
|
4
4
|
import { editorFontSize } from '@atlaskit/editor-shared-styles';
|
|
5
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
7
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
6
|
import ErrorBoundary from '../create-editor/ErrorBoundary';
|
|
9
7
|
import ReactEditorViewNext from '../create-editor/ReactEditorView';
|
|
10
8
|
import EditorContext from '../ui/EditorContext';
|
|
11
9
|
import { IntlProviderIfMissingWrapper } from '../ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper';
|
|
12
10
|
import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
|
|
13
11
|
import { RenderTracking } from '../utils/performance/components/RenderTracking';
|
|
14
|
-
import { BaseThemeWrapper } from './BaseThemeWrapper';
|
|
15
12
|
import { EditorInternalContainerCompiled } from './editor-internal-compiled';
|
|
16
|
-
import { EditorInternalContainerEmotion } from './editor-internal-emotion';
|
|
17
13
|
import { getBaseFontSize } from './utils/getBaseFontSize';
|
|
18
|
-
const EditorInternalContainerMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), EditorInternalContainerCompiled, EditorInternalContainerEmotion);
|
|
19
14
|
const DEFAULT_VALUE_PROP_TO_IGNORE = ['defaultValue'];
|
|
20
15
|
|
|
21
16
|
/**
|
|
@@ -63,7 +58,7 @@ export const EditorInternal = /*#__PURE__*/memo(({
|
|
|
63
58
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
64
59
|
contextIdentifierProvider: props.contextIdentifierProvider,
|
|
65
60
|
featureFlags: featureFlags
|
|
66
|
-
}, /*#__PURE__*/React.createElement(
|
|
61
|
+
}, /*#__PURE__*/React.createElement(EditorInternalContainerCompiled, {
|
|
67
62
|
fontSize: fontSize
|
|
68
63
|
}, /*#__PURE__*/React.createElement(EditorContext, {
|
|
69
64
|
editorActions: editorActions
|
|
@@ -89,9 +84,7 @@ export const EditorInternal = /*#__PURE__*/memo(({
|
|
|
89
84
|
editorAPI
|
|
90
85
|
}) => {
|
|
91
86
|
var _props$featureFlags, _props$featureFlags2;
|
|
92
|
-
return /*#__PURE__*/React.createElement(
|
|
93
|
-
baseFontSize: baseFontSize
|
|
94
|
-
}, /*#__PURE__*/React.createElement(AppearanceComponent, {
|
|
87
|
+
return /*#__PURE__*/React.createElement(AppearanceComponent, {
|
|
95
88
|
innerRef: editorRef,
|
|
96
89
|
editorAPI: editorAPI
|
|
97
90
|
// Ignored via go/ees005
|
|
@@ -132,7 +125,7 @@ export const EditorInternal = /*#__PURE__*/memo(({
|
|
|
132
125
|
__livePage: props.__livePage,
|
|
133
126
|
preset: preset,
|
|
134
127
|
UNSAFE_containLayout: props.UNSAFE_containLayout
|
|
135
|
-
})
|
|
128
|
+
});
|
|
136
129
|
}
|
|
137
130
|
}), /*#__PURE__*/React.createElement(PortalRenderer, null), /*#__PURE__*/React.createElement(NodeViewPortalRenderer, null)))))));
|
|
138
131
|
});
|
|
@@ -3,11 +3,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./clickAreaBlock-compiled.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
/**
|
|
7
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
8
|
-
* Used via `componentWithCondition` in `index.tsx`.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
6
|
const clickWrapperCompiledStyles = {
|
|
12
7
|
root: "_16jlkb7n _4t3i1osq"
|
|
13
8
|
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
3
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
2
|
import { clickAreaClickHandler } from '../click-area-helper';
|
|
5
3
|
import { ClickAreaBlockContainerCompiled } from './clickAreaBlock-compiled';
|
|
6
|
-
import { ClickAreaBlockContainerEmotion } from './clickAreaBlock-emotion';
|
|
7
|
-
const ClickAreaBlockContainerMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), ClickAreaBlockContainerCompiled, ClickAreaBlockContainerEmotion);
|
|
8
4
|
export const ClickAreaBlock = ({
|
|
9
5
|
editorView,
|
|
10
6
|
editorDisabled,
|
|
@@ -18,7 +14,7 @@ export const ClickAreaBlock = ({
|
|
|
18
14
|
clickAreaClickHandler(editorView, event);
|
|
19
15
|
}
|
|
20
16
|
}, [editorView, editorDisabled]);
|
|
21
|
-
return /*#__PURE__*/React.createElement(
|
|
17
|
+
return /*#__PURE__*/React.createElement(ClickAreaBlockContainerCompiled, {
|
|
22
18
|
"data-editor-click-wrapper": true,
|
|
23
19
|
"data-testid": "click-wrapper",
|
|
24
20
|
onMouseDown: handleMouseDown
|
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
/* ChromelessEditorContainer.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
+
import "./ChromelessEditorContainer.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React from 'react';
|
|
5
|
+
const chromelessStyles = {
|
|
6
|
+
scrollbar: "_1fpfolhs _1khk1mok _123b1aqn _jaboglyw _aaynsm61 _1ogl1ibz",
|
|
7
|
+
editor: "_vwz4gktf _4t3i1wug _1reo15vq _18m91wug _p12f1kw7 _vchhusvi _slp31hna _fpqb1r31 _l5dlglyw _tjxn1o36 _1yt4idpf _y826idpf _7fa7idpf _8wn3idpf _1nhbidpf _1q5yidpf _1gfdidpf _1itkidpf _7fkv1jtm _1awku2gc _15gyze3t"
|
|
8
|
+
};
|
|
9
|
+
export const ChromelessEditorContainer = ({
|
|
10
|
+
children,
|
|
11
|
+
containerRef,
|
|
12
|
+
maxHeight,
|
|
13
|
+
minHeight
|
|
14
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
16
|
+
className: ax([chromelessStyles.editor, chromelessStyles.scrollbar, "akEditor"]),
|
|
17
|
+
style: {
|
|
18
|
+
maxHeight: maxHeight ? `${maxHeight}px` : undefined,
|
|
19
|
+
minHeight: `${minHeight}px`
|
|
20
|
+
},
|
|
21
|
+
ref: containerRef,
|
|
22
|
+
"data-testid": "chromeless-editor",
|
|
23
|
+
id: "chromeless-editor"
|
|
24
|
+
}, children);
|
|
@@ -1,5 +1,254 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
/* Comment.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
+
import "./Comment.compiled.css";
|
|
3
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
+
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
5
|
+
import classnames from 'classnames';
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
7
|
+
import ButtonGroup from '@atlaskit/button/button-group';
|
|
8
|
+
import Button from '@atlaskit/button/default/button';
|
|
9
|
+
import { useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
10
|
+
import messages from '@atlaskit/editor-common/messages';
|
|
11
|
+
import { WidthConsumer, WidthProvider } from '@atlaskit/editor-common/ui';
|
|
12
|
+
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
13
|
+
import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
|
|
14
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
15
|
+
// Ignored via go/ees005
|
|
16
|
+
// eslint-disable-next-line import/no-named-as-default
|
|
17
|
+
import ClickAreaBlock from '../../Addon/ClickAreaBlock';
|
|
18
|
+
import { contentComponentClickWrapper } from '../../Addon/ClickAreaBlock/contentComponentWrapper';
|
|
19
|
+
import EditorContentContainer from '../../EditorContentContainer/EditorContentContainer';
|
|
20
|
+
import PluginSlot from '../../PluginSlot';
|
|
21
|
+
import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
|
|
22
|
+
import { ToolbarWithSizeDetector as Toolbar } from '../../Toolbar/ToolbarWithSizeDetector';
|
|
23
|
+
import WithFlash from '../../WithFlash';
|
|
24
|
+
import { CommentToolbar } from './CommentToolbar';
|
|
25
|
+
import { MainToolbar } from './Toolbar';
|
|
26
|
+
const commentEditorCompiledStyles = {
|
|
27
|
+
commentEditor: "_19itno8c _2rko1qi0 _1e0c1txw _2lx21bp4 _1ul9clpc _4t3i1wug _bfhk1j9a _vchhusvi _p12f1kw7 _slp31hna _13dfutpp _gzr8u2gc _ghozu2gc _oafwu2gc",
|
|
28
|
+
modernisedEditor: "_2rkopb1k",
|
|
29
|
+
secondaryToolbar: "_vchhusvi _1bahesu3 _4cvr1h6o _1e0c1txw _ca0qutpp _u5f3v77o _n3tdutpp _19bvv77o",
|
|
30
|
+
mainToolbarCustomComponentsSlotNew: "_1e0c1txw _1bahesu3 _4cvr1h6o _16jlkb7n _u5f3v47k _p7r11txw _t1edidpf",
|
|
31
|
+
mainToolbarCustomComponentsSlotPaddingOverride: "_u5f3idpf",
|
|
32
|
+
mainToolbarCustomComponentsSlotTwoLineToolbar: "_xugcidpf",
|
|
33
|
+
contentAreaMaxHeight: "_c71lmz22 _18m91wug"
|
|
34
|
+
};
|
|
35
|
+
const appearance = 'comment';
|
|
36
|
+
export const CommentEditorWithIntl = props => {
|
|
37
|
+
var _editorAPI$blockMenu$, _editorAPI$blockMenu, _editorAPI$blockMenu$2, _editorAPI$blockMenu$3;
|
|
38
|
+
const {
|
|
39
|
+
editorAPI
|
|
40
|
+
} = props;
|
|
41
|
+
|
|
42
|
+
// Get useStandardNodeWidth from block menu plugin shared state
|
|
43
|
+
// Only access editorAPI when the experiment is enabled to avoid performance impact
|
|
44
|
+
const useStandardNodeWidth = editorExperiment('platform_editor_controls', 'variant1') && ((_editorAPI$blockMenu$ = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$blockMenu = editorAPI.blockMenu) === null || _editorAPI$blockMenu === void 0 ? void 0 : (_editorAPI$blockMenu$2 = _editorAPI$blockMenu.sharedState) === null || _editorAPI$blockMenu$2 === void 0 ? void 0 : (_editorAPI$blockMenu$3 = _editorAPI$blockMenu$2.currentState()) === null || _editorAPI$blockMenu$3 === void 0 ? void 0 : _editorAPI$blockMenu$3.useStandardNodeWidth) !== null && _editorAPI$blockMenu$ !== void 0 ? _editorAPI$blockMenu$ : false);
|
|
45
|
+
const {
|
|
46
|
+
editorViewMode,
|
|
47
|
+
primaryToolbarComponentsState,
|
|
48
|
+
maxContentSizeReached
|
|
49
|
+
} = useSharedPluginStateWithSelector(editorAPI, ['maxContentSize', 'primaryToolbar', 'editorViewMode'], states => {
|
|
50
|
+
var _states$maxContentSiz, _states$primaryToolba, _states$editorViewMod;
|
|
51
|
+
return {
|
|
52
|
+
maxContentSizeReached: !!((_states$maxContentSiz = states.maxContentSizeState) !== null && _states$maxContentSiz !== void 0 && _states$maxContentSiz.maxContentSizeReached),
|
|
53
|
+
primaryToolbarComponentsState: (_states$primaryToolba = states.primaryToolbarState) === null || _states$primaryToolba === void 0 ? void 0 : _states$primaryToolba.components,
|
|
54
|
+
editorViewMode: (_states$editorViewMod = states.editorViewModeState) === null || _states$editorViewMod === void 0 ? void 0 : _states$editorViewMod.mode
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
const primaryToolbarState = getPrimaryToolbarComponents(editorAPI, primaryToolbarComponentsState);
|
|
58
|
+
const {
|
|
59
|
+
mediaState
|
|
60
|
+
} = useSharedPluginState(editorAPI, ['media']);
|
|
61
|
+
const intl = useIntl();
|
|
62
|
+
const {
|
|
63
|
+
editorDOMElement,
|
|
64
|
+
editorView,
|
|
65
|
+
editorActions,
|
|
66
|
+
eventDispatcher,
|
|
67
|
+
providerFactory,
|
|
68
|
+
contentComponents,
|
|
69
|
+
customContentComponents,
|
|
70
|
+
customPrimaryToolbarComponents,
|
|
71
|
+
primaryToolbarComponents: primaryToolbarComponentsProp,
|
|
72
|
+
customSecondaryToolbarComponents,
|
|
73
|
+
popupsMountPoint,
|
|
74
|
+
popupsBoundariesElement,
|
|
75
|
+
popupsScrollableElement,
|
|
76
|
+
maxHeight,
|
|
77
|
+
minHeight = 150,
|
|
78
|
+
onSave,
|
|
79
|
+
onCancel,
|
|
80
|
+
disabled,
|
|
81
|
+
dispatchAnalyticsEvent,
|
|
82
|
+
useStickyToolbar,
|
|
83
|
+
pluginHooks,
|
|
84
|
+
featureFlags,
|
|
85
|
+
innerRef,
|
|
86
|
+
isEditorModernisationEnabled
|
|
87
|
+
} = props;
|
|
88
|
+
const showSecondaryToolbar = !!onSave || !!onCancel || !!customSecondaryToolbarComponents;
|
|
89
|
+
const containerElement = React.useRef(null);
|
|
90
|
+
|
|
91
|
+
// Wrapper container for toolbar and content area
|
|
92
|
+
const wrapperElementRef = useMemo(() => innerRef || /*#__PURE__*/React.createRef(), [innerRef]);
|
|
93
|
+
const [saveButtonDisabled, setSaveButtonDisabled] = useState(false);
|
|
94
|
+
useEffect(() => {
|
|
95
|
+
if (mediaState) {
|
|
96
|
+
mediaState.subscribeToUploadInProgressState(setSaveButtonDisabled);
|
|
97
|
+
}
|
|
98
|
+
return () => mediaState === null || mediaState === void 0 ? void 0 : mediaState.unsubscribeFromUploadInProgressState(setSaveButtonDisabled);
|
|
99
|
+
}, [mediaState]);
|
|
100
|
+
const handleSave = useCallback(() => {
|
|
101
|
+
if (editorView && onSave) {
|
|
102
|
+
onSave(editorView);
|
|
103
|
+
}
|
|
104
|
+
}, [editorView, onSave]);
|
|
105
|
+
const handleCancel = useCallback(() => {
|
|
106
|
+
if (editorView && onCancel) {
|
|
107
|
+
onCancel(editorView);
|
|
108
|
+
}
|
|
109
|
+
}, [editorView, onCancel]);
|
|
110
|
+
const isShortcutToFocusToolbar = useCallback(event => {
|
|
111
|
+
//Alt + F9 to reach first element in this main toolbar
|
|
112
|
+
return event.altKey && (event.key === 'F9' || event.keyCode === 120);
|
|
113
|
+
}, []);
|
|
114
|
+
|
|
115
|
+
// When primary toolbar components is undefined, do not show two line editor toolbar
|
|
116
|
+
const isTwoLineToolbarEnabled = !!customPrimaryToolbarComponents;
|
|
117
|
+
const handleEscape = useCallback(event => {
|
|
118
|
+
if (!(editorView !== null && editorView !== void 0 && editorView.hasFocus())) {
|
|
119
|
+
editorView === null || editorView === void 0 ? void 0 : editorView.focus();
|
|
120
|
+
}
|
|
121
|
+
event.preventDefault();
|
|
122
|
+
event.stopPropagation();
|
|
123
|
+
}, [editorView]);
|
|
124
|
+
let primaryToolbarComponents = primaryToolbarComponentsProp;
|
|
125
|
+
if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
|
|
126
|
+
primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
|
|
127
|
+
}
|
|
128
|
+
const isToolbarAIFCEnabled = Boolean(editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.toolbar);
|
|
129
|
+
const wrapperStyle = useMemo(() => ({
|
|
130
|
+
minHeight: `${minHeight}px`,
|
|
131
|
+
...(maxHeight ? {
|
|
132
|
+
'--comment-editor-max-height': `${maxHeight}px`
|
|
133
|
+
} : {})
|
|
134
|
+
}), [minHeight, maxHeight]);
|
|
135
|
+
const customToolbarSlot = /*#__PURE__*/React.createElement("div", {
|
|
136
|
+
className: ax([commentEditorCompiledStyles.mainToolbarCustomComponentsSlotNew, isTwoLineToolbarEnabled && commentEditorCompiledStyles.mainToolbarCustomComponentsSlotTwoLineToolbar, isToolbarAIFCEnabled && commentEditorCompiledStyles.mainToolbarCustomComponentsSlotPaddingOverride])
|
|
137
|
+
}, customPrimaryToolbarComponents);
|
|
138
|
+
return /*#__PURE__*/React.createElement(WithFlash, {
|
|
139
|
+
animate: maxContentSizeReached
|
|
140
|
+
}, /*#__PURE__*/React.createElement(WidthProvider, null, /*#__PURE__*/React.createElement("div", {
|
|
141
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- dynamic minHeight/maxHeight from props
|
|
142
|
+
style: wrapperStyle
|
|
143
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
144
|
+
,
|
|
145
|
+
className: ax([commentEditorCompiledStyles.commentEditor, isEditorModernisationEnabled && commentEditorCompiledStyles.modernisedEditor, "akEditor"]),
|
|
146
|
+
ref: wrapperElementRef
|
|
147
|
+
}, /*#__PURE__*/React.createElement(MainToolbar, {
|
|
148
|
+
isEditorModernisationEnabled: isEditorModernisationEnabled,
|
|
149
|
+
useStickyToolbar: useStickyToolbar,
|
|
150
|
+
twoLineEditorToolbar: isTwoLineToolbarEnabled,
|
|
151
|
+
isNewToolbarEnabled: isToolbarAIFCEnabled
|
|
152
|
+
}, isToolbarAIFCEnabled ? /*#__PURE__*/React.createElement(ToolbarArrowKeyNavigationProvider, {
|
|
153
|
+
editorView: editorView,
|
|
154
|
+
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
155
|
+
isShortcutToFocusToolbar: isShortcutToFocusToolbar,
|
|
156
|
+
handleEscape: handleEscape,
|
|
157
|
+
editorAppearance: appearance,
|
|
158
|
+
useStickyToolbar: useStickyToolbar,
|
|
159
|
+
intl: intl
|
|
160
|
+
}, /*#__PURE__*/React.createElement(CommentToolbar, {
|
|
161
|
+
editorAPI: editorAPI,
|
|
162
|
+
editorView: editorView,
|
|
163
|
+
editorAppearance: appearance,
|
|
164
|
+
disabled: !!disabled,
|
|
165
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
166
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
167
|
+
popupsMountPoint: popupsMountPoint
|
|
168
|
+
}), customPrimaryToolbarComponents ? customToolbarSlot : null) : /*#__PURE__*/React.createElement(ToolbarArrowKeyNavigationProvider, {
|
|
169
|
+
editorView: editorView,
|
|
170
|
+
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
171
|
+
isShortcutToFocusToolbar: isShortcutToFocusToolbar,
|
|
172
|
+
handleEscape: handleEscape,
|
|
173
|
+
editorAppearance: appearance,
|
|
174
|
+
useStickyToolbar: useStickyToolbar,
|
|
175
|
+
intl: intl
|
|
176
|
+
}, /*#__PURE__*/React.createElement(Toolbar
|
|
177
|
+
// Ignored via go/ees005
|
|
178
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
179
|
+
, {
|
|
180
|
+
editorView: editorView,
|
|
181
|
+
editorActions: editorActions
|
|
182
|
+
// Ignored via go/ees005
|
|
183
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
184
|
+
,
|
|
185
|
+
eventDispatcher: eventDispatcher
|
|
186
|
+
// Ignored via go/ees005
|
|
187
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
188
|
+
,
|
|
189
|
+
providerFactory: providerFactory,
|
|
190
|
+
appearance: appearance,
|
|
191
|
+
items: primaryToolbarComponents,
|
|
192
|
+
popupsMountPoint: popupsMountPoint,
|
|
193
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
194
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
195
|
+
disabled: !!disabled,
|
|
196
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
197
|
+
containerElement: containerElement.current,
|
|
198
|
+
twoLineEditorToolbar: isTwoLineToolbarEnabled
|
|
199
|
+
}), customToolbarSlot)), /*#__PURE__*/React.createElement(ClickAreaBlock, {
|
|
200
|
+
editorView: editorView,
|
|
201
|
+
editorDisabled: disabled
|
|
202
|
+
}, /*#__PURE__*/React.createElement(WidthConsumer, null, ({
|
|
203
|
+
width
|
|
204
|
+
}) => {
|
|
205
|
+
return /*#__PURE__*/React.createElement(EditorContentContainer, {
|
|
206
|
+
ref: containerElement,
|
|
207
|
+
isScrollable: maxHeight ? true : undefined
|
|
208
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
209
|
+
,
|
|
210
|
+
className: ax([maxHeight && commentEditorCompiledStyles.contentAreaMaxHeight, classnames('ak-editor-content-area', {
|
|
211
|
+
'less-margin': width < akEditorMobileBreakoutPoint
|
|
212
|
+
})]),
|
|
213
|
+
featureFlags: featureFlags,
|
|
214
|
+
viewMode: editorViewMode,
|
|
215
|
+
appearance: appearance,
|
|
216
|
+
useStandardNodeWidth: useStandardNodeWidth
|
|
217
|
+
}, customContentComponents && 'before' in customContentComponents ? contentComponentClickWrapper(customContentComponents.before) : contentComponentClickWrapper(customContentComponents), /*#__PURE__*/React.createElement(PluginSlot, {
|
|
218
|
+
editorView: editorView,
|
|
219
|
+
editorActions: editorActions,
|
|
220
|
+
eventDispatcher: eventDispatcher,
|
|
221
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
222
|
+
providerFactory: providerFactory,
|
|
223
|
+
appearance: appearance,
|
|
224
|
+
items: contentComponents,
|
|
225
|
+
popupsMountPoint: popupsMountPoint,
|
|
226
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
227
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
228
|
+
containerElement: containerElement.current,
|
|
229
|
+
disabled: !!disabled,
|
|
230
|
+
wrapperElement: wrapperElementRef.current,
|
|
231
|
+
pluginHooks: pluginHooks
|
|
232
|
+
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? contentComponentClickWrapper(customContentComponents.after) : null);
|
|
233
|
+
}))), showSecondaryToolbar && /*#__PURE__*/React.createElement("div", {
|
|
234
|
+
"data-testid": "ak-editor-secondary-toolbar",
|
|
235
|
+
className: ax([commentEditorCompiledStyles.secondaryToolbar])
|
|
236
|
+
}, /*#__PURE__*/React.createElement(ButtonGroup, null, !!onSave && /*#__PURE__*/React.createElement(Button, {
|
|
237
|
+
appearance: "primary",
|
|
238
|
+
onClick: handleSave,
|
|
239
|
+
testId: "comment-save-button",
|
|
240
|
+
isDisabled: disabled || saveButtonDisabled,
|
|
241
|
+
interactionName: "editor-comment-save-button"
|
|
242
|
+
}, intl.formatMessage(messages.saveButton)), !!onCancel && /*#__PURE__*/React.createElement(Button, {
|
|
243
|
+
appearance: "subtle",
|
|
244
|
+
onClick: handleCancel,
|
|
245
|
+
testId: "comment-cancel-button",
|
|
246
|
+
isDisabled: disabled,
|
|
247
|
+
interactionName: "editor-comment-cancel-button"
|
|
248
|
+
}, intl.formatMessage(messages.cancelButton))), /*#__PURE__*/React.createElement("span", {
|
|
249
|
+
style: {
|
|
250
|
+
flexGrow: 1
|
|
251
|
+
}
|
|
252
|
+
}), customSecondaryToolbarComponents)));
|
|
253
|
+
};
|
|
254
|
+
CommentEditorWithIntl.displayName = 'CommentEditorAppearance';
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
/* FixedToolbar-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
-
/**
|
|
3
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
|
-
* Used via `componentWithCondition` in `Toolbar.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
2
|
import "./FixedToolbar-compiled.compiled.css";
|
|
9
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
10
4
|
import React from 'react';
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
/* StickyToolbar-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
-
/**
|
|
3
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
|
-
* Used via `componentWithCondition` in `Toolbar.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
2
|
import "./StickyToolbar-compiled.compiled.css";
|
|
9
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
10
4
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
3
|
import { FixedToolbarCompiled } from './FixedToolbar-compiled';
|
|
6
|
-
import { FixedToolbarEmotion } from './FixedToolbar-emotion';
|
|
7
4
|
import { StickyToolbarCompiled } from './StickyToolbar-compiled';
|
|
8
|
-
import { StickyToolbarEmotion } from './StickyToolbar-emotion';
|
|
9
|
-
const StickyToolbarMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), StickyToolbarCompiled, StickyToolbarEmotion);
|
|
10
|
-
const FixedToolbarMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), FixedToolbarCompiled, FixedToolbarEmotion);
|
|
11
5
|
|
|
12
6
|
/**
|
|
13
7
|
* ED-15802: Scenarios when a sticky bar is used:
|
|
@@ -44,7 +38,7 @@ export const MainToolbar = ({
|
|
|
44
38
|
isNewToolbarEnabled
|
|
45
39
|
}) => {
|
|
46
40
|
if (useStickyToolbar) {
|
|
47
|
-
return /*#__PURE__*/React.createElement(
|
|
41
|
+
return /*#__PURE__*/React.createElement(StickyToolbarCompiled
|
|
48
42
|
// Ignored via go/ees005
|
|
49
43
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
50
44
|
, _extends({}, getStickyParameters(useStickyToolbar), {
|
|
@@ -53,7 +47,7 @@ export const MainToolbar = ({
|
|
|
53
47
|
isNewToolbarEnabled: isNewToolbarEnabled
|
|
54
48
|
}), children);
|
|
55
49
|
}
|
|
56
|
-
return /*#__PURE__*/React.createElement(
|
|
50
|
+
return /*#__PURE__*/React.createElement(FixedToolbarCompiled, {
|
|
57
51
|
isEditorModernisationEnabled: isEditorModernisationEnabled,
|
|
58
52
|
twoLineEditorToolbar: twoLineEditorToolbar,
|
|
59
53
|
isNewToolbarEnabled: isNewToolbarEnabled
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
/* BeforeWrapper.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
+
import "./BeforeWrapper.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
const styles = {
|
|
6
|
+
beforePrimaryToolbarPluginWrapper: "_1e0c1txw _16jlkb7n _1bahesu3 _4cvr1h6o"
|
|
7
|
+
};
|
|
5
8
|
// Duplicate of the wrapper from `editor-plugins/before-primary-toolbar` used
|
|
6
9
|
// only in `FullPageToolbar` to decouple the plugin from the main toolbar
|
|
7
|
-
export const BeforePrimaryToolbarWrapper =
|
|
10
|
+
export const BeforePrimaryToolbarWrapper = props => /*#__PURE__*/React.createElement("div", {
|
|
11
|
+
"data-testid": 'before-primary-toolbar-components-plugin',
|
|
12
|
+
className: ax([styles.beforePrimaryToolbarPluginWrapper])
|
|
13
|
+
}, props.beforePrimaryToolbarComponents);
|
|
@@ -1,10 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
/* CustomToolbarWrapper.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
+
import "./CustomToolbarWrapper.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
const firstChildStyles = {
|
|
6
|
+
base: "_1e0c1txw _16jlkb7n",
|
|
7
|
+
twoLine: "_u89dkb7n _9gudkb7n _1hoh1osq _8o3817qo _lhl4esu3 _1s2p1ns9"
|
|
8
|
+
};
|
|
9
|
+
const secondChildStyles = {
|
|
10
|
+
base: "_1ul91ns9",
|
|
11
|
+
twoLine: "_u89dkb7n _9gudkb7n _1hoh1osq _1tjb1wug _1rg31wug _1jzq1wug _cn5x1wug _87t41txw _8o3817qo _1s2pidpf"
|
|
12
|
+
};
|
|
13
|
+
|
|
5
14
|
// ---------------- First child wrapper ----------------
|
|
6
|
-
export const MainToolbarForFirstChildWrapper =
|
|
15
|
+
export const MainToolbarForFirstChildWrapper = ({
|
|
16
|
+
twoLineEditorToolbar,
|
|
17
|
+
children,
|
|
18
|
+
role,
|
|
19
|
+
'aria-label': ariaLabel,
|
|
20
|
+
'data-testid': testId
|
|
21
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
role: role,
|
|
23
|
+
"aria-label": ariaLabel,
|
|
24
|
+
"data-testid": testId,
|
|
25
|
+
className: ax([firstChildStyles.base, twoLineEditorToolbar && firstChildStyles.twoLine])
|
|
26
|
+
}, children);
|
|
7
27
|
|
|
8
28
|
// ---------------- Second child wrapper ----------------
|
|
9
29
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
10
|
-
export const MainToolbarForSecondChildWrapper =
|
|
30
|
+
export const MainToolbarForSecondChildWrapper = ({
|
|
31
|
+
twoLineEditorToolbar,
|
|
32
|
+
children,
|
|
33
|
+
role,
|
|
34
|
+
'aria-label': ariaLabel,
|
|
35
|
+
'data-testid': testId
|
|
36
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
role: role,
|
|
38
|
+
"aria-label": ariaLabel,
|
|
39
|
+
"data-testid": testId,
|
|
40
|
+
className: ax([secondChildStyles.base, twoLineEditorToolbar && secondChildStyles.twoLine])
|
|
41
|
+
}, children);
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
/* FullPage-compiled.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
-
/**
|
|
3
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
|
-
* Used via `componentWithCondition` in `FullPage.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
2
|
import "./FullPage-compiled.compiled.css";
|
|
9
3
|
import * as React from 'react';
|
|
10
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -5,17 +5,14 @@ import { SSRRenderMeasure } from '@atlaskit/editor-common/performance/ssr-measur
|
|
|
5
5
|
import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
|
|
6
6
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
7
7
|
import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
|
|
8
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
9
8
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
10
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
10
|
import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
|
|
12
11
|
import { FullPageEditorWrapperCompiled } from './FullPage-compiled';
|
|
13
|
-
import { FullPageEditorWrapperEmotion } from './FullPage-emotion';
|
|
14
12
|
import { FullPageContentArea } from './FullPageContentArea';
|
|
15
13
|
import { FullPageToolbar } from './FullPageToolbar';
|
|
16
14
|
import { FullPageToolbarNext } from './FullPageToolbarNext';
|
|
17
15
|
const SSR_TRACE_SEGMENT_NAME = 'reactEditorView/fullPageAppearance';
|
|
18
|
-
const FullPageEditorWrapperMigration = componentWithCondition(() => expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true), FullPageEditorWrapperCompiled, FullPageEditorWrapperEmotion);
|
|
19
16
|
const useShowKeyline = contentAreaRef => {
|
|
20
17
|
const [showKeyline, setShowKeyline] = useState(false);
|
|
21
18
|
useEffect(() => {
|
|
@@ -112,7 +109,7 @@ export const FullPageEditor = props => {
|
|
|
112
109
|
segmentName: SSR_TRACE_SEGMENT_NAME,
|
|
113
110
|
startTimestampRef: firstRenderStartTimestampRef,
|
|
114
111
|
onSSRMeasure: props.onSSRMeasure
|
|
115
|
-
}, /*#__PURE__*/React.createElement(ContextPanelWidthProvider, null, /*#__PURE__*/React.createElement(
|
|
112
|
+
}, /*#__PURE__*/React.createElement(ContextPanelWidthProvider, null, /*#__PURE__*/React.createElement(FullPageEditorWrapperCompiled
|
|
116
113
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
117
114
|
, {
|
|
118
115
|
className: "akEditor",
|