@atlaskit/editor-core 188.11.2 → 188.11.3
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 +7 -0
- package/dist/cjs/plugins/paste/index.js +8 -26
- package/dist/cjs/plugins/paste/plugin.js +31 -0
- package/dist/cjs/plugins/paste/pm-plugins/plugin-factory.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/paste/index.js +3 -27
- package/dist/es2019/plugins/paste/plugin.js +26 -0
- package/dist/es2019/plugins/paste/pm-plugins/plugin-factory.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/paste/index.js +3 -26
- package/dist/esm/plugins/paste/plugin.js +25 -0
- package/dist/esm/plugins/paste/pm-plugins/plugin-factory.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/paste/index.d.ts +3 -24
- package/dist/types/plugins/paste/plugin.d.ts +2 -0
- package/dist/types/plugins/paste/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/paste/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/paste/types.d.ts +1 -6
- package/dist/types-ts4.5/plugins/paste/index.d.ts +3 -24
- package/dist/types-ts4.5/plugins/paste/plugin.d.ts +2 -0
- package/dist/types-ts4.5/plugins/paste/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/paste/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types-ts4.5/plugins/paste/types.d.ts +1 -6
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 188.11.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#41862](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41862) [`668cb3bcd3a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/668cb3bcd3a) - [ED-20519] Extract Paste Plugin: Moving the plugin type to a new package
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 188.11.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -4,29 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var featureFlags = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
|
|
16
|
-
return {
|
|
17
|
-
name: 'paste',
|
|
18
|
-
pmPlugins: function pmPlugins() {
|
|
19
|
-
return [{
|
|
20
|
-
name: 'paste',
|
|
21
|
-
plugin: function plugin(_ref3) {
|
|
22
|
-
var schema = _ref3.schema,
|
|
23
|
-
providerFactory = _ref3.providerFactory,
|
|
24
|
-
dispatchAnalyticsEvent = _ref3.dispatchAnalyticsEvent,
|
|
25
|
-
dispatch = _ref3.dispatch;
|
|
26
|
-
return (0, _main.createPlugin)(schema, dispatchAnalyticsEvent, dispatch, featureFlags, api, cardOptions, sanitizePrivateContent, providerFactory);
|
|
27
|
-
}
|
|
28
|
-
}];
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
var _default = exports.default = pastePlugin;
|
|
7
|
+
Object.defineProperty(exports, "pastePlugin", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _plugin.pastePlugin;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _plugin = require("./plugin");
|
|
14
|
+
var _default = exports.default = _plugin.pastePlugin;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.pastePlugin = void 0;
|
|
7
|
+
var _main = require("./pm-plugins/main");
|
|
8
|
+
var pastePlugin = exports.pastePlugin = function pastePlugin(_ref) {
|
|
9
|
+
var _api$featureFlags;
|
|
10
|
+
var config = _ref.config,
|
|
11
|
+
api = _ref.api;
|
|
12
|
+
var _ref2 = config !== null && config !== void 0 ? config : {},
|
|
13
|
+
cardOptions = _ref2.cardOptions,
|
|
14
|
+
sanitizePrivateContent = _ref2.sanitizePrivateContent;
|
|
15
|
+
var featureFlags = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
|
|
16
|
+
return {
|
|
17
|
+
name: 'paste',
|
|
18
|
+
pmPlugins: function pmPlugins() {
|
|
19
|
+
return [{
|
|
20
|
+
name: 'paste',
|
|
21
|
+
plugin: function plugin(_ref3) {
|
|
22
|
+
var schema = _ref3.schema,
|
|
23
|
+
providerFactory = _ref3.providerFactory,
|
|
24
|
+
dispatchAnalyticsEvent = _ref3.dispatchAnalyticsEvent,
|
|
25
|
+
dispatch = _ref3.dispatch;
|
|
26
|
+
return (0, _main.createPlugin)(schema, dispatchAnalyticsEvent, dispatch, featureFlags, api, cardOptions, sanitizePrivateContent, providerFactory);
|
|
27
|
+
}
|
|
28
|
+
}];
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -8,12 +8,12 @@ exports.pluginKey = exports.getPluginState = exports.createPluginState = exports
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
11
|
-
var
|
|
11
|
+
var _utils = require("@atlaskit/editor-common/utils");
|
|
12
12
|
var _reducer = require("../reducer");
|
|
13
13
|
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; }
|
|
14
14
|
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; }
|
|
15
15
|
var pluginKey = exports.pluginKey = new _state.PluginKey('pastePlugin');
|
|
16
|
-
var _pluginFactory = (0,
|
|
16
|
+
var _pluginFactory = (0, _utils.pluginFactory)(pluginKey, _reducer.reducer, {
|
|
17
17
|
mapping: function mapping(tr, pluginState) {
|
|
18
18
|
if (tr.docChanged) {
|
|
19
19
|
var atLeastOnePositionChanged = false;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
|
-
var version = exports.version = "188.11.
|
|
8
|
+
var version = exports.version = "188.11.3";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
api
|
|
5
|
-
}) => {
|
|
6
|
-
var _api$featureFlags;
|
|
7
|
-
const {
|
|
8
|
-
cardOptions,
|
|
9
|
-
sanitizePrivateContent
|
|
10
|
-
} = config !== null && config !== void 0 ? config : {};
|
|
11
|
-
const featureFlags = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
|
|
12
|
-
return {
|
|
13
|
-
name: 'paste',
|
|
14
|
-
pmPlugins() {
|
|
15
|
-
return [{
|
|
16
|
-
name: 'paste',
|
|
17
|
-
plugin: ({
|
|
18
|
-
schema,
|
|
19
|
-
providerFactory,
|
|
20
|
-
dispatchAnalyticsEvent,
|
|
21
|
-
dispatch
|
|
22
|
-
}) => createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, api, cardOptions, sanitizePrivateContent, providerFactory)
|
|
23
|
-
}];
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export default pastePlugin;
|
|
1
|
+
import { pastePlugin } from './plugin';
|
|
2
|
+
export default pastePlugin;
|
|
3
|
+
export { pastePlugin };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createPlugin } from './pm-plugins/main';
|
|
2
|
+
export const pastePlugin = ({
|
|
3
|
+
config,
|
|
4
|
+
api
|
|
5
|
+
}) => {
|
|
6
|
+
var _api$featureFlags;
|
|
7
|
+
const {
|
|
8
|
+
cardOptions,
|
|
9
|
+
sanitizePrivateContent
|
|
10
|
+
} = config !== null && config !== void 0 ? config : {};
|
|
11
|
+
const featureFlags = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
|
|
12
|
+
return {
|
|
13
|
+
name: 'paste',
|
|
14
|
+
pmPlugins() {
|
|
15
|
+
return [{
|
|
16
|
+
name: 'paste',
|
|
17
|
+
plugin: ({
|
|
18
|
+
schema,
|
|
19
|
+
providerFactory,
|
|
20
|
+
dispatchAnalyticsEvent,
|
|
21
|
+
dispatch
|
|
22
|
+
}) => createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, api, cardOptions, sanitizePrivateContent, providerFactory)
|
|
23
|
+
}];
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import { pluginFactory } from '
|
|
2
|
+
import { pluginFactory } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { reducer } from '../reducer';
|
|
4
4
|
export const pluginKey = new PluginKey('pastePlugin');
|
|
5
5
|
export const {
|
|
@@ -1,26 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var config = _ref.config,
|
|
5
|
-
api = _ref.api;
|
|
6
|
-
var _ref2 = config !== null && config !== void 0 ? config : {},
|
|
7
|
-
cardOptions = _ref2.cardOptions,
|
|
8
|
-
sanitizePrivateContent = _ref2.sanitizePrivateContent;
|
|
9
|
-
var featureFlags = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
|
|
10
|
-
return {
|
|
11
|
-
name: 'paste',
|
|
12
|
-
pmPlugins: function pmPlugins() {
|
|
13
|
-
return [{
|
|
14
|
-
name: 'paste',
|
|
15
|
-
plugin: function plugin(_ref3) {
|
|
16
|
-
var schema = _ref3.schema,
|
|
17
|
-
providerFactory = _ref3.providerFactory,
|
|
18
|
-
dispatchAnalyticsEvent = _ref3.dispatchAnalyticsEvent,
|
|
19
|
-
dispatch = _ref3.dispatch;
|
|
20
|
-
return createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, api, cardOptions, sanitizePrivateContent, providerFactory);
|
|
21
|
-
}
|
|
22
|
-
}];
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export default pastePlugin;
|
|
1
|
+
import { pastePlugin } from './plugin';
|
|
2
|
+
export default pastePlugin;
|
|
3
|
+
export { pastePlugin };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createPlugin } from './pm-plugins/main';
|
|
2
|
+
export var pastePlugin = function pastePlugin(_ref) {
|
|
3
|
+
var _api$featureFlags;
|
|
4
|
+
var config = _ref.config,
|
|
5
|
+
api = _ref.api;
|
|
6
|
+
var _ref2 = config !== null && config !== void 0 ? config : {},
|
|
7
|
+
cardOptions = _ref2.cardOptions,
|
|
8
|
+
sanitizePrivateContent = _ref2.sanitizePrivateContent;
|
|
9
|
+
var featureFlags = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
|
|
10
|
+
return {
|
|
11
|
+
name: 'paste',
|
|
12
|
+
pmPlugins: function pmPlugins() {
|
|
13
|
+
return [{
|
|
14
|
+
name: 'paste',
|
|
15
|
+
plugin: function plugin(_ref3) {
|
|
16
|
+
var schema = _ref3.schema,
|
|
17
|
+
providerFactory = _ref3.providerFactory,
|
|
18
|
+
dispatchAnalyticsEvent = _ref3.dispatchAnalyticsEvent,
|
|
19
|
+
dispatch = _ref3.dispatch;
|
|
20
|
+
return createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, api, cardOptions, sanitizePrivateContent, providerFactory);
|
|
21
|
+
}
|
|
22
|
+
}];
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
-
import { pluginFactory } from '
|
|
6
|
+
import { pluginFactory } from '@atlaskit/editor-common/utils';
|
|
7
7
|
import { reducer } from '../reducer';
|
|
8
8
|
export var pluginKey = new PluginKey('pastePlugin');
|
|
9
9
|
var _pluginFactory = pluginFactory(pluginKey, reducer, {
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
4
|
-
import type { cardPlugin } from '@atlaskit/editor-plugin-card';
|
|
5
|
-
import type { BetterTypeHistoryPlugin } from '@atlaskit/editor-plugin-better-type-history';
|
|
6
|
-
import type { listPlugin } from '@atlaskit/editor-plugin-list';
|
|
7
|
-
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
8
|
-
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
9
|
-
export type PastePluginOptions = {
|
|
10
|
-
cardOptions?: CardOptions;
|
|
11
|
-
sanitizePrivateContent?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export type PastePlugin = NextEditorPlugin<'paste', {
|
|
14
|
-
pluginConfiguration: PastePluginOptions;
|
|
15
|
-
dependencies: [
|
|
16
|
-
FeatureFlagsPlugin,
|
|
17
|
-
OptionalPlugin<typeof listPlugin>,
|
|
18
|
-
BetterTypeHistoryPlugin,
|
|
19
|
-
OptionalPlugin<typeof cardPlugin>,
|
|
20
|
-
OptionalPlugin<typeof analyticsPlugin>,
|
|
21
|
-
OptionalPlugin<MediaPlugin>
|
|
22
|
-
];
|
|
23
|
-
}>;
|
|
24
|
-
declare const pastePlugin: PastePlugin;
|
|
1
|
+
import { pastePlugin } from './plugin';
|
|
2
|
+
export type { PastePlugin, PastePluginOptions } from './types';
|
|
25
3
|
export default pastePlugin;
|
|
4
|
+
export { pastePlugin };
|
|
@@ -7,4 +7,4 @@ export { pluginKey as stateKey } from './plugin-factory';
|
|
|
7
7
|
import type { Dispatch } from '../../../event-dispatcher';
|
|
8
8
|
import type { FeatureFlags, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { PastePlugin } from '../';
|
|
10
|
-
export declare function createPlugin(schema: Schema, dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, featureFlags: FeatureFlags, pluginInjectionApi: ExtractInjectionAPI<PastePlugin> | undefined, cardOptions?: CardOptions, sanitizePrivateContent?: boolean, providerFactory?: ProviderFactory): SafePlugin<import("
|
|
10
|
+
export declare function createPlugin(schema: Schema, dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, featureFlags: FeatureFlags, pluginInjectionApi: ExtractInjectionAPI<PastePlugin> | undefined, cardOptions?: CardOptions, sanitizePrivateContent?: boolean, providerFactory?: ProviderFactory): SafePlugin<import("@atlaskit/editor-plugin-paste").PastePluginState>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
export declare const pluginKey: PluginKey<any>;
|
|
3
|
-
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("
|
|
3
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("@atlaskit/editor-plugin-paste").PastePluginState | ((state: import("prosemirror-state").EditorState) => import("@atlaskit/editor-plugin-paste").PastePluginState)) => import("prosemirror-state").SafeStateField<import("@atlaskit/editor-plugin-paste").PastePluginState>, createCommand: <A = import("../actions").PastePluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("@atlaskit/editor-plugin-paste").PastePluginState;
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
/** map of pasted macro link positions that will to be mapped through incoming transactions */
|
|
3
|
-
pastedMacroPositions: {
|
|
4
|
-
[key: string]: number;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
1
|
+
export type { PastePlugin, PastePluginOptions, PastePluginState, } from '@atlaskit/editor-plugin-paste';
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
4
|
-
import type { cardPlugin } from '@atlaskit/editor-plugin-card';
|
|
5
|
-
import type { BetterTypeHistoryPlugin } from '@atlaskit/editor-plugin-better-type-history';
|
|
6
|
-
import type { listPlugin } from '@atlaskit/editor-plugin-list';
|
|
7
|
-
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
8
|
-
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
9
|
-
export type PastePluginOptions = {
|
|
10
|
-
cardOptions?: CardOptions;
|
|
11
|
-
sanitizePrivateContent?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export type PastePlugin = NextEditorPlugin<'paste', {
|
|
14
|
-
pluginConfiguration: PastePluginOptions;
|
|
15
|
-
dependencies: [
|
|
16
|
-
FeatureFlagsPlugin,
|
|
17
|
-
OptionalPlugin<typeof listPlugin>,
|
|
18
|
-
BetterTypeHistoryPlugin,
|
|
19
|
-
OptionalPlugin<typeof cardPlugin>,
|
|
20
|
-
OptionalPlugin<typeof analyticsPlugin>,
|
|
21
|
-
OptionalPlugin<MediaPlugin>
|
|
22
|
-
];
|
|
23
|
-
}>;
|
|
24
|
-
declare const pastePlugin: PastePlugin;
|
|
1
|
+
import { pastePlugin } from './plugin';
|
|
2
|
+
export type { PastePlugin, PastePluginOptions } from './types';
|
|
25
3
|
export default pastePlugin;
|
|
4
|
+
export { pastePlugin };
|
|
@@ -7,4 +7,4 @@ export { pluginKey as stateKey } from './plugin-factory';
|
|
|
7
7
|
import type { Dispatch } from '../../../event-dispatcher';
|
|
8
8
|
import type { FeatureFlags, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
9
|
import type { PastePlugin } from '../';
|
|
10
|
-
export declare function createPlugin(schema: Schema, dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, featureFlags: FeatureFlags, pluginInjectionApi: ExtractInjectionAPI<PastePlugin> | undefined, cardOptions?: CardOptions, sanitizePrivateContent?: boolean, providerFactory?: ProviderFactory): SafePlugin<import("
|
|
10
|
+
export declare function createPlugin(schema: Schema, dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, featureFlags: FeatureFlags, pluginInjectionApi: ExtractInjectionAPI<PastePlugin> | undefined, cardOptions?: CardOptions, sanitizePrivateContent?: boolean, providerFactory?: ProviderFactory): SafePlugin<import("@atlaskit/editor-plugin-paste").PastePluginState>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
export declare const pluginKey: PluginKey<any>;
|
|
3
|
-
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("
|
|
3
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("@atlaskit/editor-plugin-paste").PastePluginState | ((state: import("prosemirror-state").EditorState) => import("@atlaskit/editor-plugin-paste").PastePluginState)) => import("prosemirror-state").SafeStateField<import("@atlaskit/editor-plugin-paste").PastePluginState>, createCommand: <A = import("../actions").PastePluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("@atlaskit/editor-plugin-paste").PastePluginState;
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
/** map of pasted macro link positions that will to be mapped through incoming transactions */
|
|
3
|
-
pastedMacroPositions: {
|
|
4
|
-
[key: string]: number;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
1
|
+
export type { PastePlugin, PastePluginOptions, PastePluginState, } from '@atlaskit/editor-plugin-paste';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "188.11.
|
|
3
|
+
"version": "188.11.3",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"@atlaskit/editor-plugin-list": "^1.3.0",
|
|
86
86
|
"@atlaskit/editor-plugin-media": "^0.3.0",
|
|
87
87
|
"@atlaskit/editor-plugin-mentions": "^0.1.0",
|
|
88
|
+
"@atlaskit/editor-plugin-paste": "^0.0.1",
|
|
88
89
|
"@atlaskit/editor-plugin-placeholder": "^0.1.0",
|
|
89
90
|
"@atlaskit/editor-plugin-quick-insert": "^0.2.0",
|
|
90
91
|
"@atlaskit/editor-plugin-rule": "^0.1.0",
|