tldraw/apps/examples/e2e/tests
Steve Ruiz 3e31ef2a7d
Remove helpers / extraneous API methods. (#1745)
This PR removes several extraneous computed values from the editor. It
adds some silly instance state onto the instance state record and
unifies a few methods which were inconsistent. This is fit and finish
work 🧽

## Computed Values

In general, where once we had a getter and setter for `isBlahMode`,
which really masked either an `_isBlahMode` atom on the editor or
`instanceState.isBlahMode`, these are merged into `instanceState`; they
can be accessed / updated via `editor.instanceState` /
`editor.updateInstanceState`.

## tldraw select tool specific things

This PR also removes some tldraw specific state checks and creates new
component overrides to allow us to include them in tldraw/tldraw.

### Change Type

- [x] `major` — Breaking change

### Test Plan

- [x] Unit Tests
- [x] End to end tests

### Release Notes

- [tldraw] rename `useReadonly` to `useReadOnly`
- [editor] remove `Editor.isDarkMode`
- [editor] remove `Editor.isChangingStyle`
- [editor] remove `Editor.isCoarsePointer`
- [editor] remove `Editor.isDarkMode`
- [editor] remove `Editor.isFocused`
- [editor] remove `Editor.isGridMode`
- [editor] remove `Editor.isPenMode`
- [editor] remove `Editor.isReadOnly`
- [editor] remove `Editor.isSnapMode`
- [editor] remove `Editor.isToolLocked`
- [editor] remove `Editor.locale`
- [editor] rename `Editor.pageState` to `Editor.currentPageState`
- [editor] add `Editor.pageStates`
- [editor] add `Editor.setErasingIds`
- [editor] add `Editor.setEditingId`
- [editor] add several new component overrides
2023-07-18 21:50:23 +00:00
..
export-snapshots.spec.ts-snapshots speed up playwright and add visual regression tests (#1638) 2023-06-23 11:53:04 +00:00
export-snapshots.spec.ts tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00
test-camera.spec.ts Add playwright tests (#1484) 2023-05-30 15:28:56 +01:00
test-canvas-events.spec.ts rename app to editor (#1503) 2023-06-02 15:21:45 +00:00
test-clipboard.spec.ts rename app to editor (#1503) 2023-06-02 15:21:45 +00:00
test-kbds.spec.ts Remove helpers / extraneous API methods. (#1745) 2023-07-18 21:50:23 +00:00
test-routes.spec.ts [internal] Add basic list to examples (#1688) 2023-07-05 14:07:28 +00:00
test-shapes.spec.ts Add cloud shape (#1708) 2023-07-07 15:32:08 +00:00
test-smoke.spec.ts rename app to editor (#1503) 2023-06-02 15:21:45 +00:00
test-text.spec.ts rename app to editor (#1503) 2023-06-02 15:21:45 +00:00