@atlaskit/editor-plugin-code-bidi-warning 3.0.3 → 4.0.0

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-plugin-code-bidi-warning
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [`265c1bf0cefa4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/265c1bf0cefa4) -
14
+ Sorted type and interface props to improve Atlaskit docs
15
+
3
16
  ## 3.0.3
4
17
 
5
18
  ### Patch Changes
@@ -2,13 +2,13 @@ import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
2
2
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
4
  export declare const pluginFactoryCreator: (nodeViewPortalProviderAPI: PortalProviderAPI) => {
5
- createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("./types").CodeBidiWarningPluginState | ((state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState)) => import("prosemirror-state").SafeStateField<import("./types").CodeBidiWarningPluginState>;
6
5
  createCommand: <A = unknown>(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) => import("@atlaskit/editor-common/types").Command;
6
+ createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("./types").CodeBidiWarningPluginState | ((state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState)) => import("prosemirror-state").SafeStateField<import("./types").CodeBidiWarningPluginState>;
7
7
  getPluginState: (state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState;
8
8
  };
9
9
  export declare function createBidiWarningsDecorationSetFromDoc({ doc, codeBidiWarningLabel, tooltipEnabled, nodeViewPortalProviderAPI, }: {
10
- doc: PmNode;
11
10
  codeBidiWarningLabel: string;
12
- tooltipEnabled: boolean;
11
+ doc: PmNode;
13
12
  nodeViewPortalProviderAPI: PortalProviderAPI;
13
+ tooltipEnabled: boolean;
14
14
  }): DecorationSet;
@@ -1,6 +1,6 @@
1
1
  import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
2
2
  export type CodeBidiWarningPluginState = {
3
- decorationSet: DecorationSet;
4
3
  codeBidiWarningLabel: string;
4
+ decorationSet: DecorationSet;
5
5
  tooltipEnabled: boolean;
6
6
  };
@@ -1,12 +1,12 @@
1
1
  import { type Node as PmNode } from '@atlaskit/editor-prosemirror/model';
2
2
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
3
3
  export declare const pluginFactoryCreator: () => {
4
- createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("./types").CodeBidiWarningPluginState | ((state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState)) => import("prosemirror-state").SafeStateField<import("./types").CodeBidiWarningPluginState>;
5
4
  createCommand: <A = unknown>(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) => import("@atlaskit/editor-common/types").Command;
5
+ createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("./types").CodeBidiWarningPluginState | ((state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState)) => import("prosemirror-state").SafeStateField<import("./types").CodeBidiWarningPluginState>;
6
6
  getPluginState: (state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState;
7
7
  };
8
8
  export declare function createBidiWarningsDecorationSetFromDoc({ doc, codeBidiWarningLabel, tooltipEnabled, }: {
9
- doc: PmNode;
10
9
  codeBidiWarningLabel: string;
10
+ doc: PmNode;
11
11
  tooltipEnabled: boolean;
12
12
  }): DecorationSet;
@@ -2,13 +2,13 @@ import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
2
2
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
4
  export declare const pluginFactoryCreator: (nodeViewPortalProviderAPI: PortalProviderAPI) => {
5
- createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("./types").CodeBidiWarningPluginState | ((state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState)) => import("prosemirror-state").SafeStateField<import("./types").CodeBidiWarningPluginState>;
6
5
  createCommand: <A = unknown>(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) => import("@atlaskit/editor-common/types").Command;
6
+ createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("./types").CodeBidiWarningPluginState | ((state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState)) => import("prosemirror-state").SafeStateField<import("./types").CodeBidiWarningPluginState>;
7
7
  getPluginState: (state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState;
8
8
  };
9
9
  export declare function createBidiWarningsDecorationSetFromDoc({ doc, codeBidiWarningLabel, tooltipEnabled, nodeViewPortalProviderAPI, }: {
10
- doc: PmNode;
11
10
  codeBidiWarningLabel: string;
12
- tooltipEnabled: boolean;
11
+ doc: PmNode;
13
12
  nodeViewPortalProviderAPI: PortalProviderAPI;
13
+ tooltipEnabled: boolean;
14
14
  }): DecorationSet;
@@ -1,6 +1,6 @@
1
1
  import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
2
2
  export type CodeBidiWarningPluginState = {
3
- decorationSet: DecorationSet;
4
3
  codeBidiWarningLabel: string;
4
+ decorationSet: DecorationSet;
5
5
  tooltipEnabled: boolean;
6
6
  };
@@ -1,12 +1,12 @@
1
1
  import { type Node as PmNode } from '@atlaskit/editor-prosemirror/model';
2
2
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
3
3
  export declare const pluginFactoryCreator: () => {
4
- createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("./types").CodeBidiWarningPluginState | ((state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState)) => import("prosemirror-state").SafeStateField<import("./types").CodeBidiWarningPluginState>;
5
4
  createCommand: <A = unknown>(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) => import("@atlaskit/editor-common/types").Command;
5
+ createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("./types").CodeBidiWarningPluginState | ((state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState)) => import("prosemirror-state").SafeStateField<import("./types").CodeBidiWarningPluginState>;
6
6
  getPluginState: (state: import("prosemirror-state").EditorState) => import("./types").CodeBidiWarningPluginState;
7
7
  };
8
8
  export declare function createBidiWarningsDecorationSetFromDoc({ doc, codeBidiWarningLabel, tooltipEnabled, }: {
9
- doc: PmNode;
10
9
  codeBidiWarningLabel: string;
10
+ doc: PmNode;
11
11
  tooltipEnabled: boolean;
12
12
  }): DecorationSet;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-bidi-warning",
3
- "version": "3.0.3",
3
+ "version": "4.0.0",
4
4
  "description": "Code bidi warning plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -26,19 +26,16 @@
26
26
  },
27
27
  "sideEffects": false,
28
28
  "atlaskit:src": "src/index.ts",
29
- "af:exports": {
30
- ".": "./src/index.ts"
31
- },
32
29
  "dependencies": {
33
30
  "@atlaskit/code": "^17.2.0",
34
- "@atlaskit/editor-plugin-limited-mode": "^0.0.3",
31
+ "@atlaskit/editor-plugin-limited-mode": "^1.0.0",
35
32
  "@atlaskit/editor-prosemirror": "7.0.0",
36
33
  "@atlaskit/platform-feature-flags": "^1.1.0",
37
34
  "@babel/runtime": "^7.0.0",
38
35
  "uuid": "^3.1.0"
39
36
  },
40
37
  "peerDependencies": {
41
- "@atlaskit/editor-common": "^107.25.0",
38
+ "@atlaskit/editor-common": "^108.0.0",
42
39
  "react": "^18.2.0",
43
40
  "react-dom": "^18.2.0"
44
41
  },
@@ -46,7 +43,6 @@
46
43
  "@af/integration-testing": "workspace:^",
47
44
  "@af/visual-regression": "workspace:^",
48
45
  "@atlaskit/ssr": "workspace:^",
49
- "@atlaskit/visual-regression": "workspace:^",
50
46
  "@testing-library/react": "^13.4.0",
51
47
  "wait-for-expect": "^1.2.0"
52
48
  },