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

@clds/component-enhancer

Package Overview
Dependencies
Maintainers
0
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clds/component-enhancer - npm Package Compare versions

Comparing version 0.51.0 to 0.51.1

4

dist/textWrap.d.ts
import React, { ComponentProps, FC, ReactNode } from 'react';
export declare const useWrapTextChildren: (children?: ReactNode) => (number | Iterable<React.ReactNode> | React.JSX.Element)[];
export declare const useWrapTextChildren: (children?: ReactNode) => (number | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element)[];
export declare const WrapTextChildren: FC<{
children: ReactNode;
}>;
export declare const withTextWrap: <Type extends React.ComponentType<{}>>(WrappedComponent: string | Type) => (props: React.ComponentProps<Type>) => React.JSX.Element;
export declare const withTextWrap: <Type extends React.ComponentType<{}>>(WrappedComponent: string | Type) => (props: React.ComponentProps<Type>) => import("react/jsx-runtime").JSX.Element;
export declare const TextWrap: import("styled-components").StyledComponent<"span", any, {}, never>;

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

import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
import React, { isValidElement, useMemo, } from 'react';

@@ -18,11 +19,10 @@ import { default as styled } from 'styled-components';

// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
return typeof child === 'string' || isFormattedMessage ? (React.createElement(TextWrap, { key: `${child}-${idx}` }, child)) : (child);
return typeof child === 'string' || isFormattedMessage ? (_jsx(TextWrap, { children: child }, `${child}-${idx}`)) : (child);
}), [children]);
};
export const WrapTextChildren = ({ children }) => (React.createElement(React.Fragment, null, useWrapTextChildren(children)));
export const WrapTextChildren = ({ children }) => (_jsx(_Fragment, { children: useWrapTextChildren(children) }));
export const withTextWrap = (WrappedComponent) =>
// eslint-disable-next-line react/display-name
(props) => (React.createElement(TextWrap, null,
React.createElement(WrappedComponent, { ...props })));
(props) => (_jsx(TextWrap, { children: _jsx(WrappedComponent, { ...props }) }));
export const TextWrap = styled.span ``;
//# sourceMappingURL=textWrap.js.map
{
"name": "@clds/component-enhancer",
"description": "",
"version": "0.51.0",
"version": "0.51.1",
"type": "module",

@@ -6,0 +6,0 @@ "author": "Cloudinary",

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