New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@webiny/react-composition

Package Overview
Dependencies
Maintainers
1
Versions
326
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webiny/react-composition - npm Package Compare versions

Comparing version 5.29.0 to 5.30.0-beta.0

2

Compose.d.ts
import React from "react";
import { HigherOrderComponent } from "./Context";
export interface ComposableFC<TProps> extends React.FC<TProps> {
export interface ComposableFC<TProps = unknown> extends React.FC<TProps> {
original: React.FC<TProps>;

@@ -5,0 +5,0 @@ originalName: string;

@@ -1,2 +0,2 @@

import React, { FC, ComponentType } from "react";
import React, { FC, ComponentType, PropsWithChildren } from "react";
export declare function compose(...fns: HigherOrderComponent[]): (Base: FC<unknown>) => FC<unknown>;

@@ -18,3 +18,3 @@ interface ComposedComponent {

*/
export interface HigherOrderComponent<TInputProps = any, TOutputProps = TInputProps> {
export interface HigherOrderComponent<TInputProps = PropsWithChildren<any>, TOutputProps = TInputProps> {
(Component: FC<TInputProps>): FC<TOutputProps>;

@@ -30,3 +30,3 @@ }

export declare const CompositionProvider: React.FC;
export declare function useComponent(Component: ComponentType<any>): React.ComponentType<any>;
export declare function useComponent(Component: ComponentType<any>): React.ComponentClass<unknown, any> | React.FunctionComponent<unknown>;
/**

@@ -33,0 +33,0 @@ * This hook will throw an error if composition context doesn't exist.

@@ -14,2 +14,4 @@ "use strict";

var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _react = _interopRequireWildcard(require("react"));

@@ -35,3 +37,3 @@

var createEmptyRenderer = function createEmptyRenderer(name) {
return function EmptyRenderer() {
return (0, _defineProperty2.default)({}, name, function () {
(0, _react.useEffect)(function () {

@@ -48,3 +50,3 @@ // We need to debounce the log, as it sometimes only requires a single tick to get the new

return null;
};
})[name];
};

@@ -51,0 +53,0 @@

{
"name": "@webiny/react-composition",
"version": "5.29.0",
"version": "5.30.0-beta.0",
"main": "index.js",

@@ -17,3 +17,3 @@ "repository": {

"dependencies": {
"@babel/runtime": "7.18.3",
"@babel/runtime": "7.18.6",
"@types/react": "16.14.2",

@@ -29,6 +29,6 @@ "lodash.debounce": "4.0.8",

"@babel/preset-typescript": "^7.16.0",
"@webiny/cli": "^5.29.0",
"@webiny/project-utils": "^5.29.0",
"@webiny/cli": "^5.30.0-beta.0",
"@webiny/project-utils": "^5.30.0-beta.0",
"ttypescript": "^1.5.13",
"typescript": "4.5.5"
"typescript": "4.7.4"
},

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

},
"gitHead": "8cf3d623d56105ad5a4bacbcb4140959e11477e6"
"gitHead": "622d120f5637e3ca807b8bfc9ed2cd034ac85fb7"
}

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