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

@khanacademy/wonder-blocks-theming

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@khanacademy/wonder-blocks-theming - npm Package Compare versions

Comparing version 0.0.0-PR2098-20231025215351 to 0.0.0-PR2098-20231027222316

2

CHANGELOG.md
# @khanacademy/wonder-blocks-theming
## 0.0.0-PR2098-20231025215351
## 0.0.0-PR2098-20231027222316

@@ -5,0 +5,0 @@ ### Minor Changes

@@ -12,2 +12,2 @@ import * as React from "react";

*/
export default function withScopedTheme<T>(styleSheet: ThemedStylesFn<T>, themeContext: React.Context<T>): <Props extends WithThemeProps>(WrappedComponent: React.ComponentType<Props>) => (props: WithoutTheme<Props>) => JSX.Element;
export default function withScopedTheme<T extends object>(styleSheet: ThemedStylesFn<T>, themeContext: React.Context<T>): <Props extends WithThemeProps>(WrappedComponent: React.ComponentType<Props>) => (props: WithoutTheme<Props>) => JSX.Element;

@@ -12,3 +12,3 @@ import * as React from "react";

};
export default function useScopedTheme<T>(themeContext: React.Context<T>): ScopedTheme<T>;
export default function useScopedTheme<T extends object>(themeContext: React.Context<T>): ScopedTheme<T>;
export {};

@@ -10,2 +10,2 @@ import { StyleDeclaration } from "aphrodite";

*/
export default function useStyles<T>(styles: ThemedStylesFn<T>, theme: T): StyleDeclaration;
export default function useStyles<T extends object>(styles: ThemedStylesFn<T>, theme: T): StyleDeclaration;
import { StyleDeclaration } from "aphrodite";
export type ThemedStylesFn<T> = (theme: T) => StyleDeclaration;
export type ThemedStylesFn<T extends object> = (theme: T) => StyleDeclaration;
export type SupportedThemes = "default" | "khanmigo";
export type Themes<T> = Partial<Record<SupportedThemes, T>>;
export type Themes<T extends object> = Partial<Record<SupportedThemes, T>>;
{
"name": "@khanacademy/wonder-blocks-theming",
"version": "0.0.0-PR2098-20231025215351",
"version": "0.0.0-PR2098-20231027222316",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -15,3 +15,3 @@ import * as React from "react";

export default function useScopedTheme<T>(
export default function useScopedTheme<T extends object>(
themeContext: React.Context<T>,

@@ -18,0 +18,0 @@ ): ScopedTheme<T> {

@@ -13,3 +13,3 @@ import * as React from "react";

*/
export default function useStyles<T>(
export default function useStyles<T extends object>(
styles: ThemedStylesFn<T>,

@@ -16,0 +16,0 @@ theme: T,

import {StyleDeclaration} from "aphrodite";
export type ThemedStylesFn<T> = (theme: T) => StyleDeclaration;
export type ThemedStylesFn<T extends object> = (theme: T) => StyleDeclaration;
export type SupportedThemes = "default" | "khanmigo";
export type Themes<T> = Partial<Record<SupportedThemes, T>>;
export type Themes<T extends object> = Partial<Record<SupportedThemes, T>>;

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