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

@instructure/theme-registry

Package Overview
Dependencies
Maintainers
34
Versions
544
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/theme-registry - npm Package Compare versions

Comparing version 10.4.1 to 10.4.2-pr-snapshot-1730913754131

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [10.4.2-pr-snapshot-1730913754131](https://github.com/instructure/instructure-ui/compare/v10.4.1...v10.4.2-pr-snapshot-1730913754131) (2024-11-06)
**Note:** Version bump only for package @instructure/theme-registry
## [10.4.1](https://github.com/instructure/instructure-ui/compare/v10.4.0...v10.4.1) (2024-10-28)

@@ -8,0 +16,0 @@

4

es/ThemeRegistry.js

@@ -32,2 +32,3 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";

* ---
* DEPRECATED. This will be deleted, please use InstUISettingsProvider instead.
* A global theme registry used for registering theme objects, setting globally available themes

@@ -191,3 +192,4 @@ * and receiving the currently used theme.

* @returns {RegisteredTheme} If the given theme is already in the ThemeRegistry then simply return that theme.
* Otherwise returns the theme with a wrapper around it, so it can be `.use()`-ed to activate the given theme from the registry.
* Otherwise, returns the theme with a wrapper around it, so it can be `.use()`-ed to activate the given theme from the registry.
* This function also adds a `variables` prop for backwards compatibility (deprecated).
* @module registerTheme

@@ -194,0 +196,0 @@ */

@@ -47,2 +47,3 @@ "use strict";

* ---
* DEPRECATED. This will be deleted, please use InstUISettingsProvider instead.
* A global theme registry used for registering theme objects, setting globally available themes

@@ -202,3 +203,4 @@ * and receiving the currently used theme.

* @returns {RegisteredTheme} If the given theme is already in the ThemeRegistry then simply return that theme.
* Otherwise returns the theme with a wrapper around it, so it can be `.use()`-ed to activate the given theme from the registry.
* Otherwise, returns the theme with a wrapper around it, so it can be `.use()`-ed to activate the given theme from the registry.
* This function also adds a `variables` prop for backwards compatibility (deprecated).
* @module registerTheme

@@ -205,0 +207,0 @@ */

{
"name": "@instructure/theme-registry",
"version": "10.4.1",
"version": "10.4.2-pr-snapshot-1730913754131",
"description": "Package for global ThemeRegistry.",

@@ -25,10 +25,10 @@ "author": "Instructure, Inc. Engineering and Product Design",

"@babel/runtime": "^7.25.6",
"@instructure/console": "10.4.1",
"@instructure/shared-types": "10.4.1",
"@instructure/ui-utils": "10.4.1"
"@instructure/console": "10.4.2-pr-snapshot-1730913754131",
"@instructure/shared-types": "10.4.2-pr-snapshot-1730913754131",
"@instructure/ui-utils": "10.4.2-pr-snapshot-1730913754131"
},
"devDependencies": {
"@instructure/ui-babel-preset": "10.4.1",
"@instructure/ui-test-utils": "10.4.1"
"@instructure/ui-babel-preset": "10.4.2-pr-snapshot-1730913754131",
"@instructure/ui-test-utils": "10.4.2-pr-snapshot-1730913754131"
}
}

@@ -29,2 +29,3 @@ /*

* ---
* DEPRECATED. This will be deleted, please use InstUISettingsProvider instead.
* A global theme registry used for registering theme objects, setting globally available themes

@@ -56,3 +57,5 @@ * and receiving the currently used theme.

type RegisteredTheme<T extends BaseTheme = BaseTheme> = T & {
// DEPRECATED. Use InstUISettingsProvider instead
use(arg?: { overrides: DeepPartial<BaseThemeVariables> }): void
// DEPRECATED. Read its variables dirrectly from the theme object.
variables: BaseThemeVariables

@@ -230,3 +233,4 @@ }

* @returns {RegisteredTheme} If the given theme is already in the ThemeRegistry then simply return that theme.
* Otherwise returns the theme with a wrapper around it, so it can be `.use()`-ed to activate the given theme from the registry.
* Otherwise, returns the theme with a wrapper around it, so it can be `.use()`-ed to activate the given theme from the registry.
* This function also adds a `variables` prop for backwards compatibility (deprecated).
* @module registerTheme

@@ -233,0 +237,0 @@ */

@@ -45,3 +45,4 @@ import type { BaseTheme, BaseThemeVariables, DeepPartial } from '@instructure/shared-types';

* @returns {RegisteredTheme} If the given theme is already in the ThemeRegistry then simply return that theme.
* Otherwise returns the theme with a wrapper around it, so it can be `.use()`-ed to activate the given theme from the registry.
* Otherwise, returns the theme with a wrapper around it, so it can be `.use()`-ed to activate the given theme from the registry.
* This function also adds a `variables` prop for backwards compatibility (deprecated).
* @module registerTheme

@@ -48,0 +49,0 @@ */

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