From 78d5c5acf034840ded8d37a8ed53a27a4bdf6116 Mon Sep 17 00:00:00 2001
From: Brian Kim <brian.kim.2011@gmail.com>
Date: Thu, 8 Aug 2024 10:23:12 -0700
Subject: [PATCH] Require jupyterlab>=4.1.2 for arrow key compatibility

---
 README.md              | 2 +-
 binder/environment.yml | 2 +-
 pyproject.toml         | 9 +++++----
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index 951ac1b..dc2b138 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@ RISE: "Live" Reveal.js JupyterLab Slideshow extension.
 
 ## Requirements
 
-- JupyterLab >= 4.0.0
+- JupyterLab >= 4.1.2
 
 ## Install
 
diff --git a/binder/environment.yml b/binder/environment.yml
index f751408..bcf9780 100644
--- a/binder/environment.yml
+++ b/binder/environment.yml
@@ -11,7 +11,7 @@ channels:
 
 dependencies:
   # runtime dependencies
-  - jupyterlab >=4,<5.0.0a0
+  - jupyterlab >=4.1.2,<5.0.0a0
   # labextension build dependencies
   - nodejs >=18,<19
   - pip
diff --git a/pyproject.toml b/pyproject.toml
index e23bd82..d576673 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,5 @@
 [build-system]
-requires = ["hatchling>=1.5.0", "jupyterlab>=4.0.0,<5", "hatch-nodejs-version"]
+requires = ["hatchling>=1.5.0", "jupyterlab>=4.1.2,<5", "hatch-nodejs-version"]
 build-backend = "hatchling.build"
 
 [project]
@@ -22,7 +22,8 @@ classifiers = [
     "Programming Language :: Python :: 3.11",
 ]
 dependencies = [
-    "jupyter_server>=2.0.1,<3"
+    "jupyter_server>=2.0.1,<3",
+    "jupyterlab>=4.1.2,<5"
 ]
 dynamic = ["version", "description", "authors", "urls", "keywords"]
 
@@ -80,11 +81,11 @@ version-cmd = "python scripts/bump_version.py --force"
 
 [tool.jupyter-releaser.hooks]
 before-bump-version = [
-    "python -m pip install 'jupyterlab>=4.0.0,<5'",
+    "python -m pip install 'jupyterlab>=4.1.2,<5'",
     "jlpm"
 ]
 before-build-npm = [
-    "python -m pip install 'jupyterlab>=4.0.0,<5'",
+    "python -m pip install 'jupyterlab>=4.1.2,<5'",
     "jlpm",
     "jlpm build:prod"
 ]