@atlaskit/editor-plugin-extension 17.2.0 → 18.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 +12 -0
- package/dist/cjs/editor-actions/actions.js +1 -1
- package/dist/cjs/editor-commands/commands.js +0 -1
- package/dist/cjs/ui/ConfigPanel/Header.js +2 -0
- package/dist/es2019/editor-actions/actions.js +3 -0
- package/dist/es2019/editor-commands/commands.js +0 -1
- package/dist/es2019/ui/ConfigPanel/Header.js +2 -0
- package/dist/esm/editor-actions/actions.js +3 -0
- package/dist/esm/editor-commands/commands.js +0 -1
- package/dist/esm/ui/ConfigPanel/Header.js +2 -0
- package/package.json +17 -17
- package/editor-plugin-extension.docs.tsx +0 -48
package/CHANGELOG.md
CHANGED
|
@@ -15,7 +15,7 @@ var _extensionApi = require("../pm-plugins/extension-api");
|
|
|
15
15
|
var _pluginFactory = require("../pm-plugins/plugin-factory");
|
|
16
16
|
var _utils2 = require("../pm-plugins/utils");
|
|
17
17
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // oxlint-disable-next-line import/no-duplicates
|
|
19
19
|
var buildExtensionNode = exports.buildExtensionNode = function buildExtensionNode(type, schema, attrs, content, marks) {
|
|
20
20
|
switch (type) {
|
|
21
21
|
case 'extension':
|
|
@@ -18,7 +18,6 @@ var _utils3 = require("../pm-plugins/utils");
|
|
|
18
18
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
19
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
20
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
21
|
-
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
22
21
|
|
|
23
22
|
function updateState(state) {
|
|
24
23
|
return (0, _pluginFactory.createCommand)({
|
|
@@ -21,6 +21,8 @@ var _HelpLink = require("./HelpLink");
|
|
|
21
21
|
|
|
22
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
23
|
|
|
24
|
+
// oxlint-disable-next-line import/no-duplicates
|
|
25
|
+
|
|
24
26
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
25
27
|
|
|
26
28
|
// Ignored via go/ees005
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD, TARGET_SELECTION_SOURCE } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
|
|
3
|
+
// oxlint-disable-next-line import/no-duplicates
|
|
4
|
+
|
|
2
5
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
6
|
import { findSelectedNodeOfType, replaceParentNodeOfType, replaceSelectedNode } from '@atlaskit/editor-prosemirror/utils';
|
|
4
7
|
import { createExtensionAPI, getEditInLegacyMacroBrowser } from '../pm-plugins/extension-api';
|
|
@@ -6,7 +6,6 @@ import { createCommand } from '../pm-plugins/plugin-factory';
|
|
|
6
6
|
import { getSelectedExtension } from '../pm-plugins/utils';
|
|
7
7
|
|
|
8
8
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
9
|
-
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
10
9
|
|
|
11
10
|
export function updateState(state) {
|
|
12
11
|
return createCommand({
|
|
@@ -8,6 +8,8 @@ import { Fragment, lazy, Suspense, useMemo } from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { injectIntl } from 'react-intl';
|
|
10
10
|
import { IconButton } from '@atlaskit/button/new';
|
|
11
|
+
// oxlint-disable-next-line import/no-duplicates
|
|
12
|
+
|
|
11
13
|
import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
|
|
12
14
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
13
15
|
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
@@ -4,6 +4,9 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD, TARGET_SELECTION_SOURCE } from '@atlaskit/editor-common/analytics';
|
|
7
|
+
|
|
8
|
+
// oxlint-disable-next-line import/no-duplicates
|
|
9
|
+
|
|
7
10
|
import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
8
11
|
import { findSelectedNodeOfType, replaceParentNodeOfType, replaceSelectedNode } from '@atlaskit/editor-prosemirror/utils';
|
|
9
12
|
import { createExtensionAPI, getEditInLegacyMacroBrowser } from '../pm-plugins/extension-api';
|
|
@@ -9,7 +9,6 @@ import { createCommand } from '../pm-plugins/plugin-factory';
|
|
|
9
9
|
import { getSelectedExtension } from '../pm-plugins/utils';
|
|
10
10
|
|
|
11
11
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
12
|
-
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
13
12
|
|
|
14
13
|
export function updateState(state) {
|
|
15
14
|
return createCommand({
|
|
@@ -8,6 +8,8 @@ import { Fragment, lazy, Suspense, useMemo } from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { injectIntl } from 'react-intl';
|
|
10
10
|
import { IconButton } from '@atlaskit/button/new';
|
|
11
|
+
// oxlint-disable-next-line import/no-duplicates
|
|
12
|
+
|
|
11
13
|
import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
|
|
12
14
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
13
15
|
import CrossIcon from '@atlaskit/icon/core/cross';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.1",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,26 +21,26 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-schema": "^
|
|
25
|
-
"@atlaskit/adf-utils": "^20.
|
|
24
|
+
"@atlaskit/adf-schema": "^57.0.0",
|
|
25
|
+
"@atlaskit/adf-utils": "^20.6.0",
|
|
26
26
|
"@atlaskit/analytics-next": "^12.3.0",
|
|
27
27
|
"@atlaskit/avatar": "^27.0.0",
|
|
28
28
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
29
29
|
"@atlaskit/button": "^25.0.0",
|
|
30
30
|
"@atlaskit/checkbox": "^19.0.0",
|
|
31
31
|
"@atlaskit/datetime-picker": "^18.3.0",
|
|
32
|
-
"@atlaskit/editor-json-transformer": "^9.
|
|
33
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
34
|
-
"@atlaskit/editor-plugin-block-menu": "^
|
|
35
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
36
|
-
"@atlaskit/editor-plugin-context-identifier": "^
|
|
37
|
-
"@atlaskit/editor-plugin-context-panel": "^
|
|
38
|
-
"@atlaskit/editor-plugin-copy-button": "^
|
|
39
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
40
|
-
"@atlaskit/editor-plugin-feature-flags": "^
|
|
41
|
-
"@atlaskit/editor-plugin-mentions": "^
|
|
42
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
43
|
-
"@atlaskit/editor-plugin-width": "^
|
|
32
|
+
"@atlaskit/editor-json-transformer": "^9.4.0",
|
|
33
|
+
"@atlaskit/editor-plugin-analytics": "^15.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-block-menu": "^14.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-connectivity": "^15.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-context-identifier": "^15.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-context-panel": "^17.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-copy-button": "^15.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-decorations": "^15.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-feature-flags": "^14.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-mentions": "^17.1.0",
|
|
42
|
+
"@atlaskit/editor-plugin-toolbar": "^12.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-width": "^16.0.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
45
45
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
46
46
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@atlaskit/heading": "^7.0.0",
|
|
50
50
|
"@atlaskit/icon": "^37.3.0",
|
|
51
51
|
"@atlaskit/link": "^5.0.0",
|
|
52
|
-
"@atlaskit/mention": "^27.
|
|
52
|
+
"@atlaskit/mention": "^27.17.0",
|
|
53
53
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
54
54
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
55
55
|
"@atlaskit/primitives": "^22.2.0",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"uuid": "^3.1.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@atlaskit/editor-common": "^
|
|
78
|
+
"@atlaskit/editor-common": "^119.4.0",
|
|
79
79
|
"react": "^18.2.0 || ^19.2.0",
|
|
80
80
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
81
81
|
},
|
|
@@ -1,48 +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 Extension',
|
|
18
|
-
description: 'editor-plugin-extension plugin for @atlaskit/editor-core',
|
|
19
|
-
status: 'general-availability',
|
|
20
|
-
import: {
|
|
21
|
-
name: 'extensionPlugin',
|
|
22
|
-
package: '@atlaskit/editor-plugin-extension',
|
|
23
|
-
type: 'named',
|
|
24
|
-
packagePath,
|
|
25
|
-
packageJson,
|
|
26
|
-
},
|
|
27
|
-
usageGuidelines: [],
|
|
28
|
-
contentGuidelines: [],
|
|
29
|
-
accessibilityGuidelines: [],
|
|
30
|
-
keywords: ['editor', 'editor-plugin-extension', 'atlaskit'],
|
|
31
|
-
categories: ['editor'],
|
|
32
|
-
examples: [
|
|
33
|
-
{
|
|
34
|
-
name: 'Config panel extensions',
|
|
35
|
-
description: 'Extension with config panel.',
|
|
36
|
-
source: path.resolve(packagePath, './examples/1-config-panel-extensions.tsx'),
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: 'Config panel with parameters',
|
|
40
|
-
description: 'Extension config panel with parameters.',
|
|
41
|
-
source: path.resolve(packagePath, './examples/1-config-panel-with-parameters.tsx'),
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export default documentation;
|