@omerlo/omerlo-webkit 0.0.39 → 0.0.40

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.
@@ -68,7 +68,3 @@ export declare function parseProfileAddress(data: ApiData, _assocs: ApiAssocs):
68
68
  export declare function parseProfileContact(data: ApiData, _assocs: ApiAssocs): ProfileContact;
69
69
  export declare function parseProfileDescriptionBlock(data: ApiData, assocs: ApiAssocs): ProfileDescriptionBlock;
70
70
  export declare function parseProfileDescription(data: ApiData, assocs: ApiAssocs): ProfileDescription;
71
- export declare function isEvent(profile: ProfileSummary): profile is EventSummary;
72
- export declare function isOrganization(profile: ProfileSummary): profile is OrganizationSummary;
73
- export declare function isPerson(profile: ProfileSummary): profile is PersonSummary;
74
- export declare function isProject(profile: ProfileSummary): profile is ProjectSummary;
@@ -95,15 +95,3 @@ export function parseProfileDescription(data, assocs) {
95
95
  blocks
96
96
  };
97
97
  }
98
- export function isEvent(profile) {
99
- return profile.kind === 'event';
100
- }
101
- export function isOrganization(profile) {
102
- return profile.kind === 'organization';
103
- }
104
- export function isPerson(profile) {
105
- return profile.kind === 'person';
106
- }
107
- export function isProject(profile) {
108
- return profile.kind === 'project';
109
- }
@@ -0,0 +1,9 @@
1
+ import type { EventSummary } from '../endpoints/events';
2
+ import type { OrganizationSummary } from '../endpoints/organizations';
3
+ import type { PersonSummary } from '../endpoints/person';
4
+ import type { ProfileSummary } from '../endpoints/profiles';
5
+ import type { ProjectSummary } from '../endpoints/projects';
6
+ export declare function isEvent(profile: ProfileSummary): profile is EventSummary;
7
+ export declare function isOrganization(profile: ProfileSummary): profile is OrganizationSummary;
8
+ export declare function isPerson(profile: ProfileSummary): profile is PersonSummary;
9
+ export declare function isProject(profile: ProfileSummary): profile is ProjectSummary;
@@ -0,0 +1,12 @@
1
+ export function isEvent(profile) {
2
+ return profile.kind === 'event';
3
+ }
4
+ export function isOrganization(profile) {
5
+ return profile.kind === 'organization';
6
+ }
7
+ export function isPerson(profile) {
8
+ return profile.kind === 'person';
9
+ }
10
+ export function isProject(profile) {
11
+ return profile.kind === 'project';
12
+ }
@@ -0,0 +1 @@
1
+ export * from './guards';
@@ -0,0 +1 @@
1
+ export * from './guards';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omerlo/omerlo-webkit",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",
@@ -35,6 +35,10 @@
35
35
  "./reader/server": {
36
36
  "types": "./dist/omerlo/reader/server/index.d.ts",
37
37
  "svelte": "./dist/omerlo/reader/server/index.js"
38
+ },
39
+ "./reader/utils": {
40
+ "types": "./dist/omerlo/reader/utils/index.d.ts",
41
+ "svelte": "./dist/omerlo/reader/utils/index.js"
38
42
  }
39
43
  },
40
44
  "peerDependencies": {