@atlaskit/editor-plugin-extension 17.1.1 → 18.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 +19 -0
- package/compass.yml +3 -3
- package/dist/cjs/pm-plugins/main.js +3 -4
- package/dist/es2019/pm-plugins/main.js +3 -4
- package/dist/esm/pm-plugins/main.js +3 -4
- package/package.json +15 -20
- package/editor-plugin-extension.docs.tsx +0 -48
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 18.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 17.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`da5eaf0bc37da`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/da5eaf0bc37da) -
|
|
14
|
+
Clean up the platform_editor_editor_ssr_streaming experiment. The SSR streaming code paths are now
|
|
15
|
+
permanent and the isSSRStreaming() utility has been removed from
|
|
16
|
+
@atlaskit/editor-common/core-utils.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 17.1.1
|
|
4
23
|
|
|
5
24
|
### 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/6d5ddb0c-5978-4ab4-8a66-08608c8a13a3
|
|
3
3
|
name: '@atlaskit/editor-plugin-extension'
|
|
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 Extension
|
|
21
21
|
type: REPOSITORY
|
|
22
22
|
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/editor/editor-plugin-extension
|
|
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
|
|
@@ -8,7 +8,6 @@ exports.handleUpdate = exports.createPlugin = exports.createExtensionProviderHan
|
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
10
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
11
|
-
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
12
11
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
13
12
|
var _selection2 = require("@atlaskit/editor-common/selection");
|
|
14
13
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
@@ -305,11 +304,11 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatch, provid
|
|
|
305
304
|
},
|
|
306
305
|
nodeViews: {
|
|
307
306
|
// WARNING: referentiality-plugin also creates these nodeviews
|
|
308
|
-
extension: (0, _lazyExtension.lazyExtensionNodeView)('extension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, undefined, undefined, undefined,
|
|
307
|
+
extension: (0, _lazyExtension.lazyExtensionNodeView)('extension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, undefined, undefined, undefined, intl),
|
|
309
308
|
// WARNING: referentiality-plugin also creates these nodeviews
|
|
310
|
-
bodiedExtension: (0, _lazyExtension.lazyExtensionNodeView)('bodiedExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, showLivePagesBodiedMacrosRendererView, __rendererExtensionOptions === null || __rendererExtensionOptions === void 0 ? void 0 : __rendererExtensionOptions.showUpdated1PBodiedExtensionUI, __rendererExtensionOptions === null || __rendererExtensionOptions === void 0 ? void 0 : __rendererExtensionOptions.rendererExtensionHandlers,
|
|
309
|
+
bodiedExtension: (0, _lazyExtension.lazyExtensionNodeView)('bodiedExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, showLivePagesBodiedMacrosRendererView, __rendererExtensionOptions === null || __rendererExtensionOptions === void 0 ? void 0 : __rendererExtensionOptions.showUpdated1PBodiedExtensionUI, __rendererExtensionOptions === null || __rendererExtensionOptions === void 0 ? void 0 : __rendererExtensionOptions.rendererExtensionHandlers, intl),
|
|
311
310
|
// WARNING: referentiality-plugin also creates these nodeviews
|
|
312
|
-
inlineExtension: (0, _lazyExtension.lazyExtensionNodeView)('inlineExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, undefined, undefined, undefined,
|
|
311
|
+
inlineExtension: (0, _lazyExtension.lazyExtensionNodeView)('inlineExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, undefined, undefined, undefined, intl),
|
|
313
312
|
multiBodiedExtension: (0, _lazyExtension.lazyExtensionNodeView)('multiBodiedExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, undefined, undefined, undefined, intl)
|
|
314
313
|
},
|
|
315
314
|
createSelectionBetween: function createSelectionBetween(view, anchor, head) {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { isSSRStreaming } from '@atlaskit/editor-common/core-utils';
|
|
2
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
2
|
import { GapCursorSelection, createSelectionClickHandler, isSelectionAtEndOfNode, isSelectionAtStartOfNode } from '@atlaskit/editor-common/selection';
|
|
4
3
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -250,11 +249,11 @@ export const createPlugin = (dispatch, providerFactory, extensionHandlers, exten
|
|
|
250
249
|
},
|
|
251
250
|
nodeViews: {
|
|
252
251
|
// WARNING: referentiality-plugin also creates these nodeviews
|
|
253
|
-
extension: lazyExtensionNodeView('extension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, undefined, undefined, undefined,
|
|
252
|
+
extension: lazyExtensionNodeView('extension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, undefined, undefined, undefined, intl),
|
|
254
253
|
// WARNING: referentiality-plugin also creates these nodeviews
|
|
255
|
-
bodiedExtension: lazyExtensionNodeView('bodiedExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, showLivePagesBodiedMacrosRendererView, __rendererExtensionOptions === null || __rendererExtensionOptions === void 0 ? void 0 : __rendererExtensionOptions.showUpdated1PBodiedExtensionUI, __rendererExtensionOptions === null || __rendererExtensionOptions === void 0 ? void 0 : __rendererExtensionOptions.rendererExtensionHandlers,
|
|
254
|
+
bodiedExtension: lazyExtensionNodeView('bodiedExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, showLivePagesBodiedMacrosRendererView, __rendererExtensionOptions === null || __rendererExtensionOptions === void 0 ? void 0 : __rendererExtensionOptions.showUpdated1PBodiedExtensionUI, __rendererExtensionOptions === null || __rendererExtensionOptions === void 0 ? void 0 : __rendererExtensionOptions.rendererExtensionHandlers, intl),
|
|
256
255
|
// WARNING: referentiality-plugin also creates these nodeviews
|
|
257
|
-
inlineExtension: lazyExtensionNodeView('inlineExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, undefined, undefined, undefined,
|
|
256
|
+
inlineExtension: lazyExtensionNodeView('inlineExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, undefined, undefined, undefined, intl),
|
|
258
257
|
multiBodiedExtension: lazyExtensionNodeView('multiBodiedExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, undefined, undefined, undefined, intl)
|
|
259
258
|
},
|
|
260
259
|
createSelectionBetween: function (view, anchor, head) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
-
import { isSSRStreaming } from '@atlaskit/editor-common/core-utils';
|
|
5
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
5
|
import { GapCursorSelection, createSelectionClickHandler, isSelectionAtEndOfNode, isSelectionAtStartOfNode } from '@atlaskit/editor-common/selection';
|
|
7
6
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -298,11 +297,11 @@ export var createPlugin = function createPlugin(dispatch, providerFactory, exten
|
|
|
298
297
|
},
|
|
299
298
|
nodeViews: {
|
|
300
299
|
// WARNING: referentiality-plugin also creates these nodeviews
|
|
301
|
-
extension: lazyExtensionNodeView('extension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, undefined, undefined, undefined,
|
|
300
|
+
extension: lazyExtensionNodeView('extension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, undefined, undefined, undefined, intl),
|
|
302
301
|
// WARNING: referentiality-plugin also creates these nodeviews
|
|
303
|
-
bodiedExtension: lazyExtensionNodeView('bodiedExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, showLivePagesBodiedMacrosRendererView, __rendererExtensionOptions === null || __rendererExtensionOptions === void 0 ? void 0 : __rendererExtensionOptions.showUpdated1PBodiedExtensionUI, __rendererExtensionOptions === null || __rendererExtensionOptions === void 0 ? void 0 : __rendererExtensionOptions.rendererExtensionHandlers,
|
|
302
|
+
bodiedExtension: lazyExtensionNodeView('bodiedExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, showLivePagesBodiedMacrosRendererView, __rendererExtensionOptions === null || __rendererExtensionOptions === void 0 ? void 0 : __rendererExtensionOptions.showUpdated1PBodiedExtensionUI, __rendererExtensionOptions === null || __rendererExtensionOptions === void 0 ? void 0 : __rendererExtensionOptions.rendererExtensionHandlers, intl),
|
|
304
303
|
// WARNING: referentiality-plugin also creates these nodeviews
|
|
305
|
-
inlineExtension: lazyExtensionNodeView('inlineExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, undefined, undefined, undefined,
|
|
304
|
+
inlineExtension: lazyExtensionNodeView('inlineExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, undefined, undefined, undefined, intl),
|
|
306
305
|
multiBodiedExtension: lazyExtensionNodeView('multiBodiedExtension', portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionLoadingHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags, undefined, undefined, undefined, intl)
|
|
307
306
|
},
|
|
308
307
|
createSelectionBetween: function createSelectionBetween(view, anchor, head) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"@atlaskit/checkbox": "^19.0.0",
|
|
31
31
|
"@atlaskit/datetime-picker": "^18.3.0",
|
|
32
32
|
"@atlaskit/editor-json-transformer": "^9.2.0",
|
|
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": "^
|
|
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.0.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.16.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",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/tabs": "^21.0.0",
|
|
62
62
|
"@atlaskit/textarea": "^10.0.0",
|
|
63
63
|
"@atlaskit/textfield": "^10.0.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^147.
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^147.1.0",
|
|
65
65
|
"@atlaskit/toggle": "^17.1.0",
|
|
66
66
|
"@atlaskit/tokens": "^16.7.0",
|
|
67
67
|
"@atlaskit/tooltip": "^24.0.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.0.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
|
},
|
|
@@ -125,10 +125,5 @@
|
|
|
125
125
|
"platform_editor_extension_hide_copy_button": {
|
|
126
126
|
"type": "boolean"
|
|
127
127
|
}
|
|
128
|
-
},
|
|
129
|
-
"stricter": {
|
|
130
|
-
"no-unused-dependencies": {
|
|
131
|
-
"checkDevDependencies": true
|
|
132
|
-
}
|
|
133
128
|
}
|
|
134
129
|
}
|
|
@@ -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;
|