@d4l/collect-lib 1.35.0 → 1.36.0

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/README.md CHANGED
@@ -411,7 +411,9 @@ Update the types by running `yarn run readme:update`.
411
411
 
412
412
  #### ContentBlock
413
413
 
414
- | Properties | Required | Type | Description |
415
- | ---------- | -------- | ------------------ | ------------------------------------ |
416
- | image | false | string | Optional image for the content block |
417
- | text | true | {[language]: text} | Block text in available languages |
414
+ | Properties | Required | Type | Description |
415
+ | ---------- | -------- | ------------------ | --------------------------------------------- |
416
+ | image | false | object | Optional image for the content block |
417
+ | image.src | true | string | Image source URL |
418
+ | image.alt | false | {[language]: text} | Alt text for the image in available languages |
419
+ | text | true | {[language]: text} | Block text in available languages |
package/dist/index.d.mts CHANGED
@@ -108,7 +108,10 @@ type DisplayContent = {
108
108
  blocks?: ContentBlock[];
109
109
  };
110
110
  type ContentBlock = {
111
- image?: string;
111
+ image?: {
112
+ src: string;
113
+ alt?: TranslatedString;
114
+ };
112
115
  text: TranslatedString;
113
116
  };
114
117
  type DisplayContentPath = RecursiveKeyOf<DisplayContent>;
package/dist/index.d.ts CHANGED
@@ -108,7 +108,10 @@ type DisplayContent = {
108
108
  blocks?: ContentBlock[];
109
109
  };
110
110
  type ContentBlock = {
111
- image?: string;
111
+ image?: {
112
+ src: string;
113
+ alt?: TranslatedString;
114
+ };
112
115
  text: TranslatedString;
113
116
  };
114
117
  type DisplayContentPath = RecursiveKeyOf<DisplayContent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d4l/collect-lib",
3
- "version": "1.35.0",
3
+ "version": "1.36.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",