Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contember/react-utils

Package Overview
Dependencies
Maintainers
5
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contember/react-utils - npm Package Compare versions

Comparing version 1.3.0-alpha.12 to 1.3.0-alpha.14

dist/development/context/createContext.cjs

2

dist/development/hooks/useAutoHeightTextArea.js

@@ -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

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