Commit graph

47 commits

Author SHA1 Message Date
Fülöp
3d10325873
Add tests for Theatre.js + popular setups in the ecosystem (#165)
This implements some basic infra for testing Theatre.js with popular setups such as npm/yarn/pnpm, webpack/vite/parcel, js/ts, etc.

So far, the only existing setup has been with create-react-app. Will add more in the future.

Co-authored-by: Fülöp <fulopkovacs@users.noreply.github.com>
Co-authored-by: Aria Minaei <aria.minaei@gmail.com>
2022-05-17 20:53:01 +02:00
Don McCurdy
dfd88c6b1e
Bump 'react-shadow' to v19.0.3 (#123) 2022-04-22 18:05:21 +02:00
Andrew Prifer
39da042edc
Fix various issues with the build system (#129)
* Fix react-icons breaking in CRA 5 for some reason

* Replace fuzzysort with fuzzy so we don't break Webpack

Webpack messes up esbuild’s internal modules if the inlined module is an AMD module. Check any new dep you add if it is an AMD module.

* Inline dataverse deps.

Mainly because the CJS build consuming the ESM lodash-es broke some bundlers.

* react-icons fix nr 2

* Stop eslint breaking in CRA 5

* Update r3f-cra example to CRA 5 and fix double-bundling react & co

* Fix r3f tree-shaking and switch to ESM only output

* Make r3f example shake studio and its extension in prod

* Examples have separate and wildly differing build setups so remove them from the pre-commit hook linting

* Update out-of-date yarn.lock
2022-04-21 22:03:51 +02:00
Aria
d0965d17e4
Set up end-to-end tests (#85) 2022-02-28 13:15:27 +01:00
Aria
3c369b435e
Use vite for playground (#84) 2022-02-27 21:25:15 +01:00
Aria Minaei
078fa7a849 Remove lint plugin for react hooks 2022-02-23 22:42:09 +01:00
Aria Minaei
7d129bcd37 Remove lerna 2022-02-23 13:29:09 +01:00
Aria Minaei
d7c96cff10 Upgrade nanoid 2022-02-23 13:18:34 +01:00
Aria
b6747860eb
Upgrade to yarn 3.2.0 (#83) 2022-02-23 13:11:00 +01:00
Andrew Prifer
defb538561
Create color prop (#64)
Authored by andrew@theatrejs.com
2022-02-19 17:54:19 +01:00
Dan
72c7b2b9ce adding eslint-plugin-react-hooks plugin and fixing 1 error 2022-02-14 23:27:41 +01:00
Aria
cb349b83a7
Preset easings (#51)
* WIP - Preset easing - 1

* Implement easing presets (WIP)

* Improve easing option colors

* Make easing option border radius smaller so it fits the design language better

* Fix easing option label color

* Remove candidate indicator because it'll conflict with focus state for keyboard navigation

* Improve match indicator

* Simplify search box implementation

(assuming it is for now only going to be a search box, this commit is easy to revert)

* Fix options grid on Firefox

* Implement arrow navigation

* Tiny arrow nav fix

* Now make it actually work lol

* Improve menu item name

* Fix up arrow behavior on search input

* Clean up dead code

Co-authored-by: Andrew Prifer <andrew.prifer@gmail.com>
2021-12-10 12:43:52 +01:00
Aria Minaei
69acb61f84 Renamed dataverse2 to dataverse-experiments 2021-10-04 20:06:12 +02:00
Aria Minaei
14173fde0a Formatting changes for api docs 2021-10-04 10:39:12 +02:00
Aria Minaei
90520dfb25 Started adopting api-extractor 2021-10-02 13:48:02 +02:00
Aria Minaei
5dc2937413 Maintenance 2021-10-01 17:43:13 +02:00
Aria Minaei
097ff51a7a Implemented @theatre/browser-bundles 2021-09-30 21:58:22 +02:00
Aria Minaei
bfaac10632 Fixed dependency typo, based on #13 2021-09-21 21:24:11 +02:00
Aria Minaei
4f66d57cf8 Renamed @theatre/plugin-r3f to @theatre/r3f 2021-09-06 10:19:10 +02:00
Aria Minaei
1452c9ebbe Renamed @theatre/dataverse-react to @theatre/react 2021-09-05 23:07:02 +02:00
Aria Minaei
3674f05487 Updated deps 2021-09-05 22:49:26 +02:00
Aria Minaei
4284f80930 Fixed the build 2021-09-05 18:01:04 +02:00
Aria Minaei
f24e2b96d5 Removed the automatically generated docs
I tried to generate the API section of the docs automatically from tsdoc comments. That failed for the follwing reasons:
1. It has been difficult to configure the layout of the API docs, such as, what information to show, how to sort the information, etc. I kept getting less relevant parts of the API show up before the more important parts. I would have had to write a plugin/theme for typedoc to fix that, which doesn't seem worth the effort.
2. The generated docs don't seem to be nearly as useful as the docs shown in the editor. It's just easier to browse the API in an IDE than on a static website.
3. Docs must have a narrative (we're trying to walk the user through the library) which goes against the unordered nature of automatically generated docs.
2021-09-05 13:51:42 +02:00
Aria Minaei
c189bb2662 Started incorporating the docs into the repo 2021-09-04 15:44:31 +02:00
Aria Minaei
a3bec04088 Added some railguards to the API 2021-09-03 21:20:05 +02:00
Aria Minaei
5d37c15173 Upgrade deps 2021-09-01 10:41:54 +02:00
Aria Minaei
99f8e51ae8 Fixed the dependency ranges in manifests 2021-08-08 10:33:13 +02:00
Aria Minaei
1916747e8b Upgrade typescript 2021-08-08 10:12:23 +02:00
Aria Minaei
824fdd6843 Progress with cra 2021-08-07 22:30:29 +02:00
Aria Minaei
1497eaf610 WIP: Getting r3f to work with create-react-app
* Temporarily disabled ESM bundles because the current setup confuses webpack4 (but not parceljs). Since create-react-app uses webpack4, not doing this would make theatre incompatible with CRA.
2021-08-07 21:41:07 +02:00
Aria Minaei
1f1f464758 WIP: A CRA example 2021-08-07 20:54:28 +02:00
Aria Minaei
f4c2fb2a08 Moved examples to a separate folder 2021-08-06 12:00:19 +02:00
Aria Minaei
327298f089 Corrected plugin-r3f's deps 2021-08-06 11:43:33 +02:00
Aria Minaei
c2b5dca63b Simplified the deployment script
* Implemented yarn run deploy, which deploys all packages to npm, with the same version assigned to all of them.
2021-08-04 21:51:25 +02:00
Aria Minaei
58e9d9ff8b Editor popover for SequenceLengthIndicator 2021-08-02 21:06:58 +02:00
Aria Minaei
da230fbacc Style tweaks 2021-07-23 14:04:01 +02:00
Aria Minaei
067a7cb145 Various improvements to SnapshotEditor 2021-07-16 15:06:15 +02:00
Aria Minaei
921bc44270 Implement studio.globalToolbar 2021-07-13 16:13:15 +02:00
Aria Minaei
8395e44614 Finished switching to styled-components in r3f 2021-07-04 20:37:55 +02:00
Aria Minaei
b109dca19b Started using styled-components in r3f 2021-07-04 19:14:00 +02:00
Aria Minaei
2a671b129d Chore: Simplified ISheet's signature 2021-07-03 15:36:00 +02:00
Aria Minaei
6ebaad747d New: Refactored reactDataverse into a package 2021-06-29 16:40:54 +02:00
Aria Minaei
14b3207680 Build: Add a commonjs bundle to dataverse 2021-06-28 16:37:02 +02:00
Aria Minaei
7c2e12c233 (WIP) Switch the rest of the build setup to esbuild - 1 2021-06-18 21:03:44 +02:00
Aria Minaei
b13f1131c5 Remove dependency on webpack 2021-06-18 20:53:44 +02:00
Aria Minaei
c72647c1e5 Update package.json files 2021-06-18 19:54:35 +02:00
Aria Minaei
4a7303f40a Initial OSS commit 2021-06-18 13:05:06 +02:00