@atlaskit/editor-plugin-card 10.1.2 → 10.1.3
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 +8 -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 +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 10.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1c474ad18f3ac`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1c474ad18f3ac) -
|
|
8
|
+
[ED-28566] Clean up platform_editor_controls_patch_15
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 10.1.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -15,7 +15,6 @@ var _toolbarFlagCheck = require("@atlaskit/editor-common/toolbar-flag-check");
|
|
|
15
15
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
16
16
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
17
17
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down"));
|
|
18
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
20
19
|
var _LinkToolbarAppearanceDropdown = require("./LinkToolbarAppearanceDropdown");
|
|
21
20
|
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); }
|
|
@@ -211,7 +210,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
|
211
210
|
dispatchCommand: dispatchCommand,
|
|
212
211
|
settingsConfig: settingsConfig,
|
|
213
212
|
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
214
|
-
})), !(
|
|
213
|
+
})), !(0, _toolbarFlagCheck.areToolbarFlagsEnabled)(Boolean((_props$editorPluginAp3 = props.editorPluginApi) === null || _props$editorPluginAp3 === void 0 ? void 0 : _props$editorPluginAp3.toolbar)) && /*#__PURE__*/_react.default.createElement(_ui.FloatingToolbarSeparator, {
|
|
215
214
|
areAnyNewToolbarFlagsEnabled: (0, _toolbarFlagCheck.areToolbarFlagsEnabled)(Boolean((_props$editorPluginAp4 = props.editorPluginApi) === null || _props$editorPluginAp4 === void 0 ? void 0 : _props$editorPluginAp4.toolbar))
|
|
216
215
|
}));
|
|
217
216
|
};
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -32,7 +32,6 @@ var _linkBrokenEditorUnlink = _interopRequireDefault(require("@atlaskit/icon/cor
|
|
|
32
32
|
var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-external--shortcut"));
|
|
33
33
|
var _settingsEditorSettings = _interopRequireDefault(require("@atlaskit/icon/core/migration/settings--editor-settings"));
|
|
34
34
|
var _settings = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
|
|
35
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
36
35
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
37
36
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
38
37
|
var _doc = require("../pm-plugins/doc");
|
|
@@ -384,10 +383,10 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
384
383
|
onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
385
384
|
title: intl.formatMessage(_messages.default.remove),
|
|
386
385
|
onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
|
|
387
|
-
}]) : [].concat(openPreviewPanelItems, editButtonItems, (0, _toConsumableArray2.default)(
|
|
386
|
+
}]) : [].concat(openPreviewPanelItems, editButtonItems, (0, _toConsumableArray2.default)([].concat((0, _toConsumableArray2.default)(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, !areAllNewToolbarFlagsDisabled)), [{
|
|
388
387
|
type: 'separator',
|
|
389
388
|
fullHeight: true
|
|
390
|
-
}])
|
|
389
|
+
}])), [{
|
|
391
390
|
id: 'editor.link.openLink',
|
|
392
391
|
type: 'button',
|
|
393
392
|
icon: _linkExternal.default,
|
|
@@ -4,7 +4,6 @@ import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-che
|
|
|
4
4
|
import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
|
|
5
5
|
import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
|
|
6
6
|
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
9
8
|
import { LinkAppearanceMenu } from './LinkToolbarAppearanceDropdown';
|
|
10
9
|
const CustomHyperlinkDropdown = props => {
|
|
@@ -126,7 +125,7 @@ const CustomHyperlinkDropdown = props => {
|
|
|
126
125
|
dispatchCommand: dispatchCommand,
|
|
127
126
|
settingsConfig: settingsConfig,
|
|
128
127
|
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
129
|
-
})), !
|
|
128
|
+
})), !areToolbarFlagsEnabled(Boolean((_props$editorPluginAp6 = props.editorPluginApi) === null || _props$editorPluginAp6 === void 0 ? void 0 : _props$editorPluginAp6.toolbar)) && /*#__PURE__*/React.createElement(Separator, {
|
|
130
129
|
areAnyNewToolbarFlagsEnabled: areToolbarFlagsEnabled(Boolean((_props$editorPluginAp7 = props.editorPluginApi) === null || _props$editorPluginAp7 === void 0 ? void 0 : _props$editorPluginAp7.toolbar))
|
|
131
130
|
}));
|
|
132
131
|
};
|
|
@@ -22,7 +22,6 @@ import UnlinkIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink
|
|
|
22
22
|
import OpenIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
23
23
|
import CogIcon from '@atlaskit/icon/core/migration/settings--editor-settings';
|
|
24
24
|
import SettingsIcon from '@atlaskit/icon/core/settings';
|
|
25
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
26
25
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
27
26
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
28
27
|
import { changeSelectedCardToText } from '../pm-plugins/doc';
|
|
@@ -372,10 +371,10 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
|
|
|
372
371
|
onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
373
372
|
title: intl.formatMessage(commonMessages.remove),
|
|
374
373
|
onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
|
|
375
|
-
}] : [...openPreviewPanelItems, ...editButtonItems, ...
|
|
374
|
+
}] : [...openPreviewPanelItems, ...editButtonItems, ...[...getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, !areAllNewToolbarFlagsDisabled), {
|
|
376
375
|
type: 'separator',
|
|
377
376
|
fullHeight: true
|
|
378
|
-
}]
|
|
377
|
+
}], {
|
|
379
378
|
id: 'editor.link.openLink',
|
|
380
379
|
type: 'button',
|
|
381
380
|
icon: LinkExternalIcon,
|
|
@@ -7,7 +7,6 @@ import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-che
|
|
|
7
7
|
import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
|
|
8
8
|
import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
|
|
9
9
|
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
12
11
|
import { LinkAppearanceMenu } from './LinkToolbarAppearanceDropdown';
|
|
13
12
|
var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
@@ -202,7 +201,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
|
202
201
|
dispatchCommand: dispatchCommand,
|
|
203
202
|
settingsConfig: settingsConfig,
|
|
204
203
|
areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
|
|
205
|
-
})), !
|
|
204
|
+
})), !areToolbarFlagsEnabled(Boolean((_props$editorPluginAp3 = props.editorPluginApi) === null || _props$editorPluginAp3 === void 0 ? void 0 : _props$editorPluginAp3.toolbar)) && /*#__PURE__*/React.createElement(Separator, {
|
|
206
205
|
areAnyNewToolbarFlagsEnabled: areToolbarFlagsEnabled(Boolean((_props$editorPluginAp4 = props.editorPluginApi) === null || _props$editorPluginAp4 === void 0 ? void 0 : _props$editorPluginAp4.toolbar))
|
|
207
206
|
}));
|
|
208
207
|
};
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -26,7 +26,6 @@ import UnlinkIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink
|
|
|
26
26
|
import OpenIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
27
27
|
import CogIcon from '@atlaskit/icon/core/migration/settings--editor-settings';
|
|
28
28
|
import SettingsIcon from '@atlaskit/icon/core/settings';
|
|
29
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
30
29
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
31
30
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
32
31
|
import { changeSelectedCardToText } from '../pm-plugins/doc';
|
|
@@ -375,10 +374,10 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
375
374
|
onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
376
375
|
title: intl.formatMessage(commonMessages.remove),
|
|
377
376
|
onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
|
|
378
|
-
}]) : [].concat(openPreviewPanelItems, editButtonItems, _toConsumableArray(
|
|
377
|
+
}]) : [].concat(openPreviewPanelItems, editButtonItems, _toConsumableArray([].concat(_toConsumableArray(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi, !areAllNewToolbarFlagsDisabled)), [{
|
|
379
378
|
type: 'separator',
|
|
380
379
|
fullHeight: true
|
|
381
|
-
}])
|
|
380
|
+
}])), [{
|
|
382
381
|
id: 'editor.link.openLink',
|
|
383
382
|
type: 'button',
|
|
384
383
|
icon: LinkExternalIcon,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.3",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/primitives": "^14.14.0",
|
|
62
62
|
"@atlaskit/smart-card": "^41.0.0",
|
|
63
63
|
"@atlaskit/theme": "^21.0.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^12.23.0",
|
|
65
65
|
"@atlaskit/tokens": "^6.3.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|
|
67
67
|
"@emotion/react": "^11.7.1",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"uuid": "^3.1.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@atlaskit/editor-common": "^109.
|
|
74
|
+
"@atlaskit/editor-common": "^109.8.0",
|
|
75
75
|
"@atlaskit/link-provider": "^4.0.0",
|
|
76
76
|
"react": "^18.2.0",
|
|
77
77
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -122,9 +122,6 @@
|
|
|
122
122
|
"dst-a11y__replace-anchor-with-link__linking-platfo": {
|
|
123
123
|
"type": "boolean"
|
|
124
124
|
},
|
|
125
|
-
"platform_editor_controls_patch_15": {
|
|
126
|
-
"type": "boolean"
|
|
127
|
-
},
|
|
128
125
|
"platform_editor_adf_with_localid": {
|
|
129
126
|
"type": "boolean"
|
|
130
127
|
}
|