@localess/cli 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/index.mjs CHANGED
@@ -8,7 +8,7 @@ import ee from "node:process";
8
8
  import { z as d } from "zod";
9
9
  import f from "chalk";
10
10
  //#region package.json
11
- var p = "3.0.10-dev.20260520210718", te = class {
11
+ var p = "3.1.0-dev.20260529181548", te = class {
12
12
  set(e, t) {}
13
13
  get(e) {}
14
14
  has(e) {
@@ -72,13 +72,20 @@ export type ContentFetchParams = {
72
72
  */
73
73
  locale?: string;
74
74
  /**
75
- * Resolve references in the content data. Default is false.
75
+ * Resolve references in the content data.
76
+ * @default false
76
77
  */
77
78
  resolveReference?: boolean;
78
79
  /**
79
- * Resolve links in the content data. Default is false.
80
+ * Resolve links in the content data.
81
+ * @default false
80
82
  */
81
83
  resolveLink?: boolean;
84
+ /**
85
+ * Resolve all assets.
86
+ * @default false
87
+ */
88
+ resolveAsset?: boolean;
82
89
  };
83
90
  export type TranslationFetchParams = {
84
91
  /**
@@ -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
+ }
@@ -0,0 +1,7 @@
1
+ import { AssetMetadata } from './asset-metadata';
2
+ /**
3
+ * Key-Value Object. Where Key is Unique identifier for the Asset object and Value is Asset Metadata.
4
+ */
5
+ export interface Assets {
6
+ [key: string]: AssetMetadata;
7
+ }
@@ -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
  }
@@ -1,3 +1,5 @@
1
+ export * from './asset-metadata';
2
+ export * from './assets';
1
3
  export * from './content';
2
4
  export * from './content-asset';
3
5
  export * from './content-data';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localess/cli",
3
- "version": "3.0.10-dev.20260520210718",
3
+ "version": "3.1.0-dev.20260529181548",
4
4
  "description": "Localess Command Line.",
5
5
  "publishConfig": {
6
6
  "access": "public"