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

@rpxl/recast

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rpxl/recast - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

client/package.json
{
"internal": true,
"main": "../dist/client.cjs",
"module": "../dist/client.esm.js",
"module": "../dist/client.module.js",
"unpkg": "../dist/client.umd.js",
"types": "../dist/client.d.ts"
}
{
"internal": true,
"main": "../dist/core.cjs",
"module": "../dist/core.esm.js",
"module": "../dist/core.module.js",
"unpkg": "../dist/core.umd.js",
"types": "../dist/core.d.ts"
}

@@ -1,4 +0,4 @@

export type { RecastThemeProps, RecastClientOptions } from "./client/types";
export type { RecastThemeProp } from "./core/types";
export * from "./client/hooks/useRecastClasses";
export { createRecastComponent } from "./client/createRecastComponent";
export type { RecastThemeProps, RecastClientOptions } from "./client/types.js";
export type { RecastThemeProp } from "./core/types.js";
export * from "./client/hooks/useRecastClasses.js";
export { createRecastComponent } from "./client/createRecastComponent.js";

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

import { RecastClientOptions } from "./types";
import { RecastClientOptions } from "./types.js";
export declare const DEFAULT_RECAST_CLIENT_OPTIONS: Required<RecastClientOptions>;
import React from "react";
import type { Breakpoints, MaybeBreakpoints, ComponentProps, RecastClientOptionsTyped } from "../client/types";
import type { MaybeSize, MaybeVariant, Modifier, RecastStyles, Size, Variant } from "../core/types";
import type { Breakpoints, MaybeBreakpoints, ComponentProps, RecastClientOptionsTyped } from "../client/types.js";
import type { MaybeSize, MaybeVariant, Modifier, RecastStyles, Size, Variant } from "../core/types.js";
export declare const createRecastComponent: <P, BaseTheme>(Component: React.ComponentType<P>, key: string) => {

@@ -5,0 +5,0 @@ recast: <D extends string, S extends Size<BaseTheme, S>, V extends Variant<BaseTheme, V, S>, M extends Modifier<BaseTheme, M, S, V>, B extends Breakpoints<B>>(displayName: D, styles: RecastStyles<BaseTheme, S, V, M>, options?: RecastClientOptionsTyped<B> | undefined) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<Extract<ComponentProps<P, S, V, M, MaybeBreakpoints<B>>, P>, MaybeSize<S> | MaybeVariant<V>> & Partial<Record<keyof M, boolean>>> & React.RefAttributes<React.ElementRef<React.ComponentType<P>>>>;

@@ -1,4 +0,4 @@

import { Viewports } from "../types";
import { Viewports } from "../types.js";
export declare const useBreakpoint: (viewports: Viewports, isResponsive?: boolean, delay?: number) => {
breakpoint: string;
};

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

import { RecastClientOptions } from "../types";
import { RecastClientOptions } from "../types.js";
type Props = {

@@ -3,0 +3,0 @@ themekey?: string;

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

export type { RecastThemeProp, RecastStyles } from "./core/types";
export { validateRecastStyles } from "./core/validateRecastStyles";
export type { RecastThemeProp, RecastStyles } from "./core/types.js";
export { validateRecastStyles } from "./core/validateRecastStyles.js";

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

import { Styles } from "./types";
import { Styles } from "./types.js";
/**

@@ -3,0 +3,0 @@ * Theme instance singleton

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

import { Styles } from "../types";
import { Styles } from "../types.js";
type Modifiers = Record<string, Record<string, string | string[] | Record<string, string | string[]>>>;

@@ -3,0 +3,0 @@ type GetModifierClassesProps = {

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

import { Styles } from "../types";
import { Styles } from "../types.js";
type GetVariantClassesProps = {

@@ -3,0 +3,0 @@ theme: Styles;

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

import { Modifier, RecastStyles, Size, Variant } from "./types";
import { Modifier, RecastStyles, Size, Variant } from "./types.js";
/**

@@ -3,0 +3,0 @@ * Utility to validate a components recast styles object shape

@@ -1,4 +0,4 @@

export type { RecastThemeProps, RecastServerOptions } from "./server/types";
export type { RecastThemeProp } from "./core/types";
export * from "./server/hooks/useRecastClasses";
export { createRecastComponent } from "./server/createRecastComponent";
export type { RecastThemeProps, RecastServerOptions } from "./server/types.js";
export type { RecastThemeProp } from "./core/types.js";
export * from "./server/hooks/useRecastClasses.js";
export { createRecastComponent } from "./server/createRecastComponent.js";

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

import { RecastServerOptions } from "./types";
import { RecastServerOptions } from "./types.js";
export declare const DEFAULT_RECAST_CONTEXT: RecastServerOptions;
import React from "react";
import type { ComponentProps, RecastServerOptions } from "../server/types";
import type { MaybeSize, MaybeVariant, Modifier, RecastStyles, Size, Variant } from "../core/types";
import type { ComponentProps, RecastServerOptions } from "../server/types.js";
import type { MaybeSize, MaybeVariant, Modifier, RecastStyles, Size, Variant } from "../core/types.js";
export declare const createRecastComponent: <P, BaseTheme>(Component: React.ComponentType<P>, key: string) => {

@@ -5,0 +5,0 @@ recast: <D extends string, S extends Size<BaseTheme, S>, V extends Variant<BaseTheme, V, S>, M extends Modifier<BaseTheme, M, S, V>>(displayName: D, styles: RecastStyles<BaseTheme, S, V, M>, options?: RecastServerOptions) => React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<Extract<ComponentProps<P, S, V, M>, P>, MaybeSize<S> | MaybeVariant<V>> & Partial<Record<keyof M, boolean>>> & React.RefAttributes<React.ElementRef<React.ComponentType<P>>>>;

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

import type { RecastServerOptions } from "../../server/types";
import type { RecastServerOptions } from "../../server/types.js";
type Props = {

@@ -3,0 +3,0 @@ themekey?: string;

{
"name": "@rpxl/recast",
"license": "MIT",
"version": "1.0.1",
"version": "1.0.2",
"type": "module",

@@ -13,2 +13,3 @@ "sideEffects": false,

"types": "./dist/core.d.ts",
"import": "./dist/core.esm.js",
"require": "./dist/core.cjs",

@@ -19,2 +20,3 @@ "default": "./dist/core.modern.js"

"types": "./dist/client.d.ts",
"import": "./dist/client.esm.js",
"require": "./dist/client.cjs",

@@ -25,2 +27,3 @@ "default": "./dist/client.modern.js"

"types": "./dist/server.d.ts",
"import": "./dist/server.esm.js",
"require": "./dist/server.cjs",

@@ -75,4 +78,4 @@ "default": "./dist/server.modern.js"

"ts-jest": "^29.1.0",
"typescript": "^5.0.4"
"typescript": "5.1.6"
}
}
{
"internal": true,
"main": "../dist/server.cjs",
"module": "../dist/server.esm.js",
"module": "../dist/server.module.js",
"unpkg": "../dist/server.umd.js",
"types": "../dist/server.d.ts"
}

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