@atlaskit/editor-plugin-expand 3.2.3 → 3.2.4
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 +8 -0
- package/dist/cjs/legacyExpand/plugin.js +1 -2
- package/dist/cjs/singlePlayerExpand/plugin.js +1 -2
- package/dist/es2019/legacyExpand/plugin.js +2 -3
- package/dist/es2019/singlePlayerExpand/plugin.js +2 -3
- package/dist/esm/legacyExpand/plugin.js +2 -3
- package/dist/esm/singlePlayerExpand/plugin.js +2 -3
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 3.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#135763](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135763)
|
|
8
|
+
[`9caa26aa0f95f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9caa26aa0f95f) -
|
|
9
|
+
Clean-up platform_editor_nested_expand_in_expand_adf_change feature gate
|
|
10
|
+
|
|
3
11
|
## 3.2.3
|
|
4
12
|
|
|
5
13
|
### 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:
|
|
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:
|
|
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 {
|
|
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:
|
|
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 {
|
|
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:
|
|
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 {
|
|
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:
|
|
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 {
|
|
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:
|
|
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
|
+
"version": "3.2.4",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/icon": "^25.4.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
50
|
"@atlaskit/tmp-editor-statsig": "^4.6.0",
|
|
51
|
-
"@atlaskit/tokens": "^4.
|
|
51
|
+
"@atlaskit/tokens": "^4.6.0",
|
|
52
52
|
"@atlaskit/tooltip": "^20.0.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@emotion/react": "^11.7.1",
|
|
@@ -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
|