Fix some spelling mistakes
This commit is contained in:
parent
553f118ab0
commit
0d2ae56519
12 changed files with 16 additions and 15 deletions
|
@ -4,7 +4,7 @@ module.exports = {
|
||||||
'<rootDir>/theatre/*/src/**/*.test.ts',
|
'<rootDir>/theatre/*/src/**/*.test.ts',
|
||||||
],
|
],
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
...require('./devEnv/getAliasesFromTSConfig').getAliasesFromTsConfigForJest(),
|
...require('./devEnv/getAliasesFromTsConfig').getAliasesFromTsConfigForJest(),
|
||||||
'\\.(css)$': 'identity-obj-proxy',
|
'\\.(css)$': 'identity-obj-proxy',
|
||||||
'lodash-es/(.*)': 'lodash/$1',
|
'lodash-es/(.*)': 'lodash/$1',
|
||||||
'react-use/esm/(.*)': 'react-use/lib/$1',
|
'react-use/esm/(.*)': 'react-use/lib/$1',
|
||||||
|
|
|
@ -51,8 +51,9 @@ const editable = <
|
||||||
|
|
||||||
const sheet = useEditorStore((state) => state.sheet)
|
const sheet = useEditorStore((state) => state.sheet)
|
||||||
|
|
||||||
const [sheetObject, setSheetObject] =
|
const [sheetObject, setSheetObject] = useState<
|
||||||
useState<undefined | ISheetObject<$FixMe>>(undefined)
|
undefined | ISheetObject<$FixMe>
|
||||||
|
>(undefined)
|
||||||
|
|
||||||
useLayoutEffect(() => {
|
useLayoutEffect(() => {
|
||||||
if (!sheet) return
|
if (!sheet) return
|
||||||
|
|
|
@ -5,7 +5,7 @@ import type {
|
||||||
IProjectConfig,
|
IProjectConfig,
|
||||||
} from '@theatre/core/projects/TheatreProject'
|
} from '@theatre/core/projects/TheatreProject'
|
||||||
import TheatreProject from '@theatre/core/projects/TheatreProject'
|
import TheatreProject from '@theatre/core/projects/TheatreProject'
|
||||||
import * as types from '@theatre/shared/src/propTypes'
|
import * as types from '@theatre/shared/propTypes'
|
||||||
import {InvalidArgumentError} from '@theatre/shared/utils/errors'
|
import {InvalidArgumentError} from '@theatre/shared/utils/errors'
|
||||||
import {validateName} from '@theatre/shared/utils/sanitizers'
|
import {validateName} from '@theatre/shared/utils/sanitizers'
|
||||||
import userReadableTypeOfValue from '@theatre/shared/utils/userReadableTypeOfValue'
|
import userReadableTypeOfValue from '@theatre/shared/utils/userReadableTypeOfValue'
|
||||||
|
|
|
@ -12,7 +12,7 @@ import type {
|
||||||
} from '@theatre/shared/utils/types'
|
} from '@theatre/shared/utils/types'
|
||||||
import type {IDerivation, Pointer} from '@theatre/dataverse'
|
import type {IDerivation, Pointer} from '@theatre/dataverse'
|
||||||
import {prism, val} from '@theatre/dataverse'
|
import {prism, val} from '@theatre/dataverse'
|
||||||
import type {PropTypeConfig_Compound} from '@theatre/shared/src/propTypes'
|
import type {PropTypeConfig_Compound} from '@theatre/shared/propTypes'
|
||||||
import type SheetObject from './SheetObject'
|
import type SheetObject from './SheetObject'
|
||||||
|
|
||||||
export interface ISheetObject<
|
export interface ISheetObject<
|
||||||
|
|
|
@ -9,7 +9,7 @@ import type {
|
||||||
PropTypeConfig,
|
PropTypeConfig,
|
||||||
PropTypeConfig_Compound,
|
PropTypeConfig_Compound,
|
||||||
PropTypeConfig_Enum,
|
PropTypeConfig_Enum,
|
||||||
} from '@theatre/shared/src/propTypes'
|
} from '@theatre/shared/propTypes'
|
||||||
|
|
||||||
const cachedDefaults = new WeakMap<PropTypeConfig, SerializableValue>()
|
const cachedDefaults = new WeakMap<PropTypeConfig, SerializableValue>()
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import {privateAPI, setPrivateAPI} from '@theatre/shared/privateAPIs'
|
||||||
import type {IProject} from '@theatre/core/projects/TheatreProject'
|
import type {IProject} from '@theatre/core/projects/TheatreProject'
|
||||||
import type TheatreSequence from '@theatre/core/sequences/TheatreSequence'
|
import type TheatreSequence from '@theatre/core/sequences/TheatreSequence'
|
||||||
import type {ISequence} from '@theatre/core/sequences/TheatreSequence'
|
import type {ISequence} from '@theatre/core/sequences/TheatreSequence'
|
||||||
import type {PropTypeConfig_Compound} from '@theatre/shared/src/propTypes'
|
import type {PropTypeConfig_Compound} from '@theatre/shared/propTypes'
|
||||||
import type {ISheetObject} from '@theatre/core/sheetObjects/TheatreSheetObject'
|
import type {ISheetObject} from '@theatre/core/sheetObjects/TheatreSheetObject'
|
||||||
import type Sheet from '@theatre/core/sheets/Sheet'
|
import type Sheet from '@theatre/core/sheets/Sheet'
|
||||||
import type {SheetAddress} from '@theatre/shared/utils/addresses'
|
import type {SheetAddress} from '@theatre/shared/utils/addresses'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import type {PropTypeConfig} from '@theatre/shared/src/propTypes'
|
import type {PropTypeConfig} from '@theatre/shared/propTypes'
|
||||||
|
|
||||||
export function isPropConfigComposite(c: PropTypeConfig): boolean {
|
export function isPropConfigComposite(c: PropTypeConfig): boolean {
|
||||||
return c.type === 'compound' || c.type === 'enum'
|
return c.type === 'compound' || c.type === 'enum'
|
||||||
|
|
|
@ -5,7 +5,7 @@ import {privateAPI} from '@theatre/shared/privateAPIs'
|
||||||
import type {ProjectState_Historic} from '@theatre/core/projects/store/storeTypes'
|
import type {ProjectState_Historic} from '@theatre/core/projects/store/storeTypes'
|
||||||
import type {SheetState_Historic} from '@theatre/core/projects/store/types/SheetState_Historic'
|
import type {SheetState_Historic} from '@theatre/core/projects/store/types/SheetState_Historic'
|
||||||
import * as t from '@theatre/shared/propTypes'
|
import * as t from '@theatre/shared/propTypes'
|
||||||
import getStudio from '@theatre/studio/src/getStudio'
|
import getStudio from '@theatre/studio/getStudio'
|
||||||
import coreTicker from '@theatre/core/coreTicker'
|
import coreTicker from '@theatre/core/coreTicker'
|
||||||
/* eslint-enable no-restricted-syntax */
|
/* eslint-enable no-restricted-syntax */
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type {PropTypeConfig_Compound} from '@theatre/shared/src/propTypes'
|
import type {PropTypeConfig_Compound} from '@theatre/shared/propTypes'
|
||||||
import {isPropConfigComposite} from '@theatre/shared/src/propTypes/utils'
|
import {isPropConfigComposite} from '@theatre/shared/propTypes/utils'
|
||||||
import type SheetObject from '@theatre/core/sheetObjects/SheetObject'
|
import type SheetObject from '@theatre/core/sheetObjects/SheetObject'
|
||||||
import {theme} from '@theatre/studio/css'
|
import {theme} from '@theatre/studio/css'
|
||||||
import {voidFn} from '@theatre/shared/utils'
|
import {voidFn} from '@theatre/shared/utils'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import type {PropTypeConfig} from '@theatre/shared/src/propTypes'
|
import type {PropTypeConfig} from '@theatre/shared/propTypes'
|
||||||
import type SheetObject from '@theatre/core/sheetObjects/SheetObject'
|
import type SheetObject from '@theatre/core/sheetObjects/SheetObject'
|
||||||
import {getPointerParts} from '@theatre/dataverse'
|
import {getPointerParts} from '@theatre/dataverse'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import type {PropTypeConfig_Number} from '@theatre/shared/src/propTypes'
|
import type {PropTypeConfig_Number} from '@theatre/shared/propTypes'
|
||||||
import type SheetObject from '@theatre/core/sheetObjects/SheetObject'
|
import type SheetObject from '@theatre/core/sheetObjects/SheetObject'
|
||||||
import BasicNumberEditor from '@theatre/studio/uiComponents/BasicNumberEditor'
|
import BasicNumberEditor from '@theatre/studio/uiComponents/BasicNumberEditor'
|
||||||
import useContextMenu from '@theatre/studio/uiComponents/simpleContextMenu/useContextMenu'
|
import useContextMenu from '@theatre/studio/uiComponents/simpleContextMenu/useContextMenu'
|
||||||
|
|
|
@ -3,8 +3,8 @@ import type {
|
||||||
PropTypeConfig,
|
PropTypeConfig,
|
||||||
PropTypeConfig_AllPrimitives,
|
PropTypeConfig_AllPrimitives,
|
||||||
PropTypeConfig_Compound,
|
PropTypeConfig_Compound,
|
||||||
} from '@theatre/shared/src/propTypes'
|
} from '@theatre/shared/propTypes'
|
||||||
import {isPropConfigComposite} from '@theatre/shared/src/propTypes/utils'
|
import {isPropConfigComposite} from '@theatre/shared/propTypes/utils'
|
||||||
import type SheetObject from '@theatre/core/sheetObjects/SheetObject'
|
import type SheetObject from '@theatre/core/sheetObjects/SheetObject'
|
||||||
import type {IPropPathToTrackIdTree} from '@theatre/core/sheetObjects/SheetObjectTemplate'
|
import type {IPropPathToTrackIdTree} from '@theatre/core/sheetObjects/SheetObjectTemplate'
|
||||||
import type Sheet from '@theatre/core/sheets/Sheet'
|
import type Sheet from '@theatre/core/sheets/Sheet'
|
||||||
|
|
Loading…
Reference in a new issue