@atlaskit/editor-core 189.4.9 → 189.4.12
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 +15 -0
- package/dist/cjs/composable-editor/editor-internal.js +3 -3
- package/dist/cjs/composable-editor/editor.js +202 -3
- package/dist/cjs/i18n/cs.js +1 -3
- package/dist/cjs/i18n/da.js +1 -3
- package/dist/cjs/i18n/de.js +1 -3
- package/dist/cjs/i18n/en.js +1 -3
- package/dist/cjs/i18n/en_GB.js +1 -3
- package/dist/cjs/i18n/en_ZZ.js +1 -3
- package/dist/cjs/i18n/es.js +1 -3
- package/dist/cjs/i18n/fi.js +1 -3
- package/dist/cjs/i18n/fr.js +1 -3
- package/dist/cjs/i18n/hu.js +1 -3
- package/dist/cjs/i18n/it.js +1 -3
- package/dist/cjs/i18n/ja.js +1 -3
- package/dist/cjs/i18n/ko.js +1 -3
- package/dist/cjs/i18n/nb.js +1 -3
- package/dist/cjs/i18n/nl.js +1 -3
- package/dist/cjs/i18n/pl.js +1 -3
- package/dist/cjs/i18n/pt_BR.js +1 -3
- package/dist/cjs/i18n/ru.js +1 -3
- package/dist/cjs/i18n/sv.js +1 -3
- package/dist/cjs/i18n/th.js +1 -3
- package/dist/cjs/i18n/tr.js +1 -3
- package/dist/cjs/i18n/uk.js +1 -3
- package/dist/cjs/i18n/vi.js +1 -3
- package/dist/cjs/i18n/zh.js +1 -3
- package/dist/cjs/i18n/zh_TW.js +1 -3
- package/dist/cjs/plugins/index.js +1 -15
- package/dist/cjs/presets/default.js +2 -2
- package/dist/cjs/presets/universal.js +2 -1
- package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +11 -3
- package/dist/cjs/ui/ConfigPanel/constants.js +13 -0
- package/dist/cjs/ui/ConfigPanel/utils.js +44 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +4 -4
- package/dist/es2019/composable-editor/editor.js +208 -4
- package/dist/es2019/i18n/cs.js +1 -3
- package/dist/es2019/i18n/da.js +1 -3
- package/dist/es2019/i18n/de.js +1 -3
- package/dist/es2019/i18n/en.js +1 -3
- package/dist/es2019/i18n/en_GB.js +1 -3
- package/dist/es2019/i18n/en_ZZ.js +1 -3
- package/dist/es2019/i18n/es.js +1 -3
- package/dist/es2019/i18n/fi.js +1 -3
- package/dist/es2019/i18n/fr.js +1 -3
- package/dist/es2019/i18n/hu.js +1 -3
- package/dist/es2019/i18n/it.js +1 -3
- package/dist/es2019/i18n/ja.js +1 -3
- package/dist/es2019/i18n/ko.js +1 -3
- package/dist/es2019/i18n/nb.js +1 -3
- package/dist/es2019/i18n/nl.js +1 -3
- package/dist/es2019/i18n/pl.js +1 -3
- package/dist/es2019/i18n/pt_BR.js +1 -3
- package/dist/es2019/i18n/ru.js +1 -3
- package/dist/es2019/i18n/sv.js +1 -3
- package/dist/es2019/i18n/th.js +1 -3
- package/dist/es2019/i18n/tr.js +1 -3
- package/dist/es2019/i18n/uk.js +1 -3
- package/dist/es2019/i18n/vi.js +1 -3
- package/dist/es2019/i18n/zh.js +1 -3
- package/dist/es2019/i18n/zh_TW.js +1 -3
- package/dist/es2019/plugins/index.js +1 -3
- package/dist/es2019/presets/default.js +2 -2
- package/dist/es2019/presets/universal.js +2 -1
- package/dist/es2019/ui/ConfigPanel/ConfigPanel.js +11 -2
- package/dist/es2019/ui/ConfigPanel/constants.js +7 -0
- package/dist/es2019/ui/ConfigPanel/utils.js +35 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +3 -3
- package/dist/esm/composable-editor/editor.js +203 -4
- package/dist/esm/i18n/cs.js +1 -3
- package/dist/esm/i18n/da.js +1 -3
- package/dist/esm/i18n/de.js +1 -3
- package/dist/esm/i18n/en.js +1 -3
- package/dist/esm/i18n/en_GB.js +1 -3
- package/dist/esm/i18n/en_ZZ.js +1 -3
- package/dist/esm/i18n/es.js +1 -3
- package/dist/esm/i18n/fi.js +1 -3
- package/dist/esm/i18n/fr.js +1 -3
- package/dist/esm/i18n/hu.js +1 -3
- package/dist/esm/i18n/it.js +1 -3
- package/dist/esm/i18n/ja.js +1 -3
- package/dist/esm/i18n/ko.js +1 -3
- package/dist/esm/i18n/nb.js +1 -3
- package/dist/esm/i18n/nl.js +1 -3
- package/dist/esm/i18n/pl.js +1 -3
- package/dist/esm/i18n/pt_BR.js +1 -3
- package/dist/esm/i18n/ru.js +1 -3
- package/dist/esm/i18n/sv.js +1 -3
- package/dist/esm/i18n/th.js +1 -3
- package/dist/esm/i18n/tr.js +1 -3
- package/dist/esm/i18n/uk.js +1 -3
- package/dist/esm/i18n/vi.js +1 -3
- package/dist/esm/i18n/zh.js +1 -3
- package/dist/esm/i18n/zh_TW.js +1 -3
- package/dist/esm/plugins/index.js +1 -3
- package/dist/esm/presets/default.js +2 -2
- package/dist/esm/presets/universal.js +2 -1
- package/dist/esm/ui/ConfigPanel/ConfigPanel.js +11 -3
- package/dist/esm/ui/ConfigPanel/constants.js +7 -0
- package/dist/esm/ui/ConfigPanel/utils.js +42 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor-internal.d.ts +2 -1
- package/dist/types/i18n/cs.d.ts +0 -2
- package/dist/types/i18n/da.d.ts +0 -2
- package/dist/types/i18n/de.d.ts +0 -2
- package/dist/types/i18n/en.d.ts +0 -2
- package/dist/types/i18n/en_GB.d.ts +0 -2
- package/dist/types/i18n/en_ZZ.d.ts +0 -2
- package/dist/types/i18n/es.d.ts +0 -2
- package/dist/types/i18n/fi.d.ts +0 -2
- package/dist/types/i18n/fr.d.ts +0 -2
- package/dist/types/i18n/hu.d.ts +0 -2
- package/dist/types/i18n/it.d.ts +0 -2
- package/dist/types/i18n/ja.d.ts +0 -2
- package/dist/types/i18n/ko.d.ts +0 -2
- package/dist/types/i18n/nb.d.ts +0 -2
- package/dist/types/i18n/nl.d.ts +0 -2
- package/dist/types/i18n/pl.d.ts +0 -2
- package/dist/types/i18n/pt_BR.d.ts +0 -2
- package/dist/types/i18n/ru.d.ts +0 -2
- package/dist/types/i18n/sv.d.ts +0 -2
- package/dist/types/i18n/th.d.ts +0 -2
- package/dist/types/i18n/tr.d.ts +0 -2
- package/dist/types/i18n/uk.d.ts +0 -2
- package/dist/types/i18n/vi.d.ts +0 -2
- package/dist/types/i18n/zh.d.ts +0 -2
- package/dist/types/i18n/zh_TW.d.ts +0 -2
- package/dist/types/plugins/index.d.ts +0 -2
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +3 -4
- package/dist/types/ui/ConfigPanel/constants.d.ts +2 -0
- package/dist/types/ui/ConfigPanel/utils.d.ts +2 -1
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +2 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -2
- package/dist/types-ts4.5/i18n/da.d.ts +0 -2
- package/dist/types-ts4.5/i18n/de.d.ts +0 -2
- package/dist/types-ts4.5/i18n/en.d.ts +0 -2
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -2
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -2
- package/dist/types-ts4.5/i18n/es.d.ts +0 -2
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -2
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -2
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -2
- package/dist/types-ts4.5/i18n/it.d.ts +0 -2
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -2
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -2
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -2
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -2
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -2
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -2
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -2
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -2
- package/dist/types-ts4.5/i18n/th.d.ts +0 -2
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -2
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -2
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -2
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -2
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -2
- package/dist/types-ts4.5/plugins/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +3 -4
- package/dist/types-ts4.5/ui/ConfigPanel/constants.d.ts +2 -0
- package/dist/types-ts4.5/ui/ConfigPanel/utils.d.ts +2 -1
- package/package.json +10 -6
- package/dist/cjs/plugins/clear-marks-on-change-to-empty-document/index.js +0 -35
- package/dist/cjs/plugins/code-bidi-warning/index.js +0 -22
- package/dist/cjs/plugins/code-bidi-warning/plugin-key.js +0 -8
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/main.js +0 -44
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +0 -105
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/reducer.js +0 -9
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/types.js +0 -5
- package/dist/es2019/plugins/clear-marks-on-change-to-empty-document/index.js +0 -26
- package/dist/es2019/plugins/code-bidi-warning/index.js +0 -15
- package/dist/es2019/plugins/code-bidi-warning/plugin-key.js +0 -2
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/main.js +0 -41
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +0 -97
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/reducer.js +0 -3
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/types.js +0 -1
- package/dist/esm/plugins/clear-marks-on-change-to-empty-document/index.js +0 -28
- package/dist/esm/plugins/code-bidi-warning/index.js +0 -16
- package/dist/esm/plugins/code-bidi-warning/plugin-key.js +0 -2
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/main.js +0 -38
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +0 -98
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/reducer.js +0 -3
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/types.js +0 -1
- package/dist/types/plugins/clear-marks-on-change-to-empty-document/index.d.ts +0 -7
- package/dist/types/plugins/code-bidi-warning/index.d.ts +0 -8
- package/dist/types/plugins/code-bidi-warning/plugin-key.d.ts +0 -2
- package/dist/types/plugins/code-bidi-warning/pm-plugins/main.d.ts +0 -5
- package/dist/types/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +0 -8
- package/dist/types/plugins/code-bidi-warning/pm-plugins/reducer.d.ts +0 -3
- package/dist/types/plugins/code-bidi-warning/pm-plugins/types.d.ts +0 -6
- package/dist/types-ts4.5/plugins/clear-marks-on-change-to-empty-document/index.d.ts +0 -7
- package/dist/types-ts4.5/plugins/code-bidi-warning/index.d.ts +0 -8
- package/dist/types-ts4.5/plugins/code-bidi-warning/plugin-key.d.ts +0 -2
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/main.d.ts +0 -5
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +0 -8
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/reducer.d.ts +0 -3
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/types.d.ts +0 -6
package/dist/esm/i18n/zh.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': '无效字段',
|
|
31
31
|
'fabric.editor.configPanel.required': '必填字段',
|
|
32
32
|
'fabric.editor.configPanel.submit': '提交',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': '添加决定...',
|
|
34
33
|
'fabric.editor.edit': '编辑',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': '主内容区域,开始键入以输入文本。',
|
|
36
35
|
'fabric.editor.editors': '编辑者',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': '替换',
|
|
50
49
|
'fabric.editor.replaceAll': '全部替换',
|
|
51
50
|
'fabric.editor.replaceWith': '替换为',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition}/{totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': '输入您的操作,使用“@”进行分配。'
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition}/{totalResultsCount}'
|
|
54
52
|
};
|
package/dist/esm/i18n/zh_TW.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': '無效欄位',
|
|
31
31
|
'fabric.editor.configPanel.required': '必要欄位',
|
|
32
32
|
'fabric.editor.configPanel.submit': '提交',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': '新增決定…',
|
|
34
33
|
'fabric.editor.edit': '編輯',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': '主要內容區域,打字即可輸入文字。',
|
|
36
35
|
'fabric.editor.editors': '編輯者',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': '取代',
|
|
50
49
|
'fabric.editor.replaceAll': '全部取代',
|
|
51
50
|
'fabric.editor.replaceWith': '取代為',
|
|
52
|
-
'fabric.editor.resultsCount': '第 {selectedMatchPosition} 個,共 {totalResultsCount} 個'
|
|
53
|
-
'fabric.editor.taskPlaceholder': '輸入動作,使用「@」以指派給他人。'
|
|
51
|
+
'fabric.editor.resultsCount': '第 {selectedMatchPosition} 個,共 {totalResultsCount} 個'
|
|
54
52
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { default as clearMarksOnChangeToEmptyDocumentPlugin } from './clear-marks-on-change-to-empty-document';
|
|
2
1
|
export { default as collabEditPlugin } from './collab-edit';
|
|
3
2
|
export { default as extensionPlugin } from './extension';
|
|
4
3
|
export { default as jiraIssuePlugin } from './jira-issue';
|
|
@@ -15,5 +14,4 @@ export { default as mobileSelectionPlugin } from './mobile-selection';
|
|
|
15
14
|
export { default as undoRedoPlugin } from './undo-redo';
|
|
16
15
|
export { default as avatarGroupPlugin } from './avatar-group';
|
|
17
16
|
export { default as viewUpdateSubscriptionPlugin } from './view-update-subscription';
|
|
18
|
-
export { default as beforePrimaryToolbarPlugin } from './before-primaryToolbar';
|
|
19
|
-
export { default as codeBidiWarningPlugin } from './code-bidi-warning';
|
|
17
|
+
export { default as beforePrimaryToolbarPlugin } from './before-primaryToolbar';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import pastePlugin from '../plugins/paste';
|
|
4
4
|
import { blockTypePlugin } from '@atlaskit/editor-plugin-block-type';
|
|
5
|
-
import
|
|
5
|
+
import { clearMarksOnEmptyDocPlugin } from '@atlaskit/editor-plugin-clear-marks-on-empty-doc';
|
|
6
6
|
import { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
7
7
|
import { textFormattingPlugin } from '@atlaskit/editor-plugin-text-formatting';
|
|
8
8
|
import { betterTypeHistoryPlugin } from '@atlaskit/editor-plugin-better-type-history';
|
|
@@ -53,7 +53,7 @@ export function createDefaultPreset(options) {
|
|
|
53
53
|
return builder.add(p);
|
|
54
54
|
}
|
|
55
55
|
return builder;
|
|
56
|
-
}).add([blockTypePlugin, options.blockType]).add(
|
|
56
|
+
}).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).maybeAdd(annotationPlugin, function (p, builder) {
|
|
57
57
|
if (options.annotationProviders) {
|
|
58
58
|
return builder.add([p, options.annotationProviders]);
|
|
59
59
|
}
|
|
@@ -2,7 +2,8 @@ import _typeof from "@babel/runtime/helpers/typeof";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
-
import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, jiraIssuePlugin, alignmentPlugin, customAutoformatPlugin, feedbackDialogPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin
|
|
5
|
+
import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, jiraIssuePlugin, alignmentPlugin, customAutoformatPlugin, feedbackDialogPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin } from '../plugins';
|
|
6
|
+
import { codeBidiWarningPlugin } from '@atlaskit/editor-plugin-code-bidi-warning';
|
|
6
7
|
import { tasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
|
|
7
8
|
import { panelPlugin } from '@atlaskit/editor-plugin-panel';
|
|
8
9
|
import { textColorPlugin } from '@atlaskit/editor-plugin-text-color';
|
|
@@ -7,6 +7,8 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
7
7
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
8
8
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
9
9
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
12
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
11
13
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
14
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
@@ -31,6 +33,8 @@ import WithPluginState from '../WithPluginState';
|
|
|
31
33
|
import FormContent from './FormContent';
|
|
32
34
|
import { messages } from './messages';
|
|
33
35
|
import { FormErrorBoundary } from './FormErrorBoundary';
|
|
36
|
+
import { getLoggedParameters } from './utils';
|
|
37
|
+
import { ALLOWED_LOGGED_MACRO_PARAMS } from './constants';
|
|
34
38
|
function ConfigForm(_ref) {
|
|
35
39
|
var canSave = _ref.canSave,
|
|
36
40
|
errorMessage = _ref.errorMessage,
|
|
@@ -327,16 +331,20 @@ var ConfigPanel = /*#__PURE__*/function (_React$Component) {
|
|
|
327
331
|
value: function componentWillUnmount() {
|
|
328
332
|
var _this$props4 = this.props,
|
|
329
333
|
createAnalyticsEvent = _this$props4.createAnalyticsEvent,
|
|
330
|
-
extensionManifest = _this$props4.extensionManifest
|
|
334
|
+
extensionManifest = _this$props4.extensionManifest,
|
|
335
|
+
fields = _this$props4.fields;
|
|
336
|
+
var currentParameters = this.state.currentParameters;
|
|
331
337
|
fireAnalyticsEvent(createAnalyticsEvent)({
|
|
332
338
|
payload: {
|
|
333
339
|
action: ACTION.CLOSED,
|
|
334
340
|
actionSubject: ACTION_SUBJECT.CONFIG_PANEL,
|
|
335
341
|
eventType: EVENT_TYPE.UI,
|
|
336
|
-
attributes: {
|
|
342
|
+
attributes: _objectSpread({
|
|
337
343
|
extensionKey: extensionManifest === null || extensionManifest === void 0 ? void 0 : extensionManifest.key,
|
|
338
344
|
extensionType: extensionManifest === null || extensionManifest === void 0 ? void 0 : extensionManifest.type
|
|
339
|
-
}
|
|
345
|
+
}, extensionManifest !== null && extensionManifest !== void 0 && extensionManifest.key && ALLOWED_LOGGED_MACRO_PARAMS[extensionManifest.key] ? {
|
|
346
|
+
parameters: getLoggedParameters(extensionManifest.key, currentParameters, fields)
|
|
347
|
+
} : {})
|
|
340
348
|
}
|
|
341
349
|
});
|
|
342
350
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Allowlist of { macroKey: parameterName[] } for analytics logging
|
|
2
|
+
export var ALLOWED_LOGGED_MACRO_PARAMS = {
|
|
3
|
+
children: ['all', 'first', 'depth', 'style', 'excerptType', 'sort', 'reverse'],
|
|
4
|
+
'recently-updated': ['width', 'types', 'max', 'theme', 'showProfilePic', 'hideHeading'],
|
|
5
|
+
excerpt: ['hidden']
|
|
6
|
+
};
|
|
7
|
+
export var ALLOWED_PARAM_TYPES = ['enum', 'number', 'boolean'];
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1
4
|
import { ValidationError } from './types';
|
|
5
|
+
import { ALLOWED_LOGGED_MACRO_PARAMS, ALLOWED_PARAM_TYPES } from './constants';
|
|
2
6
|
export var validate = function validate(field, value) {
|
|
3
7
|
return validateRequired(field, value);
|
|
4
8
|
};
|
|
@@ -47,4 +51,42 @@ export var isDuplicateField = function isDuplicateField(key) {
|
|
|
47
51
|
};
|
|
48
52
|
export var getNameFromDuplicateField = function getNameFromDuplicateField(key) {
|
|
49
53
|
return key.replace(duplicateFieldRegex, '');
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
// An overly cautious parser for sanitizing configuration parameters of UGC
|
|
57
|
+
var parseParamType = function parseParamType(paramValue, paramField) {
|
|
58
|
+
if (paramValue && paramField) {
|
|
59
|
+
if (paramField.type === 'string') {
|
|
60
|
+
if (paramField.name === 'types') {
|
|
61
|
+
// Parse types field as an array of valid content types
|
|
62
|
+
var contentTypes = ['page', 'blogpost', 'comment', 'attachment'];
|
|
63
|
+
return paramValue && paramValue.split(',').map(function (type) {
|
|
64
|
+
return type.trim();
|
|
65
|
+
}).filter(function (type) {
|
|
66
|
+
return contentTypes.includes(type);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
if (paramField.name === 'width') {
|
|
70
|
+
return parseFloat(paramValue);
|
|
71
|
+
}
|
|
72
|
+
// Strings are very risky - return empty string in case anything slips through
|
|
73
|
+
return '';
|
|
74
|
+
}
|
|
75
|
+
if (ALLOWED_PARAM_TYPES.includes(paramField.type)) {
|
|
76
|
+
// The param types defined here are already parsed and safe to log
|
|
77
|
+
return paramValue;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
// Safety net
|
|
81
|
+
return null;
|
|
82
|
+
};
|
|
83
|
+
export var getLoggedParameters = function getLoggedParameters(macroKey, currentParams, macroFields) {
|
|
84
|
+
// Get the parameters only defined in the allowlist of logged macro/parameter keys
|
|
85
|
+
return Object.keys(currentParams).filter(function (paramKey) {
|
|
86
|
+
return ALLOWED_LOGGED_MACRO_PARAMS[macroKey].includes(paramKey);
|
|
87
|
+
}).reduce(function (obj, param) {
|
|
88
|
+
return _objectSpread(_objectSpread({}, obj), {}, _defineProperty({}, param, parseParamType(currentParams[param], macroFields === null || macroFields === void 0 ? void 0 : macroFields.find(function (field) {
|
|
89
|
+
return field.name === param;
|
|
90
|
+
}))));
|
|
91
|
+
}, {});
|
|
50
92
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "189.4.
|
|
2
|
+
export var version = "189.4.12";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { jsx } from '@emotion/react';
|
|
2
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
4
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
@@ -30,5 +31,5 @@ interface InternalProps {
|
|
|
30
31
|
* EditorInternalComponent is used to capture the common component
|
|
31
32
|
* from the `render` method of `Editor` and share it with `EditorNext`.
|
|
32
33
|
*/
|
|
33
|
-
export declare
|
|
34
|
+
export declare const EditorInternal: import("react").MemoExoticComponent<({ props, handleAnalyticsEvent, createAnalyticsEvent, handleSave, editorActions, providerFactory, onEditorCreated, onEditorDestroyed, preset, }: InternalProps) => jsx.JSX.Element>;
|
|
34
35
|
export {};
|
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -49,6 +48,5 @@ declare const _default: {
|
|
|
49
48
|
'fabric.editor.replaceAll': string;
|
|
50
49
|
'fabric.editor.replaceWith': string;
|
|
51
50
|
'fabric.editor.resultsCount': string;
|
|
52
|
-
'fabric.editor.taskPlaceholder': string;
|
|
53
51
|
};
|
|
54
52
|
export default _default;
|
package/dist/types/i18n/da.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/de.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/en.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ declare const _default: {
|
|
|
29
29
|
'fabric.editor.configPanel.invalid': string;
|
|
30
30
|
'fabric.editor.configPanel.required': string;
|
|
31
31
|
'fabric.editor.configPanel.submit': string;
|
|
32
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
33
32
|
'fabric.editor.edit': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
@@ -50,6 +49,5 @@ declare const _default: {
|
|
|
50
49
|
'fabric.editor.replaceAll': string;
|
|
51
50
|
'fabric.editor.replaceWith': string;
|
|
52
51
|
'fabric.editor.resultsCount': string;
|
|
53
|
-
'fabric.editor.taskPlaceholder': string;
|
|
54
52
|
};
|
|
55
53
|
export default _default;
|
|
@@ -29,7 +29,6 @@ declare const _default: {
|
|
|
29
29
|
'fabric.editor.configPanel.invalid': string;
|
|
30
30
|
'fabric.editor.configPanel.required': string;
|
|
31
31
|
'fabric.editor.configPanel.submit': string;
|
|
32
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
33
32
|
'fabric.editor.edit': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
@@ -50,6 +49,5 @@ declare const _default: {
|
|
|
50
49
|
'fabric.editor.replaceAll': string;
|
|
51
50
|
'fabric.editor.replaceWith': string;
|
|
52
51
|
'fabric.editor.resultsCount': string;
|
|
53
|
-
'fabric.editor.taskPlaceholder': string;
|
|
54
52
|
};
|
|
55
53
|
export default _default;
|
|
@@ -29,7 +29,6 @@ declare const _default: {
|
|
|
29
29
|
'fabric.editor.configPanel.invalid': string;
|
|
30
30
|
'fabric.editor.configPanel.required': string;
|
|
31
31
|
'fabric.editor.configPanel.submit': string;
|
|
32
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
33
32
|
'fabric.editor.edit': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
@@ -50,6 +49,5 @@ declare const _default: {
|
|
|
50
49
|
'fabric.editor.replaceAll': string;
|
|
51
50
|
'fabric.editor.replaceWith': string;
|
|
52
51
|
'fabric.editor.resultsCount': string;
|
|
53
|
-
'fabric.editor.taskPlaceholder': string;
|
|
54
52
|
};
|
|
55
53
|
export default _default;
|
package/dist/types/i18n/es.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/fi.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/fr.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/hu.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/it.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/ja.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/ko.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/nb.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/nl.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/pl.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/ru.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/sv.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/th.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/tr.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/uk.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/vi.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
package/dist/types/i18n/zh.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { default as clearMarksOnChangeToEmptyDocumentPlugin } from './clear-marks-on-change-to-empty-document';
|
|
2
1
|
export { default as collabEditPlugin } from './collab-edit';
|
|
3
2
|
export { default as extensionPlugin } from './extension';
|
|
4
3
|
export { default as jiraIssuePlugin } from './jira-issue';
|
|
@@ -16,4 +15,3 @@ export { default as undoRedoPlugin } from './undo-redo';
|
|
|
16
15
|
export { default as avatarGroupPlugin } from './avatar-group';
|
|
17
16
|
export { default as viewUpdateSubscriptionPlugin } from './view-update-subscription';
|
|
18
17
|
export { default as beforePrimaryToolbarPlugin } from './before-primaryToolbar';
|
|
19
|
-
export { default as codeBidiWarningPlugin } from './code-bidi-warning';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
import type { ExtensionManifest } from '@atlaskit/editor-common/extensions';
|
|
4
|
-
import {
|
|
5
|
-
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import type { ExtensionManifest, FieldDefinition, Parameters, OnSaveCallback } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
6
5
|
type Props = {
|
|
7
6
|
extensionManifest?: ExtensionManifest;
|
|
8
7
|
fields?: FieldDefinition[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Option, FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
1
|
+
import type { Option, FieldDefinition, Parameters } from '@atlaskit/editor-common/extensions';
|
|
2
2
|
import { ValidationError } from './types';
|
|
3
3
|
export declare const validate: <T>(field: Partial<FieldDefinition>, value: T) => ValidationError | undefined;
|
|
4
4
|
type ValidationProps = {
|
|
@@ -10,4 +10,5 @@ export declare const getOptionFromValue: (options: Option[], value: string | str
|
|
|
10
10
|
export declare const getSafeParentedName: (name: string, parentName?: string) => string;
|
|
11
11
|
export declare const isDuplicateField: (key: string) => boolean;
|
|
12
12
|
export declare const getNameFromDuplicateField: (key: string) => string;
|
|
13
|
+
export declare const getLoggedParameters: (macroKey: string, currentParams: Parameters, macroFields?: FieldDefinition[]) => {};
|
|
13
14
|
export {};
|