@atlaskit/editor-plugin-interaction 15.0.0 → 16.0.1

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,18 @@
1
1
  # @atlaskit/editor-plugin-interaction
2
2
 
3
+ ## 16.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`14803a836f641`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/14803a836f641) -
8
+ Update README.md and 0-intro.tsx
9
+
10
+ ## 16.0.0
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 15.0.0
4
17
 
5
18
  ### Patch Changes
package/README.md CHANGED
@@ -5,6 +5,17 @@ Interaction plugin for @atlaskit/editor-core
5
5
  **Note:** This component is designed for internal Atlassian development.
6
6
  External contributors will be able to use this component but will not be able to submit issues.
7
7
 
8
+ ## Overview
9
+
10
+ The Interaction plugin tracks user interactions with the Atlassian Editor. It monitors mouse clicks, keyboard input, drag-and-drop operations, and focus events to detect whether a user has interacted with the editor, providing state management for interaction detection across editor operations.
11
+
12
+ ## Key features
13
+
14
+ - **Interaction tracking** - Detect and track user interactions including clicks, keyboard input, drag-and-drop, and focus events
15
+ - **Interaction state management** - Maintain state indicating whether the editor has received any user interaction
16
+ - **Event handling** - Handle multiple DOM event types through integrated ProseMirror plugins
17
+ - **Command support** - Expose `handleInteraction` command for programmatic interaction state updates
18
+
8
19
  ## Install
9
20
  ---
10
21
  - **Install** - *yarn add @atlaskit/editor-plugin-interaction*
@@ -0,0 +1,58 @@
1
+ import React from 'react';
2
+
3
+ import { AtlassianInternalWarning, code, md } from '@atlaskit/docs';
4
+ // eslint-disable-next-line @atlassian/tangerine/import/entry-points
5
+ import { createEditorUseOnlyNotice } from '@atlaskit/editor-common/doc-utils';
6
+ import { token } from '@atlaskit/tokens';
7
+
8
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- md template from @atlaskit/docs
9
+ const _default_1: any = md`
10
+
11
+ ${createEditorUseOnlyNotice('Editor Plugin Interaction', [
12
+ { name: 'Editor Core', link: '/packages/editor/editor-core' },
13
+ ])},
14
+
15
+
16
+ ${
17
+ (
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
19
+ <div style={{ marginTop: token('space.100', '8px') }}>
20
+ <AtlassianInternalWarning />
21
+ </div>
22
+ )
23
+ }
24
+
25
+ This package includes the interaction plugin used by \`@atlaskit/editor-core\`.
26
+
27
+ ## Usage
28
+ ---
29
+
30
+ The \`commands\` and \`state\` of the plugin are defined below:
31
+
32
+ ${code`
33
+ type InteractionCommands = {
34
+ handleInteraction: EditorCommand;
35
+ };
36
+
37
+ export type SharedInteractionState = {
38
+ interactionState: null | 'hasNotHadInteraction';
39
+ };
40
+
41
+ export type InteractionPlugin = NextEditorPlugin<
42
+ 'interaction',
43
+ {
44
+ commands: InteractionCommands;
45
+ sharedState: SharedInteractionState;
46
+ }
47
+ >;
48
+ `}
49
+
50
+
51
+ ## Support
52
+ ---
53
+ For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug.
54
+ ## License
55
+ ---
56
+ Please see [Atlassian Frontend - License](https://hello.atlassian.net/wiki/spaces/AF/pages/2589099144/Documentation#License) for more licensing information.
57
+ `;
58
+ export default _default_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-interaction",
3
- "version": "15.0.0",
3
+ "version": "16.0.1",
4
4
  "description": "Interaction plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,8 +23,8 @@
23
23
  "@babel/runtime": "^7.0.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "@atlaskit/editor-common": "^112.0.0",
27
- "@atlaskit/tokens": "^11.1.0",
26
+ "@atlaskit/editor-common": "^112.18.0",
27
+ "@atlaskit/tokens": "^12.0.0",
28
28
  "react": "^18.2.0",
29
29
  "react-dom": "^18.2.0"
30
30
  },