@atlaskit/editor-plugin-code-block 10.0.0 → 10.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 +6 -0
- package/dist/types/editor-commands/index.d.ts +2 -2
- package/dist/types/pm-plugins/codeBlockAutoFullStopTransformPlugin.d.ts +2 -2
- package/dist/types/pm-plugins/codeBlockCopySelectionPlugin.d.ts +1 -1
- package/dist/types/pm-plugins/ide-ux.d.ts +1 -1
- package/dist/types/pm-plugins/input-rule.d.ts +1 -1
- package/dist/types/pm-plugins/language-list.d.ts +939 -903
- package/dist/types/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/editor-commands/index.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/codeBlockAutoFullStopTransformPlugin.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/codeBlockCopySelectionPlugin.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/ide-ux.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/input-rule.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/language-list.d.ts +1017 -1017
- package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { Command } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
export declare const removeCodeBlockWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
|
|
6
6
|
export declare const removeCodeBlock: Command;
|
|
7
7
|
export declare const changeLanguage: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (language: string) => Command;
|
|
@@ -17,7 +17,7 @@ export declare const resetShouldIgnoreFollowingMutations: Command;
|
|
|
17
17
|
*/
|
|
18
18
|
export declare function createInsertCodeBlockTransaction({ state }: {
|
|
19
19
|
state: EditorState;
|
|
20
|
-
}):
|
|
20
|
+
}): Transaction;
|
|
21
21
|
export declare function insertCodeBlockWithAnalytics(inputMethod: INPUT_METHOD, analyticsAPI?: EditorAnalyticsAPI): Command;
|
|
22
22
|
/**
|
|
23
23
|
* Add the given node to the codeBlockWrappedStates WeakMap with the toggle boolean value.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export declare const codeBlockAutoFullStopTransformPluginKey: PluginKey
|
|
4
|
-
export declare function codeBlockAutoFullStopTransformPlugin(): SafePlugin
|
|
3
|
+
export declare const codeBlockAutoFullStopTransformPluginKey: PluginKey;
|
|
4
|
+
export declare function codeBlockAutoFullStopTransformPlugin(): SafePlugin;
|
|
@@ -2,7 +2,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
-
export declare const copySelectionPluginKey: PluginKey
|
|
5
|
+
export declare const copySelectionPluginKey: PluginKey;
|
|
6
6
|
type CodeBlockCopySelectionPluginState = {
|
|
7
7
|
codeBlockNode?: PMNode;
|
|
8
8
|
decorationStartAndEnd?: [start: number, end: number];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { CodeBlockPlugin } from '../index';
|
|
4
|
-
declare const ideUX: (pluginInjectionApi: ExtractInjectionAPI<CodeBlockPlugin> | undefined) => SafePlugin
|
|
4
|
+
declare const ideUX: (pluginInjectionApi: ExtractInjectionAPI<CodeBlockPlugin> | undefined) => SafePlugin;
|
|
5
5
|
export default ideUX;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
export declare function createCodeBlockInputRule(schema: Schema, editorAnalyticsAPI?: EditorAnalyticsAPI): SafePlugin
|
|
4
|
+
export declare function createCodeBlockInputRule(schema: Schema, editorAnalyticsAPI?: EditorAnalyticsAPI): SafePlugin;
|