@flamingo-stack/openframe-frontend-core 0.0.674-snapshot.20260928142801 → 0.0.674

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 (94) hide show
  1. package/dist/{chunk-ZYVMSJFU.cjs → chunk-4Q6P3VHS.cjs} +17 -17
  2. package/dist/{chunk-ZYVMSJFU.cjs.map → chunk-4Q6P3VHS.cjs.map} +1 -1
  3. package/dist/{chunk-HQ2ZYL3V.cjs → chunk-7F73YNDS.cjs} +4 -4
  4. package/dist/{chunk-HQ2ZYL3V.cjs.map → chunk-7F73YNDS.cjs.map} +1 -1
  5. package/dist/{chunk-PARUDSVT.js → chunk-BQICLH4C.js} +4 -4
  6. package/dist/{chunk-JB4ZALJS.cjs → chunk-CHKIZRUP.cjs} +18 -18
  7. package/dist/{chunk-JB4ZALJS.cjs.map → chunk-CHKIZRUP.cjs.map} +1 -1
  8. package/dist/{chunk-BVYZHKF6.cjs → chunk-EGQOPBXC.cjs} +3 -3
  9. package/dist/{chunk-BVYZHKF6.cjs.map → chunk-EGQOPBXC.cjs.map} +1 -1
  10. package/dist/{chunk-VZMST7BD.cjs → chunk-EJZV4QGU.cjs} +108 -111
  11. package/dist/chunk-EJZV4QGU.cjs.map +1 -0
  12. package/dist/{chunk-ZZOZZJPK.js → chunk-EPKQTPNJ.js} +3 -3
  13. package/dist/{chunk-C4YD5MZV.cjs → chunk-FUEAXTZE.cjs} +4 -4
  14. package/dist/{chunk-C4YD5MZV.cjs.map → chunk-FUEAXTZE.cjs.map} +1 -1
  15. package/dist/{chunk-TS4HBJNA.js → chunk-G7HMYIDN.js} +2 -2
  16. package/dist/{chunk-LD76LMKM.js → chunk-GJTLUW2H.js} +2 -2
  17. package/dist/{chunk-WYACK3N7.cjs → chunk-HN7KNVKL.cjs} +3 -3
  18. package/dist/{chunk-WYACK3N7.cjs.map → chunk-HN7KNVKL.cjs.map} +1 -1
  19. package/dist/{chunk-XJMADFIK.cjs → chunk-L7PO6NSD.cjs} +10 -10
  20. package/dist/{chunk-XJMADFIK.cjs.map → chunk-L7PO6NSD.cjs.map} +1 -1
  21. package/dist/{chunk-KB7YLZAC.js → chunk-M76D6OJZ.js} +5 -5
  22. package/dist/{chunk-SYTU64CK.js → chunk-MMOXFVQN.js} +2 -2
  23. package/dist/{chunk-GU5JW5MX.cjs → chunk-MRT6DZG5.cjs} +36 -36
  24. package/dist/{chunk-GU5JW5MX.cjs.map → chunk-MRT6DZG5.cjs.map} +1 -1
  25. package/dist/{chunk-5X4JS67G.cjs → chunk-N6CI2E7D.cjs} +3 -3
  26. package/dist/{chunk-5X4JS67G.cjs.map → chunk-N6CI2E7D.cjs.map} +1 -1
  27. package/dist/{chunk-ZI3E5SSW.js → chunk-NRHEKFPG.js} +2 -2
  28. package/dist/{chunk-KFWDLZGL.cjs → chunk-OAQROGFN.cjs} +51 -51
  29. package/dist/{chunk-KFWDLZGL.cjs.map → chunk-OAQROGFN.cjs.map} +1 -1
  30. package/dist/{chunk-42GR6UIH.cjs → chunk-PP3N5MN4.cjs} +3 -3
  31. package/dist/{chunk-42GR6UIH.cjs.map → chunk-PP3N5MN4.cjs.map} +1 -1
  32. package/dist/{chunk-OS3NLEV5.js → chunk-PXWMRXVI.js} +5 -5
  33. package/dist/{chunk-PSF37OWZ.js → chunk-QO4RASGC.js} +2 -2
  34. package/dist/{chunk-D3LFYXUM.cjs → chunk-QZMKKQQN.cjs} +13 -13
  35. package/dist/{chunk-D3LFYXUM.cjs.map → chunk-QZMKKQQN.cjs.map} +1 -1
  36. package/dist/{chunk-2GL6DFLV.js → chunk-RSOBME56.js} +2 -2
  37. package/dist/{chunk-Q3MTPDK4.js → chunk-TECYEWVQ.js} +2 -2
  38. package/dist/{chunk-N24SOKQI.cjs → chunk-TWQWCOJ7.cjs} +17 -17
  39. package/dist/{chunk-N24SOKQI.cjs.map → chunk-TWQWCOJ7.cjs.map} +1 -1
  40. package/dist/{chunk-I3QQALKQ.cjs → chunk-UIQQBZLU.cjs} +33 -33
  41. package/dist/{chunk-I3QQALKQ.cjs.map → chunk-UIQQBZLU.cjs.map} +1 -1
  42. package/dist/{chunk-LPEFFJXX.js → chunk-UYPICURQ.js} +2 -2
  43. package/dist/{chunk-HDNMMUGV.js → chunk-XBNO42PI.js} +2 -2
  44. package/dist/{chunk-J24SZNH4.js → chunk-XYZQXHAX.js} +4 -4
  45. package/dist/{chunk-CXE6WTBZ.js → chunk-YVJDVVHY.js} +2 -5
  46. package/dist/{chunk-CXE6WTBZ.js.map → chunk-YVJDVVHY.js.map} +1 -1
  47. package/dist/components/case-studies/index.cjs +11 -11
  48. package/dist/components/case-studies/index.js +2 -2
  49. package/dist/components/contact/index.cjs +3 -3
  50. package/dist/components/contact/index.js +2 -2
  51. package/dist/components/docs/index.cjs +6 -6
  52. package/dist/components/docs/index.js +5 -5
  53. package/dist/components/embeds/index.cjs +3 -3
  54. package/dist/components/embeds/index.js +2 -2
  55. package/dist/components/faq/index.cjs +3 -3
  56. package/dist/components/faq/index.js +2 -2
  57. package/dist/components/features/index.cjs +2 -2
  58. package/dist/components/features/index.js +1 -1
  59. package/dist/components/features/walkthrough-video.d.ts +0 -6
  60. package/dist/components/features/walkthrough-video.d.ts.map +1 -1
  61. package/dist/components/help-center-pages/index.cjs +49 -49
  62. package/dist/components/help-center-pages/index.js +13 -13
  63. package/dist/components/index.cjs +31 -31
  64. package/dist/components/index.js +12 -12
  65. package/dist/components/meeting-scheduler/index.cjs +21 -21
  66. package/dist/components/meeting-scheduler/index.js +1 -1
  67. package/dist/components/navigation/index.cjs +5 -5
  68. package/dist/components/navigation/index.js +4 -4
  69. package/dist/components/onboarding-guides/index.cjs +5 -5
  70. package/dist/components/onboarding-guides/index.js +4 -4
  71. package/dist/components/tickets/index.cjs +6 -6
  72. package/dist/components/tickets/index.js +5 -5
  73. package/dist/components/ui/index.cjs +2 -2
  74. package/dist/components/ui/index.js +1 -1
  75. package/dist/index.cjs +6 -6
  76. package/dist/index.js +5 -5
  77. package/package.json +1 -1
  78. package/src/components/features/walkthrough-video.tsx +1 -12
  79. package/dist/chunk-VZMST7BD.cjs.map +0 -1
  80. package/src/components/features/__tests__/walkthrough-video-autoplay-card.test.tsx +0 -89
  81. /package/dist/{chunk-PARUDSVT.js.map → chunk-BQICLH4C.js.map} +0 -0
  82. /package/dist/{chunk-ZZOZZJPK.js.map → chunk-EPKQTPNJ.js.map} +0 -0
  83. /package/dist/{chunk-TS4HBJNA.js.map → chunk-G7HMYIDN.js.map} +0 -0
  84. /package/dist/{chunk-LD76LMKM.js.map → chunk-GJTLUW2H.js.map} +0 -0
  85. /package/dist/{chunk-KB7YLZAC.js.map → chunk-M76D6OJZ.js.map} +0 -0
  86. /package/dist/{chunk-SYTU64CK.js.map → chunk-MMOXFVQN.js.map} +0 -0
  87. /package/dist/{chunk-ZI3E5SSW.js.map → chunk-NRHEKFPG.js.map} +0 -0
  88. /package/dist/{chunk-OS3NLEV5.js.map → chunk-PXWMRXVI.js.map} +0 -0
  89. /package/dist/{chunk-PSF37OWZ.js.map → chunk-QO4RASGC.js.map} +0 -0
  90. /package/dist/{chunk-2GL6DFLV.js.map → chunk-RSOBME56.js.map} +0 -0
  91. /package/dist/{chunk-Q3MTPDK4.js.map → chunk-TECYEWVQ.js.map} +0 -0
  92. /package/dist/{chunk-LPEFFJXX.js.map → chunk-UYPICURQ.js.map} +0 -0
  93. /package/dist/{chunk-HDNMMUGV.js.map → chunk-XBNO42PI.js.map} +0 -0
  94. /package/dist/{chunk-J24SZNH4.js.map → chunk-XYZQXHAX.js.map} +0 -0
@@ -1,89 +0,0 @@
1
- /**
2
- * `autoPlayCard` on the inline walkthrough card: the card mounts its player in
3
- * resume mode from 0, muted and autoplaying, instead of waiting for a hover.
4
- */
5
- import { render, screen, waitFor } from '@testing-library/react';
6
- import type { Ref } from 'react';
7
- import { useImperativeHandle, useRef } from 'react';
8
- import { beforeEach, describe, expect, it, vi } from 'vitest';
9
-
10
- import { InlineWalkthroughVideo } from '../walkthrough-video';
11
-
12
- interface Construction {
13
- role: string;
14
- startTime: number | undefined;
15
- autoPlay: boolean | undefined;
16
- startMuted: boolean | undefined;
17
- }
18
-
19
- const constructions: Construction[] = [];
20
-
21
- vi.mock('../video', () => {
22
- const FakeVideo = (props: Record<string, unknown>) => {
23
- const role =
24
- props.layout === 'wide'
25
- ? 'theater'
26
- : props.firstFrameOnly
27
- ? 'facade'
28
- : props.startTime !== undefined
29
- ? 'resume'
30
- : 'preview';
31
- const first = useRef(true);
32
- if (first.current) {
33
- first.current = false;
34
- if (role !== 'facade') {
35
- constructions.push({
36
- role,
37
- startTime: props.startTime as number | undefined,
38
- autoPlay: props.autoPlay as boolean | undefined,
39
- startMuted: props.startMuted as boolean | undefined,
40
- });
41
- }
42
- }
43
- useImperativeHandle(
44
- props.playerHandleRef as Ref<unknown>,
45
- () => ({
46
- getCurrentTime: () => 0,
47
- getDuration: () => 600,
48
- getPaused: () => false,
49
- getMuted: () => true,
50
- play: () => Promise.resolve(),
51
- pause: () => {},
52
- setMuted: () => {},
53
- }),
54
- [],
55
- );
56
- return <div data-role={role} />;
57
- };
58
- return { Video: FakeVideo };
59
- });
60
-
61
- const FILE_VIDEO = { id: 'v1', mainVideoUrl: 'https://example.com/a.m3u8', posterUrl: null, title: 'Demo' };
62
- const YOUTUBE_VIDEO = { id: 'v2', youtubeUrl: 'https://youtu.be/dQw4w9WgXcQ', posterUrl: null, title: 'Demo' };
63
-
64
- describe('walkthrough-video: autoPlayCard', () => {
65
- beforeEach(() => {
66
- constructions.length = 0;
67
- });
68
-
69
- // The card appears after the mount gate (an effect), so every assertion waits
70
- // for it: `findByRole` is what tells "not yet" apart from "never".
71
- it('mounts the card player in resume mode: from 0, muted, autoplaying', async () => {
72
- render(<InlineWalkthroughVideo video={FILE_VIDEO} autoPlayCard />);
73
- await waitFor(() =>
74
- expect(constructions).toEqual([{ role: 'resume', startTime: 0, autoPlay: true, startMuted: true }]),
75
- );
76
- });
77
-
78
- it('without it the card waits for a hover', async () => {
79
- render(<InlineWalkthroughVideo video={FILE_VIDEO} />);
80
- await screen.findByRole('button', { name: /Play Demo Video/ });
81
- expect(constructions.filter(c => c.role === 'resume')).toEqual([]);
82
- });
83
-
84
- it('a YouTube card never plays inline', async () => {
85
- render(<InlineWalkthroughVideo video={YOUTUBE_VIDEO} autoPlayCard />);
86
- await screen.findByRole('button', { name: /Play Demo Video/ });
87
- expect(constructions.filter(c => c.role === 'resume')).toEqual([]);
88
- });
89
- });