@myunisoft/design-system 1.2.9-rev157-2 → 1.2.9-rev157-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.
|
@@ -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,
|
|
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
|
-
|
|
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`. */
|