@atlaskit/editor-toolbar 0.3.7 → 0.3.8
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,12 @@
|
|
|
1
1
|
# @atlaskit/editor-toolbar
|
|
2
2
|
|
|
3
|
+
## 0.3.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bcc3b620154b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bcc3b620154b0) -
|
|
8
|
+
[ux] ED-28739 [Register] [Primary toolbar] Insert button
|
|
9
|
+
|
|
3
10
|
## 0.3.7
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -29,13 +29,17 @@ var ToolbarUIProvider = exports.ToolbarUIProvider = function ToolbarUIProvider(_
|
|
|
29
29
|
onDropdownOpenChanged = _ref.onDropdownOpenChanged,
|
|
30
30
|
preventDefaultOnMouseDown = _ref.preventDefaultOnMouseDown,
|
|
31
31
|
isDisabled = _ref.isDisabled,
|
|
32
|
-
popupsMountPoint = _ref.popupsMountPoint
|
|
32
|
+
popupsMountPoint = _ref.popupsMountPoint,
|
|
33
|
+
popupsBoundariesElement = _ref.popupsBoundariesElement,
|
|
34
|
+
popupsScrollableElement = _ref.popupsScrollableElement;
|
|
33
35
|
return /*#__PURE__*/_react.default.createElement(ToolbarUIContext.Provider, {
|
|
34
36
|
value: {
|
|
35
37
|
onDropdownOpenChanged: onDropdownOpenChanged,
|
|
36
38
|
preventDefaultOnMouseDown: preventDefaultOnMouseDown,
|
|
37
39
|
isDisabled: isDisabled,
|
|
38
|
-
popupsMountPoint: popupsMountPoint
|
|
40
|
+
popupsMountPoint: popupsMountPoint,
|
|
41
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
42
|
+
popupsScrollableElement: popupsScrollableElement
|
|
39
43
|
}
|
|
40
44
|
}, children);
|
|
41
45
|
};
|
|
@@ -21,14 +21,18 @@ export const ToolbarUIProvider = ({
|
|
|
21
21
|
onDropdownOpenChanged,
|
|
22
22
|
preventDefaultOnMouseDown,
|
|
23
23
|
isDisabled,
|
|
24
|
-
popupsMountPoint
|
|
24
|
+
popupsMountPoint,
|
|
25
|
+
popupsBoundariesElement,
|
|
26
|
+
popupsScrollableElement
|
|
25
27
|
}) => {
|
|
26
28
|
return /*#__PURE__*/React.createElement(ToolbarUIContext.Provider, {
|
|
27
29
|
value: {
|
|
28
30
|
onDropdownOpenChanged,
|
|
29
31
|
preventDefaultOnMouseDown,
|
|
30
32
|
isDisabled,
|
|
31
|
-
popupsMountPoint
|
|
33
|
+
popupsMountPoint,
|
|
34
|
+
popupsBoundariesElement,
|
|
35
|
+
popupsScrollableElement
|
|
32
36
|
}
|
|
33
37
|
}, children);
|
|
34
38
|
};
|
|
@@ -21,13 +21,17 @@ export var ToolbarUIProvider = function ToolbarUIProvider(_ref) {
|
|
|
21
21
|
onDropdownOpenChanged = _ref.onDropdownOpenChanged,
|
|
22
22
|
preventDefaultOnMouseDown = _ref.preventDefaultOnMouseDown,
|
|
23
23
|
isDisabled = _ref.isDisabled,
|
|
24
|
-
popupsMountPoint = _ref.popupsMountPoint
|
|
24
|
+
popupsMountPoint = _ref.popupsMountPoint,
|
|
25
|
+
popupsBoundariesElement = _ref.popupsBoundariesElement,
|
|
26
|
+
popupsScrollableElement = _ref.popupsScrollableElement;
|
|
25
27
|
return /*#__PURE__*/React.createElement(ToolbarUIContext.Provider, {
|
|
26
28
|
value: {
|
|
27
29
|
onDropdownOpenChanged: onDropdownOpenChanged,
|
|
28
30
|
preventDefaultOnMouseDown: preventDefaultOnMouseDown,
|
|
29
31
|
isDisabled: isDisabled,
|
|
30
|
-
popupsMountPoint: popupsMountPoint
|
|
32
|
+
popupsMountPoint: popupsMountPoint,
|
|
33
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
34
|
+
popupsScrollableElement: popupsScrollableElement
|
|
31
35
|
}
|
|
32
36
|
}, children);
|
|
33
37
|
};
|
|
@@ -11,7 +11,9 @@ export type ToolbarUIContextType = {
|
|
|
11
11
|
* If the dropdown was closed programmatically, the `event` parameter will be `null`.
|
|
12
12
|
*/
|
|
13
13
|
onDropdownOpenChanged: (args: OnOpenChangeArgs) => void;
|
|
14
|
+
popupsBoundariesElement?: HTMLElement;
|
|
14
15
|
popupsMountPoint?: HTMLElement;
|
|
16
|
+
popupsScrollableElement?: HTMLElement;
|
|
15
17
|
/**
|
|
16
18
|
* Whether to prevent default behavior on mouse down events on ToolbarButton.
|
|
17
19
|
*/
|
|
@@ -24,5 +26,5 @@ export declare const useToolbarUI: () => ToolbarUIContextType;
|
|
|
24
26
|
type ToolbarUIProviderProps = {
|
|
25
27
|
children: React.ReactNode;
|
|
26
28
|
} & ToolbarUIContextType;
|
|
27
|
-
export declare const ToolbarUIProvider: ({ children, onDropdownOpenChanged, preventDefaultOnMouseDown, isDisabled, popupsMountPoint, }: ToolbarUIProviderProps) => React.JSX.Element;
|
|
29
|
+
export declare const ToolbarUIProvider: ({ children, onDropdownOpenChanged, preventDefaultOnMouseDown, isDisabled, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, }: ToolbarUIProviderProps) => React.JSX.Element;
|
|
28
30
|
export {};
|
|
@@ -11,7 +11,9 @@ export type ToolbarUIContextType = {
|
|
|
11
11
|
* If the dropdown was closed programmatically, the `event` parameter will be `null`.
|
|
12
12
|
*/
|
|
13
13
|
onDropdownOpenChanged: (args: OnOpenChangeArgs) => void;
|
|
14
|
+
popupsBoundariesElement?: HTMLElement;
|
|
14
15
|
popupsMountPoint?: HTMLElement;
|
|
16
|
+
popupsScrollableElement?: HTMLElement;
|
|
15
17
|
/**
|
|
16
18
|
* Whether to prevent default behavior on mouse down events on ToolbarButton.
|
|
17
19
|
*/
|
|
@@ -24,5 +26,5 @@ export declare const useToolbarUI: () => ToolbarUIContextType;
|
|
|
24
26
|
type ToolbarUIProviderProps = {
|
|
25
27
|
children: React.ReactNode;
|
|
26
28
|
} & ToolbarUIContextType;
|
|
27
|
-
export declare const ToolbarUIProvider: ({ children, onDropdownOpenChanged, preventDefaultOnMouseDown, isDisabled, popupsMountPoint, }: ToolbarUIProviderProps) => React.JSX.Element;
|
|
29
|
+
export declare const ToolbarUIProvider: ({ children, onDropdownOpenChanged, preventDefaultOnMouseDown, isDisabled, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, }: ToolbarUIProviderProps) => React.JSX.Element;
|
|
28
30
|
export {};
|