@atlaskit/editor-plugin-code-bidi-warning 11.0.14 → 12.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,37 @@
1
1
  # @atlaskit/editor-plugin-code-bidi-warning
2
2
 
3
+ ## 12.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
8
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
9
+
10
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
11
+
12
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
13
+
14
+ ```diff
15
+ - "typesVersions": {
16
+ - ">=4.5 <4.9": {
17
+ - "*": [
18
+ - "dist/types-ts4.5/*",
19
+ - "dist/types-ts4.5/index.d.ts"
20
+ - ]
21
+ - }
22
+ - },
23
+ ```
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
29
+ ## 11.0.15
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies
34
+
3
35
  ## 11.0.14
4
36
 
5
37
  ### Patch Changes
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/codeBidiWarningPlugin.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/codeBidiWarningPlugin.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/codeBidiWarningPlugin.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/codeBidiWarningPlugin.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/codeBidiWarningPlugin.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/codeBidiWarningPluginType.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/codeBidiWarningPluginType.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/codeBidiWarningPluginType.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/codeBidiWarningPluginType.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/codeBidiWarningPluginType.d.ts"
15
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-bidi-warning",
3
- "version": "11.0.14",
3
+ "version": "12.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",
@@ -16,27 +16,19 @@
16
16
  "module": "dist/esm/index.js",
17
17
  "module:es2019": "dist/es2019/index.js",
18
18
  "types": "dist/types/index.d.ts",
19
- "typesVersions": {
20
- ">=4.5 <4.9": {
21
- "*": [
22
- "dist/types-ts4.5/*",
23
- "dist/types-ts4.5/index.d.ts"
24
- ]
25
- }
26
- },
27
19
  "sideEffects": false,
28
20
  "atlaskit:src": "src/index.ts",
29
21
  "dependencies": {
30
- "@atlaskit/code": "^17.5.0",
31
- "@atlaskit/editor-plugin-limited-mode": "^8.0.0",
32
- "@atlaskit/editor-prosemirror": "^7.3.0",
33
- "@atlaskit/platform-feature-flags": "^1.1.0",
34
- "@atlaskit/tmp-editor-statsig": "^102.0.0",
22
+ "@atlaskit/code": "^18.0.0",
23
+ "@atlaskit/editor-plugin-limited-mode": "^9.0.0",
24
+ "@atlaskit/editor-prosemirror": "^8.0.0",
25
+ "@atlaskit/platform-feature-flags": "^2.0.0",
26
+ "@atlaskit/tmp-editor-statsig": "^104.0.0",
35
27
  "@babel/runtime": "^7.0.0",
36
28
  "uuid": "^3.1.0"
37
29
  },
38
30
  "peerDependencies": {
39
- "@atlaskit/editor-common": "^115.15.0",
31
+ "@atlaskit/editor-common": "^116.0.0",
40
32
  "react": "^18.2.0",
41
33
  "react-dom": "^18.2.0"
42
34
  },
@@ -1,2 +0,0 @@
1
- import type { CodeBidiWarningPlugin } from './codeBidiWarningPluginType';
2
- export declare const codeBidiWarningPlugin: CodeBidiWarningPlugin;
@@ -1,11 +0,0 @@
1
- import type { EditorAppearance, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
- import type { LimitedModePlugin } from '@atlaskit/editor-plugin-limited-mode';
3
- export type CodeBidiWarningPluginOptions = {
4
- appearance?: EditorAppearance;
5
- };
6
- export type CodeBidiWarningPlugin = NextEditorPlugin<'codeBidiWarning', {
7
- dependencies: [
8
- OptionalPlugin<LimitedModePlugin>
9
- ];
10
- pluginConfiguration: CodeBidiWarningPluginOptions | undefined;
11
- }>;
@@ -1 +0,0 @@
1
- export { codeBidiWarningPlugin } from '../codeBidiWarningPlugin';
@@ -1 +0,0 @@
1
- export type { CodeBidiWarningPlugin, CodeBidiWarningPluginOptions, } from '../codeBidiWarningPluginType';
@@ -1,2 +0,0 @@
1
- export { codeBidiWarningPlugin } from './codeBidiWarningPlugin';
2
- export type { CodeBidiWarningPlugin, CodeBidiWarningPluginOptions, } from './codeBidiWarningPluginType';
@@ -1,7 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { EditorAppearance, ExtractInjectionAPI, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
3
- import type { CodeBidiWarningPlugin } from '../codeBidiWarningPluginType';
4
- import type { CodeBidiWarningPluginState } from './types';
5
- export declare const createPlugin: (api: ExtractInjectionAPI<CodeBidiWarningPlugin> | undefined, { dispatch, getIntl, nodeViewPortalProviderAPI }: PMPluginFactoryParams, { appearance }: {
6
- appearance?: EditorAppearance;
7
- }) => SafePlugin<CodeBidiWarningPluginState>;
@@ -1,2 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- export declare const codeBidiWarningPluginKey: PluginKey;
@@ -1,18 +0,0 @@
1
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
2
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
- import type { Command } from '@atlaskit/editor-common/types';
4
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
5
- import type { EditorState, Transaction, SafeStateField } from '@atlaskit/editor-prosemirror/state';
6
- import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
7
- import type { CodeBidiWarningPluginState } from './types';
8
- export declare const pluginFactoryCreator: (nodeViewPortalProviderAPI: PortalProviderAPI) => {
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;
12
- };
13
- export declare function createBidiWarningsDecorationSetFromDoc({ doc, codeBidiWarningLabel, tooltipEnabled, nodeViewPortalProviderAPI, }: {
14
- codeBidiWarningLabel: string;
15
- doc: PmNode;
16
- nodeViewPortalProviderAPI: PortalProviderAPI;
17
- tooltipEnabled: boolean;
18
- }): DecorationSet;
@@ -1,3 +0,0 @@
1
- import type { CodeBidiWarningPluginState } from './types';
2
- declare const _default: (pluginState: CodeBidiWarningPluginState, action: unknown) => CodeBidiWarningPluginState;
3
- export default _default;
@@ -1,6 +0,0 @@
1
- import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
2
- export type CodeBidiWarningPluginState = {
3
- codeBidiWarningLabel: string;
4
- decorationSet: DecorationSet;
5
- tooltipEnabled: boolean;
6
- };