@atlaskit/editor-plugin-text-formatting 1.11.2 → 1.13.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,33 @@
1
1
  # @atlaskit/editor-plugin-text-formatting
2
2
 
3
+ ## 1.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#128347](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128347)
8
+ [`e33566cebd5d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e33566cebd5d1) -
9
+ [ED-24175] bump @atlaskit/adf-schema to 40.8.1 and @atlassian/adf-schema-json to 1.22.0 to
10
+ promotecodeblocks & media in quotes, and nested expands in expands to full schema, and allow
11
+ quotes in panels and decisions in lists in stage0 schema, and a validator spec change
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
17
+ ## 1.12.0
18
+
19
+ ### Minor Changes
20
+
21
+ - [#126478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/126478)
22
+ [`ca1665ebbfe4d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ca1665ebbfe4d) -
23
+ [ED-23435] Store primary toolbar component registry in a plugin variable instead of in plugin
24
+ state to avoid having to add effects to all plugins and enable SSR for the toolbar. [Breaking
25
+ change] Converted registerComponent from the primary toolbar plugin into an action.
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies
30
+
3
31
  ## 1.11.2
4
32
 
5
33
  ### Patch Changes
@@ -24,7 +24,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
24
24
  * from `@atlaskit/editor-core`.
25
25
  */
26
26
  var textFormattingPlugin = exports.textFormattingPlugin = function textFormattingPlugin(_ref) {
27
- var _api$analytics6, _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics10, _api$analytics11, _api$analytics12;
27
+ var _api$primaryToolbar, _api$analytics6, _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics10, _api$analytics11, _api$analytics12;
28
28
  var options = _ref.config,
29
29
  api = _ref.api;
30
30
  var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
@@ -45,6 +45,10 @@ var textFormattingPlugin = exports.textFormattingPlugin = function textFormattin
45
45
  shouldUseResponsiveToolbar: Boolean(options === null || options === void 0 ? void 0 : options.responsiveToolbarMenu)
46
46
  });
47
47
  };
48
+ api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 || _api$primaryToolbar.actions.registerComponent({
49
+ name: 'textFormatting',
50
+ component: primaryToolbarComponent
51
+ });
48
52
  return {
49
53
  name: 'textFormatting',
50
54
  marks: function marks() {
@@ -124,13 +128,6 @@ var textFormattingPlugin = exports.textFormattingPlugin = function textFormattin
124
128
  formattingIsPresent: (_clearFormattingPlugi = _clearFormatting.pluginKey.getState(editorState)) === null || _clearFormattingPlugi === void 0 ? void 0 : _clearFormattingPlugi.formattingIsPresent
125
129
  });
126
130
  },
127
- usePluginHook: function usePluginHook() {
128
- var _api$core, _api$primaryToolbar;
129
- api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.commands.registerComponent({
130
- name: 'textFormatting',
131
- component: primaryToolbarComponent
132
- }));
133
- },
134
131
  primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined,
135
132
  commands: {
136
133
  toggleSuperscript: (0, _commands.toggleSuperscriptWithAnalytics)(api === null || api === void 0 || (_api$analytics6 = api.analytics) === null || _api$analytics6 === void 0 ? void 0 : _api$analytics6.actions),
@@ -17,7 +17,7 @@ export const textFormattingPlugin = ({
17
17
  config: options,
18
18
  api
19
19
  }) => {
20
- var _api$analytics6, _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics10, _api$analytics11, _api$analytics12;
20
+ var _api$primaryToolbar, _api$analytics6, _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics10, _api$analytics11, _api$analytics12;
21
21
  const primaryToolbarComponent = ({
22
22
  editorView,
23
23
  popupsMountPoint,
@@ -37,6 +37,10 @@ export const textFormattingPlugin = ({
37
37
  shouldUseResponsiveToolbar: Boolean(options === null || options === void 0 ? void 0 : options.responsiveToolbarMenu)
38
38
  });
39
39
  };
40
+ api === null || api === void 0 ? void 0 : (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.actions.registerComponent({
41
+ name: 'textFormatting',
42
+ component: primaryToolbarComponent
43
+ });
40
44
  return {
41
45
  name: 'textFormatting',
42
46
  marks() {
@@ -117,13 +121,6 @@ export const textFormattingPlugin = ({
117
121
  formattingIsPresent: (_clearFormattingPlugi = clearFormattingPluginKey.getState(editorState)) === null || _clearFormattingPlugi === void 0 ? void 0 : _clearFormattingPlugi.formattingIsPresent
118
122
  };
119
123
  },
120
- usePluginHook: () => {
121
- var _api$core, _api$primaryToolbar;
122
- api === null || api === void 0 ? void 0 : (_api$core = api.core) === null || _api$core === void 0 ? void 0 : _api$core.actions.execute(api === null || api === void 0 ? void 0 : (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.commands.registerComponent({
123
- name: 'textFormatting',
124
- component: primaryToolbarComponent
125
- }));
126
- },
127
124
  primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined,
128
125
  commands: {
129
126
  toggleSuperscript: toggleSuperscriptWithAnalytics(api === null || api === void 0 ? void 0 : (_api$analytics6 = api.analytics) === null || _api$analytics6 === void 0 ? void 0 : _api$analytics6.actions),
@@ -17,7 +17,7 @@ import { PrimaryToolbarComponent } from './ui/PrimaryToolbarComponent';
17
17
  * from `@atlaskit/editor-core`.
18
18
  */
19
19
  export var textFormattingPlugin = function textFormattingPlugin(_ref) {
20
- var _api$analytics6, _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics10, _api$analytics11, _api$analytics12;
20
+ var _api$primaryToolbar, _api$analytics6, _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics10, _api$analytics11, _api$analytics12;
21
21
  var options = _ref.config,
22
22
  api = _ref.api;
23
23
  var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
@@ -38,6 +38,10 @@ export var textFormattingPlugin = function textFormattingPlugin(_ref) {
38
38
  shouldUseResponsiveToolbar: Boolean(options === null || options === void 0 ? void 0 : options.responsiveToolbarMenu)
39
39
  });
40
40
  };
41
+ api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 || _api$primaryToolbar.actions.registerComponent({
42
+ name: 'textFormatting',
43
+ component: primaryToolbarComponent
44
+ });
41
45
  return {
42
46
  name: 'textFormatting',
43
47
  marks: function marks() {
@@ -117,13 +121,6 @@ export var textFormattingPlugin = function textFormattingPlugin(_ref) {
117
121
  formattingIsPresent: (_clearFormattingPlugi = clearFormattingPluginKey.getState(editorState)) === null || _clearFormattingPlugi === void 0 ? void 0 : _clearFormattingPlugi.formattingIsPresent
118
122
  });
119
123
  },
120
- usePluginHook: function usePluginHook() {
121
- var _api$core, _api$primaryToolbar;
122
- api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.commands.registerComponent({
123
- name: 'textFormatting',
124
- component: primaryToolbarComponent
125
- }));
126
- },
127
124
  primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined,
128
125
  commands: {
129
126
  toggleSuperscript: toggleSuperscriptWithAnalytics(api === null || api === void 0 || (_api$analytics6 = api.analytics) === null || _api$analytics6 === void 0 ? void 0 : _api$analytics6.actions),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "1.11.2",
3
+ "version": "1.13.0",
4
4
  "description": "Text-formatting plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,14 +32,14 @@
32
32
  ".": "./src/index.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/adf-schema": "^40.3.0",
36
- "@atlaskit/editor-common": "^87.1.0",
37
- "@atlaskit/editor-plugin-analytics": "^1.6.0",
38
- "@atlaskit/editor-plugin-primary-toolbar": "^1.3.0",
35
+ "@atlaskit/adf-schema": "^40.8.1",
36
+ "@atlaskit/editor-common": "^87.6.0",
37
+ "@atlaskit/editor-plugin-analytics": "^1.7.0",
38
+ "@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
39
39
  "@atlaskit/editor-prosemirror": "5.0.1",
40
40
  "@atlaskit/editor-shared-styles": "^2.13.0",
41
41
  "@atlaskit/editor-tables": "^2.8.0",
42
- "@atlaskit/icon": "^22.8.0",
42
+ "@atlaskit/icon": "^22.11.0",
43
43
  "@atlaskit/platform-feature-flags": "^0.3.0",
44
44
  "@atlaskit/prosemirror-input-rules": "^3.2.0",
45
45
  "@babel/runtime": "^7.0.0",