{"_id":"rich-text","_rev":"329084","name":"rich-text","description":"OT type for rich text","dist-tags":{"latest":"4.1.0"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"time":{"modified":"2021-06-07T02:45:31.000Z","created":"2014-09-23T03:29:22.221Z","4.1.0":"2020-04-03T01:04:11.194Z","4.0.0":"2019-06-03T03:19:50.182Z","3.1.0":"2016-10-13T00:45:56.828Z","3.0.2":"2016-08-01T02:17:46.678Z","3.0.1":"2016-06-19T20:18:26.000Z","3.0.0":"2016-04-11T20:50:10.113Z","2.1.1":"2016-01-28T23:40:44.678Z","2.1.0":"2015-08-07T01:09:42.440Z","2.0.0":"2015-06-04T01:18:46.715Z","1.1.0":"2015-03-14T23:43:05.104Z","1.0.3":"2014-10-23T22:24:50.920Z","1.0.2":"2014-10-20T22:18:16.098Z","1.0.1":"2014-10-16T23:09:07.558Z","1.0.0":"2014-10-08T22:24:32.295Z","0.1.0":"2014-09-23T03:29:22.221Z"},"users":{},"author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ottypes/rich-text.git"},"versions":{"4.1.0":{"name":"rich-text","version":"4.1.0","description":"OT type for rich text","author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"homepage":"https://github.com/ottypes/rich-text","main":"index.js","dependencies":{"quill-delta":"^4.2.1"},"devDependencies":{"chai":"^4.2.0","lodash":"^4.17.15","mocha":"^6.1.4","ot-fuzzer":"^1.2.1"},"engines":{"node":">=0.10"},"license":"MIT","scripts":{"test":"mocha test/**/*.js --timeout 5000"},"repository":{"type":"git","url":"git+https://github.com/ottypes/rich-text.git"},"bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"keywords":["rich text","ot","operational transform","sharejs"],"gitHead":"b53cd97690804e544370423ce27c6d852abb2c7f","_id":"rich-text@4.1.0","_nodeVersion":"10.15.1","_npmVersion":"6.14.4","_npmUser":{"name":"jhchen","email":"jhchen7@gmail.com"},"dist":{"shasum":"8b4c0e48a84fbb535dd692998f1e39eaaf0451a8","size":5537,"noattachment":false,"key":"/rich-text/-/rich-text-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rich-text/download/rich-text-4.1.0.tgz"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rich-text_4.1.0_1585875851035_0.6415158031884327"},"_hasShrinkwrap":false,"publish_time":1585875851194,"_cnpm_publish_time":1585875851194},"4.0.0":{"name":"rich-text","version":"4.0.0","description":"OT type for rich text","author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"homepage":"https://github.com/ottypes/rich-text","main":"index.js","dependencies":{"quill-delta":"^4.2.1"},"devDependencies":{"chai":"^3.5.0","lodash":"^4.16.4","mocha":"^3.1.2","ot-fuzzer":"^1.0.0"},"engines":{"node":">=0.10"},"license":"MIT","scripts":{"test":"mocha test/fuzzer.js --timeout 5000"},"repository":{"type":"git","url":"git+https://github.com/ottypes/rich-text.git"},"bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"keywords":["rich text","ot","operational transform","sharejs"],"gitHead":"58acd6477b80e96c887bad31fe832c50c8ccf689","_id":"rich-text@4.0.0","_nodeVersion":"10.15.1","_npmVersion":"6.8.0","_npmUser":{"name":"jhchen","email":"jhchen7@gmail.com"},"dist":{"shasum":"5584467d01c601d111e0978e6eb7a18bcfc402a7","size":4865,"noattachment":false,"key":"/rich-text/-/rich-text-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rich-text/download/rich-text-4.0.0.tgz"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rich-text_4.0.0_1559531990047_0.16874585145198528"},"_hasShrinkwrap":false,"publish_time":1559531990182,"_cnpm_publish_time":1559531990182},"3.1.0":{"name":"rich-text","version":"3.1.0","description":"OT type for rich text","author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"homepage":"https://github.com/ottypes/rich-text","main":"index.js","dependencies":{"quill-delta":"^3.2.0"},"devDependencies":{"chai":"^3.5.0","lodash":"^4.16.4","mocha":"^3.1.2","ot-fuzzer":"^1.0.0"},"engines":{"node":">=0.10"},"license":"MIT","scripts":{"test":"mocha test/fuzzer.js"},"repository":{"type":"git","url":"git+https://github.com/ottypes/rich-text.git"},"bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"keywords":["rich text","ot","operational transform","sharejs"],"gitHead":"88f10c74e8db73523e0bfcdaaa9b177694c4ebdd","_id":"rich-text@3.1.0","_shasum":"04c971dedce8eb82010cfacff6e7a0ce35c7a825","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.1","_npmUser":{"name":"jhchen","email":"jhchen7@gmail.com"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"dist":{"shasum":"04c971dedce8eb82010cfacff6e7a0ce35c7a825","size":4699,"noattachment":false,"key":"/rich-text/-/rich-text-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rich-text/download/rich-text-3.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rich-text-3.1.0.tgz_1476319556594_0.8751564451958984"},"directories":{},"publish_time":1476319556828,"_cnpm_publish_time":1476319556828,"_hasShrinkwrap":false},"3.0.2":{"name":"rich-text","version":"3.0.2","description":"Format for representing rich text documents and changes.","author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"homepage":"https://github.com/ottypes/rich-text","main":"index.js","dependencies":{"deep-equal":"^1.0.1","extend":"^3.0.0","fast-diff":"^1.0.1"},"devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.9","grunt":"~1.0.1","istanbul":"~0.4.3","lodash":"^4.10.0","mocha":"^2.4.5","ot-fuzzer":"^1.0.0"},"engines":{"node":">=0.10"},"license":"MIT","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/ottypes/rich-text.git"},"bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"keywords":["rich text","ot","operational transform","delta"],"gitHead":"20a853961bf5a04fcf735da95a9fa4fc18c789bc","_id":"rich-text@3.0.2","_shasum":"5bfb78abea1b027757970536cc7f1d6bbd722353","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.1","_npmUser":{"name":"jhchen","email":"jhchen7@gmail.com"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"dist":{"shasum":"5bfb78abea1b027757970536cc7f1d6bbd722353","size":12948,"noattachment":false,"key":"/rich-text/-/rich-text-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rich-text/download/rich-text-3.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rich-text-3.0.2.tgz_1470017866434_0.3068227639887482"},"directories":{},"publish_time":1470017866678,"_cnpm_publish_time":1470017866678,"_hasShrinkwrap":false},"3.0.1":{"name":"rich-text","version":"3.0.1","description":"Format for representing rich text documents and changes.","author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"homepage":"https://github.com/ottypes/rich-text","main":"index.js","dependencies":{"deep-equal":"^1.0.1","extend":"^3.0.0","fast-diff":"^1.0.1"},"devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.9","grunt":"~1.0.1","istanbul":"~0.4.3","lodash":"^4.10.0","mocha":"^2.4.5","ot-fuzzer":"^1.0.0"},"engines":{"node":">=0.10"},"license":"MIT","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/ottypes/rich-text.git"},"bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"keywords":["rich text","ot","operational transform","delta"],"gitHead":"83fea267591812feb0b9a2ba7cff91f61a84d372","_id":"rich-text@3.0.1","_shasum":"1700f35484246b35cfa45500f0ddd5c8ea279913","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.1","_npmUser":{"name":"jhchen","email":"jhchen7@gmail.com"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"dist":{"shasum":"1700f35484246b35cfa45500f0ddd5c8ea279913","size":12939,"noattachment":false,"key":"/rich-text/-/rich-text-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rich-text/download/rich-text-3.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rich-text-3.0.1.tgz_1466367505564_0.09791732323355973"},"directories":{},"publish_time":1466367506000,"_cnpm_publish_time":1466367506000,"_hasShrinkwrap":false},"3.0.0":{"name":"rich-text","version":"3.0.0","description":"Format for representing rich text documents and changes.","author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"homepage":"https://github.com/ottypes/rich-text","main":"index.js","dependencies":{"deep-equal":"^1.0.1","extend":"^3.0.0","fast-diff":"^1.0.1"},"devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.9","grunt":"~1.0.1","istanbul":"~0.4.3","lodash":"^4.10.0","mocha":"^2.4.5","ot-fuzzer":"^1.0.0"},"engines":{"node":">=0.10"},"license":"MIT","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/ottypes/rich-text.git"},"bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"keywords":["rich text","ot","operational transform","delta"],"gitHead":"fe2664cff89f02e623348bf42bca97f87c015da2","_id":"rich-text@3.0.0","_shasum":"e7ad6bc913999aa2b915e434216639842bba85f4","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.3.0","_npmUser":{"name":"jhchen","email":"jhchen7@gmail.com"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"dist":{"shasum":"e7ad6bc913999aa2b915e434216639842bba85f4","size":12891,"noattachment":false,"key":"/rich-text/-/rich-text-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rich-text/download/rich-text-3.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rich-text-3.0.0.tgz_1460407808039_0.917434046510607"},"directories":{},"publish_time":1460407810113,"_cnpm_publish_time":1460407810113,"_hasShrinkwrap":false},"2.1.1":{"name":"rich-text","version":"2.1.1","description":"Format for representing rich text documents and changes.","author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"homepage":"https://github.com/ottypes/rich-text","main":"index.js","dependencies":{"deep-equal":"^1.0.1","fast-diff":"^1.0.1"},"devDependencies":{"chai":"^3.5.0","coveralls":"^2.11.6","grunt":"~0.4.5","istanbul":"~0.4.2","lodash":"^4.0.1","mocha":"^2.4.4","ot-fuzzer":"^1.0.0"},"engines":{"node":">=0.10"},"license":"MIT","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/ottypes/rich-text.git"},"bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"keywords":["rich text","ot","operational transform","delta"],"gitHead":"520936bd9c031fc3894c8544d9b3261978f62c1d","_id":"rich-text@2.1.1","_shasum":"ce5bc9458d4bd45d974b76841c520adf7c7127a6","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.3.0","_npmUser":{"name":"jhchen","email":"jhchen7@gmail.com"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"dist":{"shasum":"ce5bc9458d4bd45d974b76841c520adf7c7127a6","size":12879,"noattachment":false,"key":"/rich-text/-/rich-text-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rich-text/download/rich-text-2.1.1.tgz"},"directories":{},"publish_time":1454024444678,"_cnpm_publish_time":1454024444678,"_hasShrinkwrap":false},"2.1.0":{"name":"rich-text","version":"2.1.0","description":"Format for representing rich text documents and changes.","author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"homepage":"https://github.com/ottypes/rich-text","main":"index.js","dependencies":{"fast-diff":"~1.0.1"},"devDependencies":{"chai":"~2.3.0","coveralls":"~2.11.2","grunt":"~0.4.5","istanbul":"~0.3.14","lodash":"~3.9.3","mocha":"~2.2.5","ot-fuzzer":"~1.0.0"},"engines":{"node":">=0.10"},"license":"MIT","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/ottypes/rich-text.git"},"bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"keywords":["rich text","ot","operational transform","delta"],"gitHead":"e5377003c3491db6e2eb5388f915e5e4a7cdb7b6","_id":"rich-text@2.1.0","_shasum":"0c90e0db756d5296c877501c0463e26b86b77830","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jhchen","email":"jhchen7@gmail.com"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"dist":{"shasum":"0c90e0db756d5296c877501c0463e26b86b77830","size":13494,"noattachment":false,"key":"/rich-text/-/rich-text-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rich-text/download/rich-text-2.1.0.tgz"},"directories":{},"publish_time":1438909782440,"_cnpm_publish_time":1438909782440,"_hasShrinkwrap":false},"2.0.0":{"name":"rich-text","version":"2.0.0","description":"Format for representing rich text documents and changes.","author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"homepage":"https://github.com/ottypes/rich-text","main":"index.js","dependencies":{"fast-diff":"~1.0.1"},"devDependencies":{"chai":"~2.3.0","coveralls":"~2.11.2","grunt":"~0.4.5","istanbul":"~0.3.14","lodash":"~3.9.3","mocha":"~2.2.5","ot-fuzzer":"~1.0.0"},"engines":{"node":">=0.10"},"license":"MIT","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/ottypes/rich-text"},"bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"keywords":["rich text","ot","operational transform","delta"],"gitHead":"1060b12f7cab6260be3ea4fde11382fdf0525958","_id":"rich-text@2.0.0","_shasum":"8febe8940073f97983f4bdb65d6a09d2a71bf25f","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"jhchen","email":"jhchen7@gmail.com"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"dist":{"shasum":"8febe8940073f97983f4bdb65d6a09d2a71bf25f","size":13264,"noattachment":false,"key":"/rich-text/-/rich-text-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rich-text/download/rich-text-2.0.0.tgz"},"directories":{},"publish_time":1433380726715,"_cnpm_publish_time":1433380726715,"_hasShrinkwrap":false},"1.1.0":{"name":"rich-text","version":"1.1.0","description":"Format for representing rich text documents and changes.","author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"homepage":"https://github.com/ottypes/rich-text","main":"index.js","dependencies":{"fast-diff":"~1.0.0"},"devDependencies":{"chai":"~2.1.1","coveralls":"~2.11.1","grunt":"~0.4.5","istanbul":"~0.3.0","lodash":"~3.5.0","mocha":"~2.2.1","ot-fuzzer":"~1.0.0"},"engines":{"node":">=0.10"},"license":"MIT","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/ottypes/rich-text"},"bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"keywords":["rich text","ot","operational transform","delta"],"_id":"rich-text@1.1.0","dist":{"shasum":"9027223a115364beed404978f789b3d2edcf02ed","size":12725,"noattachment":false,"key":"/rich-text/-/rich-text-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rich-text/download/rich-text-1.1.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jhchen","email":"jhchen7@gmail.com"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"directories":{},"publish_time":1426376585104,"_cnpm_publish_time":1426376585104,"_hasShrinkwrap":false},"1.0.3":{"name":"rich-text","version":"1.0.3","description":"Format for representing rich text documents and changes.","author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"homepage":"https://github.com/ottypes/rich-text","main":"index.js","dependencies":{"fast-diff":"~1.0.0"},"devDependencies":{"chai":"~1.9.1","coveralls":"~2.11.1","grunt":"~0.4.5","istanbul":"~0.3.0","lodash":"~2.4.1","mocha":"~1.21.4","ot-fuzzer":"~1.0.0"},"engines":{"node":">=0.10"},"license":"MIT","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/ottypes/rich-text"},"bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"keywords":["rich text","ot","operational transform","delta"],"_id":"rich-text@1.0.3","dist":{"shasum":"ac4d825f2fca123d8282842ed55fc57fc7b9c710","size":12760,"noattachment":false,"key":"/rich-text/-/rich-text-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/rich-text/download/rich-text-1.0.3.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jhchen","email":"jhchen7@gmail.com"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"directories":{},"publish_time":1414103090920,"_cnpm_publish_time":1414103090920,"_hasShrinkwrap":false},"1.0.2":{"name":"rich-text","version":"1.0.2","description":"Format for representing rich text documents and changes.","author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"homepage":"https://github.com/ottypes/rich-text","main":"index.js","dependencies":{"fast-diff":"~1.0.0"},"devDependencies":{"chai":"~1.9.1","coveralls":"~2.11.1","grunt":"~0.4.5","istanbul":"~0.3.0","lodash":"~2.4.1","mocha":"~1.21.4","ot-fuzzer":"~1.0.0"},"engines":{"node":">=0.10"},"license":"MIT","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/ottypes/rich-text"},"bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"keywords":["rich text","ot","operational transform","delta"],"_id":"rich-text@1.0.2","dist":{"shasum":"f4b7301cdcc6918d980e6a063389202d726213f2","size":12741,"noattachment":false,"key":"/rich-text/-/rich-text-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rich-text/download/rich-text-1.0.2.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jhchen","email":"jhchen7@gmail.com"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"directories":{},"publish_time":1413843496098,"_cnpm_publish_time":1413843496098,"_hasShrinkwrap":false},"1.0.1":{"name":"rich-text","version":"1.0.1","description":"Format for representing rich text documents and changes.","author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"homepage":"https://github.com/ottypes/rich-text","main":"index.js","dependencies":{"fast-diff":"~1.0.0"},"devDependencies":{"chai":"~1.9.1","coveralls":"~2.11.1","grunt":"~0.4.5","istanbul":"~0.3.0","lodash":"~2.4.1","mocha":"~1.21.4","ot-fuzzer":"~1.0.0"},"engines":{"node":">=0.10"},"license":"MIT","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/ottypes/rich-text"},"bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"keywords":["rich text","ot","operational transform","delta"],"_id":"rich-text@1.0.1","dist":{"shasum":"94bb4b60f9dec6a4a1d06e7f9d40266859d80cb2","size":12690,"noattachment":false,"key":"/rich-text/-/rich-text-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rich-text/download/rich-text-1.0.1.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jhchen","email":"jhchen7@gmail.com"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"directories":{},"publish_time":1413500947558,"_cnpm_publish_time":1413500947558,"_hasShrinkwrap":false},"1.0.0":{"name":"rich-text","version":"1.0.0","description":"Format for representing rich text documents and changes.","author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"homepage":"https://github.com/ottypes/rich-text","main":"index.js","dependencies":{"fast-diff":"~1.0.0"},"devDependencies":{"chai":"~1.9.1","coveralls":"~2.11.1","grunt":"~0.4.5","istanbul":"~0.3.0","lodash":"~2.4.1","mocha":"~1.21.4","ot-fuzzer":"~1.0.0"},"engines":{"node":">=0.10"},"license":"MIT","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/ottypes/rich-text"},"bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"keywords":["rich text","ot","operational transform","delta"],"_id":"rich-text@1.0.0","dist":{"shasum":"ad79349d277183c5cb04fec3f27861c69f1ae74b","size":13178,"noattachment":false,"key":"/rich-text/-/rich-text-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rich-text/download/rich-text-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jhchen","email":"jhchen7@gmail.com"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"directories":{},"publish_time":1412807072295,"_cnpm_publish_time":1412807072295,"_hasShrinkwrap":false},"0.1.0":{"name":"rich-text","version":"0.1.0","description":"Format for representing rich text documents and changes.","author":{"name":"Jason Chen","email":"jhchen7@gmail.com"},"homepage":"https://github.com/ottypes/rich-text","main":"index.js","devDependencies":{"chai":"~1.9.1","coveralls":"~2.11.1","grunt":"~0.4.5","istanbul":"~0.3.0","mocha":"~1.21.4","ot-fuzzer":"~1.0.0"},"engines":{"node":">=0.10"},"license":"MIT","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/ottypes/rich-text"},"bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"keywords":["rich text","ot","operational transform","delta"],"_id":"rich-text@0.1.0","dist":{"shasum":"edde890f04bf0f7036ad6b46a5f9f91ebc32ed1b","size":9777,"noattachment":false,"key":"/rich-text/-/rich-text-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rich-text/download/rich-text-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jhchen","email":"jhchen7@gmail.com"},"maintainers":[{"name":"jhchen","email":"jhchen7@gmail.com"}],"directories":{},"publish_time":1411442962221,"_cnpm_publish_time":1411442962221,"_hasShrinkwrap":false}},"readme":"# Rich Text OT Type [![Build Status](https://travis-ci.org/ottypes/rich-text.svg?branch=master)](https://travis-ci.org/ottypes/rich-text)\n\nAn OT Type for rich text documents.\n\nFor documentation on the spec this type implements, see [ottypes/docs](https://github.com/ottypes/docs). Rich Text does not implement the optional `invert`, but does implement `normalize`, tranformCursor, `serialize`, and `deserialize`. Please refer to [ottypes/docs](https://github.com/ottypes/docs) for documentation.\n\nRich Text uses [quill-delta](https://github.com/quilljs/delta) on the back end.\n\n\n## Operations\n\nOperations are an Array of changes, each operation describing a singular change to a document. They can be an [`insert`](#insert-operation), [`delete`](#delete-operation) or [`retain`](#retain-operation). Note operations do not take an index. They always describe the change at the current index. Use retains to \"keep\" or \"skip\" certain parts of the document.\n\n\n### Insert Operation\n\nInsert operations have an `insert` key defined. A String value represents inserting text. Any other type represents inserting an embed (however only one level of object comparison will be performed for equality).\n\nIn both cases of text and embeds, an optional `attributes` key can be defined with an Object to describe additonal formatting information. Formats can be changed by the [retain](#retain) operation.\n\n```js\n// Insert a bolded \"Text\"\n{ insert: \"Text\", attributes: { bold: true } }\n\n// Insert a link\n{ insert: \"Google\", attributes: { href: 'https://www.google.com' } }\n\n// Insert an embed\n{\n  insert: { image: 'https://octodex.github.com/images/labtocat.png' },\n  attributes: { alt: \"Lab Octocat\" }\n}\n\n// Insert another embed\n{\n  insert: { video: 'https://www.youtube.com/watch?v=dMH0bHeiRNg' },\n  attributes: {\n    width: 420,\n    height: 315\n  }\n}\n```\n\n### Delete Operation\n\nDelete operations have a Number `delete` key defined representing the number of characters to delete. All embeds have a length of 1.\n\n```js\n// Delete the next 10 characters\n{ delete: 10 }\n```\n\n### Retain Operation\n\nRetain operations have a Number `retain` key defined representing the number of characters to keep (other libraries might use the name keep or skip). An optional `attributes` key can be defined with an Object to describe formatting changes to the character range. A value of `null` in the `attributes` Object represents removal of that key.\n\n*Note: It is not necessary to retain the last characters of a document as this is implied.*\n\n```js\n// Keep the next 5 characters\n{ retain: 5 }\n\n// Keep and bold the next 5 characters\n{ retain: 5, attributes: { bold: true } }\n\n// Keep and unbold the next 5 characters\n// More specifically, remove the bold key in the attributes Object\n// in the next 5 characters\n{ retain: 5, attributes: { bold: null } }\n```\n\n\n## Commentary\n\nThis library was originally implemented as part of a full fledged Google Docs like product called Stypi. Eventually, parts were open sourced--the editor became [Quill](https://github.com/quilljs/quill), the realtime engine became [tandem](https://github.com/tandem/tandem) and the document type became [tandem-core](https://github.com/tandem/tandem-core).\n\n[ShareJS](https://github.com/josephg/ShareJS) was a more established open source realtime collaboration engine, so `tandem` and `tandem-core` were deprecated to unify support under one project. `tandem-core` was rewritten as `rich-text`, to adhere to ShareJS's [OT Type specification](https://github.com/ottypes/docs).\n\nThe needs of a realtime rich text document type was formerly a superset of a generalized rich text document type. As Quill has evolved, the reverse is becoming true. This `rich-text` library today provides the interface to use with ShareJS, but the underlying type and fuctionality is implemented in [`quill-delta`](https://github.com/quilljs/delta).\n","_attachments":{},"homepage":"https://github.com/ottypes/rich-text","bugs":{"url":"https://github.com/ottypes/rich-text/issues"},"license":"MIT"}