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

@atlaskit/app-provider

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/app-provider - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

62

CHANGELOG.md
# @atlaskit/app-provider
## 1.3.2
### Patch Changes
- [#89307](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89307)
[`5e4a7780400d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5e4a7780400d) -
Adding new functionality to allow easier migration of theming.
## 1.3.1

@@ -7,3 +15,5 @@

- [#94316](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94316) [`35fd5ed8e1d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/35fd5ed8e1d7) - Upgrading internal dependency `bind-event-listener` to `@^3.0.0`
- [#94316](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94316)
[`35fd5ed8e1d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/35fd5ed8e1d7) -
Upgrading internal dependency `bind-event-listener` to `@^3.0.0`

@@ -14,3 +24,5 @@ ## 1.3.0

- [#88515](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88515) [`ef20ec7145b7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ef20ec7145b7) - Add type export for `RouterLinkComponent` to enable router link configuration
- [#88515](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88515)
[`ef20ec7145b7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ef20ec7145b7) -
Add type export for `RouterLinkComponent` to enable router link configuration

@@ -21,3 +33,5 @@ ## 1.2.0

- [#87603](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87603) [`07a08e440f76`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/07a08e440f76) - Added support for React 18
- [#87603](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87603)
[`07a08e440f76`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/07a08e440f76) -
Added support for React 18

@@ -28,3 +42,5 @@ ## 1.1.0

- [#87244](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87244) [`7d9d0320d3da`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7d9d0320d3da) - Add option to disable theming features with `UNSAFE_isThemingDisabled`
- [#87244](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87244)
[`7d9d0320d3da`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7d9d0320d3da) -
Add option to disable theming features with `UNSAFE_isThemingDisabled`

@@ -35,3 +51,5 @@ ## 1.0.1

- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
Upgrade Typescript from `4.9.5` to `5.4.2`

@@ -42,3 +60,5 @@ ## 1.0.0

- [#69683](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69683) [`203c0f3c8b03`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/203c0f3c8b03) - Stable v1 release of app provider
- [#69683](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69683)
[`203c0f3c8b03`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/203c0f3c8b03) -
Stable v1 release of app provider

@@ -49,8 +69,14 @@ ## 0.4.0

- [#42305](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42305) [`4c9d4a7be34`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c9d4a7be34) - - Router link components are now required to forward refs
- The `useRouterLink()` hook now supports generic router link configuration: `useRouterLink<YourLinkConfigObject>()`
- [#42305](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42305)
[`4c9d4a7be34`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c9d4a7be34) - -
Router link components are now required to forward refs
- The `useRouterLink()` hook now supports generic router link configuration:
`useRouterLink<YourLinkConfigObject>()`
### Patch Changes
- [#42305](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42305) [`4c9d4a7be34`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c9d4a7be34) - - Fixes a bug with router link component generic `href` prop typings where non-object types were allowed
- [#42305](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42305)
[`4c9d4a7be34`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c9d4a7be34) - -
Fixes a bug with router link component generic `href` prop typings where non-object types were
allowed

@@ -61,3 +87,5 @@ ## 0.3.1

- [#42130](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42130) [`b9b8b2c1e0a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9b8b2c1e0a) - Removed unused dev dependencies `@atlaskit/primitives` and `@atlaskit/dropdown-menu`
- [#42130](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42130)
[`b9b8b2c1e0a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9b8b2c1e0a) -
Removed unused dev dependencies `@atlaskit/primitives` and `@atlaskit/dropdown-menu`

@@ -68,3 +96,5 @@ ## 0.3.0

- [#42091](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42091) [`4ec3142822b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ec3142822b) - Add the `routerLinkComponent` prop to support router link configuration within the Design System.
- [#42091](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42091)
[`4ec3142822b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ec3142822b) - Add
the `routerLinkComponent` prop to support router link configuration within the Design System.

@@ -75,3 +105,5 @@ ## 0.2.0

- [#41931](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41931) [`5df5614a6b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5df5614a6b5) - defaultTheme now applies default sub-themes when ommited.
- [#41931](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41931)
[`5df5614a6b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5df5614a6b5) -
defaultTheme now applies default sub-themes when ommited.

@@ -82,6 +114,8 @@ ## 0.1.0

- [#41035](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41035) [`e7344823cff`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7344823cff) - Created the AppProvider component with support for theming.
- [#41035](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41035)
[`e7344823cff`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7344823cff) -
Created the AppProvider component with support for theming.
## 0.0.1
- Scaffold AppProvider component.
- Scaffold AppProvider component.

@@ -7,2 +7,8 @@ "use strict";

});
Object.defineProperty(exports, "UNSAFE_useColorModeForMigration", {
enumerable: true,
get: function get() {
return _themeProvider.UNSAFE_useColorModeForMigration;
}
});
Object.defineProperty(exports, "default", {

@@ -9,0 +15,0 @@ enumerable: true,

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

exports.ThemeProvider = ThemeProvider;
exports.UNSAFE_useColorModeForMigration = UNSAFE_useColorModeForMigration;
exports.default = void 0;

@@ -35,2 +36,14 @@ exports.useColorMode = useColorMode;

/**
* __UNSAFE_useColorModeForMigration()__
*
* Returns the current color mode when inside the app provider.
* Unlike useColorMode, this utility returns undefined, instead of throwing an error, when the app provider is missing.
* This allows it to be used by components that need to operate with and without an app provider.
*/
function UNSAFE_useColorModeForMigration() {
var value = (0, _react.useContext)(ColorModeContext);
return value;
}
/**
* __useColorMode()__

@@ -37,0 +50,0 @@ *

export { default } from './app-provider';
export { useColorMode, useSetColorMode, useSetTheme, useTheme } from './theme-provider';
export { UNSAFE_useColorModeForMigration, useColorMode, useSetColorMode, useSetTheme, useTheme } from './theme-provider';
import useRouterLink from './router-link-provider/hooks/use-router-link';
export { useRouterLink };

@@ -15,2 +15,14 @@ import React, { createContext, useCallback, useContext, useEffect, useState } from 'react';

/**
* __UNSAFE_useColorModeForMigration()__
*
* Returns the current color mode when inside the app provider.
* Unlike useColorMode, this utility returns undefined, instead of throwing an error, when the app provider is missing.
* This allows it to be used by components that need to operate with and without an app provider.
*/
export function UNSAFE_useColorModeForMigration() {
const value = useContext(ColorModeContext);
return value;
}
/**
* __useColorMode()__

@@ -17,0 +29,0 @@ *

export { default } from './app-provider';
export { useColorMode, useSetColorMode, useSetTheme, useTheme } from './theme-provider';
export { UNSAFE_useColorModeForMigration, useColorMode, useSetColorMode, useSetTheme, useTheme } from './theme-provider';
import useRouterLink from './router-link-provider/hooks/use-router-link';
export { useRouterLink };

@@ -19,2 +19,14 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";

/**
* __UNSAFE_useColorModeForMigration()__
*
* Returns the current color mode when inside the app provider.
* Unlike useColorMode, this utility returns undefined, instead of throwing an error, when the app provider is missing.
* This allows it to be used by components that need to operate with and without an app provider.
*/
export function UNSAFE_useColorModeForMigration() {
var value = useContext(ColorModeContext);
return value;
}
/**
* __useColorMode()__

@@ -21,0 +33,0 @@ *

export { default } from './app-provider';
export { useColorMode, useSetColorMode, useSetTheme, useTheme, } from './theme-provider';
export { UNSAFE_useColorModeForMigration, useColorMode, useSetColorMode, useSetTheme, useTheme, } from './theme-provider';
export { type RouterLinkComponent, type RouterLinkComponentProps, } from './router-link-provider';
import useRouterLink from './router-link-provider/hooks/use-router-link';
export { useRouterLink };

@@ -7,2 +7,10 @@ import React from 'react';

/**
* __UNSAFE_useColorModeForMigration()__
*
* Returns the current color mode when inside the app provider.
* Unlike useColorMode, this utility returns undefined, instead of throwing an error, when the app provider is missing.
* This allows it to be used by components that need to operate with and without an app provider.
*/
export declare function UNSAFE_useColorModeForMigration(): ReconciledColorMode | undefined;
/**
* __useColorMode()__

@@ -9,0 +17,0 @@ *

export { default } from './app-provider';
export { useColorMode, useSetColorMode, useSetTheme, useTheme, } from './theme-provider';
export { UNSAFE_useColorModeForMigration, useColorMode, useSetColorMode, useSetTheme, useTheme, } from './theme-provider';
export { type RouterLinkComponent, type RouterLinkComponentProps, } from './router-link-provider';
import useRouterLink from './router-link-provider/hooks/use-router-link';
export { useRouterLink };

@@ -7,2 +7,10 @@ import React from 'react';

/**
* __UNSAFE_useColorModeForMigration()__
*
* Returns the current color mode when inside the app provider.
* Unlike useColorMode, this utility returns undefined, instead of throwing an error, when the app provider is missing.
* This allows it to be used by components that need to operate with and without an app provider.
*/
export declare function UNSAFE_useColorModeForMigration(): ReconciledColorMode | undefined;
/**
* __useColorMode()__

@@ -9,0 +17,0 @@ *

{
"name": "@atlaskit/app-provider",
"version": "1.3.1",
"version": "1.3.2",
"description": "A top level provider for the Design System.",

@@ -42,3 +42,3 @@ "author": "Atlassian Pty Ltd",

"dependencies": {
"@atlaskit/tokens": "^1.43.0",
"@atlaskit/tokens": "^1.49.0",
"@babel/runtime": "^7.0.0",

@@ -96,4 +96,4 @@ "bind-event-listener": "^3.0.0"

},
"homepage": "https://atlassian.design/components",
"homepage": "https://atlassian.design/components/app-provider",
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
}

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