@atlaskit/editor-plugin-limited-mode 8.0.14 → 9.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-limited-mode
2
2
 
3
+ ## 9.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
+ ## 8.0.15
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies
34
+
3
35
  ## 8.0.14
4
36
 
5
37
  ### Patch Changes
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/limited-mode-plugin.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/limited-mode-plugin.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/limited-mode-plugin.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/limited-mode-plugin.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/limited-mode-plugin.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/limited-mode-plugin-type.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/limited-mode-plugin-type.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/limited-mode-plugin-type.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/limited-mode-plugin-type.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/limited-mode-plugin-type.d.ts"
15
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-limited-mode",
3
- "version": "8.0.14",
3
+ "version": "9.0.0",
4
4
  "description": "LimitedMode plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -17,25 +17,17 @@
17
17
  "module": "dist/esm/index.js",
18
18
  "module:es2019": "dist/es2019/index.js",
19
19
  "types": "dist/types/index.d.ts",
20
- "typesVersions": {
21
- ">=4.5 <4.9": {
22
- "*": [
23
- "dist/types-ts4.5/*",
24
- "dist/types-ts4.5/index.d.ts"
25
- ]
26
- }
27
- },
28
20
  "sideEffects": false,
29
21
  "atlaskit:src": "src/index.ts",
30
22
  "dependencies": {
31
- "@atlaskit/editor-prosemirror": "^7.3.0",
32
- "@atlaskit/platform-feature-flags": "^1.1.0",
33
- "@atlaskit/tmp-editor-statsig": "^102.0.0",
23
+ "@atlaskit/editor-prosemirror": "^8.0.0",
24
+ "@atlaskit/platform-feature-flags": "^2.0.0",
25
+ "@atlaskit/tmp-editor-statsig": "^104.0.0",
34
26
  "@babel/runtime": "^7.0.0",
35
27
  "bind-event-listener": "^3.0.0"
36
28
  },
37
29
  "peerDependencies": {
38
- "@atlaskit/editor-common": "^115.15.0",
30
+ "@atlaskit/editor-common": "^116.0.0",
39
31
  "react": "^18.2.0",
40
32
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
41
33
  },
@@ -1 +0,0 @@
1
- export type { LimitedModePlugin, LimitedModePluginState, LimitedModePluginOptions, } from '../limitedModePluginType';
@@ -1 +0,0 @@
1
- export { limitedModePlugin } from '../limitedModePlugin';
@@ -1,2 +0,0 @@
1
- export { limitedModePlugin } from './limitedModePlugin';
2
- export type { LimitedModePlugin, LimitedModePluginState, LimitedModePluginOptions, } from './limitedModePluginType';
@@ -1,2 +0,0 @@
1
- import type { LimitedModePlugin } from './limitedModePluginType';
2
- export declare const limitedModePlugin: LimitedModePlugin;
@@ -1,22 +0,0 @@
1
- import type React from 'react';
2
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
3
- import type { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
- export type LimitedModePluginState = {
5
- documentSizeBreachesThreshold: boolean;
6
- };
7
- export type LimitedModePlugin = NextEditorPlugin<'limitedMode', {
8
- pluginConfiguration: LimitedModePluginOptions | undefined;
9
- sharedState: {
10
- enabled: boolean;
11
- limitedModePluginKey: PluginKey<LimitedModePluginState>;
12
- };
13
- }>;
14
- export type LimitedModePluginOptions = {
15
- contentId?: string;
16
- killSwitchEnabled?: boolean;
17
- showFlag?: (props: {
18
- close: string;
19
- description: React.ReactNode;
20
- title: string;
21
- }) => void;
22
- };
@@ -1,5 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- import type { LimitedModePluginState } from '../limitedModePluginType';
4
- export declare const limitedModePluginKey: PluginKey;
5
- export declare const createPlugin: () => SafePlugin<LimitedModePluginState>;