@atlaskit/editor-core 185.5.5 → 185.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/i18n/cs.js +0 -10
- package/dist/cjs/i18n/da.js +0 -10
- package/dist/cjs/i18n/de.js +0 -10
- package/dist/cjs/i18n/en.js +0 -10
- package/dist/cjs/i18n/en_GB.js +0 -10
- package/dist/cjs/i18n/en_ZZ.js +0 -10
- package/dist/cjs/i18n/es.js +0 -10
- package/dist/cjs/i18n/fi.js +0 -10
- package/dist/cjs/i18n/fr.js +0 -10
- package/dist/cjs/i18n/hu.js +0 -10
- package/dist/cjs/i18n/it.js +0 -10
- package/dist/cjs/i18n/ja.js +0 -10
- package/dist/cjs/i18n/ko.js +0 -10
- package/dist/cjs/i18n/nb.js +0 -10
- package/dist/cjs/i18n/nl.js +0 -10
- package/dist/cjs/i18n/pl.js +0 -10
- package/dist/cjs/i18n/pt_BR.js +0 -10
- package/dist/cjs/i18n/ru.js +0 -10
- package/dist/cjs/i18n/sv.js +0 -10
- package/dist/cjs/i18n/th.js +0 -10
- package/dist/cjs/i18n/tr.js +0 -10
- package/dist/cjs/i18n/uk.js +0 -10
- package/dist/cjs/i18n/vi.js +0 -10
- package/dist/cjs/i18n/zh.js +0 -10
- package/dist/cjs/i18n/zh_TW.js +0 -10
- package/dist/cjs/plugins/card/pm-plugins/actions.js +14 -2
- package/dist/cjs/plugins/card/pm-plugins/doc.js +34 -2
- package/dist/cjs/plugins/card/pm-plugins/main.js +1 -0
- package/dist/cjs/plugins/card/pm-plugins/reducers.js +8 -0
- package/dist/cjs/plugins/card/styles.js +2 -1
- package/dist/cjs/plugins/card/toolbar.js +53 -1
- package/dist/cjs/plugins/card/ui/DatasourceModal.js +41 -0
- package/dist/cjs/plugins/card/ui/EditLinkToolbar.js +45 -2
- package/dist/cjs/plugins/card/ui/SmallerEditIcon.js +20 -0
- package/dist/cjs/plugins/card/ui/styled.js +5 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n/cs.js +0 -10
- package/dist/es2019/i18n/da.js +0 -10
- package/dist/es2019/i18n/de.js +0 -10
- package/dist/es2019/i18n/en.js +0 -10
- package/dist/es2019/i18n/en_GB.js +0 -10
- package/dist/es2019/i18n/en_ZZ.js +0 -10
- package/dist/es2019/i18n/es.js +0 -10
- package/dist/es2019/i18n/fi.js +0 -10
- package/dist/es2019/i18n/fr.js +0 -10
- package/dist/es2019/i18n/hu.js +0 -10
- package/dist/es2019/i18n/it.js +0 -10
- package/dist/es2019/i18n/ja.js +0 -10
- package/dist/es2019/i18n/ko.js +0 -10
- package/dist/es2019/i18n/nb.js +0 -10
- package/dist/es2019/i18n/nl.js +0 -10
- package/dist/es2019/i18n/pl.js +0 -10
- package/dist/es2019/i18n/pt_BR.js +0 -10
- package/dist/es2019/i18n/ru.js +0 -10
- package/dist/es2019/i18n/sv.js +0 -10
- package/dist/es2019/i18n/th.js +0 -10
- package/dist/es2019/i18n/tr.js +0 -10
- package/dist/es2019/i18n/uk.js +0 -10
- package/dist/es2019/i18n/vi.js +0 -10
- package/dist/es2019/i18n/zh.js +0 -10
- package/dist/es2019/i18n/zh_TW.js +0 -10
- package/dist/es2019/plugins/card/pm-plugins/actions.js +6 -0
- package/dist/es2019/plugins/card/pm-plugins/doc.js +34 -1
- package/dist/es2019/plugins/card/pm-plugins/main.js +1 -0
- package/dist/es2019/plugins/card/pm-plugins/reducers.js +9 -0
- package/dist/es2019/plugins/card/styles.js +23 -2
- package/dist/es2019/plugins/card/toolbar.js +54 -2
- package/dist/es2019/plugins/card/ui/DatasourceModal.js +30 -0
- package/dist/es2019/plugins/card/ui/EditLinkToolbar.js +43 -1
- package/dist/es2019/plugins/card/ui/SmallerEditIcon.js +11 -0
- package/dist/es2019/plugins/card/ui/styled.js +3 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/i18n/cs.js +0 -10
- package/dist/esm/i18n/da.js +0 -10
- package/dist/esm/i18n/de.js +0 -10
- package/dist/esm/i18n/en.js +0 -10
- package/dist/esm/i18n/en_GB.js +0 -10
- package/dist/esm/i18n/en_ZZ.js +0 -10
- package/dist/esm/i18n/es.js +0 -10
- package/dist/esm/i18n/fi.js +0 -10
- package/dist/esm/i18n/fr.js +0 -10
- package/dist/esm/i18n/hu.js +0 -10
- package/dist/esm/i18n/it.js +0 -10
- package/dist/esm/i18n/ja.js +0 -10
- package/dist/esm/i18n/ko.js +0 -10
- package/dist/esm/i18n/nb.js +0 -10
- package/dist/esm/i18n/nl.js +0 -10
- package/dist/esm/i18n/pl.js +0 -10
- package/dist/esm/i18n/pt_BR.js +0 -10
- package/dist/esm/i18n/ru.js +0 -10
- package/dist/esm/i18n/sv.js +0 -10
- package/dist/esm/i18n/th.js +0 -10
- package/dist/esm/i18n/tr.js +0 -10
- package/dist/esm/i18n/uk.js +0 -10
- package/dist/esm/i18n/vi.js +0 -10
- package/dist/esm/i18n/zh.js +0 -10
- package/dist/esm/i18n/zh_TW.js +0 -10
- package/dist/esm/plugins/card/pm-plugins/actions.js +10 -0
- package/dist/esm/plugins/card/pm-plugins/doc.js +32 -1
- package/dist/esm/plugins/card/pm-plugins/main.js +1 -0
- package/dist/esm/plugins/card/pm-plugins/reducers.js +8 -0
- package/dist/esm/plugins/card/styles.js +4 -3
- package/dist/esm/plugins/card/toolbar.js +54 -2
- package/dist/esm/plugins/card/ui/DatasourceModal.js +31 -0
- package/dist/esm/plugins/card/ui/EditLinkToolbar.js +42 -1
- package/dist/esm/plugins/card/ui/SmallerEditIcon.js +11 -0
- package/dist/esm/plugins/card/ui/styled.js +3 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/i18n/cs.d.ts +0 -10
- package/dist/types/i18n/da.d.ts +0 -10
- package/dist/types/i18n/de.d.ts +0 -10
- package/dist/types/i18n/en.d.ts +0 -10
- package/dist/types/i18n/en_GB.d.ts +0 -10
- package/dist/types/i18n/en_ZZ.d.ts +0 -10
- package/dist/types/i18n/es.d.ts +0 -10
- package/dist/types/i18n/fi.d.ts +0 -10
- package/dist/types/i18n/fr.d.ts +0 -10
- package/dist/types/i18n/hu.d.ts +0 -10
- package/dist/types/i18n/it.d.ts +0 -10
- package/dist/types/i18n/ja.d.ts +0 -10
- package/dist/types/i18n/ko.d.ts +0 -10
- package/dist/types/i18n/nb.d.ts +0 -10
- package/dist/types/i18n/nl.d.ts +0 -10
- package/dist/types/i18n/pl.d.ts +0 -10
- package/dist/types/i18n/pt_BR.d.ts +0 -10
- package/dist/types/i18n/ru.d.ts +0 -10
- package/dist/types/i18n/sv.d.ts +0 -10
- package/dist/types/i18n/th.d.ts +0 -10
- package/dist/types/i18n/tr.d.ts +0 -10
- package/dist/types/i18n/uk.d.ts +0 -10
- package/dist/types/i18n/vi.d.ts +0 -10
- package/dist/types/i18n/zh.d.ts +0 -10
- package/dist/types/i18n/zh_TW.d.ts +0 -10
- package/dist/types/plugins/card/pm-plugins/actions.d.ts +2 -0
- package/dist/types/plugins/card/pm-plugins/doc.d.ts +3 -0
- package/dist/types/plugins/card/pm-plugins/util/state.d.ts +1 -0
- package/dist/types/plugins/card/types.d.ts +8 -1
- package/dist/types/plugins/card/ui/DatasourceModal.d.ts +13 -0
- package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +8 -1
- package/dist/types/plugins/card/ui/SmallerEditIcon.d.ts +3 -0
- package/dist/types/plugins/card/ui/styled.d.ts +1 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -10
- package/dist/types-ts4.5/i18n/da.d.ts +0 -10
- package/dist/types-ts4.5/i18n/de.d.ts +0 -10
- package/dist/types-ts4.5/i18n/en.d.ts +0 -10
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -10
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -10
- package/dist/types-ts4.5/i18n/es.d.ts +0 -10
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -10
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -10
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -10
- package/dist/types-ts4.5/i18n/it.d.ts +0 -10
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -10
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -10
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -10
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -10
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -10
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -10
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -10
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -10
- package/dist/types-ts4.5/i18n/th.d.ts +0 -10
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -10
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -10
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -10
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -10
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -10
- package/dist/types-ts4.5/plugins/card/pm-plugins/actions.d.ts +2 -0
- package/dist/types-ts4.5/plugins/card/pm-plugins/doc.d.ts +3 -0
- package/dist/types-ts4.5/plugins/card/pm-plugins/util/state.d.ts +1 -0
- package/dist/types-ts4.5/plugins/card/types.d.ts +8 -1
- package/dist/types-ts4.5/plugins/card/ui/DatasourceModal.d.ts +13 -0
- package/dist/types-ts4.5/plugins/card/ui/EditLinkToolbar.d.ts +8 -1
- package/dist/types-ts4.5/plugins/card/ui/SmallerEditIcon.d.ts +3 -0
- package/dist/types-ts4.5/plugins/card/ui/styled.d.ts +1 -0
- package/package.json +6 -6
|
@@ -38,6 +38,7 @@ export var createPlugin = function createPlugin(options, pluginInjectionApi) {
|
|
|
38
38
|
smartLinkEventsNext: undefined,
|
|
39
39
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
40
40
|
editorAppearance: editorAppearance,
|
|
41
|
+
showDatasourceModal: false,
|
|
41
42
|
datasourceTableRef: undefined,
|
|
42
43
|
layout: undefined
|
|
43
44
|
};
|
|
@@ -60,6 +60,11 @@ var setLinkToolbar = function setLinkToolbar(state, action) {
|
|
|
60
60
|
showLinkingToolbar: action.type === 'SHOW_LINK_TOOLBAR'
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
|
+
var setDatasourceModal = function setDatasourceModal(state, action) {
|
|
64
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
65
|
+
showDatasourceModal: action.type === 'SHOW_DATASOURCE_MODAL'
|
|
66
|
+
});
|
|
67
|
+
};
|
|
63
68
|
export default (function (state, action) {
|
|
64
69
|
switch (action.type) {
|
|
65
70
|
case 'QUEUE':
|
|
@@ -83,5 +88,8 @@ export default (function (state, action) {
|
|
|
83
88
|
case 'SHOW_LINK_TOOLBAR':
|
|
84
89
|
case 'HIDE_LINK_TOOLBAR':
|
|
85
90
|
return setLinkToolbar(state, action);
|
|
91
|
+
case 'SHOW_DATASOURCE_MODAL':
|
|
92
|
+
case 'HIDE_DATASOURCE_MODAL':
|
|
93
|
+
return setDatasourceModal(state, action);
|
|
86
94
|
}
|
|
87
95
|
});
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
|
-
import { SelectionStyle, getSelectionStyles, akEditorDeleteBorder, akEditorDeleteBackground } from '@atlaskit/editor-shared-styles';
|
|
5
|
-
import { N20 } from '@atlaskit/theme/colors';
|
|
4
|
+
import { SelectionStyle, getSelectionStyles, akEditorDeleteBorder, akEditorDeleteBackground, akEditorRuleBorderRadius } from '@atlaskit/editor-shared-styles';
|
|
5
|
+
import { N0, N20, N40 } from '@atlaskit/theme/colors';
|
|
6
6
|
import { SmartCardSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
7
7
|
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
8
|
+
import { DATASOURCE_INNER_CONTAINER_CLASSNAME } from './nodeviews/datasource';
|
|
8
9
|
export var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
|
|
9
|
-
export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n max-width: calc(100% - 20px);\n vertical-align: top;\n word-break: break-all;\n\n .card {\n padding-left: 2px;\n padding-right: 2px;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n margin-bottom: -0.5em;\n\n .", " > a:focus {\n ", "\n }\n }\n\n &.", "\n .", "\n > a {\n ", "\n }\n .", " > a {\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 1;\n position: relative;\n /* EDM-1717: box-shadow Safari fix end */\n }\n\n &.danger {\n .", " > a {\n box-shadow: 0 0 0 1px\n ", ";\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 2;\n /* EDM-1717: box-shadow Safari fix end */\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.danger {\n .", " > div {\n box-shadow: 0 0 0 1px\n ", " !important;\n }\n }\n }\n\n .", ".", " {\n max-width: 100%;\n display: flex;\n justify-content: center;\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &::after {\n transition: box-shadow 0s;\n }\n }\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.", "\n .", "\n > div::after {\n ", "\n }\n\n &.danger {\n .media-card-frame::after {\n box-shadow: 0 0 0 1px\n ", " !important;\n background: ", " !important;\n }\n .richMedia-resize-handle-right::after,\n .richMedia-resize-handle-left::after {\n background: ", ";\n }\n }\n }\n\n .", " {\n padding: 0;\n }\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-background-neutral-subtle-hovered, ".concat(N20, ")"), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.DATASOURCE_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), FLOATING_TOOLBAR_LINKPICKER_CLASSNAME);
|
|
10
|
+
export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n max-width: calc(100% - 20px);\n vertical-align: top;\n word-break: break-all;\n\n .card {\n padding-left: 2px;\n padding-right: 2px;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n margin-bottom: -0.5em;\n\n .", " > a:focus {\n ", "\n }\n }\n\n &.", "\n .", "\n > a {\n ", "\n }\n .", " > a {\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 1;\n position: relative;\n /* EDM-1717: box-shadow Safari fix end */\n }\n\n &.danger {\n .", " > a {\n box-shadow: 0 0 0 1px\n ", ";\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 2;\n /* EDM-1717: box-shadow Safari fix end */\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.danger {\n .", " > div {\n box-shadow: 0 0 0 1px\n ", " !important;\n }\n }\n }\n\n .", ".", " {\n max-width: 100%;\n display: flex;\n justify-content: center;\n\n .", " {\n cursor: pointer;\n background-color: ", ";\n border-radius: ", ";\n border: 1px solid ", ";\n }\n\n &.", " {\n .", " {\n ", "\n }\n }\n\n &.danger {\n .", " {\n box-shadow: 0 0 0 1px\n ", ";\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &::after {\n transition: box-shadow 0s;\n }\n }\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.", "\n .", "\n > div::after {\n ", "\n }\n\n &.danger {\n .media-card-frame::after {\n box-shadow: 0 0 0 1px\n ", " !important;\n background: ", " !important;\n }\n .richMedia-resize-handle-right::after,\n .richMedia-resize-handle-left::after {\n background: ", ";\n }\n }\n }\n\n .", " {\n padding: 0;\n }\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-background-neutral-subtle-hovered, ".concat(N20, ")"), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.DATASOURCE_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, ".concat(N0, ")"), "var(--ds-border-radius-100, ".concat(akEditorRuleBorderRadius, ")"), "var(--ds-border, ".concat(N40, ")"), akEditorSelectedNodeClassName, DATASOURCE_INNER_CONTAINER_CLASSNAME, getSelectionStyles([SelectionStyle.BoxShadow]), DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), FLOATING_TOOLBAR_LINKPICKER_CLASSNAME);
|
|
@@ -15,13 +15,14 @@ import { changeSelectedCardToText } from './pm-plugins/doc';
|
|
|
15
15
|
import { commandWithMetadata } from '@atlaskit/editor-common/card';
|
|
16
16
|
import { pluginKey } from './pm-plugins/main';
|
|
17
17
|
import { richMediaClassName } from '@atlaskit/editor-common/styles';
|
|
18
|
-
import { buildEditLinkToolbar, editLink, editLinkToolbarConfig } from './ui/EditLinkToolbar';
|
|
18
|
+
import { editDatasource, buildEditLinkToolbar, editLink, editLinkToolbarConfig, openDatasourceModal } from './ui/EditLinkToolbar';
|
|
19
19
|
import { displayInfoForCard, findCardInfo, titleUrlPairFromNode, appearanceForNodeType } from './utils';
|
|
20
20
|
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
21
21
|
import { LinkToolbarAppearance } from './ui/LinkToolbarAppearance';
|
|
22
22
|
import { messages } from './messages';
|
|
23
23
|
import { FLOATING_TOOLBAR_LINKPICKER_CLASSNAME } from './styles';
|
|
24
24
|
import { ACTION, ACTION_SUBJECT, INPUT_METHOD, EVENT_TYPE, buildOpenedSettingsPayload, buildVisitedLinkPayload } from '@atlaskit/editor-common/analytics';
|
|
25
|
+
import { SmallerEditIcon } from './ui/SmallerEditIcon';
|
|
25
26
|
export var removeCard = function removeCard(editorAnalyticsApi) {
|
|
26
27
|
return commandWithMetadata(function (state, dispatch) {
|
|
27
28
|
if (!(state.selection instanceof NodeSelection)) {
|
|
@@ -161,7 +162,7 @@ var withToolbarMetadata = function withToolbarMetadata(command) {
|
|
|
161
162
|
};
|
|
162
163
|
var generateToolbarItems = function generateToolbarItems(state, featureFlags, intl, providerFactory, cardOptions, platform, linkPicker, pluginInjectionApi) {
|
|
163
164
|
return function (node) {
|
|
164
|
-
var _pluginInjectionApi$d, _pluginInjectionApi$d2, _pluginInjectionApi$d3, _pluginInjectionApi$d4, _pluginInjectionApi$d5;
|
|
165
|
+
var _pluginInjectionApi$d, _pluginInjectionApi$d2, _pluginInjectionApi$d3, _pluginInjectionApi$d4, _pluginInjectionApi$d5, _node$attrs;
|
|
165
166
|
var _titleUrlPairFromNode2 = titleUrlPairFromNode(node),
|
|
166
167
|
url = _titleUrlPairFromNode2.url;
|
|
167
168
|
var _ref = (_pluginInjectionApi$d = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d2 = pluginInjectionApi.dependencies) === null || _pluginInjectionApi$d2 === void 0 ? void 0 : _pluginInjectionApi$d2.analytics) !== null && _pluginInjectionApi$d !== void 0 ? _pluginInjectionApi$d : {},
|
|
@@ -181,6 +182,7 @@ var generateToolbarItems = function generateToolbarItems(state, featureFlags, in
|
|
|
181
182
|
var currentAppearance = appearanceForNodeType(node.type);
|
|
182
183
|
var _ref2 = (_pluginInjectionApi$d3 = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d4 = pluginInjectionApi.dependencies) === null || _pluginInjectionApi$d4 === void 0 ? void 0 : (_pluginInjectionApi$d5 = _pluginInjectionApi$d4.decorations) === null || _pluginInjectionApi$d5 === void 0 ? void 0 : _pluginInjectionApi$d5.actions) !== null && _pluginInjectionApi$d3 !== void 0 ? _pluginInjectionApi$d3 : {},
|
|
183
184
|
hoverDecoration = _ref2.hoverDecoration;
|
|
185
|
+
var isDatasource = currentAppearance === 'block' && (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.datasource);
|
|
184
186
|
|
|
185
187
|
/* mobile builds toolbar natively using toolbarItems */
|
|
186
188
|
if (pluginState.showLinkingToolbar && platform !== 'mobile') {
|
|
@@ -191,6 +193,15 @@ var generateToolbarItems = function generateToolbarItems(state, featureFlags, in
|
|
|
191
193
|
featureFlags: featureFlags,
|
|
192
194
|
pluginInjectionApi: pluginInjectionApi
|
|
193
195
|
})];
|
|
196
|
+
} else if (pluginState.showDatasourceModal) {
|
|
197
|
+
return [openDatasourceModal({
|
|
198
|
+
state: state,
|
|
199
|
+
node: node,
|
|
200
|
+
editorAnalyticsApi: editorAnalyticsApi
|
|
201
|
+
})];
|
|
202
|
+
// not showing toolbar in mobile for now since not sure what our plans are for it
|
|
203
|
+
} else if (isDatasource && platform !== 'mobile') {
|
|
204
|
+
return getDatasourceButtonGroup(state, metadata, intl, editorAnalyticsApi, node, hoverDecoration);
|
|
194
205
|
} else {
|
|
195
206
|
var inlineCard = state.schema.nodes.inlineCard;
|
|
196
207
|
var toolbarItems = [{
|
|
@@ -300,4 +311,45 @@ var getSettingsButtonGroup = function getSettingsButtonGroup(state, featureFlags
|
|
|
300
311
|
}, {
|
|
301
312
|
type: 'separator'
|
|
302
313
|
}] : [];
|
|
314
|
+
};
|
|
315
|
+
var getDatasourceButtonGroup = function getDatasourceButtonGroup(state, metadata, intl, editorAnalyticsApi, node, hoverDecoration) {
|
|
316
|
+
var _node$attrs2;
|
|
317
|
+
var toolbarItems = [{
|
|
318
|
+
id: 'editor.edit.datasource',
|
|
319
|
+
type: 'button',
|
|
320
|
+
icon: SmallerEditIcon,
|
|
321
|
+
metadata: metadata,
|
|
322
|
+
className: 'datasource-edit',
|
|
323
|
+
title: intl.formatMessage(linkToolbarMessages.editDatasource),
|
|
324
|
+
onClick: editDatasource(editorAnalyticsApi)
|
|
325
|
+
}];
|
|
326
|
+
if (node !== null && node !== void 0 && (_node$attrs2 = node.attrs) !== null && _node$attrs2 !== void 0 && _node$attrs2.url) {
|
|
327
|
+
toolbarItems.push({
|
|
328
|
+
type: 'separator'
|
|
329
|
+
}, {
|
|
330
|
+
id: 'editor.link.openLink',
|
|
331
|
+
type: 'button',
|
|
332
|
+
icon: OpenIcon,
|
|
333
|
+
metadata: metadata,
|
|
334
|
+
className: 'hyperlink-open-link',
|
|
335
|
+
title: intl.formatMessage(linkMessages.openLink),
|
|
336
|
+
onClick: visitCardLink(editorAnalyticsApi)
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
toolbarItems.push({
|
|
340
|
+
type: 'separator'
|
|
341
|
+
}, {
|
|
342
|
+
id: 'editor.link.delete',
|
|
343
|
+
focusEditoronEnter: true,
|
|
344
|
+
type: 'button',
|
|
345
|
+
appearance: 'danger',
|
|
346
|
+
icon: RemoveIcon,
|
|
347
|
+
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
348
|
+
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
349
|
+
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true),
|
|
350
|
+
onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
351
|
+
title: intl.formatMessage(commonMessages.remove),
|
|
352
|
+
onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
|
|
353
|
+
});
|
|
354
|
+
return toolbarItems;
|
|
303
355
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { useCallback } from 'react';
|
|
2
|
+
import { JiraIssuesConfigModal } from '@atlaskit/link-datasource';
|
|
3
|
+
import { hideDatasourceModal } from '../pm-plugins/actions';
|
|
4
|
+
import { updateExistingDatasource } from '../pm-plugins/doc';
|
|
5
|
+
export var DatasourceModal = function DatasourceModal(_ref) {
|
|
6
|
+
var state = _ref.state,
|
|
7
|
+
view = _ref.view,
|
|
8
|
+
node = _ref.node;
|
|
9
|
+
var isJiraDatasource = node.attrs.datasource.parameters.jql;
|
|
10
|
+
var onClose = useCallback(function () {
|
|
11
|
+
view.dispatch(hideDatasourceModal(view.state.tr));
|
|
12
|
+
}, [view]);
|
|
13
|
+
var onInsert = useCallback(function (newAdf) {
|
|
14
|
+
updateExistingDatasource(state, node, newAdf, view);
|
|
15
|
+
}, [state, node, view]);
|
|
16
|
+
if (isJiraDatasource) {
|
|
17
|
+
var _node$attrs$datasourc, _node$attrs$datasourc2;
|
|
18
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
19
|
+
"data-testId": "jira-config-modal"
|
|
20
|
+
}, /*#__PURE__*/React.createElement(JiraIssuesConfigModal, {
|
|
21
|
+
datasourceId: node.attrs.datasource.id,
|
|
22
|
+
visibleColumnKeys: (_node$attrs$datasourc = node.attrs.datasource.views[0]) === null || _node$attrs$datasourc === void 0 ? void 0 : (_node$attrs$datasourc2 = _node$attrs$datasourc.properties) === null || _node$attrs$datasourc2 === void 0 ? void 0 : _node$attrs$datasourc2.columns.map(function (column) {
|
|
23
|
+
return column.key;
|
|
24
|
+
}),
|
|
25
|
+
parameters: node.attrs.datasource.parameters,
|
|
26
|
+
onCancel: onClose,
|
|
27
|
+
onInsert: onInsert
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
return null; // null for now until we have modal component that handles other datasources
|
|
31
|
+
};
|
|
@@ -11,13 +11,14 @@ import React from 'react';
|
|
|
11
11
|
import { withOuterListeners } from '@atlaskit/editor-common/ui';
|
|
12
12
|
import { commandWithMetadata } from '@atlaskit/editor-common/card';
|
|
13
13
|
import HyperlinkToolbar from '../../hyperlink/ui/HyperlinkAddToolbar';
|
|
14
|
-
import { showLinkToolbar, hideLinkToolbar as _hideLinkToolbar } from '../pm-plugins/actions';
|
|
14
|
+
import { showLinkToolbar, hideLinkToolbar as _hideLinkToolbar, showDatasourceModal } from '../pm-plugins/actions';
|
|
15
15
|
import { INPUT_METHOD, ACTION, buildEditLinkPayload } from '@atlaskit/editor-common/analytics';
|
|
16
16
|
import { LINKPICKER_HEIGHT_IN_PX, RECENT_SEARCH_HEIGHT_IN_PX, RECENT_SEARCH_WIDTH_IN_PX } from '@atlaskit/editor-common/ui';
|
|
17
17
|
import { changeSelectedCardToLink, updateCard } from '../pm-plugins/doc';
|
|
18
18
|
import { findCardInfo, displayInfoForCard } from '../utils';
|
|
19
19
|
import { NodeSelection } from 'prosemirror-state';
|
|
20
20
|
import { linkToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
21
|
+
import { DatasourceModal } from './DatasourceModal';
|
|
21
22
|
var HyperLinkToolbarWithListeners = withOuterListeners(HyperlinkToolbar);
|
|
22
23
|
export var EditLinkToolbar = /*#__PURE__*/function (_React$Component) {
|
|
23
24
|
_inherits(EditLinkToolbar, _React$Component);
|
|
@@ -161,4 +162,44 @@ export var editLinkToolbarConfig = function editLinkToolbarConfig(showLinkingToo
|
|
|
161
162
|
width: RECENT_SEARCH_WIDTH_IN_PX,
|
|
162
163
|
forcePlacement: true
|
|
163
164
|
} : {};
|
|
165
|
+
};
|
|
166
|
+
export var editDatasource = function editDatasource(editorAnalyticsApi) {
|
|
167
|
+
return function (state, dispatch) {
|
|
168
|
+
if (dispatch) {
|
|
169
|
+
var tr = state.tr;
|
|
170
|
+
showDatasourceModal(tr);
|
|
171
|
+
// editorAnalyticsApi?.attachAnalyticsEvent(
|
|
172
|
+
// buildEditLinkPayload(
|
|
173
|
+
// type as
|
|
174
|
+
// | ACTION_SUBJECT_ID.CARD_INLINE
|
|
175
|
+
// | ACTION_SUBJECT_ID.CARD_BLOCK
|
|
176
|
+
// | ACTION_SUBJECT_ID.EMBEDS,
|
|
177
|
+
// ),
|
|
178
|
+
// )(tr);
|
|
179
|
+
dispatch(tr);
|
|
180
|
+
return true;
|
|
181
|
+
}
|
|
182
|
+
return false;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
export var openDatasourceModal = function openDatasourceModal(_ref2) {
|
|
186
|
+
var state = _ref2.state,
|
|
187
|
+
node = _ref2.node,
|
|
188
|
+
editorAnalyticsApi = _ref2.editorAnalyticsApi;
|
|
189
|
+
return {
|
|
190
|
+
type: 'custom',
|
|
191
|
+
disableArrowNavigation: true,
|
|
192
|
+
fallback: [],
|
|
193
|
+
render: function render(view) {
|
|
194
|
+
if (!view) {
|
|
195
|
+
return null;
|
|
196
|
+
}
|
|
197
|
+
return /*#__PURE__*/React.createElement(DatasourceModal, {
|
|
198
|
+
state: state,
|
|
199
|
+
view: view,
|
|
200
|
+
node: node,
|
|
201
|
+
editorAnalyticsApi: editorAnalyticsApi
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
};
|
|
164
205
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import EditIcon from '@atlaskit/icon/glyph/edit';
|
|
4
|
+
import { editIconStyles } from './styled';
|
|
5
|
+
export var SmallerEditIcon = function SmallerEditIcon() {
|
|
6
|
+
return jsx("div", {
|
|
7
|
+
css: editIconStyles
|
|
8
|
+
}, jsx(EditIcon, {
|
|
9
|
+
label: "edit"
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2;
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
export var embedCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n .embedCardView-content-wrap[layout^='wrap-'] {\n max-width: 100%;\n }\n\n .embedCardView-content-wrap[layout='wrap-left'] {\n float: left;\n }\n\n .embedCardView-content-wrap[layout='wrap-right'] {\n float: right;\n }\n\n .embedCardView-content-wrap[layout='wrap-right']\n + .embedCardView-content-wrap[layout='wrap-left'] {\n clear: both;\n }\n }\n"])));
|
|
5
|
-
export var embedSpacingStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0 10px;\n"])));
|
|
5
|
+
export var embedSpacingStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0 10px;\n"])));
|
|
6
|
+
export var editIconStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 20px;\n"])));
|
package/dist/esm/version.json
CHANGED
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ declare const _default: {
|
|
|
71
71
|
'fabric.editor.edit': string;
|
|
72
72
|
'fabric.editor.editAltText': string;
|
|
73
73
|
'fabric.editor.editDateText': string;
|
|
74
|
-
'fabric.editor.editLink': string;
|
|
75
74
|
'fabric.editor.editStatusColor': string;
|
|
76
75
|
'fabric.editor.editStatusText': string;
|
|
77
76
|
'fabric.editor.editableContentLabel': string;
|
|
@@ -95,7 +94,6 @@ declare const _default: {
|
|
|
95
94
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
96
95
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
97
96
|
'fabric.editor.embedTitle': string;
|
|
98
|
-
'fabric.editor.emptyLink': string;
|
|
99
97
|
'fabric.editor.epic': string;
|
|
100
98
|
'fabric.editor.error': string;
|
|
101
99
|
'fabric.editor.errorPanel': string;
|
|
@@ -140,7 +138,6 @@ declare const _default: {
|
|
|
140
138
|
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
141
139
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
142
140
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
143
|
-
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
144
141
|
'fabric.editor.imageBorderBold': string;
|
|
145
142
|
'fabric.editor.imageBorderColor': string;
|
|
146
143
|
'fabric.editor.imageBorderMedium': string;
|
|
@@ -156,17 +153,13 @@ declare const _default: {
|
|
|
156
153
|
'fabric.editor.inlineTitle': string;
|
|
157
154
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
158
155
|
'fabric.editor.invalidDateError': string;
|
|
159
|
-
'fabric.editor.invalidLink': string;
|
|
160
156
|
'fabric.editor.inviteItem.title': string;
|
|
161
157
|
'fabric.editor.italic': string;
|
|
162
158
|
'fabric.editor.keyboardShortcuts': string;
|
|
163
159
|
'fabric.editor.leftSidebar': string;
|
|
164
|
-
'fabric.editor.linkAddress': string;
|
|
165
|
-
'fabric.editor.linkPlaceholder': string;
|
|
166
160
|
'fabric.editor.lists': string;
|
|
167
161
|
'fabric.editor.markdown': string;
|
|
168
162
|
'fabric.editor.matchCase': string;
|
|
169
|
-
'fabric.editor.mediaAddLink': string;
|
|
170
163
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
171
164
|
'fabric.editor.mentionNode.label': string;
|
|
172
165
|
'fabric.editor.mentionsAddLabel': string;
|
|
@@ -202,7 +195,6 @@ declare const _default: {
|
|
|
202
195
|
'fabric.editor.rightSidebar': string;
|
|
203
196
|
'fabric.editor.searchResults': string;
|
|
204
197
|
'fabric.editor.selectLanguage': string;
|
|
205
|
-
'fabric.editor.settingsLinks': string;
|
|
206
198
|
'fabric.editor.shortcut': string;
|
|
207
199
|
'fabric.editor.single': string;
|
|
208
200
|
'fabric.editor.statusPlaceholder': string;
|
|
@@ -236,10 +228,8 @@ declare const _default: {
|
|
|
236
228
|
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
237
229
|
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
238
230
|
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
239
|
-
'fabric.editor.unableToOpenLink': string;
|
|
240
231
|
'fabric.editor.underline': string;
|
|
241
232
|
'fabric.editor.undo': string;
|
|
242
|
-
'fabric.editor.unlink': string;
|
|
243
233
|
'fabric.editor.unorderedList': string;
|
|
244
234
|
'fabric.editor.unorderedList.description': string;
|
|
245
235
|
'fabric.editor.url': string;
|
package/dist/types/i18n/da.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ declare const _default: {
|
|
|
71
71
|
'fabric.editor.edit': string;
|
|
72
72
|
'fabric.editor.editAltText': string;
|
|
73
73
|
'fabric.editor.editDateText': string;
|
|
74
|
-
'fabric.editor.editLink': string;
|
|
75
74
|
'fabric.editor.editStatusColor': string;
|
|
76
75
|
'fabric.editor.editStatusText': string;
|
|
77
76
|
'fabric.editor.editableContentLabel': string;
|
|
@@ -95,7 +94,6 @@ declare const _default: {
|
|
|
95
94
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
96
95
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
97
96
|
'fabric.editor.embedTitle': string;
|
|
98
|
-
'fabric.editor.emptyLink': string;
|
|
99
97
|
'fabric.editor.epic': string;
|
|
100
98
|
'fabric.editor.error': string;
|
|
101
99
|
'fabric.editor.errorPanel': string;
|
|
@@ -139,7 +137,6 @@ declare const _default: {
|
|
|
139
137
|
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
140
138
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
141
139
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
142
|
-
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
143
140
|
'fabric.editor.imageBorderBold': string;
|
|
144
141
|
'fabric.editor.imageBorderColor': string;
|
|
145
142
|
'fabric.editor.imageBorderMedium': string;
|
|
@@ -155,17 +152,13 @@ declare const _default: {
|
|
|
155
152
|
'fabric.editor.inlineTitle': string;
|
|
156
153
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
157
154
|
'fabric.editor.invalidDateError': string;
|
|
158
|
-
'fabric.editor.invalidLink': string;
|
|
159
155
|
'fabric.editor.inviteItem.title': string;
|
|
160
156
|
'fabric.editor.italic': string;
|
|
161
157
|
'fabric.editor.keyboardShortcuts': string;
|
|
162
158
|
'fabric.editor.leftSidebar': string;
|
|
163
|
-
'fabric.editor.linkAddress': string;
|
|
164
|
-
'fabric.editor.linkPlaceholder': string;
|
|
165
159
|
'fabric.editor.lists': string;
|
|
166
160
|
'fabric.editor.markdown': string;
|
|
167
161
|
'fabric.editor.matchCase': string;
|
|
168
|
-
'fabric.editor.mediaAddLink': string;
|
|
169
162
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
170
163
|
'fabric.editor.mentionNode.label': string;
|
|
171
164
|
'fabric.editor.mentionsAddLabel': string;
|
|
@@ -201,7 +194,6 @@ declare const _default: {
|
|
|
201
194
|
'fabric.editor.rightSidebar': string;
|
|
202
195
|
'fabric.editor.searchResults': string;
|
|
203
196
|
'fabric.editor.selectLanguage': string;
|
|
204
|
-
'fabric.editor.settingsLinks': string;
|
|
205
197
|
'fabric.editor.shortcut': string;
|
|
206
198
|
'fabric.editor.single': string;
|
|
207
199
|
'fabric.editor.statusPlaceholder': string;
|
|
@@ -235,10 +227,8 @@ declare const _default: {
|
|
|
235
227
|
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
236
228
|
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
237
229
|
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
238
|
-
'fabric.editor.unableToOpenLink': string;
|
|
239
230
|
'fabric.editor.underline': string;
|
|
240
231
|
'fabric.editor.undo': string;
|
|
241
|
-
'fabric.editor.unlink': string;
|
|
242
232
|
'fabric.editor.unorderedList': string;
|
|
243
233
|
'fabric.editor.unorderedList.description': string;
|
|
244
234
|
'fabric.editor.url': string;
|
package/dist/types/i18n/de.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ declare const _default: {
|
|
|
71
71
|
'fabric.editor.edit': string;
|
|
72
72
|
'fabric.editor.editAltText': string;
|
|
73
73
|
'fabric.editor.editDateText': string;
|
|
74
|
-
'fabric.editor.editLink': string;
|
|
75
74
|
'fabric.editor.editStatusColor': string;
|
|
76
75
|
'fabric.editor.editStatusText': string;
|
|
77
76
|
'fabric.editor.editableContentLabel': string;
|
|
@@ -95,7 +94,6 @@ declare const _default: {
|
|
|
95
94
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
96
95
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
97
96
|
'fabric.editor.embedTitle': string;
|
|
98
|
-
'fabric.editor.emptyLink': string;
|
|
99
97
|
'fabric.editor.epic': string;
|
|
100
98
|
'fabric.editor.error': string;
|
|
101
99
|
'fabric.editor.errorPanel': string;
|
|
@@ -139,7 +137,6 @@ declare const _default: {
|
|
|
139
137
|
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
140
138
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
141
139
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
142
|
-
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
143
140
|
'fabric.editor.imageBorderBold': string;
|
|
144
141
|
'fabric.editor.imageBorderColor': string;
|
|
145
142
|
'fabric.editor.imageBorderMedium': string;
|
|
@@ -155,17 +152,13 @@ declare const _default: {
|
|
|
155
152
|
'fabric.editor.inlineTitle': string;
|
|
156
153
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
157
154
|
'fabric.editor.invalidDateError': string;
|
|
158
|
-
'fabric.editor.invalidLink': string;
|
|
159
155
|
'fabric.editor.inviteItem.title': string;
|
|
160
156
|
'fabric.editor.italic': string;
|
|
161
157
|
'fabric.editor.keyboardShortcuts': string;
|
|
162
158
|
'fabric.editor.leftSidebar': string;
|
|
163
|
-
'fabric.editor.linkAddress': string;
|
|
164
|
-
'fabric.editor.linkPlaceholder': string;
|
|
165
159
|
'fabric.editor.lists': string;
|
|
166
160
|
'fabric.editor.markdown': string;
|
|
167
161
|
'fabric.editor.matchCase': string;
|
|
168
|
-
'fabric.editor.mediaAddLink': string;
|
|
169
162
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
170
163
|
'fabric.editor.mentionNode.label': string;
|
|
171
164
|
'fabric.editor.mentionsAddLabel': string;
|
|
@@ -201,7 +194,6 @@ declare const _default: {
|
|
|
201
194
|
'fabric.editor.rightSidebar': string;
|
|
202
195
|
'fabric.editor.searchResults': string;
|
|
203
196
|
'fabric.editor.selectLanguage': string;
|
|
204
|
-
'fabric.editor.settingsLinks': string;
|
|
205
197
|
'fabric.editor.shortcut': string;
|
|
206
198
|
'fabric.editor.single': string;
|
|
207
199
|
'fabric.editor.statusPlaceholder': string;
|
|
@@ -235,10 +227,8 @@ declare const _default: {
|
|
|
235
227
|
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
236
228
|
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
237
229
|
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
238
|
-
'fabric.editor.unableToOpenLink': string;
|
|
239
230
|
'fabric.editor.underline': string;
|
|
240
231
|
'fabric.editor.undo': string;
|
|
241
|
-
'fabric.editor.unlink': string;
|
|
242
232
|
'fabric.editor.unorderedList': string;
|
|
243
233
|
'fabric.editor.unorderedList.description': string;
|
|
244
234
|
'fabric.editor.url': string;
|
package/dist/types/i18n/en.d.ts
CHANGED
|
@@ -72,7 +72,6 @@ declare const _default: {
|
|
|
72
72
|
'fabric.editor.edit': string;
|
|
73
73
|
'fabric.editor.editAltText': string;
|
|
74
74
|
'fabric.editor.editDateText': string;
|
|
75
|
-
'fabric.editor.editLink': string;
|
|
76
75
|
'fabric.editor.editStatusColor': string;
|
|
77
76
|
'fabric.editor.editStatusText': string;
|
|
78
77
|
'fabric.editor.editableContentLabel': string;
|
|
@@ -96,7 +95,6 @@ declare const _default: {
|
|
|
96
95
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
97
96
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
98
97
|
'fabric.editor.embedTitle': string;
|
|
99
|
-
'fabric.editor.emptyLink': string;
|
|
100
98
|
'fabric.editor.epic': string;
|
|
101
99
|
'fabric.editor.error': string;
|
|
102
100
|
'fabric.editor.errorPanel': string;
|
|
@@ -142,7 +140,6 @@ declare const _default: {
|
|
|
142
140
|
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
143
141
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
144
142
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
145
|
-
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
146
143
|
'fabric.editor.imageBorderBold': string;
|
|
147
144
|
'fabric.editor.imageBorderColor': string;
|
|
148
145
|
'fabric.editor.imageBorderMedium': string;
|
|
@@ -158,17 +155,13 @@ declare const _default: {
|
|
|
158
155
|
'fabric.editor.inlineTitle': string;
|
|
159
156
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
160
157
|
'fabric.editor.invalidDateError': string;
|
|
161
|
-
'fabric.editor.invalidLink': string;
|
|
162
158
|
'fabric.editor.inviteItem.title': string;
|
|
163
159
|
'fabric.editor.italic': string;
|
|
164
160
|
'fabric.editor.keyboardShortcuts': string;
|
|
165
161
|
'fabric.editor.leftSidebar': string;
|
|
166
|
-
'fabric.editor.linkAddress': string;
|
|
167
|
-
'fabric.editor.linkPlaceholder': string;
|
|
168
162
|
'fabric.editor.lists': string;
|
|
169
163
|
'fabric.editor.markdown': string;
|
|
170
164
|
'fabric.editor.matchCase': string;
|
|
171
|
-
'fabric.editor.mediaAddLink': string;
|
|
172
165
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
173
166
|
'fabric.editor.mentionNode.label': string;
|
|
174
167
|
'fabric.editor.mentionsAddLabel': string;
|
|
@@ -204,7 +197,6 @@ declare const _default: {
|
|
|
204
197
|
'fabric.editor.rightSidebar': string;
|
|
205
198
|
'fabric.editor.searchResults': string;
|
|
206
199
|
'fabric.editor.selectLanguage': string;
|
|
207
|
-
'fabric.editor.settingsLinks': string;
|
|
208
200
|
'fabric.editor.shortcut': string;
|
|
209
201
|
'fabric.editor.single': string;
|
|
210
202
|
'fabric.editor.statusPlaceholder': string;
|
|
@@ -238,10 +230,8 @@ declare const _default: {
|
|
|
238
230
|
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
239
231
|
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
240
232
|
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
241
|
-
'fabric.editor.unableToOpenLink': string;
|
|
242
233
|
'fabric.editor.underline': string;
|
|
243
234
|
'fabric.editor.undo': string;
|
|
244
|
-
'fabric.editor.unlink': string;
|
|
245
235
|
'fabric.editor.unorderedList': string;
|
|
246
236
|
'fabric.editor.unorderedList.description': string;
|
|
247
237
|
'fabric.editor.url': string;
|
|
@@ -72,7 +72,6 @@ declare const _default: {
|
|
|
72
72
|
'fabric.editor.edit': string;
|
|
73
73
|
'fabric.editor.editAltText': string;
|
|
74
74
|
'fabric.editor.editDateText': string;
|
|
75
|
-
'fabric.editor.editLink': string;
|
|
76
75
|
'fabric.editor.editStatusColor': string;
|
|
77
76
|
'fabric.editor.editStatusText': string;
|
|
78
77
|
'fabric.editor.editableContentLabel': string;
|
|
@@ -96,7 +95,6 @@ declare const _default: {
|
|
|
96
95
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
97
96
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
98
97
|
'fabric.editor.embedTitle': string;
|
|
99
|
-
'fabric.editor.emptyLink': string;
|
|
100
98
|
'fabric.editor.epic': string;
|
|
101
99
|
'fabric.editor.error': string;
|
|
102
100
|
'fabric.editor.errorPanel': string;
|
|
@@ -142,7 +140,6 @@ declare const _default: {
|
|
|
142
140
|
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
143
141
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
144
142
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
145
|
-
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
146
143
|
'fabric.editor.imageBorderBold': string;
|
|
147
144
|
'fabric.editor.imageBorderColor': string;
|
|
148
145
|
'fabric.editor.imageBorderMedium': string;
|
|
@@ -158,17 +155,13 @@ declare const _default: {
|
|
|
158
155
|
'fabric.editor.inlineTitle': string;
|
|
159
156
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
160
157
|
'fabric.editor.invalidDateError': string;
|
|
161
|
-
'fabric.editor.invalidLink': string;
|
|
162
158
|
'fabric.editor.inviteItem.title': string;
|
|
163
159
|
'fabric.editor.italic': string;
|
|
164
160
|
'fabric.editor.keyboardShortcuts': string;
|
|
165
161
|
'fabric.editor.leftSidebar': string;
|
|
166
|
-
'fabric.editor.linkAddress': string;
|
|
167
|
-
'fabric.editor.linkPlaceholder': string;
|
|
168
162
|
'fabric.editor.lists': string;
|
|
169
163
|
'fabric.editor.markdown': string;
|
|
170
164
|
'fabric.editor.matchCase': string;
|
|
171
|
-
'fabric.editor.mediaAddLink': string;
|
|
172
165
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
173
166
|
'fabric.editor.mentionNode.label': string;
|
|
174
167
|
'fabric.editor.mentionsAddLabel': string;
|
|
@@ -204,7 +197,6 @@ declare const _default: {
|
|
|
204
197
|
'fabric.editor.rightSidebar': string;
|
|
205
198
|
'fabric.editor.searchResults': string;
|
|
206
199
|
'fabric.editor.selectLanguage': string;
|
|
207
|
-
'fabric.editor.settingsLinks': string;
|
|
208
200
|
'fabric.editor.shortcut': string;
|
|
209
201
|
'fabric.editor.single': string;
|
|
210
202
|
'fabric.editor.statusPlaceholder': string;
|
|
@@ -238,10 +230,8 @@ declare const _default: {
|
|
|
238
230
|
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
239
231
|
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
240
232
|
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
241
|
-
'fabric.editor.unableToOpenLink': string;
|
|
242
233
|
'fabric.editor.underline': string;
|
|
243
234
|
'fabric.editor.undo': string;
|
|
244
|
-
'fabric.editor.unlink': string;
|
|
245
235
|
'fabric.editor.unorderedList': string;
|
|
246
236
|
'fabric.editor.unorderedList.description': string;
|
|
247
237
|
'fabric.editor.url': string;
|
|
@@ -72,7 +72,6 @@ declare const _default: {
|
|
|
72
72
|
'fabric.editor.edit': string;
|
|
73
73
|
'fabric.editor.editAltText': string;
|
|
74
74
|
'fabric.editor.editDateText': string;
|
|
75
|
-
'fabric.editor.editLink': string;
|
|
76
75
|
'fabric.editor.editStatusColor': string;
|
|
77
76
|
'fabric.editor.editStatusText': string;
|
|
78
77
|
'fabric.editor.editableContentLabel': string;
|
|
@@ -96,7 +95,6 @@ declare const _default: {
|
|
|
96
95
|
'fabric.editor.elementbrowser.search.empty-state.sub-heading.link': string;
|
|
97
96
|
'fabric.editor.elementbrowser.sidebar.heading': string;
|
|
98
97
|
'fabric.editor.embedTitle': string;
|
|
99
|
-
'fabric.editor.emptyLink': string;
|
|
100
98
|
'fabric.editor.epic': string;
|
|
101
99
|
'fabric.editor.error': string;
|
|
102
100
|
'fabric.editor.errorPanel': string;
|
|
@@ -142,7 +140,6 @@ declare const _default: {
|
|
|
142
140
|
'fabric.editor.hyperlink.linkAriaLabel': string;
|
|
143
141
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
144
142
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
145
|
-
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
146
143
|
'fabric.editor.imageBorderBold': string;
|
|
147
144
|
'fabric.editor.imageBorderColor': string;
|
|
148
145
|
'fabric.editor.imageBorderMedium': string;
|
|
@@ -158,17 +155,13 @@ declare const _default: {
|
|
|
158
155
|
'fabric.editor.inlineTitle': string;
|
|
159
156
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
160
157
|
'fabric.editor.invalidDateError': string;
|
|
161
|
-
'fabric.editor.invalidLink': string;
|
|
162
158
|
'fabric.editor.inviteItem.title': string;
|
|
163
159
|
'fabric.editor.italic': string;
|
|
164
160
|
'fabric.editor.keyboardShortcuts': string;
|
|
165
161
|
'fabric.editor.leftSidebar': string;
|
|
166
|
-
'fabric.editor.linkAddress': string;
|
|
167
|
-
'fabric.editor.linkPlaceholder': string;
|
|
168
162
|
'fabric.editor.lists': string;
|
|
169
163
|
'fabric.editor.markdown': string;
|
|
170
164
|
'fabric.editor.matchCase': string;
|
|
171
|
-
'fabric.editor.mediaAddLink': string;
|
|
172
165
|
'fabric.editor.mediaGroupDeleteLabel': string;
|
|
173
166
|
'fabric.editor.mentionNode.label': string;
|
|
174
167
|
'fabric.editor.mentionsAddLabel': string;
|
|
@@ -204,7 +197,6 @@ declare const _default: {
|
|
|
204
197
|
'fabric.editor.rightSidebar': string;
|
|
205
198
|
'fabric.editor.searchResults': string;
|
|
206
199
|
'fabric.editor.selectLanguage': string;
|
|
207
|
-
'fabric.editor.settingsLinks': string;
|
|
208
200
|
'fabric.editor.shortcut': string;
|
|
209
201
|
'fabric.editor.single': string;
|
|
210
202
|
'fabric.editor.statusPlaceholder': string;
|
|
@@ -238,10 +230,8 @@ declare const _default: {
|
|
|
238
230
|
'fabric.editor.typeahead.mentionInputLabel': string;
|
|
239
231
|
'fabric.editor.typeahead.mentionPopupLabel': string;
|
|
240
232
|
'fabric.editor.typeahead.metionListItemLabel': string;
|
|
241
|
-
'fabric.editor.unableToOpenLink': string;
|
|
242
233
|
'fabric.editor.underline': string;
|
|
243
234
|
'fabric.editor.undo': string;
|
|
244
|
-
'fabric.editor.unlink': string;
|
|
245
235
|
'fabric.editor.unorderedList': string;
|
|
246
236
|
'fabric.editor.unorderedList.description': string;
|
|
247
237
|
'fabric.editor.url': string;
|