@heycys/gallery 0.1.2 → 0.2.1

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 (338) hide show
  1. package/THIRD-PARTY-NOTICES.md +2 -2
  2. package/browser/editor/components/align.mjs +58 -0
  3. package/browser/editor/components/code/index.mjs +1 -1
  4. package/browser/editor/components/embed/page.mjs +1 -1
  5. package/browser/editor/components/file/page.mjs +4 -4
  6. package/browser/editor/components/heading/index.mjs +7 -6
  7. package/browser/editor/components/icon/page.mjs +6 -4
  8. package/browser/editor/components/icons.mjs +5 -2
  9. package/browser/editor/components/image/index.mjs +2 -0
  10. package/browser/editor/components/image/page.mjs +172 -90
  11. package/browser/editor/components/installed/index.mjs +6 -2
  12. package/browser/editor/components/installed/page.mjs +80 -13
  13. package/browser/editor/components/media/icons.mjs +13 -8
  14. package/browser/editor/components/media/page.mjs +5 -3
  15. package/browser/editor/components/media/toolbar.mjs +12 -3
  16. package/browser/editor/components/paragraph/index.mjs +4 -3
  17. package/browser/editor/components/registry.mjs +17 -5
  18. package/browser/editor/components/table/index.mjs +4 -2
  19. package/browser/editor/page/after/index.mjs +288 -0
  20. package/browser/editor/page/align.mjs +91 -0
  21. package/browser/editor/page/beside.mjs +5 -6
  22. package/browser/editor/page/block-menu/index.mjs +6 -3
  23. package/browser/editor/page/blocks.mjs +3 -1
  24. package/browser/editor/page/board/hint.mjs +64 -27
  25. package/browser/editor/page/board/index.mjs +160 -71
  26. package/browser/editor/page/board/motion.mjs +177 -0
  27. package/browser/editor/page/board/settings.mjs +4 -3
  28. package/browser/editor/page/clipboard/import/read.mjs +20 -2
  29. package/browser/editor/page/clipboard/index.mjs +10 -3
  30. package/browser/editor/page/clipboard/own/blocks.mjs +3 -4
  31. package/browser/editor/page/clipboard/own/describe.mjs +6 -2
  32. package/browser/editor/page/commit.mjs +2 -2
  33. package/browser/editor/page/core.mjs +3 -1
  34. package/browser/editor/page/custom-page.mjs +15 -11
  35. package/browser/editor/page/editor.mjs +31 -14
  36. package/browser/editor/page/history.mjs +19 -4
  37. package/browser/editor/page/insert/index.mjs +20 -22
  38. package/browser/editor/page/menu.mjs +15 -7
  39. package/browser/editor/page/page-objects.mjs +3 -7
  40. package/browser/editor/page/present-links.mjs +5 -4
  41. package/browser/editor/page/present-shell.mjs +63 -0
  42. package/browser/editor/page/selection/index.mjs +10 -2
  43. package/browser/editor/page/table/binding.mjs +87 -0
  44. package/browser/editor/page/table/icons.mjs +0 -2
  45. package/browser/editor/page/table/index.mjs +10 -14
  46. package/browser/editor/page/table/views.mjs +5 -52
  47. package/browser/editor/page/table/widths.mjs +82 -10
  48. package/browser/editor/page/typing/index.mjs +44 -12
  49. package/browser/editor/page/typing/leave.mjs +19 -5
  50. package/browser/shared/block-packs.mjs +23 -8
  51. package/browser/shared/component-catalog.mjs +15 -8
  52. package/browser/shared/component-source.mjs +3 -1
  53. package/browser/shared/components/heading.mjs +2 -1
  54. package/browser/shared/components/installed.mjs +1 -1
  55. package/browser/shared/components/page.mjs +2 -0
  56. package/browser/shared/components/paragraph.mjs +8 -1
  57. package/browser/shared/components/table.mjs +1 -0
  58. package/browser/shared/document-copy.mjs +43 -0
  59. package/browser/shared/drafts.mjs +10 -3
  60. package/browser/shared/emoji/icon-value.mjs +2 -2
  61. package/browser/shared/emoji/line-icons.mjs +37 -0
  62. package/browser/shared/extensions.mjs +83 -7
  63. package/browser/shared/http.mjs +9 -0
  64. package/browser/shared/i18n/en.mjs +50 -17
  65. package/browser/shared/outline-shape.mjs +6 -0
  66. package/browser/shared/outline.mjs +165 -12
  67. package/browser/shared/pack-manifest.mjs +12 -1
  68. package/browser/shared/pages.mjs +169 -57
  69. package/browser/shared/pinyin.mjs +92 -0
  70. package/browser/shared/present-step.mjs +17 -0
  71. package/browser/shared/sidebar-head.mjs +70 -0
  72. package/browser/shared/web-links.mjs +5 -0
  73. package/browser/shared/workspace-columns.mjs +11 -7
  74. package/dist/{chunk-N7AZZLGT.mjs → chunk-2GKGEVMR.mjs} +29 -24
  75. package/dist/chunk-2OHANJ6Q.mjs +2 -0
  76. package/dist/{chunk-HYMEEXKN.mjs → chunk-2RKIHJI2.mjs} +1 -1
  77. package/dist/{chunk-742D2WWJ.mjs → chunk-36FIRJIF.mjs} +2 -2
  78. package/dist/{chunk-BPL64HGA.mjs → chunk-3A5I2GJK.mjs} +1 -1
  79. package/dist/{chunk-RFDZXFJF.mjs → chunk-3OFXMN6N.mjs} +1 -1
  80. package/dist/chunk-46ACXOU5.mjs +2 -0
  81. package/dist/{chunk-PUOQ65NC.mjs → chunk-4AMTKWDO.mjs} +1 -1
  82. package/dist/{chunk-VTKNEYT3.mjs → chunk-4DNHHJSL.mjs} +1 -1
  83. package/dist/chunk-5DPABPBI.mjs +2 -0
  84. package/dist/chunk-5IIH335D.mjs +3 -0
  85. package/dist/chunk-5L26JUYA.mjs +2 -0
  86. package/dist/{chunk-3NJACR4W.mjs → chunk-5MEXZ2UF.mjs} +1 -1
  87. package/dist/{chunk-ZHEHPMBK.mjs → chunk-6MPKCH3P.mjs} +1 -1
  88. package/dist/{chunk-C564NU2H.mjs → chunk-74RPP2M2.mjs} +1 -1
  89. package/dist/chunk-7M2BQQGZ.mjs +2 -0
  90. package/dist/{chunk-VXACTLO3.mjs → chunk-7M7UPWU6.mjs} +1 -1
  91. package/dist/{chunk-ZB4H7ZN4.mjs → chunk-7N2LPG33.mjs} +1 -1
  92. package/dist/{chunk-UBBRTJ2R.mjs → chunk-7XDYK3UC.mjs} +1 -1
  93. package/dist/chunk-AEMVZYZQ.mjs +166 -0
  94. package/dist/{chunk-POQSE4C2.mjs → chunk-AFGUR7SY.mjs} +1 -1
  95. package/dist/{chunk-QKXMPUXC.mjs → chunk-AMDGVDNV.mjs} +1 -1
  96. package/dist/{chunk-KTKHRC6H.mjs → chunk-ASAXY2DJ.mjs} +1 -1
  97. package/dist/{chunk-NVRNLK25.mjs → chunk-BYSF5UMM.mjs} +2 -2
  98. package/dist/{chunk-U3SSPL4K.mjs → chunk-CCSGFCLZ.mjs} +1 -1
  99. package/dist/{chunk-NWFBE2YA.mjs → chunk-CG3UHDKH.mjs} +1 -1
  100. package/dist/chunk-CPS4SRPF.mjs +5 -0
  101. package/dist/{chunk-B4P2CM2J.mjs → chunk-CZ5KJSGK.mjs} +1 -1
  102. package/dist/chunk-DAMVDXR3.mjs +2 -0
  103. package/dist/{chunk-NG375ILQ.mjs → chunk-DH6GMDNN.mjs} +1 -1
  104. package/dist/chunk-DHB7UZ7F.mjs +3 -0
  105. package/dist/{chunk-MHW7ZKOU.mjs → chunk-DKR7LFIY.mjs} +1 -1
  106. package/dist/chunk-DLFZJJEE.mjs +2 -0
  107. package/dist/{chunk-6EZ7FNIK.mjs → chunk-F4ZA6JRZ.mjs} +1 -1
  108. package/dist/{chunk-6VTU6KEO.mjs → chunk-FCK6NXON.mjs} +1 -1
  109. package/dist/{chunk-ZWPMCK7P.mjs → chunk-FX42XU6J.mjs} +1 -1
  110. package/dist/chunk-FXQBADMN.mjs +5 -0
  111. package/dist/{chunk-W3BGBJQW.mjs → chunk-G4YP7GVC.mjs} +1 -1
  112. package/dist/{chunk-V6XZ4VIR.mjs → chunk-GWOYMENX.mjs} +1 -1
  113. package/dist/chunk-HATA2W7X.mjs +2 -0
  114. package/dist/{chunk-YI43RG4P.mjs → chunk-HBAUKKQH.mjs} +1 -1
  115. package/dist/{chunk-MAFIGVXY.mjs → chunk-HM4E43VM.mjs} +1 -1
  116. package/dist/{chunk-CRJEG7MT.mjs → chunk-JI6T3A4Y.mjs} +1 -1
  117. package/dist/{chunk-NFMCP2HI.mjs → chunk-JJNRIFND.mjs} +2 -2
  118. package/dist/chunk-JL6R4FG4.mjs +4 -0
  119. package/dist/{chunk-UMHUSOPJ.mjs → chunk-JXLSHVJ2.mjs} +1 -1
  120. package/dist/{chunk-FJYN7RTH.mjs → chunk-KFZBYDIS.mjs} +1 -1
  121. package/dist/{chunk-ZTHICSSF.mjs → chunk-KH24LWAT.mjs} +1 -1
  122. package/dist/{chunk-RKPWLGZ3.mjs → chunk-KUILYI7H.mjs} +1 -1
  123. package/dist/{chunk-RMECZA2K.mjs → chunk-L7W624FD.mjs} +1 -1
  124. package/dist/chunk-LE44MD3O.mjs +4 -0
  125. package/dist/{chunk-4K5KC6V2.mjs → chunk-LV24RY2E.mjs} +1 -1
  126. package/dist/{chunk-43B75J5T.mjs → chunk-MKTX5PGV.mjs} +1 -1
  127. package/dist/{chunk-LKX55H76.mjs → chunk-NAGMRVW4.mjs} +1 -1
  128. package/dist/{chunk-D4CKRD3V.mjs → chunk-NFABH3QW.mjs} +2 -2
  129. package/dist/{chunk-PVER7LSC.mjs → chunk-NIW7F7LU.mjs} +2 -2
  130. package/dist/{chunk-PAREWQGB.mjs → chunk-NWRZXELO.mjs} +1 -1
  131. package/dist/{chunk-OJKMINIU.mjs → chunk-OU3S466R.mjs} +15 -15
  132. package/dist/{chunk-5ZJA7CXT.mjs → chunk-PAFSFVYB.mjs} +1 -1
  133. package/dist/chunk-QCEATQC4.mjs +2 -0
  134. package/dist/{chunk-Y34NR5JL.mjs → chunk-QJ3TFJLQ.mjs} +1 -1
  135. package/dist/{chunk-IA4PSIMD.mjs → chunk-QK3VISCA.mjs} +1 -1
  136. package/dist/{chunk-ZUNVAXLH.mjs → chunk-QXVNUASA.mjs} +1 -1
  137. package/dist/{chunk-GRAXKKG4.mjs → chunk-QZ35UAB4.mjs} +1 -1
  138. package/dist/{chunk-UGWYKHBL.mjs → chunk-S2Y7VI4H.mjs} +2 -2
  139. package/dist/{chunk-OW5NWPOJ.mjs → chunk-SAHS56QM.mjs} +1 -1
  140. package/dist/{chunk-QOUEFUCH.mjs → chunk-SOD23RGL.mjs} +1 -1
  141. package/dist/chunk-TDWJKOLN.mjs +2 -0
  142. package/dist/{chunk-V6RIYQZZ.mjs → chunk-TOE6DPLH.mjs} +1 -1
  143. package/dist/chunk-UGO5N3EI.mjs +15 -0
  144. package/dist/{chunk-Q47PLKIJ.mjs → chunk-UGWMMEJ5.mjs} +1 -1
  145. package/dist/{chunk-NWR2LT5B.mjs → chunk-V5JRSGZF.mjs} +1 -1
  146. package/dist/{chunk-BZ5RAF7L.mjs → chunk-VA3KAQZD.mjs} +1 -1
  147. package/dist/chunk-VG5JEIUQ.mjs +12 -0
  148. package/dist/{chunk-UNOYVIYR.mjs → chunk-VGTMLQWZ.mjs} +1 -1
  149. package/dist/chunk-VKSRM7EY.mjs +22 -0
  150. package/dist/{chunk-YQGT4AB2.mjs → chunk-VNUWREXU.mjs} +1 -1
  151. package/dist/{chunk-AGDILNWB.mjs → chunk-VPVOAJ7X.mjs} +1 -1
  152. package/dist/{chunk-HLYV7RIH.mjs → chunk-WCWYNFDF.mjs} +1 -1
  153. package/dist/chunk-WTEGUPFG.mjs +16 -0
  154. package/dist/{chunk-N76HWBA3.mjs → chunk-XKOHV4H6.mjs} +1 -1
  155. package/dist/{chunk-HMYTM3GT.mjs → chunk-XMKHCUI6.mjs} +1 -1
  156. package/dist/{chunk-OUUP3WKT.mjs → chunk-XQRUG4G3.mjs} +1 -1
  157. package/dist/{chunk-32ZUEFZ7.mjs → chunk-YBB5LWZK.mjs} +1 -1
  158. package/dist/{chunk-SX4LJYT6.mjs → chunk-YFJU3O7G.mjs} +1 -1
  159. package/dist/chunk-YPPJVDQI.mjs +2 -0
  160. package/dist/chunk-ZANMKAWS.mjs +2 -0
  161. package/dist/{chunk-6QBHU4DF.mjs → chunk-ZCP7BTOZ.mjs} +1 -1
  162. package/dist/{chunk-ERLAIBOA.mjs → chunk-ZEY2RLBT.mjs} +2 -2
  163. package/dist/{chunk-SQ6Y2ZMA.mjs → chunk-ZO7SFB2E.mjs} +2 -2
  164. package/dist/cli.mjs +1 -1
  165. package/dist/server.mjs +1 -1
  166. package/dist/worker.mjs +1 -1
  167. package/kit/board.css +5 -5
  168. package/kit/code.js +15 -15
  169. package/kit/math.js +1 -1
  170. package/kit/report.css +123 -44
  171. package/kit/runtime.js +45 -7
  172. package/kit/tables.js +2 -0
  173. package/kit/ui.js +2 -0
  174. package/package.json +1 -1
  175. package/packs/gallery/chart-view/kit.js +3 -3
  176. package/packs/gallery/chart-view/writing.md +1 -1
  177. package/packs/gallery/countdown/component.json +1 -1
  178. package/packs/gallery/countdown/kit.js +89 -29
  179. package/packs/gallery/countdown/preview.svg +1 -1
  180. package/packs/gallery/countdown/style.css +88 -100
  181. package/packs/gallery/countdown/writing.md +2 -2
  182. package/packs/gallery/habit/component.json +3 -3
  183. package/packs/gallery/habit/kit.js +114 -75
  184. package/packs/gallery/habit/preview.svg +1 -1
  185. package/packs/gallery/habit/style.css +133 -205
  186. package/packs/gallery/habit/writing.md +2 -2
  187. package/packs/gallery/heatmap/component.json +2 -2
  188. package/packs/gallery/heatmap/kit.js +335 -173
  189. package/packs/gallery/heatmap/preview.svg +1 -1
  190. package/packs/gallery/heatmap/style.css +158 -170
  191. package/packs/gallery/heatmap/writing.md +2 -2
  192. package/packs/gallery/kanban/kit.js +3 -3
  193. package/packs/gallery/kanban/writing.md +1 -1
  194. package/packs/gallery/metric/kit.js +3 -3
  195. package/packs/gallery/metric/writing.md +1 -1
  196. package/packs/gallery/note/component.json +3 -3
  197. package/packs/gallery/note/kit.js +40 -13
  198. package/packs/gallery/note/preview.svg +1 -1
  199. package/packs/gallery/note/style.css +51 -30
  200. package/packs/gallery/note/writing.md +2 -2
  201. package/packs/gallery/recent/component.json +2 -2
  202. package/packs/gallery/recent/kit.js +141 -86
  203. package/packs/gallery/recent/preview.svg +1 -1
  204. package/packs/gallery/recent/style.css +53 -126
  205. package/packs/gallery/recent/writing.md +2 -2
  206. package/packs/gallery/static/component.json +2 -2
  207. package/packs/gallery/static/preview.svg +1 -1
  208. package/packs/gallery/static/style.css +99 -66
  209. package/packs/gallery/static/writing.md +2 -2
  210. package/packs/gallery/stats/component.json +3 -3
  211. package/packs/gallery/stats/kit.js +253 -72
  212. package/packs/gallery/stats/preview.svg +1 -1
  213. package/packs/gallery/stats/style.css +64 -142
  214. package/packs/gallery/stats/writing.md +2 -2
  215. package/packs/gallery/today/component.json +2 -2
  216. package/packs/gallery/today/kit.js +62 -27
  217. package/packs/gallery/today/preview.svg +1 -1
  218. package/packs/gallery/today/style.css +101 -72
  219. package/packs/gallery/today/writing.md +2 -2
  220. package/packs/gallery/todos/component.json +1 -1
  221. package/packs/gallery/todos/kit.js +218 -71
  222. package/packs/gallery/todos/preview.svg +1 -1
  223. package/packs/gallery/todos/style.css +170 -223
  224. package/packs/gallery/todos/writing.md +1 -1
  225. package/packs/gallery/weather/component.json +2 -2
  226. package/packs/gallery/weather/kit.js +165 -90
  227. package/packs/gallery/weather/preview.svg +1 -1
  228. package/packs/gallery/weather/style.css +100 -218
  229. package/packs/gallery/weather/writing.md +1 -1
  230. package/packs/gallery-soft/countdown/component.json +18 -0
  231. package/packs/gallery-soft/countdown/example.html +3 -0
  232. package/packs/gallery-soft/countdown/kit.js +206 -0
  233. package/packs/gallery-soft/countdown/preview.svg +1 -0
  234. package/packs/gallery-soft/countdown/style.css +211 -0
  235. package/packs/gallery-soft/countdown/template.html +3 -0
  236. package/packs/gallery-soft/countdown/writing.md +24 -0
  237. package/packs/gallery-soft/habit/component.json +14 -0
  238. package/packs/gallery-soft/habit/example.html +3 -0
  239. package/packs/gallery-soft/habit/kit.js +366 -0
  240. package/packs/gallery-soft/habit/preview.svg +1 -0
  241. package/packs/gallery-soft/habit/style.css +251 -0
  242. package/packs/gallery-soft/habit/template.html +3 -0
  243. package/packs/gallery-soft/habit/writing.md +23 -0
  244. package/packs/gallery-soft/heatmap/component.json +18 -0
  245. package/packs/gallery-soft/heatmap/example.html +3 -0
  246. package/packs/gallery-soft/heatmap/kit.js +498 -0
  247. package/packs/gallery-soft/heatmap/preview.svg +1 -0
  248. package/packs/gallery-soft/heatmap/style.css +181 -0
  249. package/packs/gallery-soft/heatmap/template.html +3 -0
  250. package/packs/gallery-soft/heatmap/writing.md +23 -0
  251. package/packs/gallery-soft/note/component.json +14 -0
  252. package/packs/gallery-soft/note/example.html +3 -0
  253. package/packs/gallery-soft/note/kit.js +162 -0
  254. package/packs/gallery-soft/note/preview.svg +1 -0
  255. package/packs/gallery-soft/note/style.css +148 -0
  256. package/packs/gallery-soft/note/template.html +3 -0
  257. package/packs/gallery-soft/note/writing.md +20 -0
  258. package/packs/gallery-soft/recent/component.json +13 -0
  259. package/packs/gallery-soft/recent/example.html +1 -0
  260. package/packs/gallery-soft/recent/kit.js +335 -0
  261. package/packs/gallery-soft/recent/preview.svg +1 -0
  262. package/packs/gallery-soft/recent/style.css +160 -0
  263. package/packs/gallery-soft/recent/template.html +1 -0
  264. package/packs/gallery-soft/recent/writing.md +17 -0
  265. package/packs/gallery-soft/static/component.json +13 -0
  266. package/packs/gallery-soft/static/example.html +12 -0
  267. package/packs/gallery-soft/static/preview.svg +1 -0
  268. package/packs/gallery-soft/static/style.css +186 -0
  269. package/packs/gallery-soft/static/template.html +1 -0
  270. package/packs/gallery-soft/static/writing.md +20 -0
  271. package/packs/gallery-soft/stats/component.json +13 -0
  272. package/packs/gallery-soft/stats/example.html +1 -0
  273. package/packs/gallery-soft/stats/kit.js +341 -0
  274. package/packs/gallery-soft/stats/preview.svg +1 -0
  275. package/packs/gallery-soft/stats/style.css +119 -0
  276. package/packs/gallery-soft/stats/template.html +1 -0
  277. package/packs/gallery-soft/stats/writing.md +13 -0
  278. package/packs/gallery-soft/today/component.json +12 -0
  279. package/packs/gallery-soft/today/example.html +1 -0
  280. package/packs/gallery-soft/today/kit.js +222 -0
  281. package/packs/gallery-soft/today/preview.svg +1 -0
  282. package/packs/gallery-soft/today/style.css +178 -0
  283. package/packs/gallery-soft/today/template.html +1 -0
  284. package/packs/gallery-soft/today/writing.md +16 -0
  285. package/packs/gallery-soft/todos/component.json +19 -0
  286. package/packs/gallery-soft/todos/example.html +3 -0
  287. package/packs/gallery-soft/todos/kit.js +527 -0
  288. package/packs/gallery-soft/todos/preview.svg +1 -0
  289. package/packs/gallery-soft/todos/style.css +212 -0
  290. package/packs/gallery-soft/todos/template.html +3 -0
  291. package/packs/gallery-soft/todos/writing.md +32 -0
  292. package/packs/gallery-soft/weather/component.json +19 -0
  293. package/packs/gallery-soft/weather/example.html +3 -0
  294. package/packs/gallery-soft/weather/kit.js +411 -0
  295. package/packs/gallery-soft/weather/preview.svg +1 -0
  296. package/packs/gallery-soft/weather/style.css +185 -0
  297. package/packs/gallery-soft/weather/template.html +3 -0
  298. package/packs/gallery-soft/weather/writing.md +28 -0
  299. package/release.json +10 -10
  300. package/skill/SKILL.md +15 -14
  301. package/skill/references/building-blocks.md +4 -4
  302. package/skill/references/extensions.md +11 -7
  303. package/skill/references/pages-and-data.md +13 -9
  304. package/skill/references/writing-html.md +2 -0
  305. package/web/assets/index-BHC5ZOMh.js +15 -0
  306. package/web/assets/index-xP0uw3a0.css +1 -0
  307. package/web/index.html +2 -2
  308. package/dist/chunk-2NRBY6AJ.mjs +0 -2
  309. package/dist/chunk-35NQ4PLQ.mjs +0 -2
  310. package/dist/chunk-3KJHLHUO.mjs +0 -2
  311. package/dist/chunk-4AV456RQ.mjs +0 -2
  312. package/dist/chunk-5XYHDBJ5.mjs +0 -2
  313. package/dist/chunk-6A53MZYZ.mjs +0 -2
  314. package/dist/chunk-6EXH3ORZ.mjs +0 -166
  315. package/dist/chunk-BVEFGE4B.mjs +0 -2
  316. package/dist/chunk-D4EURAX4.mjs +0 -4
  317. package/dist/chunk-DQCE7TJY.mjs +0 -5
  318. package/dist/chunk-FWNRPMCJ.mjs +0 -12
  319. package/dist/chunk-FWW4CSAZ.mjs +0 -2
  320. package/dist/chunk-GY3FAUVM.mjs +0 -2
  321. package/dist/chunk-JVHHHGEA.mjs +0 -3
  322. package/dist/chunk-L7UP52JO.mjs +0 -2
  323. package/dist/chunk-NAMN3RAF.mjs +0 -2
  324. package/dist/chunk-PZDLJJTJ.mjs +0 -3
  325. package/dist/chunk-SXHBYZST.mjs +0 -16
  326. package/dist/chunk-TEZAWDSQ.mjs +0 -2
  327. package/dist/chunk-UFNYFFKO.mjs +0 -20
  328. package/dist/chunk-UKSHDZZ6.mjs +0 -2
  329. package/dist/chunk-VJPFVNNW.mjs +0 -15
  330. package/dist/chunk-VS3ZMVGX.mjs +0 -5
  331. package/web/assets/index-BK2e_07w.js +0 -13
  332. package/web/assets/index-CWFI83mF.css +0 -1
  333. /package/dist/{chunk-YEY3RSFQ.mjs → chunk-5MMN3N5J.mjs} +0 -0
  334. /package/dist/{chunk-UH4SIXTR.mjs → chunk-74UW7QSL.mjs} +0 -0
  335. /package/dist/{chunk-W7XHE4CT.mjs → chunk-EKGYYOSP.mjs} +0 -0
  336. /package/dist/{chunk-QAIHRH3I.mjs → chunk-KNZJT4ET.mjs} +0 -0
  337. /package/dist/{chunk-A55HN5OK.mjs → chunk-N3DSBH5S.mjs} +0 -0
  338. /package/dist/{chunk-QR6A54KJ.mjs → chunk-ZW2A6GBW.mjs} +0 -0
@@ -1,85 +1,82 @@
1
1
  /* Every selector starts at the instance and goes down a step at a time (>), so that nothing here
2
- reaches the rest of the page. The face fills its card on a custom page (the board draws the frame), in
3
- the kit's card tokens, laid out as a grid: the chip (the sun by day in its warm color, the moon in the
4
- evening in the accent) and the date beside it, the date in the text's color and the weekday muted, its
5
- end clear of the card's grip; the greeting large in the middle of the room under them; on a card wide
6
- enough (past 260px) the week at the bottom, each day's initial over its date, muted, the days gone
7
- fainter still, today's 今 over its date on a quiet gray in the accent; the number of the week its head's
8
- quiet meta at the end; a glow at the card's top left, the sun's warm color by day, the accent's in the
9
- evening, as the hero of a home page (the face's data-sky), fainter in dark, where a warm wash on the
10
- card's gray reads as haze. The greeting grows with the card's width (the instance is a container: cqi),
11
- between a least and a most, so that a 2 x 2 card and a 4 x 2 one at 1920 both read as a widget. A narrow
12
- card's head is the date alone, its weekday left out, on one line. Light and dark. */
2
+ reaches the rest of the page. The face (the pack's design B) in the kit's card tokens, a grid laid out by
3
+ the card's cells (the face's data-layout, which the script sets from context.size): "full" (4 × 2, the
4
+ default) a head of the chip, the date (600) and the number of the week after it (the head's quiet meta),
5
+ the greeting large under it and the week at the bottom, seven days of 38px, the days gone fainter,
6
+ today the one solid square of the accent; "narrow" (2 wide) a page of a desk calendar, the greeting
7
+ the head's title, today's day of the month large at the bottom, its weekday and month under it;
8
+ "line" (one cell high) the chip, the greeting and the date on one line. The chip is the sun's warm
9
+ color by day and the accent's pale blue in the evening, and so is the soft glow at the card's top left
10
+ (the face's data-sky), drawn from the card's edges: the face taken out over the card's padding and
11
+ given it back. Its head keeps clear of the card's grip. Light and dark. */
13
12
  [data-doc-component="gallery/today"] {
14
- container-type: inline-size;
15
- --gallery-today-sun: light-dark(#d98a1c, #f0b44f);
16
- --gallery-today-sun-soft: light-dark(rgb(217 138 28 / 11%), rgb(240 180 79 / 14%));
17
- /* The glow at the card's top left: the sun's warm color by day, the accent's in the evening. */
18
- --gallery-today-glow: light-dark(rgb(240 160 60 / 12%), rgb(240 180 79 / 3.5%));
19
- --gallery-today-glow-evening: light-dark(rgb(46 124 209 / 8%), rgb(92 154 217 / 6%));
13
+ --gallery-today-glow: light-dark(rgb(255 183 77 / 20%), rgb(255 170 60 / 8.5%));
14
+ --gallery-today-glow-evening: light-dark(rgb(64 132 207 / 13%), rgb(80 143 214 / 15%));
15
+ font-family: var(--gallery-font);
16
+ font-size: 13px;
17
+ line-height: 1.5;
18
+ color: var(--gallery-text);
20
19
  > .gallery-today-face {
21
20
  display: grid;
22
- grid-template-columns: auto minmax(0, 1fr) auto;
23
- grid-template-rows: auto 1fr auto;
24
- grid-template-areas: "chip date meta" "greeting greeting greeting" "week week week";
25
- align-items: center;
26
- gap: 8px 10px;
21
+ grid-template-columns: auto minmax(0, max-content) auto minmax(var(--gallery-grip-room, 0px), 1fr);
22
+ grid-template-rows: 20px auto 1fr;
23
+ grid-template-areas: "chip date meta ." "greeting greeting greeting greeting" "week week week week";
24
+ column-gap: 8px;
27
25
  box-sizing: border-box;
28
- height: 100%;
29
26
  min-height: 0;
30
- color: var(--gallery-text);
31
27
  }
32
28
  > .gallery-today-face > .gallery-today-chip {
33
29
  grid-area: chip;
34
- display: inline-flex;
35
- align-items: center;
36
- justify-content: center;
30
+ align-self: center;
31
+ display: grid;
32
+ place-items: center;
37
33
  width: var(--gallery-chip-size);
38
34
  height: var(--gallery-chip-size);
39
35
  border-radius: var(--gallery-chip-radius);
40
- background: var(--gallery-accent-soft);
41
- color: var(--gallery-accent);
36
+ background: var(--gallery-warm-soft);
37
+ color: var(--gallery-warm);
42
38
  }
43
- > .gallery-today-face > .gallery-today-chip[data-sky="sun"] { background: var(--gallery-today-sun-soft); color: var(--gallery-today-sun); }
44
- > .gallery-today-face > .gallery-today-chip > svg { width: var(--gallery-chip-icon); height: var(--gallery-chip-icon); }
39
+ > .gallery-today-face > .gallery-today-chip[data-sky="moon"] { background: var(--gallery-accent-soft); color: var(--gallery-accent-ink); }
40
+ > .gallery-today-face > .gallery-today-chip > svg { display: block; width: var(--gallery-chip-icon); height: var(--gallery-chip-icon); }
45
41
  > .gallery-today-face > .gallery-today-date {
46
42
  grid-area: date;
47
- display: block;
43
+ align-self: center;
48
44
  min-width: 0;
45
+ overflow: hidden;
46
+ white-space: nowrap;
47
+ text-overflow: ellipsis;
49
48
  font-size: var(--gallery-title-size);
50
- line-height: 18px;
51
- color: var(--doc-muted);
49
+ line-height: var(--gallery-title-line);
50
+ font-weight: 600;
51
+ color: var(--gallery-text);
52
52
  }
53
- /* The number of the week, the head's quiet meta at its end, at the content's edge, faded while the card's grip shows. */
54
53
  > .gallery-today-face > .gallery-today-meta {
55
54
  grid-area: meta;
56
- opacity: calc(1 - var(--gallery-grip-shown, 0));
57
- transition: opacity .12s ease-out;
55
+ align-self: center;
58
56
  font-size: var(--gallery-meta-size);
59
- line-height: 18px;
60
- color: var(--doc-muted);
57
+ line-height: var(--gallery-title-line);
58
+ color: var(--gallery-faint);
61
59
  white-space: nowrap;
62
60
  }
63
- /* The date in the text's color, its weekday muted; they break between them, never inside either. */
64
- > .gallery-today-face > .gallery-today-date > span { display: inline-block; }
65
- > .gallery-today-face > .gallery-today-date > span:not(.gallery-today-weekday) { color: var(--gallery-text-strong); font-weight: 600; }
66
61
  > .gallery-today-face > .gallery-today-greeting {
67
62
  grid-area: greeting;
68
- align-self: center;
69
- margin: 0;
70
- font-size: clamp(24px, 10.5cqi, 48px);
71
- line-height: 1.15;
63
+ margin: 8px 0 0;
64
+ font-size: 28px;
65
+ line-height: 34px;
72
66
  font-weight: 600;
73
- letter-spacing: -.02em;
67
+ letter-spacing: .02em;
74
68
  color: var(--gallery-text-strong);
75
- overflow-wrap: anywhere;
69
+ white-space: nowrap;
70
+ overflow: hidden;
71
+ text-overflow: ellipsis;
76
72
  }
77
73
  > .gallery-today-face > .gallery-today-week {
78
74
  grid-area: week;
75
+ align-self: end;
79
76
  display: grid;
80
77
  grid-template-columns: repeat(7, minmax(0, 1fr));
81
- gap: 2px;
82
- margin: 8px 0 0;
78
+ gap: 4px;
79
+ margin: 0;
83
80
  padding: 0;
84
81
  list-style: none;
85
82
  }
@@ -87,34 +84,66 @@
87
84
  display: flex;
88
85
  flex-direction: column;
89
86
  align-items: center;
90
- gap: 3px;
91
- padding: 4px 0;
92
- border-radius: 8px;
87
+ justify-content: center;
88
+ height: 38px;
89
+ border-radius: 9px;
90
+ }
91
+ > .gallery-today-face > .gallery-today-week > .gallery-today-day > .gallery-today-initial { font-size: 10.5px; line-height: 14px; color: var(--gallery-faint); }
92
+ > .gallery-today-face > .gallery-today-week > .gallery-today-day > .gallery-today-number { font-size: 13px; line-height: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gallery-text); }
93
+ > .gallery-today-face > .gallery-today-week > .gallery-today-past > .gallery-today-number { font-weight: 500; color: var(--gallery-faint); }
94
+ > .gallery-today-face > .gallery-today-week > .gallery-today-now { background: var(--gallery-accent); }
95
+ > .gallery-today-face > .gallery-today-week > .gallery-today-now > .gallery-today-initial { color: rgb(255 255 255 / 82%); }
96
+ > .gallery-today-face > .gallery-today-week > .gallery-today-now > .gallery-today-number { color: #fff; }
97
+ > .gallery-today-face > :is(.gallery-today-big, .gallery-today-foot) { display: none; }
98
+ > .gallery-today-face > .gallery-today-big {
99
+ grid-area: big;
100
+ align-self: end;
101
+ font-size: 56px;
93
102
  line-height: 1;
103
+ font-weight: var(--gallery-numeral-weight);
104
+ letter-spacing: -.04em;
105
+ font-variant-numeric: lining-nums;
106
+ color: var(--gallery-text-strong);
94
107
  }
95
- > .gallery-today-face > .gallery-today-week > .gallery-today-day > .gallery-today-initial { font-size: 11px; color: var(--doc-muted); }
96
- > .gallery-today-face > .gallery-today-week > .gallery-today-day > .gallery-today-number { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--doc-muted); }
97
- > .gallery-today-face > .gallery-today-week > .gallery-today-past { opacity: .55; }
98
- > .gallery-today-face > .gallery-today-week > .gallery-today-now { background: var(--gallery-neutral-soft); }
99
- > .gallery-today-face > .gallery-today-week > .gallery-today-now > .gallery-today-initial,
100
- > .gallery-today-face > .gallery-today-week > .gallery-today-now > .gallery-today-number { color: var(--gallery-accent); font-weight: 600; }
101
- }
102
- /* A narrow card (2 wide): no week, no week's number; the greeting in the middle of the room under the date. */
103
- @container (max-width: 260px) {
104
- [data-doc-component="gallery/today"] > .gallery-today-face { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "chip date" "greeting greeting"; }
105
- [data-doc-component="gallery/today"] > .gallery-today-face > .gallery-today-date { padding-inline-end: var(--gallery-grip-room, 0px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
106
- [data-doc-component="gallery/today"] > .gallery-today-face > .gallery-today-date > .gallery-today-weekday { display: none; }
107
- [data-doc-component="gallery/today"] > .gallery-today-face > :is(.gallery-today-week, .gallery-today-meta) { display: none; }
108
- [data-doc-component="gallery/today"] > .gallery-today-face > .gallery-today-greeting { font-size: clamp(24px, 15cqi, 44px); }
108
+ > .gallery-today-face > .gallery-today-foot { grid-area: foot; margin-top: 8px; font-size: 12.5px; line-height: 16px; color: var(--gallery-muted); white-space: nowrap; }
109
+ > .gallery-today-face > .gallery-today-foot > .gallery-today-dot { margin: 0 5px; color: var(--gallery-faintest); }
110
+
111
+ /* A narrow card: a page of a desk calendar. */
112
+ > .gallery-today-face[data-layout="narrow"] {
113
+ grid-template-columns: auto minmax(0, 1fr);
114
+ grid-template-rows: 20px 1fr auto;
115
+ grid-template-areas: "chip greeting" "big big" "foot foot";
116
+ }
117
+ > .gallery-today-face[data-layout="narrow"] > :is(.gallery-today-date, .gallery-today-meta, .gallery-today-week) { display: none; }
118
+ > .gallery-today-face[data-layout="narrow"] > :is(.gallery-today-big, .gallery-today-foot) { display: block; }
119
+ > .gallery-today-face[data-layout="narrow"] > .gallery-today-greeting {
120
+ align-self: center;
121
+ margin: 0;
122
+ padding-inline-end: var(--gallery-grip-room, 0px);
123
+ font-size: var(--gallery-title-size);
124
+ line-height: var(--gallery-title-line);
125
+ letter-spacing: 0;
126
+ color: var(--gallery-text);
127
+ }
128
+ /* A card one cell high: a line. */
129
+ > .gallery-today-face[data-layout="line"] {
130
+ grid-template-columns: auto auto minmax(0, 1fr);
131
+ grid-template-rows: 1fr;
132
+ grid-template-areas: "chip greeting date";
133
+ align-items: center;
134
+ }
135
+ > .gallery-today-face[data-layout="line"] > :is(.gallery-today-meta, .gallery-today-week) { display: none; }
136
+ > .gallery-today-face[data-layout="line"] > .gallery-today-greeting { margin: 0; font-size: 15px; line-height: 20px; letter-spacing: 0; }
137
+ > .gallery-today-face[data-layout="line"] > .gallery-today-date { margin-inline-start: 4px; padding-inline-end: var(--gallery-grip-room, 0px); font-weight: 400; color: var(--gallery-muted); }
109
138
  }
110
- /* On a custom page the face is the card's: as high as what the card holds inside its padding, and its
111
- glow the whole card's, from its edges (the face taken out over the card's padding and given it back). */
139
+ /* On a custom page the face is the card's: as high as what the card holds inside its padding, and its glow
140
+ the whole card's, from its edges (the face taken out over the card's padding and given it back). */
112
141
  .gallery-card > [data-doc-component="gallery/today"] { height: 100%; }
113
142
  .gallery-card > [data-doc-component="gallery/today"] > .gallery-today-face {
114
143
  height: calc(100% + 2 * var(--gallery-card-pad));
115
144
  margin: calc(-1 * var(--gallery-card-pad));
116
145
  padding: var(--gallery-card-pad);
117
- border-radius: calc(var(--gallery-card-radius) - 1px);
118
- background: linear-gradient(160deg, var(--gallery-today-glow) 0%, transparent 62%);
146
+ border-radius: var(--gallery-card-radius);
147
+ background: radial-gradient(110% 100% at 0% 0%, var(--gallery-today-glow), transparent 62%);
119
148
  }
120
- .gallery-card > [data-doc-component="gallery/today"] > .gallery-today-face[data-sky="moon"] { background: linear-gradient(160deg, var(--gallery-today-glow-evening) 0%, transparent 62%); }
149
+ .gallery-card > [data-doc-component="gallery/today"] > .gallery-today-face[data-sky="moon"] { background: radial-gradient(110% 100% at 0% 0%, var(--gallery-today-glow-evening), transparent 62%); }
@@ -6,9 +6,9 @@ A card for a custom page (its places are `page`): a greeting by the time of day
6
6
 
7
7
  Put it on a custom page as a card of its board, `<section class="gallery-card" data-card-id="…" data-x data-y data-w data-h>`, holding one instance, after `gallery block add today`: the instance is empty, `<div data-doc-component="gallery/today"></div>`, everything on it drawn by its script. It has no settings and holds no data: there is nothing to fill in and nothing it writes.
8
8
 
9
- - Sizes: 4 × 2 (the default: the date at the top, the greeting in the middle, the week at the bottom) and 2 × 2 (the date and the greeting, no week). The user may switch between them.
9
+ - Sizes: 4 × 2 (the default: the date and the week's number at the top, the greeting large, this week at the bottom), 2 × 2 (a page of a desk calendar: the greeting, today's day of the month large, its weekday and month) and 4 × 1 (one line: the greeting and the date). The user may switch between them.
10
10
  - Its places hold no document: no document's menu offers it. In a document it would show the same words, framed by nothing.
11
11
 
12
12
  ## How it looks
13
13
 
14
- The date beside a chip of the sun (by day) or the moon (in the evening) at the top, the number of the week (第 46 周) at its end, the greeting large in the middle, a soft glow at the card's top left (warm by day, the accent's blue in the evening), and on a card wide enough the week it is in at the bottom, Monday to Sunday, today's 今 over its date and marked (a 2 × 2 card's top line the date alone, no weekday); in the kit's card tokens (as every Gallery card: a head of a tinted chip and a title, its end clear of the card's grip), light and dark. It changes by itself: the greeting as the hour turns (it hears the kit's clock each minute), the date at midnight. The script runs with the rights of the page's own scripts, as any block's does.
14
+ In Gallery 风格's look (the kit's card tokens, light and dark): a head of a small gray chip and a title, its end clear of the card's grip; one hero; the rest small and gray; the accent on the data and on today alone. The chip is the sun in its warm color by day and the moon in the accent's in the evening, and so is a soft glow at the card's top left, the one mood of a home page. On a 4 × 2 card the greeting is 28px and this week sits at the bottom, seven days, the days gone fainter, today the one solid square of the accent; a 2 × 2 card is a page of a desk calendar, today's day of the month 56px; a 4 × 1 card one line. It changes by itself: the greeting as the hour turns (it hears the kit's clock each minute), the date at midnight. The script runs with the rights of the page's own scripts, as any block's does.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "gallery/todos",
3
3
  "apiVersion": 1,
4
- "version": "1.3.0",
4
+ "version": "2.0.0",
5
5
  "name": { "zh": "我的待办", "en": "My to-dos" },
6
6
  "description": { "zh": "所有文档里没完成的待办:勾选就写回那篇文档,点文字打开它", "en": "The to-dos of every document not done yet: check one in its document, or click it to open it there" },
7
7
  "words": "wodedaiban daiban renwu todo todos tasks checklist 待办 任务 清单 我的待办 没完成",