@atlaskit/editor-plugin-rule 11.0.2 → 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,31 @@
1
1
  # @atlaskit/editor-plugin-rule
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
+
3
29
  ## 11.0.2
4
30
 
5
31
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-rule",
3
- "version": "11.0.2",
3
+ "version": "12.0.0",
4
4
  "description": "Rule plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -16,26 +16,18 @@
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/adf-schema": "^54.0.0",
31
- "@atlaskit/editor-plugin-analytics": "^11.0.0",
32
- "@atlaskit/editor-prosemirror": "^7.3.0",
33
- "@atlaskit/platform-feature-flags": "^1.1.0",
34
- "@atlaskit/prosemirror-input-rules": "^3.7.0",
22
+ "@atlaskit/adf-schema": "^55.0.0",
23
+ "@atlaskit/editor-plugin-analytics": "^12.0.0",
24
+ "@atlaskit/editor-prosemirror": "^8.0.0",
25
+ "@atlaskit/platform-feature-flags": "^2.0.0",
26
+ "@atlaskit/prosemirror-input-rules": "^4.0.0",
35
27
  "@babel/runtime": "^7.0.0"
36
28
  },
37
29
  "peerDependencies": {
38
- "@atlaskit/editor-common": "^115.13.0",
30
+ "@atlaskit/editor-common": "^116.0.0",
39
31
  "react": "^18.2.0",
40
32
  "react-dom": "^18.2.0"
41
33
  },
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/rule-plugin.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/rule-plugin.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/rule-plugin.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/rule-plugin.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/rule-plugin.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/rule-plugin-type.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/rule-plugin-type.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/rule-plugin-type.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/rule-plugin-type.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/rule-plugin-type.d.ts"
15
8
  }
@@ -1 +0,0 @@
1
- export type { RulePlugin } from '../rulePluginType';
@@ -1 +0,0 @@
1
- export { rulePlugin } from '../rulePlugin';
@@ -1,2 +0,0 @@
1
- export { rulePlugin } from './rulePlugin';
2
- export type { RulePlugin } from './rulePluginType';
@@ -1,3 +0,0 @@
1
- import type { EditorAnalyticsAPI, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- import type { Command } from '@atlaskit/editor-common/types';
3
- export declare const insertHorizontalRule: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT) => Command;
@@ -1,8 +0,0 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
5
- import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
6
- export declare const createHorizontalRule: (state: EditorState, start: number, end: number, inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Transaction | null;
7
- export declare function inputRulePlugin(schema: Schema, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin | undefined;
8
- export default inputRulePlugin;
@@ -1,4 +0,0 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- export declare function keymapPlugin(editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;
4
- export default keymapPlugin;
@@ -1,2 +0,0 @@
1
- import type { RulePlugin } from './rulePluginType';
2
- export declare const rulePlugin: RulePlugin;
@@ -1,14 +0,0 @@
1
- import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
- import type { insertHorizontalRule } from './pm-plugins/commands';
4
- type RulePluginDependencies = [
5
- OptionalPlugin<AnalyticsPlugin>
6
- ];
7
- export type RulePlugin = NextEditorPlugin<'rule', {
8
- actions: {
9
- insertHorizontalRule: ReturnType<typeof insertHorizontalRule>;
10
- };
11
- dependencies: RulePluginDependencies;
12
- pluginConfiguration: undefined;
13
- }>;
14
- export {};