Commit e5e0033
committed
feat(media): enhance media browser with configurable endpoints and error handling
Improves the media browser functionality with better flexibility and error handling:
- Configurable endpoints: Added support for custom media fetch URLs via `data-media-fetch` attribute
- Enhanced error handling: Added error callback to properly close modal on request failures
- Better loading states: Improved visual feedback during media loading operations
- Validation: Added endpoint URL validation to prevent broken requests
- Modal management: Better control over modal show/hide timing
- Version Bump: Incremented from `1.6.8` to `1.6.9`
The changes allow for more flexible media integration across different contexts while providing a more robust user experience.1 parent dd2e891 commit e5e0033
3 files changed
+24
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
750 | 756 | | |
751 | 757 | | |
752 | 758 | | |
753 | 759 | | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | 760 | | |
760 | | - | |
| 761 | + | |
761 | 762 | | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
762 | 769 | | |
763 | 770 | | |
764 | 771 | | |
| |||
784 | 791 | | |
785 | 792 | | |
786 | 793 | | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
787 | 801 | | |
788 | 802 | | |
789 | 803 | | |
| |||
826 | 840 | | |
827 | 841 | | |
828 | 842 | | |
829 | | - | |
830 | | - | |
831 | 843 | | |
832 | 844 | | |
833 | 845 | | |
| |||
911 | 923 | | |
912 | 924 | | |
913 | 925 | | |
914 | | - | |
| 926 | + | |
| 927 | + | |
915 | 928 | | |
916 | 929 | | |
917 | 930 | | |
| |||
0 commit comments