@atlaskit/editor-plugin-text-formatting 1.2.4 → 1.3.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @atlaskit/editor-plugin-text-formatting
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#82499](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/82499) [`cbd66fd38b62`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cbd66fd38b62) - Add option to disable strikethrough on text-formatting via disableStrikethrough.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
3
13
  ## 1.2.4
4
14
 
5
15
  ### Patch Changes
@@ -36,10 +36,10 @@ var textFormattingPlugin = exports.textFormattingPlugin = function textFormattin
36
36
  }, {
37
37
  name: 'strong',
38
38
  mark: _adfSchema.strong
39
- }, {
39
+ }].concat(options !== null && options !== void 0 && options.disableStrikethrough ? [] : {
40
40
  name: 'strike',
41
41
  mark: _adfSchema.strike
42
- }].concat(options !== null && options !== void 0 && options.disableCode ? [] : {
42
+ }).concat(options !== null && options !== void 0 && options.disableCode ? [] : {
43
43
  name: 'code',
44
44
  mark: _adfSchema.code
45
45
  }).concat(options !== null && options !== void 0 && options.disableSuperscriptAndSubscript ? [] : {
@@ -27,10 +27,10 @@ export const textFormattingPlugin = ({
27
27
  }, {
28
28
  name: 'strong',
29
29
  mark: strong
30
- }, {
30
+ }].concat(options !== null && options !== void 0 && options.disableStrikethrough ? [] : {
31
31
  name: 'strike',
32
32
  mark: strike
33
- }].concat(options !== null && options !== void 0 && options.disableCode ? [] : {
33
+ }).concat(options !== null && options !== void 0 && options.disableCode ? [] : {
34
34
  name: 'code',
35
35
  mark: code
36
36
  }).concat(options !== null && options !== void 0 && options.disableSuperscriptAndSubscript ? [] : {
@@ -29,10 +29,10 @@ export var textFormattingPlugin = function textFormattingPlugin(_ref) {
29
29
  }, {
30
30
  name: 'strong',
31
31
  mark: strong
32
- }, {
32
+ }].concat(options !== null && options !== void 0 && options.disableStrikethrough ? [] : {
33
33
  name: 'strike',
34
34
  mark: strike
35
- }].concat(options !== null && options !== void 0 && options.disableCode ? [] : {
35
+ }).concat(options !== null && options !== void 0 && options.disableCode ? [] : {
36
36
  name: 'code',
37
37
  mark: code
38
38
  }).concat(options !== null && options !== void 0 && options.disableSuperscriptAndSubscript ? [] : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "1.2.4",
3
+ "version": "1.3.0",
4
4
  "description": "Text-formatting plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@atlaskit/adf-schema": "^35.6.0",
36
- "@atlaskit/editor-common": "^78.14.0",
36
+ "@atlaskit/editor-common": "^78.16.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.0.0",
38
38
  "@atlaskit/editor-prosemirror": "3.0.0",
39
39
  "@atlaskit/editor-shared-styles": "^2.9.0",
@@ -89,4 +89,4 @@
89
89
  }
90
90
  },
91
91
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
92
- }
92
+ }