@atlaskit/editor-common 114.41.0 → 114.43.0
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/AssistiveText/package.json +17 -0
- package/BaseTheme/package.json +17 -0
- package/CHANGELOG.md +35 -0
- package/Caption/package.json +17 -0
- package/DropList/package.json +17 -0
- package/DropdownMenuExtensionItems/package.json +17 -0
- package/DropdownMenuItem/package.json +17 -0
- package/DropdownSeparator/package.json +17 -0
- package/Emoji/package.json +17 -0
- package/EventHandlers/package.json +17 -0
- package/Expand/package.json +17 -0
- package/Expand/sharedStyles/package.json +17 -0
- package/Extension/package.json +17 -0
- package/ExtensionComponent/package.json +17 -0
- package/ExtensionNodeWrapper/package.json +17 -0
- package/FloatingToolbar/Button/package.json +17 -0
- package/FloatingToolbar/Separator/package.json +17 -0
- package/FloatingToolbar/SmallerEditIcon/package.json +17 -0
- package/HoverLinkOverlay/package.json +17 -0
- package/IntlProviderIfMissingWrapper/package.json +17 -0
- package/MediaSingle/grid/package.json +17 -0
- package/MediaSingle/link/package.json +17 -0
- package/MediaSingle/package.json +17 -0
- package/MediaSingle/styled/package.json +17 -0
- package/MediaSingle/types/package.json +17 -0
- package/Mention/mention-with-profilecard/package.json +17 -0
- package/Mention/package.json +17 -0
- package/Messages/package.json +17 -0
- package/MultiBodiedExtension/package.json +17 -0
- package/OverflowShadow/package.json +17 -0
- package/OverflowShadow/shadowObserver/package.json +17 -0
- package/PanelTextInput/package.json +17 -0
- package/PanelTextInput/styles/package.json +17 -0
- package/Popup/package.json +17 -0
- package/Popup/utils/package.json +17 -0
- package/PortalBucket/package.json +17 -0
- package/PortalManager/package.json +17 -0
- package/ResizerLegacy/package.json +17 -0
- package/ResizerLegacy/styled/package.json +17 -0
- package/ResizerLegacy/types/package.json +17 -0
- package/ResizerLegacy/utils/package.json +17 -0
- package/SSRRenderMeasure/package.json +17 -0
- package/SelectionBasedNodeView/package.json +17 -0
- package/Shortcut/package.json +17 -0
- package/TableSelector/package.json +17 -0
- package/Toolbar/ButtonGroup/package.json +17 -0
- package/Toolbar/DropdownTriggerWrapper/package.json +17 -0
- package/Toolbar/DropdownWrapper/package.json +17 -0
- package/Toolbar/ExpandIcon/package.json +17 -0
- package/Toolbar/Separator/package.json +17 -0
- package/Toolbar/package.json +17 -0
- package/UnsupportedBlock/package.json +17 -0
- package/UnsupportedInline/package.json +17 -0
- package/UserIntentPopupWrapper/package.json +17 -0
- package/WidthProvider/package.json +17 -0
- package/WithCreateAnalyticsEvent/package.json +17 -0
- package/ai-messages/ai/package.json +17 -0
- package/ai-messages/ai-autocomplete/package.json +17 -0
- package/ai-messages/ai-config-items/package.json +17 -0
- package/ai-messages/ai-definitions/package.json +17 -0
- package/ai-messages/ai-experience-application/package.json +17 -0
- package/ai-messages/ai-failed-state/package.json +17 -0
- package/ai-messages/ai-languages/package.json +17 -0
- package/ai-messages/ai-proactive/package.json +17 -0
- package/ai-messages/ai-proactive-setting/package.json +17 -0
- package/ai-messages/ai-proactive-transform/package.json +17 -0
- package/ai-messages/ai-quick-prompt/package.json +17 -0
- package/ai-messages/ai-suggestions/package.json +17 -0
- package/alignment/package.json +17 -0
- package/analytics/api/package.json +17 -0
- package/analytics/fire-analytics-event/package.json +17 -0
- package/analytics/linking-utils/package.json +17 -0
- package/analytics/types/activity-session-events/package.json +17 -0
- package/analytics/types/ai-autocomplete-events/package.json +17 -0
- package/analytics/types/ai-definitions-events/package.json +17 -0
- package/analytics/types/ai-events/package.json +17 -0
- package/analytics/types/ai-inline-suggestion-events/package.json +17 -0
- package/analytics/types/ai-proactive-events/package.json +17 -0
- package/analytics/types/ai-quick-prompt-events/package.json +17 -0
- package/analytics/types/ai-unified-events/package.json +17 -0
- package/analytics/types/block-menu-events/package.json +17 -0
- package/analytics/types/breakout-events/package.json +17 -0
- package/analytics/types/color-events/package.json +17 -0
- package/analytics/types/dispatch-analytics-event/package.json +17 -0
- package/analytics/types/enums/package.json +17 -0
- package/analytics/types/events/package.json +17 -0
- package/analytics/types/experience-events/package.json +17 -0
- package/analytics/types/extension-events/package.json +17 -0
- package/analytics/types/format-events/package.json +17 -0
- package/analytics/types/general-events/package.json +17 -0
- package/analytics/types/inline-comment-events/package.json +17 -0
- package/analytics/types/insert-events/package.json +17 -0
- package/analytics/types/link-tool-bar-events/package.json +17 -0
- package/analytics/types/list-events/package.json +17 -0
- package/analytics/types/media-events/package.json +17 -0
- package/analytics/types/move-content-events/package.json +17 -0
- package/analytics/types/native-embed-events/package.json +17 -0
- package/analytics/types/ncs-session-step-events/package.json +17 -0
- package/analytics/types/node-events/package.json +17 -0
- package/analytics/types/paste-events/package.json +17 -0
- package/analytics/types/performance-report/package.json +17 -0
- package/analytics/types/referentiality-events/package.json +17 -0
- package/analytics/types/selection-events/package.json +17 -0
- package/analytics/types/smart-links/package.json +17 -0
- package/analytics/types/substitute-events/package.json +17 -0
- package/analytics/types/sync-block-events/package.json +17 -0
- package/analytics/types/table-events/package.json +17 -0
- package/analytics/types/telepointer-events/package.json +17 -0
- package/analytics/types/toolbar-button/package.json +17 -0
- package/analytics/types/type-ahead/package.json +17 -0
- package/analytics/types/utils/package.json +17 -0
- package/analytics/types/view-events/package.json +17 -0
- package/analytics/utils/package.json +17 -0
- package/announcer/package.json +17 -0
- package/assets/package.json +17 -0
- package/block-menu/block-link/package.json +17 -0
- package/block-menu/key/package.json +17 -0
- package/block-menu/key-deprecated/package.json +17 -0
- package/block-menu/messages/package.json +17 -0
- package/block-menu/placement/package.json +17 -0
- package/block-menu/rank/package.json +17 -0
- package/block-menu/rank-deprecated/package.json +17 -0
- package/block-menu/scroll-to-block-utils/package.json +17 -0
- package/card/LinkToolbarButtonGroup/package.json +17 -0
- package/card/MediaAndEmbedsToolbar/package.json +17 -0
- package/card/assets/card/package.json +17 -0
- package/card/assets/embed/package.json +17 -0
- package/card/assets/inline/package.json +17 -0
- package/card/assets/url/package.json +17 -0
- package/card/cardOptions/package.json +17 -0
- package/card/link-toolbar-button-group-options/package.json +17 -0
- package/card/link-toolbar-dropdown-options/package.json +17 -0
- package/card/types/package.json +17 -0
- package/card/utils/package.json +17 -0
- package/clear-next-sibling-margin-top/package.json +17 -0
- package/combine-providers/package.json +17 -0
- package/commands/insert-block/package.json +17 -0
- package/common/package.json +17 -0
- package/const/package.json +17 -0
- package/css-helper/package.json +17 -0
- package/custom-panel/package.json +17 -0
- package/dist/cjs/messages/markdown-mode.js +0 -5
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/resizer/Resizer.js +10 -8
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui-menu/Dropdown/index.js +4 -2
- package/dist/es2019/messages/markdown-mode.js +0 -5
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/resizer/Resizer.js +10 -8
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui-menu/Dropdown/index.js +4 -2
- package/dist/esm/messages/markdown-mode.js +0 -5
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/resizer/Resizer.js +10 -8
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui-menu/Dropdown/index.js +4 -2
- package/dist/types/analytics/types/contextual-typeahead-events.d.ts +5 -1
- package/dist/types/messages/markdown-mode.d.ts +0 -5
- package/dist/types/types/floating-toolbar.d.ts +31 -1
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/ui-menu/Dropdown/index.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/contextual-typeahead-events.d.ts +5 -1
- package/dist/types-ts4.5/messages/markdown-mode.d.ts +0 -5
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +31 -1
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +1 -0
- package/doc-utils/editor-use-only/package.json +17 -0
- package/document-logger/package.json +17 -0
- package/editor-ugc-token-names/package.json +17 -0
- package/element-browser/ElementBrowserLoader/package.json +17 -0
- package/element-browser/constants/package.json +17 -0
- package/emoji/messages/package.json +17 -0
- package/experiences/Experience/package.json +17 -0
- package/experiences/ExperienceCheck/package.json +17 -0
- package/experiences/ExperienceCheckComposite/package.json +17 -0
- package/experiences/ExperienceCheckDomMutation/package.json +17 -0
- package/experiences/ExperienceCheckPopupMutation/package.json +17 -0
- package/experiences/ExperienceCheckTimeout/package.json +17 -0
- package/experiences/consts/package.json +17 -0
- package/experiences/experience-utils/package.json +17 -0
- package/extensibility/types/package.json +17 -0
- package/extensionNodeView/package.json +17 -0
- package/extensions/combine-extension-providers/package.json +17 -0
- package/extensions/default-extension-provider/package.json +17 -0
- package/extensions/extension-fields-helpers/package.json +17 -0
- package/extensions/extension-handler/package.json +17 -0
- package/extensions/extension-handlers/package.json +17 -0
- package/extensions/extension-manifest/package.json +17 -0
- package/extensions/extension-manifest-common/package.json +17 -0
- package/extensions/extension-manifest-toolbar-item/package.json +17 -0
- package/extensions/extension-parameters/package.json +17 -0
- package/extensions/extension-provider/package.json +17 -0
- package/extensions/field-definitions/package.json +17 -0
- package/extensions/manifest-helpers/package.json +17 -0
- package/extensions/messages/package.json +17 -0
- package/extensions/module-helpers/package.json +17 -0
- package/extensions/types/utils/package.json +17 -0
- package/fallback/package.json +17 -0
- package/floating-toolbar/messages/package.json +17 -0
- package/get-editor-ugc-token/package.json +17 -0
- package/getInlineNodeViewProducer/package.json +17 -0
- package/guideline/constants/package.json +17 -0
- package/guideline/defaultGuideline/package.json +17 -0
- package/guideline/dynamicGuideline/package.json +17 -0
- package/guideline/fixedGuideline/package.json +17 -0
- package/guideline/relativeGuideline/package.json +17 -0
- package/guideline/snapping/package.json +17 -0
- package/guideline/types/package.json +17 -0
- package/guideline/updateGuideline/package.json +17 -0
- package/guideline/utils/package.json +17 -0
- package/icons/BorderIcon/package.json +17 -0
- package/icons/DynamicStrokeIconDecoration/package.json +17 -0
- package/icons/PanelErrorIcon/package.json +17 -0
- package/icons/PanelInfoIcon/package.json +17 -0
- package/icons/PanelNoteIcon/package.json +17 -0
- package/icons/PanelSuccessIcon/package.json +17 -0
- package/icons/PanelWarningIcon/package.json +17 -0
- package/icons/SteppedRainbowIconDecoration/package.json +17 -0
- package/inline-image-wrapper/package.json +17 -0
- package/inside/package.json +17 -0
- package/is-ssr/package.json +17 -0
- package/keymap/package.json +17 -0
- package/keymaps/consts/package.json +17 -0
- package/lazy-node-view/types/package.json +17 -0
- package/link/ConfigureLinkOverlay/package.json +17 -0
- package/link/EditorLinkPicker/package.json +17 -0
- package/link/HyperlinkAddToolbar/HyperlinkAddToolbar/package.json +17 -0
- package/link/HyperlinkAddToolbar/package.json +17 -0
- package/link/HyperlinkAddToolbar/utils/package.json +17 -0
- package/link/LinkSearch/package.json +17 -0
- package/link/LinkSearch/types/package.json +17 -0
- package/link/LinkSearchList/package.json +17 -0
- package/link/LinkSearchListItem/package.json +17 -0
- package/link/ToolbarComponents/package.json +17 -0
- package/link/handleNavigation/package.json +17 -0
- package/link/transformTimeStamp/package.json +17 -0
- package/link/types/package.json +17 -0
- package/link/utils/package.json +17 -0
- package/lists/analytics/package.json +17 -0
- package/lists/block-mark/package.json +17 -0
- package/lists/build-replacement-fragment/package.json +17 -0
- package/lists/flatten-list/package.json +17 -0
- package/lists/indentation/package.json +17 -0
- package/lists/messages/package.json +17 -0
- package/lists/narrow-replacement-range/package.json +17 -0
- package/lists/node/package.json +17 -0
- package/lists/replace-content/package.json +17 -0
- package/lists/restore-selection/package.json +17 -0
- package/lists/selection/package.json +17 -0
- package/mark/commands/package.json +17 -0
- package/mark/text-formatting/package.json +17 -0
- package/media/altText/package.json +17 -0
- package/media/caption/package.json +17 -0
- package/media/comments/package.json +17 -0
- package/media/dropPlaceholder/package.json +17 -0
- package/media/externalMedia/package.json +17 -0
- package/media/imageBorder/package.json +17 -0
- package/media/mediaLinkingToolbar/package.json +17 -0
- package/media/mediaResizeAnnouncerMess/package.json +17 -0
- package/media/nodeviews/package.json +17 -0
- package/media/pixelEntry/package.json +17 -0
- package/media/toolbarMedia/package.json +17 -0
- package/media-inline/constants/package.json +17 -0
- package/media-inline/styles/package.json +17 -0
- package/media-inline/types/package.json +17 -0
- package/media-inline/utils/package.json +17 -0
- package/media-inline-image-card/package.json +17 -0
- package/media-single/CommentBadge/package.json +17 -0
- package/media-single/CommentBadgeNext/package.json +17 -0
- package/media-single/ExternalImageBadge/package.json +17 -0
- package/media-single/MediaBadges/package.json +17 -0
- package/media-single/constants/package.json +17 -0
- package/media-single/utils/package.json +17 -0
- package/messages/annotation/package.json +17 -0
- package/messages/avatar-group/package.json +17 -0
- package/messages/block-controls/package.json +17 -0
- package/messages/block-menu/package.json +17 -0
- package/messages/block-type/package.json +17 -0
- package/messages/breakout/package.json +17 -0
- package/messages/card/package.json +17 -0
- package/messages/codeBidiWarning/package.json +17 -0
- package/messages/codeBlock/package.json +17 -0
- package/messages/codeBlockButton/package.json +17 -0
- package/messages/color-picker-button/package.json +17 -0
- package/messages/company-hub-text-color/package.json +17 -0
- package/messages/context-panel/package.json +17 -0
- package/messages/date/package.json +17 -0
- package/messages/element-insert-side-panel/package.json +17 -0
- package/messages/find-replace/package.json +17 -0
- package/messages/full-page/package.json +17 -0
- package/messages/help-dialog/package.json +17 -0
- package/messages/highlight/package.json +17 -0
- package/messages/indentation/package.json +17 -0
- package/messages/insert-block/package.json +17 -0
- package/messages/layout/package.json +17 -0
- package/messages/limited-mode/package.json +17 -0
- package/messages/link/package.json +17 -0
- package/messages/link-toolbar/package.json +17 -0
- package/messages/list/package.json +17 -0
- package/messages/markdown-mode/package.json +17 -0
- package/messages/media-and-embed-toolbar/package.json +17 -0
- package/messages/media-editing/package.json +17 -0
- package/messages/media-insert/package.json +17 -0
- package/messages/mentions/package.json +17 -0
- package/messages/native-embed-toolbar/package.json +17 -0
- package/messages/panel/package.json +17 -0
- package/messages/paste-options-toolbar/package.json +17 -0
- package/messages/placeholder-text/package.json +17 -0
- package/messages/roleDescription/package.json +17 -0
- package/messages/selection-extension/package.json +17 -0
- package/messages/selection-toolbar/package.json +17 -0
- package/messages/status/package.json +17 -0
- package/messages/syncBlock/package.json +17 -0
- package/messages/table/package.json +17 -0
- package/messages/tasks-and-decisions/package.json +17 -0
- package/messages/text-color/package.json +17 -0
- package/messages/toolbar/package.json +17 -0
- package/messages/track-changes/package.json +17 -0
- package/messages/undo-redo/package.json +17 -0
- package/messages/unsupportedContent/package.json +17 -0
- package/monitoring/error/package.json +17 -0
- package/node-anchor-provider/package.json +17 -0
- package/node-view/package.json +17 -0
- package/package.json +7 -7
- package/paste/clipboard/package.json +17 -0
- package/paste/md/package.json +17 -0
- package/persistence-api/package.json +17 -0
- package/preset/builder/package.json +17 -0
- package/preset/editor-commands/package.json +17 -0
- package/preset/plugin-injection-api/package.json +17 -0
- package/profileSSROperation/package.json +17 -0
- package/provider-factory/autoformatting-provider/package.json +17 -0
- package/provider-factory/card-provider/package.json +17 -0
- package/provider-factory/context/package.json +17 -0
- package/provider-factory/context-identifier-provider/package.json +17 -0
- package/provider-factory/image-upload-provider/package.json +17 -0
- package/provider-factory/macro-provider/package.json +17 -0
- package/provider-factory/media-provider/package.json +17 -0
- package/provider-factory/profile-card-provider/package.json +17 -0
- package/provider-factory/provider-factory/package.json +17 -0
- package/provider-factory/quick-insert-provider/package.json +17 -0
- package/provider-factory/search-provider/package.json +17 -0
- package/provider-factory/types/package.json +17 -0
- package/provider-factory/with-providers/package.json +17 -0
- package/quick-insert/messages/package.json +17 -0
- package/quick-insert/utils/package.json +17 -0
- package/react-node-view/types/package.json +17 -0
- package/resizer/BreakoutResizer/package.json +17 -0
- package/resizer/Resizer/package.json +17 -0
- package/resizer/ResizerBreakoutModeLabel/package.json +17 -0
- package/resizer/types/package.json +17 -0
- package/resizer/useBreakoutGuidelines/package.json +17 -0
- package/selection/actions/package.json +17 -0
- package/selection/context-helpers/package.json +17 -0
- package/selection/gap-cursor/selection/package.json +17 -0
- package/selection/gap-cursor/styles/package.json +17 -0
- package/selection/is-ignored/package.json +17 -0
- package/selection/is-valid-target-node/package.json +17 -0
- package/selection/setGapCursorSelection/package.json +17 -0
- package/selection/types/package.json +17 -0
- package/selection/utils/package.json +17 -0
- package/styles/annotation/package.json +17 -0
- package/styles/blockquote/package.json +17 -0
- package/styles/breakout/package.json +17 -0
- package/styles/code-block/package.json +17 -0
- package/styles/date/package.json +17 -0
- package/styles/drag-handle/package.json +17 -0
- package/styles/dropdown-menu/package.json +17 -0
- package/styles/emoji/package.json +17 -0
- package/styles/expand/package.json +17 -0
- package/styles/extension/package.json +17 -0
- package/styles/grid/package.json +17 -0
- package/styles/headings/package.json +17 -0
- package/styles/layout/package.json +17 -0
- package/styles/lists/package.json +17 -0
- package/styles/media/package.json +17 -0
- package/styles/media-single/package.json +17 -0
- package/styles/mention/package.json +17 -0
- package/styles/native-anchor/package.json +17 -0
- package/styles/panel/package.json +17 -0
- package/styles/plugins/package.json +17 -0
- package/styles/resizer/package.json +17 -0
- package/styles/smart-card/package.json +17 -0
- package/styles/smartCard/package.json +17 -0
- package/styles/status/package.json +17 -0
- package/styles/sync-block/package.json +17 -0
- package/styles/table/package.json +17 -0
- package/styles/task-decision/package.json +17 -0
- package/styles/unsupported-content/package.json +17 -0
- package/sync-block/SyncBlockActionsContext/package.json +17 -0
- package/sync-block/constants/package.json +17 -0
- package/sync-block/ssr_error/package.json +17 -0
- package/table/SortingIcon/package.json +17 -0
- package/table/consts/package.json +17 -0
- package/table/content-mode/package.json +17 -0
- package/toolbar/EditorToolbarUIProvider/package.json +17 -0
- package/toolbar/context/package.json +17 -0
- package/toolbar/keys/package.json +17 -0
- package/toolbar/rank/package.json +17 -0
- package/toolbar/types/package.json +17 -0
- package/toolbar/utils/package.json +17 -0
- package/transforms/code-block/package.json +17 -0
- package/transforms/decision-list/package.json +17 -0
- package/transforms/expand/package.json +17 -0
- package/transforms/extension/package.json +17 -0
- package/transforms/layout/package.json +17 -0
- package/transforms/list-transforms/package.json +17 -0
- package/transforms/list-types/package.json +17 -0
- package/transforms/list-utils/package.json +17 -0
- package/transforms/sync-block/package.json +17 -0
- package/type-ahead/messages/package.json +17 -0
- package/types/annotation/package.json +17 -0
- package/types/block-controls/package.json +17 -0
- package/types/block-type/package.json +17 -0
- package/types/breakout/package.json +17 -0
- package/types/command/package.json +17 -0
- package/types/context-panel/package.json +17 -0
- package/types/copy-button/package.json +17 -0
- package/types/datasource/package.json +17 -0
- package/types/doc-builder/package.json +17 -0
- package/types/editor-actions/package.json +17 -0
- package/types/editor-appearance/package.json +17 -0
- package/types/editor-command/package.json +17 -0
- package/types/editor-container-width/package.json +17 -0
- package/types/editor-plugin/package.json +17 -0
- package/types/editor-react-context/package.json +17 -0
- package/types/emitter/package.json +17 -0
- package/types/empty-state-handler/package.json +17 -0
- package/types/feature-flags/package.json +17 -0
- package/types/feedback-dialog/package.json +17 -0
- package/types/floating-toolbar/package.json +17 -0
- package/types/grid/package.json +17 -0
- package/types/hyperlink/package.json +17 -0
- package/types/image-upload-reference-event/package.json +17 -0
- package/types/input-rules/package.json +17 -0
- package/types/insert-block/package.json +17 -0
- package/types/layout/package.json +17 -0
- package/types/next-editor-plugin/package.json +17 -0
- package/types/performance-tracking/package.json +17 -0
- package/types/plugin-factory/package.json +17 -0
- package/types/prosemirror-config/package.json +17 -0
- package/types/quick-insert/package.json +17 -0
- package/types/resizable-media-single/package.json +17 -0
- package/types/selection/package.json +17 -0
- package/types/selection-toolbar/package.json +17 -0
- package/types/supported-browsers/package.json +17 -0
- package/types/tables/package.json +17 -0
- package/types/text-formatting/package.json +17 -0
- package/types/toolbar/package.json +17 -0
- package/types/type-ahead/package.json +17 -0
- package/types/ui-components/package.json +17 -0
- package/types/user-preferences/package.json +17 -0
- package/ui-color/ColorPalette/Color/package.json +17 -0
- package/ui-color/ColorPalette/ColorPalette/utils/package.json +17 -0
- package/ui-color/ColorPalette/Palettes/common/package.json +17 -0
- package/ui-color/ColorPalette/borderColorPalette/package.json +17 -0
- package/ui-color/ColorPalette/cellBackgroundColorPalette/package.json +17 -0
- package/ui-color/ColorPalette/highlightColorPalette/package.json +17 -0
- package/ui-color/ColorPalette/package.json +17 -0
- package/ui-color/ColorPalette/paletteMessages/package.json +17 -0
- package/ui-color/ColorPalette/paletteMessagesTokenModeNames/package.json +17 -0
- package/ui-color/ColorPalette/panelBackgroundPalette/package.json +17 -0
- package/ui-color/ColorPalette/textColorPalette/package.json +17 -0
- package/ui-color/ColorPalette/type/package.json +17 -0
- package/ui-menu/ArrowKeyNavigationProvider/package.json +17 -0
- package/ui-menu/ArrowKeyNavigationProvider/types/package.json +17 -0
- package/ui-menu/ColorPaletteArrowKeyNavigationProvider/package.json +17 -0
- package/ui-menu/ColorPickerButton/package.json +17 -0
- package/ui-menu/Dropdown/package.json +17 -0
- package/ui-menu/DropdownContainer/package.json +17 -0
- package/ui-menu/DropdownMenu/package.json +17 -0
- package/ui-menu/DropdownMenu/types/package.json +17 -0
- package/ui-menu/ToolbarArrowKeyNavigationProvider/package.json +17 -0
- package/ui-menu/ToolbarButton/package.json +17 -0
- package/ui-react/ReactEditorViewContext/package.json +17 -0
- package/ui-react/with-react-editor-view-outer-listeners/package.json +17 -0
- package/useConstructor/package.json +17 -0
- package/usePortalProvider/package.json +17 -0
- package/usePreviousState/package.json +17 -0
- package/useSharedPluginState/package.json +17 -0
- package/useSharedPluginStateSelector/package.json +17 -0
- package/useSharedPluginStateWithSelector/package.json +17 -0
- package/user-intent/types/package.json +17 -0
- package/user-preferences/hooks/package.json +17 -0
- package/user-preferences/user-preferences/package.json +17 -0
- package/user-preferences-provider/package.json +17 -0
- package/utils/annotation/package.json +17 -0
- package/utils/autojoin/package.json +17 -0
- package/utils/breakout/package.json +17 -0
- package/utils/browser-extensions/package.json +17 -0
- package/utils/calculate-toolbar-position/package.json +17 -0
- package/utils/commands/package.json +17 -0
- package/utils/compare-props/package.json +17 -0
- package/utils/compareNodes/package.json +17 -0
- package/utils/compose/package.json +17 -0
- package/utils/create-wrap-selection-transaction/package.json +17 -0
- package/utils/datasource/package.json +17 -0
- package/utils/date/package.json +17 -0
- package/utils/dedupe/package.json +17 -0
- package/utils/dom/package.json +17 -0
- package/utils/editor-core-utils/package.json +17 -0
- package/utils/extension-handler/package.json +17 -0
- package/utils/get-performance-options/package.json +17 -0
- package/utils/get-performance-timing/package.json +17 -0
- package/utils/get-unsupported-content-level-data/package.json +17 -0
- package/utils/getModeFromTheme/package.json +17 -0
- package/utils/grid/package.json +17 -0
- package/utils/hyperlink/package.json +17 -0
- package/utils/imageLoader/package.json +17 -0
- package/utils/input-rules/package.json +17 -0
- package/utils/insert-node-into-ordered-list/package.json +17 -0
- package/utils/is-text-input/package.json +17 -0
- package/utils/list/package.json +17 -0
- package/utils/macro/package.json +17 -0
- package/utils/measure/package.json +17 -0
- package/utils/nodes/package.json +17 -0
- package/utils/nodes-by-localIds/package.json +17 -0
- package/utils/page-element-counts/package.json +17 -0
- package/utils/plugin-state-factory/package.json +17 -0
- package/utils/privacy-filter/package.json +17 -0
- package/utils/referentiality/package.json +17 -0
- package/utils/render-count/package.json +17 -0
- package/utils/rich-media-utils/package.json +17 -0
- package/utils/scroll-gutter/package.json +17 -0
- package/utils/should-auto-linkify-tld/package.json +17 -0
- package/utils/should-force-tracking/package.json +17 -0
- package/utils/slice/package.json +17 -0
- package/utils/table/package.json +17 -0
- package/utils/track-unsupported-content/package.json +17 -0
- package/utils/traversor/package.json +17 -0
- package/utils/types/package.json +17 -0
- package/utils/unsupportedContent/types/package.json +17 -0
- package/utils/validator/package.json +17 -0
- package/utils/withFeatureFlaggedComponent/package.json +17 -0
- package/utils/wrap-selection-in/package.json +17 -0
- package/validate-using-spec/package.json +17 -0
- package/whitespace/whitespace/package.json +17 -0
- package/with-outer-listeners/package.json +17 -0
- package/withAnalytics/package.json +17 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/combine-providers",
|
|
3
|
+
"main": "../dist/cjs/provider-helpers/combine-providers.js",
|
|
4
|
+
"module": "../dist/esm/provider-helpers/combine-providers.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/provider-helpers/combine-providers.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/provider-helpers/combine-providers.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/provider-helpers/combine-providers.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/commands/insert-block",
|
|
3
|
+
"main": "../../dist/cjs/commands/insert-block.js",
|
|
4
|
+
"module": "../../dist/esm/commands/insert-block.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/commands/insert-block.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../../dist/types/commands/insert-block.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../../dist/types-ts4.5/commands/insert-block.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/common",
|
|
3
|
+
"main": "../dist/cjs/portal/common.js",
|
|
4
|
+
"module": "../dist/esm/portal/common.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/portal/common.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/portal/common.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/portal/common.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/const",
|
|
3
|
+
"main": "../dist/cjs/ui/LinkSearch/const.js",
|
|
4
|
+
"module": "../dist/esm/ui/LinkSearch/const.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/ui/LinkSearch/const.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/ui/LinkSearch/const.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/ui/LinkSearch/const.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/css-helper",
|
|
3
|
+
"main": "../dist/cjs/lazy-node-view/css-helper.js",
|
|
4
|
+
"module": "../dist/esm/lazy-node-view/css-helper.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/lazy-node-view/css-helper.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/lazy-node-view/css-helper.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/lazy-node-view/css-helper.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/custom-panel",
|
|
3
|
+
"main": "../dist/cjs/quick-insert/assets/custom-panel.js",
|
|
4
|
+
"module": "../dist/esm/quick-insert/assets/custom-panel.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/quick-insert/assets/custom-panel.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/quick-insert/assets/custom-panel.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/quick-insert/assets/custom-panel.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -90,11 +90,6 @@ var markdownModeMessages = exports.markdownModeMessages = (0, _reactIntl.defineM
|
|
|
90
90
|
defaultMessage: 'Use all rich text tools',
|
|
91
91
|
description: 'Body row inside the convert-to-rich-text confirmation dialog; explains that the full rich-text toolbar comes back after the conversion.'
|
|
92
92
|
},
|
|
93
|
-
confirmDialogToRichTextInstantEdits: {
|
|
94
|
-
id: 'fabric.editor.markdownMode.confirmDialog.toRichText.instantEdits',
|
|
95
|
-
defaultMessage: 'Edit and save as a live doc',
|
|
96
|
-
description: 'Body row inside the convert-to-rich-text confirmation dialog; reassures the user that live-edit semantics are preserved when leaving markdown mode.'
|
|
97
|
-
},
|
|
98
93
|
confirmDialogToRichTextVersionHistory: {
|
|
99
94
|
id: 'fabric.editor.markdownMode.confirmDialog.toRichText.versionHistory',
|
|
100
95
|
defaultMessage: 'Restore previous drafts with version history',
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "114.
|
|
22
|
+
var packageVersion = "114.42.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -16,6 +16,7 @@ var _reResizable = require("re-resizable");
|
|
|
16
16
|
var _reactIntl = require("react-intl");
|
|
17
17
|
var _primitives = require("@atlaskit/primitives");
|
|
18
18
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
19
|
+
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
19
20
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
20
21
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
21
22
|
var _breakout = require("../messages/breakout");
|
|
@@ -90,7 +91,8 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
90
91
|
childrenDOMRef = props.childrenDOMRef,
|
|
91
92
|
labelComponent = props.labelComponent,
|
|
92
93
|
otherProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
93
|
-
var
|
|
94
|
+
var isDatabasesV2Enabled = (0, _expValEqualsNoExposure.expValEqualsNoExposure)('cc-maui-experiment', 'isEnabled', true) && (0, _expValEquals.expValEquals)('databases-native-embeds-v2', 'isEnabled', true);
|
|
95
|
+
var supportedHandles = isDatabasesV2Enabled ? SUPPORTED_HANDLES_FOR_VERTICAL_RESIZE : SUPPORTED_HANDLES;
|
|
94
96
|
var onResizeStart = (0, _react.useCallback)(function (event) {
|
|
95
97
|
// prevent creating a drag event on Firefox
|
|
96
98
|
event.preventDefault();
|
|
@@ -111,12 +113,12 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
111
113
|
width: resizableCurrent.state.original.width,
|
|
112
114
|
height: resizableCurrent.state.original.height
|
|
113
115
|
};
|
|
114
|
-
if (
|
|
116
|
+
if (isDatabasesV2Enabled) {
|
|
115
117
|
handleResize(originalState, delta, direction);
|
|
116
118
|
} else {
|
|
117
119
|
handleResize(originalState, delta);
|
|
118
120
|
}
|
|
119
|
-
}, [handleResize]);
|
|
121
|
+
}, [handleResize, isDatabasesV2Enabled]);
|
|
120
122
|
var onResizeStop = (0, _react.useCallback)(function (_event, direction, _elementRef, delta) {
|
|
121
123
|
var resizableCurrent = resizable.current;
|
|
122
124
|
if (!resizableCurrent || !resizableCurrent.state.original) {
|
|
@@ -129,17 +131,17 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
129
131
|
height: resizableCurrent.state.original.height
|
|
130
132
|
};
|
|
131
133
|
setIsResizing(false);
|
|
132
|
-
if (
|
|
134
|
+
if (isDatabasesV2Enabled) {
|
|
133
135
|
handleResizeStop(originalState, delta, direction);
|
|
134
136
|
} else {
|
|
135
137
|
handleResizeStop(originalState, delta);
|
|
136
138
|
}
|
|
137
|
-
}, [handleResizeStop]);
|
|
139
|
+
}, [handleResizeStop, isDatabasesV2Enabled]);
|
|
138
140
|
var handles = (0, _react.useMemo)(function () {
|
|
139
141
|
return supportedHandles.reduce(function (result, position) {
|
|
140
|
-
return _objectSpread(_objectSpread({}, result), {}, (0, _defineProperty2.default)({}, position, (0, _classnames3.default)(handleClassName !== null && handleClassName !== void 0 ? handleClassName : _resizer.resizerHandleClassName, position, handleSize, position === 'bottom' &&
|
|
142
|
+
return _objectSpread(_objectSpread({}, result), {}, (0, _defineProperty2.default)({}, position, (0, _classnames3.default)(handleClassName !== null && handleClassName !== void 0 ? handleClassName : _resizer.resizerHandleClassName, position, handleSize, position === 'bottom' && isDatabasesV2Enabled ? undefined : handleAlignmentMethod)));
|
|
141
143
|
}, {});
|
|
142
|
-
}, [handleClassName, handleSize, handleAlignmentMethod, supportedHandles]);
|
|
144
|
+
}, [handleClassName, handleSize, handleAlignmentMethod, supportedHandles, isDatabasesV2Enabled]);
|
|
143
145
|
var handleWidth = handlePositioning === 'adjacent' ? "var(--ds-space-100, 8px)" : "var(--ds-space-300, 24px)";
|
|
144
146
|
var baseHorizontalHandleStyles = {
|
|
145
147
|
width: handleWidth,
|
|
@@ -243,7 +245,7 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
243
245
|
}
|
|
244
246
|
return snapGap;
|
|
245
247
|
}, [snap, snapGap]);
|
|
246
|
-
var resolvedHeight =
|
|
248
|
+
var resolvedHeight = isDatabasesV2Enabled ? height !== null && height !== void 0 ? height : 'auto' : 'auto';
|
|
247
249
|
var resizerAutoSize = (0, _react.useMemo)(function () {
|
|
248
250
|
return {
|
|
249
251
|
width: width !== null && width !== void 0 ? width : 'auto',
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "114.
|
|
27
|
+
var packageVersion = "114.42.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -104,7 +104,8 @@ var Dropdown = exports.Dropdown = /*#__PURE__*/function (_PureComponent) {
|
|
|
104
104
|
alignY = _this$props.alignY,
|
|
105
105
|
offset = _this$props.offset,
|
|
106
106
|
_this$props$shouldFit = _this$props.shouldFitContainer,
|
|
107
|
-
shouldFitContainer = _this$props$shouldFit === void 0 ? true : _this$props$shouldFit
|
|
107
|
+
shouldFitContainer = _this$props$shouldFit === void 0 ? true : _this$props$shouldFit,
|
|
108
|
+
testId = _this$props.testId;
|
|
108
109
|
return /*#__PURE__*/_react.default.createElement(_Popup.default, {
|
|
109
110
|
target: targetProp !== null && targetProp !== void 0 ? targetProp : alignDropdownWithParentElement ? // Ignored via go/ees005
|
|
110
111
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
@@ -137,7 +138,8 @@ var Dropdown = exports.Dropdown = /*#__PURE__*/function (_PureComponent) {
|
|
|
137
138
|
onOpenChange: onOpenChange,
|
|
138
139
|
position: popupPlacement.join(' '),
|
|
139
140
|
shouldFitContainer: shouldFitContainer,
|
|
140
|
-
id: dropdownListId
|
|
141
|
+
id: dropdownListId,
|
|
142
|
+
testId: testId
|
|
141
143
|
}, children))));
|
|
142
144
|
}
|
|
143
145
|
}, {
|
|
@@ -85,11 +85,6 @@ export const markdownModeMessages = defineMessages({
|
|
|
85
85
|
defaultMessage: 'Use all rich text tools',
|
|
86
86
|
description: 'Body row inside the convert-to-rich-text confirmation dialog; explains that the full rich-text toolbar comes back after the conversion.'
|
|
87
87
|
},
|
|
88
|
-
confirmDialogToRichTextInstantEdits: {
|
|
89
|
-
id: 'fabric.editor.markdownMode.confirmDialog.toRichText.instantEdits',
|
|
90
|
-
defaultMessage: 'Edit and save as a live doc',
|
|
91
|
-
description: 'Body row inside the convert-to-rich-text confirmation dialog; reassures the user that live-edit semantics are preserved when leaving markdown mode.'
|
|
92
|
-
},
|
|
93
88
|
confirmDialogToRichTextVersionHistory: {
|
|
94
89
|
id: 'fabric.editor.markdownMode.confirmDialog.toRichText.versionHistory',
|
|
95
90
|
defaultMessage: 'Restore previous drafts with version history',
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "114.
|
|
7
|
+
const packageVersion = "114.42.0";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -7,6 +7,7 @@ import { useIntl } from 'react-intl';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
8
8
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
10
11
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
11
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
12
13
|
import { messages } from '../messages/breakout';
|
|
@@ -69,7 +70,8 @@ const ResizerNext = (props, ref) => {
|
|
|
69
70
|
labelComponent,
|
|
70
71
|
...otherProps
|
|
71
72
|
} = props;
|
|
72
|
-
const
|
|
73
|
+
const isDatabasesV2Enabled = expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true) && expValEquals('databases-native-embeds-v2', 'isEnabled', true);
|
|
74
|
+
const supportedHandles = isDatabasesV2Enabled ? SUPPORTED_HANDLES_FOR_VERTICAL_RESIZE : SUPPORTED_HANDLES;
|
|
73
75
|
const onResizeStart = useCallback(event => {
|
|
74
76
|
// prevent creating a drag event on Firefox
|
|
75
77
|
event.preventDefault();
|
|
@@ -90,12 +92,12 @@ const ResizerNext = (props, ref) => {
|
|
|
90
92
|
width: resizableCurrent.state.original.width,
|
|
91
93
|
height: resizableCurrent.state.original.height
|
|
92
94
|
};
|
|
93
|
-
if (
|
|
95
|
+
if (isDatabasesV2Enabled) {
|
|
94
96
|
handleResize(originalState, delta, direction);
|
|
95
97
|
} else {
|
|
96
98
|
handleResize(originalState, delta);
|
|
97
99
|
}
|
|
98
|
-
}, [handleResize]);
|
|
100
|
+
}, [handleResize, isDatabasesV2Enabled]);
|
|
99
101
|
const onResizeStop = useCallback((_event, direction, _elementRef, delta) => {
|
|
100
102
|
const resizableCurrent = resizable.current;
|
|
101
103
|
if (!resizableCurrent || !resizableCurrent.state.original) {
|
|
@@ -108,16 +110,16 @@ const ResizerNext = (props, ref) => {
|
|
|
108
110
|
height: resizableCurrent.state.original.height
|
|
109
111
|
};
|
|
110
112
|
setIsResizing(false);
|
|
111
|
-
if (
|
|
113
|
+
if (isDatabasesV2Enabled) {
|
|
112
114
|
handleResizeStop(originalState, delta, direction);
|
|
113
115
|
} else {
|
|
114
116
|
handleResizeStop(originalState, delta);
|
|
115
117
|
}
|
|
116
|
-
}, [handleResizeStop]);
|
|
118
|
+
}, [handleResizeStop, isDatabasesV2Enabled]);
|
|
117
119
|
const handles = useMemo(() => supportedHandles.reduce((result, position) => ({
|
|
118
120
|
...result,
|
|
119
|
-
[position]: classnames(handleClassName !== null && handleClassName !== void 0 ? handleClassName : resizerHandleClassName, position, handleSize, position === 'bottom' &&
|
|
120
|
-
}), {}), [handleClassName, handleSize, handleAlignmentMethod, supportedHandles]);
|
|
121
|
+
[position]: classnames(handleClassName !== null && handleClassName !== void 0 ? handleClassName : resizerHandleClassName, position, handleSize, position === 'bottom' && isDatabasesV2Enabled ? undefined : handleAlignmentMethod)
|
|
122
|
+
}), {}), [handleClassName, handleSize, handleAlignmentMethod, supportedHandles, isDatabasesV2Enabled]);
|
|
121
123
|
const handleWidth = handlePositioning === 'adjacent' ? "var(--ds-space-100, 8px)" : "var(--ds-space-300, 24px)";
|
|
122
124
|
const baseHorizontalHandleStyles = {
|
|
123
125
|
width: handleWidth,
|
|
@@ -238,7 +240,7 @@ const ResizerNext = (props, ref) => {
|
|
|
238
240
|
}
|
|
239
241
|
return snapGap;
|
|
240
242
|
}, [snap, snapGap]);
|
|
241
|
-
const resolvedHeight =
|
|
243
|
+
const resolvedHeight = isDatabasesV2Enabled ? height !== null && height !== void 0 ? height : 'auto' : 'auto';
|
|
242
244
|
const resizerAutoSize = useMemo(() => ({
|
|
243
245
|
width: width !== null && width !== void 0 ? width : 'auto',
|
|
244
246
|
height: resolvedHeight
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "114.
|
|
17
|
+
const packageVersion = "114.42.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -78,7 +78,8 @@ export class Dropdown extends PureComponent {
|
|
|
78
78
|
alignX,
|
|
79
79
|
alignY,
|
|
80
80
|
offset,
|
|
81
|
-
shouldFitContainer = true
|
|
81
|
+
shouldFitContainer = true,
|
|
82
|
+
testId
|
|
82
83
|
} = this.props;
|
|
83
84
|
return /*#__PURE__*/React.createElement(Popup, {
|
|
84
85
|
target: targetProp !== null && targetProp !== void 0 ? targetProp : alignDropdownWithParentElement ? // Ignored via go/ees005
|
|
@@ -112,7 +113,8 @@ export class Dropdown extends PureComponent {
|
|
|
112
113
|
onOpenChange: onOpenChange,
|
|
113
114
|
position: popupPlacement.join(' '),
|
|
114
115
|
shouldFitContainer: shouldFitContainer,
|
|
115
|
-
id: dropdownListId
|
|
116
|
+
id: dropdownListId,
|
|
117
|
+
testId: testId
|
|
116
118
|
}, children))));
|
|
117
119
|
}
|
|
118
120
|
render() {
|
|
@@ -85,11 +85,6 @@ export var markdownModeMessages = defineMessages({
|
|
|
85
85
|
defaultMessage: 'Use all rich text tools',
|
|
86
86
|
description: 'Body row inside the convert-to-rich-text confirmation dialog; explains that the full rich-text toolbar comes back after the conversion.'
|
|
87
87
|
},
|
|
88
|
-
confirmDialogToRichTextInstantEdits: {
|
|
89
|
-
id: 'fabric.editor.markdownMode.confirmDialog.toRichText.instantEdits',
|
|
90
|
-
defaultMessage: 'Edit and save as a live doc',
|
|
91
|
-
description: 'Body row inside the convert-to-rich-text confirmation dialog; reassures the user that live-edit semantics are preserved when leaving markdown mode.'
|
|
92
|
-
},
|
|
93
88
|
confirmDialogToRichTextVersionHistory: {
|
|
94
89
|
id: 'fabric.editor.markdownMode.confirmDialog.toRichText.versionHistory',
|
|
95
90
|
defaultMessage: 'Restore previous drafts with version history',
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "114.
|
|
13
|
+
var packageVersion = "114.42.0";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -13,6 +13,7 @@ import { useIntl } from 'react-intl';
|
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
14
14
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
15
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
16
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
18
|
import Tooltip from '@atlaskit/tooltip';
|
|
18
19
|
import { messages } from '../messages/breakout';
|
|
@@ -83,7 +84,8 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
83
84
|
childrenDOMRef = props.childrenDOMRef,
|
|
84
85
|
labelComponent = props.labelComponent,
|
|
85
86
|
otherProps = _objectWithoutProperties(props, _excluded);
|
|
86
|
-
var
|
|
87
|
+
var isDatabasesV2Enabled = expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true) && expValEquals('databases-native-embeds-v2', 'isEnabled', true);
|
|
88
|
+
var supportedHandles = isDatabasesV2Enabled ? SUPPORTED_HANDLES_FOR_VERTICAL_RESIZE : SUPPORTED_HANDLES;
|
|
87
89
|
var onResizeStart = useCallback(function (event) {
|
|
88
90
|
// prevent creating a drag event on Firefox
|
|
89
91
|
event.preventDefault();
|
|
@@ -104,12 +106,12 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
104
106
|
width: resizableCurrent.state.original.width,
|
|
105
107
|
height: resizableCurrent.state.original.height
|
|
106
108
|
};
|
|
107
|
-
if (
|
|
109
|
+
if (isDatabasesV2Enabled) {
|
|
108
110
|
handleResize(originalState, delta, direction);
|
|
109
111
|
} else {
|
|
110
112
|
handleResize(originalState, delta);
|
|
111
113
|
}
|
|
112
|
-
}, [handleResize]);
|
|
114
|
+
}, [handleResize, isDatabasesV2Enabled]);
|
|
113
115
|
var onResizeStop = useCallback(function (_event, direction, _elementRef, delta) {
|
|
114
116
|
var resizableCurrent = resizable.current;
|
|
115
117
|
if (!resizableCurrent || !resizableCurrent.state.original) {
|
|
@@ -122,17 +124,17 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
122
124
|
height: resizableCurrent.state.original.height
|
|
123
125
|
};
|
|
124
126
|
setIsResizing(false);
|
|
125
|
-
if (
|
|
127
|
+
if (isDatabasesV2Enabled) {
|
|
126
128
|
handleResizeStop(originalState, delta, direction);
|
|
127
129
|
} else {
|
|
128
130
|
handleResizeStop(originalState, delta);
|
|
129
131
|
}
|
|
130
|
-
}, [handleResizeStop]);
|
|
132
|
+
}, [handleResizeStop, isDatabasesV2Enabled]);
|
|
131
133
|
var handles = useMemo(function () {
|
|
132
134
|
return supportedHandles.reduce(function (result, position) {
|
|
133
|
-
return _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, position, classnames(handleClassName !== null && handleClassName !== void 0 ? handleClassName : resizerHandleClassName, position, handleSize, position === 'bottom' &&
|
|
135
|
+
return _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, position, classnames(handleClassName !== null && handleClassName !== void 0 ? handleClassName : resizerHandleClassName, position, handleSize, position === 'bottom' && isDatabasesV2Enabled ? undefined : handleAlignmentMethod)));
|
|
134
136
|
}, {});
|
|
135
|
-
}, [handleClassName, handleSize, handleAlignmentMethod, supportedHandles]);
|
|
137
|
+
}, [handleClassName, handleSize, handleAlignmentMethod, supportedHandles, isDatabasesV2Enabled]);
|
|
136
138
|
var handleWidth = handlePositioning === 'adjacent' ? "var(--ds-space-100, 8px)" : "var(--ds-space-300, 24px)";
|
|
137
139
|
var baseHorizontalHandleStyles = {
|
|
138
140
|
width: handleWidth,
|
|
@@ -236,7 +238,7 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
236
238
|
}
|
|
237
239
|
return snapGap;
|
|
238
240
|
}, [snap, snapGap]);
|
|
239
|
-
var resolvedHeight =
|
|
241
|
+
var resolvedHeight = isDatabasesV2Enabled ? height !== null && height !== void 0 ? height : 'auto' : 'auto';
|
|
240
242
|
var resizerAutoSize = useMemo(function () {
|
|
241
243
|
return {
|
|
242
244
|
width: width !== null && width !== void 0 ? width : 'auto',
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "114.
|
|
24
|
+
var packageVersion = "114.42.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -95,7 +95,8 @@ export var Dropdown = /*#__PURE__*/function (_PureComponent) {
|
|
|
95
95
|
alignY = _this$props.alignY,
|
|
96
96
|
offset = _this$props.offset,
|
|
97
97
|
_this$props$shouldFit = _this$props.shouldFitContainer,
|
|
98
|
-
shouldFitContainer = _this$props$shouldFit === void 0 ? true : _this$props$shouldFit
|
|
98
|
+
shouldFitContainer = _this$props$shouldFit === void 0 ? true : _this$props$shouldFit,
|
|
99
|
+
testId = _this$props.testId;
|
|
99
100
|
return /*#__PURE__*/React.createElement(Popup, {
|
|
100
101
|
target: targetProp !== null && targetProp !== void 0 ? targetProp : alignDropdownWithParentElement ? // Ignored via go/ees005
|
|
101
102
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
@@ -128,7 +129,8 @@ export var Dropdown = /*#__PURE__*/function (_PureComponent) {
|
|
|
128
129
|
onOpenChange: onOpenChange,
|
|
129
130
|
position: popupPlacement.join(' '),
|
|
130
131
|
shouldFitContainer: shouldFitContainer,
|
|
131
|
-
id: dropdownListId
|
|
132
|
+
id: dropdownListId,
|
|
133
|
+
testId: testId
|
|
132
134
|
}, children))));
|
|
133
135
|
}
|
|
134
136
|
}, {
|
|
@@ -7,5 +7,9 @@ type ContextualTypeaheadAcceptedAttributes = {
|
|
|
7
7
|
typedLength: number;
|
|
8
8
|
};
|
|
9
9
|
type ContextualTypeaheadAcceptedAEP = TrackAEP<ACTION.SUGGESTION_INSERTED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, ContextualTypeaheadAcceptedAttributes, undefined>;
|
|
10
|
-
|
|
10
|
+
type ContextualTypeaheadDismissedAttributes = {
|
|
11
|
+
reason: 'escape' | 'blur';
|
|
12
|
+
};
|
|
13
|
+
type ContextualTypeaheadDismissedAEP = TrackAEP<ACTION.SUGGESTION_DISMISSED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, ContextualTypeaheadDismissedAttributes, undefined>;
|
|
14
|
+
export type ContextualTypeaheadEventPayload = ContextualTypeaheadViewedAEP | ContextualTypeaheadAcceptedAEP | ContextualTypeaheadDismissedAEP;
|
|
11
15
|
export {};
|
|
@@ -68,11 +68,6 @@ export declare const markdownModeMessages: {
|
|
|
68
68
|
description: string;
|
|
69
69
|
id: string;
|
|
70
70
|
};
|
|
71
|
-
confirmDialogToRichTextInstantEdits: {
|
|
72
|
-
defaultMessage: string;
|
|
73
|
-
description: string;
|
|
74
|
-
id: string;
|
|
75
|
-
};
|
|
76
71
|
confirmDialogToRichTextStandardTools: {
|
|
77
72
|
defaultMessage: string;
|
|
78
73
|
description: string;
|
|
@@ -184,6 +184,36 @@ export type FloatingToolbarInput<T extends Object> = {
|
|
|
184
184
|
title?: string;
|
|
185
185
|
type: 'input';
|
|
186
186
|
};
|
|
187
|
+
export type FloatingToolbarCustomRenderContext = {
|
|
188
|
+
/**
|
|
189
|
+
* Element used as the boundary for positioning floating toolbar popups.
|
|
190
|
+
* Custom toolbar items should pass this through to editor popup/dropdown primitives
|
|
191
|
+
* so their content stays within the same visual constraints as built-in toolbar items.
|
|
192
|
+
*/
|
|
193
|
+
popupsBoundariesElement?: HTMLElement;
|
|
194
|
+
/**
|
|
195
|
+
* Element that editor popups should be mounted into.
|
|
196
|
+
* Use this when rendering custom dropdown or popup content outside the editor DOM
|
|
197
|
+
* to avoid editor stacking-context issues.
|
|
198
|
+
*/
|
|
199
|
+
popupsMountPoint?: HTMLElement;
|
|
200
|
+
/**
|
|
201
|
+
* Scroll container that editor popups should track when recalculating position.
|
|
202
|
+
* Custom toolbar items should pass this through when they need popup content to
|
|
203
|
+
* remain visually attached to the floating toolbar while the editor scrolls.
|
|
204
|
+
*/
|
|
205
|
+
popupsScrollableElement?: HTMLElement;
|
|
206
|
+
/**
|
|
207
|
+
* Whether the floating toolbar can scroll its own contents.
|
|
208
|
+
*/
|
|
209
|
+
scrollable?: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* Temporarily disables or re-enables parent toolbar scrolling.
|
|
212
|
+
* Custom dropdowns should call this while open when they need keyboard or pointer
|
|
213
|
+
* interaction to stay inside the dropdown rather than moving the toolbar contents.
|
|
214
|
+
*/
|
|
215
|
+
setDisableParentScroll?: (disabled: boolean) => void;
|
|
216
|
+
};
|
|
187
217
|
export type FloatingToolbarCustom<T extends Object> = {
|
|
188
218
|
/**
|
|
189
219
|
* By default -- the floating toolbar supports navigating between
|
|
@@ -198,7 +228,7 @@ export type FloatingToolbarCustom<T extends Object> = {
|
|
|
198
228
|
disableArrowNavigation?: boolean;
|
|
199
229
|
fallback: Array<FloatingToolbarFallbackItem<T>>;
|
|
200
230
|
hidden?: boolean;
|
|
201
|
-
render: (view?: EditorView, idx?: number, dispatchAnalyticsEvent?: DispatchAnalyticsEvent) => React.ReactNode;
|
|
231
|
+
render: (view?: EditorView, idx?: number, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, context?: FloatingToolbarCustomRenderContext) => React.ReactNode;
|
|
202
232
|
supportsViewMode?: boolean;
|
|
203
233
|
type: 'custom';
|
|
204
234
|
};
|
|
@@ -13,7 +13,7 @@ export type { FeatureFlags, FeatureFlagKey, GetEditorFeatureFlags } from './feat
|
|
|
13
13
|
export type { Browsers, Range, DisableSpellcheckByBrowser } from './supported-browsers';
|
|
14
14
|
export type { EditorContainerWidth, GetEditorContainerWidth } from './editor-container-width';
|
|
15
15
|
export type { EmptyStateHandler, EmptyStateHandlerParams } from './empty-state-handler';
|
|
16
|
-
export type { RenderOptionsPropsT, DropdownOptionT, DropdownOptions, ExtensionDropdownOptions, SelectOption, ButtonAppearance, Icon, RenderOptionsProps, AlignType, ConfirmDialogChildInfo, ConfirmDialogOptions, ConfirmationDialogProps, FloatingToolbarButton, FloatingToolbarCopyButton, FloatingToolbarInput, FloatingToolbarCustom, FloatingToolbarListPicker, FloatingToolbarColorPicker, FloatingToolbarEmojiPicker, FloatingToolbarDatePicker, FloatingToolbarSelect, FloatingToolbarSeparator, FloatingToolbarDropdown, FloatingToolbarFallbackItem, FloatingToolbarItem, FloatingToolbarConfig, FloatingToolbarHandler, typeOption, FloatingToolbarOverflowDropdown, FloatingToolbarOverflowDropdownOptions, OverflowDropdownHeading, OverflowDropdownOption, } from './floating-toolbar';
|
|
16
|
+
export type { RenderOptionsPropsT, DropdownOptionT, DropdownOptions, ExtensionDropdownOptions, SelectOption, ButtonAppearance, Icon, RenderOptionsProps, AlignType, ConfirmDialogChildInfo, ConfirmDialogOptions, ConfirmationDialogProps, FloatingToolbarButton, FloatingToolbarCopyButton, FloatingToolbarInput, FloatingToolbarCustom, FloatingToolbarCustomRenderContext, FloatingToolbarListPicker, FloatingToolbarColorPicker, FloatingToolbarEmojiPicker, FloatingToolbarDatePicker, FloatingToolbarSelect, FloatingToolbarSeparator, FloatingToolbarDropdown, FloatingToolbarFallbackItem, FloatingToolbarItem, FloatingToolbarConfig, FloatingToolbarHandler, typeOption, FloatingToolbarOverflowDropdown, FloatingToolbarOverflowDropdownOptions, OverflowDropdownHeading, OverflowDropdownOption, } from './floating-toolbar';
|
|
17
17
|
export type { MarkOptions, NodeOptions } from './copy-button';
|
|
18
18
|
export type { ContextPanelHandler } from './context-panel';
|
|
19
19
|
export type { EditorAppearance, EditorContentMode } from './editor-appearance';
|
|
@@ -7,5 +7,9 @@ type ContextualTypeaheadAcceptedAttributes = {
|
|
|
7
7
|
typedLength: number;
|
|
8
8
|
};
|
|
9
9
|
type ContextualTypeaheadAcceptedAEP = TrackAEP<ACTION.SUGGESTION_INSERTED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, ContextualTypeaheadAcceptedAttributes, undefined>;
|
|
10
|
-
|
|
10
|
+
type ContextualTypeaheadDismissedAttributes = {
|
|
11
|
+
reason: 'escape' | 'blur';
|
|
12
|
+
};
|
|
13
|
+
type ContextualTypeaheadDismissedAEP = TrackAEP<ACTION.SUGGESTION_DISMISSED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, ContextualTypeaheadDismissedAttributes, undefined>;
|
|
14
|
+
export type ContextualTypeaheadEventPayload = ContextualTypeaheadViewedAEP | ContextualTypeaheadAcceptedAEP | ContextualTypeaheadDismissedAEP;
|
|
11
15
|
export {};
|
|
@@ -68,11 +68,6 @@ export declare const markdownModeMessages: {
|
|
|
68
68
|
description: string;
|
|
69
69
|
id: string;
|
|
70
70
|
};
|
|
71
|
-
confirmDialogToRichTextInstantEdits: {
|
|
72
|
-
defaultMessage: string;
|
|
73
|
-
description: string;
|
|
74
|
-
id: string;
|
|
75
|
-
};
|
|
76
71
|
confirmDialogToRichTextStandardTools: {
|
|
77
72
|
defaultMessage: string;
|
|
78
73
|
description: string;
|
|
@@ -184,6 +184,36 @@ export type FloatingToolbarInput<T extends Object> = {
|
|
|
184
184
|
title?: string;
|
|
185
185
|
type: 'input';
|
|
186
186
|
};
|
|
187
|
+
export type FloatingToolbarCustomRenderContext = {
|
|
188
|
+
/**
|
|
189
|
+
* Element used as the boundary for positioning floating toolbar popups.
|
|
190
|
+
* Custom toolbar items should pass this through to editor popup/dropdown primitives
|
|
191
|
+
* so their content stays within the same visual constraints as built-in toolbar items.
|
|
192
|
+
*/
|
|
193
|
+
popupsBoundariesElement?: HTMLElement;
|
|
194
|
+
/**
|
|
195
|
+
* Element that editor popups should be mounted into.
|
|
196
|
+
* Use this when rendering custom dropdown or popup content outside the editor DOM
|
|
197
|
+
* to avoid editor stacking-context issues.
|
|
198
|
+
*/
|
|
199
|
+
popupsMountPoint?: HTMLElement;
|
|
200
|
+
/**
|
|
201
|
+
* Scroll container that editor popups should track when recalculating position.
|
|
202
|
+
* Custom toolbar items should pass this through when they need popup content to
|
|
203
|
+
* remain visually attached to the floating toolbar while the editor scrolls.
|
|
204
|
+
*/
|
|
205
|
+
popupsScrollableElement?: HTMLElement;
|
|
206
|
+
/**
|
|
207
|
+
* Whether the floating toolbar can scroll its own contents.
|
|
208
|
+
*/
|
|
209
|
+
scrollable?: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* Temporarily disables or re-enables parent toolbar scrolling.
|
|
212
|
+
* Custom dropdowns should call this while open when they need keyboard or pointer
|
|
213
|
+
* interaction to stay inside the dropdown rather than moving the toolbar contents.
|
|
214
|
+
*/
|
|
215
|
+
setDisableParentScroll?: (disabled: boolean) => void;
|
|
216
|
+
};
|
|
187
217
|
export type FloatingToolbarCustom<T extends Object> = {
|
|
188
218
|
/**
|
|
189
219
|
* By default -- the floating toolbar supports navigating between
|
|
@@ -198,7 +228,7 @@ export type FloatingToolbarCustom<T extends Object> = {
|
|
|
198
228
|
disableArrowNavigation?: boolean;
|
|
199
229
|
fallback: Array<FloatingToolbarFallbackItem<T>>;
|
|
200
230
|
hidden?: boolean;
|
|
201
|
-
render: (view?: EditorView, idx?: number, dispatchAnalyticsEvent?: DispatchAnalyticsEvent) => React.ReactNode;
|
|
231
|
+
render: (view?: EditorView, idx?: number, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, context?: FloatingToolbarCustomRenderContext) => React.ReactNode;
|
|
202
232
|
supportsViewMode?: boolean;
|
|
203
233
|
type: 'custom';
|
|
204
234
|
};
|