@atlaskit/editor-toolbar 1.8.1 → 1.9.1
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 +21 -0
- package/dist/cjs/hooks/ui-context.js +3 -0
- package/dist/cjs/ui/ResponsiveContainer.compiled.css +5 -0
- package/dist/cjs/ui/ResponsiveContainer.js +8 -1
- package/dist/cjs/ui/ToolbarButton.js +6 -3
- package/dist/cjs/ui/ToolbarNestedDropdownMenu.js +2 -0
- package/dist/es2019/hooks/ui-context.js +3 -0
- package/dist/es2019/ui/ResponsiveContainer.compiled.css +5 -0
- package/dist/es2019/ui/ResponsiveContainer.js +8 -1
- package/dist/es2019/ui/ToolbarButton.js +6 -3
- package/dist/es2019/ui/ToolbarNestedDropdownMenu.js +2 -0
- package/dist/esm/hooks/ui-context.js +3 -0
- package/dist/esm/ui/ResponsiveContainer.compiled.css +5 -0
- package/dist/esm/ui/ResponsiveContainer.js +8 -1
- package/dist/esm/ui/ToolbarButton.js +6 -3
- package/dist/esm/ui/ToolbarNestedDropdownMenu.js +2 -0
- package/dist/types/hooks/ui-context.d.ts +7 -1
- package/dist/types/ui/ResponsiveContainer.d.ts +1 -1
- package/dist/types/ui/ToolbarButton.d.ts +1 -0
- package/dist/types/ui/ToolbarNestedDropdownMenu.d.ts +4 -3
- package/dist/types-ts4.5/hooks/ui-context.d.ts +7 -1
- package/dist/types-ts4.5/ui/ResponsiveContainer.d.ts +1 -1
- package/dist/types-ts4.5/ui/ToolbarButton.d.ts +1 -0
- package/dist/types-ts4.5/ui/ToolbarNestedDropdownMenu.d.ts +4 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a58a80f7cd055`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a58a80f7cd055) -
|
|
8
|
+
[ux] increase fullpage editor toolbar viewpoint widths for lg and xl
|
|
9
|
+
|
|
10
|
+
## 1.9.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`450368a4cccf5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/450368a4cccf5) -
|
|
15
|
+
Support optional shouldIgnoreCloseEvent prop in ToolbarNestedDropdownMenu.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`4f322a101cf47`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4f322a101cf47) -
|
|
20
|
+
Adds a disabledWithoutInteractionLogic prop to the toolbar to selectively enable some buttons
|
|
21
|
+
before editor interaction
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 1.8.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -11,6 +11,7 @@ var ToolbarUIContext = /*#__PURE__*/(0, _react.createContext)({
|
|
|
11
11
|
onDropdownOpenChanged: function onDropdownOpenChanged() {},
|
|
12
12
|
preventDefaultOnMouseDown: false,
|
|
13
13
|
isDisabled: false,
|
|
14
|
+
disabledWithoutInteractionLogic: false,
|
|
14
15
|
popupsMountPoint: undefined,
|
|
15
16
|
fireAnalyticsEvent: undefined,
|
|
16
17
|
keyboardNavigation: undefined
|
|
@@ -31,6 +32,7 @@ var ToolbarUIProvider = exports.ToolbarUIProvider = function ToolbarUIProvider(_
|
|
|
31
32
|
onDropdownOpenChanged = _ref.onDropdownOpenChanged,
|
|
32
33
|
preventDefaultOnMouseDown = _ref.preventDefaultOnMouseDown,
|
|
33
34
|
isDisabled = _ref.isDisabled,
|
|
35
|
+
disabledWithoutInteractionLogic = _ref.disabledWithoutInteractionLogic,
|
|
34
36
|
popupsMountPoint = _ref.popupsMountPoint,
|
|
35
37
|
popupsBoundariesElement = _ref.popupsBoundariesElement,
|
|
36
38
|
popupsScrollableElement = _ref.popupsScrollableElement,
|
|
@@ -42,6 +44,7 @@ var ToolbarUIProvider = exports.ToolbarUIProvider = function ToolbarUIProvider(_
|
|
|
42
44
|
onDropdownOpenChanged: onDropdownOpenChanged,
|
|
43
45
|
preventDefaultOnMouseDown: preventDefaultOnMouseDown,
|
|
44
46
|
isDisabled: isDisabled,
|
|
47
|
+
disabledWithoutInteractionLogic: disabledWithoutInteractionLogic,
|
|
45
48
|
popupsMountPoint: popupsMountPoint,
|
|
46
49
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
47
50
|
popupsScrollableElement: popupsScrollableElement,
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
@container editor-area (max-width: 533px){._u47mglyw .show-above-md{display:none}._rut51ule .show-below-md{display:block}}
|
|
19
19
|
@container editor-area (max-width: 700px){._fj5dglyw .show-above-lg{display:none}._5wt61ule .show-below-lg{display:block}}
|
|
20
20
|
@container toolbar-container (max-width: 1023px){._luoiglyw .show-above-xl{display:none}._2ojp1ule .show-below-xl{display:block}._tzm6glyw._tzm6glyw .show-above-xl{display:none}._ktne1ule._ktne1ule .show-below-xl{display:block}}
|
|
21
|
+
@container toolbar-container (max-width: 1125px){._1nfkglyw .show-above-lg{display:none}._wne21ule .show-below-lg{display:block}}
|
|
22
|
+
@container toolbar-container (max-width: 1231px){._aw2dglyw .show-above-xl{display:none}._1gtx1ule .show-below-xl{display:block}}
|
|
21
23
|
@container toolbar-container (max-width: 209px){._15nrglyw._15nrglyw .show-above-sm{display:none}._cm5a1ule._cm5a1ule .show-below-sm{display:block}}
|
|
22
24
|
@container toolbar-container (max-width: 279px){._152xglyw._152xglyw .show-above-sm{display:none}._1cn41ule._1cn41ule .show-below-sm{display:block}}
|
|
23
25
|
@container toolbar-container (max-width: 295px){._kkyiglyw._kkyiglyw .show-above-sm{display:none}._1dj81ule._1dj81ule .show-below-sm{display:block}}
|
|
@@ -37,6 +39,8 @@
|
|
|
37
39
|
@container toolbar-container (max-width: 721px){._1nqyglyw .show-above-md{display:none}._jd611ule .show-below-md{display:block}}
|
|
38
40
|
@container toolbar-container (max-width: 857px){._syrzglyw .show-above-lg{display:none}._fr6v1ule .show-below-lg{display:block}}
|
|
39
41
|
@container toolbar-container (min-width: 1024px){._1je21ule .show-only-xl{display:block}._87bn1ule._87bn1ule .show-only-xl{display:block}}
|
|
42
|
+
@container toolbar-container (min-width: 1126px) and (max-width: 1231px){._1mri1ule .show-only-lg{display:block}}
|
|
43
|
+
@container toolbar-container (min-width: 1232px){._17b71ule .show-only-xl{display:block}}
|
|
40
44
|
@container toolbar-container (min-width: 210px) and (max-width: 407px){._7qjy1ule._7qjy1ule .show-only-sm{display:block}}
|
|
41
45
|
@container toolbar-container (min-width: 280px) and (max-width: 419px){._4cj71ule._4cj71ule .show-only-sm{display:block}}
|
|
42
46
|
@container toolbar-container (min-width: 280px) and (max-width: 506px){._1j4d1ule._1j4d1ule .show-only-sm{display:block}}
|
|
@@ -55,6 +59,7 @@
|
|
|
55
59
|
@container toolbar-container (min-width: 650px) and (max-width: 1023px){._1ym01ule._1ym01ule .show-only-lg{display:block}}
|
|
56
60
|
@container toolbar-container (min-width: 662px) and (max-width: 1023px){._wt211ule._wt211ule .show-only-lg{display:block}}
|
|
57
61
|
@container toolbar-container (min-width: 679px) and (max-width: 1023px){._g5yu1ule._g5yu1ule .show-only-lg{display:block}}
|
|
62
|
+
@container toolbar-container (min-width: 722px) and (max-width: 1125px){._gbo31ule .show-only-md{display:block}}
|
|
58
63
|
@container toolbar-container (min-width: 722px) and (max-width: 857px){._biad1ule .show-only-md{display:block}}
|
|
59
64
|
@container toolbar-container (min-width: 858px) and (max-width: 1023px){._1ana1ule .show-only-lg{display:block}}
|
|
60
65
|
@media (max-width:700px){._hmx4glyw .show-above-lg{display:none}._1rrm1ule .show-below-lg{display:block}}
|
|
@@ -19,6 +19,7 @@ var styles = {
|
|
|
19
19
|
responsiveContainer: "_1bsb1osq _7cca15wb _1f38ptqj _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw _1ir3glyw _1vp2glyw _1eadglyw _a6zzglyw",
|
|
20
20
|
responsiveContainerFullPage: "_1bsb1ns9 _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw _1ir3glyw _1vp2glyw _1eadglyw _a6zzglyw",
|
|
21
21
|
fullpage: "_luoiglyw _2ojp1ule _11uvglyw _fj2k1ule _1nqyglyw _jd611ule _syrzglyw _fr6v1ule _1je21ule _1btx1ule _biad1ule _1ana1ule",
|
|
22
|
+
fullpageUpdated: "_1nfkglyw _wne21ule _aw2dglyw _1gtx1ule _11uvglyw _fj2k1ule _1nqyglyw _jd611ule _1mri1ule _17b71ule _1btx1ule _gbo31ule",
|
|
22
23
|
reduced: "_kkyiglyw _1dj81ule _1cg81ule _j3qgglyw _xh1i1ule _oj3l1ule _13s9glyw _4nul1ule _wt211ule _tzm6glyw _ktne1ule _87bn1ule",
|
|
23
24
|
jiraIssue: "_152xglyw _1cn41ule _4cj71ule _afriglyw _ozjb1ule _w81r1ule _1mckglyw _r2nv1ule _1ym01ule _tzm6glyw _ktne1ule _87bn1ule",
|
|
24
25
|
jiraIssueUpdated: "_152xglyw _1cn41ule _1j4d1ule _1n52glyw _1nd71ule _lf431ule _103bglyw _1p0z1ule _g5yu1ule _tzm6glyw _ktne1ule _87bn1ule",
|
|
@@ -41,6 +42,7 @@ var presetStyleMap = {
|
|
|
41
42
|
'confluence-comment': styles.confluenceComment
|
|
42
43
|
};
|
|
43
44
|
var updatedPresetStyleMap = {
|
|
45
|
+
fullpage: styles.fullpageUpdated,
|
|
44
46
|
'jira-issue': styles.jiraIssueUpdated,
|
|
45
47
|
'jsm-comment': styles.jsmCommentUpdated
|
|
46
48
|
};
|
|
@@ -90,7 +92,12 @@ var updatedPresetStyleMap = {
|
|
|
90
92
|
var ResponsiveContainer = exports.ResponsiveContainer = function ResponsiveContainer(_ref) {
|
|
91
93
|
var children = _ref.children,
|
|
92
94
|
breakpointPreset = _ref.breakpointPreset;
|
|
93
|
-
var isUpdatedConfig =
|
|
95
|
+
var isUpdatedConfig = function () {
|
|
96
|
+
if (breakpointPreset === 'fullpage') {
|
|
97
|
+
return (0, _expValEquals.expValEquals)('platform_editor_ai_improve_formatting_toolbar', 'isEnabled', true);
|
|
98
|
+
}
|
|
99
|
+
return (0, _expValEquals.expValEquals)('platform_editor_toolbar_update_jira_config', 'isEnabled', true) && breakpointPreset in updatedPresetStyleMap;
|
|
100
|
+
}();
|
|
94
101
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
95
102
|
xcss: (0, _css.cx)(breakpointPreset === 'fullpage' ? styles.responsiveContainerFullPage : styles.responsiveContainer, isUpdatedConfig ? updatedPresetStyleMap[breakpointPreset] : presetStyleMap[breakpointPreset])
|
|
96
103
|
}, children);
|
|
@@ -35,11 +35,14 @@ var ToolbarButton = exports.ToolbarButton = /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
35
35
|
isDisabled = _ref.isDisabled,
|
|
36
36
|
ariaKeyshortcuts = _ref.ariaKeyshortcuts,
|
|
37
37
|
label = _ref.label,
|
|
38
|
-
interactionName = _ref.interactionName
|
|
38
|
+
interactionName = _ref.interactionName,
|
|
39
|
+
ignoreInteractionDisabled = _ref.ignoreInteractionDisabled;
|
|
39
40
|
var _useToolbarUI = (0, _uiContext.useToolbarUI)(),
|
|
40
41
|
preventDefaultOnMouseDown = _useToolbarUI.preventDefaultOnMouseDown,
|
|
41
|
-
ctxDisabled = _useToolbarUI.isDisabled
|
|
42
|
-
|
|
42
|
+
ctxDisabled = _useToolbarUI.isDisabled,
|
|
43
|
+
disabledWithoutInteractionLogic = _useToolbarUI.disabledWithoutInteractionLogic;
|
|
44
|
+
// When ignoreInteractionDisabled=true, only use the disabled state without the interaction check
|
|
45
|
+
var disabled = Boolean((ignoreInteractionDisabled ? disabledWithoutInteractionLogic : ctxDisabled) || isDisabled);
|
|
43
46
|
return /*#__PURE__*/_react.default.createElement(_compiled.Pressable, {
|
|
44
47
|
ref: ref,
|
|
45
48
|
xcss: (0, _css.cx)(styles.button, disabled ? styles.disabled : isSelected ? styles.selected : styles.enabled),
|
|
@@ -35,11 +35,13 @@ var ToolbarNestedDropdownMenu = exports.ToolbarNestedDropdownMenu = function Too
|
|
|
35
35
|
_onClick = _ref.onClick,
|
|
36
36
|
_ref$shouldFitContain = _ref.shouldFitContainer,
|
|
37
37
|
shouldFitContainer = _ref$shouldFitContain === void 0 ? false : _ref$shouldFitContain,
|
|
38
|
+
shouldIgnoreCloseEvent = _ref.shouldIgnoreCloseEvent,
|
|
38
39
|
shouldTitleWrap = _ref.shouldTitleWrap,
|
|
39
40
|
tooltipContent = _ref.tooltipContent,
|
|
40
41
|
dataExtensionItemKey = _ref['data-extension-item-key'];
|
|
41
42
|
return /*#__PURE__*/React.createElement(_dropdownMenu.default, {
|
|
42
43
|
shouldFitContainer: shouldFitContainer,
|
|
44
|
+
shouldIgnoreCloseEvent: (0, _platformFeatureFlags.fg)('cc_blocks_changeboarding') ? shouldIgnoreCloseEvent : undefined,
|
|
43
45
|
placement: "right-start",
|
|
44
46
|
testId: dropdownTestId
|
|
45
47
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
@@ -3,6 +3,7 @@ const ToolbarUIContext = /*#__PURE__*/createContext({
|
|
|
3
3
|
onDropdownOpenChanged: () => {},
|
|
4
4
|
preventDefaultOnMouseDown: false,
|
|
5
5
|
isDisabled: false,
|
|
6
|
+
disabledWithoutInteractionLogic: false,
|
|
6
7
|
popupsMountPoint: undefined,
|
|
7
8
|
fireAnalyticsEvent: undefined,
|
|
8
9
|
keyboardNavigation: undefined
|
|
@@ -23,6 +24,7 @@ export const ToolbarUIProvider = ({
|
|
|
23
24
|
onDropdownOpenChanged,
|
|
24
25
|
preventDefaultOnMouseDown,
|
|
25
26
|
isDisabled,
|
|
27
|
+
disabledWithoutInteractionLogic,
|
|
26
28
|
popupsMountPoint,
|
|
27
29
|
popupsBoundariesElement,
|
|
28
30
|
popupsScrollableElement,
|
|
@@ -35,6 +37,7 @@ export const ToolbarUIProvider = ({
|
|
|
35
37
|
onDropdownOpenChanged,
|
|
36
38
|
preventDefaultOnMouseDown,
|
|
37
39
|
isDisabled,
|
|
40
|
+
disabledWithoutInteractionLogic,
|
|
38
41
|
popupsMountPoint,
|
|
39
42
|
popupsBoundariesElement,
|
|
40
43
|
popupsScrollableElement,
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
@container editor-area (max-width: 533px){._u47mglyw .show-above-md{display:none}._rut51ule .show-below-md{display:block}}
|
|
19
19
|
@container editor-area (max-width: 700px){._fj5dglyw .show-above-lg{display:none}._5wt61ule .show-below-lg{display:block}}
|
|
20
20
|
@container toolbar-container (max-width: 1023px){._luoiglyw .show-above-xl{display:none}._2ojp1ule .show-below-xl{display:block}._tzm6glyw._tzm6glyw .show-above-xl{display:none}._ktne1ule._ktne1ule .show-below-xl{display:block}}
|
|
21
|
+
@container toolbar-container (max-width: 1125px){._1nfkglyw .show-above-lg{display:none}._wne21ule .show-below-lg{display:block}}
|
|
22
|
+
@container toolbar-container (max-width: 1231px){._aw2dglyw .show-above-xl{display:none}._1gtx1ule .show-below-xl{display:block}}
|
|
21
23
|
@container toolbar-container (max-width: 209px){._15nrglyw._15nrglyw .show-above-sm{display:none}._cm5a1ule._cm5a1ule .show-below-sm{display:block}}
|
|
22
24
|
@container toolbar-container (max-width: 279px){._152xglyw._152xglyw .show-above-sm{display:none}._1cn41ule._1cn41ule .show-below-sm{display:block}}
|
|
23
25
|
@container toolbar-container (max-width: 295px){._kkyiglyw._kkyiglyw .show-above-sm{display:none}._1dj81ule._1dj81ule .show-below-sm{display:block}}
|
|
@@ -37,6 +39,8 @@
|
|
|
37
39
|
@container toolbar-container (max-width: 721px){._1nqyglyw .show-above-md{display:none}._jd611ule .show-below-md{display:block}}
|
|
38
40
|
@container toolbar-container (max-width: 857px){._syrzglyw .show-above-lg{display:none}._fr6v1ule .show-below-lg{display:block}}
|
|
39
41
|
@container toolbar-container (min-width: 1024px){._1je21ule .show-only-xl{display:block}._87bn1ule._87bn1ule .show-only-xl{display:block}}
|
|
42
|
+
@container toolbar-container (min-width: 1126px) and (max-width: 1231px){._1mri1ule .show-only-lg{display:block}}
|
|
43
|
+
@container toolbar-container (min-width: 1232px){._17b71ule .show-only-xl{display:block}}
|
|
40
44
|
@container toolbar-container (min-width: 210px) and (max-width: 407px){._7qjy1ule._7qjy1ule .show-only-sm{display:block}}
|
|
41
45
|
@container toolbar-container (min-width: 280px) and (max-width: 419px){._4cj71ule._4cj71ule .show-only-sm{display:block}}
|
|
42
46
|
@container toolbar-container (min-width: 280px) and (max-width: 506px){._1j4d1ule._1j4d1ule .show-only-sm{display:block}}
|
|
@@ -55,6 +59,7 @@
|
|
|
55
59
|
@container toolbar-container (min-width: 650px) and (max-width: 1023px){._1ym01ule._1ym01ule .show-only-lg{display:block}}
|
|
56
60
|
@container toolbar-container (min-width: 662px) and (max-width: 1023px){._wt211ule._wt211ule .show-only-lg{display:block}}
|
|
57
61
|
@container toolbar-container (min-width: 679px) and (max-width: 1023px){._g5yu1ule._g5yu1ule .show-only-lg{display:block}}
|
|
62
|
+
@container toolbar-container (min-width: 722px) and (max-width: 1125px){._gbo31ule .show-only-md{display:block}}
|
|
58
63
|
@container toolbar-container (min-width: 722px) and (max-width: 857px){._biad1ule .show-only-md{display:block}}
|
|
59
64
|
@container toolbar-container (min-width: 858px) and (max-width: 1023px){._1ana1ule .show-only-lg{display:block}}
|
|
60
65
|
@media (max-width:700px){._hmx4glyw .show-above-lg{display:none}._1rrm1ule .show-below-lg{display:block}}
|
|
@@ -12,6 +12,7 @@ const styles = {
|
|
|
12
12
|
responsiveContainer: "_1bsb1osq _7cca15wb _1f38ptqj _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw _1ir3glyw _1vp2glyw _1eadglyw _a6zzglyw",
|
|
13
13
|
responsiveContainerFullPage: "_1bsb1ns9 _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw _1ir3glyw _1vp2glyw _1eadglyw _a6zzglyw",
|
|
14
14
|
fullpage: "_luoiglyw _2ojp1ule _11uvglyw _fj2k1ule _1nqyglyw _jd611ule _syrzglyw _fr6v1ule _1je21ule _1btx1ule _biad1ule _1ana1ule",
|
|
15
|
+
fullpageUpdated: "_1nfkglyw _wne21ule _aw2dglyw _1gtx1ule _11uvglyw _fj2k1ule _1nqyglyw _jd611ule _1mri1ule _17b71ule _1btx1ule _gbo31ule",
|
|
15
16
|
reduced: "_kkyiglyw _1dj81ule _1cg81ule _j3qgglyw _xh1i1ule _oj3l1ule _13s9glyw _4nul1ule _wt211ule _tzm6glyw _ktne1ule _87bn1ule",
|
|
16
17
|
jiraIssue: "_152xglyw _1cn41ule _4cj71ule _afriglyw _ozjb1ule _w81r1ule _1mckglyw _r2nv1ule _1ym01ule _tzm6glyw _ktne1ule _87bn1ule",
|
|
17
18
|
jiraIssueUpdated: "_152xglyw _1cn41ule _1j4d1ule _1n52glyw _1nd71ule _lf431ule _103bglyw _1p0z1ule _g5yu1ule _tzm6glyw _ktne1ule _87bn1ule",
|
|
@@ -34,6 +35,7 @@ const presetStyleMap = {
|
|
|
34
35
|
'confluence-comment': styles.confluenceComment
|
|
35
36
|
};
|
|
36
37
|
const updatedPresetStyleMap = {
|
|
38
|
+
fullpage: styles.fullpageUpdated,
|
|
37
39
|
'jira-issue': styles.jiraIssueUpdated,
|
|
38
40
|
'jsm-comment': styles.jsmCommentUpdated
|
|
39
41
|
};
|
|
@@ -84,7 +86,12 @@ export const ResponsiveContainer = ({
|
|
|
84
86
|
children,
|
|
85
87
|
breakpointPreset
|
|
86
88
|
}) => {
|
|
87
|
-
const isUpdatedConfig =
|
|
89
|
+
const isUpdatedConfig = (() => {
|
|
90
|
+
if (breakpointPreset === 'fullpage') {
|
|
91
|
+
return expValEquals('platform_editor_ai_improve_formatting_toolbar', 'isEnabled', true);
|
|
92
|
+
}
|
|
93
|
+
return expValEquals('platform_editor_toolbar_update_jira_config', 'isEnabled', true) && breakpointPreset in updatedPresetStyleMap;
|
|
94
|
+
})();
|
|
88
95
|
return /*#__PURE__*/React.createElement(Box, {
|
|
89
96
|
xcss: cx(breakpointPreset === 'fullpage' ? styles.responsiveContainerFullPage : styles.responsiveContainer, isUpdatedConfig ? updatedPresetStyleMap[breakpointPreset] : presetStyleMap[breakpointPreset])
|
|
90
97
|
}, children);
|
|
@@ -27,13 +27,16 @@ export const ToolbarButton = /*#__PURE__*/forwardRef(({
|
|
|
27
27
|
isDisabled,
|
|
28
28
|
ariaKeyshortcuts,
|
|
29
29
|
label,
|
|
30
|
-
interactionName
|
|
30
|
+
interactionName,
|
|
31
|
+
ignoreInteractionDisabled
|
|
31
32
|
}, ref) => {
|
|
32
33
|
const {
|
|
33
34
|
preventDefaultOnMouseDown,
|
|
34
|
-
isDisabled: ctxDisabled
|
|
35
|
+
isDisabled: ctxDisabled,
|
|
36
|
+
disabledWithoutInteractionLogic
|
|
35
37
|
} = useToolbarUI();
|
|
36
|
-
|
|
38
|
+
// When ignoreInteractionDisabled=true, only use the disabled state without the interaction check
|
|
39
|
+
const disabled = Boolean((ignoreInteractionDisabled ? disabledWithoutInteractionLogic : ctxDisabled) || isDisabled);
|
|
37
40
|
return /*#__PURE__*/React.createElement(Pressable, {
|
|
38
41
|
ref: ref,
|
|
39
42
|
xcss: cx(styles.button, disabled ? styles.disabled : isSelected ? styles.selected : styles.enabled),
|
|
@@ -24,12 +24,14 @@ export const ToolbarNestedDropdownMenu = ({
|
|
|
24
24
|
enableMaxHeight = false,
|
|
25
25
|
onClick,
|
|
26
26
|
shouldFitContainer = false,
|
|
27
|
+
shouldIgnoreCloseEvent,
|
|
27
28
|
shouldTitleWrap,
|
|
28
29
|
tooltipContent,
|
|
29
30
|
'data-extension-item-key': dataExtensionItemKey
|
|
30
31
|
}) => {
|
|
31
32
|
return /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
32
33
|
shouldFitContainer: shouldFitContainer,
|
|
34
|
+
shouldIgnoreCloseEvent: fg('cc_blocks_changeboarding') ? shouldIgnoreCloseEvent : undefined,
|
|
33
35
|
placement: "right-start",
|
|
34
36
|
testId: dropdownTestId
|
|
35
37
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
@@ -3,6 +3,7 @@ var ToolbarUIContext = /*#__PURE__*/createContext({
|
|
|
3
3
|
onDropdownOpenChanged: function onDropdownOpenChanged() {},
|
|
4
4
|
preventDefaultOnMouseDown: false,
|
|
5
5
|
isDisabled: false,
|
|
6
|
+
disabledWithoutInteractionLogic: false,
|
|
6
7
|
popupsMountPoint: undefined,
|
|
7
8
|
fireAnalyticsEvent: undefined,
|
|
8
9
|
keyboardNavigation: undefined
|
|
@@ -23,6 +24,7 @@ export var ToolbarUIProvider = function ToolbarUIProvider(_ref) {
|
|
|
23
24
|
onDropdownOpenChanged = _ref.onDropdownOpenChanged,
|
|
24
25
|
preventDefaultOnMouseDown = _ref.preventDefaultOnMouseDown,
|
|
25
26
|
isDisabled = _ref.isDisabled,
|
|
27
|
+
disabledWithoutInteractionLogic = _ref.disabledWithoutInteractionLogic,
|
|
26
28
|
popupsMountPoint = _ref.popupsMountPoint,
|
|
27
29
|
popupsBoundariesElement = _ref.popupsBoundariesElement,
|
|
28
30
|
popupsScrollableElement = _ref.popupsScrollableElement,
|
|
@@ -34,6 +36,7 @@ export var ToolbarUIProvider = function ToolbarUIProvider(_ref) {
|
|
|
34
36
|
onDropdownOpenChanged: onDropdownOpenChanged,
|
|
35
37
|
preventDefaultOnMouseDown: preventDefaultOnMouseDown,
|
|
36
38
|
isDisabled: isDisabled,
|
|
39
|
+
disabledWithoutInteractionLogic: disabledWithoutInteractionLogic,
|
|
37
40
|
popupsMountPoint: popupsMountPoint,
|
|
38
41
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
39
42
|
popupsScrollableElement: popupsScrollableElement,
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
@container editor-area (max-width: 533px){._u47mglyw .show-above-md{display:none}._rut51ule .show-below-md{display:block}}
|
|
19
19
|
@container editor-area (max-width: 700px){._fj5dglyw .show-above-lg{display:none}._5wt61ule .show-below-lg{display:block}}
|
|
20
20
|
@container toolbar-container (max-width: 1023px){._luoiglyw .show-above-xl{display:none}._2ojp1ule .show-below-xl{display:block}._tzm6glyw._tzm6glyw .show-above-xl{display:none}._ktne1ule._ktne1ule .show-below-xl{display:block}}
|
|
21
|
+
@container toolbar-container (max-width: 1125px){._1nfkglyw .show-above-lg{display:none}._wne21ule .show-below-lg{display:block}}
|
|
22
|
+
@container toolbar-container (max-width: 1231px){._aw2dglyw .show-above-xl{display:none}._1gtx1ule .show-below-xl{display:block}}
|
|
21
23
|
@container toolbar-container (max-width: 209px){._15nrglyw._15nrglyw .show-above-sm{display:none}._cm5a1ule._cm5a1ule .show-below-sm{display:block}}
|
|
22
24
|
@container toolbar-container (max-width: 279px){._152xglyw._152xglyw .show-above-sm{display:none}._1cn41ule._1cn41ule .show-below-sm{display:block}}
|
|
23
25
|
@container toolbar-container (max-width: 295px){._kkyiglyw._kkyiglyw .show-above-sm{display:none}._1dj81ule._1dj81ule .show-below-sm{display:block}}
|
|
@@ -37,6 +39,8 @@
|
|
|
37
39
|
@container toolbar-container (max-width: 721px){._1nqyglyw .show-above-md{display:none}._jd611ule .show-below-md{display:block}}
|
|
38
40
|
@container toolbar-container (max-width: 857px){._syrzglyw .show-above-lg{display:none}._fr6v1ule .show-below-lg{display:block}}
|
|
39
41
|
@container toolbar-container (min-width: 1024px){._1je21ule .show-only-xl{display:block}._87bn1ule._87bn1ule .show-only-xl{display:block}}
|
|
42
|
+
@container toolbar-container (min-width: 1126px) and (max-width: 1231px){._1mri1ule .show-only-lg{display:block}}
|
|
43
|
+
@container toolbar-container (min-width: 1232px){._17b71ule .show-only-xl{display:block}}
|
|
40
44
|
@container toolbar-container (min-width: 210px) and (max-width: 407px){._7qjy1ule._7qjy1ule .show-only-sm{display:block}}
|
|
41
45
|
@container toolbar-container (min-width: 280px) and (max-width: 419px){._4cj71ule._4cj71ule .show-only-sm{display:block}}
|
|
42
46
|
@container toolbar-container (min-width: 280px) and (max-width: 506px){._1j4d1ule._1j4d1ule .show-only-sm{display:block}}
|
|
@@ -55,6 +59,7 @@
|
|
|
55
59
|
@container toolbar-container (min-width: 650px) and (max-width: 1023px){._1ym01ule._1ym01ule .show-only-lg{display:block}}
|
|
56
60
|
@container toolbar-container (min-width: 662px) and (max-width: 1023px){._wt211ule._wt211ule .show-only-lg{display:block}}
|
|
57
61
|
@container toolbar-container (min-width: 679px) and (max-width: 1023px){._g5yu1ule._g5yu1ule .show-only-lg{display:block}}
|
|
62
|
+
@container toolbar-container (min-width: 722px) and (max-width: 1125px){._gbo31ule .show-only-md{display:block}}
|
|
58
63
|
@container toolbar-container (min-width: 722px) and (max-width: 857px){._biad1ule .show-only-md{display:block}}
|
|
59
64
|
@container toolbar-container (min-width: 858px) and (max-width: 1023px){._1ana1ule .show-only-lg{display:block}}
|
|
60
65
|
@media (max-width:700px){._hmx4glyw .show-above-lg{display:none}._1rrm1ule .show-below-lg{display:block}}
|
|
@@ -12,6 +12,7 @@ var styles = {
|
|
|
12
12
|
responsiveContainer: "_1bsb1osq _7cca15wb _1f38ptqj _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw _1ir3glyw _1vp2glyw _1eadglyw _a6zzglyw",
|
|
13
13
|
responsiveContainerFullPage: "_1bsb1ns9 _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw _1ir3glyw _1vp2glyw _1eadglyw _a6zzglyw",
|
|
14
14
|
fullpage: "_luoiglyw _2ojp1ule _11uvglyw _fj2k1ule _1nqyglyw _jd611ule _syrzglyw _fr6v1ule _1je21ule _1btx1ule _biad1ule _1ana1ule",
|
|
15
|
+
fullpageUpdated: "_1nfkglyw _wne21ule _aw2dglyw _1gtx1ule _11uvglyw _fj2k1ule _1nqyglyw _jd611ule _1mri1ule _17b71ule _1btx1ule _gbo31ule",
|
|
15
16
|
reduced: "_kkyiglyw _1dj81ule _1cg81ule _j3qgglyw _xh1i1ule _oj3l1ule _13s9glyw _4nul1ule _wt211ule _tzm6glyw _ktne1ule _87bn1ule",
|
|
16
17
|
jiraIssue: "_152xglyw _1cn41ule _4cj71ule _afriglyw _ozjb1ule _w81r1ule _1mckglyw _r2nv1ule _1ym01ule _tzm6glyw _ktne1ule _87bn1ule",
|
|
17
18
|
jiraIssueUpdated: "_152xglyw _1cn41ule _1j4d1ule _1n52glyw _1nd71ule _lf431ule _103bglyw _1p0z1ule _g5yu1ule _tzm6glyw _ktne1ule _87bn1ule",
|
|
@@ -34,6 +35,7 @@ var presetStyleMap = {
|
|
|
34
35
|
'confluence-comment': styles.confluenceComment
|
|
35
36
|
};
|
|
36
37
|
var updatedPresetStyleMap = {
|
|
38
|
+
fullpage: styles.fullpageUpdated,
|
|
37
39
|
'jira-issue': styles.jiraIssueUpdated,
|
|
38
40
|
'jsm-comment': styles.jsmCommentUpdated
|
|
39
41
|
};
|
|
@@ -83,7 +85,12 @@ var updatedPresetStyleMap = {
|
|
|
83
85
|
export var ResponsiveContainer = function ResponsiveContainer(_ref) {
|
|
84
86
|
var children = _ref.children,
|
|
85
87
|
breakpointPreset = _ref.breakpointPreset;
|
|
86
|
-
var isUpdatedConfig =
|
|
88
|
+
var isUpdatedConfig = function () {
|
|
89
|
+
if (breakpointPreset === 'fullpage') {
|
|
90
|
+
return expValEquals('platform_editor_ai_improve_formatting_toolbar', 'isEnabled', true);
|
|
91
|
+
}
|
|
92
|
+
return expValEquals('platform_editor_toolbar_update_jira_config', 'isEnabled', true) && breakpointPreset in updatedPresetStyleMap;
|
|
93
|
+
}();
|
|
87
94
|
return /*#__PURE__*/React.createElement(Box, {
|
|
88
95
|
xcss: cx(breakpointPreset === 'fullpage' ? styles.responsiveContainerFullPage : styles.responsiveContainer, isUpdatedConfig ? updatedPresetStyleMap[breakpointPreset] : presetStyleMap[breakpointPreset])
|
|
89
96
|
}, children);
|
|
@@ -27,11 +27,14 @@ export var ToolbarButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
27
27
|
isDisabled = _ref.isDisabled,
|
|
28
28
|
ariaKeyshortcuts = _ref.ariaKeyshortcuts,
|
|
29
29
|
label = _ref.label,
|
|
30
|
-
interactionName = _ref.interactionName
|
|
30
|
+
interactionName = _ref.interactionName,
|
|
31
|
+
ignoreInteractionDisabled = _ref.ignoreInteractionDisabled;
|
|
31
32
|
var _useToolbarUI = useToolbarUI(),
|
|
32
33
|
preventDefaultOnMouseDown = _useToolbarUI.preventDefaultOnMouseDown,
|
|
33
|
-
ctxDisabled = _useToolbarUI.isDisabled
|
|
34
|
-
|
|
34
|
+
ctxDisabled = _useToolbarUI.isDisabled,
|
|
35
|
+
disabledWithoutInteractionLogic = _useToolbarUI.disabledWithoutInteractionLogic;
|
|
36
|
+
// When ignoreInteractionDisabled=true, only use the disabled state without the interaction check
|
|
37
|
+
var disabled = Boolean((ignoreInteractionDisabled ? disabledWithoutInteractionLogic : ctxDisabled) || isDisabled);
|
|
35
38
|
return /*#__PURE__*/React.createElement(Pressable, {
|
|
36
39
|
ref: ref,
|
|
37
40
|
xcss: cx(styles.button, disabled ? styles.disabled : isSelected ? styles.selected : styles.enabled),
|
|
@@ -26,11 +26,13 @@ export var ToolbarNestedDropdownMenu = function ToolbarNestedDropdownMenu(_ref)
|
|
|
26
26
|
_onClick = _ref.onClick,
|
|
27
27
|
_ref$shouldFitContain = _ref.shouldFitContainer,
|
|
28
28
|
shouldFitContainer = _ref$shouldFitContain === void 0 ? false : _ref$shouldFitContain,
|
|
29
|
+
shouldIgnoreCloseEvent = _ref.shouldIgnoreCloseEvent,
|
|
29
30
|
shouldTitleWrap = _ref.shouldTitleWrap,
|
|
30
31
|
tooltipContent = _ref.tooltipContent,
|
|
31
32
|
dataExtensionItemKey = _ref['data-extension-item-key'];
|
|
32
33
|
return /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
33
34
|
shouldFitContainer: shouldFitContainer,
|
|
35
|
+
shouldIgnoreCloseEvent: fg('cc_blocks_changeboarding') ? shouldIgnoreCloseEvent : undefined,
|
|
34
36
|
placement: "right-start",
|
|
35
37
|
testId: dropdownTestId
|
|
36
38
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
@@ -9,6 +9,12 @@ type AnalyticsEventPayload = {
|
|
|
9
9
|
};
|
|
10
10
|
type FireAnalyticsEvent = (payload: AnalyticsEventPayload) => void | undefined;
|
|
11
11
|
export type ToolbarUIContextType = {
|
|
12
|
+
/**
|
|
13
|
+
* True only when the toolbar is disabled from isDisabled.
|
|
14
|
+
* Excludes disabling under platform_editor_default_toolbar_state, where buttons are
|
|
15
|
+
* disabled by default until the user interacts with the editor.
|
|
16
|
+
*/
|
|
17
|
+
disabledWithoutInteractionLogic?: boolean;
|
|
12
18
|
fireAnalyticsEvent?: FireAnalyticsEvent;
|
|
13
19
|
/**
|
|
14
20
|
* Indicates whether the toolbar is disabled when the editor is offline.
|
|
@@ -39,5 +45,5 @@ export declare const useToolbarUI: () => ToolbarUIContextType;
|
|
|
39
45
|
type ToolbarUIProviderProps = {
|
|
40
46
|
children: React.ReactNode;
|
|
41
47
|
} & ToolbarUIContextType;
|
|
42
|
-
export declare const ToolbarUIProvider: ({ children, onDropdownOpenChanged, preventDefaultOnMouseDown, isDisabled, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, fireAnalyticsEvent, keyboardNavigation, }: ToolbarUIProviderProps) => React.JSX.Element;
|
|
48
|
+
export declare const ToolbarUIProvider: ({ children, onDropdownOpenChanged, preventDefaultOnMouseDown, isDisabled, disabledWithoutInteractionLogic, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, fireAnalyticsEvent, keyboardNavigation, }: ToolbarUIProviderProps) => React.JSX.Element;
|
|
43
49
|
export {};
|
|
@@ -10,7 +10,7 @@ export type ResponsiveContainerProps = {
|
|
|
10
10
|
* Selects the breakpoint preset for the responsive container.
|
|
11
11
|
*
|
|
12
12
|
* Available presets:
|
|
13
|
-
* - 'fullpage': (410, 476, 768, 1024) - Editor full-page experiences
|
|
13
|
+
* - 'fullpage': (410, 476, 768, 1024) - Editor full-page experiences (updated to 410, 476, 1126, 1232 when platform_editor_ai_improve_formatting_toolbar is enabled)
|
|
14
14
|
* - 'reduced': (210, 408, 575, 1024) - Default compact toolbars, constrained layouts
|
|
15
15
|
* - 'jira-issue': (280, 420, 650, 1024) - Jira issue view and similar contexts
|
|
16
16
|
* - 'jsm-comment': (365, 500, 630, 1024) - JSM comment editor with canned responses button
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import type { ReactNode } from 'react';
|
|
5
|
+
import type { KeyboardEvent, MouseEvent, ReactNode } from 'react';
|
|
6
6
|
type ToolbarNestedDropdownMenuProps = {
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
'data-extension-item-key'?: string;
|
|
@@ -15,12 +15,13 @@ type ToolbarNestedDropdownMenuProps = {
|
|
|
15
15
|
*/
|
|
16
16
|
enableMaxHeight?: boolean;
|
|
17
17
|
isDisabled?: boolean;
|
|
18
|
-
onClick?: (e:
|
|
18
|
+
onClick?: (e: MouseEvent | KeyboardEvent) => void;
|
|
19
19
|
shouldFitContainer?: boolean;
|
|
20
|
+
shouldIgnoreCloseEvent?: (event: Event | MouseEvent | KeyboardEvent) => boolean;
|
|
20
21
|
shouldTitleWrap?: boolean;
|
|
21
22
|
testId?: string;
|
|
22
23
|
text?: string;
|
|
23
24
|
tooltipContent?: ReactNode;
|
|
24
25
|
};
|
|
25
|
-
export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfterText, elemAfter, children, isDisabled, testId, dropdownTestId, enableMaxHeight, onClick, shouldFitContainer, shouldTitleWrap, tooltipContent, "data-extension-item-key": dataExtensionItemKey, }: ToolbarNestedDropdownMenuProps) => JSX.Element;
|
|
26
|
+
export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfterText, elemAfter, children, isDisabled, testId, dropdownTestId, enableMaxHeight, onClick, shouldFitContainer, shouldIgnoreCloseEvent, shouldTitleWrap, tooltipContent, "data-extension-item-key": dataExtensionItemKey, }: ToolbarNestedDropdownMenuProps) => JSX.Element;
|
|
26
27
|
export {};
|
|
@@ -9,6 +9,12 @@ type AnalyticsEventPayload = {
|
|
|
9
9
|
};
|
|
10
10
|
type FireAnalyticsEvent = (payload: AnalyticsEventPayload) => void | undefined;
|
|
11
11
|
export type ToolbarUIContextType = {
|
|
12
|
+
/**
|
|
13
|
+
* True only when the toolbar is disabled from isDisabled.
|
|
14
|
+
* Excludes disabling under platform_editor_default_toolbar_state, where buttons are
|
|
15
|
+
* disabled by default until the user interacts with the editor.
|
|
16
|
+
*/
|
|
17
|
+
disabledWithoutInteractionLogic?: boolean;
|
|
12
18
|
fireAnalyticsEvent?: FireAnalyticsEvent;
|
|
13
19
|
/**
|
|
14
20
|
* Indicates whether the toolbar is disabled when the editor is offline.
|
|
@@ -39,5 +45,5 @@ export declare const useToolbarUI: () => ToolbarUIContextType;
|
|
|
39
45
|
type ToolbarUIProviderProps = {
|
|
40
46
|
children: React.ReactNode;
|
|
41
47
|
} & ToolbarUIContextType;
|
|
42
|
-
export declare const ToolbarUIProvider: ({ children, onDropdownOpenChanged, preventDefaultOnMouseDown, isDisabled, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, fireAnalyticsEvent, keyboardNavigation, }: ToolbarUIProviderProps) => React.JSX.Element;
|
|
48
|
+
export declare const ToolbarUIProvider: ({ children, onDropdownOpenChanged, preventDefaultOnMouseDown, isDisabled, disabledWithoutInteractionLogic, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, fireAnalyticsEvent, keyboardNavigation, }: ToolbarUIProviderProps) => React.JSX.Element;
|
|
43
49
|
export {};
|
|
@@ -10,7 +10,7 @@ export type ResponsiveContainerProps = {
|
|
|
10
10
|
* Selects the breakpoint preset for the responsive container.
|
|
11
11
|
*
|
|
12
12
|
* Available presets:
|
|
13
|
-
* - 'fullpage': (410, 476, 768, 1024) - Editor full-page experiences
|
|
13
|
+
* - 'fullpage': (410, 476, 768, 1024) - Editor full-page experiences (updated to 410, 476, 1126, 1232 when platform_editor_ai_improve_formatting_toolbar is enabled)
|
|
14
14
|
* - 'reduced': (210, 408, 575, 1024) - Default compact toolbars, constrained layouts
|
|
15
15
|
* - 'jira-issue': (280, 420, 650, 1024) - Jira issue view and similar contexts
|
|
16
16
|
* - 'jsm-comment': (365, 500, 630, 1024) - JSM comment editor with canned responses button
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import type { ReactNode } from 'react';
|
|
5
|
+
import type { KeyboardEvent, MouseEvent, ReactNode } from 'react';
|
|
6
6
|
type ToolbarNestedDropdownMenuProps = {
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
'data-extension-item-key'?: string;
|
|
@@ -15,12 +15,13 @@ type ToolbarNestedDropdownMenuProps = {
|
|
|
15
15
|
*/
|
|
16
16
|
enableMaxHeight?: boolean;
|
|
17
17
|
isDisabled?: boolean;
|
|
18
|
-
onClick?: (e:
|
|
18
|
+
onClick?: (e: MouseEvent | KeyboardEvent) => void;
|
|
19
19
|
shouldFitContainer?: boolean;
|
|
20
|
+
shouldIgnoreCloseEvent?: (event: Event | MouseEvent | KeyboardEvent) => boolean;
|
|
20
21
|
shouldTitleWrap?: boolean;
|
|
21
22
|
testId?: string;
|
|
22
23
|
text?: string;
|
|
23
24
|
tooltipContent?: ReactNode;
|
|
24
25
|
};
|
|
25
|
-
export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfterText, elemAfter, children, isDisabled, testId, dropdownTestId, enableMaxHeight, onClick, shouldFitContainer, shouldTitleWrap, tooltipContent, "data-extension-item-key": dataExtensionItemKey, }: ToolbarNestedDropdownMenuProps) => JSX.Element;
|
|
26
|
+
export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfterText, elemAfter, children, isDisabled, testId, dropdownTestId, enableMaxHeight, onClick, shouldFitContainer, shouldIgnoreCloseEvent, shouldTitleWrap, tooltipContent, "data-extension-item-key": dataExtensionItemKey, }: ToolbarNestedDropdownMenuProps) => JSX.Element;
|
|
26
27
|
export {};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"registry": "https://registry.npmjs.org/"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.9.1",
|
|
7
7
|
"description": "Common UI for Toolbars across the platform",
|
|
8
8
|
"atlassian": {
|
|
9
9
|
"react-compiler": {
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"@atlaskit/badge": "^18.6.0",
|
|
32
32
|
"@atlaskit/browser-apis": "^0.0.2",
|
|
33
33
|
"@atlaskit/css": "^0.19.0",
|
|
34
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
34
|
+
"@atlaskit/dropdown-menu": "^16.10.0",
|
|
35
35
|
"@atlaskit/icon": "^35.3.0",
|
|
36
36
|
"@atlaskit/icon-lab": "^6.12.0",
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
|
-
"@atlaskit/popup": "^4.
|
|
38
|
+
"@atlaskit/popup": "^4.23.0",
|
|
39
39
|
"@atlaskit/primitives": "^19.0.0",
|
|
40
40
|
"@atlaskit/tmp-editor-statsig": "^85.0.0",
|
|
41
41
|
"@atlaskit/tokens": "^13.1.0",
|