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

fela

Package Overview
Dependencies
Maintainers
2
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela - npm Package Compare versions

Comparing version 11.5.2 to 11.6.0

43

index.d.ts

@@ -15,3 +15,13 @@ declare module "fela" {

type TRendererCreator = (config?: IConfig) => IRenderer;
type TPlugin = (style: IStyle) => IStyle; //http://fela.js.org/docs/advanced/Plugins.html
type TRenderType = 'RULE' | 'KEYFRAME' | 'FONT' | 'STATIC';
type TPlugin<T = Record<string, unknown>> = {
(
style: IStyle,
type: TRenderType,
renderer: IRenderer,
props: T,
): IStyle;
};
type TEnhancer = (renderer: IRenderer) => IRenderer; //http://fela.js.org/docs/advanced/Enhancers.html

@@ -52,6 +62,23 @@

}
type CSSObject = CSSProperties & CSSPseudos;
export interface IStyle extends CSS.Properties<string | number> {
// for selectors and pseudo classes use fela-plugin-typescript
type CSSCustom = { [prop: string]: CSSCustomPrimitive | IStyle };
type CSSCustomPrimitive = IStylePrimitiveExtension[keyof IStylePrimitiveExtension];
type CSSProperties = CSS.Properties<number | string>;
type CSSPropertiesFallback = CSS.PropertiesFallback<number | string>;
type CSSPseudos = { [K in CSS.Pseudos]?: CSSObject; };
interface IStyleExtension { __brand?: never }
interface IStylePrimitiveExtension {
_string: string;
_number: number;
}
export type IStyle =
| CSSObject
| CSSCustom
| IStyleExtension;

@@ -72,3 +99,3 @@ function createRenderer(config?: IConfig): IRenderer;

declare module "fela-dom" {
import { IRenderer } from 'fela';
import { IRenderer, TRenderType } from 'fela';

@@ -80,3 +107,3 @@ function render(renderer: IRenderer): void;

css: string,
type: 'RULE' | 'KEYFRAME' | 'FONT' | 'STATIC',
type: TRenderType,
media?: string,

@@ -246,8 +273,2 @@ support?: boolean,

declare module "fela-plugin-fallback-value" {
import { TPlugin } from "fela";
export default function(): TPlugin;
}
declare module "fela-plugin-friendly-pseudo-class" {

@@ -254,0 +275,0 @@ import { TPlugin } from "fela";

{
"name": "fela",
"version": "11.5.2",
"version": "11.6.0",
"description": "State-Driven Styling in JavaScript",

@@ -42,6 +42,6 @@ "typings": "index.d.ts",

"fast-loops": "^1.0.0",
"fela-utils": "^11.5.2",
"fela-utils": "^11.6.0",
"isobject": "^3.0.1"
},
"gitHead": "b73826bbc7e77289bec55f344e0e9a22f5700bfd"
"gitHead": "0ad294fd638114ee6b5ca5f2b3a2b7112a6b6f7b"
}
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