add flox
This commit is contained in:
parent
b1acf1d4d7
commit
5d485fd805
561
Cargo.lock
generated
561
Cargo.lock
generated
|
@ -29,6 +29,12 @@ dependencies = [
|
||||||
"memchr",
|
"memchr",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "aligned-vec"
|
||||||
|
version = "0.5.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "4aa90d7ce82d4be67b64039a3d588d38dbcc6736577de4a847025ce5b0c468d1"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "allocator-api2"
|
name = "allocator-api2"
|
||||||
version = "0.2.18"
|
version = "0.2.18"
|
||||||
|
@ -67,9 +73,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "anstyle"
|
name = "anstyle"
|
||||||
version = "1.0.7"
|
version = "1.0.8"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "038dfcf04a5feb68e9c60b21c9625a54c2c0616e79b72b0fd87075a056ae1d1b"
|
checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "anstyle-parse"
|
name = "anstyle-parse"
|
||||||
|
@ -99,18 +105,70 @@ dependencies = [
|
||||||
"windows-sys 0.52.0",
|
"windows-sys 0.52.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "anyhow"
|
||||||
|
version = "1.0.86"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "arbitrary"
|
||||||
|
version = "1.3.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "arg_enum_proc_macro"
|
||||||
|
version = "0.3.4"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948a44a734dea"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 2.0.53",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "arraydeque"
|
name = "arraydeque"
|
||||||
version = "0.5.1"
|
version = "0.5.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236"
|
checksum = "7d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "arrayvec"
|
||||||
|
version = "0.7.4"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "autocfg"
|
name = "autocfg"
|
||||||
version = "1.1.0"
|
version = "1.1.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "av1-grain"
|
||||||
|
version = "0.2.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "6678909d8c5d46a42abcf571271e15fdbc0a225e3646cf23762cd415046c78bf"
|
||||||
|
dependencies = [
|
||||||
|
"anyhow",
|
||||||
|
"arrayvec",
|
||||||
|
"log",
|
||||||
|
"nom",
|
||||||
|
"num-rational",
|
||||||
|
"v_frame",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "avif-serialize"
|
||||||
|
version = "0.8.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "876c75a42f6364451a033496a14c44bffe41f5f4a8236f697391f11024e596d2"
|
||||||
|
dependencies = [
|
||||||
|
"arrayvec",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "base64"
|
name = "base64"
|
||||||
version = "0.22.1"
|
version = "0.22.1"
|
||||||
|
@ -148,6 +206,12 @@ version = "2.5.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1"
|
checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "bitstream-io"
|
||||||
|
version = "2.5.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "3dcde5f311c85b8ca30c2e4198d4326bc342c76541590106f5fa4a50946ea499"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "block-buffer"
|
name = "block-buffer"
|
||||||
version = "0.10.4"
|
version = "0.10.4"
|
||||||
|
@ -157,6 +221,12 @@ dependencies = [
|
||||||
"generic-array",
|
"generic-array",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "built"
|
||||||
|
version = "0.7.4"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "236e6289eda5a812bc6b53c3b024039382a2895fbbeef2d748b2931546d392c4"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bumpalo"
|
name = "bumpalo"
|
||||||
version = "3.16.0"
|
version = "3.16.0"
|
||||||
|
@ -175,6 +245,12 @@ version = "1.5.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
|
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "byteorder-lite"
|
||||||
|
version = "0.1.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bytes"
|
name = "bytes"
|
||||||
version = "1.6.0"
|
version = "1.6.0"
|
||||||
|
@ -183,9 +259,9 @@ checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "camino"
|
name = "camino"
|
||||||
version = "1.1.7"
|
version = "1.1.9"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e0ec6b951b160caa93cc0c7b209e5a3bff7aae9062213451ac99493cd844c239"
|
checksum = "8b96ec4966b5813e2c0507c1f86115c8c5abaadc3980879c3424042a02fd1ad3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
|
@ -195,6 +271,21 @@ name = "cc"
|
||||||
version = "1.0.96"
|
version = "1.0.96"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "065a29261d53ba54260972629f9ca6bffa69bac13cd1fed61420f7fa68b9f8bd"
|
checksum = "065a29261d53ba54260972629f9ca6bffa69bac13cd1fed61420f7fa68b9f8bd"
|
||||||
|
dependencies = [
|
||||||
|
"jobserver",
|
||||||
|
"libc",
|
||||||
|
"once_cell",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "cfg-expr"
|
||||||
|
version = "0.15.8"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02"
|
||||||
|
dependencies = [
|
||||||
|
"smallvec",
|
||||||
|
"target-lexicon",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cfg-if"
|
name = "cfg-if"
|
||||||
|
@ -255,9 +346,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap"
|
name = "clap"
|
||||||
version = "4.5.7"
|
version = "4.5.16"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "5db83dced34638ad474f39f250d7fea9598bdd239eaced1bdf45d597da0f433f"
|
checksum = "ed6719fffa43d0d87e5fd8caeab59be1554fb028cd30edc88fc4369b17971019"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap_builder",
|
"clap_builder",
|
||||||
"clap_derive",
|
"clap_derive",
|
||||||
|
@ -265,9 +356,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap_builder"
|
name = "clap_builder"
|
||||||
version = "4.5.7"
|
version = "4.5.15"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f7e204572485eb3fbf28f871612191521df159bc3e15a9f5064c66dba3a8c05f"
|
checksum = "216aec2b177652e3846684cbfe25c9964d18ec45234f0f5da5157b207ed1aab6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anstream",
|
"anstream",
|
||||||
"anstyle",
|
"anstyle",
|
||||||
|
@ -277,9 +368,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap_derive"
|
name = "clap_derive"
|
||||||
version = "4.5.5"
|
version = "4.5.13"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c780290ccf4fb26629baa7a1081e68ced113f1d3ec302fa5948f1c381ebf06c6"
|
checksum = "501d359d5f3dcaf6ecdeee48833ae73ec6e42723a1e52419c79abf9507eec0a0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"heck 0.5.0",
|
"heck 0.5.0",
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
|
@ -865,22 +956,43 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "image"
|
name = "image"
|
||||||
version = "0.24.9"
|
version = "0.25.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "5690139d2f55868e080017335e4b94cb7414274c74f1669c84fb5feba2c9f69d"
|
checksum = "99314c8a2152b8ddb211f924cdae532d8c5e4c8bb54728e12fff1b0cd5963a10"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
"byteorder",
|
"byteorder-lite",
|
||||||
"color_quant",
|
"color_quant",
|
||||||
"exr",
|
"exr",
|
||||||
"gif",
|
"gif",
|
||||||
"jpeg-decoder",
|
"image-webp",
|
||||||
"num-traits",
|
"num-traits",
|
||||||
"png",
|
"png",
|
||||||
"qoi",
|
"qoi",
|
||||||
|
"ravif",
|
||||||
|
"rayon",
|
||||||
|
"rgb",
|
||||||
"tiff",
|
"tiff",
|
||||||
|
"zune-core",
|
||||||
|
"zune-jpeg",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "image-webp"
|
||||||
|
version = "0.1.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f79afb8cbee2ef20f59ccd477a218c12a93943d075b492015ecb1bb81f8ee904"
|
||||||
|
dependencies = [
|
||||||
|
"byteorder-lite",
|
||||||
|
"quick-error",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "imgref"
|
||||||
|
version = "1.10.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "44feda355f4159a7c757171a77de25daf6411e217b4cabd03bd6650690468126"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "indexmap"
|
name = "indexmap"
|
||||||
version = "2.2.6"
|
version = "2.2.6"
|
||||||
|
@ -912,6 +1024,17 @@ dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "interpolate_name"
|
||||||
|
version = "0.2.4"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "c34819042dc3d3971c46c2190835914dfbe0c3c13f61449b2997f4e9722dfa60"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 2.0.53",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "is_terminal_polyfill"
|
name = "is_terminal_polyfill"
|
||||||
version = "1.70.0"
|
version = "1.70.0"
|
||||||
|
@ -927,20 +1050,35 @@ dependencies = [
|
||||||
"either",
|
"either",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "itertools"
|
||||||
|
version = "0.12.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
|
||||||
|
dependencies = [
|
||||||
|
"either",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "itoa"
|
name = "itoa"
|
||||||
version = "1.0.10"
|
version = "1.0.10"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c"
|
checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "jobserver"
|
||||||
|
version = "0.1.32"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0"
|
||||||
|
dependencies = [
|
||||||
|
"libc",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "jpeg-decoder"
|
name = "jpeg-decoder"
|
||||||
version = "0.3.1"
|
version = "0.3.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f5d4a7da358eff58addd2877a45865158f0d78c911d43a5784ceb7bbf52833b0"
|
checksum = "f5d4a7da358eff58addd2877a45865158f0d78c911d43a5784ceb7bbf52833b0"
|
||||||
dependencies = [
|
|
||||||
"rayon",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "js-sys"
|
name = "js-sys"
|
||||||
|
@ -951,6 +1089,41 @@ dependencies = [
|
||||||
"wasm-bindgen",
|
"wasm-bindgen",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "kamoshi"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"camino",
|
||||||
|
"chrono",
|
||||||
|
"clap",
|
||||||
|
"emojis",
|
||||||
|
"glob",
|
||||||
|
"hauchiwa",
|
||||||
|
"hayagriva",
|
||||||
|
"hypertext",
|
||||||
|
"katex",
|
||||||
|
"npezza93-tree-sitter-nix",
|
||||||
|
"once_cell",
|
||||||
|
"pulldown-cmark",
|
||||||
|
"rayon",
|
||||||
|
"regex",
|
||||||
|
"serde",
|
||||||
|
"tree-sitter",
|
||||||
|
"tree-sitter-css",
|
||||||
|
"tree-sitter-haskell",
|
||||||
|
"tree-sitter-highlight",
|
||||||
|
"tree-sitter-html",
|
||||||
|
"tree-sitter-javascript",
|
||||||
|
"tree-sitter-md",
|
||||||
|
"tree-sitter-python",
|
||||||
|
"tree-sitter-query",
|
||||||
|
"tree-sitter-regex",
|
||||||
|
"tree-sitter-rust",
|
||||||
|
"tree-sitter-scss",
|
||||||
|
"tree-sitter-toml-ng",
|
||||||
|
"tree-sitter-typescript",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "katex"
|
name = "katex"
|
||||||
version = "0.4.6"
|
version = "0.4.6"
|
||||||
|
@ -959,7 +1132,7 @@ checksum = "4bdbc7a1823f188f56ac9486993536b70a2686a58d47095dcc10507a7d242bf5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
"derive_builder",
|
"derive_builder",
|
||||||
"itertools",
|
"itertools 0.10.5",
|
||||||
"quick-js",
|
"quick-js",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
]
|
]
|
||||||
|
@ -1011,6 +1184,17 @@ version = "0.2.153"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
|
checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "libfuzzer-sys"
|
||||||
|
version = "0.4.7"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a96cfd5557eb82f2b83fed4955246c988d331975a002961b07c81584d107e7f7"
|
||||||
|
dependencies = [
|
||||||
|
"arbitrary",
|
||||||
|
"cc",
|
||||||
|
"once_cell",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libquickjs-sys"
|
name = "libquickjs-sys"
|
||||||
version = "0.9.0"
|
version = "0.9.0"
|
||||||
|
@ -1037,12 +1221,36 @@ version = "0.4.21"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c"
|
checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "loop9"
|
||||||
|
version = "0.1.5"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "0fae87c125b03c1d2c0150c90365d7d6bcc53fb73a9acaef207d2d065860f062"
|
||||||
|
dependencies = [
|
||||||
|
"imgref",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "maybe-rayon"
|
||||||
|
version = "0.1.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "8ea1f30cedd69f0a2954655f7188c6a834246d2bcf1e315e2ac40c4b24dc9519"
|
||||||
|
dependencies = [
|
||||||
|
"cfg-if",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "memchr"
|
name = "memchr"
|
||||||
version = "2.7.1"
|
version = "2.7.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149"
|
checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "minimal-lexical"
|
||||||
|
version = "0.2.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "miniz_oxide"
|
name = "miniz_oxide"
|
||||||
version = "0.7.4"
|
version = "0.7.4"
|
||||||
|
@ -1065,6 +1273,28 @@ dependencies = [
|
||||||
"windows-sys 0.48.0",
|
"windows-sys 0.48.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "new_debug_unreachable"
|
||||||
|
version = "1.0.6"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "nom"
|
||||||
|
version = "7.1.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
|
||||||
|
dependencies = [
|
||||||
|
"memchr",
|
||||||
|
"minimal-lexical",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "noop_proc_macro"
|
||||||
|
version = "0.3.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "notify"
|
name = "notify"
|
||||||
version = "6.1.1"
|
version = "6.1.1"
|
||||||
|
@ -1105,6 +1335,47 @@ dependencies = [
|
||||||
"tree-sitter",
|
"tree-sitter",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "num-bigint"
|
||||||
|
version = "0.4.6"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
|
||||||
|
dependencies = [
|
||||||
|
"num-integer",
|
||||||
|
"num-traits",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "num-derive"
|
||||||
|
version = "0.4.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 2.0.53",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "num-integer"
|
||||||
|
version = "0.1.46"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
|
||||||
|
dependencies = [
|
||||||
|
"num-traits",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "num-rational"
|
||||||
|
version = "0.4.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
|
||||||
|
dependencies = [
|
||||||
|
"num-bigint",
|
||||||
|
"num-integer",
|
||||||
|
"num-traits",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "num-traits"
|
name = "num-traits"
|
||||||
version = "0.2.18"
|
version = "0.2.18"
|
||||||
|
@ -1180,6 +1451,12 @@ dependencies = [
|
||||||
"siphasher",
|
"siphasher",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "pkg-config"
|
||||||
|
version = "0.3.30"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "png"
|
name = "png"
|
||||||
version = "0.17.13"
|
version = "0.17.13"
|
||||||
|
@ -1244,10 +1521,29 @@ dependencies = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pulldown-cmark"
|
name = "profiling"
|
||||||
version = "0.11.0"
|
version = "1.0.15"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "8746739f11d39ce5ad5c2520a9b75285310dbfe78c541ccf832d38615765aec0"
|
checksum = "43d84d1d7a6ac92673717f9f6d1518374ef257669c24ebc5ac25d5033828be58"
|
||||||
|
dependencies = [
|
||||||
|
"profiling-procmacros",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "profiling-procmacros"
|
||||||
|
version = "1.0.15"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "8021cf59c8ec9c432cfc2526ac6b8aa508ecaf29cd415f271b8406c1b851c3fd"
|
||||||
|
dependencies = [
|
||||||
|
"quote",
|
||||||
|
"syn 2.0.53",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "pulldown-cmark"
|
||||||
|
version = "0.12.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "4d31cbfcd94884c3a67ec210c83efb06cb43674043458b0ad59f6947f8462c23"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 2.5.0",
|
"bitflags 2.5.0",
|
||||||
"getopts",
|
"getopts",
|
||||||
|
@ -1271,6 +1567,12 @@ dependencies = [
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "quick-error"
|
||||||
|
version = "2.0.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "quick-js"
|
name = "quick-js"
|
||||||
version = "0.4.1"
|
version = "0.4.1"
|
||||||
|
@ -1330,6 +1632,55 @@ dependencies = [
|
||||||
"getrandom",
|
"getrandom",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "rav1e"
|
||||||
|
version = "0.7.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "cd87ce80a7665b1cce111f8a16c1f3929f6547ce91ade6addf4ec86a8dda5ce9"
|
||||||
|
dependencies = [
|
||||||
|
"arbitrary",
|
||||||
|
"arg_enum_proc_macro",
|
||||||
|
"arrayvec",
|
||||||
|
"av1-grain",
|
||||||
|
"bitstream-io",
|
||||||
|
"built",
|
||||||
|
"cfg-if",
|
||||||
|
"interpolate_name",
|
||||||
|
"itertools 0.12.1",
|
||||||
|
"libc",
|
||||||
|
"libfuzzer-sys",
|
||||||
|
"log",
|
||||||
|
"maybe-rayon",
|
||||||
|
"new_debug_unreachable",
|
||||||
|
"noop_proc_macro",
|
||||||
|
"num-derive",
|
||||||
|
"num-traits",
|
||||||
|
"once_cell",
|
||||||
|
"paste",
|
||||||
|
"profiling",
|
||||||
|
"rand",
|
||||||
|
"rand_chacha",
|
||||||
|
"simd_helpers",
|
||||||
|
"system-deps",
|
||||||
|
"thiserror",
|
||||||
|
"v_frame",
|
||||||
|
"wasm-bindgen",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "ravif"
|
||||||
|
version = "0.11.9"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "5797d09f9bd33604689e87e8380df4951d4912f01b63f71205e2abd4ae25e6b6"
|
||||||
|
dependencies = [
|
||||||
|
"avif-serialize",
|
||||||
|
"imgref",
|
||||||
|
"loop9",
|
||||||
|
"quick-error",
|
||||||
|
"rav1e",
|
||||||
|
"rgb",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rayon"
|
name = "rayon"
|
||||||
version = "1.10.0"
|
version = "1.10.0"
|
||||||
|
@ -1361,9 +1712,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "regex"
|
name = "regex"
|
||||||
version = "1.10.5"
|
version = "1.10.6"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f"
|
checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aho-corasick",
|
"aho-corasick",
|
||||||
"memchr",
|
"memchr",
|
||||||
|
@ -1388,6 +1739,15 @@ version = "0.8.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f"
|
checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "rgb"
|
||||||
|
version = "0.8.45"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "ade4539f42266ded9e755c605bdddf546242b2c961b03b06a7375260788a0523"
|
||||||
|
dependencies = [
|
||||||
|
"bytemuck",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rstml"
|
name = "rstml"
|
||||||
version = "0.11.2"
|
version = "0.11.2"
|
||||||
|
@ -1431,18 +1791,18 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "serde"
|
name = "serde"
|
||||||
version = "1.0.203"
|
version = "1.0.208"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094"
|
checksum = "cff085d2cb684faa248efb494c39b68e522822ac0de72ccf08109abde717cfb2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"serde_derive",
|
"serde_derive",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "serde_derive"
|
name = "serde_derive"
|
||||||
version = "1.0.203"
|
version = "1.0.208"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba"
|
checksum = "24008e81ff7613ed8e5ba0cfaf24e2c2f1e5b8a0495711e44fcd4882fca62bcf"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
@ -1460,6 +1820,15 @@ dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "serde_spanned"
|
||||||
|
version = "0.6.7"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "eb5b1b31579f3811bf615c144393417496f152e12ac8b7663bf664f4a815306d"
|
||||||
|
dependencies = [
|
||||||
|
"serde",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "serde_yaml"
|
name = "serde_yaml"
|
||||||
version = "0.9.33"
|
version = "0.9.33"
|
||||||
|
@ -1501,6 +1870,15 @@ version = "0.3.7"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"
|
checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "simd_helpers"
|
||||||
|
version = "0.1.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "95890f873bec569a0362c235787f3aca6e1e887302ba4840839bcc6459c42da6"
|
||||||
|
dependencies = [
|
||||||
|
"quote",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "siphasher"
|
name = "siphasher"
|
||||||
version = "0.3.11"
|
version = "0.3.11"
|
||||||
|
@ -1522,41 +1900,6 @@ dependencies = [
|
||||||
"lock_api",
|
"lock_api",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "ssg"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"camino",
|
|
||||||
"chrono",
|
|
||||||
"clap",
|
|
||||||
"emojis",
|
|
||||||
"glob",
|
|
||||||
"hauchiwa",
|
|
||||||
"hayagriva",
|
|
||||||
"hypertext",
|
|
||||||
"katex",
|
|
||||||
"npezza93-tree-sitter-nix",
|
|
||||||
"once_cell",
|
|
||||||
"pulldown-cmark",
|
|
||||||
"rayon",
|
|
||||||
"regex",
|
|
||||||
"serde",
|
|
||||||
"tree-sitter",
|
|
||||||
"tree-sitter-css",
|
|
||||||
"tree-sitter-haskell",
|
|
||||||
"tree-sitter-highlight",
|
|
||||||
"tree-sitter-html",
|
|
||||||
"tree-sitter-javascript",
|
|
||||||
"tree-sitter-md",
|
|
||||||
"tree-sitter-python",
|
|
||||||
"tree-sitter-query",
|
|
||||||
"tree-sitter-regex",
|
|
||||||
"tree-sitter-rust",
|
|
||||||
"tree-sitter-scss",
|
|
||||||
"tree-sitter-toml-ng",
|
|
||||||
"tree-sitter-typescript",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "strsim"
|
name = "strsim"
|
||||||
version = "0.10.0"
|
version = "0.10.0"
|
||||||
|
@ -1625,6 +1968,25 @@ dependencies = [
|
||||||
"syn 2.0.53",
|
"syn 2.0.53",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "system-deps"
|
||||||
|
version = "6.2.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349"
|
||||||
|
dependencies = [
|
||||||
|
"cfg-expr",
|
||||||
|
"heck 0.5.0",
|
||||||
|
"pkg-config",
|
||||||
|
"toml",
|
||||||
|
"version-compare",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "target-lexicon"
|
||||||
|
version = "0.12.16"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "thiserror"
|
name = "thiserror"
|
||||||
version = "1.0.59"
|
version = "1.0.59"
|
||||||
|
@ -1680,6 +2042,40 @@ version = "0.1.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "toml"
|
||||||
|
version = "0.8.19"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e"
|
||||||
|
dependencies = [
|
||||||
|
"serde",
|
||||||
|
"serde_spanned",
|
||||||
|
"toml_datetime",
|
||||||
|
"toml_edit",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "toml_datetime"
|
||||||
|
version = "0.6.8"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41"
|
||||||
|
dependencies = [
|
||||||
|
"serde",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "toml_edit"
|
||||||
|
version = "0.22.20"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "583c44c02ad26b0c3f3066fe629275e50627026c51ac2e595cca4c230ce1ce1d"
|
||||||
|
dependencies = [
|
||||||
|
"indexmap",
|
||||||
|
"serde",
|
||||||
|
"serde_spanned",
|
||||||
|
"toml_datetime",
|
||||||
|
"winnow",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tree-sitter"
|
name = "tree-sitter"
|
||||||
version = "0.22.6"
|
version = "0.22.6"
|
||||||
|
@ -1948,6 +2344,23 @@ version = "0.2.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
|
checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "v_frame"
|
||||||
|
version = "0.3.8"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d6f32aaa24bacd11e488aa9ba66369c7cd514885742c9fe08cfe85884db3e92b"
|
||||||
|
dependencies = [
|
||||||
|
"aligned-vec",
|
||||||
|
"num-traits",
|
||||||
|
"wasm-bindgen",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "version-compare"
|
||||||
|
version = "0.2.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "852e951cb7832cb45cb1169900d19760cfa39b82bc0ea9c0e5a14ae88411c98b"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "version_check"
|
name = "version_check"
|
||||||
version = "0.9.4"
|
version = "0.9.4"
|
||||||
|
@ -2202,6 +2615,15 @@ version = "0.52.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8"
|
checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "winnow"
|
||||||
|
version = "0.6.18"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "68a9bda4691f099d435ad181000724da8e5899daa10713c2d432552b9ccd3a6f"
|
||||||
|
dependencies = [
|
||||||
|
"memchr",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "yaml-rust2"
|
name = "yaml-rust2"
|
||||||
version = "0.8.1"
|
version = "0.8.1"
|
||||||
|
@ -2233,6 +2655,12 @@ dependencies = [
|
||||||
"syn 2.0.53",
|
"syn 2.0.53",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "zune-core"
|
||||||
|
version = "0.4.12"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "3f423a2c17029964870cfaabb1f13dfab7d092a62a29a89264f4d36990ca414a"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zune-inflate"
|
name = "zune-inflate"
|
||||||
version = "0.2.54"
|
version = "0.2.54"
|
||||||
|
@ -2241,3 +2669,12 @@ checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"simd-adler32",
|
"simd-adler32",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "zune-jpeg"
|
||||||
|
version = "0.4.13"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "16099418600b4d8f028622f73ff6e3deaabdff330fb9a2a131dea781ee8b0768"
|
||||||
|
dependencies = [
|
||||||
|
"zune-core",
|
||||||
|
]
|
||||||
|
|
12
Cargo.toml
12
Cargo.toml
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ssg"
|
name = "kamoshi"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
@ -8,9 +8,9 @@ edition = "2021"
|
||||||
path = "../hauchiwa"
|
path = "../hauchiwa"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
camino = { version = "1.1.7", features = ["serde1"] }
|
camino = { version = "1.1.9", features = ["serde1"] }
|
||||||
chrono = "0.4.38"
|
chrono = "0.4.38"
|
||||||
clap = { version = "4.5.7", features = ["derive"] }
|
clap = { version = "4.5.16", features = ["derive"] }
|
||||||
emojis = "0.6.2"
|
emojis = "0.6.2"
|
||||||
glob = "0.3.1"
|
glob = "0.3.1"
|
||||||
hayagriva = "0.5.3"
|
hayagriva = "0.5.3"
|
||||||
|
@ -18,11 +18,11 @@ hypertext = "0.5.1"
|
||||||
katex = "0.4.6"
|
katex = "0.4.6"
|
||||||
once_cell = "1.19.0"
|
once_cell = "1.19.0"
|
||||||
rayon = "1.10.0"
|
rayon = "1.10.0"
|
||||||
regex = "1.10.5"
|
regex = "1.10.6"
|
||||||
serde = { version = "1.0.203", features = ["derive"] }
|
serde = { version = "1.0.208", features = ["derive"] }
|
||||||
|
|
||||||
# Markdown
|
# Markdown
|
||||||
pulldown-cmark = "0.11.0"
|
pulldown-cmark = "0.12.0"
|
||||||
|
|
||||||
# Treesitter
|
# Treesitter
|
||||||
tree-sitter = "0.22"
|
tree-sitter = "0.22"
|
||||||
|
|
38
js/flox/main.ts
Normal file
38
js/flox/main.ts
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
import { EditorState } from '@codemirror/state';
|
||||||
|
import { EditorView, keymap, lineNumbers } from '@codemirror/view';
|
||||||
|
import { defaultKeymap } from '@codemirror/commands';
|
||||||
|
import * as wasm from './pkg/flox_wasm';
|
||||||
|
|
||||||
|
const doc = `
|
||||||
|
let n1 = 2;
|
||||||
|
let n2 = 5;
|
||||||
|
|
||||||
|
let add = fn a b -> a + b;
|
||||||
|
|
||||||
|
add n1 n2
|
||||||
|
`;
|
||||||
|
|
||||||
|
const htmlEditor = document.getElementById('editor')!;
|
||||||
|
const htmlOutput = document.getElementById('output')!;
|
||||||
|
const htmlRun = document.getElementById('run')!;
|
||||||
|
|
||||||
|
const state = EditorState.create({
|
||||||
|
doc,
|
||||||
|
extensions: [
|
||||||
|
keymap.of(defaultKeymap),
|
||||||
|
lineNumbers()
|
||||||
|
],
|
||||||
|
});
|
||||||
|
|
||||||
|
const view = new EditorView({ state, parent: htmlEditor });
|
||||||
|
|
||||||
|
WebAssembly.compileStreaming(fetch('flox_wasm_bg.wasm')).then((asm) => wasm.initSync(asm));
|
||||||
|
|
||||||
|
function run(code: string) {
|
||||||
|
return wasm.eval_expression(code);
|
||||||
|
}
|
||||||
|
|
||||||
|
htmlRun.addEventListener('click', () => {
|
||||||
|
const code = view.state.doc.toString();
|
||||||
|
htmlOutput.textContent = run(code);
|
||||||
|
});
|
15
js/flox/package.json
Normal file
15
js/flox/package.json
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"name": "flox",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"keywords": [],
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"dependencies": {
|
||||||
|
"codemirror": "^6.0.1"
|
||||||
|
}
|
||||||
|
}
|
135
js/flox/pnpm-lock.yaml
Normal file
135
js/flox/pnpm-lock.yaml
Normal file
|
@ -0,0 +1,135 @@
|
||||||
|
lockfileVersion: '9.0'
|
||||||
|
|
||||||
|
settings:
|
||||||
|
autoInstallPeers: true
|
||||||
|
excludeLinksFromLockfile: false
|
||||||
|
|
||||||
|
importers:
|
||||||
|
|
||||||
|
.:
|
||||||
|
dependencies:
|
||||||
|
codemirror:
|
||||||
|
specifier: ^6.0.1
|
||||||
|
version: 6.0.1(@lezer/common@1.2.1)
|
||||||
|
|
||||||
|
packages:
|
||||||
|
|
||||||
|
'@codemirror/autocomplete@6.18.0':
|
||||||
|
resolution: {integrity: sha512-5DbOvBbY4qW5l57cjDsmmpDh3/TeK1vXfTHa+BUMrRzdWdcxKZ4U4V7vQaTtOpApNU4kLS4FQ6cINtLg245LXA==}
|
||||||
|
peerDependencies:
|
||||||
|
'@codemirror/language': ^6.0.0
|
||||||
|
'@codemirror/state': ^6.0.0
|
||||||
|
'@codemirror/view': ^6.0.0
|
||||||
|
'@lezer/common': ^1.0.0
|
||||||
|
|
||||||
|
'@codemirror/commands@6.6.0':
|
||||||
|
resolution: {integrity: sha512-qnY+b7j1UNcTS31Eenuc/5YJB6gQOzkUoNmJQc0rznwqSRpeaWWpjkWy2C/MPTcePpsKJEM26hXrOXl1+nceXg==}
|
||||||
|
|
||||||
|
'@codemirror/language@6.10.2':
|
||||||
|
resolution: {integrity: sha512-kgbTYTo0Au6dCSc/TFy7fK3fpJmgHDv1sG1KNQKJXVi+xBTEeBPY/M30YXiU6mMXeH+YIDLsbrT4ZwNRdtF+SA==}
|
||||||
|
|
||||||
|
'@codemirror/lint@6.8.1':
|
||||||
|
resolution: {integrity: sha512-IZ0Y7S4/bpaunwggW2jYqwLuHj0QtESf5xcROewY6+lDNwZ/NzvR4t+vpYgg9m7V8UXLPYqG+lu3DF470E5Oxg==}
|
||||||
|
|
||||||
|
'@codemirror/search@6.5.6':
|
||||||
|
resolution: {integrity: sha512-rpMgcsh7o0GuCDUXKPvww+muLA1pDJaFrpq/CCHtpQJYz8xopu4D1hPcKRoDD0YlF8gZaqTNIRa4VRBWyhyy7Q==}
|
||||||
|
|
||||||
|
'@codemirror/state@6.4.1':
|
||||||
|
resolution: {integrity: sha512-QkEyUiLhsJoZkbumGZlswmAhA7CBU02Wrz7zvH4SrcifbsqwlXShVXg65f3v/ts57W3dqyamEriMhij1Z3Zz4A==}
|
||||||
|
|
||||||
|
'@codemirror/view@6.32.0':
|
||||||
|
resolution: {integrity: sha512-AgVNvED2QTsZp5e3syoHLsrWtwJFYWdx1Vr/m3f4h1ATQz0ax60CfXF3Htdmk69k2MlYZw8gXesnQdHtzyVmAw==}
|
||||||
|
|
||||||
|
'@lezer/common@1.2.1':
|
||||||
|
resolution: {integrity: sha512-yemX0ZD2xS/73llMZIK6KplkjIjf2EvAHcinDi/TfJ9hS25G0388+ClHt6/3but0oOxinTcQHJLDXh6w1crzFQ==}
|
||||||
|
|
||||||
|
'@lezer/highlight@1.2.1':
|
||||||
|
resolution: {integrity: sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA==}
|
||||||
|
|
||||||
|
'@lezer/lr@1.4.2':
|
||||||
|
resolution: {integrity: sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==}
|
||||||
|
|
||||||
|
codemirror@6.0.1:
|
||||||
|
resolution: {integrity: sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg==}
|
||||||
|
|
||||||
|
crelt@1.0.6:
|
||||||
|
resolution: {integrity: sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==}
|
||||||
|
|
||||||
|
style-mod@4.1.2:
|
||||||
|
resolution: {integrity: sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==}
|
||||||
|
|
||||||
|
w3c-keyname@2.2.8:
|
||||||
|
resolution: {integrity: sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==}
|
||||||
|
|
||||||
|
snapshots:
|
||||||
|
|
||||||
|
'@codemirror/autocomplete@6.18.0(@codemirror/language@6.10.2)(@codemirror/state@6.4.1)(@codemirror/view@6.32.0)(@lezer/common@1.2.1)':
|
||||||
|
dependencies:
|
||||||
|
'@codemirror/language': 6.10.2
|
||||||
|
'@codemirror/state': 6.4.1
|
||||||
|
'@codemirror/view': 6.32.0
|
||||||
|
'@lezer/common': 1.2.1
|
||||||
|
|
||||||
|
'@codemirror/commands@6.6.0':
|
||||||
|
dependencies:
|
||||||
|
'@codemirror/language': 6.10.2
|
||||||
|
'@codemirror/state': 6.4.1
|
||||||
|
'@codemirror/view': 6.32.0
|
||||||
|
'@lezer/common': 1.2.1
|
||||||
|
|
||||||
|
'@codemirror/language@6.10.2':
|
||||||
|
dependencies:
|
||||||
|
'@codemirror/state': 6.4.1
|
||||||
|
'@codemirror/view': 6.32.0
|
||||||
|
'@lezer/common': 1.2.1
|
||||||
|
'@lezer/highlight': 1.2.1
|
||||||
|
'@lezer/lr': 1.4.2
|
||||||
|
style-mod: 4.1.2
|
||||||
|
|
||||||
|
'@codemirror/lint@6.8.1':
|
||||||
|
dependencies:
|
||||||
|
'@codemirror/state': 6.4.1
|
||||||
|
'@codemirror/view': 6.32.0
|
||||||
|
crelt: 1.0.6
|
||||||
|
|
||||||
|
'@codemirror/search@6.5.6':
|
||||||
|
dependencies:
|
||||||
|
'@codemirror/state': 6.4.1
|
||||||
|
'@codemirror/view': 6.32.0
|
||||||
|
crelt: 1.0.6
|
||||||
|
|
||||||
|
'@codemirror/state@6.4.1': {}
|
||||||
|
|
||||||
|
'@codemirror/view@6.32.0':
|
||||||
|
dependencies:
|
||||||
|
'@codemirror/state': 6.4.1
|
||||||
|
style-mod: 4.1.2
|
||||||
|
w3c-keyname: 2.2.8
|
||||||
|
|
||||||
|
'@lezer/common@1.2.1': {}
|
||||||
|
|
||||||
|
'@lezer/highlight@1.2.1':
|
||||||
|
dependencies:
|
||||||
|
'@lezer/common': 1.2.1
|
||||||
|
|
||||||
|
'@lezer/lr@1.4.2':
|
||||||
|
dependencies:
|
||||||
|
'@lezer/common': 1.2.1
|
||||||
|
|
||||||
|
codemirror@6.0.1(@lezer/common@1.2.1):
|
||||||
|
dependencies:
|
||||||
|
'@codemirror/autocomplete': 6.18.0(@codemirror/language@6.10.2)(@codemirror/state@6.4.1)(@codemirror/view@6.32.0)(@lezer/common@1.2.1)
|
||||||
|
'@codemirror/commands': 6.6.0
|
||||||
|
'@codemirror/language': 6.10.2
|
||||||
|
'@codemirror/lint': 6.8.1
|
||||||
|
'@codemirror/search': 6.5.6
|
||||||
|
'@codemirror/state': 6.4.1
|
||||||
|
'@codemirror/view': 6.32.0
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- '@lezer/common'
|
||||||
|
|
||||||
|
crelt@1.0.6: {}
|
||||||
|
|
||||||
|
style-mod@4.1.2: {}
|
||||||
|
|
||||||
|
w3c-keyname@2.2.8: {}
|
34
node_modules/.modules.yaml
generated
vendored
Normal file
34
node_modules/.modules.yaml
generated
vendored
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
hoistPattern:
|
||||||
|
- '*'
|
||||||
|
hoistedDependencies:
|
||||||
|
'@codemirror/language@6.10.2':
|
||||||
|
'@codemirror/language': private
|
||||||
|
'@lezer/common@1.2.1':
|
||||||
|
'@lezer/common': private
|
||||||
|
'@lezer/highlight@1.2.1':
|
||||||
|
'@lezer/highlight': private
|
||||||
|
'@lezer/lr@1.4.2':
|
||||||
|
'@lezer/lr': private
|
||||||
|
style-mod@4.1.2:
|
||||||
|
style-mod: private
|
||||||
|
w3c-keyname@2.2.8:
|
||||||
|
w3c-keyname: private
|
||||||
|
included:
|
||||||
|
dependencies: true
|
||||||
|
devDependencies: true
|
||||||
|
optionalDependencies: true
|
||||||
|
injectedDeps: {}
|
||||||
|
layoutVersion: 5
|
||||||
|
nodeLinker: isolated
|
||||||
|
packageManager: pnpm@9.7.0
|
||||||
|
pendingBuilds: []
|
||||||
|
prunedAt: Sun, 18 Aug 2024 10:07:36 GMT
|
||||||
|
publicHoistPattern:
|
||||||
|
- '*eslint*'
|
||||||
|
- '*prettier*'
|
||||||
|
registries:
|
||||||
|
default: https://registry.npmjs.org/
|
||||||
|
skipped: []
|
||||||
|
storeDir: /home/kamov/.local/share/pnpm/store/v3
|
||||||
|
virtualStoreDir: .pnpm
|
||||||
|
virtualStoreDirMaxLength: 120
|
16
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/commands/.github/workflows/dispatch.yml
generated
vendored
Normal file
16
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/commands/.github/workflows/dispatch.yml
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
name: Trigger CI
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Dispatch to main repo
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Emit repository_dispatch
|
||||||
|
uses: mvasigh/dispatch-action@main
|
||||||
|
with:
|
||||||
|
# You should create a personal access token and store it in your repository
|
||||||
|
token: ${{ secrets.DISPATCH_AUTH }}
|
||||||
|
repo: dev
|
||||||
|
owner: codemirror
|
||||||
|
event_type: push
|
310
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/commands/CHANGELOG.md
generated
vendored
Normal file
310
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/commands/CHANGELOG.md
generated
vendored
Normal file
|
@ -0,0 +1,310 @@
|
||||||
|
## 6.6.0 (2024-06-04)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The new `toggleTabFocusMode` and `temporarilySetTabFocusMode` commands provide control over the view's tab-focus mode.
|
||||||
|
|
||||||
|
The default keymap now binds Ctrl-m (Shift-Alt-m on macOS) to `toggleTabFocusMode`.
|
||||||
|
|
||||||
|
## 6.5.0 (2024-04-19)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The `insertNewlineKeepIndent` command inserts a newline along with the same indentation as the line before.
|
||||||
|
|
||||||
|
## 6.4.0 (2024-04-17)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue where `deleteLine` sometimes leaves the cursor on the wrong line.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The new `deleteCharBackwardStrict` command just deletes a character, without further smart behavior around indentation.
|
||||||
|
|
||||||
|
## 6.3.3 (2023-12-28)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue causing cursor motion commands to not dispatch a transaction when the change only affects cursor associativity.
|
||||||
|
|
||||||
|
## 6.3.2 (2023-11-28)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a regression that caused `deleteCharBackward` to sometimes delete a large chunk of text.
|
||||||
|
|
||||||
|
## 6.3.1 (2023-11-27)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
When undoing, store the selection after the undone change with the redo event, so that redoing restores it.
|
||||||
|
|
||||||
|
`deleteCharBackward` will no longer delete variant selector characters as separate characters.
|
||||||
|
|
||||||
|
## 6.3.0 (2023-09-29)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Make it possible for `selectParentSyntax` to jump out of or into a syntax tree overlay.
|
||||||
|
|
||||||
|
Make Cmd-Backspace and Cmd-Delete on macOS delete to the next line wrap point, not the start/end of the line.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The new `deleteLineBoundaryForward` and `deleteLineBoundaryBackward` commands delete to the start/end of the line or the next line wrapping point.
|
||||||
|
|
||||||
|
## 6.2.5 (2023-08-26)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Make `insertNewlineAndIndent` properly count indentation for tabs when copying over the previous line's indentation.
|
||||||
|
|
||||||
|
The various sub-word motion commands will now use `Intl.Segmenter`, when available, to stop at CJK language word boundaries.
|
||||||
|
|
||||||
|
Fix a bug in `insertNewlineAndIndent` that would delete text between brackets if it had no corresponding AST node.
|
||||||
|
|
||||||
|
## 6.2.4 (2023-05-03)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
The by-subword motion commands now properly treat dashes, underscores, and similar as subword separators.
|
||||||
|
|
||||||
|
## 6.2.3 (2023-04-19)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Block commenting the selection no longer includes indentation on the first line.
|
||||||
|
|
||||||
|
## 6.2.2 (2023-03-10)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug where line commenting got confused when commenting a range that crossed language boundaries.
|
||||||
|
|
||||||
|
## 6.2.1 (2023-02-15)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Keep cursor position stable in `cursorPageUp`/`cursorPageDown` when there are panels or other scroll margins active.
|
||||||
|
|
||||||
|
Make sure `toggleComment` doesn't get thrown off by local language nesting, by fetching the language data for the start of the selection line.
|
||||||
|
|
||||||
|
## 6.2.0 (2023-01-18)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The new `joinToEvent` history configuration option allows you to provide custom logic that determines whether a new transaction is added to an existing history event.
|
||||||
|
|
||||||
|
## 6.1.3 (2022-12-26)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Preserve selection bidi level when extending the selection, to prevent shift-selection from getting stuck in some kinds of bidirectional text.
|
||||||
|
|
||||||
|
## 6.1.2 (2022-10-13)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug that caused deletion commands on non-empty ranges to incorrectly return false and do nothing, causing the editor to fall back to native behavior.
|
||||||
|
|
||||||
|
## 6.1.1 (2022-09-28)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Make sure the selection endpoints are moved out of atomic ranges when applying a deletion command to a non-empty selection.
|
||||||
|
|
||||||
|
## 6.1.0 (2022-08-18)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Prevent native behavior on Ctrl/Cmd-ArrowLeft/ArrowRight bindings, so that browsers with odd bidi behavior won't do the wrong thing at start/end of line.
|
||||||
|
|
||||||
|
Cmd-ArrowLeft/Right on macOS now moves the cursor in the direction of the arrow even in right-to-left content.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The new `cursorLineBoundaryLeft`/`Right` and `selectLineBoundaryLeft`/`Right` commands allow directional motion to line boundaries.
|
||||||
|
|
||||||
|
## 6.0.1 (2022-06-30)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Announce to the screen reader when the selection is deleted.
|
||||||
|
|
||||||
|
Also bind Ctrl-Shift-z to redo on Linux.
|
||||||
|
|
||||||
|
## 6.0.0 (2022-06-08)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug where by-page selection commands sometimes moved one line too far.
|
||||||
|
|
||||||
|
## 0.20.0 (2022-04-20)
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
There is no longer a separate `commentKeymap`. Those bindings are now part of `defaultKeymap`.
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Make `cursorPageUp` and `cursorPageDown` move by window height when the editor is higher than the window.
|
||||||
|
|
||||||
|
Make sure the default behavior of Home/End is prevented, since it could produce unexpected results on macOS.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The exports from @codemirror/comment are now available in this package.
|
||||||
|
|
||||||
|
The exports from the @codemirror/history package are now available from this package.
|
||||||
|
|
||||||
|
## 0.19.8 (2022-01-26)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
`deleteCharBackward` now removes extending characters one at a time, rather than deleting the entire glyph at once.
|
||||||
|
|
||||||
|
Alt-v is no longer bound in `emacsStyleKeymap` and macOS's `standardKeymap`, because macOS doesn't bind it by default and it conflicts with some keyboard layouts.
|
||||||
|
|
||||||
|
## 0.19.7 (2022-01-11)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Don't bind Alt-\< and Alt-> on macOS by default, since those interfere with some keyboard layouts. Make cursorPageUp/Down scroll the view to keep the cursor in place
|
||||||
|
|
||||||
|
`cursorPageUp` and `cursorPageDown` now scroll the view by the amount that the cursor moved.
|
||||||
|
|
||||||
|
## 0.19.6 (2021-12-10)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
The standard keymap no longer overrides Shift-Delete, in order to allow the native behavior of that key to happen on platforms that support it.
|
||||||
|
|
||||||
|
## 0.19.5 (2021-09-21)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
Adds an `insertBlankLine` command which creates an empty line below the selection, and binds it to Mod-Enter in the default keymap.
|
||||||
|
|
||||||
|
## 0.19.4 (2021-09-13)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Make commands that affect the editor's content check `state.readOnly` and return false when that is true.
|
||||||
|
|
||||||
|
## 0.19.3 (2021-09-09)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Make by-line cursor motion commands move the cursor to the start/end of the document when they hit the first/last line.
|
||||||
|
|
||||||
|
Fix a bug where `deleteCharForward`/`Backward` behaved incorrectly when deleting directly before or after an atomic range.
|
||||||
|
|
||||||
|
## 0.19.2 (2021-08-24)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
New commands `cursorSubwordForward`, `cursorSubwordBackward`, `selectSubwordForward`, and `selectSubwordBackward` which implement motion by camel case subword.
|
||||||
|
|
||||||
|
## 0.19.1 (2021-08-11)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix incorrect versions for @lezer dependencies.
|
||||||
|
|
||||||
|
## 0.19.0 (2021-08-11)
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
Change default binding for backspace to `deleteCharBackward`, drop `deleteCodePointBackward`/`Forward` from the library.
|
||||||
|
|
||||||
|
`defaultTabBinding` was removed.
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Drop Alt-d, Alt-f, and Alt-b bindings from `emacsStyleKeymap` (and thus from the default macOS bindings).
|
||||||
|
|
||||||
|
`deleteCharBackward` and `deleteCharForward` now take atomic ranges into account.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
Attach more granular user event strings to transactions.
|
||||||
|
|
||||||
|
The module exports a new binding `indentWithTab` that binds tab and shift-tab to `indentMore` and `indentLess`.
|
||||||
|
|
||||||
|
## 0.18.3 (2021-06-11)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
`moveLineDown` will no longer incorrectly grow the selection.
|
||||||
|
|
||||||
|
Line-based commands will no longer include lines where a range selection ends right at the start of the line.
|
||||||
|
|
||||||
|
## 0.18.2 (2021-05-06)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Use Ctrl-l, not Alt-l, to bind `selectLine` on macOS, to avoid conflicting with special-character-insertion bindings.
|
||||||
|
|
||||||
|
Make the macOS Command-ArrowLeft/Right commands behave more like their native versions.
|
||||||
|
|
||||||
|
## 0.18.1 (2021-04-08)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Also bind Shift-Backspace and Shift-Delete in the default keymap (to do the same thing as the Shift-less binding).
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
Adds a `deleteToLineStart` command.
|
||||||
|
|
||||||
|
Adds bindings for Cmd-Delete and Cmd-Backspace on macOS.
|
||||||
|
|
||||||
|
## 0.18.0 (2021-03-03)
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
Update dependencies to 0.18.
|
||||||
|
|
||||||
|
## 0.17.5 (2021-02-25)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Use Alt-l for the default `selectLine` binding, because Mod-l already has an important meaning in the browser.
|
||||||
|
|
||||||
|
Make `deleteGroupBackward`/`deleteGroupForward` delete groups of whitespace when bigger than a single space.
|
||||||
|
|
||||||
|
Don't change lines that have the end of a range selection directly at their start in `indentLess`, `indentMore`, and `indentSelection`.
|
||||||
|
|
||||||
|
## 0.17.4 (2021-02-18)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug where `deleteToLineEnd` would delete the rest of the document when at the end of a line.
|
||||||
|
|
||||||
|
## 0.17.3 (2021-02-16)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue where `insertNewlineAndIndent` behaved strangely with the cursor between brackets that sat on different lines.
|
||||||
|
|
||||||
|
## 0.17.2 (2021-01-22)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The new `insertTab` command inserts a tab when nothing is selected, and defers to `indentMore` otherwise.
|
||||||
|
|
||||||
|
The package now exports a `defaultTabBinding` object that provides a recommended binding for tab (if you must bind tab).
|
||||||
|
|
||||||
|
## 0.17.1 (2021-01-06)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The package now also exports a CommonJS module.
|
||||||
|
|
||||||
|
## 0.17.0 (2020-12-29)
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
First numbered release.
|
||||||
|
|
21
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/commands/LICENSE
generated
vendored
Normal file
21
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/commands/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (C) 2018-2021 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
18
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/commands/README.md
generated
vendored
Normal file
18
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/commands/README.md
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# @codemirror/commands [![NPM version](https://img.shields.io/npm/v/@codemirror/commands.svg)](https://www.npmjs.org/package/@codemirror/commands)
|
||||||
|
|
||||||
|
[ [**WEBSITE**](https://codemirror.net/) | [**DOCS**](https://codemirror.net/docs/ref/#commands) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/commands/blob/main/CHANGELOG.md) ]
|
||||||
|
|
||||||
|
This package implements a collection of editing commands for the
|
||||||
|
[CodeMirror](https://codemirror.net/) code editor.
|
||||||
|
|
||||||
|
The [project page](https://codemirror.net/) has more information, a
|
||||||
|
number of [examples](https://codemirror.net/examples/) and the
|
||||||
|
[documentation](https://codemirror.net/docs/).
|
||||||
|
|
||||||
|
This code is released under an
|
||||||
|
[MIT license](https://github.com/codemirror/commands/tree/main/LICENSE).
|
||||||
|
|
||||||
|
We aim to be an inclusive, welcoming community. To make that explicit,
|
||||||
|
we have a [code of
|
||||||
|
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
|
||||||
|
to communication around the project.
|
42
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/commands/package.json
generated
vendored
Normal file
42
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/commands/package.json
generated
vendored
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
"name": "@codemirror/commands",
|
||||||
|
"version": "6.6.0",
|
||||||
|
"description": "Collection of editing commands for the CodeMirror code editor",
|
||||||
|
"scripts": {
|
||||||
|
"test": "cm-runtests",
|
||||||
|
"prepare": "cm-buildhelper src/commands.ts"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"editor",
|
||||||
|
"code"
|
||||||
|
],
|
||||||
|
"author": {
|
||||||
|
"name": "Marijn Haverbeke",
|
||||||
|
"email": "marijn@haverbeke.berlin",
|
||||||
|
"url": "http://marijnhaverbeke.nl"
|
||||||
|
},
|
||||||
|
"type": "module",
|
||||||
|
"main": "dist/index.cjs",
|
||||||
|
"exports": {
|
||||||
|
"import": "./dist/index.js",
|
||||||
|
"require": "./dist/index.cjs"
|
||||||
|
},
|
||||||
|
"types": "dist/index.d.ts",
|
||||||
|
"module": "dist/index.js",
|
||||||
|
"sideEffects": false,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@codemirror/language": "^6.0.0",
|
||||||
|
"@codemirror/state": "^6.4.0",
|
||||||
|
"@codemirror/view": "^6.27.0",
|
||||||
|
"@lezer/common": "^1.1.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@codemirror/buildhelper": "^1.0.0",
|
||||||
|
"@codemirror/lang-javascript": "^6.0.0"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/codemirror/commands.git"
|
||||||
|
}
|
||||||
|
}
|
1
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/language
generated
vendored
Symbolic link
1
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/language
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../@codemirror+language@6.10.2/node_modules/@codemirror/language
|
1
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/state
generated
vendored
Symbolic link
1
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/state
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../@codemirror+state@6.4.1/node_modules/@codemirror/state
|
1
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/view
generated
vendored
Symbolic link
1
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/view
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../@codemirror+view@6.32.0/node_modules/@codemirror/view
|
1
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@lezer/common
generated
vendored
Symbolic link
1
node_modules/.pnpm/@codemirror+commands@6.6.0/node_modules/@lezer/common
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../@lezer+common@1.2.1/node_modules/@lezer/common
|
16
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@codemirror/language/.github/workflows/dispatch.yml
generated
vendored
Normal file
16
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@codemirror/language/.github/workflows/dispatch.yml
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
name: Trigger CI
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Dispatch to main repo
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Emit repository_dispatch
|
||||||
|
uses: mvasigh/dispatch-action@main
|
||||||
|
with:
|
||||||
|
# You should create a personal access token and store it in your repository
|
||||||
|
token: ${{ secrets.DISPATCH_AUTH }}
|
||||||
|
repo: dev
|
||||||
|
owner: codemirror
|
||||||
|
event_type: push
|
324
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@codemirror/language/CHANGELOG.md
generated
vendored
Normal file
324
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@codemirror/language/CHANGELOG.md
generated
vendored
Normal file
|
@ -0,0 +1,324 @@
|
||||||
|
## 6.10.2 (2024-06-03)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an infinite loop that could occur when enabling `bidiIsolates` in documents with both bidirectional text and very long lines.
|
||||||
|
|
||||||
|
## 6.10.1 (2024-02-02)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue where, when a lot of code is visible in the initial editor, the bottom bit of code is shown without highlighting for one frame.
|
||||||
|
|
||||||
|
## 6.10.0 (2023-12-28)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The new `bidiIsolates` extension can be used to wrap syntactic elements where this is appropriate in an element that isolates their text direction, avoiding weird ordering of neutral characters on direction boundaries.
|
||||||
|
|
||||||
|
## 6.9.3 (2023-11-27)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue in `StreamLanguage` where it ran out of node type ids if you repeatedly redefined a language with the same token table.
|
||||||
|
|
||||||
|
## 6.9.2 (2023-10-24)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Allow `StreamParser` tokens get multiple highlighting tags.
|
||||||
|
|
||||||
|
## 6.9.1 (2023-09-20)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Indentation now works a lot better in mixed-language documents that interleave the languages in a complex way.
|
||||||
|
|
||||||
|
Code folding is now able to pick the right foldable syntax node when the line end falls in a mixed-parsing language that doesn't match the target node.
|
||||||
|
|
||||||
|
## 6.9.0 (2023-08-16)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Make `getIndentation` return null, rather than 0, when there is no syntax tree available.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The new `preparePlaceholder` option to `codeFolding` makes it possible to display contextual information in a folded range placeholder widget.
|
||||||
|
|
||||||
|
## 6.8.0 (2023-06-12)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The new `baseIndentFor` method in `TreeIndentContext` can be used to find the base indentation for an arbitrary node.
|
||||||
|
|
||||||
|
## 6.7.0 (2023-05-19)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
Export `DocInput` class for feeding editor documents to a Lezer parser.
|
||||||
|
|
||||||
|
## 6.6.0 (2023-02-13)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
Syntax-driven language data queries now support sublanguages, which make it possible to return different data for specific parts of the tree produced by a single language.
|
||||||
|
|
||||||
|
## 6.5.0 (2023-02-07)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Make indentation for stream languages more reliable by having `StringStream.indentation` return overridden indentations from the indent context.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The `toggleFold` command folds or unfolds depending on whether there's an existing folded range on the current line.
|
||||||
|
|
||||||
|
`indentUnit` now accepts any (repeated) whitespace character, not just spaces and tabs.
|
||||||
|
|
||||||
|
## 6.4.0 (2023-01-12)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The `bracketMatchingHandle` node prop can now be used to limit bracket matching behavior for larger nodes to a single subnode (for example the tag name of an HTML tag).
|
||||||
|
|
||||||
|
## 6.3.2 (2022-12-16)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug that caused `ensureSyntaxTree` to return incomplete trees when using a viewport-aware parser like `StreamLanguage`.
|
||||||
|
|
||||||
|
## 6.3.1 (2022-11-14)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Make syntax-based folding include syntax nodes that start right at the end of a line as potential fold targets.
|
||||||
|
|
||||||
|
Fix the `indentService` protocol to allow a distinction between declining to handle the indentation and returning null to indicate the line has no definite indentation.
|
||||||
|
|
||||||
|
## 6.3.0 (2022-10-24)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
`HighlightStyle` objects now have a `specs` property holding the tag styles that were used to define them.
|
||||||
|
|
||||||
|
`Language` objects now have a `name` field holding the language name.
|
||||||
|
|
||||||
|
## 6.2.1 (2022-07-21)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug where `bracketMatching` would incorrectly match nested brackets in syntax trees that put multiple pairs of brackets in the same parent node.
|
||||||
|
|
||||||
|
Fix a bug that could cause `indentRange` to loop infinitely.
|
||||||
|
|
||||||
|
## 6.2.0 (2022-06-30)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug that prevented bracket matching to recognize plain brackets inside a language parsed as an overlay.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The `indentRange` function provides an easy way to programatically auto-indent a range of the document.
|
||||||
|
|
||||||
|
## 6.1.0 (2022-06-20)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The `foldState` field is now public, and can be used to serialize and deserialize the fold state.
|
||||||
|
|
||||||
|
## 6.0.0 (2022-06-08)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The `foldingChanged` option to `foldGutter` can now be used to trigger a recomputation of the fold markers.
|
||||||
|
|
||||||
|
## 0.20.2 (2022-05-20)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
List style-mod as a dependency.
|
||||||
|
|
||||||
|
## 0.20.1 (2022-05-18)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Make sure `all` styles in the CSS generated for a `HighlightStyle` have a lower precedence than the other rules defined for the style. Use a shorthand property
|
||||||
|
|
||||||
|
## 0.20.0 (2022-04-20)
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
`HighlightStyle.get` is now called `highlightingFor`.
|
||||||
|
|
||||||
|
`HighlightStyles` no longer function as extensions (to improve tree shaking), and must be wrapped with `syntaxHighlighting` to add to an editor configuration.
|
||||||
|
|
||||||
|
`Language` objects no longer have a `topNode` property.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
`HighlightStyle` and `defaultHighlightStyle` from the now-removed @codemirror/highlight package now live in this package.
|
||||||
|
|
||||||
|
The new `forceParsing` function can be used to run the parser forward on an editor view.
|
||||||
|
|
||||||
|
The exports that used to live in @codemirror/matchbrackets are now exported from this package.
|
||||||
|
|
||||||
|
The @codemirror/fold package has been merged into this one.
|
||||||
|
|
||||||
|
The exports from the old @codemirror/stream-parser package now live in this package.
|
||||||
|
|
||||||
|
## 0.19.10 (2022-03-31)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Autocompletion may now also trigger automatic indentation on input.
|
||||||
|
|
||||||
|
## 0.19.9 (2022-03-30)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Make sure nodes that end at the end of a partial parse aren't treated as valid fold targets.
|
||||||
|
|
||||||
|
Fix an issue where the parser sometimes wouldn't reuse parsing work done in the background on transactions.
|
||||||
|
|
||||||
|
## 0.19.8 (2022-03-03)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue that could cause indentation logic to use the wrong line content when indenting multiple lines at once.
|
||||||
|
|
||||||
|
## 0.19.7 (2021-12-02)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue where the parse worker could incorrectly stop working when the parse tree has skipped gaps in it.
|
||||||
|
|
||||||
|
## 0.19.6 (2021-11-26)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fixes an issue where the background parse work would be scheduled too aggressively, degrading responsiveness on a newly-created editor with a large document.
|
||||||
|
|
||||||
|
Improve initial highlight for mixed-language editors and limit the amount of parsing done on state creation for faster startup.
|
||||||
|
|
||||||
|
## 0.19.5 (2021-11-17)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The new function `syntaxTreeAvailable` can be used to check if a fully-parsed syntax tree is available up to a given document position.
|
||||||
|
|
||||||
|
The module now exports `syntaxParserRunning`, which tells you whether the background parser is still planning to do more work for a given editor view.
|
||||||
|
|
||||||
|
## 0.19.4 (2021-11-13)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
`LanguageDescription.of` now takes an optional already-loaded extension.
|
||||||
|
|
||||||
|
## 0.19.3 (2021-09-13)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue where a parse that skipped content with `skipUntilInView` would in some cases not be restarted when the range came into view.
|
||||||
|
|
||||||
|
## 0.19.2 (2021-08-11)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug that caused `indentOnInput` to fire for the wrong kinds of transactions.
|
||||||
|
|
||||||
|
Fix a bug that could cause `indentOnInput` to apply its changes incorrectly.
|
||||||
|
|
||||||
|
## 0.19.1 (2021-08-11)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix incorrect versions for @lezer dependencies.
|
||||||
|
|
||||||
|
## 0.19.0 (2021-08-11)
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
CodeMirror now uses lezer 0.15, which means different package names (scoped with @lezer) and some breaking changes in the library.
|
||||||
|
|
||||||
|
`EditorParseContext` is now called `ParseContext`. It is no longer passed to parsers, but must be retrieved with `ParseContext.get`.
|
||||||
|
|
||||||
|
`IndentContext.lineIndent` now takes a position, not a `Line` object, as argument.
|
||||||
|
|
||||||
|
`LezerLanguage` was renamed to `LRLanguage` (because all languages must emit Lezer-style trees, the name was misleading).
|
||||||
|
|
||||||
|
`Language.parseString` no longer exists. You can just call `.parser.parse(...)` instead.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
New `IndentContext.lineAt` method to access lines in a way that is aware of simulated line breaks.
|
||||||
|
|
||||||
|
`IndentContext` now provides a `simulatedBreak` property through which client code can query whether the context has a simulated line break.
|
||||||
|
|
||||||
|
## 0.18.2 (2021-06-01)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue where asynchronous re-parsing (with dynamically loaded languages) sometimes failed to fully happen.
|
||||||
|
|
||||||
|
## 0.18.1 (2021-03-31)
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
`EditorParseContext.getSkippingParser` now replaces `EditorParseContext.skippingParser` and allows you to provide a promise that'll cause parsing to start again. (The old property remains available until the next major release.)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue where nested parsers could see past the end of the nested region.
|
||||||
|
|
||||||
|
## 0.18.0 (2021-03-03)
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
Update dependencies to 0.18.
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
The `Language` constructor takes an additional argument that provides the top node type.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
`Language` instances now have a `topNode` property giving their top node type.
|
||||||
|
|
||||||
|
`TreeIndentContext` now has a `continue` method that allows an indenter to defer to the indentation of the parent nodes.
|
||||||
|
|
||||||
|
## 0.17.5 (2021-02-19)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
This package now exports a `foldInside` helper function, a fold function that should work for most delimited node types.
|
||||||
|
|
||||||
|
## 0.17.4 (2021-01-15)
|
||||||
|
|
||||||
|
## 0.17.3 (2021-01-15)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Parse scheduling has been improved to reduce the likelyhood of the user looking at unparsed code in big documents.
|
||||||
|
|
||||||
|
Prevent parser from running too far past the current viewport in huge documents.
|
||||||
|
|
||||||
|
## 0.17.2 (2021-01-06)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The package now also exports a CommonJS module.
|
||||||
|
|
||||||
|
## 0.17.1 (2020-12-30)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug where changing the editor configuration wouldn't update the language parser used.
|
||||||
|
|
||||||
|
## 0.17.0 (2020-12-29)
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
First numbered release.
|
||||||
|
|
21
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@codemirror/language/LICENSE
generated
vendored
Normal file
21
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@codemirror/language/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (C) 2018-2021 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
18
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@codemirror/language/README.md
generated
vendored
Normal file
18
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@codemirror/language/README.md
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# @codemirror/language [![NPM version](https://img.shields.io/npm/v/@codemirror/language.svg)](https://www.npmjs.org/package/@codemirror/language)
|
||||||
|
|
||||||
|
[ [**WEBSITE**](https://codemirror.net/) | [**DOCS**](https://codemirror.net/docs/ref/#language) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/language/blob/main/CHANGELOG.md) ]
|
||||||
|
|
||||||
|
This package implements the language support infrastructure for the
|
||||||
|
[CodeMirror](https://codemirror.net/) code editor.
|
||||||
|
|
||||||
|
The [project page](https://codemirror.net/) has more information, a
|
||||||
|
number of [examples](https://codemirror.net/examples/) and the
|
||||||
|
[documentation](https://codemirror.net/docs/).
|
||||||
|
|
||||||
|
This code is released under an
|
||||||
|
[MIT license](https://github.com/codemirror/language/tree/main/LICENSE).
|
||||||
|
|
||||||
|
We aim to be an inclusive, welcoming community. To make that explicit,
|
||||||
|
we have a [code of
|
||||||
|
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
|
||||||
|
to communication around the project.
|
44
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@codemirror/language/package.json
generated
vendored
Normal file
44
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@codemirror/language/package.json
generated
vendored
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
{
|
||||||
|
"name": "@codemirror/language",
|
||||||
|
"version": "6.10.2",
|
||||||
|
"description": "Language support infrastructure for the CodeMirror code editor",
|
||||||
|
"scripts": {
|
||||||
|
"test": "cm-runtests",
|
||||||
|
"prepare": "cm-buildhelper src/index.ts"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"editor",
|
||||||
|
"code"
|
||||||
|
],
|
||||||
|
"author": {
|
||||||
|
"name": "Marijn Haverbeke",
|
||||||
|
"email": "marijn@haverbeke.berlin",
|
||||||
|
"url": "http://marijnhaverbeke.nl"
|
||||||
|
},
|
||||||
|
"type": "module",
|
||||||
|
"main": "dist/index.cjs",
|
||||||
|
"exports": {
|
||||||
|
"import": "./dist/index.js",
|
||||||
|
"require": "./dist/index.cjs"
|
||||||
|
},
|
||||||
|
"types": "dist/index.d.ts",
|
||||||
|
"module": "dist/index.js",
|
||||||
|
"sideEffects": false,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@codemirror/state": "^6.0.0",
|
||||||
|
"@codemirror/view": "^6.23.0",
|
||||||
|
"@lezer/common": "^1.1.0",
|
||||||
|
"@lezer/highlight": "^1.0.0",
|
||||||
|
"@lezer/lr": "^1.0.0",
|
||||||
|
"style-mod": "^4.0.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@codemirror/buildhelper": "^1.0.0",
|
||||||
|
"@lezer/javascript": "^1.0.0"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/codemirror/language.git"
|
||||||
|
}
|
||||||
|
}
|
1
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@codemirror/state
generated
vendored
Symbolic link
1
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@codemirror/state
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../@codemirror+state@6.4.1/node_modules/@codemirror/state
|
1
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@codemirror/view
generated
vendored
Symbolic link
1
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@codemirror/view
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../@codemirror+view@6.32.0/node_modules/@codemirror/view
|
1
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@lezer/common
generated
vendored
Symbolic link
1
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@lezer/common
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../@lezer+common@1.2.1/node_modules/@lezer/common
|
1
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@lezer/highlight
generated
vendored
Symbolic link
1
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@lezer/highlight
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../@lezer+highlight@1.2.1/node_modules/@lezer/highlight
|
1
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@lezer/lr
generated
vendored
Symbolic link
1
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/@lezer/lr
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../@lezer+lr@1.4.2/node_modules/@lezer/lr
|
1
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/style-mod
generated
vendored
Symbolic link
1
node_modules/.pnpm/@codemirror+language@6.10.2/node_modules/style-mod
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../style-mod@4.1.2/node_modules/style-mod
|
16
node_modules/.pnpm/@codemirror+state@6.4.1/node_modules/@codemirror/state/.github/workflows/dispatch.yml
generated
vendored
Normal file
16
node_modules/.pnpm/@codemirror+state@6.4.1/node_modules/@codemirror/state/.github/workflows/dispatch.yml
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
name: Trigger CI
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Dispatch to main repo
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Emit repository_dispatch
|
||||||
|
uses: mvasigh/dispatch-action@main
|
||||||
|
with:
|
||||||
|
# You should create a personal access token and store it in your repository
|
||||||
|
token: ${{ secrets.DISPATCH_AUTH }}
|
||||||
|
repo: dev
|
||||||
|
owner: codemirror
|
||||||
|
event_type: push
|
268
node_modules/.pnpm/@codemirror+state@6.4.1/node_modules/@codemirror/state/CHANGELOG.md
generated
vendored
Normal file
268
node_modules/.pnpm/@codemirror+state@6.4.1/node_modules/@codemirror/state/CHANGELOG.md
generated
vendored
Normal file
|
@ -0,0 +1,268 @@
|
||||||
|
## 6.4.1 (2024-02-19)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue that caused widgets at the end of a mark decoration to be rendered in their own separate mark DOM element.
|
||||||
|
|
||||||
|
## 6.4.0 (2023-12-28)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
When multiple ranges in a single range set overlap, put the smaller ones inside the bigger ones, so that overlapping decorations don't break up each other's elements when coming from the same source.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
Selection and selection range `eq` methods now support an optional argument that makes them also compare by cursor associativity.
|
||||||
|
|
||||||
|
The `RangeSet.join` function can be used to join multiple range sets together.
|
||||||
|
|
||||||
|
## 6.3.3 (2023-12-06)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue where `Text.slice` and `Text.replace` could return objects with incorrect `length` when the given `from`/`to` values were out of range for the text.
|
||||||
|
|
||||||
|
## 6.3.2 (2023-11-27)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Make sure transactions cannot add multiple selections when `allowMultipleSelections` is false.
|
||||||
|
|
||||||
|
Fix a bug that caused `Text.iterLines` to not return empty lines at the end of the iterated ranges.
|
||||||
|
|
||||||
|
## 6.3.1 (2023-10-18)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Give the tag property on `FacetReader` the type of the output type parameter to force TypeScript to infer the proper type when converting from `Facet` to `FacetReader`.
|
||||||
|
|
||||||
|
## 6.3.0 (2023-10-12)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The new `FacetReader` type provides a way to export a read-only handle to a `Facet`.
|
||||||
|
|
||||||
|
## 6.2.1 (2023-05-23)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue that could cause `RangeSet.compare` to miss changes in the set of active ranges around a point range.
|
||||||
|
|
||||||
|
## 6.2.0 (2022-12-26)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
`EditorSelection.range` now accepts an optional 4th argument to specify the bidi level of the range's head position.
|
||||||
|
|
||||||
|
## 6.1.4 (2022-11-15)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug that caused the `openStart` value passed to span iterators to be incorrect around widgets in some circumstances.
|
||||||
|
|
||||||
|
## 6.1.3 (2022-11-10)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Avoid unnecessary calls to computed facet getters when a state is reconfigured but no dependencies of the computed facet change.
|
||||||
|
|
||||||
|
Fix an infinite loop in `RangeSet.eq` when the `to` parameter isn't given.
|
||||||
|
|
||||||
|
## 6.1.2 (2022-09-21)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue where, when multiple transaction extenders took effect, only the highest-precedence one was actually included in the transaction.
|
||||||
|
|
||||||
|
## 6.1.1 (2022-08-03)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug in range set span iteration that would cause decorations to be inappropriately split in some situations.
|
||||||
|
|
||||||
|
## 6.1.0 (2022-06-30)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Refine change mapping to preserve insertions made by concurrent changes.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The `enables` option to `Facet.define` may now take a function, which will be called with the facet value to create the extensions.
|
||||||
|
|
||||||
|
## 6.0.1 (2022-06-17)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a problem that caused effects' `map` methods to be called with an incorrect change set when filtering changes.
|
||||||
|
|
||||||
|
## 6.0.0 (2022-06-08)
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
Update dependencies to 6.0.0
|
||||||
|
|
||||||
|
## 0.20.1 (2022-06-02)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
`EditorView.phrase` now accepts additional arguments, which it will interpolate into the phrase in the place of `$` markers.
|
||||||
|
|
||||||
|
## 0.20.0 (2022-04-20)
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
The deprecated precedence names `fallback`, `extend`, and `override` were removed from the library.
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug where, if an extension value occurs multiple times, its lowest, rather than highest precedence is used.
|
||||||
|
|
||||||
|
Fix an issue where facets with computed inputs would unneccesarily have their outputs recreated on state reconfiguration.
|
||||||
|
|
||||||
|
Fix a bug in the order in which new values for state fields and facets were computed, which could cause dynamic facets to hold the wrong value in some situations.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The exports from @codemirror/rangeset now live in this package.
|
||||||
|
|
||||||
|
The exports from @codemirror/text now live in this package.
|
||||||
|
|
||||||
|
## 0.19.9 (2022-02-16)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Mapping a non-empty selection range now always puts any newly inserted text on the sides of the range outside of the mapped version.
|
||||||
|
|
||||||
|
## 0.19.8 (2022-02-15)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug where facet values with computed inputs could incorrectly retain their old value on reconfiguration.
|
||||||
|
|
||||||
|
## 0.19.7 (2022-02-11)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Avoid recomputing facets on state reconfiguration if that facet's inputs stayed precisely the same.
|
||||||
|
|
||||||
|
Selection ranges created with `EditorSelection.range` will now have an assoc pointing at their anchor, when non-empty.
|
||||||
|
|
||||||
|
## 0.19.6 (2021-11-19)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug that caused facet compare functions to be called with an invalid value in some situations.
|
||||||
|
|
||||||
|
Fix a bug that caused dynamic facet values to be incorrectly kept unchanged when reconfiguration changed one of their dependencies.
|
||||||
|
|
||||||
|
## 0.19.5 (2021-11-10)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug that would cause dynamic facet values influenced by a state reconfiguration to not properly recompute.
|
||||||
|
|
||||||
|
## 0.19.4 (2021-11-05)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
When reconfiguring a state, effects from the reconfiguring transaction can now be seen by newly added state fields.
|
||||||
|
|
||||||
|
## 0.19.3 (2021-11-03)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The precedence levels (under `Prec`) now have more generic names, because their 'meaningful' names were entirely inappropriate in many situations.
|
||||||
|
|
||||||
|
## 0.19.2 (2021-09-13)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The editor state now has a `readOnly` property with a matching facet to control its value.
|
||||||
|
|
||||||
|
## 0.19.1 (2021-08-15)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix a bug where `wordAt` never returned a useful result.
|
||||||
|
|
||||||
|
## 0.19.0 (2021-08-11)
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
User event strings now work differently—the events emitted by the core packages follow a different system, and hierarchical event tags can be created by separating the words with dots.
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
`languageDataAt` now takes an optional `side` argument to specificy which side of the position you're interested in.
|
||||||
|
|
||||||
|
It is now possible to add a user event annotation with a direct `userEvent` property on a transaction spec.
|
||||||
|
|
||||||
|
Transactions now have an `isUserEvent` method that can be used to check if it is (a subtype of) some user event type.
|
||||||
|
|
||||||
|
## 0.18.7 (2021-05-04)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue where state fields might be initialized with a state that they aren't actually part of during reconfiguration.
|
||||||
|
|
||||||
|
## 0.18.6 (2021-04-12)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The new `EditorState.wordAt` method finds the word at a given position.
|
||||||
|
|
||||||
|
## 0.18.5 (2021-04-08)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix an issue in the compiled output that would break the code when minified with terser.
|
||||||
|
|
||||||
|
## 0.18.4 (2021-04-06)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The new `Transaction.remote` annotation can be used to mark and recognize transactions created by other actors.
|
||||||
|
|
||||||
|
## 0.18.3 (2021-03-23)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The `ChangeDesc` class now has `toJSON` and `fromJSON` methods.
|
||||||
|
|
||||||
|
## 0.18.2 (2021-03-14)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
Fix unintended ES2020 output (the package contains ES6 code again).
|
||||||
|
|
||||||
|
## 0.18.1 (2021-03-10)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The new `Compartment.get` method can be used to get the content of a compartment in a given state.
|
||||||
|
|
||||||
|
## 0.18.0 (2021-03-03)
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
`tagExtension` and the `reconfigure` transaction spec property have been replaced with the concept of configuration compartments and reconfiguration effects (see `Compartment`, `StateEffect.reconfigure`, and `StateEffect.appendConfig`).
|
||||||
|
|
||||||
|
## 0.17.2 (2021-02-19)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
`EditorSelection.map` and `SelectionRange.map` now take an optional second argument to indicate which direction to map to.
|
||||||
|
|
||||||
|
## 0.17.1 (2021-01-06)
|
||||||
|
|
||||||
|
### New features
|
||||||
|
|
||||||
|
The package now also exports a CommonJS module.
|
||||||
|
|
||||||
|
## 0.17.0 (2020-12-29)
|
||||||
|
|
||||||
|
### Breaking changes
|
||||||
|
|
||||||
|
First numbered release.
|
||||||
|
|
21
node_modules/.pnpm/@codemirror+state@6.4.1/node_modules/@codemirror/state/LICENSE
generated
vendored
Normal file
21
node_modules/.pnpm/@codemirror+state@6.4.1/node_modules/@codemirror/state/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (C) 2018-2021 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
18
node_modules/.pnpm/@codemirror+state@6.4.1/node_modules/@codemirror/state/README.md
generated
vendored
Normal file
18
node_modules/.pnpm/@codemirror+state@6.4.1/node_modules/@codemirror/state/README.md
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# @codemirror/state [![NPM version](https://img.shields.io/npm/v/@codemirror/state.svg)](https://www.npmjs.org/package/@codemirror/state)
|
||||||
|
|
||||||
|
[ [**WEBSITE**](https://codemirror.net/) | [**DOCS**](https://codemirror.net/docs/ref/#state) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/state/blob/main/CHANGELOG.md) ]
|
||||||
|
|
||||||
|
This package implements the editor state data structures for the
|
||||||
|
[CodeMirror](https://codemirror.net/) code editor.
|
||||||
|
|
||||||
|
The [project page](https://codemirror.net/) has more information, a
|
||||||
|
number of [examples](https://codemirror.net/examples/) and the
|
||||||
|
[documentation](https://codemirror.net/docs/).
|
||||||
|
|
||||||
|
This code is released under an
|
||||||
|
[MIT license](https://github.com/codemirror/state/tree/main/LICENSE).
|
||||||
|
|
||||||
|
We aim to be an inclusive, welcoming community. To make that explicit,
|
||||||
|
we have a [code of
|
||||||
|
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
|
||||||
|
to communication around the project.
|
35
node_modules/.pnpm/@codemirror+state@6.4.1/node_modules/@codemirror/state/package.json
generated
vendored
Normal file
35
node_modules/.pnpm/@codemirror+state@6.4.1/node_modules/@codemirror/state/package.json
generated
vendored
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"name": "@codemirror/state",
|
||||||
|
"version": "6.4.1",
|
||||||
|
"description": "Editor state data structures for the CodeMirror code editor",
|
||||||
|
"scripts": {
|
||||||
|
"test": "cm-runtests",
|
||||||
|
"prepare": "cm-buildhelper src/index.ts"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"editor",
|
||||||
|
"code"
|
||||||
|
],
|
||||||
|
"author": {
|
||||||
|
"name": "Marijn Haverbeke",
|
||||||
|
"email": "marijn@haverbeke.berlin",
|
||||||
|
"url": "http://marijnhaverbeke.nl"
|
||||||
|
},
|
||||||
|
"type": "module",
|
||||||
|
"main": "dist/index.cjs",
|
||||||
|
"exports": {
|
||||||
|
"import": "./dist/index.js",
|
||||||
|
"require": "./dist/index.cjs"
|
||||||
|
},
|
||||||
|
"types": "dist/index.d.ts",
|
||||||
|
"module": "dist/index.js",
|
||||||
|
"sideEffects": false,
|
||||||
|
"license": "MIT",
|
||||||
|
"devDependencies": {
|
||||||
|
"@codemirror/buildhelper": "^1.0.0"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/codemirror/state.git"
|
||||||
|
}
|
||||||
|
}
|
1
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/@codemirror/state
generated
vendored
Symbolic link
1
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/@codemirror/state
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../@codemirror+state@6.4.1/node_modules/@codemirror/state
|
16
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/@codemirror/view/.github/workflows/dispatch.yml
generated
vendored
Normal file
16
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/@codemirror/view/.github/workflows/dispatch.yml
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
name: Trigger CI
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Dispatch to main repo
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Emit repository_dispatch
|
||||||
|
uses: mvasigh/dispatch-action@main
|
||||||
|
with:
|
||||||
|
# You should create a personal access token and store it in your repository
|
||||||
|
token: ${{ secrets.DISPATCH_AUTH }}
|
||||||
|
repo: dev
|
||||||
|
owner: codemirror
|
||||||
|
event_type: push
|
1844
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/@codemirror/view/CHANGELOG.md
generated
vendored
Normal file
1844
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/@codemirror/view/CHANGELOG.md
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
21
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/@codemirror/view/LICENSE
generated
vendored
Normal file
21
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/@codemirror/view/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (C) 2018-2021 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
18
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/@codemirror/view/README.md
generated
vendored
Normal file
18
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/@codemirror/view/README.md
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# @codemirror/view [![NPM version](https://img.shields.io/npm/v/@codemirror/view.svg)](https://www.npmjs.org/package/@codemirror/view)
|
||||||
|
|
||||||
|
[ [**WEBSITE**](https://codemirror.net/) | [**DOCS**](https://codemirror.net/docs/ref/#view) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/view/blob/main/CHANGELOG.md) ]
|
||||||
|
|
||||||
|
This package implements the DOM view component for the
|
||||||
|
[CodeMirror](https://codemirror.net/) code editor.
|
||||||
|
|
||||||
|
The [project page](https://codemirror.net/) has more information, a
|
||||||
|
number of [examples](https://codemirror.net/examples/) and the
|
||||||
|
[documentation](https://codemirror.net/docs/).
|
||||||
|
|
||||||
|
This code is released under an
|
||||||
|
[MIT license](https://github.com/codemirror/view/tree/main/LICENSE).
|
||||||
|
|
||||||
|
We aim to be an inclusive, welcoming community. To make that explicit,
|
||||||
|
we have a [code of
|
||||||
|
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
|
||||||
|
to communication around the project.
|
40
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/@codemirror/view/package.json
generated
vendored
Normal file
40
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/@codemirror/view/package.json
generated
vendored
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
"name": "@codemirror/view",
|
||||||
|
"version": "6.32.0",
|
||||||
|
"description": "DOM view component for the CodeMirror code editor",
|
||||||
|
"scripts": {
|
||||||
|
"test": "cm-runtests",
|
||||||
|
"prepare": "cm-buildhelper src/index.ts"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"editor",
|
||||||
|
"code"
|
||||||
|
],
|
||||||
|
"author": {
|
||||||
|
"name": "Marijn Haverbeke",
|
||||||
|
"email": "marijn@haverbeke.berlin",
|
||||||
|
"url": "http://marijnhaverbeke.nl"
|
||||||
|
},
|
||||||
|
"type": "module",
|
||||||
|
"main": "dist/index.cjs",
|
||||||
|
"exports": {
|
||||||
|
"import": "./dist/index.js",
|
||||||
|
"require": "./dist/index.cjs"
|
||||||
|
},
|
||||||
|
"types": "dist/index.d.ts",
|
||||||
|
"module": "dist/index.js",
|
||||||
|
"sideEffects": false,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@codemirror/state": "^6.4.0",
|
||||||
|
"style-mod": "^4.1.0",
|
||||||
|
"w3c-keyname": "^2.2.4"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@codemirror/buildhelper": "^1.0.0"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/codemirror/view.git"
|
||||||
|
}
|
||||||
|
}
|
1
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/style-mod
generated
vendored
Symbolic link
1
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/style-mod
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../style-mod@4.1.2/node_modules/style-mod
|
1
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/w3c-keyname
generated
vendored
Symbolic link
1
node_modules/.pnpm/@codemirror+view@6.32.0/node_modules/w3c-keyname
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../w3c-keyname@2.2.8/node_modules/w3c-keyname
|
21
node_modules/.pnpm/@lezer+common@1.2.1/node_modules/@lezer/common/LICENSE
generated
vendored
Normal file
21
node_modules/.pnpm/@lezer+common@1.2.1/node_modules/@lezer/common/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
14
node_modules/.pnpm/@lezer+common@1.2.1/node_modules/@lezer/common/README.md
generated
vendored
Normal file
14
node_modules/.pnpm/@lezer+common@1.2.1/node_modules/@lezer/common/README.md
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# @lezer/common
|
||||||
|
|
||||||
|
[ [**WEBSITE**](http://lezer.codemirror.net) | [**ISSUES**](https://github.com/lezer-parser/lezer/issues) | [**FORUM**](https://discuss.codemirror.net/c/lezer) | [**CHANGELOG**](https://github.com/lezer-parser/common/blob/master/CHANGELOG.md) ]
|
||||||
|
|
||||||
|
[Lezer](https://lezer.codemirror.net/) is an incremental parser system
|
||||||
|
intended for use in an editor or similar system.
|
||||||
|
|
||||||
|
@lezer/common provides the syntax tree data structure and parser
|
||||||
|
abstractions for Lezer parsers.
|
||||||
|
|
||||||
|
Its programming interface is documented on [the
|
||||||
|
website](https://lezer.codemirror.net/docs/ref/#common).
|
||||||
|
|
||||||
|
This code is licensed under an MIT license.
|
31
node_modules/.pnpm/@lezer+common@1.2.1/node_modules/@lezer/common/package.json
generated
vendored
Normal file
31
node_modules/.pnpm/@lezer+common@1.2.1/node_modules/@lezer/common/package.json
generated
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
"name": "@lezer/common",
|
||||||
|
"version": "1.2.1",
|
||||||
|
"description": "Syntax tree data structure and parser interfaces for the lezer parser",
|
||||||
|
"main": "dist/index.cjs",
|
||||||
|
"type": "module",
|
||||||
|
"exports": {
|
||||||
|
"import": "./dist/index.js",
|
||||||
|
"require": "./dist/index.cjs"
|
||||||
|
},
|
||||||
|
"module": "dist/index.js",
|
||||||
|
"types": "dist/index.d.ts",
|
||||||
|
"author": "Marijn Haverbeke <marijn@haverbeke.berlin>",
|
||||||
|
"license": "MIT",
|
||||||
|
"devDependencies": {
|
||||||
|
"ist": "^1.1.1",
|
||||||
|
"@marijn/buildtool": "^0.1.5",
|
||||||
|
"@types/mocha": "^5.2.6",
|
||||||
|
"mocha": "^10.2.0"
|
||||||
|
},
|
||||||
|
"files": ["dist"],
|
||||||
|
"repository": {
|
||||||
|
"type" : "git",
|
||||||
|
"url" : "https://github.com/lezer-parser/common.git"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"watch": "node build.js --watch",
|
||||||
|
"prepare": "node build.js",
|
||||||
|
"test": "mocha"
|
||||||
|
}
|
||||||
|
}
|
1
node_modules/.pnpm/@lezer+highlight@1.2.1/node_modules/@lezer/common
generated
vendored
Symbolic link
1
node_modules/.pnpm/@lezer+highlight@1.2.1/node_modules/@lezer/common
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../@lezer+common@1.2.1/node_modules/@lezer/common
|
21
node_modules/.pnpm/@lezer+highlight@1.2.1/node_modules/@lezer/highlight/LICENSE
generated
vendored
Normal file
21
node_modules/.pnpm/@lezer+highlight@1.2.1/node_modules/@lezer/highlight/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
14
node_modules/.pnpm/@lezer+highlight@1.2.1/node_modules/@lezer/highlight/README.md
generated
vendored
Normal file
14
node_modules/.pnpm/@lezer+highlight@1.2.1/node_modules/@lezer/highlight/README.md
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# @lezer/highlight
|
||||||
|
|
||||||
|
[ [**WEBSITE**](http://lezer.codemirror.net) | [**ISSUES**](https://github.com/lezer-parser/lezer/issues) | [**FORUM**](https://discuss.codemirror.net/c/lezer) | [**CHANGELOG**](https://github.com/lezer-parser/highlight/blob/master/CHANGELOG.md) ]
|
||||||
|
|
||||||
|
[Lezer](https://lezer.codemirror.net/) is an incremental parser system
|
||||||
|
intended for use in an editor or similar system.
|
||||||
|
|
||||||
|
@lezer/highlight provides a syntax highlighting framework for Lezer
|
||||||
|
parse trees.
|
||||||
|
|
||||||
|
Its programming interface is documented on [the
|
||||||
|
website](https://lezer.codemirror.net/docs/ref/#highlight).
|
||||||
|
|
||||||
|
This code is licensed under an MIT license.
|
31
node_modules/.pnpm/@lezer+highlight@1.2.1/node_modules/@lezer/highlight/package.json
generated
vendored
Normal file
31
node_modules/.pnpm/@lezer+highlight@1.2.1/node_modules/@lezer/highlight/package.json
generated
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
"name": "@lezer/highlight",
|
||||||
|
"version": "1.2.1",
|
||||||
|
"description": "Highlighting system for Lezer parse trees",
|
||||||
|
"main": "dist/index.cjs",
|
||||||
|
"type": "module",
|
||||||
|
"exports": {
|
||||||
|
"import": "./dist/index.js",
|
||||||
|
"require": "./dist/index.cjs"
|
||||||
|
},
|
||||||
|
"module": "dist/index.js",
|
||||||
|
"types": "dist/index.d.ts",
|
||||||
|
"author": "Marijn Haverbeke <marijn@haverbeke.berlin>",
|
||||||
|
"license": "MIT",
|
||||||
|
"devDependencies": {
|
||||||
|
"@marijn/buildtool": "0.1.3",
|
||||||
|
"typescript": "^5.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@lezer/common": "^1.0.0"
|
||||||
|
},
|
||||||
|
"files": ["dist"],
|
||||||
|
"repository": {
|
||||||
|
"type" : "git",
|
||||||
|
"url" : "https://github.com/lezer-parser/highlight.git"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"watch": "node build.js --watch",
|
||||||
|
"prepare": "node build.js"
|
||||||
|
}
|
||||||
|
}
|
1
node_modules/.pnpm/@lezer+lr@1.4.2/node_modules/@lezer/common
generated
vendored
Symbolic link
1
node_modules/.pnpm/@lezer+lr@1.4.2/node_modules/@lezer/common
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../../@lezer+common@1.2.1/node_modules/@lezer/common
|
21
node_modules/.pnpm/@lezer+lr@1.4.2/node_modules/@lezer/lr/LICENSE
generated
vendored
Normal file
21
node_modules/.pnpm/@lezer+lr@1.4.2/node_modules/@lezer/lr/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
25
node_modules/.pnpm/@lezer+lr@1.4.2/node_modules/@lezer/lr/README.md
generated
vendored
Normal file
25
node_modules/.pnpm/@lezer+lr@1.4.2/node_modules/@lezer/lr/README.md
generated
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# @lezer/lr
|
||||||
|
|
||||||
|
[ [**WEBSITE**](http://lezer.codemirror.net) | [**ISSUES**](https://github.com/lezer-parser/lezer/issues) | [**FORUM**](https://discuss.codemirror.net/c/lezer) | [**CHANGELOG**](https://github.com/lezer-parser/lr/blob/master/CHANGELOG.md) ]
|
||||||
|
|
||||||
|
Lezer ("reader" in Dutch, pronounced pretty much as laser) is an
|
||||||
|
incremental GLR parser intended for use in an editor or similar
|
||||||
|
system, which needs to keep a representation of the program current
|
||||||
|
during changes and in the face of syntax errors.
|
||||||
|
|
||||||
|
It prioritizes speed and compactness (both of parser table files and
|
||||||
|
of syntax tree) over having a highly usable parse tree—trees nodes are
|
||||||
|
just blobs with a start, end, tag, and set of child nodes, with no
|
||||||
|
further labeling of child nodes or extra metadata.
|
||||||
|
|
||||||
|
This package contains the run-time LR parser library. It consumes
|
||||||
|
parsers generated by
|
||||||
|
[@lezer/generator](https://github.com/lezer-parser/generator).
|
||||||
|
|
||||||
|
The parser programming interface is documented on [the
|
||||||
|
website](https://lezer.codemirror.net/docs/ref/#lr).
|
||||||
|
|
||||||
|
The code is licensed under an MIT license.
|
||||||
|
|
||||||
|
This project was hugely inspired by
|
||||||
|
[tree-sitter](http://tree-sitter.github.io/tree-sitter/).
|
32
node_modules/.pnpm/@lezer+lr@1.4.2/node_modules/@lezer/lr/package.json
generated
vendored
Normal file
32
node_modules/.pnpm/@lezer+lr@1.4.2/node_modules/@lezer/lr/package.json
generated
vendored
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
"name": "@lezer/lr",
|
||||||
|
"version": "1.4.2",
|
||||||
|
"description": "Incremental parser",
|
||||||
|
"main": "dist/index.cjs",
|
||||||
|
"type": "module",
|
||||||
|
"exports": {
|
||||||
|
"import": "./dist/index.js",
|
||||||
|
"require": "./dist/index.cjs"
|
||||||
|
},
|
||||||
|
"module": "dist/index.js",
|
||||||
|
"types": "dist/index.d.ts",
|
||||||
|
"author": "Marijn Haverbeke <marijn@haverbeke.berlin>",
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": {
|
||||||
|
"type" : "git",
|
||||||
|
"url" : "https://github.com/lezer-parser/lr.git"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@marijn/buildtool": "^0.1.5",
|
||||||
|
"@types/node": "^20.6.2"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@lezer/common": "^1.0.0"
|
||||||
|
},
|
||||||
|
"files": ["dist"],
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo 'Tests are in @lezer/generator'",
|
||||||
|
"watch": "node build.js --watch",
|
||||||
|
"prepare": "node build.js; tsc src/constants.ts -d --outDir dist"
|
||||||
|
}
|
||||||
|
}
|
88
node_modules/.pnpm/lock.yaml
generated
vendored
Normal file
88
node_modules/.pnpm/lock.yaml
generated
vendored
Normal file
|
@ -0,0 +1,88 @@
|
||||||
|
lockfileVersion: '9.0'
|
||||||
|
|
||||||
|
settings:
|
||||||
|
autoInstallPeers: true
|
||||||
|
excludeLinksFromLockfile: false
|
||||||
|
|
||||||
|
importers:
|
||||||
|
|
||||||
|
.:
|
||||||
|
dependencies:
|
||||||
|
'@codemirror/commands':
|
||||||
|
specifier: ^6.6.0
|
||||||
|
version: 6.6.0
|
||||||
|
'@codemirror/state':
|
||||||
|
specifier: ^6.4.1
|
||||||
|
version: 6.4.1
|
||||||
|
'@codemirror/view':
|
||||||
|
specifier: ^6.32.0
|
||||||
|
version: 6.32.0
|
||||||
|
|
||||||
|
packages:
|
||||||
|
|
||||||
|
'@codemirror/commands@6.6.0':
|
||||||
|
resolution: {integrity: sha512-qnY+b7j1UNcTS31Eenuc/5YJB6gQOzkUoNmJQc0rznwqSRpeaWWpjkWy2C/MPTcePpsKJEM26hXrOXl1+nceXg==}
|
||||||
|
|
||||||
|
'@codemirror/language@6.10.2':
|
||||||
|
resolution: {integrity: sha512-kgbTYTo0Au6dCSc/TFy7fK3fpJmgHDv1sG1KNQKJXVi+xBTEeBPY/M30YXiU6mMXeH+YIDLsbrT4ZwNRdtF+SA==}
|
||||||
|
|
||||||
|
'@codemirror/state@6.4.1':
|
||||||
|
resolution: {integrity: sha512-QkEyUiLhsJoZkbumGZlswmAhA7CBU02Wrz7zvH4SrcifbsqwlXShVXg65f3v/ts57W3dqyamEriMhij1Z3Zz4A==}
|
||||||
|
|
||||||
|
'@codemirror/view@6.32.0':
|
||||||
|
resolution: {integrity: sha512-AgVNvED2QTsZp5e3syoHLsrWtwJFYWdx1Vr/m3f4h1ATQz0ax60CfXF3Htdmk69k2MlYZw8gXesnQdHtzyVmAw==}
|
||||||
|
|
||||||
|
'@lezer/common@1.2.1':
|
||||||
|
resolution: {integrity: sha512-yemX0ZD2xS/73llMZIK6KplkjIjf2EvAHcinDi/TfJ9hS25G0388+ClHt6/3but0oOxinTcQHJLDXh6w1crzFQ==}
|
||||||
|
|
||||||
|
'@lezer/highlight@1.2.1':
|
||||||
|
resolution: {integrity: sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA==}
|
||||||
|
|
||||||
|
'@lezer/lr@1.4.2':
|
||||||
|
resolution: {integrity: sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==}
|
||||||
|
|
||||||
|
style-mod@4.1.2:
|
||||||
|
resolution: {integrity: sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==}
|
||||||
|
|
||||||
|
w3c-keyname@2.2.8:
|
||||||
|
resolution: {integrity: sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==}
|
||||||
|
|
||||||
|
snapshots:
|
||||||
|
|
||||||
|
'@codemirror/commands@6.6.0':
|
||||||
|
dependencies:
|
||||||
|
'@codemirror/language': 6.10.2
|
||||||
|
'@codemirror/state': 6.4.1
|
||||||
|
'@codemirror/view': 6.32.0
|
||||||
|
'@lezer/common': 1.2.1
|
||||||
|
|
||||||
|
'@codemirror/language@6.10.2':
|
||||||
|
dependencies:
|
||||||
|
'@codemirror/state': 6.4.1
|
||||||
|
'@codemirror/view': 6.32.0
|
||||||
|
'@lezer/common': 1.2.1
|
||||||
|
'@lezer/highlight': 1.2.1
|
||||||
|
'@lezer/lr': 1.4.2
|
||||||
|
style-mod: 4.1.2
|
||||||
|
|
||||||
|
'@codemirror/state@6.4.1': {}
|
||||||
|
|
||||||
|
'@codemirror/view@6.32.0':
|
||||||
|
dependencies:
|
||||||
|
'@codemirror/state': 6.4.1
|
||||||
|
style-mod: 4.1.2
|
||||||
|
w3c-keyname: 2.2.8
|
||||||
|
|
||||||
|
'@lezer/common@1.2.1': {}
|
||||||
|
|
||||||
|
'@lezer/highlight@1.2.1':
|
||||||
|
dependencies:
|
||||||
|
'@lezer/common': 1.2.1
|
||||||
|
|
||||||
|
'@lezer/lr@1.4.2':
|
||||||
|
dependencies:
|
||||||
|
'@lezer/common': 1.2.1
|
||||||
|
|
||||||
|
style-mod@4.1.2: {}
|
||||||
|
|
||||||
|
w3c-keyname@2.2.8: {}
|
1
node_modules/.pnpm/node_modules/@codemirror/language
generated
vendored
Symbolic link
1
node_modules/.pnpm/node_modules/@codemirror/language
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../@codemirror+language@6.10.2/node_modules/@codemirror/language
|
1
node_modules/.pnpm/node_modules/@lezer/common
generated
vendored
Symbolic link
1
node_modules/.pnpm/node_modules/@lezer/common
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../@lezer+common@1.2.1/node_modules/@lezer/common
|
1
node_modules/.pnpm/node_modules/@lezer/highlight
generated
vendored
Symbolic link
1
node_modules/.pnpm/node_modules/@lezer/highlight
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../@lezer+highlight@1.2.1/node_modules/@lezer/highlight
|
1
node_modules/.pnpm/node_modules/@lezer/lr
generated
vendored
Symbolic link
1
node_modules/.pnpm/node_modules/@lezer/lr
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../@lezer+lr@1.4.2/node_modules/@lezer/lr
|
1
node_modules/.pnpm/node_modules/style-mod
generated
vendored
Symbolic link
1
node_modules/.pnpm/node_modules/style-mod
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../style-mod@4.1.2/node_modules/style-mod
|
1
node_modules/.pnpm/node_modules/w3c-keyname
generated
vendored
Symbolic link
1
node_modules/.pnpm/node_modules/w3c-keyname
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../w3c-keyname@2.2.8/node_modules/w3c-keyname
|
19
node_modules/.pnpm/style-mod@4.1.2/node_modules/style-mod/LICENSE
generated
vendored
Normal file
19
node_modules/.pnpm/style-mod@4.1.2/node_modules/style-mod/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
98
node_modules/.pnpm/style-mod@4.1.2/node_modules/style-mod/README.md
generated
vendored
Normal file
98
node_modules/.pnpm/style-mod@4.1.2/node_modules/style-mod/README.md
generated
vendored
Normal file
|
@ -0,0 +1,98 @@
|
||||||
|
<!-- To edit this file, edit /src/README.md, not /README.md -->
|
||||||
|
|
||||||
|
# style-mod
|
||||||
|
|
||||||
|
Minimal CSS module shim for generating CSS rules for sets of style
|
||||||
|
-declarations and attaching such a set to a document or shadow root.
|
||||||
|
|
||||||
|
Using it would look something like this:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
const {StyleModule} = require("style-mod")
|
||||||
|
const myModule = new StyleModule({
|
||||||
|
"#main": {
|
||||||
|
fontFamily: "Georgia, 'Nimbus Roman No9 L'",
|
||||||
|
margin: "0"
|
||||||
|
},
|
||||||
|
".callout": {
|
||||||
|
color: "red",
|
||||||
|
fontWeight: "bold",
|
||||||
|
"&:hover": {color: "orange"}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
StyleModule.mount(document, myModule)
|
||||||
|
```
|
||||||
|
|
||||||
|
This code is open source, released under an MIT license.
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
### class StyleModule
|
||||||
|
|
||||||
|
Style modules encapsulate a set of CSS rules defined from
|
||||||
|
JavaScript. Their definitions are only available in a given DOM
|
||||||
|
root after it has been _mounted_ there with `StyleModule.mount`.
|
||||||
|
|
||||||
|
Style modules should be created once and stored somewhere, as
|
||||||
|
opposed to re-creating them every time you need them. The amount of
|
||||||
|
CSS rules generated for a given DOM root is bounded by the amount
|
||||||
|
of style modules that were used. So to avoid leaking rules, don't
|
||||||
|
create these dynamically, but treat them as one-time allocations.
|
||||||
|
|
||||||
|
* `new `**`StyleModule`**`(spec: Object< Style >, options: ?{finish: ?fn(string) → string})`\
|
||||||
|
Create a style module from the given spec.
|
||||||
|
|
||||||
|
When `finish` is given, it is called on regular (non-`@`)
|
||||||
|
selectors (after `&` expansion) to compute the final selector.
|
||||||
|
|
||||||
|
* **`getRules`**`() → string`\
|
||||||
|
Returns a string containing the module's CSS rules.
|
||||||
|
|
||||||
|
* `static `**`newName`**`() → string`\
|
||||||
|
Generate a new unique CSS class name.
|
||||||
|
|
||||||
|
* `static `**`mount`**`(root: Document | ShadowRoot, modules: [StyleModule] | StyleModule, options: ?{nonce: ?string})`\
|
||||||
|
Mount the given set of modules in the given DOM root, which ensures
|
||||||
|
that the CSS rules defined by the module are available in that
|
||||||
|
context.
|
||||||
|
|
||||||
|
Rules are only added to the document once per root.
|
||||||
|
|
||||||
|
Rule order will follow the order of the modules, so that rules from
|
||||||
|
modules later in the array take precedence of those from earlier
|
||||||
|
modules. If you call this function multiple times for the same root
|
||||||
|
in a way that changes the order of already mounted modules, the old
|
||||||
|
order will be changed.
|
||||||
|
|
||||||
|
If a Content Security Policy nonce is provided, it is added to
|
||||||
|
the `<style>` tag generated by the library.
|
||||||
|
|
||||||
|
|
||||||
|
Where the `Style` type is defined as:
|
||||||
|
|
||||||
|
* **`Style`**`: Object< Style | string >`\
|
||||||
|
A style is an object that, in the simple case, maps CSS property
|
||||||
|
names to strings holding their values, as in `{color: "red",
|
||||||
|
fontWeight: "bold"}`. The property names can be given in
|
||||||
|
camel-case—the library will insert a dash before capital letters
|
||||||
|
when converting them to CSS.
|
||||||
|
|
||||||
|
If you include an underscore in a property name, it and everything
|
||||||
|
after it will be removed from the output, which can be useful when
|
||||||
|
providing a property multiple times, for browser compatibility
|
||||||
|
reasons.
|
||||||
|
|
||||||
|
A property in a style object can also be a sub-selector, which
|
||||||
|
extends the current context to add a pseudo-selector or a child
|
||||||
|
selector. Such a property should contain a `&` character, which
|
||||||
|
will be replaced by the current selector. For example `{"&:before":
|
||||||
|
{content: '"hi"'}}`. Sub-selectors and regular properties can
|
||||||
|
freely be mixed in a given object. Any property containing a `&` is
|
||||||
|
assumed to be a sub-selector.
|
||||||
|
|
||||||
|
Finally, a property can specify an @-block to be wrapped around the
|
||||||
|
styles defined inside the object that's the property's value. For
|
||||||
|
example to create a media query you can do `{"@media screen and
|
||||||
|
(min-width: 400px)": {...}}`.
|
||||||
|
|
||||||
|
|
39
node_modules/.pnpm/style-mod@4.1.2/node_modules/style-mod/package.json
generated
vendored
Normal file
39
node_modules/.pnpm/style-mod@4.1.2/node_modules/style-mod/package.json
generated
vendored
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{
|
||||||
|
"name": "style-mod",
|
||||||
|
"version": "4.1.2",
|
||||||
|
"description": "A minimal CSS module shim",
|
||||||
|
"main": "dist/style-mod.cjs",
|
||||||
|
"type": "module",
|
||||||
|
"exports": {
|
||||||
|
"import": "./src/style-mod.js",
|
||||||
|
"require": "./dist/style-mod.cjs"
|
||||||
|
},
|
||||||
|
"module": "src/style-mod.js",
|
||||||
|
"types": "src/style-mod.d.ts",
|
||||||
|
"directories": {
|
||||||
|
"test": "test"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"test": "npm run build && mocha test/test-*.js",
|
||||||
|
"build": "mkdir -p dist; buble --no modules src/style-mod.js | sed -e 's/export var StyleModule/var StyleModule = exports.StyleModule/' > dist/style-mod.cjs",
|
||||||
|
"prepare": "npm run build && npm run build-readme",
|
||||||
|
"build-readme": "builddocs --name style-mod --main src/README.md --format markdown src/*.js > README.md"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"css",
|
||||||
|
"module",
|
||||||
|
"styling"
|
||||||
|
],
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/marijnh/style-mod.git"
|
||||||
|
},
|
||||||
|
"author": "Marijn Haverbeke <marijn@haverbeke.berlin>",
|
||||||
|
"license": "MIT",
|
||||||
|
"devDependencies": {
|
||||||
|
"buble": "^0.20.0",
|
||||||
|
"builddocs": "^0.3.2",
|
||||||
|
"ist": "^1.1.1",
|
||||||
|
"mocha": "^7.2.0"
|
||||||
|
}
|
||||||
|
}
|
34
node_modules/.pnpm/style-mod@4.1.2/node_modules/style-mod/src/README.md
generated
vendored
Normal file
34
node_modules/.pnpm/style-mod@4.1.2/node_modules/style-mod/src/README.md
generated
vendored
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
<!-- To edit this file, edit /src/README.md, not /README.md -->
|
||||||
|
|
||||||
|
# style-mod
|
||||||
|
|
||||||
|
Minimal CSS module shim for generating CSS rules for sets of style
|
||||||
|
-declarations and attaching such a set to a document or shadow root.
|
||||||
|
|
||||||
|
Using it would look something like this:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
const {StyleModule} = require("style-mod")
|
||||||
|
const myModule = new StyleModule({
|
||||||
|
"#main": {
|
||||||
|
fontFamily: "Georgia, 'Nimbus Roman No9 L'",
|
||||||
|
margin: "0"
|
||||||
|
},
|
||||||
|
".callout": {
|
||||||
|
color: "red",
|
||||||
|
fontWeight: "bold",
|
||||||
|
"&:hover": {color: "orange"}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
StyleModule.mount(document, myModule)
|
||||||
|
```
|
||||||
|
|
||||||
|
This code is open source, released under an MIT license.
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
@StyleModule
|
||||||
|
|
||||||
|
Where the `Style` type is defined as:
|
||||||
|
|
||||||
|
@Style
|
16
node_modules/.pnpm/style-mod@4.1.2/node_modules/style-mod/src/style-mod.d.ts
generated
vendored
Normal file
16
node_modules/.pnpm/style-mod@4.1.2/node_modules/style-mod/src/style-mod.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
export class StyleModule {
|
||||||
|
constructor(spec: {[selector: string]: StyleSpec}, options?: {
|
||||||
|
finish?(sel: string): string
|
||||||
|
})
|
||||||
|
getRules(): string
|
||||||
|
static mount(
|
||||||
|
root: Document | ShadowRoot | DocumentOrShadowRoot,
|
||||||
|
module: StyleModule | ReadonlyArray<StyleModule>,
|
||||||
|
options?: {nonce?: string}
|
||||||
|
): void
|
||||||
|
static newName(): string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type StyleSpec = {
|
||||||
|
[propOrSelector: string]: string | number | StyleSpec | null
|
||||||
|
}
|
172
node_modules/.pnpm/style-mod@4.1.2/node_modules/style-mod/src/style-mod.js
generated
vendored
Normal file
172
node_modules/.pnpm/style-mod@4.1.2/node_modules/style-mod/src/style-mod.js
generated
vendored
Normal file
|
@ -0,0 +1,172 @@
|
||||||
|
const C = "\u037c"
|
||||||
|
const COUNT = typeof Symbol == "undefined" ? "__" + C : Symbol.for(C)
|
||||||
|
const SET = typeof Symbol == "undefined" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet")
|
||||||
|
const top = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : {}
|
||||||
|
|
||||||
|
// :: - Style modules encapsulate a set of CSS rules defined from
|
||||||
|
// JavaScript. Their definitions are only available in a given DOM
|
||||||
|
// root after it has been _mounted_ there with `StyleModule.mount`.
|
||||||
|
//
|
||||||
|
// Style modules should be created once and stored somewhere, as
|
||||||
|
// opposed to re-creating them every time you need them. The amount of
|
||||||
|
// CSS rules generated for a given DOM root is bounded by the amount
|
||||||
|
// of style modules that were used. So to avoid leaking rules, don't
|
||||||
|
// create these dynamically, but treat them as one-time allocations.
|
||||||
|
export class StyleModule {
|
||||||
|
// :: (Object<Style>, ?{finish: ?(string) → string})
|
||||||
|
// Create a style module from the given spec.
|
||||||
|
//
|
||||||
|
// When `finish` is given, it is called on regular (non-`@`)
|
||||||
|
// selectors (after `&` expansion) to compute the final selector.
|
||||||
|
constructor(spec, options) {
|
||||||
|
this.rules = []
|
||||||
|
let {finish} = options || {}
|
||||||
|
|
||||||
|
function splitSelector(selector) {
|
||||||
|
return /^@/.test(selector) ? [selector] : selector.split(/,\s*/)
|
||||||
|
}
|
||||||
|
|
||||||
|
function render(selectors, spec, target, isKeyframes) {
|
||||||
|
let local = [], isAt = /^@(\w+)\b/.exec(selectors[0]), keyframes = isAt && isAt[1] == "keyframes"
|
||||||
|
if (isAt && spec == null) return target.push(selectors[0] + ";")
|
||||||
|
for (let prop in spec) {
|
||||||
|
let value = spec[prop]
|
||||||
|
if (/&/.test(prop)) {
|
||||||
|
render(prop.split(/,\s*/).map(part => selectors.map(sel => part.replace(/&/, sel))).reduce((a, b) => a.concat(b)),
|
||||||
|
value, target)
|
||||||
|
} else if (value && typeof value == "object") {
|
||||||
|
if (!isAt) throw new RangeError("The value of a property (" + prop + ") should be a primitive value.")
|
||||||
|
render(splitSelector(prop), value, local, keyframes)
|
||||||
|
} else if (value != null) {
|
||||||
|
local.push(prop.replace(/_.*/, "").replace(/[A-Z]/g, l => "-" + l.toLowerCase()) + ": " + value + ";")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (local.length || keyframes) {
|
||||||
|
target.push((finish && !isAt && !isKeyframes ? selectors.map(finish) : selectors).join(", ") +
|
||||||
|
" {" + local.join(" ") + "}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let prop in spec) render(splitSelector(prop), spec[prop], this.rules)
|
||||||
|
}
|
||||||
|
|
||||||
|
// :: () → string
|
||||||
|
// Returns a string containing the module's CSS rules.
|
||||||
|
getRules() { return this.rules.join("\n") }
|
||||||
|
|
||||||
|
// :: () → string
|
||||||
|
// Generate a new unique CSS class name.
|
||||||
|
static newName() {
|
||||||
|
let id = top[COUNT] || 1
|
||||||
|
top[COUNT] = id + 1
|
||||||
|
return C + id.toString(36)
|
||||||
|
}
|
||||||
|
|
||||||
|
// :: (union<Document, ShadowRoot>, union<[StyleModule], StyleModule>, ?{nonce: ?string})
|
||||||
|
//
|
||||||
|
// Mount the given set of modules in the given DOM root, which ensures
|
||||||
|
// that the CSS rules defined by the module are available in that
|
||||||
|
// context.
|
||||||
|
//
|
||||||
|
// Rules are only added to the document once per root.
|
||||||
|
//
|
||||||
|
// Rule order will follow the order of the modules, so that rules from
|
||||||
|
// modules later in the array take precedence of those from earlier
|
||||||
|
// modules. If you call this function multiple times for the same root
|
||||||
|
// in a way that changes the order of already mounted modules, the old
|
||||||
|
// order will be changed.
|
||||||
|
//
|
||||||
|
// If a Content Security Policy nonce is provided, it is added to
|
||||||
|
// the `<style>` tag generated by the library.
|
||||||
|
static mount(root, modules, options) {
|
||||||
|
let set = root[SET], nonce = options && options.nonce
|
||||||
|
if (!set) set = new StyleSet(root, nonce)
|
||||||
|
else if (nonce) set.setNonce(nonce)
|
||||||
|
set.mount(Array.isArray(modules) ? modules : [modules], root)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let adoptedSet = new Map //<Document, StyleSet>
|
||||||
|
|
||||||
|
class StyleSet {
|
||||||
|
constructor(root, nonce) {
|
||||||
|
let doc = root.ownerDocument || root, win = doc.defaultView
|
||||||
|
if (!root.head && root.adoptedStyleSheets && win.CSSStyleSheet) {
|
||||||
|
let adopted = adoptedSet.get(doc)
|
||||||
|
if (adopted) return root[SET] = adopted
|
||||||
|
this.sheet = new win.CSSStyleSheet
|
||||||
|
adoptedSet.set(doc, this)
|
||||||
|
} else {
|
||||||
|
this.styleTag = doc.createElement("style")
|
||||||
|
if (nonce) this.styleTag.setAttribute("nonce", nonce)
|
||||||
|
}
|
||||||
|
this.modules = []
|
||||||
|
root[SET] = this
|
||||||
|
}
|
||||||
|
|
||||||
|
mount(modules, root) {
|
||||||
|
let sheet = this.sheet
|
||||||
|
let pos = 0 /* Current rule offset */, j = 0 /* Index into this.modules */
|
||||||
|
for (let i = 0; i < modules.length; i++) {
|
||||||
|
let mod = modules[i], index = this.modules.indexOf(mod)
|
||||||
|
if (index < j && index > -1) { // Ordering conflict
|
||||||
|
this.modules.splice(index, 1)
|
||||||
|
j--
|
||||||
|
index = -1
|
||||||
|
}
|
||||||
|
if (index == -1) {
|
||||||
|
this.modules.splice(j++, 0, mod)
|
||||||
|
if (sheet) for (let k = 0; k < mod.rules.length; k++)
|
||||||
|
sheet.insertRule(mod.rules[k], pos++)
|
||||||
|
} else {
|
||||||
|
while (j < index) pos += this.modules[j++].rules.length
|
||||||
|
pos += mod.rules.length
|
||||||
|
j++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sheet) {
|
||||||
|
if (root.adoptedStyleSheets.indexOf(this.sheet) < 0)
|
||||||
|
root.adoptedStyleSheets = [this.sheet, ...root.adoptedStyleSheets]
|
||||||
|
} else {
|
||||||
|
let text = ""
|
||||||
|
for (let i = 0; i < this.modules.length; i++)
|
||||||
|
text += this.modules[i].getRules() + "\n"
|
||||||
|
this.styleTag.textContent = text
|
||||||
|
let target = root.head || root
|
||||||
|
if (this.styleTag.parentNode != target)
|
||||||
|
target.insertBefore(this.styleTag, target.firstChild)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
setNonce(nonce) {
|
||||||
|
if (this.styleTag && this.styleTag.getAttribute("nonce") != nonce)
|
||||||
|
this.styleTag.setAttribute("nonce", nonce)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Style::Object<union<Style,string>>
|
||||||
|
//
|
||||||
|
// A style is an object that, in the simple case, maps CSS property
|
||||||
|
// names to strings holding their values, as in `{color: "red",
|
||||||
|
// fontWeight: "bold"}`. The property names can be given in
|
||||||
|
// camel-case—the library will insert a dash before capital letters
|
||||||
|
// when converting them to CSS.
|
||||||
|
//
|
||||||
|
// If you include an underscore in a property name, it and everything
|
||||||
|
// after it will be removed from the output, which can be useful when
|
||||||
|
// providing a property multiple times, for browser compatibility
|
||||||
|
// reasons.
|
||||||
|
//
|
||||||
|
// A property in a style object can also be a sub-selector, which
|
||||||
|
// extends the current context to add a pseudo-selector or a child
|
||||||
|
// selector. Such a property should contain a `&` character, which
|
||||||
|
// will be replaced by the current selector. For example `{"&:before":
|
||||||
|
// {content: '"hi"'}}`. Sub-selectors and regular properties can
|
||||||
|
// freely be mixed in a given object. Any property containing a `&` is
|
||||||
|
// assumed to be a sub-selector.
|
||||||
|
//
|
||||||
|
// Finally, a property can specify an @-block to be wrapped around the
|
||||||
|
// styles defined inside the object that's the property's value. For
|
||||||
|
// example to create a media query you can do `{"@media screen and
|
||||||
|
// (min-width: 400px)": {...}}`.
|
104
node_modules/.pnpm/style-mod@4.1.2/node_modules/style-mod/test/test-style-mod.js
generated
vendored
Normal file
104
node_modules/.pnpm/style-mod@4.1.2/node_modules/style-mod/test/test-style-mod.js
generated
vendored
Normal file
|
@ -0,0 +1,104 @@
|
||||||
|
import {StyleModule} from "style-mod"
|
||||||
|
import ist from "ist"
|
||||||
|
|
||||||
|
describe("StyleModule", () => {
|
||||||
|
it("renders objects to CSS text", () => {
|
||||||
|
ist(rules(new StyleModule({main: {color: "red", border: "1px solid green"}})),
|
||||||
|
["main {color: red; border: 1px solid green;}"], eqRules)
|
||||||
|
})
|
||||||
|
|
||||||
|
it("handles multiple rules", () => {
|
||||||
|
ist(rules(new StyleModule({
|
||||||
|
one: {color: "green"},
|
||||||
|
two: {color: "blue"}
|
||||||
|
})), [
|
||||||
|
"one {color: green;}",
|
||||||
|
"two {color: blue;}"
|
||||||
|
], eqRules)
|
||||||
|
})
|
||||||
|
|
||||||
|
it("supports &-nesting", () => {
|
||||||
|
ist(rules(new StyleModule({
|
||||||
|
main: {
|
||||||
|
color: "yellow",
|
||||||
|
"&:hover": {fontWeight: "bold"}
|
||||||
|
}
|
||||||
|
})), [
|
||||||
|
"main:hover {font-weight: bold;}",
|
||||||
|
"main {color: yellow;}"
|
||||||
|
], eqRules)
|
||||||
|
})
|
||||||
|
|
||||||
|
it("can replace multiple & markers", () => {
|
||||||
|
ist(rules(new StyleModule({
|
||||||
|
main: {
|
||||||
|
"p &, div &": {color: "blue"}
|
||||||
|
}
|
||||||
|
})), [
|
||||||
|
"p main, div main {color: blue;}"
|
||||||
|
], eqRules)
|
||||||
|
})
|
||||||
|
|
||||||
|
it("supports media queries", () => {
|
||||||
|
ist(rules(new StyleModule({
|
||||||
|
"@media screen and (min-width: 400px)": {
|
||||||
|
main: {
|
||||||
|
fontFamily: '"URW Bookman"',
|
||||||
|
MozBoxSizing: "border-box"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})), ["@media screen and (min-width: 400px) {main {font-family: \"URW Bookman\"; -moz-box-sizing: border-box;}}"], eqRules)
|
||||||
|
})
|
||||||
|
|
||||||
|
it("can render keyframes", () => {
|
||||||
|
ist(rules(new StyleModule({
|
||||||
|
"@keyframes foo": {
|
||||||
|
"0%": {color: "blue"},
|
||||||
|
"50%": {color: "red"}
|
||||||
|
}
|
||||||
|
})), ["@keyframes foo {0% {color: blue;} 50% {color: red;}}"], eqRules)
|
||||||
|
})
|
||||||
|
|
||||||
|
it("doesn't mangle keyframe names", () => {
|
||||||
|
ist(rules(new StyleModule({
|
||||||
|
"@keyframes foo": {
|
||||||
|
"0%": {color: "blue"},
|
||||||
|
"50%": {color: "red"}
|
||||||
|
}
|
||||||
|
}, {finish: s => ".foo " + s})), ["@keyframes foo {0% {color: blue;} 50% {color: red;}}"], eqRules)
|
||||||
|
})
|
||||||
|
|
||||||
|
it("can render multiple instances of a property", () => {
|
||||||
|
ist(rules(new StyleModule({
|
||||||
|
main: {
|
||||||
|
color: "rgba(100, 100, 100, .5)",
|
||||||
|
color_2: "grey"
|
||||||
|
}
|
||||||
|
})), ["main {color: rgba(100, 100, 100, .5); color: grey;}"], eqRules)
|
||||||
|
})
|
||||||
|
|
||||||
|
it("can expand multiple selectors at once", () => {
|
||||||
|
ist(rules(new StyleModule({
|
||||||
|
"one, two": {
|
||||||
|
"&.x": {
|
||||||
|
color: "yellow"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})), ["one.x, two.x {color: yellow;}"], eqRules)
|
||||||
|
})
|
||||||
|
|
||||||
|
it("allows processing of selectors", () => {
|
||||||
|
ist(rules(new StyleModule({
|
||||||
|
"abc, cba": {color: "yellow"},
|
||||||
|
"@media stuff": {abc: {fontWeight: "bold"}}
|
||||||
|
}, {
|
||||||
|
finish: x => x.replace(/a/g, "u")
|
||||||
|
})), ["ubc, cbu {color: yellow;}", "@media stuff {ubc {font-weight: bold;}}"], eqRules)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
function rules(module) { return module.rules }
|
||||||
|
|
||||||
|
function eqRules(a, b) {
|
||||||
|
return JSON.stringify(a) == JSON.stringify(b)
|
||||||
|
}
|
1
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/.tern-port
generated
vendored
Normal file
1
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/.tern-port
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
39679
|
19
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/LICENSE
generated
vendored
Normal file
19
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
Copyright (C) 2016 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
18
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/README.md
generated
vendored
Normal file
18
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/README.md
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# W3C keyname
|
||||||
|
|
||||||
|
Tiny library that exports a function `keyName` that takes a keyboard event and
|
||||||
|
returns a
|
||||||
|
[`KeyboardEvent.key`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key)-style
|
||||||
|
string. Will use the actual `key` property of the event if available,
|
||||||
|
and fall back to a value synthesized from the `keyCode` otherwise.
|
||||||
|
|
||||||
|
Probably often wrong on non-US keyboards, since the correspondence
|
||||||
|
between a key code and the character it produces when shift is held is
|
||||||
|
predicted based on a hard-coded table. Meant as a fallback for
|
||||||
|
`KeyboardEvent.key`, not a replacement.
|
||||||
|
|
||||||
|
The lookup tables from key codes (`event.keyCode`) to names are
|
||||||
|
exported as `base` (when Shift isn't held) and `shift` (when Shift is
|
||||||
|
held).
|
||||||
|
|
||||||
|
License: MIT
|
127
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.cjs
generated
vendored
Normal file
127
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.cjs
generated
vendored
Normal file
|
@ -0,0 +1,127 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||||||
|
|
||||||
|
var base = {
|
||||||
|
8: "Backspace",
|
||||||
|
9: "Tab",
|
||||||
|
10: "Enter",
|
||||||
|
12: "NumLock",
|
||||||
|
13: "Enter",
|
||||||
|
16: "Shift",
|
||||||
|
17: "Control",
|
||||||
|
18: "Alt",
|
||||||
|
20: "CapsLock",
|
||||||
|
27: "Escape",
|
||||||
|
32: " ",
|
||||||
|
33: "PageUp",
|
||||||
|
34: "PageDown",
|
||||||
|
35: "End",
|
||||||
|
36: "Home",
|
||||||
|
37: "ArrowLeft",
|
||||||
|
38: "ArrowUp",
|
||||||
|
39: "ArrowRight",
|
||||||
|
40: "ArrowDown",
|
||||||
|
44: "PrintScreen",
|
||||||
|
45: "Insert",
|
||||||
|
46: "Delete",
|
||||||
|
59: ";",
|
||||||
|
61: "=",
|
||||||
|
91: "Meta",
|
||||||
|
92: "Meta",
|
||||||
|
106: "*",
|
||||||
|
107: "+",
|
||||||
|
108: ",",
|
||||||
|
109: "-",
|
||||||
|
110: ".",
|
||||||
|
111: "/",
|
||||||
|
144: "NumLock",
|
||||||
|
145: "ScrollLock",
|
||||||
|
160: "Shift",
|
||||||
|
161: "Shift",
|
||||||
|
162: "Control",
|
||||||
|
163: "Control",
|
||||||
|
164: "Alt",
|
||||||
|
165: "Alt",
|
||||||
|
173: "-",
|
||||||
|
186: ";",
|
||||||
|
187: "=",
|
||||||
|
188: ",",
|
||||||
|
189: "-",
|
||||||
|
190: ".",
|
||||||
|
191: "/",
|
||||||
|
192: "`",
|
||||||
|
219: "[",
|
||||||
|
220: "\\",
|
||||||
|
221: "]",
|
||||||
|
222: "'"
|
||||||
|
};
|
||||||
|
|
||||||
|
var shift = {
|
||||||
|
48: ")",
|
||||||
|
49: "!",
|
||||||
|
50: "@",
|
||||||
|
51: "#",
|
||||||
|
52: "$",
|
||||||
|
53: "%",
|
||||||
|
54: "^",
|
||||||
|
55: "&",
|
||||||
|
56: "*",
|
||||||
|
57: "(",
|
||||||
|
59: ":",
|
||||||
|
61: "+",
|
||||||
|
173: "_",
|
||||||
|
186: ":",
|
||||||
|
187: "+",
|
||||||
|
188: "<",
|
||||||
|
189: "_",
|
||||||
|
190: ">",
|
||||||
|
191: "?",
|
||||||
|
192: "~",
|
||||||
|
219: "{",
|
||||||
|
220: "|",
|
||||||
|
221: "}",
|
||||||
|
222: "\""
|
||||||
|
};
|
||||||
|
|
||||||
|
var mac = typeof navigator != "undefined" && /Mac/.test(navigator.platform);
|
||||||
|
var ie = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
||||||
|
|
||||||
|
// Fill in the digit keys
|
||||||
|
for (var i = 0; i < 10; i++) base[48 + i] = base[96 + i] = String(i);
|
||||||
|
|
||||||
|
// The function keys
|
||||||
|
for (var i = 1; i <= 24; i++) base[i + 111] = "F" + i;
|
||||||
|
|
||||||
|
// And the alphabetic keys
|
||||||
|
for (var i = 65; i <= 90; i++) {
|
||||||
|
base[i] = String.fromCharCode(i + 32);
|
||||||
|
shift[i] = String.fromCharCode(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
// For each code that doesn't have a shift-equivalent, copy the base name
|
||||||
|
for (var code in base) if (!shift.hasOwnProperty(code)) shift[code] = base[code];
|
||||||
|
|
||||||
|
function keyName(event) {
|
||||||
|
// On macOS, keys held with Shift and Cmd don't reflect the effect of Shift in `.key`.
|
||||||
|
// On IE, shift effect is never included in `.key`.
|
||||||
|
var ignoreKey = mac && event.metaKey && event.shiftKey && !event.ctrlKey && !event.altKey ||
|
||||||
|
ie && event.shiftKey && event.key && event.key.length == 1 ||
|
||||||
|
event.key == "Unidentified";
|
||||||
|
var name = (!ignoreKey && event.key) ||
|
||||||
|
(event.shiftKey ? shift : base)[event.keyCode] ||
|
||||||
|
event.key || "Unidentified";
|
||||||
|
// Edge sometimes produces wrong names (Issue #3)
|
||||||
|
if (name == "Esc") name = "Escape";
|
||||||
|
if (name == "Del") name = "Delete";
|
||||||
|
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8860571/
|
||||||
|
if (name == "Left") name = "ArrowLeft";
|
||||||
|
if (name == "Up") name = "ArrowUp";
|
||||||
|
if (name == "Right") name = "ArrowRight";
|
||||||
|
if (name == "Down") name = "ArrowDown";
|
||||||
|
return name
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.base = base;
|
||||||
|
exports.keyName = keyName;
|
||||||
|
exports.shift = shift;
|
5
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.d.cts
generated
vendored
Normal file
5
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.d.cts
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
export function keyName(event: Event): string;
|
||||||
|
|
||||||
|
export const base: {[keyCode: number]: string};
|
||||||
|
|
||||||
|
export const shift: {[keyCode: number]: string};
|
5
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.d.ts
generated
vendored
Normal file
5
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
export function keyName(event: Event): string;
|
||||||
|
|
||||||
|
export const base: {[keyCode: number]: string};
|
||||||
|
|
||||||
|
export const shift: {[keyCode: number]: string};
|
119
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.js
generated
vendored
Normal file
119
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.js
generated
vendored
Normal file
|
@ -0,0 +1,119 @@
|
||||||
|
export var base = {
|
||||||
|
8: "Backspace",
|
||||||
|
9: "Tab",
|
||||||
|
10: "Enter",
|
||||||
|
12: "NumLock",
|
||||||
|
13: "Enter",
|
||||||
|
16: "Shift",
|
||||||
|
17: "Control",
|
||||||
|
18: "Alt",
|
||||||
|
20: "CapsLock",
|
||||||
|
27: "Escape",
|
||||||
|
32: " ",
|
||||||
|
33: "PageUp",
|
||||||
|
34: "PageDown",
|
||||||
|
35: "End",
|
||||||
|
36: "Home",
|
||||||
|
37: "ArrowLeft",
|
||||||
|
38: "ArrowUp",
|
||||||
|
39: "ArrowRight",
|
||||||
|
40: "ArrowDown",
|
||||||
|
44: "PrintScreen",
|
||||||
|
45: "Insert",
|
||||||
|
46: "Delete",
|
||||||
|
59: ";",
|
||||||
|
61: "=",
|
||||||
|
91: "Meta",
|
||||||
|
92: "Meta",
|
||||||
|
106: "*",
|
||||||
|
107: "+",
|
||||||
|
108: ",",
|
||||||
|
109: "-",
|
||||||
|
110: ".",
|
||||||
|
111: "/",
|
||||||
|
144: "NumLock",
|
||||||
|
145: "ScrollLock",
|
||||||
|
160: "Shift",
|
||||||
|
161: "Shift",
|
||||||
|
162: "Control",
|
||||||
|
163: "Control",
|
||||||
|
164: "Alt",
|
||||||
|
165: "Alt",
|
||||||
|
173: "-",
|
||||||
|
186: ";",
|
||||||
|
187: "=",
|
||||||
|
188: ",",
|
||||||
|
189: "-",
|
||||||
|
190: ".",
|
||||||
|
191: "/",
|
||||||
|
192: "`",
|
||||||
|
219: "[",
|
||||||
|
220: "\\",
|
||||||
|
221: "]",
|
||||||
|
222: "'"
|
||||||
|
}
|
||||||
|
|
||||||
|
export var shift = {
|
||||||
|
48: ")",
|
||||||
|
49: "!",
|
||||||
|
50: "@",
|
||||||
|
51: "#",
|
||||||
|
52: "$",
|
||||||
|
53: "%",
|
||||||
|
54: "^",
|
||||||
|
55: "&",
|
||||||
|
56: "*",
|
||||||
|
57: "(",
|
||||||
|
59: ":",
|
||||||
|
61: "+",
|
||||||
|
173: "_",
|
||||||
|
186: ":",
|
||||||
|
187: "+",
|
||||||
|
188: "<",
|
||||||
|
189: "_",
|
||||||
|
190: ">",
|
||||||
|
191: "?",
|
||||||
|
192: "~",
|
||||||
|
219: "{",
|
||||||
|
220: "|",
|
||||||
|
221: "}",
|
||||||
|
222: "\""
|
||||||
|
}
|
||||||
|
|
||||||
|
var mac = typeof navigator != "undefined" && /Mac/.test(navigator.platform)
|
||||||
|
var ie = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent)
|
||||||
|
|
||||||
|
// Fill in the digit keys
|
||||||
|
for (var i = 0; i < 10; i++) base[48 + i] = base[96 + i] = String(i)
|
||||||
|
|
||||||
|
// The function keys
|
||||||
|
for (var i = 1; i <= 24; i++) base[i + 111] = "F" + i
|
||||||
|
|
||||||
|
// And the alphabetic keys
|
||||||
|
for (var i = 65; i <= 90; i++) {
|
||||||
|
base[i] = String.fromCharCode(i + 32)
|
||||||
|
shift[i] = String.fromCharCode(i)
|
||||||
|
}
|
||||||
|
|
||||||
|
// For each code that doesn't have a shift-equivalent, copy the base name
|
||||||
|
for (var code in base) if (!shift.hasOwnProperty(code)) shift[code] = base[code]
|
||||||
|
|
||||||
|
export function keyName(event) {
|
||||||
|
// On macOS, keys held with Shift and Cmd don't reflect the effect of Shift in `.key`.
|
||||||
|
// On IE, shift effect is never included in `.key`.
|
||||||
|
var ignoreKey = mac && event.metaKey && event.shiftKey && !event.ctrlKey && !event.altKey ||
|
||||||
|
ie && event.shiftKey && event.key && event.key.length == 1 ||
|
||||||
|
event.key == "Unidentified"
|
||||||
|
var name = (!ignoreKey && event.key) ||
|
||||||
|
(event.shiftKey ? shift : base)[event.keyCode] ||
|
||||||
|
event.key || "Unidentified"
|
||||||
|
// Edge sometimes produces wrong names (Issue #3)
|
||||||
|
if (name == "Esc") name = "Escape"
|
||||||
|
if (name == "Del") name = "Delete"
|
||||||
|
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8860571/
|
||||||
|
if (name == "Left") name = "ArrowLeft"
|
||||||
|
if (name == "Up") name = "ArrowUp"
|
||||||
|
if (name == "Right") name = "ArrowRight"
|
||||||
|
if (name == "Down") name = "ArrowDown"
|
||||||
|
return name
|
||||||
|
}
|
37
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/package.json
generated
vendored
Normal file
37
node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/package.json
generated
vendored
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{
|
||||||
|
"name": "w3c-keyname",
|
||||||
|
"version": "2.2.8",
|
||||||
|
"description": "Get a KeyboardEvent.key-style string from an event",
|
||||||
|
"main": "index.cjs",
|
||||||
|
"type": "module",
|
||||||
|
"exports": {
|
||||||
|
"import": "./index.js",
|
||||||
|
"require": "./index.cjs"
|
||||||
|
},
|
||||||
|
"module": "index.js",
|
||||||
|
"types": "index.d.ts",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/marijnh/w3c-keyname.git"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"browser",
|
||||||
|
"key",
|
||||||
|
"event",
|
||||||
|
"key code"
|
||||||
|
],
|
||||||
|
"author": "Marijn Haverbeke <marijn@haverbeke.berlin>",
|
||||||
|
"license": "MIT",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/marijnh/w3c-keyname/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/marijnh/w3c-keyname#readme",
|
||||||
|
"scripts": {
|
||||||
|
"build": "rollup -c",
|
||||||
|
"watch": "rollup -c -w",
|
||||||
|
"prepare": "npm run build"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"rollup": "^1.26.3"
|
||||||
|
}
|
||||||
|
}
|
1
node_modules/@codemirror/commands
generated
vendored
Symbolic link
1
node_modules/@codemirror/commands
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../.pnpm/@codemirror+commands@6.6.0/node_modules/@codemirror/commands
|
1
node_modules/@codemirror/state
generated
vendored
Symbolic link
1
node_modules/@codemirror/state
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../.pnpm/@codemirror+state@6.4.1/node_modules/@codemirror/state
|
1
node_modules/@codemirror/view
generated
vendored
Symbolic link
1
node_modules/@codemirror/view
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../.pnpm/@codemirror+view@6.32.0/node_modules/@codemirror/view
|
7
package.json
Normal file
7
package.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
"@codemirror/commands": "^6.6.0",
|
||||||
|
"@codemirror/state": "^6.4.1",
|
||||||
|
"@codemirror/view": "^6.32.0"
|
||||||
|
}
|
||||||
|
}
|
173
pnpm-lock.yaml
173
pnpm-lock.yaml
|
@ -8,152 +8,81 @@ importers:
|
||||||
|
|
||||||
.:
|
.:
|
||||||
dependencies:
|
dependencies:
|
||||||
svelte:
|
'@codemirror/commands':
|
||||||
specifier: 5.0.0-next.130
|
specifier: ^6.6.0
|
||||||
version: 5.0.0-next.130
|
version: 6.6.0
|
||||||
|
'@codemirror/state':
|
||||||
|
specifier: ^6.4.1
|
||||||
|
version: 6.4.1
|
||||||
|
'@codemirror/view':
|
||||||
|
specifier: ^6.32.0
|
||||||
|
version: 6.32.0
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
'@ampproject/remapping@2.3.0':
|
'@codemirror/commands@6.6.0':
|
||||||
resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}
|
resolution: {integrity: sha512-qnY+b7j1UNcTS31Eenuc/5YJB6gQOzkUoNmJQc0rznwqSRpeaWWpjkWy2C/MPTcePpsKJEM26hXrOXl1+nceXg==}
|
||||||
engines: {node: '>=6.0.0'}
|
|
||||||
|
|
||||||
'@jridgewell/gen-mapping@0.3.5':
|
'@codemirror/language@6.10.2':
|
||||||
resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==}
|
resolution: {integrity: sha512-kgbTYTo0Au6dCSc/TFy7fK3fpJmgHDv1sG1KNQKJXVi+xBTEeBPY/M30YXiU6mMXeH+YIDLsbrT4ZwNRdtF+SA==}
|
||||||
engines: {node: '>=6.0.0'}
|
|
||||||
|
|
||||||
'@jridgewell/resolve-uri@3.1.2':
|
'@codemirror/state@6.4.1':
|
||||||
resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
|
resolution: {integrity: sha512-QkEyUiLhsJoZkbumGZlswmAhA7CBU02Wrz7zvH4SrcifbsqwlXShVXg65f3v/ts57W3dqyamEriMhij1Z3Zz4A==}
|
||||||
engines: {node: '>=6.0.0'}
|
|
||||||
|
|
||||||
'@jridgewell/set-array@1.2.1':
|
'@codemirror/view@6.32.0':
|
||||||
resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==}
|
resolution: {integrity: sha512-AgVNvED2QTsZp5e3syoHLsrWtwJFYWdx1Vr/m3f4h1ATQz0ax60CfXF3Htdmk69k2MlYZw8gXesnQdHtzyVmAw==}
|
||||||
engines: {node: '>=6.0.0'}
|
|
||||||
|
|
||||||
'@jridgewell/sourcemap-codec@1.4.15':
|
'@lezer/common@1.2.1':
|
||||||
resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}
|
resolution: {integrity: sha512-yemX0ZD2xS/73llMZIK6KplkjIjf2EvAHcinDi/TfJ9hS25G0388+ClHt6/3but0oOxinTcQHJLDXh6w1crzFQ==}
|
||||||
|
|
||||||
'@jridgewell/trace-mapping@0.3.25':
|
'@lezer/highlight@1.2.1':
|
||||||
resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}
|
resolution: {integrity: sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA==}
|
||||||
|
|
||||||
'@types/estree@1.0.5':
|
'@lezer/lr@1.4.2':
|
||||||
resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}
|
resolution: {integrity: sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==}
|
||||||
|
|
||||||
acorn-typescript@1.4.13:
|
style-mod@4.1.2:
|
||||||
resolution: {integrity: sha512-xsc9Xv0xlVfwp2o7sQ+GCQ1PgbkdcpWdTzrwXxO3xDMTAywVS3oXVOcOHuRjAPkS4P9b+yc/qNF15460v+jp4Q==}
|
resolution: {integrity: sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==}
|
||||||
peerDependencies:
|
|
||||||
acorn: '>=8.9.0'
|
|
||||||
|
|
||||||
acorn@8.12.0:
|
w3c-keyname@2.2.8:
|
||||||
resolution: {integrity: sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==}
|
resolution: {integrity: sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==}
|
||||||
engines: {node: '>=0.4.0'}
|
|
||||||
hasBin: true
|
|
||||||
|
|
||||||
aria-query@5.3.0:
|
|
||||||
resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==}
|
|
||||||
|
|
||||||
axobject-query@4.0.0:
|
|
||||||
resolution: {integrity: sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==}
|
|
||||||
|
|
||||||
dequal@2.0.3:
|
|
||||||
resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}
|
|
||||||
engines: {node: '>=6'}
|
|
||||||
|
|
||||||
esm-env@1.0.0:
|
|
||||||
resolution: {integrity: sha512-Cf6VksWPsTuW01vU9Mk/3vRue91Zevka5SjyNf3nEpokFRuqt/KjUQoGAwq9qMmhpLTHmXzSIrFRw8zxWzmFBA==}
|
|
||||||
|
|
||||||
esrap@1.2.2:
|
|
||||||
resolution: {integrity: sha512-F2pSJklxx1BlQIQgooczXCPHmcWpn6EsP5oo73LQfonG9fIlIENQ8vMmfGXeojP9MrkzUNAfyU5vdFlR9shHAw==}
|
|
||||||
|
|
||||||
is-reference@3.0.2:
|
|
||||||
resolution: {integrity: sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==}
|
|
||||||
|
|
||||||
locate-character@3.0.0:
|
|
||||||
resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==}
|
|
||||||
|
|
||||||
magic-string@0.30.10:
|
|
||||||
resolution: {integrity: sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==}
|
|
||||||
|
|
||||||
svelte@5.0.0-next.130:
|
|
||||||
resolution: {integrity: sha512-gowsYNL5N9t9loV17TLlNKY1fbmliyz5SlfP1Fxyf4kZDIX+hx4TV9EtZMOgjgXs0NI/bVwR942EPl3g+gaqGQ==}
|
|
||||||
engines: {node: '>=18'}
|
|
||||||
|
|
||||||
zimmerframe@1.1.2:
|
|
||||||
resolution: {integrity: sha512-rAbqEGa8ovJy4pyBxZM70hg4pE6gDgaQ0Sl9M3enG3I0d6H4XSAM3GeNGLKnsBpuijUow064sf7ww1nutC5/3w==}
|
|
||||||
|
|
||||||
snapshots:
|
snapshots:
|
||||||
|
|
||||||
'@ampproject/remapping@2.3.0':
|
'@codemirror/commands@6.6.0':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@jridgewell/gen-mapping': 0.3.5
|
'@codemirror/language': 6.10.2
|
||||||
'@jridgewell/trace-mapping': 0.3.25
|
'@codemirror/state': 6.4.1
|
||||||
|
'@codemirror/view': 6.32.0
|
||||||
|
'@lezer/common': 1.2.1
|
||||||
|
|
||||||
'@jridgewell/gen-mapping@0.3.5':
|
'@codemirror/language@6.10.2':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@jridgewell/set-array': 1.2.1
|
'@codemirror/state': 6.4.1
|
||||||
'@jridgewell/sourcemap-codec': 1.4.15
|
'@codemirror/view': 6.32.0
|
||||||
'@jridgewell/trace-mapping': 0.3.25
|
'@lezer/common': 1.2.1
|
||||||
|
'@lezer/highlight': 1.2.1
|
||||||
|
'@lezer/lr': 1.4.2
|
||||||
|
style-mod: 4.1.2
|
||||||
|
|
||||||
'@jridgewell/resolve-uri@3.1.2': {}
|
'@codemirror/state@6.4.1': {}
|
||||||
|
|
||||||
'@jridgewell/set-array@1.2.1': {}
|
'@codemirror/view@6.32.0':
|
||||||
|
|
||||||
'@jridgewell/sourcemap-codec@1.4.15': {}
|
|
||||||
|
|
||||||
'@jridgewell/trace-mapping@0.3.25':
|
|
||||||
dependencies:
|
dependencies:
|
||||||
'@jridgewell/resolve-uri': 3.1.2
|
'@codemirror/state': 6.4.1
|
||||||
'@jridgewell/sourcemap-codec': 1.4.15
|
style-mod: 4.1.2
|
||||||
|
w3c-keyname: 2.2.8
|
||||||
|
|
||||||
'@types/estree@1.0.5': {}
|
'@lezer/common@1.2.1': {}
|
||||||
|
|
||||||
acorn-typescript@1.4.13(acorn@8.12.0):
|
'@lezer/highlight@1.2.1':
|
||||||
dependencies:
|
dependencies:
|
||||||
acorn: 8.12.0
|
'@lezer/common': 1.2.1
|
||||||
|
|
||||||
acorn@8.12.0: {}
|
'@lezer/lr@1.4.2':
|
||||||
|
|
||||||
aria-query@5.3.0:
|
|
||||||
dependencies:
|
dependencies:
|
||||||
dequal: 2.0.3
|
'@lezer/common': 1.2.1
|
||||||
|
|
||||||
axobject-query@4.0.0:
|
style-mod@4.1.2: {}
|
||||||
dependencies:
|
|
||||||
dequal: 2.0.3
|
|
||||||
|
|
||||||
dequal@2.0.3: {}
|
w3c-keyname@2.2.8: {}
|
||||||
|
|
||||||
esm-env@1.0.0: {}
|
|
||||||
|
|
||||||
esrap@1.2.2:
|
|
||||||
dependencies:
|
|
||||||
'@jridgewell/sourcemap-codec': 1.4.15
|
|
||||||
'@types/estree': 1.0.5
|
|
||||||
|
|
||||||
is-reference@3.0.2:
|
|
||||||
dependencies:
|
|
||||||
'@types/estree': 1.0.5
|
|
||||||
|
|
||||||
locate-character@3.0.0: {}
|
|
||||||
|
|
||||||
magic-string@0.30.10:
|
|
||||||
dependencies:
|
|
||||||
'@jridgewell/sourcemap-codec': 1.4.15
|
|
||||||
|
|
||||||
svelte@5.0.0-next.130:
|
|
||||||
dependencies:
|
|
||||||
'@ampproject/remapping': 2.3.0
|
|
||||||
'@jridgewell/sourcemap-codec': 1.4.15
|
|
||||||
'@types/estree': 1.0.5
|
|
||||||
acorn: 8.12.0
|
|
||||||
acorn-typescript: 1.4.13(acorn@8.12.0)
|
|
||||||
aria-query: 5.3.0
|
|
||||||
axobject-query: 4.0.0
|
|
||||||
esm-env: 1.0.0
|
|
||||||
esrap: 1.2.2
|
|
||||||
is-reference: 3.0.2
|
|
||||||
locate-character: 3.0.0
|
|
||||||
magic-string: 0.30.10
|
|
||||||
zimmerframe: 1.1.2
|
|
||||||
|
|
||||||
zimmerframe@1.1.2: {}
|
|
||||||
|
|
BIN
public/projects/flox/flox_wasm_bg.wasm
Normal file
BIN
public/projects/flox/flox_wasm_bg.wasm
Normal file
Binary file not shown.
|
@ -1,2 +0,0 @@
|
||||||
tab_spaces = 4
|
|
||||||
hard_tabs = true
|
|
18
shell.nix
18
shell.nix
|
@ -1,18 +0,0 @@
|
||||||
{ pkgs ? import <nixpkgs> {} }:
|
|
||||||
|
|
||||||
pkgs.mkShell {
|
|
||||||
buildInputs = with pkgs; [
|
|
||||||
cargo
|
|
||||||
clippy
|
|
||||||
esbuild
|
|
||||||
nodejs
|
|
||||||
nodePackages.pnpm
|
|
||||||
pagefind
|
|
||||||
python3
|
|
||||||
rust-analyzer
|
|
||||||
rustc
|
|
||||||
rustfmt
|
|
||||||
];
|
|
||||||
|
|
||||||
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
|
||||||
}
|
|
|
@ -24,6 +24,7 @@ fn navbar() -> impl Renderable {
|
||||||
static ITEMS: &[(&str, &str)] = &[
|
static ITEMS: &[(&str, &str)] = &[
|
||||||
("Posts", "/posts/"),
|
("Posts", "/posts/"),
|
||||||
("Slides", "/slides/"),
|
("Slides", "/slides/"),
|
||||||
|
("Projects", "/projects/"),
|
||||||
("Wiki", "/wiki/"),
|
("Wiki", "/wiki/"),
|
||||||
("Map", "/map/"),
|
("Map", "/map/"),
|
||||||
("About", "/about/"),
|
("About", "/about/"),
|
||||||
|
@ -212,3 +213,28 @@ where
|
||||||
String::from("Search"),
|
String::from("Search"),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
pub(crate) fn editor<'s, 'html>(sack: &'s Sack) -> impl Renderable + 'html
|
||||||
|
where
|
||||||
|
's: 'html,
|
||||||
|
{
|
||||||
|
page(
|
||||||
|
sack,
|
||||||
|
maud!(
|
||||||
|
main .flox {
|
||||||
|
div {
|
||||||
|
h2 { "Flox" }
|
||||||
|
div #editor {}
|
||||||
|
button #run { "Run!" }
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
h2 { "Output" }
|
||||||
|
div #output {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
script type="module" { (Raw("import 'editor';")) }
|
||||||
|
),
|
||||||
|
String::from("Search"),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
12
src/main.rs
12
src/main.rs
|
@ -27,9 +27,11 @@ fn main() {
|
||||||
.content::<Post>("content/posts/**/*", ["md", "mdx"].into())
|
.content::<Post>("content/posts/**/*", ["md", "mdx"].into())
|
||||||
.content::<Slideshow>("content/slides/**/*", ["md", "lhs"].into())
|
.content::<Slideshow>("content/slides/**/*", ["md", "lhs"].into())
|
||||||
.content::<Wiki>("content/wiki/**/*", ["md"].into())
|
.content::<Wiki>("content/wiki/**/*", ["md"].into())
|
||||||
|
.content::<Post>("content/projects/**/*", ["md"].into())
|
||||||
.js("search", "./js/search/dist/search.js")
|
.js("search", "./js/search/dist/search.js")
|
||||||
.js("photos", "./js/vanilla/photos.js")
|
.js("photos", "./js/vanilla/photos.js")
|
||||||
.js("reveal", "./js/vanilla/reveal.js")
|
.js("reveal", "./js/vanilla/reveal.js")
|
||||||
|
.js("editor", "./js/flox/main.ts")
|
||||||
.add_virtual(
|
.add_virtual(
|
||||||
|sack| crate::html::map(sack).render().to_owned().into(),
|
|sack| crate::html::map(sack).render().to_owned().into(),
|
||||||
"map/index.html".into(),
|
"map/index.html".into(),
|
||||||
|
@ -38,6 +40,16 @@ fn main() {
|
||||||
|sack| crate::html::search(sack).render().to_owned().into(),
|
|sack| crate::html::search(sack).render().to_owned().into(),
|
||||||
"search/index.html".into(),
|
"search/index.html".into(),
|
||||||
)
|
)
|
||||||
|
.add_virtual_linked(
|
||||||
|
|sack| crate::html::editor(sack).render().to_owned().into(),
|
||||||
|
"projects/flox/index.html".into(),
|
||||||
|
"Flox".into(),
|
||||||
|
"Small functional language written in Rust and compiled to WebAssembly.".into()
|
||||||
|
)
|
||||||
|
.add_virtual(
|
||||||
|
|sack| crate::html::to_list(sack, sack.get_links("projects/**/*.html"), "Projects".into()),
|
||||||
|
"projects/index.html".into(),
|
||||||
|
)
|
||||||
.add_virtual(
|
.add_virtual(
|
||||||
|sack| crate::html::to_list(sack, sack.get_links("posts/**/*.html"), "Posts".into()),
|
|sack| crate::html::to_list(sack, sack.get_links("posts/**/*.html"), "Posts".into()),
|
||||||
"posts/index.html".into(),
|
"posts/index.html".into(),
|
||||||
|
|
6
styles/_flox.scss
Normal file
6
styles/_flox.scss
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
.flox {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
margin: 1em;
|
||||||
|
}
|
|
@ -26,3 +26,5 @@
|
||||||
@use 'layouts/page';
|
@use 'layouts/page';
|
||||||
@use 'layouts/list';
|
@use 'layouts/list';
|
||||||
|
|
||||||
|
// Special
|
||||||
|
@use 'flox';
|
||||||
|
|
Loading…
Reference in a new issue