@instructure/theme-registry
Advanced tools
Comparing version 10.4.1 to 10.4.2-pr-snapshot-1730913754131
@@ -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 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141770
851
1
+ Added@instructure/console@10.4.2-pr-snapshot-1730913754131(transitive)
+ Added@instructure/shared-types@10.4.2-pr-snapshot-1730913754131(transitive)
+ Added@instructure/ui-dom-utils@10.4.2-pr-snapshot-1730913754131(transitive)
+ Added@instructure/ui-utils@10.4.2-pr-snapshot-1730913754131(transitive)
- Removed@instructure/console@10.4.1(transitive)
- Removed@instructure/shared-types@10.4.1(transitive)
- Removed@instructure/ui-dom-utils@10.4.1(transitive)
- Removed@instructure/ui-utils@10.4.1(transitive)
Updated@instructure/console@10.4.2-pr-snapshot-1730913754131
Updated@instructure/shared-types@10.4.2-pr-snapshot-1730913754131
Updated@instructure/ui-utils@10.4.2-pr-snapshot-1730913754131