Socket
Socket
Sign inDemoInstall

@tamagui/core

Package Overview
Dependencies
4
Maintainers
1
Versions
1082
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.99.1 to 1.100.0

dist/native.native.js

3

dist/cjs/helpers/getRect.js

@@ -23,4 +23,3 @@ var __defProp = Object.defineProperty;

const rect = (0, import_getBoundingClientRect.getBoundingClientRect)(node);
if (!rect)
return;
if (!rect) return;
const { x, y, top, left } = rect;

@@ -27,0 +26,0 @@ return { x, y, width: node.offsetWidth, height: node.offsetHeight, top, left };

@@ -28,4 +28,3 @@ var __defProp = Object.defineProperty;

const onLayout = LayoutHandlers.get(target);
if (typeof onLayout != "function")
return;
if (typeof onLayout != "function") return;
measureElement(target).then((event) => {

@@ -89,12 +88,9 @@ onLayout(event);

(0, import_constants.useIsomorphicLayoutEffect)(() => {
if (!onLayout)
return;
if (!onLayout) return;
const node = ref.current;
node && LayoutHandlers.set(node, onLayout);
}, [ref, onLayout]), (0, import_constants.useIsomorphicLayoutEffect)(() => {
if (!resizeObserver)
return;
if (!resizeObserver) return;
const node = ref.current;
if (!node || !LayoutHandlers.has(node))
return;
if (!node || !LayoutHandlers.has(node)) return;
const onResize = () => {

@@ -101,0 +97,0 @@ measureElement(node).then(onLayout);

@@ -26,9 +26,7 @@ "use strict";

(len == null || len > arr.length) && (len = arr.length);
for (var i = 0, arr2 = new Array(len); i < len; i++)
arr2[i] = arr[i];
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _array_with_holes(arr) {
if (Array.isArray(arr))
return arr;
if (Array.isArray(arr)) return arr;
}

@@ -75,4 +73,3 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {

} finally {
if (_d)
throw _e;
if (_d) throw _e;
}

@@ -95,9 +92,6 @@ }

if (o) {
if (typeof o == "string")
return _array_like_to_array(o, minLen);
if (typeof o == "string") return _array_like_to_array(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
return Array.from(n);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
return _array_like_to_array(o, minLen);
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
}

@@ -109,4 +103,3 @@ }

sent: function() {
if (t[0] & 1)
throw t[1];
if (t[0] & 1) throw t[1];
return t[1];

@@ -133,60 +126,56 @@ },

function step(op) {
if (f)
throw new TypeError("Generator is already executing.");
for (; _; )
try {
if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
return t;
switch (y = 0, t && (op = [
op[0] & 2,
t.value
]), op[0]) {
case 0:
case 1:
t = op;
if (f) throw new TypeError("Generator is already executing.");
for (; _; ) try {
if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
switch (y = 0, t && (op = [
op[0] & 2,
t.value
]), op[0]) {
case 0:
case 1:
t = op;
break;
case 4:
return _.label++, {
value: op[1],
done: !1
};
case 5:
_.label++, y = op[1], op = [
0
];
continue;
case 7:
op = _.ops.pop(), _.trys.pop();
continue;
default:
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
_.label = op[1];
break;
case 4:
return _.label++, {
value: op[1],
done: !1
};
case 5:
_.label++, y = op[1], op = [
0
];
continue;
case 7:
op = _.ops.pop(), _.trys.pop();
continue;
default:
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
_.label = op[1];
break;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1], t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2], _.ops.push(op);
break;
}
t[2] && _.ops.pop(), _.trys.pop();
continue;
}
op = body.call(thisArg, _);
} catch (e) {
op = [
6,
e
], y = 0;
} finally {
f = t = 0;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1], t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2], _.ops.push(op);
break;
}
t[2] && _.ops.pop(), _.trys.pop();
continue;
}
if (op[0] & 5)
throw op[1];
op = body.call(thisArg, _);
} catch (e) {
op = [
6,
e
], y = 0;
} finally {
f = t = 0;
}
if (op[0] & 5) throw op[1];
return {

@@ -204,6 +193,5 @@ value: op[0] ? op[1] : void 0,

var target = _step.value.target, onLayout = LayoutHandlers.get(target);
if (typeof onLayout != "function")
return {
v: void 0
};
if (typeof onLayout != "function") return {
v: void 0
};
measureElement(target).then(function(event) {

@@ -214,4 +202,3 @@ onLayout(event);

var _ret = _loop();
if (_type_of(_ret) === "object")
return _ret.v;
if (_type_of(_ret) === "object") return _ret.v;
}

@@ -218,0 +205,0 @@ } catch (err) {

import { getBoundingClientRect } from "./getBoundingClientRect";
const getRect = (node) => {
const rect = getBoundingClientRect(node);
if (!rect)
return;
if (!rect) return;
const { x, y, top, left } = rect;

@@ -7,0 +6,0 @@ return { x, y, width: node.offsetWidth, height: node.offsetHeight, top, left };

@@ -8,4 +8,3 @@ import { useIsomorphicLayoutEffect } from "@tamagui/constants";

const onLayout = LayoutHandlers.get(target);
if (typeof onLayout != "function")
return;
if (typeof onLayout != "function") return;
measureElement(target).then((event) => {

@@ -69,12 +68,9 @@ onLayout(event);

useIsomorphicLayoutEffect(() => {
if (!onLayout)
return;
if (!onLayout) return;
const node = ref.current;
node && LayoutHandlers.set(node, onLayout);
}, [ref, onLayout]), useIsomorphicLayoutEffect(() => {
if (!resizeObserver)
return;
if (!resizeObserver) return;
const node = ref.current;
if (!node || !LayoutHandlers.has(node))
return;
if (!node || !LayoutHandlers.has(node)) return;
const onResize = () => {

@@ -81,0 +77,0 @@ measureElement(node).then(onLayout);

@@ -5,9 +5,7 @@ import { useIsomorphicLayoutEffect } from "@tamagui/constants";

(len == null || len > arr.length) && (len = arr.length);
for (var i = 0, arr2 = new Array(len); i < len; i++)
arr2[i] = arr[i];
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _array_with_holes(arr) {
if (Array.isArray(arr))
return arr;
if (Array.isArray(arr)) return arr;
}

@@ -54,4 +52,3 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {

} finally {
if (_d)
throw _e;
if (_d) throw _e;
}

@@ -74,9 +71,6 @@ }

if (o) {
if (typeof o == "string")
return _array_like_to_array(o, minLen);
if (typeof o == "string") return _array_like_to_array(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
return Array.from(n);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
return _array_like_to_array(o, minLen);
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(n);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
}

@@ -88,4 +82,3 @@ }

sent: function() {
if (t[0] & 1)
throw t[1];
if (t[0] & 1) throw t[1];
return t[1];

@@ -112,60 +105,56 @@ },

function step(op) {
if (f)
throw new TypeError("Generator is already executing.");
for (; _; )
try {
if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
return t;
switch (y = 0, t && (op = [
op[0] & 2,
t.value
]), op[0]) {
case 0:
case 1:
t = op;
if (f) throw new TypeError("Generator is already executing.");
for (; _; ) try {
if (f = 1, y && (t = op[0] & 2 ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
switch (y = 0, t && (op = [
op[0] & 2,
t.value
]), op[0]) {
case 0:
case 1:
t = op;
break;
case 4:
return _.label++, {
value: op[1],
done: !1
};
case 5:
_.label++, y = op[1], op = [
0
];
continue;
case 7:
op = _.ops.pop(), _.trys.pop();
continue;
default:
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
_.label = op[1];
break;
case 4:
return _.label++, {
value: op[1],
done: !1
};
case 5:
_.label++, y = op[1], op = [
0
];
continue;
case 7:
op = _.ops.pop(), _.trys.pop();
continue;
default:
if (t = _.trys, !(t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
_.label = op[1];
break;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1], t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2], _.ops.push(op);
break;
}
t[2] && _.ops.pop(), _.trys.pop();
continue;
}
op = body.call(thisArg, _);
} catch (e) {
op = [
6,
e
], y = 0;
} finally {
f = t = 0;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1], t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2], _.ops.push(op);
break;
}
t[2] && _.ops.pop(), _.trys.pop();
continue;
}
if (op[0] & 5)
throw op[1];
op = body.call(thisArg, _);
} catch (e) {
op = [
6,
e
], y = 0;
} finally {
f = t = 0;
}
if (op[0] & 5) throw op[1];
return {

@@ -183,6 +172,5 @@ value: op[0] ? op[1] : void 0,

var target = _step.value.target, onLayout = LayoutHandlers.get(target);
if (typeof onLayout != "function")
return {
v: void 0
};
if (typeof onLayout != "function") return {
v: void 0
};
measureElement(target).then(function(event) {

@@ -193,4 +181,3 @@ onLayout(event);

var _ret = _loop();
if (_type_of(_ret) === "object")
return _ret.v;
if (_type_of(_ret) === "object") return _ret.v;
}

@@ -197,0 +184,0 @@ } catch (err) {

{
"name": "@tamagui/core",
"version": "1.99.1",
"version": "1.100.0",
"source": "src/index.tsx",

@@ -38,9 +38,9 @@ "main": "dist/cjs",

"dependencies": {
"@tamagui/react-native-use-pressable": "1.99.1",
"@tamagui/react-native-use-responder-events": "1.99.1",
"@tamagui/use-event": "1.99.1",
"@tamagui/web": "1.99.1"
"@tamagui/react-native-use-pressable": "1.100.0",
"@tamagui/react-native-use-responder-events": "1.100.0",
"@tamagui/use-event": "1.100.0",
"@tamagui/web": "1.100.0"
},
"devDependencies": {
"@tamagui/build": "1.99.1",
"@tamagui/build": "1.100.0",
"@testing-library/react": "^14.0.0",

@@ -47,0 +47,0 @@ "csstype": "^3.0.10",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc