@kangtae49/just-layout 0.0.22 → 0.0.25

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
@@ -8,9 +8,9 @@ import { Spec } from 'immutability-helper';
8
8
 
9
9
  export declare type GetTabIconFn = (justId: JustId, layoutId: string) => JSX.Element;
10
10
 
11
- export declare type GetTabMenuFn = (layoutId: string, branch: JustBranch, justStack: JustStack, isFullScreenView: boolean) => JSX.Element;
11
+ export declare type GetTabMenuFn = (layoutId: string, branch: JustBranch, justStack: JustStack) => JSX.Element;
12
12
 
13
- export declare type GetTabTitleFn = ({ justId, layoutId, justBranch, isFullScreenView, winInfo }: TabTitleProps) => JSX.Element;
13
+ export declare type GetTabTitleFn = ({ justId, layoutId, justBranch, winInfo }: TabTitleProps) => JSX.Element;
14
14
 
15
15
  export declare type GetViewFn = (justId: JustId, layoutId: string) => JSX.Element;
16
16
 
@@ -96,8 +96,7 @@ export declare class JustLayoutStore {
96
96
  layout: JustNode | null;
97
97
  lastActiveId: JustId | null;
98
98
  lastActiveTm: number;
99
- fullScreenLayout: JustNode | null;
100
- fullScreenHideTitle: boolean;
99
+ hideTitle: boolean;
101
100
  tabTitleMap: Map<string, string>;
102
101
  tabTitleTooltipMap: Map<string, string>;
103
102
  constructor(service: JustLayoutService);
@@ -106,8 +105,7 @@ export declare class JustLayoutStore {
106
105
  getTabTitle: (justId: JustId) => string | undefined;
107
106
  setTabTitleTooltip: (justId: JustId, tooltip: string) => void;
108
107
  getTabTitleTooltip: (justId: JustId) => string | undefined;
109
- setFullScreenLayoutByBranch: (payload: JustBranch | null) => void;
110
- setFullScreenHideTitle: (flag: boolean) => void;
108
+ setHideTitle: (flag: boolean) => void;
111
109
  addTab: (payload: JustPayloadAddTab) => void;
112
110
  addTabByNodeName: (payload: JustPayloadAddTabByNodeName) => void;
113
111
  queryWinIdsByViewId: (viewId: string) => JustId[];
@@ -130,10 +128,9 @@ export declare class JustLayoutStore {
130
128
  getWinIdsByBranch: ({ branch }: PayloadGetWinIdsByBranch) => JustId[];
131
129
  getNodeAtBranch: ({ branch }: PayloadGetNodeAtBranch) => JustNode | null;
132
130
  openWinMenu: ({ justId, nodeName }: PayloadOpenWinMenu) => void;
133
- fullScreenWin: (justBranch: JustBranch, isFullScreenView: boolean, hideTitle?: boolean) => void;
134
131
  }
135
132
 
136
- export declare const JustLayoutView: (({ layoutId, getWinInfo, getTabMenu, initialValue }: Props_2) => JSX_2.Element) & {
133
+ export declare const JustLayoutView: (({ layoutId, getWinInfo, getTabMenu }: Props_2) => JSX_2.Element) & {
137
134
  displayName: string;
138
135
  };
139
136
 
@@ -146,7 +143,7 @@ export declare interface JustNodeBase {
146
143
  hideTitle?: boolean;
147
144
  }
148
145
 
149
- export declare const JustNodeView: (({ layoutId, isFullScreenView, hideTitle, dndAccept, node, justBranch, getWinInfo, getTabMenu }: Props_3) => JSX_2.Element) & {
146
+ export declare const JustNodeView: (({ layoutId, hideTitle, dndAccept, node, justBranch, getWinInfo, getTabMenu }: Props_3) => JSX_2.Element) & {
150
147
  displayName: string;
151
148
  };
152
149
 
@@ -237,7 +234,7 @@ export declare interface JustStack extends JustNodeBase {
237
234
  active: JustId | null;
238
235
  }
239
236
 
240
- export declare const JustTabMenu: (({ layoutId, justBranch, isFullScreenView }: Prop) => JSX_2.Element) & {
237
+ export declare const JustTabMenu: (({ layoutId, justBranch }: Prop) => JSX_2.Element) & {
241
238
  displayName: string;
242
239
  };
243
240
 
@@ -264,11 +261,11 @@ export declare const JustWinBodyView: ((props: Props_6) => JSX_2.Element) & {
264
261
  displayName: string;
265
262
  };
266
263
 
267
- export declare const JustWinTitleView: (({ layoutId, isFullScreenView, dndAccept, justBranch, justStack, getWinInfo, getTabMenu }: Props_7) => JSX_2.Element) & {
264
+ export declare const JustWinTitleView: (({ layoutId, dndAccept, justBranch, justStack, getWinInfo, getTabMenu }: Props_7) => JSX_2.Element) & {
268
265
  displayName: string;
269
266
  };
270
267
 
271
- export declare const JustWinView: (({ layoutId, isFullScreenView, hideTitle, dndAccept, justBranch, justStack, getWinInfo, getTabMenu }: Props_8) => JSX_2.Element) & {
268
+ export declare const JustWinView: (({ layoutId, hideTitle, dndAccept, justBranch, justStack, getWinInfo, getTabMenu }: Props_8) => JSX_2.Element) & {
272
269
  displayName: string;
273
270
  };
274
271
 
@@ -328,12 +325,10 @@ declare interface Prop {
328
325
  layoutId: string;
329
326
  justBranch: JustBranch;
330
327
  justStack: JustStack;
331
- isFullScreenView: boolean;
332
328
  }
333
329
 
334
330
  declare interface Props extends default_2.Attributes {
335
331
  layoutId: string;
336
- isFullScreenView: boolean;
337
332
  dndAccept: string[];
338
333
  justBranch: JustBranch;
339
334
  justId: JustId;
@@ -345,13 +340,11 @@ declare interface Props extends default_2.Attributes {
345
340
  declare interface Props_2 extends default_2.Attributes {
346
341
  layoutId: string;
347
342
  getWinInfo: GetWinInfoFn;
348
- initialValue: JustNode;
349
343
  getTabMenu?: GetTabMenuFn;
350
344
  }
351
345
 
352
346
  declare interface Props_3 extends React_2.Attributes {
353
347
  layoutId: string;
354
- isFullScreenView: boolean;
355
348
  justBranch: JustBranch;
356
349
  node: JustNode | null;
357
350
  getWinInfo: GetWinInfoFn;
@@ -373,7 +366,6 @@ declare interface Props_5 extends default_2.Attributes {
373
366
  justId: JustId;
374
367
  layoutId: string;
375
368
  justBranch: JustBranch;
376
- isFullScreenView: boolean;
377
369
  winInfo: WinInfo;
378
370
  menuProps: {
379
371
  state?: "opening" | "open" | "closing" | "closed";
@@ -396,7 +388,6 @@ declare interface Props_6 extends default_2.Attributes {
396
388
 
397
389
  declare interface Props_7 extends default_2.Attributes {
398
390
  layoutId: string;
399
- isFullScreenView: boolean;
400
391
  dndAccept: string[];
401
392
  justBranch: JustBranch;
402
393
  justStack: JustStack;
@@ -406,7 +397,6 @@ declare interface Props_7 extends default_2.Attributes {
406
397
 
407
398
  declare interface Props_8 extends default_2.Attributes {
408
399
  layoutId: string;
409
- isFullScreenView: boolean;
410
400
  hideTitle?: boolean;
411
401
  dndAccept: string[];
412
402
  justBranch: JustBranch;
@@ -415,14 +405,14 @@ declare interface Props_8 extends default_2.Attributes {
415
405
  getTabMenu?: GetTabMenuFn;
416
406
  }
417
407
 
418
- declare type SplitSize = SplitSizePercentage | SplitSizePiexels;
408
+ declare type SplitSize = SplitSizePercentage | SplitSizePixels;
419
409
 
420
410
  declare interface SplitSizePercentage {
421
411
  type: JustSplitType;
422
412
  size: number;
423
413
  }
424
414
 
425
- declare interface SplitSizePiexels {
415
+ declare interface SplitSizePixels {
426
416
  type: JustSplitType;
427
417
  primary: JustSplitDirection;
428
418
  size: number;
@@ -434,7 +424,6 @@ export declare interface TabTitleProps {
434
424
  justId: JustId;
435
425
  layoutId: string;
436
426
  justBranch: JustBranch;
437
- isFullScreenView: boolean;
438
427
  winInfo: WinInfo;
439
428
  menuProps: {
440
429
  state?: "opening" | "open" | "closing" | "closed";