@atlaskit/editor-plugin-code-bidi-warning 8.0.0 → 8.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/pm-plugins/main.d.ts +2 -1
- package/dist/types/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/pm-plugins/react-plugin-factory.d.ts +7 -3
- package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/react-plugin-factory.d.ts +7 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import type { EditorAppearance, ExtractInjectionAPI, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { CodeBidiWarningPlugin } from '../codeBidiWarningPluginType';
|
|
4
|
+
import type { CodeBidiWarningPluginState } from './types';
|
|
4
5
|
export declare const createPlugin: (api: ExtractInjectionAPI<CodeBidiWarningPlugin> | undefined, { dispatch, getIntl, nodeViewPortalProviderAPI }: PMPluginFactoryParams, { appearance }: {
|
|
5
6
|
appearance?: EditorAppearance;
|
|
6
|
-
}) => SafePlugin<
|
|
7
|
+
}) => SafePlugin<CodeBidiWarningPluginState>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
export declare const codeBidiWarningPluginKey: PluginKey
|
|
2
|
+
export declare const codeBidiWarningPluginKey: PluginKey;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
1
2
|
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
3
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
4
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import type { EditorState, Transaction, SafeStateField } from '@atlaskit/editor-prosemirror/state';
|
|
3
6
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
+
import type { CodeBidiWarningPluginState } from './types';
|
|
4
8
|
export declare const pluginFactoryCreator: (nodeViewPortalProviderAPI: PortalProviderAPI) => {
|
|
5
|
-
createCommand: <A = unknown>(action: A | ((state: Readonly<
|
|
6
|
-
createPluginState: (dispatch:
|
|
7
|
-
getPluginState: (state:
|
|
9
|
+
createCommand: <A = unknown>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
|
|
10
|
+
createPluginState: (dispatch: Dispatch, initialState: CodeBidiWarningPluginState | ((state: EditorState) => CodeBidiWarningPluginState)) => SafeStateField<CodeBidiWarningPluginState>;
|
|
11
|
+
getPluginState: (state: EditorState) => CodeBidiWarningPluginState;
|
|
8
12
|
};
|
|
9
13
|
export declare function createBidiWarningsDecorationSetFromDoc({ doc, codeBidiWarningLabel, tooltipEnabled, nodeViewPortalProviderAPI, }: {
|
|
10
14
|
codeBidiWarningLabel: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import type { EditorAppearance, ExtractInjectionAPI, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { CodeBidiWarningPlugin } from '../codeBidiWarningPluginType';
|
|
4
|
+
import type { CodeBidiWarningPluginState } from './types';
|
|
4
5
|
export declare const createPlugin: (api: ExtractInjectionAPI<CodeBidiWarningPlugin> | undefined, { dispatch, getIntl, nodeViewPortalProviderAPI }: PMPluginFactoryParams, { appearance }: {
|
|
5
6
|
appearance?: EditorAppearance;
|
|
6
|
-
}) => SafePlugin<
|
|
7
|
+
}) => SafePlugin<CodeBidiWarningPluginState>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
export declare const codeBidiWarningPluginKey: PluginKey
|
|
2
|
+
export declare const codeBidiWarningPluginKey: PluginKey;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
1
2
|
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
3
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
4
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import type { EditorState, Transaction, SafeStateField } from '@atlaskit/editor-prosemirror/state';
|
|
3
6
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
+
import type { CodeBidiWarningPluginState } from './types';
|
|
4
8
|
export declare const pluginFactoryCreator: (nodeViewPortalProviderAPI: PortalProviderAPI) => {
|
|
5
|
-
createCommand: <A = unknown>(action: A | ((state: Readonly<
|
|
6
|
-
createPluginState: (dispatch:
|
|
7
|
-
getPluginState: (state:
|
|
9
|
+
createCommand: <A = unknown>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
|
|
10
|
+
createPluginState: (dispatch: Dispatch, initialState: CodeBidiWarningPluginState | ((state: EditorState) => CodeBidiWarningPluginState)) => SafeStateField<CodeBidiWarningPluginState>;
|
|
11
|
+
getPluginState: (state: EditorState) => CodeBidiWarningPluginState;
|
|
8
12
|
};
|
|
9
13
|
export declare function createBidiWarningsDecorationSetFromDoc({ doc, codeBidiWarningLabel, tooltipEnabled, nodeViewPortalProviderAPI, }: {
|
|
10
14
|
codeBidiWarningLabel: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-bidi-warning",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Code bidi warning plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/editor-plugin-limited-mode": "^5.0.0",
|
|
32
32
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
33
33
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
34
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
34
|
+
"@atlaskit/tmp-editor-statsig": "^36.0.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
36
|
"uuid": "^3.1.0"
|
|
37
37
|
},
|