@storybook/manager 7.3.2 → 7.4.0-alpha.1

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.
Files changed (39) hide show
  1. package/dist/GlobalScrollAreaStyles-UY5SB7EJ-BKTFUTA6.js +7 -0
  2. package/dist/OverlayScrollbars-GZGLA7DL-YJ2Z3IBE.js +1 -0
  3. package/dist/WithTooltip-J57HCPYA-3VOMFVVS.js +1 -0
  4. package/dist/{chunk-JSPL73I3.js → chunk-3J6GS6FI.js} +1 -1
  5. package/dist/chunk-AGB75QX4.js +405 -0
  6. package/dist/{chunk-SJD7EFYL.js → chunk-NBCGHFLK.js} +1 -1
  7. package/dist/{chunk-V7GYLJLR.js → chunk-O2ZUMB77.js} +2 -2
  8. package/dist/{chunk-DP4DR4LA.js → chunk-QMHPSTMR.js} +1 -1
  9. package/dist/chunk-QPL63VNK.js +1 -0
  10. package/dist/{chunk-Z4NRYNHR.js → chunk-RKFFWI2D.js} +1 -1
  11. package/dist/{chunk-6KNXZZZ5.js → chunk-SPUAGIB2.js} +1 -1
  12. package/dist/{formatter-6736J7QO-TGL2ZGQC.js → formatter-SWP5E3XI-FS7NNRKF.js} +1 -1
  13. package/dist/globals.d.ts +1 -1
  14. package/dist/globals.js +1 -1
  15. package/dist/index.js +1 -1
  16. package/dist/runtime.js +1 -1
  17. package/dist/syntaxhighlighter-PONEFOSF-PLQPOLN2.js +1 -0
  18. package/package.json +12 -11
  19. package/dist/CRUD-I5EZL2FS-LBZVDZXV.js +0 -1
  20. package/dist/Communicate-7JXCND2Z-6SIVXWT4.js +0 -1
  21. package/dist/Devices-SUYACUPO-DMGV6ENX.js +0 -1
  22. package/dist/Documents-SGWAY3KW-XZRZ6I6S.js +0 -1
  23. package/dist/Editing-7QFB6ZMG-J5U6QGB6.js +0 -1
  24. package/dist/Git-DZ2D5ZUL-VKBWYJHE.js +0 -1
  25. package/dist/GlobalScrollAreaStyles-4LLX2B3H-DOBSPBNW.js +0 -7
  26. package/dist/Images-S2WTXNGG-NXAYS4VP.js +0 -1
  27. package/dist/Logos-SJTNNI74-F3IVL4UV.js +0 -1
  28. package/dist/OS-YZ2Y4VYS-KGSGCOHC.js +0 -1
  29. package/dist/OverlayScrollbars-OL4C4TVX-FNYA4OIC.js +0 -1
  30. package/dist/People-OD4EV7WZ-DBPUNUXW.js +0 -1
  31. package/dist/Wayfinding-BB4H7CHP-N2QAVLVA.js +0 -1
  32. package/dist/WithTooltip-YBG737T3-GLWUADFI.js +0 -1
  33. package/dist/chunk-GBCXFRBK.js +0 -1
  34. package/dist/chunk-IFNK3PLJ.js +0 -1
  35. package/dist/chunk-JMPBYCHU.js +0 -1
  36. package/dist/chunk-UBXIQABM.js +0 -447
  37. package/dist/syntaxhighlighter-4OVWVELQ-5IZ45DZY.js +0 -1
  38. package/src/typings.d.ts +0 -27
  39. package/src/utils/tree.test.js +0 -93
@@ -1 +0,0 @@
1
- import{SyntaxHighlighter2,createCopyToClipboardFunction,syntaxhighlighter_default}from"./chunk-V7GYLJLR.js";import"./chunk-JMPBYCHU.js";import"./chunk-6KNXZZZ5.js";import"./chunk-JSPL73I3.js";import"./chunk-GBCXFRBK.js";import"./chunk-DP4DR4LA.js";import"./chunk-Z4NRYNHR.js";export{SyntaxHighlighter2 as SyntaxHighlighter,createCopyToClipboardFunction,syntaxhighlighter_default as default};
package/src/typings.d.ts DELETED
@@ -1,27 +0,0 @@
1
- /* eslint-disable no-underscore-dangle, @typescript-eslint/naming-convention */
2
- declare module 'chromatic/isChromatic';
3
-
4
- declare var DOCS_OPTIONS: any;
5
- declare var CONFIG_TYPE: 'DEVELOPMENT' | 'PRODUCTION';
6
- declare var PREVIEW_URL: any;
7
-
8
- declare var __STORYBOOK_ADDONS_MANAGER: any;
9
- declare var RELEASE_NOTES_DATA: any;
10
-
11
- declare var FEATURES: import('@storybook/types').StorybookConfig['features'];
12
-
13
- declare var REFS: any;
14
- declare var VERSIONCHECK: any;
15
- declare var LOGLEVEL: 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'silent' | undefined;
16
-
17
- declare var __REACT__: any;
18
- declare var __REACTDOM__: any;
19
- declare var __STORYBOOKCOMPONENTS__: any;
20
- declare var __STORYBOOKCOMPONENTSEXPERIMENTAL__: any;
21
- declare var __STORYBOOKCHANNELS__: any;
22
- declare var __STORYBOOKCOREEVENTS__: any;
23
- declare var __STORYBOOKROUTER__: any;
24
- declare var __STORYBOOKTHEMING__: any;
25
- declare var __STORYBOOKAPI__: any;
26
- declare var __STORYBOOKADDONS__: any;
27
- declare var __STORYBOOKCLIENTLOGGER__: any;
@@ -1,93 +0,0 @@
1
- import { mockDataset, mockExpanded, mockSelected } from '../components/sidebar/mockdata';
2
-
3
- import * as utils from './tree';
4
-
5
- const noRoot = {
6
- dataset: mockDataset.noRoot,
7
- selected: mockSelected.noRoot,
8
- expanded: mockExpanded.noRoot,
9
- };
10
-
11
- describe('sanity', () => {
12
- test('all exports should be functions', () => {
13
- Object.values(utils).forEach((i) => {
14
- expect(typeof i).toBe('function');
15
- });
16
- });
17
- });
18
-
19
- describe('createId', () => {
20
- test('creates an id', () => {
21
- const inputs = ['testpath', 'testref'];
22
- const output = utils.createId(...inputs);
23
-
24
- expect(output).toEqual('testref_testpath');
25
- });
26
- });
27
-
28
- describe('get', () => {
29
- test('retrieved by key', () => {
30
- const value = {};
31
- const inputs = ['testkey', { testkey: value, x: 'incorrect' }];
32
- const output = utils.get(inputs[0], inputs[1]);
33
-
34
- expect(output).toBe(value);
35
- });
36
- test('retrieve non-existent returns undefined', () => {
37
- const value = {};
38
- const inputs = ['NONEXISTENT', { testkey: value, x: 'incorrect' }];
39
- const output = utils.get(inputs[0], inputs[1]);
40
-
41
- expect(output).toBe(undefined);
42
- });
43
- });
44
-
45
- describe('getParent', () => {
46
- test('retrieved by id (level 0) returns undefined', () => {
47
- const output = utils.getParent('group-1', noRoot.dataset);
48
- expect(output).toBe(undefined);
49
- });
50
- test('retrieved by id (level 1) returns correctly', () => {
51
- const output = utils.getParent('group-1--child-b1', noRoot.dataset);
52
- expect(output).toBe(noRoot.dataset['group-1']);
53
- });
54
- test('retrieved by id (level 2) returns correctly', () => {
55
- const output = utils.getParent('root-1-child-a2--grandchild-a1-1', noRoot.dataset);
56
- expect(output).toBe(noRoot.dataset['root-1-child-a2']);
57
- });
58
- test('retrieve non-existent returns undefined', () => {
59
- const output = utils.getParent('NONEXISTENT', noRoot.dataset);
60
- expect(output).toBe(undefined);
61
- });
62
- });
63
-
64
- describe('getParents', () => {
65
- test('retrieved by id (level 0) returns correctly', () => {
66
- const output = utils.getParents('group-1', noRoot.dataset);
67
- expect(output).toEqual([]);
68
- });
69
- test('retrieved by id (level 1) returns correctly', () => {
70
- const output = utils.getParents('group-1--child-b1', noRoot.dataset);
71
- expect(output).toEqual([noRoot.dataset['group-1']]);
72
- });
73
- test('retrieved by id (level 2) returns correctly', () => {
74
- const output = utils.getParents('root-1-child-a2--grandchild-a1-1', noRoot.dataset);
75
- expect(output).toEqual([noRoot.dataset['root-1-child-a2'], noRoot.dataset['root-1']]);
76
- });
77
- test('retrieve non-existent returns empty array', () => {
78
- const output = utils.getParents('NONEXISTENT', noRoot.dataset);
79
- expect(output).toEqual([]);
80
- });
81
- });
82
-
83
- describe('isStoryHoistable', () => {
84
- test('return true for matching Story and Component name', () => {
85
- const output = utils.isStoryHoistable('Very_Long-Button Story Name', 'VeryLongButtonStoryName');
86
- expect(output).toEqual(true);
87
- });
88
-
89
- test('return false for non-matching names', () => {
90
- const output = utils.isStoryHoistable('Butto Story', 'ButtonStory');
91
- expect(output).toEqual(false);
92
- });
93
- });