@atlaskit/editor-core 185.16.3 → 185.16.6
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/.eslintrc.js +1 -0
- package/CHANGELOG.md +14 -0
- package/dist/cjs/i18n/cs.js +0 -35
- package/dist/cjs/i18n/da.js +0 -35
- package/dist/cjs/i18n/de.js +0 -35
- package/dist/cjs/i18n/en.js +0 -35
- package/dist/cjs/i18n/en_GB.js +0 -35
- package/dist/cjs/i18n/en_ZZ.js +0 -35
- package/dist/cjs/i18n/es.js +1 -35
- package/dist/cjs/i18n/fi.js +0 -35
- package/dist/cjs/i18n/fr.js +1 -35
- package/dist/cjs/i18n/hu.js +1 -35
- package/dist/cjs/i18n/it.js +1 -35
- package/dist/cjs/i18n/ja.js +1 -35
- package/dist/cjs/i18n/ko.js +0 -35
- package/dist/cjs/i18n/nb.js +1 -35
- package/dist/cjs/i18n/nl.js +1 -35
- package/dist/cjs/i18n/pl.js +1 -35
- package/dist/cjs/i18n/pt_BR.js +1 -35
- package/dist/cjs/i18n/ru.js +1 -35
- package/dist/cjs/i18n/sv.js +0 -35
- package/dist/cjs/i18n/th.js +0 -35
- package/dist/cjs/i18n/tr.js +1 -35
- package/dist/cjs/i18n/uk.js +1 -35
- package/dist/cjs/i18n/vi.js +0 -35
- package/dist/cjs/i18n/zh.js +1 -35
- package/dist/cjs/i18n/zh_TW.js +1 -35
- package/dist/cjs/labs/next/presets/mobile.js +1 -1
- package/dist/cjs/labs/next/presets/universal.js +2 -2
- package/dist/cjs/plugins/deprecated-card/doc.js +111 -0
- package/dist/cjs/plugins/deprecated-hyperlink/commands.js +1 -1
- package/dist/cjs/plugins/expand/commands.js +15 -12
- package/dist/cjs/plugins/expand/nodeviews/index.js +4 -1
- package/dist/cjs/plugins/index.js +0 -7
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +14 -25
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +39 -27
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n/cs.js +0 -35
- package/dist/es2019/i18n/da.js +0 -35
- package/dist/es2019/i18n/de.js +0 -35
- package/dist/es2019/i18n/en.js +0 -35
- package/dist/es2019/i18n/en_GB.js +0 -35
- package/dist/es2019/i18n/en_ZZ.js +0 -35
- package/dist/es2019/i18n/es.js +1 -35
- package/dist/es2019/i18n/fi.js +0 -35
- package/dist/es2019/i18n/fr.js +1 -35
- package/dist/es2019/i18n/hu.js +1 -35
- package/dist/es2019/i18n/it.js +1 -35
- package/dist/es2019/i18n/ja.js +1 -35
- package/dist/es2019/i18n/ko.js +0 -35
- package/dist/es2019/i18n/nb.js +1 -35
- package/dist/es2019/i18n/nl.js +1 -35
- package/dist/es2019/i18n/pl.js +1 -35
- package/dist/es2019/i18n/pt_BR.js +1 -35
- package/dist/es2019/i18n/ru.js +1 -35
- package/dist/es2019/i18n/sv.js +0 -35
- package/dist/es2019/i18n/th.js +0 -35
- package/dist/es2019/i18n/tr.js +1 -35
- package/dist/es2019/i18n/uk.js +1 -35
- package/dist/es2019/i18n/vi.js +0 -35
- package/dist/es2019/i18n/zh.js +1 -35
- package/dist/es2019/i18n/zh_TW.js +1 -35
- package/dist/es2019/labs/next/presets/mobile.js +1 -1
- package/dist/es2019/labs/next/presets/universal.js +1 -1
- package/dist/es2019/plugins/deprecated-card/doc.js +97 -0
- package/dist/es2019/plugins/deprecated-hyperlink/commands.js +1 -1
- package/dist/es2019/plugins/expand/commands.js +13 -14
- package/dist/es2019/plugins/expand/nodeviews/index.js +4 -1
- package/dist/es2019/plugins/index.js +0 -1
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +2 -14
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/index.js +13 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/i18n/cs.js +0 -35
- package/dist/esm/i18n/da.js +0 -35
- package/dist/esm/i18n/de.js +0 -35
- package/dist/esm/i18n/en.js +0 -35
- package/dist/esm/i18n/en_GB.js +0 -35
- package/dist/esm/i18n/en_ZZ.js +0 -35
- package/dist/esm/i18n/es.js +1 -35
- package/dist/esm/i18n/fi.js +0 -35
- package/dist/esm/i18n/fr.js +1 -35
- package/dist/esm/i18n/hu.js +1 -35
- package/dist/esm/i18n/it.js +1 -35
- package/dist/esm/i18n/ja.js +1 -35
- package/dist/esm/i18n/ko.js +0 -35
- package/dist/esm/i18n/nb.js +1 -35
- package/dist/esm/i18n/nl.js +1 -35
- package/dist/esm/i18n/pl.js +1 -35
- package/dist/esm/i18n/pt_BR.js +1 -35
- package/dist/esm/i18n/ru.js +1 -35
- package/dist/esm/i18n/sv.js +0 -35
- package/dist/esm/i18n/th.js +0 -35
- package/dist/esm/i18n/tr.js +1 -35
- package/dist/esm/i18n/uk.js +1 -35
- package/dist/esm/i18n/vi.js +0 -35
- package/dist/esm/i18n/zh.js +1 -35
- package/dist/esm/i18n/zh_TW.js +1 -35
- package/dist/esm/labs/next/presets/mobile.js +1 -1
- package/dist/esm/labs/next/presets/universal.js +1 -1
- package/dist/esm/plugins/deprecated-card/doc.js +105 -0
- package/dist/esm/plugins/deprecated-hyperlink/commands.js +1 -1
- package/dist/esm/plugins/expand/commands.js +16 -13
- package/dist/esm/plugins/expand/nodeviews/index.js +4 -1
- package/dist/esm/plugins/index.js +0 -1
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +14 -25
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +39 -27
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/i18n/cs.d.ts +0 -35
- package/dist/types/i18n/da.d.ts +0 -35
- package/dist/types/i18n/de.d.ts +0 -35
- package/dist/types/i18n/en.d.ts +0 -35
- package/dist/types/i18n/en_GB.d.ts +0 -35
- package/dist/types/i18n/en_ZZ.d.ts +0 -35
- package/dist/types/i18n/es.d.ts +1 -35
- package/dist/types/i18n/fi.d.ts +0 -35
- package/dist/types/i18n/fr.d.ts +1 -35
- package/dist/types/i18n/hu.d.ts +1 -35
- package/dist/types/i18n/it.d.ts +1 -35
- package/dist/types/i18n/ja.d.ts +1 -35
- package/dist/types/i18n/ko.d.ts +0 -35
- package/dist/types/i18n/nb.d.ts +1 -35
- package/dist/types/i18n/nl.d.ts +1 -35
- package/dist/types/i18n/pl.d.ts +1 -35
- package/dist/types/i18n/pt_BR.d.ts +1 -35
- package/dist/types/i18n/ru.d.ts +1 -35
- package/dist/types/i18n/sv.d.ts +0 -35
- package/dist/types/i18n/th.d.ts +0 -35
- package/dist/types/i18n/tr.d.ts +1 -35
- package/dist/types/i18n/uk.d.ts +1 -35
- package/dist/types/i18n/vi.d.ts +0 -35
- package/dist/types/i18n/zh.d.ts +1 -35
- package/dist/types/i18n/zh_TW.d.ts +1 -35
- package/dist/types/plugins/deprecated-card/doc.d.ts +20 -0
- package/dist/types/plugins/expand/commands.d.ts +1 -1
- package/dist/types/plugins/index.d.ts +0 -1
- package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +0 -1
- package/dist/types/plugins/media/ui/ResizableMediaSingle/index.d.ts +1 -0
- package/dist/types/plugins/media/ui/ResizableMediaSingle/types.d.ts +3 -2
- package/dist/types/plugins/paste/index.d.ts +1 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -35
- package/dist/types-ts4.5/i18n/da.d.ts +0 -35
- package/dist/types-ts4.5/i18n/de.d.ts +0 -35
- package/dist/types-ts4.5/i18n/en.d.ts +0 -35
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -35
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -35
- package/dist/types-ts4.5/i18n/es.d.ts +1 -35
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -35
- package/dist/types-ts4.5/i18n/fr.d.ts +1 -35
- package/dist/types-ts4.5/i18n/hu.d.ts +1 -35
- package/dist/types-ts4.5/i18n/it.d.ts +1 -35
- package/dist/types-ts4.5/i18n/ja.d.ts +1 -35
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -35
- package/dist/types-ts4.5/i18n/nb.d.ts +1 -35
- package/dist/types-ts4.5/i18n/nl.d.ts +1 -35
- package/dist/types-ts4.5/i18n/pl.d.ts +1 -35
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +1 -35
- package/dist/types-ts4.5/i18n/ru.d.ts +1 -35
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -35
- package/dist/types-ts4.5/i18n/th.d.ts +0 -35
- package/dist/types-ts4.5/i18n/tr.d.ts +1 -35
- package/dist/types-ts4.5/i18n/uk.d.ts +1 -35
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -35
- package/dist/types-ts4.5/i18n/zh.d.ts +1 -35
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +1 -35
- package/dist/types-ts4.5/plugins/deprecated-card/doc.d.ts +20 -0
- package/dist/types-ts4.5/plugins/expand/commands.d.ts +1 -1
- package/dist/types-ts4.5/plugins/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/media/nodeviews/mediaSingle.d.ts +0 -1
- package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/index.d.ts +1 -0
- package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/types.d.ts +3 -2
- package/dist/types-ts4.5/plugins/paste/index.d.ts +1 -1
- package/package.json +6 -5
- package/tmp/api-report-tmp.d.ts +2307 -0
- package/dist/cjs/plugins/card/index.js +0 -139
- package/dist/cjs/plugins/card/messages.js +0 -20
- package/dist/cjs/plugins/card/nodeviews/blockCard.js +0 -163
- package/dist/cjs/plugins/card/nodeviews/datasource.js +0 -172
- package/dist/cjs/plugins/card/nodeviews/embedCard.js +0 -396
- package/dist/cjs/plugins/card/nodeviews/genericCard.js +0 -118
- package/dist/cjs/plugins/card/nodeviews/inlineCard.js +0 -131
- package/dist/cjs/plugins/card/pm-plugins/actions.js +0 -122
- package/dist/cjs/plugins/card/pm-plugins/analytics/create-analytics-queue.js +0 -48
- package/dist/cjs/plugins/card/pm-plugins/analytics/events-from-tr.js +0 -353
- package/dist/cjs/plugins/card/pm-plugins/analytics/index.js +0 -19
- package/dist/cjs/plugins/card/pm-plugins/analytics/types.js +0 -5
- package/dist/cjs/plugins/card/pm-plugins/analytics/utils.js +0 -178
- package/dist/cjs/plugins/card/pm-plugins/doc.js +0 -478
- package/dist/cjs/plugins/card/pm-plugins/keymap.js +0 -64
- package/dist/cjs/plugins/card/pm-plugins/main.js +0 -212
- package/dist/cjs/plugins/card/pm-plugins/mountHyperlink.js +0 -47
- package/dist/cjs/plugins/card/pm-plugins/plugin-key.js +0 -9
- package/dist/cjs/plugins/card/pm-plugins/reducers.js +0 -111
- package/dist/cjs/plugins/card/pm-plugins/shouldReplaceLink.js +0 -35
- package/dist/cjs/plugins/card/pm-plugins/util/resolve.js +0 -58
- package/dist/cjs/plugins/card/pm-plugins/util/state.js +0 -49
- package/dist/cjs/plugins/card/toolbar.js +0 -364
- package/dist/cjs/plugins/card/types.js +0 -5
- package/dist/cjs/plugins/card/ui/DatasourceModal/ModalWithState.js +0 -25
- package/dist/cjs/plugins/card/ui/DatasourceModal/index.js +0 -60
- package/dist/cjs/plugins/card/ui/EditLinkToolbar.js +0 -256
- package/dist/cjs/plugins/card/ui/EditorSmartCardEvents.js +0 -21
- package/dist/cjs/plugins/card/ui/EditorSmartCardEventsNext.js +0 -213
- package/dist/cjs/plugins/card/ui/HyperlinkToolbarAppearance.js +0 -173
- package/dist/cjs/plugins/card/ui/LayoutButton/index.js +0 -113
- package/dist/cjs/plugins/card/ui/LayoutButton/styled.js +0 -17
- package/dist/cjs/plugins/card/ui/LayoutButton/types.js +0 -5
- package/dist/cjs/plugins/card/ui/LayoutButton/utils.js +0 -19
- package/dist/cjs/plugins/card/ui/LinkToolbarAppearance.js +0 -151
- package/dist/cjs/plugins/card/ui/ResizableEmbedCard.js +0 -360
- package/dist/cjs/plugins/card/ui/SmallerEditIcon.js +0 -20
- package/dist/cjs/plugins/card/utils.js +0 -60
- package/dist/es2019/plugins/card/index.js +0 -131
- package/dist/es2019/plugins/card/messages.js +0 -13
- package/dist/es2019/plugins/card/nodeviews/blockCard.js +0 -130
- package/dist/es2019/plugins/card/nodeviews/datasource.js +0 -136
- package/dist/es2019/plugins/card/nodeviews/embedCard.js +0 -368
- package/dist/es2019/plugins/card/nodeviews/genericCard.js +0 -92
- package/dist/es2019/plugins/card/nodeviews/inlineCard.js +0 -112
- package/dist/es2019/plugins/card/pm-plugins/actions.js +0 -57
- package/dist/es2019/plugins/card/pm-plugins/analytics/create-analytics-queue.js +0 -38
- package/dist/es2019/plugins/card/pm-plugins/analytics/events-from-tr.js +0 -333
- package/dist/es2019/plugins/card/pm-plugins/analytics/index.js +0 -2
- package/dist/es2019/plugins/card/pm-plugins/analytics/types.js +0 -1
- package/dist/es2019/plugins/card/pm-plugins/analytics/utils.js +0 -160
- package/dist/es2019/plugins/card/pm-plugins/doc.js +0 -451
- package/dist/es2019/plugins/card/pm-plugins/keymap.js +0 -59
- package/dist/es2019/plugins/card/pm-plugins/main.js +0 -208
- package/dist/es2019/plugins/card/pm-plugins/mountHyperlink.js +0 -37
- package/dist/es2019/plugins/card/pm-plugins/plugin-key.js +0 -2
- package/dist/es2019/plugins/card/pm-plugins/reducers.js +0 -110
- package/dist/es2019/plugins/card/pm-plugins/shouldReplaceLink.js +0 -25
- package/dist/es2019/plugins/card/pm-plugins/util/resolve.js +0 -48
- package/dist/es2019/plugins/card/pm-plugins/util/state.js +0 -26
- package/dist/es2019/plugins/card/toolbar.js +0 -362
- package/dist/es2019/plugins/card/types.js +0 -1
- package/dist/es2019/plugins/card/ui/DatasourceModal/ModalWithState.js +0 -19
- package/dist/es2019/plugins/card/ui/DatasourceModal/index.js +0 -48
- package/dist/es2019/plugins/card/ui/EditLinkToolbar.js +0 -225
- package/dist/es2019/plugins/card/ui/EditorSmartCardEvents.js +0 -15
- package/dist/es2019/plugins/card/ui/EditorSmartCardEventsNext.js +0 -198
- package/dist/es2019/plugins/card/ui/HyperlinkToolbarAppearance.js +0 -86
- package/dist/es2019/plugins/card/ui/LayoutButton/index.js +0 -106
- package/dist/es2019/plugins/card/ui/LayoutButton/styled.js +0 -10
- package/dist/es2019/plugins/card/ui/LayoutButton/types.js +0 -1
- package/dist/es2019/plugins/card/ui/LayoutButton/utils.js +0 -15
- package/dist/es2019/plugins/card/ui/LinkToolbarAppearance.js +0 -117
- package/dist/es2019/plugins/card/ui/ResizableEmbedCard.js +0 -332
- package/dist/es2019/plugins/card/ui/SmallerEditIcon.js +0 -11
- package/dist/es2019/plugins/card/utils.js +0 -46
- package/dist/esm/plugins/card/index.js +0 -132
- package/dist/esm/plugins/card/messages.js +0 -13
- package/dist/esm/plugins/card/nodeviews/blockCard.js +0 -155
- package/dist/esm/plugins/card/nodeviews/datasource.js +0 -164
- package/dist/esm/plugins/card/nodeviews/embedCard.js +0 -387
- package/dist/esm/plugins/card/nodeviews/genericCard.js +0 -111
- package/dist/esm/plugins/card/nodeviews/inlineCard.js +0 -123
- package/dist/esm/plugins/card/pm-plugins/actions.js +0 -102
- package/dist/esm/plugins/card/pm-plugins/analytics/create-analytics-queue.js +0 -41
- package/dist/esm/plugins/card/pm-plugins/analytics/events-from-tr.js +0 -344
- package/dist/esm/plugins/card/pm-plugins/analytics/index.js +0 -2
- package/dist/esm/plugins/card/pm-plugins/analytics/types.js +0 -1
- package/dist/esm/plugins/card/pm-plugins/analytics/utils.js +0 -160
- package/dist/esm/plugins/card/pm-plugins/doc.js +0 -460
- package/dist/esm/plugins/card/pm-plugins/keymap.js +0 -58
- package/dist/esm/plugins/card/pm-plugins/main.js +0 -199
- package/dist/esm/plugins/card/pm-plugins/mountHyperlink.js +0 -39
- package/dist/esm/plugins/card/pm-plugins/plugin-key.js +0 -2
- package/dist/esm/plugins/card/pm-plugins/reducers.js +0 -103
- package/dist/esm/plugins/card/pm-plugins/shouldReplaceLink.js +0 -29
- package/dist/esm/plugins/card/pm-plugins/util/resolve.js +0 -50
- package/dist/esm/plugins/card/pm-plugins/util/state.js +0 -40
- package/dist/esm/plugins/card/toolbar.js +0 -353
- package/dist/esm/plugins/card/types.js +0 -1
- package/dist/esm/plugins/card/ui/DatasourceModal/ModalWithState.js +0 -17
- package/dist/esm/plugins/card/ui/DatasourceModal/index.js +0 -49
- package/dist/esm/plugins/card/ui/EditLinkToolbar.js +0 -243
- package/dist/esm/plugins/card/ui/EditorSmartCardEvents.js +0 -14
- package/dist/esm/plugins/card/ui/EditorSmartCardEventsNext.js +0 -202
- package/dist/esm/plugins/card/ui/HyperlinkToolbarAppearance.js +0 -163
- package/dist/esm/plugins/card/ui/LayoutButton/index.js +0 -102
- package/dist/esm/plugins/card/ui/LayoutButton/styled.js +0 -10
- package/dist/esm/plugins/card/ui/LayoutButton/types.js +0 -1
- package/dist/esm/plugins/card/ui/LayoutButton/utils.js +0 -12
- package/dist/esm/plugins/card/ui/LinkToolbarAppearance.js +0 -140
- package/dist/esm/plugins/card/ui/ResizableEmbedCard.js +0 -355
- package/dist/esm/plugins/card/ui/SmallerEditIcon.js +0 -11
- package/dist/esm/plugins/card/utils.js +0 -48
- package/dist/types/plugins/card/index.d.ts +0 -26
- package/dist/types/plugins/card/messages.d.ts +0 -12
- package/dist/types/plugins/card/nodeviews/blockCard.d.ts +0 -26
- package/dist/types/plugins/card/nodeviews/datasource.d.ts +0 -42
- package/dist/types/plugins/card/nodeviews/embedCard.d.ts +0 -46
- package/dist/types/plugins/card/nodeviews/genericCard.d.ts +0 -37
- package/dist/types/plugins/card/nodeviews/inlineCard.d.ts +0 -23
- package/dist/types/plugins/card/pm-plugins/actions.d.ts +0 -23
- package/dist/types/plugins/card/pm-plugins/analytics/create-analytics-queue.d.ts +0 -10
- package/dist/types/plugins/card/pm-plugins/analytics/events-from-tr.d.ts +0 -17
- package/dist/types/plugins/card/pm-plugins/analytics/index.d.ts +0 -2
- package/dist/types/plugins/card/pm-plugins/analytics/types.d.ts +0 -12
- package/dist/types/plugins/card/pm-plugins/analytics/utils.d.ts +0 -32
- package/dist/types/plugins/card/pm-plugins/doc.d.ts +0 -23
- package/dist/types/plugins/card/pm-plugins/keymap.d.ts +0 -3
- package/dist/types/plugins/card/pm-plugins/main.d.ts +0 -6
- package/dist/types/plugins/card/pm-plugins/mountHyperlink.d.ts +0 -5
- package/dist/types/plugins/card/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types/plugins/card/pm-plugins/reducers.d.ts +0 -3
- package/dist/types/plugins/card/pm-plugins/shouldReplaceLink.d.ts +0 -2
- package/dist/types/plugins/card/pm-plugins/util/resolve.d.ts +0 -8
- package/dist/types/plugins/card/pm-plugins/util/state.d.ts +0 -31
- package/dist/types/plugins/card/toolbar.d.ts +0 -12
- package/dist/types/plugins/card/types.d.ts +0 -165
- package/dist/types/plugins/card/ui/DatasourceModal/ModalWithState.d.ts +0 -9
- package/dist/types/plugins/card/ui/DatasourceModal/index.d.ts +0 -11
- package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +0 -47
- package/dist/types/plugins/card/ui/EditorSmartCardEvents.d.ts +0 -5
- package/dist/types/plugins/card/ui/EditorSmartCardEventsNext.d.ts +0 -18
- package/dist/types/plugins/card/ui/HyperlinkToolbarAppearance.d.ts +0 -32
- package/dist/types/plugins/card/ui/LayoutButton/index.d.ts +0 -9
- package/dist/types/plugins/card/ui/LayoutButton/styled.d.ts +0 -1
- package/dist/types/plugins/card/ui/LayoutButton/types.d.ts +0 -19
- package/dist/types/plugins/card/ui/LayoutButton/utils.d.ts +0 -5
- package/dist/types/plugins/card/ui/LinkToolbarAppearance.d.ts +0 -29
- package/dist/types/plugins/card/ui/ResizableEmbedCard.d.ts +0 -61
- package/dist/types/plugins/card/ui/SmallerEditIcon.d.ts +0 -3
- package/dist/types/plugins/card/utils.d.ts +0 -19
- package/dist/types-ts4.5/plugins/card/index.d.ts +0 -26
- package/dist/types-ts4.5/plugins/card/messages.d.ts +0 -12
- package/dist/types-ts4.5/plugins/card/nodeviews/blockCard.d.ts +0 -26
- package/dist/types-ts4.5/plugins/card/nodeviews/datasource.d.ts +0 -42
- package/dist/types-ts4.5/plugins/card/nodeviews/embedCard.d.ts +0 -46
- package/dist/types-ts4.5/plugins/card/nodeviews/genericCard.d.ts +0 -37
- package/dist/types-ts4.5/plugins/card/nodeviews/inlineCard.d.ts +0 -23
- package/dist/types-ts4.5/plugins/card/pm-plugins/actions.d.ts +0 -23
- package/dist/types-ts4.5/plugins/card/pm-plugins/analytics/create-analytics-queue.d.ts +0 -10
- package/dist/types-ts4.5/plugins/card/pm-plugins/analytics/events-from-tr.d.ts +0 -17
- package/dist/types-ts4.5/plugins/card/pm-plugins/analytics/index.d.ts +0 -2
- package/dist/types-ts4.5/plugins/card/pm-plugins/analytics/types.d.ts +0 -12
- package/dist/types-ts4.5/plugins/card/pm-plugins/analytics/utils.d.ts +0 -32
- package/dist/types-ts4.5/plugins/card/pm-plugins/doc.d.ts +0 -23
- package/dist/types-ts4.5/plugins/card/pm-plugins/keymap.d.ts +0 -3
- package/dist/types-ts4.5/plugins/card/pm-plugins/main.d.ts +0 -6
- package/dist/types-ts4.5/plugins/card/pm-plugins/mountHyperlink.d.ts +0 -5
- package/dist/types-ts4.5/plugins/card/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/card/pm-plugins/reducers.d.ts +0 -3
- package/dist/types-ts4.5/plugins/card/pm-plugins/shouldReplaceLink.d.ts +0 -2
- package/dist/types-ts4.5/plugins/card/pm-plugins/util/resolve.d.ts +0 -8
- package/dist/types-ts4.5/plugins/card/pm-plugins/util/state.d.ts +0 -31
- package/dist/types-ts4.5/plugins/card/toolbar.d.ts +0 -12
- package/dist/types-ts4.5/plugins/card/types.d.ts +0 -165
- package/dist/types-ts4.5/plugins/card/ui/DatasourceModal/ModalWithState.d.ts +0 -9
- package/dist/types-ts4.5/plugins/card/ui/DatasourceModal/index.d.ts +0 -11
- package/dist/types-ts4.5/plugins/card/ui/EditLinkToolbar.d.ts +0 -47
- package/dist/types-ts4.5/plugins/card/ui/EditorSmartCardEvents.d.ts +0 -5
- package/dist/types-ts4.5/plugins/card/ui/EditorSmartCardEventsNext.d.ts +0 -18
- package/dist/types-ts4.5/plugins/card/ui/HyperlinkToolbarAppearance.d.ts +0 -32
- package/dist/types-ts4.5/plugins/card/ui/LayoutButton/index.d.ts +0 -9
- package/dist/types-ts4.5/plugins/card/ui/LayoutButton/styled.d.ts +0 -1
- package/dist/types-ts4.5/plugins/card/ui/LayoutButton/types.d.ts +0 -19
- package/dist/types-ts4.5/plugins/card/ui/LayoutButton/utils.d.ts +0 -5
- package/dist/types-ts4.5/plugins/card/ui/LinkToolbarAppearance.d.ts +0 -29
- package/dist/types-ts4.5/plugins/card/ui/ResizableEmbedCard.d.ts +0 -61
- package/dist/types-ts4.5/plugins/card/ui/SmallerEditIcon.d.ts +0 -3
- package/dist/types-ts4.5/plugins/card/utils.d.ts +0 -19
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.queueCardsFromChangedTr = void 0;
|
|
7
|
+
var _card = require("@atlaskit/editor-common/card");
|
|
8
|
+
var _utils = require("@atlaskit/editor-common/utils");
|
|
9
|
+
var _adfSchema = require("@atlaskit/adf-schema");
|
|
10
|
+
var _paste = require("@atlaskit/editor-common/paste");
|
|
11
|
+
/**
|
|
12
|
+
* WARNING!!!
|
|
13
|
+
* Copied from `editor-plugin-card`.
|
|
14
|
+
*
|
|
15
|
+
* This workaround is used since we extracted the hyperlink + card plugins.
|
|
16
|
+
* It is only used in `deprecated-hyperlink`. It should not be used internally or externally.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
// TODO: ED-15663
|
|
21
|
+
// Please, do not copy or use this kind of code below
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
var pluginKey = {
|
|
24
|
+
key: 'cardPlugin$',
|
|
25
|
+
getState: function getState(state) {
|
|
26
|
+
return state['cardPlugin$'];
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
function shouldReplaceLink(node) {
|
|
30
|
+
var compareLinkText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
31
|
+
var compareToUrl = arguments.length > 2 ? arguments[2] : undefined;
|
|
32
|
+
var linkMark = node.marks.find(function (mark) {
|
|
33
|
+
return mark.type.name === 'link';
|
|
34
|
+
});
|
|
35
|
+
if (!linkMark) {
|
|
36
|
+
// not a link anymore
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// ED-6041: compare normalised link text after linkfy from Markdown transformer
|
|
41
|
+
// instead, since it always decodes URL ('%20' -> ' ') on the link text
|
|
42
|
+
|
|
43
|
+
var normalisedHref = (0, _adfSchema.normalizeUrl)(_paste.md.normalizeLinkText(linkMark.attrs.href));
|
|
44
|
+
var normalizedLinkText = (0, _adfSchema.normalizeUrl)(_paste.md.normalizeLinkText(node.text || ''));
|
|
45
|
+
if (compareLinkText && normalisedHref !== normalizedLinkText) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
if (compareToUrl) {
|
|
49
|
+
var normalizedUrl = (0, _adfSchema.normalizeUrl)(_paste.md.normalizeLinkText(compareToUrl));
|
|
50
|
+
if (normalizedUrl !== normalisedHref) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
var cardAction = function cardAction(tr, action) {
|
|
57
|
+
return tr.setMeta(pluginKey, action);
|
|
58
|
+
};
|
|
59
|
+
var queueCards = function queueCards(requests) {
|
|
60
|
+
return function (tr) {
|
|
61
|
+
return cardAction(tr, {
|
|
62
|
+
type: 'QUEUE',
|
|
63
|
+
requests: requests
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @private
|
|
70
|
+
* @deprecated
|
|
71
|
+
*
|
|
72
|
+
* DO NOT USE THIS
|
|
73
|
+
* It is only used internally for `deprecated-hyperlink`.
|
|
74
|
+
*/
|
|
75
|
+
var queueCardsFromChangedTr = function queueCardsFromChangedTr(state, tr, source, analyticsAction) {
|
|
76
|
+
var normalizeLinkText = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
77
|
+
var sourceEvent = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : undefined;
|
|
78
|
+
var schema = state.schema;
|
|
79
|
+
var link = schema.marks.link;
|
|
80
|
+
var requests = [];
|
|
81
|
+
(0, _utils.nodesBetweenChanged)(tr, function (node, pos) {
|
|
82
|
+
if (!node.isText) {
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
var linkMark = node.marks.find(function (mark) {
|
|
86
|
+
return mark.type === link;
|
|
87
|
+
});
|
|
88
|
+
if (linkMark) {
|
|
89
|
+
if (!shouldReplaceLink(node, normalizeLinkText)) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
requests.push({
|
|
93
|
+
url: linkMark.attrs.href,
|
|
94
|
+
pos: pos,
|
|
95
|
+
appearance: 'inline',
|
|
96
|
+
compareLinkText: normalizeLinkText,
|
|
97
|
+
source: source,
|
|
98
|
+
analyticsAction: analyticsAction,
|
|
99
|
+
sourceEvent: sourceEvent
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
return false;
|
|
103
|
+
});
|
|
104
|
+
if (analyticsAction) {
|
|
105
|
+
(0, _card.addLinkMetadata)(state.selection, tr, {
|
|
106
|
+
action: analyticsAction
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
return queueCards(requests)(tr);
|
|
110
|
+
};
|
|
111
|
+
exports.queueCardsFromChangedTr = queueCardsFromChangedTr;
|
|
@@ -15,7 +15,7 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
15
15
|
var _prosemirrorState = require("prosemirror-state");
|
|
16
16
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
17
17
|
var _analytics2 = require("../analytics");
|
|
18
|
-
var _doc = require("../card/
|
|
18
|
+
var _doc = require("../deprecated-card/doc");
|
|
19
19
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
20
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
21
|
// TODO: ED-17836 This workaround is used since we extracted the hyperlink plugin.
|
|
@@ -143,7 +143,7 @@ var focusTitle = function focusTitle(pos) {
|
|
|
143
143
|
var dom = editorView.domAtPos(pos);
|
|
144
144
|
var expandWrapper = dom.node.parentElement;
|
|
145
145
|
if (expandWrapper) {
|
|
146
|
-
setSelectionInsideExpand(state, dispatch, editorView);
|
|
146
|
+
setSelectionInsideExpand(pos)(state, dispatch, editorView);
|
|
147
147
|
var input = expandWrapper.querySelector('input');
|
|
148
148
|
if (input) {
|
|
149
149
|
input.focus();
|
|
@@ -157,16 +157,19 @@ var focusTitle = function focusTitle(pos) {
|
|
|
157
157
|
|
|
158
158
|
// Used to clear any node or cell selection when expand title is focused
|
|
159
159
|
exports.focusTitle = focusTitle;
|
|
160
|
-
var setSelectionInsideExpand = function setSelectionInsideExpand(
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
160
|
+
var setSelectionInsideExpand = function setSelectionInsideExpand(expandPos) {
|
|
161
|
+
return function (state, dispatch, editorView) {
|
|
162
|
+
if (editorView) {
|
|
163
|
+
if (!editorView.hasFocus()) {
|
|
164
|
+
editorView.focus();
|
|
165
|
+
}
|
|
166
|
+
var sel = _prosemirrorState.Selection.findFrom(editorView.state.doc.resolve(expandPos), 1, true);
|
|
167
|
+
if (sel && dispatch) {
|
|
168
|
+
dispatch(editorView.state.tr.setSelection(sel));
|
|
169
|
+
}
|
|
170
|
+
return true;
|
|
171
|
+
}
|
|
172
|
+
return false;
|
|
173
|
+
};
|
|
171
174
|
};
|
|
172
175
|
exports.setSelectionInsideExpand = setSelectionInsideExpand;
|
|
@@ -72,7 +72,10 @@ var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
72
72
|
state = _this$view.state,
|
|
73
73
|
dispatch = _this$view.dispatch;
|
|
74
74
|
(0, _commands2.setSelectionRelativeToNode)(_types.RelativeSelectionPos.Start)(state, dispatch);
|
|
75
|
-
|
|
75
|
+
var pos = _this.getPos();
|
|
76
|
+
if (typeof pos === 'number') {
|
|
77
|
+
(0, _commands.setSelectionInsideExpand)(pos)(state, dispatch, _this.view);
|
|
78
|
+
}
|
|
76
79
|
_this.input.focus();
|
|
77
80
|
}
|
|
78
81
|
});
|
|
@@ -71,12 +71,6 @@ Object.defineProperty(exports, "captionPlugin", {
|
|
|
71
71
|
return _caption.default;
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
|
-
Object.defineProperty(exports, "cardPlugin", {
|
|
75
|
-
enumerable: true,
|
|
76
|
-
get: function get() {
|
|
77
|
-
return _card.default;
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
74
|
Object.defineProperty(exports, "clearMarksOnChangeToEmptyDocumentPlugin", {
|
|
81
75
|
enumerable: true,
|
|
82
76
|
get: function get() {
|
|
@@ -422,7 +416,6 @@ var _textColor = _interopRequireDefault(require("./text-color"));
|
|
|
422
416
|
var _textFormatting = _interopRequireDefault(require("./text-formatting"));
|
|
423
417
|
var _typeAhead = _interopRequireDefault(require("./type-ahead"));
|
|
424
418
|
var _unsupportedContent = _interopRequireDefault(require("./unsupported-content"));
|
|
425
|
-
var _card = _interopRequireDefault(require("./card"));
|
|
426
419
|
var _floatingToolbar = _interopRequireDefault(require("./floating-toolbar"));
|
|
427
420
|
var _status = _interopRequireDefault(require("./status"));
|
|
428
421
|
var _breakout = _interopRequireDefault(require("./breakout"));
|
|
@@ -234,22 +234,11 @@ var MediaSingleNode = /*#__PURE__*/function (_Component) {
|
|
|
234
234
|
}
|
|
235
235
|
(_this$captionPlaceHol = _this.captionPlaceHolderRef.current) === null || _this$captionPlaceHol === void 0 ? void 0 : _this$captionPlaceHol.click();
|
|
236
236
|
});
|
|
237
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "displayGrid", function (visible, gridType, highlight) {
|
|
238
|
-
var _pluginInjectionApi$d, _pluginInjectionApi$d2, _pluginInjectionApi$d3;
|
|
239
|
-
var _this$props = _this.props,
|
|
240
|
-
pluginInjectionApi = _this$props.pluginInjectionApi,
|
|
241
|
-
view = _this$props.view;
|
|
242
|
-
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d = pluginInjectionApi.dependencies) === null || _pluginInjectionApi$d === void 0 ? void 0 : (_pluginInjectionApi$d2 = _pluginInjectionApi$d.grid) === null || _pluginInjectionApi$d2 === void 0 ? void 0 : (_pluginInjectionApi$d3 = _pluginInjectionApi$d2.actions) === null || _pluginInjectionApi$d3 === void 0 ? void 0 : _pluginInjectionApi$d3.displayGrid(view)({
|
|
243
|
-
visible: visible,
|
|
244
|
-
gridType: gridType,
|
|
245
|
-
highlight: highlight
|
|
246
|
-
});
|
|
247
|
-
});
|
|
248
237
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "clickPlaceholder", function () {
|
|
249
|
-
var _this$
|
|
250
|
-
view = _this$
|
|
251
|
-
getPos = _this$
|
|
252
|
-
node = _this$
|
|
238
|
+
var _this$props = _this.props,
|
|
239
|
+
view = _this$props.view,
|
|
240
|
+
getPos = _this$props.getPos,
|
|
241
|
+
node = _this$props.node;
|
|
253
242
|
if (typeof getPos === 'boolean') {
|
|
254
243
|
return;
|
|
255
244
|
}
|
|
@@ -324,14 +313,14 @@ var MediaSingleNode = /*#__PURE__*/function (_Component) {
|
|
|
324
313
|
}, {
|
|
325
314
|
key: "render",
|
|
326
315
|
value: function render() {
|
|
327
|
-
var _this$
|
|
328
|
-
selected = _this$
|
|
329
|
-
getPos = _this$
|
|
330
|
-
node = _this$
|
|
331
|
-
mediaOptions = _this$
|
|
332
|
-
fullWidthMode = _this$
|
|
333
|
-
state = _this$
|
|
334
|
-
view = _this$
|
|
316
|
+
var _this$props2 = this.props,
|
|
317
|
+
selected = _this$props2.selected,
|
|
318
|
+
getPos = _this$props2.getPos,
|
|
319
|
+
node = _this$props2.node,
|
|
320
|
+
mediaOptions = _this$props2.mediaOptions,
|
|
321
|
+
fullWidthMode = _this$props2.fullWidthMode,
|
|
322
|
+
state = _this$props2.view.state,
|
|
323
|
+
view = _this$props2.view;
|
|
335
324
|
var _ref4 = node.attrs,
|
|
336
325
|
layout = _ref4.layout,
|
|
337
326
|
mediaSingleWidth = _ref4.width;
|
|
@@ -403,12 +392,12 @@ var MediaSingleNode = /*#__PURE__*/function (_Component) {
|
|
|
403
392
|
view: this.props.view,
|
|
404
393
|
getPos: getPos,
|
|
405
394
|
updateSize: this.updateSize,
|
|
406
|
-
displayGrid: this.displayGrid,
|
|
407
395
|
gridSize: 12,
|
|
408
396
|
viewMediaClientConfig: this.state.viewMediaClientConfig,
|
|
409
397
|
allowBreakoutSnapPoints: mediaOptions && mediaOptions.allowBreakoutSnapPoints,
|
|
410
398
|
selected: isSelected,
|
|
411
|
-
dispatchAnalyticsEvent: this.props.dispatchAnalyticsEvent
|
|
399
|
+
dispatchAnalyticsEvent: this.props.dispatchAnalyticsEvent,
|
|
400
|
+
pluginInjectionApi: this.props.pluginInjectionApi
|
|
412
401
|
}), MediaChildren) : (0, _react.jsx)(_ui.MediaSingle, mediaSingleProps, MediaChildren);
|
|
413
402
|
}
|
|
414
403
|
}]);
|
|
@@ -41,10 +41,21 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
41
41
|
// We default to true until we resolve the file type
|
|
42
42
|
isVideoFile: true
|
|
43
43
|
});
|
|
44
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "
|
|
44
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "displayGrid", function (visible, gridType, highlight) {
|
|
45
|
+
var _pluginInjectionApi$d, _pluginInjectionApi$d2, _pluginInjectionApi$d3;
|
|
45
46
|
var _this$props = _this.props,
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
pluginInjectionApi = _this$props.pluginInjectionApi,
|
|
48
|
+
view = _this$props.view;
|
|
49
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d = pluginInjectionApi.dependencies) === null || _pluginInjectionApi$d === void 0 ? void 0 : (_pluginInjectionApi$d2 = _pluginInjectionApi$d.grid) === null || _pluginInjectionApi$d2 === void 0 ? void 0 : (_pluginInjectionApi$d3 = _pluginInjectionApi$d2.actions) === null || _pluginInjectionApi$d3 === void 0 ? void 0 : _pluginInjectionApi$d3.displayGrid(view)({
|
|
50
|
+
visible: visible,
|
|
51
|
+
gridType: gridType,
|
|
52
|
+
highlight: highlight
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "calcNewSize", function (newWidth, stop) {
|
|
56
|
+
var _this$props2 = _this.props,
|
|
57
|
+
layout = _this$props2.layout,
|
|
58
|
+
state = _this$props2.view.state;
|
|
48
59
|
var newPct = (0, _ui.calcPctFromPx)(newWidth, _this.props.lineLength) * 100;
|
|
49
60
|
_this.setState({
|
|
50
61
|
resizedPctWidth: newPct
|
|
@@ -79,17 +90,17 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
79
90
|
return _this.insideInlineLike ? (0, _ui.calcColumnsFromPx)(offsetLeft, _this.props.lineLength, _this.props.gridSize) : 0;
|
|
80
91
|
});
|
|
81
92
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "calcPxWidth", function (useLayout) {
|
|
82
|
-
var _this$
|
|
83
|
-
_this$
|
|
84
|
-
origWidth = _this$
|
|
85
|
-
origHeight = _this$
|
|
86
|
-
layout = _this$
|
|
87
|
-
pctWidth = _this$
|
|
88
|
-
lineLength = _this$
|
|
89
|
-
containerWidth = _this$
|
|
90
|
-
fullWidthMode = _this$
|
|
91
|
-
getPos = _this$
|
|
92
|
-
state = _this$
|
|
93
|
+
var _this$props3 = _this.props,
|
|
94
|
+
_this$props3$width = _this$props3.width,
|
|
95
|
+
origWidth = _this$props3$width === void 0 ? 0 : _this$props3$width,
|
|
96
|
+
origHeight = _this$props3.height,
|
|
97
|
+
layout = _this$props3.layout,
|
|
98
|
+
pctWidth = _this$props3.pctWidth,
|
|
99
|
+
lineLength = _this$props3.lineLength,
|
|
100
|
+
containerWidth = _this$props3.containerWidth,
|
|
101
|
+
fullWidthMode = _this$props3.fullWidthMode,
|
|
102
|
+
getPos = _this$props3.getPos,
|
|
103
|
+
state = _this$props3.view.state;
|
|
93
104
|
var resizedPctWidth = _this.state.resizedPctWidth;
|
|
94
105
|
var pos = typeof getPos === 'function' ? getPos() : undefined;
|
|
95
106
|
return (0, _ui.calcMediaPxWidth)({
|
|
@@ -120,10 +131,10 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
120
131
|
if (snapWidth > _editorSharedStyles.akEditorWideLayoutWidth) {
|
|
121
132
|
return ['full-width'];
|
|
122
133
|
}
|
|
123
|
-
var _this$
|
|
124
|
-
layout = _this$
|
|
125
|
-
lineLength = _this$
|
|
126
|
-
gridSize = _this$
|
|
134
|
+
var _this$props4 = _this.props,
|
|
135
|
+
layout = _this$props4.layout,
|
|
136
|
+
lineLength = _this$props4.lineLength,
|
|
137
|
+
gridSize = _this$props4.gridSize;
|
|
127
138
|
var columns = (0, _ui.calcColumnsFromPx)(snapWidth, lineLength, gridSize);
|
|
128
139
|
var columnWidth = Math.round(columns);
|
|
129
140
|
var highlight = [];
|
|
@@ -318,15 +329,15 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
318
329
|
key: "render",
|
|
319
330
|
value: function render() {
|
|
320
331
|
var _this2 = this;
|
|
321
|
-
var _this$
|
|
322
|
-
origWidth = _this$
|
|
323
|
-
origHeight = _this$
|
|
324
|
-
layout = _this$
|
|
325
|
-
pctWidth = _this$
|
|
326
|
-
containerWidth = _this$
|
|
327
|
-
fullWidthMode = _this$
|
|
328
|
-
selected = _this$
|
|
329
|
-
children = _this$
|
|
332
|
+
var _this$props5 = this.props,
|
|
333
|
+
origWidth = _this$props5.width,
|
|
334
|
+
origHeight = _this$props5.height,
|
|
335
|
+
layout = _this$props5.layout,
|
|
336
|
+
pctWidth = _this$props5.pctWidth,
|
|
337
|
+
containerWidth = _this$props5.containerWidth,
|
|
338
|
+
fullWidthMode = _this$props5.fullWidthMode,
|
|
339
|
+
selected = _this$props5.selected,
|
|
340
|
+
children = _this$props5.children;
|
|
330
341
|
var initialWidth = this.calcPxWidth(); // width with padding
|
|
331
342
|
var ratio;
|
|
332
343
|
if (origWidth) {
|
|
@@ -363,6 +374,7 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
363
374
|
fullWidthMode: fullWidthMode
|
|
364
375
|
})
|
|
365
376
|
}, (0, _react2.jsx)(_ui.Resizer, (0, _extends2.default)({}, this.props, {
|
|
377
|
+
displayGrid: this.displayGrid,
|
|
366
378
|
ratio: ratio,
|
|
367
379
|
width: initialWidth,
|
|
368
380
|
selected: selected,
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = "@atlaskit/editor-core";
|
|
8
8
|
exports.name = name;
|
|
9
|
-
var version = "185.16.
|
|
9
|
+
var version = "185.16.6";
|
|
10
10
|
exports.version = version;
|
|
11
11
|
var nextMajorVersion = function nextMajorVersion() {
|
|
12
12
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/i18n/cs.js
CHANGED
|
@@ -17,20 +17,13 @@ export default {
|
|
|
17
17
|
'fabric.editor.alttext.validation': 'Vymažte z alternativního textu všechny zvláštní znaky.',
|
|
18
18
|
'fabric.editor.annotationToolbar': 'Panel nástrojů poznámek',
|
|
19
19
|
'fabric.editor.backLink': 'Zpět',
|
|
20
|
-
'fabric.editor.blockCardUnavailable': 'Vložený odkaz je uvnitř uzlu {node} a jeho zobrazení nelze změnit',
|
|
21
|
-
'fabric.editor.blockDescription': 'Zobrazit další informace o odkazu, včetně souhrnu a akcí',
|
|
22
|
-
'fabric.editor.blockTitle': 'Karta',
|
|
23
20
|
'fabric.editor.blockquote.description': 'Vložit citaci',
|
|
24
21
|
'fabric.editor.blockquote2': 'Citace',
|
|
25
22
|
'fabric.editor.bold': 'Tučné',
|
|
26
|
-
'fabric.editor.bug': 'Chyba',
|
|
27
23
|
'fabric.editor.captionPlaceholder': 'Přidejte popisek',
|
|
28
|
-
'fabric.editor.cardFloatingControls': 'Možnosti karty',
|
|
29
24
|
'fabric.editor.chromeCollapsedPlaceholder': 'Napište něco…',
|
|
30
25
|
'fabric.editor.clearAltTextEdit': 'Vymazat alternativní text',
|
|
31
26
|
'fabric.editor.clearFormatting': 'Odstranit formátování',
|
|
32
|
-
'fabric.editor.clearLink': 'Vymazat odkaz',
|
|
33
|
-
'fabric.editor.clearLinkText': 'Vymazat text',
|
|
34
27
|
'fabric.editor.closeAltTextEdit': 'Zpět',
|
|
35
28
|
'fabric.editor.closeFindReplaceDialog': 'Zavřít',
|
|
36
29
|
'fabric.editor.closeHelpDialog': 'Zavřít dialog nápovědy',
|
|
@@ -60,16 +53,8 @@ export default {
|
|
|
60
53
|
'fabric.editor.customPanel': 'Vlastní panel',
|
|
61
54
|
'fabric.editor.customPanel.description': 'Přidejte poznámku se smajlíkem a barevným pozadím.',
|
|
62
55
|
'fabric.editor.decisionPlaceholder': 'Přidat rozhodnutí...',
|
|
63
|
-
'fabric.editor.defaultAltText': 'Položka seznamu',
|
|
64
56
|
'fabric.editor.description': 'Popis',
|
|
65
|
-
'fabric.editor.displayBlock': 'Zobrazit jako kartu',
|
|
66
|
-
'fabric.editor.displayEmbed': 'Zobrazit jako vložený objekt',
|
|
67
|
-
'fabric.editor.displayInline': 'Zobrazit v řádku',
|
|
68
|
-
'fabric.editor.displayLink': 'Zobrazit jako text',
|
|
69
|
-
'fabric.editor.displayOptionUnavailableInParentNode': 'Tato možnost zobrazení není v uzlu {node} dostupná',
|
|
70
|
-
'fabric.editor.displayText': 'Text k zobrazení',
|
|
71
57
|
'fabric.editor.dropPlaceholderLabel': 'Dokument',
|
|
72
|
-
'fabric.editor.ecombedDescription': 'Zobrazit interaktivní náhled odkazu',
|
|
73
58
|
'fabric.editor.edit': 'Upravit',
|
|
74
59
|
'fabric.editor.editAltText': 'Upravit alternativní text',
|
|
75
60
|
'fabric.editor.editDateText': 'Upravit datum',
|
|
@@ -95,8 +80,6 @@ export default {
|
|
|
95
80
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading': 'Zkuste vyhledat jiný termín nebo objevte nové aplikace pro produkty Atlassian.',
|
|
96
81
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': 'Prozkoumat Atlassian Marketplace',
|
|
97
82
|
'fabric.editor.elementbrowser.sidebar.heading': 'Procházet',
|
|
98
|
-
'fabric.editor.embedTitle': 'Vložit',
|
|
99
|
-
'fabric.editor.epic': 'Epic',
|
|
100
83
|
'fabric.editor.error': 'Chyba',
|
|
101
84
|
'fabric.editor.errorPanel': 'Panel chyb',
|
|
102
85
|
'fabric.editor.errorPanel.description': 'Chyby zobrazit v barevném panelu',
|
|
@@ -129,30 +112,18 @@ export default {
|
|
|
129
112
|
'fabric.editor.heading5Description': 'Použít pro seskupení položek seznamu',
|
|
130
113
|
'fabric.editor.heading6': 'Nadpis 6',
|
|
131
114
|
'fabric.editor.heading6Description': 'Použít pro nadpis nejnižší úrovně',
|
|
132
|
-
'fabric.editor.headingLink.hyperlinkIconBlogLabel': 'Blog',
|
|
133
|
-
'fabric.editor.headingLink.hyperlinkIconBugLabel': 'Chyba',
|
|
134
|
-
'fabric.editor.headingLink.hyperlinkIconIssueLabel': 'Požadavek',
|
|
135
|
-
'fabric.editor.headingLink.hyperlinkIconPageLabel': 'Stránka',
|
|
136
|
-
'fabric.editor.headingLink.hyperlinkIconStoryLabel': 'Story',
|
|
137
|
-
'fabric.editor.headingLink.hyperlinkIconTaskLabel': 'Úkol',
|
|
138
115
|
'fabric.editor.headingLink.toolbarHelpTitle': 'Otevřít dialog nápovědy',
|
|
139
116
|
'fabric.editor.helpDialogTips': 'Zmáčkněte {keyMap}, abyste mohli kdykoliv rychle otevřít tento dialog.',
|
|
140
|
-
'fabric.editor.hyperlink.linkAriaLabel': 'Popisek odkazu',
|
|
141
|
-
'fabric.editor.hyperlink.searchLinkAriaDescription': 'Níže se objeví návrhy na základě vámi napsaného textu v poli',
|
|
142
|
-
'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {nebyly nalezeny žádné výsledky} one {{count,number} nalezený výsledek} few {{count,number} nalezené výsledky} many {{count,number} nalezeného výsledku} other {{count,number} nalezených výsledků}}',
|
|
143
117
|
'fabric.editor.imageBorderBold': 'Tučné',
|
|
144
118
|
'fabric.editor.imageBorderColor': 'Barva',
|
|
145
119
|
'fabric.editor.imageBorderMedium': 'Střední',
|
|
146
120
|
'fabric.editor.imageBorderOptions': 'Možnosti ohraničení',
|
|
147
121
|
'fabric.editor.imageBorderSize': 'Velikost',
|
|
148
122
|
'fabric.editor.imageBorderSubtle': 'Útlé',
|
|
149
|
-
'fabric.editor.improvement': 'Vylepšení',
|
|
150
123
|
'fabric.editor.indent': 'Zvětšit odsazení',
|
|
151
124
|
'fabric.editor.info': 'Informace',
|
|
152
125
|
'fabric.editor.infoPanel': 'Informační panel',
|
|
153
126
|
'fabric.editor.infoPanel.description': 'Zvýraznit informace v barevném panelu',
|
|
154
|
-
'fabric.editor.inlineDescription': 'Zobrazit odkaz jako vložený text',
|
|
155
|
-
'fabric.editor.inlineTitle': 'Vložený',
|
|
156
127
|
'fabric.editor.inputQueryAssistiveTxt': 'Když jsou k dispozici výsledky automatického dokončování, použijte šipky nahoru a dolů k prohlížení a klávesu Enter k výběru. Uživatelé dotykových zařízení mohou k prohlížení použít dotyk nebo gesta potáhnutí prstem.',
|
|
157
128
|
'fabric.editor.invalidDateError': 'Zadejte platné datum.',
|
|
158
129
|
'fabric.editor.inviteItem.title': '{userRole, select, admin {Pozvat týmového kolegu do produktu {productName}} trusted {Pozvat týmového kolegu do produktu {productName}} other {Přidat týmového kolegu do produktu {productName}}}',
|
|
@@ -200,9 +171,7 @@ export default {
|
|
|
200
171
|
'fabric.editor.shortcut': 'Textový zástupce',
|
|
201
172
|
'fabric.editor.single': 'Jeden sloupec',
|
|
202
173
|
'fabric.editor.statusPlaceholder': 'Nastavit stav',
|
|
203
|
-
'fabric.editor.story': 'Story',
|
|
204
174
|
'fabric.editor.strike': 'Přeškrtnutí',
|
|
205
|
-
'fabric.editor.subTask': 'Podúkol',
|
|
206
175
|
'fabric.editor.subscript': 'Dolní index',
|
|
207
176
|
'fabric.editor.subscript.off.superscript.on': 'Dolní index vypnutý, horní index zapnutý',
|
|
208
177
|
'fabric.editor.success': 'Úspěch',
|
|
@@ -211,7 +180,6 @@ export default {
|
|
|
211
180
|
'fabric.editor.superscript': 'Horní index',
|
|
212
181
|
'fabric.editor.superscript.off.subscript.on': 'Horní index vypnutý, dolní index zapnutý',
|
|
213
182
|
'fabric.editor.supportAltText': 'Alternativní text je užitečný pro lidi, kteří kvůli zrakovým omezením používají čtečky obrazovky.',
|
|
214
|
-
'fabric.editor.task': 'Úkol',
|
|
215
183
|
'fabric.editor.taskPlaceholder': 'Napište svou akci a použitím „@“ ji někomu přidělte.',
|
|
216
184
|
'fabric.editor.text.formatting.off': 'Formátování textu vypnuto',
|
|
217
185
|
'fabric.editor.textColor': 'Barva textu',
|
|
@@ -234,9 +202,6 @@ export default {
|
|
|
234
202
|
'fabric.editor.undo': 'Vrátit',
|
|
235
203
|
'fabric.editor.unorderedList': 'Seznam s odrážkami',
|
|
236
204
|
'fabric.editor.unorderedList.description': 'Vytvořit neseřazený seznam',
|
|
237
|
-
'fabric.editor.url': 'Zobrazit adresu URL',
|
|
238
|
-
'fabric.editor.urlDescription': 'Zobrazit odkaz jako adresu URL',
|
|
239
|
-
'fabric.editor.urlTitle': 'Adresa URL',
|
|
240
205
|
'fabric.editor.warning': 'Varování',
|
|
241
206
|
'fabric.editor.warningPanel': 'Panel upozornění',
|
|
242
207
|
'fabric.editor.warningPanel.description': 'Přidat poznámku s varováním do barevného panelu',
|
package/dist/es2019/i18n/da.js
CHANGED
|
@@ -17,20 +17,13 @@ export default {
|
|
|
17
17
|
'fabric.editor.alttext.validation': 'Fjern alle specialtegn i ALT-tekst.',
|
|
18
18
|
'fabric.editor.annotationToolbar': 'Værktøjslinje til annotationer',
|
|
19
19
|
'fabric.editor.backLink': 'Gå tilbage',
|
|
20
|
-
'fabric.editor.blockCardUnavailable': 'Det indbyggede link er inden i {node}, og dets visning kan ikke ændres',
|
|
21
|
-
'fabric.editor.blockDescription': 'Vis flere oplysninger om et link, inklusive sammendrag og handlinger',
|
|
22
|
-
'fabric.editor.blockTitle': 'Kort',
|
|
23
20
|
'fabric.editor.blockquote.description': 'Indsæt citat',
|
|
24
21
|
'fabric.editor.blockquote2': 'Citat',
|
|
25
22
|
'fabric.editor.bold': 'Fed',
|
|
26
|
-
'fabric.editor.bug': 'Fejl',
|
|
27
23
|
'fabric.editor.captionPlaceholder': 'Tilføj en billedtekst',
|
|
28
|
-
'fabric.editor.cardFloatingControls': 'Muligheder for kort',
|
|
29
24
|
'fabric.editor.chromeCollapsedPlaceholder': 'Skriv noget …',
|
|
30
25
|
'fabric.editor.clearAltTextEdit': 'Ryd alternativ tekst',
|
|
31
26
|
'fabric.editor.clearFormatting': 'Ryd fomattering',
|
|
32
|
-
'fabric.editor.clearLink': 'Ryd link',
|
|
33
|
-
'fabric.editor.clearLinkText': 'Ryd tekst',
|
|
34
27
|
'fabric.editor.closeAltTextEdit': 'Tilbage',
|
|
35
28
|
'fabric.editor.closeFindReplaceDialog': 'Luk',
|
|
36
29
|
'fabric.editor.closeHelpDialog': 'Luk dialogboksen',
|
|
@@ -60,16 +53,8 @@ export default {
|
|
|
60
53
|
'fabric.editor.customPanel': 'Brugerdefineret panel',
|
|
61
54
|
'fabric.editor.customPanel.description': 'Tilføj en note med en emoji og farvet baggrund',
|
|
62
55
|
'fabric.editor.decisionPlaceholder': 'Tilføj en beslutning ...',
|
|
63
|
-
'fabric.editor.defaultAltText': 'Listeelement',
|
|
64
56
|
'fabric.editor.description': 'Beskrivelse',
|
|
65
|
-
'fabric.editor.displayBlock': 'Vis som kort',
|
|
66
|
-
'fabric.editor.displayEmbed': 'Vis som indlejret',
|
|
67
|
-
'fabric.editor.displayInline': 'Vis indbygget',
|
|
68
|
-
'fabric.editor.displayLink': 'Vis som tekst',
|
|
69
|
-
'fabric.editor.displayOptionUnavailableInParentNode': 'Denne visningsmulighed er ikke tilgængelig i {node}',
|
|
70
|
-
'fabric.editor.displayText': 'Vist tekst',
|
|
71
57
|
'fabric.editor.dropPlaceholderLabel': 'Dokument',
|
|
72
|
-
'fabric.editor.ecombedDescription': 'Vis en interaktiv forhåndsvisning af et link',
|
|
73
58
|
'fabric.editor.edit': 'Redigér',
|
|
74
59
|
'fabric.editor.editAltText': 'Rediger alternativ tekst',
|
|
75
60
|
'fabric.editor.editDateText': 'Rediger dato',
|
|
@@ -95,8 +80,6 @@ export default {
|
|
|
95
80
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading': 'Prøv et andet søgeord, eller find nye apps til Atlassian-produkter.',
|
|
96
81
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': 'Gå på opdagelse på Atlassian Marketplace',
|
|
97
82
|
'fabric.editor.elementbrowser.sidebar.heading': 'Gennemse',
|
|
98
|
-
'fabric.editor.embedTitle': 'Indlejr',
|
|
99
|
-
'fabric.editor.epic': 'Epic',
|
|
100
83
|
'fabric.editor.error': 'Fejl',
|
|
101
84
|
'fabric.editor.errorPanel': 'Fejlpanel',
|
|
102
85
|
'fabric.editor.errorPanel.description': 'Vis fejl i et farvel panel',
|
|
@@ -128,30 +111,18 @@ export default {
|
|
|
128
111
|
'fabric.editor.heading5Description': 'Brug denne til at gruppere listeelementer',
|
|
129
112
|
'fabric.editor.heading6': 'Overskrift 6',
|
|
130
113
|
'fabric.editor.heading6Description': 'Brug denne til overskrift på lavt niveau',
|
|
131
|
-
'fabric.editor.headingLink.hyperlinkIconBlogLabel': 'Blog',
|
|
132
|
-
'fabric.editor.headingLink.hyperlinkIconBugLabel': 'Fejl',
|
|
133
|
-
'fabric.editor.headingLink.hyperlinkIconIssueLabel': 'Sag',
|
|
134
|
-
'fabric.editor.headingLink.hyperlinkIconPageLabel': 'Side',
|
|
135
|
-
'fabric.editor.headingLink.hyperlinkIconStoryLabel': 'Historie',
|
|
136
|
-
'fabric.editor.headingLink.hyperlinkIconTaskLabel': 'Opgave',
|
|
137
114
|
'fabric.editor.headingLink.toolbarHelpTitle': 'Åbn dialogboksen Hjælp',
|
|
138
115
|
'fabric.editor.helpDialogTips': 'Tryk på {keyMap} for at få hurtig adgang til denne dialogboks',
|
|
139
|
-
'fabric.editor.hyperlink.linkAriaLabel': 'Linkmærkat',
|
|
140
|
-
'fabric.editor.hyperlink.searchLinkAriaDescription': 'Der vises forslag nedenfor, når du skriver i feltet',
|
|
141
|
-
'fabric.editor.hyperlink.searchLinkResults': '{count, plural, =0 {ingen resultater fundet} one {Der blev fundet {count,number} resultat} other {Der blev fundet {count,number} resultater}}',
|
|
142
116
|
'fabric.editor.imageBorderBold': 'Fed',
|
|
143
117
|
'fabric.editor.imageBorderColor': 'Farve',
|
|
144
118
|
'fabric.editor.imageBorderMedium': 'Medium',
|
|
145
119
|
'fabric.editor.imageBorderOptions': 'Kantmuligheder',
|
|
146
120
|
'fabric.editor.imageBorderSize': 'Størrelse',
|
|
147
121
|
'fabric.editor.imageBorderSubtle': 'Diskret',
|
|
148
|
-
'fabric.editor.improvement': 'Forbedring',
|
|
149
122
|
'fabric.editor.indent': 'Ryk ind',
|
|
150
123
|
'fabric.editor.info': 'Info',
|
|
151
124
|
'fabric.editor.infoPanel': 'Informationspanel',
|
|
152
125
|
'fabric.editor.infoPanel.description': 'Fremhæv information i et farvet panel',
|
|
153
|
-
'fabric.editor.inlineDescription': 'Vis link som indbygget tekst',
|
|
154
|
-
'fabric.editor.inlineTitle': 'Indbyg',
|
|
155
126
|
'fabric.editor.inputQueryAssistiveTxt': 'Når resultater med automatisk udfyldning er tilgængelige, skal du bruge pil op og pil ned til at gennemse og Enter til at vælge. Brugere af touchenheder kan trykke eller stryge.',
|
|
156
127
|
'fabric.editor.invalidDateError': 'Indtast en gyldig dato',
|
|
157
128
|
'fabric.editor.inviteItem.title': '{userRole, select, admin {Inviter teammedlemmer til {productName}} trusted {Inviter teammedlemmer til {productName}} other {Tilføj teammedlem til {productName}}}',
|
|
@@ -199,9 +170,7 @@ export default {
|
|
|
199
170
|
'fabric.editor.shortcut': 'Genvej til tekst',
|
|
200
171
|
'fabric.editor.single': 'Enkelt kolonne',
|
|
201
172
|
'fabric.editor.statusPlaceholder': 'Angiv en status',
|
|
202
|
-
'fabric.editor.story': 'Historie',
|
|
203
173
|
'fabric.editor.strike': 'Gennemstreget',
|
|
204
|
-
'fabric.editor.subTask': 'Underopgave',
|
|
205
174
|
'fabric.editor.subscript': 'Sænket skrift',
|
|
206
175
|
'fabric.editor.subscript.off.superscript.on': 'Sænket skrift fra, hævet skrift til',
|
|
207
176
|
'fabric.editor.success': 'Succes',
|
|
@@ -210,7 +179,6 @@ export default {
|
|
|
210
179
|
'fabric.editor.superscript': 'Hævet skrift',
|
|
211
180
|
'fabric.editor.superscript.off.subscript.on': 'Hævet skrift fra, sænket skrift til',
|
|
212
181
|
'fabric.editor.supportAltText': 'Alternativ tekst er nyttig, når folk bruger skærmlæsere pga. synshandicap.',
|
|
213
|
-
'fabric.editor.task': 'Opgave',
|
|
214
182
|
'fabric.editor.taskPlaceholder': 'Indtast din handling, og brug "@" for at tildele til nogen.',
|
|
215
183
|
'fabric.editor.text.formatting.off': 'Tekstformatering fra',
|
|
216
184
|
'fabric.editor.textColor': 'Tekstfarve',
|
|
@@ -233,9 +201,6 @@ export default {
|
|
|
233
201
|
'fabric.editor.undo': 'Fortryd',
|
|
234
202
|
'fabric.editor.unorderedList': 'Punktopstilling',
|
|
235
203
|
'fabric.editor.unorderedList.description': 'Opret en ikke-sorteret liste',
|
|
236
|
-
'fabric.editor.url': 'Visnings-URL',
|
|
237
|
-
'fabric.editor.urlDescription': 'Vis link som URL-adresse',
|
|
238
|
-
'fabric.editor.urlTitle': 'URL-adresse',
|
|
239
204
|
'fabric.editor.warning': 'Advarsel',
|
|
240
205
|
'fabric.editor.warningPanel': 'Advarselspanel',
|
|
241
206
|
'fabric.editor.warningPanel.description': 'Tilføj en advarselsnote i et farvet panel',
|