@atlaskit/editor-common 112.4.4 → 112.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/dist/cjs/ai-messages/ai.js +1 -1
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/card/LinkToolbarButtonGroup.js +1 -1
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +1 -1
- package/dist/cjs/element-browser/messages.js +3 -2
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +1 -1
- package/dist/cjs/extensibility/Extension/LegacyContentHeader/index.js +1 -1
- package/dist/cjs/extensibility/Extension/Lozenge/EditToggle.js +1 -1
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/cjs/extensibility/Extension/Lozenge/LozengeComponent.js +1 -1
- package/dist/cjs/extensibility/Extension/Lozenge/index.js +1 -1
- package/dist/cjs/extensibility/ExtensionNodeWrapper.js +1 -1
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +1 -1
- package/dist/cjs/extensions/extension-handlers.js +6 -2
- package/dist/cjs/floating-toolbar/DropdownMenuItem.js +1 -1
- package/dist/cjs/floating-toolbar/DropdownSeparator.js +1 -1
- package/dist/cjs/floating-toolbar/messages.js +3 -2
- package/dist/cjs/icons/shared/DynamicStrokeIconDecoration.js +1 -1
- package/dist/cjs/icons/shared/SteppedRainbowIconDecoration.js +1 -1
- package/dist/cjs/keymaps/index.js +1 -1
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +3 -2
- package/dist/cjs/link/ConfigureLinkOverlay/StyledButton.js +1 -1
- package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +6 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +13 -5
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +1 -1
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +2 -0
- package/dist/cjs/media-inline/inline-image-wrapper.js +1 -1
- package/dist/cjs/media-inline/media-inline-image-card.js +1 -1
- package/dist/cjs/media-inline/views/error-view.js +1 -1
- package/dist/cjs/media-inline/views/frame.js +1 -1
- package/dist/cjs/media-inline/views/icon-wrapper.js +1 -1
- package/dist/cjs/media-inline/views/loading-view.js +1 -1
- package/dist/cjs/messages/index.js +11 -2
- package/dist/cjs/messages/smart-link-changeboard.js +29 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/index.js +6 -2
- package/dist/cjs/resizer/Resizer.js +2 -1
- package/dist/cjs/table/SortingIcon.js +3 -1
- package/dist/cjs/ugc-tokens/editor-ugc-token-names.js +1 -0
- package/dist/cjs/ui/Announcer/announcer.js +2 -1
- package/dist/cjs/ui/AssistiveText/AssistiveText.js +1 -1
- package/dist/cjs/ui/Caption/index.js +4 -3
- package/dist/cjs/ui/ContextPanel/context.js +2 -2
- package/dist/cjs/ui/DropList/index.js +4 -3
- package/dist/cjs/ui/Emoji/index.js +2 -1
- package/dist/cjs/ui/Expand/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Button.js +5 -2
- package/dist/cjs/ui/FloatingToolbar/Separator.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/SmallerEditIcon.js +1 -1
- package/dist/cjs/ui/HoverLinkOverlay/index.js +1 -0
- package/dist/cjs/ui/MediaSingle/index.js +1 -1
- package/dist/cjs/ui/MediaSingle/styled.js +1 -1
- package/dist/cjs/ui/Messages/index.js +1 -1
- package/dist/cjs/ui/OverflowShadow/index.js +8 -6
- package/dist/cjs/ui/PanelTextInput/index.js +1 -1
- package/dist/cjs/ui/Popup/utils.js +11 -4
- package/dist/cjs/ui/TableSelector/index.js +1 -1
- package/dist/cjs/ui/TableSelector/table-selector.js +2 -1
- package/dist/cjs/ui/UnsupportedBlock/index.js +4 -1
- package/dist/cjs/ui/UnsupportedInline/index.js +4 -1
- package/dist/cjs/ui/WidthProvider/index.js +3 -3
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessages.js +3 -2
- package/dist/cjs/ui-color/ColorPalette/index.js +4 -1
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +3 -2
- package/dist/cjs/ui-menu/DropdownMenu/index.js +3 -1
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +1 -1
- package/dist/cjs/ui-menu/ToolbarButton/styles.js +4 -2
- package/dist/cjs/utils/hyperlink.js +10 -4
- package/dist/es2019/ai-messages/ai.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/card/LinkToolbarButtonGroup.js +1 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +1 -1
- package/dist/es2019/element-browser/messages.js +3 -2
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +1 -1
- package/dist/es2019/extensibility/Extension/LegacyContentHeader/index.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/EditToggle.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/LozengeComponent.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/index.js +1 -1
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +1 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +1 -1
- package/dist/es2019/extensions/extension-handlers.js +6 -2
- package/dist/es2019/floating-toolbar/DropdownMenuItem.js +1 -1
- package/dist/es2019/floating-toolbar/DropdownSeparator.js +1 -1
- package/dist/es2019/floating-toolbar/messages.js +3 -2
- package/dist/es2019/icons/shared/DynamicStrokeIconDecoration.js +1 -1
- package/dist/es2019/icons/shared/SteppedRainbowIconDecoration.js +1 -1
- package/dist/es2019/keymaps/index.js +1 -1
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +3 -2
- package/dist/es2019/link/ConfigureLinkOverlay/StyledButton.js +1 -1
- package/dist/es2019/link/LinkPicker/EditorLinkPicker/index.js +6 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +13 -5
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +1 -1
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +2 -0
- package/dist/es2019/media-inline/inline-image-wrapper.js +1 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +1 -1
- package/dist/es2019/media-inline/views/error-view.js +1 -1
- package/dist/es2019/media-inline/views/frame.js +1 -1
- package/dist/es2019/media-inline/views/icon-wrapper.js +1 -1
- package/dist/es2019/media-inline/views/loading-view.js +1 -1
- package/dist/es2019/messages/index.js +4 -2
- package/dist/es2019/messages/smart-link-changeboard.js +23 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/index.js +6 -2
- package/dist/es2019/resizer/Resizer.js +2 -1
- package/dist/es2019/table/SortingIcon.js +4 -1
- package/dist/es2019/ugc-tokens/editor-ugc-token-names.js +1 -0
- package/dist/es2019/ui/Announcer/announcer.js +2 -1
- package/dist/es2019/ui/AssistiveText/AssistiveText.js +1 -1
- package/dist/es2019/ui/Caption/index.js +5 -2
- package/dist/es2019/ui/ContextPanel/context.js +2 -4
- package/dist/es2019/ui/DropList/index.js +4 -3
- package/dist/es2019/ui/Emoji/index.js +2 -1
- package/dist/es2019/ui/Expand/index.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/Button.js +4 -1
- package/dist/es2019/ui/FloatingToolbar/Separator.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/SmallerEditIcon.js +1 -1
- package/dist/es2019/ui/HoverLinkOverlay/index.js +2 -0
- package/dist/es2019/ui/MediaSingle/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/styled.js +1 -1
- package/dist/es2019/ui/Messages/index.js +1 -1
- package/dist/es2019/ui/OverflowShadow/index.js +8 -6
- package/dist/es2019/ui/PanelTextInput/index.js +1 -1
- package/dist/es2019/ui/Popup/utils.js +11 -4
- package/dist/es2019/ui/TableSelector/index.js +1 -1
- package/dist/es2019/ui/TableSelector/table-selector.js +2 -1
- package/dist/es2019/ui/UnsupportedBlock/index.js +4 -1
- package/dist/es2019/ui/UnsupportedInline/index.js +4 -1
- package/dist/es2019/ui/WidthProvider/index.js +3 -5
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/paletteMessages.js +3 -2
- package/dist/es2019/ui-color/ColorPalette/index.js +4 -1
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +3 -2
- package/dist/es2019/ui-menu/DropdownMenu/index.js +3 -1
- package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +1 -1
- package/dist/es2019/ui-menu/ToolbarButton/styles.js +3 -2
- package/dist/es2019/utils/hyperlink.js +10 -4
- package/dist/esm/ai-messages/ai.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/card/LinkToolbarButtonGroup.js +1 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +1 -1
- package/dist/esm/element-browser/messages.js +3 -2
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +1 -1
- package/dist/esm/extensibility/Extension/LegacyContentHeader/index.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/EditToggle.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/LozengeComponent.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/index.js +1 -1
- package/dist/esm/extensibility/ExtensionNodeWrapper.js +1 -1
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +1 -1
- package/dist/esm/extensions/extension-handlers.js +6 -2
- package/dist/esm/floating-toolbar/DropdownMenuItem.js +1 -1
- package/dist/esm/floating-toolbar/DropdownSeparator.js +1 -1
- package/dist/esm/floating-toolbar/messages.js +3 -2
- package/dist/esm/icons/shared/DynamicStrokeIconDecoration.js +1 -1
- package/dist/esm/icons/shared/SteppedRainbowIconDecoration.js +1 -1
- package/dist/esm/keymaps/index.js +1 -1
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +3 -2
- package/dist/esm/link/ConfigureLinkOverlay/StyledButton.js +1 -1
- package/dist/esm/link/LinkPicker/EditorLinkPicker/index.js +6 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +13 -5
- package/dist/esm/link/LinkSearch/LinkSearchList.js +1 -1
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +2 -0
- package/dist/esm/media-inline/inline-image-wrapper.js +1 -1
- package/dist/esm/media-inline/media-inline-image-card.js +1 -1
- package/dist/esm/media-inline/views/error-view.js +1 -1
- package/dist/esm/media-inline/views/frame.js +1 -1
- package/dist/esm/media-inline/views/icon-wrapper.js +1 -1
- package/dist/esm/media-inline/views/loading-view.js +1 -1
- package/dist/esm/messages/index.js +4 -2
- package/dist/esm/messages/smart-link-changeboard.js +23 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/index.js +6 -2
- package/dist/esm/resizer/Resizer.js +2 -1
- package/dist/esm/table/SortingIcon.js +4 -1
- package/dist/esm/ugc-tokens/editor-ugc-token-names.js +1 -0
- package/dist/esm/ui/Announcer/announcer.js +2 -1
- package/dist/esm/ui/AssistiveText/AssistiveText.js +1 -1
- package/dist/esm/ui/Caption/index.js +5 -2
- package/dist/esm/ui/ContextPanel/context.js +2 -2
- package/dist/esm/ui/DropList/index.js +4 -3
- package/dist/esm/ui/Emoji/index.js +2 -1
- package/dist/esm/ui/Expand/index.js +1 -1
- package/dist/esm/ui/FloatingToolbar/Button.js +5 -2
- package/dist/esm/ui/FloatingToolbar/Separator.js +1 -1
- package/dist/esm/ui/FloatingToolbar/SmallerEditIcon.js +1 -1
- package/dist/esm/ui/HoverLinkOverlay/index.js +2 -0
- package/dist/esm/ui/MediaSingle/index.js +1 -1
- package/dist/esm/ui/MediaSingle/styled.js +3 -2
- package/dist/esm/ui/Messages/index.js +1 -1
- package/dist/esm/ui/OverflowShadow/index.js +8 -6
- package/dist/esm/ui/PanelTextInput/index.js +1 -1
- package/dist/esm/ui/Popup/utils.js +11 -4
- package/dist/esm/ui/TableSelector/index.js +1 -1
- package/dist/esm/ui/TableSelector/table-selector.js +2 -1
- package/dist/esm/ui/UnsupportedBlock/index.js +4 -1
- package/dist/esm/ui/UnsupportedInline/index.js +4 -1
- package/dist/esm/ui/WidthProvider/index.js +3 -3
- package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/paletteMessages.js +3 -2
- package/dist/esm/ui-color/ColorPalette/index.js +4 -1
- package/dist/esm/ui-menu/ColorPickerButton/index.js +3 -2
- package/dist/esm/ui-menu/DropdownMenu/index.js +6 -3
- package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +1 -1
- package/dist/esm/ui-menu/ToolbarButton/styles.js +3 -2
- package/dist/esm/utils/hyperlink.js +10 -4
- package/dist/types/ai-messages/ai-suggestions.d.ts +3 -3
- package/dist/types/analytics/analytics-queue.d.ts +2 -1
- package/dist/types/analytics/fire-analytics-event.d.ts +1 -1
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types/analytics/types/format-events.d.ts +5 -1
- package/dist/types/block-menu/rank-deprecated.d.ts +8 -60
- package/dist/types/card/link-toolbar-button-group-options.d.ts +19 -18
- package/dist/types/element-browser/components/CategoryList.d.ts +2 -2
- package/dist/types/element-browser/components/ElementList/ElementList.d.ts +2 -2
- package/dist/types/element-browser/components/ElementSearch.d.ts +3 -2
- package/dist/types/element-browser/components/StatelessElementBrowser.d.ts +2 -2
- package/dist/types/element-browser/constants.d.ts +2 -2
- package/dist/types/element-browser/hooks/use-focus.d.ts +2 -1
- package/dist/types/element-browser/messages.d.ts +2 -2
- package/dist/types/extensions/manifest-helpers.d.ts +2 -2
- package/dist/types/floating-toolbar/messages.d.ts +2 -2
- package/dist/types/guideline/snapping.d.ts +2 -1
- package/dist/types/keymaps/keymap.d.ts +1 -1
- package/dist/types/lazy-node-view/index.d.ts +1 -1
- package/dist/types/link/ConfigureLinkOverlay/Dropdown.d.ts +4 -3
- package/dist/types/link/ConfigureLinkOverlay/index.d.ts +3 -2
- package/dist/types/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.d.ts +2 -1
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +18 -18
- package/dist/types/link/LinkSearch/LinkSearchListItem.d.ts +2 -2
- package/dist/types/media-single/CommentBadge.d.ts +6 -1
- package/dist/types/messages/index.d.ts +3 -2
- package/dist/types/messages/smart-link-changeboard.d.ts +22 -0
- package/dist/types/messages/track-changes.d.ts +0 -5
- package/dist/types/react-node-view/index.d.ts +1 -1
- package/dist/types/react-node-view/onVisibleObserverFactory.d.ts +2 -1
- package/dist/types/resizer/Resizer.d.ts +2 -2
- package/dist/types/styles/shared/headings.d.ts +2 -1
- package/dist/types/styles/shared/media-single.d.ts +3 -2
- package/dist/types/styles/shared/native-anchor.d.ts +5 -3
- package/dist/types/styles/shared/resizer.d.ts +3 -3
- package/dist/types/styles/shared/table.d.ts +2 -1
- package/dist/types/styles/shared/tableCell.d.ts +2 -1
- package/dist/types/table/SortingIcon.d.ts +9 -4
- package/dist/types/ugc-tokens/editor-ugc-token-names.d.ts +1 -0
- package/dist/types/ui/Announcer/announcer.d.ts +2 -2
- package/dist/types/ui/BaseTheme/index.d.ts +1 -1
- package/dist/types/ui/Caption/index.d.ts +3 -3
- package/dist/types/ui/ContextPanel/context.d.ts +2 -1
- package/dist/types/ui/DropList/index.d.ts +4 -4
- package/dist/types/ui/EditorContext/index.d.ts +1 -1
- package/dist/types/ui/Emoji/index.d.ts +2 -2
- package/dist/types/ui/Expand/index.d.ts +1 -1
- package/dist/types/ui/FloatingToolbar/Button.d.ts +2 -2
- package/dist/types/ui/Layer/internal/helpers.d.ts +2 -1
- package/dist/types/ui/MediaSingle/styled.d.ts +3 -3
- package/dist/types/ui/ResizerLegacy/styled.d.ts +2 -1
- package/dist/types/ui/TableSelector/table-selector.d.ts +5 -5
- package/dist/types/ui/UnsupportedBlock/index.d.ts +3 -3
- package/dist/types/ui/UnsupportedInline/index.d.ts +3 -3
- package/dist/types/ui/WidthProvider/index.d.ts +2 -1
- package/dist/types/ui-color/ColorPalette/Palettes/paletteMessages.d.ts +2 -2
- package/dist/types/ui-color/ColorPalette/Palettes/textColorPalette.d.ts +4 -3
- package/dist/types/ui-color/ColorPalette/index.d.ts +3 -3
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +4 -4
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +1 -1
- package/dist/types/ui-menu/ToolbarButton/styles.d.ts +2 -2
- package/dist/types/user-intent/UserIntentPopupWrapper.d.ts +2 -1
- package/dist/types/utils/breakout.d.ts +2 -2
- package/dist/types/utils/create-wrap-selection-transaction.d.ts +2 -2
- package/dist/types/utils/referentiality.d.ts +2 -2
- package/dist/types-ts4.5/ai-messages/ai-suggestions.d.ts +3 -3
- package/dist/types-ts4.5/analytics/analytics-queue.d.ts +2 -1
- package/dist/types-ts4.5/analytics/fire-analytics-event.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/format-events.d.ts +5 -1
- package/dist/types-ts4.5/block-menu/rank-deprecated.d.ts +8 -60
- package/dist/types-ts4.5/card/link-toolbar-button-group-options.d.ts +19 -18
- package/dist/types-ts4.5/element-browser/components/CategoryList.d.ts +2 -2
- package/dist/types-ts4.5/element-browser/components/ElementList/ElementList.d.ts +2 -2
- package/dist/types-ts4.5/element-browser/components/ElementSearch.d.ts +3 -2
- package/dist/types-ts4.5/element-browser/components/StatelessElementBrowser.d.ts +2 -2
- package/dist/types-ts4.5/element-browser/constants.d.ts +2 -2
- package/dist/types-ts4.5/element-browser/hooks/use-focus.d.ts +2 -1
- package/dist/types-ts4.5/element-browser/messages.d.ts +2 -2
- package/dist/types-ts4.5/extensions/manifest-helpers.d.ts +2 -2
- package/dist/types-ts4.5/floating-toolbar/messages.d.ts +2 -2
- package/dist/types-ts4.5/guideline/snapping.d.ts +2 -1
- package/dist/types-ts4.5/keymaps/keymap.d.ts +1 -1
- package/dist/types-ts4.5/lazy-node-view/index.d.ts +1 -1
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/Dropdown.d.ts +4 -3
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/index.d.ts +3 -2
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.d.ts +2 -1
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +18 -18
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchListItem.d.ts +2 -2
- package/dist/types-ts4.5/media-single/CommentBadge.d.ts +6 -1
- package/dist/types-ts4.5/messages/index.d.ts +3 -2
- package/dist/types-ts4.5/messages/smart-link-changeboard.d.ts +22 -0
- package/dist/types-ts4.5/messages/track-changes.d.ts +0 -5
- package/dist/types-ts4.5/react-node-view/index.d.ts +1 -1
- package/dist/types-ts4.5/react-node-view/onVisibleObserverFactory.d.ts +2 -1
- package/dist/types-ts4.5/resizer/Resizer.d.ts +2 -2
- package/dist/types-ts4.5/styles/shared/headings.d.ts +2 -1
- package/dist/types-ts4.5/styles/shared/media-single.d.ts +3 -2
- package/dist/types-ts4.5/styles/shared/native-anchor.d.ts +5 -3
- package/dist/types-ts4.5/styles/shared/resizer.d.ts +3 -3
- package/dist/types-ts4.5/styles/shared/table.d.ts +2 -1
- package/dist/types-ts4.5/styles/shared/tableCell.d.ts +2 -1
- package/dist/types-ts4.5/table/SortingIcon.d.ts +9 -4
- package/dist/types-ts4.5/ugc-tokens/editor-ugc-token-names.d.ts +1 -0
- package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +2 -2
- package/dist/types-ts4.5/ui/BaseTheme/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Caption/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/ContextPanel/context.d.ts +2 -1
- package/dist/types-ts4.5/ui/DropList/index.d.ts +4 -4
- package/dist/types-ts4.5/ui/EditorContext/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Emoji/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/Expand/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +2 -2
- package/dist/types-ts4.5/ui/Layer/internal/helpers.d.ts +2 -1
- package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +3 -3
- package/dist/types-ts4.5/ui/ResizerLegacy/styled.d.ts +2 -1
- package/dist/types-ts4.5/ui/TableSelector/table-selector.d.ts +5 -5
- package/dist/types-ts4.5/ui/UnsupportedBlock/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +2 -1
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/paletteMessages.d.ts +2 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/textColorPalette.d.ts +4 -3
- package/dist/types-ts4.5/ui-color/ColorPalette/index.d.ts +3 -3
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +4 -4
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/ToolbarButton/styles.d.ts +2 -2
- package/dist/types-ts4.5/user-intent/UserIntentPopupWrapper.d.ts +2 -1
- package/dist/types-ts4.5/utils/breakout.d.ts +2 -2
- package/dist/types-ts4.5/utils/create-wrap-selection-transaction.d.ts +2 -2
- package/dist/types-ts4.5/utils/referentiality.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
+
export declare const tableCellBackgroundStyleOverride: () => SerializedStyles;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import type { FC, ComponentType } from 'react';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
2
7
|
import { SortOrder } from '../types';
|
|
3
8
|
export declare enum StatusClassNames {
|
|
4
9
|
ASC = "sorting-icon-svg__asc",
|
|
@@ -12,7 +17,7 @@ type SortingIconProps = {
|
|
|
12
17
|
onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
13
18
|
sortOrdered?: SortOrder;
|
|
14
19
|
} & WrappedComponentProps;
|
|
15
|
-
declare const
|
|
16
|
-
WrappedComponent:
|
|
20
|
+
declare const _default_1: FC<WithIntlProps<SortingIconProps>> & {
|
|
21
|
+
WrappedComponent: ComponentType<SortingIconProps>;
|
|
17
22
|
};
|
|
18
|
-
export default
|
|
23
|
+
export default _default_1;
|
|
@@ -19,5 +19,5 @@ type AnnouncerProps = {
|
|
|
19
19
|
/** Text message that will be announced */
|
|
20
20
|
text: string;
|
|
21
21
|
};
|
|
22
|
-
declare const
|
|
23
|
-
export default
|
|
22
|
+
declare const _default_1: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<AnnouncerProps>, "ref"> & React.RefAttributes<HTMLDivElement>>>;
|
|
23
|
+
export default _default_1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Breakpoints } from '../WidthProvider';
|
|
3
|
-
export declare function mapBreakpointToLayoutMaxWidth(breakpoint: Breakpoints):
|
|
3
|
+
export declare function mapBreakpointToLayoutMaxWidth(breakpoint: Breakpoints): 680 | 760;
|
|
4
4
|
type BaseThemeWrapperProps = {
|
|
5
5
|
baseFontSize?: number;
|
|
6
6
|
breakpoint: Breakpoints;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
7
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
8
8
|
type Props = {
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
dataAttributes?: {
|
|
@@ -16,7 +16,7 @@ type Props = {
|
|
|
16
16
|
export declare class CaptionComponent extends React.Component<Props & WrappedComponentProps> {
|
|
17
17
|
render(): jsx.JSX.Element;
|
|
18
18
|
}
|
|
19
|
-
declare const
|
|
19
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
20
20
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
21
21
|
};
|
|
22
|
-
export default
|
|
22
|
+
export default _default_1;
|
|
@@ -20,5 +20,6 @@ export declare class ContextPanelWidthProvider extends React.Component<any, Cont
|
|
|
20
20
|
broadcastPosition: (positionedOverEditor: boolean) => void;
|
|
21
21
|
render(): React.JSX.Element;
|
|
22
22
|
}
|
|
23
|
-
declare const Provider: React.Provider<ContextPanelContext
|
|
23
|
+
declare const Provider: React.Provider<ContextPanelContext>;
|
|
24
|
+
declare const Consumer: React.Consumer<ContextPanelContext>;
|
|
24
25
|
export { Provider as ContextPanelProvider, Consumer as ContextPanelConsumer };
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import type { ReactNode } from 'react';
|
|
6
|
-
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
5
|
+
import type { ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
|
|
6
|
+
import type { WithAnalyticsEventsProps, WithContextProps } from '@atlaskit/analytics-next';
|
|
7
7
|
export interface Props extends WithAnalyticsEventsProps {
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
id?: string;
|
|
@@ -20,5 +20,5 @@ export type OpenChangedEvent = {
|
|
|
20
20
|
event: MouseEvent | KeyboardEvent;
|
|
21
21
|
isOpen: boolean;
|
|
22
22
|
};
|
|
23
|
-
declare const
|
|
24
|
-
export default
|
|
23
|
+
declare const _default_1: ForwardRefExoticComponent<Omit<Omit<Props, keyof WithAnalyticsEventsProps> & RefAttributes<unknown> & WithContextProps, "ref"> & RefAttributes<unknown>>;
|
|
24
|
+
export default _default_1;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const EditorContext: React.Context<
|
|
2
|
+
export declare const EditorContext: React.Context<Record<string, unknown>>;
|
|
@@ -10,5 +10,5 @@ export interface EmojiProps extends EmojiId {
|
|
|
10
10
|
resourceConfig?: EmojiResourceConfig;
|
|
11
11
|
showTooltip?: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare const
|
|
14
|
-
export default
|
|
13
|
+
declare const _default_1: React.MemoExoticComponent<({ allowTextFallback, shortName, id, fallback, fitToHeight, showTooltip, resourceConfig, emojiProvider, providers, }: EmojiProps) => React.JSX.Element>;
|
|
14
|
+
export default _default_1;
|
|
@@ -36,4 +36,4 @@ export declare const ExpandIconWrapper: ({ children, expanded, }: React.HTMLAttr
|
|
|
36
36
|
expanded: boolean;
|
|
37
37
|
}) => jsx.JSX.Element;
|
|
38
38
|
export declare const expandLayoutWrapperStyle: SerializedStyles;
|
|
39
|
-
export declare const ExpandLayoutWrapperWithRef: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<
|
|
39
|
+
export declare const ExpandLayoutWrapperWithRef: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<unknown>>;
|
|
@@ -36,5 +36,5 @@ export interface Props {
|
|
|
36
36
|
tooltipContent?: TooltipProps['content'];
|
|
37
37
|
tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
|
|
38
38
|
}
|
|
39
|
-
declare const
|
|
40
|
-
export default
|
|
39
|
+
declare const _default_1: React.FC<Omit<Props & React.RefAttributes<HTMLElement>, "ref"> & Props & React.RefAttributes<HTMLElement>>;
|
|
40
|
+
export default _default_1;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Placement } from 'popper.js';
|
|
1
2
|
export declare const POSITION_ATTRIBUTE_ENUM: {
|
|
2
3
|
values: string[];
|
|
3
4
|
default: string;
|
|
4
5
|
};
|
|
5
|
-
export declare function positionPropToPopperPosition(position: string):
|
|
6
|
+
export declare function positionPropToPopperPosition(position: string): Placement;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { RefObject } from 'react';
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { jsx } from '@emotion/react';
|
|
7
|
+
import { jsx, type SerializedStyles } from '@emotion/react';
|
|
8
8
|
import type { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
9
9
|
/**
|
|
10
10
|
* Calculates the image width for non-resized images.
|
|
@@ -90,13 +90,13 @@ export interface MediaSingleWrapperProps {
|
|
|
90
90
|
* @param root0.isInRenderer
|
|
91
91
|
* @example
|
|
92
92
|
*/
|
|
93
|
-
export declare const MediaSingleDimensionHelper: ({ containerWidth, fullWidthMode, isResized, layout, mediaSingleWidth, width, isExtendedResizeExperienceOn, isNestedNode, isInsideOfInlineExtension, isInRenderer, }: MediaSingleWrapperProps) =>
|
|
93
|
+
export declare const MediaSingleDimensionHelper: ({ containerWidth, fullWidthMode, isResized, layout, mediaSingleWidth, width, isExtendedResizeExperienceOn, isNestedNode, isInsideOfInlineExtension, isInRenderer, }: MediaSingleWrapperProps) => SerializedStyles;
|
|
94
94
|
export interface MediaWrapperProps {
|
|
95
95
|
hasFallbackContainer?: boolean;
|
|
96
96
|
height?: number;
|
|
97
97
|
paddingBottom?: string;
|
|
98
98
|
}
|
|
99
|
-
export declare const mediaWrapperStyle: (props: MediaWrapperProps) =>
|
|
99
|
+
export declare const mediaWrapperStyle: (props: MediaWrapperProps) => SerializedStyles;
|
|
100
100
|
export declare const MediaWrapper: {
|
|
101
101
|
({ children, ...rest }: React.HTMLAttributes<HTMLDivElement> & MediaWrapperProps): jsx.JSX.Element;
|
|
102
102
|
displayName: string;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
1
2
|
import { type MediaSingleWrapperProps as MediaSingleDimensionHelperProps } from '../MediaSingle/styled';
|
|
2
|
-
export declare const wrapperStyle: (props: MediaSingleDimensionHelperProps) =>
|
|
3
|
+
export declare const wrapperStyle: (props: MediaSingleDimensionHelperProps) => SerializedStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { KeyboardEventHandler, SyntheticEvent } from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
1
|
+
import type { ComponentType, FC, KeyboardEventHandler, SyntheticEvent } from 'react';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
export declare const TABLE_SELECTOR_BUTTON_GAP = 2;
|
|
4
4
|
export declare const TABLE_SELECTOR_BUTTON_SIZE = 17;
|
|
5
5
|
export interface TableSelectorButtonProps {
|
|
@@ -25,7 +25,7 @@ interface TableSelectorPopupProps {
|
|
|
25
25
|
selectedCol: number;
|
|
26
26
|
selectedRow: number;
|
|
27
27
|
}
|
|
28
|
-
declare const
|
|
29
|
-
WrappedComponent:
|
|
28
|
+
declare const _default_1: FC<WithIntlProps<TableSelectorPopupProps & WrappedComponentProps>> & {
|
|
29
|
+
WrappedComponent: ComponentType<TableSelectorPopupProps & WrappedComponentProps>;
|
|
30
30
|
};
|
|
31
|
-
export default
|
|
31
|
+
export default _default_1;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
import type { UnsupportedContentTooltipPayload } from '../../utils';
|
|
9
9
|
export interface Props {
|
|
@@ -11,7 +11,7 @@ export interface Props {
|
|
|
11
11
|
dispatchAnalyticsEvent?: (payload: UnsupportedContentTooltipPayload) => void;
|
|
12
12
|
node?: PMNode;
|
|
13
13
|
}
|
|
14
|
-
declare const
|
|
14
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
15
15
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
16
16
|
};
|
|
17
|
-
export default
|
|
17
|
+
export default _default_1;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
import type { UnsupportedContentTooltipPayload } from '../../utils';
|
|
9
9
|
export interface Props {
|
|
@@ -11,7 +11,7 @@ export interface Props {
|
|
|
11
11
|
dispatchAnalyticsEvent?: (payload: UnsupportedContentTooltipPayload) => void;
|
|
12
12
|
node?: PMNode;
|
|
13
13
|
}
|
|
14
|
-
declare const
|
|
14
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
15
15
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
16
16
|
};
|
|
17
|
-
export default
|
|
17
|
+
export default _default_1;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
+
import { type MemoizedFn } from 'memoize-one';
|
|
7
8
|
export type Breakpoints = 'S' | 'M' | 'L';
|
|
8
9
|
export type WidthConsumerContext = {
|
|
9
10
|
breakpoint: Breakpoints;
|
|
@@ -33,6 +34,6 @@ type WidthProviderProps = {
|
|
|
33
34
|
*
|
|
34
35
|
* @returns {number} The width of the document body or 0 if the document is undefined.
|
|
35
36
|
*/
|
|
36
|
-
export declare const getBodyWidth:
|
|
37
|
+
export declare const getBodyWidth: MemoizedFn<() => number>;
|
|
37
38
|
export declare const WidthProvider: ({ className, shouldCheckExistingValue, children, }: WidthProviderProps) => jsx.JSX.Element;
|
|
38
39
|
export { Consumer as WidthConsumer };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { MessageDescriptor } from 'react-intl-next';
|
|
1
2
|
import type { PaletteColor } from './type';
|
|
2
3
|
export declare const mapPaletteColor: (label: string, color: string) => {
|
|
3
|
-
value: string;
|
|
4
|
-
label: string;
|
|
5
4
|
border: "var(--ds-border)";
|
|
6
|
-
|
|
5
|
+
label: string;
|
|
6
|
+
message: MessageDescriptor | undefined;
|
|
7
|
+
value: string;
|
|
7
8
|
};
|
|
8
9
|
export declare const textColorPalette: Array<PaletteColor>;
|
|
9
10
|
export declare const textColorPaletteTokenBorders: Array<PaletteColor>;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import type { PaletteColor, PaletteTooltipMessages } from './Palettes/type';
|
|
8
8
|
interface Props {
|
|
9
9
|
className?: string;
|
|
@@ -36,7 +36,7 @@ interface Props {
|
|
|
36
36
|
};
|
|
37
37
|
selectedColor: string | null;
|
|
38
38
|
}
|
|
39
|
-
declare const
|
|
39
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
40
40
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
41
41
|
};
|
|
42
|
-
export default
|
|
42
|
+
export default _default_1;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
6
|
+
import type { WithAnalyticsEventsProps, WithContextProps } from '@atlaskit/analytics-next';
|
|
7
7
|
import type { PaletteColor, PaletteTooltipMessages } from '../../ui-color';
|
|
8
8
|
import type { Position as PopupPosition } from '../../ui/Popup/utils';
|
|
9
|
-
declare const
|
|
9
|
+
declare const _default_1: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
10
10
|
absoluteOffset?: PopupPosition;
|
|
11
11
|
alignX?: "left" | "right" | "center" | "end";
|
|
12
12
|
colorPalette: PaletteColor[];
|
|
@@ -30,5 +30,5 @@ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
30
30
|
*/
|
|
31
31
|
skipFocusButtonAfterPick?: boolean;
|
|
32
32
|
title?: string;
|
|
33
|
-
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<
|
|
34
|
-
export default
|
|
33
|
+
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<unknown> & WithContextProps, "ref"> & React.RefAttributes<unknown>>;
|
|
34
|
+
export default _default_1;
|
|
@@ -60,5 +60,5 @@ declare const ToolbarButton: React.ForwardRefExoticComponent<{
|
|
|
60
60
|
testId?: string;
|
|
61
61
|
title?: React.ReactNode;
|
|
62
62
|
titlePosition?: PositionType;
|
|
63
|
-
} & Pick<ButtonProps, "
|
|
63
|
+
} & Pick<ButtonProps, "children" | "rel" | "aria-controls" | "aria-label" | "onFocus" | "onBlur" | "onMouseEnter" | "onMouseLeave"> & React.RefAttributes<HTMLElement>>;
|
|
64
64
|
export default ToolbarButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ButtonProps } from '@atlaskit/button/standard-button';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const _default_1: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLElement>>;
|
|
4
|
+
export default _default_1;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
1
2
|
import type { ExtractInjectionAPI, NextEditorPlugin } from '../types';
|
|
2
3
|
import type { PopupUserIntent } from './types';
|
|
3
4
|
/**
|
|
@@ -8,4 +9,4 @@ export declare const UserIntentPopupWrapper: ({ userIntent, children, api, }: {
|
|
|
8
9
|
api: ExtractInjectionAPI<NextEditorPlugin<any, any>> | undefined | null;
|
|
9
10
|
children: React.ReactNode;
|
|
10
11
|
userIntent?: PopupUserIntent;
|
|
11
|
-
}) =>
|
|
12
|
+
}) => ReactNode;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { BreakoutMarkAttrs } from '@atlaskit/adf-schema';
|
|
2
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { NodeType, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { BreakoutMode } from '../types/breakout';
|
|
4
4
|
import { mapBreakpointToLayoutMaxWidth } from '../ui/BaseTheme';
|
|
5
5
|
import { getBreakpoint } from '../ui/WidthProvider';
|
|
6
6
|
export declare const breakoutResizableNodes: string[];
|
|
7
|
-
export declare const getBreakoutResizableNodeTypes: (schema: Schema) => Set<
|
|
7
|
+
export declare const getBreakoutResizableNodeTypes: (schema: Schema) => Set<NodeType>;
|
|
8
8
|
/**
|
|
9
9
|
* Variables required to construct a context for breakout ssr inline script.
|
|
10
10
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { type EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import { type EditorState, type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
/**
|
|
4
4
|
* This function creates a new transaction that wraps the current selection
|
|
5
5
|
* in the specified node type if it results in a valid transaction.
|
|
@@ -12,7 +12,7 @@ export declare function createWrapSelectionTransaction({ state, type, nodeAttrib
|
|
|
12
12
|
nodeAttributes?: Record<string, any>;
|
|
13
13
|
state: EditorState;
|
|
14
14
|
type: NodeType;
|
|
15
|
-
}):
|
|
15
|
+
}): Transaction;
|
|
16
16
|
export declare function getWrappingOptions(state: EditorState, type: NodeType, nodeAttributes?: Record<string, any>): {
|
|
17
17
|
range: any;
|
|
18
18
|
wrapping: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FragmentAttributes } from '@atlaskit/adf-schema/schema';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { ConfirmDialogChildInfo } from '../types';
|
|
5
5
|
type LocalId = FragmentAttributes['localId'];
|
|
6
6
|
type NodeAndTargetLinkages = {
|
|
@@ -12,7 +12,7 @@ type NodeAndTargetLinkages = {
|
|
|
12
12
|
};
|
|
13
13
|
export declare const isReferencedSource: (state: EditorState, node?: PMNode) => boolean;
|
|
14
14
|
export declare const getConnections: (state: EditorState) => Record<string, NodeAndTargetLinkages>;
|
|
15
|
-
export declare const removeConnectedNodes: (state: EditorState, node?: PMNode) =>
|
|
15
|
+
export declare const removeConnectedNodes: (state: EditorState, node?: PMNode) => Transaction;
|
|
16
16
|
export declare const getChildrenInfo: (state: EditorState, node?: PMNode) => ConfirmDialogChildInfo[];
|
|
17
17
|
export declare const getNodeName: (state: EditorState, node?: PMNode) => string;
|
|
18
18
|
export {};
|
|
@@ -69,17 +69,17 @@ export declare const aiSuggestionsMessages: {
|
|
|
69
69
|
defaultMessage: string;
|
|
70
70
|
description: string;
|
|
71
71
|
};
|
|
72
|
-
|
|
72
|
+
cardExpandButtonLabel: {
|
|
73
73
|
id: string;
|
|
74
74
|
defaultMessage: string;
|
|
75
75
|
description: string;
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
cardCollapseButtonLabel: {
|
|
78
78
|
id: string;
|
|
79
79
|
defaultMessage: string;
|
|
80
80
|
description: string;
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
cardCloseButtonLabel: {
|
|
83
83
|
id: string;
|
|
84
84
|
defaultMessage: string;
|
|
85
85
|
description: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { type MemoizedFn } from 'memoize-one';
|
|
1
2
|
export declare class AnalyticsQueue {
|
|
2
3
|
private readonly tasks;
|
|
3
4
|
private running;
|
|
4
|
-
static get:
|
|
5
|
+
static get: MemoizedFn<() => AnalyticsQueue>;
|
|
5
6
|
private constructor();
|
|
6
7
|
private request;
|
|
7
8
|
private pending;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
2
2
|
import type { FireAnalyticsEvent } from './types/events';
|
|
3
|
-
export declare const editorAnalyticsChannel
|
|
3
|
+
export declare const editorAnalyticsChannel: FabricChannel.editor;
|
|
4
4
|
export declare const fireAnalyticsEvent: FireAnalyticsEvent;
|
|
@@ -433,6 +433,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
433
433
|
FORMAT_CODE = "code",
|
|
434
434
|
FORMAT_COLOR = "color",
|
|
435
435
|
FORMAT_HEADING = "heading",
|
|
436
|
+
FORMAT_SMALL_TEXT = "smallText",
|
|
436
437
|
FORMAT_INDENT = "indentation",
|
|
437
438
|
FORMAT_ITALIC = "italic",
|
|
438
439
|
FORMAT_LIST_BULLET = "bulletedList",
|
|
@@ -31,6 +31,10 @@ type FormatHeadingAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_HEADING, {
|
|
|
31
31
|
newHeadingLevel: HeadingLevelsAndNormalText;
|
|
32
32
|
previousHeadingLevel?: HeadingLevelsAndNormalText;
|
|
33
33
|
}>;
|
|
34
|
+
type FormatSmallTextAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_SMALL_TEXT, {
|
|
35
|
+
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FLOATING_TB;
|
|
36
|
+
previousBlockType?: string;
|
|
37
|
+
}>;
|
|
34
38
|
type FormatBlockQuoteAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_BLOCK_QUOTE, {
|
|
35
39
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FLOATING_TB;
|
|
36
40
|
}>;
|
|
@@ -47,5 +51,5 @@ type FormatColorAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_COLOR, {
|
|
|
47
51
|
type FormatListAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER | ACTION_SUBJECT_ID.FORMAT_LIST_BULLET, {
|
|
48
52
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FLOATING_TB;
|
|
49
53
|
}>;
|
|
50
|
-
export type FormatEventPayload = FormatBasicAEP | FormatSuperSubAEP | FormatIndentationAEP | FormatHeadingAEP | FormatBlockQuoteAEP | FormatClearAEP | FormatColorAEP | FormatListAEP;
|
|
54
|
+
export type FormatEventPayload = FormatBasicAEP | FormatSuperSubAEP | FormatIndentationAEP | FormatHeadingAEP | FormatSmallTextAEP | FormatBlockQuoteAEP | FormatClearAEP | FormatColorAEP | FormatListAEP;
|
|
51
55
|
export {};
|
|
@@ -1,92 +1,40 @@
|
|
|
1
|
-
import { DELETE_MENU_ITEM, DELETE_MENU_SECTION, TRANSFORM_MENU_ITEM } from './key';
|
|
2
|
-
import { FORMAT_HEADING_1_MENU_ITEM, FORMAT_HEADING_2_MENU_ITEM, FORMAT_HEADING_3_MENU_ITEM, FORMAT_HEADING_4_MENU_ITEM, FORMAT_HEADING_5_MENU_ITEM, FORMAT_HEADING_6_MENU_ITEM, FORMAT_PARAGRAPH_MENU_ITEM, FORMAT_QUOTE_MENU_ITEM, FORMAT_EXPAND_MENU_ITEM, FORMAT_LAYOUT_MENU_ITEM, FORMAT_PANEL_MENU_ITEM, FORMAT_CODE_BLOCK_MENU_ITEM, FORMAT_BULLETED_LIST_MENU_ITEM, FORMAT_NUMBERED_LIST_MENU_ITEM, FORMAT_TASK_LIST_MENU_ITEM, COPY_LINK_MENU_ITEM, MOVE_UP_MENU_ITEM, MOVE_DOWN_MENU_ITEM, PRIMARY_MENU_SECTION, COPY_MENU_SECTION, FORMAT_MENU_ITEM, MOVE_UP_DOWN_MENU_SECTION, ADD_BLOCKS_MENU_SECTION, CREATE_SYNCED_BLOCK_MENU_ITEM } from './key-deprecated';
|
|
3
1
|
/**
|
|
4
2
|
* @private
|
|
5
3
|
* @deprecated
|
|
6
4
|
*/
|
|
7
|
-
export declare const FORMAT_NESTED_MENU_RANK: {
|
|
8
|
-
[FORMAT_PARAGRAPH_MENU_ITEM.key]: number;
|
|
9
|
-
[FORMAT_QUOTE_MENU_ITEM.key]: number;
|
|
10
|
-
[FORMAT_EXPAND_MENU_ITEM.key]: number;
|
|
11
|
-
[FORMAT_LAYOUT_MENU_ITEM.key]: number;
|
|
12
|
-
[FORMAT_PANEL_MENU_ITEM.key]: number;
|
|
13
|
-
[FORMAT_CODE_BLOCK_MENU_ITEM.key]: number;
|
|
14
|
-
[FORMAT_BULLETED_LIST_MENU_ITEM.key]: number;
|
|
15
|
-
[FORMAT_NUMBERED_LIST_MENU_ITEM.key]: number;
|
|
16
|
-
[FORMAT_TASK_LIST_MENU_ITEM.key]: number;
|
|
17
|
-
[FORMAT_HEADING_1_MENU_ITEM.key]: number;
|
|
18
|
-
[FORMAT_HEADING_2_MENU_ITEM.key]: number;
|
|
19
|
-
[FORMAT_HEADING_3_MENU_ITEM.key]: number;
|
|
20
|
-
[FORMAT_HEADING_4_MENU_ITEM.key]: number;
|
|
21
|
-
[FORMAT_HEADING_5_MENU_ITEM.key]: number;
|
|
22
|
-
[FORMAT_HEADING_6_MENU_ITEM.key]: number;
|
|
23
|
-
};
|
|
5
|
+
export declare const FORMAT_NESTED_MENU_RANK: {};
|
|
24
6
|
/**
|
|
25
7
|
* @private
|
|
26
8
|
* @deprecated
|
|
27
9
|
*/
|
|
28
|
-
export declare const FORMAT_NESTED_MENU_RANK_REVISED: {
|
|
29
|
-
[FORMAT_PARAGRAPH_MENU_ITEM.key]: number;
|
|
30
|
-
[FORMAT_QUOTE_MENU_ITEM.key]: number;
|
|
31
|
-
[FORMAT_EXPAND_MENU_ITEM.key]: number;
|
|
32
|
-
[FORMAT_LAYOUT_MENU_ITEM.key]: number;
|
|
33
|
-
[FORMAT_PANEL_MENU_ITEM.key]: number;
|
|
34
|
-
[FORMAT_CODE_BLOCK_MENU_ITEM.key]: number;
|
|
35
|
-
[FORMAT_BULLETED_LIST_MENU_ITEM.key]: number;
|
|
36
|
-
[FORMAT_NUMBERED_LIST_MENU_ITEM.key]: number;
|
|
37
|
-
[FORMAT_TASK_LIST_MENU_ITEM.key]: number;
|
|
38
|
-
[FORMAT_HEADING_1_MENU_ITEM.key]: number;
|
|
39
|
-
[FORMAT_HEADING_2_MENU_ITEM.key]: number;
|
|
40
|
-
[FORMAT_HEADING_3_MENU_ITEM.key]: number;
|
|
41
|
-
[FORMAT_HEADING_4_MENU_ITEM.key]: number;
|
|
42
|
-
[FORMAT_HEADING_5_MENU_ITEM.key]: number;
|
|
43
|
-
[FORMAT_HEADING_6_MENU_ITEM.key]: number;
|
|
44
|
-
};
|
|
10
|
+
export declare const FORMAT_NESTED_MENU_RANK_REVISED: {};
|
|
45
11
|
/**
|
|
46
12
|
* @private
|
|
47
13
|
* @deprecated
|
|
48
14
|
*/
|
|
49
|
-
export declare const BLOCK_MENU_SECTION_RANK: {
|
|
50
|
-
[PRIMARY_MENU_SECTION.key]: number;
|
|
51
|
-
[ADD_BLOCKS_MENU_SECTION.key]: number;
|
|
52
|
-
[COPY_MENU_SECTION.key]: number;
|
|
53
|
-
[MOVE_UP_DOWN_MENU_SECTION.key]: number;
|
|
54
|
-
[DELETE_MENU_SECTION.key]: number;
|
|
55
|
-
};
|
|
15
|
+
export declare const BLOCK_MENU_SECTION_RANK: {};
|
|
56
16
|
/**
|
|
57
17
|
* @private
|
|
58
18
|
* @deprecated
|
|
59
19
|
*/
|
|
60
|
-
export declare const PRIMARY_MENU_SECTION_RANK: {
|
|
61
|
-
[FORMAT_MENU_ITEM.key]: number;
|
|
62
|
-
[TRANSFORM_MENU_ITEM.key]: number;
|
|
63
|
-
};
|
|
20
|
+
export declare const PRIMARY_MENU_SECTION_RANK: {};
|
|
64
21
|
/**
|
|
65
22
|
* @private
|
|
66
23
|
* @deprecated
|
|
67
24
|
*/
|
|
68
|
-
export declare const ADD_BLOCKS_MENU_SECTION_RANK: {
|
|
69
|
-
[CREATE_SYNCED_BLOCK_MENU_ITEM.key]: number;
|
|
70
|
-
};
|
|
25
|
+
export declare const ADD_BLOCKS_MENU_SECTION_RANK: {};
|
|
71
26
|
/**
|
|
72
27
|
* @private
|
|
73
28
|
* @deprecated
|
|
74
29
|
*/
|
|
75
|
-
export declare const COPY_MENU_SECTION_RANK: {
|
|
76
|
-
[COPY_LINK_MENU_ITEM.key]: number;
|
|
77
|
-
};
|
|
30
|
+
export declare const COPY_MENU_SECTION_RANK: {};
|
|
78
31
|
/**
|
|
79
32
|
* @private
|
|
80
33
|
* @deprecated
|
|
81
34
|
*/
|
|
82
|
-
export declare const MOVE_BLOCK_SECTION_RANK: {
|
|
83
|
-
[MOVE_UP_MENU_ITEM.key]: number;
|
|
84
|
-
[MOVE_DOWN_MENU_ITEM.key]: number;
|
|
85
|
-
};
|
|
35
|
+
export declare const MOVE_BLOCK_SECTION_RANK: {};
|
|
86
36
|
/**
|
|
87
37
|
* @private
|
|
88
38
|
* @deprecated
|
|
89
39
|
*/
|
|
90
|
-
export declare const DELETE_SECTION_RANK: {
|
|
91
|
-
[DELETE_MENU_ITEM.key]: number;
|
|
92
|
-
};
|
|
40
|
+
export declare const DELETE_SECTION_RANK: {};
|
|
@@ -1,50 +1,51 @@
|
|
|
1
1
|
import { type IntlShape } from 'react-intl-next';
|
|
2
|
+
import type { NewCoreIconProps } from '@atlaskit/icon';
|
|
2
3
|
import type { Command } from '../types';
|
|
3
4
|
import type { ButtonOptionProps } from './LinkToolbarButtonGroup';
|
|
4
5
|
import type { OptionConfig } from './types';
|
|
5
6
|
export declare const appearancePropsMap: {
|
|
6
|
-
|
|
7
|
+
block: {
|
|
8
|
+
icon: {
|
|
9
|
+
(props: NewCoreIconProps): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
7
12
|
title: {
|
|
8
|
-
id: string;
|
|
9
13
|
defaultMessage: string;
|
|
10
14
|
description: string;
|
|
15
|
+
id: string;
|
|
11
16
|
};
|
|
17
|
+
};
|
|
18
|
+
embed: {
|
|
12
19
|
icon: {
|
|
13
|
-
(props:
|
|
20
|
+
(props: NewCoreIconProps): JSX.Element;
|
|
14
21
|
displayName: string;
|
|
15
22
|
};
|
|
16
|
-
};
|
|
17
|
-
inline: {
|
|
18
23
|
title: {
|
|
19
|
-
id: string;
|
|
20
24
|
defaultMessage: string;
|
|
21
25
|
description: string;
|
|
26
|
+
id: string;
|
|
22
27
|
};
|
|
28
|
+
};
|
|
29
|
+
inline: {
|
|
23
30
|
icon: {
|
|
24
|
-
(props:
|
|
31
|
+
(props: NewCoreIconProps): JSX.Element;
|
|
25
32
|
displayName: string;
|
|
26
33
|
};
|
|
27
|
-
};
|
|
28
|
-
block: {
|
|
29
34
|
title: {
|
|
30
|
-
id: string;
|
|
31
35
|
defaultMessage: string;
|
|
32
36
|
description: string;
|
|
37
|
+
id: string;
|
|
33
38
|
};
|
|
39
|
+
};
|
|
40
|
+
url: {
|
|
34
41
|
icon: {
|
|
35
|
-
(props:
|
|
42
|
+
(props: NewCoreIconProps): JSX.Element;
|
|
36
43
|
displayName: string;
|
|
37
44
|
};
|
|
38
|
-
};
|
|
39
|
-
embed: {
|
|
40
45
|
title: {
|
|
41
|
-
id: string;
|
|
42
46
|
defaultMessage: string;
|
|
43
47
|
description: string;
|
|
44
|
-
|
|
45
|
-
icon: {
|
|
46
|
-
(props: import("@atlaskit/icon").NewCoreIconProps): JSX.Element;
|
|
47
|
-
displayName: string;
|
|
48
|
+
id: string;
|
|
48
49
|
};
|
|
49
50
|
};
|
|
50
51
|
};
|