@atlaskit/editor-plugin-floating-toolbar 1.6.0 → 1.7.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 +12 -0
- package/dist/cjs/ui/DropdownMenu.js +10 -6
- package/dist/es2019/ui/DropdownMenu.js +10 -6
- package/dist/esm/ui/DropdownMenu.js +10 -6
- package/package.json +115 -115
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#111788](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111788)
|
|
8
|
+
[`5a286a37540ff`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5a286a37540ff) -
|
|
9
|
+
[ux] [EDF-770] Show agents in the floating toolbar dropdown
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 1.6.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -68,12 +68,16 @@ var DropdownMenuItem = function DropdownMenuItem(props) {
|
|
|
68
68
|
intl = props.intl;
|
|
69
69
|
var itemSelected = item.selected;
|
|
70
70
|
var iconBefore = (0, _react.useMemo)(function () {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
if (item.icon) {
|
|
72
|
+
return item.icon;
|
|
73
|
+
} else {
|
|
74
|
+
return (0, _react2.jsx)(SelectedIconBefore, {
|
|
75
|
+
itemSelected: itemSelected,
|
|
76
|
+
showSelected: showSelected,
|
|
77
|
+
intl: intl
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}, [itemSelected, showSelected, intl, item.icon]);
|
|
77
81
|
var _useState = (0, _react.useState)(item.tooltip || ''),
|
|
78
82
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
79
83
|
tooltipContent = _useState2[0],
|
|
@@ -60,12 +60,16 @@ const DropdownMenuItem = props => {
|
|
|
60
60
|
} = props;
|
|
61
61
|
const itemSelected = item.selected;
|
|
62
62
|
const iconBefore = useMemo(() => {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
if (item.icon) {
|
|
64
|
+
return item.icon;
|
|
65
|
+
} else {
|
|
66
|
+
return jsx(SelectedIconBefore, {
|
|
67
|
+
itemSelected: itemSelected,
|
|
68
|
+
showSelected: showSelected,
|
|
69
|
+
intl: intl
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}, [itemSelected, showSelected, intl, item.icon]);
|
|
69
73
|
const [tooltipContent, setTooltipContent] = useState(item.tooltip || '');
|
|
70
74
|
const handleItemMouseOut = useCallback(() => {
|
|
71
75
|
setTooltipContent('');
|
|
@@ -59,12 +59,16 @@ var DropdownMenuItem = function DropdownMenuItem(props) {
|
|
|
59
59
|
intl = props.intl;
|
|
60
60
|
var itemSelected = item.selected;
|
|
61
61
|
var iconBefore = useMemo(function () {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
if (item.icon) {
|
|
63
|
+
return item.icon;
|
|
64
|
+
} else {
|
|
65
|
+
return jsx(SelectedIconBefore, {
|
|
66
|
+
itemSelected: itemSelected,
|
|
67
|
+
showSelected: showSelected,
|
|
68
|
+
intl: intl
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}, [itemSelected, showSelected, intl, item.icon]);
|
|
68
72
|
var _useState = useState(item.tooltip || ''),
|
|
69
73
|
_useState2 = _slicedToArray(_useState, 2),
|
|
70
74
|
tooltipContent = _useState2[0],
|
package/package.json
CHANGED
|
@@ -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-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
+
"version": "1.7.0",
|
|
4
|
+
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Editor: Lego",
|
|
12
|
+
"singleton": true,
|
|
13
|
+
"releaseModel": "continuous",
|
|
14
|
+
"runReact18": false
|
|
15
|
+
},
|
|
16
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
17
|
+
"main": "dist/cjs/index.js",
|
|
18
|
+
"module": "dist/esm/index.js",
|
|
19
|
+
"module:es2019": "dist/es2019/index.js",
|
|
20
|
+
"types": "dist/types/index.d.ts",
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"atlaskit:src": "src/index.ts",
|
|
23
|
+
"af:exports": {
|
|
24
|
+
".": "./src/index.ts"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@atlaskit/adf-utils": "^19.2.0",
|
|
28
|
+
"@atlaskit/button": "^17.17.0",
|
|
29
|
+
"@atlaskit/checkbox": "^13.4.0",
|
|
30
|
+
"@atlaskit/editor-common": "^82.8.0",
|
|
31
|
+
"@atlaskit/editor-palette": "1.6.0",
|
|
32
|
+
"@atlaskit/editor-plugin-block-controls": "^1.4.1",
|
|
33
|
+
"@atlaskit/editor-plugin-context-panel": "^1.1.0",
|
|
34
|
+
"@atlaskit/editor-plugin-copy-button": "^1.1.0",
|
|
35
|
+
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
36
|
+
"@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
|
|
37
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^1.2.0",
|
|
38
|
+
"@atlaskit/editor-plugin-extension": "^1.6.0",
|
|
39
|
+
"@atlaskit/editor-plugin-table": "^7.17.0",
|
|
40
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
41
|
+
"@atlaskit/emoji": "^67.6.0",
|
|
42
|
+
"@atlaskit/icon": "^22.3.0",
|
|
43
|
+
"@atlaskit/menu": "^2.4.0",
|
|
44
|
+
"@atlaskit/modal-dialog": "^12.13.0",
|
|
45
|
+
"@atlaskit/platform-feature-flags": "^0.2.5",
|
|
46
|
+
"@atlaskit/select": "^17.10.0",
|
|
47
|
+
"@atlaskit/theme": "^12.9.0",
|
|
48
|
+
"@atlaskit/tokens": "^1.50.0",
|
|
49
|
+
"@atlaskit/tooltip": "^18.4.0",
|
|
50
|
+
"@babel/runtime": "^7.0.0",
|
|
51
|
+
"@emotion/react": "^11.7.1",
|
|
52
|
+
"lodash": "^4.17.21",
|
|
53
|
+
"raf-schd": "^4.0.3",
|
|
54
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
55
|
+
"react-loadable": "^5.1.0"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"react": "^16.8.0"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@atlaskit/visual-regression": "*",
|
|
62
|
+
"@testing-library/dom": "^8.17.1",
|
|
63
|
+
"@testing-library/react": "^12.1.5",
|
|
64
|
+
"@testing-library/user-event": "^14.4.3",
|
|
65
|
+
"enzyme": "^3.10.0",
|
|
66
|
+
"react-dom": "^16.8.0",
|
|
67
|
+
"typescript": "~5.4.2",
|
|
68
|
+
"wait-for-expect": "^1.2.0"
|
|
69
|
+
},
|
|
70
|
+
"techstack": {
|
|
71
|
+
"@atlassian/frontend": {
|
|
72
|
+
"import-structure": [
|
|
73
|
+
"atlassian-conventions"
|
|
74
|
+
],
|
|
75
|
+
"circular-dependencies": [
|
|
76
|
+
"file-and-folder-level"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"@repo/internal": {
|
|
80
|
+
"dom-events": "use-bind-event-listener",
|
|
81
|
+
"analytics": [
|
|
82
|
+
"analytics-next"
|
|
83
|
+
],
|
|
84
|
+
"design-tokens": [
|
|
85
|
+
"color"
|
|
86
|
+
],
|
|
87
|
+
"theming": [
|
|
88
|
+
"react-context"
|
|
89
|
+
],
|
|
90
|
+
"ui-components": [
|
|
91
|
+
"lite-mode"
|
|
92
|
+
],
|
|
93
|
+
"deprecation": "no-deprecated-imports",
|
|
94
|
+
"styling": [
|
|
95
|
+
"emotion",
|
|
96
|
+
"emotion"
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"typesVersions": {
|
|
101
|
+
">=4.5 <4.9": {
|
|
102
|
+
"*": [
|
|
103
|
+
"dist/types-ts4.5/*",
|
|
104
|
+
"dist/types-ts4.5/index.d.ts"
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"platform-feature-flags": {
|
|
109
|
+
"platform.editor.a11y-floating-toolbar-markup_vexmo": {
|
|
110
|
+
"type": "boolean"
|
|
111
|
+
},
|
|
112
|
+
"platform.editor.a11y-table-floating-toolbar-dropdown-menu_zkb33": {
|
|
113
|
+
"type": "boolean"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|