@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 +6 -4
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/package.json +1 -1
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 |
|
|
417
|
-
|
|
|
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?:
|
|
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?:
|
|
111
|
+
image?: {
|
|
112
|
+
src: string;
|
|
113
|
+
alt?: TranslatedString;
|
|
114
|
+
};
|
|
112
115
|
text: TranslatedString;
|
|
113
116
|
};
|
|
114
117
|
type DisplayContentPath = RecursiveKeyOf<DisplayContent>;
|