fimo-react 2.2.0-staging.9 → 2.2.1-staging.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.
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import type { Fields, FimoMedia, FimoReference, FimoRichText, FimoRichTextContent, FimoString, Populate, PopulatedResult, ProjectedWithPopulate, Query, Sort, Where, WithReferences } from 'fimo/primitives';
|
|
2
2
|
import type { Post } from './Post.types.js';
|
|
3
|
+
type FimoMediaRef = ({
|
|
4
|
+
id: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
} | {
|
|
7
|
+
id?: string;
|
|
8
|
+
url: string;
|
|
9
|
+
}) & {
|
|
10
|
+
alt?: string;
|
|
11
|
+
source?: 'local' | 'external';
|
|
12
|
+
};
|
|
3
13
|
export interface AuthorFimoMeta {
|
|
4
14
|
contentType: string;
|
|
5
15
|
}
|
|
@@ -23,7 +33,7 @@ export interface AuthorInput {
|
|
|
23
33
|
documentId?: string;
|
|
24
34
|
name: string;
|
|
25
35
|
bio?: FimoRichTextContent | null;
|
|
26
|
-
avatar?:
|
|
36
|
+
avatar?: FimoMediaRef;
|
|
27
37
|
posts?: FimoReference[];
|
|
28
38
|
}
|
|
29
39
|
export interface AuthorReferences {
|
|
@@ -35,4 +45,5 @@ export type AuthorSort = Sort<Author>;
|
|
|
35
45
|
export type AuthorFields = Fields<Author>;
|
|
36
46
|
export type AuthorQuery<TFields extends AuthorFields | undefined = AuthorFields | undefined, TPopulate extends AuthorPopulate | undefined = AuthorPopulate | undefined> = Query<Author, TFields, TPopulate>;
|
|
37
47
|
export type AuthorResult<TFields extends AuthorFields | undefined = undefined, TPopulate extends AuthorPopulate | undefined = undefined> = ProjectedWithPopulate<PopulatedResult<Author, TPopulate>, TFields, TPopulate>;
|
|
48
|
+
export {};
|
|
38
49
|
//# sourceMappingURL=Author.types.d.ts.map
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import type { Fields, FimoMedia, FimoReference, FimoRichText, FimoRichTextContent, FimoString, Populate, PopulatedResult, ProjectedWithPopulate, Query, Sort, Where, WithReferences } from 'fimo/primitives';
|
|
2
2
|
import type { Author } from './Author.types.js';
|
|
3
|
+
type FimoMediaRef = ({
|
|
4
|
+
id: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
} | {
|
|
7
|
+
id?: string;
|
|
8
|
+
url: string;
|
|
9
|
+
}) & {
|
|
10
|
+
alt?: string;
|
|
11
|
+
source?: 'local' | 'external';
|
|
12
|
+
};
|
|
3
13
|
export interface PostFimoMeta {
|
|
4
14
|
contentType: string;
|
|
5
15
|
}
|
|
@@ -29,8 +39,8 @@ export interface PostInput {
|
|
|
29
39
|
title: string;
|
|
30
40
|
excerpt?: string;
|
|
31
41
|
body?: FimoRichTextContent | null;
|
|
32
|
-
cover?:
|
|
33
|
-
gallery?:
|
|
42
|
+
cover?: FimoMediaRef;
|
|
43
|
+
gallery?: FimoMediaRef[];
|
|
34
44
|
views?: number;
|
|
35
45
|
author?: FimoReference | null;
|
|
36
46
|
contributors?: FimoReference[];
|
|
@@ -47,4 +57,5 @@ export type PostSort = Sort<Post>;
|
|
|
47
57
|
export type PostFields = Fields<Post>;
|
|
48
58
|
export type PostQuery<TFields extends PostFields | undefined = PostFields | undefined, TPopulate extends PostPopulate | undefined = PostPopulate | undefined> = Query<Post, TFields, TPopulate>;
|
|
49
59
|
export type PostResult<TFields extends PostFields | undefined = undefined, TPopulate extends PostPopulate | undefined = undefined> = ProjectedWithPopulate<PopulatedResult<Post, TPopulate>, TFields, TPopulate>;
|
|
60
|
+
export {};
|
|
50
61
|
//# sourceMappingURL=Post.types.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fimo-react",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1-staging.1",
|
|
4
4
|
"description": "Fimo React runtime: content clients, labels, and source-tracked primitives.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"test:watch": "vitest"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@fimo/tsconfig": "2.2.
|
|
46
|
+
"@fimo/tsconfig": "2.2.1-staging.1",
|
|
47
47
|
"@tanstack/react-query": "^5.80.6",
|
|
48
48
|
"@types/node": "22.18.6",
|
|
49
49
|
"@types/react": "19.2.14",
|
|
50
50
|
"@types/react-dom": "19.2.3",
|
|
51
|
-
"fimo": "2.2.
|
|
51
|
+
"fimo": "2.2.1-staging.1",
|
|
52
52
|
"react": "19.2.4",
|
|
53
53
|
"react-dom": "19.2.4",
|
|
54
54
|
"typescript": "7.0.2",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"@tanstack/react-query": "^5.80.6",
|
|
60
|
-
"fimo": "2.2.
|
|
60
|
+
"fimo": "2.2.1-staging.1",
|
|
61
61
|
"react": "^18.2.0 || ^19.0.0",
|
|
62
62
|
"react-dom": "^18.2.0 || ^19.0.0"
|
|
63
63
|
},
|