@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,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WARNING!!!
|
|
3
|
+
* Copied from `editor-plugin-card`.
|
|
4
|
+
*
|
|
5
|
+
* This workaround is used since we extracted the hyperlink + card plugins.
|
|
6
|
+
* It is only used in `deprecated-hyperlink`. It should not be used internally or externally.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { addLinkMetadata } from '@atlaskit/editor-common/card';
|
|
11
|
+
import { nodesBetweenChanged } from '@atlaskit/editor-common/utils';
|
|
12
|
+
import { normalizeUrl } from '@atlaskit/adf-schema';
|
|
13
|
+
import { md } from '@atlaskit/editor-common/paste';
|
|
14
|
+
|
|
15
|
+
// TODO: ED-15663
|
|
16
|
+
// Please, do not copy or use this kind of code below
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
var pluginKey = {
|
|
19
|
+
key: 'cardPlugin$',
|
|
20
|
+
getState: function getState(state) {
|
|
21
|
+
return state['cardPlugin$'];
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
function shouldReplaceLink(node) {
|
|
25
|
+
var compareLinkText = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
26
|
+
var compareToUrl = arguments.length > 2 ? arguments[2] : undefined;
|
|
27
|
+
var linkMark = node.marks.find(function (mark) {
|
|
28
|
+
return mark.type.name === 'link';
|
|
29
|
+
});
|
|
30
|
+
if (!linkMark) {
|
|
31
|
+
// not a link anymore
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// ED-6041: compare normalised link text after linkfy from Markdown transformer
|
|
36
|
+
// instead, since it always decodes URL ('%20' -> ' ') on the link text
|
|
37
|
+
|
|
38
|
+
var normalisedHref = normalizeUrl(md.normalizeLinkText(linkMark.attrs.href));
|
|
39
|
+
var normalizedLinkText = normalizeUrl(md.normalizeLinkText(node.text || ''));
|
|
40
|
+
if (compareLinkText && normalisedHref !== normalizedLinkText) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
if (compareToUrl) {
|
|
44
|
+
var normalizedUrl = normalizeUrl(md.normalizeLinkText(compareToUrl));
|
|
45
|
+
if (normalizedUrl !== normalisedHref) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
var cardAction = function cardAction(tr, action) {
|
|
52
|
+
return tr.setMeta(pluginKey, action);
|
|
53
|
+
};
|
|
54
|
+
var queueCards = function queueCards(requests) {
|
|
55
|
+
return function (tr) {
|
|
56
|
+
return cardAction(tr, {
|
|
57
|
+
type: 'QUEUE',
|
|
58
|
+
requests: requests
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @private
|
|
65
|
+
* @deprecated
|
|
66
|
+
*
|
|
67
|
+
* DO NOT USE THIS
|
|
68
|
+
* It is only used internally for `deprecated-hyperlink`.
|
|
69
|
+
*/
|
|
70
|
+
export var queueCardsFromChangedTr = function queueCardsFromChangedTr(state, tr, source, analyticsAction) {
|
|
71
|
+
var normalizeLinkText = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
72
|
+
var sourceEvent = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : undefined;
|
|
73
|
+
var schema = state.schema;
|
|
74
|
+
var link = schema.marks.link;
|
|
75
|
+
var requests = [];
|
|
76
|
+
nodesBetweenChanged(tr, function (node, pos) {
|
|
77
|
+
if (!node.isText) {
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
var linkMark = node.marks.find(function (mark) {
|
|
81
|
+
return mark.type === link;
|
|
82
|
+
});
|
|
83
|
+
if (linkMark) {
|
|
84
|
+
if (!shouldReplaceLink(node, normalizeLinkText)) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
requests.push({
|
|
88
|
+
url: linkMark.attrs.href,
|
|
89
|
+
pos: pos,
|
|
90
|
+
appearance: 'inline',
|
|
91
|
+
compareLinkText: normalizeLinkText,
|
|
92
|
+
source: source,
|
|
93
|
+
analyticsAction: analyticsAction,
|
|
94
|
+
sourceEvent: sourceEvent
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
return false;
|
|
98
|
+
});
|
|
99
|
+
if (analyticsAction) {
|
|
100
|
+
addLinkMetadata(state.selection, tr, {
|
|
101
|
+
action: analyticsAction
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
return queueCards(requests)(tr);
|
|
105
|
+
};
|
|
@@ -8,7 +8,7 @@ import { getLinkCreationAnalyticsEvent, normalizeUrl } from '@atlaskit/editor-co
|
|
|
8
8
|
import { Selection } from 'prosemirror-state';
|
|
9
9
|
import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import { withAnalytics } from '../analytics';
|
|
11
|
-
import { queueCardsFromChangedTr } from '../card/
|
|
11
|
+
import { queueCardsFromChangedTr } from '../deprecated-card/doc';
|
|
12
12
|
// TODO: ED-17836 This workaround is used since we extracted the hyperlink plugin.
|
|
13
13
|
// As soon as we deprecate the plugin we can delete this code.
|
|
14
14
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
|
-
import {
|
|
4
|
+
import { Selection } from 'prosemirror-state';
|
|
5
5
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
6
6
|
import { addAnalytics, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD, EVENT_TYPE, PLATFORMS, MODE } from '../analytics';
|
|
7
7
|
import { GapCursorSelection, Side } from '../selection/gap-cursor-selection';
|
|
@@ -129,7 +129,7 @@ export var focusTitle = function focusTitle(pos) {
|
|
|
129
129
|
var dom = editorView.domAtPos(pos);
|
|
130
130
|
var expandWrapper = dom.node.parentElement;
|
|
131
131
|
if (expandWrapper) {
|
|
132
|
-
setSelectionInsideExpand(state, dispatch, editorView);
|
|
132
|
+
setSelectionInsideExpand(pos)(state, dispatch, editorView);
|
|
133
133
|
var input = expandWrapper.querySelector('input');
|
|
134
134
|
if (input) {
|
|
135
135
|
input.focus();
|
|
@@ -142,15 +142,18 @@ export var focusTitle = function focusTitle(pos) {
|
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
// Used to clear any node or cell selection when expand title is focused
|
|
145
|
-
export var setSelectionInsideExpand = function setSelectionInsideExpand(
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
145
|
+
export var setSelectionInsideExpand = function setSelectionInsideExpand(expandPos) {
|
|
146
|
+
return function (state, dispatch, editorView) {
|
|
147
|
+
if (editorView) {
|
|
148
|
+
if (!editorView.hasFocus()) {
|
|
149
|
+
editorView.focus();
|
|
150
|
+
}
|
|
151
|
+
var sel = Selection.findFrom(editorView.state.doc.resolve(expandPos), 1, true);
|
|
152
|
+
if (sel && dispatch) {
|
|
153
|
+
dispatch(editorView.state.tr.setSelection(sel));
|
|
154
|
+
}
|
|
155
|
+
return true;
|
|
156
|
+
}
|
|
157
|
+
return false;
|
|
158
|
+
};
|
|
156
159
|
};
|
|
@@ -64,7 +64,10 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
64
64
|
state = _this$view.state,
|
|
65
65
|
dispatch = _this$view.dispatch;
|
|
66
66
|
setSelectionRelativeToNode(RelativeSelectionPos.Start)(state, dispatch);
|
|
67
|
-
|
|
67
|
+
var pos = _this.getPos();
|
|
68
|
+
if (typeof pos === 'number') {
|
|
69
|
+
setSelectionInsideExpand(pos)(state, dispatch, _this.view);
|
|
70
|
+
}
|
|
68
71
|
_this.input.focus();
|
|
69
72
|
}
|
|
70
73
|
});
|
|
@@ -32,7 +32,6 @@ export { default as textColorPlugin } from './text-color';
|
|
|
32
32
|
export { default as textFormattingPlugin } from './text-formatting';
|
|
33
33
|
export { default as typeAheadPlugin } from './type-ahead';
|
|
34
34
|
export { default as unsupportedContentPlugin } from './unsupported-content';
|
|
35
|
-
export { default as cardPlugin } from './card';
|
|
36
35
|
export { default as floatingToolbarPlugin } from './floating-toolbar';
|
|
37
36
|
export { default as statusPlugin } from './status';
|
|
38
37
|
export { default as breakoutPlugin } from './breakout';
|
|
@@ -226,22 +226,11 @@ var MediaSingleNode = /*#__PURE__*/function (_Component) {
|
|
|
226
226
|
}
|
|
227
227
|
(_this$captionPlaceHol = _this.captionPlaceHolderRef.current) === null || _this$captionPlaceHol === void 0 ? void 0 : _this$captionPlaceHol.click();
|
|
228
228
|
});
|
|
229
|
-
_defineProperty(_assertThisInitialized(_this), "displayGrid", function (visible, gridType, highlight) {
|
|
230
|
-
var _pluginInjectionApi$d, _pluginInjectionApi$d2, _pluginInjectionApi$d3;
|
|
231
|
-
var _this$props = _this.props,
|
|
232
|
-
pluginInjectionApi = _this$props.pluginInjectionApi,
|
|
233
|
-
view = _this$props.view;
|
|
234
|
-
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)({
|
|
235
|
-
visible: visible,
|
|
236
|
-
gridType: gridType,
|
|
237
|
-
highlight: highlight
|
|
238
|
-
});
|
|
239
|
-
});
|
|
240
229
|
_defineProperty(_assertThisInitialized(_this), "clickPlaceholder", function () {
|
|
241
|
-
var _this$
|
|
242
|
-
view = _this$
|
|
243
|
-
getPos = _this$
|
|
244
|
-
node = _this$
|
|
230
|
+
var _this$props = _this.props,
|
|
231
|
+
view = _this$props.view,
|
|
232
|
+
getPos = _this$props.getPos,
|
|
233
|
+
node = _this$props.node;
|
|
245
234
|
if (typeof getPos === 'boolean') {
|
|
246
235
|
return;
|
|
247
236
|
}
|
|
@@ -316,14 +305,14 @@ var MediaSingleNode = /*#__PURE__*/function (_Component) {
|
|
|
316
305
|
}, {
|
|
317
306
|
key: "render",
|
|
318
307
|
value: function render() {
|
|
319
|
-
var _this$
|
|
320
|
-
selected = _this$
|
|
321
|
-
getPos = _this$
|
|
322
|
-
node = _this$
|
|
323
|
-
mediaOptions = _this$
|
|
324
|
-
fullWidthMode = _this$
|
|
325
|
-
state = _this$
|
|
326
|
-
view = _this$
|
|
308
|
+
var _this$props2 = this.props,
|
|
309
|
+
selected = _this$props2.selected,
|
|
310
|
+
getPos = _this$props2.getPos,
|
|
311
|
+
node = _this$props2.node,
|
|
312
|
+
mediaOptions = _this$props2.mediaOptions,
|
|
313
|
+
fullWidthMode = _this$props2.fullWidthMode,
|
|
314
|
+
state = _this$props2.view.state,
|
|
315
|
+
view = _this$props2.view;
|
|
327
316
|
var _ref4 = node.attrs,
|
|
328
317
|
layout = _ref4.layout,
|
|
329
318
|
mediaSingleWidth = _ref4.width;
|
|
@@ -395,12 +384,12 @@ var MediaSingleNode = /*#__PURE__*/function (_Component) {
|
|
|
395
384
|
view: this.props.view,
|
|
396
385
|
getPos: getPos,
|
|
397
386
|
updateSize: this.updateSize,
|
|
398
|
-
displayGrid: this.displayGrid,
|
|
399
387
|
gridSize: 12,
|
|
400
388
|
viewMediaClientConfig: this.state.viewMediaClientConfig,
|
|
401
389
|
allowBreakoutSnapPoints: mediaOptions && mediaOptions.allowBreakoutSnapPoints,
|
|
402
390
|
selected: isSelected,
|
|
403
|
-
dispatchAnalyticsEvent: this.props.dispatchAnalyticsEvent
|
|
391
|
+
dispatchAnalyticsEvent: this.props.dispatchAnalyticsEvent,
|
|
392
|
+
pluginInjectionApi: this.props.pluginInjectionApi
|
|
404
393
|
}), MediaChildren) : jsx(MediaSingle, mediaSingleProps, MediaChildren);
|
|
405
394
|
}
|
|
406
395
|
}]);
|
|
@@ -35,10 +35,21 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
35
35
|
// We default to true until we resolve the file type
|
|
36
36
|
isVideoFile: true
|
|
37
37
|
});
|
|
38
|
-
_defineProperty(_assertThisInitialized(_this), "
|
|
38
|
+
_defineProperty(_assertThisInitialized(_this), "displayGrid", function (visible, gridType, highlight) {
|
|
39
|
+
var _pluginInjectionApi$d, _pluginInjectionApi$d2, _pluginInjectionApi$d3;
|
|
39
40
|
var _this$props = _this.props,
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
pluginInjectionApi = _this$props.pluginInjectionApi,
|
|
42
|
+
view = _this$props.view;
|
|
43
|
+
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)({
|
|
44
|
+
visible: visible,
|
|
45
|
+
gridType: gridType,
|
|
46
|
+
highlight: highlight
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
_defineProperty(_assertThisInitialized(_this), "calcNewSize", function (newWidth, stop) {
|
|
50
|
+
var _this$props2 = _this.props,
|
|
51
|
+
layout = _this$props2.layout,
|
|
52
|
+
state = _this$props2.view.state;
|
|
42
53
|
var newPct = calcPctFromPx(newWidth, _this.props.lineLength) * 100;
|
|
43
54
|
_this.setState({
|
|
44
55
|
resizedPctWidth: newPct
|
|
@@ -73,17 +84,17 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
73
84
|
return _this.insideInlineLike ? calcColumnsFromPx(offsetLeft, _this.props.lineLength, _this.props.gridSize) : 0;
|
|
74
85
|
});
|
|
75
86
|
_defineProperty(_assertThisInitialized(_this), "calcPxWidth", function (useLayout) {
|
|
76
|
-
var _this$
|
|
77
|
-
_this$
|
|
78
|
-
origWidth = _this$
|
|
79
|
-
origHeight = _this$
|
|
80
|
-
layout = _this$
|
|
81
|
-
pctWidth = _this$
|
|
82
|
-
lineLength = _this$
|
|
83
|
-
containerWidth = _this$
|
|
84
|
-
fullWidthMode = _this$
|
|
85
|
-
getPos = _this$
|
|
86
|
-
state = _this$
|
|
87
|
+
var _this$props3 = _this.props,
|
|
88
|
+
_this$props3$width = _this$props3.width,
|
|
89
|
+
origWidth = _this$props3$width === void 0 ? 0 : _this$props3$width,
|
|
90
|
+
origHeight = _this$props3.height,
|
|
91
|
+
layout = _this$props3.layout,
|
|
92
|
+
pctWidth = _this$props3.pctWidth,
|
|
93
|
+
lineLength = _this$props3.lineLength,
|
|
94
|
+
containerWidth = _this$props3.containerWidth,
|
|
95
|
+
fullWidthMode = _this$props3.fullWidthMode,
|
|
96
|
+
getPos = _this$props3.getPos,
|
|
97
|
+
state = _this$props3.view.state;
|
|
87
98
|
var resizedPctWidth = _this.state.resizedPctWidth;
|
|
88
99
|
var pos = typeof getPos === 'function' ? getPos() : undefined;
|
|
89
100
|
return calcMediaPxWidth({
|
|
@@ -114,10 +125,10 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
114
125
|
if (snapWidth > akEditorWideLayoutWidth) {
|
|
115
126
|
return ['full-width'];
|
|
116
127
|
}
|
|
117
|
-
var _this$
|
|
118
|
-
layout = _this$
|
|
119
|
-
lineLength = _this$
|
|
120
|
-
gridSize = _this$
|
|
128
|
+
var _this$props4 = _this.props,
|
|
129
|
+
layout = _this$props4.layout,
|
|
130
|
+
lineLength = _this$props4.lineLength,
|
|
131
|
+
gridSize = _this$props4.gridSize;
|
|
121
132
|
var columns = calcColumnsFromPx(snapWidth, lineLength, gridSize);
|
|
122
133
|
var columnWidth = Math.round(columns);
|
|
123
134
|
var highlight = [];
|
|
@@ -312,15 +323,15 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
312
323
|
key: "render",
|
|
313
324
|
value: function render() {
|
|
314
325
|
var _this2 = this;
|
|
315
|
-
var _this$
|
|
316
|
-
origWidth = _this$
|
|
317
|
-
origHeight = _this$
|
|
318
|
-
layout = _this$
|
|
319
|
-
pctWidth = _this$
|
|
320
|
-
containerWidth = _this$
|
|
321
|
-
fullWidthMode = _this$
|
|
322
|
-
selected = _this$
|
|
323
|
-
children = _this$
|
|
326
|
+
var _this$props5 = this.props,
|
|
327
|
+
origWidth = _this$props5.width,
|
|
328
|
+
origHeight = _this$props5.height,
|
|
329
|
+
layout = _this$props5.layout,
|
|
330
|
+
pctWidth = _this$props5.pctWidth,
|
|
331
|
+
containerWidth = _this$props5.containerWidth,
|
|
332
|
+
fullWidthMode = _this$props5.fullWidthMode,
|
|
333
|
+
selected = _this$props5.selected,
|
|
334
|
+
children = _this$props5.children;
|
|
324
335
|
var initialWidth = this.calcPxWidth(); // width with padding
|
|
325
336
|
var ratio;
|
|
326
337
|
if (origWidth) {
|
|
@@ -357,6 +368,7 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
357
368
|
fullWidthMode: fullWidthMode
|
|
358
369
|
})
|
|
359
370
|
}, jsx(Resizer, _extends({}, this.props, {
|
|
371
|
+
displayGrid: this.displayGrid,
|
|
360
372
|
ratio: ratio,
|
|
361
373
|
width: initialWidth,
|
|
362
374
|
selected: selected,
|
package/dist/esm/version.json
CHANGED
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -15,20 +15,13 @@ declare const _default: {
|
|
|
15
15
|
'fabric.editor.alttext.validation': string;
|
|
16
16
|
'fabric.editor.annotationToolbar': string;
|
|
17
17
|
'fabric.editor.backLink': string;
|
|
18
|
-
'fabric.editor.blockCardUnavailable': string;
|
|
19
|
-
'fabric.editor.blockDescription': string;
|
|
20
|
-
'fabric.editor.blockTitle': string;
|
|
21
18
|
'fabric.editor.blockquote.description': string;
|
|
22
19
|
'fabric.editor.blockquote2': string;
|
|
23
20
|
'fabric.editor.bold': string;
|
|
24
|
-
'fabric.editor.bug': string;
|
|
25
21
|
'fabric.editor.captionPlaceholder': string;
|
|
26
|
-
'fabric.editor.cardFloatingControls': string;
|
|
27
22
|
'fabric.editor.chromeCollapsedPlaceholder': string;
|
|
28
23
|
'fabric.editor.clearAltTextEdit': string;
|
|
29
24
|
'fabric.editor.clearFormatting': string;
|
|
30
|
-
'fabric.editor.clearLink': string;
|
|
31
|
-
'fabric.editor.clearLinkText': string;
|
|
32
25
|
'fabric.editor.closeAltTextEdit': string;
|
|
33
26
|
'fabric.editor.closeFindReplaceDialog': string;
|
|
34
27
|
'fabric.editor.closeHelpDialog': string;
|
|
@@ -58,16 +51,8 @@ declare const _default: {
|
|
|
58
51
|
'fabric.editor.customPanel': string;
|
|
59
52
|
'fabric.editor.customPanel.description': string;
|
|
60
53
|
'fabric.editor.decisionPlaceholder': string;
|
|
61
|
-
'fabric.editor.defaultAltText': string;
|
|
62
54
|
'fabric.editor.description': string;
|
|
63
|
-
'fabric.editor.displayBlock': string;
|
|
64
|
-
'fabric.editor.displayEmbed': string;
|
|
65
|
-
'fabric.editor.displayInline': string;
|
|
66
|
-
'fabric.editor.displayLink': string;
|
|
67
|
-
'fabric.editor.displayOptionUnavailableInParentNode': string;
|
|
68
|
-
'fabric.editor.displayText': string;
|
|
69
55
|
'fabric.editor.dropPlaceholderLabel': string;
|
|
70
|
-
'fabric.editor.ecombedDescription': string;
|
|
71
56
|
'fabric.editor.edit': string;
|
|
72
57
|
'fabric.editor.editAltText': string;
|
|
73
58
|
'fabric.editor.editDateText': string;
|
|
@@ -93,8 +78,6 @@ declare const _default: {
|
|
|
93
78
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading': string;
|
|
94
79
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
95
80
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
96
|
-
'fabric.editor.embedTitle': string;
|
|
97
|
-
'fabric.editor.epic': string;
|
|
98
81
|
'fabric.editor.error': string;
|
|
99
82
|
'fabric.editor.errorPanel': string;
|
|
100
83
|
'fabric.editor.errorPanel.description': string;
|
|
@@ -127,30 +110,18 @@ declare const _default: {
|
|
|
127
110
|
'fabric.editor.heading5Description': string;
|
|
128
111
|
'fabric.editor.heading6': string;
|
|
129
112
|
'fabric.editor.heading6Description': string;
|
|
130
|
-
'fabric.editor.headingLink.hyperlinkIconBlogLabel': string;
|
|
131
|
-
'fabric.editor.headingLink.hyperlinkIconBugLabel': string;
|
|
132
|
-
'fabric.editor.headingLink.hyperlinkIconIssueLabel': string;
|
|
133
|
-
'fabric.editor.headingLink.hyperlinkIconPageLabel': string;
|
|
134
|
-
'fabric.editor.headingLink.hyperlinkIconStoryLabel': string;
|
|
135
|
-
'fabric.editor.headingLink.hyperlinkIconTaskLabel': string;
|
|
136
113
|
'fabric.editor.headingLink.toolbarHelpTitle': string;
|
|
137
114
|
'fabric.editor.helpDialogTips': string;
|
|
138
|
-
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
139
|
-
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
140
|
-
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
141
115
|
'fabric.editor.imageBorderBold': string;
|
|
142
116
|
'fabric.editor.imageBorderColor': string;
|
|
143
117
|
'fabric.editor.imageBorderMedium': string;
|
|
144
118
|
'fabric.editor.imageBorderOptions': string;
|
|
145
119
|
'fabric.editor.imageBorderSize': string;
|
|
146
120
|
'fabric.editor.imageBorderSubtle': string;
|
|
147
|
-
'fabric.editor.improvement': string;
|
|
148
121
|
'fabric.editor.indent': string;
|
|
149
122
|
'fabric.editor.info': string;
|
|
150
123
|
'fabric.editor.infoPanel': string;
|
|
151
124
|
'fabric.editor.infoPanel.description': string;
|
|
152
|
-
'fabric.editor.inlineDescription': string;
|
|
153
|
-
'fabric.editor.inlineTitle': string;
|
|
154
125
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
155
126
|
'fabric.editor.invalidDateError': string;
|
|
156
127
|
'fabric.editor.inviteItem.title': string;
|
|
@@ -198,9 +169,7 @@ declare const _default: {
|
|
|
198
169
|
'fabric.editor.shortcut': string;
|
|
199
170
|
'fabric.editor.single': string;
|
|
200
171
|
'fabric.editor.statusPlaceholder': string;
|
|
201
|
-
'fabric.editor.story': string;
|
|
202
172
|
'fabric.editor.strike': string;
|
|
203
|
-
'fabric.editor.subTask': string;
|
|
204
173
|
'fabric.editor.subscript': string;
|
|
205
174
|
'fabric.editor.subscript.off.superscript.on': string;
|
|
206
175
|
'fabric.editor.success': string;
|
|
@@ -209,7 +178,6 @@ declare const _default: {
|
|
|
209
178
|
'fabric.editor.superscript': string;
|
|
210
179
|
'fabric.editor.superscript.off.subscript.on': string;
|
|
211
180
|
'fabric.editor.supportAltText': string;
|
|
212
|
-
'fabric.editor.task': string;
|
|
213
181
|
'fabric.editor.taskPlaceholder': string;
|
|
214
182
|
'fabric.editor.text.formatting.off': string;
|
|
215
183
|
'fabric.editor.textColor': string;
|
|
@@ -232,9 +200,6 @@ declare const _default: {
|
|
|
232
200
|
'fabric.editor.undo': string;
|
|
233
201
|
'fabric.editor.unorderedList': string;
|
|
234
202
|
'fabric.editor.unorderedList.description': string;
|
|
235
|
-
'fabric.editor.url': string;
|
|
236
|
-
'fabric.editor.urlDescription': string;
|
|
237
|
-
'fabric.editor.urlTitle': string;
|
|
238
203
|
'fabric.editor.warning': string;
|
|
239
204
|
'fabric.editor.warningPanel': string;
|
|
240
205
|
'fabric.editor.warningPanel.description': string;
|
package/dist/types/i18n/da.d.ts
CHANGED
|
@@ -15,20 +15,13 @@ declare const _default: {
|
|
|
15
15
|
'fabric.editor.alttext.validation': string;
|
|
16
16
|
'fabric.editor.annotationToolbar': string;
|
|
17
17
|
'fabric.editor.backLink': string;
|
|
18
|
-
'fabric.editor.blockCardUnavailable': string;
|
|
19
|
-
'fabric.editor.blockDescription': string;
|
|
20
|
-
'fabric.editor.blockTitle': string;
|
|
21
18
|
'fabric.editor.blockquote.description': string;
|
|
22
19
|
'fabric.editor.blockquote2': string;
|
|
23
20
|
'fabric.editor.bold': string;
|
|
24
|
-
'fabric.editor.bug': string;
|
|
25
21
|
'fabric.editor.captionPlaceholder': string;
|
|
26
|
-
'fabric.editor.cardFloatingControls': string;
|
|
27
22
|
'fabric.editor.chromeCollapsedPlaceholder': string;
|
|
28
23
|
'fabric.editor.clearAltTextEdit': string;
|
|
29
24
|
'fabric.editor.clearFormatting': string;
|
|
30
|
-
'fabric.editor.clearLink': string;
|
|
31
|
-
'fabric.editor.clearLinkText': string;
|
|
32
25
|
'fabric.editor.closeAltTextEdit': string;
|
|
33
26
|
'fabric.editor.closeFindReplaceDialog': string;
|
|
34
27
|
'fabric.editor.closeHelpDialog': string;
|
|
@@ -58,16 +51,8 @@ declare const _default: {
|
|
|
58
51
|
'fabric.editor.customPanel': string;
|
|
59
52
|
'fabric.editor.customPanel.description': string;
|
|
60
53
|
'fabric.editor.decisionPlaceholder': string;
|
|
61
|
-
'fabric.editor.defaultAltText': string;
|
|
62
54
|
'fabric.editor.description': string;
|
|
63
|
-
'fabric.editor.displayBlock': string;
|
|
64
|
-
'fabric.editor.displayEmbed': string;
|
|
65
|
-
'fabric.editor.displayInline': string;
|
|
66
|
-
'fabric.editor.displayLink': string;
|
|
67
|
-
'fabric.editor.displayOptionUnavailableInParentNode': string;
|
|
68
|
-
'fabric.editor.displayText': string;
|
|
69
55
|
'fabric.editor.dropPlaceholderLabel': string;
|
|
70
|
-
'fabric.editor.ecombedDescription': string;
|
|
71
56
|
'fabric.editor.edit': string;
|
|
72
57
|
'fabric.editor.editAltText': string;
|
|
73
58
|
'fabric.editor.editDateText': string;
|
|
@@ -93,8 +78,6 @@ declare const _default: {
|
|
|
93
78
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading': string;
|
|
94
79
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
95
80
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
96
|
-
'fabric.editor.embedTitle': string;
|
|
97
|
-
'fabric.editor.epic': string;
|
|
98
81
|
'fabric.editor.error': string;
|
|
99
82
|
'fabric.editor.errorPanel': string;
|
|
100
83
|
'fabric.editor.errorPanel.description': string;
|
|
@@ -126,30 +109,18 @@ declare const _default: {
|
|
|
126
109
|
'fabric.editor.heading5Description': string;
|
|
127
110
|
'fabric.editor.heading6': string;
|
|
128
111
|
'fabric.editor.heading6Description': string;
|
|
129
|
-
'fabric.editor.headingLink.hyperlinkIconBlogLabel': string;
|
|
130
|
-
'fabric.editor.headingLink.hyperlinkIconBugLabel': string;
|
|
131
|
-
'fabric.editor.headingLink.hyperlinkIconIssueLabel': string;
|
|
132
|
-
'fabric.editor.headingLink.hyperlinkIconPageLabel': string;
|
|
133
|
-
'fabric.editor.headingLink.hyperlinkIconStoryLabel': string;
|
|
134
|
-
'fabric.editor.headingLink.hyperlinkIconTaskLabel': string;
|
|
135
112
|
'fabric.editor.headingLink.toolbarHelpTitle': string;
|
|
136
113
|
'fabric.editor.helpDialogTips': string;
|
|
137
|
-
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
138
|
-
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
139
|
-
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
140
114
|
'fabric.editor.imageBorderBold': string;
|
|
141
115
|
'fabric.editor.imageBorderColor': string;
|
|
142
116
|
'fabric.editor.imageBorderMedium': string;
|
|
143
117
|
'fabric.editor.imageBorderOptions': string;
|
|
144
118
|
'fabric.editor.imageBorderSize': string;
|
|
145
119
|
'fabric.editor.imageBorderSubtle': string;
|
|
146
|
-
'fabric.editor.improvement': string;
|
|
147
120
|
'fabric.editor.indent': string;
|
|
148
121
|
'fabric.editor.info': string;
|
|
149
122
|
'fabric.editor.infoPanel': string;
|
|
150
123
|
'fabric.editor.infoPanel.description': string;
|
|
151
|
-
'fabric.editor.inlineDescription': string;
|
|
152
|
-
'fabric.editor.inlineTitle': string;
|
|
153
124
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
154
125
|
'fabric.editor.invalidDateError': string;
|
|
155
126
|
'fabric.editor.inviteItem.title': string;
|
|
@@ -197,9 +168,7 @@ declare const _default: {
|
|
|
197
168
|
'fabric.editor.shortcut': string;
|
|
198
169
|
'fabric.editor.single': string;
|
|
199
170
|
'fabric.editor.statusPlaceholder': string;
|
|
200
|
-
'fabric.editor.story': string;
|
|
201
171
|
'fabric.editor.strike': string;
|
|
202
|
-
'fabric.editor.subTask': string;
|
|
203
172
|
'fabric.editor.subscript': string;
|
|
204
173
|
'fabric.editor.subscript.off.superscript.on': string;
|
|
205
174
|
'fabric.editor.success': string;
|
|
@@ -208,7 +177,6 @@ declare const _default: {
|
|
|
208
177
|
'fabric.editor.superscript': string;
|
|
209
178
|
'fabric.editor.superscript.off.subscript.on': string;
|
|
210
179
|
'fabric.editor.supportAltText': string;
|
|
211
|
-
'fabric.editor.task': string;
|
|
212
180
|
'fabric.editor.taskPlaceholder': string;
|
|
213
181
|
'fabric.editor.text.formatting.off': string;
|
|
214
182
|
'fabric.editor.textColor': string;
|
|
@@ -231,9 +199,6 @@ declare const _default: {
|
|
|
231
199
|
'fabric.editor.undo': string;
|
|
232
200
|
'fabric.editor.unorderedList': string;
|
|
233
201
|
'fabric.editor.unorderedList.description': string;
|
|
234
|
-
'fabric.editor.url': string;
|
|
235
|
-
'fabric.editor.urlDescription': string;
|
|
236
|
-
'fabric.editor.urlTitle': string;
|
|
237
202
|
'fabric.editor.warning': string;
|
|
238
203
|
'fabric.editor.warningPanel': string;
|
|
239
204
|
'fabric.editor.warningPanel.description': string;
|