@content-blocks/js 0.4.4 → 0.6.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.
Files changed (200) hide show
  1. package/dist/cjs/content-accordion_11.cjs.entry.js +97 -84
  2. package/dist/cjs/content-accordion_11.cjs.entry.js.map +1 -1
  3. package/dist/cjs/content-blocks.cjs.js +3 -3
  4. package/dist/cjs/content-blocks.cjs.js.map +1 -1
  5. package/dist/cjs/content-carousel.cjs.entry.js +3 -2
  6. package/dist/cjs/content-carousel.cjs.entry.js.map +1 -1
  7. package/dist/cjs/content-navigation-block.cjs.entry.js +31 -29
  8. package/dist/cjs/content-navigation-block.cjs.entry.js.map +1 -1
  9. package/dist/cjs/content-split-block.cjs.entry.js +6 -6
  10. package/dist/cjs/content-split-block.cjs.entry.js.map +1 -1
  11. package/dist/cjs/content-tabs.cjs.entry.js +8 -6
  12. package/dist/cjs/content-tabs.cjs.entry.js.map +1 -1
  13. package/dist/cjs/{index-66c390bf.js → index-9f20d89a.js} +34 -14
  14. package/dist/cjs/index-9f20d89a.js.map +1 -0
  15. package/dist/cjs/index.cjs.js +1 -1
  16. package/dist/cjs/loader.cjs.js +2 -2
  17. package/dist/cjs/{utils-dbda9bbc.js → utils-db61cd70.js} +12 -4
  18. package/dist/cjs/utils-db61cd70.js.map +1 -0
  19. package/dist/cjs/{window-resize-service-35e2ab31.js → window-resize-service-ac5c2012.js} +4 -3
  20. package/dist/cjs/window-resize-service-ac5c2012.js.map +1 -0
  21. package/dist/collection/blocks/content-hero-block/content-hero-block.css +6 -4
  22. package/dist/collection/blocks/content-hero-block/content-hero-block.js +2 -4
  23. package/dist/collection/blocks/content-hero-block/content-hero-block.js.map +1 -1
  24. package/dist/collection/blocks/content-split-block/content-split-block.css +0 -4
  25. package/dist/collection/blocks/content-split-block/content-split-block.js +2 -2
  26. package/dist/collection/blocks/content-split-block/content-split-block.js.map +1 -1
  27. package/dist/collection/blocks/content-text-block/content-text-block.css +0 -4
  28. package/dist/collection/blocks/content-text-block/content-text-block.js +7 -7
  29. package/dist/collection/blocks/content-text-block/content-text-block.js.map +1 -1
  30. package/dist/collection/blocks/content-tout-block/content-tout-block.css +0 -6
  31. package/dist/collection/blocks/content-tout-block/content-tout-block.js +0 -2
  32. package/dist/collection/blocks/content-tout-block/content-tout-block.js.map +1 -1
  33. package/dist/collection/collection-manifest.json +2 -2
  34. package/dist/collection/components/content-accordion/content-accordion.js +2 -2
  35. package/dist/collection/components/content-accordion/content-accordion.js.map +1 -1
  36. package/dist/collection/components/content-accordion/libraries/w3_disclosure_button.js.map +1 -1
  37. package/dist/collection/components/content-carousel/content-carousel.css +0 -4
  38. package/dist/collection/components/content-carousel/content-carousel.js +2 -1
  39. package/dist/collection/components/content-carousel/content-carousel.js.map +1 -1
  40. package/dist/collection/components/content-navigation-block/content-navigation-block.css +0 -6
  41. package/dist/collection/components/content-navigation-block/content-navigation-block.js +27 -25
  42. package/dist/collection/components/content-navigation-block/content-navigation-block.js.map +1 -1
  43. package/dist/collection/components/content-overlay/content-overlay.css +6 -9
  44. package/dist/collection/components/content-overlay/content-overlay.js +34 -16
  45. package/dist/collection/components/content-overlay/content-overlay.js.map +1 -1
  46. package/dist/collection/components/content-overlay/libraries/aria-dialog.js.map +1 -1
  47. package/dist/collection/components/content-overlay/libraries/aria-utilities.js.map +1 -1
  48. package/dist/collection/components/content-tabs/content-tabs.css +0 -4
  49. package/dist/collection/components/content-tabs/content-tabs.js +4 -2
  50. package/dist/collection/components/content-tabs/content-tabs.js.map +1 -1
  51. package/dist/collection/components/content-tabs/libraries/w3_tabs.js.map +1 -1
  52. package/dist/collection/elements/content-button/content-button.css +0 -4
  53. package/dist/collection/elements/content-button/content-button.js +12 -11
  54. package/dist/collection/elements/content-button/content-button.js.map +1 -1
  55. package/dist/collection/elements/content-image/content-image.css +4 -11
  56. package/dist/collection/elements/content-image/content-image.js +81 -23
  57. package/dist/collection/elements/content-image/content-image.js.map +1 -1
  58. package/dist/collection/elements/content-line/content-line.js +10 -14
  59. package/dist/collection/elements/content-line/content-line.js.map +1 -1
  60. package/dist/collection/elements/content-video/content-video.css +1 -5
  61. package/dist/collection/elements/content-video/content-video.js +1 -1
  62. package/dist/collection/elements/content-video/content-video.js.map +1 -1
  63. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.css +1 -4
  64. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js +46 -3
  65. package/dist/collection/formatters/content-grid-formatter/content-grid-formatter.js.map +1 -1
  66. package/dist/collection/formatters/content-spacer/content-spacer.css +0 -3
  67. package/dist/collection/formatters/content-spacer/content-spacer.js +4 -3
  68. package/dist/collection/formatters/content-spacer/content-spacer.js.map +1 -1
  69. package/dist/collection/services/content-events-service.js.map +1 -1
  70. package/dist/collection/services/window-resize-service.js +2 -1
  71. package/dist/collection/services/window-resize-service.js.map +1 -1
  72. package/dist/collection/stories/ContentHeroBlock.stories.js +22 -18
  73. package/dist/collection/stories/ContentHeroBlock.stories.js.map +1 -1
  74. package/dist/collection/stories/ContentNavigationBlock.stories.js +26 -0
  75. package/dist/collection/stories/ContentNavigationBlock.stories.js.map +1 -0
  76. package/dist/collection/stories/ContentSpacer.stories.js +20 -0
  77. package/dist/collection/stories/ContentSpacer.stories.js.map +1 -0
  78. package/dist/collection/stories/ContentTextBlock.stories.js +17 -0
  79. package/dist/collection/stories/ContentTextBlock.stories.js.map +1 -0
  80. package/dist/collection/stories/ContentToutBlock.stories.js +17 -0
  81. package/dist/collection/stories/ContentToutBlock.stories.js.map +1 -0
  82. package/dist/collection/stories/FullPageExample.stories.js +482 -0
  83. package/dist/collection/stories/FullPageExample.stories.js.map +1 -0
  84. package/dist/collection/utils/utils.js +9 -0
  85. package/dist/collection/utils/utils.js.map +1 -1
  86. package/dist/components/content-accordion.js +1 -1
  87. package/dist/components/content-accordion.js.map +1 -1
  88. package/dist/components/content-button.js +13 -12
  89. package/dist/components/content-button.js.map +1 -1
  90. package/dist/components/content-carousel.js +2 -1
  91. package/dist/components/content-carousel.js.map +1 -1
  92. package/dist/components/content-grid-formatter2.js +8 -2
  93. package/dist/components/content-grid-formatter2.js.map +1 -1
  94. package/dist/components/content-hero-block.js +2 -4
  95. package/dist/components/content-hero-block.js.map +1 -1
  96. package/dist/components/content-image.js +28 -24
  97. package/dist/components/content-image.js.map +1 -1
  98. package/dist/components/content-line.js +8 -12
  99. package/dist/components/content-line.js.map +1 -1
  100. package/dist/components/content-navigation-block.js +28 -26
  101. package/dist/components/content-navigation-block.js.map +1 -1
  102. package/dist/components/content-overlay.js +32 -14
  103. package/dist/components/content-overlay.js.map +1 -1
  104. package/dist/components/content-spacer.js +3 -3
  105. package/dist/components/content-spacer.js.map +1 -1
  106. package/dist/components/content-split-block.js +3 -3
  107. package/dist/components/content-split-block.js.map +1 -1
  108. package/dist/components/content-tabs.js +5 -3
  109. package/dist/components/content-tabs.js.map +1 -1
  110. package/dist/components/content-text-block.js +8 -8
  111. package/dist/components/content-text-block.js.map +1 -1
  112. package/dist/components/content-tout-block.js +1 -3
  113. package/dist/components/content-tout-block.js.map +1 -1
  114. package/dist/components/content-video.js +1 -1
  115. package/dist/components/content-video.js.map +1 -1
  116. package/dist/components/utils.js +12 -2
  117. package/dist/components/utils.js.map +1 -1
  118. package/dist/components/window-resize-service.js +2 -1
  119. package/dist/components/window-resize-service.js.map +1 -1
  120. package/dist/content-blocks/content-blocks.esm.js +1 -1
  121. package/dist/content-blocks/content-blocks.esm.js.map +1 -1
  122. package/dist/content-blocks/index.esm.js +1 -1
  123. package/dist/content-blocks/p-167a9155.entry.js +2 -0
  124. package/dist/content-blocks/p-167a9155.entry.js.map +1 -0
  125. package/dist/content-blocks/{p-3d21ae2b.entry.js → p-271fb304.entry.js} +2 -2
  126. package/dist/content-blocks/p-271fb304.entry.js.map +1 -0
  127. package/dist/content-blocks/p-288eace9.js +3 -0
  128. package/dist/content-blocks/p-288eace9.js.map +1 -0
  129. package/dist/content-blocks/p-4038cd42.entry.js +10 -0
  130. package/dist/content-blocks/p-4038cd42.entry.js.map +1 -0
  131. package/dist/content-blocks/p-4bfbd7ef.entry.js +2 -0
  132. package/dist/content-blocks/p-4bfbd7ef.entry.js.map +1 -0
  133. package/dist/content-blocks/p-8cc22c1e.entry.js +2 -0
  134. package/dist/content-blocks/p-8cc22c1e.entry.js.map +1 -0
  135. package/dist/content-blocks/{p-070bc93d.js → p-b04fe808.js} +2 -2
  136. package/dist/content-blocks/p-b04fe808.js.map +1 -0
  137. package/dist/content-blocks/{p-451e7694.js → p-cfb4593f.js} +2 -2
  138. package/dist/content-blocks/p-cfb4593f.js.map +1 -0
  139. package/dist/esm/content-accordion_11.entry.js +97 -84
  140. package/dist/esm/content-accordion_11.entry.js.map +1 -1
  141. package/dist/esm/content-blocks.js +4 -4
  142. package/dist/esm/content-blocks.js.map +1 -1
  143. package/dist/esm/content-carousel.entry.js +3 -2
  144. package/dist/esm/content-carousel.entry.js.map +1 -1
  145. package/dist/esm/content-navigation-block.entry.js +31 -29
  146. package/dist/esm/content-navigation-block.entry.js.map +1 -1
  147. package/dist/esm/content-split-block.entry.js +6 -6
  148. package/dist/esm/content-split-block.entry.js.map +1 -1
  149. package/dist/esm/content-tabs.entry.js +8 -6
  150. package/dist/esm/content-tabs.entry.js.map +1 -1
  151. package/dist/esm/{index-2674652b.js → index-e848c048.js} +34 -14
  152. package/dist/esm/index-e848c048.js.map +1 -0
  153. package/dist/esm/index.js +1 -1
  154. package/dist/esm/loader.js +3 -3
  155. package/dist/esm/{utils-72b3a8bd.js → utils-4f78228e.js} +13 -3
  156. package/dist/esm/utils-4f78228e.js.map +1 -0
  157. package/dist/esm/{window-resize-service-8419bd19.js → window-resize-service-f40ec51c.js} +4 -3
  158. package/dist/esm/window-resize-service-f40ec51c.js.map +1 -0
  159. package/dist/types/blocks/content-hero-block/content-hero-block.d.ts +0 -1
  160. package/dist/types/blocks/content-split-block/content-split-block.d.ts +1 -1
  161. package/dist/types/blocks/content-text-block/content-text-block.d.ts +1 -1
  162. package/dist/types/blocks/content-tout-block/content-tout-block.d.ts +0 -1
  163. package/dist/types/components/content-accordion/content-accordion.d.ts +6 -6
  164. package/dist/types/components/content-navigation-block/content-navigation-block.d.ts +2 -2
  165. package/dist/types/components/content-overlay/content-overlay.d.ts +4 -3
  166. package/dist/types/components/content-tabs/content-tabs.d.ts +1 -0
  167. package/dist/types/components.d.ts +37 -3
  168. package/dist/types/elements/content-button/content-button.d.ts +1 -1
  169. package/dist/types/elements/content-image/content-image.d.ts +13 -1
  170. package/dist/types/elements/content-line/content-line.d.ts +1 -1
  171. package/dist/types/formatters/content-grid-formatter/content-grid-formatter.d.ts +8 -2
  172. package/dist/types/formatters/content-spacer/content-spacer.d.ts +1 -1
  173. package/dist/types/stories/ContentHeroBlock.stories.d.ts +4 -5
  174. package/dist/types/stories/ContentNavigationBlock.stories.d.ts +11 -0
  175. package/dist/types/stories/ContentSpacer.stories.d.ts +15 -0
  176. package/dist/types/stories/ContentTextBlock.stories.d.ts +15 -0
  177. package/dist/types/stories/ContentToutBlock.stories.d.ts +9 -0
  178. package/dist/types/stories/FullPageExample.stories.d.ts +10 -0
  179. package/dist/types/typings.d.ts +3 -3
  180. package/dist/types/utils/utils.d.ts +1 -0
  181. package/package.json +6 -3
  182. package/dist/cjs/index-66c390bf.js.map +0 -1
  183. package/dist/cjs/utils-dbda9bbc.js.map +0 -1
  184. package/dist/cjs/window-resize-service-35e2ab31.js.map +0 -1
  185. package/dist/content-blocks/p-070bc93d.js.map +0 -1
  186. package/dist/content-blocks/p-171693ef.js +0 -3
  187. package/dist/content-blocks/p-171693ef.js.map +0 -1
  188. package/dist/content-blocks/p-3d21ae2b.entry.js.map +0 -1
  189. package/dist/content-blocks/p-3e27514e.entry.js +0 -10
  190. package/dist/content-blocks/p-3e27514e.entry.js.map +0 -1
  191. package/dist/content-blocks/p-451e7694.js.map +0 -1
  192. package/dist/content-blocks/p-6ddbb176.entry.js +0 -2
  193. package/dist/content-blocks/p-6ddbb176.entry.js.map +0 -1
  194. package/dist/content-blocks/p-a78f9c91.entry.js +0 -2
  195. package/dist/content-blocks/p-a78f9c91.entry.js.map +0 -1
  196. package/dist/content-blocks/p-dac292e3.entry.js +0 -2
  197. package/dist/content-blocks/p-dac292e3.entry.js.map +0 -1
  198. package/dist/esm/index-2674652b.js.map +0 -1
  199. package/dist/esm/utils-72b3a8bd.js.map +0 -1
  200. package/dist/esm/window-resize-service-8419bd19.js.map +0 -1
package/dist/esm/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { u as ResponsiveUtils } from './utils-72b3a8bd.js';
1
+ export { u as ResponsiveUtils } from './utils-4f78228e.js';
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1,9 +1,9 @@
1
- import { b as bootstrapLazy } from './index-2674652b.js';
2
- export { s as setNonce } from './index-2674652b.js';
1
+ import { b as bootstrapLazy } from './index-e848c048.js';
2
+ export { s as setNonce } from './index-e848c048.js';
3
3
 
4
4
  const defineCustomElements = (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
6
- return bootstrapLazy([["content-split-block",[[4,"content-split-block",{"reverse":[1544],"columns":[1],"classes":[1537],"classString":[32]}]]],["content-carousel",[[4,"content-carousel",{"initMethod":[1,"init-method"],"swiperOptions":[1,"swiper-options"]},[[0,"setSwiperOptions","setSwiperOptionsCallback"]]]]],["content-navigation-block",[[4,"content-navigation-block",{"hamburger":[1537],"classes":[1537],"classString":[32],"ariaExpanded":[32],"bodyToggle":[32]}]]],["content-tabs",[[4,"content-tabs",{"classes":[1537],"classString":[32]}]]],["content-accordion_11",[[4,"content-accordion",{"open":[1],"animationStart":[1,"animation-start"],"animationEnd":[1,"animation-end"],"animationTime":[2,"animation-time"],"revealElement":[32],"isOpen":[32],"randomID":[32],"classString":[32]}],[4,"content-button",{"href":[1537],"target":[1],"classes":[1],"clickableBlock":[4,"clickable-block"],"expanded":[1537],"controls":[1],"linkLabel":[1,"link-label"],"linkClass":[1537,"link-class"],"classString":[32]}],[4,"content-hero-block",{"contentPosition":[1537,"content-position"],"classes":[1],"hasBackground":[32],"classString":[32],"revealHiddenContent":[32]},[[8,"contentBlockActivated","contentBlockActivationHandler"]]],[4,"content-image",{"classes":[1537],"lazyLoad":[4,"lazy-load"],"src":[1025],"alt":[1537],"width":[1025],"height":[1025],"videoType":[1,"video-type"],"showContent":[1537,"show-content"],"activeSrc":[32],"lazyLoadIsComplete":[32],"showVideoAsGif":[32],"activeLazyLoadClass":[32],"classString":[32],"inlineStyle":[32],"hasMediaContent":[32]},null,{"lazyLoadIsComplete":["watchLazyLoadIsComplete"]}],[4,"content-line",{"tag":[1],"textAlign":[1,"text-align"],"classes":[8],"maxWidth":[1,"max-width"],"classString":[32],"inlineStyle":[32]}],[4,"content-overlay",{"target":[1],"open":[1537],"fullScreen":[1,"full-screen"],"classes":[1],"horizontalAlignment":[1537,"horizontal-alignment"],"verticalAlignment":[1537,"vertical-alignment"],"closeTitle":[1,"close-title"],"isActive":[32],"activeClass":[32],"classString":[32],"isFullScreen":[32],"openOverlay":[64],"closeOverlay":[64]},[[0,"contentBlockActivated","onContentBlockActivated"]]],[4,"content-spacer",{"classes":[1],"maxWidth":[1,"max-width"],"fullHeight":[1537,"full-height"],"textAlign":[1537,"text-align"],"horizontalPosition":[1537,"horizontal-position"],"topOffset":[1,"top-offset"],"bottomOffset":[1,"bottom-offset"],"leftOffset":[1,"left-offset"],"rightOffset":[1,"right-offset"],"classString":[32],"inlineStyle":[32]}],[4,"content-text-block",{"classes":[1],"minHeight":[1537,"min-height"],"verticalAlignment":[1537,"vertical-alignment"],"fullHeight":[1537,"full-height"],"textAlign":[1537,"text-align"],"classString":[32],"inlineStyle":[32]}],[4,"content-tout-block",{"hover":[1537],"classes":[1],"classString":[32],"hasHoverContent":[32]}],[4,"content-video",{"method":[1],"autoplay":[4],"src":[1],"width":[2],"height":[2],"type":[1],"playButtonAriaLabel":[1,"play-button-aria-label"],"classes":[1537],"controls":[4],"preload":[1],"fitContainer":[1537,"fit-container"],"classString":[32],"isLoaded":[32],"hasPoster":[32],"isPlayed":[32]}],[4,"content-grid-formatter",{"classes":[1],"type":[1537],"flexGrow":[1537,"flex-grow"],"flexShrink":[1537,"flex-shrink"],"verticalAlignment":[1537,"vertical-alignment"],"horizontalAlignment":[1537,"horizontal-alignment"],"columns":[1537],"classString":[32],"activeClassString":[32],"inlineStyle":[32]}]]]], options);
6
+ return bootstrapLazy([["content-split-block",[[4,"content-split-block",{"reverse":[1544],"columns":[1],"classes":[1537],"classString":[32]}]]],["content-carousel",[[4,"content-carousel",{"initMethod":[1,"init-method"],"swiperOptions":[1,"swiper-options"]},[[0,"setSwiperOptions","setSwiperOptionsCallback"]]]]],["content-navigation-block",[[4,"content-navigation-block",{"hamburger":[1537],"classes":[1537],"classString":[32],"ariaExpanded":[32],"bodyToggle":[32]}]]],["content-tabs",[[4,"content-tabs",{"classes":[1537],"classString":[32]}]]],["content-accordion_11",[[4,"content-accordion",{"open":[1],"animationStart":[1,"animation-start"],"animationEnd":[1,"animation-end"],"animationTime":[2,"animation-time"],"revealElement":[32],"isOpen":[32],"randomID":[32],"classString":[32]}],[4,"content-button",{"href":[1537],"target":[1],"classes":[1],"clickableBlock":[4,"clickable-block"],"expanded":[1537],"controls":[1],"linkLabel":[1,"link-label"],"linkClass":[1537,"link-class"],"classString":[32],"hasContentToActivate":[32]}],[4,"content-hero-block",{"contentPosition":[1537,"content-position"],"classes":[1],"hasBackground":[32],"classString":[32],"revealHiddenContent":[32]},[[8,"contentBlockActivated","contentBlockActivationHandler"]]],[4,"content-image",{"classes":[1537],"lazyLoad":[4,"lazy-load"],"src":[1025],"alt":[1537],"width":[1025],"height":[1025],"aspectRatio":[1025,"aspect-ratio"],"type":[1],"videoType":[1,"video-type"],"showContent":[1537,"show-content"],"activeSrc":[32],"lazyLoadIsComplete":[32],"showVideoAsGif":[32],"activeLazyLoadClass":[32],"classString":[32],"inlineStyle":[32],"hasMediaContent":[32],"pictureImageSrc":[32]},null,{"lazyLoadIsComplete":["watchLazyLoadIsComplete"]}],[4,"content-line",{"tag":[1],"textAlign":[1,"text-align"],"classes":[8],"maxWidth":[1,"max-width"],"classString":[32],"inlineStyle":[32]}],[4,"content-overlay",{"target":[1],"open":[1537],"fullScreen":[1,"full-screen"],"classes":[1],"horizontalAlignment":[1537,"horizontal-alignment"],"verticalAlignment":[1537,"vertical-alignment"],"closeTitle":[1,"close-title"],"isActive":[32],"activeClass":[32],"classString":[32],"contentSlot":[32],"isFullScreen":[32],"hasCloseButton":[32],"originalMarkup":[32],"openOverlay":[64],"closeOverlay":[64]},[[0,"contentBlockActivated","onContentBlockActivated"]]],[4,"content-spacer",{"classes":[1],"maxWidth":[1,"max-width"],"fullHeight":[1537,"full-height"],"textAlign":[1537,"text-align"],"horizontalPosition":[1537,"horizontal-position"],"topOffset":[1,"top-offset"],"bottomOffset":[1,"bottom-offset"],"leftOffset":[1,"left-offset"],"rightOffset":[1,"right-offset"],"classString":[32],"inlineStyle":[32]}],[4,"content-text-block",{"classes":[1],"minHeight":[1537,"min-height"],"verticalAlignment":[1537,"vertical-alignment"],"fullHeight":[1537,"full-height"],"textAlign":[1537,"text-align"],"classString":[32],"inlineStyle":[32]}],[4,"content-tout-block",{"hover":[1537],"classes":[1],"classString":[32],"hasHoverContent":[32]}],[4,"content-video",{"method":[1],"autoplay":[4],"src":[1],"width":[2],"height":[2],"type":[1],"playButtonAriaLabel":[1,"play-button-aria-label"],"classes":[1537],"controls":[4],"preload":[1],"fitContainer":[1537,"fit-container"],"classString":[32],"isLoaded":[32],"hasPoster":[32],"isPlayed":[32]}],[4,"content-grid-formatter",{"classes":[1],"type":[1537],"flexGrow":[1537,"flex-grow"],"flexShrink":[1537,"flex-shrink"],"verticalAlignment":[1537,"vertical-alignment"],"horizontalAlignment":[1537,"horizontal-alignment"],"columns":[1537],"columnGap":[1537,"column-gap"],"classString":[32],"activeClassString":[32],"inlineStyle":[32]}]]]], options);
7
7
  };
8
8
 
9
9
  export { defineCustomElements };
@@ -85,6 +85,15 @@ function getHydratedClassString(classString) {
85
85
  }
86
86
  return 'hydrated';
87
87
  }
88
+ function objectToCssString(object) {
89
+ let string = '';
90
+ for (var key in object) {
91
+ if (object[key].length > 0 && !['px', '%'].includes(object[key])) {
92
+ string += `${key}: ${object[key]};`;
93
+ }
94
+ }
95
+ return string;
96
+ }
88
97
 
89
98
  const utils = /*#__PURE__*/Object.freeze({
90
99
  __proto__: null,
@@ -98,9 +107,10 @@ const utils = /*#__PURE__*/Object.freeze({
98
107
  getCurrentBreakpointIndex: getCurrentBreakpointIndex,
99
108
  getCurrentValue: getCurrentValue,
100
109
  getValueAtIndex: getValueAtIndex,
101
- getHydratedClassString: getHydratedClassString
110
+ getHydratedClassString: getHydratedClassString,
111
+ objectToCssString: objectToCssString
102
112
  });
103
113
 
104
- export { getCurrentValue as a, breakpointValues as b, getCurrentBreakpointIndex as c, getValueAtIndex as g, utils as u };
114
+ export { getCurrentBreakpointIndex as a, getCurrentValue as g, utils as u };
105
115
 
106
- //# sourceMappingURL=utils-72b3a8bd.js.map
116
+ //# sourceMappingURL=utils-4f78228e.js.map
@@ -0,0 +1 @@
1
+ {"file":"utils-4f78228e.js","mappings":"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","names":[],"sources":["src/utils/utils.ts"],"sourcesContent":["import { ResponsiveString } from \"../typings\";\n\nexport const breakpoints = ['mobile', 'tablet-portrait', 'tablet-landscape', 'tablet-pro', 'desktop-large', 'desktop-wide'];\nexport const breakpointLabels = ['Mobile', 'Tablet (Portrait)', 'Tablet (Landscape)', 'iPad Pro', 'Desktop Large', 'Desktop Wide'];\nexport const breakpointValues = [0,768,1024,1366,1440,1920];\n\nexport function getBreakpointValues() {\n return breakpointValues;\n}\nexport function insertCssIntoHead(document: Document, fontCssUrl: string) {\n let element = document.querySelector(`link[href=\"${fontCssUrl}\"]`);\n // Only inject the element if it's not yet present\n if (!element) {\n element = document.createElement('link');\n element.setAttribute('rel', 'stylesheet');\n element.setAttribute('href', fontCssUrl);\n document.head.prepend(element);\n }\n}\n\nexport function generateResponsiveClass(classPrefix: string, responsiveValue: string) {\n let index = -1;\n let classString = '';\n responsiveValue.split('|').forEach(value => {\n index++;\n if (!value || value === 'false') {\n return false;\n }\n classString += ` ${classPrefix}-${breakpoints[index]}-${value}`\n });\n return classString;\n}\n\n// Fills in default value if none exists for a breakpoint\nexport function generateResponsiveValues(responsiveValue: string): string[] {\n if (!responsiveValue) {\n return [];\n }\n let responseArray = [];\n let splitResponsiveValues = responsiveValue.split('|');\n let lastGoodValue = splitResponsiveValues[0];\n breakpointValues.forEach((_value, index) => {\n let thisBreakpointValue = splitResponsiveValues[index];\n if (thisBreakpointValue) {\n lastGoodValue = thisBreakpointValue;\n }\n responseArray.push(thisBreakpointValue ? thisBreakpointValue : lastGoodValue);\n });\n return responseArray;\n}\n\nexport function getCurrentBreakpointIndex(): number {\n let activeBreakpointIndex: number = 0;\n let windowWidth = window.innerWidth;\n breakpointValues.some((width) => {\n // The first time this is true will end the loop\n let condition = width > windowWidth;\n if (!condition) {\n activeBreakpointIndex = breakpointValues.indexOf(width);\n }\n return condition;\n });\n return activeBreakpointIndex;\n}\n\nexport function getCurrentValue(responsiveValue: string|boolean): string {\n if (!responsiveValue) {\n return '';\n }\n let currentBreakpoint = getCurrentBreakpointIndex();\n let responsiveValues = generateResponsiveValues(responsiveValue.toString());\n let returnValue: string;\n for (var i = currentBreakpoint; i >= 0; i--) {\n if (responsiveValues[i]) {\n returnValue = responsiveValues[i];\n i = -1;\n }\n }\n return returnValue;\n}\n\nexport function getValueAtIndex(index: number, responsiveValue: ResponsiveString): string {\n let responsiveValues = generateResponsiveValues(responsiveValue.toString());\n return responsiveValues[index].trim();\n}\n\nexport function getHydratedClassString(classString: string): string {\n let cleanedString = getCurrentValue(classString).trim();\n if (cleanedString.includes('hydrated')) {\n return cleanedString.trim();\n }\n if (cleanedString) {\n return cleanedString.trim() + ' hydrated';\n }\n return 'hydrated';\n}\n\nexport function objectToCssString(object: object): string {\n let string = '';\n for (var key in object) {\n if (object[key].length > 0 && !['px', '%'].includes(object[key])) {\n string += `${key}: ${object[key]};`;\n }\n }\n return string;\n}"],"version":3}
@@ -1,4 +1,4 @@
1
- import { c as getCurrentBreakpointIndex, a as getCurrentValue } from './utils-72b3a8bd.js';
1
+ import { a as getCurrentBreakpointIndex, g as getCurrentValue } from './utils-4f78228e.js';
2
2
  import { B as BehaviorSubject, O as Observable } from './BehaviorSubject-bc7e0e99.js';
3
3
 
4
4
  class WindowResizeController {
@@ -22,7 +22,8 @@ class WindowResizeController {
22
22
  return new Observable(observer => {
23
23
  observer.next(getCurrentValue(activePropValue));
24
24
  this.breakpointIndex$.subscribe(() => {
25
- observer.next(getCurrentValue(activePropValue));
25
+ let nextValue = getCurrentValue(activePropValue);
26
+ observer.next(nextValue);
26
27
  });
27
28
  });
28
29
  }
@@ -31,4 +32,4 @@ const WindowResizeService = new WindowResizeController();
31
32
 
32
33
  export { WindowResizeService as W };
33
34
 
34
- //# sourceMappingURL=window-resize-service-8419bd19.js.map
35
+ //# sourceMappingURL=window-resize-service-f40ec51c.js.map
@@ -0,0 +1 @@
1
+ {"file":"window-resize-service-f40ec51c.js","mappings":";;;AAIA,MAAM,sBAAsB;;IAK1B;QAJA,sBAAiB,GAAG,yBAAyB,EAAE,CAAC;QAChD,qBAAgB,GAA4B,IAAI,eAAe,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAKtF,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,QAAQ;YAChD,IAAI,IAAI,CAAC,aAAa,EAAE;gBACtB,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aAClC;YACD,IAAI,WAAW,GAAG,yBAAyB,EAAE,CAAC;YAC9C,IAAI,IAAI,CAAC,gBAAgB,CAAC,KAAK,KAAK,WAAW,EAAE;gBAC/C,OAAO,KAAK,CAAC;aACd;YACD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SACzC,CAAC,CAAC;QAEH,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;KAC9C;IAED,YAAY,CAAC,eAAe;QAC1B,OAAO,IAAI,UAAU,CAAC,QAAQ;YAC5B,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC,CAAC;YAChD,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC;gBAC9B,IAAI,SAAS,GAAG,eAAe,CAAC,eAAe,CAAC,CAAC;gBACjD,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aAC1B,CAAC,CAAC;SACJ,CAAC,CAAC;KACJ;CACF;MAEY,mBAAmB,GAAG,IAAI,sBAAsB;;;;","names":[],"sources":["src/services/window-resize-service.ts"],"sourcesContent":["import { BehaviorSubject, Observable } from \"rxjs\";\nimport { getCurrentBreakpointIndex, getCurrentValue } from \"../utils/utils\";\nimport _ from 'underscore';\n\nclass WindowResizeController {\n currentBreakpoint = getCurrentBreakpointIndex();\n breakpointIndex$: BehaviorSubject<number> = new BehaviorSubject(this.currentBreakpoint);\n timeoutHolder: number;\n // timeoutHolder: Timeout;\n constructor() {\n\n const resizeObserver = new ResizeObserver(_entries => {\n if (this.timeoutHolder) {\n clearTimeout(this.timeoutHolder);\n }\n let activeValue = getCurrentBreakpointIndex();\n if (this.breakpointIndex$.value === activeValue) {\n return false;\n }\n this.breakpointIndex$.next(activeValue);\n });\n\n resizeObserver.observe(window.document.body);\n }\n \n registerProp(activePropValue): Observable<string|boolean|number> {\n return new Observable(observer => {\n observer.next(getCurrentValue(activePropValue));\n this.breakpointIndex$.subscribe(() => {\n let nextValue = getCurrentValue(activePropValue);\n observer.next(nextValue);\n });\n });\n }\n}\n\nexport const WindowResizeService = new WindowResizeController();"],"version":3}
@@ -26,7 +26,6 @@ export declare class ContentHeroBlock {
26
26
  revealHiddenContent: boolean;
27
27
  hasHiddenContent: boolean;
28
28
  componentWillLoad(): void;
29
- componentDidLoad(): void;
30
29
  contentBlockActivationHandler(event: CustomEvent<HTMLElement>): void;
31
30
  render(): any;
32
31
  }
@@ -20,7 +20,7 @@ export declare class ContentSplitBlock {
20
20
  */
21
21
  classes: ResponsiveString;
22
22
  classString: any;
23
- componentDidLoad(): void;
23
+ componentWillLoad(): void;
24
24
  render(): any;
25
25
  }
26
26
  //# sourceMappingURL=content-split-block.d.ts.map
@@ -47,7 +47,7 @@ export declare class ContentTextBlock {
47
47
  inlineStyle?: {
48
48
  [key: string]: string;
49
49
  };
50
- componentDidLoad(): void;
50
+ componentWillLoad(): void;
51
51
  render(): any;
52
52
  }
53
53
  //# sourceMappingURL=content-text-block.d.ts.map
@@ -23,7 +23,6 @@ export declare class ContentToutBlock {
23
23
  hasMediaContent: boolean;
24
24
  hasHoverContent: boolean;
25
25
  componentWillLoad(): void;
26
- componentDidLoad(): void;
27
26
  render(): any;
28
27
  }
29
28
  //# sourceMappingURL=content-tout-block.d.ts.map
@@ -19,14 +19,14 @@ export declare class ContentAccordion {
19
19
  */
20
20
  animationStart: string;
21
21
  /**
22
- * The ending animation class in case you want to control content styling.
23
- * @type String
24
- */
22
+ * The ending animation class in case you want to control content styling.
23
+ * @type String
24
+ */
25
25
  animationEnd: string;
26
26
  /**
27
- * The amount of time in milliseconds to run the closing animation, before the class is removed
28
- * @type Number
29
- */
27
+ * The amount of time in milliseconds to run the closing animation, before the class is removed
28
+ * @type Number
29
+ */
30
30
  animationTime: number;
31
31
  isOpen: boolean;
32
32
  randomID: string;
@@ -24,8 +24,8 @@ export declare class ContentNavigationBlock {
24
24
  hostElement: HTMLStencilElement;
25
25
  ariaExpanded: string;
26
26
  bodyToggle: boolean;
27
- componentDidLoad(): Promise<PromiseSettledResult<any>[]>;
28
- componentDidRender(): void;
27
+ componentWillLoad(): void;
28
+ componentDidLoad(): void;
29
29
  render(): any;
30
30
  }
31
31
  //# sourceMappingURL=content-navigation-block.d.ts.map
@@ -56,18 +56,19 @@ export declare class ContentOverlay {
56
56
  activeClass: string;
57
57
  classString: string;
58
58
  contentOverlayActivated: EventEmitter<HTMLElement>;
59
- private contentSlot;
59
+ contentSlot: HTMLElement;
60
60
  dialogElement: HTMLDivElement;
61
61
  contentElement: HTMLDivElement;
62
62
  isFullScreen: boolean;
63
+ hasCloseButton: boolean;
64
+ originalMarkup: string;
63
65
  ariaDialog: any;
64
66
  focusTrap: any;
65
67
  onContentBlockActivated(event: CustomEvent): void;
66
- openOverlay(): Promise<boolean>;
68
+ openOverlay(): Promise<void>;
67
69
  closeOverlay(): Promise<void>;
68
70
  setComputedActiveClass(): void;
69
71
  componentWillLoad(): void;
70
- componentDidLoad(): void;
71
72
  closeOverlayButtonClicked(event: any): void;
72
73
  render(): any;
73
74
  componentDidRender(): void;
@@ -11,6 +11,7 @@ export declare class ContentTabs {
11
11
  */
12
12
  classes: ResponsiveString;
13
13
  classString: string;
14
+ componentWillLoad(): void;
14
15
  componentDidLoad(): void;
15
16
  render(): any;
16
17
  }
@@ -96,6 +96,11 @@ export namespace Components {
96
96
  * @responsive
97
97
  */
98
98
  "classes": ResponsiveString;
99
+ /**
100
+ * @type Number
101
+ * @responsive
102
+ */
103
+ "columnGap": ResponsiveNumber;
99
104
  /**
100
105
  * @type Number
101
106
  * @responsive
@@ -126,11 +131,12 @@ export namespace Components {
126
131
  /**
127
132
  * Flex or grid
128
133
  * @type Select
134
+ * @options none
129
135
  * @options flex
130
136
  * @options grid
131
137
  * @responsive
132
138
  */
133
- "type": GRID_TYPES;
139
+ "type": GRID_TYPES | ResponsiveString;
134
140
  /**
135
141
  * Vertical axis alignment
136
142
  * @type Select
@@ -163,6 +169,11 @@ export namespace Components {
163
169
  * @responsive
164
170
  */
165
171
  "alt": ResponsiveString;
172
+ /**
173
+ * @type String
174
+ * @responsive
175
+ */
176
+ "aspectRatio": ResponsiveString;
166
177
  /**
167
178
  * @type String
168
179
  * @responsive
@@ -188,6 +199,12 @@ export namespace Components {
188
199
  * @responsive
189
200
  */
190
201
  "src": ResponsiveString;
202
+ /**
203
+ * @type Select
204
+ * @options image
205
+ * @options video
206
+ */
207
+ "type"?: 'image' | 'video';
191
208
  /**
192
209
  * @type Select
193
210
  * @options video/mp4
@@ -287,7 +304,7 @@ export namespace Components {
287
304
  * @responsive
288
305
  */
289
306
  "open": ResponsiveBoolean;
290
- "openOverlay": () => Promise<boolean>;
307
+ "openOverlay": () => Promise<void>;
291
308
  /**
292
309
  * @type String
293
310
  * @responsive
@@ -703,6 +720,11 @@ declare namespace LocalJSX {
703
720
  * @responsive
704
721
  */
705
722
  "classes"?: ResponsiveString;
723
+ /**
724
+ * @type Number
725
+ * @responsive
726
+ */
727
+ "columnGap"?: ResponsiveNumber;
706
728
  /**
707
729
  * @type Number
708
730
  * @responsive
@@ -733,11 +755,12 @@ declare namespace LocalJSX {
733
755
  /**
734
756
  * Flex or grid
735
757
  * @type Select
758
+ * @options none
736
759
  * @options flex
737
760
  * @options grid
738
761
  * @responsive
739
762
  */
740
- "type"?: GRID_TYPES;
763
+ "type"?: GRID_TYPES | ResponsiveString;
741
764
  /**
742
765
  * Vertical axis alignment
743
766
  * @type Select
@@ -770,6 +793,11 @@ declare namespace LocalJSX {
770
793
  * @responsive
771
794
  */
772
795
  "alt"?: ResponsiveString;
796
+ /**
797
+ * @type String
798
+ * @responsive
799
+ */
800
+ "aspectRatio"?: ResponsiveString;
773
801
  /**
774
802
  * @type String
775
803
  * @responsive
@@ -795,6 +823,12 @@ declare namespace LocalJSX {
795
823
  * @responsive
796
824
  */
797
825
  "src": ResponsiveString;
826
+ /**
827
+ * @type Select
828
+ * @options image
829
+ * @options video
830
+ */
831
+ "type"?: 'image' | 'video';
798
832
  /**
799
833
  * @type Select
800
834
  * @options video/mp4
@@ -49,7 +49,7 @@ export declare class ContentButton {
49
49
  linkClass: ResponsiveString;
50
50
  hasContentToActivate: boolean;
51
51
  activatedContent: HTMLDivElement;
52
- componentDidLoad(): any[];
52
+ componentWillLoad(): void;
53
53
  onHandleClickEvent(ev: any): void;
54
54
  render(): any;
55
55
  }
@@ -35,6 +35,17 @@ export declare class ContentImage {
35
35
  * @responsive
36
36
  */
37
37
  height: ResponsiveNumber;
38
+ /**
39
+ * @type String
40
+ * @responsive
41
+ */
42
+ aspectRatio: ResponsiveString;
43
+ /**
44
+ * @type Select
45
+ * @options image
46
+ * @options video
47
+ */
48
+ type?: 'image' | 'video';
38
49
  /**
39
50
  * @type Select
40
51
  * @options video/mp4
@@ -54,8 +65,9 @@ export declare class ContentImage {
54
65
  [key: string]: string;
55
66
  };
56
67
  hasMediaContent: boolean;
68
+ pictureImageSrc: string;
57
69
  preloadImage(src: any): Promise<unknown>;
58
- componentDidLoad(): void;
70
+ componentWillLoad(): void;
59
71
  watchLazyLoadIsComplete(newValue: boolean): void;
60
72
  render(): any;
61
73
  }
@@ -48,7 +48,7 @@ export declare class ContentLine {
48
48
  inlineStyle: {
49
49
  [key: string]: string;
50
50
  };
51
- componentDidLoad(): Promise<PromiseSettledResult<any>[]>;
51
+ componentWillLoad(): void;
52
52
  render(): any;
53
53
  }
54
54
  //# sourceMappingURL=content-line.d.ts.map
@@ -13,11 +13,12 @@ export declare class ContentGridFormatter {
13
13
  /**
14
14
  * Flex or grid
15
15
  * @type Select
16
+ * @options none
16
17
  * @options flex
17
18
  * @options grid
18
19
  * @responsive
19
20
  */
20
- type: GRID_TYPES;
21
+ type: GRID_TYPES | ResponsiveString;
21
22
  /**
22
23
  * Setting this true to will grow all children. Alternatively, add the attribute [flex-grow="true"] to a specific grid child and that child will grow.
23
24
  * @type Boolean
@@ -55,11 +56,16 @@ export declare class ContentGridFormatter {
55
56
  * @responsive
56
57
  */
57
58
  columns: ResponsiveNumber;
59
+ /**
60
+ * @type Number
61
+ * @responsive
62
+ */
63
+ columnGap: ResponsiveNumber;
58
64
  activeClassString: string;
59
65
  inlineStyle: {
60
66
  [key: string]: string;
61
67
  };
62
- componentDidLoad(): Promise<[PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>]>;
68
+ componentWillLoad(): Promise<[PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>, PromiseSettledResult<import("rxjs").Subscription>]>;
63
69
  render(): any;
64
70
  }
65
71
  //# sourceMappingURL=content-grid-formatter.d.ts.map
@@ -73,7 +73,7 @@ export declare class ContentSpacingWrapper {
73
73
  inlineStyle?: {
74
74
  [key: string]: string;
75
75
  };
76
- componentDidLoad(): void;
76
+ componentWillLoad(): void;
77
77
  render(): any;
78
78
  }
79
79
  //# sourceMappingURL=content-spacer.d.ts.map
@@ -1,12 +1,11 @@
1
- export declare const AdvancedExample: (args: any) => string;
1
+ import type { Meta } from '@storybook/web-components';
2
2
  export declare const BasicExample: {
3
3
  (args: any): string;
4
4
  args: {
5
5
  src: string;
6
6
  };
7
7
  };
8
- declare const _default: {
9
- title: string;
10
- };
11
- export default _default;
8
+ export declare const AdvancedExample: (args: any) => string;
9
+ declare const meta: Meta;
10
+ export default meta;
12
11
  //# sourceMappingURL=ContentHeroBlock.stories.d.ts.map
@@ -0,0 +1,11 @@
1
+ export declare const BasicExample: {
2
+ (args: any): string;
3
+ args: {
4
+ src: string;
5
+ };
6
+ };
7
+ declare const _default: {
8
+ title: string;
9
+ };
10
+ export default _default;
11
+ //# sourceMappingURL=ContentNavigationBlock.stories.d.ts.map
@@ -0,0 +1,15 @@
1
+ export declare const BasicExample: {
2
+ (args: any): string;
3
+ args: {
4
+ topOffset: string;
5
+ bottomOffset: string;
6
+ leftOffset: string;
7
+ rightOffset: string;
8
+ src: string;
9
+ };
10
+ };
11
+ declare const _default: {
12
+ title: string;
13
+ };
14
+ export default _default;
15
+ //# sourceMappingURL=ContentSpacer.stories.d.ts.map
@@ -0,0 +1,15 @@
1
+ export declare const BasicExample: {
2
+ (args: any): string;
3
+ args: {
4
+ topOffset: string;
5
+ bottomOffset: string;
6
+ leftOffset: string;
7
+ rightOffset: string;
8
+ src: string;
9
+ };
10
+ };
11
+ declare const _default: {
12
+ title: string;
13
+ };
14
+ export default _default;
15
+ //# sourceMappingURL=ContentTextBlock.stories.d.ts.map
@@ -0,0 +1,9 @@
1
+ export declare const BasicExample: {
2
+ (args: any): string;
3
+ args: {};
4
+ };
5
+ declare const _default: {
6
+ title: string;
7
+ };
8
+ export default _default;
9
+ //# sourceMappingURL=ContentToutBlock.stories.d.ts.map
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/web-components';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ type Story = StoryObj;
5
+ /**
6
+ * # Primary Button
7
+ * This is the primary button
8
+ */
9
+ export declare const BasicExample: Story;
10
+ //# sourceMappingURL=FullPageExample.stories.d.ts.map
@@ -1,6 +1,6 @@
1
- export type GRID_TYPES = "flex" | "grid";
1
+ export type GRID_TYPES = 'none' | 'flex' | 'grid';
2
2
 
3
- export type FLEX_JUSTIFY_OPTIONS = "flex-start" | "space-between" | "center" | "space-evenly";
3
+ export type FLEX_JUSTIFY_OPTIONS = 'flex-start' | 'space-between' | 'center' | 'space-evenly';
4
4
 
5
5
  export type ContentLineTextAlignOptions = 'default' | 'left' | 'center' | 'right';
6
6
 
@@ -8,4 +8,4 @@ export type ContentVerticalAlignments = 'top' | 'center' | 'bottom';
8
8
 
9
9
  export type ResponsiveNumber = string;
10
10
  export type ResponsiveString = string;
11
- export type ResponsiveBoolean = string;
11
+ export type ResponsiveBoolean = string;
@@ -10,4 +10,5 @@ export declare function getCurrentBreakpointIndex(): number;
10
10
  export declare function getCurrentValue(responsiveValue: string | boolean): string;
11
11
  export declare function getValueAtIndex(index: number, responsiveValue: ResponsiveString): string;
12
12
  export declare function getHydratedClassString(classString: string): string;
13
+ export declare function objectToCssString(object: object): string;
13
14
  //# sourceMappingURL=utils.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@content-blocks/js",
3
- "version": "0.4.4",
3
+ "version": "0.6.0",
4
4
  "description": "https://contentblocksjs.com/",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/loader/index.js",
@@ -32,17 +32,19 @@
32
32
  "prepublishOnly": "npm run build",
33
33
  "storybook": "storybook dev -p 6006",
34
34
  "build-storybook": "storybook build",
35
- "release": "release-it"
35
+ "release": "npm run build && release-it"
36
36
  },
37
37
  "license": "UNLICENSED",
38
38
  "devDependencies": {
39
39
  "@stencil/core": "^4.9.1",
40
40
  "@stencil/react-output-target": "^0.5.3",
41
41
  "@stencil/sass": "^3.0.8",
42
- "@storybook/addon-essentials": "^7.6.8",
42
+ "@storybook/addon-essentials": "^7.6.10",
43
43
  "@storybook/addon-interactions": "^7.6.8",
44
44
  "@storybook/addon-links": "^7.6.8",
45
+ "@storybook/addon-storysource": "^7.6.10",
45
46
  "@storybook/blocks": "^7.6.8",
47
+ "@storybook/cli": "^7.6.9",
46
48
  "@storybook/html": "^7.6.8",
47
49
  "@storybook/html-vite": "^7.6.8",
48
50
  "@storybook/test": "^7.6.8",
@@ -52,6 +54,7 @@
52
54
  "@types/jest": "^29.5.11",
53
55
  "@typescript-eslint/eslint-plugin": "^6.18.1",
54
56
  "@typescript-eslint/parser": "^6.18.1",
57
+ "envinfo": "^7.11.0",
55
58
  "eslint": "^8.56.0",
56
59
  "eslint-plugin-react": "^7.33.2",
57
60
  "eslint-plugin-storybook": "^0.6.15",