Abdullah Atta
b56e381022
web: fix editor cursor jumping to start on creating a new note
2025-03-24 12:28:30 +05:00
Abdullah Atta
8823054227
editor: disable suspiciousAttributes check in prosemirror
...
this check causes a significant slowdown when loading notes with huge
amount of nodes as it recursively scans the attributes of all the
nodes. Disabling this speeds up loading significantly but might
cause issues in some special cases. Fortunately, this error has never
been triggered by anyone in Notesnook. I wouldn't recommend anyone to
disable this without first testing it properly as it might expose you
to cross site scripting attacks.
2025-02-24 10:36:18 +05:00
Abdullah Atta
7c63a3e004
editor: optimize @tiptap/core
...
this optimizes the following functions in @tiptap/core:
- `mergeAttributes`
- `getRenderedAttributes`
- `injectExtensionAttributesToParseRule`
These functions stood out the most in the profiler.
2025-02-24 10:33:13 +05:00
Abdullah Atta
0cc9c31bc3
editor: fix Failed to execute 'collapse' on 'Selection'
2025-02-01 15:14:34 +05:00
Abdullah Atta
8ffbda9626
Revert "editor: update tiptap to v2.10.4 ( #6872 )"
...
This reverts commit 800f3ca5d3 .
2025-01-20 10:20:15 +05:00
Abdullah Atta
149c2013a2
editor: fix multiple editor views being created
2024-12-30 16:05:28 +05:00
Abdullah Atta
800f3ca5d3
editor: update tiptap to v2.10.4 ( #6872 )
...
* editor: update tiptap to v2.9.1
* editor: update tiptap & pkgs to 2.10.4
* editor: update test snapshots
2024-12-30 14:51:50 +05:00
01zulfi
ad78b3a931
editor: fix backspace deleting formatting in list item ( #6712 ) ( #6878 )
...
* fix hitting backspace inside the second (or next) p in list item deleted the formatting of the entire list item
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com >
2024-11-19 10:30:13 +05:00
Abdullah Atta
59085d7b19
editor: update packages
2024-09-13 08:37:03 +05:00
Abdullah Atta
025e23356a
editor: fix crash on drag dropping an embed node
2024-08-27 13:03:20 +05:00
Abdullah Atta
734f491e8d
editor: fix crash due to undefined is not an object (evaluating 'a.nodeSize') ( #5553 )
2024-05-09 17:38:18 +05:00
Abdullah Atta
ad2b68c8ed
editor: fix notes with task lists taking too long to load
2024-04-15 20:55:07 +05:00
Abdullah Atta
4bbd43e54b
editor: speed up note loading significantly
2024-04-09 01:37:30 +05:00
Abdullah Atta
732185a69d
editor: fix crash on select all + backspace with lists
2024-03-21 11:22:48 +05:00
Abdullah Atta
cb124c7445
editor: update tiptap & other packages
2024-03-21 11:22:48 +05:00
Abdullah Atta
18afc0a49c
editor: fix type errors
2024-03-21 11:22:11 +05:00
Abdullah Atta
54f1945a58
editor: add support for adding/removing internal links
2024-03-21 11:20:26 +05:00
Abdullah Atta
09fff95d58
editor: fix marks.filter is not a function error on pressing Enter
2024-03-05 14:27:29 +05:00
Abdullah Atta
08496c699e
editor: fix font size changes back after exiting list ( fixes #3602 )
2024-01-05 21:48:00 +05:00
Abdullah Atta
830d28fbe5
editor: fix pasting link replaces selected text
...
fixes #3520
2023-10-31 12:33:49 +05:00
Abdullah Atta
3efdd9505e
editor: do not open keyboard on task item drop
2023-10-02 16:22:20 +05:00
Abdullah Atta
bb77385b66
editor: update tiptap to 2.1.11
2023-09-25 10:36:36 +05:00
Abdullah Atta
e42f1a65f5
editor: update tiptap packages to v2.1.7
2023-09-04 15:51:47 +05:00
Ammar Ahmed
622294b807
global: implement the new theme engine ( #2196 )
...
* mobile: theme
* theme: add theme engine
* mobile: migrate app colors to new theme engine
* mobile: fixed some colors
* mobile: fix colors
* mobile: store theme info in store
* theme: `ColorsType` -> `Variants`
* theme: use explicit return type for `useThemeColors`
* theme: add `backdrop` color
* mobile: `const colors` -> `const {colors}
* theme: add default pitch-black theme
* mobile: manage theme state via theme-engine
* mobile: add theme scopes
* mobile: commit
* mobile: fix button width on applock screen
* mobile: fix typings
* mobile: fix theme definition
* web: add partial support for custom themes
only context menus & popups are left.
* theme: add dialog & sheet scopes
* global: sync with master branch and make everything work again
* mobile: fix theme-engine usage in editor & app
* mobile: fix colors
* mobile: fix colors
* mobile: cleanup
* mobile: fix status bar color incorrect on entering foreground
* mobile: fix dark color scheme
* web: move emotion theme provider to @notesnook/theme
* editor: add support for theme enging
* web: adjust hover & focus colors on list item
* mobile: migrate share ext to theme engine
* mobile: fix editor theme provider
* clipper: add support for the new theme engine
* mobile: fix statusbar color on switch from bg
* misc: fix build
* mobile: fix build
* misc: fix colors
* mobile: fix theme colors
* mobile: fix bottom padding
* server: add theme server
* theme: add previewColors
* server: support themes query pagination
* mobile: add client from theme server
* server: reset cache on sync repo
* server: fix types
* server: show ip & port on start server
* server: theme updates
* web: finalize new theme engine on web
* editor: fix build
* global: fix @emotion/react version to 11.11.1
* editor: update katex patch
* web: fix imports
* global: fix @trpc/* versions
* global: a huge set of changes
1. get rid of ThemeVariant. All variants can now be accessed anywhere.
2. remove unnecessary button variants
3. make buttons more responsive
4. implement themes server
* web: add support for theme search and theme switching
* global: update lockfiles
* mobile: fix error
* theme: use vite-plugin-react to start theme server
* web: add support for auto updating themes
* mobile: update theme selector
* mobile: update theme if new verison available
* theme: add `isomorphic-fetch` package
* global: update lockfiles
* web: add theme details dialog
* setup: add scope for themes server in bootstrap script
* web: add production server url
* web: update lockfile
* web: update lockfile
* mobile: remove `react-native-blob-util`
* web: add support for endless scrolling in themes
* web: bring back dark/light mode option in settings
* web: fix colors in places
* theme: add selected variant
* global: use single typescript version across the projects
* web: fix sort & group options not having submenus
* web: apply selected variant where appropriate
* ui: use unique id for all menu items
* config: add ui scope for commits
* theme: export button variant creation fn
* web: fix only 1 theme showing in theme selector
* web: fix navigation item hover & other colors
* mobile: update theme
* editor: fix toolbar group alignments
* editor: set theme provider at app level
* theme: use scope name to get current scope
* mobile: fix color usage in message card
* theme: remove caching
* editor: bring back icons in table menus
* theme: use zustand to manage theme engine state
* web: fix login/signup theming
* mobile: fix webpack build
* misc: remove ThemeProvider usage
* editor: adjust theming and styling of editor toolbar
* mobile: refactor
* editor: fix toolbar group padding everywhere
* web: fix settings sidebar is not scrollable
* web: add loading indicator for themes loading
* mobile: fix warning
* mobile: fix ui issues
* web: fix Loader errors on build
* theme: add getPreviewColors & validateTheme
* theme: fix theme validation
* mobile: load theme from file
* mobile: fix share extension crash
* mobile: rename state
* theme: add sourceURL property
* theme: refactor theme-engine
* web: add support for loading theme from file
* web: improve button hover interaction
* mobile: fix floating button color
* mobile: update theme
* mobile: fix border radius of context menu
* mobile: set sheet overlay color to theme backdrop
* mobile: set sidemenu backdrop to theme backdrop
---------
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co >
2023-08-01 12:07:21 +05:00
Abdullah Atta
dd470297c3
editor: do not prevent all clicks
2023-06-08 15:59:48 +05:00
Abdullah Atta
3b727e6f64
editor: update tiptap packages to v2.0.3
2023-05-25 09:47:20 +05:00
Abdullah Atta
4884c27a9a
editor: update patches
2023-03-20 16:40:58 +05:00
Abdullah Atta
2ada289e74
editor: update patch for @tiptap/extension-link
2023-02-23 13:13:27 +05:00
Abdullah Atta
1edf416461
editor: update patch for @tiptap/core
2023-02-23 13:13:27 +05:00
Muhammad Ali
abe1598910
editor: fix issue where right clicking on a link opened it ( #1571 )
...
* editor: link right click opens link bug solved
* editor: added headers
* editor: create patch for @tiptap/extension-link
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co >
2023-01-07 13:17:56 +05:00
Abdullah Atta
82f800e530
editor: install new patch for katex@0.16.2
2022-10-19 11:44:49 +05:00
Abdullah Atta
c3badf4846
editor: generate new patch for @tiptap/core
2022-10-18 10:23:47 +05:00
thecodrr
74cd845f95
perf: optimize tiptap's clear document plugin
2022-08-04 12:28:33 +05:00
thecodrr
9448d66fac
fix: exclude fonts from katex.min.css
2022-07-26 23:26:24 +05:00