@atlaskit/editor-plugin-indentation 16.0.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
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/editor-plugin-indentation
2
2
 
3
+ ## 17.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 16.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
14
+ Remove stale API report artifacts from published Platform packages.
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 16.0.0
4
21
 
5
22
  ### Patch Changes
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.indentationPlugin = void 0;
7
- var _adfSchema = require("@atlaskit/adf-schema");
8
- var _indentation = require("@atlaskit/editor-common/indentation");
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: _adfSchema.indentation
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) >= _indentation.MAX_INDENTATION_LEVEL) !== null && _ref2 !== void 0 ? _ref2 : false,
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": "16.0.0",
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.1.0",
23
- "@atlaskit/editor-plugin-analytics": "^16.0.0",
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": "^120.0.0",
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
  }
package/report.api.md DELETED
@@ -1,66 +0,0 @@
1
- <!-- API Report Version: 2.3 -->
2
-
3
- ## API Report File for "@atlaskit/editor-plugin-indentation"
4
-
5
- > Do not edit this file. This report is auto-generated using
6
- > [API Extractor](https://api-extractor.com/).
7
- > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
8
-
9
- ### Table of contents
10
-
11
- - [Main Entry Types](#main-entry-types)
12
- - [Peer Dependencies](#peer-dependencies)
13
-
14
- ### Main Entry Types
15
-
16
- <!--SECTION START: Main Entry Types-->
17
-
18
- ```ts
19
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
20
- import type { Command } from '@atlaskit/editor-common/types';
21
- import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
22
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
23
- import type { OptionalPlugin } from '@atlaskit/editor-common/types';
24
-
25
- // @public (undocumented)
26
- type IndentationInputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
27
-
28
- // @public (undocumented)
29
- export type IndentationPlugin = NextEditorPlugin<
30
- 'indentation',
31
- {
32
- dependencies: [OptionalPlugin<AnalyticsPlugin>];
33
- actions: {
34
- indentParagraphOrHeading: (inputMethod: IndentationInputMethod) => Command;
35
- outdentParagraphOrHeading: (inputMethod: IndentationInputMethod) => Command;
36
- };
37
- sharedState: IndentationPluginSharedState | undefined;
38
- }
39
- >;
40
-
41
- // @public (undocumented)
42
- export const indentationPlugin: IndentationPlugin;
43
-
44
- // @public (undocumented)
45
- type IndentationPluginSharedState = {
46
- isIndentationAllowed: boolean;
47
- indentDisabled: boolean;
48
- outdentDisabled: boolean;
49
- };
50
-
51
- // (No @packageDocumentation comment for this package)
52
- ```
53
-
54
- <!--SECTION END: Main Entry Types-->
55
-
56
- ### Peer Dependencies
57
-
58
- <!--SECTION START: Peer Dependencies-->
59
-
60
- ```json
61
- {
62
- "react": "^16.8.0"
63
- }
64
- ```
65
-
66
- <!--SECTION END: Peer Dependencies-->