@tamagui/web
Advanced tools
Comparing version 1.105.2 to 1.105.3
@@ -20,3 +20,3 @@ var __defProp = Object.defineProperty; | ||
module.exports = __toCommonJS(expandStyle_exports); | ||
var import_constants = require("@tamagui/constants"), import_webToNativeProps = require("../constants/webToNativeProps"), import_config = require("../config"); | ||
var import_constants = require("@tamagui/constants"), import_config = require("../config"), import_webToNativeProps = require("../constants/webToNativeProps"); | ||
const neg1Flex = [ | ||
@@ -32,3 +32,3 @@ ["flexGrow", 0], | ||
["flexShrink", 1], | ||
["flexBasis", (0, import_config.getConfig)().settings.styleCompat === "react-native" ? 0 : "auto"] | ||
["flexBasis", (0, import_config.getSetting)("styleCompat") === "react-native" ? 0 : "auto"] | ||
]; | ||
@@ -35,0 +35,0 @@ switch (key) { |
@@ -21,3 +21,3 @@ "use strict"; | ||
module.exports = __toCommonJS(expandStyle_exports); | ||
var import_constants = require("@tamagui/constants"), import_webToNativeProps = require("../constants/webToNativeProps"), import_config = require("../config"); | ||
var import_constants = require("@tamagui/constants"), import_config = require("../config"), import_webToNativeProps = require("../constants/webToNativeProps"); | ||
function _define_property(obj, key, value) { | ||
@@ -24,0 +24,0 @@ return key in obj ? Object.defineProperty(obj, key, { |
@@ -124,6 +124,3 @@ var __defProp = Object.defineProperty; | ||
const { enabled, keys, prev = initialState } = componentState; | ||
if (enabled === !1) | ||
return prev; | ||
const testKeys = keys ?? (enabled && keys) ?? null; | ||
return !testKeys || Object.keys(testKeys).every((key) => mediaState[key] === prev[key]) ? prev : (componentState.prev = mediaState, mediaState); | ||
return enabled === !1 || !keys || Object.keys(keys).every((key) => mediaState[key] === prev[key]) ? prev : (componentState.prev = mediaState, mediaState); | ||
}; | ||
@@ -130,0 +127,0 @@ let state; |
@@ -210,3 +210,3 @@ "use strict"; | ||
return prev; | ||
var _ref, testKeys = (_ref = (keys != null || enabled) && keys) !== null && _ref !== void 0 ? _ref : null, hasntUpdated = !testKeys || Object.keys(testKeys).every(function(key) { | ||
var hasntUpdated = !keys || Object.keys(keys).every(function(key) { | ||
return mediaState[key] === prev[key]; | ||
@@ -213,0 +213,0 @@ }); |
import { isWeb } from "@tamagui/constants"; | ||
import { getSetting } from "../config"; | ||
import { | ||
@@ -6,3 +7,2 @@ webToNativeDynamicExpansion, | ||
} from "../constants/webToNativeProps"; | ||
import { getConfig } from "../config"; | ||
const neg1Flex = [ | ||
@@ -18,3 +18,3 @@ ["flexGrow", 0], | ||
["flexShrink", 1], | ||
["flexBasis", getConfig().settings.styleCompat === "react-native" ? 0 : "auto"] | ||
["flexBasis", getSetting("styleCompat") === "react-native" ? 0 : "auto"] | ||
]; | ||
@@ -21,0 +21,0 @@ switch (key) { |
import { isAndroid, isWeb } from "@tamagui/constants"; | ||
import "../config"; | ||
import { webToNativeDynamicExpansion, webToNativeExpansion } from "../constants/webToNativeProps"; | ||
import "../config"; | ||
function _define_property(obj, key, value) { | ||
@@ -5,0 +5,0 @@ return key in obj ? Object.defineProperty(obj, key, { |
@@ -95,6 +95,3 @@ import { isServer, isWeb, useIsomorphicLayoutEffect } from "@tamagui/constants"; | ||
const { enabled, keys, prev = initialState } = componentState; | ||
if (enabled === !1) | ||
return prev; | ||
const testKeys = keys ?? (enabled && keys) ?? null; | ||
return !testKeys || Object.keys(testKeys).every((key) => mediaState[key] === prev[key]) ? prev : (componentState.prev = mediaState, mediaState); | ||
return enabled === !1 || !keys || Object.keys(keys).every((key) => mediaState[key] === prev[key]) ? prev : (componentState.prev = mediaState, mediaState); | ||
}; | ||
@@ -101,0 +98,0 @@ let state; |
@@ -180,3 +180,3 @@ import { isServer, isWeb, useIsomorphicLayoutEffect } from "@tamagui/constants"; | ||
return prev; | ||
var _ref, testKeys = (_ref = (keys != null || enabled) && keys) !== null && _ref !== void 0 ? _ref : null, hasntUpdated = !testKeys || Object.keys(testKeys).every(function(key) { | ||
var hasntUpdated = !keys || Object.keys(keys).every(function(key) { | ||
return mediaState[key] === prev[key]; | ||
@@ -183,0 +183,0 @@ }); |
{ | ||
"name": "@tamagui/web", | ||
"version": "1.105.2", | ||
"version": "1.105.3", | ||
"source": "src/index.ts", | ||
@@ -30,14 +30,14 @@ "main": "dist/cjs", | ||
"dependencies": { | ||
"@tamagui/compose-refs": "1.105.2", | ||
"@tamagui/constants": "1.105.2", | ||
"@tamagui/helpers": "1.105.2", | ||
"@tamagui/normalize-css-color": "1.105.2", | ||
"@tamagui/timer": "1.105.2", | ||
"@tamagui/types": "1.105.2", | ||
"@tamagui/use-did-finish-ssr": "1.105.2", | ||
"@tamagui/use-event": "1.105.2", | ||
"@tamagui/use-force-update": "1.105.2" | ||
"@tamagui/compose-refs": "1.105.3", | ||
"@tamagui/constants": "1.105.3", | ||
"@tamagui/helpers": "1.105.3", | ||
"@tamagui/normalize-css-color": "1.105.3", | ||
"@tamagui/timer": "1.105.3", | ||
"@tamagui/types": "1.105.3", | ||
"@tamagui/use-did-finish-ssr": "1.105.3", | ||
"@tamagui/use-event": "1.105.3", | ||
"@tamagui/use-force-update": "1.105.3" | ||
}, | ||
"devDependencies": { | ||
"@tamagui/build": "1.105.2", | ||
"@tamagui/build": "1.105.3", | ||
"@testing-library/react": "^14.0.0", | ||
@@ -44,0 +44,0 @@ "csstype": "^3.0.10", |
@@ -8,3 +8,3 @@ /** | ||
import type { PropMappedValue } from '../types' | ||
import { getSetting } from '../config' | ||
import { | ||
@@ -14,3 +14,3 @@ webToNativeDynamicExpansion, | ||
} from '../constants/webToNativeProps' | ||
import { getConfig } from '../config' | ||
import type { PropMappedValue } from '../types' | ||
@@ -32,3 +32,3 @@ const neg1Flex = [ | ||
['flexShrink', 1], | ||
['flexBasis', getConfig().settings.styleCompat === 'react-native' ? 0 : 'auto'], | ||
['flexBasis', getSetting('styleCompat') === 'react-native' ? 0 : 'auto'], | ||
] | ||
@@ -35,0 +35,0 @@ } |
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
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
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
2949537
47018
+ Added@tamagui/compose-refs@1.105.3(transitive)
+ Added@tamagui/constants@1.105.3(transitive)
+ Added@tamagui/helpers@1.105.3(transitive)
+ Added@tamagui/normalize-css-color@1.105.3(transitive)
+ Added@tamagui/simple-hash@1.105.3(transitive)
+ Added@tamagui/timer@1.105.3(transitive)
+ Added@tamagui/types@1.105.3(transitive)
+ Added@tamagui/use-did-finish-ssr@1.105.3(transitive)
+ Added@tamagui/use-event@1.105.3(transitive)
+ Added@tamagui/use-force-update@1.105.3(transitive)
- Removed@tamagui/compose-refs@1.105.2(transitive)
- Removed@tamagui/constants@1.105.2(transitive)
- Removed@tamagui/helpers@1.105.2(transitive)
- Removed@tamagui/normalize-css-color@1.105.2(transitive)
- Removed@tamagui/simple-hash@1.105.2(transitive)
- Removed@tamagui/timer@1.105.2(transitive)
- Removed@tamagui/types@1.105.2(transitive)
- Removed@tamagui/use-did-finish-ssr@1.105.2(transitive)
- Removed@tamagui/use-event@1.105.2(transitive)
- Removed@tamagui/use-force-update@1.105.2(transitive)
Updated@tamagui/constants@1.105.3
Updated@tamagui/helpers@1.105.3
Updated@tamagui/timer@1.105.3
Updated@tamagui/types@1.105.3
Updated@tamagui/use-event@1.105.3