@atlaskit/editor-plugin-text-formatting 16.1.4 → 16.1.6

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,17 @@
1
1
  # @atlaskit/editor-plugin-text-formatting
2
2
 
3
+ ## 16.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 16.1.5
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 16.1.4
4
16
 
5
17
  ### Patch Changes
@@ -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 _adfSchema = require("@atlaskit/adf-schema");
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: _adfSchema.em
77
+ mark: _em.em
73
78
  }, {
74
79
  name: 'strong',
75
- mark: _adfSchema.strong
80
+ mark: _strong.strong
76
81
  }].concat(options !== null && options !== void 0 && options.disableStrikethrough ? [] : {
77
82
  name: 'strike',
78
- mark: _adfSchema.strike
83
+ mark: _strike.strike
79
84
  }).concat(options !== null && options !== void 0 && options.disableCode ? [] : {
80
85
  name: 'code',
81
- mark: _adfSchema.code
86
+ mark: _code.code
82
87
  }).concat(options !== null && options !== void 0 && options.disableSuperscriptAndSubscript ? [] : {
83
88
  name: 'subsup',
84
- mark: _adfSchema.subsup
89
+ mark: _subsup.subsup
85
90
  }).concat(options !== null && options !== void 0 && options.disableUnderline ? [] : {
86
91
  name: 'underline',
87
- mark: _adfSchema.underline
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, em, strike, strong, subsup, underline } from '@atlaskit/adf-schema';
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, em, strike, strong, subsup, underline } from '@atlaskit/adf-schema';
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.4",
3
+ "version": "16.1.6",
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": "^172.0.0",
41
+ "@atlaskit/tmp-editor-statsig": "^174.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.11.0",
47
+ "@atlaskit/editor-common": "^120.12.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
  },