@atlaskit/editor-plugin-card 11.2.2 → 11.3.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 +11 -0
- package/dist/cjs/pm-plugins/doc.js +2 -2
- package/dist/cjs/ui/ConfigureOverlay/index.js +1 -1
- package/dist/es2019/pm-plugins/doc.js +1 -1
- package/dist/es2019/ui/ConfigureOverlay/index.js +1 -1
- package/dist/esm/pm-plugins/doc.js +1 -1
- package/dist/esm/ui/ConfigureOverlay/index.js +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 11.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`0ac75e0d28c72`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0ac75e0d28c72) -
|
|
8
|
+
Migrate @atlaskit/editor-prosemirror/history to @atlaskit/prosemirror-history package
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 11.2.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -13,9 +13,9 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
13
13
|
var _card = require("@atlaskit/editor-common/card");
|
|
14
14
|
var _link = require("@atlaskit/editor-common/link");
|
|
15
15
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
16
|
-
var _history = require("@atlaskit/editor-prosemirror/history");
|
|
17
16
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
18
17
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
|
+
var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
|
|
19
19
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
20
20
|
var _actions = require("./actions");
|
|
21
21
|
var _pluginKey = require("./plugin-key");
|
|
@@ -135,7 +135,7 @@ var replaceQueuedUrlWithCard = exports.replaceQueuedUrlWithCard = function repla
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
if (dispatch) {
|
|
138
|
-
dispatch((0, _actions.resolveCard)(url)((0,
|
|
138
|
+
dispatch((0, _actions.resolveCard)(url)((0, _prosemirrorHistory.closeHistory)(tr)));
|
|
139
139
|
}
|
|
140
140
|
return true;
|
|
141
141
|
};
|
|
@@ -42,7 +42,7 @@ var OverlayWrapper = function OverlayWrapper(_ref) {
|
|
|
42
42
|
}
|
|
43
43
|
}, []);
|
|
44
44
|
return (
|
|
45
|
-
// eslint-disable-next-line
|
|
45
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
46
46
|
(0, _react2.jsx)("span", {
|
|
47
47
|
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
48
48
|
onMouseEnter: function onMouseEnter() {
|
|
@@ -4,9 +4,9 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, SM
|
|
|
4
4
|
import { addLinkMetadata } from '@atlaskit/editor-common/card';
|
|
5
5
|
import { getActiveLinkMark } from '@atlaskit/editor-common/link';
|
|
6
6
|
import { getAnnotationMarksForPos, getLinkCreationAnalyticsEvent, isFromCurrentDomain, nodesBetweenChanged, processRawValue } from '@atlaskit/editor-common/utils';
|
|
7
|
-
import { closeHistory } from '@atlaskit/editor-prosemirror/history';
|
|
8
7
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
9
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
+
import { closeHistory } from '@atlaskit/prosemirror-history';
|
|
10
10
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
11
11
|
import { hideDatasourceModal, queueCards, removeDatasourceStash, resolveCard, setDatasourceStash } from './actions';
|
|
12
12
|
import { pluginKey } from './plugin-key';
|
|
@@ -28,7 +28,7 @@ const OverlayWrapper = ({
|
|
|
28
28
|
}
|
|
29
29
|
}, []);
|
|
30
30
|
return (
|
|
31
|
-
// eslint-disable-next-line
|
|
31
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
32
32
|
jsx("span", {
|
|
33
33
|
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
34
34
|
onMouseEnter: () => {
|
|
@@ -8,9 +8,9 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, SM
|
|
|
8
8
|
import { addLinkMetadata } from '@atlaskit/editor-common/card';
|
|
9
9
|
import { getActiveLinkMark } from '@atlaskit/editor-common/link';
|
|
10
10
|
import { getAnnotationMarksForPos, getLinkCreationAnalyticsEvent, isFromCurrentDomain, nodesBetweenChanged, processRawValue } from '@atlaskit/editor-common/utils';
|
|
11
|
-
import { closeHistory } from '@atlaskit/editor-prosemirror/history';
|
|
12
11
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
13
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
+
import { closeHistory } from '@atlaskit/prosemirror-history';
|
|
14
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
15
|
import { hideDatasourceModal, queueCards, removeDatasourceStash, resolveCard, setDatasourceStash } from './actions';
|
|
16
16
|
import { pluginKey } from './plugin-key';
|
|
@@ -34,7 +34,7 @@ var OverlayWrapper = function OverlayWrapper(_ref) {
|
|
|
34
34
|
}
|
|
35
35
|
}, []);
|
|
36
36
|
return (
|
|
37
|
-
// eslint-disable-next-line
|
|
37
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
38
38
|
jsx("span", {
|
|
39
39
|
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
40
40
|
onMouseEnter: function onMouseEnter() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.3.0",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"@atlaskit/adf-schema": "^51.2.0",
|
|
33
33
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
34
34
|
"@atlaskit/button": "^23.5.0",
|
|
35
|
-
"@atlaskit/custom-steps": "^0.
|
|
35
|
+
"@atlaskit/custom-steps": "^0.15.0",
|
|
36
36
|
"@atlaskit/editor-card-provider": "^6.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^6.1.0",
|
|
38
|
-
"@atlaskit/editor-plugin-base": "^7.
|
|
38
|
+
"@atlaskit/editor-plugin-base": "^7.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-connectivity": "^6.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-decorations": "^6.1.0",
|
|
41
|
-
"@atlaskit/editor-plugin-editor-disabled": "^6.
|
|
41
|
+
"@atlaskit/editor-plugin-editor-disabled": "^6.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-feature-flags": "^5.0.0",
|
|
44
44
|
"@atlaskit/editor-plugin-floating-toolbar": "^8.2.0",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
61
61
|
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
62
62
|
"@atlaskit/primitives": "^14.15.0",
|
|
63
|
+
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
63
64
|
"@atlaskit/smart-card": "^43.1.0",
|
|
64
65
|
"@atlaskit/theme": "^21.0.0",
|
|
65
66
|
"@atlaskit/tmp-editor-statsig": "^13.6.0",
|
|
@@ -72,7 +73,7 @@
|
|
|
72
73
|
"uuid": "^3.1.0"
|
|
73
74
|
},
|
|
74
75
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^110.
|
|
76
|
+
"@atlaskit/editor-common": "^110.10.0",
|
|
76
77
|
"@atlaskit/link-provider": "^4.0.0",
|
|
77
78
|
"react": "^18.2.0",
|
|
78
79
|
"react-intl-next": "npm:react-intl@^5.18.1"
|