@project-sunbird/collection-editor-react 0.1.23 → 0.1.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/api/user.d.ts +7 -0
- package/dist/collection-editor.umd.js +92 -92
- package/dist/components/ContentPlayer/ContentPlayer.d.ts +6 -0
- package/dist/hooks/useUserFullName.d.ts +6 -0
- package/dist/index.cjs +92 -92
- package/dist/index.js +4951 -4958
- package/dist/style.css +1 -1
- package/dist/types/editor.d.ts +6 -2
- package/package.json +2 -2
|
@@ -7,6 +7,12 @@ interface ContentPlayerProps {
|
|
|
7
7
|
type: 'content' | 'quml';
|
|
8
8
|
/** For type='quml': render a single question rather than the whole set. */
|
|
9
9
|
singleQuestion?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* 'fill' (default): player flex-fills its container (library preview modal).
|
|
12
|
+
* 'flow': player keeps an intrinsic 16:9 height so it can sit in a
|
|
13
|
+
* scrollable column with the info strip and edit form below (leaf content).
|
|
14
|
+
*/
|
|
15
|
+
layout?: 'fill' | 'flow';
|
|
10
16
|
}
|
|
11
17
|
export declare const ContentPlayer: React.FC<ContentPlayerProps>;
|
|
12
18
|
export {};
|
|
@@ -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;
|