@ethlete/contentful 2.1.0 → 2.1.2

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +216 -0
  2. package/esm2022/index.mjs +11 -2
  3. package/esm2022/lib/components/audio/contentful-audio.component.mjs +20 -16
  4. package/esm2022/lib/components/audio/index.mjs +2 -0
  5. package/esm2022/lib/components/file/contentful-file.component.mjs +18 -14
  6. package/esm2022/lib/components/file/index.mjs +2 -0
  7. package/esm2022/lib/components/image/contentful-image.component.mjs +6 -6
  8. package/esm2022/lib/components/image/contentful-image.component.utils.mjs +1 -1
  9. package/esm2022/lib/components/image/index.mjs +3 -2
  10. package/esm2022/lib/components/rich-text-renderer/index.mjs +5 -2
  11. package/esm2022/lib/components/rich-text-renderer/rich-text-renderer.component.mjs +6 -6
  12. package/esm2022/lib/components/rich-text-renderer/rich-text-renderer.util.mjs +1 -1
  13. package/esm2022/lib/components/video/contentful-video.component.mjs +18 -14
  14. package/esm2022/lib/components/video/index.mjs +2 -0
  15. package/esm2022/lib/constants/index.mjs +2 -2
  16. package/esm2022/lib/contentful.imports.mjs +6 -2
  17. package/esm2022/lib/gql/index.mjs +2 -0
  18. package/esm2022/lib/types/index.mjs +2 -2
  19. package/esm2022/lib/utils/contentful-config.mjs +5 -2
  20. package/esm2022/lib/utils/index.mjs +3 -2
  21. package/fesm2022/ethlete-contentful.mjs +156 -144
  22. package/fesm2022/ethlete-contentful.mjs.map +1 -1
  23. package/index.d.ts +10 -1
  24. package/lib/components/image/index.d.ts +2 -1
  25. package/lib/components/rich-text-renderer/index.d.ts +4 -1
  26. package/lib/components/rich-text-renderer/rich-text-renderer.util.d.ts +1 -1
  27. package/lib/constants/index.d.ts +1 -1
  28. package/lib/contentful.imports.d.ts +5 -1
  29. package/lib/types/index.d.ts +1 -1
  30. package/lib/utils/index.d.ts +2 -1
  31. package/package.json +4 -4
  32. package/esm2022/lib/components/audio/public-api.mjs +0 -2
  33. package/esm2022/lib/components/file/public-api.mjs +0 -2
  34. package/esm2022/lib/components/image/public-api.mjs +0 -3
  35. package/esm2022/lib/components/index.mjs +0 -2
  36. package/esm2022/lib/components/public-api.mjs +0 -6
  37. package/esm2022/lib/components/rich-text-renderer/public-api.mjs +0 -5
  38. package/esm2022/lib/components/video/public-api.mjs +0 -2
  39. package/esm2022/lib/constants/public-api.mjs +0 -2
  40. package/esm2022/lib/gql/public-api.mjs +0 -2
  41. package/esm2022/lib/public-api.mjs +0 -7
  42. package/esm2022/lib/types/public-api.mjs +0 -2
  43. package/esm2022/lib/utils/public-api.mjs +0 -3
  44. package/lib/components/image/public-api.d.ts +0 -2
  45. package/lib/components/index.d.ts +0 -1
  46. package/lib/components/public-api.d.ts +0 -5
  47. package/lib/components/rich-text-renderer/public-api.d.ts +0 -4
  48. package/lib/constants/public-api.d.ts +0 -1
  49. package/lib/public-api.d.ts +0 -6
  50. package/lib/types/public-api.d.ts +0 -1
  51. package/lib/utils/public-api.d.ts +0 -2
  52. /package/lib/components/audio/{public-api.d.ts → index.d.ts} +0 -0
  53. /package/lib/components/file/{public-api.d.ts → index.d.ts} +0 -0
  54. /package/lib/components/video/{public-api.d.ts → index.d.ts} +0 -0
  55. /package/lib/gql/{public-api.d.ts → index.d.ts} +0 -0
package/index.d.ts CHANGED
@@ -1 +1,10 @@
1
- export * from './lib/public-api';
1
+ export * from './lib/components/audio';
2
+ export * from './lib/components/file';
3
+ export * from './lib/components/image';
4
+ export * from './lib/components/rich-text-renderer';
5
+ export * from './lib/components/video';
6
+ export * from './lib/constants';
7
+ export * from './lib/contentful.imports';
8
+ export * from './lib/gql';
9
+ export * from './lib/types';
10
+ export * from './lib/utils';
@@ -1 +1,2 @@
1
- export * from './public-api';
1
+ export * from './contentful-image.component';
2
+ export * from './contentful-image.component.utils';
@@ -1 +1,4 @@
1
- export * from './public-api';
1
+ export * from './rich-text-renderer.component';
2
+ export * from './rich-text-renderer.constants';
3
+ export * from './rich-text-renderer.types';
4
+ export * from './rich-text-renderer.util';
@@ -14,4 +14,4 @@ export declare const getContentfulNodeProps: (node: Block | Inline | Text) => {
14
14
  export declare const transformContentfulMarks: (marks: Mark[], useTailwindClasses: boolean) => string;
15
15
  export declare const translateContentfulNodeTypeToHtmlTag: (nodeType: 'text' | BLOCKS | INLINES) => "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "ul" | "ol" | "li" | "hr" | "blockquote" | "table" | "tr" | "td" | "th" | "div" | "a" | "span" | "document";
16
16
  export declare const createContentfulResourceMap: (links: RichTextResponse['links']) => ContentfulResourceMap;
17
- export declare const createContentfulMap: <T extends ContentfulEntryBase>(links: T[] | null | undefined) => Map<string, T>;
17
+ export declare const createContentfulMap: <T extends ContentfulEntryBase>(links: Array<T> | null | undefined) => Map<string, T>;
@@ -1 +1 @@
1
- export * from './public-api';
1
+ export * from './contentful.constants';
@@ -1,2 +1,6 @@
1
- import { ContentfulAudioComponent, ContentfulFileComponent, ContentfulImageComponent, ContentfulRichTextRendererComponent, ContentfulVideoComponent } from './public-api';
1
+ import { ContentfulAudioComponent } from './components/audio';
2
+ import { ContentfulFileComponent } from './components/file';
3
+ import { ContentfulImageComponent } from './components/image';
4
+ import { ContentfulRichTextRendererComponent } from './components/rich-text-renderer';
5
+ import { ContentfulVideoComponent } from './components/video';
2
6
  export declare const ContentfulImports: readonly [typeof ContentfulAudioComponent, typeof ContentfulFileComponent, typeof ContentfulImageComponent, typeof ContentfulVideoComponent, typeof ContentfulRichTextRendererComponent];
@@ -1 +1 @@
1
- export * from './public-api';
1
+ export * from './contentful.types';
@@ -1 +1,2 @@
1
- export * from './public-api';
1
+ export * from './contentful-config';
2
+ export * from './contentful.util';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@ethlete/contentful",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "peerDependencies": {
5
- "@angular/cdk": "17.0.0",
6
- "@angular/common": "17.0.1",
7
- "@angular/core": "17.0.1",
5
+ "@angular/cdk": "17.2.2",
6
+ "@angular/common": "17.3.0",
7
+ "@angular/core": "17.3.0",
8
8
  "@contentful/rich-text-types": "^16.3.0",
9
9
  "@ethlete/cdk": "^4.0.3",
10
10
  "@ethlete/core": "^4.0.3",
@@ -1,2 +0,0 @@
1
- export * from './contentful-audio.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29udGVudGZ1bC9zcmMvbGliL2NvbXBvbmVudHMvYXVkaW8vcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDhCQUE4QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb250ZW50ZnVsLWF1ZGlvLmNvbXBvbmVudCc7XG4iXX0=
@@ -1,2 +0,0 @@
1
- export * from './contentful-file.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29udGVudGZ1bC9zcmMvbGliL2NvbXBvbmVudHMvZmlsZS9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsNkJBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbnRlbnRmdWwtZmlsZS5jb21wb25lbnQnO1xuIl19
@@ -1,3 +0,0 @@
1
- export * from './contentful-image.component';
2
- export * from './contentful-image.component.utils';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29udGVudGZ1bC9zcmMvbGliL2NvbXBvbmVudHMvaW1hZ2UvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDhCQUE4QixDQUFDO0FBQzdDLGNBQWMsb0NBQW9DLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbnRlbnRmdWwtaW1hZ2UuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vY29udGVudGZ1bC1pbWFnZS5jb21wb25lbnQudXRpbHMnO1xuIl19
@@ -1,2 +0,0 @@
1
- export * from './public-api';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbnRlbnRmdWwvc3JjL2xpYi9jb21wb25lbnRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -1,6 +0,0 @@
1
- export * from './audio/public-api';
2
- export * from './file/public-api';
3
- export * from './image/public-api';
4
- export * from './rich-text-renderer/public-api';
5
- export * from './video/public-api';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29udGVudGZ1bC9zcmMvbGliL2NvbXBvbmVudHMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELGNBQWMsb0JBQW9CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2F1ZGlvL3B1YmxpYy1hcGknO1xuZXhwb3J0ICogZnJvbSAnLi9maWxlL3B1YmxpYy1hcGknO1xuZXhwb3J0ICogZnJvbSAnLi9pbWFnZS9wdWJsaWMtYXBpJztcbmV4cG9ydCAqIGZyb20gJy4vcmljaC10ZXh0LXJlbmRlcmVyL3B1YmxpYy1hcGknO1xuZXhwb3J0ICogZnJvbSAnLi92aWRlby9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -1,5 +0,0 @@
1
- export * from './rich-text-renderer.component';
2
- export * from './rich-text-renderer.constants';
3
- export * from './rich-text-renderer.types';
4
- export * from './rich-text-renderer.util';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29udGVudGZ1bC9zcmMvbGliL2NvbXBvbmVudHMvcmljaC10ZXh0LXJlbmRlcmVyL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQ0FBZ0MsQ0FBQztBQUMvQyxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYywyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vcmljaC10ZXh0LXJlbmRlcmVyLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL3JpY2gtdGV4dC1yZW5kZXJlci5jb25zdGFudHMnO1xuZXhwb3J0ICogZnJvbSAnLi9yaWNoLXRleHQtcmVuZGVyZXIudHlwZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9yaWNoLXRleHQtcmVuZGVyZXIudXRpbCc7XG4iXX0=
@@ -1,2 +0,0 @@
1
- export * from './contentful-video.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29udGVudGZ1bC9zcmMvbGliL2NvbXBvbmVudHMvdmlkZW8vcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDhCQUE4QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb250ZW50ZnVsLXZpZGVvLmNvbXBvbmVudCc7XG4iXX0=
@@ -1,2 +0,0 @@
1
- export * from './contentful.constants';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29udGVudGZ1bC9zcmMvbGliL2NvbnN0YW50cy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbnRlbnRmdWwuY29uc3RhbnRzJztcbiJdfQ==
@@ -1,2 +0,0 @@
1
- export * from './asset.fragments';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29udGVudGZ1bC9zcmMvbGliL2dxbC9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsbUJBQW1CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2Fzc2V0LmZyYWdtZW50cyc7XG4iXX0=
@@ -1,7 +0,0 @@
1
- export * from './components/public-api';
2
- export * from './constants/public-api';
3
- export * from './contentful.imports';
4
- export * from './gql/public-api';
5
- export * from './types/public-api';
6
- export * from './utils/public-api';
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29udGVudGZ1bC9zcmMvbGliL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsb0JBQW9CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbXBvbmVudHMvcHVibGljLWFwaSc7XG5leHBvcnQgKiBmcm9tICcuL2NvbnN0YW50cy9wdWJsaWMtYXBpJztcbmV4cG9ydCAqIGZyb20gJy4vY29udGVudGZ1bC5pbXBvcnRzJztcbmV4cG9ydCAqIGZyb20gJy4vZ3FsL3B1YmxpYy1hcGknO1xuZXhwb3J0ICogZnJvbSAnLi90eXBlcy9wdWJsaWMtYXBpJztcbmV4cG9ydCAqIGZyb20gJy4vdXRpbHMvcHVibGljLWFwaSc7XG4iXX0=
@@ -1,2 +0,0 @@
1
- export * from './contentful.types';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29udGVudGZ1bC9zcmMvbGliL3R5cGVzL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQkFBb0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29udGVudGZ1bC50eXBlcyc7XG4iXX0=
@@ -1,3 +0,0 @@
1
- export * from './contentful-config';
2
- export * from './contentful.util';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29udGVudGZ1bC9zcmMvbGliL3V0aWxzL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb250ZW50ZnVsLWNvbmZpZyc7XG5leHBvcnQgKiBmcm9tICcuL2NvbnRlbnRmdWwudXRpbCc7XG4iXX0=
@@ -1,2 +0,0 @@
1
- export * from './contentful-image.component';
2
- export * from './contentful-image.component.utils';
@@ -1 +0,0 @@
1
- export * from './public-api';
@@ -1,5 +0,0 @@
1
- export * from './audio/public-api';
2
- export * from './file/public-api';
3
- export * from './image/public-api';
4
- export * from './rich-text-renderer/public-api';
5
- export * from './video/public-api';
@@ -1,4 +0,0 @@
1
- export * from './rich-text-renderer.component';
2
- export * from './rich-text-renderer.constants';
3
- export * from './rich-text-renderer.types';
4
- export * from './rich-text-renderer.util';
@@ -1 +0,0 @@
1
- export * from './contentful.constants';
@@ -1,6 +0,0 @@
1
- export * from './components/public-api';
2
- export * from './constants/public-api';
3
- export * from './contentful.imports';
4
- export * from './gql/public-api';
5
- export * from './types/public-api';
6
- export * from './utils/public-api';
@@ -1 +0,0 @@
1
- export * from './contentful.types';
@@ -1,2 +0,0 @@
1
- export * from './contentful-config';
2
- export * from './contentful.util';
File without changes