@atlaskit/editor-core 185.5.2 → 185.5.7
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 +13 -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/breakout/ui/LayoutButton.js +5 -28
- package/dist/cjs/plugins/card/index.js +20 -6
- package/dist/cjs/plugins/card/nodeviews/datasource.js +39 -4
- package/dist/cjs/plugins/card/pm-plugins/actions.js +31 -1
- package/dist/cjs/plugins/card/pm-plugins/main.js +48 -3
- package/dist/cjs/plugins/card/pm-plugins/reducers.js +22 -0
- package/dist/cjs/plugins/card/styles.js +1 -1
- package/dist/cjs/plugins/card/ui/LayoutButton/index.js +113 -0
- package/dist/cjs/plugins/card/ui/LayoutButton/styled.js +17 -0
- package/dist/cjs/plugins/card/ui/LayoutButton/types.js +5 -0
- package/dist/cjs/plugins/card/ui/LayoutButton/utils.js +19 -0
- package/dist/cjs/plugins/media/pm-plugins/main.js +20 -1
- 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/breakout/ui/LayoutButton.js +3 -26
- package/dist/es2019/plugins/breakout/utils/get-breakout-mode.js +0 -1
- package/dist/es2019/plugins/card/index.js +20 -3
- package/dist/es2019/plugins/card/nodeviews/datasource.js +38 -1
- package/dist/es2019/plugins/card/pm-plugins/actions.js +16 -0
- package/dist/es2019/plugins/card/pm-plugins/main.js +55 -4
- package/dist/es2019/plugins/card/pm-plugins/reducers.js +25 -0
- package/dist/es2019/plugins/card/styles.js +6 -0
- package/dist/es2019/plugins/card/ui/LayoutButton/index.js +106 -0
- package/dist/es2019/plugins/card/ui/LayoutButton/styled.js +10 -0
- package/dist/es2019/plugins/card/ui/LayoutButton/types.js +1 -0
- package/dist/es2019/plugins/card/ui/LayoutButton/utils.js +15 -0
- package/dist/es2019/plugins/media/pm-plugins/main.js +25 -3
- 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/breakout/ui/LayoutButton.js +3 -26
- package/dist/esm/plugins/breakout/utils/get-breakout-mode.js +0 -1
- package/dist/esm/plugins/card/index.js +20 -3
- package/dist/esm/plugins/card/nodeviews/datasource.js +37 -3
- package/dist/esm/plugins/card/pm-plugins/actions.js +27 -0
- package/dist/esm/plugins/card/pm-plugins/main.js +49 -4
- package/dist/esm/plugins/card/pm-plugins/reducers.js +22 -0
- package/dist/esm/plugins/card/styles.js +1 -1
- package/dist/esm/plugins/card/ui/LayoutButton/index.js +102 -0
- package/dist/esm/plugins/card/ui/LayoutButton/styled.js +10 -0
- package/dist/esm/plugins/card/ui/LayoutButton/types.js +1 -0
- package/dist/esm/plugins/card/ui/LayoutButton/utils.js +12 -0
- package/dist/esm/plugins/media/pm-plugins/main.js +22 -3
- 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/breakout/commands/set-breakout-mode.d.ts +1 -1
- package/dist/types/plugins/breakout/utils/get-breakout-mode.d.ts +1 -1
- package/dist/types/plugins/card/index.d.ts +3 -1
- package/dist/types/plugins/card/nodeviews/datasource.d.ts +18 -2
- package/dist/types/plugins/card/pm-plugins/actions.d.ts +7 -0
- package/dist/types/plugins/card/pm-plugins/plugin-key.d.ts +2 -1
- package/dist/types/plugins/card/pm-plugins/util/state.d.ts +2 -0
- package/dist/types/plugins/card/types.d.ts +17 -1
- package/dist/types/plugins/card/ui/LayoutButton/index.d.ts +9 -0
- package/dist/types/plugins/card/ui/LayoutButton/styled.d.ts +1 -0
- package/dist/types/plugins/card/ui/LayoutButton/types.d.ts +19 -0
- package/dist/types/plugins/card/ui/LayoutButton/utils.d.ts +5 -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/breakout/commands/set-breakout-mode.d.ts +1 -1
- package/dist/types-ts4.5/plugins/breakout/utils/get-breakout-mode.d.ts +1 -1
- package/dist/types-ts4.5/plugins/card/index.d.ts +3 -1
- package/dist/types-ts4.5/plugins/card/nodeviews/datasource.d.ts +18 -2
- package/dist/types-ts4.5/plugins/card/pm-plugins/actions.d.ts +7 -0
- package/dist/types-ts4.5/plugins/card/pm-plugins/plugin-key.d.ts +2 -1
- package/dist/types-ts4.5/plugins/card/pm-plugins/util/state.d.ts +2 -0
- package/dist/types-ts4.5/plugins/card/types.d.ts +17 -1
- package/dist/types-ts4.5/plugins/card/ui/LayoutButton/index.d.ts +9 -0
- package/dist/types-ts4.5/plugins/card/ui/LayoutButton/styled.d.ts +1 -0
- package/dist/types-ts4.5/plugins/card/ui/LayoutButton/types.d.ts +19 -0
- package/dist/types-ts4.5/plugins/card/ui/LayoutButton/utils.d.ts +5 -0
- package/package.json +4 -4
|
@@ -29,6 +29,22 @@ var setProvider = function setProvider(state, action) {
|
|
|
29
29
|
provider: action.provider
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
+
var setCardLayout = function setCardLayout(state, action) {
|
|
33
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
34
|
+
layout: action.layout
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var setDatasourceTableRef = function setDatasourceTableRef(state, action) {
|
|
38
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
39
|
+
datasourceTableRef: action.datasourceTableRef
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
var setCardLayoutDatasourceTableRef = function setCardLayoutDatasourceTableRef(state, action) {
|
|
43
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
44
|
+
datasourceTableRef: action.datasourceTableRef,
|
|
45
|
+
layout: action.layout
|
|
46
|
+
});
|
|
47
|
+
};
|
|
32
48
|
var registerEvents = function registerEvents(state, action) {
|
|
33
49
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
34
50
|
smartLinkEvents: action.smartLinkEvents
|
|
@@ -58,6 +74,12 @@ export default (function (state, action) {
|
|
|
58
74
|
return registerEvents(state, action);
|
|
59
75
|
case 'REGISTER_EVENTS_NEXT':
|
|
60
76
|
return registerEventsNext(state, action);
|
|
77
|
+
case 'SET_DATASOURCE_TABLE_REF':
|
|
78
|
+
return setDatasourceTableRef(state, action);
|
|
79
|
+
case 'SET_CARD_LAYOUT':
|
|
80
|
+
return setCardLayout(state, action);
|
|
81
|
+
case 'SET_CARD_LAYOUT_AND_DATASOURCE_TABLE_REF':
|
|
82
|
+
return setCardLayoutDatasourceTableRef(state, action);
|
|
61
83
|
case 'SHOW_LINK_TOOLBAR':
|
|
62
84
|
case 'HIDE_LINK_TOOLBAR':
|
|
63
85
|
return setLinkToolbar(state, action);
|
|
@@ -6,4 +6,4 @@ import { N20 } from '@atlaskit/theme/colors';
|
|
|
6
6
|
import { SmartCardSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
7
7
|
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
8
8
|
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 .", " > 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.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);
|
|
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);
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
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
|
+
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
|
+
/** @jsx jsx */
|
|
5
|
+
import React, { useCallback, useMemo } from 'react';
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
import { Popup } from '@atlaskit/editor-common/ui';
|
|
8
|
+
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
9
|
+
import CollapseIcon from '@atlaskit/icon/glyph/editor/collapse';
|
|
10
|
+
import ExpandIcon from '@atlaskit/icon/glyph/editor/expand';
|
|
11
|
+
import { injectIntl } from 'react-intl-next';
|
|
12
|
+
import { toolbarButtonWrapper } from './styled';
|
|
13
|
+
import { getDatasource } from './utils';
|
|
14
|
+
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
15
|
+
import { setCardLayout } from '../../pm-plugins/actions';
|
|
16
|
+
import { getNextBreakoutMode, getTitle } from '@atlaskit/editor-common/utils';
|
|
17
|
+
export var LayoutButton = function LayoutButton(_ref) {
|
|
18
|
+
var onLayoutChange = _ref.onLayoutChange,
|
|
19
|
+
_ref$layout = _ref.layout,
|
|
20
|
+
layout = _ref$layout === void 0 ? 'center' : _ref$layout,
|
|
21
|
+
formatMessage = _ref.intl.formatMessage,
|
|
22
|
+
mountPoint = _ref.mountPoint,
|
|
23
|
+
boundariesElement = _ref.boundariesElement,
|
|
24
|
+
scrollableElement = _ref.scrollableElement,
|
|
25
|
+
targetElement = _ref.targetElement,
|
|
26
|
+
_ref$testId = _ref.testId,
|
|
27
|
+
testId = _ref$testId === void 0 ? 'datasource-table-layout-button' : _ref$testId;
|
|
28
|
+
var handleClick = useCallback(function () {
|
|
29
|
+
onLayoutChange && onLayoutChange(getNextBreakoutMode(layout));
|
|
30
|
+
}, [layout, onLayoutChange]);
|
|
31
|
+
var title = useMemo(function () {
|
|
32
|
+
return formatMessage(getTitle(layout));
|
|
33
|
+
}, [formatMessage, layout]);
|
|
34
|
+
if (!targetElement) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return jsx(Popup, {
|
|
38
|
+
mountTo: mountPoint,
|
|
39
|
+
boundariesElement: boundariesElement,
|
|
40
|
+
scrollableElement: scrollableElement,
|
|
41
|
+
target: targetElement,
|
|
42
|
+
alignY: "start",
|
|
43
|
+
alignX: "end",
|
|
44
|
+
forcePlacement: true,
|
|
45
|
+
stick: true,
|
|
46
|
+
ariaLabel: title
|
|
47
|
+
}, jsx(ToolbarButton, {
|
|
48
|
+
testId: testId,
|
|
49
|
+
css: toolbarButtonWrapper,
|
|
50
|
+
title: title,
|
|
51
|
+
onClick: handleClick,
|
|
52
|
+
iconBefore: layout === 'full-width' ? jsx(CollapseIcon, {
|
|
53
|
+
label: title
|
|
54
|
+
}) : jsx(ExpandIcon, {
|
|
55
|
+
label: title
|
|
56
|
+
})
|
|
57
|
+
}));
|
|
58
|
+
};
|
|
59
|
+
var LayoutButtonWrapper = function LayoutButtonWrapper(_ref2) {
|
|
60
|
+
var _node$attrs, _node$attrs2;
|
|
61
|
+
var editorView = _ref2.editorView,
|
|
62
|
+
mountPoint = _ref2.mountPoint,
|
|
63
|
+
scrollableElement = _ref2.scrollableElement,
|
|
64
|
+
boundariesElement = _ref2.boundariesElement,
|
|
65
|
+
intl = _ref2.intl,
|
|
66
|
+
api = _ref2.api;
|
|
67
|
+
var _useSharedPluginState = useSharedPluginState(api, ['card']),
|
|
68
|
+
cardState = _useSharedPluginState.cardState;
|
|
69
|
+
var _getDatasource = getDatasource(editorView),
|
|
70
|
+
node = _getDatasource.node,
|
|
71
|
+
pos = _getDatasource.pos;
|
|
72
|
+
var _ref3 = cardState !== null && cardState !== void 0 ? cardState : {},
|
|
73
|
+
datasourceTableRef = _ref3.datasourceTableRef,
|
|
74
|
+
_ref3$layout = _ref3.layout,
|
|
75
|
+
layout = _ref3$layout === void 0 ? (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.layout) || 'center' : _ref3$layout;
|
|
76
|
+
var isDatasource = !!(node !== null && node !== void 0 && (_node$attrs2 = node.attrs) !== null && _node$attrs2 !== void 0 && _node$attrs2.datasource);
|
|
77
|
+
var onLayoutChange = function onLayoutChange(layout) {
|
|
78
|
+
if (pos === undefined) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
var state = editorView.state,
|
|
82
|
+
dispatch = editorView.dispatch;
|
|
83
|
+
var tr = state.tr.setNodeMarkup(pos, undefined, _objectSpread(_objectSpread({}, node === null || node === void 0 ? void 0 : node.attrs), {}, {
|
|
84
|
+
layout: layout
|
|
85
|
+
}));
|
|
86
|
+
tr.setMeta('scrollIntoView', false);
|
|
87
|
+
dispatch(setCardLayout(layout)(tr));
|
|
88
|
+
};
|
|
89
|
+
if (!isDatasource) {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
return jsx(LayoutButton, {
|
|
93
|
+
mountPoint: mountPoint,
|
|
94
|
+
scrollableElement: scrollableElement,
|
|
95
|
+
boundariesElement: boundariesElement,
|
|
96
|
+
targetElement: datasourceTableRef,
|
|
97
|
+
layout: layout,
|
|
98
|
+
onLayoutChange: onLayoutChange,
|
|
99
|
+
intl: intl
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
export default injectIntl(LayoutButtonWrapper);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
|
+
import { B300, N300, N20A } from '@atlaskit/theme/colors';
|
|
3
|
+
export var toolbarButtonWrapper = css({
|
|
4
|
+
background: "".concat("var(--ds-background-neutral, ".concat(N20A, ")")),
|
|
5
|
+
color: "".concat("var(--ds-icon, ".concat(N300, ")")),
|
|
6
|
+
':hover': {
|
|
7
|
+
background: "".concat("var(--ds-background-neutral-hovered, ".concat(B300, ")")),
|
|
8
|
+
color: "var(--ds-icon, white)".concat(" !important")
|
|
9
|
+
}
|
|
10
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { findSelectedNodeOfType } from 'prosemirror-utils';
|
|
2
|
+
export var getDatasource = function getDatasource(editorView) {
|
|
3
|
+
var _findSelectedNodeOfTy;
|
|
4
|
+
var _editorView$state = editorView.state,
|
|
5
|
+
selection = _editorView$state.selection,
|
|
6
|
+
schema = _editorView$state.schema;
|
|
7
|
+
var blockCard = schema.nodes.blockCard;
|
|
8
|
+
return (_findSelectedNodeOfTy = findSelectedNodeOfType([blockCard])(selection)) !== null && _findSelectedNodeOfTy !== void 0 ? _findSelectedNodeOfTy : {
|
|
9
|
+
node: undefined,
|
|
10
|
+
pos: undefined
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -11,12 +11,12 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import ReactDOM from 'react-dom';
|
|
13
13
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
14
|
-
import { NodeSelection, TextSelection, AllSelection } from 'prosemirror-state';
|
|
14
|
+
import { NodeSelection, TextSelection, AllSelection, Selection } from 'prosemirror-state';
|
|
15
15
|
import { insertPoint } from 'prosemirror-transform';
|
|
16
16
|
import { Decoration, DecorationSet } from 'prosemirror-view';
|
|
17
17
|
import { ErrorReporter, browser } from '@atlaskit/editor-common/utils';
|
|
18
18
|
import assert from 'assert';
|
|
19
|
-
import { findDomRefAtPos, isNodeSelection } from 'prosemirror-utils';
|
|
19
|
+
import { findDomRefAtPos, isNodeSelection, findSelectedNodeOfType, findParentNodeOfType } from 'prosemirror-utils';
|
|
20
20
|
import { insertMediaSingleNode, isMediaSingle } from '../utils/media-single';
|
|
21
21
|
import DropPlaceholder from '../ui/Media/DropPlaceholder';
|
|
22
22
|
import { insertMediaGroupNode, insertMediaInlineNode, canInsertMediaInline } from '../utils/media-files';
|
|
@@ -437,8 +437,27 @@ export var MediaPluginStateImplementation = /*#__PURE__*/function () {
|
|
|
437
437
|
var _this$view = _this.view,
|
|
438
438
|
dispatch = _this$view.dispatch,
|
|
439
439
|
state = _this$view.state;
|
|
440
|
+
var tr = state.tr,
|
|
441
|
+
selection = state.selection,
|
|
442
|
+
doc = state.doc;
|
|
443
|
+
var _state$schema$nodes = state.schema.nodes,
|
|
444
|
+
media = _state$schema$nodes.media,
|
|
445
|
+
mediaGroup = _state$schema$nodes.mediaGroup;
|
|
446
|
+
|
|
447
|
+
// Workaround for wrong upload position
|
|
448
|
+
// @see https://product-fabric.atlassian.net/browse/MEX-2457
|
|
449
|
+
// If the media node is the last selectable item in the current cursor position and it is located within a mediaGroup,
|
|
450
|
+
// we relocate the cursor to the first child of the mediaGroup.
|
|
451
|
+
var sel = Selection.findFrom(doc.resolve(selection.$from.pos - 1), -1);
|
|
452
|
+
if (sel && findSelectedNodeOfType(media)(sel)) {
|
|
453
|
+
var parent = findParentNodeOfType(mediaGroup)(sel);
|
|
454
|
+
if (parent) {
|
|
455
|
+
tr.setSelection(NodeSelection.create(tr.doc, parent.start));
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
440
459
|
// Trigger state change to be able to pick it up in the decorations handler
|
|
441
|
-
dispatch(
|
|
460
|
+
dispatch(tr);
|
|
442
461
|
});
|
|
443
462
|
this.options = options;
|
|
444
463
|
this.mediaOptions = mediaOptions;
|
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;
|