Improve WeChat MP replies and ship MindSpace/H5 production updates.
Add WeChat service account routing with sync acks, connectivity tests, and context isolation; document deploy runbooks; and bundle related MindSpace, voice, Plaza, and server gateway changes for production rollout. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -21,6 +21,7 @@ export function MindSpacePageDraftPreviewFrame({
|
||||
maxHeight = 12000,
|
||||
className = 'mindspace-page-preview-frame',
|
||||
changeHighlight = null,
|
||||
onFrameReady,
|
||||
}: {
|
||||
pageId: string;
|
||||
title: string;
|
||||
@@ -33,6 +34,7 @@ export function MindSpacePageDraftPreviewFrame({
|
||||
maxHeight?: number;
|
||||
className?: string;
|
||||
changeHighlight?: MindSpacePreviewChangeHighlight | null;
|
||||
onFrameReady?: (iframe: HTMLIFrameElement | null) => void;
|
||||
}) {
|
||||
const iframeRef = useRef<HTMLIFrameElement>(null);
|
||||
const [srcdoc, setSrcdoc] = useState('');
|
||||
@@ -73,6 +75,13 @@ export function MindSpacePageDraftPreviewFrame({
|
||||
setHeight(minHeight);
|
||||
}, [srcdoc, reloadKey, minHeight]);
|
||||
|
||||
useEffect(() => {
|
||||
onFrameReady?.(iframeRef.current);
|
||||
return () => {
|
||||
onFrameReady?.(null);
|
||||
};
|
||||
}, [onFrameReady, srcdoc, reloadKey]);
|
||||
|
||||
useEffect(() => {
|
||||
const iframe = iframeRef.current;
|
||||
if (!iframe || !srcdoc) return;
|
||||
|
||||
Reference in New Issue
Block a user