@kangtae49/just-layout 0.0.20 → 0.0.22
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 +16 -49
- package/dist/index.es.js +1908 -1919
- package/dist/index.umd.js +13 -13
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { ContainerModule } from 'inversify';
|
|
2
2
|
import { default as default_2 } from 'react';
|
|
3
|
-
import { JSX } from 'react
|
|
3
|
+
import { JSX } from 'react';
|
|
4
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
4
5
|
import * as React_2 from 'react';
|
|
5
6
|
import { RefObject } from 'react';
|
|
6
7
|
import { Spec } from 'immutability-helper';
|
|
7
8
|
|
|
8
|
-
export declare type GetTabIconFn = (justId: JustId, layoutId: string) =>
|
|
9
|
+
export declare type GetTabIconFn = (justId: JustId, layoutId: string) => JSX.Element;
|
|
9
10
|
|
|
10
|
-
export declare type GetTabMenuFn = (layoutId: string, branch: JustBranch, justStack: JustStack, isFullScreenView: boolean) =>
|
|
11
|
+
export declare type GetTabMenuFn = (layoutId: string, branch: JustBranch, justStack: JustStack, isFullScreenView: boolean) => JSX.Element;
|
|
11
12
|
|
|
12
|
-
export declare type GetTabTitleFn = ({ justId, layoutId, justBranch, isFullScreenView, winInfo }: TabTitleProps) =>
|
|
13
|
+
export declare type GetTabTitleFn = ({ justId, layoutId, justBranch, isFullScreenView, winInfo }: TabTitleProps) => JSX.Element;
|
|
13
14
|
|
|
14
|
-
export declare type GetViewFn = (justId: JustId, layoutId: string) =>
|
|
15
|
+
export declare type GetViewFn = (justId: JustId, layoutId: string) => JSX.Element;
|
|
15
16
|
|
|
16
17
|
export declare type GetWinInfoFn = (justId: JustId) => WinInfo;
|
|
17
18
|
|
|
@@ -36,12 +37,10 @@ export declare type JustBranch = JustSplitDirection[];
|
|
|
36
37
|
|
|
37
38
|
export declare type JustDirection = 'row' | 'column';
|
|
38
39
|
|
|
39
|
-
export declare const JustDraggableTitle:
|
|
40
|
+
export declare const JustDraggableTitle: ((props: Props) => JSX_2.Element) & {
|
|
40
41
|
displayName: string;
|
|
41
42
|
};
|
|
42
43
|
|
|
43
|
-
declare function JustDraggableTitle_2(props: Props): JSX.Element;
|
|
44
|
-
|
|
45
44
|
export declare interface JustDragItem {
|
|
46
45
|
justId: JustId;
|
|
47
46
|
direction?: JustDirection;
|
|
@@ -80,7 +79,6 @@ export declare class JustLayoutService {
|
|
|
80
79
|
getTabNodeInfo: (layout: JustNode | null, curBranch: JustBranch) => NodeInfo | null;
|
|
81
80
|
addTabWin: (layout: JustNode | null, branch: JustBranch, justId: JustId, index: number) => JustNode | null;
|
|
82
81
|
queryWinIdsByViewId: (layout: JustNode | null, viewId: string, justIds: JustId[]) => JustId[];
|
|
83
|
-
queryDupWinIdsByWinId: (layout: JustNode | null, justId: JustId, justIds: JustId[]) => JustId[];
|
|
84
82
|
queryWinIdsByStack: (layout: JustNode | null, branch: JustBranch) => JustId[];
|
|
85
83
|
getNodeByBranch: <T extends JustNode>(obj: JustNode, path: JustBranch) => T;
|
|
86
84
|
updateNodeOfBranch: (layout: JustNode | null, branch: JustBranch, value: any) => JustNode | null;
|
|
@@ -121,7 +119,6 @@ export declare class JustLayoutStore {
|
|
|
121
119
|
activeNextWin: () => void;
|
|
122
120
|
updateResize: (payload: JustPayloadResize) => void;
|
|
123
121
|
moveWin: (payload: JustPayloadMoveWin) => void;
|
|
124
|
-
toggleSideMenu: () => void;
|
|
125
122
|
toggleWin: ({ nodeName }: PayloadToggleWin) => void;
|
|
126
123
|
showWin: ({ nodeName, show }: PayloadShowWin) => void;
|
|
127
124
|
getSizeByNodeName: ({ nodeName }: PayloadGetSize) => number | null | undefined;
|
|
@@ -130,19 +127,16 @@ export declare class JustLayoutStore {
|
|
|
130
127
|
openWin: ({ justId }: PayloadOpenWin) => void;
|
|
131
128
|
openWinByNodeName: ({ justId, nodeName }: PayloadOpenWinByNodeName) => void;
|
|
132
129
|
getWinIds: ({ viewId }: PayloadGetWinIds) => JustId[];
|
|
133
|
-
getDupWinIds: ({ justId }: PayloadGetDupWinIds) => JustId[];
|
|
134
130
|
getWinIdsByBranch: ({ branch }: PayloadGetWinIdsByBranch) => JustId[];
|
|
135
131
|
getNodeAtBranch: ({ branch }: PayloadGetNodeAtBranch) => JustNode | null;
|
|
136
132
|
openWinMenu: ({ justId, nodeName }: PayloadOpenWinMenu) => void;
|
|
137
|
-
fullScreenWin: (justBranch: JustBranch, isFullScreenView: boolean, hideTitle?: boolean) =>
|
|
133
|
+
fullScreenWin: (justBranch: JustBranch, isFullScreenView: boolean, hideTitle?: boolean) => void;
|
|
138
134
|
}
|
|
139
135
|
|
|
140
|
-
export declare const JustLayoutView:
|
|
136
|
+
export declare const JustLayoutView: (({ layoutId, getWinInfo, getTabMenu, initialValue }: Props_2) => JSX_2.Element) & {
|
|
141
137
|
displayName: string;
|
|
142
138
|
};
|
|
143
139
|
|
|
144
|
-
declare function JustLayoutView_2({ layoutId, getWinInfo, getTabMenu, initialValue }: Props_2): JSX.Element;
|
|
145
|
-
|
|
146
140
|
export declare type JustNode = JustStack | JustSplit;
|
|
147
141
|
|
|
148
142
|
export declare interface JustNodeBase {
|
|
@@ -152,12 +146,10 @@ export declare interface JustNodeBase {
|
|
|
152
146
|
hideTitle?: boolean;
|
|
153
147
|
}
|
|
154
148
|
|
|
155
|
-
export declare const JustNodeView:
|
|
149
|
+
export declare const JustNodeView: (({ layoutId, isFullScreenView, hideTitle, dndAccept, node, justBranch, getWinInfo, getTabMenu }: Props_3) => JSX_2.Element) & {
|
|
156
150
|
displayName: string;
|
|
157
151
|
};
|
|
158
152
|
|
|
159
|
-
declare function JustNodeView_2({ layoutId, isFullScreenView, hideTitle, dndAccept, node, justBranch, getWinInfo, getTabMenu }: Props_3): JSX.Element;
|
|
160
|
-
|
|
161
153
|
export declare interface JustPayloadActive {
|
|
162
154
|
justId: JustId;
|
|
163
155
|
}
|
|
@@ -180,15 +172,6 @@ export declare interface JustPayloadCloneTab {
|
|
|
180
172
|
cloneJustId: JustId;
|
|
181
173
|
}
|
|
182
174
|
|
|
183
|
-
export declare interface JustPayloadInsert {
|
|
184
|
-
branch: JustBranch;
|
|
185
|
-
justId: JustId;
|
|
186
|
-
direction: JustDirection;
|
|
187
|
-
pos: JustPos;
|
|
188
|
-
index: number;
|
|
189
|
-
size?: number;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
175
|
export declare type JustPayloadMoveWin = JustPayloadMoveWinStack | JustPayloadMoveWinSplit;
|
|
193
176
|
|
|
194
177
|
export declare interface JustPayloadMoveWinSplit {
|
|
@@ -242,12 +225,10 @@ export declare interface JustSplitPixels extends JustSplitBase {
|
|
|
242
225
|
noSplitter?: boolean;
|
|
243
226
|
}
|
|
244
227
|
|
|
245
|
-
export declare const JustSplitter:
|
|
228
|
+
export declare const JustSplitter: (({ node, containerRef, onChange, onRelease }: Props_4) => JSX_2.Element) & {
|
|
246
229
|
displayName: string;
|
|
247
230
|
};
|
|
248
231
|
|
|
249
|
-
declare function JustSplitter_2({ node, containerRef, onChange, onRelease }: Props_4): JSX.Element;
|
|
250
|
-
|
|
251
232
|
export declare type JustSplitType = 'split-percentage' | 'split-pixels';
|
|
252
233
|
|
|
253
234
|
export declare interface JustStack extends JustNodeBase {
|
|
@@ -256,18 +237,14 @@ export declare interface JustStack extends JustNodeBase {
|
|
|
256
237
|
active: JustId | null;
|
|
257
238
|
}
|
|
258
239
|
|
|
259
|
-
export declare const JustTabMenu:
|
|
240
|
+
export declare const JustTabMenu: (({ layoutId, justBranch, isFullScreenView }: Prop) => JSX_2.Element) & {
|
|
260
241
|
displayName: string;
|
|
261
242
|
};
|
|
262
243
|
|
|
263
|
-
declare
|
|
264
|
-
|
|
265
|
-
export declare const JustTabTitle: typeof JustTabTitle_2 & {
|
|
244
|
+
export declare const JustTabTitle: (({ layoutId, justId, winInfo, menuProps, toggleMenu, anchorPoint }: Props_5) => JSX_2.Element) & {
|
|
266
245
|
displayName: string;
|
|
267
246
|
};
|
|
268
247
|
|
|
269
|
-
declare function JustTabTitle_2({ layoutId, justId, winInfo, menuProps, toggleMenu, anchorPoint }: Props_5): JSX.Element;
|
|
270
|
-
|
|
271
248
|
export declare type JustType = 'stack' | JustSplitType;
|
|
272
249
|
|
|
273
250
|
export declare type JustUpdateSpec = Spec<JustNode>;
|
|
@@ -283,24 +260,18 @@ export declare class JustUtil {
|
|
|
283
260
|
static replaceDup(justId: JustId): JustId;
|
|
284
261
|
}
|
|
285
262
|
|
|
286
|
-
export declare const JustWinBodyView:
|
|
263
|
+
export declare const JustWinBodyView: ((props: Props_6) => JSX_2.Element) & {
|
|
287
264
|
displayName: string;
|
|
288
265
|
};
|
|
289
266
|
|
|
290
|
-
declare
|
|
291
|
-
|
|
292
|
-
export declare const JustWinTitleView: typeof JustWinTitleView_2 & {
|
|
267
|
+
export declare const JustWinTitleView: (({ layoutId, isFullScreenView, dndAccept, justBranch, justStack, getWinInfo, getTabMenu }: Props_7) => JSX_2.Element) & {
|
|
293
268
|
displayName: string;
|
|
294
269
|
};
|
|
295
270
|
|
|
296
|
-
declare
|
|
297
|
-
|
|
298
|
-
export declare const JustWinView: typeof JustWinView_2 & {
|
|
271
|
+
export declare const JustWinView: (({ layoutId, isFullScreenView, hideTitle, dndAccept, justBranch, justStack, getWinInfo, getTabMenu }: Props_8) => JSX_2.Element) & {
|
|
299
272
|
displayName: string;
|
|
300
273
|
};
|
|
301
274
|
|
|
302
|
-
declare function JustWinView_2({ layoutId, isFullScreenView, hideTitle, dndAccept, justBranch, justStack, getWinInfo, getTabMenu }: Props_8): JSX.Element;
|
|
303
|
-
|
|
304
275
|
export declare interface NodeInfo {
|
|
305
276
|
node: JustNode;
|
|
306
277
|
branch: JustBranch;
|
|
@@ -310,10 +281,6 @@ declare interface PayloadGetBranchByJustId {
|
|
|
310
281
|
justId: JustId;
|
|
311
282
|
}
|
|
312
283
|
|
|
313
|
-
declare interface PayloadGetDupWinIds {
|
|
314
|
-
justId: JustId;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
284
|
declare interface PayloadGetNodeAtBranch {
|
|
318
285
|
branch: JustBranch;
|
|
319
286
|
}
|