react-cosmos-ui 6.0.0-beta.6 → 6.0.0-beta.7

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 (80) hide show
  1. package/dist/components/BaseSvg.d.ts +1 -1
  2. package/dist/components/Icon.d.ts +2 -2
  3. package/dist/components/Illustration.d.ts +2 -2
  4. package/dist/components/KeyBox.d.ts +2 -2
  5. package/dist/components/SidePanel.d.ts +2 -2
  6. package/dist/components/Space.d.ts +2 -2
  7. package/dist/components/TreeView.d.ts +2 -2
  8. package/dist/components/ValueInputTree/ExpandCollapseValues.d.ts +2 -2
  9. package/dist/components/ValueInputTree/ValueInput/BooleanValueInput.d.ts +2 -2
  10. package/dist/components/ValueInputTree/ValueInput/NullValueInput.d.ts +2 -2
  11. package/dist/components/ValueInputTree/ValueInput/NumberValueInput.d.ts +2 -2
  12. package/dist/components/ValueInputTree/ValueInput/StringValueInput.d.ts +2 -2
  13. package/dist/components/ValueInputTree/ValueInput/UndefinedValueInput.d.ts +2 -2
  14. package/dist/components/ValueInputTree/ValueInput/UnserializableValueInput.d.ts +2 -2
  15. package/dist/components/ValueInputTree/ValueInput/ValueInput.d.ts +2 -2
  16. package/dist/components/ValueInputTree/ValueInputDir.d.ts +4 -3
  17. package/dist/components/ValueInputTree/ValueInputDir.js +2 -6
  18. package/dist/components/ValueInputTree/ValueInputTree.js +17 -2
  19. package/dist/components/ValueInputTree/shared.d.ts +1 -0
  20. package/dist/components/ValueInputTree/valueTree.d.ts +1 -1
  21. package/dist/components/ValueInputTree/valueTree.js +10 -5
  22. package/dist/components/buttons/Button32.d.ts +1 -1
  23. package/dist/components/buttons/Button8.d.ts +1 -1
  24. package/dist/components/buttons/IconButton32.d.ts +1 -1
  25. package/dist/components/buttons/IconButton8.d.ts +1 -1
  26. package/dist/components/buttons/shared.js +4 -1
  27. package/dist/components/icons/index.d.ts +30 -30
  28. package/dist/components/illustrations/ArtificialIntelligence.d.ts +2 -2
  29. package/dist/components/illustrations/Astronaut.d.ts +2 -2
  30. package/dist/components/illustrations/BlankCanvas.d.ts +2 -2
  31. package/dist/components/inputs/NumberInput.d.ts +2 -2
  32. package/dist/components/inputs/Select.d.ts +2 -2
  33. package/dist/cosmos.decorator.d.ts +1 -1
  34. package/dist/playground.bundle.js +328 -319
  35. package/dist/playground.bundle.js.map +1 -1
  36. package/dist/plugins/ClassStatePanel/ClassStatePanel/ComponentClassState.d.ts +2 -2
  37. package/dist/plugins/ControlPanel/ControlPanel.d.ts +2 -2
  38. package/dist/plugins/ControlSelect/SelectValueInput.d.ts +2 -2
  39. package/dist/plugins/FixtureBookmark/BookmarkFixtureButton.d.ts +2 -2
  40. package/dist/plugins/FixtureBookmark/FixtureBookmarks.d.ts +2 -2
  41. package/dist/plugins/FixtureSearch/FixtureSearchHeader.d.ts +2 -2
  42. package/dist/plugins/FixtureSearch/FixtureSearchOverlay.d.ts +2 -2
  43. package/dist/plugins/FixtureSearch/FixtureSearchOverlay.js +10 -4
  44. package/dist/plugins/FixtureSearch/FixtureSearchResult.d.ts +2 -2
  45. package/dist/plugins/FixtureSearch/FixtureSearchShortcuts.d.ts +2 -2
  46. package/dist/plugins/FixtureTree/BlankState.d.ts +2 -2
  47. package/dist/plugins/FixtureTree/FixtureTree/FixtureButton.d.ts +2 -2
  48. package/dist/plugins/FixtureTree/FixtureTree/FixtureDir.d.ts +2 -2
  49. package/dist/plugins/FixtureTree/FixtureTree/FixtureLink.d.ts +2 -2
  50. package/dist/plugins/FixtureTree/FixtureTree/MultiFixtureButton.d.ts +2 -2
  51. package/dist/plugins/FixtureTree/FixtureTree/MultiFixtureChildButton.d.ts +2 -2
  52. package/dist/plugins/FixtureTree/FixtureTreeContainer.d.ts +2 -2
  53. package/dist/plugins/FixtureTree/FixtureTreeHeader.d.ts +2 -2
  54. package/dist/plugins/FullScreenButton/FullScreenButton.d.ts +2 -2
  55. package/dist/plugins/Notifications/Notifications.d.ts +2 -2
  56. package/dist/plugins/PluginList/PluginList.d.ts +2 -2
  57. package/dist/plugins/PropsPanel/BlankState.d.ts +2 -2
  58. package/dist/plugins/PropsPanel/PropsPanel/ComponentProps.d.ts +2 -2
  59. package/dist/plugins/RemoteRenderer/RemoteButton/index.d.ts +2 -2
  60. package/dist/plugins/RendererPreview/RendererOverlay/RemoteRendererConnected.d.ts +2 -2
  61. package/dist/plugins/RendererPreview/RendererOverlay/RemoteRendererOverlay.d.ts +2 -2
  62. package/dist/plugins/RendererPreview/RendererOverlay/RendererOverlay.d.ts +2 -2
  63. package/dist/plugins/RendererPreview/RendererOverlay/WaitingForRenderer.d.ts +2 -2
  64. package/dist/plugins/ResponsivePreview/ResponsivePreview/ResponsivePreview.d.ts +2 -2
  65. package/dist/plugins/ResponsivePreview/ToggleButton/index.d.ts +2 -2
  66. package/dist/plugins/Root/GlobalHeader.d.ts +2 -2
  67. package/dist/plugins/Root/HomeOverlay/HomeOverlay.d.ts +2 -2
  68. package/dist/plugins/Root/HomeOverlay/KeyShortcut.d.ts +2 -2
  69. package/dist/plugins/Root/HomeOverlay/NoFixtureSelected.d.ts +2 -2
  70. package/dist/plugins/Root/HomeOverlay/WelcomeCosmos.d.ts +2 -2
  71. package/dist/plugins/Root/Root.d.ts +2 -2
  72. package/dist/plugins/Root/ToggleNavButton.d.ts +2 -2
  73. package/dist/slots/ControlActionSlot.d.ts +2 -2
  74. package/dist/slots/ControlSlot.d.ts +2 -2
  75. package/dist/slots/FixtureActionSlot.d.ts +2 -2
  76. package/dist/slots/NavRowSlot.d.ts +2 -2
  77. package/dist/slots/RendererActionSlot.d.ts +2 -2
  78. package/dist/slots/SidePanelRowSlot.d.ts +2 -2
  79. package/dist/slots/ValueInputSlot.d.ts +2 -2
  80. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FixtureState, FixtureStateClassState, StateUpdater } from 'react-cosmos-core';
3
3
  import { FixtureExpansion, OnElementExpansionChange } from '../../../components/ValueInputTree/index.js';
4
4
  type Props = {
@@ -7,5 +7,5 @@ type Props = {
7
7
  onFixtureStateChange: (stateUpdater: StateUpdater<FixtureState>) => void;
8
8
  onElementExpansionChange: OnElementExpansionChange;
9
9
  };
10
- export declare function ComponentClassState({ fsClassState, fixtureExpansion, onFixtureStateChange, onElementExpansionChange, }: Props): JSX.Element;
10
+ export declare function ComponentClassState({ fsClassState, fixtureExpansion, onFixtureStateChange, onElementExpansionChange, }: Props): React.JSX.Element;
11
11
  export {};
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FixtureState, StateUpdater } from 'react-cosmos-core';
3
3
  type Props = {
4
4
  fixtureState: FixtureState;
5
5
  controlActionOrder: string[];
6
6
  onFixtureStateChange: (stateUpdater: StateUpdater<FixtureState>) => void;
7
7
  };
8
- export declare function ControlPanel({ fixtureState, controlActionOrder, onFixtureStateChange, }: Props): JSX.Element | null;
8
+ export declare function ControlPanel({ fixtureState, controlActionOrder, onFixtureStateChange, }: Props): React.JSX.Element | null;
9
9
  export {};
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FixtureStateSelectControl } from 'react-cosmos-core';
3
3
  type Props = {
4
4
  name: string;
5
5
  control: FixtureStateSelectControl;
6
6
  onChange: (name: string, select: FixtureStateSelectControl) => unknown;
7
7
  };
8
- export declare function SelectValueInput({ name, control, onChange }: Props): JSX.Element;
8
+ export declare function SelectValueInput({ name, control, onChange }: Props): React.JSX.Element;
9
9
  export {};
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  selected: boolean;
4
4
  onClick: () => unknown;
5
5
  };
6
- export declare function BookmarkFixtureButton({ selected, onClick }: Props): JSX.Element;
6
+ export declare function BookmarkFixtureButton({ selected, onClick }: Props): React.JSX.Element;
7
7
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FixtureId, FlatFixtureTree, FlatFixtureTreeItem } from 'react-cosmos-core';
3
3
  type Props = {
4
4
  bookmarks: FlatFixtureTree;
@@ -6,5 +6,5 @@ type Props = {
6
6
  onFixtureSelect: (fixtureId: FixtureId) => void;
7
7
  onBookmarkDelete: (fixtureItem: FlatFixtureTreeItem) => void;
8
8
  };
9
- export declare function FixtureBookmarks({ bookmarks, selectedFixtureId, onFixtureSelect, onBookmarkDelete, }: Props): JSX.Element | null;
9
+ export declare function FixtureBookmarks({ bookmarks, selectedFixtureId, onFixtureSelect, onBookmarkDelete, }: Props): React.JSX.Element | null;
10
10
  export {};
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  fixtureSelected: boolean;
4
4
  onOpen: () => unknown;
5
5
  onCloseNav: () => unknown;
6
6
  };
7
- export declare function FixtureSearchHeader({ fixtureSelected, onOpen, onCloseNav, }: Props): JSX.Element;
7
+ export declare function FixtureSearchHeader({ fixtureSelected, onOpen, onCloseNav, }: Props): React.JSX.Element;
8
8
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FixtureId, FixtureList } from 'react-cosmos-core';
3
3
  type Props = {
4
4
  searchText: string;
@@ -10,5 +10,5 @@ type Props = {
10
10
  onClose: () => unknown;
11
11
  onSelect: (fixtureId: FixtureId, revealFixture: boolean) => unknown;
12
12
  };
13
- export declare function FixtureSearchOverlay({ searchText, fixturesDir, fixtureFileSuffix, fixtures, selectedFixtureId, onSetSearchText, onClose, onSelect, }: Props): JSX.Element;
13
+ export declare function FixtureSearchOverlay({ searchText, fixturesDir, fixtureFileSuffix, fixtures, selectedFixtureId, onSetSearchText, onClose, onSelect, }: Props): React.JSX.Element;
14
14
  export {};
@@ -230,8 +230,10 @@ const Content = styled.div `
230
230
  max-width: 640px;
231
231
  border-radius: 3px;
232
232
  background: ${grey248};
233
- box-shadow: rgba(15, 15, 15, 0.05) 0px 0px 0px 1px,
234
- rgba(15, 15, 15, 0.1) 0px 5px 10px, rgba(15, 15, 15, 0.2) 0px 15px 40px;
233
+ box-shadow:
234
+ rgba(15, 15, 15, 0.05) 0px 0px 0px 1px,
235
+ rgba(15, 15, 15, 0.1) 0px 5px 10px,
236
+ rgba(15, 15, 15, 0.2) 0px 15px 40px;
235
237
  display: flex;
236
238
  flex-direction: column;
237
239
  overflow: hidden;
@@ -277,7 +279,9 @@ const HelpButton = styled.div `
277
279
  background: ${props => (props.selected ? grey224 : 'transparent')};
278
280
  color: ${props => (props.selected ? grey128 : grey176)};
279
281
  cursor: pointer;
280
- transition: background ${quick}s, color ${quick}s;
282
+ transition:
283
+ background ${quick}s,
284
+ color ${quick}s;
281
285
 
282
286
  :hover {
283
287
  color: ${grey128};
@@ -287,7 +291,9 @@ const ShortcutsContainer = styled.div `
287
291
  height: ${props => (props.visible ? 72 : 0)}px;
288
292
  overflow: hidden;
289
293
  opacity: ${props => (props.visible ? 1 : 0)};
290
- transition: height ${quick}s, opacity ${quick}s;
294
+ transition:
295
+ height ${quick}s,
296
+ opacity ${quick}s;
291
297
  user-select: none;
292
298
  `;
293
299
  const ResultsViewport = styled.div `
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FixtureId, FlatFixtureTreeItem } from 'react-cosmos-core';
3
3
  type Props = {
4
4
  active: boolean;
@@ -6,5 +6,5 @@ type Props = {
6
6
  fixtureItem: FlatFixtureTreeItem;
7
7
  onSelect: (fixtureId: FixtureId, revealFixture: boolean) => unknown;
8
8
  };
9
- export declare function FixtureSearchResult({ active, cleanFixturePath, fixtureItem, onSelect, }: Props): JSX.Element;
9
+ export declare function FixtureSearchResult({ active, cleanFixturePath, fixtureItem, onSelect, }: Props): React.JSX.Element;
10
10
  export {};
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare function FixtureSearchShortcuts(): JSX.Element;
1
+ import React from 'react';
2
+ export declare function FixtureSearchShortcuts(): React.JSX.Element;
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  fixturesDir: string;
4
4
  fixtureFileSuffix: string;
5
5
  };
6
- export declare function BlankState({ fixturesDir, fixtureFileSuffix }: Props): JSX.Element;
6
+ export declare function BlankState({ fixturesDir, fixtureFileSuffix }: Props): React.JSX.Element;
7
7
  export declare const IconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
8
8
  export declare const NoWrap: import("styled-components").StyledComponent<"span", any, {}, never>;
9
9
  export {};
@@ -1,4 +1,4 @@
1
- import { RefObject } from 'react';
1
+ import React, { RefObject } from 'react';
2
2
  import { FixtureId } from 'react-cosmos-core';
3
3
  type Props = {
4
4
  name: string;
@@ -8,5 +8,5 @@ type Props = {
8
8
  selectedRef: RefObject<HTMLElement>;
9
9
  onSelect: (fixtureId: FixtureId) => unknown;
10
10
  };
11
- export declare function FixtureButton({ name, fixturePath, indentLevel, selected, selectedRef, onSelect, }: Props): JSX.Element;
11
+ export declare function FixtureButton({ name, fixturePath, indentLevel, selected, selectedRef, onSelect, }: Props): React.JSX.Element;
12
12
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  name: string;
4
4
  expanded: boolean;
@@ -6,5 +6,5 @@ type Props = {
6
6
  selected: boolean;
7
7
  onToggle: () => unknown;
8
8
  };
9
- export declare function FixtureDir({ name, expanded, indentLevel, selected, onToggle, }: Props): JSX.Element;
9
+ export declare function FixtureDir({ name, expanded, indentLevel, selected, onToggle, }: Props): React.JSX.Element;
10
10
  export {};
@@ -1,9 +1,9 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { FixtureId } from 'react-cosmos-core';
3
3
  type Props = {
4
4
  children: ReactNode;
5
5
  fixtureId: FixtureId;
6
6
  onSelect: (fixtureId: FixtureId) => unknown;
7
7
  };
8
- export declare function FixtureLink({ children, fixtureId, onSelect }: Props): JSX.Element;
8
+ export declare function FixtureLink({ children, fixtureId, onSelect }: Props): React.JSX.Element;
9
9
  export {};
@@ -1,4 +1,4 @@
1
- import { RefObject } from 'react';
1
+ import React, { RefObject } from 'react';
2
2
  import { FixtureId } from 'react-cosmos-core';
3
3
  type Props = {
4
4
  name: string;
@@ -10,5 +10,5 @@ type Props = {
10
10
  selectedRef: RefObject<HTMLElement>;
11
11
  onSelect: (fixtureId: FixtureId) => unknown;
12
12
  };
13
- export declare function MultiFixtureButton({ name, fixturePath, fixtureNames, indentLevel, selected, selectedFixtureId, selectedRef, onSelect, }: Props): JSX.Element;
13
+ export declare function MultiFixtureButton({ name, fixturePath, fixtureNames, indentLevel, selected, selectedFixtureId, selectedRef, onSelect, }: Props): React.JSX.Element;
14
14
  export {};
@@ -1,4 +1,4 @@
1
- import { RefObject } from 'react';
1
+ import React, { RefObject } from 'react';
2
2
  import { FixtureId } from 'react-cosmos-core';
3
3
  type Props = {
4
4
  name: string;
@@ -8,5 +8,5 @@ type Props = {
8
8
  selectedRef: RefObject<HTMLElement>;
9
9
  onSelect: (fixtureId: FixtureId) => unknown;
10
10
  };
11
- export declare function MultiFixtureChildButton({ name, fixtureId, indentLevel, selected, selectedRef, onSelect, }: Props): JSX.Element;
11
+ export declare function MultiFixtureChildButton({ name, fixtureId, indentLevel, selected, selectedRef, onSelect, }: Props): React.JSX.Element;
12
12
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FixtureId, FixtureList } from 'react-cosmos-core';
3
3
  import { TreeExpansion } from '../../shared/treeExpansion.js';
4
4
  type Props = {
@@ -10,5 +10,5 @@ type Props = {
10
10
  selectFixture: (fixtureId: FixtureId) => void;
11
11
  setExpansion: (expansion: TreeExpansion) => unknown;
12
12
  };
13
- export declare function FixtureTreeContainer({ fixturesDir, fixtureFileSuffix, selectedFixtureId, fixtures, expansion, selectFixture, setExpansion, }: Props): JSX.Element;
13
+ export declare function FixtureTreeContainer({ fixturesDir, fixtureFileSuffix, selectedFixtureId, fixtures, expansion, selectFixture, setExpansion, }: Props): React.JSX.Element;
14
14
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FixtureList } from 'react-cosmos-core';
3
3
  import { TreeExpansion } from '../../shared/treeExpansion.js';
4
4
  type Props = {
@@ -8,5 +8,5 @@ type Props = {
8
8
  expansion: TreeExpansion;
9
9
  setExpansion: (treeExpansion: TreeExpansion) => unknown;
10
10
  };
11
- export declare function FixtureTreeHeader({ fixturesDir, fixtureFileSuffix, fixtures, expansion, setExpansion, }: Props): JSX.Element;
11
+ export declare function FixtureTreeHeader({ fixturesDir, fixtureFileSuffix, fixtures, expansion, setExpansion, }: Props): React.JSX.Element;
12
12
  export {};
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  onClick: () => void;
4
4
  };
5
- export declare function FullScreenButton({ onClick }: Props): JSX.Element;
5
+ export declare function FullScreenButton({ onClick }: Props): React.JSX.Element;
6
6
  export {};
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { NotificationItem } from './spec.js';
3
3
  type Props = {
4
4
  notifications: NotificationItem[];
5
5
  };
6
- export declare function Notifications({ notifications }: Props): JSX.Element;
6
+ export declare function Notifications({ notifications }: Props): React.JSX.Element;
7
7
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export type SimplePlugin = {
3
3
  name: string;
4
4
  enabled: boolean;
@@ -7,5 +7,5 @@ type Props = {
7
7
  plugins: SimplePlugin[];
8
8
  enable: (pluginName: string, enabled: boolean) => void;
9
9
  };
10
- export declare function PluginList({ plugins, enable }: Props): JSX.Element;
10
+ export declare function PluginList({ plugins, enable }: Props): React.JSX.Element;
11
11
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- export declare function BlankState(): JSX.Element;
1
+ import React from 'react';
2
+ export declare function BlankState(): React.JSX.Element;
3
3
  export declare const IconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  export declare const NoWrap: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FixtureState, FixtureStateProps, StateUpdater } from 'react-cosmos-core';
3
3
  import { FixtureExpansion, OnElementExpansionChange } from '../../../components/ValueInputTree/index.js';
4
4
  type Props = {
@@ -7,5 +7,5 @@ type Props = {
7
7
  onFixtureStateChange: (stateUpdater: StateUpdater<FixtureState>) => void;
8
8
  onElementExpansionChange: OnElementExpansionChange;
9
9
  };
10
- export declare function ComponentProps({ fsProps, fixtureExpansion, onFixtureStateChange, onElementExpansionChange, }: Props): JSX.Element;
10
+ export declare function ComponentProps({ fsProps, fixtureExpansion, onFixtureStateChange, onElementExpansionChange, }: Props): React.JSX.Element;
11
11
  export {};
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { NotificationItem } from '../../Notifications/spec.js';
3
3
  type Props = {
4
4
  devServerOn: boolean;
5
5
  rendererUrl: null | string;
6
6
  pushNotification: (notification: NotificationItem) => unknown;
7
7
  };
8
- export declare function RemoteButton({ devServerOn, rendererUrl, pushNotification, }: Props): JSX.Element | null;
8
+ export declare function RemoteButton({ devServerOn, rendererUrl, pushNotification, }: Props): React.JSX.Element | null;
9
9
  export {};
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare function RemoteRendererConnected(): JSX.Element;
1
+ import React from 'react';
2
+ export declare function RemoteRendererConnected(): React.JSX.Element;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  rendererConnected: boolean;
4
4
  };
5
- export declare function RemoteRendererOverlay({ rendererConnected }: Props): JSX.Element;
5
+ export declare function RemoteRendererOverlay({ rendererConnected }: Props): React.JSX.Element;
6
6
  export {};
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { RuntimeStatus } from '../spec.js';
3
3
  type Props = {
4
4
  runtimeStatus: RuntimeStatus;
5
5
  };
6
- export declare function RendererOverlay({ runtimeStatus }: Props): JSX.Element | null;
6
+ export declare function RendererOverlay({ runtimeStatus }: Props): React.JSX.Element | null;
7
7
  export {};
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare function WaitingForRenderer(): JSX.Element;
1
+ import React from 'react';
2
+ export declare function WaitingForRenderer(): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Dispatch, ReactNode, SetStateAction } from 'react';
1
+ import React, { Dispatch, ReactNode, SetStateAction } from 'react';
2
2
  import { ResponsiveDevice, ResponsiveViewport } from '../spec.js';
3
3
  type Props = {
4
4
  children?: ReactNode;
@@ -9,5 +9,5 @@ type Props = {
9
9
  setViewport: Dispatch<SetStateAction<ResponsiveViewport>>;
10
10
  setScaled: (scaled: boolean) => unknown;
11
11
  };
12
- export declare function ResponsivePreview({ children, devices, enabled, viewport, scaled, setViewport, setScaled, }: Props): JSX.Element;
12
+ export declare function ResponsivePreview({ children, devices, enabled, viewport, scaled, setViewport, setScaled, }: Props): React.JSX.Element;
13
13
  export {};
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  selected: boolean;
4
4
  onToggle: () => unknown;
5
5
  };
6
- export declare function ToggleButton({ selected, onToggle }: Props): JSX.Element;
6
+ export declare function ToggleButton({ selected, onToggle }: Props): React.JSX.Element;
7
7
  export {};
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  rendererConnected: boolean;
4
4
  globalActionOrder: string[];
5
5
  };
6
- export declare function GlobalHeader({ rendererConnected, globalActionOrder }: Props): JSX.Element;
6
+ export declare function GlobalHeader({ rendererConnected, globalActionOrder }: Props): React.JSX.Element;
7
7
  export {};
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  welcomeDismissed: boolean;
4
4
  onDismissWelcome: () => unknown;
5
5
  onShowWelcome: () => unknown;
6
6
  };
7
- export declare function HomeOverlay({ welcomeDismissed, onDismissWelcome, onShowWelcome, }: Props): JSX.Element;
7
+ export declare function HomeOverlay({ welcomeDismissed, onDismissWelcome, onShowWelcome, }: Props): React.JSX.Element;
8
8
  export {};
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  keys: string[];
4
4
  label: string;
5
5
  };
6
- export declare function KeyShortcut({ keys, label }: Props): JSX.Element;
6
+ export declare function KeyShortcut({ keys, label }: Props): React.JSX.Element;
7
7
  export {};
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  onShowWelcome: () => unknown;
4
4
  };
5
- export declare function NoFixtureSelected({ onShowWelcome }: Props): JSX.Element;
5
+ export declare function NoFixtureSelected({ onShowWelcome }: Props): React.JSX.Element;
6
6
  export {};
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  onDismissWelcome: () => unknown;
4
4
  };
5
- export declare function WelcomeCosmos({ onDismissWelcome }: Props): JSX.Element;
5
+ export declare function WelcomeCosmos({ onDismissWelcome }: Props): React.JSX.Element;
6
6
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FixtureId, FixtureState, FlatFixtureTreeItem, StateUpdater } from 'react-cosmos-core';
3
3
  type Props = {
4
4
  fixtureItems: FlatFixtureTreeItem[];
@@ -26,5 +26,5 @@ type Props = {
26
26
  onDismissWelcome: () => unknown;
27
27
  onShowWelcome: () => unknown;
28
28
  };
29
- export declare function Root({ fixtureItems, selectedFixtureId, rendererConnected, fixtureState, navOpen, panelOpen, navWidth, panelWidth, sidePanelRowOrder, globalActionOrder, globalOrder, navRowOrder, fixtureActionOrder, rendererActionOrder, onToggleNav, onTogglePanel, onReloadRenderer, onCloseFixture, onFixtureStateChange, setNavWidth, setPanelWidth, welcomeDismissed, onDismissWelcome, onShowWelcome, }: Props): JSX.Element;
29
+ export declare function Root({ fixtureItems, selectedFixtureId, rendererConnected, fixtureState, navOpen, panelOpen, navWidth, panelWidth, sidePanelRowOrder, globalActionOrder, globalOrder, navRowOrder, fixtureActionOrder, rendererActionOrder, onToggleNav, onTogglePanel, onReloadRenderer, onCloseFixture, onFixtureStateChange, setNavWidth, setPanelWidth, welcomeDismissed, onDismissWelcome, onShowWelcome, }: Props): React.JSX.Element;
30
30
  export {};
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  disabled?: boolean;
4
4
  selected: boolean;
5
5
  onToggle: () => unknown;
6
6
  };
7
- export declare function ToggleNavButton({ disabled, selected, onToggle }: Props): JSX.Element;
7
+ export declare function ToggleNavButton({ disabled, selected, onToggle }: Props): React.JSX.Element;
8
8
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FixtureStateControls } from 'react-cosmos-core';
3
3
  export type ControlActionSlotProps = {
4
4
  controls: FixtureStateControls;
@@ -7,5 +7,5 @@ type Props = {
7
7
  slotProps: ControlActionSlotProps;
8
8
  plugOrder: string[];
9
9
  };
10
- export declare function ControlActionSlot({ slotProps, plugOrder }: Props): JSX.Element;
10
+ export declare function ControlActionSlot({ slotProps, plugOrder }: Props): React.JSX.Element;
11
11
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FixtureState, FixtureStateControl, StateUpdater } from 'react-cosmos-core';
3
3
  export type ControlSlotProps<TControl extends FixtureStateControl> = {
4
4
  controlName: string;
@@ -8,5 +8,5 @@ export type ControlSlotProps<TControl extends FixtureStateControl> = {
8
8
  type Props = {
9
9
  slotProps: ControlSlotProps<any>;
10
10
  };
11
- export declare function ControlSlot({ slotProps }: Props): JSX.Element;
11
+ export declare function ControlSlot({ slotProps }: Props): React.JSX.Element;
12
12
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FlatFixtureTreeItem } from 'react-cosmos-core';
3
3
  export type FixtureActionSlotProps = {
4
4
  fixtureItem: FlatFixtureTreeItem;
@@ -7,5 +7,5 @@ type Props = {
7
7
  slotProps: FixtureActionSlotProps;
8
8
  plugOrder: string[];
9
9
  };
10
- export declare function FixtureActionSlot({ slotProps, plugOrder }: Props): JSX.Element;
10
+ export declare function FixtureActionSlot({ slotProps, plugOrder }: Props): React.JSX.Element;
11
11
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export type NavRowSlotProps = {
3
3
  onCloseNav: () => unknown;
4
4
  };
@@ -6,5 +6,5 @@ type Props = {
6
6
  slotProps: NavRowSlotProps;
7
7
  plugOrder: string[];
8
8
  };
9
- export declare function NavRowSlot({ slotProps, plugOrder }: Props): JSX.Element;
9
+ export declare function NavRowSlot({ slotProps, plugOrder }: Props): React.JSX.Element;
10
10
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FixtureId } from 'react-cosmos-core';
3
3
  export type RendererActionSlotProps = {
4
4
  fixtureId: FixtureId;
@@ -7,5 +7,5 @@ type Props = {
7
7
  slotProps: RendererActionSlotProps;
8
8
  plugOrder: string[];
9
9
  };
10
- export declare function RendererActionSlot({ slotProps, plugOrder }: Props): JSX.Element;
10
+ export declare function RendererActionSlot({ slotProps, plugOrder }: Props): React.JSX.Element;
11
11
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FixtureId, FixtureState, StateUpdater } from 'react-cosmos-core';
3
3
  export type SidePanelRowSlotProps = {
4
4
  fixtureId: FixtureId;
@@ -9,5 +9,5 @@ type Props = {
9
9
  slotProps: SidePanelRowSlotProps;
10
10
  plugOrder: string[];
11
11
  };
12
- export declare function SidePanelRowSlot({ slotProps, plugOrder }: Props): JSX.Element;
12
+ export declare function SidePanelRowSlot({ slotProps, plugOrder }: Props): React.JSX.Element;
13
13
  export {};
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { FixtureStatePrimitiveValue, FixtureStateUnserializableValue, PrimitiveData } from 'react-cosmos-core';
3
3
  type LeafValue = FixtureStatePrimitiveValue | FixtureStateUnserializableValue;
4
4
  export type ValueInputSlotProps = {
@@ -12,5 +12,5 @@ type Props = {
12
12
  children: ReactNode;
13
13
  slotProps: ValueInputSlotProps;
14
14
  };
15
- export declare function ValueInputSlot({ children, slotProps }: Props): JSX.Element;
15
+ export declare function ValueInputSlot({ children, slotProps }: Props): React.JSX.Element;
16
16
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-cosmos-ui",
3
- "version": "6.0.0-beta.6",
3
+ "version": "6.0.0-beta.7",
4
4
  "description": "React Cosmos UI",
5
5
  "repository": "https://github.com/react-cosmos/react-cosmos/tree/main/packages/react-cosmos-ui",
6
6
  "license": "MIT",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "lodash-es": "^4.17.21",
18
- "react-cosmos-core": "6.0.0-beta.5"
18
+ "react-cosmos-core": "6.0.0-beta.7"
19
19
  },
20
20
  "devDependencies": {
21
21
  "fuzzaldrin-plus": "^0.6.0",
@@ -23,5 +23,5 @@
23
23
  "react-plugin": "^3.0.0-alpha.4",
24
24
  "styled-components": "^5.3.10"
25
25
  },
26
- "gitHead": "472a60c4d2113cb4ae6777d76fc33b13ce76c0af"
26
+ "gitHead": "0d57027263ffb3d55fa1feb31db3640db2e89cc9"
27
27
  }