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

@teleporthq/teleport-plugin-react-styled-components

Package Overview
Dependencies
Maintainers
5
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teleporthq/teleport-plugin-react-styled-components - npm Package Compare versions

Comparing version

to
0.13.0

6

dist/cjs/utils.d.ts
import * as t from '@babel/types';
import { UIDLDependency, UIDLAttributeValue } from '@teleporthq/teleport-types';
import { UIDLStyleValue, UIDLDependency } from '@teleporthq/teleport-types';
export declare const generateStyledComponent: (name: string, type: string, styles: Record<string, unknown>, projectReferencedStyles?: string[]) => t.VariableDeclaration;
export declare const generateCSSInterpolate: (name: string, styles: Record<string, unknown>) => t.VariableDeclaration;
export declare const generateExportablCSSInterpolate: (name: string, styles: Record<string, unknown>) => t.ExportNamedDeclaration;
export declare const countPropReferences: (style: Record<string, UIDLAttributeValue>, timesReferred: number) => number;
export declare const countPropReferences: (style: Record<string, UIDLStyleValue>, timesReferred: number) => number;
export declare const countPropRefernecesFromReferencedStyles: (styles: Record<string, import("@teleporthq/teleport-types").UIDLElementNodeReferenceStyles>, timesReferred: number) => number;
export declare const removeUnusedDependencies: (dependencies: Record<string, UIDLDependency>, jsxNodesLookup: Record<string, t.JSXElement>) => void;
export declare const generatePropReferencesSyntax: (style: Record<string, UIDLAttributeValue>, timesReferred: number, root: t.JSXElement, propsPrefix: unknown) => Record<string, any>;
export declare const generatePropReferencesSyntax: (style: Record<string, UIDLStyleValue>, timesReferred: number, root: t.JSXElement, propsPrefix: unknown) => Record<string, any>;
import * as t from '@babel/types';
import { UIDLDependency, UIDLAttributeValue } from '@teleporthq/teleport-types';
import { UIDLStyleValue, UIDLDependency } from '@teleporthq/teleport-types';
export declare const generateStyledComponent: (name: string, type: string, styles: Record<string, unknown>, projectReferencedStyles?: string[]) => t.VariableDeclaration;
export declare const generateCSSInterpolate: (name: string, styles: Record<string, unknown>) => t.VariableDeclaration;
export declare const generateExportablCSSInterpolate: (name: string, styles: Record<string, unknown>) => t.ExportNamedDeclaration;
export declare const countPropReferences: (style: Record<string, UIDLAttributeValue>, timesReferred: number) => number;
export declare const countPropReferences: (style: Record<string, UIDLStyleValue>, timesReferred: number) => number;
export declare const countPropRefernecesFromReferencedStyles: (styles: Record<string, import("@teleporthq/teleport-types").UIDLElementNodeReferenceStyles>, timesReferred: number) => number;
export declare const removeUnusedDependencies: (dependencies: Record<string, UIDLDependency>, jsxNodesLookup: Record<string, t.JSXElement>) => void;
export declare const generatePropReferencesSyntax: (style: Record<string, UIDLAttributeValue>, timesReferred: number, root: t.JSXElement, propsPrefix: unknown) => Record<string, any>;
export declare const generatePropReferencesSyntax: (style: Record<string, UIDLStyleValue>, timesReferred: number, root: t.JSXElement, propsPrefix: unknown) => Record<string, any>;
{
"name": "@teleporthq/teleport-plugin-react-styled-components",
"version": "0.12.4",
"version": "0.13.0",
"description": "A plugin for injecting the styles through styled-components inside React components",

@@ -30,7 +30,7 @@ "author": "teleportHQ",

"@babel/types": "^7.5.5",
"@teleporthq/teleport-plugin-common": "^0.12.4",
"@teleporthq/teleport-shared": "^0.12.4",
"@teleporthq/teleport-types": "^0.12.4"
"@teleporthq/teleport-plugin-common": "^0.13.0",
"@teleporthq/teleport-shared": "^0.13.0",
"@teleporthq/teleport-types": "^0.13.0"
},
"gitHead": "79ff111b9b62b96f64624c685632230f41f33ebd"
"gitHead": "d8d2fb8dfc35bc8e1fb928bc511c62d8777bbab9"
}
import * as t from '@babel/types'
import { StringUtils, UIDLUtils } from '@teleporthq/teleport-shared'
import { ASTUtils } from '@teleporthq/teleport-plugin-common'
import {
UIDLStyleValue,
UIDLDependency,
UIDLAttributeValue,
UIDLReferencedStyles,
} from '@teleporthq/teleport-types'
import { UIDLStyleValue, UIDLDependency, UIDLReferencedStyles } from '@teleporthq/teleport-types'

@@ -117,3 +112,3 @@ export const generateStyledComponent = (

export const generatePropReferencesSyntax = (
style: Record<string, UIDLAttributeValue>,
style: Record<string, UIDLStyleValue>,
timesReferred: number,

@@ -120,0 +115,0 @@ root: t.JSXElement,

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