@atlaskit/editor-plugin-type-ahead 6.5.4 → 6.5.6
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,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 6.5.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bcd51cc2f9737`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bcd51cc2f9737) -
|
|
8
|
+
EDITOR-2489: Clean up platform_editor_ai_rovo_rebrand
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 6.5.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`21fe79119fe74`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/21fe79119fe74) -
|
|
16
|
+
EDITOR-2447 Bump adf-schema to 51.3.2
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 6.5.4
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -43,23 +43,6 @@ var itemIcon = exports.itemIcon = (0, _react2.css)({
|
|
|
43
43
|
height: "var(--ds-space-500, 40px)"
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
-
var itemIconSize = (0, _react2.css)({
|
|
47
|
-
width: "var(--ds-space-400, 32px)",
|
|
48
|
-
height: "var(--ds-space-400, 32px)",
|
|
49
|
-
// Icon svgs may contain nested svg, which are likely smaller than 32px
|
|
50
|
-
// Hence only change the parent svg
|
|
51
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
52
|
-
'svg:first-of-type': {
|
|
53
|
-
width: "var(--ds-space-400, 32px)",
|
|
54
|
-
height: "var(--ds-space-400, 32px)"
|
|
55
|
-
},
|
|
56
|
-
// AI icons may contain div as container of the icon
|
|
57
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
58
|
-
div: {
|
|
59
|
-
width: "var(--ds-space-400, 32px)",
|
|
60
|
-
height: "var(--ds-space-400, 32px)"
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
46
|
var itemIconSizeUpdated = (0, _react2.css)({
|
|
64
47
|
width: "var(--ds-space-400, 32px)",
|
|
65
48
|
height: "var(--ds-space-400, 32px)",
|
|
@@ -219,7 +202,7 @@ var TypeAheadListItem = exports.TypeAheadListItem = /*#__PURE__*/_react.default.
|
|
|
219
202
|
customRenderItem = item.render;
|
|
220
203
|
var elementIcon = (0, _react.useMemo)(function () {
|
|
221
204
|
return (0, _react2.jsx)("div", {
|
|
222
|
-
css: [itemIcon, moreElementsInQuickInsertViewEnabled
|
|
205
|
+
css: [itemIcon, moreElementsInQuickInsertViewEnabled && itemIconSizeUpdated]
|
|
223
206
|
}, icon ? icon() : (0, _react2.jsx)(FallbackIcon, {
|
|
224
207
|
label: title
|
|
225
208
|
}));
|
|
@@ -33,23 +33,6 @@ export const itemIcon = css({
|
|
|
33
33
|
height: "var(--ds-space-500, 40px)"
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
const itemIconSize = css({
|
|
37
|
-
width: "var(--ds-space-400, 32px)",
|
|
38
|
-
height: "var(--ds-space-400, 32px)",
|
|
39
|
-
// Icon svgs may contain nested svg, which are likely smaller than 32px
|
|
40
|
-
// Hence only change the parent svg
|
|
41
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
42
|
-
'svg:first-of-type': {
|
|
43
|
-
width: "var(--ds-space-400, 32px)",
|
|
44
|
-
height: "var(--ds-space-400, 32px)"
|
|
45
|
-
},
|
|
46
|
-
// AI icons may contain div as container of the icon
|
|
47
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
48
|
-
div: {
|
|
49
|
-
width: "var(--ds-space-400, 32px)",
|
|
50
|
-
height: "var(--ds-space-400, 32px)"
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
36
|
const itemIconSizeUpdated = css({
|
|
54
37
|
width: "var(--ds-space-400, 32px)",
|
|
55
38
|
height: "var(--ds-space-400, 32px)",
|
|
@@ -233,7 +216,7 @@ export const TypeAheadListItem = /*#__PURE__*/React.memo(({
|
|
|
233
216
|
} = item;
|
|
234
217
|
const elementIcon = useMemo(() => {
|
|
235
218
|
return jsx("div", {
|
|
236
|
-
css: [itemIcon, moreElementsInQuickInsertViewEnabled
|
|
219
|
+
css: [itemIcon, moreElementsInQuickInsertViewEnabled && itemIconSizeUpdated]
|
|
237
220
|
}, icon ? icon() : jsx(FallbackIcon, {
|
|
238
221
|
label: title
|
|
239
222
|
}));
|
|
@@ -35,23 +35,6 @@ export var itemIcon = css({
|
|
|
35
35
|
height: "var(--ds-space-500, 40px)"
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
var itemIconSize = css({
|
|
39
|
-
width: "var(--ds-space-400, 32px)",
|
|
40
|
-
height: "var(--ds-space-400, 32px)",
|
|
41
|
-
// Icon svgs may contain nested svg, which are likely smaller than 32px
|
|
42
|
-
// Hence only change the parent svg
|
|
43
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
44
|
-
'svg:first-of-type': {
|
|
45
|
-
width: "var(--ds-space-400, 32px)",
|
|
46
|
-
height: "var(--ds-space-400, 32px)"
|
|
47
|
-
},
|
|
48
|
-
// AI icons may contain div as container of the icon
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
50
|
-
div: {
|
|
51
|
-
width: "var(--ds-space-400, 32px)",
|
|
52
|
-
height: "var(--ds-space-400, 32px)"
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
38
|
var itemIconSizeUpdated = css({
|
|
56
39
|
width: "var(--ds-space-400, 32px)",
|
|
57
40
|
height: "var(--ds-space-400, 32px)",
|
|
@@ -211,7 +194,7 @@ export var TypeAheadListItem = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
211
194
|
customRenderItem = item.render;
|
|
212
195
|
var elementIcon = useMemo(function () {
|
|
213
196
|
return jsx("div", {
|
|
214
|
-
css: [itemIcon, moreElementsInQuickInsertViewEnabled
|
|
197
|
+
css: [itemIcon, moreElementsInQuickInsertViewEnabled && itemIconSizeUpdated]
|
|
215
198
|
}, icon ? icon() : jsx(FallbackIcon, {
|
|
216
199
|
label: title
|
|
217
200
|
}));
|
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.6",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^51.3.
|
|
32
|
+
"@atlaskit/adf-schema": "^51.3.2",
|
|
33
33
|
"@atlaskit/editor-element-browser": "^4.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
35
35
|
"@atlaskit/editor-plugin-connectivity": "^6.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
47
47
|
"@atlaskit/prosemirror-input-rules": "^3.5.0",
|
|
48
48
|
"@atlaskit/theme": "^21.0.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^13.19.0",
|
|
50
50
|
"@atlaskit/tokens": "^7.0.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"@emotion/react": "^11.7.1",
|
|
@@ -107,9 +107,6 @@
|
|
|
107
107
|
"platform_editor_refactor_view_more": {
|
|
108
108
|
"type": "boolean"
|
|
109
109
|
},
|
|
110
|
-
"platform_editor_ai_rovo_rebrand": {
|
|
111
|
-
"type": "boolean"
|
|
112
|
-
},
|
|
113
110
|
"platform_editor_a11y_remove_input_query_on_click": {
|
|
114
111
|
"type": "boolean"
|
|
115
112
|
},
|