Commit graph

214 commits

Author SHA1 Message Date
Steve Ruiz
6877329340 Update package.json 2021-11-19 15:04:32 +00:00
Steve Ruiz
6af6cfb617 update readmes 2021-11-18 14:05:44 +00:00
Steve Ruiz
e6a3e5c3ea
[big chore] restore core to monorepo (#287)
* move core into repo, apps into apps folder, update tests

* Update scripts for build:core

* improve scripts

* remove noise from www

* Update .gitignore

* Fix focus bug

* add ci test script

* Update main.yml
2021-11-18 13:09:18 +00:00
Steve Ruiz
5590362b0a update scripts 2021-11-17 11:54:59 +00:00
Steve Ruiz
1fb5c633c5 fix issue with create-react-app 2021-11-17 11:50:30 +00:00
Steve Ruiz
53d74c8fc5 bump vscode extension 2021-11-16 16:09:01 +00:00
Steve Ruiz
0c5f8dda48
1.0.0 (#267)
* remove sponsorwall for main route

* Adds sponsorship link

* Remove all sponsorwall

* Fix sponsorship link appearance on dark mode

* Add heart icon

* Fix text bug

* Fix toolbar, hide resize handles on sticky

* Add eraser

* Update Kbd.tsx

* cleanup

* base zoom delta on event deltaMode

* Fix image in example

* Fix eraser icon

* eraser tool resets to previous tool

* Update EraseTool.spec.ts

* Improves support for locked shapes

* Update _document.tsx

* Update CHANGELOG.md

* Adds multiplayer menu, fix develop route in example

* Tighten up top panel padding

* Update top bar, bump packages

* refactor TLDrawState -> TLDrawApp, mutables, new tests

* Fix scaling bug, delete groups bug

* fix snapping

* add pressure to points

* Remove mutables, rename to tldraw (or Tldraw)

* Clean up types, add darkmode prop

* more renaming

* rename getShapeUtils to getShapeUtil

* Fix file names

* Fix last bugs related to renaming

* Update state to app in tests

* rename types to TD

* remove unused styles / rename styles

* slight update to panel

* Fix rogue radix perf issue

* Update ZoomMenu.tsx

* Consolidate style panel

* Fix text wrapping in text shape, improve action menu

* Fix props

* add indicators for tool lock

* fix calloits

* Add click to erase shapes

* Slightly improve loading screen

* Update PrimaryTools.tsx

* remove force consistent filenames from tsconfig

* Update useTldrawApp.tsx

* fix capitalization

* Update main.yml
2021-11-16 16:01:29 +00:00
Steve Ruiz
590562b5ba
[fix] vscode bugs (#271)
* Removes references to webpack scripts from .vscode settings

* clean up scripts, remove references to webpack

* works!

* Delete getHtmlForWebview.ts

* Update scripts

* Update package.json

* Remove more config

* Enable debugger into ts files

* Fixes fails on New TLDraw Document

Co-authored-by: Proful <proful.sadangi@gmail.com>
2021-11-13 08:49:34 +00:00
Francois Laberge
a95b581e07
Prepare for Publishing VS Code Extension (#227)
* Changed Wardlt use back to Tldraw. Added some VS Code marketplace categories

* Missed removing one Wardlt mention

* Initial support for esbuild based vscode extension workflow.

* Hacky start of vs code extension build script

* Fixed categories of extension

* Added script for generating VS Code extension installer

* Temp fix for file format change affecting VS Code extension

* Temp fix for file format change issue

* Cleanup, prevent changes from saving pagestates

* Remove logic around saving pageState

* standardize capitalization

* v0.1.8

* Edit readme, scripts

* Update .eslintignore

* v0.1.9

* v0.1.10

* cleans up build scripts, adds publishing notes

* Added VS Code extension implementation references links. start:vscode now auto opens the extension folder in VS Code

* Removed step from VS Code README to manually open the extensions folder

* Removed file

* v0.1.11

* v0.1.12

* Fix empty file

* v0.1.13

* README cleanup

* v0.1.14

* Update TLDrawEditorProvider.ts

* v0.1.15

* Fix types for file extension (sort of) build script for extension

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-11-10 15:35:51 +00:00
Steve Ruiz
7c980ebb19
Electron App (#224)
* add electron wrapper

* add to workspaces

* fixes electron setup

* Fix package for dev

* build out electron app communication

* Update README.md
2021-11-07 13:45:48 +00:00
Francois Laberge
0b15992464
Create VS Code Extension (#4)
* Start of vscode extension. Current code is copy/paste from custom editor samples from Microsoft. We need to evaluate if using their text based customer editor or full on new custom editor is the way to go

* Not sure how I missed these files. Adding them

* Have a custom editor triggering off of .tldr files. Added gitignores for generated folder. Have iframed tldraw loading and security policies set to do so

* Can now load a .tldr file. No saving support yet. Load times are slow, mostly from editor loading up I think

* Have temporary solution for saving working now too.

* Missed af ile

* Backing up progress in syncing tldraw editor history changes

* Removed console

* ...

* ...

* Cleanup

* Have save working well now.

* Moved extension into 'integrations' folder

* Trying out WebviewPanelOptions.retainContextWhenHidden=true and it's looking promising

* Some cleanup

* Trying out new  @tldraw/editor module

* Have prototype loading using new embedded editor

* ...

* Shaved off 1 second from editor loadtime

* Got save working again. Had to manually fixuppreviously created .tldr files as the format changed a bit

* More tuning

* Starting work to get new tldraw/tldraw working.

* Added example tldr files to vscode package

* Removed old editor package

* Have onChange working with latest fix. Back to iframed for a few mom

* Fixed up .tldr files

* Have iframe free extension working, but requiring hand crafted building

* ...

* Better handling of empty .tldr files. Still an issue with freshly created files trying to save as .js or .json

* Thoroughly added comments for the extension code. Need to add diagrams though and now will document/comment/diagram the editor src code

* Added comments to all of the editor side of the VS Code Extension. Also cleaned up the code

* More cleanup of VS Code Extension code and have script automating generating the initial webview's html content from the cra editor static build

* Tweaks to watch logic

* Improved scripts for publishing to VS Code Marketplace

* Improved name

* Made the smiley angry

* Reverted

* Turned smiley mad

* Turned smiley mad

* Made smiley sad

* Have a lot of plumbing working for Github codespaces and github.dev support

* Imported new tldraw vs code extension code. Added instructions for workflows

* Quick fix

* Fix for corrupted arrows files

* Updated editor build step to new location

* Merge branch 'main' into vscode-extension-v1, add local file updating

* Update App.tsx

* Cleanup, bumped to 0.0.124 @tldraw/tdlraw and published a 0.10.0 version of hte extension

* Added Trello/Kanban style file

* Finished video

* brings up to date

* Fix scripts

* Update README.md

* Update .babelrc

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-11-06 16:49:53 +00:00
Steve Ruiz
e11f05028f
[mega-chore] renaming (#223)
* Rename shape utils

* renames files

* Add husky

* Delete .babelrc

* Update TLDR.ts

* renames commands

* Update package.json

* more pre-commit work
2021-11-06 11:16:30 +00:00
Steve Ruiz
ec3dae085c
[improvement] repo, scripts (#220)
* Fix menu, cleanup package.json

* update changelog
2021-11-05 20:31:20 +00:00
Steve Ruiz
fe2e3c81fe
[improvement] Migrations (#217)
* Add better migrations

* Improves migrations

* rename dev to example

* renames migrate

* Removes workers from git

* Remove rogue dependency

* Fix dropdown navigation by keyboard
2021-11-04 15:48:39 +00:00
Steve Ruiz
b68a4681e1
[improvement] repo shuffle (#214)
* move folders out of packages

* Remove custom yarn stuff, remove duplicate readme

* Remove stitches config

* Add README script.

* bump deps

* Fix script

* Update package.json
2021-11-02 11:46:25 +00:00
Steve Ruiz
0d564c1501 Remove libraries 2021-11-01 15:26:44 +00:00
Steve Ruiz
5479d67877
Updates to new core. (#210) 2021-10-28 17:50:58 +01:00
Steve Ruiz
599e6032a9 Removes core (off to its own repo) 2021-10-27 18:52:02 +01:00
Steve Ruiz
b94c97aafe moves svg utils into its own package 2021-10-22 20:03:22 +01:00
Steve Ruiz
ad8bf78dd4
Replace ts-jest with swc-node/jest (#194) 2021-10-22 12:41:24 +01:00
Pedro Duarte
f8b2fe1c85
Refactor to Stitches Core (#89)
* Refactor www/styles to Stitches Core

* Update package.json

* Begin refactor of `tldraw`

* More refactoring

* A bit more

* little bit more

* Update yarn.lock

* Drops React dependencies to 16.8

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-09-19 20:45:50 +01:00
Steve Ruiz
f7971d5c6f Cleans up packages, tsconfigs, fixes for docs 2021-09-12 14:00:31 +01:00
Steve Ruiz
7f0cfd2c5a Splits vectors and intersections into new packages
esbuild isn't currently tree shaking intersections, but that's a file where we could save some room
2021-09-12 13:21:44 +01:00
Steve Ruiz
b00e0d3a95 Improves pan and zoom gestures 2021-09-09 13:32:08 +01:00
Steve Ruiz
8154ed5a2a Adjusts small example, makes inputs unique to each instance 2021-09-08 17:18:43 +01:00
Steve Ruiz
c1bb554103 0.0.79 2021-09-05 15:23:37 +01:00
Steve Ruiz
f8c1b9ff4e manual bumps while I debug lerna 2021-09-05 12:19:08 +01:00
Steve Ruiz
1d77ca833e removes incremental from build 2021-09-05 11:40:19 +01:00
Steve Ruiz
3f89af61b5 Adds ungroup 2021-09-05 10:51:21 +01:00
Steve Ruiz
38cbf5730e Add www to workspace packages 2021-09-04 12:29:43 +01:00
Steve Ruiz
a7520088b0 fresh start on www 2021-09-04 12:26:46 +01:00
Steve Ruiz
24e9be73cc Let's try that again
This reverts commit da0f8df4d7.

Revert "Update package.json"

This reverts commit 522f87c833.

Revert "removes custom document"

This reverts commit 00d9146895.

Revert "Remove a dep that may have been causing issues"

This reverts commit 69462632a5.

Revert "Update index.tsx"

This reverts commit d05807bbfb.

Revert "Adds manifest"

This reverts commit 1c30552643.
2021-09-04 10:17:10 +01:00
Steve Ruiz
522f87c833 Update package.json 2021-09-03 16:18:38 +01:00
Tais Massaro
079d4d05e8 test(tldraw): use jest .todo instead of TODO comments 2021-09-01 21:22:13 +02:00
Steve Ruiz
dd5836f75b Fix mutate regression 2021-09-01 13:05:14 +01:00
Steve Ruiz
bbcf629681 Fix jest issue 2021-08-31 22:43:04 +01:00
Steve Ruiz
2771ae986f Adds peer deps 2021-08-31 14:28:51 +01:00
Steve Ruiz
c619ef0ec1 cleans up package.json, scripts 2021-08-30 19:10:30 +01:00
Steve Ruiz
64d00dc427 Replaces isDarkMode with meta, a more flexible option for custom rendering context 2021-08-30 11:44:42 +01:00
Steve Ruiz
7d18be27cf tweaks packages, bumps a few deps 2021-08-30 08:45:10 +01:00
Steve Ruiz
9e8e99cb6f Move state to rko 2021-08-29 14:33:43 +01:00
Steve Ruiz
f19d3e6366 Fixes database issues, fixes rendering issue 2021-08-18 00:11:00 +01:00
Steve Ruiz
b8f410b752 Adds react tests, build tsconfigs 2021-08-14 16:46:21 +01:00
Steve Ruiz
bd938c995b cleans up tsconfigs 2021-08-13 13:48:08 +01:00
Steve Ruiz
4eb29349be Fix dev server index.html 2021-08-13 12:13:11 +01:00
Steve Ruiz
ccb8876d8b All tests passing 2021-08-13 11:49:35 +01:00
Steve Ruiz
c92eba9c4e Fix build errors 2021-08-11 22:11:23 +01:00
Steve Ruiz
e71bf1d327 Puts www back in packages 2021-08-11 21:03:59 +01:00
Steve Ruiz
4ac1b93f96 Adds dev server 2021-08-10 18:19:30 +01:00
Steve Ruiz
5998879e24 Replace 2021-08-10 17:12:55 +01:00
Steve Ruiz
87b46b7d31 bumps perfect freehand 2021-07-14 22:14:32 +01:00
Steve Ruiz
fd67e2791d Adds page options panel to rename / duplicate / delete pages 2021-07-14 11:42:16 +01:00
Steve Ruiz
03326adbaf Replace own theme solution with next-themes 2021-07-14 09:04:07 +01:00
Steve Ruiz
6cc9009e82 Removes deps 2021-07-13 21:27:05 +01:00
Steve Ruiz
277654edff bumps deps, moves monaco-editor to dev deps 2021-07-13 21:26:16 +01:00
Steve Ruiz
eca210da6a Bumps state-designer 2021-07-12 12:17:47 +01:00
Steve Ruiz
8b7f9ef4e0 Updates workflow 2021-07-09 10:21:41 +01:00
Steve Ruiz
b9eed30518 Merge branch 'main' into feature-27-round-arrow-angle 2021-07-08 13:36:31 +01:00
Steve Ruiz
a5c07c3efd Bumps next-pwa 2021-07-08 12:02:03 +01:00
Steve Ruiz
69f0957b69 Update package.json 2021-07-08 11:02:11 +01:00
Steve Ruiz
8de9861e1a Update package.json 2021-07-08 11:01:30 +01:00
Steve Ruiz
5334f41e1d Tweaks sentry integration 2021-07-07 10:34:11 +01:00
Steve Ruiz
a84b771571 Reconfigures sentry 2021-07-07 10:23:31 +01:00
Steve Ruiz
8180146eb3 Adds provisional logger 2021-07-04 19:45:07 +01:00
Steve Ruiz
a454586237 Adds copy / paste / save / load buttons to menu 2021-07-03 15:09:49 +01:00
Steve Ruiz
f248571f17 Update package.json 2021-07-01 15:06:19 +01:00
Steve Ruiz
60414a4919 Update package.json 2021-07-01 15:03:42 +01:00
Steve Ruiz
8ee78d1b90 Fix bug on missing others, adds new tests 2021-07-01 15:03:02 +01:00
Steve Ruiz
50d4517d0d remove pusher 2021-06-30 23:55:00 +01:00
Steve Ruiz
49baa47a0e Updates cursor logic 2021-06-30 21:31:29 +01:00
Steve Ruiz
96b48d3b90 Remove supabase 2021-06-29 15:59:49 +01:00
Steve Ruiz
45223e2a8d Big restructure of utils 2021-06-29 13:00:59 +01:00
Steve Ruiz
80d2ba5f00 cursors! 2021-06-28 23:22:23 +01:00
Steve Ruiz
36fc386269 Stubs initial API for coop with Pusher 2021-06-28 21:45:06 +01:00
Steve Ruiz
724d44b744 Updates perfect-freehand 2021-06-28 07:56:08 +01:00
Steve Ruiz
1e8cba347d Update package.json 2021-06-27 14:56:07 +01:00
Steve Ruiz
a9a8629ad2 Update scripts 2021-06-27 14:55:48 +01:00
Steve Ruiz
3f4f5e73ae Adds initial docs for code editor 2021-06-27 14:53:06 +01:00
Steve Ruiz
d1a3860bb1 Fixes a perf-killing deepCompare in context menu
Was deep comparing an array of actual selected shapes, rather than selected shape ids
2021-06-27 10:07:20 +01:00
Steve Ruiz
ff58073d12 Adds more tests, simplifies draw tool 2021-06-26 12:52:36 +01:00
Steve Ruiz
85dc3028b4 Stubs tests. Updates types for controls. 2021-06-25 11:28:52 +01:00
Steve Ruiz
32922b3f85 Adds error boundary, improves code shapes types. 2021-06-24 23:09:36 +01:00
Steve Ruiz
69bdab520a Updates to code editor, utils 2021-06-24 15:59:56 +01:00
Steve Ruiz
8271e6d431 Update scripts 2021-06-24 09:20:29 +01:00
Steve Ruiz
59b02a82be Formatting 2021-06-23 23:33:36 +01:00
Steve Ruiz
059d704404 restores code editor 2021-06-23 23:32:21 +01:00
Steve Ruiz
e265a85d7b test cleanup 2021-06-23 13:46:46 +01:00
Steve Ruiz
a24b7f7931 Adds tests, fixes bug on pre-complete sessions 2021-06-23 13:46:16 +01:00
Steve Ruiz
9e2938c3d5 Generalize dash helper. 2021-06-22 19:13:16 +01:00
Steve Ruiz
864ded959a big cleanup 2021-06-21 22:35:28 +01:00
Steve Ruiz
daa44f9911 Updates arrows 2021-06-21 14:13:16 +01:00
Steve Ruiz
8a0f355e00 Adds sponsorware 2021-06-20 13:35:47 +01:00
Steve Ruiz
4f729f8216 Add auth test 2021-06-19 11:22:23 +01:00
Steve Ruiz
62755db390 Adds sentry, gtag 2021-06-19 10:00:44 +01:00
Steve Ruiz
4ce2b8cc6b Improves file saving / page saving and loading 2021-06-16 13:09:45 +01:00
Steve Ruiz
a689422576 Improves(?) save / load 2021-06-12 20:40:26 +01:00
Steve Ruiz
0158c79953 Adds web manifest, pwa 2021-06-11 13:37:09 +01:00
Steve Ruiz
61f56b984e Fixes deleting pages, adds local file saving / loading 2021-06-11 11:11:42 +01:00
Steve Ruiz
704e92faa4 Improves performance for certain actions 2021-06-06 11:50:01 +01:00
Steve Ruiz
507c081bd0 Adds create / delete pages 2021-06-03 14:10:54 +01:00
Steve Ruiz
34256f992a adds tooltips, improves arrow 2021-06-02 22:17:38 +01:00
Steve Ruiz
815bf1109c Adds dashes 2021-06-01 22:49:32 +01:00
Steve Ruiz
fe3980c80c Adds tool lock 2021-05-28 21:30:27 +01:00
Steve Ruiz
c95c54dae6 Continues on drawing / rotation 2021-05-28 17:25:43 +01:00
Steve Ruiz
708223fffa improves appearance on safari 2021-05-28 14:08:51 +01:00
Steve Ruiz
8dfef5c302 Improves draw tool 2021-05-27 23:07:27 +01:00
Steve Ruiz
ab50d76e6e Stubs alignment distribution stretch 2021-05-26 20:20:52 +01:00
Steve Ruiz
6c8499309e Adds style panel, styles 2021-05-26 11:34:10 +01:00
Steve Ruiz
76a1834e37 Adds cypress 2021-05-24 08:44:11 +01:00
Steve Ruiz
b752782753 refactors bounds, improves transforming rotating shapes 2021-05-22 16:45:24 +01:00
Steve Ruiz
afa8f53dff adds hit testing for hovers 2021-05-14 23:56:41 +01:00
Steve Ruiz
89d9ddcb1d Adds bounds 2021-05-12 23:08:53 +01:00
Steve Ruiz
f38481efee Document and shapes 2021-05-09 22:22:25 +01:00
Steve Ruiz
055caef3a5 a good starter template 2021-05-09 13:03:39 +01:00