Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(text): patches no longer applying after version upgrade
Elian Doran312c193b1a61
diff --git a/patches/@ckeditor__ckeditor5-code-block.patch b/patches/@ckeditor__ckeditor5-code-block.patchindex 8a47798900..dd5df70ebd 100644--- a/patches/@ckeditor__ckeditor5-code-block.patch+++ b/patches/@ckeditor__ckeditor5-code-block.patch@@ -1,33 +1,37 @@diff --git a/dist/index.css b/dist/index.css-index 8276289d55abd0f70d399e33c5f6c2d006745000..c70f12f1644dcebea6730b9b201a6933fa28969b 100644+index 50d1b0005b464f33fb3f07f69c06f36a35e0c406..785e95ceeb7fce12be6249b43abf9b83e15fcfde 100644--- a/dist/index.css+++ b/dist/index.css-@@ -9,8 +9,6 @@+@@ -26,12 +26,10 @@+ }.ck-content pre {- padding: 1em;-- color: hsl(0, 0%, 20.8%);-- background: hsla(0, 0%, 78%, 0.3);- border: 1px solid hsl(0, 0%, 77%);- border-radius: 2px;--@@ -28,6 +26,11 @@- min-width: 200px;+- color: #353535;+ text-align: left;+ tab-size: 4;+ white-space: pre-wrap;+ direction: ltr;+- background: #c7c7c74d;+ border: 1px solid #c4c4c4;+ border-radius: 2px;+ min-width: 200px;+@@ -40,6 +38,11 @@+ font-style: normal;}+.ck-content pre:not(.hljs) {-+ color: hsl(0, 0%, 20.8%);-+ background: hsla(0, 0%, 78%, 0.3);++ color: #353535;++ background: #c7c7c74d;+}+.ck-content pre code {- background: unset;- padding: 0;+ background: unset;+ border-radius: 0;diff --git a/dist/index.js b/dist/index.js-index f0f8aec2323e8cdb34fa0bb4f48c2b433abcb804..b9600d356df2bf1922d51c6cebd1f74ee3ed9155 100644+index 2e231803ce8450f8498e2a37f1be8c32ff52d090..b54c4943904d2b325f3ca6cef08888b3defc29b9 100644--- a/dist/index.js+++ b/dist/index.js-@@ -656,6 +656,7 @@ function getLastOutdentableSequenceRange(model, position, sequence) {+@@ -673,6 +673,7 @@ function getLastOutdentableSequenceRange(model, position, sequence) {// Attributes added only in the editing view.if (useLabels) {preAttributes['data-language'] = languagesToLabels[codeBlockLanguage];diff --git a/patches/@ckeditor__ckeditor5-mention.patch b/patches/@ckeditor__ckeditor5-mention.patchindex 14ab0b9ba9..0f55fc690c 100644--- a/patches/@ckeditor__ckeditor5-mention.patch+++ b/patches/@ckeditor__ckeditor5-mention.patch@@ -1,11 +1,8 @@-diff --git a/build/mention.js b/build/mention.js-deleted file mode 100644-index 3ef262a2fb7cbb953b35cb7e07a999edce6dc72a..0000000000000000000000000000000000000000diff --git a/dist/index.js b/dist/index.js-index bbe511c5550e1cac8612e998034382b4eea1f1b8..8394fd8bba89f8a7b82d62fe613be6f12703ff53 100644+index 5c1b7d98d6a47f56a00440a6753368676bc26a7a..46cf87ae341bd2405fb756ba827c61b5b062f6b6 100644--- a/dist/index.js+++ b/dist/index.js-@@ -603,6 +603,16 @@ const defaultCommitKeyCodes = [+@@ -609,6 +609,16 @@ const defaultCommitKeyCodes = [}if (data.keyCode == keyCodes.esc) {this._hideUIAndRemoveMarker();@@ -22,7 +19,7 @@ index bbe511c5550e1cac8612e998034382b4eea1f1b8..8394fd8bba89f8a7b82d62fe613be6f1}}}, {-@@ -1067,12 +1077,11 @@ const defaultCommitKeyCodes = [+@@ -1075,12 +1085,11 @@ const defaultCommitKeyCodes = [*/ function createRegExp(marker, minimumCharacters) {const numberOfCharacters = minimumCharacters == 0 ? '*' : `{${minimumCharacters},}`;const openAfterCharacters = env.features.isRegExpUnicodePropertySupported ? '\\p{Ps}\\p{Pi}"\'' : '\\(\\[{"\'';@@ -36,7 +33,7 @@ index bbe511c5550e1cac8612e998034382b4eea1f1b8..8394fd8bba89f8a7b82d62fe613be6f1// The pattern consists of 3 groups://// - 0 (non-capturing): Opening sequence - start of the line, space or an opening punctuation character like "(" or "\"",-@@ -1081,7 +1090,7 @@ const defaultCommitKeyCodes = [+@@ -1089,7 +1098,7 @@ const defaultCommitKeyCodes = [//// The pattern matches up to the caret (end of string switch - $).// (0: opening sequence )(1: marker )(2: typed mention )$diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 6164118bc4..d5da7b2d50 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -44,10 +44,10 @@ overrides:patchedDependencies:'@ckeditor/ckeditor5-code-block':- hash: 2361d8caad7d6b5bddacc3a3b4aa37dbfba260b1c1b22a450413a79c1bb1ce95+ hash: 1530be090e4f5235e197fb6208a8e8230e3355d5633fc7cad2b2e892659e9c04path: patches/@ckeditor__ckeditor5-code-block.patch'@ckeditor/ckeditor5-mention':- hash: 5981fb59ba35829e4dff1d39cf771000f8a8fdfa7a34b51d8af9549541f2d62d+ hash: 70377e48a04e2f45abba79aa35f3d5527ec7aa7ffce44056f9957a49a24a4a60path: patches/@ckeditor__ckeditor5-mention.patchimporters:@@ -16438,7 +16438,7 @@ snapshots:'@ckeditor/ckeditor5-upload': 48.0.0'@ckeditor/ckeditor5-utils': 48.0.0- '@ckeditor/[email protected](patch_hash=2361d8caad7d6b5bddacc3a3b4aa37dbfba260b1c1b22a450413a79c1bb1ce95)':+ '@ckeditor/[email protected](patch_hash=1530be090e4f5235e197fb6208a8e8230e3355d5633fc7cad2b2e892659e9c04)':dependencies:'@ckeditor/ckeditor5-clipboard': 48.0.0'@ckeditor/ckeditor5-core': 48.0.0@@ -16654,7 +16654,7 @@ snapshots:dependencies:'@ckeditor/ckeditor5-core': 48.0.0'@ckeditor/ckeditor5-icons': 48.0.0- '@ckeditor/ckeditor5-mention': 48.0.0(patch_hash=5981fb59ba35829e4dff1d39cf771000f8a8fdfa7a34b51d8af9549541f2d62d)+ '@ckeditor/ckeditor5-mention': 48.0.0(patch_hash=70377e48a04e2f45abba79aa35f3d5527ec7aa7ffce44056f9957a49a24a4a60)'@ckeditor/ckeditor5-typing': 48.0.0'@ckeditor/ckeditor5-ui': 48.0.0'@ckeditor/ckeditor5-utils': 48.0.0@@ -16934,7 +16934,7 @@ snapshots:'@ckeditor/ckeditor5-utils': 48.0.0'@ckeditor/ckeditor5-widget': 48.0.0- '@ckeditor/[email protected](patch_hash=5981fb59ba35829e4dff1d39cf771000f8a8fdfa7a34b51d8af9549541f2d62d)':+ '@ckeditor/[email protected](patch_hash=70377e48a04e2f45abba79aa35f3d5527ec7aa7ffce44056f9957a49a24a4a60)':dependencies:'@ckeditor/ckeditor5-core': 48.0.0'@ckeditor/ckeditor5-engine': 48.0.0@@ -16949,7 +16949,7 @@ snapshots:'@ckeditor/ckeditor5-engine': 48.0.0'@ckeditor/ckeditor5-icons': 48.0.0'@ckeditor/ckeditor5-image': 48.0.0- '@ckeditor/ckeditor5-mention': 48.0.0(patch_hash=5981fb59ba35829e4dff1d39cf771000f8a8fdfa7a34b51d8af9549541f2d62d)+ '@ckeditor/ckeditor5-mention': 48.0.0(patch_hash=70377e48a04e2f45abba79aa35f3d5527ec7aa7ffce44056f9957a49a24a4a60)'@ckeditor/ckeditor5-ui': 48.0.0'@ckeditor/ckeditor5-utils': 48.0.0'@ckeditor/ckeditor5-widget': 48.0.0@@ -17119,7 +17119,7 @@ snapshots:'@ckeditor/ckeditor5-core': 48.0.0'@ckeditor/ckeditor5-heading': 48.0.0'@ckeditor/ckeditor5-icons': 48.0.0- '@ckeditor/ckeditor5-mention': 48.0.0(patch_hash=5981fb59ba35829e4dff1d39cf771000f8a8fdfa7a34b51d8af9549541f2d62d)+ '@ckeditor/ckeditor5-mention': 48.0.0(patch_hash=70377e48a04e2f45abba79aa35f3d5527ec7aa7ffce44056f9957a49a24a4a60)'@ckeditor/ckeditor5-style': 48.0.0'@ckeditor/ckeditor5-template': 48.0.0'@ckeditor/ckeditor5-ui': 48.0.0@@ -17190,7 +17190,7 @@ snapshots:'@ckeditor/[email protected]':dependencies:'@ckeditor/ckeditor5-clipboard': 48.0.0- '@ckeditor/ckeditor5-code-block': 48.0.0(patch_hash=2361d8caad7d6b5bddacc3a3b4aa37dbfba260b1c1b22a450413a79c1bb1ce95)+ '@ckeditor/ckeditor5-code-block': 48.0.0(patch_hash=1530be090e4f5235e197fb6208a8e8230e3355d5633fc7cad2b2e892659e9c04)'@ckeditor/ckeditor5-collaboration-core': 48.0.0'@ckeditor/ckeditor5-comments': 48.0.0'@ckeditor/ckeditor5-core': 48.0.0@@ -24604,7 +24604,7 @@ snapshots:'@ckeditor/ckeditor5-ckfinder': 48.0.0'@ckeditor/ckeditor5-clipboard': 48.0.0'@ckeditor/ckeditor5-cloud-services': 48.0.0- '@ckeditor/ckeditor5-code-block': 48.0.0(patch_hash=2361d8caad7d6b5bddacc3a3b4aa37dbfba260b1c1b22a450413a79c1bb1ce95)+ '@ckeditor/ckeditor5-code-block': 48.0.0(patch_hash=1530be090e4f5235e197fb6208a8e8230e3355d5633fc7cad2b2e892659e9c04)'@ckeditor/ckeditor5-core': 48.0.0'@ckeditor/ckeditor5-easy-image': 48.0.0'@ckeditor/ckeditor5-editor-balloon': 48.0.0@@ -24632,7 +24632,7 @@ snapshots:'@ckeditor/ckeditor5-list': 48.0.0'@ckeditor/ckeditor5-markdown-gfm': 48.0.0'@ckeditor/ckeditor5-media-embed': 48.0.0- '@ckeditor/ckeditor5-mention': 48.0.0(patch_hash=5981fb59ba35829e4dff1d39cf771000f8a8fdfa7a34b51d8af9549541f2d62d)+ '@ckeditor/ckeditor5-mention': 48.0.0(patch_hash=70377e48a04e2f45abba79aa35f3d5527ec7aa7ffce44056f9957a49a24a4a60)'@ckeditor/ckeditor5-minimap': 48.0.0'@ckeditor/ckeditor5-page-break': 48.0.0'@ckeditor/ckeditor5-paragraph': 48.0.0