@atlaskit/editor-plugin-text-formatting 2.2.14 → 2.2.15
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 +6 -0
- package/dist/cjs/pm-plugins/commands.js +12 -12
- package/dist/cjs/pm-plugins/main.js +1 -2
- package/dist/cjs/textFormattingPlugin.js +5 -5
- package/dist/cjs/ui/FloatingToolbarComponent.js +1 -2
- package/dist/cjs/ui/Toolbar/dropdown-menu.js +1 -2
- package/dist/cjs/ui/Toolbar/single-toolbar-buttons.js +1 -2
- package/dist/es2019/textFormattingPlugin.js +5 -5
- package/dist/esm/pm-plugins/commands.js +12 -12
- package/dist/esm/textFormattingPlugin.js +5 -5
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -162,8 +162,8 @@ var toggleSuperscript = exports.toggleSuperscript = function toggleSuperscript(_
|
|
|
162
162
|
};
|
|
163
163
|
var toggleSuperscriptWithAnalytics = exports.toggleSuperscriptWithAnalytics = function toggleSuperscriptWithAnalytics(editorAnalyticsApi) {
|
|
164
164
|
return function (inputMethod) {
|
|
165
|
-
return function (
|
|
166
|
-
var tr =
|
|
165
|
+
return function (_ref0) {
|
|
166
|
+
var tr = _ref0.tr;
|
|
167
167
|
var newTr = toggleSuperscript({
|
|
168
168
|
tr: tr
|
|
169
169
|
});
|
|
@@ -184,8 +184,8 @@ var toggleSuperscriptWithAnalytics = exports.toggleSuperscriptWithAnalytics = fu
|
|
|
184
184
|
};
|
|
185
185
|
};
|
|
186
186
|
};
|
|
187
|
-
var toggleSubscript = exports.toggleSubscript = function toggleSubscript(
|
|
188
|
-
var tr =
|
|
187
|
+
var toggleSubscript = exports.toggleSubscript = function toggleSubscript(_ref1) {
|
|
188
|
+
var tr = _ref1.tr;
|
|
189
189
|
var subsup = tr.doc.type.schema.marks.subsup;
|
|
190
190
|
if (!subsup) {
|
|
191
191
|
// No transaction to apply
|
|
@@ -199,8 +199,8 @@ var toggleSubscript = exports.toggleSubscript = function toggleSubscript(_ref11)
|
|
|
199
199
|
};
|
|
200
200
|
var toggleSubscriptWithAnalytics = exports.toggleSubscriptWithAnalytics = function toggleSubscriptWithAnalytics(editorAnalyticsApi) {
|
|
201
201
|
return function (inputMethod) {
|
|
202
|
-
return function (
|
|
203
|
-
var tr =
|
|
202
|
+
return function (_ref10) {
|
|
203
|
+
var tr = _ref10.tr;
|
|
204
204
|
var newTr = toggleSubscript({
|
|
205
205
|
tr: tr
|
|
206
206
|
});
|
|
@@ -221,10 +221,10 @@ var toggleSubscriptWithAnalytics = exports.toggleSubscriptWithAnalytics = functi
|
|
|
221
221
|
};
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
|
-
var toggleCode = exports.toggleCode = function toggleCode(
|
|
225
|
-
var api =
|
|
226
|
-
return function (
|
|
227
|
-
var tr =
|
|
224
|
+
var toggleCode = exports.toggleCode = function toggleCode(_ref11) {
|
|
225
|
+
var api = _ref11.api;
|
|
226
|
+
return function (_ref12) {
|
|
227
|
+
var tr = _ref12.tr;
|
|
228
228
|
var code = tr.doc.type.schema.marks.code;
|
|
229
229
|
if (!code) {
|
|
230
230
|
// No transaction to apply
|
|
@@ -237,8 +237,8 @@ var toggleCode = exports.toggleCode = function toggleCode(_ref13) {
|
|
|
237
237
|
};
|
|
238
238
|
var toggleCodeWithAnalytics = exports.toggleCodeWithAnalytics = function toggleCodeWithAnalytics(editorAnalyticsApi, api) {
|
|
239
239
|
return function (inputMethod) {
|
|
240
|
-
return function (
|
|
241
|
-
var tr =
|
|
240
|
+
return function (_ref13) {
|
|
241
|
+
var tr = _ref13.tr;
|
|
242
242
|
var newTr = toggleCode({
|
|
243
243
|
api: api
|
|
244
244
|
})({
|
|
@@ -16,8 +16,7 @@ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
|
16
16
|
var _textFormatting = _interopRequireWildcard(require("../editor-commands/text-formatting"));
|
|
17
17
|
var commands = _textFormatting;
|
|
18
18
|
var _pluginKey = require("./plugin-key");
|
|
19
|
-
function
|
|
20
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
21
20
|
// TODO: ED-26962 - Ideally this should use the custom toggleMark function from @atlaskit/editor-common so we also disable the options when selecting inline nodes but it disables the marks when the selection is empty at this point in time which is undesirable
|
|
22
21
|
// import { toggleMark } from '@atlaskit/editor-common/mark';
|
|
23
22
|
|
|
@@ -27,7 +27,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
27
27
|
* from `@atlaskit/editor-core`.
|
|
28
28
|
*/
|
|
29
29
|
var textFormattingPlugin = exports.textFormattingPlugin = function textFormattingPlugin(_ref) {
|
|
30
|
-
var _api$primaryToolbar, _api$analytics7, _api$analytics8, _api$analytics9, _api$
|
|
30
|
+
var _api$primaryToolbar, _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics0, _api$analytics1, _api$analytics10, _api$analytics11;
|
|
31
31
|
var options = _ref.config,
|
|
32
32
|
api = _ref.api;
|
|
33
33
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
|
@@ -184,10 +184,10 @@ var textFormattingPlugin = exports.textFormattingPlugin = function textFormattin
|
|
|
184
184
|
toggleSuperscript: (0, _commands.toggleSuperscriptWithAnalytics)(api === null || api === void 0 || (_api$analytics7 = api.analytics) === null || _api$analytics7 === void 0 ? void 0 : _api$analytics7.actions),
|
|
185
185
|
toggleSubscript: (0, _commands.toggleSubscriptWithAnalytics)(api === null || api === void 0 || (_api$analytics8 = api.analytics) === null || _api$analytics8 === void 0 ? void 0 : _api$analytics8.actions),
|
|
186
186
|
toggleStrike: (0, _commands.toggleStrikeWithAnalytics)(api === null || api === void 0 || (_api$analytics9 = api.analytics) === null || _api$analytics9 === void 0 ? void 0 : _api$analytics9.actions),
|
|
187
|
-
toggleCode: (0, _commands.toggleCodeWithAnalytics)(api === null || api === void 0 || (_api$
|
|
188
|
-
toggleUnderline: (0, _commands.toggleUnderlineWithAnalytics)(api === null || api === void 0 || (_api$
|
|
189
|
-
toggleEm: (0, _commands.toggleEmWithAnalytics)(api === null || api === void 0 || (_api$
|
|
190
|
-
toggleStrong: (0, _commands.toggleStrongWithAnalytics)(api === null || api === void 0 || (_api$
|
|
187
|
+
toggleCode: (0, _commands.toggleCodeWithAnalytics)(api === null || api === void 0 || (_api$analytics0 = api.analytics) === null || _api$analytics0 === void 0 ? void 0 : _api$analytics0.actions),
|
|
188
|
+
toggleUnderline: (0, _commands.toggleUnderlineWithAnalytics)(api === null || api === void 0 || (_api$analytics1 = api.analytics) === null || _api$analytics1 === void 0 ? void 0 : _api$analytics1.actions),
|
|
189
|
+
toggleEm: (0, _commands.toggleEmWithAnalytics)(api === null || api === void 0 || (_api$analytics10 = api.analytics) === null || _api$analytics10 === void 0 ? void 0 : _api$analytics10.actions),
|
|
190
|
+
toggleStrong: (0, _commands.toggleStrongWithAnalytics)(api === null || api === void 0 || (_api$analytics11 = api.analytics) === null || _api$analytics11 === void 0 ? void 0 : _api$analytics11.actions)
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
193
|
};
|
|
@@ -30,8 +30,7 @@ var _excluded = ["formattingIsPresent"];
|
|
|
30
30
|
* @jsx jsx
|
|
31
31
|
*/
|
|
32
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
33
|
-
function
|
|
34
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
33
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
35
34
|
var FloatingToolbarSettings = {
|
|
36
35
|
disabled: false,
|
|
37
36
|
isReducedSpacing: true,
|
|
@@ -16,8 +16,7 @@ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
|
16
16
|
var _dropdownToolbarButton = require("./dropdown-toolbar-button");
|
|
17
17
|
var _menuState = require("./hooks/menu-state");
|
|
18
18
|
var _moreButton = require("./more-button");
|
|
19
|
-
function
|
|
20
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
21
20
|
var FormattingTextDropdownMenu = exports.FormattingTextDropdownMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
22
21
|
var _items$0$items$, _items$0$items$2;
|
|
23
22
|
var editorView = _ref.editorView,
|
|
@@ -11,8 +11,7 @@ var _styles = require("@atlaskit/editor-common/styles");
|
|
|
11
11
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
12
12
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
13
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
14
|
-
function
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
15
|
/**
|
|
17
16
|
* @jsxRuntime classic
|
|
18
17
|
* @jsx jsx
|
|
@@ -21,7 +21,7 @@ export const textFormattingPlugin = ({
|
|
|
21
21
|
config: options,
|
|
22
22
|
api
|
|
23
23
|
}) => {
|
|
24
|
-
var _api$primaryToolbar, _api$analytics7, _api$analytics8, _api$analytics9, _api$
|
|
24
|
+
var _api$primaryToolbar, _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics0, _api$analytics1, _api$analytics10, _api$analytics11;
|
|
25
25
|
const primaryToolbarComponent = ({
|
|
26
26
|
editorView,
|
|
27
27
|
popupsMountPoint,
|
|
@@ -178,10 +178,10 @@ export const textFormattingPlugin = ({
|
|
|
178
178
|
toggleSuperscript: toggleSuperscriptWithAnalytics(api === null || api === void 0 ? void 0 : (_api$analytics7 = api.analytics) === null || _api$analytics7 === void 0 ? void 0 : _api$analytics7.actions),
|
|
179
179
|
toggleSubscript: toggleSubscriptWithAnalytics(api === null || api === void 0 ? void 0 : (_api$analytics8 = api.analytics) === null || _api$analytics8 === void 0 ? void 0 : _api$analytics8.actions),
|
|
180
180
|
toggleStrike: toggleStrikeWithAnalytics(api === null || api === void 0 ? void 0 : (_api$analytics9 = api.analytics) === null || _api$analytics9 === void 0 ? void 0 : _api$analytics9.actions),
|
|
181
|
-
toggleCode: toggleCodeWithAnalytics(api === null || api === void 0 ? void 0 : (_api$
|
|
182
|
-
toggleUnderline: toggleUnderlineWithAnalytics(api === null || api === void 0 ? void 0 : (_api$
|
|
183
|
-
toggleEm: toggleEmWithAnalytics(api === null || api === void 0 ? void 0 : (_api$
|
|
184
|
-
toggleStrong: toggleStrongWithAnalytics(api === null || api === void 0 ? void 0 : (_api$
|
|
181
|
+
toggleCode: toggleCodeWithAnalytics(api === null || api === void 0 ? void 0 : (_api$analytics0 = api.analytics) === null || _api$analytics0 === void 0 ? void 0 : _api$analytics0.actions),
|
|
182
|
+
toggleUnderline: toggleUnderlineWithAnalytics(api === null || api === void 0 ? void 0 : (_api$analytics1 = api.analytics) === null || _api$analytics1 === void 0 ? void 0 : _api$analytics1.actions),
|
|
183
|
+
toggleEm: toggleEmWithAnalytics(api === null || api === void 0 ? void 0 : (_api$analytics10 = api.analytics) === null || _api$analytics10 === void 0 ? void 0 : _api$analytics10.actions),
|
|
184
|
+
toggleStrong: toggleStrongWithAnalytics(api === null || api === void 0 ? void 0 : (_api$analytics11 = api.analytics) === null || _api$analytics11 === void 0 ? void 0 : _api$analytics11.actions)
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
};
|
|
@@ -156,8 +156,8 @@ export var toggleSuperscript = function toggleSuperscript(_ref9) {
|
|
|
156
156
|
};
|
|
157
157
|
export var toggleSuperscriptWithAnalytics = function toggleSuperscriptWithAnalytics(editorAnalyticsApi) {
|
|
158
158
|
return function (inputMethod) {
|
|
159
|
-
return function (
|
|
160
|
-
var tr =
|
|
159
|
+
return function (_ref0) {
|
|
160
|
+
var tr = _ref0.tr;
|
|
161
161
|
var newTr = toggleSuperscript({
|
|
162
162
|
tr: tr
|
|
163
163
|
});
|
|
@@ -178,8 +178,8 @@ export var toggleSuperscriptWithAnalytics = function toggleSuperscriptWithAnalyt
|
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
};
|
|
181
|
-
export var toggleSubscript = function toggleSubscript(
|
|
182
|
-
var tr =
|
|
181
|
+
export var toggleSubscript = function toggleSubscript(_ref1) {
|
|
182
|
+
var tr = _ref1.tr;
|
|
183
183
|
var subsup = tr.doc.type.schema.marks.subsup;
|
|
184
184
|
if (!subsup) {
|
|
185
185
|
// No transaction to apply
|
|
@@ -193,8 +193,8 @@ export var toggleSubscript = function toggleSubscript(_ref11) {
|
|
|
193
193
|
};
|
|
194
194
|
export var toggleSubscriptWithAnalytics = function toggleSubscriptWithAnalytics(editorAnalyticsApi) {
|
|
195
195
|
return function (inputMethod) {
|
|
196
|
-
return function (
|
|
197
|
-
var tr =
|
|
196
|
+
return function (_ref10) {
|
|
197
|
+
var tr = _ref10.tr;
|
|
198
198
|
var newTr = toggleSubscript({
|
|
199
199
|
tr: tr
|
|
200
200
|
});
|
|
@@ -215,10 +215,10 @@ export var toggleSubscriptWithAnalytics = function toggleSubscriptWithAnalytics(
|
|
|
215
215
|
};
|
|
216
216
|
};
|
|
217
217
|
};
|
|
218
|
-
export var toggleCode = function toggleCode(
|
|
219
|
-
var api =
|
|
220
|
-
return function (
|
|
221
|
-
var tr =
|
|
218
|
+
export var toggleCode = function toggleCode(_ref11) {
|
|
219
|
+
var api = _ref11.api;
|
|
220
|
+
return function (_ref12) {
|
|
221
|
+
var tr = _ref12.tr;
|
|
222
222
|
var code = tr.doc.type.schema.marks.code;
|
|
223
223
|
if (!code) {
|
|
224
224
|
// No transaction to apply
|
|
@@ -231,8 +231,8 @@ export var toggleCode = function toggleCode(_ref13) {
|
|
|
231
231
|
};
|
|
232
232
|
export var toggleCodeWithAnalytics = function toggleCodeWithAnalytics(editorAnalyticsApi, api) {
|
|
233
233
|
return function (inputMethod) {
|
|
234
|
-
return function (
|
|
235
|
-
var tr =
|
|
234
|
+
return function (_ref13) {
|
|
235
|
+
var tr = _ref13.tr;
|
|
236
236
|
var newTr = toggleCode({
|
|
237
237
|
api: api
|
|
238
238
|
})({
|
|
@@ -21,7 +21,7 @@ import { PrimaryToolbarComponent, PrimaryToolbarComponentMemoized } from './ui/P
|
|
|
21
21
|
* from `@atlaskit/editor-core`.
|
|
22
22
|
*/
|
|
23
23
|
export var textFormattingPlugin = function textFormattingPlugin(_ref) {
|
|
24
|
-
var _api$primaryToolbar, _api$analytics7, _api$analytics8, _api$analytics9, _api$
|
|
24
|
+
var _api$primaryToolbar, _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics0, _api$analytics1, _api$analytics10, _api$analytics11;
|
|
25
25
|
var options = _ref.config,
|
|
26
26
|
api = _ref.api;
|
|
27
27
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
|
@@ -178,10 +178,10 @@ export var textFormattingPlugin = function textFormattingPlugin(_ref) {
|
|
|
178
178
|
toggleSuperscript: toggleSuperscriptWithAnalytics(api === null || api === void 0 || (_api$analytics7 = api.analytics) === null || _api$analytics7 === void 0 ? void 0 : _api$analytics7.actions),
|
|
179
179
|
toggleSubscript: toggleSubscriptWithAnalytics(api === null || api === void 0 || (_api$analytics8 = api.analytics) === null || _api$analytics8 === void 0 ? void 0 : _api$analytics8.actions),
|
|
180
180
|
toggleStrike: toggleStrikeWithAnalytics(api === null || api === void 0 || (_api$analytics9 = api.analytics) === null || _api$analytics9 === void 0 ? void 0 : _api$analytics9.actions),
|
|
181
|
-
toggleCode: toggleCodeWithAnalytics(api === null || api === void 0 || (_api$
|
|
182
|
-
toggleUnderline: toggleUnderlineWithAnalytics(api === null || api === void 0 || (_api$
|
|
183
|
-
toggleEm: toggleEmWithAnalytics(api === null || api === void 0 || (_api$
|
|
184
|
-
toggleStrong: toggleStrongWithAnalytics(api === null || api === void 0 || (_api$
|
|
181
|
+
toggleCode: toggleCodeWithAnalytics(api === null || api === void 0 || (_api$analytics0 = api.analytics) === null || _api$analytics0 === void 0 ? void 0 : _api$analytics0.actions),
|
|
182
|
+
toggleUnderline: toggleUnderlineWithAnalytics(api === null || api === void 0 || (_api$analytics1 = api.analytics) === null || _api$analytics1 === void 0 ? void 0 : _api$analytics1.actions),
|
|
183
|
+
toggleEm: toggleEmWithAnalytics(api === null || api === void 0 || (_api$analytics10 = api.analytics) === null || _api$analytics10 === void 0 ? void 0 : _api$analytics10.actions),
|
|
184
|
+
toggleStrong: toggleStrongWithAnalytics(api === null || api === void 0 || (_api$analytics11 = api.analytics) === null || _api$analytics11 === void 0 ? void 0 : _api$analytics11.actions)
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.15",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
|
-
"@atlaskit/editor-common": "^106.
|
|
37
|
+
"@atlaskit/editor-common": "^106.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
39
39
|
"@atlaskit/editor-plugin-base": "^3.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-primary-toolbar": "^3.2.0",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@atlaskit/icon": "^26.4.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
49
|
-
"@atlaskit/tokens": "^
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^5.7.0",
|
|
49
|
+
"@atlaskit/tokens": "^5.0.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
52
|
"react-intl-next": "npm:react-intl@^5.18.1"
|