@atlaskit/editor-plugin-code-block 13.1.15 → 13.1.17

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/codeBlockPlugin/package.json +1 -8
  3. package/codeBlockPluginType/package.json +1 -8
  4. package/package.json +2 -2
  5. package/types/package.json +1 -8
  6. package/dist/types-ts4.5/codeBlockPlugin.d.ts +0 -3
  7. package/dist/types-ts4.5/codeBlockPluginType.d.ts +0 -40
  8. package/dist/types-ts4.5/editor-commands/index.d.ts +0 -37
  9. package/dist/types-ts4.5/entry-points/codeBlockPlugin.d.ts +0 -1
  10. package/dist/types-ts4.5/entry-points/codeBlockPluginType.d.ts +0 -1
  11. package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
  12. package/dist/types-ts4.5/index.d.ts +0 -3
  13. package/dist/types-ts4.5/nodeviews/code-block.d.ts +0 -30
  14. package/dist/types-ts4.5/pm-plugins/actions.d.ts +0 -10
  15. package/dist/types-ts4.5/pm-plugins/auto-detect-state.d.ts +0 -16
  16. package/dist/types-ts4.5/pm-plugins/auto-detect.d.ts +0 -5
  17. package/dist/types-ts4.5/pm-plugins/codeBlockAutoFullStopTransformPlugin.d.ts +0 -4
  18. package/dist/types-ts4.5/pm-plugins/codeBlockCopySelectionPlugin.d.ts +0 -16
  19. package/dist/types-ts4.5/pm-plugins/decorators.d.ts +0 -36
  20. package/dist/types-ts4.5/pm-plugins/ide-ux/bracket-handling.d.ts +0 -12
  21. package/dist/types-ts4.5/pm-plugins/ide-ux/commands.d.ts +0 -7
  22. package/dist/types-ts4.5/pm-plugins/ide-ux/line-handling.d.ts +0 -25
  23. package/dist/types-ts4.5/pm-plugins/ide-ux/paired-character-handling.d.ts +0 -2
  24. package/dist/types-ts4.5/pm-plugins/ide-ux/quote-handling.d.ts +0 -12
  25. package/dist/types-ts4.5/pm-plugins/ide-ux.d.ts +0 -5
  26. package/dist/types-ts4.5/pm-plugins/input-rule.d.ts +0 -4
  27. package/dist/types-ts4.5/pm-plugins/keymaps.d.ts +0 -4
  28. package/dist/types-ts4.5/pm-plugins/language-list.d.ts +0 -1800
  29. package/dist/types-ts4.5/pm-plugins/main-state.d.ts +0 -26
  30. package/dist/types-ts4.5/pm-plugins/main.d.ts +0 -13
  31. package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +0 -2
  32. package/dist/types-ts4.5/pm-plugins/refresh-browser-selection.d.ts +0 -5
  33. package/dist/types-ts4.5/pm-plugins/toolbar.d.ts +0 -12
  34. package/dist/types-ts4.5/pm-plugins/transform-to-code-block.d.ts +0 -3
  35. package/dist/types-ts4.5/pm-plugins/utils.d.ts +0 -6
  36. package/dist/types-ts4.5/types/index.d.ts +0 -34
  37. package/dist/types-ts4.5/ui/CodeBlockLanguagePicker.d.ts +0 -11
  38. package/dist/types-ts4.5/ui/CodeBlockMenuItem.d.ts +0 -4
  39. package/dist/types-ts4.5/ui/FormatCodeErrorFlag.d.ts +0 -6
  40. package/dist/types-ts4.5/ui/LanguagePicker.d.ts +0 -18
  41. package/dist/types-ts4.5/ui/class-names.d.ts +0 -10
  42. package/dist/types-ts4.5/ui/icons/WrapIcon.d.ts +0 -2
  43. package/dist/types-ts4.5/ui/language-picker-options.d.ts +0 -21
  44. package/dist/types-ts4.5/ui/recent-languages.d.ts +0 -4
  45. package/dist/types-ts4.5/utils/auto-detect-state.d.ts +0 -11
  46. package/dist/types-ts4.5/utils/auto-detect-view.d.ts +0 -8
  47. package/dist/types-ts4.5/utils/format-code/format-code-state.d.ts +0 -4
  48. package/dist/types-ts4.5/utils/format-code/formatter.d.ts +0 -5
  49. package/dist/types-ts4.5/utils/language-detect.d.ts +0 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-code-block
2
2
 
3
+ ## 13.1.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 13.1.16
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 13.1.15
4
16
 
5
17
  ### Patch Changes
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/codeBlockPlugin.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/codeBlockPlugin.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/codeBlockPlugin.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/codeBlockPlugin.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/codeBlockPlugin.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/codeBlockPluginType.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/codeBlockPluginType.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/codeBlockPluginType.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/codeBlockPluginType.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/codeBlockPluginType.d.ts"
15
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block",
3
- "version": "13.1.15",
3
+ "version": "13.1.17",
4
4
  "description": "Code block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -50,7 +50,7 @@
50
50
  "@atlaskit/primitives": "^19.0.0",
51
51
  "@atlaskit/prosemirror-input-rules": "^3.7.0",
52
52
  "@atlaskit/select": "^21.12.0",
53
- "@atlaskit/tmp-editor-statsig": "^101.0.0",
53
+ "@atlaskit/tmp-editor-statsig": "^103.0.0",
54
54
  "@atlaskit/tokens": "^13.4.0",
55
55
  "@babel/runtime": "^7.0.0",
56
56
  "@compiled/react": "^0.20.0"
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/types.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/types.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/types.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/types.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/types.d.ts"
15
8
  }
@@ -1,3 +0,0 @@
1
- import type { CodeBlockPlugin } from './codeBlockPluginType';
2
- declare const codeBlockPlugin: CodeBlockPlugin;
3
- export default codeBlockPlugin;
@@ -1,40 +0,0 @@
1
- import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- import type { Command, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
- import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu';
5
- import type { CompositionPlugin } from '@atlaskit/editor-plugin-composition';
6
- import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
7
- import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
8
- import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
9
- import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
10
- import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction';
11
- import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
12
- import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
13
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
14
- import type { CodeBlockState } from './pm-plugins/main-state';
15
- import type { CodeBlockPluginOptions } from './types';
16
- type CodeBlockDependencies = [
17
- DecorationsPlugin,
18
- CompositionPlugin,
19
- OptionalPlugin<AnalyticsPlugin>,
20
- OptionalPlugin<EditorDisabledPlugin>,
21
- OptionalPlugin<FeatureFlagsPlugin>,
22
- OptionalPlugin<InteractionPlugin>,
23
- OptionalPlugin<EditorViewModePlugin>,
24
- OptionalPlugin<BlockMenuPlugin>,
25
- OptionalPlugin<SelectionPlugin>,
26
- OptionalPlugin<ToolbarPlugin>
27
- ];
28
- export type CodeBlockPlugin = NextEditorPlugin<'codeBlock', {
29
- actions: {
30
- insertCodeBlock: (inputMethod: INPUT_METHOD) => Command;
31
- };
32
- dependencies: CodeBlockDependencies;
33
- pluginConfiguration: CodeBlockPluginOptions | undefined;
34
- sharedState: {
35
- copyButtonHoverNode: PMNode;
36
- formatCodeErrors: CodeBlockState['formatCodeErrors'];
37
- pendingFormats: CodeBlockState['pendingFormats'];
38
- } | undefined;
39
- }>;
40
- export {};
@@ -1,37 +0,0 @@
1
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
- import type { Command, EditorCommand, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
- import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
5
- import type { CodeBlockPlugin } from '../codeBlockPluginType';
6
- import type { CodeBlockFormatProvider } from '../types';
7
- import type { LanguagePickerSelectionSource } from '../ui/language-picker-options';
8
- export declare const removeCodeBlockWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
9
- export declare const removeCodeBlock: Command;
10
- export declare const changeLanguage: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (language: string | null, selectionSource?: LanguagePickerSelectionSource) => Command;
11
- /** Queue auto-detection for selected code block. */
12
- export declare const detectLanguage: () => Command;
13
- export declare const createFormatCodeOnClick: ({ api, editorAnalyticsAPI, formatCodeProvider, }: {
14
- api?: ExtractInjectionAPI<CodeBlockPlugin>;
15
- editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
16
- formatCodeProvider: CodeBlockFormatProvider | undefined;
17
- }) => Command;
18
- export declare const copyContentToClipboardWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
19
- export declare const copyContentToClipboard: Command;
20
- export declare const resetCopiedState: Command;
21
- export declare const ignoreFollowingMutations: Command;
22
- export declare const resetShouldIgnoreFollowingMutations: Command;
23
- /**
24
- * This function creates a new transaction that inserts a code block,
25
- * if there is text selected it will wrap the current selection if not it will
26
- * append the codeblock to the end of the document.
27
- */
28
- export declare function createInsertCodeBlockTransaction({ state }: {
29
- state: EditorState;
30
- }): Transaction;
31
- export declare function insertCodeBlockWithAnalytics(inputMethod: INPUT_METHOD, analyticsAPI?: EditorAnalyticsAPI): Command;
32
- /**
33
- * Add the given node to the codeBlockWrappedStates WeakMap with the toggle boolean value.
34
- */
35
- export declare const toggleWordWrapStateForCodeBlockNode: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
36
- export declare const toggleLineNumbersForCodeBlockNodeEditorCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => EditorCommand;
37
- export declare const toggleLineNumbersForCodeBlockNode: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
@@ -1 +0,0 @@
1
- export { default as codeBlockPlugin } from '../codeBlockPlugin';
@@ -1 +0,0 @@
1
- export type { CodeBlockPlugin } from '../codeBlockPluginType';
@@ -1 +0,0 @@
1
- export type { CodeBlockFormatProvider, CodeBlockOptions, CodeBlockPluginOptions, FormatResult, } from '../types/index';
@@ -1,3 +0,0 @@
1
- export { default as codeBlockPlugin } from './codeBlockPlugin';
2
- export type { CodeBlockPlugin } from './codeBlockPluginType';
3
- export type { CodeBlockOptions, CodeBlockPluginOptions } from './types';
@@ -1,30 +0,0 @@
1
- import type { ExtractInjectionAPI, getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { CodeBlockPlugin } from '../codeBlockPluginType';
5
- export declare class CodeBlockView {
6
- private cleanupEditorDisabledListener?;
7
- node: PMNode;
8
- dom: HTMLElement;
9
- contentDOM: HTMLElement;
10
- lineNumberGutter: HTMLElement;
11
- getPos: getPosHandlerNode;
12
- view: EditorView;
13
- formattedAriaLabel: string;
14
- api?: ExtractInjectionAPI<CodeBlockPlugin>;
15
- constructor(node: PMNode, view: EditorView, getPos: getPosHandlerNode, formattedAriaLabel: string, api?: ExtractInjectionAPI<CodeBlockPlugin>, cleanupEditorDisabledListener?: (() => void) | undefined);
16
- handleEditorDisabledChanged(): void;
17
- updateDOMAndSelection(savedInnerHTML: string, newCursorPosition: number): void;
18
- coalesceDOMElements(): void;
19
- /**
20
- * As the code block updates we get the maximum amount of digits in a line number and expand the number gutter to reflect this.
21
- */
22
- private maintainDynamicGutterSize;
23
- update(node: PMNode): boolean;
24
- ignoreMutation(record: MutationRecord | {
25
- target: Node;
26
- type: 'selection';
27
- }): boolean;
28
- destroy(): void;
29
- }
30
- export declare const codeBlockNodeView: (node: PMNode, view: EditorView, getPos: getPosHandler, formattedAriaLabel: string, api: ExtractInjectionAPI<CodeBlockPlugin> | undefined) => CodeBlockView;
@@ -1,10 +0,0 @@
1
- export declare const ACTIONS: {
2
- CLEAR_FORMAT_CODE_ERROR: string;
3
- REMOVE_AUTO_DETECT_ENTRY: string;
4
- RESOLVE_FORMAT_CODE: string;
5
- SET_AUTO_DETECT_ENTRY: string;
6
- SET_COPIED_TO_CLIPBOARD: string;
7
- SET_IS_WRAPPED: string;
8
- SET_SHOULD_IGNORE_FOLLOWING_MUTATIONS: string;
9
- START_FORMAT_CODE: string;
10
- };
@@ -1,16 +0,0 @@
1
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
2
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- export type AutoDetectResult = 'detected' | 'noneDetected';
4
- export type AutoDetectEntry = {
5
- autoDetectedLanguage?: string;
6
- detectionResult?: AutoDetectResult;
7
- isPending?: boolean;
8
- lastObservedFirstLine: string;
9
- lastObservedText: string;
10
- pos: number;
11
- };
12
- export type AutoDetectState = {
13
- languageDetectionMap: Record<string, AutoDetectEntry>;
14
- };
15
- export declare const autoDetectPluginKey: PluginKey<AutoDetectState>;
16
- export declare const getAutoDetectPluginState: (state: EditorState) => AutoDetectState | undefined;
@@ -1,5 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { CodeBlockPlugin } from '../index';
4
- import { type AutoDetectState } from './auto-detect-state';
5
- export declare const createAutoDetectPlugin: (api?: ExtractInjectionAPI<CodeBlockPlugin>) => SafePlugin<AutoDetectState>;
@@ -1,4 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- export declare const codeBlockAutoFullStopTransformPluginKey: PluginKey;
4
- export declare function codeBlockAutoFullStopTransformPlugin(): SafePlugin;
@@ -1,16 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
- import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
5
- export declare const copySelectionPluginKey: PluginKey;
6
- type CodeBlockCopySelectionPluginState = {
7
- codeBlockNode?: PMNode;
8
- decorationStartAndEnd?: [
9
- start: number,
10
- end: number
11
- ];
12
- };
13
- export declare function codeBlockCopySelectionPlugin(): SafePlugin<CodeBlockCopySelectionPluginState>;
14
- export declare function provideVisualFeedbackForCopyButton(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
15
- export declare function removeVisualFeedbackForCopyButton(state: EditorState, dispatch?: (tr: Transaction) => void): boolean;
16
- export {};
@@ -1,36 +0,0 @@
1
- import type { EditorState, ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
2
- import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
3
- import { Decoration } from '@atlaskit/editor-prosemirror/view';
4
- import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
5
- import type { CodeBlockLineAttributes } from '../types';
6
- export declare const DECORATION_WIDGET_TYPE = "decorationWidgetType";
7
- export declare const DECORATION_WRAPPED_BLOCK_NODE_TYPE = "decorationNodeType";
8
- /**
9
- * Generate the initial decorations for the code block.
10
- */
11
- export declare const generateInitialDecorations: (state: EditorState) => Decoration[];
12
- /**
13
- * Update all the decorations used by the code block.
14
- */
15
- export declare const updateCodeBlockDecorations: (tr: ReadonlyTransaction, codeBlockNodes: NodeWithPos[], decorationSet: DecorationSet) => DecorationSet;
16
- /**
17
- * Update the decorations set with the line number decorators. This will only happen for the code blocks passed to this function
18
- * when there has been a new line added or removed. The line decorations will not update the code block node otherwise.
19
- */
20
- export declare const updateDecorationSetWithLineNumberDecorators: (tr: ReadonlyTransaction, codeBlockNodes: NodeWithPos[], decorationSet: DecorationSet) => DecorationSet;
21
- export declare const generateLineAttributesFromNode: (node: NodeWithPos) => CodeBlockLineAttributes[];
22
- export declare const createDecorationSetFromLineAttributes: (lineAttributes: CodeBlockLineAttributes[]) => Decoration[];
23
- /**
24
- * There are edge cases like when a user drags and drops a code block node where the decorator breaks and no longer reflects
25
- * the correct word wrap state. This function validates that the decorator and the state are in line, otherwise it will
26
- * retrigger the logic to apply the word wrap decorator.
27
- */
28
- export declare const validateWordWrappedDecorators: (tr: ReadonlyTransaction, codeBlockNodes: NodeWithPos[], decorationSet: DecorationSet) => DecorationSet;
29
- /**
30
- * Update the decoration set with the word wrap decorator.
31
- */
32
- export declare const updateDecorationSetWithWordWrappedDecorator: (decorationSet: DecorationSet, tr: ReadonlyTransaction, node: NodeWithPos | undefined) => DecorationSet;
33
- /**
34
- * Get the word wrap decorators for the given node position.
35
- */
36
- export declare const getWordWrapDecoratorsFromNodePos: (pos: number, decorationSet: DecorationSet) => Decoration[];
@@ -1,12 +0,0 @@
1
- export declare const BRACKET_MAP: {
2
- '{': string;
3
- '[': string;
4
- '(': string;
5
- };
6
- export type BracketMapKey = keyof typeof BRACKET_MAP;
7
- export declare const shouldAutoCloseBracket: (before: string, after: string) => boolean;
8
- export declare const getAutoClosingBracketInfo: (before: string, after: string) => {
9
- left: "{" | "[" | "(" | undefined;
10
- right: string | undefined;
11
- hasTrailingMatchingBracket: boolean;
12
- };
@@ -1,7 +0,0 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { CommandDispatch } from '@atlaskit/editor-common/types';
3
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
- export declare const indent: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (state: EditorState, dispatch?: CommandDispatch) => boolean;
5
- export declare const outdent: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (state: EditorState, dispatch?: CommandDispatch) => boolean;
6
- export declare function insertIndent(state: EditorState, dispatch: CommandDispatch): boolean;
7
- export declare function insertNewlineWithIndent(state: EditorState, dispatch?: CommandDispatch): boolean;
@@ -1,25 +0,0 @@
1
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
2
- export declare const isSelectionEntirelyInsideCodeBlock: (state: EditorState) => boolean;
3
- export declare const isCursorInsideCodeBlock: (state: EditorState) => boolean;
4
- export declare const getStartOfCurrentLine: (state: EditorState) => {
5
- text: string;
6
- pos: number;
7
- };
8
- export declare const getEndOfCurrentLine: (state: EditorState) => {
9
- text: string;
10
- pos: number;
11
- };
12
- export declare function getLinesFromSelection(state: EditorState): {
13
- text: string;
14
- start: number;
15
- end: number;
16
- };
17
- export declare const forEachLine: (text: string, callback: (line: string, offset: number) => void) => void;
18
- export declare const getLineInfo: (line: string) => {
19
- indentToken: {
20
- token: string;
21
- size: number;
22
- regex: RegExp;
23
- };
24
- indentText: string;
25
- };
@@ -1,2 +0,0 @@
1
- export declare const isCursorBeforeClosingCharacter: (after: string) => boolean;
2
- export declare const isClosingCharacter: (text: string) => boolean;
@@ -1,12 +0,0 @@
1
- export declare const QUOTE_MAP: {
2
- "'": string;
3
- '"': string;
4
- '`': string;
5
- };
6
- export type QuoteMapKey = keyof typeof QUOTE_MAP;
7
- export declare const shouldAutoCloseQuote: (before: string, after: string) => boolean;
8
- export declare const getAutoClosingQuoteInfo: (before: string, after: string) => {
9
- left: "'" | "\"" | "`" | undefined;
10
- right: string | undefined;
11
- hasTrailingMatchingQuote: boolean;
12
- };
@@ -1,5 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { CodeBlockPlugin } from '../index';
4
- declare const ideUX: (pluginInjectionApi: ExtractInjectionAPI<CodeBlockPlugin> | undefined) => SafePlugin;
5
- export default ideUX;
@@ -1,4 +0,0 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
4
- export declare function createCodeBlockInputRule(schema: Schema, editorAnalyticsAPI?: EditorAnalyticsAPI): SafePlugin;
@@ -1,4 +0,0 @@
1
- import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
3
- export declare function keymapPlugin(schema: Schema): SafePlugin | undefined;
4
- export default keymapPlugin;