@atlaskit/editor-plugin-toolbar-lists-indentation 1.14.11 → 1.14.13

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,23 @@
1
1
  # @atlaskit/editor-plugin-toolbar-lists-indentation
2
2
 
3
+ ## 1.14.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [#107473](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107473)
8
+ [`962b3297548df`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/962b3297548df) -
9
+ [ux] Implement variation 2 for editor contextual toolbar formatting experiment
10
+
11
+ ## 1.14.12
12
+
13
+ ### Patch Changes
14
+
15
+ - [#105009](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105009)
16
+ [`a4039ebf7ed11`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a4039ebf7ed11) -
17
+ [ux] Implement variant 2 cohorts experience for platform_editor_contextual_formatting_toolbar_v2
18
+ experiment
19
+ - Updated dependencies
20
+
3
21
  ## 1.14.11
4
22
 
5
23
  ### Patch Changes
@@ -7,8 +7,6 @@ exports.getIndentationButtonsState = getIndentationButtonsState;
7
7
  var _indentation = require("@atlaskit/editor-common/indentation");
8
8
  var _lists = require("@atlaskit/editor-common/lists");
9
9
  var _utils = require("@atlaskit/editor-prosemirror/utils");
10
- // Ignored via go/ees005
11
- // eslint-disable-next-line @typescript-eslint/max-params
12
10
  function getIndentationButtonsState(editorState, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, isInsideListItem) {
13
11
  var _indentationState$isI;
14
12
  var state = {
@@ -62,6 +62,10 @@ var toolbarListsIndentationPlugin = exports.toolbarListsIndentationPlugin = func
62
62
  selectionToolbar: function selectionToolbar() {
63
63
  if ((0, _experiments.editorExperiment)('contextual_formatting_toolbar', true, {
64
64
  exposure: true
65
+ }) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
66
+ exposure: true
67
+ }) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
68
+ exposure: true
65
69
  })) {
66
70
  var toolbarCustom = {
67
71
  type: 'custom',
@@ -1,8 +1,6 @@
1
1
  import { MAX_INDENTATION_LEVEL } from '@atlaskit/editor-common/indentation';
2
2
  import { getListItemAttributes } from '@atlaskit/editor-common/lists';
3
3
  import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
4
- // Ignored via go/ees005
5
- // eslint-disable-next-line @typescript-eslint/max-params
6
4
  export function getIndentationButtonsState(editorState, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, isInsideListItem) {
7
5
  var _indentationState$isI;
8
6
  const state = {
@@ -51,6 +51,10 @@ export const toolbarListsIndentationPlugin = ({
51
51
  selectionToolbar() {
52
52
  if (editorExperiment('contextual_formatting_toolbar', true, {
53
53
  exposure: true
54
+ }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
55
+ exposure: true
56
+ }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
57
+ exposure: true
54
58
  })) {
55
59
  const toolbarCustom = {
56
60
  type: 'custom',
@@ -1,8 +1,6 @@
1
1
  import { MAX_INDENTATION_LEVEL } from '@atlaskit/editor-common/indentation';
2
2
  import { getListItemAttributes } from '@atlaskit/editor-common/lists';
3
3
  import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
4
- // Ignored via go/ees005
5
- // eslint-disable-next-line @typescript-eslint/max-params
6
4
  export function getIndentationButtonsState(editorState, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, isInsideListItem) {
7
5
  var _indentationState$isI;
8
6
  var state = {
@@ -51,6 +51,10 @@ export var toolbarListsIndentationPlugin = function toolbarListsIndentationPlugi
51
51
  selectionToolbar: function selectionToolbar() {
52
52
  if (editorExperiment('contextual_formatting_toolbar', true, {
53
53
  exposure: true
54
+ }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
55
+ exposure: true
56
+ }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
57
+ exposure: true
54
58
  })) {
55
59
  var toolbarCustom = {
56
60
  type: 'custom',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
3
- "version": "1.14.11",
3
+ "version": "1.14.13",
4
4
  "description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,8 +31,8 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/editor-common": "^99.3.0",
35
- "@atlaskit/editor-plugin-analytics": "^1.10.0",
34
+ "@atlaskit/editor-common": "^99.5.0",
35
+ "@atlaskit/editor-plugin-analytics": "^1.11.0",
36
36
  "@atlaskit/editor-plugin-block-type": "^4.1.0",
37
37
  "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
38
38
  "@atlaskit/editor-plugin-indentation": "^1.8.0",
@@ -43,8 +43,8 @@
43
43
  "@atlaskit/editor-shared-styles": "^3.2.0",
44
44
  "@atlaskit/icon": "^23.4.0",
45
45
  "@atlaskit/platform-feature-flags": "^0.3.0",
46
- "@atlaskit/tmp-editor-statsig": "^2.35.0",
47
- "@atlaskit/tokens": "3.1.0",
46
+ "@atlaskit/tmp-editor-statsig": "^2.41.0",
47
+ "@atlaskit/tokens": "3.2.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1"
50
50
  },