@atlaskit/editor-plugin-indentation 16.1.0 → 17.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
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.indentationPlugin = void 0;
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var _indentation = require("@atlaskit/adf-schema/indentation");
|
|
8
|
+
var _indentation2 = require("@atlaskit/editor-common/indentation");
|
|
9
9
|
var _editorCommands = require("./editor-commands");
|
|
10
10
|
var _keymap = require("./pm-plugins/keymap");
|
|
11
11
|
var indentationPlugin = exports.indentationPlugin = function indentationPlugin(_ref) {
|
|
@@ -16,7 +16,7 @@ var indentationPlugin = exports.indentationPlugin = function indentationPlugin(_
|
|
|
16
16
|
marks: function marks() {
|
|
17
17
|
return [{
|
|
18
18
|
name: 'indentation',
|
|
19
|
-
mark:
|
|
19
|
+
mark: _indentation.indentation
|
|
20
20
|
}];
|
|
21
21
|
},
|
|
22
22
|
actions: {
|
|
@@ -37,7 +37,7 @@ var indentationPlugin = exports.indentationPlugin = function indentationPlugin(_
|
|
|
37
37
|
return {
|
|
38
38
|
isIndentationAllowed: (0, _editorCommands.isIndentationAllowed)(editorState.schema, node),
|
|
39
39
|
// @ts-ignore - TS2869 TypeScript 5.9.2 upgrade
|
|
40
|
-
indentDisabled: (_ref2 = (indentationMark === null || indentationMark === void 0 ? void 0 : indentationMark.attrs.level) >=
|
|
40
|
+
indentDisabled: (_ref2 = (indentationMark === null || indentationMark === void 0 ? void 0 : indentationMark.attrs.level) >= _indentation2.MAX_INDENTATION_LEVEL) !== null && _ref2 !== void 0 ? _ref2 : false,
|
|
41
41
|
outdentDisabled: !indentationMark
|
|
42
42
|
};
|
|
43
43
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { indentation } from '@atlaskit/adf-schema';
|
|
1
|
+
import { indentation } from '@atlaskit/adf-schema/indentation';
|
|
2
2
|
import { MAX_INDENTATION_LEVEL } from '@atlaskit/editor-common/indentation';
|
|
3
3
|
import { getIndentCommand, getOutdentCommand, isIndentationAllowed } from './editor-commands';
|
|
4
4
|
import { keymapPlugin } from './pm-plugins/keymap';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { indentation } from '@atlaskit/adf-schema';
|
|
1
|
+
import { indentation } from '@atlaskit/adf-schema/indentation';
|
|
2
2
|
import { MAX_INDENTATION_LEVEL } from '@atlaskit/editor-common/indentation';
|
|
3
3
|
import { getIndentCommand, getOutdentCommand, isIndentationAllowed } from './editor-commands';
|
|
4
4
|
import { keymapPlugin } from './pm-plugins/keymap';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IndentationMarkAttributes } from '@atlaskit/adf-schema';
|
|
1
|
+
import type { IndentationMarkAttributes } from '@atlaskit/adf-schema/indentation';
|
|
2
2
|
import type { EditorAnalyticsAPI, INDENT_DIRECTION, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { GetAttrsChange } from '../indentationPluginType';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-indentation",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"description": "Indentation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"atlaskit:src": "src/index.ts",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@atlaskit/adf-schema": "^57.
|
|
23
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
22
|
+
"@atlaskit/adf-schema": "^57.4.0",
|
|
23
|
+
"@atlaskit/editor-plugin-analytics": "^17.0.0",
|
|
24
24
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
25
25
|
"@babel/runtime": "^7.0.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@atlaskit/editor-common": "^
|
|
28
|
+
"@atlaskit/editor-common": "^121.0.0",
|
|
29
29
|
"react": "^18.2.0 || ^19.2.0",
|
|
30
30
|
"react-dom": "^18.2.0 || ^19.2.0"
|
|
31
31
|
},
|
|
@@ -34,40 +34,5 @@
|
|
|
34
34
|
"react": "^19.2.0",
|
|
35
35
|
"react-dom": "^19.2.0",
|
|
36
36
|
"wait-for-expect": "^1.2.0"
|
|
37
|
-
},
|
|
38
|
-
"techstack": {
|
|
39
|
-
"@atlassian/frontend": {
|
|
40
|
-
"import-structure": [
|
|
41
|
-
"atlassian-conventions"
|
|
42
|
-
],
|
|
43
|
-
"circular-dependencies": [
|
|
44
|
-
"file-and-folder-level"
|
|
45
|
-
],
|
|
46
|
-
"code-structure": [
|
|
47
|
-
"editor-plugin"
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
"@repo/internal": {
|
|
51
|
-
"dom-events": "use-bind-event-listener",
|
|
52
|
-
"analytics": [
|
|
53
|
-
"analytics-next"
|
|
54
|
-
],
|
|
55
|
-
"design-tokens": [
|
|
56
|
-
"color"
|
|
57
|
-
],
|
|
58
|
-
"theming": [
|
|
59
|
-
"react-context"
|
|
60
|
-
],
|
|
61
|
-
"ui-components": [
|
|
62
|
-
"lite-mode"
|
|
63
|
-
],
|
|
64
|
-
"deprecation": "no-deprecated-imports",
|
|
65
|
-
"styling": [
|
|
66
|
-
"compiled"
|
|
67
|
-
],
|
|
68
|
-
"imports": [
|
|
69
|
-
"import-no-extraneous-disable-for-examples-and-docs"
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
37
|
}
|
|
73
38
|
}
|