@atlaskit/editor-core 197.3.0 → 197.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/afm-cc/tsconfig.json +0 -3
- package/afm-jira/tsconfig.json +0 -3
- package/dist/cjs/actions/index.js +13 -40
- package/dist/cjs/composable-editor/editor-internal.js +7 -6
- package/dist/cjs/create-editor/ReactEditorView.js +2 -1
- package/dist/cjs/presets/universal.js +7 -9
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -3
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +1 -9
- package/dist/cjs/ui/ToolbarFeedback/index.js +5 -210
- package/dist/cjs/utils/action.js +9 -38
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/actions/index.js +1 -12
- package/dist/es2019/composable-editor/editor-internal.js +7 -6
- package/dist/es2019/create-editor/ReactEditorView.js +2 -1
- package/dist/es2019/index.js +8 -1
- package/dist/es2019/presets/universal.js +7 -9
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -3
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +1 -9
- package/dist/es2019/ui/ToolbarFeedback/index.js +5 -188
- package/dist/es2019/utils/action.js +0 -10
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/actions/index.js +14 -41
- package/dist/esm/composable-editor/editor-internal.js +7 -6
- package/dist/esm/create-editor/ReactEditorView.js +2 -1
- package/dist/esm/index.js +8 -1
- package/dist/esm/presets/universal.js +7 -9
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -3
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +1 -9
- package/dist/esm/ui/ToolbarFeedback/index.js +5 -212
- package/dist/esm/utils/action.js +9 -37
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/actions/index.d.ts +0 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +3 -0
- package/dist/types/index.d.ts +8 -1
- package/dist/types/presets/default.d.ts +2 -0
- package/dist/types/presets/universal.d.ts +4 -0
- package/dist/types/presets/useUniversalPreset.d.ts +3 -0
- package/dist/types/types/editor-appearance-component.d.ts +0 -1
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +0 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types/ui/ToolbarFeedback/index.d.ts +1 -26
- package/dist/types/utils/action.d.ts +0 -4
- package/dist/types-ts4.5/actions/index.d.ts +0 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +3 -0
- package/dist/types-ts4.5/index.d.ts +8 -1
- package/dist/types-ts4.5/presets/default.d.ts +2 -0
- package/dist/types-ts4.5/presets/universal.d.ts +4 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +3 -0
- package/dist/types-ts4.5/types/editor-appearance-component.d.ts +0 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +0 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ToolbarFeedback/index.d.ts +1 -26
- package/dist/types-ts4.5/utils/action.d.ts +0 -7
- package/package.json +11 -13
|
@@ -1,214 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
6
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
8
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
9
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
11
|
-
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; }
|
|
12
|
-
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; }
|
|
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); }; }
|
|
14
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15
|
-
/**
|
|
16
|
-
* @jsxRuntime classic
|
|
17
|
-
* @jsx jsx
|
|
18
|
-
*/
|
|
19
|
-
import { PureComponent } from 'react';
|
|
20
|
-
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
|
-
import { jsx } from '@emotion/react';
|
|
23
|
-
import PropTypes from 'prop-types';
|
|
24
|
-
import ButtonGroup from '@atlaskit/button/button-group';
|
|
25
|
-
import Button from '@atlaskit/button/new';
|
|
26
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
27
|
-
import { Popup } from '@atlaskit/editor-common/ui';
|
|
28
|
-
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
29
|
-
import { withReactEditorViewOuterListeners as withOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
30
|
-
import { analyticsEventKey } from '@atlaskit/editor-common/utils/analytics';
|
|
31
|
-
import Spinner from '@atlaskit/spinner';
|
|
32
|
-
import { createDispatch } from '../../event-dispatcher';
|
|
33
|
-
import { usePresetContext } from '../../presets/context';
|
|
34
|
-
import deprecationWarnings from '../../utils/deprecation-warnings';
|
|
35
|
-
import { buttonContent, confirmationHeader, confirmationImg, confirmationPopup, confirmationText, wrapper } from './styles';
|
|
36
|
-
var PopupWithOutsideListeners = withOuterListeners(Popup);
|
|
37
|
-
var POPUP_HEIGHT = 388;
|
|
38
|
-
var POPUP_WIDTH = 280;
|
|
39
|
-
var EDITOR_IMAGE_URL = 'https://confluence.atlassian.com/download/attachments/945114421/editorillustration@2x.png?api=v2';
|
|
40
|
-
var deprecations = [{
|
|
41
|
-
property: 'packageVersion',
|
|
42
|
-
description: 'To pass package version use feedbackInfo property – <Editor feedbackInfo={{ packageVersion }} />',
|
|
43
|
-
type: 'removed'
|
|
44
|
-
}, {
|
|
45
|
-
property: 'packageName',
|
|
46
|
-
description: 'To pass package name use feedbackInfo property – <Editor feedbackInfo={{ packageName }} />',
|
|
47
|
-
type: 'removed'
|
|
48
|
-
}, {
|
|
49
|
-
property: 'labels',
|
|
50
|
-
description: 'To pass feedback labels use feedbackInfo property – <Editor feedbackInfo={{ labels }} />',
|
|
51
|
-
type: 'removed'
|
|
52
|
-
}];
|
|
53
|
-
var ToolbarFeedbackInternal = /*#__PURE__*/function (_PureComponent) {
|
|
54
|
-
_inherits(ToolbarFeedbackInternal, _PureComponent);
|
|
55
|
-
var _super = _createSuper(ToolbarFeedbackInternal);
|
|
56
|
-
function ToolbarFeedbackInternal(props) {
|
|
57
|
-
var _this;
|
|
58
|
-
_classCallCheck(this, ToolbarFeedbackInternal);
|
|
59
|
-
_this = _super.call(this, props);
|
|
60
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
61
|
-
jiraIssueCollectorScriptLoading: false,
|
|
62
|
-
showOptOutOption: false
|
|
63
|
-
});
|
|
64
|
-
_defineProperty(_assertThisInitialized(_this), "handleRef", function (ref) {
|
|
65
|
-
if (ref) {
|
|
66
|
-
_this.setState({
|
|
67
|
-
target: ref
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
// Create a FeedbackInfo instance from props.
|
|
72
|
-
_defineProperty(_assertThisInitialized(_this), "getFeedbackInfo", function () {
|
|
73
|
-
var _this$props = _this.props,
|
|
74
|
-
product = _this$props.product,
|
|
75
|
-
packageVersion = _this$props.packageVersion,
|
|
76
|
-
packageName = _this$props.packageName,
|
|
77
|
-
labels = _this$props.labels;
|
|
78
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, product !== undefined && {
|
|
79
|
-
product: product
|
|
80
|
-
}), packageVersion !== undefined && {
|
|
81
|
-
packageVersion: packageVersion
|
|
82
|
-
}), packageName !== undefined && {
|
|
83
|
-
packageName: packageName
|
|
84
|
-
}), labels !== undefined && {
|
|
85
|
-
labels: labels
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
_defineProperty(_assertThisInitialized(_this), "collectFeedback", function () {
|
|
89
|
-
if (_this.props.product === 'bitbucket') {
|
|
90
|
-
_this.setState({
|
|
91
|
-
showOptOutOption: true
|
|
92
|
-
});
|
|
93
|
-
} else {
|
|
94
|
-
_this.openFeedbackPopup();
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
_defineProperty(_assertThisInitialized(_this), "toggleShowOptOutOption", function () {
|
|
98
|
-
_this.setState({
|
|
99
|
-
showOptOutOption: !_this.state.showOptOutOption
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
_defineProperty(_assertThisInitialized(_this), "openJiraIssueCollector", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
103
|
-
var _this$props$api, _window$localStorage$, _this$props$api2;
|
|
104
|
-
var contentId, sessionId, tabId;
|
|
105
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
106
|
-
while (1) switch (_context.prev = _context.next) {
|
|
107
|
-
case 0:
|
|
108
|
-
_this.setState({
|
|
109
|
-
jiraIssueCollectorScriptLoading: true,
|
|
110
|
-
showOptOutOption: false
|
|
111
|
-
});
|
|
112
|
-
contentId = (_this$props$api = _this.props.api) === null || _this$props$api === void 0 || (_this$props$api = _this$props$api.contextIdentifier) === null || _this$props$api === void 0 || (_this$props$api = _this$props$api.sharedState.currentState()) === null || _this$props$api === void 0 || (_this$props$api = _this$props$api.contextIdentifierProvider) === null || _this$props$api === void 0 ? void 0 : _this$props$api.objectId;
|
|
113
|
-
sessionId = (_window$localStorage$ = window.localStorage.getItem('awc.session.id')) === null || _window$localStorage$ === void 0 ? void 0 : _window$localStorage$.toString();
|
|
114
|
-
tabId = window.sessionStorage['awc.tab.id'];
|
|
115
|
-
_context.next = 6;
|
|
116
|
-
return (_this$props$api2 = _this.props.api) === null || _this$props$api2 === void 0 || (_this$props$api2 = _this$props$api2.feedbackDialog) === null || _this$props$api2 === void 0 ? void 0 : _this$props$api2.actions.openFeedbackDialog(_objectSpread(_objectSpread({}, _this.getFeedbackInfo()), {}, {
|
|
117
|
-
sessionId: sessionId,
|
|
118
|
-
contentId: contentId,
|
|
119
|
-
tabId: tabId
|
|
120
|
-
}));
|
|
121
|
-
case 6:
|
|
122
|
-
_this.setState({
|
|
123
|
-
jiraIssueCollectorScriptLoading: false
|
|
124
|
-
});
|
|
125
|
-
case 7:
|
|
126
|
-
case "end":
|
|
127
|
-
return _context.stop();
|
|
128
|
-
}
|
|
129
|
-
}, _callee);
|
|
130
|
-
})));
|
|
131
|
-
_defineProperty(_assertThisInitialized(_this), "openFeedbackPopup", function () {
|
|
132
|
-
var dispatch = createDispatch(_this.context.editorActions.eventDispatcher);
|
|
133
|
-
dispatch(analyticsEventKey, {
|
|
134
|
-
payload: {
|
|
135
|
-
action: ACTION.CLICKED,
|
|
136
|
-
actionSubject: ACTION_SUBJECT.BUTTON,
|
|
137
|
-
actionSubjectId: ACTION_SUBJECT_ID.BUTTON_FEEDBACK,
|
|
138
|
-
eventType: EVENT_TYPE.UI
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
_this.openJiraIssueCollector();
|
|
142
|
-
return true;
|
|
143
|
-
});
|
|
144
|
-
_defineProperty(_assertThisInitialized(_this), "openLearnMorePage", function () {
|
|
145
|
-
window.open('https://confluence.atlassian.com/x/NU1VO', '_blank');
|
|
146
|
-
_this.toggleShowOptOutOption();
|
|
147
|
-
});
|
|
148
|
-
_defineProperty(_assertThisInitialized(_this), "hasJquery", function () {
|
|
149
|
-
return typeof window.jQuery !== 'undefined';
|
|
150
|
-
});
|
|
151
|
-
deprecationWarnings(ToolbarFeedback.name, props, deprecations);
|
|
152
|
-
return _this;
|
|
1
|
+
export default function ToolbarFeedback() {
|
|
2
|
+
if (process.env.NODE_ENV === 'development') {
|
|
3
|
+
// eslint-disable-next-line no-console
|
|
4
|
+
console.warn('ToolbarFeedback component is no longer available. This will be deprecated soon.');
|
|
153
5
|
}
|
|
154
|
-
|
|
155
|
-
key: "render",
|
|
156
|
-
value: function render() {
|
|
157
|
-
var _this$props2 = this.props,
|
|
158
|
-
popupsMountPoint = _this$props2.popupsMountPoint,
|
|
159
|
-
popupsBoundariesElement = _this$props2.popupsBoundariesElement,
|
|
160
|
-
popupsScrollableElement = _this$props2.popupsScrollableElement;
|
|
161
|
-
var iconBefore = this.state.jiraIssueCollectorScriptLoading ? jsx(Spinner, null) : undefined;
|
|
162
|
-
|
|
163
|
-
// JIRA issue collector script is using jQuery internally
|
|
164
|
-
return this.hasJquery() ?
|
|
165
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
166
|
-
jsx("div", {
|
|
167
|
-
css: wrapper
|
|
168
|
-
}, jsx(ToolbarButton, {
|
|
169
|
-
ref: this.handleRef,
|
|
170
|
-
iconBefore: iconBefore,
|
|
171
|
-
onClick: this.collectFeedback,
|
|
172
|
-
selected: false,
|
|
173
|
-
spacing: "compact"
|
|
174
|
-
}, jsx("span", {
|
|
175
|
-
css: buttonContent
|
|
176
|
-
}, "Feedback")), this.state.showOptOutOption && jsx(PopupWithOutsideListeners, {
|
|
177
|
-
target: this.state.target,
|
|
178
|
-
mountTo: popupsMountPoint,
|
|
179
|
-
boundariesElement: popupsBoundariesElement,
|
|
180
|
-
scrollableElement: popupsScrollableElement,
|
|
181
|
-
fitHeight: POPUP_HEIGHT,
|
|
182
|
-
fitWidth: POPUP_WIDTH,
|
|
183
|
-
handleClickOutside: this.toggleShowOptOutOption,
|
|
184
|
-
handleEscapeKeydown: this.toggleShowOptOutOption
|
|
185
|
-
}, jsx("div", {
|
|
186
|
-
css: confirmationPopup
|
|
187
|
-
}, jsx("div", {
|
|
188
|
-
css: confirmationHeader
|
|
189
|
-
}, jsx("img", {
|
|
190
|
-
css: confirmationImg,
|
|
191
|
-
src: EDITOR_IMAGE_URL
|
|
192
|
-
})), jsx("div", {
|
|
193
|
-
css: confirmationText
|
|
194
|
-
}, jsx("div", null, "We are rolling out a new editing experience across Atlassian products. Help us improve by providing feedback."), jsx("div", null, "You can opt-out for now by turning off the \"Atlassian Editor\" feature on the Labs page in Bitbucket settings."), jsx(ButtonGroup, null, jsx(Button, {
|
|
195
|
-
appearance: "primary",
|
|
196
|
-
onClick: this.openFeedbackPopup
|
|
197
|
-
}, "Give feedback"), jsx(Button, {
|
|
198
|
-
appearance: "default",
|
|
199
|
-
onClick: this.openLearnMorePage
|
|
200
|
-
}, "Learn more")))))) : null;
|
|
201
|
-
}
|
|
202
|
-
}]);
|
|
203
|
-
return ToolbarFeedbackInternal;
|
|
204
|
-
}(PureComponent);
|
|
205
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
206
|
-
_defineProperty(ToolbarFeedbackInternal, "contextTypes", {
|
|
207
|
-
editorActions: PropTypes.object.isRequired
|
|
208
|
-
});
|
|
209
|
-
export default function ToolbarFeedback(props) {
|
|
210
|
-
var api = usePresetContext();
|
|
211
|
-
return jsx(ToolbarFeedbackInternal, _extends({
|
|
212
|
-
api: api
|
|
213
|
-
}, props));
|
|
6
|
+
return null;
|
|
214
7
|
}
|
package/dist/esm/utils/action.js
CHANGED
|
@@ -10,57 +10,29 @@ var mediaPluginKey = {
|
|
|
10
10
|
return state['mediaPlugin$'];
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
export function
|
|
14
|
-
return _temporaryFixForConfigPanel.apply(this, arguments);
|
|
15
|
-
}
|
|
16
|
-
function _temporaryFixForConfigPanel() {
|
|
17
|
-
_temporaryFixForConfigPanel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(editorView, api) {
|
|
18
|
-
var _api$extension;
|
|
19
|
-
var extensionPluginState;
|
|
20
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
21
|
-
while (1) switch (_context.prev = _context.next) {
|
|
22
|
-
case 0:
|
|
23
|
-
extensionPluginState = api === null || api === void 0 || (_api$extension = api.extension) === null || _api$extension === void 0 ? void 0 : _api$extension.sharedState.currentState();
|
|
24
|
-
if (!(extensionPluginState && extensionPluginState.showContextPanel)) {
|
|
25
|
-
_context.next = 4;
|
|
26
|
-
break;
|
|
27
|
-
}
|
|
28
|
-
_context.next = 4;
|
|
29
|
-
return new Promise(function (resolve) {
|
|
30
|
-
var _api$extension2, _api$contextPanel;
|
|
31
|
-
api === null || api === void 0 || (_api$extension2 = api.extension) === null || _api$extension2 === void 0 || _api$extension2.actions.forceAutoSave(api === null || api === void 0 || (_api$contextPanel = api.contextPanel) === null || _api$contextPanel === void 0 ? void 0 : _api$contextPanel.actions.applyChange)(resolve)(editorView.state, editorView.dispatch);
|
|
32
|
-
});
|
|
33
|
-
case 4:
|
|
34
|
-
case "end":
|
|
35
|
-
return _context.stop();
|
|
36
|
-
}
|
|
37
|
-
}, _callee);
|
|
38
|
-
}));
|
|
39
|
-
return _temporaryFixForConfigPanel.apply(this, arguments);
|
|
40
|
-
}
|
|
41
|
-
export function getEditorValueWithMedia(_x3) {
|
|
13
|
+
export function getEditorValueWithMedia(_x) {
|
|
42
14
|
return _getEditorValueWithMedia.apply(this, arguments);
|
|
43
15
|
}
|
|
44
16
|
function _getEditorValueWithMedia() {
|
|
45
|
-
_getEditorValueWithMedia = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
17
|
+
_getEditorValueWithMedia = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(editorView) {
|
|
46
18
|
var mediaPluginState;
|
|
47
|
-
return _regeneratorRuntime.wrap(function
|
|
48
|
-
while (1) switch (
|
|
19
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
20
|
+
while (1) switch (_context.prev = _context.next) {
|
|
49
21
|
case 0:
|
|
50
22
|
mediaPluginState = editorView.state && mediaPluginKey.getState(editorView.state);
|
|
51
23
|
if (!(mediaPluginState && mediaPluginState.waitForMediaUpload)) {
|
|
52
|
-
|
|
24
|
+
_context.next = 4;
|
|
53
25
|
break;
|
|
54
26
|
}
|
|
55
|
-
|
|
27
|
+
_context.next = 4;
|
|
56
28
|
return mediaPluginState.waitForPendingTasks();
|
|
57
29
|
case 4:
|
|
58
|
-
return
|
|
30
|
+
return _context.abrupt("return", editorView.state.doc);
|
|
59
31
|
case 5:
|
|
60
32
|
case "end":
|
|
61
|
-
return
|
|
33
|
+
return _context.stop();
|
|
62
34
|
}
|
|
63
|
-
},
|
|
35
|
+
}, _callee);
|
|
64
36
|
}));
|
|
65
37
|
return _getEditorValueWithMedia.apply(this, arguments);
|
|
66
38
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "197.
|
|
2
|
+
export var version = "197.4.0";
|
|
@@ -21,7 +21,6 @@ export default class EditorActions<T = any> implements EditorActionsOptions<T> {
|
|
|
21
21
|
focus(): boolean;
|
|
22
22
|
blur(): boolean;
|
|
23
23
|
clear(): boolean;
|
|
24
|
-
__temporaryFixForConfigPanel(): Promise<void>;
|
|
25
24
|
/**
|
|
26
25
|
* @deprecated This is deprecated and is no longer maintained.
|
|
27
26
|
*
|
|
@@ -1034,6 +1034,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1034
1034
|
type: "added" | "deleted";
|
|
1035
1035
|
localId: string;
|
|
1036
1036
|
id: string;
|
|
1037
|
+
taskLocalId?: string | undefined;
|
|
1037
1038
|
}[]) => void;
|
|
1038
1039
|
};
|
|
1039
1040
|
}, import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined>>];
|
|
@@ -2858,6 +2859,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
2858
2859
|
type: "added" | "deleted";
|
|
2859
2860
|
localId: string;
|
|
2860
2861
|
id: string;
|
|
2862
|
+
taskLocalId?: string | undefined;
|
|
2861
2863
|
}[]) => void;
|
|
2862
2864
|
};
|
|
2863
2865
|
}, import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"caption", {
|
|
@@ -6551,6 +6553,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
6551
6553
|
type: "added" | "deleted";
|
|
6552
6554
|
localId: string;
|
|
6553
6555
|
id: string;
|
|
6556
|
+
taskLocalId?: string | undefined;
|
|
6554
6557
|
}[]) => void;
|
|
6555
6558
|
};
|
|
6556
6559
|
}, import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined>>];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,7 +5,14 @@ export { default as WithEditorActions } from './ui/WithEditorActions';
|
|
|
5
5
|
export { default as WithHelpTrigger } from './ui/WithHelpTrigger';
|
|
6
6
|
export { default as CollapsedEditor } from './ui/CollapsedEditor';
|
|
7
7
|
export { default as ToolbarHelp } from './ui/ToolbarHelp';
|
|
8
|
-
export {
|
|
8
|
+
export {
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated
|
|
11
|
+
* DO NOT USE THIS WILL BE REMOVED SOON.
|
|
12
|
+
*
|
|
13
|
+
* This was intended for rollout of bitbucket only.
|
|
14
|
+
*/
|
|
15
|
+
default as ToolbarFeedback, } from './ui/ToolbarFeedback';
|
|
9
16
|
export {
|
|
10
17
|
/**
|
|
11
18
|
* @deprecated
|
|
@@ -2513,6 +2513,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
2513
2513
|
type: "added" | "deleted";
|
|
2514
2514
|
localId: string;
|
|
2515
2515
|
id: string;
|
|
2516
|
+
taskLocalId?: string | undefined;
|
|
2516
2517
|
}[]) => void;
|
|
2517
2518
|
};
|
|
2518
2519
|
}, import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined>>];
|
|
@@ -5004,6 +5005,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
5004
5005
|
type: "added" | "deleted";
|
|
5005
5006
|
localId: string;
|
|
5006
5007
|
id: string;
|
|
5008
|
+
taskLocalId?: string | undefined;
|
|
5007
5009
|
}[]) => void;
|
|
5008
5010
|
};
|
|
5009
5011
|
}, import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined>>];
|
|
@@ -19,6 +19,7 @@ export type InitialPluginConfiguration = {
|
|
|
19
19
|
type: 'added' | 'deleted';
|
|
20
20
|
localId: string;
|
|
21
21
|
id: string;
|
|
22
|
+
taskLocalId?: string;
|
|
22
23
|
}[]) => void;
|
|
23
24
|
};
|
|
24
25
|
tablesPlugin?: {
|
|
@@ -1080,6 +1081,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1080
1081
|
type: "added" | "deleted";
|
|
1081
1082
|
localId: string;
|
|
1082
1083
|
id: string;
|
|
1084
|
+
taskLocalId?: string | undefined;
|
|
1083
1085
|
}[]) => void;
|
|
1084
1086
|
};
|
|
1085
1087
|
}, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>];
|
|
@@ -2904,6 +2906,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2904
2906
|
type: "added" | "deleted";
|
|
2905
2907
|
localId: string;
|
|
2906
2908
|
id: string;
|
|
2909
|
+
taskLocalId?: string | undefined;
|
|
2907
2910
|
}[]) => void;
|
|
2908
2911
|
};
|
|
2909
2912
|
}, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"caption", {
|
|
@@ -6597,6 +6600,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
6597
6600
|
type: "added" | "deleted";
|
|
6598
6601
|
localId: string;
|
|
6599
6602
|
id: string;
|
|
6603
|
+
taskLocalId?: string | undefined;
|
|
6600
6604
|
}[]) => void;
|
|
6601
6605
|
};
|
|
6602
6606
|
}, import("@atlaskit/editor-plugins/mentions").MentionPluginOptions | undefined>>];
|
|
@@ -1034,6 +1034,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1034
1034
|
type: "added" | "deleted";
|
|
1035
1035
|
localId: string;
|
|
1036
1036
|
id: string;
|
|
1037
|
+
taskLocalId?: string | undefined;
|
|
1037
1038
|
}[]) => void;
|
|
1038
1039
|
};
|
|
1039
1040
|
}, import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined>>];
|
|
@@ -2858,6 +2859,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2858
2859
|
type: "added" | "deleted";
|
|
2859
2860
|
localId: string;
|
|
2860
2861
|
id: string;
|
|
2862
|
+
taskLocalId?: string | undefined;
|
|
2861
2863
|
}[]) => void;
|
|
2862
2864
|
};
|
|
2863
2865
|
}, import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"caption", {
|
|
@@ -6551,6 +6553,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
6551
6553
|
type: "added" | "deleted";
|
|
6552
6554
|
localId: string;
|
|
6553
6555
|
id: string;
|
|
6556
|
+
taskLocalId?: string | undefined;
|
|
6554
6557
|
}[]) => void;
|
|
6555
6558
|
};
|
|
6556
6559
|
}, import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined>>];
|
|
@@ -49,7 +49,6 @@ export interface FullPageToolbarProps {
|
|
|
49
49
|
beforeIcon?: ReactElement;
|
|
50
50
|
hasMinWidth?: boolean;
|
|
51
51
|
featureFlags: FeatureFlags;
|
|
52
|
-
hideAvatarGroup?: boolean;
|
|
53
52
|
editorAPI: PublicPluginAPI<ToolbarEditorPlugins> | undefined;
|
|
54
53
|
}
|
|
55
54
|
export declare const EditorToolbar: React.MemoExoticComponent<(props: FullPageToolbarProps & WrappedComponentProps) => jsx.JSX.Element>;
|
|
@@ -5,7 +5,7 @@ export declare const ScrollContainer: import("react").ForwardRefExoticComponent<
|
|
|
5
5
|
colorMode?: "light" | "dark" | undefined;
|
|
6
6
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
7
7
|
viewMode?: "view" | "edit" | undefined;
|
|
8
|
-
} & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "value" | "name" | "key" | "
|
|
8
|
+
} & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "value" | "name" | "key" | "property" | "type" | "content" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "list" | "width" | "open" | "accessKey" | "dir" | "className" | "role" | "start" | "action" | "step" | "wrap" | "color" | "height" | "translate" | "default" | "hidden" | keyof {
|
|
9
9
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
10
|
colorMode?: "light" | "dark" | undefined;
|
|
11
11
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
@@ -15,6 +15,6 @@ type ContentStylesProps = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const placeholderStyles: SerializedStyles;
|
|
17
17
|
type Props = ContentStylesProps & React.HTMLProps<HTMLDivElement>;
|
|
18
|
-
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "value" | "name" | "key" | "
|
|
19
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "value" | "name" | "key" | "
|
|
18
|
+
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "value" | "name" | "key" | "property" | "type" | "content" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "list" | "width" | "open" | "accessKey" | "dir" | "className" | "role" | "start" | "action" | "step" | "wrap" | "color" | "height" | "translate" | "default" | "hidden" | keyof ContentStylesProps | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "value" | "name" | "key" | "property" | "type" | "content" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "list" | "width" | "open" | "accessKey" | "dir" | "className" | "role" | "start" | "action" | "step" | "wrap" | "color" | "height" | "translate" | "default" | "hidden" | keyof ContentStylesProps | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
export default _default;
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export type EditorProduct = 'bitbucket' | 'jira' | 'confluence' | 'stride' | undefined;
|
|
3
|
-
export interface Props {
|
|
4
|
-
/** @deprecated To pass package version use feedbackInfo property – <Editor feedbackInfo={{ packageVersion }} /> */
|
|
5
|
-
packageVersion?: string;
|
|
6
|
-
/** @deprecated 'To pass package name use feedbackInfo property – <Editor feedbackInfo={{ packageName }} /> */
|
|
7
|
-
packageName?: string;
|
|
8
|
-
product?: EditorProduct;
|
|
9
|
-
popupsMountPoint?: HTMLElement;
|
|
10
|
-
popupsBoundariesElement?: HTMLElement;
|
|
11
|
-
popupsScrollableElement?: HTMLElement;
|
|
12
|
-
/** @deprecated 'To pass feedback labels use feedbackInfo property – <Editor feedbackInfo={{ labels }} />' */
|
|
13
|
-
labels?: string[];
|
|
14
|
-
}
|
|
15
|
-
export interface State {
|
|
16
|
-
jiraIssueCollectorScriptLoading: boolean;
|
|
17
|
-
showOptOutOption?: boolean;
|
|
18
|
-
target?: HTMLElement;
|
|
19
|
-
}
|
|
20
|
-
declare global {
|
|
21
|
-
interface Window {
|
|
22
|
-
jQuery: any;
|
|
23
|
-
ATL_JQ_PAGE_PROPS: any;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export default function ToolbarFeedback(props: Props): jsx.JSX.Element;
|
|
1
|
+
export default function ToolbarFeedback(): null;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { ContextPanelPlugin } from '@atlaskit/editor-plugins/context-panel';
|
|
3
|
-
import type { ExtensionPlugin } from '@atlaskit/editor-plugins/extension';
|
|
4
1
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
export declare function __temporaryFixForConfigPanel(editorView: EditorView, api: PublicPluginAPI<[OptionalPlugin<ExtensionPlugin>, OptionalPlugin<ContextPanelPlugin>]>): Promise<void>;
|
|
6
2
|
export declare function getEditorValueWithMedia(editorView: EditorView): Promise<import("prosemirror-model").Node>;
|
|
@@ -21,7 +21,6 @@ export default class EditorActions<T = any> implements EditorActionsOptions<T> {
|
|
|
21
21
|
focus(): boolean;
|
|
22
22
|
blur(): boolean;
|
|
23
23
|
clear(): boolean;
|
|
24
|
-
__temporaryFixForConfigPanel(): Promise<void>;
|
|
25
24
|
/**
|
|
26
25
|
* @deprecated This is deprecated and is no longer maintained.
|
|
27
26
|
*
|
|
@@ -1324,6 +1324,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1324
1324
|
type: "added" | "deleted";
|
|
1325
1325
|
localId: string;
|
|
1326
1326
|
id: string;
|
|
1327
|
+
taskLocalId?: string | undefined;
|
|
1327
1328
|
}[]) => void;
|
|
1328
1329
|
};
|
|
1329
1330
|
}, import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined>>
|
|
@@ -3518,6 +3519,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
3518
3519
|
type: "added" | "deleted";
|
|
3519
3520
|
localId: string;
|
|
3520
3521
|
id: string;
|
|
3522
|
+
taskLocalId?: string | undefined;
|
|
3521
3523
|
}[]) => void;
|
|
3522
3524
|
};
|
|
3523
3525
|
}, import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined> | undefined,
|
|
@@ -7980,6 +7982,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
7980
7982
|
type: "added" | "deleted";
|
|
7981
7983
|
localId: string;
|
|
7982
7984
|
id: string;
|
|
7985
|
+
taskLocalId?: string | undefined;
|
|
7983
7986
|
}[]) => void;
|
|
7984
7987
|
};
|
|
7985
7988
|
}, import("@atlaskit/editor-plugin-mentions").MentionPluginOptions | undefined>>
|
|
@@ -5,7 +5,14 @@ export { default as WithEditorActions } from './ui/WithEditorActions';
|
|
|
5
5
|
export { default as WithHelpTrigger } from './ui/WithHelpTrigger';
|
|
6
6
|
export { default as CollapsedEditor } from './ui/CollapsedEditor';
|
|
7
7
|
export { default as ToolbarHelp } from './ui/ToolbarHelp';
|
|
8
|
-
export {
|
|
8
|
+
export {
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated
|
|
11
|
+
* DO NOT USE THIS WILL BE REMOVED SOON.
|
|
12
|
+
*
|
|
13
|
+
* This was intended for rollout of bitbucket only.
|
|
14
|
+
*/
|
|
15
|
+
default as ToolbarFeedback, } from './ui/ToolbarFeedback';
|
|
9
16
|
export {
|
|
10
17
|
/**
|
|
11
18
|
* @deprecated
|