@atlaskit/editor-plugin-toolbar-lists-indentation 3.0.0 → 3.0.2
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
|
+
## 3.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#120533](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120533)
|
|
14
|
+
[`f1bec731e278f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1bec731e278f) -
|
|
15
|
+
Adds a `sideEffects` field to ensure this package does not have Compiled styles tree-shaken in the
|
|
16
|
+
future to avoid an accidental regression.
|
|
17
|
+
|
|
18
|
+
This is related to
|
|
19
|
+
https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953
|
|
20
|
+
|
|
3
21
|
## 3.0.0
|
|
4
22
|
|
|
5
23
|
### Major Changes
|
|
@@ -10,6 +10,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
12
12
|
var _usePluginStateEffect = require("@atlaskit/editor-common/use-plugin-state-effect");
|
|
13
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
13
14
|
var _indentationButtons = require("../pm-plugins/indentation-buttons");
|
|
14
15
|
var _types = require("../types");
|
|
15
16
|
var _index = _interopRequireDefault(require("./index"));
|
|
@@ -51,7 +52,7 @@ function FloatingToolbarComponent(_ref) {
|
|
|
51
52
|
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
52
53
|
featureFlags: featureFlags,
|
|
53
54
|
isSmall: FloatingToolbarSettings.isSmall,
|
|
54
|
-
isReducedSpacing: FloatingToolbarSettings.isToolbarReducedSpacing,
|
|
55
|
+
isReducedSpacing: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? false : FloatingToolbarSettings.isToolbarReducedSpacing,
|
|
55
56
|
disabled: FloatingToolbarSettings.disabled,
|
|
56
57
|
editorView: editorView
|
|
57
58
|
// Ignored via go/ees005
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
3
3
|
import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-effect';
|
|
4
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
4
5
|
import { getIndentationButtonsState } from '../pm-plugins/indentation-buttons';
|
|
5
6
|
import { ToolbarType } from '../types';
|
|
6
7
|
import ToolbarListsIndentation from './index';
|
|
@@ -40,7 +41,7 @@ export function FloatingToolbarComponent({
|
|
|
40
41
|
return /*#__PURE__*/React.createElement(ToolbarListsIndentation, {
|
|
41
42
|
featureFlags: featureFlags,
|
|
42
43
|
isSmall: FloatingToolbarSettings.isSmall,
|
|
43
|
-
isReducedSpacing: FloatingToolbarSettings.isToolbarReducedSpacing,
|
|
44
|
+
isReducedSpacing: editorExperiment('platform_editor_controls', 'variant1') ? false : FloatingToolbarSettings.isToolbarReducedSpacing,
|
|
44
45
|
disabled: FloatingToolbarSettings.disabled,
|
|
45
46
|
editorView: editorView
|
|
46
47
|
// Ignored via go/ees005
|
|
@@ -2,6 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-effect';
|
|
5
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
5
6
|
import { getIndentationButtonsState } from '../pm-plugins/indentation-buttons';
|
|
6
7
|
import { ToolbarType } from '../types';
|
|
7
8
|
import ToolbarListsIndentation from './index';
|
|
@@ -41,7 +42,7 @@ export function FloatingToolbarComponent(_ref) {
|
|
|
41
42
|
return /*#__PURE__*/React.createElement(ToolbarListsIndentation, {
|
|
42
43
|
featureFlags: featureFlags,
|
|
43
44
|
isSmall: FloatingToolbarSettings.isSmall,
|
|
44
|
-
isReducedSpacing: FloatingToolbarSettings.isToolbarReducedSpacing,
|
|
45
|
+
isReducedSpacing: editorExperiment('platform_editor_controls', 'variant1') ? false : FloatingToolbarSettings.isToolbarReducedSpacing,
|
|
45
46
|
disabled: FloatingToolbarSettings.disabled,
|
|
46
47
|
editorView: editorView
|
|
47
48
|
// Ignored via go/ees005
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/css": "^0.10.0",
|
|
37
|
-
"@atlaskit/editor-common": "^100.
|
|
37
|
+
"@atlaskit/editor-common": "^100.4.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^2.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-block-type": "^5.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-feature-flags": "^1.3.0",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"@atlaskit/editor-plugin-selection-toolbar": "^2.0.0",
|
|
45
45
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^4.0.0",
|
|
46
46
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
47
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
47
|
+
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
48
48
|
"@atlaskit/icon": "^24.1.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^3.
|
|
51
|
-
"@atlaskit/tokens": "4.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^3.3.0",
|
|
51
|
+
"@atlaskit/tokens": "4.3.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|