Incorporate signia as @tldraw/state (#1620)

It tried to get out but we're dragging it back in. 

This PR brings [signia](https://github.com/tldraw/signia) back into
tldraw as @tldraw/state.

### Change Type

- [x] major

---------

Co-authored-by: David Sheldrick <d.j.sheldrick@gmail.com>
This commit is contained in:
Steve Ruiz 2023-06-20 14:31:26 +01:00 committed by GitHub
parent a4b5bcb8f7
commit 5cb08711c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
143 changed files with 5419 additions and 168 deletions

View file

@ -1,11 +1,7 @@
import { useStateTracking, useValue } from '@tldraw/state'
import { TLShape, TLShapeId } from '@tldraw/tlschema'
import classNames from 'classnames'
import * as React from 'react'
import {
// @ts-expect-error 'private' export
useStateTracking,
useValue,
} from 'signia-react'
import { useEditor } from '../..'
import type { Editor } from '../editor/Editor'
import { ShapeUtil } from '../editor/shapes/ShapeUtil'