@storybook/components 6.5.9-alpha.1 → 6.5.9-alpha.2
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/dist/cjs/{Color-d3116a31.js → Color-a62ba7e9.js} +3 -1
- package/dist/cjs/{OverlayScrollbars-b655a091.js → OverlayScrollbars-c574dc71.js} +3 -1
- package/dist/cjs/{WithTooltip-aa7ec521.js → WithTooltip-f49e8812.js} +6 -2
- package/dist/cjs/{formatter-42139f42.js → formatter-e9350ac6.js} +2 -2
- package/dist/cjs/{index-82acc4b4.js → index-967d55af.js} +9 -22
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/{syntaxhighlighter-3f6db113.js → syntaxhighlighter-9522fde9.js} +6 -2
- package/dist/esm/{Color-e9687cd5.js → Color-3c22bb81.js} +2 -1
- package/dist/esm/{OverlayScrollbars-d54f9566.js → OverlayScrollbars-26c4a78d.js} +2 -1
- package/dist/esm/{WithTooltip-5d9955be.js → WithTooltip-508b8277.js} +3 -2
- package/dist/esm/{formatter-c2d2643c.js → formatter-9dc562d4.js} +2 -2
- package/dist/esm/{index-f6d446d8.js → index-b45716e8.js} +9 -22
- package/dist/esm/index.js +2 -1
- package/dist/esm/{syntaxhighlighter-75381027.js → syntaxhighlighter-82dea71a.js} +3 -2
- package/dist/modern/{Color-31c3091f.js → Color-f9ce6f57.js} +2 -1
- package/dist/modern/{OverlayScrollbars-0d0d9ac6.js → OverlayScrollbars-119b80c2.js} +2 -1
- package/dist/modern/{WithTooltip-c478b6c7.js → WithTooltip-040f3a83.js} +3 -2
- package/dist/modern/{formatter-781ca345.js → formatter-12a1a8d1.js} +2 -2
- package/dist/modern/{index-4e034b71.js → index-9ef3b84b.js} +9 -22
- package/dist/modern/index.js +2 -1
- package/dist/modern/{syntaxhighlighter-848db87b.js → syntaxhighlighter-5c1fdb3d.js} +3 -2
- package/package.json +5 -5
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as __awaiter, S as ScrollArea, a as __rest, A as ActionBar, w as window_1 } from './index-9ef3b84b.js';
|
|
2
2
|
import React__default, { useState, useCallback } from 'react';
|
|
3
3
|
import { logger } from '@storybook/client-logger';
|
|
4
4
|
import { styled } from '@storybook/theming';
|
|
5
|
+
import memoize from 'memoizerific';
|
|
5
6
|
import jsx from 'react-syntax-highlighter/dist/esm/languages/prism/jsx';
|
|
6
7
|
import bash from 'react-syntax-highlighter/dist/esm/languages/prism/bash';
|
|
7
8
|
import css from 'react-syntax-highlighter/dist/esm/languages/prism/css';
|
|
@@ -32,7 +33,7 @@ ReactSyntaxHighlighter.registerLanguage('html', html);
|
|
|
32
33
|
ReactSyntaxHighlighter.registerLanguage('tsx', tsx);
|
|
33
34
|
ReactSyntaxHighlighter.registerLanguage('typescript', typescript);
|
|
34
35
|
ReactSyntaxHighlighter.registerLanguage('graphql', graphql);
|
|
35
|
-
const themedSyntax =
|
|
36
|
+
const themedSyntax = memoize(2)(theme => Object.entries(theme.code || {}).reduce((acc, [key, val]) => Object.assign(Object.assign({}, acc), {
|
|
36
37
|
[`* .${key}`]: val
|
|
37
38
|
}), {}));
|
|
38
39
|
const copyToClipboard = createCopyToClipboardFunction();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/components",
|
|
3
|
-
"version": "6.5.9-alpha.
|
|
3
|
+
"version": "6.5.9-alpha.2",
|
|
4
4
|
"description": "Core Storybook Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -40,11 +40,12 @@
|
|
|
40
40
|
"prepare": "ts-node ../../scripts/prebundle.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@storybook/client-logger": "6.5.9-alpha.
|
|
43
|
+
"@storybook/client-logger": "6.5.9-alpha.2",
|
|
44
44
|
"@storybook/csf": "0.0.2--canary.4566f4d.1",
|
|
45
|
-
"@storybook/theming": "6.5.9-alpha.
|
|
45
|
+
"@storybook/theming": "6.5.9-alpha.2",
|
|
46
46
|
"@types/react-syntax-highlighter": "11.0.5",
|
|
47
47
|
"core-js": "^3.8.2",
|
|
48
|
+
"memoizerific": "^1.11.3",
|
|
48
49
|
"qs": "^6.10.0",
|
|
49
50
|
"react-syntax-highlighter": "^15.4.5",
|
|
50
51
|
"regenerator-runtime": "^0.13.7",
|
|
@@ -61,7 +62,6 @@
|
|
|
61
62
|
"jest": "^26.6.3",
|
|
62
63
|
"lodash": "^4.17.21",
|
|
63
64
|
"markdown-to-jsx": "^7.1.3",
|
|
64
|
-
"memoizerific": "^1.11.3",
|
|
65
65
|
"overlayscrollbars": "^1.13.1",
|
|
66
66
|
"polished": "^4.2.2",
|
|
67
67
|
"prettier": ">=2.2.1 <=2.3.0",
|
|
@@ -80,6 +80,6 @@
|
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
82
|
"bundlerEntrypoint": "./src/index.ts",
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "2d56b47695fae26cb13e94a65198658b1792c9ad",
|
|
84
84
|
"sbmodern": "dist/modern/index.js"
|
|
85
85
|
}
|