@arc-ui/community-components 3.3.0 → 3.4.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 (104) hide show
  1. package/.turbo/turbo-build.log +132 -12
  2. package/CHANGELOG.md +12 -0
  3. package/lib/Accordion/Accordion.mjs +1 -1
  4. package/lib/ActionTile/ActionTile.mjs +9 -9
  5. package/lib/ArticleSidebar/ArticleSidebar.mjs +44 -44
  6. package/lib/Author/Author.mjs +1 -1
  7. package/lib/BannerWithTabs/BannerWithTabs.mjs +6 -6
  8. package/lib/ContentInfoWidget/ContentInfoWidget.mjs +6 -6
  9. package/lib/CopyLead/CopyLead.cjs +18 -8
  10. package/lib/CopyLead/CopyLead.mjs +59 -49
  11. package/lib/DownloadList/DownloadList.mjs +9 -9
  12. package/lib/FAQs/FAQs.mjs +21 -21
  13. package/lib/FeaturePost/FeaturePost.cjs +1 -1
  14. package/lib/FeaturePost/FeaturePost.mjs +53 -53
  15. package/lib/Highlights/Highlights.mjs +19 -19
  16. package/lib/InlineLinkGroup/InlineLinkGroup.mjs +10 -10
  17. package/lib/LinkTile/LinkTile.mjs +5 -5
  18. package/lib/ProductNavigation/ProductNavigation.cjs +1 -1
  19. package/lib/ProductNavigation/ProductNavigation.mjs +17 -17
  20. package/lib/PromoListing/PromoListing.cjs +1 -1
  21. package/lib/PromoListing/PromoListing.mjs +15 -15
  22. package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +2 -2
  23. package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +8 -8
  24. package/lib/Quote/Quote.mjs +8 -8
  25. package/lib/SectionHeading/SectionHeading.mjs +1 -1
  26. package/lib/Statistics/Statistics.mjs +31 -31
  27. package/lib/Summary/Summary.cjs +1 -1
  28. package/lib/Summary/Summary.mjs +11 -11
  29. package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +1 -1
  30. package/lib/VideoHeroCard/VideoHeroCard.cjs +76 -0
  31. package/lib/VideoHeroCard/VideoHeroCard.mjs +74 -0
  32. package/lib/VideoPortraitCard/VideoPortraitCard.cjs +22 -0
  33. package/lib/VideoPortraitCard/VideoPortraitCard.mjs +20 -0
  34. package/lib/_shared/cjs/Preview-Dx1kCzJ1.cjs +102 -0
  35. package/lib/_shared/cjs/VideoCardThumbnail-BqYgpk0u.cjs +440 -0
  36. package/lib/_shared/cjs/dash.all.min-BPXzla24.cjs +6 -0
  37. package/lib/_shared/cjs/hls-Ckhp5fVA.cjs +36628 -0
  38. package/lib/_shared/cjs/index-DjiIVIaV.cjs +96 -0
  39. package/lib/_shared/cjs/index-oGP6D6gL.cjs +14826 -0
  40. package/lib/_shared/cjs/{index.es-Dq8bYrbW.cjs → index.es-B0J3cvrY.cjs} +1 -1
  41. package/lib/_shared/cjs/mixin-BFwaXKGB.cjs +1027 -0
  42. package/lib/_shared/cjs/react-CEvhi3LL.cjs +737 -0
  43. package/lib/_shared/cjs/react-CqsEClV0.cjs +466 -0
  44. package/lib/_shared/cjs/react-DE6M3seI.cjs +496 -0
  45. package/lib/_shared/cjs/react-Dri2yjKm.cjs +554 -0
  46. package/lib/_shared/cjs/react-DxToimBj.cjs +4239 -0
  47. package/lib/_shared/cjs/react-JTfV8OSA.cjs +325 -0
  48. package/lib/_shared/cjs/react-caXJFZ8W.cjs +400 -0
  49. package/lib/_shared/cjs/react-fep2ei7j.cjs +727 -0
  50. package/lib/_shared/esm/{Accordion-DrOTh90S.mjs → Accordion-DtU7jbCv.mjs} +15 -15
  51. package/lib/_shared/esm/Author-CJQFrQM9.mjs +27 -0
  52. package/lib/_shared/esm/Preview-CmbKOgEO.mjs +100 -0
  53. package/lib/_shared/esm/{SectionHeading-DZOg_gYi.mjs → SectionHeading-BskdQ2Tt.mjs} +9 -9
  54. package/lib/_shared/esm/{ThumbnailSignpost-DaZByYIH.mjs → ThumbnailSignpost-CBSdQiHw.mjs} +12 -12
  55. package/lib/_shared/esm/VideoCardThumbnail-VfOKmPCv.mjs +437 -0
  56. package/lib/_shared/esm/dash.all.min-CbWI_8dN.mjs +4 -0
  57. package/lib/_shared/esm/hls-AFbJDS9D.mjs +36625 -0
  58. package/lib/_shared/esm/index-CrcIrdjn.mjs +14799 -0
  59. package/lib/_shared/esm/index-DYnuIO1L.mjs +94 -0
  60. package/lib/_shared/esm/{index.es-Bfdys5__.mjs → index.es-DraZ-qKh.mjs} +1 -1
  61. package/lib/_shared/esm/mixin-BGGG8VrM.mjs +1024 -0
  62. package/lib/_shared/esm/react-BGimq-TB.mjs +4237 -0
  63. package/lib/_shared/esm/react-BHT4t_eQ.mjs +494 -0
  64. package/lib/_shared/esm/react-BSd0sGcO.mjs +464 -0
  65. package/lib/_shared/esm/react-CSr43fZV.mjs +552 -0
  66. package/lib/_shared/esm/react-Ca6E7Fr-.mjs +398 -0
  67. package/lib/_shared/esm/react-DG070IvZ.mjs +725 -0
  68. package/lib/_shared/esm/react-DZyqy7W7.mjs +735 -0
  69. package/lib/_shared/esm/react-WW_9iHcl.mjs +323 -0
  70. package/lib/index.cjs +249 -123
  71. package/lib/index.cjs.map +1 -1
  72. package/lib/index.d.cts +55 -2
  73. package/lib/index.d.mts +55 -2
  74. package/lib/index.mjs +248 -124
  75. package/lib/index.mjs.map +1 -1
  76. package/lib/styles.css +1 -1
  77. package/package.json +17 -14
  78. package/rollup.config.js +1 -1
  79. package/src/components/CopyLead/components/MediaContent/MediaContent.tsx +7 -6
  80. package/src/components/CopyLead/templates/Content/Content.tsx +5 -3
  81. package/src/components/CopyLead/templates/Media/Media.tsx +5 -6
  82. package/src/components/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.tsx +2 -0
  83. package/src/components/VideoHeroCard/VideoHeroCard.tsx +63 -0
  84. package/src/components/VideoHeroCard/components/VideoHeroCardContent/VideoHeroCardContent.module.css +32 -0
  85. package/src/components/VideoHeroCard/components/VideoHeroCardContent/VideoHeroCardContent.tsx +97 -0
  86. package/src/components/VideoHeroCard/components/VideoHeroCardContent/index.ts +4 -0
  87. package/src/components/VideoHeroCard/index.ts +1 -0
  88. package/src/components/VideoPortraitCard/VideoPortraitCard.tsx +54 -0
  89. package/src/components/VideoPortraitCard/index.ts +4 -0
  90. package/src/components/index.ts +2 -0
  91. package/src/internal/MultiLineText/MultiLineText.tsx +25 -0
  92. package/src/internal/MultiLineText/index.ts +1 -0
  93. package/src/internal/VideoCardPlayer/VideoCardPlayer.module.css +54 -0
  94. package/src/internal/VideoCardPlayer/VideoCardPlayer.tsx +62 -0
  95. package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/VideoCardPlayIcon.module.css +41 -0
  96. package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/VideoCardPlayIcon.tsx +28 -0
  97. package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/index.ts +1 -0
  98. package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/VideoCardThumbnail.module.css +58 -0
  99. package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/VideoCardThumbnail.tsx +38 -0
  100. package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/index.ts +1 -0
  101. package/src/internal/VideoCardPlayer/index.ts +2 -0
  102. package/src/internal/VideoCardPlayer/types/player-props.ts +6 -0
  103. package/versions.json +1 -1
  104. package/lib/_shared/esm/Author-BVCRPgkl.mjs +0 -27
@@ -0,0 +1,94 @@
1
+ function MediaPlayedRangesMixin(Base) {
2
+ return class MediaPlayedRanges extends Base {
3
+ _playedRanges = [];
4
+ _currentPlayedRange = null;
5
+ _RANGE_EPSILON = 0.5;
6
+ _seeking = false;
7
+ connectedCallback() {
8
+ if (super.connectedCallback) super.connectedCallback();
9
+ this.addEventListener("play", () => this.onPlaybackStart({ time: this.currentTime }));
10
+ this.addEventListener("pause", () => this.onPlaybackStop({ time: this.currentTime }));
11
+ this.addEventListener("ended", () => this.onPlaybackStop({ time: this.currentTime }));
12
+ this.addEventListener("seeking", () => this.onSeeking());
13
+ this.addEventListener("seeked", () => this.onSeeked({ time: this.currentTime }));
14
+ }
15
+ onPlaybackStart(param = {}) {
16
+ this._seeking = false;
17
+ const { time } = param;
18
+ const t = typeof time === "number" ? time : this.currentTime;
19
+ if (!this._currentPlayedRange) {
20
+ this._currentPlayedRange = { start: t, end: t };
21
+ }
22
+ }
23
+ onSeeking() {
24
+ this._seeking = true;
25
+ this._commitCurrentRange();
26
+ }
27
+ onSeeked(param = {}) {
28
+ this._seeking = false;
29
+ const { time } = param;
30
+ const t = typeof time === "number" ? time : this.currentTime;
31
+ this._currentPlayedRange = { start: t, end: t };
32
+ }
33
+ onPlaybackStop(param = {}) {
34
+ const { time } = param;
35
+ const t = typeof time === "number" ? time : this.currentTime;
36
+ this._commitCurrentRange(t);
37
+ }
38
+ _commitCurrentRange(time) {
39
+ if (!this._currentPlayedRange) return;
40
+ if (typeof time === "number") {
41
+ this._currentPlayedRange.end = time;
42
+ }
43
+ const { start, end } = this._currentPlayedRange;
44
+ this._currentPlayedRange = null;
45
+ this.addPlayedRange(start, end);
46
+ }
47
+ addPlayedRange(start, end) {
48
+ if (start >= end) return;
49
+ const EPS = this._RANGE_EPSILON;
50
+ const allRanges = [...this._playedRanges, { start, end }];
51
+ allRanges.sort((a, b) => a.start - b.start);
52
+ const merged = [];
53
+ for (const range of allRanges) {
54
+ if (!merged.length) {
55
+ merged.push({ ...range });
56
+ continue;
57
+ }
58
+ const last = merged[merged.length - 1];
59
+ if (range.start <= last.end + EPS) {
60
+ last.start = Math.min(last.start, range.start);
61
+ last.end = Math.max(last.end, range.end);
62
+ } else {
63
+ merged.push({ ...range });
64
+ }
65
+ }
66
+ this._playedRanges = merged;
67
+ }
68
+ get played() {
69
+ const time = this.currentTime;
70
+ if (!this.paused && !this._currentPlayedRange && typeof time === "number") {
71
+ this._currentPlayedRange = { start: time, end: time };
72
+ }
73
+ if (this._currentPlayedRange && typeof time === "number") {
74
+ if (time > this._currentPlayedRange.end) {
75
+ this._currentPlayedRange.end = time;
76
+ }
77
+ this.addPlayedRange(this._currentPlayedRange.start, this._currentPlayedRange.end);
78
+ }
79
+ if (!this._playedRanges.length) {
80
+ return createTimeRangesObj([[0, 0]]);
81
+ }
82
+ return createTimeRangesObj(this._playedRanges.map((r) => [r.start, r.end]));
83
+ }
84
+ };
85
+ }
86
+ function createTimeRangesObj(ranges) {
87
+ Object.defineProperties(ranges, {
88
+ start: { value: (i) => ranges[i][0] },
89
+ end: { value: (i) => ranges[i][1] }
90
+ });
91
+ return ranges;
92
+ }
93
+
94
+ export { MediaPlayedRangesMixin as M };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 06 Mar 2026 15:05:14 GMT
3
+ * Generated on Thu, 26 Mar 2026 15:14:44 GMT
4
4
  */
5
5
  var ArcSizeBreakpointsS = "636px";
6
6
  var ArcSizeBreakpointsM = "768px";