Socket
Socket
Sign inDemoInstall

@tamagui/web

Package Overview
Dependencies
Maintainers
2
Versions
799
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tamagui/web - npm Package Compare versions

Comparing version 1.20.7 to 1.21.0

3

dist/cjs/createComponent.js

@@ -75,2 +75,3 @@ "use strict";

};
const HYDRATION_CUTOFF = process.env.TAMAGUI_ANIMATED_PRESENCE_HYDRATION_CUTOFF ? +process.env.TAMAGUI_ANIMATED_PRESENCE_HYDRATION_CUTOFF : 5;
let tamaguiConfig;

@@ -167,3 +168,3 @@ let AnimatedText;

if (willBeAnimated) {
if (++numRenderedOfType[componentName] > (process.env.TAMAGUI_ANIMATED_PRESENCE_HYDRATION_CUTOFF ? +process.env.TAMAGUI_ANIMATED_PRESENCE_HYDRATION_CUTOFF : 5)) {
if (++numRenderedOfType[componentName] > HYDRATION_CUTOFF) {
hasHydrated = true;

@@ -170,0 +171,0 @@ }

@@ -166,3 +166,2 @@ "use strict";

if (process.env.NODE_ENV === "development" && debug) {
delete skipProps.debug;
console.groupCollapsed("getSplitStyles (looping backwards)");

@@ -209,2 +208,3 @@ console.log({ props, staticConfig, shouldDoClasses, state, IS_STATIC, propKeys, styleState, theme: { ...theme } });

function processProp(keyInit, valInit, special = false, fontFamilyOverride = null) {
var _a2, _b2;
if (keyInit === "className")

@@ -233,3 +233,6 @@ return;

if (keyInit in skipProps) {
return;
if (process.env.NODE_ENV === "development" && debug && keyInit === "debug") {
} else {
return;
}
}

@@ -382,3 +385,3 @@ }

const shouldPassProp = !(isMediaOrPseudo || isVariant || keyInit in validStyleProps || keyInit in shorthands);
const isHOCShouldPassThrough = staticConfig.isHOC && (isMediaOrPseudo || isVariant);
const isHOCShouldPassThrough = staticConfig.isHOC && (isMediaOrPseudo || ((_b2 = (_a2 = staticConfig.parentStaticConfig) == null ? void 0 : _a2.variants) == null ? void 0 : _b2[keyInit]));
const shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;

@@ -388,3 +391,9 @@ if (shouldPassThrough) {

console.groupCollapsed(` \u{1F539} pass through ${keyInit}`);
console.log({ valInit, variants, isVariant, shouldPassProp });
console.log({
valInit,
variants,
isVariant,
shouldPassProp,
isHOCShouldPassThrough
});
console.groupEnd();

@@ -646,7 +655,5 @@ }

}
if (!variants || !(key in variants)) {
if (!(key in skipProps)) {
viewProps[key] = val;
usedKeys[key] = 1;
}
if (!isVariant && !(key in skipProps)) {
viewProps[key] = val;
usedKeys[key] = 1;
}

@@ -653,0 +660,0 @@ }

@@ -53,2 +53,3 @@ import { jsx } from "react/jsx-runtime";

};
const HYDRATION_CUTOFF = process.env.TAMAGUI_ANIMATED_PRESENCE_HYDRATION_CUTOFF ? +process.env.TAMAGUI_ANIMATED_PRESENCE_HYDRATION_CUTOFF : 5;
let tamaguiConfig;

@@ -145,3 +146,3 @@ let AnimatedText;

if (willBeAnimated) {
if (++numRenderedOfType[componentName] > (process.env.TAMAGUI_ANIMATED_PRESENCE_HYDRATION_CUTOFF ? +process.env.TAMAGUI_ANIMATED_PRESENCE_HYDRATION_CUTOFF : 5)) {
if (++numRenderedOfType[componentName] > HYDRATION_CUTOFF) {
hasHydrated = true;

@@ -148,0 +149,0 @@ }

@@ -169,3 +169,2 @@ import {

if (process.env.NODE_ENV === "development" && debug) {
delete skipProps.debug;
console.groupCollapsed("getSplitStyles (looping backwards)");

@@ -212,2 +211,3 @@ console.log({ props, staticConfig, shouldDoClasses, state, IS_STATIC, propKeys, styleState, theme: { ...theme } });

function processProp(keyInit, valInit, special = false, fontFamilyOverride = null) {
var _a2, _b2;
if (keyInit === "className")

@@ -236,3 +236,6 @@ return;

if (keyInit in skipProps) {
return;
if (process.env.NODE_ENV === "development" && debug && keyInit === "debug") {
} else {
return;
}
}

@@ -385,3 +388,3 @@ }

const shouldPassProp = !(isMediaOrPseudo || isVariant || keyInit in validStyleProps || keyInit in shorthands);
const isHOCShouldPassThrough = staticConfig.isHOC && (isMediaOrPseudo || isVariant);
const isHOCShouldPassThrough = staticConfig.isHOC && (isMediaOrPseudo || ((_b2 = (_a2 = staticConfig.parentStaticConfig) == null ? void 0 : _a2.variants) == null ? void 0 : _b2[keyInit]));
const shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;

@@ -391,3 +394,9 @@ if (shouldPassThrough) {

console.groupCollapsed(` \u{1F539} pass through ${keyInit}`);
console.log({ valInit, variants, isVariant, shouldPassProp });
console.log({
valInit,
variants,
isVariant,
shouldPassProp,
isHOCShouldPassThrough
});
console.groupEnd();

@@ -649,7 +658,5 @@ }

}
if (!variants || !(key in variants)) {
if (!(key in skipProps)) {
viewProps[key] = val;
usedKeys[key] = 1;
}
if (!isVariant && !(key in skipProps)) {
viewProps[key] = val;
usedKeys[key] = 1;
}

@@ -656,0 +663,0 @@ }

{
"name": "@tamagui/web",
"version": "1.20.7",
"version": "1.21.0",
"source": "src/index.ts",

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

"dependencies": {
"@tamagui/compose-refs": "1.20.7",
"@tamagui/constants": "1.20.7",
"@tamagui/helpers": "1.20.7",
"@tamagui/normalize-css-color": "1.20.7",
"@tamagui/use-did-finish-ssr": "1.20.7",
"@tamagui/use-event": "1.20.7",
"@tamagui/use-force-update": "1.20.7"
"@tamagui/compose-refs": "1.21.0",
"@tamagui/constants": "1.21.0",
"@tamagui/helpers": "1.21.0",
"@tamagui/normalize-css-color": "1.21.0",
"@tamagui/use-did-finish-ssr": "1.21.0",
"@tamagui/use-event": "1.21.0",
"@tamagui/use-force-update": "1.21.0"
},

@@ -43,3 +43,3 @@ "peerDependencies": {

"devDependencies": {
"@tamagui/build": "1.20.7",
"@tamagui/build": "1.21.0",
"@testing-library/react": "^13.4.0",

@@ -46,0 +46,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 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc