@atlaskit/editor-plugin-toolbar-lists-indentation 5.0.6 → 6.0.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,21 @@
1
1
  # @atlaskit/editor-plugin-toolbar-lists-indentation
2
2
 
3
+ ## 6.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.0.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [`c0113eeccb2df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c0113eeccb2df) -
14
+ [ux] ED-29120 add a new config option for default editor preset
15
+ (`toolbar.enableNewToolbarExperience`) which allows the new toolbar to be disabled. This is needed
16
+ for editors that can't be excluded at the experiment level.
17
+ - Updated dependencies
18
+
3
19
  ## 5.0.6
4
20
 
5
21
  ### Patch Changes
@@ -33,7 +33,7 @@ var toolbarListsIndentationPlugin = exports.toolbarListsIndentationPlugin = func
33
33
  _ref2$allowHeadingAnd = _ref2.allowHeadingAndParagraphIndentation,
34
34
  allowHeadingAndParagraphIndentation = _ref2$allowHeadingAnd === void 0 ? false : _ref2$allowHeadingAnd;
35
35
  var featureFlags = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
36
- var isToolbarAIFCEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
36
+ var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
37
37
  exposure: true
38
38
  });
39
39
  var primaryToolbarComponent = function primaryToolbarComponent(_ref3) {
@@ -19,7 +19,7 @@ export const toolbarListsIndentationPlugin = ({
19
19
  allowHeadingAndParagraphIndentation = false
20
20
  } = config !== null && config !== void 0 ? config : {};
21
21
  const featureFlags = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
22
- const isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
22
+ const isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
23
23
  exposure: true
24
24
  });
25
25
  const primaryToolbarComponent = ({
@@ -23,7 +23,7 @@ export var toolbarListsIndentationPlugin = function toolbarListsIndentationPlugi
23
23
  _ref2$allowHeadingAnd = _ref2.allowHeadingAndParagraphIndentation,
24
24
  allowHeadingAndParagraphIndentation = _ref2$allowHeadingAnd === void 0 ? false : _ref2$allowHeadingAnd;
25
25
  var featureFlags = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
26
- var isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
26
+ var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
27
27
  exposure: true
28
28
  });
29
29
  var primaryToolbarComponent = function primaryToolbarComponent(_ref3) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
3
- "version": "5.0.6",
3
+ "version": "6.0.0",
4
4
  "description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,27 +30,27 @@
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
32
  "@atlaskit/css": "^0.14.0",
33
- "@atlaskit/editor-plugin-analytics": "^4.0.0",
34
- "@atlaskit/editor-plugin-block-type": "^7.1.0",
35
- "@atlaskit/editor-plugin-feature-flags": "^3.0.0",
36
- "@atlaskit/editor-plugin-indentation": "^4.0.0",
37
- "@atlaskit/editor-plugin-list": "^6.0.0",
38
- "@atlaskit/editor-plugin-primary-toolbar": "^5.0.0",
39
- "@atlaskit/editor-plugin-selection-toolbar": "^5.0.0",
40
- "@atlaskit/editor-plugin-tasks-and-decisions": "^7.0.0",
41
- "@atlaskit/editor-plugin-toolbar": "^1.1.0",
33
+ "@atlaskit/editor-plugin-analytics": "^5.0.0",
34
+ "@atlaskit/editor-plugin-block-type": "^8.0.0",
35
+ "@atlaskit/editor-plugin-feature-flags": "^4.0.0",
36
+ "@atlaskit/editor-plugin-indentation": "^5.0.0",
37
+ "@atlaskit/editor-plugin-list": "^7.0.0",
38
+ "@atlaskit/editor-plugin-primary-toolbar": "^6.0.0",
39
+ "@atlaskit/editor-plugin-selection-toolbar": "^6.0.0",
40
+ "@atlaskit/editor-plugin-tasks-and-decisions": "^8.0.0",
41
+ "@atlaskit/editor-plugin-toolbar": "^2.0.0",
42
42
  "@atlaskit/editor-prosemirror": "7.0.0",
43
43
  "@atlaskit/editor-shared-styles": "^3.6.0",
44
44
  "@atlaskit/editor-toolbar": "^0.8.0",
45
45
  "@atlaskit/editor-toolbar-model": "^0.2.0",
46
46
  "@atlaskit/icon": "^28.1.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/tmp-editor-statsig": "^12.6.0",
48
+ "@atlaskit/tmp-editor-statsig": "^12.9.0",
49
49
  "@atlaskit/tokens": "^6.3.0",
50
50
  "@babel/runtime": "^7.0.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^108.5.0",
53
+ "@atlaskit/editor-common": "^109.0.0",
54
54
  "react": "^18.2.0",
55
55
  "react-dom": "^18.2.0",
56
56
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -58,10 +58,10 @@
58
58
  "devDependencies": {
59
59
  "@af/integration-testing": "workspace:^",
60
60
  "@af/visual-regression": "workspace:^",
61
- "@atlaskit/adf-schema": "^50.2.3",
61
+ "@atlaskit/adf-schema": "^51.0.0",
62
62
  "@atlaskit/analytics-next": "^11.1.0",
63
- "@atlaskit/editor-plugin-base": "^5.0.0",
64
- "@atlaskit/editor-plugin-text-formatting": "^4.0.0",
63
+ "@atlaskit/editor-plugin-base": "^6.0.0",
64
+ "@atlaskit/editor-plugin-text-formatting": "^5.0.0",
65
65
  "@atlaskit/ssr": "workspace:^",
66
66
  "@testing-library/react": "^13.4.0",
67
67
  "wait-for-expect": "^1.2.0"