@atlaskit/editor-plugin-extension 1.16.0 → 1.17.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 +18 -0
- package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +3 -2
- package/dist/cjs/ui/ConfigPanel/Header.js +23 -6
- package/dist/es2019/ui/ConfigPanel/ConfigPanel.js +3 -2
- package/dist/es2019/ui/ConfigPanel/Header.js +21 -6
- package/dist/esm/ui/ConfigPanel/ConfigPanel.js +3 -2
- package/dist/esm/ui/ConfigPanel/Header.js +24 -7
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +5 -56
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +5 -65
- package/package.json +12 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 1.17.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.17.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#162388](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/162388)
|
|
14
|
+
[`20e29525ca817`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/20e29525ca817) -
|
|
15
|
+
refactor: use React.lazy instead of react-loadable for config-panel header icon
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 1.16.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -494,6 +494,7 @@ function ConfigFormIntlWithBoundary(_ref6) {
|
|
|
494
494
|
featureFlags: featureFlags
|
|
495
495
|
}));
|
|
496
496
|
}
|
|
497
|
-
var
|
|
497
|
+
var result = (0, _analyticsNext.withAnalyticsContext)({
|
|
498
498
|
source: 'ConfigPanel'
|
|
499
|
-
})((0, _analyticsNext.withAnalyticsEvents)()(ConfigPanel));
|
|
499
|
+
})((0, _analyticsNext.withAnalyticsEvents)()(ConfigPanel));
|
|
500
|
+
var _default = exports.default = result;
|
|
@@ -13,6 +13,7 @@ var _new = require("@atlaskit/button/new");
|
|
|
13
13
|
var _extensions = require("@atlaskit/editor-common/extensions");
|
|
14
14
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
15
15
|
var _cross = _interopRequireDefault(require("@atlaskit/icon/glyph/cross"));
|
|
16
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
17
|
var _primitives = require("@atlaskit/primitives");
|
|
17
18
|
var _colors = require("@atlaskit/theme/colors");
|
|
18
19
|
var _constants = require("@atlaskit/theme/constants");
|
|
@@ -97,19 +98,35 @@ var Header = function Header(_ref) {
|
|
|
97
98
|
enableHelpCTA = _ref.enableHelpCTA,
|
|
98
99
|
onClose = _ref.onClose,
|
|
99
100
|
intl = _ref.intl;
|
|
100
|
-
var ResolvedIcon = (0,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
var ResolvedIcon = (0, _react.useMemo)(function () {
|
|
102
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_react18_phase2_loadable')) {
|
|
103
|
+
return /*#__PURE__*/(0, _react.lazy)(function () {
|
|
104
|
+
return icon().then(function (Cmp) {
|
|
105
|
+
if ('default' in Cmp) {
|
|
106
|
+
return Cmp;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
default: Cmp
|
|
110
|
+
};
|
|
111
|
+
});
|
|
112
|
+
});
|
|
104
113
|
}
|
|
105
|
-
|
|
114
|
+
return (0, _reactLoadable.default)({
|
|
115
|
+
loader: icon,
|
|
116
|
+
loading: function loading() {
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}, [icon]);
|
|
106
121
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("div", {
|
|
107
122
|
css: itemStyles
|
|
108
123
|
}, (0, _react2.jsx)("div", {
|
|
109
124
|
css: itemIconStyles
|
|
125
|
+
}, (0, _react2.jsx)(_react.Suspense, {
|
|
126
|
+
fallback: null
|
|
110
127
|
}, (0, _react2.jsx)(ResolvedIcon, {
|
|
111
128
|
label: title
|
|
112
|
-
})), (0, _react2.jsx)("div", {
|
|
129
|
+
}))), (0, _react2.jsx)("div", {
|
|
113
130
|
css: itemBodyStyles
|
|
114
131
|
}, summary ? (0, _react2.jsx)("div", {
|
|
115
132
|
css: itemTextStyles
|
|
@@ -438,6 +438,7 @@ function ConfigFormIntlWithBoundary({
|
|
|
438
438
|
featureFlags: featureFlags
|
|
439
439
|
}));
|
|
440
440
|
}
|
|
441
|
-
|
|
441
|
+
const result = withAnalyticsContext({
|
|
442
442
|
source: 'ConfigPanel'
|
|
443
|
-
})(withAnalyticsEvents()(ConfigPanel));
|
|
443
|
+
})(withAnalyticsEvents()(ConfigPanel));
|
|
444
|
+
export default result;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { Fragment } from 'react';
|
|
5
|
+
import { Fragment, lazy, Suspense, useMemo } from 'react';
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
@@ -12,6 +12,7 @@ import { IconButton } from '@atlaskit/button/new';
|
|
|
12
12
|
import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
|
|
13
13
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
14
14
|
import CrossIcon from '@atlaskit/icon/glyph/cross';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
16
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
16
17
|
import { N200 } from '@atlaskit/theme/colors';
|
|
17
18
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
@@ -90,17 +91,31 @@ const Header = ({
|
|
|
90
91
|
onClose,
|
|
91
92
|
intl
|
|
92
93
|
}) => {
|
|
93
|
-
const ResolvedIcon =
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
const ResolvedIcon = useMemo(() => {
|
|
95
|
+
if (fg('platform_editor_react18_phase2_loadable')) {
|
|
96
|
+
return /*#__PURE__*/lazy(() => icon().then(Cmp => {
|
|
97
|
+
if ('default' in Cmp) {
|
|
98
|
+
return Cmp;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
default: Cmp
|
|
102
|
+
};
|
|
103
|
+
}));
|
|
104
|
+
}
|
|
105
|
+
return Loadable({
|
|
106
|
+
loader: icon,
|
|
107
|
+
loading: () => null
|
|
108
|
+
});
|
|
109
|
+
}, [icon]);
|
|
97
110
|
return jsx(Fragment, null, jsx("div", {
|
|
98
111
|
css: itemStyles
|
|
99
112
|
}, jsx("div", {
|
|
100
113
|
css: itemIconStyles
|
|
114
|
+
}, jsx(Suspense, {
|
|
115
|
+
fallback: null
|
|
101
116
|
}, jsx(ResolvedIcon, {
|
|
102
117
|
label: title
|
|
103
|
-
})), jsx("div", {
|
|
118
|
+
}))), jsx("div", {
|
|
104
119
|
css: itemBodyStyles
|
|
105
120
|
}, summary ? jsx("div", {
|
|
106
121
|
css: itemTextStyles
|
|
@@ -484,6 +484,7 @@ function ConfigFormIntlWithBoundary(_ref6) {
|
|
|
484
484
|
featureFlags: featureFlags
|
|
485
485
|
}));
|
|
486
486
|
}
|
|
487
|
-
|
|
487
|
+
var result = withAnalyticsContext({
|
|
488
488
|
source: 'ConfigPanel'
|
|
489
|
-
})(withAnalyticsEvents()(ConfigPanel));
|
|
489
|
+
})(withAnalyticsEvents()(ConfigPanel));
|
|
490
|
+
export default result;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { Fragment } from 'react';
|
|
5
|
+
import { Fragment, lazy, Suspense, useMemo } from 'react';
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
@@ -12,6 +12,7 @@ import { IconButton } from '@atlaskit/button/new';
|
|
|
12
12
|
import { configPanelMessages as messages } from '@atlaskit/editor-common/extensions';
|
|
13
13
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
14
14
|
import CrossIcon from '@atlaskit/icon/glyph/cross';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
16
|
import { Box, Text, xcss } from '@atlaskit/primitives';
|
|
16
17
|
import { N200 } from '@atlaskit/theme/colors';
|
|
17
18
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
@@ -89,19 +90,35 @@ var Header = function Header(_ref) {
|
|
|
89
90
|
enableHelpCTA = _ref.enableHelpCTA,
|
|
90
91
|
onClose = _ref.onClose,
|
|
91
92
|
intl = _ref.intl;
|
|
92
|
-
var ResolvedIcon =
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
var ResolvedIcon = useMemo(function () {
|
|
94
|
+
if (fg('platform_editor_react18_phase2_loadable')) {
|
|
95
|
+
return /*#__PURE__*/lazy(function () {
|
|
96
|
+
return icon().then(function (Cmp) {
|
|
97
|
+
if ('default' in Cmp) {
|
|
98
|
+
return Cmp;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
default: Cmp
|
|
102
|
+
};
|
|
103
|
+
});
|
|
104
|
+
});
|
|
96
105
|
}
|
|
97
|
-
|
|
106
|
+
return Loadable({
|
|
107
|
+
loader: icon,
|
|
108
|
+
loading: function loading() {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
}, [icon]);
|
|
98
113
|
return jsx(Fragment, null, jsx("div", {
|
|
99
114
|
css: itemStyles
|
|
100
115
|
}, jsx("div", {
|
|
101
116
|
css: itemIconStyles
|
|
117
|
+
}, jsx(Suspense, {
|
|
118
|
+
fallback: null
|
|
102
119
|
}, jsx(ResolvedIcon, {
|
|
103
120
|
label: title
|
|
104
|
-
})), jsx("div", {
|
|
121
|
+
}))), jsx("div", {
|
|
105
122
|
css: itemBodyStyles
|
|
106
123
|
}, summary ? jsx("div", {
|
|
107
124
|
css: itemTextStyles
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
3
|
import type { ExtensionManifest, FieldDefinition, OnSaveCallback, Parameters } from '@atlaskit/editor-common/extensions';
|
|
4
|
-
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
|
-
import type { RejectSave } from '../../types';
|
|
6
|
-
declare const
|
|
4
|
+
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { ExtensionPlugin, RejectSave } from '../../types';
|
|
6
|
+
declare const result: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
7
7
|
extensionManifest?: ExtensionManifest | undefined;
|
|
8
8
|
fields?: FieldDefinition[] | undefined;
|
|
9
9
|
parameters?: Parameters | undefined;
|
|
@@ -16,57 +16,6 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
16
16
|
errorMessage: string | null;
|
|
17
17
|
isLoading?: boolean | undefined;
|
|
18
18
|
featureFlags?: FeatureFlags | undefined;
|
|
19
|
-
api:
|
|
20
|
-
pluginConfiguration: import("../../types").ExtensionPluginOptions | undefined;
|
|
21
|
-
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
22
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
23
|
-
sharedState: {
|
|
24
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
25
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
26
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
27
|
-
};
|
|
28
|
-
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
29
|
-
pluginConfiguration: FeatureFlags;
|
|
30
|
-
sharedState: FeatureFlags;
|
|
31
|
-
}, FeatureFlags>>];
|
|
32
|
-
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
33
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
34
|
-
pluginConfiguration: FeatureFlags;
|
|
35
|
-
sharedState: FeatureFlags;
|
|
36
|
-
}, FeatureFlags>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
37
|
-
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
38
|
-
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
39
|
-
sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
|
|
40
|
-
actions: {
|
|
41
|
-
hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
42
|
-
removeDecoration: import("@atlaskit/editor-common/types").Command;
|
|
43
|
-
};
|
|
44
|
-
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
|
|
45
|
-
actions: {
|
|
46
|
-
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
47
|
-
};
|
|
48
|
-
sharedState: {
|
|
49
|
-
contents: React.ReactNode[] | undefined;
|
|
50
|
-
} | undefined;
|
|
51
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
52
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
53
|
-
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
54
|
-
commands: {
|
|
55
|
-
setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
56
|
-
};
|
|
57
|
-
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>];
|
|
58
|
-
sharedState: {
|
|
59
|
-
showContextPanel: boolean | undefined;
|
|
60
|
-
} | undefined;
|
|
61
|
-
actions: {
|
|
62
|
-
editSelectedExtension: () => boolean;
|
|
63
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
64
|
-
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
65
|
-
insertOrReplaceExtension: ({ editorView, action, attrs, content, position, size, tr, }: import("../../types").InsertOrReplaceExtensionType) => import("prosemirror-state").Transaction;
|
|
66
|
-
insertOrReplaceBodiedExtension: ({ editorView, action, attrs, content, position, size, tr, }: import("../../types").InsertOrReplaceExtensionType) => import("prosemirror-state").Transaction;
|
|
67
|
-
runMacroAutoConvert: import("../../types").RunMacroAutoConvert;
|
|
68
|
-
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
69
|
-
};
|
|
70
|
-
}> | undefined;
|
|
19
|
+
api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
|
|
71
20
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "featureFlags" | "api" | "autoSaveReject" | "parameters" | "key" | "onChange" | "errorMessage" | "analyticsContext" | "fields" | "extensionManifest" | "isLoading" | "onCancel" | "autoSaveTrigger" | "showHeader" | "closeOnEsc"> & React.RefAttributes<any>>;
|
|
72
|
-
export default
|
|
21
|
+
export default result;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
3
|
import type { ExtensionManifest, FieldDefinition, OnSaveCallback, Parameters } from '@atlaskit/editor-common/extensions';
|
|
4
|
-
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
|
-
import type { RejectSave } from '../../types';
|
|
6
|
-
declare const
|
|
4
|
+
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { ExtensionPlugin, RejectSave } from '../../types';
|
|
6
|
+
declare const result: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
7
7
|
extensionManifest?: ExtensionManifest | undefined;
|
|
8
8
|
fields?: FieldDefinition[] | undefined;
|
|
9
9
|
parameters?: Parameters | undefined;
|
|
@@ -16,66 +16,6 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
16
16
|
errorMessage: string | null;
|
|
17
17
|
isLoading?: boolean | undefined;
|
|
18
18
|
featureFlags?: FeatureFlags | undefined;
|
|
19
|
-
api:
|
|
20
|
-
pluginConfiguration: import("../../types").ExtensionPluginOptions | undefined;
|
|
21
|
-
dependencies: [
|
|
22
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
23
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
24
|
-
sharedState: {
|
|
25
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
26
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
27
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
28
|
-
};
|
|
29
|
-
dependencies: [
|
|
30
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
31
|
-
pluginConfiguration: FeatureFlags;
|
|
32
|
-
sharedState: FeatureFlags;
|
|
33
|
-
}, FeatureFlags>>
|
|
34
|
-
];
|
|
35
|
-
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
36
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
37
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
38
|
-
pluginConfiguration: FeatureFlags;
|
|
39
|
-
sharedState: FeatureFlags;
|
|
40
|
-
}, FeatureFlags>>,
|
|
41
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
42
|
-
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
43
|
-
}, undefined>,
|
|
44
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
45
|
-
sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
|
|
46
|
-
actions: {
|
|
47
|
-
hoverDecoration: (nodeType: import("prosemirror-model").NodeType | import("prosemirror-model").NodeType[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
48
|
-
removeDecoration: import("@atlaskit/editor-common/types").Command;
|
|
49
|
-
};
|
|
50
|
-
}, undefined>,
|
|
51
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
|
|
52
|
-
actions: {
|
|
53
|
-
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
54
|
-
};
|
|
55
|
-
sharedState: {
|
|
56
|
-
contents: React.ReactNode[] | undefined;
|
|
57
|
-
} | undefined;
|
|
58
|
-
}, undefined>>,
|
|
59
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextIdentifier", {
|
|
60
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
61
|
-
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
62
|
-
commands: {
|
|
63
|
-
setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
64
|
-
};
|
|
65
|
-
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>
|
|
66
|
-
];
|
|
67
|
-
sharedState: {
|
|
68
|
-
showContextPanel: boolean | undefined;
|
|
69
|
-
} | undefined;
|
|
70
|
-
actions: {
|
|
71
|
-
editSelectedExtension: () => boolean;
|
|
72
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
73
|
-
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
74
|
-
insertOrReplaceExtension: ({ editorView, action, attrs, content, position, size, tr, }: import("../../types").InsertOrReplaceExtensionType) => import("prosemirror-state").Transaction;
|
|
75
|
-
insertOrReplaceBodiedExtension: ({ editorView, action, attrs, content, position, size, tr, }: import("../../types").InsertOrReplaceExtensionType) => import("prosemirror-state").Transaction;
|
|
76
|
-
runMacroAutoConvert: import("../../types").RunMacroAutoConvert;
|
|
77
|
-
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
78
|
-
};
|
|
79
|
-
}> | undefined;
|
|
19
|
+
api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
|
|
80
20
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "featureFlags" | "api" | "autoSaveReject" | "parameters" | "key" | "onChange" | "errorMessage" | "analyticsContext" | "fields" | "extensionManifest" | "isLoading" | "onCancel" | "autoSaveTrigger" | "showHeader" | "closeOnEsc"> & React.RefAttributes<any>>;
|
|
81
|
-
export default
|
|
21
|
+
export default result;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.1",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/adf-schema": "^44.2.0",
|
|
27
|
-
"@atlaskit/adf-utils": "^19.
|
|
27
|
+
"@atlaskit/adf-utils": "^19.12.0",
|
|
28
28
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
29
29
|
"@atlaskit/avatar": "^21.17.0",
|
|
30
30
|
"@atlaskit/button": "^20.3.0",
|
|
31
31
|
"@atlaskit/checkbox": "^15.1.0",
|
|
32
|
-
"@atlaskit/datetime-picker": "^15.
|
|
33
|
-
"@atlaskit/editor-common": "^94.
|
|
34
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
32
|
+
"@atlaskit/datetime-picker": "^15.9.0",
|
|
33
|
+
"@atlaskit/editor-common": "^94.23.0",
|
|
34
|
+
"@atlaskit/editor-json-transformer": "^8.21.0",
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
36
36
|
"@atlaskit/editor-plugin-context-identifier": "^1.3.0",
|
|
37
37
|
"@atlaskit/editor-plugin-context-panel": "^1.3.0",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
44
44
|
"@atlaskit/empty-state": "^7.12.0",
|
|
45
45
|
"@atlaskit/form": "^10.5.0",
|
|
46
|
-
"@atlaskit/heading": "
|
|
46
|
+
"@atlaskit/heading": "3.0.0",
|
|
47
47
|
"@atlaskit/icon": "^22.24.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
|
-
"@atlaskit/primitives": "^13.
|
|
49
|
+
"@atlaskit/primitives": "^13.2.0",
|
|
50
50
|
"@atlaskit/radio": "^6.5.0",
|
|
51
51
|
"@atlaskit/section-message": "^6.6.0",
|
|
52
52
|
"@atlaskit/select": "^18.5.0",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"@atlaskit/textarea": "^5.6.0",
|
|
57
57
|
"@atlaskit/textfield": "^6.5.0",
|
|
58
58
|
"@atlaskit/theme": "^14.0.0",
|
|
59
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^2.18.0",
|
|
60
60
|
"@atlaskit/toggle": "^13.4.0",
|
|
61
61
|
"@atlaskit/tokens": "^2.2.0",
|
|
62
|
-
"@atlaskit/tooltip": "^18.
|
|
62
|
+
"@atlaskit/tooltip": "^18.9.0",
|
|
63
63
|
"@babel/runtime": "^7.0.0",
|
|
64
64
|
"@emotion/react": "^11.7.1",
|
|
65
65
|
"bind-event-listener": "^3.0.0",
|
|
@@ -109,6 +109,9 @@
|
|
|
109
109
|
"platform-feature-flags": {
|
|
110
110
|
"platform_editor_remove_copy_button_from_view_mode": {
|
|
111
111
|
"type": "boolean"
|
|
112
|
+
},
|
|
113
|
+
"platform_editor_react18_phase2_loadable": {
|
|
114
|
+
"type": "boolean"
|
|
112
115
|
}
|
|
113
116
|
},
|
|
114
117
|
"stricter": {
|