@atlaskit/editor-plugin-text-formatting 16.1.3 → 16.1.5
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
CHANGED
|
@@ -7,7 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.textFormattingPlugin = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var
|
|
10
|
+
var _code = require("@atlaskit/adf-schema/code");
|
|
11
|
+
var _em = require("@atlaskit/adf-schema/em");
|
|
12
|
+
var _strike = require("@atlaskit/adf-schema/strike");
|
|
13
|
+
var _strong = require("@atlaskit/adf-schema/strong");
|
|
14
|
+
var _subsup = require("@atlaskit/adf-schema/subsup");
|
|
15
|
+
var _underline = require("@atlaskit/adf-schema/underline");
|
|
11
16
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
12
17
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
13
18
|
var _toggleMark = require("./editor-commands/toggle-mark");
|
|
@@ -69,22 +74,22 @@ var textFormattingPlugin = exports.textFormattingPlugin = function textFormattin
|
|
|
69
74
|
marks: function marks() {
|
|
70
75
|
return [{
|
|
71
76
|
name: 'em',
|
|
72
|
-
mark:
|
|
77
|
+
mark: _em.em
|
|
73
78
|
}, {
|
|
74
79
|
name: 'strong',
|
|
75
|
-
mark:
|
|
80
|
+
mark: _strong.strong
|
|
76
81
|
}].concat(options !== null && options !== void 0 && options.disableStrikethrough ? [] : {
|
|
77
82
|
name: 'strike',
|
|
78
|
-
mark:
|
|
83
|
+
mark: _strike.strike
|
|
79
84
|
}).concat(options !== null && options !== void 0 && options.disableCode ? [] : {
|
|
80
85
|
name: 'code',
|
|
81
|
-
mark:
|
|
86
|
+
mark: _code.code
|
|
82
87
|
}).concat(options !== null && options !== void 0 && options.disableSuperscriptAndSubscript ? [] : {
|
|
83
88
|
name: 'subsup',
|
|
84
|
-
mark:
|
|
89
|
+
mark: _subsup.subsup
|
|
85
90
|
}).concat(options !== null && options !== void 0 && options.disableUnderline ? [] : {
|
|
86
91
|
name: 'underline',
|
|
87
|
-
mark:
|
|
92
|
+
mark: _underline.underline
|
|
88
93
|
});
|
|
89
94
|
},
|
|
90
95
|
pmPlugins: function pmPlugins() {
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { code
|
|
2
|
+
import { code } from '@atlaskit/adf-schema/code';
|
|
3
|
+
import { em } from '@atlaskit/adf-schema/em';
|
|
4
|
+
import { strike } from '@atlaskit/adf-schema/strike';
|
|
5
|
+
import { strong } from '@atlaskit/adf-schema/strong';
|
|
6
|
+
import { subsup } from '@atlaskit/adf-schema/subsup';
|
|
7
|
+
import { underline } from '@atlaskit/adf-schema/underline';
|
|
3
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
5
10
|
import { toggleCodeWithAnalytics, toggleEmWithAnalytics, toggleStrikeWithAnalytics, toggleStrongWithAnalytics, toggleSubscriptWithAnalytics, toggleSuperscriptWithAnalytics, toggleUnderlineWithAnalytics } from './editor-commands/toggle-mark';
|
|
@@ -2,7 +2,12 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { code
|
|
5
|
+
import { code } from '@atlaskit/adf-schema/code';
|
|
6
|
+
import { em } from '@atlaskit/adf-schema/em';
|
|
7
|
+
import { strike } from '@atlaskit/adf-schema/strike';
|
|
8
|
+
import { strong } from '@atlaskit/adf-schema/strong';
|
|
9
|
+
import { subsup } from '@atlaskit/adf-schema/subsup';
|
|
10
|
+
import { underline } from '@atlaskit/adf-schema/underline';
|
|
6
11
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
12
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
8
13
|
import { toggleCodeWithAnalytics, toggleEmWithAnalytics, toggleStrikeWithAnalytics, toggleStrongWithAnalytics, toggleSubscriptWithAnalytics, toggleSuperscriptWithAnalytics, toggleUnderlineWithAnalytics } from './editor-commands/toggle-mark';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "16.1.
|
|
3
|
+
"version": "16.1.5",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"@atlaskit/icon": "^37.6.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
40
40
|
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^173.0.0",
|
|
42
42
|
"@atlaskit/tokens": "^16.11.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"@emotion/react": "^11.7.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@atlaskit/editor-common": "^120.
|
|
47
|
+
"@atlaskit/editor-common": "^120.11.0",
|
|
48
48
|
"react": "^18.2.0 || ^19.2.0",
|
|
49
49
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
50
50
|
},
|
|
@@ -53,42 +53,6 @@
|
|
|
53
53
|
"react": "^19.2.0",
|
|
54
54
|
"react-intl": "^7.0.0"
|
|
55
55
|
},
|
|
56
|
-
"techstack": {
|
|
57
|
-
"@atlassian/frontend": {
|
|
58
|
-
"code-structure": [
|
|
59
|
-
"editor-plugin"
|
|
60
|
-
],
|
|
61
|
-
"import-structure": [
|
|
62
|
-
"atlassian-conventions"
|
|
63
|
-
],
|
|
64
|
-
"circular-dependencies": [
|
|
65
|
-
"file-and-folder-level"
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
|
-
"@repo/internal": {
|
|
69
|
-
"dom-events": "use-bind-event-listener",
|
|
70
|
-
"analytics": [
|
|
71
|
-
"analytics-next"
|
|
72
|
-
],
|
|
73
|
-
"design-tokens": [
|
|
74
|
-
"color"
|
|
75
|
-
],
|
|
76
|
-
"theming": [
|
|
77
|
-
"react-context"
|
|
78
|
-
],
|
|
79
|
-
"ui-components": [
|
|
80
|
-
"lite-mode"
|
|
81
|
-
],
|
|
82
|
-
"deprecation": "no-deprecated-imports",
|
|
83
|
-
"styling": [
|
|
84
|
-
"emotion",
|
|
85
|
-
"emotion"
|
|
86
|
-
],
|
|
87
|
-
"imports": [
|
|
88
|
-
"import-no-extraneous-disable-for-examples-and-docs"
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
56
|
"platform-feature-flags": {
|
|
93
57
|
"platform_editor_toolbar_responsive_fixes": {
|
|
94
58
|
"type": "boolean"
|