framework7-react
Advanced tools
Comparing version 8.2.0 to 8.3.0
@@ -27,2 +27,5 @@ | ||
containerEl ?: string | object; | ||
breakpoints ?: number[]; | ||
backdropBreakpoint ?: number; | ||
pushBreakpoint ?: number; | ||
color?: string; | ||
@@ -29,0 +32,0 @@ colorTheme?: string; |
@@ -32,3 +32,6 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
swipeHandler, | ||
containerEl | ||
containerEl, | ||
breakpoints, | ||
backdropBreakpoint, | ||
pushBreakpoint | ||
} = props; | ||
@@ -39,2 +42,5 @@ const extraAttrs = getExtraAttrs(props); | ||
const isClosing = useRef(false); | ||
const onBreakpoint = (instance, breakpoint) => { | ||
emit(props, 'sheetBreakpoint', instance, breakpoint); | ||
}; | ||
const onStepProgress = (instance, progress) => { | ||
@@ -79,2 +85,3 @@ emit(props, 'sheetStepProgress', instance, progress); | ||
f7Sheet.current[method]('stepProgress', onStepProgress); | ||
f7Sheet.current[method]('breakpoint', onBreakpoint); | ||
}; | ||
@@ -84,3 +91,6 @@ const onMount = () => { | ||
const sheetParams = { | ||
el: elRef.current | ||
el: elRef.current, | ||
breakpoints, | ||
backdropBreakpoint, | ||
pushBreakpoint | ||
}; | ||
@@ -97,2 +107,5 @@ if ('animate' in props && typeof animate !== 'undefined') sheetParams.animate = animate; | ||
if ('containerEl' in props) sheetParams.containerEl = containerEl; | ||
if ('breakpoints' in props) sheetParams.breakpoints = breakpoints; | ||
if ('backdropBreakpoint' in props) sheetParams.backdropBreakpoint = backdropBreakpoint; | ||
if ('pushBreakpoint' in props) sheetParams.pushBreakpoint = pushBreakpoint; | ||
f7ready(() => { | ||
@@ -99,0 +112,0 @@ f7Sheet.current = f7.sheet.create(sheetParams); |
/** | ||
* Framework7 React 8.2.0 | ||
* Framework7 React 8.3.0 | ||
* Build full featured iOS & Android apps using Framework7 & React | ||
@@ -10,3 +10,3 @@ * https://framework7.io/react/ | ||
* | ||
* Released on: July 6, 2023 | ||
* Released on: August 18, 2023 | ||
*/ | ||
@@ -13,0 +13,0 @@ import Framework7React from './shared/plugin.js'; |
{ | ||
"name": "framework7-react", | ||
"version": "8.2.0", | ||
"version": "8.3.0", | ||
"description": "Build full featured iOS & Android apps using Framework7 & React", | ||
@@ -50,3 +50,3 @@ "type": "module", | ||
}, | ||
"releaseDate": "July 6, 2023" | ||
"releaseDate": "August 18, 2023" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
402929
11820