@atlaskit/editor-plugin-type-ahead 1.11.4 → 1.12.0
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 +18 -0
- package/dist/cjs/pm-plugins/main.js +0 -2
- package/dist/cjs/ui/TypeAheadListItem.js +1 -1
- package/dist/cjs/ui/hooks/use-item-insert.js +1 -4
- package/dist/es2019/pm-plugins/main.js +0 -2
- package/dist/es2019/ui/TypeAheadListItem.js +1 -1
- package/dist/es2019/ui/hooks/use-item-insert.js +1 -4
- package/dist/esm/pm-plugins/main.js +0 -2
- package/dist/esm/ui/TypeAheadListItem.js +1 -1
- package/dist/esm/ui/hooks/use-item-insert.js +1 -4
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-type-ahead
|
|
2
2
|
|
|
3
|
+
## 1.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
|
|
8
|
+
[`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
|
|
9
|
+
Update `React` from v16 to v18
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 1.11.5
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 1.11.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -64,8 +64,6 @@ function createPlugin(_ref) {
|
|
|
64
64
|
inputMethod: null
|
|
65
65
|
};
|
|
66
66
|
},
|
|
67
|
-
// Ignored via go/ees005
|
|
68
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
69
67
|
apply: function apply(tr, currentPluginState, oldEditorState, state) {
|
|
70
68
|
var customStep = hasValidTypeAheadStep(tr);
|
|
71
69
|
var nextPluginState = reducer(tr, currentPluginState, customStep);
|
|
@@ -74,7 +74,7 @@ var itemTitleOverride = (0, _react2.css)({
|
|
|
74
74
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
75
75
|
});
|
|
76
76
|
var itemDescription = (0, _react2.css)({
|
|
77
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography
|
|
78
78
|
fontSize: "".concat((0, _editorSharedStyles.relativeFontSizeToBase16)(12), ";"),
|
|
79
79
|
color: "".concat("var(--ds-text-subtlest, ".concat(_colors.N200, ")"), ";"),
|
|
80
80
|
marginTop: "var(--ds-space-050, 4px)".concat(";")
|
|
@@ -31,10 +31,7 @@ var insertRawQuery = function insertRawQuery(_ref) {
|
|
|
31
31
|
view.focus();
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
var useItemInsert = exports.useItemInsert = function useItemInsert(triggerHandler, editorView, items, api
|
|
35
|
-
// Ignored via go/ees005
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
37
|
-
) {
|
|
34
|
+
var useItemInsert = exports.useItemInsert = function useItemInsert(triggerHandler, editorView, items, api) {
|
|
38
35
|
var editorViewRef = (0, _react.useRef)(editorView);
|
|
39
36
|
var itemsRef = (0, _react.useRef)(items);
|
|
40
37
|
var onTextInsert = (0, _react.useCallback)(function (_ref2) {
|
|
@@ -58,8 +58,6 @@ export function createPlugin({
|
|
|
58
58
|
inputMethod: null
|
|
59
59
|
};
|
|
60
60
|
},
|
|
61
|
-
// Ignored via go/ees005
|
|
62
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
63
61
|
apply(tr, currentPluginState, oldEditorState, state) {
|
|
64
62
|
const customStep = hasValidTypeAheadStep(tr);
|
|
65
63
|
const nextPluginState = reducer(tr, currentPluginState, customStep);
|
|
@@ -68,7 +68,7 @@ const itemTitleOverride = css({
|
|
|
68
68
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
69
69
|
});
|
|
70
70
|
const itemDescription = css({
|
|
71
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography
|
|
72
72
|
fontSize: `${relativeFontSizeToBase16(12)};`,
|
|
73
73
|
color: `${`var(--ds-text-subtlest, ${N200})`};`,
|
|
74
74
|
marginTop: `${"var(--ds-space-050, 4px)"};`
|
|
@@ -27,10 +27,7 @@ const insertRawQuery = ({
|
|
|
27
27
|
view.focus();
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
export const useItemInsert = (triggerHandler, editorView, items, api
|
|
31
|
-
// Ignored via go/ees005
|
|
32
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
33
|
-
) => {
|
|
30
|
+
export const useItemInsert = (triggerHandler, editorView, items, api) => {
|
|
34
31
|
const editorViewRef = useRef(editorView);
|
|
35
32
|
const itemsRef = useRef(items);
|
|
36
33
|
const onTextInsert = useCallback(({
|
|
@@ -58,8 +58,6 @@ export function createPlugin(_ref) {
|
|
|
58
58
|
inputMethod: null
|
|
59
59
|
};
|
|
60
60
|
},
|
|
61
|
-
// Ignored via go/ees005
|
|
62
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
63
61
|
apply: function apply(tr, currentPluginState, oldEditorState, state) {
|
|
64
62
|
var customStep = hasValidTypeAheadStep(tr);
|
|
65
63
|
var nextPluginState = reducer(tr, currentPluginState, customStep);
|
|
@@ -65,7 +65,7 @@ var itemTitleOverride = css({
|
|
|
65
65
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
66
66
|
});
|
|
67
67
|
var itemDescription = css({
|
|
68
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography
|
|
69
69
|
fontSize: "".concat(relativeFontSizeToBase16(12), ";"),
|
|
70
70
|
color: "".concat("var(--ds-text-subtlest, ".concat(N200, ")"), ";"),
|
|
71
71
|
marginTop: "var(--ds-space-050, 4px)".concat(";")
|
|
@@ -25,10 +25,7 @@ var insertRawQuery = function insertRawQuery(_ref) {
|
|
|
25
25
|
view.focus();
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
export var useItemInsert = function useItemInsert(triggerHandler, editorView, items, api
|
|
29
|
-
// Ignored via go/ees005
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
31
|
-
) {
|
|
28
|
+
export var useItemInsert = function useItemInsert(triggerHandler, editorView, items, api) {
|
|
32
29
|
var editorViewRef = useRef(editorView);
|
|
33
30
|
var itemsRef = useRef(items);
|
|
34
31
|
var onTextInsert = useCallback(function (_ref2) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-type-ahead",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "Type-ahead plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
36
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
35
|
+
"@atlaskit/editor-common": "^99.6.0",
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^1.11.0",
|
|
37
37
|
"@atlaskit/editor-plugin-connectivity": "^1.1.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
40
|
-
"@atlaskit/heading": "^4.
|
|
41
|
-
"@atlaskit/menu": "^2.
|
|
40
|
+
"@atlaskit/heading": "^4.1.0",
|
|
41
|
+
"@atlaskit/menu": "^2.14.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
43
|
-
"@atlaskit/primitives": "^13.
|
|
43
|
+
"@atlaskit/primitives": "^13.4.0",
|
|
44
44
|
"@atlaskit/prosemirror-input-rules": "^3.2.0",
|
|
45
|
-
"@atlaskit/theme": "^14.
|
|
46
|
-
"@atlaskit/tokens": "^
|
|
45
|
+
"@atlaskit/theme": "^14.1.0",
|
|
46
|
+
"@atlaskit/tokens": "^3.3.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@emotion/react": "^11.7.1",
|
|
49
49
|
"lodash": "^4.17.21",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@af/visual-regression": "*",
|
|
62
62
|
"@atlaskit/ssr": "*",
|
|
63
63
|
"@atlaskit/visual-regression": "*",
|
|
64
|
-
"@testing-library/react": "^
|
|
64
|
+
"@testing-library/react": "^13.4.0",
|
|
65
65
|
"@types/react-virtualized": "^9.18.12",
|
|
66
66
|
"typescript": "~5.4.2",
|
|
67
67
|
"wait-for-expect": "^1.2.0"
|