105 Commits

Author SHA1 Message Date
a49e682a35 Support TypeScript language in code nodes (#3469) 2022-12-01 13:43:10 +00:00
924b651488 Fix oncall annotation issue missing from some files (#3075) 2022-09-27 12:59:49 -04:00
83f49f2623 Fix www exports (#2994) 2022-09-12 12:42:26 -06:00
863b666e03 Add empty comment in front of 'export' in a bundled file (#2970) 2022-09-08 14:18:28 -06:00
f6ffb628e6 chore(lexical-playground): typos, improved build (#2780) 2022-08-08 09:01:38 +01:00
3dad575340 Exclude TS files from WWW build (#2437) 2022-06-16 10:58:49 +01:00
96bdfb1c85 Add header to scripts (#2432) 2022-06-15 17:31:12 +01:00
c26e41d595 Autogenerate TypeScript declaration files (#2359)
* Remove .d.ts and fix type errors

* Fix failing test

* Upgrade roll up to remove maxlisteners warning

* Refactor type generation and make build script run in sequence to avoid OOM errors in GitHub actions

* Small change

* Fix playground TS errors
2022-06-14 10:42:43 +01:00
1bbb94cefa Remove watch mode scripts (#2361) 2022-06-07 17:36:14 +01:00
82f4365a5e Move HTML<->Lexical functions to new package, @lexical/html. (#2246) 2022-05-24 16:26:53 -04:00
c8b7add27d Migrate last 2 packages to TS (10/n) (#2237)
* Run migration scripts

* Fix more difficult types

* Remove shared modules

* debug failing build

* Fix small bugs

* Remove unnecessary types for getLatest and getWritable

* Fix failing unit test

* Fix small type error in playground due to empty editor config
2022-05-24 14:15:39 +01:00
1c3ddd0f3d Fix relative imports in @lexical/react (#2245)
* Fix relative imports in @lexical/react

* Fix imports
2022-05-23 17:09:18 +01:00
1524885b9b Migrate 4 more packages to TS (#2231)
* Migrate remaining packages

* Make build work
2022-05-22 19:04:35 +01:00
be1e15567a Migrate 5 more packages to TypeScript (8/n) (#2215)
* Migrate packages

* Migrate lists

* Small type change

* Mix merge issues

* Remove unnecessary type
2022-05-20 22:58:05 +01:00
8c4e9ddf5b Migrate lexical-react to TypeScript (7/n) (#2211)
* Run migration script

* Update types

* Make build work correctly

* Remove double headers

* Remove double headers

* remove migration script

* Remove unncessary new lines

* Update types in LexicalNode

* Fix small bugs

* Fix merge issues

* Fix failing tests

* Fix build error

* Small style change
2022-05-20 16:57:10 +01:00
8f9a903785 Add unstable serialization logic for node JSON parsing (#2157)
* Add unstable serialization logic for node JSON parsing

* Ooops

* Freeze editorState

* Migrate code node

* Address feedback

* Address feedback

* Address feedback

* Address more feedback

* Address more feedback

* Address FlowFixMes

* update types

* prettier

* remove import

* polish types

* fix types

* add ut for unstable APIs

* fix rebase issue

* oops

* wip

* more nodes

* types

* prettier

* add tests for core nodes

* update codes.json

* Merge global files

* Rename global type defs

* Update packages/lexical-link/src/index.js

Co-authored-by: Gerard Rovira <zurfyx@users.noreply.github.com>

* fix linter an versions

* more versions

Co-authored-by: acywatson <acy.watson@gmail.com>
Co-authored-by: John Flockton <thegreatercurve@users.noreply.github.com>
Co-authored-by: Gerard Rovira <zurfyx@users.noreply.github.com>
2022-05-19 11:44:52 -07:00
53db6166b0 Upgrade build.js to use rollup plugin (#2206)
* Upgrade build.js to use rollup plugin

* Remove unused plugin

* Package.json
2022-05-18 15:59:06 +01:00
965c06679d Migrate lexical-mark to TypeScript (#2183)
* docs: fix typo

* chore: migrate to typescript lexical-mark

* docs: fix typo

* fix: missing updates of typescript configuration

* chore: enforce argument to node checker

Co-authored-by: John Flockton <thegreatercurve@users.noreply.github.com>

* fix: missing build

Co-authored-by: John Flockton <thegreatercurve@users.noreply.github.com>
2022-05-17 10:57:15 +01:00
46e84d900e Migrate LexicalClipboard to TypeScript (5/n) (#2151)
* wip

* Add missing new lines
2022-05-15 10:33:16 +01:00
b7927b488b Fix .jsx build import typo (#2148) 2022-05-12 09:11:09 +01:00
1293fbd2e0 Migrate more packages to TypeScript (4/n) (#2135)
* Migrate more packages

* Migrate 2 more packages

* Add shared Typescript utils

* Fix failing E2Es

* Fix deployment error

* small change to type
2022-05-11 16:14:02 +01:00
05bd611197 Migrate initial few packages to TypeScript (#2110)
* Add initial test migration

* Fix failing integrity check

* Remove ts-nochecks

* Update test config

* Add babel typescript preset instead of rollup plugin

* Remove relative paths for unit tests

* Small requested changes
2022-05-09 20:58:31 +01:00
9e39f0ec24 Split out commenting logic (#2074)
Split out commenting logic (#2074)
2022-05-05 07:25:12 +01:00
0c93cfc410 Headless editor mode (#2046) 2022-05-03 13:39:55 -04:00
8b349414bb Separate clean script (#1949)
* separate clean script

* reuse scripts

* remove redundant cleans

* don't clean on code extractio
2022-04-25 07:52:53 -07:00
3f5d3ddcd4 Fix www build (#1652) 2022-04-11 15:02:32 +01:00
78300fac5c Fix @lexical/code (#1633)
* Fix @lexical/code

* Fix package.json
2022-04-09 00:43:38 -07:00
47de90c34d Add @lexical/markdown (#1566)
* Add @lexical/markdown
2022-04-09 00:43:35 -07:00
cb341053fb Add @lexical/history (#1550)
* Add @lexical/history

* Add missing configuration
2022-04-09 00:43:35 -07:00
146c95a540 Add @lexical/overflow @lexical/link (#1556)
* Add @lexical/overflow @lexical/link

* Fix tests
2022-04-09 00:43:35 -07:00
89ae5046f6 Move rich/plain/dragon logic to separate packages (#1555)
* Move rich/plain/dragon logic to seperate pacakges

* Clean up entity logic
2022-04-09 00:43:34 -07:00
3b13497b8a Move code logic into @lexical/code (#1554)
* Move code logic into @lexical/code

* Fix tests
2022-04-09 00:43:34 -07:00
ecbd46e5c0 Remove lexical-helpers (#1466)
* Remove lexical-helpers

* Add midding ref
2022-04-09 00:43:30 -07:00
1d1959748d Convert Lexical Playground from CRA to Vite (#1463)
Convert Lexical Playground from CRA to Vite (#1463)
2022-04-09 00:43:30 -07:00
d8913e5e45 Follow up to 1447 (#1448) 2022-04-09 00:43:29 -07:00
59afd22c1c Housekeeping: create more self-contained packages for Lexical (#1447)
* Add lexical-token package for HashtagNode

* Garden work

* Fix unit tests
2022-04-09 00:43:29 -07:00
5503ca6e64 Add clipboard package, remove lexical event helpers (#1361)
* add clipboard package, remove lexica event helpers

* bump version after rebase

* rename - wip

* rename things
2022-04-09 00:43:27 -07:00
06925cda1d Add www Flow definition preparation script (#1374)
* Add www Flow definition preparation script

* Update comment
2022-04-09 00:43:26 -07:00
70981013c5 Create "lexical-table" package. (#1301) 2022-04-09 00:43:24 -07:00
44e8daeae4 add lexical-file package (#1286) 2022-04-09 00:43:23 -07:00
1c856e80ec Add sort keys and sort imports lint rules, and enable fix+format on save (#1209)
* Add sort keys rule and update configs so it works

Bump version of flowtype eslint plugin to fix bugs with autofixing

* Add sort imports fixable lint rule

* Run lint fix and prettier on whole repo 

* Fix unit tests broken by key sorting
2022-04-09 00:43:22 -07:00
f2be55cc3b [RFC] Add unminified .dev files to the release build (#1257)
* add unminified .dev files to the release build

* remove unused conditional

* Add licenses to prod files.
2022-04-09 00:43:21 -07:00
c12022b019 Fix build 2022-04-09 00:43:21 -07:00
0d03dbe7dd Enable linting for scripts and fix lint errors (#1245) 2022-04-09 00:43:21 -07:00
2020bbadd5 Move list feature into a separate package (#1239)
* wip

* fix build issues

* fix imports

* bump version
2022-04-09 00:43:21 -07:00
3aac9cac56 Don't stop the build for unused imports (#1122)
Minor QOL fix: unused import warnings were killing my build watcher in
the background, which led to me being very confused as to why my changes
weren't showing up in the browser.

It may also be prudent to change `npm run dev` to make 'the build has
killed itself and will no longer run' more obvious, because the build
watcher is independent of the webserver. Currently if you run them
together via `npm run dev` the webserver will happily serve increasingly
outdated changes.
2022-04-09 00:43:17 -07:00
c1a31b59f7 lexical-core -> lexical (folder) (#1077) 2022-04-09 00:43:16 -07:00
40e9001745 NPM lexical-core -> lexical (#1075) 2022-04-09 00:43:16 -07:00
55695c29da Fix package naming -> @lexical (#1071)
More fixes

Fix packages

Fix package-lock
2022-04-09 00:43:15 -07:00
a8daa27e7f File import/export (#1056)
* File import/export

* LexicalFileHelpers
2022-04-09 00:43:15 -07:00