@atlaskit/editor-plugin-extension 15.0.38 → 15.0.39
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 +6 -0
- package/dist/types/editor-actions/actions.d.ts +2 -2
- package/dist/types/pm-plugins/macro/actions.d.ts +1 -1
- package/dist/types/pm-plugins/main.d.ts +2 -2
- package/dist/types/pm-plugins/toDOM-fixes/bodiedExtension.d.ts +1 -1
- package/dist/types/pm-plugins/toolbar.d.ts +3 -3
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -7,8 +7,8 @@ import type { Fragment, Mark, Node as PmNode, Schema } from '@atlaskit/editor-pr
|
|
|
7
7
|
import { type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import type { InsertOrReplaceExtensionType } from '../extensionPluginType';
|
|
10
|
-
export declare const buildExtensionNode: <S extends Schema>(type:
|
|
11
|
-
export declare const performNodeUpdate: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (type:
|
|
10
|
+
export declare const buildExtensionNode: <S extends Schema>(type: 'inlineExtension' | 'extension' | 'bodiedExtension' | 'multiBodiedExtension', schema: S, attrs: object, content?: Fragment, marks?: readonly Mark[]) => PmNode;
|
|
11
|
+
export declare const performNodeUpdate: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (type: 'inlineExtension' | 'extension' | 'bodiedExtension' | 'multiBodiedExtension', newAttrs: object, content: Fragment, marks: readonly Mark[], shouldScrollIntoView: boolean) => Command;
|
|
12
12
|
export declare const editExtension: (macroProvider: MacroProvider | null | undefined, applyChangeToContextPanel: ApplyChangeHandler | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, updateExtension?: Promise<UpdateExtension<object> | void>) => Command;
|
|
13
13
|
type Props = {
|
|
14
14
|
applyChangeToContextPanel: ApplyChangeHandler | undefined;
|
|
@@ -6,4 +6,4 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
6
6
|
export declare const insertMacroFromMacroBrowser: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (macroProvider: MacroProvider, macroNode?: PmNode, isEditing?: boolean) => (view: EditorView) => Promise<boolean>;
|
|
7
7
|
export declare const resolveMacro: (macro?: MacroAttributes, state?: EditorState, optionalAttrs?: object) => PmNode | null;
|
|
8
8
|
export declare const runMacroAutoConvert: (state: EditorState, text: string) => PmNode | null;
|
|
9
|
-
export declare const setMacroProvider: (provider: Providers[
|
|
9
|
+
export declare const setMacroProvider: (provider: Providers['macroProvider']) => (view: EditorView) => Promise<boolean>;
|
|
@@ -13,7 +13,7 @@ import type { ExtensionPlugin, ExtensionPluginOptions, ExtensionState } from '..
|
|
|
13
13
|
export declare const createExtensionProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ExtensionProvider>) => Promise<void>;
|
|
14
14
|
export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandlers, applyChange, }: {
|
|
15
15
|
applyChange: ApplyChangeHandler | undefined;
|
|
16
|
-
domAtPos: EditorView[
|
|
16
|
+
domAtPos: EditorView['domAtPos'];
|
|
17
17
|
extensionHandlers: ExtensionHandlers;
|
|
18
18
|
prevState: EditorState;
|
|
19
19
|
view: EditorView;
|
|
@@ -21,4 +21,4 @@ export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandle
|
|
|
21
21
|
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, extensionLoadingHandlers: ExtensionHandlers | undefined, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<ExtensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
|
|
22
22
|
appearance?: EditorAppearance;
|
|
23
23
|
getExtensionHeight?: GetPMNodeHeight;
|
|
24
|
-
}, featureFlags?: FeatureFlags, __rendererExtensionOptions?: ExtensionPluginOptions[
|
|
24
|
+
}, featureFlags?: FeatureFlags, __rendererExtensionOptions?: ExtensionPluginOptions['__rendererExtensionOptions'], intl?: IntlShape) => SafePlugin<ExtensionState>;
|
|
@@ -14,10 +14,10 @@ import type { ExtensionPluginOptions } from '../extensionPluginType';
|
|
|
14
14
|
* if the current selected extension is an unsupported content extension.
|
|
15
15
|
*/
|
|
16
16
|
export declare const createOnClickCopyButton: ({ formatMessage, extensionApi, extensionProvider, getUnsupportedContent, state, locale, }: {
|
|
17
|
-
extensionApi: GetToolbarConfigProps[
|
|
17
|
+
extensionApi: GetToolbarConfigProps['extensionApi'];
|
|
18
18
|
extensionProvider?: ExtensionProvider;
|
|
19
|
-
formatMessage: IntlShape[
|
|
20
|
-
getUnsupportedContent?: ExtensionPluginOptions[
|
|
19
|
+
formatMessage: IntlShape['formatMessage'];
|
|
20
|
+
getUnsupportedContent?: ExtensionPluginOptions['getUnsupportedContent'];
|
|
21
21
|
locale: string;
|
|
22
22
|
state: EditorState;
|
|
23
23
|
}) => Command | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.39",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"@atlaskit/adf-schema": "^56.1.0",
|
|
25
25
|
"@atlaskit/adf-utils": "^20.3.0",
|
|
26
26
|
"@atlaskit/analytics-next": "^12.3.0",
|
|
27
|
-
"@atlaskit/avatar": "^26.
|
|
27
|
+
"@atlaskit/avatar": "^26.3.0",
|
|
28
28
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
29
29
|
"@atlaskit/button": "^24.3.0",
|
|
30
30
|
"@atlaskit/checkbox": "^18.2.0",
|
|
31
|
-
"@atlaskit/datetime-picker": "^18.
|
|
31
|
+
"@atlaskit/datetime-picker": "^18.2.0",
|
|
32
32
|
"@atlaskit/editor-json-transformer": "^9.1.0",
|
|
33
33
|
"@atlaskit/editor-plugin-analytics": "^12.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-connectivity": "^12.0.0",
|
|
@@ -53,16 +53,16 @@
|
|
|
53
53
|
"@atlaskit/primitives": "^22.2.0",
|
|
54
54
|
"@atlaskit/radio": "^9.1.0",
|
|
55
55
|
"@atlaskit/section-message": "^9.2.0",
|
|
56
|
-
"@atlaskit/select": "^22.
|
|
56
|
+
"@atlaskit/select": "^22.6.0",
|
|
57
57
|
"@atlaskit/smart-user-picker": "^11.2.0",
|
|
58
58
|
"@atlaskit/spinner": "^20.1.0",
|
|
59
59
|
"@atlaskit/tabs": "^20.1.0",
|
|
60
60
|
"@atlaskit/textarea": "^9.1.0",
|
|
61
61
|
"@atlaskit/textfield": "^9.1.0",
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^135.0.0",
|
|
63
63
|
"@atlaskit/toggle": "^17.1.0",
|
|
64
64
|
"@atlaskit/tokens": "^16.3.0",
|
|
65
|
-
"@atlaskit/tooltip": "^23.
|
|
65
|
+
"@atlaskit/tooltip": "^23.2.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|
|
67
67
|
"@emotion/react": "^11.7.1",
|
|
68
68
|
"bind-event-listener": "^3.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"uuid": "^3.1.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@atlaskit/editor-common": "^116.
|
|
76
|
+
"@atlaskit/editor-common": "^116.41.0",
|
|
77
77
|
"react": "^18.2.0",
|
|
78
78
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
79
79
|
},
|