@project-sunbird/collection-editor-react 0.1.22 → 0.1.24

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.
@@ -59,7 +59,7 @@ export interface IPrepareContext {
59
59
  contextAdditionalCategories?: string[];
60
60
  /** editorConfig.context.user.fullName */
61
61
  userFullName?: string;
62
- /** channelInfo.name — used as default copyright when setDefaultCopyRight. */
62
+ /** channelInfo.name — default copyright whenever the field is empty. */
63
63
  channelName?: string;
64
64
  /** channelInfo.collectionAdditionalCategories */
65
65
  collectionAdditionalCategories?: string[];
@@ -12,4 +12,5 @@ import { ToolbarAction } from '../types/editor';
12
12
  */
13
13
  export declare function useToolbarActions(save: () => Promise<void>): {
14
14
  runAction: (action: ToolbarAction, data?: unknown) => Promise<boolean>;
15
+ checkRequiredFields: () => boolean;
15
16
  };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Display name of a user, for auto-filling the author field.
3
+ * firstName + lastName (trimmed), falling back to userName.
4
+ * Cached indefinitely — a user's name doesn't change within a session.
5
+ */
6
+ export declare function useUserFullName(userId?: string): string | undefined;