@atlaskit/editor-common 107.20.1 → 107.21.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/CHANGELOG.md +26 -0
- package/afm-cc/tsconfig.json +8 -5
- package/afm-dev-agents/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +3 -0
- package/afm-passionfruit/tsconfig.json +186 -0
- package/afm-post-office/tsconfig.json +3 -0
- package/afm-rovo-extension/tsconfig.json +3 -0
- package/afm-townsquare/tsconfig.json +3 -0
- package/dist/cjs/commands/index.js +100 -3
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +2 -1
- package/dist/cjs/expand/index.js +1 -0
- package/dist/cjs/i18n/cs.js +14 -0
- package/dist/cjs/i18n/da.js +14 -0
- package/dist/cjs/i18n/de.js +14 -0
- package/dist/cjs/i18n/en.js +8 -0
- package/dist/cjs/i18n/en_GB.js +8 -0
- package/dist/cjs/i18n/en_ZZ.js +21 -0
- package/dist/cjs/i18n/es.js +14 -0
- package/dist/cjs/i18n/fi.js +14 -0
- package/dist/cjs/i18n/fr.js +15 -0
- package/dist/cjs/i18n/hr.js +14 -0
- package/dist/cjs/i18n/hu.js +14 -0
- package/dist/cjs/i18n/it.js +14 -0
- package/dist/cjs/i18n/ja.js +14 -0
- package/dist/cjs/i18n/ko.js +14 -0
- package/dist/cjs/i18n/nb.js +15 -0
- package/dist/cjs/i18n/nl.js +14 -0
- package/dist/cjs/i18n/pl.js +14 -0
- package/dist/cjs/i18n/pt_BR.js +14 -0
- package/dist/cjs/i18n/ru.js +14 -0
- package/dist/cjs/i18n/sl.js +14 -0
- package/dist/cjs/i18n/sr_RS.js +16 -0
- package/dist/cjs/i18n/sr_YR.js +16 -0
- package/dist/cjs/i18n/sv.js +14 -0
- package/dist/cjs/i18n/th.js +14 -0
- package/dist/cjs/i18n/tr.js +14 -0
- package/dist/cjs/i18n/uk.js +14 -0
- package/dist/cjs/i18n/vi.js +14 -0
- package/dist/cjs/i18n/zh.js +14 -0
- package/dist/cjs/i18n/zh_TW.js +14 -0
- package/dist/cjs/media-single/CommentBadge.js +2 -1
- package/dist/cjs/monitoring/error.js +4 -2
- package/dist/cjs/portal/PortalBucket.js +1 -0
- package/dist/cjs/portal/PortalManager.js +12 -0
- package/dist/cjs/preset/builder.js +1 -0
- package/dist/cjs/toolbar/EditorToolbarUIProvider.js +28 -0
- package/dist/cjs/toolbar/index.js +69 -1
- package/dist/cjs/toolbar/keys.js +32 -2
- package/dist/cjs/toolbar/rank.js +9 -2
- package/dist/cjs/toolbar/utils.js +12 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/TableSelector/table-selector.js +2 -1
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +6 -2
- package/dist/cjs/utils/compareNodes.js +6 -2
- package/dist/es2019/commands/index.js +93 -0
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +2 -1
- package/dist/es2019/expand/index.js +1 -0
- package/dist/es2019/i18n/cs.js +14 -0
- package/dist/es2019/i18n/da.js +14 -0
- package/dist/es2019/i18n/de.js +14 -0
- package/dist/es2019/i18n/en.js +8 -0
- package/dist/es2019/i18n/en_GB.js +8 -0
- package/dist/es2019/i18n/en_ZZ.js +21 -0
- package/dist/es2019/i18n/es.js +14 -0
- package/dist/es2019/i18n/fi.js +14 -0
- package/dist/es2019/i18n/fr.js +15 -0
- package/dist/es2019/i18n/hr.js +14 -0
- package/dist/es2019/i18n/hu.js +14 -0
- package/dist/es2019/i18n/it.js +14 -0
- package/dist/es2019/i18n/ja.js +14 -0
- package/dist/es2019/i18n/ko.js +14 -0
- package/dist/es2019/i18n/nb.js +15 -0
- package/dist/es2019/i18n/nl.js +14 -0
- package/dist/es2019/i18n/pl.js +14 -0
- package/dist/es2019/i18n/pt_BR.js +14 -0
- package/dist/es2019/i18n/ru.js +14 -0
- package/dist/es2019/i18n/sl.js +14 -0
- package/dist/es2019/i18n/sr_RS.js +16 -0
- package/dist/es2019/i18n/sr_YR.js +16 -0
- package/dist/es2019/i18n/sv.js +14 -0
- package/dist/es2019/i18n/th.js +14 -0
- package/dist/es2019/i18n/tr.js +14 -0
- package/dist/es2019/i18n/uk.js +14 -0
- package/dist/es2019/i18n/vi.js +14 -0
- package/dist/es2019/i18n/zh.js +14 -0
- package/dist/es2019/i18n/zh_TW.js +14 -0
- package/dist/es2019/media-single/CommentBadge.js +2 -1
- package/dist/es2019/monitoring/error.js +4 -1
- package/dist/es2019/portal/PortalBucket.js +1 -0
- package/dist/es2019/portal/PortalManager.js +12 -0
- package/dist/es2019/preset/builder.js +1 -0
- package/dist/es2019/toolbar/EditorToolbarUIProvider.js +22 -0
- package/dist/es2019/toolbar/index.js +5 -3
- package/dist/es2019/toolbar/keys.js +31 -1
- package/dist/es2019/toolbar/rank.js +17 -1
- package/dist/es2019/toolbar/utils.js +6 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/TableSelector/table-selector.js +2 -1
- package/dist/es2019/ui-react/with-react-editor-view-outer-listeners.js +6 -2
- package/dist/es2019/utils/compareNodes.js +6 -2
- package/dist/esm/commands/index.js +97 -0
- package/dist/esm/element-browser/components/ElementList/ElementList.js +2 -1
- package/dist/esm/expand/index.js +1 -0
- package/dist/esm/i18n/cs.js +14 -0
- package/dist/esm/i18n/da.js +14 -0
- package/dist/esm/i18n/de.js +14 -0
- package/dist/esm/i18n/en.js +8 -0
- package/dist/esm/i18n/en_GB.js +8 -0
- package/dist/esm/i18n/en_ZZ.js +21 -0
- package/dist/esm/i18n/es.js +14 -0
- package/dist/esm/i18n/fi.js +14 -0
- package/dist/esm/i18n/fr.js +15 -0
- package/dist/esm/i18n/hr.js +14 -0
- package/dist/esm/i18n/hu.js +14 -0
- package/dist/esm/i18n/it.js +14 -0
- package/dist/esm/i18n/ja.js +14 -0
- package/dist/esm/i18n/ko.js +14 -0
- package/dist/esm/i18n/nb.js +15 -0
- package/dist/esm/i18n/nl.js +14 -0
- package/dist/esm/i18n/pl.js +14 -0
- package/dist/esm/i18n/pt_BR.js +14 -0
- package/dist/esm/i18n/ru.js +14 -0
- package/dist/esm/i18n/sl.js +14 -0
- package/dist/esm/i18n/sr_RS.js +16 -0
- package/dist/esm/i18n/sr_YR.js +16 -0
- package/dist/esm/i18n/sv.js +14 -0
- package/dist/esm/i18n/th.js +14 -0
- package/dist/esm/i18n/tr.js +14 -0
- package/dist/esm/i18n/uk.js +14 -0
- package/dist/esm/i18n/vi.js +14 -0
- package/dist/esm/i18n/zh.js +14 -0
- package/dist/esm/i18n/zh_TW.js +14 -0
- package/dist/esm/media-single/CommentBadge.js +2 -1
- package/dist/esm/monitoring/error.js +4 -2
- package/dist/esm/portal/PortalBucket.js +1 -0
- package/dist/esm/portal/PortalManager.js +12 -0
- package/dist/esm/preset/builder.js +1 -0
- package/dist/esm/toolbar/EditorToolbarUIProvider.js +20 -0
- package/dist/esm/toolbar/index.js +5 -3
- package/dist/esm/toolbar/keys.js +31 -1
- package/dist/esm/toolbar/rank.js +9 -2
- package/dist/esm/toolbar/utils.js +6 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/TableSelector/table-selector.js +2 -1
- package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +6 -2
- package/dist/esm/utils/compareNodes.js +6 -2
- package/dist/types/analytics/types/events.d.ts +0 -1
- package/dist/types/annotation/index.d.ts +0 -3
- package/dist/types/card/LinkToolbarButtonGroup.d.ts +0 -1
- package/dist/types/card/link-toolbar-button-group-options.d.ts +0 -1
- package/dist/types/commands/index.d.ts +18 -2
- package/dist/types/commands/insert-block.d.ts +1 -1
- package/dist/types/element-browser/components/ElementList/EmptyState.d.ts +0 -1
- package/dist/types/element-browser/components/ElementList/NotFoundIllustration.d.ts +0 -1
- package/dist/types/element-browser/components/ElementSearch.d.ts +1 -1
- package/dist/types/element-browser/components/StatelessElementBrowser.d.ts +8 -8
- package/dist/types/element-browser/components/ViewMore.d.ts +0 -1
- package/dist/types/element-browser/hooks/use-focus.d.ts +0 -1
- package/dist/types/extensibility/Extension/Extension/index.d.ts +10 -10
- package/dist/types/extensions/extension-handlers.d.ts +2 -2
- package/dist/types/extensions/types/extension-handler.d.ts +0 -1
- package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +0 -1
- package/dist/types/extensions/types/field-definitions.d.ts +0 -1
- package/dist/types/floating-toolbar/DropdownMenuItem.d.ts +0 -1
- package/dist/types/floating-toolbar/index.d.ts +1 -1
- package/dist/types/guideline/updateGuideline.d.ts +2 -2
- package/dist/types/i18n/cs.d.ts +14 -0
- package/dist/types/i18n/da.d.ts +14 -0
- package/dist/types/i18n/de.d.ts +14 -0
- package/dist/types/i18n/en.d.ts +8 -0
- package/dist/types/i18n/en_GB.d.ts +8 -0
- package/dist/types/i18n/en_ZZ.d.ts +21 -0
- package/dist/types/i18n/es.d.ts +14 -0
- package/dist/types/i18n/fi.d.ts +14 -0
- package/dist/types/i18n/fr.d.ts +15 -0
- package/dist/types/i18n/hr.d.ts +14 -0
- package/dist/types/i18n/hu.d.ts +14 -0
- package/dist/types/i18n/it.d.ts +14 -0
- package/dist/types/i18n/ja.d.ts +14 -0
- package/dist/types/i18n/ko.d.ts +14 -0
- package/dist/types/i18n/nb.d.ts +15 -0
- package/dist/types/i18n/nl.d.ts +14 -0
- package/dist/types/i18n/pl.d.ts +14 -0
- package/dist/types/i18n/pt_BR.d.ts +14 -0
- package/dist/types/i18n/ru.d.ts +14 -0
- package/dist/types/i18n/sl.d.ts +14 -0
- package/dist/types/i18n/sr_RS.d.ts +16 -0
- package/dist/types/i18n/sr_YR.d.ts +16 -0
- package/dist/types/i18n/sv.d.ts +14 -0
- package/dist/types/i18n/th.d.ts +14 -0
- package/dist/types/i18n/tr.d.ts +14 -0
- package/dist/types/i18n/uk.d.ts +14 -0
- package/dist/types/i18n/vi.d.ts +14 -0
- package/dist/types/i18n/zh.d.ts +14 -0
- package/dist/types/i18n/zh_TW.d.ts +14 -0
- package/dist/types/icons/shared/DynamicStrokeIconDecoration.d.ts +0 -1
- package/dist/types/icons/shared/SteppedRainbowIconDecoration.d.ts +0 -1
- package/dist/types/keymaps/index.d.ts +2 -2
- package/dist/types/lazy-node-view/css-helper.d.ts +0 -1
- package/dist/types/link/ConfigureLinkOverlay/StyledButton.d.ts +1 -2
- package/dist/types/link/ConfigureLinkOverlay/useLinkOverlayAnalyticsEvents.d.ts +1 -1
- package/dist/types/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.d.ts +5 -2
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +1 -1
- package/dist/types/mark/commands.d.ts +1 -1
- package/dist/types/media-inline/inline-image-card.d.ts +6 -7
- package/dist/types/media-inline/media-inline-image-card.d.ts +0 -1
- package/dist/types/media-inline/views/error-view.d.ts +0 -1
- package/dist/types/media-inline/views/frame.d.ts +0 -1
- package/dist/types/media-inline/views/icon-wrapper.d.ts +0 -1
- package/dist/types/media-single/CommentBadge.d.ts +0 -1
- package/dist/types/monitoring/error.d.ts +1 -1
- package/dist/types/portal/PortalManager.d.ts +0 -1
- package/dist/types/provider-factory/context.d.ts +2 -2
- package/dist/types/provider-helpers/combine-providers.d.ts +1 -1
- package/dist/types/resizer/BreakoutResizer.d.ts +1 -1
- package/dist/types/resizer/Resizer.d.ts +1 -1
- package/dist/types/resizer/types.d.ts +0 -1
- package/dist/types/styles/shared/headings.d.ts +1 -1
- package/dist/types/styles/shared/paragraph.d.ts +1 -1
- package/dist/types/styles/shared/table.d.ts +1 -1
- package/dist/types/table/SortingIcon.d.ts +0 -1
- package/dist/types/toolbar/EditorToolbarUIProvider.d.ts +6 -0
- package/dist/types/toolbar/index.d.ts +4 -2
- package/dist/types/toolbar/keys.d.ts +25 -0
- package/dist/types/toolbar/rank.d.ts +15 -0
- package/dist/types/toolbar/utils.d.ts +3 -0
- package/dist/types/types/annotation/index.d.ts +0 -1
- package/dist/types/types/empty-state-handler.d.ts +0 -1
- package/dist/types/types/hyperlink.d.ts +0 -1
- package/dist/types/ui/HoverLinkOverlay/types.d.ts +0 -1
- package/dist/types/ui/IntlProviderIfMissingWrapper/index.d.ts +0 -1
- package/dist/types/ui/MediaSingle/grid.d.ts +6 -6
- package/dist/types/ui/OverflowShadow/index.d.ts +10 -10
- package/dist/types/ui/Toolbar/ExpandIcon.d.ts +0 -1
- package/dist/types/ui/Toolbar/Separator.d.ts +0 -1
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/types.d.ts +0 -1
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +14 -14
- package/dist/types/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +6 -6
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +23 -23
- package/dist/types/utils/breakout.d.ts +2 -2
- package/dist/types/utils/track-unsupported-content.d.ts +1 -1
- package/dist/types/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/events.d.ts +0 -1
- package/dist/types-ts4.5/annotation/index.d.ts +0 -3
- package/dist/types-ts4.5/card/LinkToolbarButtonGroup.d.ts +0 -1
- package/dist/types-ts4.5/card/link-toolbar-button-group-options.d.ts +0 -1
- package/dist/types-ts4.5/commands/index.d.ts +18 -2
- package/dist/types-ts4.5/commands/insert-block.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/ElementList/EmptyState.d.ts +0 -1
- package/dist/types-ts4.5/element-browser/components/ElementList/NotFoundIllustration.d.ts +0 -1
- package/dist/types-ts4.5/element-browser/components/ElementSearch.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/StatelessElementBrowser.d.ts +8 -8
- package/dist/types-ts4.5/element-browser/components/ViewMore.d.ts +0 -1
- package/dist/types-ts4.5/element-browser/hooks/use-focus.d.ts +0 -1
- package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +10 -10
- package/dist/types-ts4.5/extensions/extension-handlers.d.ts +2 -2
- package/dist/types-ts4.5/extensions/types/extension-handler.d.ts +0 -1
- package/dist/types-ts4.5/extensions/types/extension-manifest-toolbar-item.d.ts +0 -1
- package/dist/types-ts4.5/extensions/types/field-definitions.d.ts +0 -1
- package/dist/types-ts4.5/floating-toolbar/DropdownMenuItem.d.ts +0 -1
- package/dist/types-ts4.5/floating-toolbar/index.d.ts +1 -1
- package/dist/types-ts4.5/guideline/updateGuideline.d.ts +2 -2
- package/dist/types-ts4.5/i18n/cs.d.ts +14 -0
- package/dist/types-ts4.5/i18n/da.d.ts +14 -0
- package/dist/types-ts4.5/i18n/de.d.ts +14 -0
- package/dist/types-ts4.5/i18n/en.d.ts +8 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +8 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +21 -0
- package/dist/types-ts4.5/i18n/es.d.ts +14 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +14 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +15 -0
- package/dist/types-ts4.5/i18n/hr.d.ts +14 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +14 -0
- package/dist/types-ts4.5/i18n/it.d.ts +14 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +14 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +14 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +15 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +14 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +14 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +14 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +14 -0
- package/dist/types-ts4.5/i18n/sl.d.ts +14 -0
- package/dist/types-ts4.5/i18n/sr_RS.d.ts +16 -0
- package/dist/types-ts4.5/i18n/sr_YR.d.ts +16 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +14 -0
- package/dist/types-ts4.5/i18n/th.d.ts +14 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +14 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +14 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +14 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +14 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +14 -0
- package/dist/types-ts4.5/icons/shared/DynamicStrokeIconDecoration.d.ts +0 -1
- package/dist/types-ts4.5/icons/shared/SteppedRainbowIconDecoration.d.ts +0 -1
- package/dist/types-ts4.5/keymaps/index.d.ts +2 -2
- package/dist/types-ts4.5/lazy-node-view/css-helper.d.ts +0 -1
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/StyledButton.d.ts +1 -2
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/useLinkOverlayAnalyticsEvents.d.ts +1 -1
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.d.ts +5 -2
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +1 -1
- package/dist/types-ts4.5/mark/commands.d.ts +1 -1
- package/dist/types-ts4.5/media-inline/inline-image-card.d.ts +6 -7
- package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +0 -1
- package/dist/types-ts4.5/media-inline/views/error-view.d.ts +0 -1
- package/dist/types-ts4.5/media-inline/views/frame.d.ts +0 -1
- package/dist/types-ts4.5/media-inline/views/icon-wrapper.d.ts +0 -1
- package/dist/types-ts4.5/media-single/CommentBadge.d.ts +0 -1
- package/dist/types-ts4.5/monitoring/error.d.ts +1 -1
- package/dist/types-ts4.5/portal/PortalManager.d.ts +0 -1
- package/dist/types-ts4.5/provider-factory/context.d.ts +2 -2
- package/dist/types-ts4.5/provider-helpers/combine-providers.d.ts +1 -1
- package/dist/types-ts4.5/resizer/BreakoutResizer.d.ts +1 -1
- package/dist/types-ts4.5/resizer/Resizer.d.ts +1 -1
- package/dist/types-ts4.5/resizer/types.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/headings.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/paragraph.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/table.d.ts +1 -1
- package/dist/types-ts4.5/table/SortingIcon.d.ts +0 -1
- package/dist/types-ts4.5/toolbar/EditorToolbarUIProvider.d.ts +6 -0
- package/dist/types-ts4.5/toolbar/index.d.ts +4 -2
- package/dist/types-ts4.5/toolbar/keys.d.ts +25 -0
- package/dist/types-ts4.5/toolbar/rank.d.ts +15 -0
- package/dist/types-ts4.5/toolbar/utils.d.ts +3 -0
- package/dist/types-ts4.5/types/annotation/index.d.ts +0 -1
- package/dist/types-ts4.5/types/empty-state-handler.d.ts +0 -1
- package/dist/types-ts4.5/types/hyperlink.d.ts +0 -1
- package/dist/types-ts4.5/ui/HoverLinkOverlay/types.d.ts +0 -1
- package/dist/types-ts4.5/ui/IntlProviderIfMissingWrapper/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/MediaSingle/grid.d.ts +6 -6
- package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +10 -10
- package/dist/types-ts4.5/ui/Toolbar/ExpandIcon.d.ts +0 -1
- package/dist/types-ts4.5/ui/Toolbar/Separator.d.ts +0 -1
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/types.d.ts +0 -1
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +14 -14
- package/dist/types-ts4.5/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +6 -6
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +23 -23
- package/dist/types-ts4.5/utils/breakout.d.ts +2 -2
- package/dist/types-ts4.5/utils/track-unsupported-content.d.ts +1 -1
- package/dist/types-ts4.5/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +1 -1
- package/package.json +6 -4
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const TOOLBARS: {
|
|
2
2
|
readonly INLINE_TEXT_TOOLBAR: "inline-text-toolbar";
|
|
3
|
+
readonly PRIMARY_TOOLBAR: "primary-toolbar";
|
|
3
4
|
};
|
|
4
5
|
/**
|
|
5
6
|
* AI section
|
|
@@ -208,6 +209,30 @@ export declare const HIGHLIGHT_MENU_ITEM: {
|
|
|
208
209
|
readonly key: "highlight-menu-item";
|
|
209
210
|
readonly type: "menu-item";
|
|
210
211
|
};
|
|
212
|
+
export declare const ALIGNMENT_GROUP: {
|
|
213
|
+
readonly key: "alignment-group";
|
|
214
|
+
readonly type: "group";
|
|
215
|
+
};
|
|
216
|
+
export declare const ALIGNMENT_MENU: {
|
|
217
|
+
readonly key: "alignment-menu";
|
|
218
|
+
readonly type: "menu";
|
|
219
|
+
};
|
|
220
|
+
export declare const ALIGNMENT_MENU_SECTION: {
|
|
221
|
+
readonly key: "alignment-menu-section";
|
|
222
|
+
readonly type: "menu-section";
|
|
223
|
+
};
|
|
224
|
+
export declare const ALIGN_LEFT_MENU_ITEM: {
|
|
225
|
+
readonly key: "align-left-menu-item";
|
|
226
|
+
readonly type: "menu-item";
|
|
227
|
+
};
|
|
228
|
+
export declare const ALIGN_CENTER_MENU_ITEM: {
|
|
229
|
+
readonly key: "align-center-menu-item";
|
|
230
|
+
readonly type: "menu-item";
|
|
231
|
+
};
|
|
232
|
+
export declare const ALIGN_RIGHT_MENU_ITEM: {
|
|
233
|
+
readonly key: "align-right-menu-item";
|
|
234
|
+
readonly type: "menu-item";
|
|
235
|
+
};
|
|
211
236
|
export declare const LINKING_SECTION: {
|
|
212
237
|
readonly key: "linking-section";
|
|
213
238
|
readonly type: "section";
|
|
@@ -48,6 +48,7 @@ export declare const TRANSLATE_MENU_RANK: {
|
|
|
48
48
|
export declare const TEXT_SECTION_RANK: {
|
|
49
49
|
"text-styles-group": number;
|
|
50
50
|
"text-formatting-group": number;
|
|
51
|
+
"alignment-group": number;
|
|
51
52
|
"text-color-highlight-group": number;
|
|
52
53
|
};
|
|
53
54
|
/**
|
|
@@ -111,6 +112,20 @@ export declare const LINKING_SECTION_RANK: {
|
|
|
111
112
|
export declare const LINKING_GROUP_RANK: {
|
|
112
113
|
"linking-button": number;
|
|
113
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* Alignment group
|
|
117
|
+
*/
|
|
118
|
+
export declare const ALIGNMENT_GROUP_RANK: {
|
|
119
|
+
"alignment-menu": number;
|
|
120
|
+
};
|
|
121
|
+
export declare const ALIGNMENT_MENU_RANK: {
|
|
122
|
+
"alignment-menu-section": number;
|
|
123
|
+
};
|
|
124
|
+
export declare const ALIGNMENT_MENU_SECTION_RANK: {
|
|
125
|
+
"align-left-menu-item": number;
|
|
126
|
+
"align-center-menu-item": number;
|
|
127
|
+
"align-right-menu-item": number;
|
|
128
|
+
};
|
|
114
129
|
/**
|
|
115
130
|
* Collab section
|
|
116
131
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema';
|
|
3
2
|
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
4
3
|
import type { AddNodeMarkStep, AddMarkStep, RemoveMarkStep, RemoveNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
|
|
@@ -11,13 +11,13 @@ export declare const calcPctWidth: (containerWidth: EditorContainerWidth, pctWid
|
|
|
11
11
|
export declare const calcMediaPxWidth: (opts: {
|
|
12
12
|
origWidth: number;
|
|
13
13
|
origHeight: number;
|
|
14
|
-
state?: EditorState
|
|
14
|
+
state?: EditorState;
|
|
15
15
|
containerWidth: EditorContainerWidth;
|
|
16
|
-
layout?: MediaSingleLayout
|
|
17
|
-
pctWidth?: number
|
|
18
|
-
pos?: number
|
|
19
|
-
resizedPctWidth?: number
|
|
20
|
-
isFullWidthModeEnabled?: boolean
|
|
16
|
+
layout?: MediaSingleLayout;
|
|
17
|
+
pctWidth?: number;
|
|
18
|
+
pos?: number;
|
|
19
|
+
resizedPctWidth?: number;
|
|
20
|
+
isFullWidthModeEnabled?: boolean;
|
|
21
21
|
}) => number;
|
|
22
22
|
export declare const snapToGrid: (gridWidth: number, width: number, height: number, lineLength: number, gridSize: number) => {
|
|
23
23
|
height: number;
|
|
@@ -19,12 +19,12 @@ export interface OverflowShadowOptions {
|
|
|
19
19
|
}
|
|
20
20
|
export default function overflowShadow<P>(Component: React.ComponentType<React.PropsWithChildren<P & OverflowShadowProps>>, options: OverflowShadowOptions): {
|
|
21
21
|
new (props: (P & OverflowShadowProps) | Readonly<P & OverflowShadowProps>): {
|
|
22
|
-
overflowContainer?: HTMLElement | null
|
|
23
|
-
container?: HTMLElement
|
|
24
|
-
shadowObserver?: ShadowObserver
|
|
22
|
+
overflowContainer?: HTMLElement | null;
|
|
23
|
+
container?: HTMLElement;
|
|
24
|
+
shadowObserver?: ShadowObserver;
|
|
25
25
|
overflowContainerWidth: number;
|
|
26
|
-
scrollable?: NodeList
|
|
27
|
-
diff?: number
|
|
26
|
+
scrollable?: NodeList;
|
|
27
|
+
diff?: number;
|
|
28
28
|
state: {
|
|
29
29
|
showLeftShadow: boolean;
|
|
30
30
|
showRightShadow: boolean;
|
|
@@ -58,12 +58,12 @@ export default function overflowShadow<P>(Component: React.ComponentType<React.P
|
|
|
58
58
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
|
|
59
59
|
};
|
|
60
60
|
new (props: P & OverflowShadowProps, context: any): {
|
|
61
|
-
overflowContainer?: HTMLElement | null
|
|
62
|
-
container?: HTMLElement
|
|
63
|
-
shadowObserver?: ShadowObserver
|
|
61
|
+
overflowContainer?: HTMLElement | null;
|
|
62
|
+
container?: HTMLElement;
|
|
63
|
+
shadowObserver?: ShadowObserver;
|
|
64
64
|
overflowContainerWidth: number;
|
|
65
|
-
scrollable?: NodeList
|
|
66
|
-
diff?: number
|
|
65
|
+
scrollable?: NodeList;
|
|
66
|
+
diff?: number;
|
|
67
67
|
state: {
|
|
68
68
|
showLeftShadow: boolean;
|
|
69
69
|
showRightShadow: boolean;
|
|
@@ -4,4 +4,4 @@ import type { ColorPaletteArrowKeyNavigationProps } from '../types';
|
|
|
4
4
|
* This component is a wrapper for color picker which listens to keydown events of children
|
|
5
5
|
* and handles arrow key navigation
|
|
6
6
|
*/
|
|
7
|
-
export declare const ColorPaletteArrowKeyNavigationProvider: ({ children, selectedRowIndex, selectedColumnIndex, isOpenedByKeyboard, isPopupPositioned, handleClose, closeOnTab, editorRef, ignoreEscapeKey, popupsMountPoint, }: React.PropsWithChildren<Omit<ColorPaletteArrowKeyNavigationProps,
|
|
7
|
+
export declare const ColorPaletteArrowKeyNavigationProvider: ({ children, selectedRowIndex, selectedColumnIndex, isOpenedByKeyboard, isPopupPositioned, handleClose, closeOnTab, editorRef, ignoreEscapeKey, popupsMountPoint, }: React.PropsWithChildren<Omit<ColorPaletteArrowKeyNavigationProps, "type">>) => React.JSX.Element;
|
package/dist/types/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import type { MenuArrowKeyNavigationProviderProps } from '../types';
|
|
|
4
4
|
* This component is a wrapper of vertical menus which listens to keydown events of children
|
|
5
5
|
* and handles up/down arrow key navigation
|
|
6
6
|
*/
|
|
7
|
-
export declare const MenuArrowKeyNavigationProvider: ({ children, handleClose, disableArrowKeyNavigation, keyDownHandlerContext, closeOnTab, onSelection, editorRef, popupsMountPoint, disableCloseOnArrowClick, }: React.PropsWithChildren<Omit<MenuArrowKeyNavigationProviderProps,
|
|
7
|
+
export declare const MenuArrowKeyNavigationProvider: ({ children, handleClose, disableArrowKeyNavigation, keyDownHandlerContext, closeOnTab, onSelection, editorRef, popupsMountPoint, disableCloseOnArrowClick, }: React.PropsWithChildren<Omit<MenuArrowKeyNavigationProviderProps, "type">>) => React.JSX.Element;
|
|
@@ -7,28 +7,28 @@ import type { WithAnalyticsEventsProps } 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
9
|
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
10
|
-
currentColor?: string
|
|
11
|
-
title?: string
|
|
12
|
-
isAriaExpanded?: boolean
|
|
13
|
-
onChange?: (
|
|
10
|
+
currentColor?: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
isAriaExpanded?: boolean;
|
|
13
|
+
onChange?: (color: PaletteColor) => void;
|
|
14
14
|
colorPalette: PaletteColor[];
|
|
15
15
|
placement: string;
|
|
16
|
-
cols?: number
|
|
17
|
-
alignX?: "
|
|
16
|
+
cols?: number;
|
|
17
|
+
alignX?: "left" | "right" | "center" | "end";
|
|
18
18
|
size?: {
|
|
19
19
|
width: string;
|
|
20
20
|
height: string;
|
|
21
|
-
}
|
|
22
|
-
mountPoint?: HTMLElement
|
|
23
|
-
setDisableParentScroll?: (
|
|
24
|
-
hexToPaletteColor?: (
|
|
25
|
-
paletteColorTooltipMessages?: PaletteTooltipMessages
|
|
21
|
+
};
|
|
22
|
+
mountPoint?: HTMLElement;
|
|
23
|
+
setDisableParentScroll?: (disable: boolean) => void;
|
|
24
|
+
hexToPaletteColor?: (hexColor: string) => string | undefined;
|
|
25
|
+
paletteColorTooltipMessages?: PaletteTooltipMessages;
|
|
26
26
|
/**
|
|
27
27
|
* After picking the color the default behaviour is to focus the color picker button.
|
|
28
28
|
* To prevent this use skipFocusButtonAfterPick.
|
|
29
29
|
*/
|
|
30
|
-
skipFocusButtonAfterPick?: boolean
|
|
31
|
-
absoluteOffset?: PopupPosition
|
|
32
|
-
returnEscToButton?: boolean
|
|
30
|
+
skipFocusButtonAfterPick?: boolean;
|
|
31
|
+
absoluteOffset?: PopupPosition;
|
|
32
|
+
returnEscToButton?: boolean;
|
|
33
33
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
|
|
34
34
|
export default _default;
|
|
@@ -23,12 +23,12 @@ export declare const KeyDownHandlerContext: React.Context<KeyDownHandlerContext>
|
|
|
23
23
|
*/
|
|
24
24
|
export declare const ToolbarArrowKeyNavigationProvider: ({ children, editorView, childComponentSelector, handleEscape, disableArrowKeyNavigation, isShortcutToFocusToolbar, editorAppearance, useStickyToolbar, intl, }: {
|
|
25
25
|
children: ReactNode;
|
|
26
|
-
editorView?: EditorView
|
|
26
|
+
editorView?: EditorView;
|
|
27
27
|
childComponentSelector: string;
|
|
28
|
-
handleEscape?: (
|
|
29
|
-
disableArrowKeyNavigation?: boolean
|
|
30
|
-
isShortcutToFocusToolbar?: (
|
|
31
|
-
editorAppearance?: EditorAppearance
|
|
32
|
-
useStickyToolbar?: UseStickyToolbarType
|
|
28
|
+
handleEscape?: (event: KeyboardEvent) => void;
|
|
29
|
+
disableArrowKeyNavigation?: boolean;
|
|
30
|
+
isShortcutToFocusToolbar?: (event: KeyboardEvent) => boolean;
|
|
31
|
+
editorAppearance?: EditorAppearance;
|
|
32
|
+
useStickyToolbar?: UseStickyToolbarType;
|
|
33
33
|
intl: IntlShape;
|
|
34
34
|
}) => jsx.JSX.Element;
|
|
@@ -36,29 +36,29 @@ export type Props = {
|
|
|
36
36
|
} & Pick<ButtonProps, 'aria-label' | 'children' | 'onFocus' | 'onBlur' | 'onMouseEnter' | 'onMouseLeave' | 'aria-controls' | 'rel'>;
|
|
37
37
|
export type ToolbarButtonRef = HTMLElement;
|
|
38
38
|
declare const ToolbarButton: React.ForwardRefExoticComponent<{
|
|
39
|
-
buttonId?: TOOLBAR_ACTION_SUBJECT_ID
|
|
40
|
-
className?: string
|
|
41
|
-
disabled?: boolean
|
|
42
|
-
hideTooltip?: boolean
|
|
43
|
-
href?: string
|
|
44
|
-
iconAfter?: React.ReactElement<any
|
|
45
|
-
iconBefore?: React.ReactElement<any
|
|
46
|
-
onClick?: (
|
|
47
|
-
onItemClick?: (
|
|
48
|
-
onKeyDown?: (
|
|
49
|
-
selected?: boolean
|
|
50
|
-
spacing?: "default" | "
|
|
51
|
-
target?: string
|
|
39
|
+
buttonId?: TOOLBAR_ACTION_SUBJECT_ID;
|
|
40
|
+
className?: string;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
hideTooltip?: boolean;
|
|
43
|
+
href?: string;
|
|
44
|
+
iconAfter?: React.ReactElement<any>;
|
|
45
|
+
iconBefore?: React.ReactElement<any>;
|
|
46
|
+
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
|
|
47
|
+
onItemClick?: (item: MenuItem) => void;
|
|
48
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
49
|
+
selected?: boolean;
|
|
50
|
+
spacing?: "default" | "compact" | "none";
|
|
51
|
+
target?: string;
|
|
52
52
|
title?: React.ReactNode;
|
|
53
|
-
titlePosition?: PositionType
|
|
54
|
-
item?: MenuItem
|
|
55
|
-
testId?: string
|
|
56
|
-
keymap?: Keymap
|
|
57
|
-
'aria-label'?: React.AriaAttributes[
|
|
58
|
-
'aria-expanded'?: React.AriaAttributes[
|
|
59
|
-
'aria-haspopup'?: React.AriaAttributes[
|
|
60
|
-
'aria-pressed'?: React.AriaAttributes[
|
|
61
|
-
'aria-keyshortcuts'?: React.AriaAttributes[
|
|
62
|
-
'data-ds--level'?: string
|
|
53
|
+
titlePosition?: PositionType;
|
|
54
|
+
item?: MenuItem;
|
|
55
|
+
testId?: string;
|
|
56
|
+
keymap?: Keymap;
|
|
57
|
+
'aria-label'?: React.AriaAttributes["aria-label"];
|
|
58
|
+
'aria-expanded'?: React.AriaAttributes["aria-expanded"];
|
|
59
|
+
'aria-haspopup'?: React.AriaAttributes["aria-haspopup"];
|
|
60
|
+
'aria-pressed'?: React.AriaAttributes["aria-pressed"];
|
|
61
|
+
'aria-keyshortcuts'?: React.AriaAttributes["aria-keyshortcuts"];
|
|
62
|
+
'data-ds--level'?: string;
|
|
63
63
|
} & Pick<ButtonProps, "onFocus" | "onBlur" | "children" | "rel" | "aria-controls" | "aria-label" | "onMouseEnter" | "onMouseLeave"> & React.RefAttributes<HTMLElement>>;
|
|
64
64
|
export default ToolbarButton;
|
|
@@ -22,11 +22,11 @@ export type BreakoutConstsType = {
|
|
|
22
22
|
calcWideWidth: (breakoutConsts: BreakoutConstsType) => (containerWidth?: number, maxWidth?: number, fallback?: string, padding?: number) => string;
|
|
23
23
|
};
|
|
24
24
|
declare const breakoutConsts: BreakoutConstsType;
|
|
25
|
-
export declare const absoluteBreakoutWidth: (layout:
|
|
25
|
+
export declare const absoluteBreakoutWidth: (layout: "full-width" | "wide" | string, containerWidth: number) => number;
|
|
26
26
|
export { breakoutConsts };
|
|
27
27
|
export declare const calcWideWidth: (containerWidth?: number, maxWidth?: number, fallback?: string, padding?: number) => string;
|
|
28
28
|
export declare const calcBreakoutWidth: any;
|
|
29
|
-
export declare const calcBreakoutWithCustomWidth: (mode:
|
|
29
|
+
export declare const calcBreakoutWithCustomWidth: (mode: "full-width" | "wide", width: number | null, editorContainerWidth: number) => string;
|
|
30
30
|
export declare function calculateBreakoutStyles({ mode, widthStateLineLength, widthStateWidth, }: {
|
|
31
31
|
mode: BreakoutMarkAttrs['mode'];
|
|
32
32
|
/**
|
|
@@ -16,5 +16,5 @@ interface UnsupportedNode {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
export declare const fireUnsupportedEvent: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, actionSubjectId: ACTION_SUBJECT_ID, unsupportedNode: UnsupportedNode, errorCode?: string) => void;
|
|
19
|
-
export declare const trackUnsupportedContentTooltipDisplayedFor: (dispatchAnalyticsEvent: DispatchAnalyticsEventTooltip, unsupportedContentType: UnsupportedContentTooltipPayload[
|
|
19
|
+
export declare const trackUnsupportedContentTooltipDisplayedFor: (dispatchAnalyticsEvent: DispatchAnalyticsEventTooltip, unsupportedContentType: UnsupportedContentTooltipPayload["actionSubjectId"], originalNodeType?: string) => void;
|
|
20
20
|
export {};
|
|
@@ -46,7 +46,7 @@ export declare const UNSUPPORTED_CONTENT_LEVEL_SEVERITY_THRESHOLD_DEFAULTS: {
|
|
|
46
46
|
* ```
|
|
47
47
|
*
|
|
48
48
|
*/
|
|
49
|
-
export declare const getUnsupportedContentLevelData: (validDocument: ADFEntity, customThresholds: UnsupportedContentLevelsTracking[
|
|
49
|
+
export declare const getUnsupportedContentLevelData: (validDocument: ADFEntity, customThresholds: UnsupportedContentLevelsTracking["thresholds"]) => {
|
|
50
50
|
severity: UNSUPPORTED_CONTENT_LEVEL_SEVERITY;
|
|
51
51
|
percentage: number;
|
|
52
52
|
counts: {
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node/events" />
|
|
3
|
-
/// <reference types="typings/events" />
|
|
4
1
|
import { EventEmitter } from 'events';
|
|
5
2
|
import type { AnnotationId } from '@atlaskit/adf-schema';
|
|
6
3
|
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
@@ -5,17 +5,33 @@ import type { Command } from '../types/command';
|
|
|
5
5
|
type AlignmentState = 'start' | 'end' | 'center';
|
|
6
6
|
export declare function addParagraphAtEnd(tr: Transaction): void;
|
|
7
7
|
export declare function createParagraphAtEnd(): Command;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @deprecated use changeImageAlignmentTr instead
|
|
11
|
+
*/
|
|
8
12
|
export declare const changeImageAlignment: (align?: AlignmentState) => Command;
|
|
9
|
-
export declare const
|
|
13
|
+
export declare const changeImageAlignmentNext: (align?: AlignmentState) => (tr: Transaction) => boolean;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @deprecated use createToggleBlockMarkOnRangeNext instead, which does not require passing editorState
|
|
17
|
+
*/
|
|
18
|
+
export declare const createToggleBlockMarkOnRange: <T extends Object = object>(markType: MarkType, getAttrs: (prevAttrs?: T, node?: PMNode) => T | undefined | false, allowedBlocks?: Array<NodeType> | ((schema: Schema, node: PMNode, parent: PMNode | null) => boolean)) => (from: number, to: number, tr: Transaction, state: EditorState) => boolean;
|
|
19
|
+
export declare const createToggleBlockMarkOnRangeNext: <T extends Object = object>(markType: MarkType, getAttrs: (prevAttrs?: T, node?: PMNode) => T | undefined | false, allowedBlocks?: Array<NodeType> | ((schema: Schema, node: PMNode, parent: PMNode | null) => boolean)) => (from: number, to: number, tr: Transaction) => boolean;
|
|
10
20
|
export declare const createToggleInlineMarkOnRange: <T extends Object = object>(markType: MarkType, getAttrs: (prevAttrs?: T, node?: PMNode) => T | undefined | false) => (from: number, to: number, tr: Transaction, state: EditorState) => boolean;
|
|
11
21
|
/**
|
|
22
|
+
* @deprecated use toggleBlockMarkTr instead
|
|
12
23
|
* Toggles block mark based on the return type of `getAttrs`.
|
|
13
24
|
* This is similar to ProseMirror's `getAttrs` from `AttributeSpec`
|
|
14
25
|
* return `false` to remove the mark.
|
|
15
26
|
* return `undefined for no-op.
|
|
16
27
|
* return an `object` to update the mark.
|
|
17
28
|
*/
|
|
18
|
-
export declare const toggleBlockMark: <T extends Object = object>(markType: MarkType, getAttrs: (prevAttrs?: T, node?: PMNode) => T | undefined | false, allowedBlocks?: NodeType
|
|
29
|
+
export declare const toggleBlockMark: <T extends Object = object>(markType: MarkType, getAttrs: (prevAttrs?: T, node?: PMNode) => T | undefined | false, allowedBlocks?: Array<NodeType> | ((schema: Schema, node: PMNode, parent: PMNode | null) => boolean)) => Command;
|
|
30
|
+
/**
|
|
31
|
+
* Toggles block mark based on the return type of `getAttrs`.
|
|
32
|
+
* @returns true if the mark is applied, false otherwise.
|
|
33
|
+
*/
|
|
34
|
+
export declare const toggleBlockMarkNext: <T extends Object = object>(markType: MarkType, getAttrs: (prevAttrs?: T, node?: PMNode) => T | undefined | false, allowedBlocks?: Array<NodeType> | ((schema: Schema, node: PMNode, parent: PMNode | null) => boolean)) => (tr: Transaction) => boolean;
|
|
19
35
|
export declare const clearEditorContent: Command;
|
|
20
36
|
export declare function findCutBefore($pos: ResolvedPos): ResolvedPos | null;
|
|
21
37
|
/**
|
|
@@ -2,4 +2,4 @@ import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
|
2
2
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
export declare const insertBlock: (state: EditorState, nodeType: NodeType, start: number, end: number, attrs?: {
|
|
4
4
|
[key: string]: any;
|
|
5
|
-
}
|
|
5
|
+
}) => Transaction | null;
|
|
@@ -18,6 +18,6 @@ interface Props {
|
|
|
18
18
|
ariaControlsId?: string;
|
|
19
19
|
}
|
|
20
20
|
declare const MemoizedElementSearchWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Props & WrappedComponentProps, "intl"> & {
|
|
21
|
-
forwardedRef?: React.Ref<any
|
|
21
|
+
forwardedRef?: React.Ref<any>;
|
|
22
22
|
} & import("@atlaskit/analytics-next/withAnalyticsContext").WithContextProps & React.RefAttributes<any>>>;
|
|
23
23
|
export default MemoizedElementSearchWithAnalytics;
|
|
@@ -32,26 +32,26 @@ export type StatelessElementBrowserProps = {
|
|
|
32
32
|
cache?: CellMeasurerCache;
|
|
33
33
|
} & WithAnalyticsEventsProps;
|
|
34
34
|
declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Omit<{
|
|
35
|
-
categories?: Category[]
|
|
35
|
+
categories?: Category[];
|
|
36
36
|
items: QuickInsertItem[];
|
|
37
37
|
onSearch: (searchTerm: string) => void;
|
|
38
38
|
onSelectCategory: (category: Category) => void;
|
|
39
|
-
onSelectItem?: (
|
|
39
|
+
onSelectItem?: (item: QuickInsertItem) => void;
|
|
40
40
|
onInsertItem: (item: QuickInsertItem) => void;
|
|
41
|
-
selectedCategory?: string
|
|
41
|
+
selectedCategory?: string;
|
|
42
42
|
showSearch: boolean;
|
|
43
43
|
showCategories: boolean;
|
|
44
44
|
mode: keyof typeof Modes;
|
|
45
|
-
searchTerm?: string
|
|
46
|
-
emptyStateHandler?: EmptyStateHandler
|
|
45
|
+
searchTerm?: string;
|
|
46
|
+
emptyStateHandler?: EmptyStateHandler;
|
|
47
47
|
/**
|
|
48
48
|
* @private
|
|
49
49
|
* @deprecated
|
|
50
50
|
* Deprecated in favour of onViewMore
|
|
51
51
|
* Please clean up viewMoreItem when cleaning up platform_editor_refactor_view_more
|
|
52
52
|
*/
|
|
53
|
-
viewMoreItem?: QuickInsertItem
|
|
54
|
-
onViewMore?: (
|
|
55
|
-
cache?: CellMeasurerCache
|
|
53
|
+
viewMoreItem?: QuickInsertItem;
|
|
54
|
+
onViewMore?: () => void;
|
|
55
|
+
cache?: CellMeasurerCache;
|
|
56
56
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>>;
|
|
57
57
|
export default MemoizedElementBrowser;
|
|
@@ -30,12 +30,12 @@ export interface Props {
|
|
|
30
30
|
}
|
|
31
31
|
declare const _default: {
|
|
32
32
|
new (props: (Props & OverflowShadowProps) | Readonly<Props & OverflowShadowProps>): {
|
|
33
|
-
overflowContainer?: HTMLElement | null
|
|
34
|
-
container?: HTMLElement
|
|
35
|
-
shadowObserver?: import("../../../ui").ShadowObserver
|
|
33
|
+
overflowContainer?: HTMLElement | null;
|
|
34
|
+
container?: HTMLElement;
|
|
35
|
+
shadowObserver?: import("../../../ui").ShadowObserver;
|
|
36
36
|
overflowContainerWidth: number;
|
|
37
|
-
scrollable?: NodeList
|
|
38
|
-
diff?: number
|
|
37
|
+
scrollable?: NodeList;
|
|
38
|
+
diff?: number;
|
|
39
39
|
state: {
|
|
40
40
|
showLeftShadow: boolean;
|
|
41
41
|
showRightShadow: boolean;
|
|
@@ -69,12 +69,12 @@ declare const _default: {
|
|
|
69
69
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("../../../ui").OverflowShadowState>, nextContext: any): void;
|
|
70
70
|
};
|
|
71
71
|
new (props: Props & OverflowShadowProps, context: any): {
|
|
72
|
-
overflowContainer?: HTMLElement | null
|
|
73
|
-
container?: HTMLElement
|
|
74
|
-
shadowObserver?: import("../../../ui").ShadowObserver
|
|
72
|
+
overflowContainer?: HTMLElement | null;
|
|
73
|
+
container?: HTMLElement;
|
|
74
|
+
shadowObserver?: import("../../../ui").ShadowObserver;
|
|
75
75
|
overflowContainerWidth: number;
|
|
76
|
-
scrollable?: NodeList
|
|
77
|
-
diff?: number
|
|
76
|
+
scrollable?: NodeList;
|
|
77
|
+
diff?: number;
|
|
78
78
|
state: {
|
|
79
79
|
showLeftShadow: boolean;
|
|
80
80
|
showRightShadow: boolean;
|
|
@@ -14,6 +14,6 @@ export declare function getExtensionModuleNodePrivateProps(extensionProvider: Ex
|
|
|
14
14
|
}>;
|
|
15
15
|
export declare function getNodeRenderer<T extends Parameters>(extensionProvider: ExtensionProvider, extensionType: ExtensionType, extensionKey: ExtensionKey): React.ComponentType<{
|
|
16
16
|
node: ExtensionParams<T>;
|
|
17
|
-
references?: ReferenceEntity[]
|
|
18
|
-
actions?: MultiBodiedExtensionActions
|
|
17
|
+
references?: ReferenceEntity[];
|
|
18
|
+
actions?: MultiBodiedExtensionActions;
|
|
19
19
|
}> & Loadable.LoadableComponent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FloatingToolbarItem } from '../types';
|
|
2
2
|
export type Item = FloatingToolbarItem<Function>;
|
|
3
3
|
export declare const shallowEqual: (objA?: Object, objB?: Object) => boolean;
|
|
4
|
-
export declare const compareArrays: <T extends any
|
|
4
|
+
export declare const compareArrays: <T extends Array<any>>(left: Array<T>, right: Array<T>, compareFn?: (left: T, right: T) => boolean) => boolean;
|
|
5
5
|
export declare const isSameItem: (leftItem: Item, rightItem: Item) => boolean;
|
|
6
6
|
export declare const areSameItems: (leftArr?: Array<Item>, rightArr?: Array<Item>) => boolean;
|
|
7
7
|
export { DropdownMenuExtensionItems } from './DropdownMenuExtensionItems';
|
|
@@ -11,6 +11,7 @@ declare const _default: {
|
|
|
11
11
|
'editor.extension.legacyContentHeader': string;
|
|
12
12
|
'editor.extension.legacyContentHeader.contentHasLimitedFunctionality': string;
|
|
13
13
|
'editor.extension.legacyContentHeader.learnMore': string;
|
|
14
|
+
'editor.trackChanges.toolbarIconLabel': string;
|
|
14
15
|
'fablric.editor.viewAllInserts': string;
|
|
15
16
|
'fabric.editor.action': string;
|
|
16
17
|
'fabric.editor.action.description': string;
|
|
@@ -221,11 +222,24 @@ declare const _default: {
|
|
|
221
222
|
'fabric.editor.ai.selectionToolbar.define.title': string;
|
|
222
223
|
'fabric.editor.ai.telepointer.rovo': string;
|
|
223
224
|
'fabric.editor.ai.toolbar.askAI.title': string;
|
|
225
|
+
'fabric.editor.ai.toolbar.askRovo.title': string;
|
|
224
226
|
'fabric.editor.ai.toolbar.askRovoAiSplitButton.label': string;
|
|
227
|
+
'fabric.editor.ai.toolbar.changeTone.title': string;
|
|
228
|
+
'fabric.editor.ai.toolbar.changeToneOptions.title': string;
|
|
225
229
|
'fabric.editor.ai.toolbar.improveWriting.title': string;
|
|
226
230
|
'fabric.editor.ai.toolbar.improveWriting.tooltip': string;
|
|
231
|
+
'fabric.editor.ai.toolbar.makeLonger.title': string;
|
|
232
|
+
'fabric.editor.ai.toolbar.makeShorter.title': string;
|
|
233
|
+
'fabric.editor.ai.toolbar.moreCasualTone.title': string;
|
|
234
|
+
'fabric.editor.ai.toolbar.moreEmpatheticTone.title': string;
|
|
235
|
+
'fabric.editor.ai.toolbar.moreProfessionalTone.title': string;
|
|
236
|
+
'fabric.editor.ai.toolbar.moreRovoOptions.label': string;
|
|
227
237
|
'fabric.editor.ai.toolbar.simplifiedAI.title': string;
|
|
238
|
+
'fabric.editor.ai.toolbar.spellingAndGrammar.title': string;
|
|
239
|
+
'fabric.editor.ai.toolbar.summarize.title': string;
|
|
228
240
|
'fabric.editor.ai.toolbar.titleText': string;
|
|
241
|
+
'fabric.editor.ai.toolbar.translate.title': string;
|
|
242
|
+
'fabric.editor.ai.toolbar.translateOptions.label': string;
|
|
229
243
|
'fabric.editor.ai.toolbar.tryAI.title': string;
|
|
230
244
|
'fabric.editor.ai.toolbar.tryAI.tooltip': string;
|
|
231
245
|
'fabric.editor.ai.toolbar.tryAI.tooltip.quickCommand': string;
|