@netless/telebox-insider 0.3.0-beta.10 → 0.3.0-beta.11
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/index.d.ts
CHANGED
|
@@ -722,7 +722,7 @@ declare class TeleBoxCollector {
|
|
|
722
722
|
* Unmount collector from the root element.
|
|
723
723
|
*/
|
|
724
724
|
unmount(): this;
|
|
725
|
-
|
|
725
|
+
protected hasMinimizedBox(): boolean;
|
|
726
726
|
updateBoxesStatus(): void;
|
|
727
727
|
setVisible(visible: boolean): this;
|
|
728
728
|
setReadonly(readonly: boolean): this;
|
|
@@ -885,12 +885,20 @@ type ValConfig = {
|
|
|
885
885
|
interface TeleBoxManager extends ValEnhancedResult<ValConfig> {
|
|
886
886
|
}
|
|
887
887
|
declare class TeleBoxManager {
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
888
|
+
protected boxesStatus$: Map<string, TeleBoxState>;
|
|
889
|
+
protected lastNotMinimizedBoxesStatus$: Map<string, NotMinimizedBoxState>;
|
|
890
|
+
protected appMenu: AppMenu | undefined;
|
|
891
|
+
protected useBoxesStatus: boolean;
|
|
892
|
+
protected effectBoxesStatusTimer?: {
|
|
893
|
+
skipUpdate: boolean;
|
|
894
|
+
timer: number | undefined;
|
|
895
|
+
resolve?: (skipUpdate: boolean) => void;
|
|
896
|
+
};
|
|
897
|
+
protected effectLastNotMinimizedBoxStatusTimer?: {
|
|
898
|
+
skipUpdate: boolean;
|
|
899
|
+
timer: number | undefined;
|
|
900
|
+
resolve?: (skipUpdate: boolean) => void;
|
|
901
|
+
};
|
|
894
902
|
constructor({ root, prefersColorScheme, minimized, maximized, fence, containerRect, collector, namespace, readonly, useBoxesStatus, }?: TeleBoxManagerConfig);
|
|
895
903
|
get boxes(): ReadonlyArray<TeleBox>;
|
|
896
904
|
get topBox(): TeleBox | undefined;
|
|
@@ -912,8 +920,8 @@ declare class TeleBoxManager {
|
|
|
912
920
|
get lastNotMinimizedBoxesStatus(): ReadonlyMap<string, NotMinimizedBoxState>;
|
|
913
921
|
setBoxesStatus(boxesStatus: Map<string, TeleBoxState>, skipUpdate?: boolean): void;
|
|
914
922
|
getBoxesStatus(): Map<string, TeleBoxState>;
|
|
915
|
-
|
|
916
|
-
|
|
923
|
+
protected effectBoxStatusChange(): void;
|
|
924
|
+
protected effectBoxesStatusTimerFunc(skipUpdate: boolean): void;
|
|
917
925
|
effectBoxesStatusChange(skipUpdate?: boolean): Promise<void>;
|
|
918
926
|
hasBoxesStatus(): boolean;
|
|
919
927
|
hasMinimizedBox(): boolean;
|
|
@@ -924,9 +932,9 @@ declare class TeleBoxManager {
|
|
|
924
932
|
getLastNotMinimizedBoxStatus(boxId: string): NotMinimizedBoxState | undefined;
|
|
925
933
|
setLastNotMinimizedBoxStatus(boxId: string, lastNotMinimizedBoxStatus?: NotMinimizedBoxState, skipUpdate?: boolean): void;
|
|
926
934
|
setLastNotMinimizedBoxesStatus(lastNotMinimizedBoxesStatus: Map<string, NotMinimizedBoxState>, skipUpdate?: boolean): void;
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
935
|
+
protected effectLastNotMinimizedBoxStatusChange(skipUpdate?: boolean): Promise<void>;
|
|
936
|
+
protected effectLastNotMinimizedBoxStatusFunc(skipUpdate?: boolean): void;
|
|
937
|
+
protected getUnabledBoxesStatusZIndex(): number;
|
|
930
938
|
/** Maximized box zIndex range: 100-299 */
|
|
931
939
|
getMaxMaximizedBoxZIndex(): number;
|
|
932
940
|
/** normal box zIndex range: 300-499 */
|
|
@@ -957,7 +965,7 @@ declare class TeleBoxManager {
|
|
|
957
965
|
protected updateBox(box: TeleBox, config: TeleBoxManagerUpdateConfig, skipUpdate?: boolean): void;
|
|
958
966
|
protected smartPosition(config?: TeleBoxConfig): TeleBoxConfig;
|
|
959
967
|
protected makeBoxTop(box: TeleBox, skipUpdate?: boolean): void;
|
|
960
|
-
|
|
968
|
+
protected getMaximizedTopBox(): MaxTitleBarTeleBox | undefined;
|
|
961
969
|
protected makeMaximizedTopBoxFocus(): void;
|
|
962
970
|
protected getBoxIndex(boxOrID: TeleBox | string): number;
|
|
963
971
|
getBox(boxOrID: TeleBox | string): TeleBox | undefined;
|