@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.
- package/dist/{chunk-ZYVMSJFU.cjs → chunk-4Q6P3VHS.cjs} +17 -17
- package/dist/{chunk-ZYVMSJFU.cjs.map → chunk-4Q6P3VHS.cjs.map} +1 -1
- package/dist/{chunk-HQ2ZYL3V.cjs → chunk-7F73YNDS.cjs} +4 -4
- package/dist/{chunk-HQ2ZYL3V.cjs.map → chunk-7F73YNDS.cjs.map} +1 -1
- package/dist/{chunk-PARUDSVT.js → chunk-BQICLH4C.js} +4 -4
- package/dist/{chunk-JB4ZALJS.cjs → chunk-CHKIZRUP.cjs} +18 -18
- package/dist/{chunk-JB4ZALJS.cjs.map → chunk-CHKIZRUP.cjs.map} +1 -1
- package/dist/{chunk-BVYZHKF6.cjs → chunk-EGQOPBXC.cjs} +3 -3
- package/dist/{chunk-BVYZHKF6.cjs.map → chunk-EGQOPBXC.cjs.map} +1 -1
- package/dist/{chunk-VZMST7BD.cjs → chunk-EJZV4QGU.cjs} +108 -111
- package/dist/chunk-EJZV4QGU.cjs.map +1 -0
- package/dist/{chunk-ZZOZZJPK.js → chunk-EPKQTPNJ.js} +3 -3
- package/dist/{chunk-C4YD5MZV.cjs → chunk-FUEAXTZE.cjs} +4 -4
- package/dist/{chunk-C4YD5MZV.cjs.map → chunk-FUEAXTZE.cjs.map} +1 -1
- package/dist/{chunk-TS4HBJNA.js → chunk-G7HMYIDN.js} +2 -2
- package/dist/{chunk-LD76LMKM.js → chunk-GJTLUW2H.js} +2 -2
- package/dist/{chunk-WYACK3N7.cjs → chunk-HN7KNVKL.cjs} +3 -3
- package/dist/{chunk-WYACK3N7.cjs.map → chunk-HN7KNVKL.cjs.map} +1 -1
- package/dist/{chunk-XJMADFIK.cjs → chunk-L7PO6NSD.cjs} +10 -10
- package/dist/{chunk-XJMADFIK.cjs.map → chunk-L7PO6NSD.cjs.map} +1 -1
- package/dist/{chunk-KB7YLZAC.js → chunk-M76D6OJZ.js} +5 -5
- package/dist/{chunk-SYTU64CK.js → chunk-MMOXFVQN.js} +2 -2
- package/dist/{chunk-GU5JW5MX.cjs → chunk-MRT6DZG5.cjs} +36 -36
- package/dist/{chunk-GU5JW5MX.cjs.map → chunk-MRT6DZG5.cjs.map} +1 -1
- package/dist/{chunk-5X4JS67G.cjs → chunk-N6CI2E7D.cjs} +3 -3
- package/dist/{chunk-5X4JS67G.cjs.map → chunk-N6CI2E7D.cjs.map} +1 -1
- package/dist/{chunk-ZI3E5SSW.js → chunk-NRHEKFPG.js} +2 -2
- package/dist/{chunk-KFWDLZGL.cjs → chunk-OAQROGFN.cjs} +51 -51
- package/dist/{chunk-KFWDLZGL.cjs.map → chunk-OAQROGFN.cjs.map} +1 -1
- package/dist/{chunk-42GR6UIH.cjs → chunk-PP3N5MN4.cjs} +3 -3
- package/dist/{chunk-42GR6UIH.cjs.map → chunk-PP3N5MN4.cjs.map} +1 -1
- package/dist/{chunk-OS3NLEV5.js → chunk-PXWMRXVI.js} +5 -5
- package/dist/{chunk-PSF37OWZ.js → chunk-QO4RASGC.js} +2 -2
- package/dist/{chunk-D3LFYXUM.cjs → chunk-QZMKKQQN.cjs} +13 -13
- package/dist/{chunk-D3LFYXUM.cjs.map → chunk-QZMKKQQN.cjs.map} +1 -1
- package/dist/{chunk-2GL6DFLV.js → chunk-RSOBME56.js} +2 -2
- package/dist/{chunk-Q3MTPDK4.js → chunk-TECYEWVQ.js} +2 -2
- package/dist/{chunk-N24SOKQI.cjs → chunk-TWQWCOJ7.cjs} +17 -17
- package/dist/{chunk-N24SOKQI.cjs.map → chunk-TWQWCOJ7.cjs.map} +1 -1
- package/dist/{chunk-I3QQALKQ.cjs → chunk-UIQQBZLU.cjs} +33 -33
- package/dist/{chunk-I3QQALKQ.cjs.map → chunk-UIQQBZLU.cjs.map} +1 -1
- package/dist/{chunk-LPEFFJXX.js → chunk-UYPICURQ.js} +2 -2
- package/dist/{chunk-HDNMMUGV.js → chunk-XBNO42PI.js} +2 -2
- package/dist/{chunk-J24SZNH4.js → chunk-XYZQXHAX.js} +4 -4
- package/dist/{chunk-CXE6WTBZ.js → chunk-YVJDVVHY.js} +2 -5
- package/dist/{chunk-CXE6WTBZ.js.map → chunk-YVJDVVHY.js.map} +1 -1
- package/dist/components/case-studies/index.cjs +11 -11
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/features/walkthrough-video.d.ts +0 -6
- package/dist/components/features/walkthrough-video.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +49 -49
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +31 -31
- package/dist/components/index.js +12 -12
- package/dist/components/meeting-scheduler/index.cjs +21 -21
- package/dist/components/meeting-scheduler/index.js +1 -1
- package/dist/components/navigation/index.cjs +5 -5
- package/dist/components/navigation/index.js +4 -4
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/src/components/features/walkthrough-video.tsx +1 -12
- package/dist/chunk-VZMST7BD.cjs.map +0 -1
- package/src/components/features/__tests__/walkthrough-video-autoplay-card.test.tsx +0 -89
- /package/dist/{chunk-PARUDSVT.js.map → chunk-BQICLH4C.js.map} +0 -0
- /package/dist/{chunk-ZZOZZJPK.js.map → chunk-EPKQTPNJ.js.map} +0 -0
- /package/dist/{chunk-TS4HBJNA.js.map → chunk-G7HMYIDN.js.map} +0 -0
- /package/dist/{chunk-LD76LMKM.js.map → chunk-GJTLUW2H.js.map} +0 -0
- /package/dist/{chunk-KB7YLZAC.js.map → chunk-M76D6OJZ.js.map} +0 -0
- /package/dist/{chunk-SYTU64CK.js.map → chunk-MMOXFVQN.js.map} +0 -0
- /package/dist/{chunk-ZI3E5SSW.js.map → chunk-NRHEKFPG.js.map} +0 -0
- /package/dist/{chunk-OS3NLEV5.js.map → chunk-PXWMRXVI.js.map} +0 -0
- /package/dist/{chunk-PSF37OWZ.js.map → chunk-QO4RASGC.js.map} +0 -0
- /package/dist/{chunk-2GL6DFLV.js.map → chunk-RSOBME56.js.map} +0 -0
- /package/dist/{chunk-Q3MTPDK4.js.map → chunk-TECYEWVQ.js.map} +0 -0
- /package/dist/{chunk-LPEFFJXX.js.map → chunk-UYPICURQ.js.map} +0 -0
- /package/dist/{chunk-HDNMMUGV.js.map → chunk-XBNO42PI.js.map} +0 -0
- /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
|
-
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|