@atlaskit/editor-plugin-card 11.2.2 → 11.3.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 +19 -0
- package/dist/cjs/nodeviews/inlineCard.js +1 -3
- package/dist/cjs/pm-plugins/doc.js +2 -2
- package/dist/cjs/ui/ConfigureOverlay/index.js +1 -1
- package/dist/es2019/nodeviews/inlineCard.js +1 -3
- package/dist/es2019/pm-plugins/doc.js +1 -1
- package/dist/es2019/ui/ConfigureOverlay/index.js +1 -1
- package/dist/esm/nodeviews/inlineCard.js +1 -3
- package/dist/esm/pm-plugins/doc.js +1 -1
- package/dist/esm/ui/ConfigureOverlay/index.js +1 -1
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 11.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1a90419a2ae30`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1a90419a2ae30) -
|
|
8
|
+
[ED-29484] remove references to platform_editor_smart_link_cmd_ctrl_click
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 11.3.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`0ac75e0d28c72`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0ac75e0d28c72) -
|
|
16
|
+
Migrate @atlaskit/editor-prosemirror/history to @atlaskit/prosemirror-history package
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 11.2.2
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -149,9 +149,7 @@ var InlineCard = exports.InlineCard = /*#__PURE__*/(0, _react.memo)(function (_r
|
|
|
149
149
|
propsOnClick === null || propsOnClick === void 0 || propsOnClick(event);
|
|
150
150
|
}
|
|
151
151
|
}, [propsOnClick, url, view, pluginInjectionApi]);
|
|
152
|
-
var onClick = (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')
|
|
153
|
-
exposure: true
|
|
154
|
-
}) ? handleOnClick : propsOnClick;
|
|
152
|
+
var onClick = (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? handleOnClick : propsOnClick;
|
|
155
153
|
var card = (0, _react.useMemo)(function () {
|
|
156
154
|
if (
|
|
157
155
|
// The `isSSRDataAvailable` check is only required when the OTP experiment is on,
|
|
@@ -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() {
|
|
@@ -122,9 +122,7 @@ export const InlineCard = /*#__PURE__*/memo(({
|
|
|
122
122
|
propsOnClick === null || propsOnClick === void 0 ? void 0 : propsOnClick(event);
|
|
123
123
|
}
|
|
124
124
|
}, [propsOnClick, url, view, pluginInjectionApi]);
|
|
125
|
-
const onClick = editorExperiment('platform_editor_controls', 'variant1')
|
|
126
|
-
exposure: true
|
|
127
|
-
}) ? handleOnClick : propsOnClick;
|
|
125
|
+
const onClick = editorExperiment('platform_editor_controls', 'variant1') ? handleOnClick : propsOnClick;
|
|
128
126
|
const card = useMemo(() => {
|
|
129
127
|
if (
|
|
130
128
|
// The `isSSRDataAvailable` check is only required when the OTP experiment is on,
|
|
@@ -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: () => {
|
|
@@ -138,9 +138,7 @@ export var InlineCard = /*#__PURE__*/memo(function (_ref) {
|
|
|
138
138
|
propsOnClick === null || propsOnClick === void 0 || propsOnClick(event);
|
|
139
139
|
}
|
|
140
140
|
}, [propsOnClick, url, view, pluginInjectionApi]);
|
|
141
|
-
var onClick = editorExperiment('platform_editor_controls', 'variant1')
|
|
142
|
-
exposure: true
|
|
143
|
-
}) ? handleOnClick : propsOnClick;
|
|
141
|
+
var onClick = editorExperiment('platform_editor_controls', 'variant1') ? handleOnClick : propsOnClick;
|
|
144
142
|
var card = useMemo(function () {
|
|
145
143
|
if (
|
|
146
144
|
// The `isSSRDataAvailable` check is only required when the OTP experiment is on,
|
|
@@ -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.1",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,18 +32,18 @@
|
|
|
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",
|
|
45
45
|
"@atlaskit/editor-plugin-grid": "^6.0.0",
|
|
46
|
-
"@atlaskit/editor-plugin-toolbar": "^3.
|
|
46
|
+
"@atlaskit/editor-plugin-toolbar": "^3.2.0",
|
|
47
47
|
"@atlaskit/editor-plugin-width": "^7.0.0",
|
|
48
48
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
49
49
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
@@ -60,9 +60,10 @@
|
|
|
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
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
66
|
+
"@atlaskit/tmp-editor-statsig": "^13.10.0",
|
|
66
67
|
"@atlaskit/tokens": "^6.4.0",
|
|
67
68
|
"@babel/runtime": "^7.0.0",
|
|
68
69
|
"@emotion/react": "^11.7.1",
|
|
@@ -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"
|