@atlaskit/editor-plugin-card 6.7.0 → 6.7.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
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 6.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#179868](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/179868)
|
|
8
|
+
[`87856dbd47c93`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/87856dbd47c93) -
|
|
9
|
+
[ux] [ED-27899] Fix separators and order for plain links
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 6.7.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -14,7 +14,9 @@ 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");
|
|
17
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
19
|
+
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
18
20
|
var _LinkToolbarAppearanceDropdown = require("./LinkToolbarAppearanceDropdown");
|
|
19
21
|
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); }
|
|
20
22
|
var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
@@ -206,7 +208,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
|
206
208
|
allowDatasource: allowDatasource,
|
|
207
209
|
dispatchCommand: dispatchCommand,
|
|
208
210
|
settingsConfig: settingsConfig
|
|
209
|
-
})), /*#__PURE__*/_react.default.createElement(_ui.FloatingToolbarSeparator, null));
|
|
211
|
+
})), !((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_15')) && /*#__PURE__*/_react.default.createElement(_ui.FloatingToolbarSeparator, null));
|
|
210
212
|
};
|
|
211
213
|
var getCustomHyperlinkAppearanceDropdown = exports.getCustomHyperlinkAppearanceDropdown = function getCustomHyperlinkAppearanceDropdown(_ref3) {
|
|
212
214
|
var url = _ref3.url,
|
|
@@ -3,7 +3,9 @@ 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';
|
|
6
7
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
7
9
|
import { LinkAppearanceMenu } from './LinkToolbarAppearanceDropdown';
|
|
8
10
|
const CustomHyperlinkDropdown = props => {
|
|
9
11
|
var _props$cardOptions3;
|
|
@@ -121,7 +123,7 @@ const CustomHyperlinkDropdown = props => {
|
|
|
121
123
|
allowDatasource: allowDatasource,
|
|
122
124
|
dispatchCommand: dispatchCommand,
|
|
123
125
|
settingsConfig: settingsConfig
|
|
124
|
-
})), /*#__PURE__*/React.createElement(Separator, null));
|
|
126
|
+
})), !(expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_15')) && /*#__PURE__*/React.createElement(Separator, null));
|
|
125
127
|
};
|
|
126
128
|
export const getCustomHyperlinkAppearanceDropdown = ({
|
|
127
129
|
url,
|
|
@@ -6,7 +6,9 @@ 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';
|
|
9
10
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
11
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
10
12
|
import { LinkAppearanceMenu } from './LinkToolbarAppearanceDropdown';
|
|
11
13
|
var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
12
14
|
var _props$cardOptions3;
|
|
@@ -197,7 +199,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
|
197
199
|
allowDatasource: allowDatasource,
|
|
198
200
|
dispatchCommand: dispatchCommand,
|
|
199
201
|
settingsConfig: settingsConfig
|
|
200
|
-
})), /*#__PURE__*/React.createElement(Separator, null));
|
|
202
|
+
})), !(expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_15')) && /*#__PURE__*/React.createElement(Separator, null));
|
|
201
203
|
};
|
|
202
204
|
export var getCustomHyperlinkAppearanceDropdown = function getCustomHyperlinkAppearanceDropdown(_ref3) {
|
|
203
205
|
var url = _ref3.url,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "6.7.
|
|
3
|
+
"version": "6.7.1",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Editor",
|
|
12
|
-
"singleton": true
|
|
13
|
-
"runReact18": true
|
|
12
|
+
"singleton": true
|
|
14
13
|
},
|
|
15
14
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
16
15
|
"main": "dist/cjs/index.js",
|
|
@@ -37,7 +36,7 @@
|
|
|
37
36
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
38
37
|
"@atlaskit/button": "^23.2.0",
|
|
39
38
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
40
|
-
"@atlaskit/editor-common": "^107.
|
|
39
|
+
"@atlaskit/editor-common": "^107.4.0",
|
|
41
40
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
42
41
|
"@atlaskit/editor-plugin-base": "^3.0.0",
|
|
43
42
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
@@ -61,9 +60,9 @@
|
|
|
61
60
|
"@atlaskit/menu": "^8.0.0",
|
|
62
61
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
63
62
|
"@atlaskit/primitives": "^14.10.0",
|
|
64
|
-
"@atlaskit/smart-card": "^38.
|
|
63
|
+
"@atlaskit/smart-card": "^38.20.0",
|
|
65
64
|
"@atlaskit/theme": "^18.0.0",
|
|
66
|
-
"@atlaskit/tmp-editor-statsig": "^8.
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^8.6.0",
|
|
67
66
|
"@atlaskit/tokens": "^5.4.0",
|
|
68
67
|
"@babel/runtime": "^7.0.0",
|
|
69
68
|
"@emotion/react": "^11.7.1",
|