@atlaskit/app-provider 1.3.2 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,110 +1,134 @@
1
1
  # @atlaskit/app-provider
2
2
 
3
+ ## 1.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#127511](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/127511)
8
+ [`db30e29344013`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/db30e29344013) -
9
+ Widening range of `react` and `react-dom` peer dependencies from `^16.8.0 || ^17.0.0 || ~18.2.0`
10
+ to the wider range of ``^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).
11
+
12
+ This change has been done to enable usage of `react@18.3` as well as to have a consistent peer
13
+ dependency range for `react` and `react-dom` for `/platform` packages.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
19
+ ## 1.3.3
20
+
21
+ ### Patch Changes
22
+
23
+ - [#110702](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110702)
24
+ [`b8c2eefeb195b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b8c2eefeb195b) -
25
+ Router link component configurations no longer require `children`, so labels can be supplied
26
+ through aria attributes if required
27
+
3
28
  ## 1.3.2
4
29
 
5
30
  ### Patch Changes
6
31
 
7
- - [#89307](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89307)
8
- [`5e4a7780400d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5e4a7780400d) -
9
- Adding new functionality to allow easier migration of theming.
32
+ - [#89307](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89307)
33
+ [`5e4a7780400d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5e4a7780400d) -
34
+ Adding new functionality to allow easier migration of theming.
10
35
 
11
36
  ## 1.3.1
12
37
 
13
38
  ### Patch Changes
14
39
 
15
- - [#94316](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94316)
16
- [`35fd5ed8e1d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/35fd5ed8e1d7) -
17
- Upgrading internal dependency `bind-event-listener` to `@^3.0.0`
40
+ - [#94316](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94316)
41
+ [`35fd5ed8e1d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/35fd5ed8e1d7) -
42
+ Upgrading internal dependency `bind-event-listener` to `@^3.0.0`
18
43
 
19
44
  ## 1.3.0
20
45
 
21
46
  ### Minor Changes
22
47
 
23
- - [#88515](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88515)
24
- [`ef20ec7145b7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ef20ec7145b7) -
25
- Add type export for `RouterLinkComponent` to enable router link configuration
48
+ - [#88515](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88515)
49
+ [`ef20ec7145b7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ef20ec7145b7) -
50
+ Add type export for `RouterLinkComponent` to enable router link configuration
26
51
 
27
52
  ## 1.2.0
28
53
 
29
54
  ### Minor Changes
30
55
 
31
- - [#87603](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87603)
32
- [`07a08e440f76`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/07a08e440f76) -
33
- Added support for React 18
56
+ - [#87603](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87603)
57
+ [`07a08e440f76`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/07a08e440f76) -
58
+ Add support for React 18 in non-strict mode.
34
59
 
35
60
  ## 1.1.0
36
61
 
37
62
  ### Minor Changes
38
63
 
39
- - [#87244](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87244)
40
- [`7d9d0320d3da`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7d9d0320d3da) -
41
- Add option to disable theming features with `UNSAFE_isThemingDisabled`
64
+ - [#87244](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/87244)
65
+ [`7d9d0320d3da`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7d9d0320d3da) -
66
+ Add option to disable theming features with `UNSAFE_isThemingDisabled`
42
67
 
43
68
  ## 1.0.1
44
69
 
45
70
  ### Patch Changes
46
71
 
47
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
48
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
49
- Upgrade Typescript from `4.9.5` to `5.4.2`
72
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
73
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
74
+ Upgrade Typescript from `4.9.5` to `5.4.2`
50
75
 
51
76
  ## 1.0.0
52
77
 
53
78
  ### Major Changes
54
79
 
55
- - [#69683](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69683)
56
- [`203c0f3c8b03`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/203c0f3c8b03) -
57
- Stable v1 release of app provider
80
+ - [#69683](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69683)
81
+ [`203c0f3c8b03`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/203c0f3c8b03) -
82
+ Stable v1 release of app provider
58
83
 
59
84
  ## 0.4.0
60
85
 
61
86
  ### Minor Changes
62
87
 
63
- - [#42305](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42305)
64
- [`4c9d4a7be34`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c9d4a7be34) - -
65
- Router link components are now required to forward refs
66
- - The `useRouterLink()` hook now supports generic router link configuration:
67
- `useRouterLink<YourLinkConfigObject>()`
88
+ - [#42305](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42305)
89
+ [`4c9d4a7be34`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c9d4a7be34) - - Router
90
+ link components are now required to forward refs
91
+ - The `useRouterLink()` hook now supports generic router link configuration:
92
+ `useRouterLink<YourLinkConfigObject>()`
68
93
 
69
94
  ### Patch Changes
70
95
 
71
- - [#42305](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42305)
72
- [`4c9d4a7be34`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c9d4a7be34) - -
73
- Fixes a bug with router link component generic `href` prop typings where non-object types were
74
- allowed
96
+ - [#42305](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42305)
97
+ [`4c9d4a7be34`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c9d4a7be34) - - Fixes
98
+ a bug with router link component generic `href` prop typings where non-object types were allowed
75
99
 
76
100
  ## 0.3.1
77
101
 
78
102
  ### Patch Changes
79
103
 
80
- - [#42130](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42130)
81
- [`b9b8b2c1e0a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9b8b2c1e0a) -
82
- Removed unused dev dependencies `@atlaskit/primitives` and `@atlaskit/dropdown-menu`
104
+ - [#42130](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42130)
105
+ [`b9b8b2c1e0a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9b8b2c1e0a) - Removed
106
+ unused dev dependencies `@atlaskit/primitives` and `@atlaskit/dropdown-menu`
83
107
 
84
108
  ## 0.3.0
85
109
 
86
110
  ### Minor Changes
87
111
 
88
- - [#42091](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42091)
89
- [`4ec3142822b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ec3142822b) - Add
90
- the `routerLinkComponent` prop to support router link configuration within the Design System.
112
+ - [#42091](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42091)
113
+ [`4ec3142822b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ec3142822b) - Add the
114
+ `routerLinkComponent` prop to support router link configuration within the Design System.
91
115
 
92
116
  ## 0.2.0
93
117
 
94
118
  ### Minor Changes
95
119
 
96
- - [#41931](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41931)
97
- [`5df5614a6b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5df5614a6b5) -
98
- defaultTheme now applies default sub-themes when ommited.
120
+ - [#41931](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41931)
121
+ [`5df5614a6b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5df5614a6b5) -
122
+ defaultTheme now applies default sub-themes when ommited.
99
123
 
100
124
  ## 0.1.0
101
125
 
102
126
  ### Minor Changes
103
127
 
104
- - [#41035](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41035)
105
- [`e7344823cff`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7344823cff) -
106
- Created the AppProvider component with support for theming.
128
+ - [#41035](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41035)
129
+ [`e7344823cff`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7344823cff) - Created
130
+ the AppProvider component with support for theming.
107
131
 
108
132
  ## 0.0.1
109
133
 
110
- - Scaffold AppProvider component.
134
+ - Scaffold AppProvider component.
package/LICENSE.md CHANGED
@@ -1,13 +1,11 @@
1
1
  Copyright 2023 Atlassian Pty Ltd
2
2
 
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
4
+ compliance with the License. You may obtain a copy of the License at
6
5
 
7
6
  http://www.apache.org/licenses/LICENSE-2.0
8
7
 
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10
+ implied. See the License for the specific language governing permissions and limitations under the
11
+ License.
package/README.md CHANGED
@@ -4,4 +4,5 @@ A top level provider for the Design System.
4
4
 
5
5
  ## Usage
6
6
 
7
- Detailed docs and example usage can be found [here](https://atlaskit.atlassian.com/packages/design-system/app-provider).
7
+ Detailed docs and example usage can be found
8
+ [here](https://atlaskit.atlassian.com/packages/design-system/app-provider).
@@ -11,26 +11,29 @@ import routerLinkComponentExample from '../../examples/constellation/2-router-li
11
11
  AppProvider sets up theming for an app, enabling [design tokens](/tokens/design-tokens) to be used.
12
12
 
13
13
  <Example
14
- Component={defaultExample.example}
15
- source={defaultExample.code}
16
- packageName="@atlaskit/app-provider"
14
+ Component={defaultExample.example}
15
+ source={defaultExample.code}
16
+ packageName="@atlaskit/app-provider"
17
17
  />
18
18
 
19
19
  ## Color mode and theme switching
20
20
 
21
- The `useColorMode` hook can be used to get the active color mode. When the color mode is set to `auto`, the active color mode will be determined by the user's system preference.
21
+ The `useColorMode` hook can be used to get the active color mode. When the color mode is set to
22
+ `auto`, the active color mode will be determined by the user's system preference.
22
23
 
23
- The `useTheme` hook can be used to get the active themes. The `useSetTheme` hook can be used to change themes.
24
+ The `useTheme` hook can be used to get the active themes. The `useSetTheme` hook can be used to
25
+ change themes.
24
26
 
25
27
  <Example
26
- Component={themeSwitcherExample.example}
27
- source={themeSwitcherExample.code}
28
- packageName="@atlaskit/app-provider"
28
+ Component={themeSwitcherExample.example}
29
+ source={themeSwitcherExample.code}
30
+ packageName="@atlaskit/app-provider"
29
31
  />
30
32
 
31
33
  ## Router links
32
34
 
33
- The `routerLinkComponent` prop provides support for configuring router links within Design System components.
35
+ The `routerLinkComponent` prop provides support for configuring router links within Design System
36
+ components.
34
37
 
35
38
  Support for this is limited as Design System components are being updated, starting with:
36
39
 
@@ -39,11 +42,13 @@ Support for this is limited as Design System components are being updated, start
39
42
  - [Link](/components/link/examples).
40
43
  - [Anchor primitive](/components/primitives/anchor/examples).
41
44
 
42
- This example shows how links can be configured to utilize the router link component supplied by [React Resource Router](https://github.com/atlassian-labs/react-resource-router), however any routing library can be used.
45
+ This example shows how links can be configured to utilize the router link component supplied by
46
+ [React Resource Router](https://github.com/atlassian-labs/react-resource-router), however any
47
+ routing library can be used.
43
48
 
44
49
  <Example
45
- Component={routerLinkComponentExample.example}
46
- source={routerLinkComponentExample.code}
47
- appearance="source-only"
48
- packageName="@atlaskit/app-provider"
50
+ Component={routerLinkComponentExample.example}
51
+ source={routerLinkComponentExample.code}
52
+ appearance="source-only"
53
+ packageName="@atlaskit/app-provider"
49
54
  />
@@ -4,4 +4,5 @@ order: 2
4
4
 
5
5
  ## Usage
6
6
 
7
- AppProvider provides app-level configuration for the Design System, such as global theming. Place it at the root of your application.
7
+ AppProvider provides app-level configuration for the Design System, such as global theming. Place it
8
+ at the root of your application.
@@ -1,5 +1,5 @@
1
1
  export { default } from './app-provider';
2
2
  export { UNSAFE_useColorModeForMigration, useColorMode, useSetColorMode, useSetTheme, useTheme, } from './theme-provider';
3
- export { type RouterLinkComponent, type RouterLinkComponentProps, } from './router-link-provider';
3
+ export { type RouterLinkComponent, type RouterLinkComponentProps } from './router-link-provider';
4
4
  import useRouterLink from './router-link-provider/hooks/use-router-link';
5
5
  export { useRouterLink };
@@ -25,7 +25,7 @@ export type RouterLinkComponentProps<RouterLinkConfig extends Record<string, any
25
25
  * ```
26
26
  */
27
27
  href: string | RouterLinkConfig;
28
- children: React.ReactNode;
28
+ children?: React.ReactNode;
29
29
  };
30
30
  export type RouterLinkProviderContextProps<RouterLinkConfig extends Record<string, any> = never> = {
31
31
  routerLinkComponent?: RouterLinkComponent<RouterLinkConfig>;
@@ -1,5 +1,5 @@
1
1
  export { default } from './app-provider';
2
2
  export { UNSAFE_useColorModeForMigration, useColorMode, useSetColorMode, useSetTheme, useTheme, } from './theme-provider';
3
- export { type RouterLinkComponent, type RouterLinkComponentProps, } from './router-link-provider';
3
+ export { type RouterLinkComponent, type RouterLinkComponentProps } from './router-link-provider';
4
4
  import useRouterLink from './router-link-provider/hooks/use-router-link';
5
5
  export { useRouterLink };
@@ -25,7 +25,7 @@ export type RouterLinkComponentProps<RouterLinkConfig extends Record<string, any
25
25
  * ```
26
26
  */
27
27
  href: string | RouterLinkConfig;
28
- children: React.ReactNode;
28
+ children?: React.ReactNode;
29
29
  };
30
30
  export type RouterLinkProviderContextProps<RouterLinkConfig extends Record<string, any> = never> = {
31
31
  routerLinkComponent?: RouterLinkComponent<RouterLinkConfig>;
package/package.json CHANGED
@@ -1,97 +1,95 @@
1
1
  {
2
- "name": "@atlaskit/app-provider",
3
- "version": "1.3.2",
4
- "description": "A top level provider for the Design System.",
5
- "author": "Atlassian Pty Ltd",
6
- "license": "Apache-2.0",
7
- "publishConfig": {
8
- "registry": "https://registry.npmjs.org/"
9
- },
10
- "atlassian": {
11
- "team": "Design System Team",
12
- "inPublicMirror": false,
13
- "releaseModel": "continuous",
14
- "website": {
15
- "name": "App provider",
16
- "category": "Components",
17
- "status": {
18
- "type": "beta"
19
- }
20
- },
21
- "runReact18": true
22
- },
23
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
24
- "main": "dist/cjs/index.js",
25
- "module": "dist/esm/index.js",
26
- "module:es2019": "dist/es2019/index.js",
27
- "types": "dist/types/index.d.ts",
28
- "typesVersions": {
29
- ">=4.5 <4.9": {
30
- "*": [
31
- "dist/types-ts4.5/*",
32
- "dist/types-ts4.5/index.d.ts"
33
- ]
34
- }
35
- },
36
- "sideEffects": false,
37
- "atlaskit:src": "src/index.tsx",
38
- "af:exports": {
39
- ".": "./src/index.tsx"
40
- },
41
- "dependencies": {
42
- "@atlaskit/tokens": "^1.49.0",
43
- "@babel/runtime": "^7.0.0",
44
- "bind-event-listener": "^3.0.0"
45
- },
46
- "peerDependencies": {
47
- "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
48
- },
49
- "devDependencies": {
50
- "@af/visual-regression": "*",
51
- "@atlaskit/ds-lib": "^2.3.0",
52
- "@atlaskit/ssr": "*",
53
- "@atlaskit/visual-regression": "*",
54
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
55
- "@testing-library/react": "^12.1.5",
56
- "@testing-library/react-hooks": "^8.0.1",
57
- "@testing-library/user-event": "^14.4.3",
58
- "react-dom": "^16.8.0",
59
- "react-resource-router": "^0.20.0",
60
- "react-router-dom": "^4.2.2",
61
- "typescript": "~5.4.2",
62
- "wait-for-expect": "^1.2.0"
63
- },
64
- "techstack": {
65
- "@atlassian/frontend": {
66
- "import-structure": [
67
- "atlassian-conventions"
68
- ],
69
- "circular-dependencies": [
70
- "file-and-folder-level"
71
- ]
72
- },
73
- "@repo/internal": {
74
- "dom-events": "use-bind-event-listener",
75
- "analytics": [
76
- "analytics-next"
77
- ],
78
- "design-tokens": [
79
- "color",
80
- "spacing"
81
- ],
82
- "ui-components": [
83
- "lite-mode"
84
- ],
85
- "deprecation": "no-deprecated-imports",
86
- "styling": [
87
- "emotion",
88
- "emotion"
89
- ],
90
- "imports": [
91
- "import-no-extraneous-disable-for-examples-and-docs"
92
- ]
93
- }
94
- },
95
- "homepage": "https://atlassian.design/components/app-provider",
96
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
97
- }
2
+ "name": "@atlaskit/app-provider",
3
+ "version": "1.4.0",
4
+ "description": "A top level provider for the Design System.",
5
+ "author": "Atlassian Pty Ltd",
6
+ "license": "Apache-2.0",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "atlassian": {
11
+ "team": "Design System Team",
12
+ "inPublicMirror": false,
13
+ "releaseModel": "continuous",
14
+ "website": {
15
+ "name": "App provider",
16
+ "category": "Components",
17
+ "status": {
18
+ "type": "beta"
19
+ }
20
+ },
21
+ "runReact18": true
22
+ },
23
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
24
+ "main": "dist/cjs/index.js",
25
+ "module": "dist/esm/index.js",
26
+ "module:es2019": "dist/es2019/index.js",
27
+ "types": "dist/types/index.d.ts",
28
+ "typesVersions": {
29
+ ">=4.5 <4.9": {
30
+ "*": [
31
+ "dist/types-ts4.5/*",
32
+ "dist/types-ts4.5/index.d.ts"
33
+ ]
34
+ }
35
+ },
36
+ "sideEffects": false,
37
+ "atlaskit:src": "src/index.tsx",
38
+ "af:exports": {
39
+ ".": "./src/index.tsx"
40
+ },
41
+ "dependencies": {
42
+ "@atlaskit/tokens": "^1.58.0",
43
+ "@babel/runtime": "^7.0.0",
44
+ "bind-event-listener": "^3.0.0"
45
+ },
46
+ "peerDependencies": {
47
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
48
+ },
49
+ "devDependencies": {
50
+ "@af/visual-regression": "*",
51
+ "@atlaskit/ds-lib": "^2.4.0",
52
+ "@atlaskit/ssr": "*",
53
+ "@atlaskit/visual-regression": "*",
54
+ "@testing-library/react": "^12.1.5",
55
+ "@testing-library/react-hooks": "^8.0.1",
56
+ "@testing-library/user-event": "^14.4.3",
57
+ "react-dom": "^16.8.0",
58
+ "react-resource-router": "^0.20.0",
59
+ "react-router-dom": "^4.2.2",
60
+ "typescript": "~5.4.2",
61
+ "wait-for-expect": "^1.2.0"
62
+ },
63
+ "techstack": {
64
+ "@atlassian/frontend": {
65
+ "import-structure": [
66
+ "atlassian-conventions"
67
+ ],
68
+ "circular-dependencies": [
69
+ "file-and-folder-level"
70
+ ]
71
+ },
72
+ "@repo/internal": {
73
+ "dom-events": "use-bind-event-listener",
74
+ "analytics": [
75
+ "analytics-next"
76
+ ],
77
+ "design-tokens": [
78
+ "color",
79
+ "spacing"
80
+ ],
81
+ "ui-components": [
82
+ "lite-mode"
83
+ ],
84
+ "deprecation": "no-deprecated-imports",
85
+ "styling": [
86
+ "emotion",
87
+ "emotion"
88
+ ],
89
+ "imports": [
90
+ "import-no-extraneous-disable-for-examples-and-docs"
91
+ ]
92
+ }
93
+ },
94
+ "homepage": "https://atlassian.design/components/app-provider"
95
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/app-provider"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using
6
+ > [API Extractor](https://api-extractor.com/).
6
7
  > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
8
 
8
9
  ### Table of contents
@@ -20,19 +21,19 @@ import { ThemeState } from '@atlaskit/tokens';
20
21
 
21
22
  // @public
22
23
  function AppProvider({
23
- children,
24
- defaultColorMode,
25
- defaultTheme,
26
- routerLinkComponent,
24
+ children,
25
+ defaultColorMode,
26
+ defaultTheme,
27
+ routerLinkComponent,
27
28
  }: AppProviderProps): JSX.Element;
28
29
  export default AppProvider;
29
30
 
30
31
  // @public (undocumented)
31
32
  interface AppProviderProps {
32
- children: React_2.ReactNode;
33
- defaultColorMode?: ColorMode;
34
- defaultTheme?: Partial<Theme>;
35
- routerLinkComponent?: RouterLinkComponent<any>;
33
+ children: React_2.ReactNode;
34
+ defaultColorMode?: ColorMode;
35
+ defaultTheme?: Partial<Theme>;
36
+ routerLinkComponent?: RouterLinkComponent<any>;
36
37
  }
37
38
 
38
39
  // @public (undocumented)
@@ -43,17 +44,14 @@ type ReconciledColorMode = Exclude<ColorMode, 'auto'>;
43
44
 
44
45
  // @public (undocumented)
45
46
  type RouterLinkComponent<RouterLinkConfig extends Record<string, any> = never> =
46
- React_2.ForwardRefExoticComponent<
47
- RouterLinkComponentProps<RouterLinkConfig> &
48
- React_2.RefAttributes<HTMLAnchorElement>
49
- >;
47
+ React_2.ForwardRefExoticComponent<
48
+ RouterLinkComponentProps<RouterLinkConfig> & React_2.RefAttributes<HTMLAnchorElement>
49
+ >;
50
50
 
51
51
  // @public (undocumented)
52
- export type RouterLinkComponentProps<
53
- RouterLinkConfig extends Record<string, any> = never,
54
- > = {
55
- href: RouterLinkConfig | string;
56
- children: React_2.ReactNode;
52
+ export type RouterLinkComponentProps<RouterLinkConfig extends Record<string, any> = never> = {
53
+ href: RouterLinkConfig | string;
54
+ children: React_2.ReactNode;
57
55
  };
58
56
 
59
57
  // @public (undocumented)
@@ -63,9 +61,9 @@ type Theme = Omit<ThemeState, 'colorMode' | 'contrastMode'>;
63
61
  export function useColorMode(): ReconciledColorMode;
64
62
 
65
63
  // @public
66
- export const useRouterLink: <
67
- RouterLinkConfig extends Record<string, any> = never,
68
- >() => RouterLinkComponent<RouterLinkConfig> | undefined;
64
+ export const useRouterLink: <RouterLinkConfig extends Record<string, any> = never>() =>
65
+ | RouterLinkComponent<RouterLinkConfig>
66
+ | undefined;
69
67
 
70
68
  // @public
71
69
  export function useSetColorMode(): (value: ColorMode) => void;
@@ -87,7 +85,7 @@ export function useTheme(): Theme;
87
85
 
88
86
  ```json
89
87
  {
90
- "react": "^16.8.0"
88
+ "react": "^16.8.0"
91
89
  }
92
90
  ```
93
91