loro/crates/loro-wasm
Zixuan Chen d942e3d7a2
Feat: Peritext-like rich text support (#123)
* feat: richtext wip

* feat: add insert to style range map wip

* feat: richtext state

* fix: fix style state inserting and style map

* fix: tiny vec merge err

* fix: comment err

* refactor: use new generic-btree & refine impl

* feat: fugue tracker

* feat: tracker

* feat: tracker

* fix: fix a few err in impl

* feat: init richtext content state

* feat: refactor arena

* feat: extract anchor_type info out of style flag

* refactor: state apply op more efficiently
we can now reuse the repr in state and op

* fix: new clippy errors

* refactor: use state chunk as delta item

* refactor: use two op to insert style start and style end

* feat: diff calc

* feat: handler

* fix: tracker checkout err

* fix: pass basic richtext handler tests

* fix: pass handler basic marking tests

* fix: pass all peritext criteria

* feat: snapshot encoding for richtext init

* refactor: replace Text with Richtext

* refacotr: rm text code

* fix: richtext checkout err

* refactor: diff of text and map

* refactor: del span

* refactor: event

* fix: fuzz err

* fix: pass all tests

* fix: fuzz err

* fix: list child cache err

* chore: rm debug code

* fix: encode enhanced err

* fix: encode enchanced

* fix: fix several richtext issue

* fix: richtext anchor err

* chore: rm debug code

* fix: richtext fuzz err

* feat: speedup text snapshot decode

* perf: optimize snapshot encoding

* perf: speed up decode & insert

* fix: fugue span merge err

* perf: speedup delete & id cursor map

* fix: fugue merge err

* chore: update utils

* perf: speedup text insert / del

* fix: cursor cache

* perf: reduce conversion by introducing InsertText

* perf: speed up by refined cursor cache

* chore: update gbtree dep

* refactor(wasm): use quill delta format

* chore: fix warnings
2023-10-29 14:02:13 +08:00
..
.cargo Perf: speed up utf16 and wasm (#90) 2023-04-03 09:29:25 +08:00
scripts fix: nodejs patch 2023-09-12 15:57:06 +08:00
src Feat: Peritext-like rich text support (#123) 2023-10-29 14:02:13 +08:00
web-test bench: add wasm bench to web test 2022-12-12 13:44:49 +08:00
.gitignore chore(wasm): change the build methods 2022-12-09 10:46:55 +08:00
.npmignore chore: bump versions 2023-03-28 01:05:17 +08:00
Cargo.toml chore: use serde 1 2023-08-04 11:09:32 +08:00
deno.json feat: add typed versions of getMap and getList to Loro class (#96) 2023-05-11 11:59:48 +08:00
deno.lock Feat: Peritext-like rich text support (#123) 2023-10-29 14:02:13 +08:00
LICENSE feat: init encoding and build pipeline for wasm 2022-12-09 10:46:30 +08:00
package.json chore: bump version 2023-05-11 12:19:47 +08:00
pnpm-lock.yaml feat: extra pkg loro-crdt to wrap loro-wasm 2023-03-24 10:08:11 +08:00
README.md feat: init encoding and build pipeline for wasm 2022-12-09 10:46:30 +08:00
yarn.lock bench: add wasm bench to web test 2022-12-12 13:44:49 +08:00