Renamed @theatre/dataverse-react to @theatre/react
This commit is contained in:
parent
69a12440ca
commit
1452c9ebbe
60 changed files with 80 additions and 80 deletions
|
@ -2,7 +2,7 @@ import OutlinePanel from '@theatre/studio/panels/OutlinePanel/OutlinePanel'
|
|||
import DetailPanel from '@theatre/studio/panels/DetailPanel/DetailPanel'
|
||||
import React from 'react'
|
||||
import getStudio from '@theatre/studio/getStudio'
|
||||
import {useVal} from '@theatre/dataverse-react'
|
||||
import {useVal} from '@theatre/react'
|
||||
import PaneWrapper from '@theatre/studio/panels/BasePanel/PaneWrapper'
|
||||
import SequenceEditorPanel from '@theatre/studio/panels/SequenceEditorPanel/SequenceEditorPanel'
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import getStudio from '@theatre/studio/getStudio'
|
||||
import {usePrism, useVal} from '@theatre/dataverse-react'
|
||||
import {usePrism, useVal} from '@theatre/react'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import React, {useEffect} from 'react'
|
||||
import styled, {createGlobalStyle, StyleSheetManager} from 'styled-components'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {val} from '@theatre/dataverse'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {$IntentionalAny, VoidFn} from '@theatre/shared/utils/types'
|
||||
import getStudio from '@theatre/studio/getStudio'
|
||||
import type {PanelPosition} from '@theatre/studio/store/types'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {getOutlineSelection} from '@theatre/studio/selectors'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
import {isProject, isSheetObject} from '@theatre/shared/instanceTypes'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {useVal} from '@theatre/dataverse-react'
|
||||
import {useVal} from '@theatre/react'
|
||||
import getStudio from '@theatre/studio/getStudio'
|
||||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import type {PropTypeConfig_Compound} from '@theatre/core/propTypes'
|
||||
import {isPropConfigComposite} from '@theatre/shared/propTypes/utils'
|
||||
import type SheetObject from '@theatre/core/sheetObjects/SheetObject'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {$IntentionalAny} from '@theatre/shared/utils/types'
|
||||
import {getPointerParts} from '@theatre/dataverse'
|
||||
import last from 'lodash-es/last'
|
||||
|
|
|
@ -4,7 +4,7 @@ import getStudio from '@theatre/studio/getStudio'
|
|||
import type Scrub from '@theatre/studio/Scrub'
|
||||
import type {IContextMenuItem} from '@theatre/studio/uiComponents/simpleContextMenu/useContextMenu'
|
||||
import getDeep from '@theatre/shared/utils/getDeep'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {$FixMe, SerializablePrimitive} from '@theatre/shared/utils/types'
|
||||
import {getPointerParts, prism, val} from '@theatre/dataverse'
|
||||
import get from 'lodash-es/get'
|
||||
|
|
|
@ -2,7 +2,7 @@ import type SheetObject from '@theatre/core/sheetObjects/SheetObject'
|
|||
import getStudio from '@theatre/studio/getStudio'
|
||||
import React from 'react'
|
||||
import BaseItem from '@theatre/studio/panels/OutlinePanel/BaseItem'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import {getOutlineSelection} from '@theatre/studio/selectors'
|
||||
|
||||
export const ObjectItem: React.FC<{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type Sheet from '@theatre/core/sheets/Sheet'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
|
|
|
@ -5,7 +5,7 @@ import ProjectsList from './ProjectsList/ProjectsList'
|
|||
import {pointerEventsAutoInNormalMode} from '@theatre/studio/css'
|
||||
import ToolbarIconButton from '@theatre/studio/uiComponents/toolbar/ToolbarIconButton'
|
||||
import {VscListTree} from 'react-icons/all'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import getStudio from '@theatre/studio/getStudio'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import useTooltip from '@theatre/studio/uiComponents/Popover/useTooltip'
|
||||
|
|
|
@ -3,7 +3,7 @@ import React, {useCallback} from 'react'
|
|||
import BaseItem from '@theatre/studio/panels/OutlinePanel/BaseItem'
|
||||
import SheetsList from '@theatre/studio/panels/OutlinePanel/SheetsList/SheetsList'
|
||||
import getStudio from '@theatre/studio/getStudio'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import {getOutlineSelection} from '@theatre/studio/selectors'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import styled from 'styled-components'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {val} from '@theatre/dataverse'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import getStudio from '@theatre/studio/getStudio'
|
||||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import getStudio from '@theatre/studio/getStudio'
|
||||
import {getOutlineSelection} from '@theatre/studio/selectors'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import React, {useCallback} from 'react'
|
||||
import styled from 'styled-components'
|
||||
import ObjectsList from '@theatre/studio/panels/OutlinePanel/ObjectsList/ObjectsList'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import type Project from '@theatre/core/projects/Project'
|
||||
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {getRegisteredSheetIds} from '@theatre/studio/selectors'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import React from 'react'
|
||||
import {SheetItem} from './SheetItem'
|
||||
import type Project from '@theatre/core/projects/Project'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {useVal} from '@theatre/dataverse-react'
|
||||
import {useVal} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type {SequenceEditorPanelLayout} from '@theatre/studio/panels/SequenceEditorPanel/layout/layout'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import React from 'react'
|
||||
|
|
|
@ -2,7 +2,7 @@ import type {SequenceEditorTree_PrimitiveProp} from '@theatre/studio/panels/Sequ
|
|||
import getStudio from '@theatre/studio/getStudio'
|
||||
import {encodePathToProp} from '@theatre/shared/utils/addresses'
|
||||
import pointerDeep from '@theatre/shared/utils/pointerDeep'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {$IntentionalAny} from '@theatre/shared/utils/types'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {val} from '@theatre/dataverse'
|
||||
|
|
|
@ -2,7 +2,7 @@ import type {
|
|||
SequenceEditorTree_PrimitiveProp,
|
||||
SequenceEditorTree_PropWithChildren,
|
||||
} from '@theatre/studio/panels/SequenceEditorPanel/layout/tree'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
import AnyCompositeRow from './AnyCompositeRow'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type {SequenceEditorTree_SheetObject} from '@theatre/studio/panels/SequenceEditorPanel/layout/tree'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
import CompoundRow from './AnyCompositeRow'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type {SequenceEditorTree_Sheet} from '@theatre/studio/panels/SequenceEditorPanel/layout/tree'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
import SheetObjectRow from './SheetObjectRow'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import type {TrackData} from '@theatre/core/projects/store/types/SheetState_Historic'
|
||||
import type {SequenceEditorPanelLayout} from '@theatre/studio/panels/SequenceEditorPanel/layout/layout'
|
||||
import type {SequenceEditorTree_PrimitiveProp} from '@theatre/studio/panels/SequenceEditorPanel/layout/tree'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import React from 'react'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import {theme} from '@theatre/studio/css'
|
||||
import type {SequenceEditorPanelLayout} from '@theatre/studio/panels/SequenceEditorPanel/layout/layout'
|
||||
import {zIndexes} from '@theatre/studio/panels/SequenceEditorPanel/SequenceEditorPanel'
|
||||
import {useVal} from '@theatre/dataverse-react'
|
||||
import {useVal} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {darken, transparentize} from 'polished'
|
||||
import React from 'react'
|
||||
|
|
|
@ -5,7 +5,7 @@ import useKeyDown from '@theatre/studio/uiComponents/useKeyDown'
|
|||
import useValToAtom from '@theatre/studio/uiComponents/useValToAtom'
|
||||
import mutableSetDeep from '@theatre/shared/utils/mutableSetDeep'
|
||||
import useRefAndState from '@theatre/studio/utils/useRefAndState'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {$IntentionalAny} from '@theatre/shared/utils/types'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {val} from '@theatre/dataverse'
|
||||
|
|
|
@ -2,7 +2,7 @@ import type Sequence from '@theatre/core/sequences/Sequence'
|
|||
import type {SequenceEditorPanelLayout} from '@theatre/studio/panels/SequenceEditorPanel/layout/layout'
|
||||
import useDrag from '@theatre/studio/uiComponents/useDrag'
|
||||
import useRefAndState from '@theatre/studio/utils/useRefAndState'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {prism, val} from '@theatre/dataverse'
|
||||
import {clamp, mapValues} from 'lodash-es'
|
||||
|
|
|
@ -2,7 +2,7 @@ import type {Pointer} from '@theatre/dataverse'
|
|||
import React, {useLayoutEffect, useMemo, useRef} from 'react'
|
||||
import styled from 'styled-components'
|
||||
import type {SequenceEditorPanelLayout} from '@theatre/studio/panels/SequenceEditorPanel/layout/layout'
|
||||
import {usePrism, useVal} from '@theatre/dataverse-react'
|
||||
import {usePrism, useVal} from '@theatre/react'
|
||||
import getStudio from '@theatre/studio/getStudio'
|
||||
import type {BasicNumberInputNudgeFn} from '@theatre/studio/uiComponents/form/BasicNumberInput'
|
||||
import BasicNumberInput from '@theatre/studio/uiComponents/form/BasicNumberInput'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import React, {useMemo, useRef, useState} from 'react'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import type {SequenceEditorPanelLayout} from '@theatre/studio/panels/SequenceEditorPanel/layout/layout'
|
||||
import type {SequenceEditorTree_PrimitiveProp} from '@theatre/studio/panels/SequenceEditorPanel/layout/tree'
|
||||
import getStudio from '@theatre/studio/getStudio'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import React from 'react'
|
||||
|
|
|
@ -3,7 +3,7 @@ import type {
|
|||
SequenceEditorTree_PrimitiveProp,
|
||||
SequenceEditorTree_PropWithChildren,
|
||||
} from '@theatre/studio/panels/SequenceEditorPanel/layout/tree'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {theme} from '@theatre/studio/css'
|
||||
import type {SequenceEditorPanelLayout} from '@theatre/studio/panels/SequenceEditorPanel/layout/layout'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import {darken} from 'polished'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import type {SequenceEditorPanelLayout} from '@theatre/studio/panels/SequenceEditorPanel/layout/layout'
|
||||
import type {SequenceEditorTree_SheetObject} from '@theatre/studio/panels/SequenceEditorPanel/layout/tree'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import type {SequenceEditorPanelLayout} from '@theatre/studio/panels/SequenceEditorPanel/layout/layout'
|
||||
import type {SequenceEditorTree_Sheet} from '@theatre/studio/panels/SequenceEditorPanel/layout/tree'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
|
|
|
@ -2,7 +2,7 @@ import getStudio from '@theatre/studio/getStudio'
|
|||
import {decodePathToProp} from '@theatre/shared/utils/addresses'
|
||||
import getDeep from '@theatre/shared/utils/getDeep'
|
||||
import type {SequenceTrackId} from '@theatre/shared/utils/ids'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import React from 'react'
|
||||
|
|
|
@ -2,7 +2,7 @@ import type SheetObject from '@theatre/core/sheetObjects/SheetObject'
|
|||
import getStudio from '@theatre/studio/getStudio'
|
||||
import type {PathToProp} from '@theatre/shared/utils/addresses'
|
||||
import type {SequenceTrackId} from '@theatre/shared/utils/ids'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import React from 'react'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import {useVal} from '@theatre/dataverse-react'
|
||||
import {useVal} from '@theatre/react'
|
||||
import getStudio from '@theatre/studio/getStudio'
|
||||
import React, {useCallback} from 'react'
|
||||
import styled from 'styled-components'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type {SequenceEditorPanelLayout} from '@theatre/studio/panels/SequenceEditorPanel/layout/layout'
|
||||
import {usePrism, useVal} from '@theatre/dataverse-react'
|
||||
import {usePrism, useVal} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import React from 'react'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import type {SequenceEditorPanelLayout} from '@theatre/studio/panels/SequenceEditorPanel/layout/layout'
|
||||
import DraggableArea from '@theatre/studio/uiComponents/DraggableArea'
|
||||
import {useVal} from '@theatre/dataverse-react'
|
||||
import {useVal} from '@theatre/react'
|
||||
import type {IRange} from '@theatre/shared/utils/types'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {prism, val} from '@theatre/dataverse'
|
||||
|
|
|
@ -3,7 +3,7 @@ import type {SequenceEditorPanelLayout} from '@theatre/studio/panels/SequenceEdi
|
|||
import RoomToClick from '@theatre/studio/uiComponents/RoomToClick'
|
||||
import useDrag from '@theatre/studio/uiComponents/useDrag'
|
||||
import useRefAndState from '@theatre/studio/utils/useRefAndState'
|
||||
import {usePrism, useVal} from '@theatre/dataverse-react'
|
||||
import {usePrism, useVal} from '@theatre/react'
|
||||
import type {$IntentionalAny} from '@theatre/shared/utils/types'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {val} from '@theatre/dataverse'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import type {SequenceEditorPanelLayout} from '@theatre/studio/panels/SequenceEditorPanel/layout/layout'
|
||||
import {zIndexes} from '@theatre/studio/panels/SequenceEditorPanel/SequenceEditorPanel'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import React from 'react'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {useVal} from '@theatre/dataverse-react'
|
||||
import {useVal} from '@theatre/react'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {getOutlineSelection} from '@theatre/studio/selectors'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import {valToAtom} from '@theatre/shared/utils/valToAtom'
|
||||
import type {Pointer} from '@theatre/dataverse'
|
||||
import {prism, val} from '@theatre/dataverse'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {useVal} from '@theatre/dataverse-react'
|
||||
import {useVal} from '@theatre/react'
|
||||
import {pointerEventsAutoInNormalMode} from '@theatre/studio/css'
|
||||
import getStudio from '@theatre/studio/getStudio'
|
||||
import {panelZIndexes} from '@theatre/studio/panels/BasePanel/common'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import mousePositionD from '@theatre/studio/utils/mousePositionD'
|
||||
import {usePrism} from '@theatre/dataverse-react'
|
||||
import {usePrism} from '@theatre/react'
|
||||
import {val} from '@theatre/dataverse'
|
||||
import React from 'react'
|
||||
import {createPortal} from 'react-dom'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue