@localess/client 3.0.10-dev.20260520210718 → 3.1.0-dev.20260529181548
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/client.d.ts
CHANGED
|
@@ -68,13 +68,20 @@ export type ContentFetchParams = {
|
|
|
68
68
|
*/
|
|
69
69
|
locale?: string;
|
|
70
70
|
/**
|
|
71
|
-
* Resolve references in the content data.
|
|
71
|
+
* Resolve references in the content data.
|
|
72
|
+
* @default false
|
|
72
73
|
*/
|
|
73
74
|
resolveReference?: boolean;
|
|
74
75
|
/**
|
|
75
|
-
* Resolve links in the content data.
|
|
76
|
+
* Resolve links in the content data.
|
|
77
|
+
* @default false
|
|
76
78
|
*/
|
|
77
79
|
resolveLink?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Resolve all assets.
|
|
82
|
+
* @default false
|
|
83
|
+
*/
|
|
84
|
+
resolveAsset?: boolean;
|
|
78
85
|
};
|
|
79
86
|
export interface LocalessClient {
|
|
80
87
|
/**
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolved Asset metadata returned when resolveAsset=true.
|
|
3
|
+
*/
|
|
4
|
+
export interface AssetMetadata {
|
|
5
|
+
/**
|
|
6
|
+
* Unique identifier for the Asset.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* Name of the Asset.
|
|
11
|
+
* @example hero-image
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
/**
|
|
15
|
+
* File extension of the Asset.
|
|
16
|
+
* @example .jpg
|
|
17
|
+
*/
|
|
18
|
+
extension: string;
|
|
19
|
+
/**
|
|
20
|
+
* MIME type of the Asset.
|
|
21
|
+
* @example image/jpeg
|
|
22
|
+
*/
|
|
23
|
+
type: string;
|
|
24
|
+
/**
|
|
25
|
+
* Alternative text for the Asset.
|
|
26
|
+
* @example A hero image
|
|
27
|
+
*/
|
|
28
|
+
alt?: string;
|
|
29
|
+
}
|
package/dist/models/content.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Assets } from './assets';
|
|
1
2
|
import { ContentData } from './content-data';
|
|
2
3
|
import { ContentMetadata } from './content-metadata';
|
|
3
4
|
import { Links } from './links';
|
|
@@ -18,4 +19,8 @@ export interface Content<T extends ContentData = ContentData> extends ContentMet
|
|
|
18
19
|
* All references used in the content.
|
|
19
20
|
*/
|
|
20
21
|
references?: References;
|
|
22
|
+
/**
|
|
23
|
+
* All assets used in the content.
|
|
24
|
+
*/
|
|
25
|
+
assets?: Assets;
|
|
21
26
|
}
|
package/dist/models/index.d.ts
CHANGED