@atlaskit/editor-common 76.6.0 → 76.7.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 +6 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/types/insert-block.js +5 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/types/insert-block.js +1 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/types/insert-block.js +1 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/insert-block.d.ts +2 -0
- package/package.json +3 -3
- package/dist/types-ts4.5/__tests_external__/cases/fundamentals/collection.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/fundamentals/test-cases/editor-typing.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/index.d.ts +0 -4
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/delete.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/edit.d.ts +0 -4
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/index.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/insert.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/delete.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/edit.d.ts +0 -4
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/index.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/insert.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/delete.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/edit.d.ts +0 -4
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/index.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/insert.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/unlink.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/types.d.ts +0 -4
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/url/index.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/url/insert.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/types.d.ts +0 -7
- package/dist/types-ts4.5/__tests_external__/index.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/page-objects/Editor.d.ts +0 -9
- package/dist/types-ts4.5/__tests_external__/page-objects/EditorSmartLink.d.ts +0 -40
- package/dist/types-ts4.5/__tests_external__/page-objects/Renderer.d.ts +0 -6
- package/dist/types-ts4.5/analytics/analytics-queue.d.ts +0 -10
- package/dist/types-ts4.5/analytics/api.d.ts +0 -5
- package/dist/types-ts4.5/analytics/fire-analytics-event.d.ts +0 -4
- package/dist/types-ts4.5/analytics/index.d.ts +0 -7
- package/dist/types-ts4.5/analytics/linking-utils.d.ts +0 -14
- package/dist/types-ts4.5/analytics/types/avatar.d.ts +0 -5
- package/dist/types-ts4.5/analytics/types/block.d.ts +0 -3
- package/dist/types-ts4.5/analytics/types/config-panel-events.d.ts +0 -17
- package/dist/types-ts4.5/analytics/types/cut-copy-events.d.ts +0 -12
- package/dist/types-ts4.5/analytics/types/date-events.d.ts +0 -17
- package/dist/types-ts4.5/analytics/types/dispatch-analytics-event.d.ts +0 -2
- package/dist/types-ts4.5/analytics/types/element-browser-events.d.ts +0 -11
- package/dist/types-ts4.5/analytics/types/enums.d.ts +0 -357
- package/dist/types-ts4.5/analytics/types/events.d.ts +0 -130
- package/dist/types-ts4.5/analytics/types/experimental-events.d.ts +0 -16
- package/dist/types-ts4.5/analytics/types/extension-events.d.ts +0 -37
- package/dist/types-ts4.5/analytics/types/find-replace-events.d.ts +0 -23
- package/dist/types-ts4.5/analytics/types/format-events.d.ts +0 -49
- package/dist/types-ts4.5/analytics/types/general-events.d.ts +0 -182
- package/dist/types-ts4.5/analytics/types/index.d.ts +0 -36
- package/dist/types-ts4.5/analytics/types/inline-comment-events.d.ts +0 -17
- package/dist/types-ts4.5/analytics/types/insert-events.d.ts +0 -128
- package/dist/types-ts4.5/analytics/types/link-tool-bar-events.d.ts +0 -76
- package/dist/types-ts4.5/analytics/types/list-events.d.ts +0 -66
- package/dist/types-ts4.5/analytics/types/media-events.d.ts +0 -35
- package/dist/types-ts4.5/analytics/types/node-events.d.ts +0 -56
- package/dist/types-ts4.5/analytics/types/paste-events.d.ts +0 -39
- package/dist/types-ts4.5/analytics/types/performance-report.d.ts +0 -24
- package/dist/types-ts4.5/analytics/types/referentiality-events.d.ts +0 -52
- package/dist/types-ts4.5/analytics/types/selection-events.d.ts +0 -21
- package/dist/types-ts4.5/analytics/types/smart-links.d.ts +0 -14
- package/dist/types-ts4.5/analytics/types/substitute-events.d.ts +0 -26
- package/dist/types-ts4.5/analytics/types/table-events.d.ts +0 -142
- package/dist/types-ts4.5/analytics/types/toolbar-button.d.ts +0 -22
- package/dist/types-ts4.5/analytics/types/type-ahead.d.ts +0 -27
- package/dist/types-ts4.5/analytics/types/utils.d.ts +0 -46
- package/dist/types-ts4.5/analytics/utils.d.ts +0 -3
- package/dist/types-ts4.5/card/LinkToolbarButtonGroup.d.ts +0 -16
- package/dist/types-ts4.5/card/MediaAndEmbedsToolbar/index.d.ts +0 -11
- package/dist/types-ts4.5/card/cardOptions.d.ts +0 -13
- package/dist/types-ts4.5/card/index.d.ts +0 -7
- package/dist/types-ts4.5/card/link-toolbar-button-group-options.d.ts +0 -5
- package/dist/types-ts4.5/card/types.d.ts +0 -27
- package/dist/types-ts4.5/card/ui/assets/card.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/assets/embed.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/assets/inline.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/assets/url.d.ts +0 -3
- package/dist/types-ts4.5/card/utils.d.ts +0 -18
- package/dist/types-ts4.5/clipboard/index.d.ts +0 -6
- package/dist/types-ts4.5/collab/index.d.ts +0 -379
- package/dist/types-ts4.5/commands/index.d.ts +0 -21
- package/dist/types-ts4.5/commands/insert-block.d.ts +0 -5
- package/dist/types-ts4.5/copy-button/index.d.ts +0 -7
- package/dist/types-ts4.5/core-utils/index.d.ts +0 -1
- package/dist/types-ts4.5/core-utils/inside.d.ts +0 -2
- package/dist/types-ts4.5/editor-analytics/index.d.ts +0 -1
- package/dist/types-ts4.5/editor-analytics/withAnalytics.d.ts +0 -34
- package/dist/types-ts4.5/element-browser/ElementBrowser.d.ts +0 -37
- package/dist/types-ts4.5/element-browser/ViewMore.d.ts +0 -6
- package/dist/types-ts4.5/element-browser/components/CategoryList.d.ts +0 -10
- package/dist/types-ts4.5/element-browser/components/ElementBrowserLoader.d.ts +0 -6
- package/dist/types-ts4.5/element-browser/components/ElementList/ElementList.d.ts +0 -33
- package/dist/types-ts4.5/element-browser/components/ElementList/EmptyState.d.ts +0 -6
- package/dist/types-ts4.5/element-browser/components/ElementList/NotFoundIllustration.d.ts +0 -2
- package/dist/types-ts4.5/element-browser/components/ElementList/cellSizeAndPositionGetter.d.ts +0 -7
- package/dist/types-ts4.5/element-browser/components/ElementList/utils.d.ts +0 -12
- package/dist/types-ts4.5/element-browser/components/ElementSearch.d.ts +0 -18
- package/dist/types-ts4.5/element-browser/components/StatelessElementBrowser.d.ts +0 -23
- package/dist/types-ts4.5/element-browser/constants.d.ts +0 -19
- package/dist/types-ts4.5/element-browser/hooks/use-container-width.d.ts +0 -33
- package/dist/types-ts4.5/element-browser/hooks/use-focus.d.ts +0 -35
- package/dist/types-ts4.5/element-browser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +0 -72
- package/dist/types-ts4.5/element-browser/index.d.ts +0 -2
- package/dist/types-ts4.5/element-browser/types.d.ts +0 -12
- package/dist/types-ts4.5/emoji.d.ts +0 -3
- package/dist/types-ts4.5/event-dispatcher/index.d.ts +0 -21
- package/dist/types-ts4.5/extensions/combine-extension-providers.d.ts +0 -7
- package/dist/types-ts4.5/extensions/default-extension-provider.d.ts +0 -17
- package/dist/types-ts4.5/extensions/extension-fields-helpers.d.ts +0 -10
- package/dist/types-ts4.5/extensions/extension-handlers.d.ts +0 -13
- package/dist/types-ts4.5/extensions/index.d.ts +0 -8
- package/dist/types-ts4.5/extensions/manifest-helpers.d.ts +0 -9
- package/dist/types-ts4.5/extensions/module-helpers.d.ts +0 -11
- package/dist/types-ts4.5/extensions/types/extension-handler.d.ts +0 -40
- package/dist/types-ts4.5/extensions/types/extension-manifest-common.d.ts +0 -8
- package/dist/types-ts4.5/extensions/types/extension-manifest-toolbar-item.d.ts +0 -45
- package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +0 -101
- package/dist/types-ts4.5/extensions/types/extension-parameters.d.ts +0 -5
- package/dist/types-ts4.5/extensions/types/extension-provider.d.ts +0 -8
- package/dist/types-ts4.5/extensions/types/field-definitions.d.ts +0 -171
- package/dist/types-ts4.5/extensions/types/index.d.ts +0 -8
- package/dist/types-ts4.5/extensions/types/utils.d.ts +0 -18
- package/dist/types-ts4.5/extensions.d.ts +0 -2
- package/dist/types-ts4.5/floating-toolbar/index.d.ts +0 -6
- package/dist/types-ts4.5/guideline/constants.d.ts +0 -2
- package/dist/types-ts4.5/guideline/defaultGuideline.d.ts +0 -2
- package/dist/types-ts4.5/guideline/dynamicGuideline.d.ts +0 -6
- package/dist/types-ts4.5/guideline/fixedGuideline.d.ts +0 -32
- package/dist/types-ts4.5/guideline/index.d.ts +0 -9
- package/dist/types-ts4.5/guideline/relativeGuideline.d.ts +0 -8
- package/dist/types-ts4.5/guideline/snapping.d.ts +0 -19
- package/dist/types-ts4.5/guideline/types.d.ts +0 -67
- package/dist/types-ts4.5/guideline/updateGuideline.d.ts +0 -5
- package/dist/types-ts4.5/guideline/utils.d.ts +0 -27
- package/dist/types-ts4.5/hooks/index.d.ts +0 -3
- package/dist/types-ts4.5/hooks/useConstructor.d.ts +0 -9
- package/dist/types-ts4.5/hooks/usePreviousState.d.ts +0 -11
- package/dist/types-ts4.5/hooks/useSharedPluginState.d.ts +0 -68
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -211
- package/dist/types-ts4.5/i18n/da.d.ts +0 -211
- package/dist/types-ts4.5/i18n/de.d.ts +0 -211
- package/dist/types-ts4.5/i18n/en.d.ts +0 -211
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -211
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -211
- package/dist/types-ts4.5/i18n/es.d.ts +0 -211
- package/dist/types-ts4.5/i18n/et.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -211
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -211
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -211
- package/dist/types-ts4.5/i18n/index.d.ts +0 -32
- package/dist/types-ts4.5/i18n/it.d.ts +0 -211
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -211
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -211
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -35
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -211
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -211
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -211
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -211
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -211
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -211
- package/dist/types-ts4.5/i18n/th.d.ts +0 -211
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -211
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -211
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -211
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -211
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -211
- package/dist/types-ts4.5/icons/index.d.ts +0 -10
- package/dist/types-ts4.5/icons/shared/BorderIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/PanelErrorIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/PanelInfoIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/PanelNoteIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/PanelSuccessIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/PanelWarningIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/table.d.ts +0 -2
- package/dist/types-ts4.5/in-product.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -1
- package/dist/types-ts4.5/insert/index.d.ts +0 -26
- package/dist/types-ts4.5/keymaps/consts.d.ts +0 -12
- package/dist/types-ts4.5/keymaps/index.d.ts +0 -97
- package/dist/types-ts4.5/keymaps/keymap.d.ts +0 -11
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/index.d.ts +0 -23
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.d.ts +0 -2
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +0 -115
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +0 -21
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/messages.d.ts +0 -32
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/utils.d.ts +0 -8
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchList.d.ts +0 -20
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchListItem.d.ts +0 -22
- package/dist/types-ts4.5/link/LinkSearch/ToolbarComponents.d.ts +0 -3
- package/dist/types-ts4.5/link/LinkSearch/index.d.ts +0 -59
- package/dist/types-ts4.5/link/LinkSearch/listItemAlts.d.ts +0 -2
- package/dist/types-ts4.5/link/LinkSearch/transformTimeStamp.d.ts +0 -10
- package/dist/types-ts4.5/link/LinkSearch/types.d.ts +0 -49
- package/dist/types-ts4.5/link/LinkSearch/withActivityProvider.d.ts +0 -66
- package/dist/types-ts4.5/link/index.d.ts +0 -16
- package/dist/types-ts4.5/link/types.d.ts +0 -40
- package/dist/types-ts4.5/link/utils.d.ts +0 -3
- package/dist/types-ts4.5/lists/analytics.d.ts +0 -4
- package/dist/types-ts4.5/lists/indentation.d.ts +0 -5
- package/dist/types-ts4.5/lists/index.d.ts +0 -6
- package/dist/types-ts4.5/lists/node.d.ts +0 -18
- package/dist/types-ts4.5/lists/replace-content.d.ts +0 -8
- package/dist/types-ts4.5/lists/selection.d.ts +0 -13
- package/dist/types-ts4.5/mark/commands.d.ts +0 -18
- package/dist/types-ts4.5/mark/index.d.ts +0 -2
- package/dist/types-ts4.5/mark/text-formatting.d.ts +0 -8
- package/dist/types-ts4.5/media-single/constants.d.ts +0 -22
- package/dist/types-ts4.5/media-single/index.d.ts +0 -2
- package/dist/types-ts4.5/media-single/utils.d.ts +0 -92
- package/dist/types-ts4.5/mention.d.ts +0 -2
- package/dist/types-ts4.5/messages/alignment.d.ts +0 -17
- package/dist/types-ts4.5/messages/annotation.d.ts +0 -17
- package/dist/types-ts4.5/messages/block-type.d.ts +0 -152
- package/dist/types-ts4.5/messages/card.d.ts +0 -87
- package/dist/types-ts4.5/messages/codeBidiWarning.d.ts +0 -11
- package/dist/types-ts4.5/messages/codeBlockButton.d.ts +0 -22
- package/dist/types-ts4.5/messages/full-page.d.ts +0 -17
- package/dist/types-ts4.5/messages/index.d.ts +0 -138
- package/dist/types-ts4.5/messages/insert-block.d.ts +0 -172
- package/dist/types-ts4.5/messages/link-toolbar.d.ts +0 -57
- package/dist/types-ts4.5/messages/link.d.ts +0 -7
- package/dist/types-ts4.5/messages/list.d.ts +0 -27
- package/dist/types-ts4.5/messages/media-and-embed-toolbar.d.ts +0 -12
- package/dist/types-ts4.5/messages/toolbar.d.ts +0 -92
- package/dist/types-ts4.5/messages/undo-redo.d.ts +0 -12
- package/dist/types-ts4.5/messages/unsupportedContent.d.ts +0 -17
- package/dist/types-ts4.5/monitoring/error.d.ts +0 -4
- package/dist/types-ts4.5/monitoring/index.d.ts +0 -1
- package/dist/types-ts4.5/node-width/index.d.ts +0 -15
- package/dist/types-ts4.5/normalize-feature-flags.d.ts +0 -27
- package/dist/types-ts4.5/panel.d.ts +0 -1
- package/dist/types-ts4.5/paste/clipboard.d.ts +0 -2
- package/dist/types-ts4.5/paste/index.d.ts +0 -2
- package/dist/types-ts4.5/paste/md-plugins/ignore-list-heading-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/paste/md-plugins/linkify-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/paste/md-plugins/newline-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/paste/md-plugins/paragraph-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/paste/md.d.ts +0 -2
- package/dist/types-ts4.5/preset/builder.d.ts +0 -36
- package/dist/types-ts4.5/preset/core-plugin.d.ts +0 -22
- package/dist/types-ts4.5/preset/editor-commands.d.ts +0 -21
- package/dist/types-ts4.5/preset/index.d.ts +0 -3
- package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +0 -53
- package/dist/types-ts4.5/provider-factory/autoformatting-provider.d.ts +0 -9
- package/dist/types-ts4.5/provider-factory/card-provider.d.ts +0 -7
- package/dist/types-ts4.5/provider-factory/context-identifier-provider.d.ts +0 -6
- package/dist/types-ts4.5/provider-factory/context.d.ts +0 -6
- package/dist/types-ts4.5/provider-factory/image-upload-provider.d.ts +0 -7
- package/dist/types-ts4.5/provider-factory/macro-provider.d.ts +0 -25
- package/dist/types-ts4.5/provider-factory/media-provider.d.ts +0 -15
- package/dist/types-ts4.5/provider-factory/profile-card-provider.d.ts +0 -6
- package/dist/types-ts4.5/provider-factory/provider-factory.d.ts +0 -17
- package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +0 -30
- package/dist/types-ts4.5/provider-factory/search-provider.d.ts +0 -12
- package/dist/types-ts4.5/provider-factory/types.d.ts +0 -37
- package/dist/types-ts4.5/provider-factory/with-providers.d.ts +0 -18
- package/dist/types-ts4.5/provider-factory.d.ts +0 -13
- package/dist/types-ts4.5/provider-helpers/combine-providers.d.ts +0 -9
- package/dist/types-ts4.5/provider-helpers/index.d.ts +0 -1
- package/dist/types-ts4.5/provider-helpers/promise-helpers.d.ts +0 -32
- package/dist/types-ts4.5/quick-insert/assets/action.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/code.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/custom-panel.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/datasource-assets-objects.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/datasource-jira-issue.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/date.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/decision.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/divider.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/emoji.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/expand.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/fallback.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/feedback.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading1.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading2.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading3.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading4.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading5.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading6.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/images.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/index.d.ts +0 -32
- package/dist/types-ts4.5/quick-insert/assets/layout.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/link.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/list-number.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/list.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/mention.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/panel-error.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/panel-note.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/panel-success.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/panel-warning.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/panel.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/quote.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/status.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/index.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/use-icon-themed.d.ts +0 -9
- package/dist/types-ts4.5/quick-insert/utils.d.ts +0 -7
- package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +0 -20
- package/dist/types-ts4.5/react-node-view/index.d.ts +0 -56
- package/dist/types-ts4.5/react-node-view/types.d.ts +0 -12
- package/dist/types-ts4.5/resizer/Resizer.d.ts +0 -52
- package/dist/types-ts4.5/resizer/index.d.ts +0 -2
- package/dist/types-ts4.5/resizer/types.d.ts +0 -28
- package/dist/types-ts4.5/resizer/utils.d.ts +0 -6
- package/dist/types-ts4.5/safe-plugin/index.d.ts +0 -6
- package/dist/types-ts4.5/selection/gap-cursor/selection.d.ts +0 -41
- package/dist/types-ts4.5/selection/gap-cursor/utils/index.d.ts +0 -2
- package/dist/types-ts4.5/selection/gap-cursor/utils/is-ignored.d.ts +0 -2
- package/dist/types-ts4.5/selection/gap-cursor/utils/is-valid-target-node.d.ts +0 -2
- package/dist/types-ts4.5/selection/gap-cursor/utils/setGapCursorSelection.d.ts +0 -3
- package/dist/types-ts4.5/selection/index.d.ts +0 -29
- package/dist/types-ts4.5/selection/types.d.ts +0 -32
- package/dist/types-ts4.5/selection/utils.d.ts +0 -11
- package/dist/types-ts4.5/selection-based-node-view/SelectionBasedNodeView.d.ts +0 -49
- package/dist/types-ts4.5/selection-based-node-view/index.d.ts +0 -1
- package/dist/types-ts4.5/styles/index.d.ts +0 -32
- package/dist/types-ts4.5/styles/shared/annotation.d.ts +0 -12
- package/dist/types-ts4.5/styles/shared/block-marks.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/blockquote.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/code-block.d.ts +0 -12
- package/dist/types-ts4.5/styles/shared/code-mark.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/column-layout.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/date.d.ts +0 -5
- package/dist/types-ts4.5/styles/shared/dropdown-menu.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/embedCard.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/emoji.d.ts +0 -7
- package/dist/types-ts4.5/styles/shared/expand.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/extension.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/grid.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/headings.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/indentation.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/layout.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/link.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/lists.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/media-single.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/media.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/mention.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/panel.d.ts +0 -85
- package/dist/types-ts4.5/styles/shared/paragraph.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/plugins.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/resizer.d.ts +0 -9
- package/dist/types-ts4.5/styles/shared/rule.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/shadow.d.ts +0 -15
- package/dist/types-ts4.5/styles/shared/smart-card.d.ts +0 -8
- package/dist/types-ts4.5/styles/shared/smartCard.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/status.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/table.d.ts +0 -35
- package/dist/types-ts4.5/styles/shared/tableCell.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/task-decision.d.ts +0 -6
- package/dist/types-ts4.5/styles/shared/text-color.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/unsupported-content.d.ts +0 -5
- package/dist/types-ts4.5/styles/shared/whitespace.d.ts +0 -2
- package/dist/types-ts4.5/transforms/expand.d.ts +0 -5
- package/dist/types-ts4.5/transforms/extension.d.ts +0 -6
- package/dist/types-ts4.5/transforms/index.d.ts +0 -3
- package/dist/types-ts4.5/transforms/layout.d.ts +0 -15
- package/dist/types-ts4.5/type-ahead/index.d.ts +0 -12
- package/dist/types-ts4.5/types/annotation/emitter.d.ts +0 -33
- package/dist/types-ts4.5/types/annotation/index.d.ts +0 -85
- package/dist/types-ts4.5/types/block-type.d.ts +0 -4
- package/dist/types-ts4.5/types/breakout.d.ts +0 -1
- package/dist/types-ts4.5/types/command.d.ts +0 -6
- package/dist/types-ts4.5/types/context-panel.d.ts +0 -3
- package/dist/types-ts4.5/types/copy-button.d.ts +0 -24
- package/dist/types-ts4.5/types/datasource.d.ts +0 -1
- package/dist/types-ts4.5/types/doc-builder.d.ts +0 -26
- package/dist/types-ts4.5/types/editor-actions.d.ts +0 -21
- package/dist/types-ts4.5/types/editor-appearance.d.ts +0 -1
- package/dist/types-ts4.5/types/editor-command.d.ts +0 -5
- package/dist/types-ts4.5/types/editor-container-width.d.ts +0 -19
- package/dist/types-ts4.5/types/editor-plugin.d.ts +0 -92
- package/dist/types-ts4.5/types/editor-public-api.d.ts +0 -4
- package/dist/types-ts4.5/types/editor-react-context.d.ts +0 -6
- package/dist/types-ts4.5/types/empty-state-handler.d.ts +0 -7
- package/dist/types-ts4.5/types/feature-flags.d.ts +0 -311
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +0 -260
- package/dist/types-ts4.5/types/grid.d.ts +0 -1
- package/dist/types-ts4.5/types/hyperlink.d.ts +0 -35
- package/dist/types-ts4.5/types/image-upload-reference-event.d.ts +0 -10
- package/dist/types-ts4.5/types/index.d.ts +0 -51
- package/dist/types-ts4.5/types/input-rules.d.ts +0 -8
- package/dist/types-ts4.5/types/layout.d.ts +0 -6
- package/dist/types-ts4.5/types/next-editor-plugin.d.ts +0 -157
- package/dist/types-ts4.5/types/performance-tracking.d.ts +0 -343
- package/dist/types-ts4.5/types/plugin-factory.d.ts +0 -27
- package/dist/types-ts4.5/types/prosemirror-config.d.ts +0 -14
- package/dist/types-ts4.5/types/quick-insert.d.ts +0 -38
- package/dist/types-ts4.5/types/resizable-media-single.d.ts +0 -15
- package/dist/types-ts4.5/types/selection.d.ts +0 -3
- package/dist/types-ts4.5/types/supported-browsers.d.ts +0 -15
- package/dist/types-ts4.5/types/tables.d.ts +0 -13
- package/dist/types-ts4.5/types/text-formatting.d.ts +0 -36
- package/dist/types-ts4.5/types/toolbar.d.ts +0 -30
- package/dist/types-ts4.5/types/type-ahead.d.ts +0 -72
- package/dist/types-ts4.5/types/ui-components.d.ts +0 -23
- package/dist/types-ts4.5/ufo/experience-store.d.ts +0 -33
- package/dist/types-ts4.5/ufo/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +0 -23
- package/dist/types-ts4.5/ui/BaseTheme/index.d.ts +0 -15
- package/dist/types-ts4.5/ui/Caption/index.d.ts +0 -19
- package/dist/types-ts4.5/ui/Caption/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/ContextPanel/context.d.ts +0 -24
- package/dist/types-ts4.5/ui/DropList/index.d.ts +0 -21
- package/dist/types-ts4.5/ui/Emoji/index.d.ts +0 -22
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +0 -25
- package/dist/types-ts4.5/ui/EventHandlers/index.d.ts +0 -36
- package/dist/types-ts4.5/ui/Expand/index.d.ts +0 -42
- package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +0 -30
- package/dist/types-ts4.5/ui/FloatingToolbar/Separator.d.ts +0 -4
- package/dist/types-ts4.5/ui/FloatingToolbar/SmallerEditIcon.d.ts +0 -3
- package/dist/types-ts4.5/ui/FloatingToolbar/styles.d.ts +0 -20
- package/dist/types-ts4.5/ui/IntlErrorBoundary/index.d.ts +0 -15
- package/dist/types-ts4.5/ui/IntlProviderIfMissingWrapper/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/Layer/index.d.ts +0 -47
- package/dist/types-ts4.5/ui/Layer/internal/helpers.d.ts +0 -5
- package/dist/types-ts4.5/ui/LinkSearch/const.d.ts +0 -4
- package/dist/types-ts4.5/ui/MediaSingle/grid.d.ts +0 -25
- package/dist/types-ts4.5/ui/MediaSingle/index.d.ts +0 -28
- package/dist/types-ts4.5/ui/MediaSingle/link.d.ts +0 -1
- package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +0 -57
- package/dist/types-ts4.5/ui/MediaSingle/types.d.ts +0 -12
- package/dist/types-ts4.5/ui/Mention/index.d.ts +0 -21
- package/dist/types-ts4.5/ui/Mention/mention-with-profilecard.d.ts +0 -15
- package/dist/types-ts4.5/ui/Mention/mention-with-providers.d.ts +0 -22
- package/dist/types-ts4.5/ui/Mention/types.d.ts +0 -2
- package/dist/types-ts4.5/ui/Messages/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +0 -103
- package/dist/types-ts4.5/ui/OverflowShadow/shadowObserver.d.ts +0 -27
- package/dist/types-ts4.5/ui/PanelTextInput/index.d.ts +0 -45
- package/dist/types-ts4.5/ui/PanelTextInput/styles.d.ts +0 -2
- package/dist/types-ts4.5/ui/Popup/index.d.ts +0 -85
- package/dist/types-ts4.5/ui/Popup/utils.d.ts +0 -42
- package/dist/types-ts4.5/ui/PortalProvider/PortalProviderThemesProvider.d.ts +0 -6
- package/dist/types-ts4.5/ui/PortalProvider/index.d.ts +0 -51
- package/dist/types-ts4.5/ui/ResizerLegacy/index.d.ts +0 -43
- package/dist/types-ts4.5/ui/ResizerLegacy/styled.d.ts +0 -2
- package/dist/types-ts4.5/ui/ResizerLegacy/types.d.ts +0 -26
- package/dist/types-ts4.5/ui/ResizerLegacy/utils.d.ts +0 -6
- package/dist/types-ts4.5/ui/Toolbar/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/UnsupportedBlock/index.d.ts +0 -14
- package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +0 -14
- package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +0 -29
- package/dist/types-ts4.5/ui/WithCreateAnalyticsEvent/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/clear-next-sibling-margin-top.d.ts +0 -2
- package/dist/types-ts4.5/ui/index.d.ts +0 -43
- package/dist/types-ts4.5/ui/unsupported-content-helper.d.ts +0 -3
- package/dist/types-ts4.5/ui/with-outer-listeners.d.ts +0 -8
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/index.d.ts +0 -20
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/styles.d.ts +0 -4
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/borderColorPalette.d.ts +0 -3
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +0 -3
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/common.d.ts +0 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/getColorMessage.d.ts +0 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/index.d.ts +0 -3
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/paletteMessages.d.ts +0 -123
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.d.ts +0 -1444
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/panelBackgroundPalette.d.ts +0 -4
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +0 -4
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/textColorPalette.d.ts +0 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/type.d.ts +0 -12
- package/dist/types-ts4.5/ui-color/ColorPalette/index.d.ts +0 -38
- package/dist/types-ts4.5/ui-color/ColorPalette/styles.d.ts +0 -1
- package/dist/types-ts4.5/ui-color/ColorPalette/utils.d.ts +0 -12
- package/dist/types-ts4.5/ui-color/index.d.ts +0 -12
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +0 -7
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +0 -7
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/index.d.ts +0 -3
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/types.d.ts +0 -36
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +0 -28
- package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +0 -44
- package/dist/types-ts4.5/ui-menu/DropdownContainer/index.d.ts +0 -3
- package/dist/types-ts4.5/ui-menu/DropdownMenu/index.d.ts +0 -22
- package/dist/types-ts4.5/ui-menu/DropdownMenu/types.d.ts +0 -52
- package/dist/types-ts4.5/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +0 -31
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +0 -57
- package/dist/types-ts4.5/ui-menu/ToolbarButton/styles.d.ts +0 -4
- package/dist/types-ts4.5/ui-menu/index.d.ts +0 -11
- package/dist/types-ts4.5/ui-react/ReactEditorViewContext.d.ts +0 -8
- package/dist/types-ts4.5/ui-react/index.d.ts +0 -2
- package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +0 -12
- package/dist/types-ts4.5/utils/analytics.d.ts +0 -29
- package/dist/types-ts4.5/utils/annotation/index.d.ts +0 -8
- package/dist/types-ts4.5/utils/breakout.d.ts +0 -50
- package/dist/types-ts4.5/utils/browser-extensions.d.ts +0 -43
- package/dist/types-ts4.5/utils/browser.d.ts +0 -4
- package/dist/types-ts4.5/utils/commands.d.ts +0 -48
- package/dist/types-ts4.5/utils/compare-props.d.ts +0 -32
- package/dist/types-ts4.5/utils/compareNodes.d.ts +0 -49
- package/dist/types-ts4.5/utils/compose.d.ts +0 -30
- package/dist/types-ts4.5/utils/count-nodes.d.ts +0 -8
- package/dist/types-ts4.5/utils/create-wrap-selection-transaction.d.ts +0 -15
- package/dist/types-ts4.5/utils/datasource.d.ts +0 -3
- package/dist/types-ts4.5/utils/date.d.ts +0 -18
- package/dist/types-ts4.5/utils/dedupe.d.ts +0 -1
- package/dist/types-ts4.5/utils/document.d.ts +0 -25
- package/dist/types-ts4.5/utils/dom.d.ts +0 -40
- package/dist/types-ts4.5/utils/editor-core-utils.d.ts +0 -34
- package/dist/types-ts4.5/utils/error-reporter.d.ts +0 -13
- package/dist/types-ts4.5/utils/extension-handler.d.ts +0 -2
- package/dist/types-ts4.5/utils/filter/privacy-filter.d.ts +0 -9
- package/dist/types-ts4.5/utils/get-performance-options.d.ts +0 -16
- package/dist/types-ts4.5/utils/getModeFromTheme.d.ts +0 -1
- package/dist/types-ts4.5/utils/grid.d.ts +0 -3
- package/dist/types-ts4.5/utils/hyperlink.d.ts +0 -29
- package/dist/types-ts4.5/utils/imageLoader.d.ts +0 -14
- package/dist/types-ts4.5/utils/index.d.ts +0 -86
- package/dist/types-ts4.5/utils/input-rules.d.ts +0 -16
- package/dist/types-ts4.5/utils/is-text-input.d.ts +0 -2
- package/dist/types-ts4.5/utils/list.d.ts +0 -14
- package/dist/types-ts4.5/utils/macro.d.ts +0 -10
- package/dist/types-ts4.5/utils/nodes.d.ts +0 -52
- package/dist/types-ts4.5/utils/outdated-browsers.d.ts +0 -1
- package/dist/types-ts4.5/utils/performance/get-performance-timing.d.ts +0 -8
- package/dist/types-ts4.5/utils/performance/hooks/use-component-render-tracking/index.d.ts +0 -19
- package/dist/types-ts4.5/utils/performance/is-performance-api-available.d.ts +0 -3
- package/dist/types-ts4.5/utils/performance/measure-render.d.ts +0 -52
- package/dist/types-ts4.5/utils/performance/measure-tti.d.ts +0 -14
- package/dist/types-ts4.5/utils/performance/measure.d.ts +0 -3
- package/dist/types-ts4.5/utils/performance/navigation.d.ts +0 -1
- package/dist/types-ts4.5/utils/plugin-state-factory.d.ts +0 -16
- package/dist/types-ts4.5/utils/profiler/render-count.d.ts +0 -50
- package/dist/types-ts4.5/utils/prosemirror/autojoin.d.ts +0 -13
- package/dist/types-ts4.5/utils/referentiality.d.ts +0 -18
- package/dist/types-ts4.5/utils/rich-media-utils.d.ts +0 -9
- package/dist/types-ts4.5/utils/scroll-gutter.d.ts +0 -3
- package/dist/types-ts4.5/utils/should-force-tracking.d.ts +0 -1
- package/dist/types-ts4.5/utils/slice.d.ts +0 -11
- package/dist/types-ts4.5/utils/table.d.ts +0 -5
- package/dist/types-ts4.5/utils/track-unsupported-content.d.ts +0 -20
- package/dist/types-ts4.5/utils/traversor.d.ts +0 -9
- package/dist/types-ts4.5/utils/types.d.ts +0 -2
- package/dist/types-ts4.5/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +0 -57
- package/dist/types-ts4.5/utils/validate-using-spec.d.ts +0 -19
- package/dist/types-ts4.5/utils/validator.d.ts +0 -42
- package/dist/types-ts4.5/utils/whitespace.d.ts +0 -2
- package/dist/types-ts4.5/utils/wrap-selection-in.d.ts +0 -9
- package/dist/types-ts4.5/validator.d.ts +0 -2
- package/dist/types-ts4.5/with-plugin-state/index.d.ts +0 -108
- package/dist/types-ts4.5/with-plugin-state/types.d.ts +0 -10
- package/tmp/api-report-tmp.d.ts +0 -9
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import type { RefObject } from 'react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
5
|
-
import type { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
6
|
-
/**
|
|
7
|
-
* Calculates the image width for non-resized images.
|
|
8
|
-
*
|
|
9
|
-
* If an image has not been resized using the pctWidth attribute,
|
|
10
|
-
* then an image in wide or full-width can not be wider than the image's
|
|
11
|
-
* original width.
|
|
12
|
-
*/
|
|
13
|
-
export declare function calcLegacyWidth(layout: MediaSingleLayout, width: number, containerWidth?: number, fullWidthMode?: boolean, isResized?: boolean): string;
|
|
14
|
-
/**
|
|
15
|
-
* Calculates the image width for previously resized images.
|
|
16
|
-
*
|
|
17
|
-
* Wide and full-width images are always that size (960px and 100%); there is
|
|
18
|
-
* no distinction between max-width and width.
|
|
19
|
-
*/
|
|
20
|
-
export declare function calcResizedWidth(layout: MediaSingleLayout, width: number, containerWidth?: number): any;
|
|
21
|
-
export interface MediaSingleWrapperProps {
|
|
22
|
-
containerWidth?: number;
|
|
23
|
-
fullWidthMode?: boolean;
|
|
24
|
-
isResized?: boolean;
|
|
25
|
-
layout: MediaSingleLayout;
|
|
26
|
-
/**
|
|
27
|
-
* @private
|
|
28
|
-
* @deprecated Use {@link MediaSingleWrapperProps["mediaSingleWidth"]} instead.
|
|
29
|
-
* Cleanup ticket: https://product-fabric.atlassian.net/browse/ED-19076
|
|
30
|
-
*/
|
|
31
|
-
pctWidth?: number;
|
|
32
|
-
mediaSingleWidth?: number;
|
|
33
|
-
width?: number;
|
|
34
|
-
innerRef?: ((elem: HTMLDivElement) => void) | RefObject<HTMLDivElement>;
|
|
35
|
-
isExtendedResizeExperienceOn?: boolean;
|
|
36
|
-
isNestedNode?: boolean;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Can't use `.attrs` to handle highly dynamic styles because we are still
|
|
40
|
-
* supporting `styled-components` v1.
|
|
41
|
-
*/
|
|
42
|
-
export declare const MediaSingleDimensionHelper: ({ containerWidth, fullWidthMode, isResized, layout, mediaSingleWidth, width, isExtendedResizeExperienceOn, isNestedNode, }: MediaSingleWrapperProps) => import("@emotion/react").SerializedStyles;
|
|
43
|
-
export interface MediaWrapperProps {
|
|
44
|
-
paddingBottom?: string;
|
|
45
|
-
height?: number;
|
|
46
|
-
hasFallbackContainer?: boolean;
|
|
47
|
-
}
|
|
48
|
-
export declare const mediaWrapperStyle: (props: MediaWrapperProps) => import("@emotion/react").SerializedStyles;
|
|
49
|
-
export declare const MediaWrapper: {
|
|
50
|
-
({ children, ...rest }: React.HTMLAttributes<HTMLDivElement> & MediaWrapperProps): jsx.JSX.Element;
|
|
51
|
-
displayName: string;
|
|
52
|
-
};
|
|
53
|
-
type MediaBorderGapFillerProps = {
|
|
54
|
-
borderColor: string;
|
|
55
|
-
};
|
|
56
|
-
export declare const MediaBorderGapFiller: React.FC<MediaBorderGapFillerProps>;
|
|
57
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type MediaSingleWidthType = 'pixel' | 'percentage';
|
|
2
|
-
export type MediaSingleSize = {
|
|
3
|
-
/**
|
|
4
|
-
* The width attribute from mediaSingle node
|
|
5
|
-
*/
|
|
6
|
-
width?: number;
|
|
7
|
-
/**
|
|
8
|
-
* The widthType attribute from mediaSingle node
|
|
9
|
-
* @default percentage
|
|
10
|
-
*/
|
|
11
|
-
widthType?: MediaSingleWidthType;
|
|
12
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
2
|
-
import { ProviderFactory } from '../../provider-factory';
|
|
3
|
-
import { ProfilecardProvider } from '../../provider-factory/profile-card-provider';
|
|
4
|
-
import { MentionEventHandlers } from '../EventHandlers';
|
|
5
|
-
export interface MentionProps {
|
|
6
|
-
id: string;
|
|
7
|
-
providers?: ProviderFactory;
|
|
8
|
-
eventHandlers?: MentionEventHandlers;
|
|
9
|
-
text: string;
|
|
10
|
-
accessLevel?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface MentionState {
|
|
13
|
-
profilecardProvider: ProfilecardProvider | null;
|
|
14
|
-
}
|
|
15
|
-
export default class Mention extends PureComponent<MentionProps, {}> {
|
|
16
|
-
private providerFactory;
|
|
17
|
-
constructor(props: MentionProps);
|
|
18
|
-
componentWillUnmount(): void;
|
|
19
|
-
private renderWithProvider;
|
|
20
|
-
render(): JSX.Element;
|
|
21
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MentionProvider } from '@atlaskit/mention';
|
|
3
|
-
import { ProfilecardProvider } from '../../provider-factory/profile-card-provider';
|
|
4
|
-
import { MentionEventHandler } from '../EventHandlers';
|
|
5
|
-
export interface Props {
|
|
6
|
-
id: string;
|
|
7
|
-
text: string;
|
|
8
|
-
accessLevel?: string;
|
|
9
|
-
mentionProvider?: Promise<MentionProvider>;
|
|
10
|
-
profilecardProvider: ProfilecardProvider;
|
|
11
|
-
onClick?: MentionEventHandler;
|
|
12
|
-
onMouseEnter?: MentionEventHandler;
|
|
13
|
-
onMouseLeave?: MentionEventHandler;
|
|
14
|
-
}
|
|
15
|
-
export default function MentionWithProfileCard({ id, text, accessLevel, mentionProvider, profilecardProvider, onClick, onMouseEnter, onMouseLeave, }: Props): JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
2
|
-
import { MentionProvider } from '@atlaskit/mention/resource';
|
|
3
|
-
import { ProfilecardProvider } from '../../provider-factory/profile-card-provider';
|
|
4
|
-
import { MentionEventHandlers } from '../EventHandlers';
|
|
5
|
-
export interface Props {
|
|
6
|
-
id: string;
|
|
7
|
-
text: string;
|
|
8
|
-
accessLevel?: string;
|
|
9
|
-
mentionProvider?: Promise<MentionProvider>;
|
|
10
|
-
profilecardProvider?: Promise<ProfilecardProvider>;
|
|
11
|
-
eventHandlers?: MentionEventHandlers;
|
|
12
|
-
}
|
|
13
|
-
export interface State {
|
|
14
|
-
profilecardProvider: ProfilecardProvider | null;
|
|
15
|
-
}
|
|
16
|
-
export default class MentionWithProviders extends PureComponent<Props, State> {
|
|
17
|
-
state: State;
|
|
18
|
-
UNSAFE_componentWillMount(): void;
|
|
19
|
-
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
20
|
-
private updateProfilecardProvider;
|
|
21
|
-
render(): JSX.Element;
|
|
22
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
interface Props {
|
|
5
|
-
/** The content of the message */
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const HelperMessage: ({ children }: Props) => jsx.JSX.Element;
|
|
9
|
-
export declare const ErrorMessage: ({ children }: Props) => jsx.JSX.Element;
|
|
10
|
-
export declare const ValidMessage: ({ children }: Props) => jsx.JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ShadowObserver } from './shadowObserver';
|
|
3
|
-
export declare const shadowClassNames: {
|
|
4
|
-
RIGHT_SHADOW: string;
|
|
5
|
-
LEFT_SHADOW: string;
|
|
6
|
-
};
|
|
7
|
-
export interface OverflowShadowProps {
|
|
8
|
-
handleRef?: (ref: HTMLElement | null) => void;
|
|
9
|
-
shadowClassNames?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface OverflowShadowState {
|
|
12
|
-
showLeftShadow: boolean;
|
|
13
|
-
showRightShadow: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface OverflowShadowOptions {
|
|
16
|
-
overflowSelector: string;
|
|
17
|
-
useShadowObserver?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export default function overflowShadow<P>(Component: React.ComponentType<P & OverflowShadowProps> | React.StatelessComponent<P & OverflowShadowProps>, options: OverflowShadowOptions): {
|
|
20
|
-
new (props: P | Readonly<P>): {
|
|
21
|
-
overflowContainer?: HTMLElement | null | undefined;
|
|
22
|
-
container?: HTMLElement | undefined;
|
|
23
|
-
shadowObserver?: ShadowObserver | undefined;
|
|
24
|
-
overflowContainerWidth: number;
|
|
25
|
-
scrollable?: NodeList | undefined;
|
|
26
|
-
diff?: number | undefined;
|
|
27
|
-
state: {
|
|
28
|
-
showLeftShadow: boolean;
|
|
29
|
-
showRightShadow: boolean;
|
|
30
|
-
};
|
|
31
|
-
componentWillUnmount(): void;
|
|
32
|
-
componentDidUpdate(): void;
|
|
33
|
-
handleScroll: (event: Event) => void;
|
|
34
|
-
updateShadows: () => void;
|
|
35
|
-
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
36
|
-
calcOverflowDiff: () => number;
|
|
37
|
-
calcScrollableWidth: () => number;
|
|
38
|
-
handleContainer: (container: HTMLElement | null) => void;
|
|
39
|
-
initShadowObserver(): void;
|
|
40
|
-
render(): JSX.Element;
|
|
41
|
-
context: any;
|
|
42
|
-
setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
43
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
44
|
-
readonly props: Readonly<P> & Readonly<{
|
|
45
|
-
children?: React.ReactNode;
|
|
46
|
-
}>;
|
|
47
|
-
refs: {
|
|
48
|
-
[key: string]: React.ReactInstance;
|
|
49
|
-
};
|
|
50
|
-
componentDidMount?(): void;
|
|
51
|
-
shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): boolean;
|
|
52
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
53
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<OverflowShadowState>): any;
|
|
54
|
-
componentWillMount?(): void;
|
|
55
|
-
UNSAFE_componentWillMount?(): void;
|
|
56
|
-
componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
|
|
57
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
|
|
58
|
-
componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
|
|
59
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
|
|
60
|
-
};
|
|
61
|
-
new (props: P, context: any): {
|
|
62
|
-
overflowContainer?: HTMLElement | null | undefined;
|
|
63
|
-
container?: HTMLElement | undefined;
|
|
64
|
-
shadowObserver?: ShadowObserver | undefined;
|
|
65
|
-
overflowContainerWidth: number;
|
|
66
|
-
scrollable?: NodeList | undefined;
|
|
67
|
-
diff?: number | undefined;
|
|
68
|
-
state: {
|
|
69
|
-
showLeftShadow: boolean;
|
|
70
|
-
showRightShadow: boolean;
|
|
71
|
-
};
|
|
72
|
-
componentWillUnmount(): void;
|
|
73
|
-
componentDidUpdate(): void;
|
|
74
|
-
handleScroll: (event: Event) => void;
|
|
75
|
-
updateShadows: () => void;
|
|
76
|
-
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
77
|
-
calcOverflowDiff: () => number;
|
|
78
|
-
calcScrollableWidth: () => number;
|
|
79
|
-
handleContainer: (container: HTMLElement | null) => void;
|
|
80
|
-
initShadowObserver(): void;
|
|
81
|
-
render(): JSX.Element;
|
|
82
|
-
context: any;
|
|
83
|
-
setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
84
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
85
|
-
readonly props: Readonly<P> & Readonly<{
|
|
86
|
-
children?: React.ReactNode;
|
|
87
|
-
}>;
|
|
88
|
-
refs: {
|
|
89
|
-
[key: string]: React.ReactInstance;
|
|
90
|
-
};
|
|
91
|
-
componentDidMount?(): void;
|
|
92
|
-
shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): boolean;
|
|
93
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
94
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<OverflowShadowState>): any;
|
|
95
|
-
componentWillMount?(): void;
|
|
96
|
-
UNSAFE_componentWillMount?(): void;
|
|
97
|
-
componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
|
|
98
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
|
|
99
|
-
componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
|
|
100
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
|
|
101
|
-
};
|
|
102
|
-
contextType?: React.Context<any> | undefined;
|
|
103
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare enum ShadowKeys {
|
|
2
|
-
SHOW_LEFT_SHADOW = "showLeftShadow",
|
|
3
|
-
SHOW_RIGHT_SHADOW = "showRightShadow"
|
|
4
|
-
}
|
|
5
|
-
export type ShadowsStates = {
|
|
6
|
-
[ShadowKey in ShadowKeys]: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const shadowObserverClassNames: {
|
|
9
|
-
SENTINEL_LEFT: string;
|
|
10
|
-
SENTINEL_RIGHT: string;
|
|
11
|
-
SHADOW_CONTAINER: string;
|
|
12
|
-
};
|
|
13
|
-
export declare class ShadowObserver {
|
|
14
|
-
private intersectionObserver?;
|
|
15
|
-
private scrollContainer;
|
|
16
|
-
private onUpdateShadows;
|
|
17
|
-
private sentinels;
|
|
18
|
-
private requestCallbackId?;
|
|
19
|
-
readonly shadowStates: ShadowsStates;
|
|
20
|
-
constructor({ scrollContainer, onUpdateShadows, }: {
|
|
21
|
-
scrollContainer: HTMLElement;
|
|
22
|
-
onUpdateShadows: (eventData: ShadowsStates) => void;
|
|
23
|
-
});
|
|
24
|
-
private init;
|
|
25
|
-
private onIntersect;
|
|
26
|
-
dispose(): void;
|
|
27
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { FocusEvent, KeyboardEvent, PureComponent } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
export interface Props {
|
|
5
|
-
autoFocus?: boolean | FocusOptions;
|
|
6
|
-
defaultValue?: string;
|
|
7
|
-
onChange?: (value: string) => void;
|
|
8
|
-
onSubmit?: (value: string) => void;
|
|
9
|
-
onCancel?: (e: KeyboardEvent) => void;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
onMouseDown?: Function;
|
|
12
|
-
onKeyDown?: (e: KeyboardEvent<any>) => void;
|
|
13
|
-
onUndo?: Function;
|
|
14
|
-
onRedo?: Function;
|
|
15
|
-
onBlur?: Function;
|
|
16
|
-
width?: number;
|
|
17
|
-
maxLength?: number;
|
|
18
|
-
testId?: string;
|
|
19
|
-
ariaLabel?: string;
|
|
20
|
-
describedById?: string;
|
|
21
|
-
ariaExpanded?: boolean;
|
|
22
|
-
ariaActiveDescendant?: string;
|
|
23
|
-
ariaControls?: string;
|
|
24
|
-
role?: string;
|
|
25
|
-
ariaAutoComplete?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface State {
|
|
28
|
-
value?: string;
|
|
29
|
-
}
|
|
30
|
-
export default class PanelTextInput extends PureComponent<Props, State> {
|
|
31
|
-
private input?;
|
|
32
|
-
private focusTimeoutId;
|
|
33
|
-
constructor(props: Props);
|
|
34
|
-
componentDidUpdate(prevProps: Props): void;
|
|
35
|
-
componentWillUnmount(): void;
|
|
36
|
-
onMouseDown: () => void;
|
|
37
|
-
onBlur: (e: FocusEvent<any>) => void;
|
|
38
|
-
render(): jsx.JSX.Element;
|
|
39
|
-
focus(): void;
|
|
40
|
-
private handleChange;
|
|
41
|
-
private handleKeydown;
|
|
42
|
-
private isUndoEvent;
|
|
43
|
-
private isRedoEvent;
|
|
44
|
-
private handleRef;
|
|
45
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Position } from './utils';
|
|
3
|
-
export interface Props {
|
|
4
|
-
zIndex?: number;
|
|
5
|
-
alignX?: 'left' | 'right' | 'center' | 'end';
|
|
6
|
-
alignY?: 'top' | 'bottom' | 'start';
|
|
7
|
-
target?: HTMLElement;
|
|
8
|
-
fitHeight?: number;
|
|
9
|
-
fitWidth?: number;
|
|
10
|
-
boundariesElement?: HTMLElement;
|
|
11
|
-
mountTo?: HTMLElement;
|
|
12
|
-
offset?: number[];
|
|
13
|
-
onPositionCalculated?: (position: Position) => Position;
|
|
14
|
-
onPlacementChanged?: (placement: [
|
|
15
|
-
string,
|
|
16
|
-
string
|
|
17
|
-
]) => void;
|
|
18
|
-
shouldRenderPopup?: (position: Position) => boolean;
|
|
19
|
-
scrollableElement?: HTMLElement;
|
|
20
|
-
stick?: boolean;
|
|
21
|
-
/** `null` should only be used if we provide enough context to screen readers to exclude aria-label attribute */
|
|
22
|
-
ariaLabel?: string | null;
|
|
23
|
-
forcePlacement?: boolean;
|
|
24
|
-
allowOutOfBounds?: boolean;
|
|
25
|
-
rect?: DOMRect;
|
|
26
|
-
style?: React.CSSProperties;
|
|
27
|
-
/** Enable focus trap to contain the user's focus within the popup */
|
|
28
|
-
focusTrap?: boolean;
|
|
29
|
-
preventOverflow?: boolean;
|
|
30
|
-
absoluteOffset?: Position;
|
|
31
|
-
}
|
|
32
|
-
export interface State {
|
|
33
|
-
popup?: HTMLElement;
|
|
34
|
-
position?: Position;
|
|
35
|
-
validPosition: boolean;
|
|
36
|
-
}
|
|
37
|
-
export default class Popup extends React.Component<Props, State> {
|
|
38
|
-
scrollElement: undefined | false | HTMLElement;
|
|
39
|
-
scrollParentElement: undefined | false | HTMLElement;
|
|
40
|
-
rafIds: Set<number>;
|
|
41
|
-
static defaultProps: {
|
|
42
|
-
offset: number[];
|
|
43
|
-
allowOutOfBound: boolean;
|
|
44
|
-
};
|
|
45
|
-
state: State;
|
|
46
|
-
private popupRef;
|
|
47
|
-
private focusTrap?;
|
|
48
|
-
private placement;
|
|
49
|
-
/**
|
|
50
|
-
* Calculates new popup position
|
|
51
|
-
*/
|
|
52
|
-
private calculatePosition;
|
|
53
|
-
private updatePosition;
|
|
54
|
-
private cannotSetPopup;
|
|
55
|
-
/**
|
|
56
|
-
* Popup initialization.
|
|
57
|
-
* Checks whether it's possible to position popup along given target, and if it's not throws an error.
|
|
58
|
-
*/
|
|
59
|
-
private initPopup;
|
|
60
|
-
private handleRef;
|
|
61
|
-
private scheduledUpdatePosition;
|
|
62
|
-
onResize: () => void;
|
|
63
|
-
UNSAFE_componentWillReceiveProps(newProps: Props): void;
|
|
64
|
-
resizeObserver: ResizeObserver | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* Raf scheduled so that it also occurs after the initial update position
|
|
67
|
-
*/
|
|
68
|
-
private initFocusTrap;
|
|
69
|
-
/**
|
|
70
|
-
* Cancels the initialisation of the focus trap if it has not yet occured
|
|
71
|
-
* Deactivates the focus trap if it exists
|
|
72
|
-
*/
|
|
73
|
-
private destroyFocusTrap;
|
|
74
|
-
/**
|
|
75
|
-
* Handle pausing, unpausing, and initialising (if not yet initialised) of the focus trap
|
|
76
|
-
*/
|
|
77
|
-
handleChangedFocusTrapProp(prevProps: Props): void;
|
|
78
|
-
componentDidUpdate(prevProps: Props): void;
|
|
79
|
-
componentDidMount(): void;
|
|
80
|
-
componentWillUnmount(): void;
|
|
81
|
-
private renderPopup;
|
|
82
|
-
render(): JSX.Element | null;
|
|
83
|
-
}
|
|
84
|
-
export { findOverflowScrollParent } from './utils';
|
|
85
|
-
export type { Position } from './utils';
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export interface Position {
|
|
2
|
-
top?: number;
|
|
3
|
-
right?: number;
|
|
4
|
-
bottom?: number;
|
|
5
|
-
left?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface CalculatePositionParams {
|
|
8
|
-
placement: [
|
|
9
|
-
string,
|
|
10
|
-
string
|
|
11
|
-
];
|
|
12
|
-
target?: HTMLElement;
|
|
13
|
-
popup?: HTMLElement;
|
|
14
|
-
offset: number[];
|
|
15
|
-
stick?: boolean;
|
|
16
|
-
allowOutOfBounds?: boolean;
|
|
17
|
-
rect?: DOMRect;
|
|
18
|
-
}
|
|
19
|
-
export declare function isBody(elem: HTMLElement | Element): boolean;
|
|
20
|
-
export declare function isTextNode(elem: HTMLElement | Element): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Decides if given fitHeight fits below or above the target taking boundaries into account.
|
|
23
|
-
*/
|
|
24
|
-
export declare function getVerticalPlacement(target: HTMLElement, boundariesElement: HTMLElement, fitHeight?: number, alignY?: string, forcePlacement?: boolean, preventOverflow?: boolean): string;
|
|
25
|
-
/**
|
|
26
|
-
* Decides if given fitWidth fits to the left or to the right of the target taking boundaries into account.
|
|
27
|
-
*/
|
|
28
|
-
export declare function getHorizontalPlacement(target: HTMLElement, boundariesElement: HTMLElement, fitWidth?: number, alignX?: string, forcePlacement?: boolean, preventOverflow?: boolean): string;
|
|
29
|
-
export declare function calculatePlacement(target: HTMLElement, boundariesElement: HTMLElement, fitWidth?: number, fitHeight?: number, alignX?: string, alignY?: string, forcePlacement?: boolean, preventOverflow?: boolean): [
|
|
30
|
-
string,
|
|
31
|
-
string
|
|
32
|
-
];
|
|
33
|
-
/**
|
|
34
|
-
* Calculates relative coordinates for placing popup along with the target.
|
|
35
|
-
* Uses placement from calculatePlacement.
|
|
36
|
-
*/
|
|
37
|
-
export declare function calculatePosition({ placement, target, popup, offset, stick, allowOutOfBounds, rect, }: CalculatePositionParams): Position;
|
|
38
|
-
export declare function validatePosition(popup: HTMLElement): boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Traverse DOM Tree upwards looking for popup parents with "overflow: scroll".
|
|
41
|
-
*/
|
|
42
|
-
export declare function findOverflowScrollParent(popup: HTMLElement | null): HTMLElement | false;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IntlShape, WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import type { ThemeModes } from '@atlaskit/theme/types';
|
|
4
|
-
import { FireAnalyticsCallback } from '../../analytics';
|
|
5
|
-
import { EventDispatcher } from '../../event-dispatcher';
|
|
6
|
-
export type BasePortalProviderProps = {
|
|
7
|
-
render: (portalProviderAPI: PortalProviderAPI) => React.ReactChild | JSX.Element | null;
|
|
8
|
-
onAnalyticsEvent?: FireAnalyticsCallback;
|
|
9
|
-
useAnalyticsContext?: boolean;
|
|
10
|
-
themeMode?: ThemeModes;
|
|
11
|
-
} & WrappedComponentProps;
|
|
12
|
-
export type Portals = Map<HTMLElement, React.ReactChild>;
|
|
13
|
-
export type PortalRendererState = {
|
|
14
|
-
portals: Portals;
|
|
15
|
-
};
|
|
16
|
-
type MountedPortal = {
|
|
17
|
-
children: () => React.ReactChild | null;
|
|
18
|
-
hasAnalyticsContext: boolean;
|
|
19
|
-
hasIntlContext: boolean;
|
|
20
|
-
};
|
|
21
|
-
export declare class PortalProviderAPI extends EventDispatcher {
|
|
22
|
-
portals: Map<HTMLElement, MountedPortal>;
|
|
23
|
-
context: any;
|
|
24
|
-
intl: IntlShape;
|
|
25
|
-
onAnalyticsEvent?: FireAnalyticsCallback;
|
|
26
|
-
useAnalyticsContext?: boolean;
|
|
27
|
-
themeMode?: ThemeModes;
|
|
28
|
-
constructor(intl: IntlShape, onAnalyticsEvent?: FireAnalyticsCallback, analyticsContext?: boolean, themeMode?: ThemeModes);
|
|
29
|
-
setContext: (context: any) => void;
|
|
30
|
-
render(children: () => React.ReactChild | JSX.Element | null, container: HTMLElement, hasAnalyticsContext?: boolean, hasIntlContext?: boolean): void;
|
|
31
|
-
forceUpdate({ intl, themeMode, }: {
|
|
32
|
-
intl: IntlShape;
|
|
33
|
-
themeMode: ThemeModes | undefined;
|
|
34
|
-
}): void;
|
|
35
|
-
remove(container: HTMLElement): void;
|
|
36
|
-
}
|
|
37
|
-
export declare const PortalProvider: React.FC<import("react-intl-next").WithIntlProps<BasePortalProviderProps>> & {
|
|
38
|
-
WrappedComponent: React.ComponentType<BasePortalProviderProps>;
|
|
39
|
-
};
|
|
40
|
-
type PortalProviderWithThemeProvidersProps = Omit<BasePortalProviderProps, 'intl' | 'themeMode'>;
|
|
41
|
-
export declare const PortalProviderWithThemeProviders: ({ onAnalyticsEvent, useAnalyticsContext, render, }: PortalProviderWithThemeProvidersProps) => JSX.Element;
|
|
42
|
-
export declare class PortalRenderer extends React.Component<{
|
|
43
|
-
portalProviderAPI: PortalProviderAPI;
|
|
44
|
-
}, PortalRendererState> {
|
|
45
|
-
constructor(props: {
|
|
46
|
-
portalProviderAPI: PortalProviderAPI;
|
|
47
|
-
});
|
|
48
|
-
handleUpdate: (portals: Portals) => void;
|
|
49
|
-
render(): JSX.Element;
|
|
50
|
-
}
|
|
51
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { RefObject } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Resizable } from 're-resizable';
|
|
4
|
-
import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
5
|
-
import type { DispatchAnalyticsEvent } from '../../analytics';
|
|
6
|
-
import type { HandleStyles } from '../../resizer/types';
|
|
7
|
-
import type { EnabledHandles, Props as ResizableMediaSingleProps } from './types';
|
|
8
|
-
export interface ResizableNumberSize {
|
|
9
|
-
width: number;
|
|
10
|
-
height: number;
|
|
11
|
-
}
|
|
12
|
-
export type ResizerProps = Omit<ResizableMediaSingleProps, 'height' | 'width'> & {
|
|
13
|
-
selected?: boolean;
|
|
14
|
-
enable: EnabledHandles;
|
|
15
|
-
calcNewSize: (newWidth: number, stop: boolean) => {
|
|
16
|
-
layout: RichMediaLayout;
|
|
17
|
-
width: number | null;
|
|
18
|
-
};
|
|
19
|
-
snapPoints: number[];
|
|
20
|
-
scaleFactor?: number;
|
|
21
|
-
highlights: (width: number, snapPoints: number[]) => number[] | string[];
|
|
22
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
23
|
-
nodeType?: 'media' | 'embed';
|
|
24
|
-
innerPadding?: number;
|
|
25
|
-
height?: number;
|
|
26
|
-
width: number;
|
|
27
|
-
ratio?: string;
|
|
28
|
-
handleComponentFunc?: (side: string) => React.ReactElement<any> | undefined;
|
|
29
|
-
handleStyles?: HandleStyles;
|
|
30
|
-
};
|
|
31
|
-
export type ResizerState = {
|
|
32
|
-
isResizing: boolean;
|
|
33
|
-
};
|
|
34
|
-
export default class Resizer extends React.Component<ResizerProps, ResizerState> {
|
|
35
|
-
resizable: RefObject<Resizable>;
|
|
36
|
-
state: {
|
|
37
|
-
isResizing: boolean;
|
|
38
|
-
};
|
|
39
|
-
private handleResizeStart;
|
|
40
|
-
private handleResize;
|
|
41
|
-
private handleResizeStop;
|
|
42
|
-
render(): JSX.Element;
|
|
43
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
2
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
4
|
-
import type { DispatchAnalyticsEvent } from '../../analytics';
|
|
5
|
-
import type { getPosHandler } from '../../react-node-view';
|
|
6
|
-
import type { GridType } from '../../types';
|
|
7
|
-
import type { MediaSingleProps } from '../../ui';
|
|
8
|
-
export type EnabledHandles = {
|
|
9
|
-
left?: boolean;
|
|
10
|
-
right?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export type Props = MediaSingleProps & {
|
|
13
|
-
updateSize: (width: number | null, layout: RichMediaLayout) => void;
|
|
14
|
-
displayGrid: ((show: boolean, type: GridType, highlight: number[] | string[]) => void) | undefined;
|
|
15
|
-
getPos: getPosHandler;
|
|
16
|
-
view: EditorView;
|
|
17
|
-
lineLength: number;
|
|
18
|
-
gridSize: number;
|
|
19
|
-
containerWidth: number;
|
|
20
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
21
|
-
allowBreakoutSnapPoints?: boolean;
|
|
22
|
-
selected?: boolean;
|
|
23
|
-
viewMediaClientConfig?: MediaClientConfig;
|
|
24
|
-
fullWidthMode?: boolean;
|
|
25
|
-
updateWidth?: (newWidth: number) => void;
|
|
26
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import { UnsupportedContentTooltipPayload } from '../../utils';
|
|
6
|
-
export interface Props {
|
|
7
|
-
node?: PMNode;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
dispatchAnalyticsEvent?: (payload: UnsupportedContentTooltipPayload) => void;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
12
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
-
import { UnsupportedContentTooltipPayload } from '../../utils';
|
|
6
|
-
export interface Props {
|
|
7
|
-
node?: PMNode;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
dispatchAnalyticsEvent?: (payload: UnsupportedContentTooltipPayload) => void;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
12
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|