@ndla/ui 34.6.0 → 34.6.1

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.
@@ -52,7 +52,7 @@ export interface FeideUser {
52
52
  cn: string[];
53
53
  displayName: string;
54
54
  eduPersonAffiliation: AffiliationType[];
55
- eduPersonPrimaryAffiliation: string;
55
+ eduPersonPrimaryAffiliation: AffiliationType;
56
56
  eduPersonPrincipalName: string;
57
57
  givenName: string[];
58
58
  mail?: string[];
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import AuthModal from './AuthModal';
9
9
  import { UserInfo } from './UserInfo';
10
- import type { FeideGoGroup, FeideGroup, FeideOrg, FeideUserApiType, FeideMembershipType, FeideUser } from './apiTypes';
10
+ import type { AffiliationType, FeideGoGroup, FeideGroup, FeideOrg, FeideUserApiType, FeideMembershipType, FeideUser } from './apiTypes';
11
11
  export { UserInfo };
12
- export type { FeideGoGroup, FeideGroup, FeideOrg, FeideUserApiType, FeideMembershipType, FeideUser };
12
+ export type { AffiliationType, FeideGoGroup, FeideGroup, FeideOrg, FeideUserApiType, FeideMembershipType, FeideUser };
13
13
  export default AuthModal;
@@ -12,7 +12,7 @@ type GoGroupType = 'basic' | 'teaching' | 'other';
12
12
  */
13
13
  export declare const parseUserObject: (user: FeideUserApiType) => {
14
14
  uid: string[];
15
- primaryAffiliation: string;
15
+ primaryAffiliation: import("./apiTypes").AffiliationType;
16
16
  displayName: string;
17
17
  mail: string[] | undefined;
18
18
  organizations: {
package/lib/index.d.ts CHANGED
@@ -42,7 +42,7 @@ export { default as MastheadSearchModal } from './Masthead/MastheadSearchModal';
42
42
  export { default as MastheadAuthModal } from './Masthead/MastheadAuthModal';
43
43
  export { UserInfo } from './User';
44
44
  export { default as AuthModal } from './User';
45
- export type { FeideGoGroup, FeideGroup, FeideOrg, FeideUserApiType, FeideMembershipType, FeideUser } from './User';
45
+ export type { AffiliationType, FeideGoGroup, FeideGroup, FeideOrg, FeideUserApiType, FeideMembershipType, FeideUser, } from './User';
46
46
  export { default as resourceTypeColor } from './utils/resourceTypeColor';
47
47
  export { default as CreatedBy } from './CreatedBy';
48
48
  export { default as Breadcrumblist } from './Breadcrumblist';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "34.6.0",
3
+ "version": "34.6.1",
4
4
  "description": "UI component library for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -83,5 +83,5 @@
83
83
  "publishConfig": {
84
84
  "access": "public"
85
85
  },
86
- "gitHead": "50e9e5252247d22709a54d0ad481c10ad62f803b"
86
+ "gitHead": "f4df50f25d48eeea4c064864366cf0ccb2d4f778"
87
87
  }
@@ -66,7 +66,7 @@ export interface FeideUser {
66
66
  cn: string[];
67
67
  displayName: string;
68
68
  eduPersonAffiliation: AffiliationType[];
69
- eduPersonPrimaryAffiliation: string;
69
+ eduPersonPrimaryAffiliation: AffiliationType;
70
70
  eduPersonPrincipalName: string;
71
71
  givenName: string[];
72
72
  mail?: string[];
package/src/User/index.ts CHANGED
@@ -8,8 +8,16 @@
8
8
 
9
9
  import AuthModal from './AuthModal';
10
10
  import { UserInfo } from './UserInfo';
11
- import type { FeideGoGroup, FeideGroup, FeideOrg, FeideUserApiType, FeideMembershipType, FeideUser } from './apiTypes';
11
+ import type {
12
+ AffiliationType,
13
+ FeideGoGroup,
14
+ FeideGroup,
15
+ FeideOrg,
16
+ FeideUserApiType,
17
+ FeideMembershipType,
18
+ FeideUser,
19
+ } from './apiTypes';
12
20
 
13
21
  export { UserInfo };
14
- export type { FeideGoGroup, FeideGroup, FeideOrg, FeideUserApiType, FeideMembershipType, FeideUser };
22
+ export type { AffiliationType, FeideGoGroup, FeideGroup, FeideOrg, FeideUserApiType, FeideMembershipType, FeideUser };
15
23
  export default AuthModal;
package/src/index.ts CHANGED
@@ -121,7 +121,15 @@ export { default as MastheadSearchModal } from './Masthead/MastheadSearchModal';
121
121
  export { default as MastheadAuthModal } from './Masthead/MastheadAuthModal';
122
122
  export { UserInfo } from './User';
123
123
  export { default as AuthModal } from './User';
124
- export type { FeideGoGroup, FeideGroup, FeideOrg, FeideUserApiType, FeideMembershipType, FeideUser } from './User';
124
+ export type {
125
+ AffiliationType,
126
+ FeideGoGroup,
127
+ FeideGroup,
128
+ FeideOrg,
129
+ FeideUserApiType,
130
+ FeideMembershipType,
131
+ FeideUser,
132
+ } from './User';
125
133
 
126
134
  export { default as resourceTypeColor } from './utils/resourceTypeColor';
127
135