@atlaskit/editor-plugin-text-formatting 5.1.0 → 5.2.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,16 @@
1
1
  # @atlaskit/editor-plugin-text-formatting
2
2
 
3
+ ## 5.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b367661ba720e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b367661ba720e) -
8
+ EDITOR-1562 bump adf-schema for afm
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 5.1.0
4
15
 
5
16
  ### Minor Changes
@@ -40,6 +40,9 @@ var textFormattingPlugin = exports.textFormattingPlugin = function textFormattin
40
40
  isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
41
41
  toolbarSize = _ref2.toolbarSize,
42
42
  disabled = _ref2.disabled;
43
+ if (!editorView) {
44
+ return null;
45
+ }
43
46
  if ((0, _experiments.editorExperiment)('platform_editor_toolbar_rerender_optimization_exp', true, {
44
47
  exposure: true
45
48
  })) {
@@ -33,6 +33,9 @@ export const textFormattingPlugin = ({
33
33
  toolbarSize,
34
34
  disabled
35
35
  }) => {
36
+ if (!editorView) {
37
+ return null;
38
+ }
36
39
  if (editorExperiment('platform_editor_toolbar_rerender_optimization_exp', true, {
37
40
  exposure: true
38
41
  })) {
@@ -34,6 +34,9 @@ export var textFormattingPlugin = function textFormattingPlugin(_ref) {
34
34
  isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
35
35
  toolbarSize = _ref2.toolbarSize,
36
36
  disabled = _ref2.disabled;
37
+ if (!editorView) {
38
+ return null;
39
+ }
37
40
  if (editorExperiment('platform_editor_toolbar_rerender_optimization_exp', true, {
38
41
  exposure: true
39
42
  })) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "Text-formatting plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,9 +29,9 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^51.1.1",
33
- "@atlaskit/editor-plugin-analytics": "^5.1.0",
34
- "@atlaskit/editor-plugin-base": "^6.1.0",
32
+ "@atlaskit/adf-schema": "^51.1.2",
33
+ "@atlaskit/editor-plugin-analytics": "^5.2.0",
34
+ "@atlaskit/editor-plugin-base": "^6.2.0",
35
35
  "@atlaskit/editor-plugin-primary-toolbar": "^6.0.0",
36
36
  "@atlaskit/editor-plugin-selection-toolbar": "^6.1.0",
37
37
  "@atlaskit/editor-plugin-toolbar": "^2.1.0",
@@ -43,14 +43,14 @@
43
43
  "@atlaskit/icon": "^28.1.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^3.4.0",
46
- "@atlaskit/tmp-editor-statsig": "^12.14.0",
46
+ "@atlaskit/tmp-editor-statsig": "^12.18.0",
47
47
  "@atlaskit/tokens": "^6.3.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1",
50
50
  "react-intl-next": "npm:react-intl@^5.18.1"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^109.3.0",
53
+ "@atlaskit/editor-common": "^109.5.0",
54
54
  "react": "^18.2.0"
55
55
  },
56
56
  "devDependencies": {