@atlaskit/editor-plugin-type-ahead 7.0.1 → 7.0.2
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 7.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`656adaeec9d0b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656adaeec9d0b) -
|
|
8
|
+
[ux] EDITOR-1665 add experience tracking for create sync block
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 7.0.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -17,6 +17,7 @@ var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
|
|
|
17
17
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
18
18
|
var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
|
|
19
19
|
var _menu = require("@atlaskit/menu");
|
|
20
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
21
|
var _colors = require("@atlaskit/theme/colors");
|
|
21
22
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
22
23
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
@@ -259,7 +260,8 @@ var TypeAheadListItem = exports.TypeAheadListItem = /*#__PURE__*/_react.default.
|
|
|
259
260
|
"aria-posinset": itemIndex + 1,
|
|
260
261
|
role: "option",
|
|
261
262
|
ref: buttonItemRef,
|
|
262
|
-
isDisabled: itemIsDisabled
|
|
263
|
+
isDisabled: itemIsDisabled,
|
|
264
|
+
testId: (0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_dogfooding') ? item.testId : undefined
|
|
263
265
|
// @ts-ignore
|
|
264
266
|
,
|
|
265
267
|
css: listItemClasses
|
|
@@ -14,6 +14,7 @@ import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
|
14
14
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
15
15
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
16
16
|
import { ButtonItem } from '@atlaskit/menu';
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
18
|
import { B400, N30, N800 } from '@atlaskit/theme/colors';
|
|
18
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
20
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
@@ -272,7 +273,8 @@ export const TypeAheadListItem = /*#__PURE__*/React.memo(({
|
|
|
272
273
|
"aria-posinset": itemIndex + 1,
|
|
273
274
|
role: "option",
|
|
274
275
|
ref: buttonItemRef,
|
|
275
|
-
isDisabled: itemIsDisabled
|
|
276
|
+
isDisabled: itemIsDisabled,
|
|
277
|
+
testId: editorExperiment('platform_synced_block', true) && fg('platform_synced_block_dogfooding') ? item.testId : undefined
|
|
276
278
|
// @ts-ignore
|
|
277
279
|
,
|
|
278
280
|
css: listItemClasses
|
|
@@ -16,6 +16,7 @@ import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
|
16
16
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
17
17
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
18
18
|
import { ButtonItem } from '@atlaskit/menu';
|
|
19
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
20
|
import { B400, N30, N800 } from '@atlaskit/theme/colors';
|
|
20
21
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
21
22
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
@@ -251,7 +252,8 @@ export var TypeAheadListItem = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
251
252
|
"aria-posinset": itemIndex + 1,
|
|
252
253
|
role: "option",
|
|
253
254
|
ref: buttonItemRef,
|
|
254
|
-
isDisabled: itemIsDisabled
|
|
255
|
+
isDisabled: itemIsDisabled,
|
|
256
|
+
testId: editorExperiment('platform_synced_block', true) && fg('platform_synced_block_dogfooding') ? item.testId : undefined
|
|
255
257
|
// @ts-ignore
|
|
256
258
|
,
|
|
257
259
|
css: listItemClasses
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.2",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
46
46
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
47
47
|
"@atlaskit/theme": "^21.0.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^16.4.0",
|
|
49
49
|
"@atlaskit/tokens": "^9.0.0",
|
|
50
50
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"w3c-keyname": "^2.1.8"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@atlaskit/editor-common": "^111.
|
|
60
|
+
"@atlaskit/editor-common": "^111.2.0",
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-dom": "^18.2.0",
|
|
63
63
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -101,6 +101,9 @@
|
|
|
101
101
|
},
|
|
102
102
|
"platform_editor_refactor_view_more": {
|
|
103
103
|
"type": "boolean"
|
|
104
|
+
},
|
|
105
|
+
"platform_synced_block_dogfooding": {
|
|
106
|
+
"type": "boolean"
|
|
104
107
|
}
|
|
105
108
|
}
|
|
106
109
|
}
|