@atlaskit/editor-plugin-type-ahead 6.5.19 → 6.5.21
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 +14 -0
- package/dist/cjs/ui/TypeAheadListItem.js +3 -2
- package/dist/cjs/ui/TypeAheadPopup.js +4 -0
- package/dist/es2019/ui/TypeAheadListItem.js +3 -2
- package/dist/es2019/ui/TypeAheadPopup.js +4 -0
- package/dist/esm/ui/TypeAheadListItem.js +3 -2
- package/dist/esm/ui/TypeAheadPopup.js +4 -0
- package/package.json +6 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 6.5.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41a91a916c125`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/41a91a916c125) -
|
|
8
|
+
EDITOR-2846 Change platform_synced_block to use editorExperiment and add Jira experiment
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 6.5.20
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 6.5.19
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -18,6 +18,7 @@ var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
|
|
|
18
18
|
var _menu = require("@atlaskit/menu");
|
|
19
19
|
var _colors = require("@atlaskit/theme/colors");
|
|
20
20
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
22
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
22
23
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
23
24
|
/**
|
|
@@ -272,8 +273,8 @@ var TypeAheadListItem = exports.TypeAheadListItem = /*#__PURE__*/_react.default.
|
|
|
272
273
|
}, (0, _react2.jsx)("div", {
|
|
273
274
|
css: itemBody
|
|
274
275
|
}, (0, _react2.jsx)("div", {
|
|
275
|
-
css: [itemTitle, moreElementsInQuickInsertViewEnabled && itemTitleOverride, itemIsDisabled && disabledStyle, item.lozenge && (0,
|
|
276
|
-
}, item.title, (0,
|
|
276
|
+
css: [itemTitle, moreElementsInQuickInsertViewEnabled && itemTitleOverride, itemIsDisabled && disabledStyle, item.lozenge && (0, _experiments.editorExperiment)('platform_synced_block', true) && titleWithLozengeStyle]
|
|
277
|
+
}, item.title, (0, _experiments.editorExperiment)('platform_synced_block', true) && item.lozenge), (0, _react2.jsx)("div", {
|
|
277
278
|
css: itemAfter
|
|
278
279
|
}, item.keyshortcut && (0, _react2.jsx)("div", {
|
|
279
280
|
css: _shortcut.shortcutStyle
|
|
@@ -15,6 +15,7 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
15
15
|
var _typeAhead = require("@atlaskit/editor-common/type-ahead");
|
|
16
16
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
17
17
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
18
|
+
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
18
19
|
var _colors = require("@atlaskit/theme/colors");
|
|
19
20
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
20
21
|
var _analytics2 = require("../pm-plugins/analytics");
|
|
@@ -109,6 +110,9 @@ var TypeAheadPopup = exports.TypeAheadPopup = /*#__PURE__*/_react.default.memo(f
|
|
|
109
110
|
}
|
|
110
111
|
var stopTime = performance.now();
|
|
111
112
|
var time = stopTime - startTime;
|
|
113
|
+
|
|
114
|
+
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
115
|
+
_featureGateJsClient.default.getExperimentValue('cc_fd_db_quick_insert_options_aa', 'isEnabled', false);
|
|
112
116
|
api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 || (_api$analytics2 = _api$analytics2.actions) === null || _api$analytics2 === void 0 || _api$analytics2.fireAnalyticsEvent({
|
|
113
117
|
action: _analytics.ACTION.RENDERED,
|
|
114
118
|
actionSubject: _analytics.ACTION_SUBJECT.TYPEAHEAD,
|
|
@@ -15,6 +15,7 @@ import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
|
15
15
|
import { ButtonItem } from '@atlaskit/menu';
|
|
16
16
|
import { B400, N30, N800 } from '@atlaskit/theme/colors';
|
|
17
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
19
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
19
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
20
21
|
export const itemIcon = css({
|
|
@@ -286,8 +287,8 @@ export const TypeAheadListItem = /*#__PURE__*/React.memo(({
|
|
|
286
287
|
}, jsx("div", {
|
|
287
288
|
css: itemBody
|
|
288
289
|
}, jsx("div", {
|
|
289
|
-
css: [itemTitle, moreElementsInQuickInsertViewEnabled && itemTitleOverride, itemIsDisabled && disabledStyle, item.lozenge &&
|
|
290
|
-
}, item.title,
|
|
290
|
+
css: [itemTitle, moreElementsInQuickInsertViewEnabled && itemTitleOverride, itemIsDisabled && disabledStyle, item.lozenge && editorExperiment('platform_synced_block', true) && titleWithLozengeStyle]
|
|
291
|
+
}, item.title, editorExperiment('platform_synced_block', true) && item.lozenge), jsx("div", {
|
|
291
292
|
css: itemAfter
|
|
292
293
|
}, item.keyshortcut && jsx("div", {
|
|
293
294
|
css: shortcutStyle
|
|
@@ -12,6 +12,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
12
12
|
import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
13
13
|
import { findOverflowScrollParent, Popup } from '@atlaskit/editor-common/ui';
|
|
14
14
|
import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
|
|
15
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
15
16
|
import { N0, N50A, N60A } from '@atlaskit/theme/colors';
|
|
16
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
18
|
import { fireTypeAheadClosedAnalyticsEvent } from '../pm-plugins/analytics';
|
|
@@ -98,6 +99,9 @@ export const TypeAheadPopup = /*#__PURE__*/React.memo(props => {
|
|
|
98
99
|
}
|
|
99
100
|
const stopTime = performance.now();
|
|
100
101
|
const time = stopTime - startTime;
|
|
102
|
+
|
|
103
|
+
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
104
|
+
FeatureGates.getExperimentValue('cc_fd_db_quick_insert_options_aa', 'isEnabled', false);
|
|
101
105
|
api === null || api === void 0 ? void 0 : (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : (_api$analytics2$actio = _api$analytics2.actions) === null || _api$analytics2$actio === void 0 ? void 0 : _api$analytics2$actio.fireAnalyticsEvent({
|
|
102
106
|
action: ACTION.RENDERED,
|
|
103
107
|
actionSubject: ACTION_SUBJECT.TYPEAHEAD,
|
|
@@ -17,6 +17,7 @@ import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
|
17
17
|
import { ButtonItem } from '@atlaskit/menu';
|
|
18
18
|
import { B400, N30, N800 } from '@atlaskit/theme/colors';
|
|
19
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
21
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
21
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
22
23
|
export var itemIcon = css({
|
|
@@ -264,8 +265,8 @@ export var TypeAheadListItem = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
264
265
|
}, jsx("div", {
|
|
265
266
|
css: itemBody
|
|
266
267
|
}, jsx("div", {
|
|
267
|
-
css: [itemTitle, moreElementsInQuickInsertViewEnabled && itemTitleOverride, itemIsDisabled && disabledStyle, item.lozenge &&
|
|
268
|
-
}, item.title,
|
|
268
|
+
css: [itemTitle, moreElementsInQuickInsertViewEnabled && itemTitleOverride, itemIsDisabled && disabledStyle, item.lozenge && editorExperiment('platform_synced_block', true) && titleWithLozengeStyle]
|
|
269
|
+
}, item.title, editorExperiment('platform_synced_block', true) && item.lozenge), jsx("div", {
|
|
269
270
|
css: itemAfter
|
|
270
271
|
}, item.keyshortcut && jsx("div", {
|
|
271
272
|
css: shortcutStyle
|
|
@@ -13,6 +13,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
13
13
|
import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
14
14
|
import { findOverflowScrollParent, Popup } from '@atlaskit/editor-common/ui';
|
|
15
15
|
import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
|
|
16
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
16
17
|
import { N0, N50A, N60A } from '@atlaskit/theme/colors';
|
|
17
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
19
|
import { fireTypeAheadClosedAnalyticsEvent } from '../pm-plugins/analytics';
|
|
@@ -99,6 +100,9 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
99
100
|
}
|
|
100
101
|
var stopTime = performance.now();
|
|
101
102
|
var time = stopTime - startTime;
|
|
103
|
+
|
|
104
|
+
// eslint-disable-next-line @atlaskit/platform/use-recommended-utils
|
|
105
|
+
FeatureGates.getExperimentValue('cc_fd_db_quick_insert_options_aa', 'isEnabled', false);
|
|
102
106
|
api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 || (_api$analytics2 = _api$analytics2.actions) === null || _api$analytics2 === void 0 || _api$analytics2.fireAnalyticsEvent({
|
|
103
107
|
action: ACTION.RENDERED,
|
|
104
108
|
actionSubject: ACTION_SUBJECT.TYPEAHEAD,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.21",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-metrics": "^7.1.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
40
|
+
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
40
41
|
"@atlaskit/heading": "^5.2.0",
|
|
41
|
-
"@atlaskit/icon": "^29.0.0",
|
|
42
42
|
"@atlaskit/insm": "^0.2.0",
|
|
43
43
|
"@atlaskit/menu": "^8.4.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
|
-
"@atlaskit/primitives": "^16.
|
|
45
|
+
"@atlaskit/primitives": "^16.4.0",
|
|
46
46
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
47
47
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
48
48
|
"@atlaskit/theme": "^21.0.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
50
|
-
"@atlaskit/tokens": "^8.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^14.1.0",
|
|
50
|
+
"@atlaskit/tokens": "^8.4.0",
|
|
51
51
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1",
|
|
@@ -58,14 +58,12 @@
|
|
|
58
58
|
"w3c-keyname": "^2.1.8"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@atlaskit/editor-common": "^110.
|
|
61
|
+
"@atlaskit/editor-common": "^110.36.0",
|
|
62
62
|
"react": "^18.2.0",
|
|
63
63
|
"react-dom": "^18.2.0",
|
|
64
64
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@af/visual-regression": "workspace:^",
|
|
68
|
-
"@atlaskit/ssr": "workspace:^",
|
|
69
67
|
"@testing-library/react": "^13.4.0",
|
|
70
68
|
"@types/react-virtualized": "^9.18.12",
|
|
71
69
|
"wait-for-expect": "^1.2.0"
|