@contember/react-utils
Advanced tools
Comparing version 1.3.0-alpha.12 to 1.3.0-alpha.14
@@ -13,3 +13,3 @@ import { px } from "@contember/utilities"; | ||
if (minRows2 !== maxRows2) { | ||
const height = ref.scrollHeight; | ||
const height = ref.scrollHeight - ref.clientHeight + ref.offsetHeight; | ||
let minHeight; | ||
@@ -16,0 +16,0 @@ let maxHeight; |
@@ -1,3 +0,3 @@ | ||
import { createNonNullableContextFactory } from "./context/createNonNullableContextFactory.js"; | ||
import { createOptionalContextFactory } from "./context/createOptionalContextFactory.js"; | ||
import { createRequiredContext } from "./context/createRequiredContext.js"; | ||
import { createContext } from "./context/createContext.js"; | ||
import { isNoopScopedConsole, noopLog, noopLogged, noopScopedConsole } from "./debug-context/Constants.js"; | ||
@@ -61,4 +61,4 @@ import { DebugChildren, ScopedConsoleContext, useScopedConsoleRef } from "./debug-context/Context.js"; | ||
ScopedConsoleContext, | ||
createNonNullableContextFactory, | ||
createOptionalContextFactory, | ||
createContext, | ||
createRequiredContext, | ||
emptyArray, | ||
@@ -65,0 +65,0 @@ emptyObject, |
@@ -1,4 +0,4 @@ | ||
import { createOptionalContextFactory } from "../context/createOptionalContextFactory.js"; | ||
import { createContext } from "../context/createContext.js"; | ||
const DEFAULT_COLOR_SCHEME = "system"; | ||
const [ColorSchemeContext, useColorScheme] = createOptionalContextFactory( | ||
const [ColorSchemeContext, useColorScheme] = createContext( | ||
"Interface.ColorScheme", | ||
@@ -5,0 +5,0 @@ DEFAULT_COLOR_SCHEME |
@@ -13,3 +13,3 @@ import { px } from "@contember/utilities"; | ||
if (minRows2 !== maxRows2) { | ||
const height = ref.scrollHeight; | ||
const height = ref.scrollHeight - ref.clientHeight + ref.offsetHeight; | ||
let minHeight; | ||
@@ -16,0 +16,0 @@ let maxHeight; |
@@ -1,3 +0,3 @@ | ||
import { createNonNullableContextFactory } from "./context/createNonNullableContextFactory.js"; | ||
import { createOptionalContextFactory } from "./context/createOptionalContextFactory.js"; | ||
import { createRequiredContext } from "./context/createRequiredContext.js"; | ||
import { createContext } from "./context/createContext.js"; | ||
import { isNoopScopedConsole, noopLog, noopLogged, noopScopedConsole } from "./debug-context/Constants.js"; | ||
@@ -61,4 +61,4 @@ import { DebugChildren, ScopedConsoleContext, useScopedConsoleRef } from "./debug-context/Context.js"; | ||
ScopedConsoleContext, | ||
createNonNullableContextFactory, | ||
createOptionalContextFactory, | ||
createContext, | ||
createRequiredContext, | ||
emptyArray, | ||
@@ -65,0 +65,0 @@ emptyObject, |
@@ -1,4 +0,4 @@ | ||
import { createOptionalContextFactory } from "../context/createOptionalContextFactory.js"; | ||
import { createContext } from "../context/createContext.js"; | ||
const DEFAULT_COLOR_SCHEME = "system"; | ||
const [ColorSchemeContext, useColorScheme] = createOptionalContextFactory( | ||
const [ColorSchemeContext, useColorScheme] = createContext( | ||
"Interface.ColorScheme", | ||
@@ -5,0 +5,0 @@ DEFAULT_COLOR_SCHEME |
@@ -1,3 +0,3 @@ | ||
export * from './createNonNullableContextFactory'; | ||
export * from './createOptionalContextFactory'; | ||
export * from './createRequiredContext'; | ||
export * from './createContext'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@contember/react-utils", | ||
"license": "Apache-2.0", | ||
"version": "1.3.0-alpha.12", | ||
"version": "1.3.0-alpha.14", | ||
"type": "module", | ||
@@ -41,3 +41,3 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@contember/utilities": "1.3.0-alpha.12", | ||
"@contember/utilities": "1.3.0-alpha.14", | ||
"fast-deep-equal": "^3.1.3" | ||
@@ -44,0 +44,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
export * from './createNonNullableContextFactory' | ||
export * from './createOptionalContextFactory' | ||
export * from './createRequiredContext' | ||
export * from './createContext' |
@@ -21,3 +21,3 @@ import { px } from '@contember/utilities' | ||
if (minRows !== maxRows) { | ||
const height = ref.scrollHeight | ||
const height = ref.scrollHeight - ref.clientHeight + ref.offsetHeight | ||
let minHeight: number | ||
@@ -24,0 +24,0 @@ let maxHeight: number |
@@ -1,2 +0,2 @@ | ||
import { createOptionalContextFactory } from '../context' | ||
import { createContext } from '../context' | ||
@@ -15,5 +15,5 @@ export const DEFAULT_COLOR_SCHEME = 'system' | ||
*/ | ||
export const [ColorSchemeContext, useColorScheme] = createOptionalContextFactory<string>( | ||
export const [ColorSchemeContext, useColorScheme] = createContext<string>( | ||
'Interface.ColorScheme', | ||
DEFAULT_COLOR_SCHEME, | ||
) |
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
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
627915
6734
+ Added@contember/utilities@1.3.0-alpha.14(transitive)
- Removed@contember/utilities@1.3.0-alpha.12(transitive)