autumnnote 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +401 -628
  2. package/dist/autumnnote.css +169 -0
  3. package/dist/autumnnote.es.js +3669 -179
  4. package/dist/autumnnote.es.js.map +1 -1
  5. package/dist/autumnnote.umd.js +3668 -178
  6. package/dist/autumnnote.umd.js.map +1 -1
  7. package/package.json +3 -2
  8. package/src/js/Context.js +18 -2
  9. package/src/js/core/func.js +5 -5
  10. package/src/js/i18n/de.js +320 -0
  11. package/src/js/i18n/en.js +328 -0
  12. package/src/js/i18n/es.js +320 -0
  13. package/src/js/i18n/fr.js +321 -0
  14. package/src/js/i18n/index.js +59 -0
  15. package/src/js/i18n/ja.js +321 -0
  16. package/src/js/i18n/ko.js +320 -0
  17. package/src/js/i18n/vi.js +321 -0
  18. package/src/js/i18n/zh.js +321 -0
  19. package/src/js/index.js +2 -1
  20. package/src/js/module/AutoSaveRestore.js +126 -0
  21. package/src/js/module/BubbleToolbar.js +243 -0
  22. package/src/js/module/CodeTooltip.js +12 -9
  23. package/src/js/module/ContextMenu.js +41 -37
  24. package/src/js/module/EmojiDialog.js +8 -7
  25. package/src/js/module/FindReplace.js +14 -13
  26. package/src/js/module/IconDialog.js +14 -13
  27. package/src/js/module/ImageDialog.js +17 -16
  28. package/src/js/module/ImageTooltip.js +13 -12
  29. package/src/js/module/LinkDialog.js +10 -9
  30. package/src/js/module/LinkTooltip.js +6 -5
  31. package/src/js/module/MarkdownShortcuts.js +253 -0
  32. package/src/js/module/Mention.js +337 -0
  33. package/src/js/module/ShortcutsDialog.js +5 -4
  34. package/src/js/module/Statusbar.js +6 -5
  35. package/src/js/module/TableTooltip.js +22 -19
  36. package/src/js/module/Toolbar.js +21 -15
  37. package/src/js/module/VideoDialog.js +10 -9
  38. package/src/js/module/VideoTooltip.js +12 -11
  39. package/src/js/settings.js +23 -0
  40. package/src/styles/autumnnote.scss +191 -0
  41. package/types/index.d.ts +114 -1
@@ -1802,4 +1802,173 @@
1802
1802
  .an-video-resizer {
1803
1803
  display: none !important;
1804
1804
  }
1805
+ }
1806
+ .an-asr-banner {
1807
+ display: flex;
1808
+ align-items: center;
1809
+ gap: 8px;
1810
+ padding: 8px 12px;
1811
+ background: #eff6ff;
1812
+ border-bottom: 1px solid #bfdbfe;
1813
+ font-size: 13px;
1814
+ color: #1e40af;
1815
+ flex-wrap: wrap;
1816
+ }
1817
+ .an-theme-dark .an-asr-banner {
1818
+ background: #1e3a5f;
1819
+ border-bottom-color: #1e4d8c;
1820
+ color: #93c5fd;
1821
+ }
1822
+
1823
+ .an-asr-msg {
1824
+ flex: 1;
1825
+ min-width: 0;
1826
+ }
1827
+
1828
+ .an-asr-btn-restore {
1829
+ padding: 3px 10px;
1830
+ font-size: 12px;
1831
+ font-weight: 600;
1832
+ background: #3b82f6;
1833
+ color: #fff;
1834
+ border: none;
1835
+ border-radius: 4px;
1836
+ cursor: pointer;
1837
+ line-height: 1.5;
1838
+ }
1839
+ .an-asr-btn-restore:hover {
1840
+ background: #2563eb;
1841
+ }
1842
+
1843
+ .an-asr-btn-discard {
1844
+ padding: 3px 10px;
1845
+ font-size: 12px;
1846
+ background: transparent;
1847
+ color: #6b7280;
1848
+ border: 1px solid #d1d5db;
1849
+ border-radius: 4px;
1850
+ cursor: pointer;
1851
+ line-height: 1.5;
1852
+ }
1853
+ .an-asr-btn-discard:hover {
1854
+ background: #f3f4f6;
1855
+ }
1856
+
1857
+ .an-bubble-toolbar {
1858
+ display: none;
1859
+ position: fixed;
1860
+ z-index: 10040;
1861
+ background: #ffffff;
1862
+ border: 1px solid #d1d5db;
1863
+ border-radius: 8px;
1864
+ padding: 4px 6px;
1865
+ gap: 2px;
1866
+ box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
1867
+ align-items: center;
1868
+ animation: an-bubble-in 0.1s ease;
1869
+ pointer-events: auto;
1870
+ user-select: none;
1871
+ }
1872
+ .an-theme-dark .an-bubble-toolbar {
1873
+ background: #24273a;
1874
+ border-color: #3f3f5f;
1875
+ }
1876
+
1877
+ @keyframes an-bubble-in {
1878
+ from {
1879
+ opacity: 0;
1880
+ transform: translateY(4px);
1881
+ }
1882
+ to {
1883
+ opacity: 1;
1884
+ transform: translateY(0);
1885
+ }
1886
+ }
1887
+ .an-bubble-btn {
1888
+ display: flex;
1889
+ align-items: center;
1890
+ justify-content: center;
1891
+ width: 28px;
1892
+ height: 28px;
1893
+ padding: 0;
1894
+ background: transparent;
1895
+ border: none;
1896
+ border-radius: 5px;
1897
+ color: #111827;
1898
+ cursor: pointer;
1899
+ transition: background 0.15s ease, color 0.15s ease;
1900
+ }
1901
+ .an-bubble-btn svg {
1902
+ pointer-events: none;
1903
+ stroke: currentColor;
1904
+ }
1905
+ .an-bubble-btn:hover {
1906
+ background: #f3f4f6;
1907
+ color: #111827;
1908
+ }
1909
+ .an-bubble-btn.an-active {
1910
+ background: #dbeafe;
1911
+ color: #3b82f6;
1912
+ }
1913
+ .an-theme-dark .an-bubble-btn {
1914
+ color: #cdd6f4;
1915
+ }
1916
+ .an-theme-dark .an-bubble-btn:hover {
1917
+ background: #313244;
1918
+ }
1919
+ .an-theme-dark .an-bubble-btn.an-active {
1920
+ background: #1e3a5f;
1921
+ color: #93c5fd;
1922
+ }
1923
+
1924
+ .an-mention-dropdown {
1925
+ display: none;
1926
+ position: fixed;
1927
+ z-index: 9998;
1928
+ background: #ffffff;
1929
+ border: 1px solid #d1d5db;
1930
+ border-radius: 6px;
1931
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
1932
+ min-width: 180px;
1933
+ max-width: 280px;
1934
+ max-height: 240px;
1935
+ overflow-y: auto;
1936
+ padding: 4px 0;
1937
+ }
1938
+
1939
+ .an-mention-item {
1940
+ display: flex;
1941
+ align-items: center;
1942
+ gap: 8px;
1943
+ padding: 6px 12px;
1944
+ cursor: pointer;
1945
+ font-size: 13px;
1946
+ color: #111827;
1947
+ transition: background 0.15s ease;
1948
+ }
1949
+ .an-mention-item:hover, .an-mention-item.an-mention-active {
1950
+ background: #f3f4f6;
1951
+ }
1952
+
1953
+ .an-mention-avatar {
1954
+ width: 24px;
1955
+ height: 24px;
1956
+ border-radius: 50%;
1957
+ object-fit: cover;
1958
+ flex-shrink: 0;
1959
+ }
1960
+
1961
+ .an-mention {
1962
+ display: inline;
1963
+ background: #eff6ff;
1964
+ color: #3b82f6;
1965
+ border-radius: 3px;
1966
+ padding: 0 3px;
1967
+ font-weight: 500;
1968
+ cursor: default;
1969
+ user-select: all;
1970
+ }
1971
+ .an-theme-dark .an-mention {
1972
+ background: #1e3a5f;
1973
+ color: #93c5fd;
1805
1974
  }/*$vite$:1*/