@atlaskit/editor-plugin-expand 3.2.3 → 3.2.5

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,19 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 3.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.2.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#135763](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135763)
14
+ [`9caa26aa0f95f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9caa26aa0f95f) -
15
+ Clean-up platform_editor_nested_expand_in_expand_adf_change feature gate
16
+
3
17
  ## 3.2.3
4
18
 
5
19
  ### Patch Changes
@@ -26,7 +26,6 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
26
26
  api = _ref.api;
27
27
  // Confluence is injecting the FF through editor props, from an experiment
28
28
  // Jira is pulling it in through platform feature flags, from a feature gate
29
- var isNestingExpandsSchemaChanged = (0, _platformFeatureFlags.fg)('platform_editor_nested_expand_in_expand_adf_change') || (0, _platformFeatureFlags.fg)('platform_editor_nest_nested_expand_in_expand_jira');
30
29
  var isNestingExpandsSupported = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 || (_api$featureFlags = _api$featureFlags.sharedState.currentState()) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.nestedExpandInExpandEx) || (0, _platformFeatureFlags.fg)('platform_editor_nest_nested_expand_in_expand_jira');
31
30
  var nestedExpandNode = (0, _experiments.editorExperiment)('platform_editor_nested_non_bodied_macros', 'test') ? _adfSchema.nestedExpand : _adfSchema.nestedExpandWithoutNonBodiedMacros;
32
31
  return {
@@ -34,7 +33,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
34
33
  nodes: function nodes() {
35
34
  return [{
36
35
  name: 'expand',
37
- node: isNestingExpandsSchemaChanged ? _adfSchema.expandWithNestedExpand : _adfSchema.expand
36
+ node: _adfSchema.expandWithNestedExpand
38
37
  }, {
39
38
  name: 'nestedExpand',
40
39
  node: nestedExpandNode
@@ -26,7 +26,6 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
26
26
  api = _ref.api;
27
27
  // Confluence is injecting the FF through editor props, from an experiment
28
28
  // Jira is pulling it in through platform feature flags, from a feature gate
29
- var isNestingExpandsSchemaChanged = (0, _platformFeatureFlags.fg)('platform_editor_nested_expand_in_expand_adf_change') || (0, _platformFeatureFlags.fg)('platform_editor_nest_nested_expand_in_expand_jira');
30
29
  var isNestingExpandsSupported = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 || (_api$featureFlags = _api$featureFlags.sharedState.currentState()) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.nestedExpandInExpandEx) || (0, _platformFeatureFlags.fg)('platform_editor_nest_nested_expand_in_expand_jira');
31
30
  var nestedExpandNode = (0, _experiments.editorExperiment)('platform_editor_nested_non_bodied_macros', 'test') ? _adfSchema.nestedExpand : _adfSchema.nestedExpandWithoutNonBodiedMacros;
32
31
  return {
@@ -34,7 +33,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
34
33
  nodes: function nodes() {
35
34
  return [{
36
35
  name: 'expand',
37
- node: isNestingExpandsSchemaChanged ? _adfSchema.expandWithNestedExpand : _adfSchema.expand
36
+ node: _adfSchema.expandWithNestedExpand
38
37
  }, {
39
38
  name: 'nestedExpand',
40
39
  node: nestedExpandNode
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { expand, expandWithNestedExpand, nestedExpand, nestedExpandWithoutNonBodiedMacros } from '@atlaskit/adf-schema';
2
+ import { expandWithNestedExpand, nestedExpand, nestedExpandWithoutNonBodiedMacros } from '@atlaskit/adf-schema';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { IconExpand } from '@atlaskit/editor-common/quick-insert';
@@ -20,7 +20,6 @@ export let expandPlugin = ({
20
20
  var _api$featureFlags, _api$featureFlags$sha, _api$analytics, _api$analytics2;
21
21
  // Confluence is injecting the FF through editor props, from an experiment
22
22
  // Jira is pulling it in through platform feature flags, from a feature gate
23
- const isNestingExpandsSchemaChanged = fg('platform_editor_nested_expand_in_expand_adf_change') || fg('platform_editor_nest_nested_expand_in_expand_jira');
24
23
  const isNestingExpandsSupported = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : (_api$featureFlags$sha = _api$featureFlags.sharedState.currentState()) === null || _api$featureFlags$sha === void 0 ? void 0 : _api$featureFlags$sha.nestedExpandInExpandEx) || fg('platform_editor_nest_nested_expand_in_expand_jira');
25
24
  const nestedExpandNode = editorExperiment('platform_editor_nested_non_bodied_macros', 'test') ? nestedExpand : nestedExpandWithoutNonBodiedMacros;
26
25
  return {
@@ -28,7 +27,7 @@ export let expandPlugin = ({
28
27
  nodes() {
29
28
  return [{
30
29
  name: 'expand',
31
- node: isNestingExpandsSchemaChanged ? expandWithNestedExpand : expand
30
+ node: expandWithNestedExpand
32
31
  }, {
33
32
  name: 'nestedExpand',
34
33
  node: nestedExpandNode
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { expand, expandWithNestedExpand, nestedExpand, nestedExpandWithoutNonBodiedMacros } from '@atlaskit/adf-schema';
2
+ import { expandWithNestedExpand, nestedExpand, nestedExpandWithoutNonBodiedMacros } from '@atlaskit/adf-schema';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { IconExpand } from '@atlaskit/editor-common/quick-insert';
@@ -20,7 +20,6 @@ export let expandPlugin = ({
20
20
  var _api$featureFlags, _api$featureFlags$sha, _api$analytics, _api$analytics2;
21
21
  // Confluence is injecting the FF through editor props, from an experiment
22
22
  // Jira is pulling it in through platform feature flags, from a feature gate
23
- const isNestingExpandsSchemaChanged = fg('platform_editor_nested_expand_in_expand_adf_change') || fg('platform_editor_nest_nested_expand_in_expand_jira');
24
23
  const isNestingExpandsSupported = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : (_api$featureFlags$sha = _api$featureFlags.sharedState.currentState()) === null || _api$featureFlags$sha === void 0 ? void 0 : _api$featureFlags$sha.nestedExpandInExpandEx) || fg('platform_editor_nest_nested_expand_in_expand_jira');
25
24
  const nestedExpandNode = editorExperiment('platform_editor_nested_non_bodied_macros', 'test') ? nestedExpand : nestedExpandWithoutNonBodiedMacros;
26
25
  return {
@@ -28,7 +27,7 @@ export let expandPlugin = ({
28
27
  nodes() {
29
28
  return [{
30
29
  name: 'expand',
31
- node: isNestingExpandsSchemaChanged ? expandWithNestedExpand : expand
30
+ node: expandWithNestedExpand
32
31
  }, {
33
32
  name: 'nestedExpand',
34
33
  node: nestedExpandNode
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { expand, expandWithNestedExpand, nestedExpand, nestedExpandWithoutNonBodiedMacros } from '@atlaskit/adf-schema';
2
+ import { expandWithNestedExpand, nestedExpand, nestedExpandWithoutNonBodiedMacros } from '@atlaskit/adf-schema';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { IconExpand } from '@atlaskit/editor-common/quick-insert';
@@ -20,7 +20,6 @@ export var expandPlugin = function expandPlugin(_ref) {
20
20
  api = _ref.api;
21
21
  // Confluence is injecting the FF through editor props, from an experiment
22
22
  // Jira is pulling it in through platform feature flags, from a feature gate
23
- var isNestingExpandsSchemaChanged = fg('platform_editor_nested_expand_in_expand_adf_change') || fg('platform_editor_nest_nested_expand_in_expand_jira');
24
23
  var isNestingExpandsSupported = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 || (_api$featureFlags = _api$featureFlags.sharedState.currentState()) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.nestedExpandInExpandEx) || fg('platform_editor_nest_nested_expand_in_expand_jira');
25
24
  var nestedExpandNode = editorExperiment('platform_editor_nested_non_bodied_macros', 'test') ? nestedExpand : nestedExpandWithoutNonBodiedMacros;
26
25
  return {
@@ -28,7 +27,7 @@ export var expandPlugin = function expandPlugin(_ref) {
28
27
  nodes: function nodes() {
29
28
  return [{
30
29
  name: 'expand',
31
- node: isNestingExpandsSchemaChanged ? expandWithNestedExpand : expand
30
+ node: expandWithNestedExpand
32
31
  }, {
33
32
  name: 'nestedExpand',
34
33
  node: nestedExpandNode
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { expand, expandWithNestedExpand, nestedExpand, nestedExpandWithoutNonBodiedMacros } from '@atlaskit/adf-schema';
2
+ import { expandWithNestedExpand, nestedExpand, nestedExpandWithoutNonBodiedMacros } from '@atlaskit/adf-schema';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { IconExpand } from '@atlaskit/editor-common/quick-insert';
@@ -20,7 +20,6 @@ export var expandPlugin = function expandPlugin(_ref) {
20
20
  api = _ref.api;
21
21
  // Confluence is injecting the FF through editor props, from an experiment
22
22
  // Jira is pulling it in through platform feature flags, from a feature gate
23
- var isNestingExpandsSchemaChanged = fg('platform_editor_nested_expand_in_expand_adf_change') || fg('platform_editor_nest_nested_expand_in_expand_jira');
24
23
  var isNestingExpandsSupported = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 || (_api$featureFlags = _api$featureFlags.sharedState.currentState()) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.nestedExpandInExpandEx) || fg('platform_editor_nest_nested_expand_in_expand_jira');
25
24
  var nestedExpandNode = editorExperiment('platform_editor_nested_non_bodied_macros', 'test') ? nestedExpand : nestedExpandWithoutNonBodiedMacros;
26
25
  return {
@@ -28,7 +27,7 @@ export var expandPlugin = function expandPlugin(_ref) {
28
27
  nodes: function nodes() {
29
28
  return [{
30
29
  name: 'expand',
31
- node: isNestingExpandsSchemaChanged ? expandWithNestedExpand : expand
30
+ node: expandWithNestedExpand
32
31
  }, {
33
32
  name: 'nestedExpand',
34
33
  node: nestedExpandNode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "3.2.3",
3
+ "version": "3.2.5",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^47.6.0",
37
37
  "@atlaskit/button": "^23.0.0",
38
- "@atlaskit/editor-common": "^102.17.0",
38
+ "@atlaskit/editor-common": "^103.0.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^2.0.0",
41
41
  "@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
@@ -45,10 +45,10 @@
45
45
  "@atlaskit/editor-prosemirror": "7.0.0",
46
46
  "@atlaskit/editor-shared-styles": "^3.4.0",
47
47
  "@atlaskit/editor-tables": "^2.9.0",
48
- "@atlaskit/icon": "^25.4.0",
48
+ "@atlaskit/icon": "^25.5.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
50
  "@atlaskit/tmp-editor-statsig": "^4.6.0",
51
- "@atlaskit/tokens": "^4.5.0",
51
+ "@atlaskit/tokens": "^4.7.0",
52
52
  "@atlaskit/tooltip": "^20.0.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "@emotion/react": "^11.7.1",
@@ -65,8 +65,8 @@
65
65
  "@atlaskit/editor-plugin-content-insertion": "^2.1.0",
66
66
  "@atlaskit/editor-plugin-guideline": "^2.0.0",
67
67
  "@atlaskit/editor-plugin-quick-insert": "^2.2.0",
68
- "@atlaskit/editor-plugin-table": "^10.5.0",
69
- "@atlaskit/editor-plugin-type-ahead": "^2.2.0",
68
+ "@atlaskit/editor-plugin-table": "^10.6.0",
69
+ "@atlaskit/editor-plugin-type-ahead": "^2.3.0",
70
70
  "@atlaskit/editor-plugin-width": "^3.0.0",
71
71
  "@testing-library/react": "^13.4.0",
72
72
  "react-test-renderer": "^18.2.0",
@@ -115,9 +115,6 @@
115
115
  "platform_editor_nest_nested_expand_in_expand_jira": {
116
116
  "type": "boolean"
117
117
  },
118
- "platform_editor_nested_expand_in_expand_adf_change": {
119
- "type": "boolean"
120
- },
121
118
  "platform_editor_long_node_expand": {
122
119
  "type": "boolean",
123
120
  "referenceOnly": true