@ethlete/contentful 3.6.4 → 3.7.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/CHANGELOG.md +6 -0
- package/fesm2022/ethlete-contentful.mjs +15 -19
- package/fesm2022/ethlete-contentful.mjs.map +1 -1
- package/package.json +5 -7
- package/esm2022/ethlete-contentful.mjs +0 -5
- package/esm2022/index.mjs +0 -12
- package/esm2022/lib/components/audio/contentful-audio.component.mjs +0 -56
- package/esm2022/lib/components/audio/index.mjs +0 -2
- package/esm2022/lib/components/file/contentful-file.component.mjs +0 -56
- package/esm2022/lib/components/file/index.mjs +0 -2
- package/esm2022/lib/components/image/contentful-image.component.mjs +0 -107
- package/esm2022/lib/components/image/contentful-image.component.utils.mjs +0 -88
- package/esm2022/lib/components/image/index.mjs +0 -3
- package/esm2022/lib/components/rich-text-renderer/index.mjs +0 -3
- package/esm2022/lib/components/rich-text-renderer/rich-text-renderer.component.mjs +0 -733
- package/esm2022/lib/components/rich-text-renderer/rich-text-renderer.errors.mjs +0 -21
- package/esm2022/lib/components/rich-text-renderer/rich-text-renderer.util.mjs +0 -61
- package/esm2022/lib/components/video/contentful-video.component.mjs +0 -52
- package/esm2022/lib/components/video/index.mjs +0 -2
- package/esm2022/lib/constants/contentful.constants.mjs +0 -3
- package/esm2022/lib/constants/index.mjs +0 -2
- package/esm2022/lib/contentful.imports.mjs +0 -13
- package/esm2022/lib/gql/asset.fragments.mjs +0 -20
- package/esm2022/lib/gql/index.mjs +0 -2
- package/esm2022/lib/types/contentful.types.mjs +0 -2
- package/esm2022/lib/types/index.mjs +0 -2
- package/esm2022/lib/utils/contentful-config.mjs +0 -24
- package/esm2022/lib/utils/contentful.util.mjs +0 -7
- package/esm2022/lib/utils/index.mjs +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @ethlete/contentful
|
|
2
2
|
|
|
3
|
+
## 3.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`1dd18fb`](https://github.com/ethlete-io/ethdk/commit/1dd18fb077b9b377384daac8eacae5732d7e7a3a) Thanks [@TomTomB](https://github.com/TomTomB)! - Update angular 19
|
|
8
|
+
|
|
3
9
|
## 3.6.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -50,8 +50,8 @@ class ContentfulAudioComponent {
|
|
|
50
50
|
};
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
54
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
53
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ContentfulAudioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
54
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: ContentfulAudioComponent, isStandalone: true, selector: "et-contentful-audio", inputs: { asset: { classPropertyName: "asset", publicName: "asset", isSignal: true, isRequired: true, transformFunction: null }, audioClass: { classPropertyName: "audioClass", publicName: "audioClass", isSignal: true, isRequired: false, transformFunction: null }, figureClass: { classPropertyName: "figureClass", publicName: "figureClass", isSignal: true, isRequired: false, transformFunction: null }, figcaptionClass: { classPropertyName: "figcaptionClass", publicName: "figcaptionClass", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
55
55
|
@if (data(); as data) {
|
|
56
56
|
<figure [ngClass]="figureClass()">
|
|
57
57
|
<figcaption [ngClass]="figcaptionClass()">{{ data.title }}</figcaption>
|
|
@@ -60,7 +60,7 @@ class ContentfulAudioComponent {
|
|
|
60
60
|
}
|
|
61
61
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
62
62
|
}
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ContentfulAudioComponent, decorators: [{
|
|
64
64
|
type: Component,
|
|
65
65
|
args: [{
|
|
66
66
|
selector: 'et-contentful-audio',
|
|
@@ -74,7 +74,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImpor
|
|
|
74
74
|
`,
|
|
75
75
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
76
76
|
encapsulation: ViewEncapsulation.None,
|
|
77
|
-
standalone: true,
|
|
78
77
|
imports: [NgClass],
|
|
79
78
|
}]
|
|
80
79
|
}] });
|
|
@@ -104,8 +103,8 @@ class ContentfulFileComponent {
|
|
|
104
103
|
};
|
|
105
104
|
});
|
|
106
105
|
}
|
|
107
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
108
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
106
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ContentfulFileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
107
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: ContentfulFileComponent, isStandalone: true, selector: "et-contentful-file", inputs: { asset: { classPropertyName: "asset", publicName: "asset", isSignal: true, isRequired: true, transformFunction: null }, fileClass: { classPropertyName: "fileClass", publicName: "fileClass", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
109
108
|
@if (data(); as data) {
|
|
110
109
|
<a [href]="data.url" [ngClass]="fileClass()" class="underline" target="_blank">
|
|
111
110
|
{{ data.title }} ({{ data.size }} Bytes)
|
|
@@ -113,7 +112,7 @@ class ContentfulFileComponent {
|
|
|
113
112
|
}
|
|
114
113
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
115
114
|
}
|
|
116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ContentfulFileComponent, decorators: [{
|
|
117
116
|
type: Component,
|
|
118
117
|
args: [{
|
|
119
118
|
selector: 'et-contentful-file',
|
|
@@ -126,7 +125,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImpor
|
|
|
126
125
|
`,
|
|
127
126
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
128
127
|
encapsulation: ViewEncapsulation.None,
|
|
129
|
-
standalone: true,
|
|
130
128
|
imports: [NgClass],
|
|
131
129
|
}]
|
|
132
130
|
}] });
|
|
@@ -273,8 +271,8 @@ class ContentfulImageComponent {
|
|
|
273
271
|
return asset ? generateDefaultContentfulImageSource(asset) : null;
|
|
274
272
|
});
|
|
275
273
|
}
|
|
276
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
277
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
274
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ContentfulImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
275
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.0.3", type: ContentfulImageComponent, isStandalone: true, selector: "et-contentful-image", inputs: { asset: { classPropertyName: "asset", publicName: "asset", isSignal: true, isRequired: true, transformFunction: null }, backgroundColor: { classPropertyName: "backgroundColor", publicName: "backgroundColor", isSignal: true, isRequired: false, transformFunction: null }, srcsetSizes: { classPropertyName: "srcsetSizes", publicName: "srcsetSizes", isSignal: true, isRequired: false, transformFunction: null }, quality: { classPropertyName: "quality", publicName: "quality", isSignal: true, isRequired: false, transformFunction: null }, focusArea: { classPropertyName: "focusArea", publicName: "focusArea", isSignal: true, isRequired: false, transformFunction: null }, resizeBehavior: { classPropertyName: "resizeBehavior", publicName: "resizeBehavior", isSignal: true, isRequired: false, transformFunction: null }, hasPriority: { classPropertyName: "hasPriority", publicName: "hasPriority", isSignal: true, isRequired: false, transformFunction: null }, imgClass: { classPropertyName: "imgClass", publicName: "imgClass", isSignal: true, isRequired: false, transformFunction: null }, figureClass: { classPropertyName: "figureClass", publicName: "figureClass", isSignal: true, isRequired: false, transformFunction: null }, figcaptionClass: { classPropertyName: "figcaptionClass", publicName: "figcaptionClass", isSignal: true, isRequired: false, transformFunction: null }, pictureClass: { classPropertyName: "pictureClass", publicName: "pictureClass", isSignal: true, isRequired: false, transformFunction: null }, sizes: { classPropertyName: "sizes", publicName: "sizes", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "et-contentful-image" }, ngImport: i0, template: `
|
|
278
276
|
<et-picture
|
|
279
277
|
[imgClass]="imgClass()"
|
|
280
278
|
[hasPriority]="hasPriority()"
|
|
@@ -291,7 +289,7 @@ class ContentfulImageComponent {
|
|
|
291
289
|
/>
|
|
292
290
|
`, isInline: true, dependencies: [{ kind: "component", type: PictureComponent, selector: "et-picture", inputs: ["sources", "hasPriority", "imgClass", "figureClass", "figcaptionClass", "pictureClass", "defaultSrc", "alt", "figcaption", "width", "height", "sizes"], outputs: ["imgLoaded", "imgError"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
293
291
|
}
|
|
294
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ContentfulImageComponent, decorators: [{
|
|
295
293
|
type: Component,
|
|
296
294
|
args: [{
|
|
297
295
|
selector: 'et-contentful-image',
|
|
@@ -313,7 +311,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImpor
|
|
|
313
311
|
`,
|
|
314
312
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
315
313
|
encapsulation: ViewEncapsulation.None,
|
|
316
|
-
standalone: true,
|
|
317
314
|
imports: [PictureComponent],
|
|
318
315
|
host: {
|
|
319
316
|
class: 'et-contentful-image',
|
|
@@ -342,8 +339,8 @@ class ContentfulVideoComponent {
|
|
|
342
339
|
};
|
|
343
340
|
});
|
|
344
341
|
}
|
|
345
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
346
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
342
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ContentfulVideoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
343
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: ContentfulVideoComponent, isStandalone: true, selector: "et-contentful-video", inputs: { asset: { classPropertyName: "asset", publicName: "asset", isSignal: true, isRequired: true, transformFunction: null }, videoClass: { classPropertyName: "videoClass", publicName: "videoClass", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
347
344
|
@if (data(); as data) {
|
|
348
345
|
<video [ngClass]="videoClass()" controls>
|
|
349
346
|
<source src="{{ data.url }}" type="{{ data.contentType }}" />
|
|
@@ -351,7 +348,7 @@ class ContentfulVideoComponent {
|
|
|
351
348
|
}
|
|
352
349
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
353
350
|
}
|
|
354
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ContentfulVideoComponent, decorators: [{
|
|
355
352
|
type: Component,
|
|
356
353
|
args: [{
|
|
357
354
|
selector: 'et-contentful-video',
|
|
@@ -364,7 +361,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImpor
|
|
|
364
361
|
`,
|
|
365
362
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
366
363
|
encapsulation: ViewEncapsulation.None,
|
|
367
|
-
standalone: true,
|
|
368
364
|
imports: [NgClass],
|
|
369
365
|
}]
|
|
370
366
|
}] });
|
|
@@ -1173,10 +1169,10 @@ class ContentfulRichTextRendererComponent {
|
|
|
1173
1169
|
this._renderer.appendChild(parentElement, nodeToRender);
|
|
1174
1170
|
}
|
|
1175
1171
|
}
|
|
1176
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1177
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1172
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ContentfulRichTextRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1173
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.0.3", type: ContentfulRichTextRendererComponent, isStandalone: true, selector: "et-contentful-rich-text-renderer", inputs: { content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: true, transformFunction: null }, richTextPath: { classPropertyName: "richTextPath", publicName: "richTextPath", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: "et-contentful-rich-text-renderer" }, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1178
1174
|
}
|
|
1179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ContentfulRichTextRendererComponent, decorators: [{
|
|
1180
1176
|
type: Component,
|
|
1181
1177
|
args: [{
|
|
1182
1178
|
selector: 'et-contentful-rich-text-renderer',
|