@cooperco/cooper-component-library 0.1.113 → 0.1.115

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 (38) hide show
  1. package/dist/cms/0086-add-background-image-to-carousel.cjs +24 -0
  2. package/dist/cms/carousel.query.ts +8 -0
  3. package/dist/cms/containerCollectionModule.query.ts +37 -0
  4. package/dist/cms/contentful/migrations/scripts/0086-add-background-image-to-carousel.cjs +24 -0
  5. package/dist/cms/contentful/queries/carousel.query.js +8 -0
  6. package/dist/cms/contentful/queries/carousel.query.ts +8 -0
  7. package/dist/cms/contentful/queries/containerCollectionModule.query.d.ts +2 -0
  8. package/dist/cms/contentful/queries/containerCollectionModule.query.js +35 -0
  9. package/dist/cms/contentful/queries/containerCollectionModule.query.ts +37 -0
  10. package/dist/cms/contentful/queries/index.d.ts +2 -0
  11. package/dist/cms/contentful/queries/index.js +2 -0
  12. package/dist/cms/contentful/queries/index.ts +2 -0
  13. package/dist/cms/contentful/queries/splitModule.query.d.ts +2 -0
  14. package/dist/cms/contentful/queries/splitModule.query.js +78 -0
  15. package/dist/cms/contentful/queries/splitModule.query.ts +80 -0
  16. package/dist/cms/index.ts +2 -0
  17. package/dist/cms/migrations/scripts/0086-add-background-image-to-carousel.cjs +24 -0
  18. package/dist/cms/queries/carousel.query.ts +8 -0
  19. package/dist/cms/queries/containerCollectionModule.query.ts +37 -0
  20. package/dist/cms/queries/index.ts +2 -0
  21. package/dist/cms/queries/splitModule.query.ts +80 -0
  22. package/dist/cms/scripts/0086-add-background-image-to-carousel.cjs +24 -0
  23. package/dist/cms/splitModule.query.ts +80 -0
  24. package/dist/lib/component-lib.js +3250 -3127
  25. package/dist/lib/component-lib.umd.cjs +24 -24
  26. package/dist/lib/style.css +1 -1
  27. package/dist/types/cms/contentful/queries/containerCollectionModule.query.d.ts +2 -0
  28. package/dist/types/cms/contentful/queries/index.d.ts +2 -0
  29. package/dist/types/cms/contentful/queries/splitModule.query.d.ts +2 -0
  30. package/dist/types/src/components/CarouselModule/CarouselModule.d.ts +2 -0
  31. package/dist/types/src/components/ContainerModule/ContainerModule.d.ts +1 -0
  32. package/dist/types/src/components/ContentModule/ContentModule.d.ts +1 -0
  33. package/dist/types/src/components/Image/Image.d.ts +1 -0
  34. package/dist/types/src/components/SplitModule/SplitModule.d.ts +1 -0
  35. package/dist/types/src/components/TileContent/TileContent.d.ts +1 -0
  36. package/dist/types/src/components/Video/Video.d.ts +1 -0
  37. package/dist/types/src/config/defaultPassthrough/index.d.ts +1 -1
  38. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import type { DocumentNode } from 'graphql';
2
+ export declare const getContainerCollectionModule: DocumentNode;
@@ -19,3 +19,5 @@ export * from './video.query.js';
19
19
  export * from './chartModule.query.js';
20
20
  export * from './helloBanner.query.js';
21
21
  export * from './placeholderModule.query.js';
22
+ export * from './splitModule.query.js';
23
+ export * from './containerCollectionModule.query.js';
@@ -0,0 +1,2 @@
1
+ import type { DocumentNode } from 'graphql';
2
+ export declare const getSplitModule: DocumentNode;
@@ -1,5 +1,6 @@
1
1
  import { Component, ComponentPassthrough } from '../../types';
2
2
  import { ContainerModule } from '../ContainerModule/ContainerModule';
3
+ import { Image } from '../Image/Image';
3
4
  import { TestimonialModule } from '../TestimonialModule/TestimonialModule';
4
5
  import { TileContent } from '../TileContent/TileContent';
5
6
  export interface CarouselPassthrough extends ComponentPassthrough {
@@ -17,6 +18,7 @@ export interface Carousel extends Component {
17
18
  headline: string;
18
19
  carouselItems: (TestimonialModule | TileContent | ContainerModule)[];
19
20
  backgroundColor?: string;
21
+ backgroundImage?: Image;
20
22
  pt?: CarouselPassthrough;
21
23
  variant?: 'Hero' | 'Default';
22
24
  }
@@ -26,4 +26,5 @@ export interface ContainerModule extends Component {
26
26
  pt?: ContainerModulePassthrough;
27
27
  mobileImagePosition?: 'Top' | 'Bottom';
28
28
  testimonialTile?: TestimonialModule;
29
+ isContainerCollectionChild?: boolean;
29
30
  }
@@ -56,4 +56,5 @@ export interface ContentModule extends Component {
56
56
  * When 'Column' is selected, the first column is highlighted and bolded.
57
57
  */
58
58
  tableHighlight?: 'Row' | 'Column';
59
+ isSplitModuleChild?: boolean;
59
60
  }
@@ -14,4 +14,5 @@ export interface Image extends Component {
14
14
  animated?: boolean;
15
15
  /** Breakpoint at which to swap from mobile to desktop image. Defaults to 'md' (768px). */
16
16
  mobileBreakpoint?: 'sm' | 'md' | 'lg' | 'xl';
17
+ isSplitModuleChild?: boolean;
17
18
  }
@@ -13,4 +13,5 @@ export interface SplitModule extends Component {
13
13
  backgroundColor?: string;
14
14
  pt?: ComponentPassthrough;
15
15
  isChild?: boolean;
16
+ isContainerCollectionChild?: boolean;
16
17
  }
@@ -37,6 +37,7 @@ export interface TileContent extends Component {
37
37
  listItems?: string[];
38
38
  footer?: string;
39
39
  includeDecoration?: boolean;
40
+ inCarousel?: boolean;
40
41
  }
41
42
  export interface TileContentTextTile extends Omit<TileContent, '__typename'> {
42
43
  __typename?: 'TileContentTextTile';
@@ -4,4 +4,5 @@ export interface Video extends Component {
4
4
  __typename?: 'Video';
5
5
  thumbnail: Image;
6
6
  url: string;
7
+ isSplitModuleChild?: boolean;
7
8
  }
@@ -6,7 +6,7 @@ export declare const DEFAULT_PASSTHROUGH: ComponentPassthrough;
6
6
  * TODO: Need to define the types for the passthroughs.
7
7
  * REMOVE eslint-disable once types are defined
8
8
  */
9
- export declare const combinePassthroughs: <PtType extends GenericComponentPassthrough, OverrideType extends GenericComponentPassthrough>(passthrough: PtType, overrides: OverrideType) => GenericComponentPassthrough;
9
+ export declare const combinePassthroughs: (...passthroughs: GenericComponentPassthrough[]) => GenericComponentPassthrough;
10
10
  export declare const AccordionPt: AccordionPtVariants;
11
11
  /**
12
12
  * Combina passthroughs para Accordion, tratando automaticamente o caso de subaccordion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cooperco/cooper-component-library",
3
3
  "private": false,
4
- "version": "0.1.113",
4
+ "version": "0.1.115",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"