@atlaskit/editor-core 98.1.12 → 98.2.1
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/es2015/create-editor/ReactEditorView.d.ts +7 -0
- package/dist/es2015/create-editor/ReactEditorView.js +29 -1
- package/dist/es2015/create-editor/ReactEditorView.js.map +1 -1
- package/dist/es2015/create-editor/create-plugins-list.d.ts +1 -1
- package/dist/es2015/create-editor/create-plugins-list.js +4 -3
- package/dist/es2015/create-editor/create-plugins-list.js.map +1 -1
- package/dist/es2015/editor.js +3 -3
- package/dist/es2015/editor.js.map +1 -1
- package/dist/es2015/event-dispatcher/index.d.ts +6 -6
- package/dist/es2015/event-dispatcher/index.js.map +1 -1
- package/dist/es2015/plugins/analytics/index.d.ts +7 -0
- package/dist/es2015/plugins/analytics/index.js +8 -0
- package/dist/es2015/plugins/analytics/index.js.map +1 -0
- package/dist/es2015/plugins/analytics/plugin.d.ts +8 -0
- package/dist/es2015/plugins/analytics/plugin.js +52 -0
- package/dist/es2015/plugins/analytics/plugin.js.map +1 -0
- package/dist/es2015/plugins/analytics/types.d.ts +118 -0
- package/dist/es2015/plugins/analytics/types.js +1 -0
- package/dist/es2015/plugins/analytics/types.js.map +1 -0
- package/dist/es2015/plugins/analytics/utils.d.ts +5 -0
- package/dist/es2015/plugins/analytics/utils.js +6 -0
- package/dist/es2015/plugins/analytics/utils.js.map +1 -0
- package/dist/es2015/plugins/block-type/types.d.ts +1 -1
- package/dist/es2015/plugins/extension/ui/Extension/Extension/styles.d.ts +1 -1
- package/dist/es2015/plugins/grid/index.d.ts +1 -1
- package/dist/es2015/plugins/index.d.ts +1 -0
- package/dist/es2015/plugins/index.js +1 -0
- package/dist/es2015/plugins/index.js.map +1 -1
- package/dist/es2015/plugins/mentions/index.js +4 -0
- package/dist/es2015/plugins/mentions/index.js.map +1 -1
- package/dist/es2015/plugins/table/pm-plugins/main.d.ts +1 -1
- package/dist/es2015/plugins/table/utils/fix-tables.js +21 -2
- package/dist/es2015/plugins/table/utils/fix-tables.js.map +1 -1
- package/dist/es2015/types/editor-appearance-component.d.ts +2 -0
- package/dist/es2015/types/editor-plugin.d.ts +2 -0
- package/dist/es2015/ui/Appearance/Chromeless.js +2 -2
- package/dist/es2015/ui/Appearance/Chromeless.js.map +1 -1
- package/dist/es2015/ui/Appearance/Comment.js +3 -3
- package/dist/es2015/ui/Appearance/Comment.js.map +1 -1
- package/dist/es2015/ui/Appearance/FullPage.js +3 -3
- package/dist/es2015/ui/Appearance/FullPage.js.map +1 -1
- package/dist/es2015/ui/Appearance/Message.js +3 -3
- package/dist/es2015/ui/Appearance/Message.js.map +1 -1
- package/dist/es2015/ui/Appearance/Mobile.js +2 -2
- package/dist/es2015/ui/Appearance/Mobile.js.map +1 -1
- package/dist/es2015/ui/PluginSlot/index.d.ts +2 -0
- package/dist/es2015/ui/PluginSlot/index.js +2 -1
- package/dist/es2015/ui/PluginSlot/index.js.map +1 -1
- package/dist/es2015/ui/Toolbar/index.d.ts +2 -0
- package/dist/es2015/ui/Toolbar/index.js +2 -1
- package/dist/es2015/ui/Toolbar/index.js.map +1 -1
- package/dist/es5/create-editor/ReactEditorView.d.ts +7 -0
- package/dist/es5/create-editor/ReactEditorView.js +29 -1
- package/dist/es5/create-editor/ReactEditorView.js.map +1 -1
- package/dist/es5/create-editor/create-plugins-list.d.ts +1 -1
- package/dist/es5/create-editor/create-plugins-list.js +3 -2
- package/dist/es5/create-editor/create-plugins-list.js.map +1 -1
- package/dist/es5/editor.js +3 -3
- package/dist/es5/editor.js.map +1 -1
- package/dist/es5/event-dispatcher/index.d.ts +6 -6
- package/dist/es5/event-dispatcher/index.js.map +1 -1
- package/dist/es5/plugins/analytics/index.d.ts +7 -0
- package/dist/es5/plugins/analytics/index.js +11 -0
- package/dist/es5/plugins/analytics/index.js.map +1 -0
- package/dist/es5/plugins/analytics/plugin.d.ts +8 -0
- package/dist/es5/plugins/analytics/plugin.js +55 -0
- package/dist/es5/plugins/analytics/plugin.js.map +1 -0
- package/dist/es5/plugins/analytics/types.d.ts +118 -0
- package/dist/es5/plugins/analytics/types.js +3 -0
- package/dist/es5/plugins/analytics/types.js.map +1 -0
- package/dist/es5/plugins/analytics/utils.d.ts +5 -0
- package/dist/es5/plugins/analytics/utils.js +8 -0
- package/dist/es5/plugins/analytics/utils.js.map +1 -0
- package/dist/es5/plugins/block-type/types.d.ts +1 -1
- package/dist/es5/plugins/extension/ui/Extension/Extension/styles.d.ts +1 -1
- package/dist/es5/plugins/grid/index.d.ts +1 -1
- package/dist/es5/plugins/index.d.ts +1 -0
- package/dist/es5/plugins/index.js +2 -0
- package/dist/es5/plugins/index.js.map +1 -1
- package/dist/es5/plugins/mentions/index.js +4 -0
- package/dist/es5/plugins/mentions/index.js.map +1 -1
- package/dist/es5/plugins/table/pm-plugins/main.d.ts +1 -1
- package/dist/es5/plugins/table/utils/fix-tables.js +21 -2
- package/dist/es5/plugins/table/utils/fix-tables.js.map +1 -1
- package/dist/es5/types/editor-appearance-component.d.ts +2 -0
- package/dist/es5/types/editor-plugin.d.ts +2 -0
- package/dist/es5/ui/Appearance/Chromeless.js +2 -2
- package/dist/es5/ui/Appearance/Chromeless.js.map +1 -1
- package/dist/es5/ui/Appearance/Comment.js +3 -3
- package/dist/es5/ui/Appearance/Comment.js.map +1 -1
- package/dist/es5/ui/Appearance/FullPage.js +3 -3
- package/dist/es5/ui/Appearance/FullPage.js.map +1 -1
- package/dist/es5/ui/Appearance/Message.js +3 -3
- package/dist/es5/ui/Appearance/Message.js.map +1 -1
- package/dist/es5/ui/Appearance/Mobile.js +2 -2
- package/dist/es5/ui/Appearance/Mobile.js.map +1 -1
- package/dist/es5/ui/PluginSlot/index.d.ts +2 -0
- package/dist/es5/ui/PluginSlot/index.js +2 -1
- package/dist/es5/ui/PluginSlot/index.js.map +1 -1
- package/dist/es5/ui/Toolbar/index.d.ts +2 -0
- package/dist/es5/ui/Toolbar/index.js +2 -1
- package/dist/es5/ui/Toolbar/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +3 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
|
+
var sendLogs_1 = require("../../../utils/sendLogs");
|
|
4
5
|
var utils_1 = require("../utils");
|
|
5
6
|
var fixTable = function (table, tablePos, tr) {
|
|
6
7
|
var rows = [];
|
|
@@ -35,12 +36,30 @@ var fixTable = function (table, tablePos, tr) {
|
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
// re-create the row with decremented rowspans @see ED-5802
|
|
38
|
-
|
|
39
|
+
if (cells.length) {
|
|
40
|
+
rows[j] = row.type.createChecked(row.attrs, cells, row.marks);
|
|
41
|
+
}
|
|
39
42
|
}
|
|
40
43
|
}
|
|
41
44
|
}
|
|
45
|
+
// remove the table if it's not fixable
|
|
42
46
|
if (!rows.length) {
|
|
43
|
-
|
|
47
|
+
// ED-6141: send analytics event
|
|
48
|
+
sendLogs_1.sendLogs({
|
|
49
|
+
events: [
|
|
50
|
+
{
|
|
51
|
+
name: 'atlaskit.fabric.editor.fixtable',
|
|
52
|
+
product: 'atlaskit',
|
|
53
|
+
properties: {
|
|
54
|
+
message: 'Delete table with empty rows',
|
|
55
|
+
},
|
|
56
|
+
serverTime: new Date().getTime(),
|
|
57
|
+
server: 'local',
|
|
58
|
+
user: '-',
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
});
|
|
62
|
+
return tr.delete(tablePos, tablePos + table.nodeSize);
|
|
44
63
|
}
|
|
45
64
|
var newTable = table.type.createChecked(table.attrs, rows, table.marks);
|
|
46
65
|
return tr.replaceWith(tablePos, tablePos + table.nodeSize, newTable);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fix-tables.js","sourceRoot":"","sources":["../../../../../src/plugins/table/utils/fix-tables.ts"],"names":[],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,IACjB;SACD,OAAO,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;AACpC,CAAC,CAAC"}
|
|
@@ -5,6 +5,7 @@ import { EventDispatcher } from '../event-dispatcher';
|
|
|
5
5
|
import EditorActions from '../actions';
|
|
6
6
|
import { UIComponentFactory, ToolbarUIComponentFactory, ReactComponents, InsertMenuCustomItem } from '../types';
|
|
7
7
|
import { CollabEditOptions } from '../plugins/collab-edit';
|
|
8
|
+
import { AnalyticsEventPayload } from '../plugins/analytics';
|
|
8
9
|
export interface EditorAppearanceComponentProps {
|
|
9
10
|
onUiReady?: (ref: any) => void;
|
|
10
11
|
onSave?: (editorView: EditorView) => void;
|
|
@@ -14,6 +15,7 @@ export interface EditorAppearanceComponentProps {
|
|
|
14
15
|
editorDOMElement: JSX.Element;
|
|
15
16
|
editorView?: EditorView;
|
|
16
17
|
eventDispatcher?: EventDispatcher;
|
|
18
|
+
dispatchAnalyticsEvent?: (payload: AnalyticsEventPayload) => void;
|
|
17
19
|
maxHeight?: number;
|
|
18
20
|
contentComponents?: UIComponentFactory[];
|
|
19
21
|
primaryToolbarComponents?: ToolbarUIComponentFactory[];
|
|
@@ -12,6 +12,7 @@ import { FloatingToolbarHandler } from '../plugins/floating-toolbar/types';
|
|
|
12
12
|
import { PortalProviderAPI } from '../ui/PortalProvider';
|
|
13
13
|
import { NodeConfig, MarkConfig } from './editor-config';
|
|
14
14
|
import { EditorProps, EditorAppearance } from './editor-props';
|
|
15
|
+
import { AnalyticsEventPayload } from '../plugins/analytics';
|
|
15
16
|
export declare type PMPluginFactory = (params: {
|
|
16
17
|
schema: Schema;
|
|
17
18
|
props: EditorProps;
|
|
@@ -28,6 +29,7 @@ export declare type UiComponentFactoryParams = {
|
|
|
28
29
|
editorView: EditorView;
|
|
29
30
|
editorActions: EditorActions;
|
|
30
31
|
eventDispatcher: EventDispatcher;
|
|
32
|
+
dispatchAnalyticsEvent?: (payload: AnalyticsEventPayload) => void;
|
|
31
33
|
providerFactory: ProviderFactory;
|
|
32
34
|
appearance: EditorAppearance;
|
|
33
35
|
popupsMountPoint?: HTMLElement;
|
|
@@ -27,13 +27,13 @@ var Editor = /** @class */ (function (_super) {
|
|
|
27
27
|
_this.appearance = 'chromeless';
|
|
28
28
|
_this.renderChrome = function (_a) {
|
|
29
29
|
var maxContentSize = _a.maxContentSize;
|
|
30
|
-
var _b = _this.props, editorDOMElement = _b.editorDOMElement, editorView = _b.editorView, editorActions = _b.editorActions, eventDispatcher = _b.eventDispatcher, providerFactory = _b.providerFactory, contentComponents = _b.contentComponents, customContentComponents = _b.customContentComponents, maxHeight = _b.maxHeight, popupsMountPoint = _b.popupsMountPoint, popupsBoundariesElement = _b.popupsBoundariesElement, popupsScrollableElement = _b.popupsScrollableElement, disabled = _b.disabled;
|
|
30
|
+
var _b = _this.props, editorDOMElement = _b.editorDOMElement, editorView = _b.editorView, editorActions = _b.editorActions, eventDispatcher = _b.eventDispatcher, providerFactory = _b.providerFactory, contentComponents = _b.contentComponents, customContentComponents = _b.customContentComponents, maxHeight = _b.maxHeight, popupsMountPoint = _b.popupsMountPoint, popupsBoundariesElement = _b.popupsBoundariesElement, popupsScrollableElement = _b.popupsScrollableElement, disabled = _b.disabled, dispatchAnalyticsEvent = _b.dispatchAnalyticsEvent;
|
|
31
31
|
var maxContentSizeReached = maxContentSize && maxContentSize.maxContentSizeReached;
|
|
32
32
|
return (React.createElement(WithFlash_1.default, { animate: maxContentSizeReached },
|
|
33
33
|
React.createElement(ChromelessEditor, { maxHeight: maxHeight, innerRef: function (ref) { return (_this.containerElement = ref); } },
|
|
34
34
|
React.createElement(ContentArea, null,
|
|
35
35
|
customContentComponents,
|
|
36
|
-
React.createElement(PluginSlot_1.default, { editorView: editorView, editorActions: editorActions, eventDispatcher: eventDispatcher, providerFactory: providerFactory, appearance: _this.appearance, items: contentComponents, popupsMountPoint: popupsMountPoint, popupsBoundariesElement: popupsBoundariesElement, popupsScrollableElement: popupsScrollableElement, containerElement: _this.containerElement, disabled: !!disabled }),
|
|
36
|
+
React.createElement(PluginSlot_1.default, { editorView: editorView, editorActions: editorActions, eventDispatcher: eventDispatcher, providerFactory: providerFactory, appearance: _this.appearance, items: contentComponents, popupsMountPoint: popupsMountPoint, popupsBoundariesElement: popupsBoundariesElement, popupsScrollableElement: popupsScrollableElement, containerElement: _this.containerElement, disabled: !!disabled, dispatchAnalyticsEvent: dispatchAnalyticsEvent }),
|
|
37
37
|
editorDOMElement))));
|
|
38
38
|
};
|
|
39
39
|
return _this;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chromeless.js","sourceRoot":"","sources":["../../../../src/ui/Appearance/Chromeless.tsx"],"names":[],"mappings":";;;AAAA,6BAA+B;AAC/B,uDAAuC;AACvC,4CAAuC;AACvC,sDAAiD;AACjD,kDAA6C;AAE7C,mEAAsF;AACtF,oCAA4C;AAC5C,0CAAqC;AAOrC,yCAAyC;AACzC,IAAM,gBAAgB,GAAQ,2BAAM,CAAC,GAAG,6XAAA,kEAIpC;IAGM,+CAEN,EAAe,6LAUlB,KAfG,UAAC,KAA4B;IAC7B,OAAA,KAAK,CAAC,SAAS;QACb,CAAC,CAAC,cAAc,GAAG,KAAK,CAAC,SAAS,GAAG,KAAK;QAC1C,CAAC,CAAC,EAAE;AAFN,CAEM,EAEN,wBAAe,CAUlB,CAAC;AACF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,yCAAyC;AACzC,IAAM,WAAW,GAAG,2BAAM,CAAC,uBAAa,CAAC,6EAAA,EAAE,IAAA,CAAC;AAC5C,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC;AAExC;IAAoC,kCAGnC;IAHD;QAAA,
|
|
1
|
+
{"version":3,"file":"Chromeless.js","sourceRoot":"","sources":["../../../../src/ui/Appearance/Chromeless.tsx"],"names":[],"mappings":";;;AAAA,6BAA+B;AAC/B,uDAAuC;AACvC,4CAAuC;AACvC,sDAAiD;AACjD,kDAA6C;AAE7C,mEAAsF;AACtF,o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AChC,UAAU,EAAE,KAAI,CAAC,UAAU,EAC3B,KAAK,EAAE,iBAAiB,EACxB,gBAAgB,EAAE,gBAAgB,EAClC,uBAAuB,EAAE,uBAAuB,EAChD,uBAAuB,EAAE,uBAAuB,EAChD,gBAAgB,EAAE,KAAI,CAAC,gBAAgB,EACvC,QAAQ,EAAE,CAAC,CAAC,QAAQ,EACpB,sBAAsB,EAAE,sBAAsB,GAC9C;wBACD,gBAAgB,CACL,CACG,CACT,CACb,CAAC;QACJ,CAAC,CAAC;;IAUJ,CAAC;IARC,uBAAM,GAAN;QACE,OAAO,CACL,oBAAC,yBAAe,IACd,OAAO,EAAE,EAAE,cAAc,EAAE,4BAAuB,EAAE,EACpD,MAAM,EAAE,IAAI,CAAC,YAAY,GACzB,CACH,CAAC;IACJ,CAAC;IA5DM,kBAAW,GAAG,4BAA4B,CAAC;IA6DpD,aAAC;CAAA,AAjED,CAAoC,KAAK,CAAC,SAAS,GAiElD;kBAjEoB,MAAM"}
|
|
@@ -58,12 +58,12 @@ var Editor = /** @class */ (function (_super) {
|
|
|
58
58
|
};
|
|
59
59
|
_this.renderChrome = function (_a) {
|
|
60
60
|
var maxContentSize = _a.maxContentSize, mediaState = _a.mediaState;
|
|
61
|
-
var _b = _this.props, editorDOMElement = _b.editorDOMElement, editorView = _b.editorView, editorActions = _b.editorActions, eventDispatcher = _b.eventDispatcher, providerFactory = _b.providerFactory, contentComponents = _b.contentComponents, customContentComponents = _b.customContentComponents, customPrimaryToolbarComponents = _b.customPrimaryToolbarComponents, primaryToolbarComponents = _b.primaryToolbarComponents, customSecondaryToolbarComponents = _b.customSecondaryToolbarComponents, popupsMountPoint = _b.popupsMountPoint, popupsBoundariesElement = _b.popupsBoundariesElement, popupsScrollableElement = _b.popupsScrollableElement, maxHeight = _b.maxHeight, onSave = _b.onSave, onCancel = _b.onCancel, disabled = _b.disabled;
|
|
61
|
+
var _b = _this.props, editorDOMElement = _b.editorDOMElement, editorView = _b.editorView, editorActions = _b.editorActions, eventDispatcher = _b.eventDispatcher, providerFactory = _b.providerFactory, contentComponents = _b.contentComponents, customContentComponents = _b.customContentComponents, customPrimaryToolbarComponents = _b.customPrimaryToolbarComponents, primaryToolbarComponents = _b.primaryToolbarComponents, customSecondaryToolbarComponents = _b.customSecondaryToolbarComponents, popupsMountPoint = _b.popupsMountPoint, popupsBoundariesElement = _b.popupsBoundariesElement, popupsScrollableElement = _b.popupsScrollableElement, maxHeight = _b.maxHeight, onSave = _b.onSave, onCancel = _b.onCancel, disabled = _b.disabled, dispatchAnalyticsEvent = _b.dispatchAnalyticsEvent;
|
|
62
62
|
var maxContentSizeReached = maxContentSize && maxContentSize.maxContentSizeReached;
|
|
63
63
|
return (React.createElement(WithFlash_1.default, { animate: maxContentSizeReached },
|
|
64
64
|
React.createElement(CommentEditor, { maxHeight: maxHeight, className: "akEditor" },
|
|
65
65
|
React.createElement(MainToolbar, null,
|
|
66
|
-
React.createElement(Toolbar_1.default, { editorView: editorView, editorActions: editorActions, eventDispatcher: eventDispatcher, providerFactory: providerFactory, appearance: _this.appearance, items: primaryToolbarComponents, popupsMountPoint: popupsMountPoint, popupsBoundariesElement: popupsBoundariesElement, popupsScrollableElement: popupsScrollableElement, disabled: !!disabled }),
|
|
66
|
+
React.createElement(Toolbar_1.default, { editorView: editorView, editorActions: editorActions, eventDispatcher: eventDispatcher, providerFactory: providerFactory, appearance: _this.appearance, items: primaryToolbarComponents, popupsMountPoint: popupsMountPoint, popupsBoundariesElement: popupsBoundariesElement, popupsScrollableElement: popupsScrollableElement, disabled: !!disabled, dispatchAnalyticsEvent: dispatchAnalyticsEvent }),
|
|
67
67
|
React.createElement(MainToolbarCustomComponentsSlot, null, customPrimaryToolbarComponents)),
|
|
68
68
|
React.createElement(Addon_1.ClickAreaBlock, { editorView: editorView },
|
|
69
69
|
React.createElement(editor_common_1.WidthConsumer, null, function (_a) {
|
|
@@ -72,7 +72,7 @@ var Editor = /** @class */ (function (_super) {
|
|
|
72
72
|
'less-margin': width < editor_common_1.akEditorMobileBreakoutPoint,
|
|
73
73
|
}) },
|
|
74
74
|
customContentComponents,
|
|
75
|
-
React.createElement(PluginSlot_1.default, { editorView: editorView, editorActions: editorActions, eventDispatcher: eventDispatcher, providerFactory: providerFactory, appearance: _this.appearance, items: contentComponents, popupsMountPoint: popupsMountPoint, popupsBoundariesElement: popupsBoundariesElement, popupsScrollableElement: popupsScrollableElement, containerElement: _this.containerElement, disabled: !!disabled }),
|
|
75
|
+
React.createElement(PluginSlot_1.default, { editorView: editorView, editorActions: editorActions, eventDispatcher: eventDispatcher, dispatchAnalyticsEvent: dispatchAnalyticsEvent, providerFactory: providerFactory, appearance: _this.appearance, items: contentComponents, popupsMountPoint: popupsMountPoint, popupsBoundariesElement: popupsBoundariesElement, popupsScrollableElement: popupsScrollableElement, containerElement: _this.containerElement, disabled: !!disabled }),
|
|
76
76
|
editorDOMElement));
|
|
77
77
|
})),
|
|
78
78
|
React.createElement(WidthEmitter_1.default, { editorView: editorView, contentArea: _this.containerElement })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Comment.js","sourceRoot":"","sources":["../../../../src/ui/Appearance/Comment.tsx"],"names":[],"mappings":";;;AAAA,6BAA+B;AAC/B,uDAAuC;AACvC,2CAAuD;AACvD,yCAAiE;AACjE,sCAAiC;AACjC,4CAAuC;AACvC,sDAAiD;AACjD,kDAA6C;AAE7C,mEAAsF;AACtF,4DAAiF;AACjF,kCAA0C;AAC1C,wDAAyE;AACzE,0CAAqC;AACrC,yDAGiC;AACjC,gDAA2C;AAC3C,2CAAiD;AACjD,uCAAyC;AAMzC,IAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,IAAM,0BAA0B,GAAG,CAAC,CAAC;AAErC,yCAAyC;AACzC,IAAM,aAAa,GAAQ,2BAAM,CAAC,GAAG,2jBAAA,mGAKlB,EAA0B,KAAM,EAA0B,kOAQzE;IAGM,iDACY,EAAU,iDAEb,EAAc,0DAIhC,KAlBkB,0BAA0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lD;kBA9IoB,MAAM"}
|
|
@@ -78,11 +78,11 @@ var Editor = /** @class */ (function (_super) {
|
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
Editor.prototype.render = function () {
|
|
81
|
-
var _a = this.props, editorDOMElement = _a.editorDOMElement, editorView = _a.editorView, editorActions = _a.editorActions, eventDispatcher = _a.eventDispatcher, providerFactory = _a.providerFactory, primaryToolbarComponents = _a.primaryToolbarComponents, contentComponents = _a.contentComponents, customPrimaryToolbarComponents = _a.customPrimaryToolbarComponents, customContentComponents = _a.customContentComponents, popupsMountPoint = _a.popupsMountPoint, popupsBoundariesElement = _a.popupsBoundariesElement, popupsScrollableElement = _a.popupsScrollableElement, disabled = _a.disabled, collabEdit = _a.collabEdit;
|
|
81
|
+
var _a = this.props, editorDOMElement = _a.editorDOMElement, editorView = _a.editorView, editorActions = _a.editorActions, eventDispatcher = _a.eventDispatcher, providerFactory = _a.providerFactory, primaryToolbarComponents = _a.primaryToolbarComponents, contentComponents = _a.contentComponents, customPrimaryToolbarComponents = _a.customPrimaryToolbarComponents, customContentComponents = _a.customContentComponents, popupsMountPoint = _a.popupsMountPoint, popupsBoundariesElement = _a.popupsBoundariesElement, popupsScrollableElement = _a.popupsScrollableElement, disabled = _a.disabled, collabEdit = _a.collabEdit, dispatchAnalyticsEvent = _a.dispatchAnalyticsEvent;
|
|
82
82
|
var showKeyline = this.state.showKeyline;
|
|
83
83
|
return (React.createElement(FullPageEditorWrapper, { className: "akEditor" },
|
|
84
84
|
React.createElement(MainToolbar, { showKeyline: showKeyline },
|
|
85
|
-
React.createElement(Toolbar_1.default, { editorView: editorView, editorActions: editorActions, eventDispatcher: eventDispatcher, providerFactory: providerFactory, appearance: this.appearance, items: primaryToolbarComponents, popupsMountPoint: popupsMountPoint, popupsBoundariesElement: popupsBoundariesElement, popupsScrollableElement: popupsScrollableElement, disabled: !!disabled }),
|
|
85
|
+
React.createElement(Toolbar_1.default, { editorView: editorView, editorActions: editorActions, eventDispatcher: eventDispatcher, providerFactory: providerFactory, appearance: this.appearance, items: primaryToolbarComponents, popupsMountPoint: popupsMountPoint, popupsBoundariesElement: popupsBoundariesElement, popupsScrollableElement: popupsScrollableElement, disabled: !!disabled, dispatchAnalyticsEvent: dispatchAnalyticsEvent }),
|
|
86
86
|
React.createElement(MainToolbarCustomComponentsSlot, null,
|
|
87
87
|
React.createElement(avatars_1.default, { editorView: editorView, eventDispatcher: eventDispatcher, inviteToEditHandler: collabEdit && collabEdit.inviteToEditHandler, isInviteToEditButtonSelected: collabEdit && collabEdit.isInviteToEditButtonSelected }),
|
|
88
88
|
customPrimaryToolbarComponents)),
|
|
@@ -91,7 +91,7 @@ var Editor = /** @class */ (function (_super) {
|
|
|
91
91
|
React.createElement(ContentArea, null,
|
|
92
92
|
React.createElement("div", { style: { padding: "0 " + GUTTER_PADDING + "px" }, className: "ak-editor-content-area" },
|
|
93
93
|
customContentComponents,
|
|
94
|
-
React.createElement(PluginSlot_1.default, { editorView: editorView, editorActions: editorActions, eventDispatcher: eventDispatcher, providerFactory: providerFactory, appearance: this.appearance, items: contentComponents, popupsMountPoint: popupsMountPoint, popupsBoundariesElement: popupsBoundariesElement, popupsScrollableElement: popupsScrollableElement, disabled: !!disabled, containerElement: this.scrollContainer }),
|
|
94
|
+
React.createElement(PluginSlot_1.default, { editorView: editorView, editorActions: editorActions, eventDispatcher: eventDispatcher, providerFactory: providerFactory, appearance: this.appearance, items: contentComponents, popupsMountPoint: popupsMountPoint, popupsBoundariesElement: popupsBoundariesElement, popupsScrollableElement: popupsScrollableElement, disabled: !!disabled, containerElement: this.scrollContainer, dispatchAnalyticsEvent: dispatchAnalyticsEvent }),
|
|
95
95
|
editorDOMElement)))),
|
|
96
96
|
React.createElement(WidthEmitter_1.default, { editorView: editorView, contentArea: this.scrollContainer })));
|
|
97
97
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullPage.js","sourceRoot":"","sources":["../../../../src/ui/Appearance/FullPage.tsx"],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IACN,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,eAAe,EAChC,mBAAmB,EAAE,UAAU,IAAI,UAAU,CAAC,mBAAmB,EACjE,4BAA4B,EAC1B,UAAU,IAAI,UAAU,CAAC,4BAA4B,GAEvD;oBACD,8BAA8B,CACC,CACtB;YACd,oBAAC,eAAe,IACd,QAAQ,EAAE,IAAI,CAAC,kBAAkB,EACjC,SAAS,EAAC,mCAAmC;gBAE7C,oBAAC,sBAAc,IAAC,UAAU,EAAE,UAAU;oBACpC,oBAAC,WAAW;wBACV,6BACE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAK,cAAc,OAAI,EAAE,EAC3C,SAAS,EAAC,wBAAwB;4BAEjC,uBAAuB;4BAEtB,oBAAC,oBAAU,IACT,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,EAChC,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,KAAK,EAAE,iBAAiB,EACxB,gBAAgB,EAAE,gBAAgB,EAClC,uBAAuB,EAAE,uBAAuB,EAChD,uBAAuB,EAAE,uBAAuB,EAChD,QAAQ,EAAE,CAAC,CAAC,QAAQ,EACpB,gBAAgB,EAAE,IAAI,CAAC,eAAe,EACtC,sBAAsB,EAAE,sBAAsB,GAC9C;4BAEH,gBAAgB,CACb,CACM,CACC,CACD;YAClB,oBAAC,sBAAY,IACX,UAAU,EAAE,UAAW,EACvB,WAAW,EAAE,IAAI,CAAC,eAAe,GACjC,CACoB,CACzB,CAAC;IACJ,CAAC;IA/IM,kBAAW,GAAG,gBAAgB,CAAC;IAgJxC,aAAC;CAAA,AAtJD,CAAoC,KAAK,CAAC,SAAS,GAsJlD;kBAtJoB,MAAM"}
|
|
@@ -37,18 +37,18 @@ var Editor = /** @class */ (function (_super) {
|
|
|
37
37
|
};
|
|
38
38
|
_this.renderChrome = function (_a) {
|
|
39
39
|
var maxContentSize = _a.maxContentSize, isMultilineContent = _a.isMultilineContent;
|
|
40
|
-
var _b = _this.props, disabled = _b.disabled, editorDOMElement = _b.editorDOMElement, editorView = _b.editorView, editorActions = _b.editorActions, eventDispatcher = _b.eventDispatcher, providerFactory = _b.providerFactory, contentComponents = _b.contentComponents, secondaryToolbarComponents = _b.secondaryToolbarComponents, customContentComponents = _b.customContentComponents, customSecondaryToolbarComponents = _b.customSecondaryToolbarComponents, addonToolbarComponents = _b.addonToolbarComponents, maxHeight = _b.maxHeight, popupsMountPoint = _b.popupsMountPoint, popupsBoundariesElement = _b.popupsBoundariesElement, popupsScrollableElement = _b.popupsScrollableElement;
|
|
40
|
+
var _b = _this.props, disabled = _b.disabled, editorDOMElement = _b.editorDOMElement, editorView = _b.editorView, editorActions = _b.editorActions, eventDispatcher = _b.eventDispatcher, providerFactory = _b.providerFactory, contentComponents = _b.contentComponents, secondaryToolbarComponents = _b.secondaryToolbarComponents, customContentComponents = _b.customContentComponents, customSecondaryToolbarComponents = _b.customSecondaryToolbarComponents, addonToolbarComponents = _b.addonToolbarComponents, maxHeight = _b.maxHeight, popupsMountPoint = _b.popupsMountPoint, popupsBoundariesElement = _b.popupsBoundariesElement, popupsScrollableElement = _b.popupsScrollableElement, dispatchAnalyticsEvent = _b.dispatchAnalyticsEvent;
|
|
41
41
|
var maxContentSizeReached = maxContentSize && maxContentSize.maxContentSizeReached;
|
|
42
42
|
return (React.createElement(WithFlash_1.default, { animate: maxContentSizeReached },
|
|
43
43
|
React.createElement(MessageEditor, { onClick: _this.focusEditor, isMaxContentSizeReached: maxContentSizeReached, className: "akEditor" },
|
|
44
44
|
React.createElement(ContentArea, { maxHeight: maxHeight, isMultiline: isMultilineContent, innerRef: function (ref) { return (_this.containerElement = ref); } },
|
|
45
45
|
customContentComponents,
|
|
46
|
-
React.createElement(PluginSlot_1.default, { disabled: !!disabled, editorView: editorView, editorActions: editorActions, eventDispatcher: eventDispatcher, providerFactory: providerFactory, appearance: _this.appearance, items: contentComponents, popupsMountPoint: popupsMountPoint, popupsBoundariesElement: popupsBoundariesElement, popupsScrollableElement: popupsScrollableElement, containerElement: _this.containerElement }),
|
|
46
|
+
React.createElement(PluginSlot_1.default, { disabled: !!disabled, editorView: editorView, editorActions: editorActions, eventDispatcher: eventDispatcher, providerFactory: providerFactory, appearance: _this.appearance, items: contentComponents, popupsMountPoint: popupsMountPoint, popupsBoundariesElement: popupsBoundariesElement, popupsScrollableElement: popupsScrollableElement, containerElement: _this.containerElement, dispatchAnalyticsEvent: dispatchAnalyticsEvent }),
|
|
47
47
|
editorDOMElement),
|
|
48
48
|
React.createElement(ToolbarArea, { isMultiline: isMultilineContent },
|
|
49
49
|
React.createElement(Addon_1.ClickAreaInline, { editorView: editorView }),
|
|
50
50
|
React.createElement(SecondaryToolbarContainer, null,
|
|
51
|
-
React.createElement(PluginSlot_1.default, { disabled: disabled || maxContentSizeReached, editorView: editorView, editorActions: editorActions, eventDispatcher: eventDispatcher, providerFactory: providerFactory, appearance: _this.appearance, items: secondaryToolbarComponents, popupsMountPoint: popupsMountPoint, popupsBoundariesElement: popupsBoundariesElement, popupsScrollableElement: popupsScrollableElement, containerElement: _this.containerElement }),
|
|
51
|
+
React.createElement(PluginSlot_1.default, { disabled: disabled || maxContentSizeReached, editorView: editorView, editorActions: editorActions, eventDispatcher: eventDispatcher, providerFactory: providerFactory, appearance: _this.appearance, items: secondaryToolbarComponents, popupsMountPoint: popupsMountPoint, popupsBoundariesElement: popupsBoundariesElement, popupsScrollableElement: popupsScrollableElement, containerElement: _this.containerElement, dispatchAnalyticsEvent: dispatchAnalyticsEvent }),
|
|
52
52
|
customSecondaryToolbarComponents,
|
|
53
53
|
React.createElement(Addon_1.AddonToolbar, { dropdownItems: addonToolbarComponents, isReducedSpacing: true }))))));
|
|
54
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.js","sourceRoot":"","sources":["../../../../src/ui/Appearance/Message.tsx"],"names":[],"mappings":";;;AAAA,6BAA+B;AAC/B,uDAA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xContentSize = _a.maxContentSize, mentions = _a.mentions;
|
|
31
|
-
var _b = _this.props, editorView = _b.editorView, eventDispatcher = _b.eventDispatcher, providerFactory = _b.providerFactory, customContentComponents = _b.customContentComponents, maxHeight = _b.maxHeight, disabled = _b.disabled, editorDOMElement = _b.editorDOMElement;
|
|
31
|
+
var _b = _this.props, editorView = _b.editorView, eventDispatcher = _b.eventDispatcher, providerFactory = _b.providerFactory, customContentComponents = _b.customContentComponents, maxHeight = _b.maxHeight, disabled = _b.disabled, editorDOMElement = _b.editorDOMElement, dispatchAnalyticsEvent = _b.dispatchAnalyticsEvent;
|
|
32
32
|
var maxContentSizeReached = maxContentSize && maxContentSize.maxContentSizeReached;
|
|
33
33
|
return (React.createElement(WithFlash_1.default, { animate: maxContentSizeReached },
|
|
34
34
|
React.createElement(MobileEditor, { isMaxContentSizeReached: maxContentSizeReached, maxHeight: maxHeight },
|
|
35
35
|
React.createElement(ContentArea, { innerRef: _this.handleRef },
|
|
36
36
|
customContentComponents,
|
|
37
|
-
React.createElement(PluginSlot_1.default, { editorView: editorView, eventDispatcher: eventDispatcher, providerFactory: providerFactory, appearance: _this.appearance, containerElement: _this.containerElement, disabled: !!disabled }),
|
|
37
|
+
React.createElement(PluginSlot_1.default, { editorView: editorView, eventDispatcher: eventDispatcher, providerFactory: providerFactory, appearance: _this.appearance, containerElement: _this.containerElement, disabled: !!disabled, dispatchAnalyticsEvent: dispatchAnalyticsEvent }),
|
|
38
38
|
editorDOMElement))));
|
|
39
39
|
};
|
|
40
40
|
return _this;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mobile.js","sourceRoot":"","sources":["../../../../src/ui/Appearance/Mobile.tsx"],"names":[],"mappings":";;;AAAA,6BAA+B;AAC/B,uDAAuC;AACvC,4CAAuC;AACvC,sDAAiD;AACjD,kDAA6C;AAE7C,mEAAsF;AACtF,mDAA0D;AAC1D,0CAAqC;AAOrC,yCAAyC;AACzC,IAAM,YAAY,GAAQ,2BAAM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AAc,IAAI,cAAc,CAAC,qBAAqB,CAAC;YACzD,OAAO,CACL,oBAAC,mBAAS,IAAC,OAAO,EAAE,qBAAqB;gBACvC,oBAAC,YAAY,IACX,uBAAuB,EAAE,qBAAqB,EAC9C,SAAS,EAAE,SAAS;oBAEpB,oBAAC,WAAW,IAAC,QAAQ,EAAE,KAAI,CAAC,SAAS;wBAClC,uBAAuB;wBACxB,oBAAC,oBAAU,IACT,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,eAAe,EAChC,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,KAAI,CAAC,UAAU,EAC3B,gBAAgB,EAAE,KAAI,CAAC,gBAAgB,EACvC,QAAQ,EAAE,CAAC,CAAC,QAAQ,EACpB,sBAAsB,EAAE,sBAAsB,GAC9C;wBACD,gBAAgB,CACL,CACD,CACL,CACb,CAAC;QACJ,CAAC,CAAC;;IAiBJ,CAAC;IAfC,uBAAM,GAAN;QACQ,IAAA,eAA4C,EAA1C,oCAAe,EAAE,0BAAyB,CAAC;QAEnD,OAAO,CACL,oBAAC,yBAAe,IACd,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE;gBACP,cAAc,EAAE,4BAAuB;gBACvC,QAAQ,EAAE,2BAAgB;aAC3B,EACD,MAAM,EAAE,IAAI,CAAC,YAAY,GACzB,CACH,CAAC;IACJ,CAAC;IA/DM,kBAAW,GAAG,cAAc,CAAC;IAgEtC,aAAC;CAAA,AApED,CAAoC,KAAK,CAAC,SAAS,GAoElD;kBApEoB,MAAM"}
|
|
@@ -4,6 +4,7 @@ import { ProviderFactory } from '@atlaskit/editor-common';
|
|
|
4
4
|
import { EditorAppearance, UIComponentFactory } from '../../types';
|
|
5
5
|
import { EventDispatcher } from '../../event-dispatcher';
|
|
6
6
|
import EditorActions from '../../actions';
|
|
7
|
+
import { AnalyticsEventPayload } from '../../plugins/analytics';
|
|
7
8
|
export interface Props {
|
|
8
9
|
items?: Array<UIComponentFactory>;
|
|
9
10
|
editorView?: EditorView;
|
|
@@ -16,6 +17,7 @@ export interface Props {
|
|
|
16
17
|
popupsScrollableElement?: HTMLElement;
|
|
17
18
|
containerElement: HTMLElement | undefined;
|
|
18
19
|
disabled: boolean;
|
|
20
|
+
dispatchAnalyticsEvent?: (payload: AnalyticsEventPayload) => void;
|
|
19
21
|
}
|
|
20
22
|
export default class PluginSlot extends React.Component<Props, any> {
|
|
21
23
|
shouldComponentUpdate(nextProps: Props): boolean;
|
|
@@ -23,7 +23,7 @@ var PluginSlot = /** @class */ (function (_super) {
|
|
|
23
23
|
nextProps.disabled === disabled);
|
|
24
24
|
};
|
|
25
25
|
PluginSlot.prototype.render = function () {
|
|
26
|
-
var _a = this.props, items = _a.items, editorView = _a.editorView, editorActions = _a.editorActions, eventDispatcher = _a.eventDispatcher, providerFactory = _a.providerFactory, appearance = _a.appearance, popupsMountPoint = _a.popupsMountPoint, popupsBoundariesElement = _a.popupsBoundariesElement, popupsScrollableElement = _a.popupsScrollableElement, containerElement = _a.containerElement, disabled = _a.disabled;
|
|
26
|
+
var _a = this.props, items = _a.items, editorView = _a.editorView, editorActions = _a.editorActions, eventDispatcher = _a.eventDispatcher, providerFactory = _a.providerFactory, appearance = _a.appearance, popupsMountPoint = _a.popupsMountPoint, popupsBoundariesElement = _a.popupsBoundariesElement, popupsScrollableElement = _a.popupsScrollableElement, containerElement = _a.containerElement, disabled = _a.disabled, dispatchAnalyticsEvent = _a.dispatchAnalyticsEvent;
|
|
27
27
|
if (!items || !editorView) {
|
|
28
28
|
return null;
|
|
29
29
|
}
|
|
@@ -34,6 +34,7 @@ var PluginSlot = /** @class */ (function (_super) {
|
|
|
34
34
|
editorActions: editorActions,
|
|
35
35
|
eventDispatcher: eventDispatcher,
|
|
36
36
|
providerFactory: providerFactory,
|
|
37
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
37
38
|
appearance: appearance,
|
|
38
39
|
popupsMountPoint: popupsMountPoint,
|
|
39
40
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/PluginSlot/index.tsx"],"names":[],"mappings":";;;AAAA,6BAA+B;AAC/B,uDAAuC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/PluginSlot/index.tsx"],"names":[],"mappings":";;;AAAA,6BAA+B;AAC/B,uDAAuC;AAQvC,IAAM,wBAAwB,GAAG,2BAAM,CAAC,GAAG,iGAAA,sBAE1C,IAAA,CAAC;AAiBF;IAAwC,sCAA2B;IAAnE;;IAsEA,CAAC;IArEC,0CAAqB,GAArB,UAAsB,SAAgB;QAC9B,IAAA,eAWQ,EAVZ,0BAAU,EACV,gCAAa,EACb,gBAAK,EACL,oCAAe,EACf,oCAAe,EACf,sCAAgB,EAChB,oDAAuB,EACvB,oDAAuB,EACvB,sCAAgB,EAChB,sBACY,CAAC;QACf,OAAO,CAAC,CACN,SAAS,CAAC,UAAU,KAAK,UAAU;YACnC,SAAS,CAAC,aAAa,KAAK,aAAa;YACzC,SAAS,CAAC,KAAK,KAAK,KAAK;YACzB,SAAS,CAAC,eAAe,KAAK,eAAe;YAC7C,SAAS,CAAC,eAAe,KAAK,eAAe;YAC7C,SAAS,CAAC,gBAAgB,KAAK,gBAAgB;YAC/C,SAAS,CAAC,uBAAuB,KAAK,uBAAuB;YAC7D,SAAS,CAAC,uBAAuB,KAAK,uBAAuB;YAC7D,SAAS,CAAC,gBAAgB,KAAK,gBAAgB;YAC/C,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAChC,CAAC;IACJ,CAAC;IAED,2BAAM,GAAN;QACQ,IAAA,eAaQ,EAZZ,gBAAK,EACL,0BAAU,EACV,gCAAa,EACb,oCAAe,EACf,oCAAe,EACf,0BAAU,EACV,sCAAgB,EAChB,oDAAuB,EACvB,oDAAuB,EACvB,sCAAgB,EAChB,sBAAQ,EACR,kDACY,CAAC;QAEf,IAAI,CAAC,KAAK,IAAI,CAAC,UAAU,EAAE;YACzB,OAAO,IAAI,CAAC;SACb;QAED,OAAO,CACL,oBAAC,wBAAwB,QACtB,KAAK,CAAC,GAAG,CAAC,UAAC,SAAS,EAAE,GAAG;YACxB,IAAM,KAAK,GAAQ,EAAE,GAAG,KAAA,EAAE,CAAC;YAC3B,IAAM,OAAO,GAAG,SAAS,CAAC;gBACxB,UAAU,EAAE,UAAwB;gBACpC,aAAa,EAAE,aAA8B;gBAC7C,eAAe,EAAE,eAAkC;gBACnD,eAAe,iBAAA;gBACf,sBAAsB,wBAAA;gBACtB,UAAU,YAAA;gBACV,gBAAgB,kBAAA;gBAChB,uBAAuB,yBAAA;gBACvB,uBAAuB,yBAAA;gBACvB,gBAAgB,kBAAA;gBAChB,QAAQ,UAAA;aACT,CAAC,CAAC;YACH,OAAO,OAAO,IAAI,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACvD,CAAC,CAAC,CACuB,CAC5B,CAAC;IACJ,CAAC;IACH,iBAAC;AAAD,CAAC,AAtED,CAAwC,KAAK,CAAC,SAAS,GAsEtD"}
|
|
@@ -4,6 +4,7 @@ import { ProviderFactory } from '@atlaskit/editor-common';
|
|
|
4
4
|
import { EditorAppearance, ToolbarUIComponentFactory } from '../../types';
|
|
5
5
|
import { EventDispatcher } from '../../event-dispatcher';
|
|
6
6
|
import EditorActions from '../../actions';
|
|
7
|
+
import { AnalyticsEventPayload } from '../../plugins/analytics';
|
|
7
8
|
export declare enum ToolbarSize {
|
|
8
9
|
XXL = 6,
|
|
9
10
|
XL = 5,
|
|
@@ -24,6 +25,7 @@ export interface ToolbarProps {
|
|
|
24
25
|
popupsScrollableElement?: HTMLElement;
|
|
25
26
|
disabled: boolean;
|
|
26
27
|
width?: number;
|
|
28
|
+
dispatchAnalyticsEvent?: (payload: AnalyticsEventPayload) => void;
|
|
27
29
|
}
|
|
28
30
|
export interface ToolbarInnerProps extends ToolbarProps {
|
|
29
31
|
toolbarSize: ToolbarSize;
|
|
@@ -45,7 +45,7 @@ var ToolbarInner = /** @class */ (function (_super) {
|
|
|
45
45
|
nextProps.isReducedSpacing !== this.props.isToolbarReducedSpacing);
|
|
46
46
|
};
|
|
47
47
|
ToolbarInner.prototype.render = function () {
|
|
48
|
-
var _a = this.props, appearance = _a.appearance, editorView = _a.editorView, editorActions = _a.editorActions, eventDispatcher = _a.eventDispatcher, providerFactory = _a.providerFactory, items = _a.items, popupsMountPoint = _a.popupsMountPoint, popupsBoundariesElement = _a.popupsBoundariesElement, popupsScrollableElement = _a.popupsScrollableElement, toolbarSize = _a.toolbarSize, disabled = _a.disabled, isToolbarReducedSpacing = _a.isToolbarReducedSpacing;
|
|
48
|
+
var _a = this.props, appearance = _a.appearance, editorView = _a.editorView, editorActions = _a.editorActions, eventDispatcher = _a.eventDispatcher, providerFactory = _a.providerFactory, items = _a.items, popupsMountPoint = _a.popupsMountPoint, popupsBoundariesElement = _a.popupsBoundariesElement, popupsScrollableElement = _a.popupsScrollableElement, toolbarSize = _a.toolbarSize, disabled = _a.disabled, isToolbarReducedSpacing = _a.isToolbarReducedSpacing, dispatchAnalyticsEvent = _a.dispatchAnalyticsEvent;
|
|
49
49
|
if (!items || !items.length) {
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
@@ -64,6 +64,7 @@ var ToolbarInner = /** @class */ (function (_super) {
|
|
|
64
64
|
toolbarSize: toolbarSize,
|
|
65
65
|
isToolbarReducedSpacing: isToolbarReducedSpacing,
|
|
66
66
|
containerElement: undefined,
|
|
67
|
+
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
67
68
|
});
|
|
68
69
|
return element && React.cloneElement(element, props);
|
|
69
70
|
})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/Toolbar/index.tsx"],"names":[],"mappings":";;;AAAA,6BAA+B;AAC/B,uDAAuC;AAEvC,yDAAmD;
|
|
1
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CACX,CACP,CAAC;AACJ,CAAC;AARD,0CAQC"}
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "98.1
|
|
3
|
+
"version": "98.2.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/es5/index.js",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"@atlaskit/adf-schema": "^1.4.6",
|
|
28
28
|
"@atlaskit/adf-utils": "^5.6.0",
|
|
29
29
|
"@atlaskit/analytics-gas-types": "^3.2.3",
|
|
30
|
+
"@atlaskit/analytics-listeners": "^4.1.5",
|
|
30
31
|
"@atlaskit/analytics-namespaced-context": "^2.1.5",
|
|
31
32
|
"@atlaskit/analytics-next": "^3.1.2",
|
|
32
33
|
"@atlaskit/analytics-next-types": "^3.1.2",
|
|
@@ -125,4 +126,4 @@
|
|
|
125
126
|
"react-intl": "^2.6.0",
|
|
126
127
|
"sinon": "^2.2.0"
|
|
127
128
|
}
|
|
128
|
-
}
|
|
129
|
+
}
|