@atlaskit/storybook-addon-design-system 1.3.1 → 3.0.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,5 +1,31 @@
1
1
  # @atlaskit/storybook-addon-design-system
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#106696](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/106696)
8
+ [`5341965ff8dbe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5341965ff8dbe) -
9
+ Updated to use ESM syntax for exports.
10
+
11
+ ## 2.0.0
12
+
13
+ ### Major Changes
14
+
15
+ - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
16
+ [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
17
+ This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
18
+ status of only supporting React 18 going forward. No explicit breaking change to React support has
19
+ been made in this release, but this is to signify going forward, breaking changes for React 16 or
20
+ React 17 may come via non-major semver releases.
21
+
22
+ Please refer this community post for more details:
23
+ https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
3
29
  ## 1.3.1
4
30
 
5
31
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { Renderer, StoryContext, PartialStoryFn as StoryFunction } from '@storybook/types';
3
- declare const withDesignTokens: (StoryFn: StoryFunction<Renderer>, context: StoryContext<Renderer>) => JSX.Element;
3
+ declare const withDesignTokens: (StoryFn: StoryFunction<Renderer>, context: StoryContext<Renderer>) => React.JSX.Element;
4
4
  export default withDesignTokens;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  /**
3
3
  * __Tool__
4
4
  *
5
5
  * ADS Toolbar UI, visible in the topbar of the storybook UI.
6
6
  */
7
- declare const Tool: () => JSX.Element;
7
+ declare const Tool: () => React.JSX.Element;
8
8
  export default Tool;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { Renderer, StoryContext, PartialStoryFn as StoryFunction } from '@storybook/types';
3
- declare const withDesignTokens: (StoryFn: StoryFunction<Renderer>, context: StoryContext<Renderer>) => JSX.Element;
3
+ declare const withDesignTokens: (StoryFn: StoryFunction<Renderer>, context: StoryContext<Renderer>) => React.JSX.Element;
4
4
  export default withDesignTokens;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  /**
3
3
  * __Tool__
4
4
  *
5
5
  * ADS Toolbar UI, visible in the topbar of the storybook UI.
6
6
  */
7
- declare const Tool: () => JSX.Element;
7
+ declare const Tool: () => React.JSX.Element;
8
8
  export default Tool;
package/manager.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* eslint-disable */
2
- import './dist/esm/manager';
2
+ import './dist/esm/manager.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/storybook-addon-design-system",
3
- "version": "1.3.1",
3
+ "version": "3.0.0",
4
4
  "description": "Design token storybook addon",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {
@@ -33,17 +33,17 @@
33
33
  ".": "./src/index.tsx"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/tokens": "^3.0.0",
36
+ "@atlaskit/tokens": "^4.5.0",
37
37
  "@babel/runtime": "^7.0.0",
38
38
  "@storybook/components": "^8.4.7",
39
39
  "@storybook/icons": "^1.2.9",
40
- "@storybook/manager-api": "^8.4.7",
41
- "@storybook/preview-api": "^8.4.7",
40
+ "@storybook/manager-api": "^8.5.0",
41
+ "@storybook/preview-api": "^8.5.0",
42
42
  "@storybook/types": "8.0.0",
43
- "storybook": "^8.4.7"
43
+ "storybook": "^8.5.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
46
+ "react": "^18.2.0"
47
47
  },
48
48
  "bundler": {
49
49
  "exportEntries": [
package/preset.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* eslint-disable */
2
- module.exports = require('./dist/esm/preset.js');
2
+ export { webpack } from './dist/esm/preset.js';
package/preview.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* eslint-disable */
2
- export { default } from './dist/esm/preview';
2
+ export { default } from './dist/esm/preview.js';