@myunisoft/design-system 1.2.9-rev157-2 → 1.2.9-rev157-4

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.
@@ -7,8 +7,5 @@ type IconContainerSlotProps = {
7
7
  isVisible?: boolean;
8
8
  [key: string]: unknown;
9
9
  };
10
- export declare const IconContainerSlot: {
11
- (props: IconContainerSlotProps): import("react/jsx-runtime").JSX.Element;
12
- displayName: string;
13
- };
10
+ export declare const IconContainerSlot: import("react").MemoExoticComponent<(props: IconContainerSlotProps) => import("react/jsx-runtime").JSX.Element>;
14
11
  export {};
@@ -7,6 +7,7 @@ type LabelSlotProps = {
7
7
  customIcon?: React.ReactNode;
8
8
  hasMenu?: boolean;
9
9
  isVisible?: boolean;
10
+ isTemporary?: boolean;
10
11
  itemId: string;
11
12
  menuAnchorEl?: HTMLElement | null;
12
13
  onMenuClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
@@ -16,8 +17,5 @@ type LabelSlotProps = {
16
17
  hiddenIconTooltip?: string;
17
18
  [key: string]: unknown;
18
19
  };
19
- export declare const LabelSlot: {
20
- (props: LabelSlotProps): import("react/jsx-runtime").JSX.Element;
21
- displayName: string;
22
- };
20
+ export declare const LabelSlot: import("react").MemoExoticComponent<(props: LabelSlotProps) => import("react/jsx-runtime").JSX.Element>;
23
21
  export {};
@@ -2,5 +2,5 @@ import type { DocumentComposerCallbacks, DocumentComposerCustomProps, DocumentSe
2
2
  type DocumentComposerProps = {
3
3
  sections?: DocumentSection[];
4
4
  } & DocumentComposerCallbacks & DocumentComposerCustomProps;
5
- declare const DocumentComposer: ({ sections, onSectionOrderChange, onSectionTitleChange, onSectionDelete, onSectionVisibilityChange, onSectionCreate, noSectionsPlaceholder, isLoading, getSectionRenamePermission, getSectionDeletePermission, getSectionReorderPermission, getSectionCreatePermission, getSectionVisibilityPermission, hiddenSectionTooltip, visibleIconTooltip, hiddenIconTooltip }: DocumentComposerProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const DocumentComposer: ({ sections, onSectionOrderChange, onSectionTitleChange, onSectionDelete, onSectionVisibilityChange, onSectionCreate, noSectionsPlaceholder, isLoading, getSectionTitleChangePermission, getSectionDeletePermission, getSectionReorderPermission, getSectionCreatePermission, getSectionVisibilityPermission, hiddenSectionTooltip, visibleIconTooltip, hiddenIconTooltip }: DocumentComposerProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export default DocumentComposer;
@@ -28,7 +28,7 @@ export type DocumentComposerCustomProps = {
28
28
  /** Show a loading state that prevents rendering the sections */
29
29
  isLoading?: boolean;
30
30
  /** Returns whether section title can be edited (double-click + "Renommer" menu). Defaults to `() => true`. */
31
- getSectionRenamePermission?: (section: DocumentSection) => boolean;
31
+ getSectionTitleChangePermission?: (section: DocumentSection) => boolean;
32
32
  /** Returns whether section can be deleted ("Supprimer" menu). Defaults to `() => true`. */
33
33
  getSectionDeletePermission?: (section: DocumentSection) => boolean;
34
34
  /** Returns whether section can be reordered via drag & drop. Defaults to `() => true`. */