@interopio/groups-ui-react 3.0.0 → 3.0.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/dist/cjs/defaultComponents/hooks/useExternalWindowPopup.d.ts +2 -0
- package/dist/cjs/defaultComponents/hooks/useExternalWindowPopupClosed.d.ts +1 -0
- package/dist/cjs/defaultComponents/hooks/useExternalWindowPopupHidden.d.ts +1 -0
- package/dist/cjs/defaultComponents/hooks/useMoveResizeWindow.d.ts +2 -0
- package/dist/cjs/defaultComponents/hooks/useShowPopupWindow.d.ts +2 -0
- package/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.js +204 -352
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/api.d.ts +36 -1
- package/dist/cjs/types/internal.d.ts +12 -0
- package/dist/cjs/webGroupsManager.d.ts +2 -1
- package/dist/cjs/webGroupsStore.d.ts +3 -0
- package/dist/esm/defaultComponents/hooks/useExternalWindowPopup.d.ts +2 -0
- package/dist/esm/defaultComponents/hooks/useExternalWindowPopupClosed.d.ts +1 -0
- package/dist/esm/defaultComponents/hooks/useExternalWindowPopupHidden.d.ts +1 -0
- package/dist/esm/defaultComponents/hooks/useMoveResizeWindow.d.ts +2 -0
- package/dist/esm/defaultComponents/hooks/useShowPopupWindow.d.ts +2 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +347 -513
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/api.d.ts +36 -1
- package/dist/esm/types/internal.d.ts +12 -0
- package/dist/esm/webGroupsManager.d.ts +2 -1
- package/dist/esm/webGroupsStore.d.ts +3 -0
- package/dist/styles/groups.css +39 -25
- package/dist/styles/vars.css +1 -1
- package/package.json +3 -2
package/dist/cjs/types/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Bounds, ButtonProps, Location, OverflowedTabInfo, StylesOptions, ToggleButtonProps } from "./internal";
|
|
2
|
+
import { Bounds, ButtonProps, Location, OverflowedTabInfo, PopupTargetLocation, Size, StylesOptions, ToggleButtonProps } from "./internal";
|
|
3
3
|
import { CustomButtonProps } from "./defaultComponents";
|
|
4
4
|
export interface ChannelProps {
|
|
5
5
|
visible: boolean;
|
|
@@ -54,6 +54,7 @@ export interface TabOverflowPopupProps {
|
|
|
54
54
|
frameId: string;
|
|
55
55
|
select: (windowId: string) => void;
|
|
56
56
|
close: (windowId: string) => void;
|
|
57
|
+
resize?: (size: Size) => void;
|
|
57
58
|
hiddenTabsToTheLeft: OverflowedTabInfo[];
|
|
58
59
|
hiddenTabsToTheRight: OverflowedTabInfo[];
|
|
59
60
|
}
|
|
@@ -193,4 +194,38 @@ export interface OpenTabOverflowPopupOptions {
|
|
|
193
194
|
frameId: string;
|
|
194
195
|
location: Location;
|
|
195
196
|
}
|
|
197
|
+
export interface CreatePopupOptions {
|
|
198
|
+
left?: number;
|
|
199
|
+
top?: number;
|
|
200
|
+
width?: number;
|
|
201
|
+
height?: number;
|
|
202
|
+
roundedCorners?: boolean;
|
|
203
|
+
hasSizeAreas?: boolean;
|
|
204
|
+
hasMoveAreas?: boolean;
|
|
205
|
+
transparent?: boolean;
|
|
206
|
+
copyStyles?: boolean;
|
|
207
|
+
}
|
|
208
|
+
export interface PopupShowOptions {
|
|
209
|
+
targetBounds?: Bounds;
|
|
210
|
+
size?: Size;
|
|
211
|
+
targetLocation?: PopupTargetLocation;
|
|
212
|
+
focus?: boolean;
|
|
213
|
+
horizontalOffset?: number;
|
|
214
|
+
verticalOffset?: number;
|
|
215
|
+
}
|
|
216
|
+
export interface PopupWindow {
|
|
217
|
+
ioConnectWindow: any;
|
|
218
|
+
browserWindow: Window;
|
|
219
|
+
}
|
|
220
|
+
export interface ExternalWindowPopupResult {
|
|
221
|
+
getContainer: () => HTMLElement | null;
|
|
222
|
+
createPopup: (options?: CreatePopupOptions) => Promise<PopupWindow | null>;
|
|
223
|
+
showPopup: (options?: PopupShowOptions) => Promise<void>;
|
|
224
|
+
resizePopup: (size: Size) => Promise<void>;
|
|
225
|
+
hidePopup: () => Promise<void>;
|
|
226
|
+
closePopup: () => Promise<void>;
|
|
227
|
+
isOpen: boolean;
|
|
228
|
+
isVisible: boolean;
|
|
229
|
+
popup: PopupWindow | null;
|
|
230
|
+
}
|
|
196
231
|
export {};
|
|
@@ -288,6 +288,7 @@ export interface ElementCreationWrapperState {
|
|
|
288
288
|
[targetId: string]: CreateButtonsOptions;
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
|
+
export declare type IndexableElementCreationWrapperState = Omit<Omit<ElementCreationWrapperState, "groupCaptionBar">, "groupOverlay">;
|
|
291
292
|
export interface ExternalLibraryFactory {
|
|
292
293
|
readonly groupId: string;
|
|
293
294
|
focusPage(): void;
|
|
@@ -310,6 +311,7 @@ export interface ExternalLibraryFactory {
|
|
|
310
311
|
updateFrameStyles(styles: StylesOptions): void;
|
|
311
312
|
selectTab(windowId: string): void;
|
|
312
313
|
openTabOverflowPopup(frameId: string, location: Location): void;
|
|
314
|
+
resizeTabOverflowPopup(frameId: string, size: Size): void;
|
|
313
315
|
addTabContainerClass(windowId: string, className: string): void;
|
|
314
316
|
removeTabContainerClass(windowId: string, className: string): void;
|
|
315
317
|
}
|
|
@@ -337,4 +339,14 @@ export interface StylesOptions {
|
|
|
337
339
|
}
|
|
338
340
|
export interface Bounds extends Size, Location {
|
|
339
341
|
}
|
|
342
|
+
export declare type PopupTargetLocation = "top" | "bottom" | "left" | "right" | "none";
|
|
343
|
+
export interface ExternalWindowPopup {
|
|
344
|
+
browserWindow?: Window;
|
|
345
|
+
ioConnectWindow?: any;
|
|
346
|
+
}
|
|
347
|
+
export interface ShowExternalWindowPopupConfig {
|
|
348
|
+
targetBounds: Bounds;
|
|
349
|
+
size: Size;
|
|
350
|
+
targetLocation: PopupTargetLocation;
|
|
351
|
+
}
|
|
340
352
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bounds, Location, StylesOptions, TargetType } from "./types/internal";
|
|
1
|
+
import { Bounds, Location, Size, StylesOptions, TargetType } from "./types/internal";
|
|
2
2
|
declare class WebGroupsManagerDecorator {
|
|
3
3
|
private readonly registry;
|
|
4
4
|
readonly skipFocusStyle = "t42-skip-focus";
|
|
@@ -44,6 +44,7 @@ declare class WebGroupsManagerDecorator {
|
|
|
44
44
|
addTabContainerClass(windowId: string, className: string): void;
|
|
45
45
|
removeTabContainerClass(windowId: string, className: string): void;
|
|
46
46
|
openTabOverflowPopup(frameId: string, location: Location): void;
|
|
47
|
+
resizeTabOverflowPopup(frameId: string, size: Size): void;
|
|
47
48
|
}
|
|
48
49
|
declare const _default: WebGroupsManagerDecorator;
|
|
49
50
|
export default _default;
|
|
@@ -60,6 +60,9 @@ declare class WebGroupsStore {
|
|
|
60
60
|
private onHideTabCaptionEditorRequested;
|
|
61
61
|
private onShowLoadingAnimation;
|
|
62
62
|
private onHideLoadingAnimation;
|
|
63
|
+
private onCreateElementRequested;
|
|
64
|
+
private onUpdateElementRequested;
|
|
65
|
+
private onRemoveElementRequested;
|
|
63
66
|
private setState;
|
|
64
67
|
}
|
|
65
68
|
declare const _default: WebGroupsStore;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useExternalWindowPopupClosed(io: any, ioConnectWindowPopup: any): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useExternalWindowPopupHidden(io: any, ioConnectWindowPopup: any): boolean;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -44,7 +44,8 @@ import TabOverflowPopup from "./defaultComponents/popups/TabOverflowPopup";
|
|
|
44
44
|
import TabMultiChannelSelector from "./defaultComponents/channelSelector/multi/TabMultiChannelSelector";
|
|
45
45
|
import FlatMultiChannelSelector from "./defaultComponents/channelSelector/multi/FlatMultiChannelSelector";
|
|
46
46
|
import { useDragMove } from "./defaultComponents/utils/useDragMove";
|
|
47
|
-
|
|
47
|
+
import useExternalWindowPopup from "./defaultComponents/hooks/useExternalWindowPopup";
|
|
48
|
+
export { GroupCaptionBar, GroupMoveArea, GroupButtons, GroupCaptionEditor, Tab, TabChannelSelector, TabCaption, TabCloseButton, TabCaptionEditor, FeedbackButton, CloneButton, StickyButton, ExtractButton, LockButton, UnlockButton, MinimizeButton, RestoreButton, MaximizeButton, CustomButton, CloseButton, FlatCaptionBar, FlatChannelSelector, FlatCaption, FlatMoveArea, FlatButtons, FlatCaptionEditor, TabHeaderButtons, FrameLoadingAnimation, HtmlButtons, TabOverflowPopup, OverflowButton, GroupComponentVisibilityState, TabMultiChannelSelector, FlatMultiChannelSelector, useIOConnectWindow, useGroupComponentVisibility, waitForWindow, useEditableCaption, useCaptionEditor, useDragMove, useCommitGroupCaptionEditingRequested, useCommitFlatCaptionEditingRequested, useCommitTabCaptionEditingRequested, useExternalWindowPopup, };
|
|
48
49
|
export declare const getGroupId: () => string;
|
|
49
50
|
export declare const requestPageFocus: () => void;
|
|
50
51
|
export declare const requestFrameFocus: (frameId: string) => void;
|