Comparing version 1.5.3-rc.1 to 1.5.3-rc.2
@@ -16,8 +16,10 @@ "use strict"; | ||
var handleResize = function handleResize(entries) { | ||
var _entries$; | ||
var _entries$0$borderBoxS; | ||
if (entries && (_entries$ = entries[0]) != null && _entries$.borderBoxSize) { | ||
var _entries$0$borderBoxS; | ||
if (((_entries$0$borderBoxS = entries[0].borderBoxSize) == null ? void 0 : _entries$0$borderBoxS.length) > 0) { | ||
var _entries$0$borderBoxS2; | ||
setSize((_entries$0$borderBoxS = entries[0].borderBoxSize[0]) == null ? void 0 : _entries$0$borderBoxS.blockSize); | ||
setSize((_entries$0$borderBoxS2 = entries[0].borderBoxSize[0]) == null ? void 0 : _entries$0$borderBoxS2.blockSize); | ||
} else { | ||
setSize(entries[0].contentRect.height); | ||
} | ||
@@ -24,0 +26,0 @@ }; |
@@ -11,8 +11,10 @@ import { useLayoutEffect, useState } from "react"; | ||
var handleResize = function handleResize(entries) { | ||
var _entries$; | ||
var _entries$0$borderBoxS; | ||
if (entries && (_entries$ = entries[0]) != null && _entries$.borderBoxSize) { | ||
var _entries$0$borderBoxS; | ||
if (((_entries$0$borderBoxS = entries[0].borderBoxSize) == null ? void 0 : _entries$0$borderBoxS.length) > 0) { | ||
var _entries$0$borderBoxS2; | ||
setSize((_entries$0$borderBoxS = entries[0].borderBoxSize[0]) == null ? void 0 : _entries$0$borderBoxS.blockSize); | ||
setSize((_entries$0$borderBoxS2 = entries[0].borderBoxSize[0]) == null ? void 0 : _entries$0$borderBoxS2.blockSize); | ||
} else { | ||
setSize(entries[0].contentRect.height); | ||
} | ||
@@ -19,0 +21,0 @@ }; |
/** | ||
* Zaui 1.5.3-rc.1 | ||
* Zaui 1.5.3-rc.2 | ||
* Zalo Mini App framework | ||
@@ -4,0 +4,0 @@ * undefined |
{ | ||
"name": "zmp-ui", | ||
"version": "1.5.3-rc.1", | ||
"version": "1.5.3-rc.2", | ||
"description": "Zalo Mini App framework ", | ||
@@ -5,0 +5,0 @@ "main": "esm/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1218537
23831