@ethlete/contentful 3.2.1 → 3.3.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.
@@ -2,10 +2,11 @@ import { ComponentType } from '@angular/cdk/portal';
2
2
  import { InputSignal } from '@angular/core';
3
3
  import { Block, NodeData } from '@contentful/rich-text-types';
4
4
  import { ContentfulIncludeMap } from '../components/rich-text-renderer';
5
+ import { ContentfulGqlAsset } from '../gql';
5
6
  export type ContentfulImageResizeBehavior = 'pad' | 'crop' | 'fill' | 'scale' | 'thumb' | 'fit';
6
7
  export type ContentfulImageFocusArea = 'top' | 'bottom' | 'left' | 'right' | 'center' | 'top_left' | 'top_right' | 'bottom_left' | 'bottom_right' | 'face' | 'faces';
7
8
  type ComponentLikeWithAsset = ComponentType<{
8
- asset: InputSignal<ContentfulAsset | null | undefined>;
9
+ asset: InputSignal<ContentfulRestAsset | ContentfulGqlAsset | null | undefined>;
9
10
  }>;
10
11
  type ComponentLikeWithContentfulRendererInputs = ComponentType<{
11
12
  fields?: InputSignal<any>;
@@ -112,7 +113,7 @@ export interface ContentfulAssetFileData {
112
113
  fileName: string;
113
114
  contentType: string;
114
115
  }
115
- export interface ContentfulAsset {
116
+ export interface ContentfulRestAsset {
116
117
  sys: ContentfulSys;
117
118
  fields: {
118
119
  title: string;
@@ -130,7 +131,7 @@ export interface ContentfulEntry<T = {
130
131
  }
131
132
  export interface ContentfulCollection {
132
133
  includes: {
133
- Asset: ContentfulAsset[];
134
+ Asset: ContentfulRestAsset[];
134
135
  Entry: ContentfulEntry[];
135
136
  };
136
137
  items: ContentfulEntry[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/contentful",
3
- "version": "3.2.1",
3
+ "version": "3.3.0",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "17.3.3",
6
6
  "@angular/common": "17.3.3",