@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.
- package/dist/api/user.d.ts +7 -0
- package/dist/collection-editor.umd.js +92 -92
- package/dist/components/SparkMetaForm/hooks/useFieldPrepare.d.ts +1 -1
- package/dist/hooks/useToolbarActions.d.ts +1 -0
- package/dist/hooks/useUserFullName.d.ts +6 -0
- package/dist/index.cjs +92 -92
- package/dist/index.js +4781 -4700
- package/dist/style.css +1 -1
- package/dist/types/editor.d.ts +5 -0
- package/dist/utils/validateRequiredFields.d.ts +21 -0
- package/dist/utils/validateRequiredFields.test.d.ts +1 -0
- package/package.json +1 -1
package/dist/api/user.d.ts
CHANGED
|
@@ -32,4 +32,11 @@ export declare function searchUsers(query: string, opts?: SearchOpts): Promise<I
|
|
|
32
32
|
* content's existing collaborators by name rather than raw id).
|
|
33
33
|
*/
|
|
34
34
|
export declare function getUsersByIds(ids: string[]): Promise<IUser[]>;
|
|
35
|
+
/**
|
|
36
|
+
* Read a user's profile — used to auto-fill the author field with the current
|
|
37
|
+
* user's name. Served via the portal-service proxy (session auth), the same
|
|
38
|
+
* route family as the questionset APIs (/portal/*).
|
|
39
|
+
* Response shape: { result: { response: { firstName, lastName, userName, … } } }
|
|
40
|
+
*/
|
|
41
|
+
export declare function readUser(userId: string): Promise<IUser>;
|
|
35
42
|
export {};
|