Commit fac6bb0
Implemented visual hints on repositioning (#726)
* Initial wiring for drag and drop visual hints done
* Create custom hook for visual hint on drag
* Drop zone hint logic for visual hints done
* Created context for probable parent
* Setting context for probable parent
* Gives hint when probable parent is found
* wip: removing the hint overlay
* Solved bug where overlay was not removed properly
* Removed redundant code
* Removed moved while drag event being sent to editor machine
* Created DROPZONE_CREATED and DROPZONE_DESTROYED events
* Showing visual hints when drop zone created
* Destroyed overlays on dropzone destroyed
* Renamed files to signify common functionality
* Show hints when reposition is active
* Renamed to useDropzoneHints
* Remove overlay if overlay is present
* If mouse is in the the reposition element then remove overlays
* wip: Solved bug where parent that is a child to a parent does not get the overlay
* Destroying the previous overlay before creating a new overlay
* Nested repeating & overlay adapted for repeating component (#720)
* bugfix: before_app_load to unset the comp id state
* handleBreakpointChange & bugfix
* removed console.log
* select overlay done
* overlay for hover done
* bugfix: update hovered on re-hoverWhileSelected
* removed console.log
* overlay on reposition
* python files are generated from react manifest
* generate __init__.py file
* atri_core is publishable
* python manifest project built using package.json
* bugfix: call join after map
* wip: generate python model for each page
* python page model gets generated
* generate python models in dev mode
* dev mode for generate python routes done
* create alias on drop done
* change alias using aliasApi done
* action layer added
* bugfix: add .jsx random extension for IRToUnixFilepath to work
* removed canvas-zone-manager package
* support for shared libs in tool
* asset manager integrated
* removed react-shim manifest-shims packages
* resource layer integrated
* imported fonts reflect in editor
* bugfix: remove duplicate import
* manifest in example-atri-app populates in editor & app
* removed install-scripts
* createComponentManifest done
* build editor for production
* pwa-builder-server serves pwa-builder
* @atrilabs/new package invoked to create a new atri app
* changes main to bin
* page scaffold includes canvas zone
* expose pwa-builder-server binary & new package
* package.json version set to 1.0.0-alpha.0
* removed app-scripts & app-generator package
* removed webapp-builder package
* removed scripts
* removed packages not to be shipped in 1.0.0-alpha.0
* installed missing dependencies
* package.json updated
* v1.0.0-alpha.0
* fix: serve manifest registry
* fixes: updated missing deps in create-atri-app
* __version__ set to 1.0.0-alpha.1
* v1.0.0-alpha.1
* fix: pwa-builder build command without manifests
* v1.0.0-alpha.2
* fix: use uuid vs @atrilabs/core
* v1.0.0-alpha.3
* new parameters inside quotes
* v1.0.0-alpha.4
* copy-paste inside component done
* canvas zone as paste target done
* up/down arrow key works
* create component undo/redo done
* wip: undo-redo
* undo-redo done
* wip: component navigator data compute done
* wip: component navigator update on alias change
* component navigator open close done
* patchCb called on comp navigator reposition
* raise hover & select from comp navigator
* select on reposition/rewire end
* fix: sort the direct child of canvas
* __version__ set to 1.0.0-alpha.5
* v1.0.0-alpha.5
* yarn editor register new components from manifests dir
* build manifest python packages inside manifests done
* build manifest python packages inside manifests done
* wip: wiring for fetching user events done
* wip: live canvas zone with components done
* live canvas zone with components done
* callbacks attached in live mode
* wip: hook with python
* /_atri/api/event request is sent to python
* handle event updates live view
* fix: make sure alias patch is sent later
* bugfix: drag-drop disappearing
* bugfix: new dragged node is set on togglenode
* atri-comp-id & atri-parent-marker assigned
* overlays adapted for repeating list
* removed log statement
* __version__ set to 1.0.0-alpha.6 (#721)
* bugfix: before_app_load to unset the comp id state
* handleBreakpointChange & bugfix
* removed console.log
* select overlay done
* overlay for hover done
* bugfix: update hovered on re-hoverWhileSelected
* removed console.log
* overlay on reposition
* python files are generated from react manifest
* generate __init__.py file
* atri_core is publishable
* python manifest project built using package.json
* bugfix: call join after map
* wip: generate python model for each page
* python page model gets generated
* generate python models in dev mode
* dev mode for generate python routes done
* create alias on drop done
* change alias using aliasApi done
* action layer added
* bugfix: add .jsx random extension for IRToUnixFilepath to work
* removed canvas-zone-manager package
* support for shared libs in tool
* asset manager integrated
* removed react-shim manifest-shims packages
* resource layer integrated
* imported fonts reflect in editor
* bugfix: remove duplicate import
* manifest in example-atri-app populates in editor & app
* removed install-scripts
* createComponentManifest done
* build editor for production
* pwa-builder-server serves pwa-builder
* @atrilabs/new package invoked to create a new atri app
* changes main to bin
* page scaffold includes canvas zone
* expose pwa-builder-server binary & new package
* package.json version set to 1.0.0-alpha.0
* removed app-scripts & app-generator package
* removed webapp-builder package
* removed scripts
* removed packages not to be shipped in 1.0.0-alpha.0
* installed missing dependencies
* package.json updated
* v1.0.0-alpha.0
* fix: serve manifest registry
* fixes: updated missing deps in create-atri-app
* __version__ set to 1.0.0-alpha.1
* v1.0.0-alpha.1
* fix: pwa-builder build command without manifests
* v1.0.0-alpha.2
* fix: use uuid vs @atrilabs/core
* v1.0.0-alpha.3
* new parameters inside quotes
* v1.0.0-alpha.4
* copy-paste inside component done
* canvas zone as paste target done
* up/down arrow key works
* create component undo/redo done
* wip: undo-redo
* undo-redo done
* wip: component navigator data compute done
* wip: component navigator update on alias change
* component navigator open close done
* patchCb called on comp navigator reposition
* raise hover & select from comp navigator
* select on reposition/rewire end
* fix: sort the direct child of canvas
* __version__ set to 1.0.0-alpha.5
* v1.0.0-alpha.5
* yarn editor register new components from manifests dir
* build manifest python packages inside manifests done
* build manifest python packages inside manifests done
* wip: wiring for fetching user events done
* wip: live canvas zone with components done
* live canvas zone with components done
* callbacks attached in live mode
* wip: hook with python
* /_atri/api/event request is sent to python
* handle event updates live view
* fix: make sure alias patch is sent later
* bugfix: drag-drop disappearing
* bugfix: new dragged node is set on togglenode
* __version__ set to 1.0.0-alpha.6
* build-editor takes forest
* pwa-builder-server needs forest for build
* fix: added missing deps to build scripts
* v1.0.0-alpha.6
* added missing dep commands
* __version__ set to 1.0.0-alpha.7
* v1.0.0-alpha.7
* wip: add antd components
* ssr in dev mode done
* Nested repeating & overlay adapted for repeating component (#720)
* bugfix: before_app_load to unset the comp id state
* handleBreakpointChange & bugfix
* removed console.log
* select overlay done
* overlay for hover done
* bugfix: update hovered on re-hoverWhileSelected
* removed console.log
* overlay on reposition
* python files are generated from react manifest
* generate __init__.py file
* atri_core is publishable
* python manifest project built using package.json
* bugfix: call join after map
* wip: generate python model for each page
* python page model gets generated
* generate python models in dev mode
* dev mode for generate python routes done
* create alias on drop done
* change alias using aliasApi done
* action layer added
* bugfix: add .jsx random extension for IRToUnixFilepath to work
* removed canvas-zone-manager package
* support for shared libs in tool
* asset manager integrated
* removed react-shim manifest-shims packages
* resource layer integrated
* imported fonts reflect in editor
* bugfix: remove duplicate import
* manifest in example-atri-app populates in editor & app
* removed install-scripts
* createComponentManifest done
* build editor for production
* pwa-builder-server serves pwa-builder
* @atrilabs/new package invoked to create a new atri app
* changes main to bin
* page scaffold includes canvas zone
* expose pwa-builder-server binary & new package
* package.json version set to 1.0.0-alpha.0
* removed app-scripts & app-generator package
* removed webapp-builder package
* removed scripts
* removed packages not to be shipped in 1.0.0-alpha.0
* installed missing dependencies
* package.json updated
* v1.0.0-alpha.0
* fix: serve manifest registry
* fixes: updated missing deps in create-atri-app
* __version__ set to 1.0.0-alpha.1
* v1.0.0-alpha.1
* fix: pwa-builder build command without manifests
* v1.0.0-alpha.2
* fix: use uuid vs @atrilabs/core
* v1.0.0-alpha.3
* new parameters inside quotes
* v1.0.0-alpha.4
* copy-paste inside component done
* canvas zone as paste target done
* up/down arrow key works
* create component undo/redo done
* wip: undo-redo
* undo-redo done
* wip: component navigator data compute done
* wip: component navigator update on alias change
* component navigator open close done
* patchCb called on comp navigator reposition
* raise hover & select from comp navigator
* select on reposition/rewire end
* fix: sort the direct child of canvas
* __version__ set to 1.0.0-alpha.5
* v1.0.0-alpha.5
* yarn editor register new components from manifests dir
* build manifest python packages inside manifests done
* build manifest python packages inside manifests done
* wip: wiring for fetching user events done
* wip: live canvas zone with components done
* live canvas zone with components done
* callbacks attached in live mode
* wip: hook with python
* /_atri/api/event request is sent to python
* handle event updates live view
* fix: make sure alias patch is sent later
* bugfix: drag-drop disappearing
* bugfix: new dragged node is set on togglenode
* atri-comp-id & atri-parent-marker assigned
* overlays adapted for repeating list
* removed log statement
* __version__ set to 1.0.0-alpha.6 (#721)
* bugfix: before_app_load to unset the comp id state
* handleBreakpointChange & bugfix
* removed console.log
* select overlay done
* overlay for hover done
* bugfix: update hovered on re-hoverWhileSelected
* removed console.log
* overlay on reposition
* python files are generated from react manifest
* generate __init__.py file
* atri_core is publishable
* python manifest project built using package.json
* bugfix: call join after map
* wip: generate python model for each page
* python page model gets generated
* generate python models in dev mode
* dev mode for generate python routes done
* create alias on drop done
* change alias using aliasApi done
* action layer added
* bugfix: add .jsx random extension for IRToUnixFilepath to work
* removed canvas-zone-manager package
* support for shared libs in tool
* asset manager integrated
* removed react-shim manifest-shims packages
* resource layer integrated
* imported fonts reflect in editor
* bugfix: remove duplicate import
* manifest in example-atri-app populates in editor & app
* removed install-scripts
* createComponentManifest done
* build editor for production
* pwa-builder-server serves pwa-builder
* @atrilabs/new package invoked to create a new atri app
* changes main to bin
* page scaffold includes canvas zone
* expose pwa-builder-server binary & new package
* package.json version set to 1.0.0-alpha.0
* removed app-scripts & app-generator package
* removed webapp-builder package
* removed scripts
* removed packages not to be shipped in 1.0.0-alpha.0
* installed missing dependencies
* package.json updated
* v1.0.0-alpha.0
* fix: serve manifest registry
* fixes: updated missing deps in create-atri-app
* __version__ set to 1.0.0-alpha.1
* v1.0.0-alpha.1
* fix: pwa-builder build command without manifests
* v1.0.0-alpha.2
* fix: use uuid vs @atrilabs/core
* v1.0.0-alpha.3
* new parameters inside quotes
* v1.0.0-alpha.4
* copy-paste inside component done
* canvas zone as paste target done
* up/down arrow key works
* create component undo/redo done
* wip: undo-redo
* undo-redo done
* wip: component navigator data compute done
* wip: component navigator update on alias change
* component navigator open close done
* patchCb called on comp navigator reposition
* raise hover & select from comp navigator
* select on reposition/rewire end
* fix: sort the direct child of canvas
* __version__ set to 1.0.0-alpha.5
* v1.0.0-alpha.5
* yarn editor register new components from manifests dir
* build manifest python packages inside manifests done
* build manifest python packages inside manifests done
* wip: wiring for fetching user events done
* wip: live canvas zone with components done
* live canvas zone with components done
* callbacks attached in live mode
* wip: hook with python
* /_atri/api/event request is sent to python
* handle event updates live view
* fix: make sure alias patch is sent later
* bugfix: drag-drop disappearing
* bugfix: new dragged node is set on togglenode
* __version__ set to 1.0.0-alpha.6
* build-editor takes forest
* pwa-builder-server needs forest for build
* fix: added missing deps to build scripts
* v1.0.0-alpha.6
* added missing dep commands
* __version__ set to 1.0.0-alpha.7
* v1.0.0-alpha.7
* wip: add antd components
* ssr in dev mode done
* Removed events that were not required: Since they were utility events and not needed in the canvasMachine
---------
Co-authored-by: Jonathan Alvares <alvaresjonathan599@gmail.com>
Co-authored-by: Shyam Swaroop <30747788+cruxcode@users.noreply.github.com>
Co-authored-by: cruxcode <swaroopshyam0@gmail.com>1 parent d8b9daf commit fac6bb0
File tree
5 files changed
+253
-9
lines changed- packages/atri-app-core/src
- api
- editor-components/CanvasOverlay
- hooks
5 files changed
+253
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 59 | | |
63 | 60 | | |
64 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
| 179 | + | |
177 | 180 | | |
178 | 181 | | |
179 | 182 | | |
| |||
272 | 275 | | |
273 | 276 | | |
274 | 277 | | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
275 | 282 | | |
276 | 283 | | |
277 | 284 | | |
| |||
427 | 434 | | |
428 | 435 | | |
429 | 436 | | |
430 | | - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
431 | 440 | | |
432 | 441 | | |
433 | 442 | | |
| |||
456 | 465 | | |
457 | 466 | | |
458 | 467 | | |
| 468 | + | |
| 469 | + | |
459 | 470 | | |
460 | 471 | | |
461 | 472 | | |
| |||
508 | 519 | | |
509 | 520 | | |
510 | 521 | | |
| 522 | + | |
511 | 523 | | |
512 | 524 | | |
513 | 525 | | |
| |||
610 | 622 | | |
611 | 623 | | |
612 | 624 | | |
613 | | - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
614 | 630 | | |
615 | 631 | | |
616 | 632 | | |
617 | 633 | | |
618 | 634 | | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
619 | 686 | | |
620 | 687 | | |
621 | 688 | | |
622 | 689 | | |
623 | 690 | | |
624 | | - | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
625 | 696 | | |
626 | 697 | | |
627 | 698 | | |
| |||
806 | 877 | | |
807 | 878 | | |
808 | 879 | | |
809 | | - | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
810 | 904 | | |
811 | 905 | | |
812 | 906 | | |
813 | | - | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
814 | 913 | | |
815 | 914 | | |
816 | 915 | | |
817 | | - | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
818 | 921 | | |
819 | 922 | | |
820 | 923 | | |
| |||
827 | 930 | | |
828 | 931 | | |
829 | 932 | | |
| 933 | + | |
830 | 934 | | |
831 | 935 | | |
832 | 936 | | |
| |||
850 | 954 | | |
851 | 955 | | |
852 | 956 | | |
| 957 | + | |
853 | 958 | | |
854 | 959 | | |
855 | 960 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
Lines changed: 139 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
0 commit comments