@myunisoft/design-system 1.2.2 → 1.2.3

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.
@@ -30,6 +30,7 @@ export type TreeviewProps<T> = {
30
30
  onItemLabelChange?: (itemId: string, newLabel: string) => void;
31
31
  checkboxSelection?: boolean;
32
32
  multiSelect?: boolean;
33
+ defaultExpandedItems?: string[];
33
34
  } & CustomTreeviewItemProps<T>;
34
35
  export type TreeviewItemProps<T> = {
35
36
  itemId: string;
@@ -1,8 +1,8 @@
1
1
  import type { RichTreeViewProApiRef } from '@mui/x-tree-view-pro';
2
2
  import type { ItemPositionParams } from '../Treeview/types';
3
- import type { DocumentComposerCallbacks, DocumentComposerSummary, DocumentComposerSummaryItem } from '../types';
3
+ import type { DocumentComposerCallbacks, DocumentComposerSummaryItem } from '../types';
4
4
  type HookDocumentComposerProps = {
5
- summary?: DocumentComposerSummary;
5
+ summary?: DocumentComposerSummaryItem[];
6
6
  } & DocumentComposerCallbacks;
7
7
  export declare const useDocumentComposer: ({ summary, onSummaryItemVisibilityChange, onSummaryItemDelete }: HookDocumentComposerProps) => {
8
8
  summaryItemsMap: Map<string, DocumentComposerSummaryItem>;
@@ -1,6 +1,6 @@
1
- import type { DocumentComposerCallbacks, DocumentComposerCustomProps, DocumentComposerSummary } from './types';
1
+ import type { DocumentComposerCallbacks, DocumentComposerCustomProps, DocumentComposerSummaryItem } from './types';
2
2
  type DocumentComposerProps = {
3
- summary?: DocumentComposerSummary;
3
+ summary?: DocumentComposerSummaryItem[];
4
4
  } & DocumentComposerCallbacks & DocumentComposerCustomProps;
5
- declare const DocumentComposer: ({ summary, onSummaryItemOrderChange, onSummaryItemLabelChange, onSummaryItemDelete, onSummaryItemVisibilityChange, emptySummaryLabel }: DocumentComposerProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const DocumentComposer: ({ summary, onSummaryItemOrderChange, onSummaryItemLabelChange, onSummaryItemDelete, onSummaryItemVisibilityChange, emptySummaryLabel, isLoading }: DocumentComposerProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export default DocumentComposer;
@@ -1,11 +1,4 @@
1
1
  import type { ItemPositionParams } from './Treeview/types';
2
- export type DocumentComposerSummary = {
3
- id: string;
4
- label: string;
5
- createdAt: string;
6
- updatedAt: string;
7
- sections?: DocumentComposerSummaryItem[] | null;
8
- };
9
2
  export type DocumentComposerSummaryItem = {
10
3
  id: string;
11
4
  title: string;
@@ -19,6 +12,8 @@ export type ItemDisplayOrder = {
19
12
  };
20
13
  export type DocumentComposerCustomProps = {
21
14
  emptySummaryLabel?: string | React.ReactNode;
15
+ /** Show a loading state that blocks the summary */
16
+ isLoading?: boolean;
22
17
  };
23
18
  export type DocumentComposerCallbacks = {
24
19
  onSummaryItemOrderChange?: (params: ItemPositionParams) => void;