@linktr.ee/linkapp 0.0.25 → 0.0.26
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.
|
@@ -68,13 +68,13 @@ export default function Preview() {
|
|
|
68
68
|
[]
|
|
69
69
|
);
|
|
70
70
|
|
|
71
|
-
// Handle postMessage from featured iframe for
|
|
71
|
+
// Handle postMessage from featured iframe for EXPAND_LINK_APP
|
|
72
72
|
const handleMessage = useCallback((event: MessageEvent) => {
|
|
73
73
|
if (
|
|
74
74
|
event.data &&
|
|
75
75
|
typeof event.data === 'object' &&
|
|
76
76
|
event.data.source === 'linkapp' &&
|
|
77
|
-
event.data.type === '
|
|
77
|
+
event.data.type === 'EXPAND_LINK_APP'
|
|
78
78
|
) {
|
|
79
79
|
setIsPopupOpen(true);
|
|
80
80
|
}
|
|
@@ -233,7 +233,7 @@ export default function Preview() {
|
|
|
233
233
|
</div>
|
|
234
234
|
</Tabs>
|
|
235
235
|
|
|
236
|
-
{/* Popup Dialog for
|
|
236
|
+
{/* Popup Dialog for EXPAND_LINK_APP message */}
|
|
237
237
|
<Dialog open={isPopupOpen} onOpenChange={setIsPopupOpen} modal={false}>
|
|
238
238
|
<DialogContent
|
|
239
239
|
className="h-[calc(100dvh-2rem)] max-w-[608px] md:min-h-[25vh] md:h-[80%] md:max-h-[900px] overflow-auto"
|