@atlaskit/editor-plugin-card 6.6.12 → 6.6.14
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 +15 -0
- package/dist/cjs/ui/HyperlinkToolbarAppearanceDropdown.js +1 -2
- package/dist/cjs/ui/toolbar.js +2 -3
- package/dist/es2019/ui/HyperlinkToolbarAppearanceDropdown.js +1 -2
- package/dist/es2019/ui/toolbar.js +2 -3
- package/dist/esm/ui/HyperlinkToolbarAppearanceDropdown.js +1 -2
- package/dist/esm/ui/toolbar.js +2 -3
- package/package.json +6 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 6.6.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#175339](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175339)
|
|
8
|
+
[`d4115e4055a0a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d4115e4055a0a) -
|
|
9
|
+
ED-28314 Cleanup platform_editor_controls_patch_12
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 6.6.13
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 6.6.12
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -14,7 +14,6 @@ var _card = require("@atlaskit/editor-common/card");
|
|
|
14
14
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
15
15
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
16
16
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down"));
|
|
17
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
17
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
19
18
|
var _LinkToolbarAppearanceDropdown = require("./LinkToolbarAppearanceDropdown");
|
|
20
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -148,7 +147,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
|
148
147
|
return null;
|
|
149
148
|
}
|
|
150
149
|
var dispatchCommand = function dispatchCommand(fn) {
|
|
151
|
-
fn && fn(editorView && editorView.state, editorView && editorView.dispatch,
|
|
150
|
+
fn && fn(editorView && editorView.state, editorView && editorView.dispatch, editorView);
|
|
152
151
|
// Refocus the view to ensure the editor has focus
|
|
153
152
|
if (editorView && !editorView.hasFocus()) {
|
|
154
153
|
editorView.focus();
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -31,7 +31,6 @@ var _linkBrokenEditorUnlink = _interopRequireDefault(require("@atlaskit/icon/cor
|
|
|
31
31
|
var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-external--shortcut"));
|
|
32
32
|
var _settingsEditorSettings = _interopRequireDefault(require("@atlaskit/icon/core/migration/settings--editor-settings"));
|
|
33
33
|
var _settings = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
|
|
34
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
35
34
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
36
35
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
37
36
|
var _doc = require("../pm-plugins/doc");
|
|
@@ -298,7 +297,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
298
297
|
type: 'separator'
|
|
299
298
|
}] : [];
|
|
300
299
|
var openLinkInputMethod = _analytics.INPUT_METHOD.FLOATING_TB;
|
|
301
|
-
var editButtonItems = cardOptions.allowDatasource
|
|
300
|
+
var editButtonItems = cardOptions.allowDatasource ? [{
|
|
302
301
|
type: 'custom',
|
|
303
302
|
fallback: [],
|
|
304
303
|
render: function render(editorView) {
|
|
@@ -646,7 +645,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
646
645
|
|
|
647
646
|
// When canShowAppearanceSwitch is true, and platform_editor_controls is on, the link appearance dropdown shows, which includes a link preference button
|
|
648
647
|
// So only add the link appearance button when canShowAppearanceSwitch is false
|
|
649
|
-
if (!canShowAppearanceSwitch()
|
|
648
|
+
if (!canShowAppearanceSwitch()) {
|
|
650
649
|
var linkPreferenceButton = getSettingsButton(intl, editorAnalyticsApi, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.userPreferencesLink);
|
|
651
650
|
toolbarItems.push({
|
|
652
651
|
type: 'separator',
|
|
@@ -3,7 +3,6 @@ import { appearancePropsMap } from '@atlaskit/editor-common/card';
|
|
|
3
3
|
import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
|
|
4
4
|
import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
|
|
5
5
|
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
8
7
|
import { LinkAppearanceMenu } from './LinkToolbarAppearanceDropdown';
|
|
9
8
|
const CustomHyperlinkDropdown = props => {
|
|
@@ -69,7 +68,7 @@ const CustomHyperlinkDropdown = props => {
|
|
|
69
68
|
return null;
|
|
70
69
|
}
|
|
71
70
|
const dispatchCommand = fn => {
|
|
72
|
-
fn && fn(editorView && editorView.state, editorView && editorView.dispatch,
|
|
71
|
+
fn && fn(editorView && editorView.state, editorView && editorView.dispatch, editorView);
|
|
73
72
|
// Refocus the view to ensure the editor has focus
|
|
74
73
|
if (editorView && !editorView.hasFocus()) {
|
|
75
74
|
editorView.focus();
|
|
@@ -21,7 +21,6 @@ import UnlinkIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink
|
|
|
21
21
|
import OpenIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
22
22
|
import CogIcon from '@atlaskit/icon/core/migration/settings--editor-settings';
|
|
23
23
|
import SettingsIcon from '@atlaskit/icon/core/settings';
|
|
24
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
25
24
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
26
25
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
27
26
|
import { changeSelectedCardToText } from '../pm-plugins/doc';
|
|
@@ -290,7 +289,7 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
|
|
|
290
289
|
type: 'separator'
|
|
291
290
|
}] : [];
|
|
292
291
|
const openLinkInputMethod = INPUT_METHOD.FLOATING_TB;
|
|
293
|
-
const editButtonItems = cardOptions.allowDatasource
|
|
292
|
+
const editButtonItems = cardOptions.allowDatasource ? [{
|
|
294
293
|
type: 'custom',
|
|
295
294
|
fallback: [],
|
|
296
295
|
render: editorView => /*#__PURE__*/React.createElement(EditToolbarButton, {
|
|
@@ -633,7 +632,7 @@ const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hove
|
|
|
633
632
|
|
|
634
633
|
// When canShowAppearanceSwitch is true, and platform_editor_controls is on, the link appearance dropdown shows, which includes a link preference button
|
|
635
634
|
// So only add the link appearance button when canShowAppearanceSwitch is false
|
|
636
|
-
if (!canShowAppearanceSwitch()
|
|
635
|
+
if (!canShowAppearanceSwitch()) {
|
|
637
636
|
const linkPreferenceButton = getSettingsButton(intl, editorAnalyticsApi, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.userPreferencesLink);
|
|
638
637
|
toolbarItems.push({
|
|
639
638
|
type: 'separator',
|
|
@@ -6,7 +6,6 @@ import { appearancePropsMap } from '@atlaskit/editor-common/card';
|
|
|
6
6
|
import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
|
|
7
7
|
import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
|
|
8
8
|
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
11
10
|
import { LinkAppearanceMenu } from './LinkToolbarAppearanceDropdown';
|
|
12
11
|
var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
@@ -139,7 +138,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
|
139
138
|
return null;
|
|
140
139
|
}
|
|
141
140
|
var dispatchCommand = function dispatchCommand(fn) {
|
|
142
|
-
fn && fn(editorView && editorView.state, editorView && editorView.dispatch,
|
|
141
|
+
fn && fn(editorView && editorView.state, editorView && editorView.dispatch, editorView);
|
|
143
142
|
// Refocus the view to ensure the editor has focus
|
|
144
143
|
if (editorView && !editorView.hasFocus()) {
|
|
145
144
|
editorView.focus();
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -25,7 +25,6 @@ import UnlinkIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink
|
|
|
25
25
|
import OpenIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
26
26
|
import CogIcon from '@atlaskit/icon/core/migration/settings--editor-settings';
|
|
27
27
|
import SettingsIcon from '@atlaskit/icon/core/settings';
|
|
28
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
29
28
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
30
29
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
31
30
|
import { changeSelectedCardToText } from '../pm-plugins/doc';
|
|
@@ -289,7 +288,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
289
288
|
type: 'separator'
|
|
290
289
|
}] : [];
|
|
291
290
|
var openLinkInputMethod = INPUT_METHOD.FLOATING_TB;
|
|
292
|
-
var editButtonItems = cardOptions.allowDatasource
|
|
291
|
+
var editButtonItems = cardOptions.allowDatasource ? [{
|
|
293
292
|
type: 'custom',
|
|
294
293
|
fallback: [],
|
|
295
294
|
render: function render(editorView) {
|
|
@@ -637,7 +636,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
637
636
|
|
|
638
637
|
// When canShowAppearanceSwitch is true, and platform_editor_controls is on, the link appearance dropdown shows, which includes a link preference button
|
|
639
638
|
// So only add the link appearance button when canShowAppearanceSwitch is false
|
|
640
|
-
if (!canShowAppearanceSwitch()
|
|
639
|
+
if (!canShowAppearanceSwitch()) {
|
|
641
640
|
var linkPreferenceButton = getSettingsButton(intl, editorAnalyticsApi, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.userPreferencesLink);
|
|
642
641
|
toolbarItems.push({
|
|
643
642
|
type: 'separator',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.14",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
38
38
|
"@atlaskit/button": "^23.2.0",
|
|
39
39
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
40
|
-
"@atlaskit/editor-common": "^107.
|
|
40
|
+
"@atlaskit/editor-common": "^107.2.0",
|
|
41
41
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
42
42
|
"@atlaskit/editor-plugin-base": "^3.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
@@ -51,19 +51,19 @@
|
|
|
51
51
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
52
52
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
53
53
|
"@atlaskit/frontend-utilities": "^3.0.0",
|
|
54
|
-
"@atlaskit/icon": "^27.
|
|
54
|
+
"@atlaskit/icon": "^27.2.0",
|
|
55
55
|
"@atlaskit/link": "^3.2.0",
|
|
56
56
|
"@atlaskit/link-analytics": "^10.0.0",
|
|
57
57
|
"@atlaskit/link-client-extension": "^5.0.0",
|
|
58
58
|
"@atlaskit/link-datasource": "^4.11.0",
|
|
59
59
|
"@atlaskit/linking-common": "^9.1.0",
|
|
60
|
-
"@atlaskit/linking-types": "^
|
|
60
|
+
"@atlaskit/linking-types": "^13.0.0",
|
|
61
61
|
"@atlaskit/menu": "^8.0.0",
|
|
62
62
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
63
63
|
"@atlaskit/primitives": "^14.9.0",
|
|
64
|
-
"@atlaskit/smart-card": "^38.
|
|
64
|
+
"@atlaskit/smart-card": "^38.14.0",
|
|
65
65
|
"@atlaskit/theme": "^18.0.0",
|
|
66
|
-
"@atlaskit/tmp-editor-statsig": "^8.
|
|
66
|
+
"@atlaskit/tmp-editor-statsig": "^8.2.0",
|
|
67
67
|
"@atlaskit/tokens": "^5.4.0",
|
|
68
68
|
"@babel/runtime": "^7.0.0",
|
|
69
69
|
"@emotion/react": "^11.7.1",
|
|
@@ -126,12 +126,6 @@
|
|
|
126
126
|
"platform_ssr_smartlinks_editor": {
|
|
127
127
|
"type": "boolean"
|
|
128
128
|
},
|
|
129
|
-
"platform_editor_controls_patch_9": {
|
|
130
|
-
"type": "boolean"
|
|
131
|
-
},
|
|
132
|
-
"platform_editor_controls_patch_12": {
|
|
133
|
-
"type": "boolean"
|
|
134
|
-
},
|
|
135
129
|
"platform_editor_fix_advanced_code_crash": {
|
|
136
130
|
"type": "boolean"
|
|
137
131
|
},
|