@omerlo/omerlo-webkit 0.0.50 → 0.0.52

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.
@@ -5,6 +5,7 @@ export declare const accountsFetchers: (f: typeof fetch) => {
5
5
  };
6
6
  export declare function getUserInfo(f: typeof fetch): (params?: Partial<ApiParams>) => Promise<import("../utils/api").ApiResponse<UserInfo>>;
7
7
  export interface UserInfo {
8
+ id: string;
8
9
  name: string;
9
10
  email: string;
10
11
  }
@@ -17,6 +17,7 @@ export function getUserInfo(f) {
17
17
  }
18
18
  function parseUserInfo(data, _assoc) {
19
19
  return {
20
+ id: data.id,
20
21
  name: data.name,
21
22
  email: data.email
22
23
  };
@@ -26,9 +26,9 @@ export interface EventSummary {
26
26
  kind: string;
27
27
  type: string;
28
28
  isAllDay: boolean;
29
- profileImageURL: string | null;
30
- coverImageURL: string | null;
31
- subscriptionURL: string | null;
29
+ profileImageUrl: string | null;
30
+ coverImageUrl: string | null;
31
+ subscriptionUrl: string | null;
32
32
  meta: {
33
33
  locales: LocalesMetadata;
34
34
  };
@@ -43,9 +43,9 @@ export function parseEventSummary(data, assocs) {
43
43
  type: data.type,
44
44
  isAllDay: data.is_all_day,
45
45
  // NOTE remove logo_image_url once using reader api
46
- profileImageURL: data.logo_image_url || data.profile_image_url,
47
- coverImageURL: data.cover_image_url,
48
- subscriptionURL: data.subscription_url,
46
+ profileImageUrl: data.logo_image_url || data.profile_image_url,
47
+ coverImageUrl: data.cover_image_url,
48
+ subscriptionUrl: data.subscription_url,
49
49
  name,
50
50
  summaryHtml,
51
51
  summaryText,
@@ -19,7 +19,7 @@ export interface OrganizationSummary {
19
19
  profileType: ProfileType;
20
20
  kind: string;
21
21
  name: string;
22
- profileImageURL: string | null;
22
+ profileImageUrl: string | null;
23
23
  meta: {
24
24
  locales: LocalesMetadata;
25
25
  };
@@ -56,7 +56,7 @@ export function parseOrganizationSummary(data, assocs) {
56
56
  kind: 'organization',
57
57
  name: data.name,
58
58
  // NOTE remove logo_image_url once using reader api
59
- profileImageURL: data.logo_image_url || data.profile_image_url,
59
+ profileImageUrl: data.logo_image_url || data.profile_image_url,
60
60
  ...localizedField,
61
61
  updatedAt: new Date(data.updated_at)
62
62
  };
@@ -21,8 +21,8 @@ export interface PersonSummary {
21
21
  lastName: string;
22
22
  otherName: string | null;
23
23
  pronoun: string | null;
24
- profileImageURL: string | null;
25
- coverImageURL: string | null;
24
+ profileImageUrl: string | null;
25
+ coverImageUrl: string | null;
26
26
  meta: {
27
27
  locales: LocalesMetadata;
28
28
  };
@@ -59,8 +59,8 @@ export function parsePersonSummary(data, assocs) {
59
59
  otherName: data.other_name,
60
60
  pronoun: data.pronoun,
61
61
  // NOTE remove logo_image_url once using reader api
62
- profileImageURL: data.avatar_image_url || data.profile_image_url,
63
- coverImageURL: data.cover_image_url,
62
+ profileImageUrl: data.avatar_image_url || data.profile_image_url,
63
+ coverImageUrl: data.cover_image_url,
64
64
  ...localizedField,
65
65
  updatedAt: new Date(data.updated_at)
66
66
  };
@@ -22,12 +22,14 @@ export interface ProfileAddress {
22
22
  };
23
23
  }
24
24
  export interface ProfileContact {
25
- phone: string | null;
25
+ bluesky: string | null;
26
26
  email: string | null;
27
- linkedin: string | null;
28
- website: string | null;
29
27
  facebook: string | null;
28
+ instagram: string | null;
29
+ linkedin: string | null;
30
+ phone: string | null;
30
31
  twitter: string | null;
32
+ website: string | null;
31
33
  meta: {
32
34
  locales: LocalesMetadata;
33
35
  };
@@ -81,12 +81,14 @@ export function parseProfileAddress(data, _assocs) {
81
81
  }
82
82
  export function parseProfileContact(data, _assocs) {
83
83
  return {
84
- phone: data.phone,
84
+ bluesky: data.bluesky,
85
85
  email: data.email,
86
- linkedin: data.linkedin,
87
- website: data.website,
88
86
  facebook: data.facebook,
87
+ instagram: data.instagram,
88
+ linkedin: data.linkedin,
89
+ phone: data.phone,
89
90
  twitter: data.twitter,
91
+ website: data.website,
90
92
  meta: buildMeta(data.locale)
91
93
  };
92
94
  }
@@ -15,8 +15,8 @@ export interface ProjectSummary {
15
15
  id: string;
16
16
  profileType: ProfileType;
17
17
  kind: string;
18
- profileImageURL: string | null;
19
- coverImageURL: string | null;
18
+ profileImageUrl: string | null;
19
+ coverImageUrl: string | null;
20
20
  meta: {
21
21
  locales: LocalesMetadata;
22
22
  };
@@ -36,8 +36,8 @@ export function parseProjectSummary(data, assocs) {
36
36
  profileType: getAssoc(assocs, 'profile_types', data.profile_type_id),
37
37
  kind: 'project',
38
38
  // NOTE remove logo_image_url once using reader api
39
- profileImageURL: data.logo_image_url || data.profile_image_url,
40
- coverImageURL: data.cover_image_url,
39
+ profileImageUrl: data.logo_image_url || data.profile_image_url,
40
+ coverImageUrl: data.cover_image_url,
41
41
  meta: buildMeta(data.localized?.locale),
42
42
  name: data.localized?.name,
43
43
  summaryHtml: data.localized?.summary_html,
@@ -10,8 +10,8 @@ export interface Video {
10
10
  monetized: boolean;
11
11
  provider: string;
12
12
  source?: string;
13
- embedURL: string;
14
- thumbnailURL: string;
13
+ embedUrl: string;
14
+ thumbnailUrl: string;
15
15
  isTrackingEnabled: boolean;
16
16
  }
17
17
  export interface Slideshow {
@@ -33,8 +33,8 @@ export function parseVideo(data, _assocs) {
33
33
  videoID: data.video_id,
34
34
  monetized: data.monetized,
35
35
  provider: data.provider,
36
- embedURL: data.embed_url,
37
- thumbnailURL: data.thumbnail_url,
36
+ embedUrl: data.embed_url,
37
+ thumbnailUrl: data.thumbnail_url,
38
38
  url: data.url,
39
39
  captionHtml: data.caption_html,
40
40
  credit: data.credit,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omerlo/omerlo-webkit",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",