UNPKG

@jinntec/jinn-codemirror

Version:

Source code editor component based on codemirror with language support for XML and Leiden+

448 lines (199 loc) 18.6 kB
## [1.17.6](https://github.com/JinnElements/jinn-codemirror/compare/v1.17.5...v1.17.6) (2025-03-28) ### Bug Fixes * catch blur events in editors and emit 'leave' event instead ([53f54a3](https://github.com/JinnElements/jinn-codemirror/commit/53f54a308c3c4ff6447e081a11d4cdb5e90c671b)) ## [1.17.5](https://github.com/JinnElements/jinn-codemirror/compare/v1.17.4...v1.17.5) (2024-12-02) ### Bug Fixes * **registration-release:** trigger fix release ([8e9812f](https://github.com/JinnElements/jinn-codemirror/commit/8e9812fe24ba61e9ed7e75bfbf8769b170164a71)) ## [1.17.5](https://github.com/JinnElements/jinn-codemirror/compare/v1.17.4...v1.17.5) (2024-12-02) * trying to fix broken release ## [1.17.4](https://github.com/JinnElements/jinn-codemirror/compare/v1.17.3...v1.17.4) (2024-12-02) ### Bug Fixes * avoid duplicate registration of custom element ## [1.17.3](https://github.com/JinnElements/jinn-codemirror/compare/v1.17.2...v1.17.3) (2024-11-05) ### Bug Fixes * **zotero-picker:** include subcollections ([0a20e21](https://github.com/JinnElements/jinn-codemirror/commit/0a20e215e12bdb21f80fd059d1bd769321c662b8)) ## [1.17.2](https://github.com/JinnElements/jinn-codemirror/compare/v1.17.1...v1.17.2) (2024-08-26) ### Bug Fixes * **zotero-picker:** catch request errors ([c481635](https://github.com/JinnElements/jinn-codemirror/commit/c481635ca54b664d049457ae5fa59fa34a8d0975)) ## [1.17.1](https://github.com/JinnElements/jinn-codemirror/compare/v1.17.0...v1.17.1) (2024-06-10) ### Bug Fixes * close leiden editor if conversion from XML fails ([b396827](https://github.com/JinnElements/jinn-codemirror/commit/b396827fc4d4f0cd9195d7c5c360e429fa278266)) # [1.17.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.16.0...v1.17.0) (2024-03-29) ### Features * add material and solarized themes ([90078ee](https://github.com/JinnElements/jinn-codemirror/commit/90078ee95e50a20e906086f1780daec57de69e21)) # [1.16.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.15.0...v1.16.0) (2024-03-29) ### Features * **jinn-codemirror:** add json support ([8f08845](https://github.com/JinnElements/jinn-codemirror/commit/8f08845a087d0e6592c38dcedb26b32e251ec8d6)) # [1.15.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.14.1...v1.15.0) (2024-02-04) ### Features * support headers and status bar ([1cf9633](https://github.com/JinnElements/jinn-codemirror/commit/1cf96336307f4ac26fe49fc538cb8b960d3d3c76)) ## [1.14.1](https://github.com/JinnElements/jinn-codemirror/compare/v1.14.0...v1.14.1) (2023-12-04) ### Bug Fixes * CSS loading ([5621160](https://github.com/JinnElements/jinn-codemirror/commit/562116065403f533c8c3690b7cd0393b15cc6027)) # [1.14.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.13.5...v1.14.0) (2023-12-04) ### Features * add zotero picker for bibliographic references to XML editor ([ab006d5](https://github.com/JinnElements/jinn-codemirror/commit/ab006d54bd86024ab3057fc45759a8aa5d4d56d0)) ## [1.13.5](https://github.com/JinnElements/jinn-codemirror/compare/v1.13.4...v1.13.5) (2023-07-24) ### Bug Fixes * **jinn-codemirror:** 'code' should be an observable attribute/property ([eecee26](https://github.com/JinnElements/jinn-codemirror/commit/eecee26e42cb7e7dc062c8d791856ee958485a03)) ## [1.13.4](https://github.com/JinnElements/jinn-codemirror/compare/v1.13.3...v1.13.4) (2023-07-17) ### Bug Fixes * **ancientText:** avoid spread operator for browser compatibility ([51d6869](https://github.com/JinnElements/jinn-codemirror/commit/51d6869982c091a74365169210adabd6f4b98413)) ## [1.13.3](https://github.com/JinnElements/jinn-codemirror/compare/v1.13.2...v1.13.3) (2023-07-10) ### Bug Fixes * **jinn-codemirror:** set minimum height for cursor ([a117859](https://github.com/JinnElements/jinn-codemirror/commit/a1178598ef5f5997b5079f23588305ddb75b7db0)) ## [1.13.2](https://github.com/JinnElements/jinn-codemirror/compare/v1.13.1...v1.13.2) (2023-06-23) ### Bug Fixes * **epidoc-editor:** convert existing xml to leiden+ upon initialization ([e204c8d](https://github.com/JinnElements/jinn-codemirror/commit/e204c8d5c2a1ee915a925b06c12baa1ad942e019)) ## [1.13.1](https://github.com/JinnElements/jinn-codemirror/compare/v1.13.0...v1.13.1) (2023-06-23) ### Bug Fixes * **epidoc-editor:** transform to leiden+ upon intial opening ([70c351b](https://github.com/JinnElements/jinn-codemirror/commit/70c351b3bb28cfcf0a60ea94becacfa276d1fbea)) # [1.13.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.12.0...v1.13.0) (2023-06-23) ### Features * **epidoc-editor:** add attribute to control if epidoc editor is initially shown ([732692b](https://github.com/JinnElements/jinn-codemirror/commit/732692b26f14b25ea7fd70b12dd913035decf837)) # [1.12.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.11.9...v1.12.0) (2023-04-23) ### Bug Fixes * snippets fail if selection contains newlines ([ac29f75](https://github.com/JinnElements/jinn-codemirror/commit/ac29f7563b1121144a1656bc84c34a8c21756a4c)) ### Features * **leiden+:** add fix abbreviation action ([8cac4ef](https://github.com/JinnElements/jinn-codemirror/commit/8cac4ef8071c95f9f42e0b824f507b46d06fb627)) ## [1.11.9](https://github.com/JinnElements/jinn-codemirror/compare/v1.11.8...v1.11.9) (2023-04-19) ### Bug Fixes * **xml2leiden:** handle lb/[@break](https://github.com/break)="no" ([fe750b1](https://github.com/JinnElements/jinn-codemirror/commit/fe750b195a39cfb612ed7bb7f77302daafd54f40)) ## [1.11.8](https://github.com/JinnElements/jinn-codemirror/compare/v1.11.7...v1.11.8) (2023-04-11) ### Bug Fixes * **leiden:** part and column ([997d1ec](https://github.com/JinnElements/jinn-codemirror/commit/997d1ec5abeee9d0438bdc29a12dfca0b0a8c8ed)) ## [1.11.7](https://github.com/JinnElements/jinn-codemirror/compare/v1.11.6...v1.11.7) (2023-04-11) ### Bug Fixes * **jinn-codemirror,epidoc-editor:** prevent editor update if content has not changed; clear leiden editor when closing it ([afa2485](https://github.com/JinnElements/jinn-codemirror/commit/afa24854a0ffefba247ae3f05c7043721bfb4735)) ## [1.11.6](https://github.com/JinnElements/jinn-codemirror/compare/v1.11.5...v1.11.6) (2023-03-01) ### Bug Fixes * do not observe code attribute changes; content should be updated via properties ([ba9b2a4](https://github.com/JinnElements/jinn-codemirror/commit/ba9b2a4a1bf24ae918d71ddcde70f8858e31fe03)) ## [1.11.5](https://github.com/JinnElements/jinn-codemirror/compare/v1.11.4...v1.11.5) (2023-02-10) ### Bug Fixes * **epidoc-editor:** reopening leiden editor does not update ([b338ecf](https://github.com/JinnElements/jinn-codemirror/commit/b338ecfea9512172e2e3bf3c89e0443fe8cd6682)) ## [1.11.4](https://github.com/JinnElements/jinn-codemirror/compare/v1.11.3...v1.11.4) (2023-02-09) ### Bug Fixes * **leiden+:** broken test ([59ac71e](https://github.com/JinnElements/jinn-codemirror/commit/59ac71e7afa3d9def44948a381f5fde118b1e0e1)) * **leiden+:** fix recto/verso; do not wrap into ab unless there's inline content between ([6aed1e8](https://github.com/JinnElements/jinn-codemirror/commit/6aed1e89d0a8ebaac4a918902ac830a7a86bc3ce)) * **leiden+:** foreign is an inline element ([001cb7d](https://github.com/JinnElements/jinn-codemirror/commit/001cb7ddc86abdd642decdfa5dd541cd3a862759)) * limit update events by adding 300ms timeout ([1a0c2d4](https://github.com/JinnElements/jinn-codemirror/commit/1a0c2d4bb9197abfd28ab9672a03a441ac9b42c3)) ## [1.11.3](https://github.com/JinnElements/jinn-codemirror/compare/v1.11.2...v1.11.3) (2023-01-16) ### Bug Fixes * **leiden+:** fix xml2leiden conversion of unexpanded abbreviation ([313aab9](https://github.com/JinnElements/jinn-codemirror/commit/313aab9b2eba3dec36c357a314b5a7bb06c17211)) * **leiden+:** improve expan snippet ([a1805ae](https://github.com/JinnElements/jinn-codemirror/commit/a1805aeafdfdfb4ab6719068a21edecac709727d)) ## [1.11.2](https://github.com/JinnElements/jinn-codemirror/compare/v1.11.1...v1.11.2) (2023-01-10) ### Bug Fixes * **html:** fix surround-with command ([889330b](https://github.com/JinnElements/jinn-codemirror/commit/889330bc245ea51a3d3e365306b62d4d6e3ec957)) ## [1.11.1](https://github.com/JinnElements/jinn-codemirror/compare/v1.11.0...v1.11.1) (2022-12-31) ### Bug Fixes * **leiden+:** entering single < crashes editor ([f0e2e82](https://github.com/JinnElements/jinn-codemirror/commit/f0e2e8271053b21c2e971a4e5914f46612e86e2e)) * **xquery:** wrong end position reported by linter causes crash ([0e5501c](https://github.com/JinnElements/jinn-codemirror/commit/0e5501ce5f0adb2bf2d094425cf245ea5a76bdf7)) # [1.11.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.10.1...v1.11.0) (2022-12-31) ### Features * add markdown mode ([393b5a8](https://github.com/JinnElements/jinn-codemirror/commit/393b5a88f99718937b1f0d8965dff596afa013eb)) ## [1.10.1](https://github.com/JinnElements/jinn-codemirror/compare/v1.10.0...v1.10.1) (2022-12-31) ### Bug Fixes * allow toolbar on all editor modes ([f6dcd43](https://github.com/JinnElements/jinn-codemirror/commit/f6dcd4308ee82b050c653c37987d4d9bd90b6098)) # [1.10.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.9.0...v1.10.0) (2022-12-30) ### Bug Fixes * also emit update event if editor becomes empty ([166cd95](https://github.com/JinnElements/jinn-codemirror/commit/166cd9596694e54117c2458e91e88f1f27f6f63e)) ### Features * add support for dark theme ([097226b](https://github.com/JinnElements/jinn-codemirror/commit/097226bfda3621b0ac6eb262eae437333cc563f1)) # [1.9.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.8.3...v1.9.0) (2022-12-30) ### Features * snippet command should be supported in all modes ([62a52e5](https://github.com/JinnElements/jinn-codemirror/commit/62a52e52209c00a19e7368e7a1c75896fc110c2e)) ## [1.8.3](https://github.com/JinnElements/jinn-codemirror/compare/v1.8.2...v1.8.3) (2022-12-30) ### Bug Fixes * refactor to handle type conversion ([d2ef6b0](https://github.com/JinnElements/jinn-codemirror/commit/d2ef6b0effb055e671376b96196dfd32253fafa6)) ## [1.8.2](https://github.com/JinnElements/jinn-codemirror/compare/v1.8.1...v1.8.2) (2022-12-30) ### Bug Fixes * react to 'code' attribute change ([46ff91e](https://github.com/JinnElements/jinn-codemirror/commit/46ff91e1a065ff9dfecf9c179d6a1a6a2064be18)) ## [1.8.1](https://github.com/JinnElements/jinn-codemirror/compare/v1.8.0...v1.8.1) (2022-12-30) ### Bug Fixes * react to attribute change for 'mode' ([67e7677](https://github.com/JinnElements/jinn-codemirror/commit/67e76770e5a523fe4a3e9aa8943af677f2c6288a)) # [1.8.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.7.2...v1.8.0) (2022-12-30) ### Features * add support for TeX syntax ([b4b5655](https://github.com/JinnElements/jinn-codemirror/commit/b4b5655a381e11c9e3f58d2befe769e25dcd9e68)) ## [1.7.2](https://github.com/JinnElements/jinn-codemirror/compare/v1.7.1...v1.7.2) (2022-12-29) ### Bug Fixes * changing placeholder overwrites content ([7f0cb07](https://github.com/JinnElements/jinn-codemirror/commit/7f0cb074ff07d6307ff83c3e58806e4afc9f445d)) ## [1.7.1](https://github.com/JinnElements/jinn-codemirror/compare/v1.7.0...v1.7.1) (2022-12-29) ### Bug Fixes * placeholder overwrites content ([4da0b11](https://github.com/JinnElements/jinn-codemirror/commit/4da0b11d3ff7a80a750aeb5beec6dc247192df6b)) # [1.7.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.6.4...v1.7.0) (2022-12-29) ### Bug Fixes * **leiden+:** add missing elements to leiden+2xml conversion ([140bdc6](https://github.com/JinnElements/jinn-codemirror/commit/140bdc6da4c01599b57b91e8bce20cf93844df35)) ### Features * add plain and html modes ([2aad5b1](https://github.com/JinnElements/jinn-codemirror/commit/2aad5b15ef6bad5532b8deee0ab260d01bca75dd)) ## [1.6.4](https://github.com/JinnElements/jinn-codemirror/compare/v1.6.3...v1.6.4) (2022-12-29) ### Bug Fixes * add transpiled source files to dist ([bdda273](https://github.com/JinnElements/jinn-codemirror/commit/bdda2736af4d031f34629eb783209cc52e6672db)) ## [1.6.3](https://github.com/JinnElements/jinn-codemirror/compare/v1.6.2...v1.6.3) (2022-12-29) ### Bug Fixes * **xquery:** duplicate placeholder ([03b48fd](https://github.com/JinnElements/jinn-codemirror/commit/03b48fd4961ab8959eaec577c9ce2207b093e609)) ## [1.6.2](https://github.com/JinnElements/jinn-codemirror/compare/v1.6.1...v1.6.2) (2022-12-29) ### Bug Fixes * clear old editor div before setting mode ([036dae9](https://github.com/JinnElements/jinn-codemirror/commit/036dae9d139fd4a3dd92392bd23c3ca078a7e200)) ## [1.6.1](https://github.com/JinnElements/jinn-codemirror/compare/v1.6.0...v1.6.1) (2022-12-29) ### Bug Fixes * observe placeholder attribute ([2bd4393](https://github.com/JinnElements/jinn-codemirror/commit/2bd4393e9fb04fa9def11893041b5903f3ab53e7)) # [1.6.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.5.0...v1.6.0) (2022-12-28) ### Features * add placeholder attribute to editors ([fa5a2d7](https://github.com/JinnElements/jinn-codemirror/commit/fa5a2d752780f9d5f75c24141c4934adcc5046a4)) # [1.5.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.4.0...v1.5.0) (2022-12-28) ### Features * allow initial value to be set via `code` attribute ([b62c33e](https://github.com/JinnElements/jinn-codemirror/commit/b62c33eda04d4c9b4f170f625ef08aaf8ab74365)) # [1.4.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.3.2...v1.4.0) (2022-11-29) ### Features * add css and xquery modes ([64faa70](https://github.com/JinnElements/jinn-codemirror/commit/64faa709b4aafc7a48626de48eb5568dce5ddb3e)) ## [1.3.2](https://github.com/JinnElements/jinn-codemirror/compare/v1.3.1...v1.3.2) (2022-11-29) ### Bug Fixes * **leiden+:** token highlighting ([6d4186e](https://github.com/JinnElements/jinn-codemirror/commit/6d4186e0d026ca922d6beebaa2447491d6d08b0b)) ## [1.3.1](https://github.com/JinnElements/jinn-codemirror/compare/v1.3.0...v1.3.1) (2022-11-29) ### Bug Fixes * **ancientText:** fix conversion to leiden+ ([1762644](https://github.com/JinnElements/jinn-codemirror/commit/17626442f91c2682ae99e2d9cbcb0e750f236907)) # [1.3.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.2.5...v1.3.0) (2022-11-29) ### Bug Fixes * **epidoc-editor:** allow syntax select to be hidden ([50f8ec8](https://github.com/JinnElements/jinn-codemirror/commit/50f8ec8238fd41cfffe0a628fbe05fdf5e006a10)) ### Features * **leiden+:** add 'fixNewlines' command ([9af1aac](https://github.com/JinnElements/jinn-codemirror/commit/9af1aac4cfa5bd872c3969f7838f59b5be73c5ad)) ## [1.2.5](https://github.com/JinnElements/jinn-codemirror/compare/v1.2.4...v1.2.5) (2022-11-28) ### Bug Fixes * **leiden+:** detect and report invalid abbreviations ([f19cde3](https://github.com/JinnElements/jinn-codemirror/commit/f19cde3b80734c19e5279f050f5c70f24e7b44e1)) ## [1.2.4](https://github.com/JinnElements/jinn-codemirror/compare/v1.2.3...v1.2.4) (2022-11-18) ### Bug Fixes * **epidoc-editor:** show warning if user tries to open leiden+ but xml is invalid ([77179ff](https://github.com/JinnElements/jinn-codemirror/commit/77179ffb91a5c6b78d97fd41942160f529e2921c)) ## [1.2.3](https://github.com/JinnElements/jinn-codemirror/compare/v1.2.2...v1.2.3) (2022-11-18) ### Bug Fixes * **epidoc-editor:** Do not open leiden+ editor if xml contains errors ([c04879f](https://github.com/JinnElements/jinn-codemirror/commit/c04879fd5b77d1a9234c4cc5878630597e0eb8cd)) ## [1.2.2](https://github.com/JinnElements/jinn-codemirror/compare/v1.2.1...v1.2.2) (2022-11-18) ### Bug Fixes * **epidoc-editor:** close Leiden editor if user starts typing into XML editor. ([bd4174e](https://github.com/JinnElements/jinn-codemirror/commit/bd4174e6296ec4e3c4acdd401b384f9f5a84936a)) ## [1.2.1](https://github.com/JinnElements/jinn-codemirror/compare/v1.2.0...v1.2.1) (2022-11-16) ### Bug Fixes * **epidoc-editor:** clear content if xml is empty ([19de046](https://github.com/JinnElements/jinn-codemirror/commit/19de046accb3cd47fb1c4d8e6be92d8ee54d391f)) # [1.2.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.1.1...v1.2.0) (2022-10-16) ### Features * **jinn-xml-editor:** reinstate support for autocomplete; add TEI schema for autocomplete ([86cc2b1](https://github.com/JinnElements/jinn-codemirror/commit/86cc2b14c3b49fb231392186715401efc29e5cc3)) ## [1.1.1](https://github.com/JinnElements/jinn-codemirror/compare/v1.1.0...v1.1.1) (2022-10-14) ### Bug Fixes * **xml-commands:** attempt to fix focus issue when opening panel ([a70d961](https://github.com/JinnElements/jinn-codemirror/commit/a70d96115d68f2155042785f6295fc7b9bfb727a)) # [1.1.0](https://github.com/JinnElements/jinn-codemirror/compare/v1.0.1...v1.1.0) (2022-09-13) ### Features * make keybindings configurable ([1928a62](https://github.com/JinnElements/jinn-codemirror/commit/1928a62523a26b120516aa2690d49f9e3db414cb)) ## [1.0.1](https://github.com/JinnElements/jinn-codemirror/compare/v1.0.0...v1.0.1) (2022-09-09) ### Bug Fixes * **epidoc-editor:** do not update XML after opening leiden editor ([7cc0d90](https://github.com/JinnElements/jinn-codemirror/commit/7cc0d90f03ff4586066673558e9d8c20cb0e3f07)) # 1.0.0 (2022-09-09) ### Bug Fixes * **epidoc-editor:** dispatch update on empty content ([78c6b36](https://github.com/JinnElements/jinn-codemirror/commit/78c6b36c0fcbec5a947bedcfaf4880a81c88cef5)) * manipulate shadowroot in connected callback ([5de1311](https://github.com/JinnElements/jinn-codemirror/commit/5de1311713099079a8c822636c1eaae94571ddae)) * setting value property does not trigger update event ([47df141](https://github.com/JinnElements/jinn-codemirror/commit/47df14194d98636e1c1c17add673396f00edf019)) ### Features * add jinn-epidoc-editor component ([a67535a](https://github.com/JinnElements/jinn-codemirror/commit/a67535a42bfe1ebc971ac891045dceb9aa9083b9)) * **build:** allow dev builds ([5b7e17f](https://github.com/JinnElements/jinn-codemirror/commit/5b7e17f741af9844c1a8cc6b61a803de212bcf35)) * enforce tei namespace ([774abc8](https://github.com/JinnElements/jinn-codemirror/commit/774abc8f2620ad400739b55157008a36bdc19261)) * update 'value' property on change ([bd915c9](https://github.com/JinnElements/jinn-codemirror/commit/bd915c9ee050be87f7d368fe0ec38b9ff3f65e83)) * **valid:** set valid state reliably ([9b3da3d](https://github.com/JinnElements/jinn-codemirror/commit/9b3da3d84aa79eb1c85c13bcc845c8e4728dd8a5)) ### Reverts * remove _remote property from epidoc-editor ([71f2d7f](https://github.com/JinnElements/jinn-codemirror/commit/71f2d7f8b43e9f623451435c9b9a758f762bf4d0))