@atlaskit/editor-plugin-alignment 1.14.7 → 1.14.9

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-alignment
2
2
 
3
+ ## 1.14.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#105009](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105009)
8
+ [`a4039ebf7ed11`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a4039ebf7ed11) -
9
+ [ux] Implement variant 2 cohorts experience for platform_editor_contextual_formatting_toolbar_v2
10
+ experiment
11
+ - Updated dependencies
12
+
13
+ ## 1.14.8
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 1.14.7
4
20
 
5
21
  ### Patch Changes
@@ -75,6 +75,8 @@ var alignmentPlugin = exports.alignmentPlugin = function alignmentPlugin(_ref) {
75
75
  selectionToolbar: function selectionToolbar() {
76
76
  if ((0, _experiments.editorExperiment)('contextual_formatting_toolbar', true, {
77
77
  exposure: true
78
+ }) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
79
+ exposure: true
78
80
  })) {
79
81
  var toolbarCustom = {
80
82
  type: 'custom',
@@ -97,7 +97,7 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
97
97
  api = _this$props.api;
98
98
  var alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
99
99
  var title = intl.formatMessage(_messages.alignmentMessages.alignment);
100
- var reducedSpacing = (0, _experiments.editorExperiment)('contextual_formatting_toolbar', true) ? 'compact' : 'none';
100
+ var reducedSpacing = (0, _experiments.editorExperiment)('contextual_formatting_toolbar', true) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant2') ? 'compact' : 'none';
101
101
  return (
102
102
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
103
103
  (0, _react2.jsx)("span", {
@@ -67,6 +67,8 @@ export const alignmentPlugin = ({
67
67
  selectionToolbar: () => {
68
68
  if (editorExperiment('contextual_formatting_toolbar', true, {
69
69
  exposure: true
70
+ }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
71
+ exposure: true
70
72
  })) {
71
73
  const toolbarCustom = {
72
74
  type: 'custom',
@@ -79,7 +79,7 @@ export class AlignmentToolbar extends React.Component {
79
79
  } = this.props;
80
80
  const alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
81
81
  const title = intl.formatMessage(messages.alignment);
82
- const reducedSpacing = editorExperiment('contextual_formatting_toolbar', true) ? 'compact' : 'none';
82
+ const reducedSpacing = editorExperiment('contextual_formatting_toolbar', true) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2') ? 'compact' : 'none';
83
83
  return (
84
84
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
85
85
  jsx("span", {
@@ -68,6 +68,8 @@ export var alignmentPlugin = function alignmentPlugin(_ref) {
68
68
  selectionToolbar: function selectionToolbar() {
69
69
  if (editorExperiment('contextual_formatting_toolbar', true, {
70
70
  exposure: true
71
+ }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
72
+ exposure: true
71
73
  })) {
72
74
  var toolbarCustom = {
73
75
  type: 'custom',
@@ -93,7 +93,7 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
93
93
  api = _this$props.api;
94
94
  var alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
95
95
  var title = intl.formatMessage(messages.alignment);
96
- var reducedSpacing = editorExperiment('contextual_formatting_toolbar', true) ? 'compact' : 'none';
96
+ var reducedSpacing = editorExperiment('contextual_formatting_toolbar', true) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2') ? 'compact' : 'none';
97
97
  return (
98
98
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
99
99
  jsx("span", {
@@ -1,7 +1,8 @@
1
1
  import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
3
3
  import type { AlignmentPluginState } from './pm-plugins/types';
4
+ export type AlignmentPluginDependencies = [OptionalPlugin<PrimaryToolbarPlugin>];
4
5
  export type AlignmentPlugin = NextEditorPlugin<'alignment', {
5
6
  sharedState: AlignmentPluginState | undefined;
6
- dependencies: [OptionalPlugin<PrimaryToolbarPlugin>];
7
+ dependencies: AlignmentPluginDependencies;
7
8
  }>;
@@ -1,9 +1,10 @@
1
1
  import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
3
3
  import type { AlignmentPluginState } from './pm-plugins/types';
4
+ export type AlignmentPluginDependencies = [
5
+ OptionalPlugin<PrimaryToolbarPlugin>
6
+ ];
4
7
  export type AlignmentPlugin = NextEditorPlugin<'alignment', {
5
8
  sharedState: AlignmentPluginState | undefined;
6
- dependencies: [
7
- OptionalPlugin<PrimaryToolbarPlugin>
8
- ];
9
+ dependencies: AlignmentPluginDependencies;
9
10
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-alignment",
3
- "version": "1.14.7",
3
+ "version": "1.14.9",
4
4
  "description": "Alignment plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -21,14 +21,14 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@atlaskit/adf-schema": "^46.1.0",
24
- "@atlaskit/editor-common": "^98.0.0",
24
+ "@atlaskit/editor-common": "^99.5.0",
25
25
  "@atlaskit/editor-plugin-primary-toolbar": "^2.1.0",
26
26
  "@atlaskit/editor-prosemirror": "6.2.1",
27
27
  "@atlaskit/editor-tables": "^2.8.0",
28
- "@atlaskit/icon": "^23.1.0",
28
+ "@atlaskit/icon": "^23.4.0",
29
29
  "@atlaskit/platform-feature-flags": "0.3.0",
30
- "@atlaskit/tmp-editor-statsig": "^2.31.0",
31
- "@atlaskit/tokens": "^2.5.0",
30
+ "@atlaskit/tmp-editor-statsig": "^2.39.0",
31
+ "@atlaskit/tokens": "^3.2.0",
32
32
  "@babel/runtime": "^7.0.0",
33
33
  "@emotion/react": "^11.7.1"
34
34
  },