@atlaskit/renderer 108.15.8 → 108.15.9
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/actions/index.js +2 -3
- package/dist/cjs/analytics/analyticsContext.js +1 -2
- package/dist/cjs/analytics/enums.js +5 -9
- package/dist/cjs/analytics/events.js +4 -7
- package/dist/cjs/analytics/unsupported-content.js +2 -3
- package/dist/cjs/consts.js +2 -3
- package/dist/cjs/i18n/cs.js +2 -3
- package/dist/cjs/i18n/da.js +2 -3
- package/dist/cjs/i18n/de.js +2 -3
- package/dist/cjs/i18n/en.js +2 -3
- package/dist/cjs/i18n/en_GB.js +2 -3
- package/dist/cjs/i18n/en_ZZ.js +2 -3
- package/dist/cjs/i18n/es.js +2 -3
- package/dist/cjs/i18n/et.js +1 -2
- package/dist/cjs/i18n/fi.js +2 -3
- package/dist/cjs/i18n/fr.js +2 -3
- package/dist/cjs/i18n/hu.js +2 -3
- package/dist/cjs/i18n/it.js +2 -3
- package/dist/cjs/i18n/ja.js +2 -3
- package/dist/cjs/i18n/ko.js +2 -3
- package/dist/cjs/i18n/nb.js +2 -3
- package/dist/cjs/i18n/nl.js +2 -3
- package/dist/cjs/i18n/pl.js +2 -3
- package/dist/cjs/i18n/pt_BR.js +2 -3
- package/dist/cjs/i18n/pt_PT.js +1 -2
- package/dist/cjs/i18n/ru.js +2 -3
- package/dist/cjs/i18n/sk.js +1 -2
- package/dist/cjs/i18n/sv.js +2 -3
- package/dist/cjs/i18n/th.js +2 -3
- package/dist/cjs/i18n/tr.js +2 -3
- package/dist/cjs/i18n/uk.js +2 -3
- package/dist/cjs/i18n/vi.js +2 -3
- package/dist/cjs/i18n/zh.js +2 -3
- package/dist/cjs/i18n/zh_TW.js +2 -3
- package/dist/cjs/messages.js +5 -9
- package/dist/cjs/react/hooks/use-bidi-warnings.js +2 -3
- package/dist/cjs/react/hooks/use-in-viewport.js +2 -3
- package/dist/cjs/react/index.js +3 -3
- package/dist/cjs/react/marks/annotation.js +2 -4
- package/dist/cjs/react/marks/breakout.js +1 -2
- package/dist/cjs/react/marks/code.js +2 -4
- package/dist/cjs/react/marks/confluence-inline-comment.js +2 -3
- package/dist/cjs/react/marks/index.js +3 -5
- package/dist/cjs/react/nodes/bodiedExtension.js +1 -2
- package/dist/cjs/react/nodes/caption.js +1 -2
- package/dist/cjs/react/nodes/codeBlock/codeBlock.js +1 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +1 -2
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +1 -2
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +3 -6
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +1 -2
- package/dist/cjs/react/nodes/date.js +2 -4
- package/dist/cjs/react/nodes/decisionList.js +2 -3
- package/dist/cjs/react/nodes/emoji.js +2 -3
- package/dist/cjs/react/nodes/extension.js +3 -5
- package/dist/cjs/react/nodes/fallback.js +2 -3
- package/dist/cjs/react/nodes/hardBreak.js +1 -2
- package/dist/cjs/react/nodes/heading-anchor.js +2 -4
- package/dist/cjs/react/nodes/heading.js +1 -2
- package/dist/cjs/react/nodes/index.js +25 -50
- package/dist/cjs/react/nodes/inlineCard.js +1 -2
- package/dist/cjs/react/nodes/inlineExtension.js +1 -2
- package/dist/cjs/react/nodes/media/index.js +2 -3
- package/dist/cjs/react/nodes/media/styles.js +3 -5
- package/dist/cjs/react/nodes/mediaGroup.js +2 -3
- package/dist/cjs/react/nodes/mediaInline.js +3 -5
- package/dist/cjs/react/nodes/mediaSingle/index.js +2 -4
- package/dist/cjs/react/nodes/mediaSingle/styles.js +2 -4
- package/dist/cjs/react/nodes/mention.js +2 -3
- package/dist/cjs/react/nodes/orderedList.js +1 -1
- package/dist/cjs/react/nodes/panel.js +1 -2
- package/dist/cjs/react/nodes/status.js +2 -3
- package/dist/cjs/react/nodes/table/colgroup.js +3 -5
- package/dist/cjs/react/nodes/table/sticky.js +5 -9
- package/dist/cjs/react/nodes/table/table.js +2 -3
- package/dist/cjs/react/nodes/table.js +4 -8
- package/dist/cjs/react/nodes/tableCell.js +3 -6
- package/dist/cjs/react/nodes/tableRow.js +2 -3
- package/dist/cjs/react/nodes/task-item-with-providers.js +2 -3
- package/dist/cjs/react/nodes/taskItem.js +2 -3
- package/dist/cjs/react/nodes/taskList.js +2 -3
- package/dist/cjs/react/nodes/text-wrapper.js +1 -2
- package/dist/cjs/react/renderer-node.js +5 -9
- package/dist/cjs/react/utils/appearance.js +4 -7
- package/dist/cjs/react/utils/clipboard.js +2 -3
- package/dist/cjs/react/utils/element-selection.js +2 -3
- package/dist/cjs/react/utils/getCardClickHandler.js +2 -3
- package/dist/cjs/react/utils/use-select-all-trap.js +2 -3
- package/dist/cjs/render-document.js +2 -3
- package/dist/cjs/renderer-context.js +2 -4
- package/dist/cjs/text/index.js +2 -3
- package/dist/cjs/text/nodes/blockquote.js +1 -2
- package/dist/cjs/text/nodes/bulletList.js +1 -2
- package/dist/cjs/text/nodes/date.js +1 -2
- package/dist/cjs/text/nodes/decisionItem.js +1 -2
- package/dist/cjs/text/nodes/hardBreak.js +1 -2
- package/dist/cjs/text/nodes/heading.js +1 -2
- package/dist/cjs/text/nodes/index.js +3 -5
- package/dist/cjs/text/nodes/inlineCard.js +1 -2
- package/dist/cjs/text/nodes/listItem.js +1 -2
- package/dist/cjs/text/nodes/mediaGroup.js +1 -2
- package/dist/cjs/text/nodes/mention.js +1 -2
- package/dist/cjs/text/nodes/orderedList.js +1 -2
- package/dist/cjs/text/nodes/panel.js +1 -2
- package/dist/cjs/text/nodes/paragraph.js +1 -2
- package/dist/cjs/text/nodes/rule.js +1 -2
- package/dist/cjs/text/nodes/status.js +1 -2
- package/dist/cjs/text/nodes/table.js +1 -2
- package/dist/cjs/text/nodes/taskItem.js +1 -2
- package/dist/cjs/text/nodes/unknown.js +1 -2
- package/dist/cjs/ui/Expand.js +1 -2
- package/dist/cjs/ui/ExtensionRenderer.js +5 -6
- package/dist/cjs/ui/MediaCard.js +5 -10
- package/dist/cjs/ui/Renderer/ErrorBoundary.js +2 -3
- package/dist/cjs/ui/Renderer/breakout-ssr.js +2 -4
- package/dist/cjs/ui/Renderer/index.js +9 -13
- package/dist/cjs/ui/Renderer/style.js +7 -10
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +2 -3
- package/dist/cjs/ui/RendererActionsContext/index.js +2 -4
- package/dist/cjs/ui/SmartCardStorage.js +4 -7
- package/dist/cjs/ui/SortingIcon.js +2 -4
- package/dist/cjs/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +1 -2
- package/dist/cjs/ui/active-header-id-provider.js +3 -5
- package/dist/cjs/ui/annotations/context.js +5 -9
- package/dist/cjs/ui/annotations/draft/component.js +5 -9
- package/dist/cjs/ui/annotations/draft/dom.js +3 -5
- package/dist/cjs/ui/annotations/draft/position.js +2 -3
- package/dist/cjs/ui/annotations/draft/text.js +4 -7
- package/dist/cjs/ui/annotations/element/index.js +2 -3
- package/dist/cjs/ui/annotations/element/mark.js +2 -3
- package/dist/cjs/ui/annotations/hooks/use-events.js +4 -7
- package/dist/cjs/ui/annotations/hooks/use-inline-comment-subscriber.js +2 -3
- package/dist/cjs/ui/annotations/hooks/use-inline-comments-filter.js +2 -3
- package/dist/cjs/ui/annotations/hooks/use-load-annotations.js +2 -3
- package/dist/cjs/ui/annotations/hooks/user-selection.js +2 -3
- package/dist/cjs/ui/annotations/hooks/utils.js +2 -3
- package/dist/cjs/ui/annotations/index.js +2 -3
- package/dist/cjs/ui/annotations/selection/mounter.js +2 -3
- package/dist/cjs/ui/annotations/selection/range-validator.js +2 -3
- package/dist/cjs/ui/annotations/selection/wrapper.js +2 -3
- package/dist/cjs/ui/annotations/types.js +2 -3
- package/dist/cjs/ui/annotations/view/index.js +2 -3
- package/dist/cjs/use-feature-flags.js +2 -3
- package/dist/cjs/utils.js +4 -8
- package/dist/es2019/react/index.js +1 -0
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/index.js +1 -0
- package/dist/esm/react/nodes/mediaInline.js +1 -1
- package/dist/esm/react/nodes/orderedList.js +1 -1
- package/dist/esm/ui/ExtensionRenderer.js +3 -3
- package/dist/esm/ui/Renderer/index.js +5 -5
- package/package.json +5 -5
- package/dist/types-ts4.5/actions/index.d.ts +0 -61
- package/dist/types-ts4.5/actions/matches-utils.d.ts +0 -7
- package/dist/types-ts4.5/actions.d.ts +0 -3
- package/dist/types-ts4.5/analytics/analyticsContext.d.ts +0 -6
- package/dist/types-ts4.5/analytics/enums.d.ts +0 -58
- package/dist/types-ts4.5/analytics/events.d.ts +0 -118
- package/dist/types-ts4.5/analytics/unsupported-content.d.ts +0 -10
- package/dist/types-ts4.5/consts.d.ts +0 -12
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -25
- package/dist/types-ts4.5/i18n/da.d.ts +0 -20
- package/dist/types-ts4.5/i18n/de.d.ts +0 -20
- package/dist/types-ts4.5/i18n/en.d.ts +0 -25
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -25
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -25
- package/dist/types-ts4.5/i18n/es.d.ts +0 -20
- package/dist/types-ts4.5/i18n/et.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -25
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -20
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -20
- package/dist/types-ts4.5/i18n/index.d.ts +0 -31
- package/dist/types-ts4.5/i18n/it.d.ts +0 -20
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -25
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -20
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -20
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -20
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -20
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -25
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -25
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -20
- package/dist/types-ts4.5/i18n/th.d.ts +0 -20
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -20
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -25
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -20
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -20
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -20
- package/dist/types-ts4.5/index.d.ts +0 -11
- package/dist/types-ts4.5/messages.d.ts +0 -88
- package/dist/types-ts4.5/react/hooks/use-bidi-warnings.d.ts +0 -10
- package/dist/types-ts4.5/react/hooks/use-in-viewport.d.ts +0 -5
- package/dist/types-ts4.5/react/index.d.ts +0 -124
- package/dist/types-ts4.5/react/marks/alignment.d.ts +0 -4
- package/dist/types-ts4.5/react/marks/annotation.d.ts +0 -6
- package/dist/types-ts4.5/react/marks/breakout.d.ts +0 -6
- package/dist/types-ts4.5/react/marks/code.d.ts +0 -16
- package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +0 -8
- package/dist/types-ts4.5/react/marks/data-consumer.d.ts +0 -4
- package/dist/types-ts4.5/react/marks/em.d.ts +0 -3
- package/dist/types-ts4.5/react/marks/fragment.d.ts +0 -4
- package/dist/types-ts4.5/react/marks/indentation.d.ts +0 -4
- package/dist/types-ts4.5/react/marks/index.d.ts +0 -21
- package/dist/types-ts4.5/react/marks/link.d.ts +0 -9
- package/dist/types-ts4.5/react/marks/strike.d.ts +0 -3
- package/dist/types-ts4.5/react/marks/strong.d.ts +0 -3
- package/dist/types-ts4.5/react/marks/subsup.d.ts +0 -4
- package/dist/types-ts4.5/react/marks/textColor.d.ts +0 -4
- package/dist/types-ts4.5/react/marks/underline.d.ts +0 -3
- package/dist/types-ts4.5/react/marks/unsupportedMark.d.ts +0 -3
- package/dist/types-ts4.5/react/marks/unsupportedNodeAttribute.d.ts +0 -3
- package/dist/types-ts4.5/react/nodes/blockCard.d.ts +0 -15
- package/dist/types-ts4.5/react/nodes/blockquote.d.ts +0 -2
- package/dist/types-ts4.5/react/nodes/bodiedExtension.d.ts +0 -24
- package/dist/types-ts4.5/react/nodes/bulletList.d.ts +0 -5
- package/dist/types-ts4.5/react/nodes/caption.d.ts +0 -4
- package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +0 -15
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockButtonContainer.d.ts +0 -12
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockContainer.d.ts +0 -10
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +0 -9
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +0 -11
- package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +0 -9
- package/dist/types-ts4.5/react/nodes/codeBlock/windowedCodeBlock.d.ts +0 -4
- package/dist/types-ts4.5/react/nodes/date.d.ts +0 -11
- package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +0 -3
- package/dist/types-ts4.5/react/nodes/decisionList.d.ts +0 -7
- package/dist/types-ts4.5/react/nodes/doc.d.ts +0 -3
- package/dist/types-ts4.5/react/nodes/embedCard.d.ts +0 -19
- package/dist/types-ts4.5/react/nodes/emoji.d.ts +0 -12
- package/dist/types-ts4.5/react/nodes/extension.d.ts +0 -113
- package/dist/types-ts4.5/react/nodes/fallback.d.ts +0 -19
- package/dist/types-ts4.5/react/nodes/hardBreak.d.ts +0 -6
- package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +0 -14
- package/dist/types-ts4.5/react/nodes/heading.d.ts +0 -14
- package/dist/types-ts4.5/react/nodes/index.d.ts +0 -98
- package/dist/types-ts4.5/react/nodes/inline.d.ts +0 -1
- package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +0 -65
- package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +0 -18
- package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +0 -6
- package/dist/types-ts4.5/react/nodes/layoutSection.d.ts +0 -2
- package/dist/types-ts4.5/react/nodes/listItem.d.ts +0 -2
- package/dist/types-ts4.5/react/nodes/media/index.d.ts +0 -27
- package/dist/types-ts4.5/react/nodes/media/styles.d.ts +0 -2
- package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +0 -30
- package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +0 -38
- package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +0 -24
- package/dist/types-ts4.5/react/nodes/mediaSingle/styles.d.ts +0 -2
- package/dist/types-ts4.5/react/nodes/mention.d.ts +0 -13
- package/dist/types-ts4.5/react/nodes/orderedList.d.ts +0 -9
- package/dist/types-ts4.5/react/nodes/panel.d.ts +0 -17
- package/dist/types-ts4.5/react/nodes/paragraph.d.ts +0 -3
- package/dist/types-ts4.5/react/nodes/placeholder.d.ts +0 -6
- package/dist/types-ts4.5/react/nodes/rule.d.ts +0 -2
- package/dist/types-ts4.5/react/nodes/status.d.ts +0 -10
- package/dist/types-ts4.5/react/nodes/table/colgroup.d.ts +0 -9
- package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +0 -43
- package/dist/types-ts4.5/react/nodes/table/table.d.ts +0 -7
- package/dist/types-ts4.5/react/nodes/table/types.d.ts +0 -12
- package/dist/types-ts4.5/react/nodes/table.d.ts +0 -282
- package/dist/types-ts4.5/react/nodes/tableCell.d.ts +0 -81
- package/dist/types-ts4.5/react/nodes/tableRow.d.ts +0 -24
- package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +0 -29
- package/dist/types-ts4.5/react/nodes/taskItem.d.ts +0 -19
- package/dist/types-ts4.5/react/nodes/taskList.d.ts +0 -8
- package/dist/types-ts4.5/react/nodes/text-wrapper.d.ts +0 -8
- package/dist/types-ts4.5/react/nodes/unknownBlock.d.ts +0 -2
- package/dist/types-ts4.5/react/renderer-node.d.ts +0 -5
- package/dist/types-ts4.5/react/types.d.ts +0 -58
- package/dist/types-ts4.5/react/utils/appearance.d.ts +0 -4
- package/dist/types-ts4.5/react/utils/clipboard.d.ts +0 -1
- package/dist/types-ts4.5/react/utils/element-selection.d.ts +0 -9
- package/dist/types-ts4.5/react/utils/getCardClickHandler.d.ts +0 -2
- package/dist/types-ts4.5/react/utils/inject-props.d.ts +0 -6
- package/dist/types-ts4.5/react/utils/links.d.ts +0 -3
- package/dist/types-ts4.5/react/utils/lists.d.ts +0 -2
- package/dist/types-ts4.5/react/utils/performance/RenderTracking.d.ts +0 -15
- package/dist/types-ts4.5/react/utils/use-select-all-trap.d.ts +0 -2
- package/dist/types-ts4.5/render-document.d.ts +0 -23
- package/dist/types-ts4.5/renderer-context.d.ts +0 -7
- package/dist/types-ts4.5/serializer.d.ts +0 -4
- package/dist/types-ts4.5/steps/index.d.ts +0 -14
- package/dist/types-ts4.5/text/index.d.ts +0 -8
- package/dist/types-ts4.5/text/nodes/blockquote.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/bulletList.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/date.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/decisionItem.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/hardBreak.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/heading.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/index.d.ts +0 -6
- package/dist/types-ts4.5/text/nodes/inlineCard.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/listItem.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/mediaGroup.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/mention.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/orderedList.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/panel.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/paragraph.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/rule.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/status.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/table.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/taskItem.d.ts +0 -3
- package/dist/types-ts4.5/text/nodes/unknown.d.ts +0 -3
- package/dist/types-ts4.5/text-serializer.d.ts +0 -1
- package/dist/types-ts4.5/types/i18n.d.ts +0 -5
- package/dist/types-ts4.5/types/mediaOptions.d.ts +0 -13
- package/dist/types-ts4.5/types/smartLinksOptions.d.ts +0 -7
- package/dist/types-ts4.5/ui/Expand.d.ts +0 -23
- package/dist/types-ts4.5/ui/ExtensionRenderer.d.ts +0 -42
- package/dist/types-ts4.5/ui/MediaCard.d.ts +0 -79
- package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +0 -24
- package/dist/types-ts4.5/ui/Renderer/breakout-ssr.d.ts +0 -11
- package/dist/types-ts4.5/ui/Renderer/click-to-edit.d.ts +0 -6
- package/dist/types-ts4.5/ui/Renderer/index.d.ts +0 -38
- package/dist/types-ts4.5/ui/Renderer/style.d.ts +0 -16
- package/dist/types-ts4.5/ui/Renderer/truncated-wrapper.d.ts +0 -12
- package/dist/types-ts4.5/ui/Renderer/types.d.ts +0 -16
- package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +0 -6
- package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +0 -60
- package/dist/types-ts4.5/ui/SortingIcon.d.ts +0 -23
- package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +0 -15
- package/dist/types-ts4.5/ui/TaskItemsFormatContext/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/active-header-id-provider.d.ts +0 -18
- package/dist/types-ts4.5/ui/annotations/context.d.ts +0 -27
- package/dist/types-ts4.5/ui/annotations/draft/component.d.ts +0 -20
- package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +0 -7
- package/dist/types-ts4.5/ui/annotations/draft/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/annotations/draft/position.d.ts +0 -2
- package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +0 -13
- package/dist/types-ts4.5/ui/annotations/element/index.d.ts +0 -10
- package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +0 -14
- package/dist/types-ts4.5/ui/annotations/hooks/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +0 -18
- package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +0 -1
- package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comments-filter.d.ts +0 -9
- package/dist/types-ts4.5/ui/annotations/hooks/use-load-annotations.d.ts +0 -6
- package/dist/types-ts4.5/ui/annotations/hooks/user-selection.d.ts +0 -9
- package/dist/types-ts4.5/ui/annotations/hooks/utils.d.ts +0 -2
- package/dist/types-ts4.5/ui/annotations/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/annotations/selection/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +0 -20
- package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +0 -13
- package/dist/types-ts4.5/ui/annotations/selection/wrapper.d.ts +0 -8
- package/dist/types-ts4.5/ui/annotations/types.d.ts +0 -22
- package/dist/types-ts4.5/ui/annotations/view/index.d.ts +0 -7
- package/dist/types-ts4.5/ui/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/renderer-props.d.ts +0 -115
- package/dist/types-ts4.5/use-feature-flags.d.ts +0 -2
- package/dist/types-ts4.5/utils.d.ts +0 -24
- package/tmp/api-report-tmp.d.ts +0 -552
|
@@ -80,5 +80,4 @@ var InlineCard = function InlineCard(props) {
|
|
|
80
80
|
onError: onError
|
|
81
81
|
})))));
|
|
82
82
|
};
|
|
83
|
-
var _default = (0, _SmartCardStorage.withSmartCardStorage)(InlineCard);
|
|
84
|
-
exports.default = _default;
|
|
83
|
+
var _default = exports.default = (0, _SmartCardStorage.withSmartCardStorage)(InlineCard);
|
|
@@ -28,5 +28,4 @@ var InlineExtension = function InlineExtension(props) {
|
|
|
28
28
|
return /*#__PURE__*/_react.default.createElement("span", null, text || 'inlineExtension');
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
var _default = InlineExtension;
|
|
32
|
-
exports.default = _default;
|
|
31
|
+
var _default = exports.default = InlineExtension;
|
|
@@ -30,7 +30,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
30
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
31
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
32
32
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
33
|
-
var Media = /*#__PURE__*/function (_PureComponent) {
|
|
33
|
+
var Media = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
34
34
|
(0, _inherits2.default)(Media, _PureComponent);
|
|
35
35
|
var _super = _createSuper(Media);
|
|
36
36
|
function Media() {
|
|
@@ -133,5 +133,4 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
133
133
|
}
|
|
134
134
|
}]);
|
|
135
135
|
return Media;
|
|
136
|
-
}(_react.PureComponent);
|
|
137
|
-
exports.default = Media;
|
|
136
|
+
}(_react.PureComponent);
|
|
@@ -8,9 +8,7 @@ exports.linkStyle = exports.borderStyle = void 0;
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _templateObject, _templateObject2;
|
|
11
|
-
var linkStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n background: transparent;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n cursor: pointer;\n width: 100% !important;\n height: 100% !important;\n"])));
|
|
12
|
-
exports.
|
|
13
|
-
var borderStyle = function borderStyle(color, width) {
|
|
11
|
+
var linkStyle = exports.linkStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n background: transparent;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n cursor: pointer;\n width: 100% !important;\n height: 100% !important;\n"])));
|
|
12
|
+
var borderStyle = exports.borderStyle = function borderStyle(color, width) {
|
|
14
13
|
return (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n width: 100% !important;\n height: 100% !important;\n border-radius: ", "px;\n box-shadow: 0 0 0 ", "px ", ";\n"])), width, width, color);
|
|
15
|
-
};
|
|
16
|
-
exports.borderStyle = borderStyle;
|
|
14
|
+
};
|
|
@@ -22,7 +22,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
22
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
23
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
24
24
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
25
|
-
var MediaGroup = /*#__PURE__*/function (_PureComponent) {
|
|
25
|
+
var MediaGroup = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
26
26
|
(0, _inherits2.default)(MediaGroup, _PureComponent);
|
|
27
27
|
var _super = _createSuper(MediaGroup);
|
|
28
28
|
function MediaGroup() {
|
|
@@ -184,5 +184,4 @@ var MediaGroup = /*#__PURE__*/function (_PureComponent) {
|
|
|
184
184
|
}
|
|
185
185
|
}]);
|
|
186
186
|
return MediaGroup;
|
|
187
|
-
}(_react.PureComponent);
|
|
188
|
-
exports.default = MediaGroup;
|
|
187
|
+
}(_react.PureComponent);
|
|
@@ -22,7 +22,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
22
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
23
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
24
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
|
-
var RenderMediaInline = function RenderMediaInline(_ref) {
|
|
25
|
+
var RenderMediaInline = exports.RenderMediaInline = function RenderMediaInline(_ref) {
|
|
26
26
|
var rendererAppearance = _ref.rendererAppearance,
|
|
27
27
|
intl = _ref.intl,
|
|
28
28
|
clipboardAttrs = _ref.clipboardAttrs,
|
|
@@ -159,7 +159,7 @@ var RenderMediaInline = function RenderMediaInline(_ref) {
|
|
|
159
159
|
var _eventHandlers$media;
|
|
160
160
|
if (eventHandlers !== null && eventHandlers !== void 0 && (_eventHandlers$media = eventHandlers.media) !== null && _eventHandlers$media !== void 0 && _eventHandlers$media.onClick) {
|
|
161
161
|
var _eventHandlers$media2;
|
|
162
|
-
eventHandlers === null || eventHandlers === void 0
|
|
162
|
+
eventHandlers === null || eventHandlers === void 0 || (_eventHandlers$media2 = eventHandlers.media) === null || _eventHandlers$media2 === void 0 || _eventHandlers$media2.onClick(result);
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
165
|
var shouldOpenMediaViewer = rendererAppearance !== 'mobile';
|
|
@@ -187,7 +187,6 @@ var RenderMediaInline = function RenderMediaInline(_ref) {
|
|
|
187
187
|
})).formatMessage(_mediaUi.messages.couldnt_load_file)
|
|
188
188
|
}));
|
|
189
189
|
};
|
|
190
|
-
exports.RenderMediaInline = RenderMediaInline;
|
|
191
190
|
var MediaInline = function MediaInline(props) {
|
|
192
191
|
var collection = props.collection,
|
|
193
192
|
id = props.id,
|
|
@@ -221,5 +220,4 @@ var MediaInline = function MediaInline(props) {
|
|
|
221
220
|
}
|
|
222
221
|
});
|
|
223
222
|
};
|
|
224
|
-
var _default = (0, _reactIntlNext.injectIntl)(MediaInline);
|
|
225
|
-
exports.default = _default;
|
|
223
|
+
var _default = exports.default = (0, _reactIntlNext.injectIntl)(MediaInline);
|
|
@@ -45,7 +45,7 @@ var checkForMediaElement = function checkForMediaElement(children) {
|
|
|
45
45
|
|
|
46
46
|
// returns the existing container width if available (non SSR mode), otherwise
|
|
47
47
|
// we return a default width value
|
|
48
|
-
var getMediaContainerWidth = function getMediaContainerWidth(currentContainerWidth, layout) {
|
|
48
|
+
var getMediaContainerWidth = exports.getMediaContainerWidth = function getMediaContainerWidth(currentContainerWidth, layout) {
|
|
49
49
|
if (currentContainerWidth) {
|
|
50
50
|
return currentContainerWidth;
|
|
51
51
|
}
|
|
@@ -60,7 +60,6 @@ var getMediaContainerWidth = function getMediaContainerWidth(currentContainerWid
|
|
|
60
60
|
return _editorSharedStyles.akEditorDefaultLayoutWidth;
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
-
exports.getMediaContainerWidth = getMediaContainerWidth;
|
|
64
63
|
var MediaSingle = function MediaSingle(props) {
|
|
65
64
|
var rendererAppearance = props.rendererAppearance,
|
|
66
65
|
featureFlags = props.featureFlags,
|
|
@@ -194,5 +193,4 @@ var MediaSingle = function MediaSingle(props) {
|
|
|
194
193
|
return renderMediaSingle(width);
|
|
195
194
|
});
|
|
196
195
|
};
|
|
197
|
-
var _default = (0, _reactIntlNext.injectIntl)(MediaSingle);
|
|
198
|
-
exports.default = _default;
|
|
196
|
+
var _default = exports.default = (0, _reactIntlNext.injectIntl)(MediaSingle);
|
|
@@ -9,7 +9,5 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _templateObject, _templateObject2;
|
|
11
11
|
/** @jsx jsx */
|
|
12
|
-
var uiMediaSingleBaseStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n transition: all 0.1s linear;\n"])));
|
|
13
|
-
exports.
|
|
14
|
-
var uiMediaSingleLayoutStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 50%;\n transform: translateX(-50%);\n"])));
|
|
15
|
-
exports.uiMediaSingleLayoutStyles = uiMediaSingleLayoutStyles;
|
|
12
|
+
var uiMediaSingleBaseStyles = exports.uiMediaSingleBaseStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n transition: all 0.1s linear;\n"])));
|
|
13
|
+
var uiMediaSingleLayoutStyles = exports.uiMediaSingleLayoutStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 50%;\n transform: translateX(-50%);\n"])));
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
19
19
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
20
|
-
var MentionItem = /*#__PURE__*/function (_PureComponent) {
|
|
20
|
+
var MentionItem = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
21
21
|
(0, _inherits2.default)(MentionItem, _PureComponent);
|
|
22
22
|
var _super = _createSuper(MentionItem);
|
|
23
23
|
function MentionItem() {
|
|
@@ -43,5 +43,4 @@ var MentionItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
43
43
|
}
|
|
44
44
|
}]);
|
|
45
45
|
return MentionItem;
|
|
46
|
-
}(_react.PureComponent);
|
|
47
|
-
exports.default = MentionItem;
|
|
46
|
+
}(_react.PureComponent);
|
|
@@ -19,7 +19,7 @@ function OrderedList(props) {
|
|
|
19
19
|
var _props$content;
|
|
20
20
|
var itemCounterDigitsSize = (0, _utils.getItemCounterDigitsSize)({
|
|
21
21
|
order: props.order,
|
|
22
|
-
itemsCount: props === null || props === void 0
|
|
22
|
+
itemsCount: props === null || props === void 0 || (_props$content = props.content) === null || _props$content === void 0 ? void 0 : _props$content.length
|
|
23
23
|
});
|
|
24
24
|
if (itemCounterDigitsSize) {
|
|
25
25
|
extraProps.style = (0, _styles.getOrderedListInlineStyles)(itemCounterDigitsSize, 'object');
|
|
@@ -18,7 +18,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
19
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
20
20
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
21
|
-
var Status = /*#__PURE__*/function (_PureComponent) {
|
|
21
|
+
var Status = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
22
22
|
(0, _inherits2.default)(Status, _PureComponent);
|
|
23
23
|
var _super = _createSuper(Status);
|
|
24
24
|
function Status() {
|
|
@@ -45,5 +45,4 @@ var Status = /*#__PURE__*/function (_PureComponent) {
|
|
|
45
45
|
}
|
|
46
46
|
}]);
|
|
47
47
|
return Status;
|
|
48
|
-
}(_react.PureComponent);
|
|
49
|
-
exports.default = Status;
|
|
48
|
+
}(_react.PureComponent);
|
|
@@ -46,14 +46,13 @@ var fixColumnWidth = function fixColumnWidth(columnWidth, _tableWidth, _layoutWi
|
|
|
46
46
|
// We need to take tableCellBorderWidth, to avoid unnecessary overflow.
|
|
47
47
|
columnWidth - _styles.tableCellBorderWidth, zeroWidthColumnsCount ? _editorSharedStyles.akEditorTableLegacyCellMinWidth : _styles.tableCellMinWidth);
|
|
48
48
|
};
|
|
49
|
-
var calcScalePercent = function calcScalePercent(_ref) {
|
|
49
|
+
var calcScalePercent = exports.calcScalePercent = function calcScalePercent(_ref) {
|
|
50
50
|
var renderWidth = _ref.renderWidth,
|
|
51
51
|
tableWidth = _ref.tableWidth,
|
|
52
52
|
maxScale = _ref.maxScale;
|
|
53
53
|
var diffPercent = 1 - renderWidth / tableWidth;
|
|
54
54
|
return diffPercent < maxScale ? diffPercent : maxScale;
|
|
55
55
|
};
|
|
56
|
-
exports.calcScalePercent = calcScalePercent;
|
|
57
56
|
var renderScaleDownColgroup = function renderScaleDownColgroup(props) {
|
|
58
57
|
var columnWidths = props.columnWidths,
|
|
59
58
|
layout = props.layout,
|
|
@@ -130,7 +129,7 @@ var renderScaleDownColgroup = function renderScaleDownColgroup(props) {
|
|
|
130
129
|
return style;
|
|
131
130
|
});
|
|
132
131
|
};
|
|
133
|
-
var Colgroup = function Colgroup(props) {
|
|
132
|
+
var Colgroup = exports.Colgroup = function Colgroup(props) {
|
|
134
133
|
var columnWidths = props.columnWidths,
|
|
135
134
|
isNumberColumnEnabled = props.isNumberColumnEnabled;
|
|
136
135
|
if (!columnWidths) {
|
|
@@ -151,5 +150,4 @@ var Colgroup = function Colgroup(props) {
|
|
|
151
150
|
style: style
|
|
152
151
|
});
|
|
153
152
|
}));
|
|
154
|
-
};
|
|
155
|
-
exports.Colgroup = Colgroup;
|
|
153
|
+
};
|
|
@@ -19,8 +19,7 @@ var _injectProps = require("../../utils/inject-props");
|
|
|
19
19
|
var _table2 = require("../table");
|
|
20
20
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
21
21
|
/** @jsx jsx */
|
|
22
|
-
var tableStickyPadding = 8;
|
|
23
|
-
exports.tableStickyPadding = tableStickyPadding;
|
|
22
|
+
var tableStickyPadding = exports.tableStickyPadding = 8;
|
|
24
23
|
var modeSpecficStyles = {
|
|
25
24
|
none: (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: none;\n "]))),
|
|
26
25
|
stick: (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n position: fixed;\n "]))),
|
|
@@ -37,7 +36,7 @@ var fixedTableDivStaticStyles = function fixedTableDivStaticStyles(top, width, r
|
|
|
37
36
|
}
|
|
38
37
|
return (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n width: ", "px;\n z-index: ", ";\n &\n .", ",\n &\n .", "\n > table {\n margin-top: 0;\n margin-bottom: 0;\n tr {\n background: ", ";\n }\n }\n\n border-top: ", "px solid\n ", ";\n background: ", ";\n box-shadow: 0 6px 4px -4px ", ";\n\n div[data-expanded='false'] & {\n display: none;\n }\n\n &\n .", ".is-sticky.right-shadow::after,\n &\n .", ".is-sticky.left-shadow::before {\n top: 0px;\n height: 100%;\n }\n "])), typeof top === 'number' && "top: ".concat(top, "px;"), width, stickyHeaderZIndex, _styles.TableSharedCssClassName.TABLE_CONTAINER, _styles.TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-surface, white)", tableStickyPadding, "var(--ds-surface, white)", "var(--ds-surface-overlay, white)", "var(--ds-shadow-overflow-perimeter, ".concat(_colors.N40A, ")"), _styles.TableSharedCssClassName.TABLE_CONTAINER, _styles.TableSharedCssClassName.TABLE_CONTAINER);
|
|
39
38
|
};
|
|
40
|
-
var FixedTableDiv = function FixedTableDiv(props) {
|
|
39
|
+
var FixedTableDiv = exports.FixedTableDiv = function FixedTableDiv(props) {
|
|
41
40
|
var top = props.top,
|
|
42
41
|
wrapperWidth = props.wrapperWidth,
|
|
43
42
|
mode = props.mode,
|
|
@@ -51,8 +50,7 @@ var FixedTableDiv = function FixedTableDiv(props) {
|
|
|
51
50
|
css: fixedTableCss
|
|
52
51
|
}), props.children);
|
|
53
52
|
};
|
|
54
|
-
exports.
|
|
55
|
-
var StickyTable = function StickyTable(_ref) {
|
|
53
|
+
var StickyTable = exports.StickyTable = function StickyTable(_ref) {
|
|
56
54
|
var top = _ref.top,
|
|
57
55
|
left = _ref.left,
|
|
58
56
|
mode = _ref.mode,
|
|
@@ -124,7 +122,6 @@ var StickyTable = function StickyTable(_ref) {
|
|
|
124
122
|
/**
|
|
125
123
|
* Traverse DOM Tree upwards looking for table parents with "overflow: scroll".
|
|
126
124
|
*/
|
|
127
|
-
exports.StickyTable = StickyTable;
|
|
128
125
|
function findHorizontalOverflowScrollParent(table) {
|
|
129
126
|
var parent = table;
|
|
130
127
|
if (!parent) {
|
|
@@ -139,7 +136,7 @@ function findHorizontalOverflowScrollParent(table) {
|
|
|
139
136
|
}
|
|
140
137
|
return null;
|
|
141
138
|
}
|
|
142
|
-
var OverflowParent = /*#__PURE__*/function () {
|
|
139
|
+
var OverflowParent = exports.OverflowParent = /*#__PURE__*/function () {
|
|
143
140
|
function OverflowParent(ref) {
|
|
144
141
|
(0, _classCallCheck2.default)(this, OverflowParent);
|
|
145
142
|
this.ref = ref;
|
|
@@ -183,5 +180,4 @@ var OverflowParent = /*#__PURE__*/function () {
|
|
|
183
180
|
}
|
|
184
181
|
}]);
|
|
185
182
|
return OverflowParent;
|
|
186
|
-
}();
|
|
187
|
-
exports.OverflowParent = OverflowParent;
|
|
183
|
+
}();
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.Table = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _colgroup = require("./colgroup");
|
|
10
|
-
var Table = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
10
|
+
var Table = exports.Table = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
11
11
|
var innerRef = _ref.innerRef,
|
|
12
12
|
isNumberColumnEnabled = _ref.isNumberColumnEnabled,
|
|
13
13
|
columnWidths = _ref.columnWidths,
|
|
@@ -30,5 +30,4 @@ var Table = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
30
30
|
rendererAppearance: rendererAppearance,
|
|
31
31
|
isInsideOfBlockNode: isInsideOfBlockNode
|
|
32
32
|
}), /*#__PURE__*/_react.default.createElement("tbody", null, children));
|
|
33
|
-
});
|
|
34
|
-
exports.Table = Table;
|
|
33
|
+
});
|
|
@@ -32,10 +32,9 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
32
32
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
33
33
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
34
34
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
35
|
-
var isTableResizingEnabled = function isTableResizingEnabled(appearance) {
|
|
35
|
+
var isTableResizingEnabled = exports.isTableResizingEnabled = function isTableResizingEnabled(appearance) {
|
|
36
36
|
return (0, _platformFeatureFlags.getBooleanFF)('platform.editor.custom-table-width') && (0, _appearance.isFullWidthOrFullPageAppearance)(appearance);
|
|
37
37
|
};
|
|
38
|
-
exports.isTableResizingEnabled = isTableResizingEnabled;
|
|
39
38
|
var orderChildren = function orderChildren(children, tableNode, smartCardStorage, tableOrderStatus) {
|
|
40
39
|
if (!tableOrderStatus || tableOrderStatus.order === _types.SortOrder.NO_ORDER) {
|
|
41
40
|
return children;
|
|
@@ -118,7 +117,7 @@ var tableCanBeSticky = function tableCanBeSticky(node, children) {
|
|
|
118
117
|
var canUseLinelength = function canUseLinelength(appearance) {
|
|
119
118
|
return appearance === 'full-page' || appearance === 'mobile';
|
|
120
119
|
};
|
|
121
|
-
var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
120
|
+
var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
122
121
|
(0, _inherits2.default)(TableContainer, _React$Component);
|
|
123
122
|
var _super = _createSuper(TableContainer);
|
|
124
123
|
function TableContainer() {
|
|
@@ -393,8 +392,7 @@ var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
393
392
|
}]);
|
|
394
393
|
return TableContainer;
|
|
395
394
|
}(_react.default.Component);
|
|
396
|
-
exports.
|
|
397
|
-
var TableProcessor = /*#__PURE__*/function (_React$Component2) {
|
|
395
|
+
var TableProcessor = exports.TableProcessor = /*#__PURE__*/function (_React$Component2) {
|
|
398
396
|
(0, _inherits2.default)(TableProcessor, _React$Component2);
|
|
399
397
|
var _super2 = _createSuper(TableProcessor);
|
|
400
398
|
function TableProcessor() {
|
|
@@ -455,7 +453,6 @@ var TableProcessor = /*#__PURE__*/function (_React$Component2) {
|
|
|
455
453
|
}]);
|
|
456
454
|
return TableProcessor;
|
|
457
455
|
}(_react.default.Component);
|
|
458
|
-
exports.TableProcessor = TableProcessor;
|
|
459
456
|
var TableWithShadows = (0, _ui.overflowShadow)(TableProcessor, {
|
|
460
457
|
overflowSelector: ".".concat(_styles.TableSharedCssClassName.TABLE_NODE_WRAPPER),
|
|
461
458
|
useShadowObserver: true
|
|
@@ -483,5 +480,4 @@ var TableWithWidth = function TableWithWidth(props) {
|
|
|
483
480
|
})
|
|
484
481
|
);
|
|
485
482
|
};
|
|
486
|
-
var _default = (0, _SmartCardStorage.withSmartCardStorage)(TableWithWidth);
|
|
487
|
-
exports.default = _default;
|
|
483
|
+
var _default = exports.default = (0, _SmartCardStorage.withSmartCardStorage)(TableWithWidth);
|
|
@@ -132,7 +132,7 @@ var withCellProps = function withCellProps(WrapperComponent) {
|
|
|
132
132
|
return WithCellProps;
|
|
133
133
|
}(_react.default.Component);
|
|
134
134
|
};
|
|
135
|
-
var withSortableColumn = function withSortableColumn(WrapperComponent) {
|
|
135
|
+
var withSortableColumn = exports.withSortableColumn = function withSortableColumn(WrapperComponent) {
|
|
136
136
|
var WithSortableColumn = /*#__PURE__*/function (_React$Component2) {
|
|
137
137
|
(0, _inherits2.default)(WithSortableColumn, _React$Component2);
|
|
138
138
|
var _super2 = _createSuper(WithSortableColumn);
|
|
@@ -217,8 +217,5 @@ var withSortableColumn = function withSortableColumn(WrapperComponent) {
|
|
|
217
217
|
}(_react.default.Component);
|
|
218
218
|
return (0, _reactIntlNext.injectIntl)(WithSortableColumn);
|
|
219
219
|
};
|
|
220
|
-
exports.
|
|
221
|
-
var
|
|
222
|
-
exports.TableHeader = TableHeader;
|
|
223
|
-
var TableCell = withCellProps('td');
|
|
224
|
-
exports.TableCell = TableCell;
|
|
220
|
+
var TableHeader = exports.TableHeader = (0, _utils.compose)(withSortableColumn, withCellProps)('th');
|
|
221
|
+
var TableCell = exports.TableCell = withCellProps('td');
|
|
@@ -18,7 +18,7 @@ var _types = require("@atlaskit/editor-common/types");
|
|
|
18
18
|
var _consts = require("../../consts");
|
|
19
19
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
20
20
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
21
|
-
var TableRow = /*#__PURE__*/function (_React$Component) {
|
|
21
|
+
var TableRow = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
22
22
|
(0, _inherits2.default)(TableRow, _React$Component);
|
|
23
23
|
var _super = _createSuper(TableRow);
|
|
24
24
|
function TableRow() {
|
|
@@ -84,5 +84,4 @@ var TableRow = /*#__PURE__*/function (_React$Component) {
|
|
|
84
84
|
}
|
|
85
85
|
}]);
|
|
86
86
|
return TableRow;
|
|
87
|
-
}(_react.default.Component);
|
|
88
|
-
exports.default = TableRow;
|
|
87
|
+
}(_react.default.Component);
|
|
@@ -24,7 +24,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
24
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
25
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
26
26
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
27
|
-
var TaskItemWithProviders = /*#__PURE__*/function (_Component) {
|
|
27
|
+
var TaskItemWithProviders = exports.default = /*#__PURE__*/function (_Component) {
|
|
28
28
|
(0, _inherits2.default)(TaskItemWithProviders, _Component);
|
|
29
29
|
var _super = _createSuper(TaskItemWithProviders);
|
|
30
30
|
function TaskItemWithProviders() {
|
|
@@ -113,5 +113,4 @@ var TaskItemWithProviders = /*#__PURE__*/function (_Component) {
|
|
|
113
113
|
}
|
|
114
114
|
}]);
|
|
115
115
|
return TaskItemWithProviders;
|
|
116
|
-
}(_react.Component);
|
|
117
|
-
exports.default = TaskItemWithProviders;
|
|
116
|
+
}(_react.Component);
|
|
@@ -23,7 +23,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
23
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
26
|
-
var TaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
26
|
+
var TaskItem = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
27
27
|
(0, _inherits2.default)(TaskItem, _PureComponent);
|
|
28
28
|
var _super = _createSuper(TaskItem);
|
|
29
29
|
function TaskItem(props) {
|
|
@@ -89,5 +89,4 @@ var TaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
89
89
|
}
|
|
90
90
|
}]);
|
|
91
91
|
return TaskItem;
|
|
92
|
-
}(_react.PureComponent);
|
|
93
|
-
exports.default = TaskItem;
|
|
92
|
+
}(_react.PureComponent);
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
19
19
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
20
|
-
var TaskList = /*#__PURE__*/function (_PureComponent) {
|
|
20
|
+
var TaskList = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
21
21
|
(0, _inherits2.default)(TaskList, _PureComponent);
|
|
22
22
|
var _super = _createSuper(TaskList);
|
|
23
23
|
function TaskList() {
|
|
@@ -39,5 +39,4 @@ var TaskList = /*#__PURE__*/function (_PureComponent) {
|
|
|
39
39
|
}
|
|
40
40
|
}]);
|
|
41
41
|
return TaskList;
|
|
42
|
-
}(_react.PureComponent);
|
|
43
|
-
exports.default = TaskList;
|
|
42
|
+
}(_react.PureComponent);
|
|
@@ -4,23 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.isLayoutNode = exports.insideBreakoutLayout = exports.insideBlockNode = exports.hasBreakOutMark = void 0;
|
|
7
|
-
var isLayoutNode = function isLayoutNode(node) {
|
|
7
|
+
var isLayoutNode = exports.isLayoutNode = function isLayoutNode(node) {
|
|
8
8
|
return node.type.name === 'layoutSection';
|
|
9
9
|
};
|
|
10
|
-
exports.
|
|
11
|
-
var hasBreakOutMark = function hasBreakOutMark(node) {
|
|
10
|
+
var hasBreakOutMark = exports.hasBreakOutMark = function hasBreakOutMark(node) {
|
|
12
11
|
return node.marks.some(function (m) {
|
|
13
12
|
return m.type.name === 'breakout';
|
|
14
13
|
});
|
|
15
14
|
};
|
|
16
|
-
exports.
|
|
17
|
-
var insideBreakoutLayout = function insideBreakoutLayout(path) {
|
|
15
|
+
var insideBreakoutLayout = exports.insideBreakoutLayout = function insideBreakoutLayout(path) {
|
|
18
16
|
return path.some(function (item) {
|
|
19
17
|
return isLayoutNode(item) && hasBreakOutMark(item);
|
|
20
18
|
});
|
|
21
19
|
};
|
|
22
|
-
exports.
|
|
23
|
-
var insideBlockNode = function insideBlockNode(path, schema) {
|
|
20
|
+
var insideBlockNode = exports.insideBlockNode = function insideBlockNode(path, schema) {
|
|
24
21
|
var _schema$nodes = schema.nodes,
|
|
25
22
|
expand = _schema$nodes.expand,
|
|
26
23
|
nestedExpand = _schema$nodes.nestedExpand,
|
|
@@ -33,5 +30,4 @@ var insideBlockNode = function insideBlockNode(path, schema) {
|
|
|
33
30
|
return path && path.some(function (n) {
|
|
34
31
|
return n.type && blockNodeNames.indexOf(n.type.name) > -1;
|
|
35
32
|
});
|
|
36
|
-
};
|
|
37
|
-
exports.insideBlockNode = insideBlockNode;
|
|
33
|
+
};
|
|
@@ -4,15 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.isFullWidthOrFullPageAppearance = exports.isFullWidthAppearance = exports.isFullPageAppearance = void 0;
|
|
7
|
-
var isFullWidthAppearance = function isFullWidthAppearance(appearance) {
|
|
7
|
+
var isFullWidthAppearance = exports.isFullWidthAppearance = function isFullWidthAppearance(appearance) {
|
|
8
8
|
return appearance === 'full-width';
|
|
9
9
|
};
|
|
10
|
-
exports.
|
|
11
|
-
var isFullPageAppearance = function isFullPageAppearance(appearance) {
|
|
10
|
+
var isFullPageAppearance = exports.isFullPageAppearance = function isFullPageAppearance(appearance) {
|
|
12
11
|
return appearance === 'full-page';
|
|
13
12
|
};
|
|
14
|
-
exports.
|
|
15
|
-
var isFullWidthOrFullPageAppearance = function isFullWidthOrFullPageAppearance(appearance) {
|
|
13
|
+
var isFullWidthOrFullPageAppearance = exports.isFullWidthOrFullPageAppearance = function isFullWidthOrFullPageAppearance(appearance) {
|
|
16
14
|
return isFullPageAppearance(appearance) || isFullWidthAppearance(appearance);
|
|
17
|
-
};
|
|
18
|
-
exports.isFullWidthOrFullPageAppearance = isFullWidthOrFullPageAppearance;
|
|
15
|
+
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.copyTextToClipboard = void 0;
|
|
7
|
-
var copyTextToClipboard = function copyTextToClipboard(text) {
|
|
7
|
+
var copyTextToClipboard = exports.copyTextToClipboard = function copyTextToClipboard(text) {
|
|
8
8
|
return new Promise(function (resolve, reject) {
|
|
9
9
|
var isApiSupported = !!navigator.clipboard && typeof navigator.clipboard.writeText === 'function';
|
|
10
10
|
if (isApiSupported) {
|
|
@@ -17,5 +17,4 @@ var copyTextToClipboard = function copyTextToClipboard(text) {
|
|
|
17
17
|
reject('Clipboard API is not supported');
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
};
|
|
21
|
-
exports.copyTextToClipboard = copyTextToClipboard;
|
|
20
|
+
};
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.ElementSelection = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var ElementSelection = /*#__PURE__*/function () {
|
|
10
|
+
var ElementSelection = exports.ElementSelection = /*#__PURE__*/function () {
|
|
11
11
|
function ElementSelection(selection) {
|
|
12
12
|
(0, _classCallCheck2.default)(this, ElementSelection);
|
|
13
13
|
this.type = selection ? selection.type : 'None';
|
|
@@ -55,5 +55,4 @@ var ElementSelection = /*#__PURE__*/function () {
|
|
|
55
55
|
}
|
|
56
56
|
}]);
|
|
57
57
|
return ElementSelection;
|
|
58
|
-
}();
|
|
59
|
-
exports.ElementSelection = ElementSelection;
|
|
58
|
+
}();
|
|
@@ -5,10 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getCardClickHandler = void 0;
|
|
7
7
|
var _utils = require("../../utils");
|
|
8
|
-
var getCardClickHandler = function getCardClickHandler(eventHandlers, url) {
|
|
8
|
+
var getCardClickHandler = exports.getCardClickHandler = function getCardClickHandler(eventHandlers, url) {
|
|
9
9
|
var handler = (0, _utils.getEventHandler)(eventHandlers, 'smartCard');
|
|
10
10
|
return handler ? function (e) {
|
|
11
11
|
return handler(e, url);
|
|
12
12
|
} : undefined;
|
|
13
|
-
};
|
|
14
|
-
exports.getCardClickHandler = getCardClickHandler;
|
|
13
|
+
};
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _analyticsContext = _interopRequireDefault(require("../../analytics/analyticsContext"));
|
|
10
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
11
|
var _elementSelection = require("./element-selection");
|
|
12
|
-
var useSelectAllTrap = function useSelectAllTrap() {
|
|
12
|
+
var useSelectAllTrap = exports.useSelectAllTrap = function useSelectAllTrap() {
|
|
13
13
|
var _React$useContext = _react.default.useContext(_analyticsContext.default),
|
|
14
14
|
fireAnalyticsEvent = _React$useContext.fireAnalyticsEvent;
|
|
15
15
|
var ref = _react.default.useRef(null);
|
|
@@ -57,5 +57,4 @@ var useSelectAllTrap = function useSelectAllTrap() {
|
|
|
57
57
|
};
|
|
58
58
|
}, [onKeyDown, onClick]);
|
|
59
59
|
return ref;
|
|
60
|
-
};
|
|
61
|
-
exports.useSelectAllTrap = useSelectAllTrap;
|
|
60
|
+
};
|
|
@@ -137,7 +137,7 @@ var memoCreateNodeAndCheck = (0, _memoizeOne.default)(_createNodeAndCheck, funct
|
|
|
137
137
|
oldDoc = _lastArgs3[1];
|
|
138
138
|
return newSchema === oldSchema && areDocsEqual(newDoc, oldDoc);
|
|
139
139
|
});
|
|
140
|
-
var renderDocument = function renderDocument(doc, serializer) {
|
|
140
|
+
var renderDocument = exports.renderDocument = function renderDocument(doc, serializer) {
|
|
141
141
|
var schema = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _schemaDefault.defaultSchema;
|
|
142
142
|
var adfStage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'final';
|
|
143
143
|
var useSpecBasedValidator = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
@@ -194,5 +194,4 @@ var renderDocument = function renderDocument(doc, serializer) {
|
|
|
194
194
|
stat: stat,
|
|
195
195
|
pmDoc: node
|
|
196
196
|
};
|
|
197
|
-
};
|
|
198
|
-
exports.renderDocument = renderDocument;
|
|
197
|
+
};
|
|
@@ -7,9 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.useRendererContext = exports.RendererContextProvider = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var RendererContext = /*#__PURE__*/_react.default.createContext({});
|
|
10
|
-
var useRendererContext = function useRendererContext() {
|
|
10
|
+
var useRendererContext = exports.useRendererContext = function useRendererContext() {
|
|
11
11
|
return _react.default.useContext(RendererContext);
|
|
12
12
|
};
|
|
13
|
-
exports.
|
|
14
|
-
var RendererContextProvider = RendererContext.Provider;
|
|
15
|
-
exports.RendererContextProvider = RendererContextProvider;
|
|
13
|
+
var RendererContextProvider = exports.RendererContextProvider = RendererContext.Provider;
|
package/dist/cjs/text/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _schemaDefault = require("@atlaskit/adf-schema/schema-default");
|
|
11
11
|
var _nodes = require("./nodes");
|
|
12
|
-
var TextSerializer = /*#__PURE__*/function () {
|
|
12
|
+
var TextSerializer = exports.default = /*#__PURE__*/function () {
|
|
13
13
|
function TextSerializer(schema) {
|
|
14
14
|
(0, _classCallCheck2.default)(this, TextSerializer);
|
|
15
15
|
this.schema = schema;
|
|
@@ -33,5 +33,4 @@ var TextSerializer = /*#__PURE__*/function () {
|
|
|
33
33
|
}
|
|
34
34
|
}]);
|
|
35
35
|
return TextSerializer;
|
|
36
|
-
}();
|
|
37
|
-
exports.default = TextSerializer;
|
|
36
|
+
}();
|