@atlaskit/editor-core 229.1.0 → 229.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/dist/cjs/create-editor/createPMPlugins.js +2 -1
- package/dist/cjs/presets/universal.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +2 -2
- package/dist/cjs/ui/EditorContentContainer/styles/mediaStyles.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/cjs/ui/quick-insert/ExtensionQuickInsertIcon.js +3 -3
- package/dist/cjs/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +180 -43
- package/dist/cjs/utils/extensions.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/actions/index.js +2 -1
- package/dist/es2019/create-editor/createPMPlugins.js +2 -1
- package/dist/es2019/entry-points/CollapsedEditor.js +1 -0
- package/dist/es2019/entry-points/ContextPanel.js +1 -0
- package/dist/es2019/entry-points/EditorContentContainer.js +1 -0
- package/dist/es2019/entry-points/EditorContext.js +1 -0
- package/dist/es2019/entry-points/ReactEditorView.js +1 -0
- package/dist/es2019/entry-points/ToolbarHelp.js +1 -0
- package/dist/es2019/entry-points/ToolbarPortal.js +1 -0
- package/dist/es2019/entry-points/WithEditorActions.js +1 -0
- package/dist/es2019/entry-points/WithHelpTrigger.js +1 -0
- package/dist/es2019/entry-points/actions.js +1 -0
- package/dist/es2019/entry-points/appearance-editor-chromeless.js +1 -0
- package/dist/es2019/entry-points/appearance-editor-comment.js +1 -0
- package/dist/es2019/entry-points/appearance-editor-full-page.js +1 -0
- package/dist/es2019/entry-points/appearance-editor-full-width.js +1 -0
- package/dist/es2019/entry-points/create-plugins-list.js +1 -0
- package/dist/es2019/entry-points/exclude-from-hydration.js +1 -0
- package/dist/es2019/entry-points/feature-flags-from-props.js +1 -0
- package/dist/es2019/entry-points/getNodesCount.js +1 -0
- package/dist/es2019/entry-points/i18n-languages.js +1 -0
- package/dist/es2019/entry-points/measure-enum.js +1 -0
- package/dist/es2019/entry-points/preset-universal-universal.js +1 -0
- package/dist/es2019/entry-points/preset-universal-useUniversalPreset.js +1 -0
- package/dist/es2019/entry-points/test-utils.js +1 -0
- package/dist/es2019/entry-points/use-preset-context.js +1 -0
- package/dist/es2019/entry-points/version-wrapper.js +1 -0
- package/dist/es2019/presets/universal.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +1 -0
- package/dist/es2019/ui/ChromeCollapsed/styles.js +1 -0
- package/dist/es2019/ui/ContextPanel/index.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -2
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +3 -2
- package/dist/es2019/ui/EditorContentContainer/styles/agentShimmerStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/aiPanel.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/annotationStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/backgroundColorStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/baseStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/blockMarksStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/blockSpacingStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/blockTypeStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/codeBlockStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/codeMarkStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/commentEditorStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/containerTypeStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/contributorTagStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/cursorStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/dateStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/embedCardStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/emoji.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/extensionBreakoutStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/extensionStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/floatingToolbarStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/fontSizeStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/fullPageEditorStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/gapCursorStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/gridStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/indentationStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/link.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/list.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/mediaStyles.js +2 -1
- package/dist/es2019/ui/EditorContentContainer/styles/mentions.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/overflowShadowStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/panelStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/paragraphStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/placeholderStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/rule.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/ruleWithAttrs.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/scrollbarStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/selectionStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/selectionToolbarStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/shadowStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/smartCardStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/statusStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/syncBlockStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/telepointerStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/textColorStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/textHighlightStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/unsupportedStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/whitespaceStyles.js +1 -0
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/es2019/ui/quick-insert/ExtensionQuickInsertIcon.js +3 -3
- package/dist/es2019/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +181 -42
- package/dist/es2019/utils/extensions.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/actions/index.js +2 -1
- package/dist/esm/create-editor/createPMPlugins.js +2 -1
- package/dist/esm/entry-points/CollapsedEditor.js +1 -0
- package/dist/esm/entry-points/ContextPanel.js +1 -0
- package/dist/esm/entry-points/EditorContentContainer.js +1 -0
- package/dist/esm/entry-points/EditorContext.js +1 -0
- package/dist/esm/entry-points/ReactEditorView.js +1 -0
- package/dist/esm/entry-points/ToolbarHelp.js +1 -0
- package/dist/esm/entry-points/ToolbarPortal.js +1 -0
- package/dist/esm/entry-points/WithEditorActions.js +1 -0
- package/dist/esm/entry-points/WithHelpTrigger.js +1 -0
- package/dist/esm/entry-points/actions.js +1 -0
- package/dist/esm/entry-points/appearance-editor-chromeless.js +1 -0
- package/dist/esm/entry-points/appearance-editor-comment.js +1 -0
- package/dist/esm/entry-points/appearance-editor-full-page.js +1 -0
- package/dist/esm/entry-points/appearance-editor-full-width.js +1 -0
- package/dist/esm/entry-points/create-plugins-list.js +1 -0
- package/dist/esm/entry-points/exclude-from-hydration.js +1 -0
- package/dist/esm/entry-points/feature-flags-from-props.js +1 -0
- package/dist/esm/entry-points/getNodesCount.js +1 -0
- package/dist/esm/entry-points/i18n-languages.js +1 -0
- package/dist/esm/entry-points/measure-enum.js +1 -0
- package/dist/esm/entry-points/preset-universal-universal.js +1 -0
- package/dist/esm/entry-points/preset-universal-useUniversalPreset.js +1 -0
- package/dist/esm/entry-points/test-utils.js +1 -0
- package/dist/esm/entry-points/use-preset-context.js +1 -0
- package/dist/esm/entry-points/version-wrapper.js +1 -0
- package/dist/esm/presets/universal.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +1 -0
- package/dist/esm/ui/ChromeCollapsed/styles.js +1 -0
- package/dist/esm/ui/ContextPanel/index.js +1 -0
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -2
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +3 -2
- package/dist/esm/ui/EditorContentContainer/styles/agentShimmerStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/aiPanel.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/annotationStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/backgroundColorStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/baseStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/blockMarksStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/blockSpacingStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/blockTypeStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/codeBlockStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/codeMarkStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/commentEditorStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/containerTypeStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/contributorTagStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/cursorStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/dateStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/embedCardStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/emoji.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/extensionBreakoutStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/extensionStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/floatingToolbarStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/fontSizeStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/fullPageEditorStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/gapCursorStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/gridStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/indentationStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/link.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/list.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/mediaStyles.js +2 -1
- package/dist/esm/ui/EditorContentContainer/styles/mentions.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/overflowShadowStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/panelStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/paragraphStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/placeholderStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/rule.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/ruleWithAttrs.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/scrollbarStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/selectionStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/selectionToolbarStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/shadowStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/smartCardStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/statusStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/syncBlockStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/telepointerStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/textColorStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/textHighlightStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/unsupportedStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/whitespaceStyles.js +1 -0
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/esm/ui/quick-insert/ExtensionQuickInsertIcon.js +3 -3
- package/dist/esm/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +180 -43
- package/dist/esm/utils/extensions.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/actions/index.d.ts +1 -1
- package/docs/4-annotations.tsx +1 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 229.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`fc5f24d3c4d3f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fc5f24d3c4d3f) -
|
|
8
|
+
[ux] Add hover previews for Other slash-menu items behind `platform_editor_slash_command`.
|
|
9
|
+
- [`fc26bfc51dd5c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fc26bfc51dd5c) -
|
|
10
|
+
Add sparse block-control surface anchors, intersection-driven candidates, and explicit visibility
|
|
11
|
+
invalidation for registry-backed block controls. Expose registration change subscriptions from the
|
|
12
|
+
UI control registry model, and refresh cached visibility from suggestion and collapse transaction
|
|
13
|
+
metadata. Under `platform_editor_block_control_migration`, use native node-anchor identity across
|
|
14
|
+
Editor and Block Controls, and route expand keyboard focus through the shared Block Controls
|
|
15
|
+
command. Preserve Show Diff visibility checks in both migration cohorts so block controls stay
|
|
16
|
+
hidden while a diff is displayed. Keep the block menu closed when a migrated layout-column handle
|
|
17
|
+
opens the layout menu, and close the layout menu when the selection moves away from its selected
|
|
18
|
+
columns.
|
|
19
|
+
- [`64a76a7487e96`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/64a76a7487e96) -
|
|
20
|
+
Add block template hover previews keyed by stable snippet IDs behind
|
|
21
|
+
platform_editor_slash_command, including the legacy Confluence provider path and the direct
|
|
22
|
+
extension renderer used by the slash menu. Unknown snippet IDs remain without a preview. Use the
|
|
23
|
+
supplied highest-quality light and dark preview assets for all 21 supported block templates.
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
26
|
+
## 229.1.1
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies
|
|
31
|
+
|
|
3
32
|
## 229.1.0
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.createPMPlugins = createPMPlugins;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _legacyRankPlugins = require("@atlaskit/editor-common/legacy-rank-plugins");
|
|
10
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
10
11
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
11
12
|
var _editorNativeAnchorSupportPlugin = require("./editorNativeAnchorSupportPlugin");
|
|
12
13
|
var _editorStateNotificationPlugin = require("./editorStateNotificationPlugin");
|
|
@@ -29,7 +30,7 @@ function createPMPlugins(config) {
|
|
|
29
30
|
}).filter(function (plugin) {
|
|
30
31
|
return typeof plugin !== 'undefined';
|
|
31
32
|
});
|
|
32
|
-
if ((0, _expValEquals.expValEquals)('platform_editor_native_anchor_with_dnd', 'isEnabled', true)) {
|
|
33
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_native_anchor_with_dnd', 'isEnabled', true) || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_block_control_migration')) {
|
|
33
34
|
pmPlugins.push((0, _editorNativeAnchorSupportPlugin.createEditorNativeAnchorSupportPlugin)(config.schema));
|
|
34
35
|
}
|
|
35
36
|
if (config.onEditorStateUpdated !== undefined) {
|
|
@@ -57,8 +57,8 @@ var _tasksAndDecisions = require("@atlaskit/editor-plugins/tasks-and-decisions")
|
|
|
57
57
|
var _textColor = require("@atlaskit/editor-plugins/text-color");
|
|
58
58
|
var _toolbarListsIndentation = require("@atlaskit/editor-plugins/toolbar-lists-indentation");
|
|
59
59
|
var _ufo = require("@atlaskit/editor-plugins/ufo");
|
|
60
|
-
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
61
60
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
61
|
+
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
62
62
|
var _isFullPage = require("../utils/is-full-page");
|
|
63
63
|
var _versionWrapper = require("../version-wrapper");
|
|
64
64
|
var _default = require("./default");
|
|
@@ -16,8 +16,8 @@ var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-
|
|
|
16
16
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
17
17
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
18
18
|
var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
|
|
19
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
20
19
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
20
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
21
|
var _getPrimaryToolbarComponents = require("../../Toolbar/getPrimaryToolbarComponents");
|
|
22
22
|
var _FullPageCompiled = require("./FullPage-compiled");
|
|
23
23
|
var _FullPageEmotion = require("./FullPage-emotion");
|
|
@@ -15,8 +15,8 @@ var _reactIntl = require("react-intl");
|
|
|
15
15
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
16
16
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
17
17
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
18
|
-
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
19
18
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
19
|
+
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
20
20
|
var _ClickAreaBlock = require("../../Addon/ClickAreaBlock");
|
|
21
21
|
var _contentComponentWrapper = require("../../Addon/ClickAreaBlock/contentComponentWrapper");
|
|
22
22
|
var _ContextPanel = require("../../ContextPanel");
|
|
@@ -16,9 +16,9 @@ var _taskList = require("@atlaskit/adf-schema/task-list");
|
|
|
16
16
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
17
17
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
18
18
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
19
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
19
20
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
20
21
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
21
|
-
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
22
22
|
var _ClickAreaBlock = _interopRequireDefault(require("../../Addon/ClickAreaBlock"));
|
|
23
23
|
var _contentComponentWrapper = require("../../Addon/ClickAreaBlock/contentComponentWrapper");
|
|
24
24
|
var _ContextPanel = require("../../ContextPanel");
|
|
@@ -17,9 +17,9 @@ var _overflowShadowForCompiled = require("@atlaskit/editor-shared-styles/overflo
|
|
|
17
17
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
18
18
|
var _unsafeExpValNoExposure = require("@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure");
|
|
19
19
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
20
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
20
21
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
22
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
22
|
-
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
23
23
|
var _useThemeObserver2 = require("@atlaskit/tokens/use-theme-observer");
|
|
24
24
|
var _getBaseFontSize = require("../../composable-editor/utils/getBaseFontSize");
|
|
25
25
|
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; }
|
|
@@ -14,9 +14,9 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
|
14
14
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
15
15
|
var _unsafeExpValNoExposure = require("@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure");
|
|
16
16
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
17
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
17
18
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
18
19
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
19
|
-
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
20
20
|
var _useThemeObserver2 = require("@atlaskit/tokens/use-theme-observer");
|
|
21
21
|
var _getBaseFontSize = require("../../composable-editor/utils/getBaseFontSize");
|
|
22
22
|
var _agentShimmerStyles = require("./styles/agentShimmerStyles");
|
|
@@ -38,8 +38,8 @@ var _editorUGCTokenStyles = require("./styles/editorUGCTokenStyles");
|
|
|
38
38
|
var _embedCardStyles = require("./styles/embedCardStyles");
|
|
39
39
|
var _emoji = require("./styles/emoji");
|
|
40
40
|
var _expandStyles = require("./styles/expandStyles");
|
|
41
|
-
var _extensionStyles = require("./styles/extensionStyles");
|
|
42
41
|
var _extensionBreakoutStyles = require("./styles/extensionBreakoutStyles");
|
|
42
|
+
var _extensionStyles = require("./styles/extensionStyles");
|
|
43
43
|
var _findReplaceStyles = require("./styles/findReplaceStyles");
|
|
44
44
|
var _firstBlockNodeStyles = require("./styles/firstBlockNodeStyles");
|
|
45
45
|
var _floatingToolbarStyles = require("./styles/floatingToolbarStyles");
|
|
@@ -12,8 +12,8 @@ var _mediaSingle = require("@atlaskit/editor-common/media-single");
|
|
|
12
12
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
13
13
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
14
14
|
var _classnames = require("@atlaskit/media-card/card/classnames");
|
|
15
|
-
var _inlinePlayerWrapperStyles = require("@atlaskit/media-card/inlinePlayerWrapperStyles");
|
|
16
15
|
var _cardConstants = require("@atlaskit/media-card/cardConstants");
|
|
16
|
+
var _inlinePlayerWrapperStyles = require("@atlaskit/media-card/inlinePlayerWrapperStyles");
|
|
17
17
|
var _selectionStyles = require("./selectionStyles");
|
|
18
18
|
var _ProseMirror, _css;
|
|
19
19
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled,
|
|
@@ -11,8 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
12
12
|
var _types = require("@atlaskit/editor-common/types");
|
|
13
13
|
var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
|
|
14
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
14
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
15
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
16
16
|
var _widthObserver = require("@atlaskit/width-detector/width-observer");
|
|
17
17
|
var _isFullPage = require("../../utils/is-full-page");
|
|
18
18
|
var _hooks = require("./hooks");
|
|
@@ -8,12 +8,12 @@ exports.ExtensionQuickInsertIcon = void 0;
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var _apps = _interopRequireDefault(require("@atlaskit/icon/core/apps"));
|
|
12
|
-
var _card = _interopRequireDefault(require("@atlaskit/icon/core/card"));
|
|
13
|
-
var _whiteboard = _interopRequireDefault(require("@atlaskit/icon/core/whiteboard"));
|
|
14
11
|
var _carousel = _interopRequireDefault(require("@atlaskit/icon-lab/core/carousel"));
|
|
15
12
|
var _tableOfContent = _interopRequireDefault(require("@atlaskit/icon-lab/core/table-of-content"));
|
|
16
13
|
var _template = _interopRequireDefault(require("@atlaskit/icon-lab/core/template"));
|
|
14
|
+
var _apps = _interopRequireDefault(require("@atlaskit/icon/core/apps"));
|
|
15
|
+
var _card = _interopRequireDefault(require("@atlaskit/icon/core/card"));
|
|
16
|
+
var _whiteboard = _interopRequireDefault(require("@atlaskit/icon/core/whiteboard"));
|
|
17
17
|
var lazyExtensionIconCache = new WeakMap();
|
|
18
18
|
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']);
|
|
19
19
|
var quickInsertItemIcons = {
|
|
@@ -6,11 +6,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.getExtensionQuickInsertPreviewImageUrls = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _snippetPreviewImageUrls = require("@atlaskit/editor-common/quick-insert/snippet-preview-image-urls");
|
|
10
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
9
11
|
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; }
|
|
10
12
|
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; }
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
var embedPreviewImageUrlsByKey = {
|
|
14
|
+
'third-party-quick-insert-embeds:third-party-embed-amplitude': {
|
|
15
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7v8shu6n3wd15644f3ys785628dkt632.png',
|
|
16
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/2r34o120k40e0us4w66oqpud63o4lef4.png'
|
|
17
|
+
},
|
|
18
|
+
'dropbox:item': {
|
|
19
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/83f1773ur08qm4t3bqaabpwb173313tg.png',
|
|
20
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/37v2dk5n1ltwc82j1w76dv1tyr8puwq0.png'
|
|
21
|
+
},
|
|
22
|
+
'third-party-quick-insert-embeds:third-party-embed-figma': {
|
|
23
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/svedc2lju60bgq3r43kfmi7213wj46as.png',
|
|
24
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/u80s30071b4c10vdjr5rw0uje8cu2pk7.png'
|
|
25
|
+
},
|
|
26
|
+
'third-party-quick-insert-embeds:third-party-embed-google-drive': {
|
|
27
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/y01wj4t58w86byx86l6k81a22axud131.png',
|
|
28
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/wi413m0837rjykg23r6y0256b7377185.png'
|
|
29
|
+
},
|
|
30
|
+
'iframe:iframe': {
|
|
31
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/77p6d5rb343gue8580bacbl0xf82u5jv.png',
|
|
32
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/72a0j8eddxg82rnp8j48bipi8sq8g0ke.png'
|
|
33
|
+
}
|
|
14
34
|
};
|
|
15
35
|
var dataAndChartsPreviewImageUrlsByKey = {
|
|
16
36
|
'quick-insert-assets-menu-item': {
|
|
@@ -118,7 +138,157 @@ var dataAndChartsPreviewImageUrlsByKey = {
|
|
|
118
138
|
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/o2kexap23ijq8jeqhpvi8lgc51dex3wj.png'
|
|
119
139
|
}
|
|
120
140
|
};
|
|
121
|
-
var
|
|
141
|
+
var otherPreviewImageUrlsByKey = {
|
|
142
|
+
'excerpt:excerpt': {
|
|
143
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/1h408wk0e4x6efhby84hbc583nx5b0b5.png',
|
|
144
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/0j5s4a60jjbrq3yoa7kfnkft28403127.png'
|
|
145
|
+
},
|
|
146
|
+
'excerpt-include:excerpt-include': {
|
|
147
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/dg718ggxcx60dj7ng86fpqmwbv7vauny.png',
|
|
148
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/y373d21g768gmvjao5db38kw4460m72r.png'
|
|
149
|
+
},
|
|
150
|
+
'include:include': {
|
|
151
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/s12155hkaoc81aa0eh58y54402s8t346.png',
|
|
152
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/61yskd00re82i80b8r6pfxp60pi4852s.png'
|
|
153
|
+
},
|
|
154
|
+
'jirachart:jirachart': {
|
|
155
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/30g82ea1p64616h40s110ysud47dnof6.png',
|
|
156
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/114de8qe6dy877s65xh1a2dil1r86x73.png'
|
|
157
|
+
},
|
|
158
|
+
'jira:jira': {
|
|
159
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/8ttib573524136b5lffq3a1go05x507d.png',
|
|
160
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/pdnn81xj6e8v56nye6rnft3rd4yhnc05.png'
|
|
161
|
+
},
|
|
162
|
+
'portfolioforjiraplan:portfolioforjiraplan': {
|
|
163
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/24g0yt8c54671463162f5q455qcki3id.png',
|
|
164
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/c2hy8b245yg1dt2776ol5sx57n045nv0.png'
|
|
165
|
+
},
|
|
166
|
+
'opsgenie-incident-timeline-eu-macro:opsgenie-incident-timeline-eu-macro': {
|
|
167
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/qo0u146811738ixd6l13nud48pv57510.png',
|
|
168
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/qnq1bn07a3k0v4m10hoi487p837obx53.png'
|
|
169
|
+
},
|
|
170
|
+
'sharelinks-urlmacro:sharelinks-urlmacro': {
|
|
171
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/0028h1741o411uw4qi8icbg138kus32e.png',
|
|
172
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/myhw531c3748qn4ro51vf450vk0qg481.png'
|
|
173
|
+
},
|
|
174
|
+
'toc-zone:toc-zone': {
|
|
175
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/1p16277ig16wc6kelloa542k33b18mm2.png',
|
|
176
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/s4q2ap8q4135r0r3i1tym1d5koxdonb1.png'
|
|
177
|
+
},
|
|
178
|
+
'viewpdf:viewpdf': {
|
|
179
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/jt685rp527nfo8jqp6o5o0r31l3rpfux.png',
|
|
180
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/30u3v86x652ah52ruhqj1ap0s0ve4ey2.png'
|
|
181
|
+
},
|
|
182
|
+
'viewxls:viewxls': {
|
|
183
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/b11p6ksb8r6j6g2604p67ab53f23u6f5.png',
|
|
184
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/r426m140lbp7gs2gxbe015e21kf23j8l.png'
|
|
185
|
+
},
|
|
186
|
+
'gadget:activity stream': {
|
|
187
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7v3a1rvva7gxr874o5qah5k61365hod5.png',
|
|
188
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/nh7404rduyw5tbne4143426evuk7hvg8.png'
|
|
189
|
+
},
|
|
190
|
+
'gadget:agile wallboard gadget': {
|
|
191
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/n611u81ca8fkyv5nk6cl6j1081e805tr.png',
|
|
192
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3o7vtt14rtpe3sna7mras6oih86nssb6.png'
|
|
193
|
+
},
|
|
194
|
+
'gadget:assigned to me': {
|
|
195
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/d72jy2r18q6v06s13k2f6x3fymrr4on7.png',
|
|
196
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/5c62343jh3411ido38440xx0007cx6ls.png'
|
|
197
|
+
},
|
|
198
|
+
'gadget:average age chart': {
|
|
199
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/i53kn1igq64m5dip4eg1030j15yd7xxe.png',
|
|
200
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/t136146lvs3x60456gnsghtv730uaftn.png'
|
|
201
|
+
},
|
|
202
|
+
'gadget:average number of times in status': {
|
|
203
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/u4v77u1lwcy5g08y047q33dbiv42dkit.png',
|
|
204
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/16v2eq2c1df0mrf2jo6xic526527nfh1.png'
|
|
205
|
+
},
|
|
206
|
+
'gadget:days remaining in sprint gadget': {
|
|
207
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/805320gvqd6cbr23yrv271oas2u061s5.png',
|
|
208
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/41j35y64652g06uru332kt2a0pk77j03.png'
|
|
209
|
+
},
|
|
210
|
+
'gadget:filter results': {
|
|
211
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/w0n60p750b2275k226gri2j6i366jt0e.png',
|
|
212
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/j706ug0u5nk40i1lhrt05j63grc36x0u.png'
|
|
213
|
+
},
|
|
214
|
+
'gadget:heat map': {
|
|
215
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/qoepx85h21t4u00cht35nc3ssl4i72j5.png',
|
|
216
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/w574xrh77oxbmb18f0ro1bd80x417426.png'
|
|
217
|
+
},
|
|
218
|
+
'gadget:issues in progress': {
|
|
219
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/666u7h3tp16ad4k8u24d4u1155n1v7hg.png',
|
|
220
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/go2d8b1qs7h07b17326lx8r8p28jm011.png'
|
|
221
|
+
},
|
|
222
|
+
'gadget:jira issues calendar': {
|
|
223
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/13o0sk45vlf25x1m3w14gsy146k25b14.png',
|
|
224
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/j23063ot2a014a2a51y6i0o1keo0kanr.png'
|
|
225
|
+
},
|
|
226
|
+
'gadget:jira road map': {
|
|
227
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/h6u3kb7116jr12w3f586stmc850827h3.png',
|
|
228
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/q23v3a23018y2856kew3fsork63bg6p2.png'
|
|
229
|
+
},
|
|
230
|
+
'gadget:labels gadget': {
|
|
231
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7u8gpvv82s3e2833204nm6m1k3301c46.png',
|
|
232
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/42hjlte7y364o8y4e5udkl11o22a2ac3.png'
|
|
233
|
+
},
|
|
234
|
+
'gadget:pie chart': {
|
|
235
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/v4b6d7to551136834oe1a0xx66n7mv5e.png',
|
|
236
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/pdq60d803b655il4x3m0co608guc56ub.png'
|
|
237
|
+
},
|
|
238
|
+
'gadget:quick links': {
|
|
239
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/onlh3rc6p0qj15rsysxa3ep5b183hk40.png',
|
|
240
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/k51qkw636t010l5h1vrs05c7i073y0xp.png'
|
|
241
|
+
},
|
|
242
|
+
'gadget:recently created chart': {
|
|
243
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/t5in18tcubtbr18yv1gr0ap26x7d6bh3.png',
|
|
244
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/ia4jrrsg4mw8tu0gtj88d2yr5w6s20fm.png'
|
|
245
|
+
},
|
|
246
|
+
'gadget:resolution time': {
|
|
247
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3dek0066jn31qfkk2l2hn011um087y72.png',
|
|
248
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/msw0hn3462vvai4l4jkp50xcm87741j6.png'
|
|
249
|
+
},
|
|
250
|
+
'gadget:sprint burndown gadget': {
|
|
251
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/2qqrp3vl4rv2p443566826jadj38rfrj.png',
|
|
252
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/qic3bcq5sqhd7r00qpj3i6240n3uw3fp.png'
|
|
253
|
+
},
|
|
254
|
+
'gadget:sprint health gadget': {
|
|
255
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/uoqla656675p5wwc3a8v824768lip528.png',
|
|
256
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/pnngo5y00g18eos4je3r20ga0c666c68.png'
|
|
257
|
+
},
|
|
258
|
+
'gadget:time since chart': {
|
|
259
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/f7g8053ww4deogfid2h2pj2nw6n8582u.png',
|
|
260
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/20wj0kb8mjjj7in0hu62j4ska17ug5s3.png'
|
|
261
|
+
},
|
|
262
|
+
'gadget:time to first response': {
|
|
263
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/l4cy50n75hr166cpohxpd3h5038e8sl7.png',
|
|
264
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/8kkdphd2l3gb7w06dboc82rmtm86xk7r.png'
|
|
265
|
+
},
|
|
266
|
+
'gadget:two dimensional filter statistics': {
|
|
267
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/6s1x266h56m7p4q758jem2k03hbu15gb.png',
|
|
268
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/hjt70wg3tds43ev34nxv1r7l50170f4l.png'
|
|
269
|
+
},
|
|
270
|
+
'gadget:version report': {
|
|
271
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/2143nj51e834657316q5n5j6kbq3h3m7.png',
|
|
272
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/rgi5il8d845k40f65w0f8a678c1rf51q.png'
|
|
273
|
+
},
|
|
274
|
+
'gadget:voted work items': {
|
|
275
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/0n262m847lgjj174x658ps04k6j513r6.png',
|
|
276
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/rcn6qrr638k1v5y6xrw8g512f2530244.png'
|
|
277
|
+
},
|
|
278
|
+
'gadget:watched issues': {
|
|
279
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/v418o500l40ga5gtq6m23x5t17k47wbe.png',
|
|
280
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/mv0w504r53gvkx38g3y74pd65k5hktop.png'
|
|
281
|
+
},
|
|
282
|
+
'gadget:work item statistics': {
|
|
283
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/4315hi70mlh4eqbn6215p10s4il7os34.png',
|
|
284
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/l3120n2755pw6r2o2q24tmsgu6658533.png'
|
|
285
|
+
},
|
|
286
|
+
'gadget:workload pie chart': {
|
|
287
|
+
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/v5j8p100viey44g61cdc61d53465gda5.png',
|
|
288
|
+
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/84tce4xo2nqe0712oil1f08n5160a11v.png'
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
var previewImageUrlsByKey = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, dataAndChartsPreviewImageUrlsByKey), embedPreviewImageUrlsByKey), otherPreviewImageUrlsByKey), {}, {
|
|
122
292
|
'profile-picture:profile-picture': {
|
|
123
293
|
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/35rb2mbxc2dt8p7op8u8lyss5h220428.png',
|
|
124
294
|
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/4o3lpe2eh4nlakav375621i73do50kyx.png'
|
|
@@ -147,24 +317,6 @@ var previewImageUrlsByKey = _objectSpread(_objectSpread({}, dataAndChartsPreview
|
|
|
147
317
|
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/4u6tb8343dv71eotl5462nydlq3544ut.png',
|
|
148
318
|
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/k177s112506n0bn788227s0ig45nko57.png'
|
|
149
319
|
},
|
|
150
|
-
'third-party-quick-insert-embeds:third-party-embed-amplitude': {
|
|
151
|
-
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7v8shu6n3wd15644f3ys785628dkt632.png',
|
|
152
|
-
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/2r34o120k40e0us4w66oqpud63o4lef4.png'
|
|
153
|
-
},
|
|
154
|
-
'dropbox:item': {
|
|
155
|
-
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/83f1773ur08qm4t3bqaabpwb173313tg.png',
|
|
156
|
-
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/37v2dk5n1ltwc82j1w76dv1tyr8puwq0.png'
|
|
157
|
-
},
|
|
158
|
-
'third-party-quick-insert-embeds:third-party-embed-figma': {
|
|
159
|
-
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/svedc2lju60bgq3r43kfmi7213wj46as.png',
|
|
160
|
-
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/u80s30071b4c10vdjr5rw0uje8cu2pk7.png'
|
|
161
|
-
},
|
|
162
|
-
'third-party-quick-insert-embeds:third-party-embed-google-drive': googleDrivePreviewImageUrls,
|
|
163
|
-
'google-drive:item': googleDrivePreviewImageUrls,
|
|
164
|
-
'iframe:iframe': {
|
|
165
|
-
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/77p6d5rb343gue8580bacbl0xf82u5jv.png',
|
|
166
|
-
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/72a0j8eddxg82rnp8j48bipi8sq8g0ke.png'
|
|
167
|
-
},
|
|
168
320
|
'anchor:anchor': {
|
|
169
321
|
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/5f440bb8m37yig3u77s6c8200re8mto0.png',
|
|
170
322
|
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/y42w6i56fk22vb3g5120d43qfwte8a78.png'
|
|
@@ -202,27 +354,12 @@ var previewImageUrlsByKey = _objectSpread(_objectSpread({}, dataAndChartsPreview
|
|
|
202
354
|
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/v8eyy0fvu61fb8a4b4teea4pjs7g2842.png'
|
|
203
355
|
}
|
|
204
356
|
});
|
|
205
|
-
var previewImageUrlsByTitle = {
|
|
206
|
-
amplitude: {
|
|
207
|
-
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7v8shu6n3wd15644f3ys785628dkt632.png',
|
|
208
|
-
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/2r34o120k40e0us4w66oqpud63o4lef4.png'
|
|
209
|
-
},
|
|
210
|
-
dropbox: {
|
|
211
|
-
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/83f1773ur08qm4t3bqaabpwb173313tg.png',
|
|
212
|
-
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/37v2dk5n1ltwc82j1w76dv1tyr8puwq0.png'
|
|
213
|
-
},
|
|
214
|
-
figma: {
|
|
215
|
-
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/svedc2lju60bgq3r43kfmi7213wj46as.png',
|
|
216
|
-
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/u80s30071b4c10vdjr5rw0uje8cu2pk7.png'
|
|
217
|
-
},
|
|
218
|
-
'google drive': googleDrivePreviewImageUrls,
|
|
219
|
-
iframe: {
|
|
220
|
-
dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/77p6d5rb343gue8580bacbl0xf82u5jv.png',
|
|
221
|
-
light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/72a0j8eddxg82rnp8j48bipi8sq8g0ke.png'
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
357
|
var getExtensionQuickInsertPreviewImageUrls = exports.getExtensionQuickInsertPreviewImageUrls = function getExtensionQuickInsertPreviewImageUrls(item) {
|
|
225
|
-
var _ref, _ref2,
|
|
358
|
+
var _item$key, _ref, _ref2, _dataAndChartsPreview;
|
|
359
|
+
var snippetKeyPrefix = 'snippet-extension:snippet-';
|
|
360
|
+
if ((_item$key = item.key) !== null && _item$key !== void 0 && _item$key.startsWith(snippetKeyPrefix)) {
|
|
361
|
+
return (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command') ? (0, _snippetPreviewImageUrls.getSnippetPreviewImageUrls)(item.key.slice(snippetKeyPrefix.length)) : undefined;
|
|
362
|
+
}
|
|
226
363
|
var normalizedTitle = item.title.toLowerCase();
|
|
227
|
-
return (_ref = (_ref2 =
|
|
364
|
+
return (_ref = (_ref2 = item.key ? previewImageUrlsByKey[item.key] : undefined) !== null && _ref2 !== void 0 ? _ref2 : item.extensionKey === 'gadget' ? (_dataAndChartsPreview = dataAndChartsPreviewImageUrlsByKey["".concat(item.extensionKey, ":").concat(normalizedTitle)]) !== null && _dataAndChartsPreview !== void 0 ? _dataAndChartsPreview : otherPreviewImageUrlsByKey["".concat(item.extensionKey, ":").concat(normalizedTitle)] : undefined) !== null && _ref !== void 0 ? _ref : item.extensionKey ? dataAndChartsPreviewImageUrlsByKey[item.extensionKey] : undefined;
|
|
228
365
|
};
|
|
@@ -10,11 +10,11 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
13
|
+
var _reactLooselyLazy = require("react-loosely-lazy");
|
|
13
14
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
14
15
|
var _extensions = require("@atlaskit/editor-common/extensions");
|
|
15
16
|
var _analytics2 = require("@atlaskit/editor-common/utils/analytics");
|
|
16
17
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
17
|
-
var _reactLooselyLazy = require("react-loosely-lazy");
|
|
18
18
|
var _getExtensionQuickInsertComponents = require("../ui/quick-insert/getExtensionQuickInsertComponents");
|
|
19
19
|
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; }
|
|
20
20
|
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; } // oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
@@ -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 = "229.
|
|
9
|
+
var version = exports.version = "229.1.1";
|
|
@@ -3,6 +3,8 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/anal
|
|
|
3
3
|
import { createDispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
4
|
import { processRawFragmentValue, processRawValue } from '@atlaskit/editor-common/process-raw-value';
|
|
5
5
|
import { analyticsEventKey } from '@atlaskit/editor-common/utils/analytics';
|
|
6
|
+
// eslint-disable-next-line import/order
|
|
7
|
+
|
|
6
8
|
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
7
9
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
8
10
|
import { findParentNode, safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
@@ -13,7 +15,6 @@ import { isEmptyDocument } from './temp-is-empty-document';
|
|
|
13
15
|
import { findNodePosByLocalIds } from './temp-nodes-by-localids';
|
|
14
16
|
// eslint-disable-next-line import/order
|
|
15
17
|
import { toJSON } from './temp-to-json';
|
|
16
|
-
// eslint-disable-next-line import/order
|
|
17
18
|
|
|
18
19
|
// Please, do not copy or use this kind of code below
|
|
19
20
|
// @ts-ignore
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { sortByOrder } from '@atlaskit/editor-common/legacy-rank-plugins';
|
|
2
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
2
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
4
|
import { createEditorNativeAnchorSupportPlugin } from './editorNativeAnchorSupportPlugin';
|
|
4
5
|
import { createEditorStateNotificationPlugin } from './editorStateNotificationPlugin';
|
|
@@ -20,7 +21,7 @@ export function createPMPlugins(config) {
|
|
|
20
21
|
featureFlags: config.featureFlags || {},
|
|
21
22
|
getIntl: config.getIntl
|
|
22
23
|
})).filter(plugin => typeof plugin !== 'undefined');
|
|
23
|
-
if (expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true)) {
|
|
24
|
+
if (expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true) || isExperimentEnabled('platform_editor_block_control_migration')) {
|
|
24
25
|
pmPlugins.push(createEditorNativeAnchorSupportPlugin(config.schema));
|
|
25
26
|
}
|
|
26
27
|
if (config.onEditorStateUpdated !== undefined) {
|