Commit Graph

12353 Commits

Author SHA1 Message Date
Peng Xiao
91aba5c499 chore(whiteboard): update dependencies 2022-11-18 11:05:26 -05:00
Gabriel Horner
6f5a6dcbf7 Merge pull request #7358 from logseq/feat/color-panel
Feat (Whiteboards): Add main color panel and rearrange tools
2022-11-18 10:53:07 -05:00
Konstantinos Kaloutas
4f93f92eb0 fix: allowed attributes an add a test 2022-11-18 10:34:34 -05:00
Darwis
7a508dde0a fix issue #7366 render custom html element as hiccup no longger working. dompurify remove is attribute from hiccup 2022-11-18 10:34:34 -05:00
Konstantinos Kaloutas
cfb446437f fix: reviewer notes 2022-11-18 12:46:59 +02:00
Peng Xiao
29004a50c6 fix: make sure caret in portal shape can be correctly set 2022-11-18 15:23:20 +08:00
Peng Xiao
a72bb8bcb4 fix: optimize dot grid svg rendering in Safari 2022-11-18 14:15:42 +08:00
Peng Xiao
b495205795 fix(whiteboard): last wheel event triggered twice issue 2022-11-18 10:41:10 +08:00
Peng Xiao
edc9618a81 fix(whiteboard): tldraw demo should inherit root tailwind config 2022-11-18 10:34:36 +08:00
Andelf
1caba0359f fix: error while backup global config under windows 2022-11-17 17:10:49 -05:00
Vitali Haravy
6eab0d7f30 Correct wording of a comment in config.edn 2022-11-17 16:59:50 -05:00
queeup
db39c4b0d9 i18n: update Turkish translation 2022-11-17 16:58:29 -05:00
Sergey Kolesnik
04fecb0aa8 legacy style fix: remove search-field css and --ls-search-background-color var (#7318) 2022-11-17 13:40:54 -05:00
Konstantinos Kaloutas
de39e94cdf style: run prettier 2022-11-17 19:28:58 +02:00
Konstantinos Kaloutas
56be54ea2e fix: portal color on dnd 2022-11-17 19:15:48 +02:00
Konstantinos Kaloutas
c9ab86a049 remove opacity option 2022-11-17 19:10:51 +02:00
Konstantinos Kaloutas
804bba6988 chore: set fill and stroke on create 2022-11-17 19:00:36 +02:00
Konstantinos Kaloutas
4d7f68fe66 fix: update selected elements on set color 2022-11-17 17:24:08 +02:00
Konstantinos Kaloutas
f90cee54b1 fix: e2e test 2022-11-17 17:15:53 +02:00
Konstantinos Kaloutas
f92e609af9 fix: e2e tests 2022-11-17 17:02:25 +02:00
Konstantinos Kaloutas
47f7863651 fix: keyboard shortcuts 2022-11-17 16:49:52 +02:00
Konstantinos Kaloutas
6269bce384 fix: portal tool label 2022-11-17 16:44:22 +02:00
Konstantinos Kaloutas
d88e1de7e8 fix: tool separator 2022-11-17 16:41:07 +02:00
Konstantinos Kaloutas
53a6904d7a refactor: popover indicator 2022-11-17 16:17:16 +02:00
Peng Xiao
eb072afa53 fix: still use svg grid for non-safari 2022-11-17 21:43:34 +08:00
Konstantinos Kaloutas
a4b91c46f0 Merge branch 'master' into feat/color-panel 2022-11-17 15:13:11 +02:00
Charlie
dd2ef163ba Enhance/PDF viewer (#7369)
* fix(pdf): WIP potential memory leaks
* enhance(pdf): sync page number in highlights metafile
* enhance(pdf): support preview highlight area image in a lightbox
* fix: clojurescript unit tests
* fix(pdf): page number overflow when more digits
2022-11-17 20:31:08 +08:00
Konstantinos Kaloutas
27f991451d fix: click on indicator 2022-11-17 14:09:37 +02:00
Konstantinos Kaloutas
766d91be0c add popover indicator 2022-11-17 13:54:52 +02:00
Konstantinos Kaloutas
ca84c021f4 refactor: geometry tools 2022-11-17 13:28:43 +02:00
Yue Yang
a6f6b0abae fix: ci 2022-11-17 17:50:56 +08:00
Yue Yang
a842818ab6 fix: use name to detect default theme 2022-11-17 17:50:56 +08:00
Peng Xiao
0260f5da5d refactor(whiteboard): using canvas to render the whiteboard grid dots 2022-11-17 16:50:45 +08:00
Manu [tennox]
4217057a44 Add option to insert block without focusing it afterwards 2022-11-17 15:48:43 +08:00
Peng Xiao
8bf59a564b fix(whiteboard): disable dot grid background for iOS & iPad 2022-11-17 11:44:09 +08:00
Peng Xiao
408001ede7 fix: displaying images in previews for iOS & iPad 2022-11-17 11:22:35 +08:00
Andelf
20c527a3d9 fix(props): show hierarchy for page alias
Close #7365
2022-11-17 11:01:00 +08:00
Peng Xiao
ffc93fdae0 fix(whiteboard): wb preview sometimes is black 2022-11-17 10:48:03 +08:00
Peng Xiao
aa4f809ff0 feat(whiteboard): pasting images should also pack in a rect 2022-11-17 10:40:16 +08:00
Peng Xiao
dd0509fdd4 fix: rename generate preview functions 2022-11-17 10:39:44 +08:00
Andelf
dd7460f198 fix(ci): handle boolean build condition 2022-11-17 09:32:57 +08:00
Matt Tracy
be7e37e924 Retain block references on file reload
Commit fixes a bug where block references (i.e. `:block/refs`
association in the db) are lost when the page containing the referenced
block is re-loaded due to an update of its underlying file.

Description of Bug:

The bug occurs because when a file is re-loaded to the DB from disk, all existing blocks
belonging to the file are deleted via `retractEntity`, and then blocks
from the parsed file are added. If the file had only had small changes,
the new block set will be very similar to the previous one, although
with different db/ids.

However, while new blocks with "id:: " properties will assume the UUID value
of the previous version of the block, any references to that block via
UUID will *not* be restored in the DB; they are deleted with the
retractEntity command. This results in an inconsistent DB state, where references that should
exist do not.

Description of Fix:

The 'delete-blocks-fn' passed to the graph_parser has been modified as
such:

- It now accepts a list of block uuids to *retain*; graph parser will
  pass the blocks parsed from the new file content.
- For any blocks which match a UUID in the retain list, instead of
  deleting via retractEntity, the individual attributes are deleted via
  retractAttribute (the `retract-attributes` from schema.cljs is used
  for this purpose).
2022-11-16 14:05:19 -08:00
Gabriel Horner
037ec33b40 Address review feedback
- eval-result's additional sci options should not impact other features
- remove custom-js binding to allow for more general purpose solutions
2022-11-16 15:13:53 -05:00
Darwis
d57df063a4 - expose goog.string, goog.dom, goog.obj for helper to interact with javascript
- revert evel-string arguments into single arguments, current block are not passed into `eval-string`
- use metadata to detect if returned eval-result are hiccup.
2022-11-16 15:13:53 -05:00
Darwis
c4604c9254 use meta to detect returned result from eval-result are hiccup vector 2022-11-16 15:13:53 -05:00
Darwis
66f7656fd8 add and expose current block into sci namespace (editor/block)
add logseq-api and logseq-graph-parser into sci classes to make it avaliable in sci eval-string
add bindings custom-js to window object that can be defined in custom.js file as `customJs` object (for custom javascript function to be called from sci)
2022-11-16 15:13:53 -05:00
Konstantinos Kaloutas
58d41083f8 fix: styles 2022-11-16 19:24:34 +02:00
Konstantinos Kaloutas
f004236369 update portal icon 2022-11-16 19:24:06 +02:00
Konstantinos Kaloutas
fcac11664e feat: color panel 2022-11-16 17:49:53 +02:00
Konstantinos Kaloutas
c41aab13b7 chore: rearrange tools 2022-11-16 16:00:41 +02:00