@atlaskit/editor-plugin-rule 1.9.6 → 1.9.8
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 +14 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/{commands.js → pm-plugins/commands.js} +1 -1
- package/dist/cjs/pm-plugins/keymap.js +1 -1
- package/dist/cjs/{plugin.js → rulePlugin.js} +1 -1
- package/dist/cjs/rulePluginType.js +5 -0
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/{commands.js → pm-plugins/commands.js} +1 -1
- package/dist/es2019/pm-plugins/keymap.js +1 -1
- package/dist/es2019/{plugin.js → rulePlugin.js} +1 -1
- package/dist/es2019/rulePluginType.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/{commands.js → pm-plugins/commands.js} +1 -1
- package/dist/esm/pm-plugins/keymap.js +1 -1
- package/dist/esm/{plugin.js → rulePlugin.js} +1 -1
- package/dist/esm/rulePluginType.js +1 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/rulePlugin.d.ts +2 -0
- package/dist/types/{plugin.d.ts → rulePluginType.d.ts} +1 -2
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/rulePlugin.d.ts +2 -0
- package/dist/types-ts4.5/{plugin.d.ts → rulePluginType.d.ts} +1 -2
- package/package.json +6 -3
- /package/dist/types/{commands.d.ts → pm-plugins/commands.d.ts} +0 -0
- /package/dist/types-ts4.5/{commands.d.ts → pm-plugins/commands.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-rule
|
|
2
2
|
|
|
3
|
+
## 1.9.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#171440](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/171440)
|
|
8
|
+
[`835f7bbff3122`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/835f7bbff3122) -
|
|
9
|
+
ED-25816: refactors plugins to meet folder standards
|
|
10
|
+
|
|
11
|
+
## 1.9.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 1.9.6
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "rulePlugin", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _rulePlugin.rulePlugin;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
var
|
|
12
|
+
var _rulePlugin = require("./rulePlugin");
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.insertHorizontalRule = void 0;
|
|
7
|
-
var _inputRule = require("./
|
|
7
|
+
var _inputRule = require("./input-rule");
|
|
8
8
|
var insertHorizontalRule = exports.insertHorizontalRule = function insertHorizontalRule(editorAnalyticsAPI) {
|
|
9
9
|
return function (inputMethod) {
|
|
10
10
|
return function (state, dispatch) {
|
|
@@ -8,7 +8,7 @@ exports.keymapPlugin = keymapPlugin;
|
|
|
8
8
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
9
9
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
10
10
|
var _keymap = require("@atlaskit/editor-prosemirror/keymap");
|
|
11
|
-
var _commands = require("
|
|
11
|
+
var _commands = require("./commands");
|
|
12
12
|
function keymapPlugin(editorAnalyticsAPI) {
|
|
13
13
|
var list = {};
|
|
14
14
|
(0, _keymaps.bindKeymapWithCommand)(_keymaps.insertRule.common, (0, _commands.insertHorizontalRule)(editorAnalyticsAPI)(_analytics.INPUT_METHOD.SHORTCUT), list);
|
|
@@ -10,7 +10,7 @@ var _adfSchema = require("@atlaskit/adf-schema");
|
|
|
10
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
13
|
-
var _commands = require("./commands");
|
|
13
|
+
var _commands = require("./pm-plugins/commands");
|
|
14
14
|
var _inputRule = _interopRequireDefault(require("./pm-plugins/input-rule"));
|
|
15
15
|
var _keymap = _interopRequireDefault(require("./pm-plugins/keymap"));
|
|
16
16
|
var rulePlugin = exports.rulePlugin = function rulePlugin(_ref) {
|
package/dist/es2019/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { rulePlugin } from './
|
|
1
|
+
export { rulePlugin } from './rulePlugin';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createHorizontalRule } from './
|
|
1
|
+
import { createHorizontalRule } from './input-rule';
|
|
2
2
|
export const insertHorizontalRule = editorAnalyticsAPI => inputMethod => (state, dispatch) => {
|
|
3
3
|
const tr = createHorizontalRule(state, state.selection.from, state.selection.to, inputMethod, editorAnalyticsAPI);
|
|
4
4
|
if (tr) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { bindKeymapWithCommand, escape, insertRule } from '@atlaskit/editor-common/keymaps';
|
|
3
3
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
4
|
-
import { insertHorizontalRule } from '
|
|
4
|
+
import { insertHorizontalRule } from './commands';
|
|
5
5
|
export function keymapPlugin(editorAnalyticsAPI) {
|
|
6
6
|
const list = {};
|
|
7
7
|
bindKeymapWithCommand(insertRule.common, insertHorizontalRule(editorAnalyticsAPI)(INPUT_METHOD.SHORTCUT), list);
|
|
@@ -3,7 +3,7 @@ import { rule } from '@atlaskit/adf-schema';
|
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { IconDivider } from '@atlaskit/editor-common/quick-insert';
|
|
6
|
-
import { insertHorizontalRule } from './commands';
|
|
6
|
+
import { insertHorizontalRule } from './pm-plugins/commands';
|
|
7
7
|
import inputRulePlugin from './pm-plugins/input-rule';
|
|
8
8
|
import keymapPlugin from './pm-plugins/keymap';
|
|
9
9
|
export const rulePlugin = ({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { rulePlugin } from './
|
|
1
|
+
export { rulePlugin } from './rulePlugin';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createHorizontalRule } from './
|
|
1
|
+
import { createHorizontalRule } from './input-rule';
|
|
2
2
|
export var insertHorizontalRule = function insertHorizontalRule(editorAnalyticsAPI) {
|
|
3
3
|
return function (inputMethod) {
|
|
4
4
|
return function (state, dispatch) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { bindKeymapWithCommand, escape, insertRule } from '@atlaskit/editor-common/keymaps';
|
|
3
3
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
4
|
-
import { insertHorizontalRule } from '
|
|
4
|
+
import { insertHorizontalRule } from './commands';
|
|
5
5
|
export function keymapPlugin(editorAnalyticsAPI) {
|
|
6
6
|
var list = {};
|
|
7
7
|
bindKeymapWithCommand(insertRule.common, insertHorizontalRule(editorAnalyticsAPI)(INPUT_METHOD.SHORTCUT), list);
|
|
@@ -3,7 +3,7 @@ import { rule } from '@atlaskit/adf-schema';
|
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { IconDivider } from '@atlaskit/editor-common/quick-insert';
|
|
6
|
-
import { insertHorizontalRule } from './commands';
|
|
6
|
+
import { insertHorizontalRule } from './pm-plugins/commands';
|
|
7
7
|
import inputRulePlugin from './pm-plugins/input-rule';
|
|
8
8
|
import keymapPlugin from './pm-plugins/keymap';
|
|
9
9
|
export var rulePlugin = function rulePlugin(_ref) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { rulePlugin } from './
|
|
2
|
-
export type { RulePlugin } from './
|
|
1
|
+
export { rulePlugin } from './rulePlugin';
|
|
2
|
+
export type { RulePlugin } from './rulePluginType';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
-
import { insertHorizontalRule } from './commands';
|
|
3
|
+
import type { insertHorizontalRule } from './pm-plugins/commands';
|
|
4
4
|
export type RulePlugin = NextEditorPlugin<'rule', {
|
|
5
5
|
pluginConfiguration: undefined;
|
|
6
6
|
dependencies: [OptionalPlugin<AnalyticsPlugin>];
|
|
@@ -8,4 +8,3 @@ export type RulePlugin = NextEditorPlugin<'rule', {
|
|
|
8
8
|
insertHorizontalRule: ReturnType<typeof insertHorizontalRule>;
|
|
9
9
|
};
|
|
10
10
|
}>;
|
|
11
|
-
export declare const rulePlugin: RulePlugin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { rulePlugin } from './
|
|
2
|
-
export type { RulePlugin } from './
|
|
1
|
+
export { rulePlugin } from './rulePlugin';
|
|
2
|
+
export type { RulePlugin } from './rulePluginType';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
-
import { insertHorizontalRule } from './commands';
|
|
3
|
+
import type { insertHorizontalRule } from './pm-plugins/commands';
|
|
4
4
|
export type RulePlugin = NextEditorPlugin<'rule', {
|
|
5
5
|
pluginConfiguration: undefined;
|
|
6
6
|
dependencies: [
|
|
@@ -10,4 +10,3 @@ export type RulePlugin = NextEditorPlugin<'rule', {
|
|
|
10
10
|
insertHorizontalRule: ReturnType<typeof insertHorizontalRule>;
|
|
11
11
|
};
|
|
12
12
|
}>;
|
|
13
|
-
export declare const rulePlugin: RulePlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-rule",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.8",
|
|
4
4
|
"description": "Rule plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
35
|
+
"@atlaskit/editor-common": "^96.3.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
37
|
-
"@atlaskit/editor-prosemirror": "6.
|
|
37
|
+
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
38
38
|
"@atlaskit/prosemirror-input-rules": "^3.2.0",
|
|
39
39
|
"@babel/runtime": "^7.0.0"
|
|
40
40
|
},
|
|
@@ -48,6 +48,9 @@
|
|
|
48
48
|
},
|
|
49
49
|
"techstack": {
|
|
50
50
|
"@atlassian/frontend": {
|
|
51
|
+
"code-structure": [
|
|
52
|
+
"editor-plugin"
|
|
53
|
+
],
|
|
51
54
|
"import-structure": [
|
|
52
55
|
"atlassian-conventions"
|
|
53
56
|
],
|
|
File without changes
|
|
File without changes
|