framework7-react
Advanced tools
Comparing version 8.0.0-beta.6 to 8.0.0-beta.7
@@ -12,2 +12,3 @@ | ||
photos ?: Array<any>; | ||
thumbs ?: Array<any>; | ||
exposition ?: boolean; | ||
@@ -23,2 +24,3 @@ expositionHideCaptions ?: boolean; | ||
pageBackLinkText ?: string; | ||
popupCloseLinkIcon ?: boolean; | ||
popupCloseLinkText ?: string; | ||
@@ -41,2 +43,3 @@ navbarOfText ?: string; | ||
renderStandalone ?: Function; | ||
renderThumb?: Function; | ||
onPhotoBrowserOpen ?: (...args: any[]) => void; | ||
@@ -43,0 +46,0 @@ onPhotoBrowserClose ?: (...args: any[]) => void; |
@@ -15,2 +15,3 @@ import { forwardRef, useRef, useImperativeHandle } from 'react'; | ||
photos, | ||
thumbs, | ||
exposition = true, | ||
@@ -26,2 +27,3 @@ expositionHideCaptions = false, | ||
pageBackLinkText, | ||
popupCloseLinkIcon, | ||
popupCloseLinkText, | ||
@@ -43,3 +45,4 @@ navbarOfText, | ||
renderPopup, | ||
renderStandalone | ||
renderStandalone, | ||
renderThumb | ||
} = props; | ||
@@ -77,2 +80,10 @@ const open = index => { | ||
}); | ||
watchProp(thumbs, newValue => { | ||
const pb = f7PhotoBrowser.current; | ||
if (!pb) return; | ||
pb.params.thumbs = newValue; | ||
if (pb.opened && pb.thumbsSwiper) { | ||
pb.thumbsSwiper.update(); | ||
} | ||
}); | ||
const onMount = () => { | ||
@@ -87,2 +98,3 @@ if (!init) return; | ||
photos, | ||
thumbs, | ||
exposition, | ||
@@ -99,2 +111,3 @@ expositionHideCaptions, | ||
popupCloseLinkText, | ||
popupCloseLinkIcon, | ||
navbarOfText, | ||
@@ -115,3 +128,4 @@ navbarShowCount, | ||
renderPopup, | ||
renderStandalone | ||
renderStandalone, | ||
renderThumb | ||
}; | ||
@@ -118,0 +132,0 @@ } |
/** | ||
* Framework7 React 8.0.0-beta.6 | ||
* Framework7 React 8.0.0-beta.7 | ||
* Build full featured iOS & Android apps using Framework7 & React | ||
@@ -10,3 +10,3 @@ * https://framework7.io/react/ | ||
* | ||
* Released on: March 24, 2023 | ||
* Released on: March 27, 2023 | ||
*/ | ||
@@ -13,0 +13,0 @@ import Framework7React from './shared/plugin.js'; |
{ | ||
"name": "framework7-react", | ||
"version": "8.0.0-beta.6", | ||
"version": "8.0.0-beta.7", | ||
"description": "Build full featured iOS & Android apps using Framework7 & React", | ||
@@ -50,3 +50,3 @@ "type": "module", | ||
}, | ||
"releaseDate": "March 24, 2023" | ||
"releaseDate": "March 27, 2023" | ||
} |
402219
11802