@atlaskit/editor-plugin-text-formatting 1.2.4 → 1.3.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/editor-plugin-text-formatting
2
2
 
3
+ ## 1.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
8
+
9
+ ## 1.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#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.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 1.2.4
4
20
 
5
21
  ### 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 ? [] : {
@@ -15,7 +15,7 @@ export type ToolbarFormattingProps = {
15
15
  editorAnalyticsAPI?: EditorAnalyticsAPI;
16
16
  textFormattingState: TextFormattingState | undefined;
17
17
  };
18
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<ToolbarFormattingProps & WrappedComponentProps<"intl">>> & {
19
- WrappedComponent: import("react").ComponentType<ToolbarFormattingProps & WrappedComponentProps<"intl">>;
18
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<ToolbarFormattingProps & WrappedComponentProps>> & {
19
+ WrappedComponent: import("react").ComponentType<ToolbarFormattingProps & WrappedComponentProps>;
20
20
  };
21
21
  export default _default;
@@ -15,7 +15,7 @@ export type ToolbarFormattingProps = {
15
15
  editorAnalyticsAPI?: EditorAnalyticsAPI;
16
16
  textFormattingState: TextFormattingState | undefined;
17
17
  };
18
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<ToolbarFormattingProps & WrappedComponentProps<"intl">>> & {
19
- WrappedComponent: import("react").ComponentType<ToolbarFormattingProps & WrappedComponentProps<"intl">>;
18
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<ToolbarFormattingProps & WrappedComponentProps>> & {
19
+ WrappedComponent: import("react").ComponentType<ToolbarFormattingProps & WrappedComponentProps>;
20
20
  };
21
21
  export default _default;
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.1",
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.17.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",
@@ -53,7 +53,7 @@
53
53
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
54
54
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
55
55
  "@testing-library/react": "^12.1.5",
56
- "typescript": "~4.9.5"
56
+ "typescript": "~5.4.2"
57
57
  },
58
58
  "techstack": {
59
59
  "@atlassian/frontend": {