@atlaskit/editor-plugin-block-menu 13.0.5 → 14.0.1
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-menu
|
|
2
2
|
|
|
3
|
+
## 14.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`751710cf0b63d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/751710cf0b63d) -
|
|
8
|
+
[ux] Enable Jira AI actions and the block-menu divider with the
|
|
9
|
+
`platform_editor_ai_blockmenu_integration_jira` experiment while preserving the existing
|
|
10
|
+
`platform_editor_ai_blockmenu_integration` rollout.
|
|
11
|
+
|
|
12
|
+
## 14.0.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 13.0.5
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/compass.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
configVersion: 1
|
|
2
2
|
id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/b65f6afc-ff2e-4d56-a2b6-0ac8f8c2348d
|
|
3
3
|
name: '@atlaskit/editor-plugin-block-menu'
|
|
4
|
-
ownerId: ari:cloud:identity::team/
|
|
4
|
+
ownerId: ari:cloud:identity::team/cf6a670b-5252-4c68-a769-9207de366beb # Editor Developers
|
|
5
5
|
labels:
|
|
6
6
|
- platform-code
|
|
7
7
|
- platform-afm
|
|
@@ -16,14 +16,14 @@ links:
|
|
|
16
16
|
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
|
|
17
17
|
- name: Slack Channel
|
|
18
18
|
type: CHAT_CHANNEL
|
|
19
|
-
url: https://atlassian.enterprise.slack.com/archives/
|
|
19
|
+
url: https://atlassian.enterprise.slack.com/archives/CFG3PSQ9E # #help-editor
|
|
20
20
|
- name: Editor Plugin Block Menu
|
|
21
21
|
type: REPOSITORY
|
|
22
22
|
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/editor/editor-plugin-block-menu
|
|
23
23
|
customFields:
|
|
24
24
|
- name: Department
|
|
25
25
|
type: text
|
|
26
|
-
value:
|
|
26
|
+
value: Editor Developers
|
|
27
27
|
- name: Trusted Reviewer Teams
|
|
28
28
|
type: text
|
|
29
29
|
value: ari:cloud:identity::team/cf6a670b-5252-4c68-a769-9207de366beb
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.FormatMenuSection = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
10
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
10
11
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
11
12
|
var _checkIsFormatMenuHidden = require("./utils/checkIsFormatMenuHidden");
|
|
12
13
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -20,6 +21,6 @@ var FormatMenuSection = exports.FormatMenuSection = function FormatMenuSection(_
|
|
|
20
21
|
return null;
|
|
21
22
|
}
|
|
22
23
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
|
|
23
|
-
hasSeparator: (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_blockmenu_integration', 'isEnabled', true)
|
|
24
|
+
hasSeparator: (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_ai_blockmenu_integration', 'isEnabled', true) || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_ai_blockmenu_integration_jira')
|
|
24
25
|
}, children);
|
|
25
26
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
|
|
3
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
3
4
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
4
5
|
import { checkIsFormatMenuHidden } from './utils/checkIsFormatMenuHidden';
|
|
5
6
|
export const FormatMenuSection = ({
|
|
@@ -13,6 +14,6 @@ export const FormatMenuSection = ({
|
|
|
13
14
|
return null;
|
|
14
15
|
}
|
|
15
16
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, {
|
|
16
|
-
hasSeparator: expValEqualsNoExposure('platform_editor_ai_blockmenu_integration', 'isEnabled', true)
|
|
17
|
+
hasSeparator: expValEqualsNoExposure('platform_editor_ai_blockmenu_integration', 'isEnabled', true) || isExperimentEnabled('platform_editor_ai_blockmenu_integration_jira')
|
|
17
18
|
}, children);
|
|
18
19
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
|
|
3
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
3
4
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
4
5
|
import { checkIsFormatMenuHidden } from './utils/checkIsFormatMenuHidden';
|
|
5
6
|
export var FormatMenuSection = function FormatMenuSection(_ref) {
|
|
@@ -12,6 +13,6 @@ export var FormatMenuSection = function FormatMenuSection(_ref) {
|
|
|
12
13
|
return null;
|
|
13
14
|
}
|
|
14
15
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, {
|
|
15
|
-
hasSeparator: expValEqualsNoExposure('platform_editor_ai_blockmenu_integration', 'isEnabled', true)
|
|
16
|
+
hasSeparator: expValEqualsNoExposure('platform_editor_ai_blockmenu_integration', 'isEnabled', true) || isExperimentEnabled('platform_editor_ai_blockmenu_integration_jira')
|
|
16
17
|
}, children);
|
|
17
18
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-menu",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.1",
|
|
4
4
|
"description": "BlockMenu plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
24
24
|
"@atlaskit/css": "^1.0.0",
|
|
25
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
26
|
-
"@atlaskit/editor-plugin-block-controls": "^
|
|
27
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
28
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
29
|
-
"@atlaskit/editor-plugin-user-intent": "^
|
|
25
|
+
"@atlaskit/editor-plugin-analytics": "^15.0.0",
|
|
26
|
+
"@atlaskit/editor-plugin-block-controls": "^16.0.0",
|
|
27
|
+
"@atlaskit/editor-plugin-decorations": "^15.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-selection": "^15.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-user-intent": "^13.0.0",
|
|
30
30
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
31
31
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
32
32
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
38
38
|
"@atlaskit/primitives": "^22.2.0",
|
|
39
39
|
"@atlaskit/prosemirror-history": "^1.1.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^147.
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^147.1.0",
|
|
41
41
|
"@atlaskit/tokens": "^16.7.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"bind-event-listener": "^3.0.0",
|
|
44
44
|
"memoize-one": "^6.0.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@atlaskit/editor-common": "^
|
|
47
|
+
"@atlaskit/editor-common": "^119.2.0",
|
|
48
48
|
"react": "^18.2.0 || ^19.2.0",
|
|
49
49
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
50
50
|
},
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Testing structured MCP docs for review — ignore this file.
|
|
3
|
-
* Contact #dst-structured-content in Slack with questions.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import path from 'path';
|
|
7
|
-
|
|
8
|
-
import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
|
|
9
|
-
|
|
10
|
-
import packageJson from './package.json';
|
|
11
|
-
|
|
12
|
-
const packagePath = path.resolve(__dirname);
|
|
13
|
-
|
|
14
|
-
const documentation: StructuredContentSource = {
|
|
15
|
-
components: [
|
|
16
|
-
{
|
|
17
|
-
name: 'Editor Plugin Block Menu',
|
|
18
|
-
description: 'BlockMenu plugin for @atlaskit/editor-core',
|
|
19
|
-
status: 'general-availability',
|
|
20
|
-
import: {
|
|
21
|
-
name: 'blockMenuPlugin',
|
|
22
|
-
package: '@atlaskit/editor-plugin-block-menu',
|
|
23
|
-
type: 'named',
|
|
24
|
-
packagePath,
|
|
25
|
-
packageJson,
|
|
26
|
-
},
|
|
27
|
-
usageGuidelines: [],
|
|
28
|
-
contentGuidelines: [],
|
|
29
|
-
accessibilityGuidelines: [],
|
|
30
|
-
keywords: ['editor', 'editor-plugin-block-menu', 'atlaskit'],
|
|
31
|
-
categories: ['editor'],
|
|
32
|
-
examples: [
|
|
33
|
-
{
|
|
34
|
-
name: 'Basic',
|
|
35
|
-
description: 'Block menu plugin usage.',
|
|
36
|
-
source: path.resolve(packagePath, './examples/basic.tsx'),
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export default documentation;
|