@flamingo-stack/openframe-frontend-core 0.0.667-2387.7141.1 → 0.0.667-snapshot.20260925194545

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 (98) hide show
  1. package/dist/{chunk-IWCYTHNG.js → chunk-2C4JFQ4X.js} +17 -9
  2. package/dist/{chunk-IWCYTHNG.js.map → chunk-2C4JFQ4X.js.map} +1 -1
  3. package/dist/{chunk-KS2PRUHN.js → chunk-3LGOHFF4.js} +2 -2
  4. package/dist/{chunk-B76ZH6HA.cjs → chunk-57M3XKOO.cjs} +10 -10
  5. package/dist/{chunk-B76ZH6HA.cjs.map → chunk-57M3XKOO.cjs.map} +1 -1
  6. package/dist/{chunk-Z5FOWR7O.cjs → chunk-67JJ2FOH.cjs} +26 -26
  7. package/dist/{chunk-Z5FOWR7O.cjs.map → chunk-67JJ2FOH.cjs.map} +1 -1
  8. package/dist/{chunk-DKBXW3EI.cjs → chunk-75EU6UVZ.cjs} +10 -10
  9. package/dist/{chunk-DKBXW3EI.cjs.map → chunk-75EU6UVZ.cjs.map} +1 -1
  10. package/dist/{chunk-TN33GNFP.js → chunk-77O2F7DB.js} +4 -4
  11. package/dist/{chunk-YW4LA55U.cjs → chunk-7IYVCPOP.cjs} +33 -33
  12. package/dist/{chunk-YW4LA55U.cjs.map → chunk-7IYVCPOP.cjs.map} +1 -1
  13. package/dist/{chunk-GKAZC2JI.js → chunk-BAPTOWBJ.js} +2 -2
  14. package/dist/{chunk-DG763XMY.js → chunk-CF5ISIMZ.js} +5 -5
  15. package/dist/{chunk-3A6MM3CK.cjs → chunk-D4NQ4YRE.cjs} +15 -15
  16. package/dist/{chunk-3A6MM3CK.cjs.map → chunk-D4NQ4YRE.cjs.map} +1 -1
  17. package/dist/{chunk-5ZHLPC32.js → chunk-DNKYYJXO.js} +5 -5
  18. package/dist/{chunk-DYFQCHUY.js → chunk-FTMPT7V7.js} +5 -5
  19. package/dist/{chunk-23XIOIGS.cjs → chunk-G6QOSLWL.cjs} +17 -9
  20. package/dist/{chunk-23XIOIGS.cjs.map → chunk-G6QOSLWL.cjs.map} +1 -1
  21. package/dist/{chunk-7ZIOUUWU.js → chunk-GDNDD4BV.js} +2 -2
  22. package/dist/{chunk-JMPZUL2X.cjs → chunk-HPYBLQHG.cjs} +163 -163
  23. package/dist/{chunk-JMPZUL2X.cjs.map → chunk-HPYBLQHG.cjs.map} +1 -1
  24. package/dist/{chunk-AUHHSY5H.cjs → chunk-IAANPRBM.cjs} +22 -22
  25. package/dist/{chunk-AUHHSY5H.cjs.map → chunk-IAANPRBM.cjs.map} +1 -1
  26. package/dist/{chunk-TSEYXPXZ.js → chunk-IYQBZCPS.js} +2 -2
  27. package/dist/{chunk-VUQWJUW7.cjs → chunk-J3HCLQGO.cjs} +45 -45
  28. package/dist/{chunk-VUQWJUW7.cjs.map → chunk-J3HCLQGO.cjs.map} +1 -1
  29. package/dist/{chunk-CIB3QB2T.cjs → chunk-J5K2VD5Q.cjs} +71 -71
  30. package/dist/{chunk-CIB3QB2T.cjs.map → chunk-J5K2VD5Q.cjs.map} +1 -1
  31. package/dist/{chunk-SFMFRUY2.cjs → chunk-K7STZOS4.cjs} +10 -10
  32. package/dist/{chunk-SFMFRUY2.cjs.map → chunk-K7STZOS4.cjs.map} +1 -1
  33. package/dist/{chunk-CYBRUQ2Z.cjs → chunk-KEWVQLTP.cjs} +22 -22
  34. package/dist/{chunk-CYBRUQ2Z.cjs.map → chunk-KEWVQLTP.cjs.map} +1 -1
  35. package/dist/{chunk-WD73QMY3.cjs → chunk-LJ7QTJT6.cjs} +3 -3
  36. package/dist/{chunk-WD73QMY3.cjs.map → chunk-LJ7QTJT6.cjs.map} +1 -1
  37. package/dist/{chunk-BO2ZXX4Z.js → chunk-LVUCOMYR.js} +6 -6
  38. package/dist/{chunk-ZRD3YAPM.js → chunk-NSRGKFD2.js} +2 -2
  39. package/dist/{chunk-QHJ4GEDA.cjs → chunk-NUHAAAG2.cjs} +4 -4
  40. package/dist/{chunk-QHJ4GEDA.cjs.map → chunk-NUHAAAG2.cjs.map} +1 -1
  41. package/dist/{chunk-M6PDHXI5.js → chunk-NYSWQUYL.js} +3 -3
  42. package/dist/{chunk-2FUSTKIV.cjs → chunk-POARTIEF.cjs} +3 -3
  43. package/dist/{chunk-2FUSTKIV.cjs.map → chunk-POARTIEF.cjs.map} +1 -1
  44. package/dist/{chunk-57BIWOGD.js → chunk-R3CB3UDG.js} +3 -3
  45. package/dist/{chunk-AAZLZBR5.js → chunk-RNAW32XF.js} +3 -3
  46. package/dist/{chunk-6M5NRLFI.cjs → chunk-RQJDHAJH.cjs} +5 -5
  47. package/dist/{chunk-6M5NRLFI.cjs.map → chunk-RQJDHAJH.cjs.map} +1 -1
  48. package/dist/{chunk-4FHL6C5E.js → chunk-WHPWKBUY.js} +3 -3
  49. package/dist/{chunk-CEPI3A3T.js → chunk-ZSZJ33SJ.js} +3 -3
  50. package/dist/components/case-studies/index.cjs +14 -14
  51. package/dist/components/case-studies/index.js +3 -3
  52. package/dist/components/chat/index.cjs +2 -2
  53. package/dist/components/chat/index.js +1 -1
  54. package/dist/components/contact/index.cjs +4 -4
  55. package/dist/components/contact/index.js +3 -3
  56. package/dist/components/docs/index.cjs +7 -7
  57. package/dist/components/docs/index.js +6 -6
  58. package/dist/components/embeds/index.cjs +4 -4
  59. package/dist/components/embeds/index.js +3 -3
  60. package/dist/components/faq/index.cjs +4 -4
  61. package/dist/components/faq/index.js +3 -3
  62. package/dist/components/features/index.cjs +3 -3
  63. package/dist/components/features/index.js +2 -2
  64. package/dist/components/features/video.d.ts.map +1 -1
  65. package/dist/components/help-center-pages/index.cjs +23 -23
  66. package/dist/components/help-center-pages/index.js +14 -14
  67. package/dist/components/index.cjs +39 -39
  68. package/dist/components/index.js +13 -13
  69. package/dist/components/meeting-scheduler/index.cjs +24 -24
  70. package/dist/components/meeting-scheduler/index.js +2 -2
  71. package/dist/components/navigation/index.cjs +6 -6
  72. package/dist/components/navigation/index.js +5 -5
  73. package/dist/components/onboarding-guides/index.cjs +6 -6
  74. package/dist/components/onboarding-guides/index.js +5 -5
  75. package/dist/components/tickets/index.cjs +7 -7
  76. package/dist/components/tickets/index.js +6 -6
  77. package/dist/components/ui/index.cjs +3 -3
  78. package/dist/components/ui/index.js +2 -2
  79. package/dist/index.cjs +7 -7
  80. package/dist/index.js +6 -6
  81. package/package.json +1 -1
  82. package/src/components/features/__tests__/video-youtube-autoplay.test.tsx +74 -0
  83. package/src/components/features/video.tsx +28 -10
  84. /package/dist/{chunk-KS2PRUHN.js.map → chunk-3LGOHFF4.js.map} +0 -0
  85. /package/dist/{chunk-TN33GNFP.js.map → chunk-77O2F7DB.js.map} +0 -0
  86. /package/dist/{chunk-GKAZC2JI.js.map → chunk-BAPTOWBJ.js.map} +0 -0
  87. /package/dist/{chunk-DG763XMY.js.map → chunk-CF5ISIMZ.js.map} +0 -0
  88. /package/dist/{chunk-5ZHLPC32.js.map → chunk-DNKYYJXO.js.map} +0 -0
  89. /package/dist/{chunk-DYFQCHUY.js.map → chunk-FTMPT7V7.js.map} +0 -0
  90. /package/dist/{chunk-7ZIOUUWU.js.map → chunk-GDNDD4BV.js.map} +0 -0
  91. /package/dist/{chunk-TSEYXPXZ.js.map → chunk-IYQBZCPS.js.map} +0 -0
  92. /package/dist/{chunk-BO2ZXX4Z.js.map → chunk-LVUCOMYR.js.map} +0 -0
  93. /package/dist/{chunk-ZRD3YAPM.js.map → chunk-NSRGKFD2.js.map} +0 -0
  94. /package/dist/{chunk-M6PDHXI5.js.map → chunk-NYSWQUYL.js.map} +0 -0
  95. /package/dist/{chunk-57BIWOGD.js.map → chunk-R3CB3UDG.js.map} +0 -0
  96. /package/dist/{chunk-AAZLZBR5.js.map → chunk-RNAW32XF.js.map} +0 -0
  97. /package/dist/{chunk-4FHL6C5E.js.map → chunk-WHPWKBUY.js.map} +0 -0
  98. /package/dist/{chunk-CEPI3A3T.js.map → chunk-ZSZJ33SJ.js.map} +0 -0
@@ -12460,6 +12460,7 @@ function Video2(props) {
12460
12460
  priority: props.priority,
12461
12461
  className: props.className,
12462
12462
  minimalControls: props.minimalControls,
12463
+ muted: props.muted,
12463
12464
  ...pickYouTube(props)
12464
12465
  }
12465
12466
  ) : "firstFrameOnly" in props && props.firstFrameOnly ? /* @__PURE__ */ jsx78(
@@ -12945,6 +12946,7 @@ function YouTubeFacade({
12945
12946
  priority,
12946
12947
  className,
12947
12948
  minimalControls,
12949
+ muted,
12948
12950
  // `...facade` rather than naming each one: this hop is invisible to the
12949
12951
  // build-time forwarding proof, so a prop added to VideoYouTubeFacadeProps
12950
12952
  // would reach here and silently stop before Inner.
@@ -12960,6 +12962,7 @@ function YouTubeFacade({
12960
12962
  priority,
12961
12963
  className,
12962
12964
  minimalControls,
12965
+ muted,
12963
12966
  ...facade
12964
12967
  }
12965
12968
  );
@@ -12986,10 +12989,16 @@ function YouTubeFacadeInner({
12986
12989
  priority,
12987
12990
  className,
12988
12991
  minimalControls,
12992
+ muted,
12989
12993
  autoActivate,
12990
12994
  suspended
12991
12995
  }) {
12992
12996
  const [activated, setActivated] = useState25(Boolean(autoActivate));
12997
+ const [prevAutoActivate, setPrevAutoActivate] = useState25(Boolean(autoActivate));
12998
+ if (Boolean(autoActivate) !== prevAutoActivate) {
12999
+ setPrevAutoActivate(Boolean(autoActivate));
13000
+ if (autoActivate) setActivated(true);
13001
+ }
12993
13002
  const [failed, setFailed] = useState25(false);
12994
13003
  const [reloadNonce, setReloadNonce] = useState25(0);
12995
13004
  const iframeRef = useRef16(null);
@@ -13005,6 +13014,7 @@ function YouTubeFacadeInner({
13005
13014
  playsinline: "1",
13006
13015
  enablejsapi: "1"
13007
13016
  });
13017
+ if (muted) params.set("mute", "1");
13008
13018
  if (typeof window !== "undefined") {
13009
13019
  params.set("origin", window.location.origin);
13010
13020
  }
@@ -13016,7 +13026,7 @@ function YouTubeFacadeInner({
13016
13026
  params.set("disablekb", "1");
13017
13027
  }
13018
13028
  return `${YT_NOCOOKIE_ORIGIN}/embed/${videoId}?${params.toString()}`;
13019
- }, [videoId, minimalControls]);
13029
+ }, [videoId, minimalControls, muted]);
13020
13030
  const [posterTier, setPosterTier] = useState25(0);
13021
13031
  const [posterTierFor, setPosterTierFor] = useState25(videoId);
13022
13032
  if (posterTierFor !== videoId) {
@@ -13078,13 +13088,11 @@ function YouTubeFacadeInner({
13078
13088
  useEffect19(() => {
13079
13089
  const wasSuspended = prevSuspendedRef.current;
13080
13090
  prevSuspendedRef.current = Boolean(suspended);
13081
- if (!activated) return;
13082
- if (suspended && !wasSuspended) {
13083
- iframeRef.current?.contentWindow?.postMessage(
13084
- '{"event":"command","func":"pauseVideo","args":[]}',
13085
- YT_NOCOOKIE_ORIGIN
13086
- );
13087
- }
13091
+ if (!activated || Boolean(suspended) === wasSuspended) return;
13092
+ iframeRef.current?.contentWindow?.postMessage(
13093
+ `{"event":"command","func":"${suspended ? "pauseVideo" : "playVideo"}","args":[]}`,
13094
+ YT_NOCOOKIE_ORIGIN
13095
+ );
13088
13096
  }, [suspended, activated]);
13089
13097
  const wrapperClass = `relative w-full ${className ?? ""}`;
13090
13098
  const wrapperStyle = { paddingBottom: "56.25%" };
@@ -26529,4 +26537,4 @@ export {
26529
26537
  buildStreamFrames,
26530
26538
  EmbeddableChat
26531
26539
  };
26532
- //# sourceMappingURL=chunk-IWCYTHNG.js.map
26540
+ //# sourceMappingURL=chunk-2C4JFQ4X.js.map