@atlaskit/editor-common 107.28.2 → 107.30.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 +27 -0
- package/afm-cc/tsconfig.json +7 -4
- package/dist/cjs/block-menu/messages.js +6 -1
- package/dist/cjs/code-block/index.js +58 -1
- package/dist/cjs/messages/block-menu.js +3 -3
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/smartCard.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/block-menu/messages.js +6 -1
- package/dist/es2019/code-block/index.js +57 -0
- package/dist/es2019/messages/block-menu.js +3 -3
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/smartCard.js +2 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/block-menu/messages.js +6 -1
- package/dist/esm/code-block/index.js +57 -0
- package/dist/esm/messages/block-menu.js +3 -3
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/smartCard.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/api.d.ts +2 -2
- package/dist/types/analytics/types/activity-session-events.d.ts +14 -14
- package/dist/types/analytics/types/ai-definitions-events.d.ts +1 -1
- package/dist/types/analytics/types/ai-events.d.ts +2 -2
- package/dist/types/analytics/types/ai-inline-suggestion-events.d.ts +2 -2
- package/dist/types/analytics/types/ai-proactive-events.d.ts +12 -12
- package/dist/types/analytics/types/ai-unified-events.d.ts +11 -11
- package/dist/types/analytics/types/breakout-events.d.ts +4 -4
- package/dist/types/analytics/types/config-panel-events.d.ts +3 -3
- package/dist/types/analytics/types/cut-copy-events.d.ts +4 -4
- package/dist/types/analytics/types/datasource-clicked-events.d.ts +2 -2
- package/dist/types/analytics/types/date-events.d.ts +1 -1
- package/dist/types/analytics/types/element-events.d.ts +4 -4
- package/dist/types/analytics/types/events.d.ts +23 -23
- package/dist/types/analytics/types/extension-events.d.ts +5 -5
- package/dist/types/analytics/types/format-events.d.ts +6 -6
- package/dist/types/analytics/types/general-events.d.ts +32 -32
- package/dist/types/analytics/types/highlight-actions-menu-events.d.ts +1 -1
- package/dist/types/analytics/types/highlight-events.d.ts +1 -1
- package/dist/types/analytics/types/inline-comment-events.d.ts +1 -1
- package/dist/types/analytics/types/insert-events.d.ts +26 -26
- package/dist/types/analytics/types/link-events.d.ts +1 -1
- package/dist/types/analytics/types/link-tool-bar-events.d.ts +17 -17
- package/dist/types/analytics/types/list-events.d.ts +8 -8
- package/dist/types/analytics/types/loom-events.d.ts +1 -1
- package/dist/types/analytics/types/media-events.d.ts +9 -9
- package/dist/types/analytics/types/mention-events.d.ts +30 -30
- package/dist/types/analytics/types/move-content-events.d.ts +3 -3
- package/dist/types/analytics/types/ncs-session-step-events.d.ts +3 -3
- package/dist/types/analytics/types/node-events.d.ts +5 -5
- package/dist/types/analytics/types/offline-editing-event.d.ts +5 -5
- package/dist/types/analytics/types/paste-events.d.ts +6 -6
- package/dist/types/analytics/types/performance-report.d.ts +6 -6
- package/dist/types/analytics/types/referentiality-events.d.ts +2 -2
- package/dist/types/analytics/types/selection-events.d.ts +1 -1
- package/dist/types/analytics/types/smart-links.d.ts +2 -2
- package/dist/types/analytics/types/substitute-events.d.ts +1 -1
- package/dist/types/analytics/types/table-events.d.ts +19 -19
- package/dist/types/analytics/types/type-ahead.d.ts +3 -3
- package/dist/types/analytics/types/utils.d.ts +6 -6
- package/dist/types/analytics/types/view-events.d.ts +2 -2
- package/dist/types/annotation/index.d.ts +39 -39
- package/dist/types/block-menu/messages.d.ts +5 -0
- package/dist/types/card/LinkToolbarButtonGroup.d.ts +5 -5
- package/dist/types/card/MediaAndEmbedsToolbar/index.d.ts +2 -2
- package/dist/types/card/cardOptions.d.ts +36 -36
- package/dist/types/card/types.d.ts +8 -8
- package/dist/types/code-block/index.d.ts +6 -0
- package/dist/types/collab/index.d.ts +71 -71
- package/dist/types/doc-utils/editor-use-only.d.ts +1 -1
- package/dist/types/element-browser/ElementBrowser.d.ts +9 -9
- package/dist/types/element-browser/ViewMore.d.ts +1 -1
- package/dist/types/element-browser/components/CategoryList.d.ts +1 -1
- package/dist/types/element-browser/components/ElementList/ElementList.d.ts +11 -11
- package/dist/types/element-browser/components/ElementList/EmptyState.d.ts +1 -1
- package/dist/types/element-browser/components/ElementSearch.d.ts +4 -4
- package/dist/types/element-browser/components/StatelessElementBrowser.d.ts +14 -14
- package/dist/types/element-browser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +12 -12
- package/dist/types/element-browser/types.d.ts +2 -2
- package/dist/types/extensibility/Extension/Extension/index.d.ts +12 -12
- package/dist/types/extensibility/Extension/InlineExtension/index.d.ts +5 -5
- package/dist/types/extensibility/Extension/LegacyContentHeader/index.d.ts +1 -1
- package/dist/types/extensibility/Extension/Lozenge/EditToggle.d.ts +2 -2
- package/dist/types/extensibility/Extension/Lozenge/ExtensionLabel.d.ts +6 -6
- package/dist/types/extensibility/Extension/Lozenge/LozengeComponent.d.ts +11 -11
- package/dist/types/extensibility/Extension/Lozenge/index.d.ts +9 -9
- package/dist/types/extensibility/Extension.d.ts +8 -8
- package/dist/types/extensibility/ExtensionComponent.d.ts +13 -13
- package/dist/types/extensibility/ExtensionNodeWrapper.d.ts +1 -1
- package/dist/types/extensibility/MultiBodiedExtension/action-api.d.ts +5 -5
- package/dist/types/extensibility/MultiBodiedExtension/index.d.ts +10 -10
- package/dist/types/extensibility/extensionNodeView.d.ts +8 -8
- package/dist/types/extensions/extension-handlers.d.ts +1 -1
- package/dist/types/extensions/types/extension-handler.d.ts +10 -10
- package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +13 -13
- package/dist/types/extensions/types/extension-manifest.d.ts +26 -26
- package/dist/types/extensions/types/extension-provider.d.ts +3 -3
- package/dist/types/extensions/types/field-definitions.d.ts +40 -40
- package/dist/types/extensions/types/utils.d.ts +7 -7
- package/dist/types/floating-toolbar/DropdownMenuExtensionItems.d.ts +4 -4
- package/dist/types/floating-toolbar/DropdownMenuItem.d.ts +10 -10
- package/dist/types/guideline/relativeGuideline.d.ts +1 -1
- package/dist/types/guideline/types.d.ts +9 -9
- package/dist/types/guideline/updateGuideline.d.ts +1 -1
- package/dist/types/guideline/utils.d.ts +2 -2
- package/dist/types/icons/shared/DynamicStrokeIconDecoration.d.ts +1 -1
- package/dist/types/icons/shared/SteppedRainbowIconDecoration.d.ts +1 -1
- package/dist/types/insert/index.d.ts +2 -2
- package/dist/types/keymaps/index.d.ts +2 -2
- package/dist/types/lazy-node-view/index.d.ts +3 -3
- package/dist/types/link/ConfigureLinkOverlay/Dropdown.d.ts +3 -3
- package/dist/types/link/ConfigureLinkOverlay/handleNavigation.d.ts +1 -1
- package/dist/types/link/ConfigureLinkOverlay/index.d.ts +2 -2
- package/dist/types/link/LinkPicker/EditorLinkPicker/index.d.ts +3 -3
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +12 -12
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +8 -8
- package/dist/types/link/LinkSearch/LinkSearchList.d.ts +6 -6
- package/dist/types/link/LinkSearch/LinkSearchListItem.d.ts +4 -4
- package/dist/types/link/LinkSearch/types.d.ts +11 -11
- package/dist/types/link/types.d.ts +9 -9
- package/dist/types/lists/indentation.d.ts +1 -1
- package/dist/types/lists/node.d.ts +2 -2
- package/dist/types/lists/replace-content.d.ts +1 -1
- package/dist/types/lists/selection.d.ts +1 -1
- package/dist/types/media-inline/inline-image-card.d.ts +4 -4
- package/dist/types/media-inline/inline-image-wrapper.d.ts +3 -3
- package/dist/types/media-inline/media-inline-image-card.d.ts +8 -8
- package/dist/types/media-inline/types.d.ts +4 -4
- package/dist/types/media-inline/views/error-view.d.ts +3 -3
- package/dist/types/media-inline/views/loading-view.d.ts +2 -2
- package/dist/types/media-single/CommentBadge.d.ts +6 -6
- package/dist/types/media-single/CommentBadgeNext.d.ts +1 -1
- package/dist/types/media-single/MediaBadges.d.ts +4 -4
- package/dist/types/media-single/utils.d.ts +5 -5
- package/dist/types/node-visibility/node-visibility-manager.d.ts +5 -5
- package/dist/types/portal/PortalManager.d.ts +1 -1
- package/dist/types/portal/common.d.ts +2 -2
- package/dist/types/preset/builder.d.ts +1 -1
- package/dist/types/preset/plugin-injection-api.d.ts +3 -3
- package/dist/types/provider-factory/card-provider.d.ts +1 -1
- package/dist/types/provider-factory/context-identifier-provider.d.ts +1 -1
- package/dist/types/provider-factory/image-upload-provider.d.ts +1 -1
- package/dist/types/provider-factory/macro-provider.d.ts +4 -4
- package/dist/types/provider-factory/media-provider.d.ts +5 -5
- package/dist/types/provider-factory/profile-card-provider.d.ts +1 -1
- package/dist/types/provider-factory/quick-insert-provider.d.ts +10 -10
- package/dist/types/provider-factory/search-provider.d.ts +3 -3
- package/dist/types/provider-factory/types.d.ts +11 -11
- package/dist/types/provider-helpers/promise-helpers.d.ts +1 -1
- package/dist/types/quick-insert/use-icon-themed.d.ts +1 -1
- package/dist/types/react-node-view/getInlineNodeViewProducer.d.ts +6 -6
- package/dist/types/react-node-view/index.d.ts +1 -1
- package/dist/types/resizer/BreakoutResizer.d.ts +10 -10
- package/dist/types/resizer/Resizer.d.ts +32 -32
- package/dist/types/resizer/types.d.ts +2 -2
- package/dist/types/safe-plugin/index.d.ts +1 -1
- package/dist/types/selection/gap-cursor/actions.d.ts +1 -1
- package/dist/types/selection/gap-cursor/selection.d.ts +1 -1
- package/dist/types/selection/index.d.ts +1 -1
- package/dist/types/selection/types.d.ts +3 -3
- package/dist/types/table/SortingIcon.d.ts +1 -1
- package/dist/types/toolbar/context.d.ts +1 -1
- package/dist/types/types/annotation/index.d.ts +43 -43
- package/dist/types/types/copy-button.d.ts +8 -8
- package/dist/types/types/doc-builder.d.ts +1 -1
- package/dist/types/types/editor-actions.d.ts +6 -6
- package/dist/types/types/editor-container-width.d.ts +7 -7
- package/dist/types/types/editor-plugin.d.ts +33 -33
- package/dist/types/types/empty-state-handler.d.ts +1 -1
- package/dist/types/types/feature-flags.d.ts +107 -107
- package/dist/types/types/feedback-dialog.d.ts +5 -5
- package/dist/types/types/floating-toolbar.d.ts +142 -142
- package/dist/types/types/hyperlink.d.ts +10 -10
- package/dist/types/types/input-rules.d.ts +1 -1
- package/dist/types/types/next-editor-plugin.d.ts +47 -47
- package/dist/types/types/performance-tracking.d.ts +90 -90
- package/dist/types/types/plugin-factory.d.ts +6 -6
- package/dist/types/types/prosemirror-config.d.ts +1 -1
- package/dist/types/types/quick-insert.d.ts +9 -9
- package/dist/types/types/selection-toolbar.d.ts +2 -2
- package/dist/types/types/supported-browsers.d.ts +1 -1
- package/dist/types/types/tables.d.ts +3 -3
- package/dist/types/types/text-formatting.d.ts +14 -14
- package/dist/types/types/toolbar.d.ts +2 -2
- package/dist/types/types/type-ahead.d.ts +29 -29
- package/dist/types/types/ui-components.d.ts +7 -7
- package/dist/types/types/user-preferences.d.ts +6 -6
- package/dist/types/ugc-tokens/editor-ugc-token-names.d.ts +1 -1
- package/dist/types/ui/Announcer/announcer.d.ts +5 -5
- package/dist/types/ui/AssistiveText/AssistiveText.d.ts +2 -2
- package/dist/types/ui/BaseTheme/index.d.ts +2 -2
- package/dist/types/ui/Caption/index.d.ts +2 -2
- package/dist/types/ui/ContextPanel/context.d.ts +4 -4
- package/dist/types/ui/DropList/index.d.ts +7 -7
- package/dist/types/ui/Emoji/index.d.ts +3 -3
- package/dist/types/ui/ErrorBoundary/index.d.ts +1 -1
- package/dist/types/ui/EventHandlers/index.d.ts +7 -7
- package/dist/types/ui/Expand/sharedStyles.d.ts +2 -2
- package/dist/types/ui/FloatingToolbar/Button.d.ts +20 -20
- package/dist/types/ui/FloatingToolbar/ButtonSpotlightCard.d.ts +1 -1
- package/dist/types/ui/HoverLinkOverlay/types.d.ts +4 -4
- package/dist/types/ui/Layer/index.d.ts +6 -6
- package/dist/types/ui/MediaSingle/grid.d.ts +4 -4
- package/dist/types/ui/MediaSingle/index.d.ts +12 -12
- package/dist/types/ui/MediaSingle/styled.d.ts +8 -8
- package/dist/types/ui/Mention/index.d.ts +3 -3
- package/dist/types/ui/Mention/mention-with-profilecard.d.ts +4 -4
- package/dist/types/ui/Mention/mention-with-providers.d.ts +4 -4
- package/dist/types/ui/OverflowShadow/index.d.ts +1 -1
- package/dist/types/ui/OverflowShadow/shadowObserver.d.ts +1 -1
- package/dist/types/ui/PanelTextInput/index.d.ts +18 -18
- package/dist/types/ui/Popup/index.d.ts +16 -16
- package/dist/types/ui/Popup/utils.d.ts +6 -6
- package/dist/types/ui/Pulse/Pulse.d.ts +1 -1
- package/dist/types/ui/ResizerLegacy/index.d.ts +11 -11
- package/dist/types/ui/ResizerLegacy/types.d.ts +8 -8
- package/dist/types/ui/TableSelector/index.d.ts +11 -11
- package/dist/types/ui/TableSelector/table-selector.d.ts +7 -7
- package/dist/types/ui/UnsupportedBlock/index.d.ts +1 -1
- package/dist/types/ui/UnsupportedInline/index.d.ts +1 -1
- package/dist/types/ui/WidthProvider/index.d.ts +2 -2
- package/dist/types/ui-color/ColorPalette/Color/index.d.ts +8 -8
- package/dist/types/ui-color/ColorPalette/Palettes/type.d.ts +3 -3
- package/dist/types/ui-color/ColorPalette/index.d.ts +4 -4
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/types.d.ts +11 -11
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +11 -11
- package/dist/types/ui-menu/Dropdown/index.d.ts +15 -15
- package/dist/types/ui-menu/DropdownMenu/types.d.ts +33 -33
- package/dist/types/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -4
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +19 -19
- package/dist/types/ui-react/ReactEditorViewContext.d.ts +1 -1
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +5 -5
- package/dist/types/user-preferences/persistence-api.d.ts +8 -8
- package/dist/types/utils/breakout.d.ts +12 -12
- package/dist/types/utils/calculate-toolbar-position.d.ts +1 -1
- package/dist/types/utils/compare-props.d.ts +3 -3
- package/dist/types/utils/count-nodes.d.ts +1 -1
- package/dist/types/utils/create-wrap-selection-transaction.d.ts +1 -1
- package/dist/types/utils/editor-core-utils.d.ts +1 -1
- package/dist/types/utils/error-reporter.d.ts +1 -1
- package/dist/types/utils/get-performance-options.d.ts +2 -2
- package/dist/types/utils/hyperlink.d.ts +1 -1
- package/dist/types/utils/imageLoader.d.ts +3 -3
- package/dist/types/utils/input-rules.d.ts +2 -2
- package/dist/types/utils/macro.d.ts +1 -1
- package/dist/types/utils/page-element-counts.d.ts +2 -2
- package/dist/types/utils/performance/hooks/use-component-render-tracking/index.d.ts +2 -2
- package/dist/types/utils/performance/measure-render.d.ts +3 -3
- package/dist/types/utils/performance/measure-tti.d.ts +1 -1
- package/dist/types/utils/plugin-state-factory.d.ts +1 -1
- package/dist/types/utils/profiler/render-count.d.ts +3 -3
- package/dist/types/utils/track-unsupported-content.d.ts +5 -5
- package/dist/types/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +1 -1
- package/dist/types/utils/unsupportedContent/types.d.ts +1 -1
- package/dist/types/utils/validator.d.ts +5 -5
- package/dist/types/with-plugin-state/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/api.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/activity-session-events.d.ts +14 -14
- package/dist/types-ts4.5/analytics/types/ai-definitions-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/ai-events.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/ai-inline-suggestion-events.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/ai-proactive-events.d.ts +12 -12
- package/dist/types-ts4.5/analytics/types/ai-unified-events.d.ts +11 -11
- package/dist/types-ts4.5/analytics/types/breakout-events.d.ts +4 -4
- package/dist/types-ts4.5/analytics/types/config-panel-events.d.ts +3 -3
- package/dist/types-ts4.5/analytics/types/cut-copy-events.d.ts +4 -4
- package/dist/types-ts4.5/analytics/types/datasource-clicked-events.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/date-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/element-events.d.ts +4 -4
- package/dist/types-ts4.5/analytics/types/events.d.ts +23 -23
- package/dist/types-ts4.5/analytics/types/extension-events.d.ts +5 -5
- package/dist/types-ts4.5/analytics/types/format-events.d.ts +6 -6
- package/dist/types-ts4.5/analytics/types/general-events.d.ts +32 -32
- package/dist/types-ts4.5/analytics/types/highlight-actions-menu-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/highlight-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/inline-comment-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/insert-events.d.ts +26 -26
- package/dist/types-ts4.5/analytics/types/link-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/link-tool-bar-events.d.ts +17 -17
- package/dist/types-ts4.5/analytics/types/list-events.d.ts +8 -8
- package/dist/types-ts4.5/analytics/types/loom-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/media-events.d.ts +9 -9
- package/dist/types-ts4.5/analytics/types/mention-events.d.ts +30 -30
- package/dist/types-ts4.5/analytics/types/move-content-events.d.ts +3 -3
- package/dist/types-ts4.5/analytics/types/ncs-session-step-events.d.ts +3 -3
- package/dist/types-ts4.5/analytics/types/node-events.d.ts +5 -5
- package/dist/types-ts4.5/analytics/types/offline-editing-event.d.ts +5 -5
- package/dist/types-ts4.5/analytics/types/paste-events.d.ts +6 -6
- package/dist/types-ts4.5/analytics/types/performance-report.d.ts +6 -6
- package/dist/types-ts4.5/analytics/types/referentiality-events.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/selection-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/smart-links.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/substitute-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/table-events.d.ts +19 -19
- package/dist/types-ts4.5/analytics/types/type-ahead.d.ts +3 -3
- package/dist/types-ts4.5/analytics/types/utils.d.ts +6 -6
- package/dist/types-ts4.5/analytics/types/view-events.d.ts +2 -2
- package/dist/types-ts4.5/annotation/index.d.ts +39 -39
- package/dist/types-ts4.5/block-menu/messages.d.ts +5 -0
- package/dist/types-ts4.5/card/LinkToolbarButtonGroup.d.ts +5 -5
- package/dist/types-ts4.5/card/MediaAndEmbedsToolbar/index.d.ts +2 -2
- package/dist/types-ts4.5/card/cardOptions.d.ts +36 -36
- package/dist/types-ts4.5/card/types.d.ts +8 -8
- package/dist/types-ts4.5/code-block/index.d.ts +6 -0
- package/dist/types-ts4.5/collab/index.d.ts +71 -71
- package/dist/types-ts4.5/doc-utils/editor-use-only.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/ElementBrowser.d.ts +9 -9
- package/dist/types-ts4.5/element-browser/ViewMore.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/CategoryList.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/ElementList/ElementList.d.ts +11 -11
- package/dist/types-ts4.5/element-browser/components/ElementList/EmptyState.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/ElementSearch.d.ts +4 -4
- package/dist/types-ts4.5/element-browser/components/StatelessElementBrowser.d.ts +14 -14
- package/dist/types-ts4.5/element-browser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +12 -12
- package/dist/types-ts4.5/element-browser/types.d.ts +2 -2
- package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +12 -12
- package/dist/types-ts4.5/extensibility/Extension/InlineExtension/index.d.ts +5 -5
- package/dist/types-ts4.5/extensibility/Extension/LegacyContentHeader/index.d.ts +1 -1
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/EditToggle.d.ts +2 -2
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/ExtensionLabel.d.ts +6 -6
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/LozengeComponent.d.ts +11 -11
- package/dist/types-ts4.5/extensibility/Extension/Lozenge/index.d.ts +9 -9
- package/dist/types-ts4.5/extensibility/Extension.d.ts +8 -8
- package/dist/types-ts4.5/extensibility/ExtensionComponent.d.ts +13 -13
- package/dist/types-ts4.5/extensibility/ExtensionNodeWrapper.d.ts +1 -1
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/action-api.d.ts +5 -5
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/index.d.ts +10 -10
- package/dist/types-ts4.5/extensibility/extensionNodeView.d.ts +8 -8
- package/dist/types-ts4.5/extensions/extension-handlers.d.ts +1 -1
- package/dist/types-ts4.5/extensions/types/extension-handler.d.ts +10 -10
- package/dist/types-ts4.5/extensions/types/extension-manifest-toolbar-item.d.ts +13 -13
- package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +26 -26
- package/dist/types-ts4.5/extensions/types/extension-provider.d.ts +3 -3
- package/dist/types-ts4.5/extensions/types/field-definitions.d.ts +40 -40
- package/dist/types-ts4.5/extensions/types/utils.d.ts +7 -7
- package/dist/types-ts4.5/floating-toolbar/DropdownMenuExtensionItems.d.ts +4 -4
- package/dist/types-ts4.5/floating-toolbar/DropdownMenuItem.d.ts +10 -10
- package/dist/types-ts4.5/guideline/relativeGuideline.d.ts +1 -1
- package/dist/types-ts4.5/guideline/types.d.ts +9 -9
- package/dist/types-ts4.5/guideline/updateGuideline.d.ts +1 -1
- package/dist/types-ts4.5/guideline/utils.d.ts +2 -2
- package/dist/types-ts4.5/icons/shared/DynamicStrokeIconDecoration.d.ts +1 -1
- package/dist/types-ts4.5/icons/shared/SteppedRainbowIconDecoration.d.ts +1 -1
- package/dist/types-ts4.5/insert/index.d.ts +2 -2
- package/dist/types-ts4.5/keymaps/index.d.ts +2 -2
- package/dist/types-ts4.5/lazy-node-view/index.d.ts +3 -3
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/Dropdown.d.ts +3 -3
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/handleNavigation.d.ts +1 -1
- package/dist/types-ts4.5/link/ConfigureLinkOverlay/index.d.ts +2 -2
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/index.d.ts +3 -3
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +12 -12
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +8 -8
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchList.d.ts +6 -6
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchListItem.d.ts +4 -4
- package/dist/types-ts4.5/link/LinkSearch/types.d.ts +11 -11
- package/dist/types-ts4.5/link/types.d.ts +9 -9
- package/dist/types-ts4.5/lists/indentation.d.ts +1 -1
- package/dist/types-ts4.5/lists/node.d.ts +2 -2
- package/dist/types-ts4.5/lists/replace-content.d.ts +1 -1
- package/dist/types-ts4.5/lists/selection.d.ts +1 -1
- package/dist/types-ts4.5/media-inline/inline-image-card.d.ts +4 -4
- package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +3 -3
- package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +8 -8
- package/dist/types-ts4.5/media-inline/types.d.ts +4 -4
- package/dist/types-ts4.5/media-inline/views/error-view.d.ts +3 -3
- package/dist/types-ts4.5/media-inline/views/loading-view.d.ts +2 -2
- package/dist/types-ts4.5/media-single/CommentBadge.d.ts +6 -6
- package/dist/types-ts4.5/media-single/CommentBadgeNext.d.ts +1 -1
- package/dist/types-ts4.5/media-single/MediaBadges.d.ts +4 -4
- package/dist/types-ts4.5/media-single/utils.d.ts +5 -5
- package/dist/types-ts4.5/node-visibility/node-visibility-manager.d.ts +5 -5
- package/dist/types-ts4.5/portal/PortalManager.d.ts +1 -1
- package/dist/types-ts4.5/portal/common.d.ts +2 -2
- package/dist/types-ts4.5/preset/builder.d.ts +1 -1
- package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +3 -3
- package/dist/types-ts4.5/provider-factory/card-provider.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/context-identifier-provider.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/image-upload-provider.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/macro-provider.d.ts +4 -4
- package/dist/types-ts4.5/provider-factory/media-provider.d.ts +5 -5
- package/dist/types-ts4.5/provider-factory/profile-card-provider.d.ts +1 -1
- package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +10 -10
- package/dist/types-ts4.5/provider-factory/search-provider.d.ts +3 -3
- package/dist/types-ts4.5/provider-factory/types.d.ts +11 -11
- package/dist/types-ts4.5/provider-helpers/promise-helpers.d.ts +1 -1
- package/dist/types-ts4.5/quick-insert/use-icon-themed.d.ts +1 -1
- package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +6 -6
- package/dist/types-ts4.5/react-node-view/index.d.ts +1 -1
- package/dist/types-ts4.5/resizer/BreakoutResizer.d.ts +10 -10
- package/dist/types-ts4.5/resizer/Resizer.d.ts +32 -32
- package/dist/types-ts4.5/resizer/types.d.ts +2 -2
- package/dist/types-ts4.5/safe-plugin/index.d.ts +1 -1
- package/dist/types-ts4.5/selection/gap-cursor/actions.d.ts +1 -1
- package/dist/types-ts4.5/selection/gap-cursor/selection.d.ts +1 -1
- package/dist/types-ts4.5/selection/index.d.ts +1 -1
- package/dist/types-ts4.5/selection/types.d.ts +3 -3
- package/dist/types-ts4.5/table/SortingIcon.d.ts +1 -1
- package/dist/types-ts4.5/toolbar/context.d.ts +1 -1
- package/dist/types-ts4.5/types/annotation/index.d.ts +43 -43
- package/dist/types-ts4.5/types/copy-button.d.ts +8 -8
- package/dist/types-ts4.5/types/doc-builder.d.ts +1 -1
- package/dist/types-ts4.5/types/editor-actions.d.ts +6 -6
- package/dist/types-ts4.5/types/editor-container-width.d.ts +7 -7
- package/dist/types-ts4.5/types/editor-plugin.d.ts +33 -33
- package/dist/types-ts4.5/types/empty-state-handler.d.ts +1 -1
- package/dist/types-ts4.5/types/feature-flags.d.ts +107 -107
- package/dist/types-ts4.5/types/feedback-dialog.d.ts +5 -5
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +142 -142
- package/dist/types-ts4.5/types/hyperlink.d.ts +10 -10
- package/dist/types-ts4.5/types/input-rules.d.ts +1 -1
- package/dist/types-ts4.5/types/next-editor-plugin.d.ts +47 -47
- package/dist/types-ts4.5/types/performance-tracking.d.ts +90 -90
- package/dist/types-ts4.5/types/plugin-factory.d.ts +6 -6
- package/dist/types-ts4.5/types/prosemirror-config.d.ts +1 -1
- package/dist/types-ts4.5/types/quick-insert.d.ts +9 -9
- package/dist/types-ts4.5/types/selection-toolbar.d.ts +2 -2
- package/dist/types-ts4.5/types/supported-browsers.d.ts +1 -1
- package/dist/types-ts4.5/types/tables.d.ts +3 -3
- package/dist/types-ts4.5/types/text-formatting.d.ts +14 -14
- package/dist/types-ts4.5/types/toolbar.d.ts +2 -2
- package/dist/types-ts4.5/types/type-ahead.d.ts +29 -29
- package/dist/types-ts4.5/types/ui-components.d.ts +7 -7
- package/dist/types-ts4.5/types/user-preferences.d.ts +6 -6
- package/dist/types-ts4.5/ugc-tokens/editor-ugc-token-names.d.ts +1 -1
- package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +5 -5
- package/dist/types-ts4.5/ui/AssistiveText/AssistiveText.d.ts +2 -2
- package/dist/types-ts4.5/ui/BaseTheme/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/Caption/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ContextPanel/context.d.ts +4 -4
- package/dist/types-ts4.5/ui/DropList/index.d.ts +7 -7
- package/dist/types-ts4.5/ui/Emoji/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/EventHandlers/index.d.ts +7 -7
- package/dist/types-ts4.5/ui/Expand/sharedStyles.d.ts +2 -2
- package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +20 -20
- package/dist/types-ts4.5/ui/FloatingToolbar/ButtonSpotlightCard.d.ts +1 -1
- package/dist/types-ts4.5/ui/HoverLinkOverlay/types.d.ts +4 -4
- package/dist/types-ts4.5/ui/Layer/index.d.ts +6 -6
- package/dist/types-ts4.5/ui/MediaSingle/grid.d.ts +4 -4
- package/dist/types-ts4.5/ui/MediaSingle/index.d.ts +12 -12
- package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +8 -8
- package/dist/types-ts4.5/ui/Mention/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/Mention/mention-with-profilecard.d.ts +4 -4
- package/dist/types-ts4.5/ui/Mention/mention-with-providers.d.ts +4 -4
- package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/OverflowShadow/shadowObserver.d.ts +1 -1
- package/dist/types-ts4.5/ui/PanelTextInput/index.d.ts +18 -18
- package/dist/types-ts4.5/ui/Popup/index.d.ts +16 -16
- package/dist/types-ts4.5/ui/Popup/utils.d.ts +6 -6
- package/dist/types-ts4.5/ui/Pulse/Pulse.d.ts +1 -1
- package/dist/types-ts4.5/ui/ResizerLegacy/index.d.ts +11 -11
- package/dist/types-ts4.5/ui/ResizerLegacy/types.d.ts +8 -8
- package/dist/types-ts4.5/ui/TableSelector/index.d.ts +11 -11
- package/dist/types-ts4.5/ui/TableSelector/table-selector.d.ts +7 -7
- package/dist/types-ts4.5/ui/UnsupportedBlock/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +2 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/index.d.ts +8 -8
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/type.d.ts +3 -3
- package/dist/types-ts4.5/ui-color/ColorPalette/index.d.ts +4 -4
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/types.d.ts +11 -11
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +11 -11
- package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +15 -15
- package/dist/types-ts4.5/ui-menu/DropdownMenu/types.d.ts +33 -33
- package/dist/types-ts4.5/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -4
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +19 -19
- package/dist/types-ts4.5/ui-react/ReactEditorViewContext.d.ts +1 -1
- package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +5 -5
- package/dist/types-ts4.5/user-preferences/persistence-api.d.ts +8 -8
- package/dist/types-ts4.5/utils/breakout.d.ts +12 -12
- package/dist/types-ts4.5/utils/calculate-toolbar-position.d.ts +1 -1
- package/dist/types-ts4.5/utils/compare-props.d.ts +3 -3
- package/dist/types-ts4.5/utils/count-nodes.d.ts +1 -1
- package/dist/types-ts4.5/utils/create-wrap-selection-transaction.d.ts +1 -1
- package/dist/types-ts4.5/utils/editor-core-utils.d.ts +1 -1
- package/dist/types-ts4.5/utils/error-reporter.d.ts +1 -1
- package/dist/types-ts4.5/utils/get-performance-options.d.ts +2 -2
- package/dist/types-ts4.5/utils/hyperlink.d.ts +1 -1
- package/dist/types-ts4.5/utils/imageLoader.d.ts +3 -3
- package/dist/types-ts4.5/utils/input-rules.d.ts +2 -2
- package/dist/types-ts4.5/utils/macro.d.ts +1 -1
- package/dist/types-ts4.5/utils/page-element-counts.d.ts +2 -2
- package/dist/types-ts4.5/utils/performance/hooks/use-component-render-tracking/index.d.ts +2 -2
- package/dist/types-ts4.5/utils/performance/measure-render.d.ts +3 -3
- package/dist/types-ts4.5/utils/performance/measure-tti.d.ts +1 -1
- package/dist/types-ts4.5/utils/plugin-state-factory.d.ts +1 -1
- package/dist/types-ts4.5/utils/profiler/render-count.d.ts +3 -3
- package/dist/types-ts4.5/utils/track-unsupported-content.d.ts +5 -5
- package/dist/types-ts4.5/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +1 -1
- package/dist/types-ts4.5/utils/unsupportedContent/types.d.ts +1 -1
- package/dist/types-ts4.5/utils/validator.d.ts +5 -5
- package/dist/types-ts4.5/with-plugin-state/index.d.ts +1 -1
- package/package.json +5 -9
|
@@ -3,12 +3,12 @@ import { ProviderFactory } from '../../provider-factory';
|
|
|
3
3
|
import { type ProfilecardProvider } from '../../provider-factory/profile-card-provider';
|
|
4
4
|
import { type MentionEventHandlers } from '../EventHandlers';
|
|
5
5
|
export interface MentionProps {
|
|
6
|
+
accessLevel?: string;
|
|
7
|
+
eventHandlers?: MentionEventHandlers;
|
|
6
8
|
id: string;
|
|
9
|
+
localId?: string;
|
|
7
10
|
providers?: ProviderFactory;
|
|
8
|
-
eventHandlers?: MentionEventHandlers;
|
|
9
11
|
text: string;
|
|
10
|
-
accessLevel?: string;
|
|
11
|
-
localId?: string;
|
|
12
12
|
}
|
|
13
13
|
export interface MentionState {
|
|
14
14
|
profilecardProvider: ProfilecardProvider | null;
|
|
@@ -3,16 +3,16 @@ import type { MentionProvider } from '@atlaskit/mention';
|
|
|
3
3
|
import type { ProfilecardProvider } from '../../provider-factory/profile-card-provider';
|
|
4
4
|
import type { MentionEventHandler } from '../EventHandlers';
|
|
5
5
|
export interface Props {
|
|
6
|
+
accessLevel?: string;
|
|
6
7
|
autoFocus?: boolean;
|
|
7
8
|
id: string;
|
|
8
|
-
|
|
9
|
-
accessLevel?: string;
|
|
9
|
+
localId?: string;
|
|
10
10
|
mentionProvider?: Promise<MentionProvider>;
|
|
11
|
-
profilecardProvider: ProfilecardProvider;
|
|
12
11
|
onClick?: MentionEventHandler;
|
|
13
12
|
onMouseEnter?: MentionEventHandler;
|
|
14
13
|
onMouseLeave?: MentionEventHandler;
|
|
15
|
-
|
|
14
|
+
profilecardProvider: ProfilecardProvider;
|
|
16
15
|
ssrPlaceholderId?: string;
|
|
16
|
+
text: string;
|
|
17
17
|
}
|
|
18
18
|
export default function MentionWithProfileCard({ autoFocus, id, text, accessLevel, mentionProvider, profilecardProvider, onClick, onMouseEnter, onMouseLeave, localId, ssrPlaceholderId, }: Props): React.JSX.Element;
|
|
@@ -3,13 +3,13 @@ import type { MentionProvider } from '@atlaskit/mention/resource';
|
|
|
3
3
|
import type { ProfilecardProvider } from '../../provider-factory/profile-card-provider';
|
|
4
4
|
import type { MentionEventHandlers } from '../EventHandlers';
|
|
5
5
|
export interface Props {
|
|
6
|
-
id: string;
|
|
7
|
-
text: string;
|
|
8
6
|
accessLevel?: string;
|
|
9
|
-
mentionProvider?: Promise<MentionProvider>;
|
|
10
|
-
profilecardProvider?: Promise<ProfilecardProvider>;
|
|
11
7
|
eventHandlers?: MentionEventHandlers;
|
|
8
|
+
id: string;
|
|
12
9
|
localId?: string;
|
|
10
|
+
mentionProvider?: Promise<MentionProvider>;
|
|
11
|
+
profilecardProvider?: Promise<ProfilecardProvider>;
|
|
12
|
+
text: string;
|
|
13
13
|
}
|
|
14
14
|
export interface State {
|
|
15
15
|
profilecardProvider: ProfilecardProvider | null;
|
|
@@ -5,9 +5,9 @@ export declare const shadowClassNames: {
|
|
|
5
5
|
LEFT_SHADOW: string;
|
|
6
6
|
};
|
|
7
7
|
export interface OverflowShadowProps {
|
|
8
|
+
disableTableOverflowShadow?: boolean;
|
|
8
9
|
handleRef?: (ref: HTMLElement | null) => void;
|
|
9
10
|
shadowClassNames?: string;
|
|
10
|
-
disableTableOverflowShadow?: boolean;
|
|
11
11
|
}
|
|
12
12
|
export interface OverflowShadowState {
|
|
13
13
|
showLeftShadow: boolean;
|
|
@@ -18,8 +18,8 @@ export declare class ShadowObserver {
|
|
|
18
18
|
private requestCallbackId?;
|
|
19
19
|
readonly shadowStates: ShadowsStates;
|
|
20
20
|
constructor({ scrollContainer, onUpdateShadows, }: {
|
|
21
|
-
scrollContainer: HTMLElement;
|
|
22
21
|
onUpdateShadows: (eventData: ShadowsStates) => void;
|
|
22
|
+
scrollContainer: HTMLElement;
|
|
23
23
|
});
|
|
24
24
|
private init;
|
|
25
25
|
private onIntersect;
|
|
@@ -6,30 +6,30 @@ import type { FocusEvent, KeyboardEvent } from 'react';
|
|
|
6
6
|
import { PureComponent } from 'react';
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
export interface Props {
|
|
9
|
+
ariaActiveDescendant?: string;
|
|
10
|
+
ariaAutoComplete?: boolean;
|
|
11
|
+
ariaControls?: string;
|
|
12
|
+
ariaExpanded?: boolean;
|
|
13
|
+
ariaInvalid?: boolean;
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
ariaRequired?: boolean;
|
|
9
16
|
autoFocus?: boolean | FocusOptions;
|
|
10
17
|
defaultValue?: string;
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
describedById?: string;
|
|
19
|
+
inputId?: string;
|
|
20
|
+
maxLength?: number;
|
|
21
|
+
onBlur?: Function;
|
|
13
22
|
onCancel?: (e: KeyboardEvent) => void;
|
|
14
|
-
|
|
15
|
-
onMouseDown?: Function;
|
|
23
|
+
onChange?: (value: string) => void;
|
|
16
24
|
onKeyDown?: (e: KeyboardEvent<any>) => void;
|
|
17
|
-
|
|
25
|
+
onMouseDown?: Function;
|
|
18
26
|
onRedo?: Function;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
testId?: string;
|
|
23
|
-
ariaLabel?: string;
|
|
24
|
-
describedById?: string;
|
|
25
|
-
ariaExpanded?: boolean;
|
|
26
|
-
ariaActiveDescendant?: string;
|
|
27
|
-
ariaControls?: string;
|
|
27
|
+
onSubmit?: (value: string) => void;
|
|
28
|
+
onUndo?: Function;
|
|
29
|
+
placeholder?: string;
|
|
28
30
|
role?: string;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
ariaInvalid?: boolean;
|
|
32
|
-
inputId?: string;
|
|
31
|
+
testId?: string;
|
|
32
|
+
width?: number;
|
|
33
33
|
}
|
|
34
34
|
export interface State {
|
|
35
35
|
value?: string;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Position } from './utils';
|
|
3
3
|
export interface Props {
|
|
4
|
-
|
|
4
|
+
absoluteOffset?: Position;
|
|
5
5
|
alignX?: 'left' | 'right' | 'center' | 'end';
|
|
6
6
|
alignY?: 'top' | 'bottom' | 'start';
|
|
7
|
-
|
|
7
|
+
allowOutOfBounds?: boolean;
|
|
8
|
+
/** `null` should only be used if we provide enough context to screen readers to exclude aria-label attribute */
|
|
9
|
+
ariaLabel?: string | null;
|
|
10
|
+
boundariesElement?: HTMLElement;
|
|
11
|
+
children?: React.ReactNode;
|
|
8
12
|
fitHeight?: number;
|
|
9
13
|
fitWidth?: number;
|
|
10
|
-
|
|
14
|
+
/** Enable focus trap to contain the user's focus within the popup */
|
|
15
|
+
focusTrap?: boolean;
|
|
16
|
+
forcePlacement?: boolean;
|
|
11
17
|
mountTo?: HTMLElement;
|
|
12
18
|
offset?: number[];
|
|
13
|
-
onUnmount?: () => void;
|
|
14
|
-
onPositionCalculated?: (position: Position) => Position;
|
|
15
19
|
onPlacementChanged?: (placement: [
|
|
16
20
|
string,
|
|
17
21
|
string
|
|
18
22
|
]) => void;
|
|
19
|
-
|
|
23
|
+
onPositionCalculated?: (position: Position) => Position;
|
|
24
|
+
onUnmount?: () => void;
|
|
25
|
+
preventOverflow?: boolean;
|
|
26
|
+
rect?: DOMRect;
|
|
20
27
|
scrollableElement?: HTMLElement;
|
|
28
|
+
shouldRenderPopup?: (position: Position) => boolean;
|
|
21
29
|
stick?: boolean;
|
|
22
|
-
/** `null` should only be used if we provide enough context to screen readers to exclude aria-label attribute */
|
|
23
|
-
ariaLabel?: string | null;
|
|
24
|
-
forcePlacement?: boolean;
|
|
25
|
-
allowOutOfBounds?: boolean;
|
|
26
|
-
rect?: DOMRect;
|
|
27
30
|
style?: React.CSSProperties;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
preventOverflow?: boolean;
|
|
31
|
-
absoluteOffset?: Position;
|
|
32
|
-
children?: React.ReactNode;
|
|
31
|
+
target?: HTMLElement;
|
|
32
|
+
zIndex?: number;
|
|
33
33
|
}
|
|
34
34
|
export interface State {
|
|
35
35
|
popup?: HTMLElement;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export interface Position {
|
|
2
|
-
top?: number;
|
|
3
|
-
right?: number;
|
|
4
2
|
bottom?: number;
|
|
5
3
|
left?: number;
|
|
4
|
+
right?: number;
|
|
5
|
+
top?: number;
|
|
6
6
|
}
|
|
7
7
|
export interface CalculatePositionParams {
|
|
8
|
+
allowOutOfBounds?: boolean;
|
|
9
|
+
offset: number[];
|
|
8
10
|
placement: [
|
|
9
11
|
string,
|
|
10
12
|
string
|
|
11
13
|
];
|
|
12
|
-
target?: HTMLElement;
|
|
13
14
|
popup?: HTMLElement;
|
|
14
|
-
offset: number[];
|
|
15
|
-
stick?: boolean;
|
|
16
|
-
allowOutOfBounds?: boolean;
|
|
17
15
|
rect?: DOMRect;
|
|
16
|
+
stick?: boolean;
|
|
17
|
+
target?: HTMLElement;
|
|
18
18
|
}
|
|
19
19
|
export declare function isBody(elem: HTMLElement | Element): boolean;
|
|
20
20
|
export declare function isTextNode(elem: HTMLElement | Element): boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
interface Props {
|
|
3
|
+
children: ReactNode;
|
|
3
4
|
/** If true, the component will have pulse onboarding effect around it. */
|
|
4
5
|
pulse?: boolean;
|
|
5
6
|
/** The radius of the pulse effect. */
|
|
6
7
|
radius?: number;
|
|
7
|
-
children: ReactNode;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Wraps children with {@link SpotlightPulse} component.
|
|
@@ -6,27 +6,27 @@ import type { DispatchAnalyticsEvent } from '../../analytics';
|
|
|
6
6
|
import type { HandleStyles } from '../../resizer/types';
|
|
7
7
|
import type { EnabledHandles, Props as ResizableMediaSingleProps } from './types';
|
|
8
8
|
export interface ResizableNumberSize {
|
|
9
|
-
width: number;
|
|
10
9
|
height: number;
|
|
10
|
+
width: number;
|
|
11
11
|
}
|
|
12
12
|
export type ResizerProps = Omit<ResizableMediaSingleProps, 'height' | 'width'> & {
|
|
13
|
-
selected?: boolean;
|
|
14
|
-
enable: EnabledHandles;
|
|
15
13
|
calcNewSize: (newWidth: number, stop: boolean) => {
|
|
16
14
|
layout: RichMediaLayout;
|
|
17
15
|
width: number | null;
|
|
18
16
|
};
|
|
19
|
-
snapPoints: number[];
|
|
20
|
-
scaleFactor?: number;
|
|
21
|
-
highlights: (width: number, snapPoints: number[]) => number[] | string[];
|
|
22
17
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
23
|
-
|
|
24
|
-
innerPadding?: number;
|
|
25
|
-
height?: number;
|
|
26
|
-
width: number;
|
|
27
|
-
ratio?: string;
|
|
18
|
+
enable: EnabledHandles;
|
|
28
19
|
handleComponentFunc?: (side: string) => React.ReactElement<any> | undefined;
|
|
29
20
|
handleStyles?: HandleStyles;
|
|
21
|
+
height?: number;
|
|
22
|
+
highlights: (width: number, snapPoints: number[]) => number[] | string[];
|
|
23
|
+
innerPadding?: number;
|
|
24
|
+
nodeType?: 'media' | 'embed';
|
|
25
|
+
ratio?: string;
|
|
26
|
+
scaleFactor?: number;
|
|
27
|
+
selected?: boolean;
|
|
28
|
+
snapPoints: number[];
|
|
29
|
+
width: number;
|
|
30
30
|
};
|
|
31
31
|
export type ResizerState = {
|
|
32
32
|
isResizing: boolean;
|
|
@@ -10,17 +10,17 @@ export type EnabledHandles = {
|
|
|
10
10
|
right?: boolean;
|
|
11
11
|
};
|
|
12
12
|
export type Props = MediaSingleProps & {
|
|
13
|
-
|
|
13
|
+
allowBreakoutSnapPoints?: boolean;
|
|
14
|
+
containerWidth: number;
|
|
15
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
14
16
|
displayGrid: ((show: boolean, type: GridType, highlight: number[] | string[]) => void) | undefined;
|
|
17
|
+
fullWidthMode?: boolean;
|
|
15
18
|
getPos: getPosHandler;
|
|
16
|
-
view: EditorView;
|
|
17
|
-
lineLength: number;
|
|
18
19
|
gridSize: number;
|
|
19
|
-
|
|
20
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
21
|
-
allowBreakoutSnapPoints?: boolean;
|
|
20
|
+
lineLength: number;
|
|
22
21
|
selected?: boolean;
|
|
23
|
-
|
|
24
|
-
fullWidthMode?: boolean;
|
|
22
|
+
updateSize: (width: number | null, layout: RichMediaLayout) => void;
|
|
25
23
|
updateWidth?: (newWidth: number) => void;
|
|
24
|
+
view: EditorView;
|
|
25
|
+
viewMediaClientConfig?: MediaClientConfig;
|
|
26
26
|
};
|
|
@@ -9,20 +9,20 @@ export interface OnTableSizeSelection {
|
|
|
9
9
|
}
|
|
10
10
|
type SimpleEventHandler<T> = (event: T) => void;
|
|
11
11
|
export interface TableSelectorPopupProps {
|
|
12
|
-
|
|
13
|
-
onSelection: OnTableSizeSelection;
|
|
14
|
-
target?: HTMLElement;
|
|
15
|
-
popupsMountPoint?: HTMLElement;
|
|
16
|
-
popupsBoundariesElement?: HTMLElement;
|
|
17
|
-
popupsScrollableElement?: HTMLElement;
|
|
18
|
-
handleClickOutside?: SimpleEventHandler<MouseEvent>;
|
|
19
|
-
handleEscapeKeydown?: SimpleEventHandler<KeyboardEvent>;
|
|
20
|
-
isOpenedByKeyboard: boolean;
|
|
12
|
+
allowOutsideSelection?: boolean;
|
|
21
13
|
defaultSize?: {
|
|
22
|
-
row: number;
|
|
23
14
|
col: number;
|
|
15
|
+
row: number;
|
|
24
16
|
};
|
|
25
|
-
|
|
17
|
+
handleClickOutside?: SimpleEventHandler<MouseEvent>;
|
|
18
|
+
handleEscapeKeydown?: SimpleEventHandler<KeyboardEvent>;
|
|
19
|
+
isOpenedByKeyboard: boolean;
|
|
20
|
+
onSelection: OnTableSizeSelection;
|
|
21
|
+
onUnmount?: () => void;
|
|
22
|
+
popupsBoundariesElement?: HTMLElement;
|
|
23
|
+
popupsMountPoint?: HTMLElement;
|
|
24
|
+
popupsScrollableElement?: HTMLElement;
|
|
25
|
+
target?: HTMLElement;
|
|
26
26
|
}
|
|
27
27
|
export declare const TableSelectorPopup: (props: TableSelectorPopupProps) => jsx.JSX.Element;
|
|
28
28
|
export default TableSelectorPopup;
|
|
@@ -3,27 +3,27 @@ import type { 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 {
|
|
6
|
-
row: number;
|
|
7
6
|
col: number;
|
|
7
|
+
handleInitialButtonFocus: () => void;
|
|
8
8
|
isActive: boolean;
|
|
9
|
-
|
|
9
|
+
isFocused: boolean;
|
|
10
10
|
label: string;
|
|
11
|
+
onClick: OnTableSizeSelection;
|
|
11
12
|
onKeyDown: KeyboardEventHandler<HTMLButtonElement>;
|
|
12
|
-
|
|
13
|
-
handleInitialButtonFocus: () => void;
|
|
13
|
+
row: number;
|
|
14
14
|
}
|
|
15
15
|
export interface OnTableSizeSelection {
|
|
16
16
|
(rowsCount: number, colsCount: number, event?: SyntheticEvent): void;
|
|
17
17
|
}
|
|
18
18
|
interface TableSelectorPopupProps {
|
|
19
|
+
handleInitialButtonFocus: () => void;
|
|
20
|
+
isFocused: boolean;
|
|
19
21
|
maxCols: number;
|
|
20
22
|
maxRows: number;
|
|
23
|
+
onKeyDown: KeyboardEventHandler<HTMLButtonElement>;
|
|
21
24
|
onSelection: OnTableSizeSelection;
|
|
22
25
|
selectedCol: number;
|
|
23
26
|
selectedRow: number;
|
|
24
|
-
onKeyDown: KeyboardEventHandler<HTMLButtonElement>;
|
|
25
|
-
isFocused: boolean;
|
|
26
|
-
handleInitialButtonFocus: () => void;
|
|
27
27
|
}
|
|
28
28
|
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<TableSelectorPopupProps & WrappedComponentProps>> & {
|
|
29
29
|
WrappedComponent: import("react").ComponentType<TableSelectorPopupProps & WrappedComponentProps>;
|
|
@@ -7,9 +7,9 @@ import type { 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 {
|
|
10
|
-
node?: PMNode;
|
|
11
10
|
children?: React.ReactNode;
|
|
12
11
|
dispatchAnalyticsEvent?: (payload: UnsupportedContentTooltipPayload) => void;
|
|
12
|
+
node?: PMNode;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
15
15
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
@@ -7,9 +7,9 @@ import type { 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 {
|
|
10
|
-
node?: PMNode;
|
|
11
10
|
children?: React.ReactNode;
|
|
12
11
|
dispatchAnalyticsEvent?: (payload: UnsupportedContentTooltipPayload) => void;
|
|
12
|
+
node?: PMNode;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
15
15
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
@@ -6,8 +6,8 @@ import React from 'react';
|
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
export type Breakpoints = 'S' | 'M' | 'L';
|
|
8
8
|
export type WidthConsumerContext = {
|
|
9
|
-
width: number;
|
|
10
9
|
breakpoint: Breakpoints;
|
|
10
|
+
width: number;
|
|
11
11
|
};
|
|
12
12
|
export declare function getBreakpoint(width?: number): Breakpoints;
|
|
13
13
|
export declare function createWidthContext(width?: number): WidthConsumerContext;
|
|
@@ -17,9 +17,9 @@ export type WidthProviderState = {
|
|
|
17
17
|
width?: number;
|
|
18
18
|
};
|
|
19
19
|
type WidthProviderProps = {
|
|
20
|
+
children?: React.ReactNode;
|
|
20
21
|
className?: string;
|
|
21
22
|
shouldCheckExistingValue?: boolean;
|
|
22
|
-
children?: React.ReactNode;
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* 🧱 Internal function: Editor FE Platform
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
import React, { type ReactElement } from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
export interface Props {
|
|
8
|
-
|
|
9
|
-
label: string;
|
|
10
|
-
tabIndex?: number;
|
|
11
|
-
isSelected?: boolean;
|
|
12
|
-
onClick: (value: string, label: string) => void;
|
|
13
|
-
onKeyDown?: (value: string, label: string, event: React.KeyboardEvent) => void;
|
|
8
|
+
autoFocus?: boolean;
|
|
14
9
|
borderColor: string;
|
|
15
10
|
checkMarkColor?: string;
|
|
16
|
-
autoFocus?: boolean;
|
|
17
|
-
hexToPaletteColor?: (hexColor: string) => string | undefined;
|
|
18
11
|
decorator?: ReactElement;
|
|
12
|
+
hexToPaletteColor?: (hexColor: string) => string | undefined;
|
|
13
|
+
isSelected?: boolean;
|
|
14
|
+
label: string;
|
|
15
|
+
onClick: (value: string, label: string) => void;
|
|
16
|
+
onKeyDown?: (value: string, label: string, event: React.KeyboardEvent) => void;
|
|
17
|
+
tabIndex?: number;
|
|
18
|
+
value: string;
|
|
19
19
|
}
|
|
20
20
|
declare const Color: (props: Props) => jsx.JSX.Element;
|
|
21
21
|
export default Color;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
2
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
3
3
|
export interface PaletteColor {
|
|
4
|
-
value: string;
|
|
5
|
-
label: string;
|
|
6
4
|
border: string;
|
|
7
|
-
message?: MessageDescriptor;
|
|
8
5
|
decorator?: ReactElement;
|
|
6
|
+
label: string;
|
|
7
|
+
message?: MessageDescriptor;
|
|
8
|
+
value: string;
|
|
9
9
|
}
|
|
10
10
|
export type Palette = Array<PaletteColor>;
|
|
11
11
|
export type PaletteTooltipMessages = {
|
|
@@ -6,17 +6,15 @@ import React from 'react';
|
|
|
6
6
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import type { PaletteColor, PaletteTooltipMessages } from './Palettes/type';
|
|
8
8
|
interface Props {
|
|
9
|
-
|
|
9
|
+
className?: string;
|
|
10
|
+
cols?: number;
|
|
10
11
|
onClick: (value: string, label: string) => void;
|
|
11
12
|
onKeyDown?: (value: string, label: string, event: React.KeyboardEvent) => void;
|
|
12
|
-
cols?: number;
|
|
13
|
-
className?: string;
|
|
14
13
|
/**
|
|
15
14
|
* paletteOptions is the prop, where any configuration related to
|
|
16
15
|
* how palette should look or behave will be added.
|
|
17
16
|
*/
|
|
18
17
|
paletteOptions: {
|
|
19
|
-
palette: PaletteColor[];
|
|
20
18
|
/**
|
|
21
19
|
* If hexToPaletteColor is passed, it will be called to convert
|
|
22
20
|
* hexCodes passed in palette props to DST token.
|
|
@@ -25,6 +23,7 @@ interface Props {
|
|
|
25
23
|
* mapping function to map tokens.
|
|
26
24
|
*/
|
|
27
25
|
hexToPaletteColor?: (hexColor: string) => string | undefined;
|
|
26
|
+
palette: PaletteColor[];
|
|
28
27
|
/**
|
|
29
28
|
* We have pivoted from having logic inside ColorPalette determining
|
|
30
29
|
* which tooltip messages should be used to consumer of ColorPalette giving
|
|
@@ -35,6 +34,7 @@ interface Props {
|
|
|
35
34
|
*/
|
|
36
35
|
paletteColorTooltipMessages?: PaletteTooltipMessages;
|
|
37
36
|
};
|
|
37
|
+
selectedColor: string | null;
|
|
38
38
|
}
|
|
39
39
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
40
40
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface KeyDownHandlerContext {
|
|
2
|
-
handleArrowRight: () => void;
|
|
3
2
|
handleArrowLeft: () => void;
|
|
3
|
+
handleArrowRight: () => void;
|
|
4
4
|
handleTab: () => void;
|
|
5
5
|
}
|
|
6
6
|
export type SimpleEventHandler<T> = (event: T) => void;
|
|
@@ -9,32 +9,32 @@ export declare enum ArrowKeyNavigationType {
|
|
|
9
9
|
MENU = "menu"
|
|
10
10
|
}
|
|
11
11
|
export type ColorPaletteArrowKeyNavigationOptions = {
|
|
12
|
-
|
|
13
|
-
selectedRowIndex: number;
|
|
14
|
-
selectedColumnIndex: number;
|
|
12
|
+
children?: React.ReactNode;
|
|
15
13
|
isOpenedByKeyboard: boolean;
|
|
16
14
|
isPopupPositioned: boolean;
|
|
17
|
-
|
|
15
|
+
selectedColumnIndex: number;
|
|
16
|
+
selectedRowIndex: number;
|
|
17
|
+
type: ArrowKeyNavigationType.COLOR;
|
|
18
18
|
};
|
|
19
19
|
export type ColorPaletteArrowKeyNavigationProps = ColorPaletteArrowKeyNavigationOptions & {
|
|
20
|
-
handleClose?: SimpleEventHandler<KeyboardEvent>;
|
|
21
20
|
closeOnTab?: boolean;
|
|
22
21
|
editorRef: React.RefObject<HTMLDivElement>;
|
|
22
|
+
handleClose?: SimpleEventHandler<KeyboardEvent>;
|
|
23
23
|
ignoreEscapeKey?: boolean | false;
|
|
24
24
|
popupsMountPoint?: HTMLElement | undefined;
|
|
25
25
|
};
|
|
26
26
|
export type MenuArrowKeyNavigationOptions = {
|
|
27
|
-
|
|
27
|
+
children?: React.ReactNode;
|
|
28
28
|
disableArrowKeyNavigation?: boolean;
|
|
29
|
-
keyDownHandlerContext?: KeyDownHandlerContext;
|
|
30
29
|
disableCloseOnArrowClick?: boolean;
|
|
31
|
-
|
|
30
|
+
keyDownHandlerContext?: KeyDownHandlerContext;
|
|
31
|
+
type: ArrowKeyNavigationType.MENU;
|
|
32
32
|
};
|
|
33
33
|
export type MenuArrowKeyNavigationProviderProps = MenuArrowKeyNavigationOptions & {
|
|
34
|
-
handleClose?: SimpleEventHandler<KeyboardEvent>;
|
|
35
|
-
onSelection?: (index: number) => void;
|
|
36
34
|
closeOnTab?: boolean;
|
|
37
35
|
editorRef: React.RefObject<HTMLDivElement>;
|
|
36
|
+
handleClose?: SimpleEventHandler<KeyboardEvent>;
|
|
37
|
+
onSelection?: (index: number) => void;
|
|
38
38
|
popupsMountPoint?: HTMLElement | undefined;
|
|
39
39
|
};
|
|
40
40
|
export type ArrowKeyNavigationProviderOptions = ColorPaletteArrowKeyNavigationOptions | MenuArrowKeyNavigationOptions;
|
|
@@ -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
|
+
absoluteOffset?: PopupPosition;
|
|
11
|
+
alignX?: "left" | "right" | "center" | "end";
|
|
12
|
+
colorPalette: PaletteColor[];
|
|
13
|
+
cols?: number;
|
|
10
14
|
currentColor?: string;
|
|
11
|
-
|
|
15
|
+
hexToPaletteColor?: (hexColor: string) => string | undefined;
|
|
12
16
|
isAriaExpanded?: boolean;
|
|
17
|
+
mountPoint?: HTMLElement;
|
|
13
18
|
onChange?: (color: PaletteColor) => void;
|
|
14
|
-
|
|
19
|
+
paletteColorTooltipMessages?: PaletteTooltipMessages;
|
|
15
20
|
placement: string;
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
returnEscToButton?: boolean;
|
|
22
|
+
setDisableParentScroll?: (disable: boolean) => void;
|
|
18
23
|
size?: {
|
|
19
|
-
width: string;
|
|
20
24
|
height: string;
|
|
25
|
+
width: string;
|
|
21
26
|
};
|
|
22
|
-
mountPoint?: HTMLElement;
|
|
23
|
-
setDisableParentScroll?: (disable: boolean) => void;
|
|
24
|
-
hexToPaletteColor?: (hexColor: string) => string | undefined;
|
|
25
|
-
paletteColorTooltipMessages?: PaletteTooltipMessages;
|
|
26
27
|
/**
|
|
27
28
|
* After picking the color the default behaviour is to focus the color picker button.
|
|
28
29
|
* To prevent this use skipFocusButtonAfterPick.
|
|
29
30
|
*/
|
|
30
31
|
skipFocusButtonAfterPick?: boolean;
|
|
31
|
-
|
|
32
|
-
returnEscToButton?: boolean;
|
|
32
|
+
title?: string;
|
|
33
33
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
|
|
34
34
|
export default _default;
|
|
@@ -3,35 +3,35 @@ import type { WithOutsideClickProps } from '../../ui-react/with-react-editor-vie
|
|
|
3
3
|
import type { OpenChangedEvent } from '../../ui/DropList';
|
|
4
4
|
import type { ArrowKeyNavigationProviderOptions } from '../ArrowKeyNavigationProvider/types';
|
|
5
5
|
export interface Props {
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
mountTo?: HTMLElement;
|
|
8
|
-
boundariesElement?: HTMLElement;
|
|
9
|
-
scrollableElement?: HTMLElement;
|
|
10
|
-
trigger?: React.ReactElement<any>;
|
|
11
|
-
isOpen?: boolean;
|
|
12
|
-
onOpenChange?: (attrs: OpenChangedEvent) => void;
|
|
13
|
-
fitWidth?: number;
|
|
14
|
-
fitHeight?: number;
|
|
15
|
-
zIndex?: number;
|
|
16
|
-
arrowKeyNavigationProviderOptions: ArrowKeyNavigationProviderOptions;
|
|
17
|
-
dropdownListId?: string;
|
|
18
6
|
alignDropdownWithParentElement?: boolean;
|
|
19
|
-
target?: HTMLElement;
|
|
20
|
-
forcePlacement?: boolean;
|
|
21
7
|
alignX?: 'left' | 'right' | 'center';
|
|
22
8
|
alignY?: 'start' | 'bottom' | 'top';
|
|
9
|
+
arrowKeyNavigationProviderOptions: ArrowKeyNavigationProviderOptions;
|
|
10
|
+
boundariesElement?: HTMLElement;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
dropdownListId?: string;
|
|
13
|
+
fitHeight?: number;
|
|
14
|
+
fitWidth?: number;
|
|
15
|
+
forcePlacement?: boolean;
|
|
16
|
+
isOpen?: boolean;
|
|
17
|
+
mountTo?: HTMLElement;
|
|
23
18
|
offset?: [
|
|
24
19
|
number,
|
|
25
20
|
number
|
|
26
21
|
];
|
|
22
|
+
onOpenChange?: (attrs: OpenChangedEvent) => void;
|
|
23
|
+
scrollableElement?: HTMLElement;
|
|
27
24
|
shouldFitContainer?: boolean;
|
|
25
|
+
target?: HTMLElement;
|
|
26
|
+
trigger?: React.ReactElement<any>;
|
|
27
|
+
zIndex?: number;
|
|
28
28
|
}
|
|
29
29
|
export interface State {
|
|
30
|
-
target?: HTMLElement;
|
|
31
30
|
popupPlacement: [
|
|
32
31
|
string,
|
|
33
32
|
string
|
|
34
33
|
];
|
|
34
|
+
target?: HTMLElement;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Wrapper around @atlaskit/droplist which uses Popup and Portal to render
|