@atlaskit/editor-plugin-interaction 1.0.3 → 1.1.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,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-interaction
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#156585](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/156585)
|
|
8
|
+
[`a63da8fac528b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a63da8fac528b) -
|
|
9
|
+
[ux] [ED-27962] Code block will now trigger interaction state
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 1.0.4
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 1.0.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -20,6 +20,14 @@ var interactionPlugin = exports.interactionPlugin = function interactionPlugin(_
|
|
|
20
20
|
hasHadInteraction: Boolean((_key$getState = _main.key.getState(editorState)) === null || _key$getState === void 0 ? void 0 : _key$getState.hasHadInteraction)
|
|
21
21
|
};
|
|
22
22
|
},
|
|
23
|
+
commands: {
|
|
24
|
+
handleInteraction: function handleInteraction(_ref2) {
|
|
25
|
+
var tr = _ref2.tr;
|
|
26
|
+
return tr.setMeta(_main.key, {
|
|
27
|
+
hasHadInteraction: true
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
},
|
|
23
31
|
pmPlugins: function pmPlugins() {
|
|
24
32
|
return [{
|
|
25
33
|
name: 'interactionHandlerPlugin',
|
|
@@ -15,6 +15,15 @@ export const interactionPlugin = ({
|
|
|
15
15
|
hasHadInteraction: Boolean((_key$getState = key.getState(editorState)) === null || _key$getState === void 0 ? void 0 : _key$getState.hasHadInteraction)
|
|
16
16
|
};
|
|
17
17
|
},
|
|
18
|
+
commands: {
|
|
19
|
+
handleInteraction: ({
|
|
20
|
+
tr
|
|
21
|
+
}) => {
|
|
22
|
+
return tr.setMeta(key, {
|
|
23
|
+
hasHadInteraction: true
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
},
|
|
18
27
|
pmPlugins() {
|
|
19
28
|
return [{
|
|
20
29
|
name: 'interactionHandlerPlugin',
|
|
@@ -14,6 +14,14 @@ export var interactionPlugin = function interactionPlugin(_ref) {
|
|
|
14
14
|
hasHadInteraction: Boolean((_key$getState = key.getState(editorState)) === null || _key$getState === void 0 ? void 0 : _key$getState.hasHadInteraction)
|
|
15
15
|
};
|
|
16
16
|
},
|
|
17
|
+
commands: {
|
|
18
|
+
handleInteraction: function handleInteraction(_ref2) {
|
|
19
|
+
var tr = _ref2.tr;
|
|
20
|
+
return tr.setMeta(key, {
|
|
21
|
+
hasHadInteraction: true
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
},
|
|
17
25
|
pmPlugins: function pmPlugins() {
|
|
18
26
|
return [{
|
|
19
27
|
name: 'interactionHandlerPlugin',
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorCommand, NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { type InteractionState } from './types';
|
|
3
|
+
type InteractionCommands = {
|
|
4
|
+
handleInteraction: EditorCommand;
|
|
5
|
+
};
|
|
3
6
|
export type InteractionPlugin = NextEditorPlugin<'interaction', {
|
|
4
7
|
sharedState: InteractionState;
|
|
8
|
+
commands: InteractionCommands;
|
|
5
9
|
}>;
|
|
10
|
+
export {};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorCommand, NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { type InteractionState } from './types';
|
|
3
|
+
type InteractionCommands = {
|
|
4
|
+
handleInteraction: EditorCommand;
|
|
5
|
+
};
|
|
3
6
|
export type InteractionPlugin = NextEditorPlugin<'interaction', {
|
|
4
7
|
sharedState: InteractionState;
|
|
8
|
+
commands: InteractionCommands;
|
|
5
9
|
}>;
|
|
10
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-interaction",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Interaction plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
".": "./src/index.ts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/editor-common": "^
|
|
26
|
+
"@atlaskit/editor-common": "^105.6.0",
|
|
27
27
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
28
28
|
"@babel/runtime": "^7.0.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@atlaskit/tokens": "^4.
|
|
31
|
+
"@atlaskit/tokens": "^4.9.0",
|
|
32
32
|
"react": "^18.2.0",
|
|
33
33
|
"react-dom": "^18.2.0"
|
|
34
34
|
},
|