@jean-is/render 0.8.0-rba68a676ffad → 0.8.0-rede3e4e8e9a5
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.
- package/brand.js +3 -1
- package/caps/charts/charts.css +5 -2
- package/caps/charts/charts.js +45 -24
- package/caps/charts/option.js +11 -1
- package/caps/files/midi.js +1 -1
- package/caps/files/office.js +4 -4
- package/caps/games/file.js +56 -0
- package/caps/games/frame.css +22 -0
- package/caps/games/guard.js +86 -0
- package/caps/games/page.js +52 -0
- package/caps/games/shell.js +260 -0
- package/caps/interactive/apps.js +23 -8
- package/caps/interactive/diagram.js +96 -22
- package/caps/interactive/interactive.css +22 -6
- package/caps/interactive/interactive.js +25 -10
- package/caps/interactive/live.js +96 -0
- package/caps/interactive/map.js +22 -2
- package/caps/interactive/mode.js +9 -6
- package/caps/interactive/page-diagram.js +6 -2
- package/caps/interactive/parts.js +124 -0
- package/caps/interactive/view-parts.js +209 -0
- package/caps/layouts/layouts.css +12 -12
- package/caps/layouts/layouts.js +25 -17
- package/caps/layouts/shapes.js +1 -1
- package/caps/made/formats.js +84 -46
- package/caps/made/paper.js +142 -0
- package/caps/math/math.js +2 -2
- package/caps/scores/scores.css +10 -4
- package/caps/scores/scores.js +99 -51
- package/caps/share/view.js +1 -1
- package/caps/skills/directory.js +6 -3
- package/caps/skills/sources.js +4 -2
- package/caps/slides/edit.js +2 -2
- package/caps/slides/kit-page.css +8 -2
- package/caps/slides/kit-page.js +47 -38
- package/caps/slides/kit-sample.js +36 -0
- package/caps/slides/kit-slot.js +10 -0
- package/caps/slides/kit.js +3 -0
- package/caps/slides/save.js +24 -58
- package/caps/slides/slides.css +9 -9
- package/caps/slides/slides.js +24 -24
- package/caps/tables/formula.js +133 -0
- package/core/conversations.js +151 -0
- package/core/deferred.js +36 -16
- package/core/events.js +1 -1
- package/core/files.js +9 -3
- package/core/fs.js +3 -11
- package/core/hooks.js +2 -2
- package/core/i18n.js +1 -1
- package/core/llm.js +34 -45
- package/core/loop.js +15 -17
- package/core/oauth.js +31 -0
- package/core/search.js +1 -1
- package/core/settings.js +12 -11
- package/core/skills.js +3 -3
- package/core/vertex.js +37 -0
- package/locales/am.json +19 -3
- package/locales/approvals/am.json +2 -1
- package/locales/approvals/ar.json +2 -1
- package/locales/approvals/bg.json +2 -1
- package/locales/approvals/bn.json +2 -1
- package/locales/approvals/br.json +2 -1
- package/locales/approvals/co.json +2 -1
- package/locales/approvals/cs.json +2 -1
- package/locales/approvals/da.json +2 -1
- package/locales/approvals/de.json +2 -1
- package/locales/approvals/el.json +2 -1
- package/locales/approvals/en.json +2 -1
- package/locales/approvals/es.json +2 -1
- package/locales/approvals/fa.json +2 -1
- package/locales/approvals/fi.json +2 -1
- package/locales/approvals/fr-CA.json +2 -1
- package/locales/approvals/fr.json +2 -1
- package/locales/approvals/ha.json +2 -1
- package/locales/approvals/he.json +2 -1
- package/locales/approvals/hi.json +2 -1
- package/locales/approvals/hr.json +2 -1
- package/locales/approvals/hu.json +2 -1
- package/locales/approvals/id.json +2 -1
- package/locales/approvals/it.json +2 -1
- package/locales/approvals/ja.json +2 -1
- package/locales/approvals/ko.json +2 -1
- package/locales/approvals/mr.json +2 -1
- package/locales/approvals/ms.json +2 -1
- package/locales/approvals/nl.json +2 -1
- package/locales/approvals/pl.json +2 -1
- package/locales/approvals/pt.json +2 -1
- package/locales/approvals/ro.json +2 -1
- package/locales/approvals/ru.json +2 -1
- package/locales/approvals/sk.json +2 -1
- package/locales/approvals/sv.json +2 -1
- package/locales/approvals/sw.json +2 -1
- package/locales/approvals/ta.json +2 -1
- package/locales/approvals/te.json +2 -1
- package/locales/approvals/th.json +2 -1
- package/locales/approvals/tl.json +2 -1
- package/locales/approvals/tr.json +2 -1
- package/locales/approvals/uk.json +2 -1
- package/locales/approvals/ur.json +2 -1
- package/locales/approvals/vi.json +2 -1
- package/locales/approvals/yo.json +2 -1
- package/locales/approvals/zh-Hans.json +2 -1
- package/locales/approvals/zh-Hant.json +2 -1
- package/locales/ar.json +23 -3
- package/locales/bg.json +19 -3
- package/locales/bn.json +19 -3
- package/locales/br.json +22 -3
- package/locales/brains/am.json +6 -3
- package/locales/brains/ar.json +6 -3
- package/locales/brains/bg.json +6 -3
- package/locales/brains/bn.json +6 -3
- package/locales/brains/br.json +6 -3
- package/locales/brains/co.json +6 -3
- package/locales/brains/cs.json +6 -3
- package/locales/brains/da.json +6 -3
- package/locales/brains/de.json +6 -3
- package/locales/brains/el.json +6 -3
- package/locales/brains/en.json +6 -3
- package/locales/brains/es.json +6 -3
- package/locales/brains/fa.json +6 -3
- package/locales/brains/fi.json +6 -3
- package/locales/brains/fr-CA.json +6 -3
- package/locales/brains/fr.json +6 -3
- package/locales/brains/ha.json +6 -3
- package/locales/brains/he.json +6 -3
- package/locales/brains/hi.json +6 -3
- package/locales/brains/hr.json +6 -3
- package/locales/brains/hu.json +6 -3
- package/locales/brains/id.json +6 -3
- package/locales/brains/it.json +6 -3
- package/locales/brains/ja.json +6 -3
- package/locales/brains/ko.json +6 -3
- package/locales/brains/mr.json +6 -3
- package/locales/brains/ms.json +6 -3
- package/locales/brains/nl.json +6 -3
- package/locales/brains/pl.json +6 -3
- package/locales/brains/pt.json +6 -3
- package/locales/brains/ro.json +6 -3
- package/locales/brains/ru.json +6 -3
- package/locales/brains/sk.json +6 -3
- package/locales/brains/sv.json +6 -3
- package/locales/brains/sw.json +6 -3
- package/locales/brains/ta.json +6 -3
- package/locales/brains/te.json +6 -3
- package/locales/brains/th.json +6 -3
- package/locales/brains/tl.json +6 -3
- package/locales/brains/tr.json +6 -3
- package/locales/brains/uk.json +6 -3
- package/locales/brains/ur.json +6 -3
- package/locales/brains/vi.json +6 -3
- package/locales/brains/yo.json +6 -3
- package/locales/brains/zh-Hans.json +6 -3
- package/locales/brains/zh-Hant.json +6 -3
- package/locales/camera/am.json +20 -0
- package/locales/camera/ar.json +20 -0
- package/locales/camera/bg.json +20 -0
- package/locales/camera/bn.json +20 -0
- package/locales/camera/br.json +20 -0
- package/locales/camera/co.json +20 -0
- package/locales/camera/cs.json +20 -0
- package/locales/camera/da.json +20 -0
- package/locales/camera/de.json +20 -0
- package/locales/camera/el.json +20 -0
- package/locales/camera/en.json +20 -0
- package/locales/camera/es.json +20 -0
- package/locales/camera/fa.json +20 -0
- package/locales/camera/fi.json +20 -0
- package/locales/camera/fr-CA.json +20 -0
- package/locales/camera/fr.json +20 -0
- package/locales/camera/ha.json +20 -0
- package/locales/camera/he.json +20 -0
- package/locales/camera/hi.json +20 -0
- package/locales/camera/hr.json +20 -0
- package/locales/camera/hu.json +20 -0
- package/locales/camera/id.json +20 -0
- package/locales/camera/it.json +20 -0
- package/locales/camera/ja.json +20 -0
- package/locales/camera/ko.json +20 -0
- package/locales/camera/mr.json +20 -0
- package/locales/camera/ms.json +20 -0
- package/locales/camera/nl.json +20 -0
- package/locales/camera/pl.json +20 -0
- package/locales/camera/pt.json +20 -0
- package/locales/camera/ro.json +20 -0
- package/locales/camera/ru.json +20 -0
- package/locales/camera/sk.json +20 -0
- package/locales/camera/sv.json +20 -0
- package/locales/camera/sw.json +20 -0
- package/locales/camera/ta.json +20 -0
- package/locales/camera/te.json +20 -0
- package/locales/camera/th.json +20 -0
- package/locales/camera/tl.json +20 -0
- package/locales/camera/tr.json +20 -0
- package/locales/camera/uk.json +20 -0
- package/locales/camera/ur.json +20 -0
- package/locales/camera/vi.json +20 -0
- package/locales/camera/yo.json +20 -0
- package/locales/camera/zh-Hans.json +20 -0
- package/locales/camera/zh-Hant.json +20 -0
- package/locales/charts/am.json +2 -0
- package/locales/charts/ar.json +2 -0
- package/locales/charts/bg.json +2 -0
- package/locales/charts/bn.json +2 -0
- package/locales/charts/br.json +2 -0
- package/locales/charts/co.json +2 -0
- package/locales/charts/cs.json +2 -0
- package/locales/charts/da.json +2 -0
- package/locales/charts/de.json +2 -0
- package/locales/charts/el.json +2 -0
- package/locales/charts/en.json +2 -0
- package/locales/charts/es.json +2 -0
- package/locales/charts/fa.json +2 -0
- package/locales/charts/fi.json +2 -0
- package/locales/charts/fr-CA.json +2 -0
- package/locales/charts/fr.json +2 -0
- package/locales/charts/ha.json +2 -0
- package/locales/charts/he.json +2 -0
- package/locales/charts/hi.json +2 -0
- package/locales/charts/hr.json +2 -0
- package/locales/charts/hu.json +2 -0
- package/locales/charts/id.json +2 -0
- package/locales/charts/it.json +2 -0
- package/locales/charts/ja.json +2 -0
- package/locales/charts/ko.json +2 -0
- package/locales/charts/mr.json +2 -0
- package/locales/charts/ms.json +2 -0
- package/locales/charts/nl.json +2 -0
- package/locales/charts/pl.json +2 -0
- package/locales/charts/pt.json +2 -0
- package/locales/charts/ro.json +2 -0
- package/locales/charts/ru.json +2 -0
- package/locales/charts/sk.json +2 -0
- package/locales/charts/sv.json +2 -0
- package/locales/charts/sw.json +2 -0
- package/locales/charts/ta.json +2 -0
- package/locales/charts/te.json +2 -0
- package/locales/charts/th.json +2 -0
- package/locales/charts/tl.json +2 -0
- package/locales/charts/tr.json +2 -0
- package/locales/charts/uk.json +2 -0
- package/locales/charts/ur.json +2 -0
- package/locales/charts/vi.json +2 -0
- package/locales/charts/yo.json +2 -0
- package/locales/charts/zh-Hans.json +2 -0
- package/locales/charts/zh-Hant.json +2 -0
- package/locales/co.json +20 -3
- package/locales/creations/am.json +4 -0
- package/locales/creations/ar.json +4 -0
- package/locales/creations/bg.json +4 -0
- package/locales/creations/bn.json +4 -0
- package/locales/creations/br.json +4 -0
- package/locales/creations/co.json +4 -0
- package/locales/creations/cs.json +4 -0
- package/locales/creations/da.json +4 -0
- package/locales/creations/de.json +4 -0
- package/locales/creations/el.json +4 -0
- package/locales/creations/en.json +4 -0
- package/locales/creations/es.json +4 -0
- package/locales/creations/fa.json +4 -0
- package/locales/creations/fi.json +4 -0
- package/locales/creations/fr-CA.json +4 -0
- package/locales/creations/fr.json +4 -0
- package/locales/creations/ha.json +4 -0
- package/locales/creations/he.json +4 -0
- package/locales/creations/hi.json +4 -0
- package/locales/creations/hr.json +4 -0
- package/locales/creations/hu.json +4 -0
- package/locales/creations/id.json +4 -0
- package/locales/creations/it.json +4 -0
- package/locales/creations/ja.json +4 -0
- package/locales/creations/ko.json +4 -0
- package/locales/creations/mr.json +4 -0
- package/locales/creations/ms.json +4 -0
- package/locales/creations/nl.json +4 -0
- package/locales/creations/pl.json +4 -0
- package/locales/creations/pt.json +4 -0
- package/locales/creations/ro.json +4 -0
- package/locales/creations/ru.json +4 -0
- package/locales/creations/sk.json +4 -0
- package/locales/creations/sv.json +4 -0
- package/locales/creations/sw.json +4 -0
- package/locales/creations/ta.json +4 -0
- package/locales/creations/te.json +4 -0
- package/locales/creations/th.json +4 -0
- package/locales/creations/tl.json +4 -0
- package/locales/creations/tr.json +4 -0
- package/locales/creations/uk.json +4 -0
- package/locales/creations/ur.json +4 -0
- package/locales/creations/vi.json +4 -0
- package/locales/creations/yo.json +4 -0
- package/locales/creations/zh-Hans.json +4 -0
- package/locales/creations/zh-Hant.json +4 -0
- package/locales/cs.json +21 -3
- package/locales/da.json +19 -3
- package/locales/de.json +19 -3
- package/locales/designs/am.json +0 -14
- package/locales/designs/ar.json +0 -14
- package/locales/designs/bg.json +0 -14
- package/locales/designs/bn.json +0 -14
- package/locales/designs/br.json +0 -14
- package/locales/designs/co.json +0 -14
- package/locales/designs/cs.json +0 -14
- package/locales/designs/da.json +0 -14
- package/locales/designs/de.json +0 -14
- package/locales/designs/el.json +0 -14
- package/locales/designs/en.json +0 -14
- package/locales/designs/es.json +0 -14
- package/locales/designs/fa.json +0 -14
- package/locales/designs/fi.json +0 -14
- package/locales/designs/fr-CA.json +0 -14
- package/locales/designs/fr.json +0 -14
- package/locales/designs/ha.json +0 -14
- package/locales/designs/he.json +0 -14
- package/locales/designs/hi.json +0 -14
- package/locales/designs/hr.json +0 -14
- package/locales/designs/hu.json +0 -14
- package/locales/designs/id.json +0 -14
- package/locales/designs/it.json +0 -14
- package/locales/designs/ja.json +0 -14
- package/locales/designs/ko.json +0 -14
- package/locales/designs/mr.json +0 -14
- package/locales/designs/ms.json +0 -14
- package/locales/designs/nl.json +0 -14
- package/locales/designs/pl.json +0 -14
- package/locales/designs/pt.json +0 -14
- package/locales/designs/ro.json +0 -14
- package/locales/designs/ru.json +0 -14
- package/locales/designs/sk.json +0 -14
- package/locales/designs/sv.json +0 -14
- package/locales/designs/sw.json +0 -14
- package/locales/designs/ta.json +0 -14
- package/locales/designs/te.json +0 -14
- package/locales/designs/th.json +0 -14
- package/locales/designs/tl.json +0 -14
- package/locales/designs/tr.json +0 -14
- package/locales/designs/uk.json +0 -14
- package/locales/designs/ur.json +0 -14
- package/locales/designs/vi.json +0 -14
- package/locales/designs/yo.json +0 -14
- package/locales/designs/zh-Hans.json +0 -14
- package/locales/designs/zh-Hant.json +0 -14
- package/locales/dialogs/am.json +7 -0
- package/locales/dialogs/ar.json +7 -0
- package/locales/dialogs/bg.json +7 -0
- package/locales/dialogs/bn.json +7 -0
- package/locales/dialogs/br.json +7 -0
- package/locales/dialogs/co.json +7 -0
- package/locales/dialogs/cs.json +7 -0
- package/locales/dialogs/da.json +7 -0
- package/locales/dialogs/de.json +7 -0
- package/locales/dialogs/el.json +7 -0
- package/locales/dialogs/en.json +7 -0
- package/locales/dialogs/es.json +7 -0
- package/locales/dialogs/fa.json +7 -0
- package/locales/dialogs/fi.json +7 -0
- package/locales/dialogs/fr-CA.json +9 -2
- package/locales/dialogs/fr.json +9 -2
- package/locales/dialogs/ha.json +7 -0
- package/locales/dialogs/he.json +7 -0
- package/locales/dialogs/hi.json +7 -0
- package/locales/dialogs/hr.json +7 -0
- package/locales/dialogs/hu.json +7 -0
- package/locales/dialogs/id.json +7 -0
- package/locales/dialogs/it.json +7 -0
- package/locales/dialogs/ja.json +7 -0
- package/locales/dialogs/ko.json +7 -0
- package/locales/dialogs/mr.json +7 -0
- package/locales/dialogs/ms.json +7 -0
- package/locales/dialogs/nl.json +7 -0
- package/locales/dialogs/pl.json +7 -0
- package/locales/dialogs/pt.json +7 -0
- package/locales/dialogs/ro.json +7 -0
- package/locales/dialogs/ru.json +7 -0
- package/locales/dialogs/sk.json +7 -0
- package/locales/dialogs/sv.json +7 -0
- package/locales/dialogs/sw.json +7 -0
- package/locales/dialogs/ta.json +7 -0
- package/locales/dialogs/te.json +7 -0
- package/locales/dialogs/th.json +7 -0
- package/locales/dialogs/tl.json +7 -0
- package/locales/dialogs/tr.json +7 -0
- package/locales/dialogs/uk.json +7 -0
- package/locales/dialogs/ur.json +7 -0
- package/locales/dialogs/vi.json +7 -0
- package/locales/dialogs/yo.json +7 -0
- package/locales/dialogs/zh-Hans.json +7 -0
- package/locales/dialogs/zh-Hant.json +7 -0
- package/locales/documents/am.json +6 -0
- package/locales/documents/ar.json +6 -0
- package/locales/documents/bg.json +6 -0
- package/locales/documents/bn.json +6 -0
- package/locales/documents/br.json +6 -0
- package/locales/documents/co.json +6 -0
- package/locales/documents/cs.json +6 -0
- package/locales/documents/da.json +6 -0
- package/locales/documents/de.json +6 -0
- package/locales/documents/el.json +6 -0
- package/locales/documents/en.json +6 -0
- package/locales/documents/es.json +6 -0
- package/locales/documents/fa.json +6 -0
- package/locales/documents/fi.json +6 -0
- package/locales/documents/fr-CA.json +6 -0
- package/locales/documents/fr.json +6 -0
- package/locales/documents/ha.json +6 -0
- package/locales/documents/he.json +6 -0
- package/locales/documents/hi.json +6 -0
- package/locales/documents/hr.json +6 -0
- package/locales/documents/hu.json +6 -0
- package/locales/documents/id.json +6 -0
- package/locales/documents/it.json +6 -0
- package/locales/documents/ja.json +6 -0
- package/locales/documents/ko.json +6 -0
- package/locales/documents/mr.json +6 -0
- package/locales/documents/ms.json +6 -0
- package/locales/documents/nl.json +6 -0
- package/locales/documents/pl.json +6 -0
- package/locales/documents/pt.json +6 -0
- package/locales/documents/ro.json +6 -0
- package/locales/documents/ru.json +6 -0
- package/locales/documents/sk.json +6 -0
- package/locales/documents/sv.json +6 -0
- package/locales/documents/sw.json +6 -0
- package/locales/documents/ta.json +6 -0
- package/locales/documents/te.json +6 -0
- package/locales/documents/th.json +6 -0
- package/locales/documents/tl.json +6 -0
- package/locales/documents/tr.json +6 -0
- package/locales/documents/uk.json +6 -0
- package/locales/documents/ur.json +6 -0
- package/locales/documents/vi.json +6 -0
- package/locales/documents/yo.json +6 -0
- package/locales/documents/zh-Hans.json +6 -0
- package/locales/documents/zh-Hant.json +6 -0
- package/locales/el.json +19 -3
- package/locales/en.json +19 -3
- package/locales/enterprise/am.json +29 -1
- package/locales/enterprise/ar.json +29 -1
- package/locales/enterprise/bg.json +29 -1
- package/locales/enterprise/bn.json +29 -1
- package/locales/enterprise/br.json +29 -1
- package/locales/enterprise/co.json +29 -1
- package/locales/enterprise/cs.json +29 -1
- package/locales/enterprise/da.json +29 -1
- package/locales/enterprise/de.json +29 -1
- package/locales/enterprise/el.json +29 -1
- package/locales/enterprise/en.json +29 -1
- package/locales/enterprise/es.json +29 -1
- package/locales/enterprise/fa.json +29 -1
- package/locales/enterprise/fi.json +29 -1
- package/locales/enterprise/fr-CA.json +29 -1
- package/locales/enterprise/fr.json +29 -1
- package/locales/enterprise/ha.json +29 -1
- package/locales/enterprise/he.json +29 -1
- package/locales/enterprise/hi.json +29 -1
- package/locales/enterprise/hr.json +29 -1
- package/locales/enterprise/hu.json +29 -1
- package/locales/enterprise/id.json +29 -1
- package/locales/enterprise/it.json +29 -1
- package/locales/enterprise/ja.json +29 -1
- package/locales/enterprise/ko.json +29 -1
- package/locales/enterprise/mr.json +29 -1
- package/locales/enterprise/ms.json +29 -1
- package/locales/enterprise/nl.json +29 -1
- package/locales/enterprise/pl.json +29 -1
- package/locales/enterprise/pt.json +29 -1
- package/locales/enterprise/ro.json +29 -1
- package/locales/enterprise/ru.json +29 -1
- package/locales/enterprise/sk.json +29 -1
- package/locales/enterprise/sv.json +29 -1
- package/locales/enterprise/sw.json +29 -1
- package/locales/enterprise/ta.json +29 -1
- package/locales/enterprise/te.json +29 -1
- package/locales/enterprise/th.json +29 -1
- package/locales/enterprise/tl.json +29 -1
- package/locales/enterprise/tr.json +29 -1
- package/locales/enterprise/uk.json +29 -1
- package/locales/enterprise/ur.json +29 -1
- package/locales/enterprise/vi.json +29 -1
- package/locales/enterprise/yo.json +29 -1
- package/locales/enterprise/zh-Hans.json +29 -1
- package/locales/enterprise/zh-Hant.json +29 -1
- package/locales/es.json +20 -3
- package/locales/fa.json +19 -3
- package/locales/fi.json +19 -3
- package/locales/fr-CA.json +21 -4
- package/locales/fr.json +21 -4
- package/locales/games/am.json +16 -0
- package/locales/games/ar.json +16 -0
- package/locales/games/bg.json +16 -0
- package/locales/games/bn.json +16 -0
- package/locales/games/br.json +16 -0
- package/locales/games/co.json +16 -0
- package/locales/games/cs.json +16 -0
- package/locales/games/da.json +16 -0
- package/locales/games/de.json +16 -0
- package/locales/games/el.json +16 -0
- package/locales/games/en.json +16 -0
- package/locales/games/es.json +16 -0
- package/locales/games/fa.json +16 -0
- package/locales/games/fi.json +16 -0
- package/locales/games/fr-CA.json +16 -0
- package/locales/games/fr.json +16 -0
- package/locales/games/ha.json +16 -0
- package/locales/games/he.json +16 -0
- package/locales/games/hi.json +16 -0
- package/locales/games/hr.json +16 -0
- package/locales/games/hu.json +16 -0
- package/locales/games/id.json +16 -0
- package/locales/games/it.json +16 -0
- package/locales/games/ja.json +16 -0
- package/locales/games/ko.json +16 -0
- package/locales/games/mr.json +16 -0
- package/locales/games/ms.json +16 -0
- package/locales/games/nl.json +16 -0
- package/locales/games/pl.json +16 -0
- package/locales/games/pt.json +16 -0
- package/locales/games/ro.json +16 -0
- package/locales/games/ru.json +16 -0
- package/locales/games/sk.json +16 -0
- package/locales/games/sv.json +16 -0
- package/locales/games/sw.json +16 -0
- package/locales/games/ta.json +16 -0
- package/locales/games/te.json +16 -0
- package/locales/games/th.json +16 -0
- package/locales/games/tl.json +16 -0
- package/locales/games/tr.json +16 -0
- package/locales/games/uk.json +16 -0
- package/locales/games/ur.json +16 -0
- package/locales/games/vi.json +16 -0
- package/locales/games/yo.json +16 -0
- package/locales/games/zh-Hans.json +16 -0
- package/locales/games/zh-Hant.json +16 -0
- package/locales/ha.json +19 -3
- package/locales/he.json +20 -3
- package/locales/hi.json +19 -3
- package/locales/hr.json +20 -3
- package/locales/hu.json +19 -3
- package/locales/id.json +18 -3
- package/locales/interactive/am.json +11 -2
- package/locales/interactive/ar.json +11 -2
- package/locales/interactive/bg.json +11 -2
- package/locales/interactive/bn.json +11 -2
- package/locales/interactive/br.json +11 -2
- package/locales/interactive/co.json +11 -2
- package/locales/interactive/cs.json +11 -2
- package/locales/interactive/da.json +11 -2
- package/locales/interactive/de.json +11 -2
- package/locales/interactive/el.json +11 -2
- package/locales/interactive/en.json +11 -2
- package/locales/interactive/es.json +11 -2
- package/locales/interactive/fa.json +11 -2
- package/locales/interactive/fi.json +11 -2
- package/locales/interactive/fr-CA.json +11 -2
- package/locales/interactive/fr.json +11 -2
- package/locales/interactive/ha.json +11 -2
- package/locales/interactive/he.json +11 -2
- package/locales/interactive/hi.json +11 -2
- package/locales/interactive/hr.json +11 -2
- package/locales/interactive/hu.json +11 -2
- package/locales/interactive/id.json +11 -2
- package/locales/interactive/it.json +11 -2
- package/locales/interactive/ja.json +11 -2
- package/locales/interactive/ko.json +11 -2
- package/locales/interactive/mr.json +11 -2
- package/locales/interactive/ms.json +11 -2
- package/locales/interactive/nl.json +11 -2
- package/locales/interactive/pl.json +11 -2
- package/locales/interactive/pt.json +11 -2
- package/locales/interactive/ro.json +11 -2
- package/locales/interactive/ru.json +11 -2
- package/locales/interactive/sk.json +11 -2
- package/locales/interactive/sv.json +11 -2
- package/locales/interactive/sw.json +11 -2
- package/locales/interactive/ta.json +11 -2
- package/locales/interactive/te.json +11 -2
- package/locales/interactive/th.json +11 -2
- package/locales/interactive/tl.json +11 -2
- package/locales/interactive/tr.json +11 -2
- package/locales/interactive/uk.json +11 -2
- package/locales/interactive/ur.json +11 -2
- package/locales/interactive/vi.json +11 -2
- package/locales/interactive/yo.json +11 -2
- package/locales/interactive/zh-Hans.json +11 -2
- package/locales/interactive/zh-Hant.json +11 -2
- package/locales/it.json +20 -3
- package/locales/ja.json +18 -3
- package/locales/ko.json +18 -3
- package/locales/lock/am.json +6 -3
- package/locales/lock/ar.json +6 -3
- package/locales/lock/bg.json +6 -3
- package/locales/lock/bn.json +6 -3
- package/locales/lock/br.json +6 -3
- package/locales/lock/co.json +6 -3
- package/locales/lock/cs.json +6 -3
- package/locales/lock/da.json +6 -3
- package/locales/lock/de.json +6 -3
- package/locales/lock/el.json +6 -3
- package/locales/lock/en.json +6 -3
- package/locales/lock/es.json +6 -3
- package/locales/lock/fa.json +6 -3
- package/locales/lock/fi.json +6 -3
- package/locales/lock/fr-CA.json +6 -3
- package/locales/lock/fr.json +6 -3
- package/locales/lock/ha.json +6 -3
- package/locales/lock/he.json +6 -3
- package/locales/lock/hi.json +6 -3
- package/locales/lock/hr.json +6 -3
- package/locales/lock/hu.json +6 -3
- package/locales/lock/id.json +6 -3
- package/locales/lock/it.json +6 -3
- package/locales/lock/ja.json +6 -3
- package/locales/lock/ko.json +6 -3
- package/locales/lock/mr.json +6 -3
- package/locales/lock/ms.json +6 -3
- package/locales/lock/nl.json +6 -3
- package/locales/lock/pl.json +6 -3
- package/locales/lock/pt.json +6 -3
- package/locales/lock/ro.json +6 -3
- package/locales/lock/ru.json +6 -3
- package/locales/lock/sk.json +6 -3
- package/locales/lock/sv.json +6 -3
- package/locales/lock/sw.json +6 -3
- package/locales/lock/ta.json +6 -3
- package/locales/lock/te.json +6 -3
- package/locales/lock/th.json +6 -3
- package/locales/lock/tl.json +6 -3
- package/locales/lock/tr.json +6 -3
- package/locales/lock/uk.json +6 -3
- package/locales/lock/ur.json +6 -3
- package/locales/lock/vi.json +6 -3
- package/locales/lock/yo.json +6 -3
- package/locales/lock/zh-Hans.json +6 -3
- package/locales/lock/zh-Hant.json +6 -3
- package/locales/look/am.json +5 -0
- package/locales/look/ar.json +5 -0
- package/locales/look/bg.json +5 -0
- package/locales/look/bn.json +5 -0
- package/locales/look/br.json +5 -0
- package/locales/look/co.json +5 -0
- package/locales/look/cs.json +5 -0
- package/locales/look/da.json +5 -0
- package/locales/look/de.json +5 -0
- package/locales/look/el.json +5 -0
- package/locales/look/en.json +5 -0
- package/locales/look/es.json +5 -0
- package/locales/look/fa.json +5 -0
- package/locales/look/fi.json +5 -0
- package/locales/look/fr-CA.json +5 -0
- package/locales/look/fr.json +5 -0
- package/locales/look/ha.json +5 -0
- package/locales/look/he.json +5 -0
- package/locales/look/hi.json +5 -0
- package/locales/look/hr.json +5 -0
- package/locales/look/hu.json +5 -0
- package/locales/look/id.json +5 -0
- package/locales/look/it.json +5 -0
- package/locales/look/ja.json +5 -0
- package/locales/look/ko.json +5 -0
- package/locales/look/mr.json +5 -0
- package/locales/look/ms.json +5 -0
- package/locales/look/nl.json +5 -0
- package/locales/look/pl.json +5 -0
- package/locales/look/pt.json +5 -0
- package/locales/look/ro.json +5 -0
- package/locales/look/ru.json +5 -0
- package/locales/look/sk.json +5 -0
- package/locales/look/sv.json +5 -0
- package/locales/look/sw.json +5 -0
- package/locales/look/ta.json +5 -0
- package/locales/look/te.json +5 -0
- package/locales/look/th.json +5 -0
- package/locales/look/tl.json +5 -0
- package/locales/look/tr.json +5 -0
- package/locales/look/uk.json +5 -0
- package/locales/look/ur.json +5 -0
- package/locales/look/vi.json +5 -0
- package/locales/look/yo.json +5 -0
- package/locales/look/zh-Hans.json +5 -0
- package/locales/look/zh-Hant.json +5 -0
- package/locales/made/am.json +6 -1
- package/locales/made/ar.json +6 -1
- package/locales/made/bg.json +6 -1
- package/locales/made/bn.json +6 -1
- package/locales/made/br.json +6 -1
- package/locales/made/co.json +6 -1
- package/locales/made/cs.json +6 -1
- package/locales/made/da.json +6 -1
- package/locales/made/de.json +6 -1
- package/locales/made/el.json +6 -1
- package/locales/made/en.json +6 -1
- package/locales/made/es.json +6 -1
- package/locales/made/fa.json +6 -1
- package/locales/made/fi.json +6 -1
- package/locales/made/fr-CA.json +6 -1
- package/locales/made/fr.json +6 -1
- package/locales/made/ha.json +6 -1
- package/locales/made/he.json +6 -1
- package/locales/made/hi.json +6 -1
- package/locales/made/hr.json +6 -1
- package/locales/made/hu.json +6 -1
- package/locales/made/id.json +6 -1
- package/locales/made/it.json +6 -1
- package/locales/made/ja.json +6 -1
- package/locales/made/ko.json +6 -1
- package/locales/made/mr.json +6 -1
- package/locales/made/ms.json +6 -1
- package/locales/made/nl.json +6 -1
- package/locales/made/pl.json +6 -1
- package/locales/made/pt.json +6 -1
- package/locales/made/ro.json +6 -1
- package/locales/made/ru.json +6 -1
- package/locales/made/sk.json +6 -1
- package/locales/made/sv.json +6 -1
- package/locales/made/sw.json +6 -1
- package/locales/made/ta.json +6 -1
- package/locales/made/te.json +6 -1
- package/locales/made/th.json +6 -1
- package/locales/made/tl.json +6 -1
- package/locales/made/tr.json +6 -1
- package/locales/made/uk.json +6 -1
- package/locales/made/ur.json +6 -1
- package/locales/made/vi.json +6 -1
- package/locales/made/yo.json +6 -1
- package/locales/made/zh-Hans.json +6 -1
- package/locales/made/zh-Hant.json +6 -1
- package/locales/mr.json +19 -3
- package/locales/ms.json +18 -3
- package/locales/nl.json +19 -3
- package/locales/out/am.json +13 -0
- package/locales/out/ar.json +13 -0
- package/locales/out/bg.json +13 -0
- package/locales/out/bn.json +13 -0
- package/locales/out/br.json +13 -0
- package/locales/out/co.json +13 -0
- package/locales/out/cs.json +13 -0
- package/locales/out/da.json +13 -0
- package/locales/out/de.json +13 -0
- package/locales/out/el.json +13 -0
- package/locales/out/en.json +13 -0
- package/locales/out/es.json +13 -0
- package/locales/out/fa.json +13 -0
- package/locales/out/fi.json +13 -0
- package/locales/out/fr-CA.json +13 -0
- package/locales/out/fr.json +13 -0
- package/locales/out/ha.json +13 -0
- package/locales/out/he.json +13 -0
- package/locales/out/hi.json +13 -0
- package/locales/out/hr.json +13 -0
- package/locales/out/hu.json +13 -0
- package/locales/out/id.json +13 -0
- package/locales/out/it.json +13 -0
- package/locales/out/ja.json +13 -0
- package/locales/out/ko.json +13 -0
- package/locales/out/mr.json +13 -0
- package/locales/out/ms.json +13 -0
- package/locales/out/nl.json +13 -0
- package/locales/out/pl.json +13 -0
- package/locales/out/pt.json +13 -0
- package/locales/out/ro.json +13 -0
- package/locales/out/ru.json +13 -0
- package/locales/out/sk.json +13 -0
- package/locales/out/sv.json +13 -0
- package/locales/out/sw.json +13 -0
- package/locales/out/ta.json +13 -0
- package/locales/out/te.json +13 -0
- package/locales/out/th.json +13 -0
- package/locales/out/tl.json +13 -0
- package/locales/out/tr.json +13 -0
- package/locales/out/uk.json +13 -0
- package/locales/out/ur.json +13 -0
- package/locales/out/vi.json +13 -0
- package/locales/out/yo.json +13 -0
- package/locales/out/zh-Hans.json +13 -0
- package/locales/out/zh-Hant.json +13 -0
- package/locales/pl.json +21 -3
- package/locales/profiles/am.json +5 -0
- package/locales/profiles/ar.json +5 -0
- package/locales/profiles/bg.json +5 -0
- package/locales/profiles/bn.json +5 -0
- package/locales/profiles/br.json +5 -0
- package/locales/profiles/co.json +5 -0
- package/locales/profiles/cs.json +5 -0
- package/locales/profiles/da.json +5 -0
- package/locales/profiles/de.json +5 -0
- package/locales/profiles/el.json +5 -0
- package/locales/profiles/en.json +5 -0
- package/locales/profiles/es.json +5 -0
- package/locales/profiles/fa.json +5 -0
- package/locales/profiles/fi.json +5 -0
- package/locales/profiles/fr-CA.json +5 -0
- package/locales/profiles/fr.json +5 -0
- package/locales/profiles/ha.json +5 -0
- package/locales/profiles/he.json +5 -0
- package/locales/profiles/hi.json +5 -0
- package/locales/profiles/hr.json +5 -0
- package/locales/profiles/hu.json +5 -0
- package/locales/profiles/id.json +5 -0
- package/locales/profiles/it.json +5 -0
- package/locales/profiles/ja.json +5 -0
- package/locales/profiles/ko.json +5 -0
- package/locales/profiles/mr.json +5 -0
- package/locales/profiles/ms.json +5 -0
- package/locales/profiles/nl.json +5 -0
- package/locales/profiles/pl.json +5 -0
- package/locales/profiles/pt.json +5 -0
- package/locales/profiles/ro.json +5 -0
- package/locales/profiles/ru.json +5 -0
- package/locales/profiles/sk.json +5 -0
- package/locales/profiles/sv.json +5 -0
- package/locales/profiles/sw.json +5 -0
- package/locales/profiles/ta.json +5 -0
- package/locales/profiles/te.json +5 -0
- package/locales/profiles/th.json +5 -0
- package/locales/profiles/tl.json +5 -0
- package/locales/profiles/tr.json +5 -0
- package/locales/profiles/uk.json +5 -0
- package/locales/profiles/ur.json +5 -0
- package/locales/profiles/vi.json +5 -0
- package/locales/profiles/yo.json +5 -0
- package/locales/profiles/zh-Hans.json +5 -0
- package/locales/profiles/zh-Hant.json +5 -0
- package/locales/pt.json +20 -3
- package/locales/ro.json +20 -3
- package/locales/routines/am.json +9 -0
- package/locales/routines/ar.json +9 -0
- package/locales/routines/bg.json +9 -0
- package/locales/routines/bn.json +9 -0
- package/locales/routines/br.json +9 -0
- package/locales/routines/co.json +9 -0
- package/locales/routines/cs.json +9 -0
- package/locales/routines/da.json +9 -0
- package/locales/routines/de.json +9 -0
- package/locales/routines/el.json +9 -0
- package/locales/routines/en.json +9 -0
- package/locales/routines/es.json +9 -0
- package/locales/routines/fa.json +9 -0
- package/locales/routines/fi.json +9 -0
- package/locales/routines/fr-CA.json +9 -0
- package/locales/routines/fr.json +9 -0
- package/locales/routines/ha.json +9 -0
- package/locales/routines/he.json +9 -0
- package/locales/routines/hi.json +9 -0
- package/locales/routines/hr.json +9 -0
- package/locales/routines/hu.json +9 -0
- package/locales/routines/id.json +9 -0
- package/locales/routines/it.json +9 -0
- package/locales/routines/ja.json +9 -0
- package/locales/routines/ko.json +9 -0
- package/locales/routines/mr.json +9 -0
- package/locales/routines/ms.json +9 -0
- package/locales/routines/nl.json +9 -0
- package/locales/routines/pl.json +9 -0
- package/locales/routines/pt.json +9 -0
- package/locales/routines/ro.json +9 -0
- package/locales/routines/ru.json +9 -0
- package/locales/routines/sk.json +9 -0
- package/locales/routines/sv.json +9 -0
- package/locales/routines/sw.json +9 -0
- package/locales/routines/ta.json +9 -0
- package/locales/routines/te.json +9 -0
- package/locales/routines/th.json +9 -0
- package/locales/routines/tl.json +9 -0
- package/locales/routines/tr.json +9 -0
- package/locales/routines/uk.json +9 -0
- package/locales/routines/ur.json +9 -0
- package/locales/routines/vi.json +9 -0
- package/locales/routines/yo.json +9 -0
- package/locales/routines/zh-Hans.json +9 -0
- package/locales/routines/zh-Hant.json +9 -0
- package/locales/ru.json +21 -3
- package/locales/scores/am.json +5 -1
- package/locales/scores/ar.json +5 -1
- package/locales/scores/bg.json +5 -1
- package/locales/scores/bn.json +5 -1
- package/locales/scores/br.json +5 -1
- package/locales/scores/co.json +5 -1
- package/locales/scores/cs.json +5 -1
- package/locales/scores/da.json +5 -1
- package/locales/scores/de.json +5 -1
- package/locales/scores/el.json +5 -1
- package/locales/scores/en.json +5 -1
- package/locales/scores/es.json +5 -1
- package/locales/scores/fa.json +5 -1
- package/locales/scores/fi.json +5 -1
- package/locales/scores/fr-CA.json +5 -1
- package/locales/scores/fr.json +5 -1
- package/locales/scores/ha.json +5 -1
- package/locales/scores/he.json +5 -1
- package/locales/scores/hi.json +5 -1
- package/locales/scores/hr.json +5 -1
- package/locales/scores/hu.json +5 -1
- package/locales/scores/id.json +5 -1
- package/locales/scores/it.json +5 -1
- package/locales/scores/ja.json +5 -1
- package/locales/scores/ko.json +5 -1
- package/locales/scores/mr.json +5 -1
- package/locales/scores/ms.json +5 -1
- package/locales/scores/nl.json +5 -1
- package/locales/scores/pl.json +5 -1
- package/locales/scores/pt.json +5 -1
- package/locales/scores/ro.json +5 -1
- package/locales/scores/ru.json +5 -1
- package/locales/scores/sk.json +5 -1
- package/locales/scores/sv.json +5 -1
- package/locales/scores/sw.json +5 -1
- package/locales/scores/ta.json +5 -1
- package/locales/scores/te.json +5 -1
- package/locales/scores/th.json +5 -1
- package/locales/scores/tl.json +5 -1
- package/locales/scores/tr.json +5 -1
- package/locales/scores/uk.json +5 -1
- package/locales/scores/ur.json +5 -1
- package/locales/scores/vi.json +5 -1
- package/locales/scores/yo.json +5 -1
- package/locales/scores/zh-Hans.json +5 -1
- package/locales/scores/zh-Hant.json +5 -1
- package/locales/search/am.json +10 -1
- package/locales/search/ar.json +10 -1
- package/locales/search/bg.json +10 -1
- package/locales/search/bn.json +10 -1
- package/locales/search/br.json +10 -1
- package/locales/search/co.json +10 -1
- package/locales/search/cs.json +10 -1
- package/locales/search/da.json +10 -1
- package/locales/search/de.json +10 -1
- package/locales/search/el.json +10 -1
- package/locales/search/en.json +10 -1
- package/locales/search/es.json +10 -1
- package/locales/search/fa.json +10 -1
- package/locales/search/fi.json +10 -1
- package/locales/search/fr-CA.json +10 -1
- package/locales/search/fr.json +10 -1
- package/locales/search/ha.json +10 -1
- package/locales/search/he.json +10 -1
- package/locales/search/hi.json +10 -1
- package/locales/search/hr.json +10 -1
- package/locales/search/hu.json +10 -1
- package/locales/search/id.json +10 -1
- package/locales/search/it.json +10 -1
- package/locales/search/ja.json +10 -1
- package/locales/search/ko.json +10 -1
- package/locales/search/mr.json +10 -1
- package/locales/search/ms.json +10 -1
- package/locales/search/nl.json +10 -1
- package/locales/search/pl.json +10 -1
- package/locales/search/pt.json +10 -1
- package/locales/search/ro.json +10 -1
- package/locales/search/ru.json +10 -1
- package/locales/search/sk.json +10 -1
- package/locales/search/sv.json +10 -1
- package/locales/search/sw.json +10 -1
- package/locales/search/ta.json +10 -1
- package/locales/search/te.json +10 -1
- package/locales/search/th.json +10 -1
- package/locales/search/tl.json +10 -1
- package/locales/search/tr.json +10 -1
- package/locales/search/uk.json +10 -1
- package/locales/search/ur.json +10 -1
- package/locales/search/vi.json +10 -1
- package/locales/search/yo.json +10 -1
- package/locales/search/zh-Hans.json +10 -1
- package/locales/search/zh-Hant.json +10 -1
- package/locales/signin/am.json +3 -1
- package/locales/signin/ar.json +3 -1
- package/locales/signin/bg.json +3 -1
- package/locales/signin/bn.json +3 -1
- package/locales/signin/br.json +3 -1
- package/locales/signin/co.json +3 -1
- package/locales/signin/cs.json +3 -1
- package/locales/signin/da.json +3 -1
- package/locales/signin/de.json +3 -1
- package/locales/signin/el.json +3 -1
- package/locales/signin/en.json +3 -1
- package/locales/signin/es.json +3 -1
- package/locales/signin/fa.json +3 -1
- package/locales/signin/fi.json +3 -1
- package/locales/signin/fr-CA.json +3 -1
- package/locales/signin/fr.json +3 -1
- package/locales/signin/ha.json +3 -1
- package/locales/signin/he.json +3 -1
- package/locales/signin/hi.json +3 -1
- package/locales/signin/hr.json +3 -1
- package/locales/signin/hu.json +3 -1
- package/locales/signin/id.json +3 -1
- package/locales/signin/it.json +3 -1
- package/locales/signin/ja.json +3 -1
- package/locales/signin/ko.json +3 -1
- package/locales/signin/mr.json +3 -1
- package/locales/signin/ms.json +3 -1
- package/locales/signin/nl.json +3 -1
- package/locales/signin/pl.json +3 -1
- package/locales/signin/pt.json +3 -1
- package/locales/signin/ro.json +3 -1
- package/locales/signin/ru.json +3 -1
- package/locales/signin/sk.json +3 -1
- package/locales/signin/sv.json +3 -1
- package/locales/signin/sw.json +3 -1
- package/locales/signin/ta.json +3 -1
- package/locales/signin/te.json +3 -1
- package/locales/signin/th.json +3 -1
- package/locales/signin/tl.json +3 -1
- package/locales/signin/tr.json +3 -1
- package/locales/signin/uk.json +3 -1
- package/locales/signin/ur.json +3 -1
- package/locales/signin/vi.json +3 -1
- package/locales/signin/yo.json +3 -1
- package/locales/signin/zh-Hans.json +3 -1
- package/locales/signin/zh-Hant.json +3 -1
- package/locales/sk.json +21 -3
- package/locales/slides/am.json +16 -11
- package/locales/slides/ar.json +16 -11
- package/locales/slides/bg.json +16 -11
- package/locales/slides/bn.json +16 -11
- package/locales/slides/br.json +16 -11
- package/locales/slides/co.json +16 -11
- package/locales/slides/cs.json +16 -11
- package/locales/slides/da.json +16 -11
- package/locales/slides/de.json +16 -11
- package/locales/slides/el.json +16 -11
- package/locales/slides/en.json +16 -11
- package/locales/slides/es.json +16 -11
- package/locales/slides/fa.json +16 -11
- package/locales/slides/fi.json +16 -11
- package/locales/slides/fr-CA.json +16 -11
- package/locales/slides/fr.json +16 -11
- package/locales/slides/ha.json +16 -11
- package/locales/slides/he.json +16 -11
- package/locales/slides/hi.json +16 -11
- package/locales/slides/hr.json +16 -11
- package/locales/slides/hu.json +16 -11
- package/locales/slides/id.json +16 -11
- package/locales/slides/it.json +16 -11
- package/locales/slides/ja.json +16 -11
- package/locales/slides/ko.json +16 -11
- package/locales/slides/mr.json +16 -11
- package/locales/slides/ms.json +16 -11
- package/locales/slides/nl.json +16 -11
- package/locales/slides/pl.json +16 -11
- package/locales/slides/pt.json +16 -11
- package/locales/slides/ro.json +16 -11
- package/locales/slides/ru.json +16 -11
- package/locales/slides/sk.json +16 -11
- package/locales/slides/sv.json +16 -11
- package/locales/slides/sw.json +16 -11
- package/locales/slides/ta.json +16 -11
- package/locales/slides/te.json +16 -11
- package/locales/slides/th.json +16 -11
- package/locales/slides/tl.json +16 -11
- package/locales/slides/tr.json +16 -11
- package/locales/slides/uk.json +16 -11
- package/locales/slides/ur.json +16 -11
- package/locales/slides/vi.json +16 -11
- package/locales/slides/yo.json +16 -11
- package/locales/slides/zh-Hans.json +16 -11
- package/locales/slides/zh-Hant.json +16 -11
- package/locales/sv.json +19 -3
- package/locales/sw.json +19 -3
- package/locales/sync/am.json +1 -0
- package/locales/sync/ar.json +1 -0
- package/locales/sync/bg.json +1 -0
- package/locales/sync/bn.json +1 -0
- package/locales/sync/br.json +1 -0
- package/locales/sync/co.json +1 -0
- package/locales/sync/cs.json +1 -0
- package/locales/sync/da.json +1 -0
- package/locales/sync/de.json +1 -0
- package/locales/sync/el.json +1 -0
- package/locales/sync/en.json +1 -0
- package/locales/sync/es.json +1 -0
- package/locales/sync/fa.json +1 -0
- package/locales/sync/fi.json +1 -0
- package/locales/sync/fr-CA.json +1 -0
- package/locales/sync/fr.json +1 -0
- package/locales/sync/ha.json +1 -0
- package/locales/sync/he.json +1 -0
- package/locales/sync/hi.json +1 -0
- package/locales/sync/hr.json +1 -0
- package/locales/sync/hu.json +1 -0
- package/locales/sync/id.json +1 -0
- package/locales/sync/it.json +1 -0
- package/locales/sync/ja.json +1 -0
- package/locales/sync/ko.json +1 -0
- package/locales/sync/mr.json +1 -0
- package/locales/sync/ms.json +1 -0
- package/locales/sync/nl.json +1 -0
- package/locales/sync/pl.json +1 -0
- package/locales/sync/pt.json +1 -0
- package/locales/sync/ro.json +1 -0
- package/locales/sync/ru.json +1 -0
- package/locales/sync/sk.json +1 -0
- package/locales/sync/sv.json +1 -0
- package/locales/sync/sw.json +1 -0
- package/locales/sync/ta.json +1 -0
- package/locales/sync/te.json +1 -0
- package/locales/sync/th.json +1 -0
- package/locales/sync/tl.json +1 -0
- package/locales/sync/tr.json +1 -0
- package/locales/sync/uk.json +1 -0
- package/locales/sync/ur.json +1 -0
- package/locales/sync/vi.json +1 -0
- package/locales/sync/yo.json +1 -0
- package/locales/sync/zh-Hans.json +1 -0
- package/locales/sync/zh-Hant.json +1 -0
- package/locales/ta.json +19 -3
- package/locales/tables/am.json +27 -2
- package/locales/tables/ar.json +35 -2
- package/locales/tables/bg.json +27 -2
- package/locales/tables/bn.json +27 -2
- package/locales/tables/br.json +33 -2
- package/locales/tables/co.json +29 -2
- package/locales/tables/cs.json +33 -4
- package/locales/tables/da.json +27 -2
- package/locales/tables/de.json +27 -2
- package/locales/tables/el.json +27 -2
- package/locales/tables/en.json +27 -2
- package/locales/tables/es.json +29 -2
- package/locales/tables/fa.json +27 -2
- package/locales/tables/fi.json +27 -2
- package/locales/tables/fr-CA.json +29 -2
- package/locales/tables/fr.json +29 -2
- package/locales/tables/ha.json +27 -2
- package/locales/tables/he.json +31 -4
- package/locales/tables/hi.json +27 -2
- package/locales/tables/hr.json +29 -2
- package/locales/tables/hu.json +27 -2
- package/locales/tables/id.json +25 -2
- package/locales/tables/it.json +29 -2
- package/locales/tables/ja.json +25 -2
- package/locales/tables/ko.json +25 -2
- package/locales/tables/mr.json +27 -2
- package/locales/tables/ms.json +25 -2
- package/locales/tables/nl.json +27 -2
- package/locales/tables/pl.json +31 -2
- package/locales/tables/pt.json +29 -2
- package/locales/tables/ro.json +29 -2
- package/locales/tables/ru.json +31 -2
- package/locales/tables/sk.json +33 -4
- package/locales/tables/sv.json +29 -4
- package/locales/tables/sw.json +27 -2
- package/locales/tables/ta.json +27 -2
- package/locales/tables/te.json +29 -4
- package/locales/tables/th.json +25 -2
- package/locales/tables/tl.json +29 -4
- package/locales/tables/tr.json +27 -2
- package/locales/tables/uk.json +31 -2
- package/locales/tables/ur.json +27 -2
- package/locales/tables/vi.json +27 -4
- package/locales/tables/yo.json +27 -4
- package/locales/tables/zh-Hans.json +27 -4
- package/locales/tables/zh-Hant.json +27 -4
- package/locales/te.json +19 -3
- package/locales/th.json +18 -3
- package/locales/tl.json +19 -3
- package/locales/tr.json +19 -3
- package/locales/uk.json +21 -3
- package/locales/ur.json +19 -3
- package/locales/vi.json +18 -3
- package/locales/yo.json +18 -3
- package/locales/zh-Hans.json +18 -3
- package/locales/zh-Hant.json +18 -3
- package/package.json +5 -1
- package/ui/caps.js +9 -4
- package/ui/csp.js +1 -1
- package/ui/export.js +10 -4
- package/ui/icons.js +2 -1
- package/ui/kit.js +44 -10
- package/ui/language.js +172 -0
- package/ui/looks/classic.css +3 -2
- package/ui/looks/human.css +7 -9
- package/ui/looks/mail.css +1 -1
- package/ui/looks/minimal.css +1 -1
- package/ui/looks.js +1 -1
- package/ui/markdown.js +17 -6
- package/ui/model.js +6 -0
- package/ui/reader-state.js +1 -1
- package/ui/review.js +1 -1
- package/ui/save.js +16 -0
- package/ui/seal.js +5 -4
- package/ui/sheet.js +21 -2
- package/ui/style.css +54 -32
- package/ui/touches.js +4 -1
- package/ui/view.css +1 -1
- package/ui/view.js +10 -8
- package/vendor/LICENSES/babylonjs-core.txt +2 -0
- package/vendor/LICENSES/eventemitter3.txt +21 -0
- package/vendor/LICENSES/maplibre-gl.txt +1 -1
- package/vendor/LICENSES/phaser.txt +20 -0
- package/vendor/LICENSES/zzfx.txt +21 -0
- package/vendor/abcjs/abcjs.mjs +2 -2
- package/vendor/babylon/babylon.mjs +8122 -0
- package/vendor/deck/deck.css +2 -2
- package/vendor/deck/deck.mjs +37 -37
- package/vendor/deck/pptx.mjs +1 -1
- package/vendor/maplibre/maplibre-gl-worker.js +3 -3
- package/vendor/maplibre/maplibre-gl.css +1 -1
- package/vendor/maplibre/maplibre-gl.mjs +37 -37
- package/vendor/marked.esm.js +40 -38
- package/vendor/ooxml/abort-JztSoyw2.js +8 -0
- package/vendor/ooxml/{hyperlink-Cxzhet30.js → bounded-raw-part-cache-B8t03tSP.js} +4460 -7080
- package/vendor/ooxml/bundled-asset-url-BMJ8vNHP.js +13 -0
- package/vendor/ooxml/canvas-viewer-mechanics-DI38gHNV.js +653 -0
- package/vendor/ooxml/cfb-guard-BIaHdonq.js +516 -0
- package/vendor/ooxml/{chunk-DmhlhrBa.js → chunk-D5OxutzX.js} +0 -2
- package/vendor/ooxml/comment-overlay-controller-Crm5Syhx.js +974 -0
- package/vendor/ooxml/{comment-ui-runtime-CWGqn5Vr.js → comment-ui-runtime-BfEPgl5r.js} +5 -7
- package/vendor/ooxml/comment-ui-runtime-BtP_TpvT.js +2 -0
- package/vendor/ooxml/{comment-ui-runtime-DcJOYlw-.js → comment-ui-runtime-hfewTmVJ.js} +5 -7
- package/vendor/ooxml/delimited-text-worker-host-RwvuSsP2.js +21 -0
- package/vendor/ooxml/document-model-source-BUTSwkyP.js +247 -0
- package/vendor/ooxml/document-pull-client-C_D779tO.js +36230 -0
- package/vendor/ooxml/docx-BfLZeiwa.js +3509 -0
- package/vendor/ooxml/docx.mjs +7 -7
- package/vendor/ooxml/docx_parser_bg.wasm +0 -0
- package/vendor/ooxml/drawingml-shape-BcXkRayC.js +306 -0
- package/vendor/ooxml/duotone-BI7CoghW.js +122 -0
- package/vendor/ooxml/emf-DgUBx9BU.js +1788 -0
- package/vendor/ooxml/font-preload-demand-B6HPFxDp.js +2052 -0
- package/vendor/ooxml/graph.json +1 -1
- package/vendor/ooxml/grid-geometry-CqTDvpDr.js +379 -0
- package/vendor/ooxml/host-layout-Cz_lCuTZ.js +55 -0
- package/vendor/ooxml/line-distribute-DR9Qwd3u.js +2783 -0
- package/vendor/ooxml/{mathjax-DoyWZbSp.js → mathjax-DvwccQ8e.js} +0 -2
- package/vendor/ooxml/model-source-COXegBNA.js +177 -0
- package/vendor/ooxml/{pixel-budget-9P63Bsk5.js → pixel-budget-DI82Hn3R.js} +13 -12
- package/vendor/ooxml/plot-area-frame-D3JtHvov.js +41645 -0
- package/vendor/ooxml/pptx-CfCiVlNB.js +2888 -0
- package/vendor/ooxml/pptx.mjs +8 -7
- package/vendor/ooxml/pptx_parser_bg.wasm +0 -0
- package/vendor/ooxml/presentation-model-source-DL6duh5l.js +75 -0
- package/vendor/ooxml/raster-target-Ca3tyA0L.js +40 -0
- package/vendor/ooxml/{read-only-comment-decoration-Dz7eTQ4d.js → read-only-comment-decoration-B06YO2zk.js} +0 -4
- package/vendor/ooxml/{read-only-comment-margin-DkgzASAl.js → read-only-comment-margin-Ee9Y6vPg.js} +0 -2
- package/vendor/ooxml/renderer-IFuBkPvF.js +5197 -0
- package/vendor/ooxml/{renderer-module-contract-D91rkYHH.js → renderer-module-contract-BuTx2FWJ.js} +0 -2
- package/vendor/ooxml/renderer-xdugdcMd.js +5769 -0
- package/vendor/ooxml/resource-measurement-D2bu0Qfx.js +756 -0
- package/vendor/ooxml/slide-pull-client-BUuJQQVE.js +6431 -0
- package/vendor/ooxml/three-d-ByHGsYrX.js +868 -0
- package/vendor/ooxml/tiff-contract-DEd8CGuz.js +48 -0
- package/vendor/ooxml/{visible-index-BgiHEc1z.js → visible-index-vN-4BNn7.js} +0 -2
- package/vendor/ooxml/workbook-model-source-DBfVsWj7.js +92 -0
- package/vendor/ooxml/worker-source-C29EQNUj.js +18 -0
- package/vendor/ooxml/worker-source-D3NwPe6l.js +18 -0
- package/vendor/ooxml/worker-source-ZQE9C1j6.js +18 -0
- package/vendor/ooxml/worksheet-pull-client-Du0MuIro.js +565 -0
- package/vendor/ooxml/xlsx-CCMRAxPB.js +5812 -0
- package/vendor/ooxml/xlsx.mjs +8 -7
- package/vendor/ooxml/xlsx_parser_bg.wasm +0 -0
- package/vendor/pele/chunks/2CHDFZHC.js +1 -0
- package/vendor/pele/chunks/{GAP5KXLD.js → 2S3JPEOY.js} +1 -1
- package/vendor/pele/chunks/2U463FD2.js +11 -0
- package/vendor/pele/chunks/3OKCTCH7.js +1 -0
- package/vendor/pele/chunks/42UK3TL6.js +8 -0
- package/vendor/pele/chunks/43YPWK3Q.js +1 -0
- package/vendor/pele/chunks/45MVAN6X.js +1 -0
- package/vendor/pele/chunks/46GJKBLZ.js +1 -0
- package/vendor/pele/chunks/4WR52FRP.js +4 -0
- package/vendor/pele/chunks/63WH7YNF.js +1 -0
- package/vendor/pele/chunks/{2TH3V34D.js → 673H7YBG.js} +1 -1
- package/vendor/pele/chunks/6DDU7VKX.js +1 -0
- package/vendor/pele/chunks/{3MKGV5HX.js → 6Y6FML25.js} +1 -1
- package/vendor/pele/chunks/{4AG6A4TK.js → 7HQPULDG.js} +1 -1
- package/vendor/pele/chunks/7N3VAIG2.js +2 -0
- package/vendor/pele/chunks/{QFOMM5LR.js → 7NY54ILO.js} +1 -1
- package/vendor/pele/chunks/{VHJMZXCQ.js → BJNHMTN6.js} +1 -1
- package/vendor/pele/chunks/{6PEWY3TN.js → BK7N5KMP.js} +1 -1
- package/vendor/pele/chunks/CLQLV5VT.js +1 -0
- package/vendor/pele/chunks/CUSPXG5M.js +1 -0
- package/vendor/pele/chunks/D3L7O4X2.js +1 -0
- package/vendor/pele/chunks/{D4V2MWCI.js → D5TW5CPZ.js} +1 -1
- package/vendor/pele/chunks/DDVFZY3L.js +7 -0
- package/vendor/pele/chunks/{3S2YGJBL.js → DO6ND2WD.js} +5 -5
- package/vendor/pele/chunks/EGADTWYV.js +1 -0
- package/vendor/pele/chunks/EI4VGK5C.js +4 -0
- package/vendor/pele/chunks/EOJSJZXM.js +1 -0
- package/vendor/pele/chunks/F4O23KYR.js +5 -0
- package/vendor/pele/chunks/G2OEIG6X.js +1 -0
- package/vendor/pele/chunks/GER2CN75.js +2 -0
- package/vendor/pele/chunks/{RGVCULFG.js → GP5YUCAR.js} +1 -1
- package/vendor/pele/chunks/GXJ2T77W.js +1 -0
- package/vendor/pele/chunks/HX3UMAK7.js +1 -0
- package/vendor/pele/chunks/IU7WZTP6.js +4 -0
- package/vendor/pele/chunks/J3JF2HV4.js +12 -0
- package/vendor/pele/chunks/J5J2NR2G.js +1 -0
- package/vendor/pele/chunks/JRCWTJEL.js +1 -0
- package/vendor/pele/chunks/{M7II5KMO.js → K2ZHGJKH.js} +1 -1
- package/vendor/pele/chunks/{E3FWOBN4.js → KHUP5TOH.js} +3 -3
- package/vendor/pele/chunks/L74FQTH5.js +1 -0
- package/vendor/pele/chunks/LAV4ZXOS.js +1 -0
- package/vendor/pele/chunks/LBIZYCRR.js +1 -0
- package/vendor/pele/chunks/LFFXNLRS.js +1 -0
- package/vendor/pele/chunks/LJ44NU43.js +3 -0
- package/vendor/pele/chunks/LLLWOAQD.js +1 -0
- package/vendor/pele/chunks/LTY5LMQH.js +5 -0
- package/vendor/pele/chunks/LTYQZ5U5.js +1 -0
- package/vendor/pele/chunks/MJBOF5Q6.js +2 -0
- package/vendor/pele/chunks/NDSCUZ25.js +1 -0
- package/vendor/pele/chunks/NMN3IKWL.js +1 -0
- package/vendor/pele/chunks/NMUA3R2D.js +1 -0
- package/vendor/pele/chunks/NY5A6PPW.js +1 -0
- package/vendor/pele/chunks/O3ACPFEJ.js +8 -0
- package/vendor/pele/chunks/{A6VFOGAO.js → O4MQT6AV.js} +1 -1
- package/vendor/pele/chunks/{DUZNPW7S.js → OHJ2EJXK.js} +1 -1
- package/vendor/pele/chunks/OU2GIT2H.js +1 -0
- package/vendor/pele/chunks/{E65FQMJL.js → PDMLSE6I.js} +1 -1
- package/vendor/pele/chunks/PJ7X32S5.js +1 -0
- package/vendor/pele/chunks/RLLQ44NJ.js +1 -0
- package/vendor/pele/chunks/S6DWMCK5.js +1 -0
- package/vendor/pele/chunks/STIOTUT7.js +1 -0
- package/vendor/pele/chunks/{UO52YEYL.js → SXSLPWUD.js} +1 -1
- package/vendor/pele/chunks/TBJXKAT4.js +3 -0
- package/vendor/pele/chunks/TIVX74RS.js +2 -0
- package/vendor/pele/chunks/{KIF544NL.js → TK23BXEA.js} +1 -1
- package/vendor/pele/chunks/{STAXBNH4.js → TR4WJQGX.js} +1 -1
- package/vendor/pele/chunks/UWRPUF3N.js +1 -0
- package/vendor/pele/chunks/VMTWYMKQ.js +2 -0
- package/vendor/pele/chunks/VSWIZJ7B.js +1 -0
- package/vendor/pele/chunks/{STMK7JZH.js → W2WY5CQX.js} +2 -2
- package/vendor/pele/chunks/W77N5H3K.js +2 -0
- package/vendor/pele/chunks/WM7NR6YK.js +1 -0
- package/vendor/pele/chunks/WSTWNLCU.js +4 -0
- package/vendor/pele/chunks/WXKV2YEK.js +1 -0
- package/vendor/pele/chunks/XQ5S3AI3.js +13 -0
- package/vendor/pele/chunks/YNX532HU.js +1 -0
- package/vendor/pele/chunks/{DHKBVIA3.js → YUPSMAUO.js} +1 -1
- package/vendor/pele/chunks/{IHVFDU4A.js → YWXUFHC7.js} +7 -7
- package/vendor/pele/chunks/Z3ZRV7NH.js +2 -0
- package/vendor/pele/chunks/ZFRCZTLK.js +1 -0
- package/vendor/pele/chunks/ZZDR4CN3.js +1 -0
- package/vendor/pele/lazy.js +1 -1
- package/vendor/phaser/phaser.mjs +1 -0
- package/vendor/signals-core.mjs +1 -1
- package/vendor/spessasynth/fflate.mjs +1 -0
- package/vendor/spessasynth/spessasynth.mjs +37033 -15099
- package/vendor/temml/temml.mjs +1 -1
- package/vendor/zzfx/zzfx.mjs +1 -0
- package/ui/acts.js +0 -12
- package/vendor/ooxml/bounded-raw-part-cache-Cg1BsSZQ.js +0 -119
- package/vendor/ooxml/canvas-viewer-mechanics-DbLz0rYW.js +0 -1384
- package/vendor/ooxml/cjk-fallback-bLI3z70h.js +0 -46
- package/vendor/ooxml/comment-occurrence-C8Y2uoVr.js +0 -6
- package/vendor/ooxml/comment-ui-runtime-BsK8pmUT.js +0 -2
- package/vendor/ooxml/comments-Diid5ujN.js +0 -246
- package/vendor/ooxml/delimited-text-worker-host-BVY-Ecni.js +0 -25
- package/vendor/ooxml/document-pull-client-B9PTM-pL.js +0 -27280
- package/vendor/ooxml/docx-BF9WXrYH.js +0 -3101
- package/vendor/ooxml/dom-interaction-boundary-Cnm8DSBN.js +0 -223
- package/vendor/ooxml/highlight-rect-C5hkRqUr.js +0 -13
- package/vendor/ooxml/line-distribute-D1WNHKz_.js +0 -1023
- package/vendor/ooxml/line-metrics-B60C86uh.js +0 -60
- package/vendor/ooxml/plot-area-frame-DLTYKHNP.js +0 -4354
- package/vendor/ooxml/pptx-DkyYBYoL.js +0 -3063
- package/vendor/ooxml/raster-target-ojDdQizC.js +0 -91
- package/vendor/ooxml/renderer-B4GZb5We.js +0 -6492
- package/vendor/ooxml/resource-measurement-SHQCbkh2.js +0 -150
- package/vendor/ooxml/slide-pull-client-DiPnm240.js +0 -6253
- package/vendor/ooxml/source-key-DIJG8BA0.js +0 -42
- package/vendor/ooxml/three-d-DJBl8g8M.js +0 -1162
- package/vendor/ooxml/transfer-p6iCC2R7.js +0 -6
- package/vendor/ooxml/units-BzZ0gAxs.js +0 -4
- package/vendor/ooxml/worksheet-pull-client-BM8ywvbu.js +0 -458
- package/vendor/ooxml/xlsx-C9NVjgaV.js +0 -8482
- package/vendor/pele/chunks/23I4SOAX.js +0 -1
- package/vendor/pele/chunks/25ITEZ43.js +0 -2
- package/vendor/pele/chunks/26H2HVXD.js +0 -1
- package/vendor/pele/chunks/2IZ5MNOH.js +0 -1
- package/vendor/pele/chunks/2P3CZEXH.js +0 -1
- package/vendor/pele/chunks/3E5HRNYT.js +0 -1
- package/vendor/pele/chunks/3JIRLDUO.js +0 -1
- package/vendor/pele/chunks/5MJ3UKSG.js +0 -1
- package/vendor/pele/chunks/63N73SV4.js +0 -1
- package/vendor/pele/chunks/A255FCTW.js +0 -1
- package/vendor/pele/chunks/AM43MQ64.js +0 -1
- package/vendor/pele/chunks/AOZTNTMC.js +0 -1
- package/vendor/pele/chunks/AQNLM6KG.js +0 -1
- package/vendor/pele/chunks/BNU2RHQB.js +0 -1
- package/vendor/pele/chunks/C5HTQT3I.js +0 -4
- package/vendor/pele/chunks/CPKRWH5G.js +0 -1
- package/vendor/pele/chunks/CPRVZL76.js +0 -11
- package/vendor/pele/chunks/CUVCMPQX.js +0 -1
- package/vendor/pele/chunks/D6K5RLPD.js +0 -5
- package/vendor/pele/chunks/EENBF6R3.js +0 -5
- package/vendor/pele/chunks/G3OATVW2.js +0 -1
- package/vendor/pele/chunks/GFBBR3DD.js +0 -13
- package/vendor/pele/chunks/IV52FOAS.js +0 -1
- package/vendor/pele/chunks/JTJEEBDN.js +0 -1
- package/vendor/pele/chunks/JX3HYMZ6.js +0 -8
- package/vendor/pele/chunks/K3TAFXGN.js +0 -3
- package/vendor/pele/chunks/K7FUICZ3.js +0 -1
- package/vendor/pele/chunks/LHH2HHRB.js +0 -1
- package/vendor/pele/chunks/LT5IS45C.js +0 -2
- package/vendor/pele/chunks/MSPQPZZY.js +0 -1
- package/vendor/pele/chunks/NY2EJWPH.js +0 -2
- package/vendor/pele/chunks/OB6ZFVKF.js +0 -1
- package/vendor/pele/chunks/OJBDHQO2.js +0 -4
- package/vendor/pele/chunks/PLTZDMI2.js +0 -1
- package/vendor/pele/chunks/R7EPXMMD.js +0 -1
- package/vendor/pele/chunks/S4GSSVLN.js +0 -3
- package/vendor/pele/chunks/SPBWZ4VS.js +0 -1
- package/vendor/pele/chunks/SR7OOV3Q.js +0 -1
- package/vendor/pele/chunks/STXEMZPJ.js +0 -2
- package/vendor/pele/chunks/SXFARSFO.js +0 -1
- package/vendor/pele/chunks/TC77ISAL.js +0 -1
- package/vendor/pele/chunks/TXE3YXUM.js +0 -2
- package/vendor/pele/chunks/TYIQQHVC.js +0 -1
- package/vendor/pele/chunks/TZUXETIT.js +0 -1
- package/vendor/pele/chunks/U7N72BGE.js +0 -1
- package/vendor/pele/chunks/UFPIB6EZ.js +0 -1
- package/vendor/pele/chunks/V52Z4AG3.js +0 -4
- package/vendor/pele/chunks/VBDLARNP.js +0 -4
- package/vendor/pele/chunks/VIK3ONSK.js +0 -1
- package/vendor/pele/chunks/VPGC3RUM.js +0 -7
- package/vendor/pele/chunks/VVVO4ZVP.js +0 -1
- package/vendor/pele/chunks/WRGXZO53.js +0 -1
- package/vendor/pele/chunks/X5SG7MGC.js +0 -1
- package/vendor/pele/chunks/XXYPNCD5.js +0 -1
- package/vendor/pele/chunks/XZO3CX7R.js +0 -12
- package/vendor/pele/chunks/YZBJM2QT.js +0 -2
- package/vendor/pele/chunks/YZHV477W.js +0 -2
- package/vendor/pele/chunks/Z6WRYFJC.js +0 -1
- package/vendor/pele/chunks/ZI2QNEGF.js +0 -8
package/caps/scores/scores.js
CHANGED
|
@@ -1,32 +1,37 @@
|
|
|
1
1
|
// Scores (D196): a ```abc block in an answer, music in ABC notation, drawn as a score by abcjs and
|
|
2
2
|
// played on the instruments it names, MS Basic's, made (./sound.js, D338) the first time it plays, in
|
|
3
3
|
// a worker, or on the page in a saved copy, while it waits showing how much of them has come; without
|
|
4
|
-
// them (offline the first time), on Jean's own small synthesizer. Each note is lit as it sounds,
|
|
5
|
-
// with where it is to move, and it is copied as
|
|
6
|
-
//
|
|
4
|
+
// them (offline the first time), on Jean's own small synthesizer. Each note is lit as it sounds, a
|
|
5
|
+
// band gliding behind the place it has come to, with where it is to move, and it is copied as
|
|
6
|
+
// its source and its picture at once. One score plays at a time. Beside the task, Save takes it out
|
|
7
|
+
// four ways: printed alone, its .abc, a MIDI file or sent to an app here. Drawn again, at most every quarter second, while the answer is written. Loaded by the
|
|
7
8
|
// first score an answer holds; until then, or when abcjs finds no music in a block, it shows as code.
|
|
8
9
|
import { html, render, svg } from 'lit-html'
|
|
9
10
|
import { app, notify } from '../../ui/state.js'
|
|
10
|
-
import { copyDrawing, pictureOf } from '../../ui/save.js'
|
|
11
|
+
import { copyDrawing, pictureOf, printAlone, save } from '../../ui/save.js'
|
|
11
12
|
import { drawn } from '../../ui/markdown.js'
|
|
12
|
-
import { drawnActions } from '../../ui/caps.js'
|
|
13
|
+
import { drawnActions, register } from '../../ui/caps.js'
|
|
13
14
|
import { icon, icons } from '../../ui/menu-icons.js'
|
|
14
|
-
import { styleSheet } from '../../ui/sheet.js'
|
|
15
|
+
import { styleSheet, still } from '../../ui/sheet.js'
|
|
15
16
|
import { modelWorker } from '../../ui/model.js'
|
|
16
|
-
import { t, useStrings, intlLocales } from '../../core/i18n.js'
|
|
17
|
+
import { t, dir, locale, useStrings, intlLocales } from '../../core/i18n.js'
|
|
17
18
|
import { notesOf, wholeNote } from './notes.js'
|
|
18
19
|
|
|
19
20
|
/** @typedef {import('./notes.js').Note} Note */
|
|
21
|
+
/** @typedef {import('../../ui/preview.js').Shown} Shown */
|
|
20
22
|
|
|
21
|
-
const [{ renderAbc }] = await Promise.all([
|
|
23
|
+
const [{ renderAbc, default: abcjs }] = await Promise.all([
|
|
22
24
|
import(new URL('../../vendor/abcjs/abcjs.mjs', import.meta.url).href),
|
|
23
25
|
useStrings('scores'),
|
|
24
26
|
styleSheet(new URL('scores.css', import.meta.url)),
|
|
25
27
|
])
|
|
26
28
|
|
|
29
|
+
/** Its lines broken again for the width it has, four bars a line where they fit (abcjs's wrap). */
|
|
30
|
+
const WRAP = { minSpacing: 1.8, maxSpacing: 2.7, preferredMeasuresPerLine: 4 }
|
|
27
31
|
const PAUSE = icon(svg`<path d="M9 5.5v13M15 5.5v13"/>`)
|
|
28
32
|
|
|
29
33
|
/** The sound, made at the first Play (browsers start it only on a click), and the score playing. */
|
|
34
|
+
let scores = 0
|
|
30
35
|
let context = /** @type {AudioContext | null} */ (null)
|
|
31
36
|
let playing = /** @type {AppScore | null} */ (null)
|
|
32
37
|
/** Where the music is made: a worker of this Jean's own, or none in a saved copy, whose files come from an address that starts none. */
|
|
@@ -38,20 +43,12 @@ const sounds = WORKER.origin === location.origin ? modelWorker(WORKER, 'The scor
|
|
|
38
43
|
* then let go. @param {AudioContext} sound @param {AudioNode} out @param {Note} note @param {number} at @param {number} end
|
|
39
44
|
*/
|
|
40
45
|
function tone(sound, out, note, at, end) {
|
|
41
|
-
const loud = 0.6 * note.volume
|
|
42
|
-
|
|
43
|
-
envelope.gain.setValueAtTime(0, at)
|
|
44
|
-
envelope.gain.linearRampToValueAtTime(loud, at + 0.008)
|
|
45
|
-
envelope.gain.setTargetAtTime(loud * 0.3, at + 0.008, 0.3)
|
|
46
|
-
envelope.gain.setTargetAtTime(0, Math.max(end, at + 0.03), 0.04)
|
|
46
|
+
const [loud, envelope] = [0.6 * note.volume, new GainNode(sound)]
|
|
47
|
+
envelope.gain.setValueAtTime(0, at).linearRampToValueAtTime(loud, at + 0.008).setTargetAtTime(loud * 0.3, at + 0.008, 0.3).setTargetAtTime(0, Math.max(end, at + 0.03), 0.04)
|
|
47
48
|
envelope.connect(out)
|
|
48
49
|
for (const [type, octave, level] of /** @type {const} */ ([['triangle', 1, 1], ['sine', 2, 0.25]])) {
|
|
49
|
-
const wave = sound.
|
|
50
|
-
|
|
51
|
-
wave.type = type
|
|
52
|
-
wave.frequency.value = note.frequency * octave
|
|
53
|
-
share.gain.value = level
|
|
54
|
-
wave.connect(share).connect(envelope)
|
|
50
|
+
const wave = new OscillatorNode(sound, { type, frequency: note.frequency * octave })
|
|
51
|
+
wave.connect(new GainNode(sound, { gain: level })).connect(envelope)
|
|
55
52
|
wave.start(at)
|
|
56
53
|
wave.stop(Math.max(end, at + 0.03) + 0.3)
|
|
57
54
|
}
|
|
@@ -59,10 +56,14 @@ function tone(sound, out, note, at, end) {
|
|
|
59
56
|
|
|
60
57
|
class AppScore extends HTMLElement {
|
|
61
58
|
static observedAttributes = ['source']
|
|
59
|
+
/** Its notes' id, which its picture is described by. */
|
|
60
|
+
wordsId = `score-words-${++scores}`
|
|
62
61
|
/** @type {Note[]} */
|
|
63
62
|
notes = []
|
|
64
|
-
/** abcjs's moments, each with the notes that sound then. @type {{ milliseconds: number, elements?: Element[][] }[]} */
|
|
63
|
+
/** abcjs's moments, each with the notes that sound then and their place on the drawing. @type {{ milliseconds: number, elements?: Element[][], line: number, left: number, top: number, width: number, height: number }[]} */
|
|
65
64
|
moments = []
|
|
65
|
+
/** Where the band is drawn: x, y, width and height on the drawing. @type {number[] | undefined} */
|
|
66
|
+
zone
|
|
66
67
|
/** In seconds: how long it lasts, where it is, and when that was 0 on the sound's clock while it plays. */
|
|
67
68
|
length = 0
|
|
68
69
|
at = 0
|
|
@@ -82,17 +83,9 @@ class AppScore extends HTMLElement {
|
|
|
82
83
|
timer = 0
|
|
83
84
|
frame = 0
|
|
84
85
|
|
|
85
|
-
|
|
86
|
-
static wake() { context ??= new AudioContext(); void context.resume() }
|
|
86
|
+
attributeChangedCallback() { clearTimeout(this.timer); this.timer = setTimeout(() => this.draw(), this.drawn === null ? 0 : 250) }
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
clearTimeout(this.timer)
|
|
90
|
-
this.timer = setTimeout(() => this.draw(), this.drawn === null ? 0 : 250)
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
disconnectedCallback() {
|
|
94
|
-
this.pause()
|
|
95
|
-
}
|
|
88
|
+
disconnectedCallback() { this.pause() }
|
|
96
89
|
|
|
97
90
|
draw() {
|
|
98
91
|
const source = this.getAttribute('source') ?? ''
|
|
@@ -105,11 +98,11 @@ class AppScore extends HTMLElement {
|
|
|
105
98
|
/** @type {any} */
|
|
106
99
|
let tune = null
|
|
107
100
|
try {
|
|
108
|
-
// Its lines broken again for the width it has
|
|
109
|
-
//
|
|
101
|
+
// Its lines broken again for the width it has (WRAP): as written, a line of several staves
|
|
102
|
+
// could run twice past it, and the whole score shrank.
|
|
110
103
|
const { paddingInlineStart, paddingInlineEnd } = getComputedStyle(this)
|
|
111
104
|
const width = Math.max(400, this.clientWidth ? this.clientWidth - parseFloat(paddingInlineStart) - parseFloat(paddingInlineEnd) : 770)
|
|
112
|
-
tune = renderAbc(sheet, source, { responsive: 'resize', add_classes: true, staffwidth: width - 30, wrap:
|
|
105
|
+
tune = renderAbc(sheet, source, { responsive: 'resize', add_classes: true, staffwidth: width - 30, wrap: WRAP })[0]
|
|
113
106
|
} catch (error) {
|
|
114
107
|
console.warn('Score', error)
|
|
115
108
|
}
|
|
@@ -119,32 +112,32 @@ class AppScore extends HTMLElement {
|
|
|
119
112
|
this.length = Math.max(0, ...this.notes.map((note) => note.at + note.length))
|
|
120
113
|
this.at = Math.min(this.at, this.length)
|
|
121
114
|
this.label = music ? String(tune.metaText?.title ?? '') : ''
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
115
|
+
this.zone = undefined
|
|
116
|
+
const drawing = sheet.querySelector('svg')
|
|
117
|
+
if (music && drawing) render(svg`<rect class="score-band" rx="4" width="0"></rect>`, drawing, { renderBefore: drawing.firstChild })
|
|
118
|
+
else (sheet.replaceChildren(), (sheet.style.cssText = ''))
|
|
126
119
|
this.paint()
|
|
127
|
-
if (this.notes.length && this.hasAttribute('autoplay')) (this.removeAttribute('autoplay'), this.play())
|
|
128
120
|
}
|
|
129
121
|
|
|
130
122
|
paint() {
|
|
131
123
|
const music = this.moments.length > 0
|
|
132
124
|
const on = this.started !== null || this.loading !== null
|
|
133
125
|
const source = this.getAttribute('source') ?? ''
|
|
134
|
-
render(html`<div class="score-sheet" dir="ltr" role="img" aria-label=${this.label || t('scores.score')}></div>
|
|
135
|
-
${!music ? html`<p class="drawn-status muted small" role="status"><span class="while">${t('scores.drawing')}</span><span class="failed">${t('scores.failed')}</span></p>
|
|
126
|
+
render(html`<div class="score-sheet" dir="ltr" role="img" aria-describedby=${this.wordsId} aria-label=${this.label || t('scores.score')}></div>
|
|
127
|
+
${!music ? html`<p class="drawn-status muted small" role="status"><span class="while">${t('scores.drawing')}</span><span class="failed" role="alert">${t('scores.failed')}</span></p>
|
|
136
128
|
<pre dir="ltr" tabindex="0"><code>${source}</code></pre>`
|
|
137
|
-
: html`<div class="score-player" dir="ltr" aria-busy=${this.loading !== null}>${this.notes.length ? html`
|
|
129
|
+
: html`<div class="score-player" dir="ltr" lang=${locale.value} aria-busy=${this.loading !== null}>${this.notes.length ? html`
|
|
138
130
|
<button class="icon-button" aria-label=${t(on ? 'scores.pause' : 'scores.play')} @click=${() => (on ? this.pause() : this.play())}>${on ? PAUSE : icons.play}</button>
|
|
139
|
-
<
|
|
131
|
+
<button class="icon-button" aria-label=${t('scores.mute')} aria-pressed=${String(this.quiet)} @click=${() => this.hush()}>${icons.speaker}</button>
|
|
132
|
+
<input type="range" min="0" max=${this.length} step="0.05" .value=${String(this.at)} title=${t('scores.where')} aria-valuetext=${clock(this.at)}
|
|
140
133
|
@input=${(/** @type {Event} */ e) => this.seek(Number(/** @type {HTMLInputElement} */ (e.target).value))}>
|
|
141
|
-
|
|
134
|
+
${this.loading === null ? html`<span class="score-time">${clock(this.at)} / ${clock(this.length)}</span>` : html`<span class="score-time" role="progressbar" aria-label=${this.label || t('scores.score')} aria-valuenow=${Math.round(this.loading * 100)}>${new Intl.NumberFormat(intlLocales(), { style: 'percent' }).format(this.loading)}</span>`}` : ''}
|
|
142
135
|
</div>
|
|
143
|
-
<div class="drawn-foot">
|
|
136
|
+
<div class="drawn-foot" lang=${locale.value}>
|
|
144
137
|
<button class="icon-button subtle" aria-label=${t('action.copy')}
|
|
145
|
-
@click=${() => copyDrawing(source, this.picture()).then(() => notify(t('toast.copied')), () => notify(t('made.copyFailed')))}>${icons.copy}</button>
|
|
138
|
+
@click=${() => copyDrawing(source, this.picture()).then(() => notify(t('toast.copied')), () => notify(t('made.copyFailed'), { alert: true }))}>${icons.copy}</button>
|
|
146
139
|
${drawnActions('abc', source)}
|
|
147
|
-
</div>`}`, this)
|
|
140
|
+
</div><details class="score-notes" id=${this.wordsId}><summary lang=${locale.value} dir=${dir()}>${t('scores.notes')}</summary><pre dir="ltr" tabindex="0">${source}</pre></details>`}`, this)
|
|
148
141
|
}
|
|
149
142
|
|
|
150
143
|
/**
|
|
@@ -156,6 +149,7 @@ class AppScore extends HTMLElement {
|
|
|
156
149
|
const [width, height] = (drawn.getAttribute('viewBox')?.split(/\s+/).slice(2) ?? [drawn.getAttribute('width'), drawn.getAttribute('height')]).map(Number)
|
|
157
150
|
const copy = /** @type {SVGSVGElement} */ (drawn.cloneNode(true))
|
|
158
151
|
copy.removeAttribute('style')
|
|
152
|
+
copy.querySelector('.score-band')?.remove()
|
|
159
153
|
copy.setAttribute('width', String(width))
|
|
160
154
|
copy.setAttribute('height', String(height))
|
|
161
155
|
return pictureOf(new XMLSerializer().serializeToString(copy), width, height)
|
|
@@ -205,11 +199,20 @@ class AppScore extends HTMLElement {
|
|
|
205
199
|
})
|
|
206
200
|
}
|
|
207
201
|
|
|
202
|
+
/** Whether its sound is off, the music going on all the same. */
|
|
203
|
+
quiet = false
|
|
204
|
+
|
|
205
|
+
/** How loud it plays. */
|
|
206
|
+
level() { return this.quiet ? 0 : this.parts ? 2.5 : 0.3 }
|
|
207
|
+
|
|
208
|
+
/** Its sound off, or on again. */
|
|
209
|
+
hush() { this.quiet = !this.quiet; if (this.out && context) this.out.gain.setTargetAtTime(this.level(), context.currentTime, 0.015); this.paint() }
|
|
210
|
+
|
|
208
211
|
/** Plays from where it is: its parts as they come, or each note on the synthesizer. @param {AudioContext} sound */
|
|
209
212
|
start(sound) {
|
|
210
213
|
const out = sound.createGain()
|
|
211
214
|
// As loud on either: MS Basic plays at about a third of the synthesizer's level, chords well below clipping.
|
|
212
|
-
out.gain.value = this.
|
|
215
|
+
out.gain.value = this.level()
|
|
213
216
|
out.connect(sound.destination)
|
|
214
217
|
this.out = out
|
|
215
218
|
this.started = sound.currentTime + 0.05 - this.at
|
|
@@ -252,26 +255,43 @@ class AppScore extends HTMLElement {
|
|
|
252
255
|
const on = this.started !== null
|
|
253
256
|
this.pause()
|
|
254
257
|
this.at = seconds
|
|
258
|
+
this.follow(seconds, Infinity)
|
|
255
259
|
if (on) this.play()
|
|
256
260
|
else this.paint()
|
|
257
261
|
}
|
|
258
262
|
|
|
259
|
-
/** Where it is now, and the notes sounding
|
|
263
|
+
/** Where it is now, the band there and the notes sounding lit; at the end it stops, ready to play again. */
|
|
260
264
|
tick() {
|
|
261
265
|
if (this.started === null || !context) return
|
|
262
266
|
const now = context.currentTime - this.started
|
|
263
267
|
if (now >= this.length) {
|
|
264
268
|
this.pause(true)
|
|
265
269
|
this.at = 0
|
|
270
|
+
this.follow(-1, 0)
|
|
266
271
|
return this.paint()
|
|
267
272
|
}
|
|
273
|
+
this.light(this.follow(now, now - this.at)?.elements?.flat() ?? [])
|
|
268
274
|
this.at = Math.max(0, now)
|
|
269
|
-
const moment = this.moments.findLast((candidate) => candidate.milliseconds <= this.at * 1000)
|
|
270
|
-
this.light(moment?.elements?.flat() ?? [])
|
|
271
275
|
this.paint()
|
|
272
276
|
this.frame = requestAnimationFrame(() => this.tick())
|
|
273
277
|
}
|
|
274
278
|
|
|
279
|
+
/**
|
|
280
|
+
* The band behind the place `seconds` has come to, as high as its line of staves, from the
|
|
281
|
+
* notes sounding to the next ones on that line, or a little past them: it glides there from where it
|
|
282
|
+
* was, `step` seconds ago, and goes there at once on a new line, after a seek or with less motion.
|
|
283
|
+
* It stays where the music paused, and goes before it starts. @param {number} seconds @param {number} step
|
|
284
|
+
*/
|
|
285
|
+
follow(seconds, step) {
|
|
286
|
+
const index = this.moments.findLastIndex((moment) => moment.milliseconds <= seconds * 1000)
|
|
287
|
+
const [moment, next] = [this.moments[index], this.moments[index + 1]]
|
|
288
|
+
const goal = moment && [moment.left - 4, moment.top, (next?.line === moment.line && next.left > moment.left ? next.left : moment.left + moment.width + 8) - moment.left, moment.height]
|
|
289
|
+
const stay = goal && this.zone?.[1] === goal[1] && !still() ? Math.exp(-Math.max(0, step) / 0.06) : 0
|
|
290
|
+
this.zone = goal?.map((value, i) => value + ((this.zone?.[i] ?? value) - value) * stay)
|
|
291
|
+
for (const [i, name] of ['x', 'y', 'width', 'height'].entries()) this.querySelector('.score-band')?.setAttribute(name, String(this.zone?.[i] ?? 0))
|
|
292
|
+
return moment
|
|
293
|
+
}
|
|
294
|
+
|
|
275
295
|
/** @param {Element[]} elements */
|
|
276
296
|
light(elements) {
|
|
277
297
|
if (elements.length === this.lit.length && elements.every((element, i) => element === this.lit[i])) return
|
|
@@ -287,5 +307,33 @@ function clock(seconds) {
|
|
|
287
307
|
return `${new Intl.NumberFormat(intlLocales()).format(Math.floor(whole / 60))}:${new Intl.NumberFormat(intlLocales(), { minimumIntegerDigits: 2 }).format(whole % 60)}`
|
|
288
308
|
}
|
|
289
309
|
|
|
310
|
+
/**
|
|
311
|
+
* What leaves of the tune in a pane, from its ABC as the pane has it (ui/preview.js): its title, a MIDI file of abcjs's, and what Send gives, its
|
|
312
|
+
* MIDI and its ABC where the system takes them, else its picture. @param {Shown} file @param {Element} pane
|
|
313
|
+
*/
|
|
314
|
+
async function made(file, pane) {
|
|
315
|
+
const { name, bytes } = await (await import('../../ui/preview.js')).fileBytes(file)
|
|
316
|
+
const source = new TextDecoder().decode(bytes ?? new Uint8Array()), title = name.replace(/\.abc$/i, '')
|
|
317
|
+
const midi = new File([abcjs.synth.getMidiFile(source, { midiOutputType: 'binary' })[0]], `${title}.mid`, { type: 'audio/midi' }), files = [midi, new File([source], name, { type: 'text/vnd.abc' })]
|
|
318
|
+
const picture = navigator.canShare?.({ files }) ? null : await /** @type {AppScore | null} */ (pane.querySelector('app-score'))?.picture()
|
|
319
|
+
return { title, source, midi, files: picture ? [new File([picture], `${title}.png`, { type: 'image/png' })] : files }
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/** Printed alone: drawn again for the page out of sight, in black on white, then gone. @param {string} source */
|
|
323
|
+
function print(source) {
|
|
324
|
+
const holder = document.body.appendChild(Object.assign(document.createElement('div'), { className: 'score-print', dir: 'ltr', ariaHidden: 'true' }))
|
|
325
|
+
renderAbc(holder, source, { add_classes: true, responsive: 'resize', staffwidth: 640, wrap: WRAP })
|
|
326
|
+
return printAlone(holder, 'is-printing-score')
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/** What a tune can do (ui/out.js). @param {Shown} file @param {Element} pane @returns {import('../../ui/out.js').Ways} */
|
|
330
|
+
const ways = (file, pane) => ({ share: async () => ({ text: `\`\`\`abc\n${(await made(file, pane)).source}\n\`\`\`` }),
|
|
331
|
+
send: { file: 'a.png', type: 'image/png', make: () => made(file, pane).then(({ title, files }) => ({ title, files })) },
|
|
332
|
+
copy: { id: 'copy', run: async () => { await copyDrawing((await made(file, pane)).source, /** @type {AppScore} */ (pane.querySelector('app-score')).picture()); notify(t('toast.copied')) } },
|
|
333
|
+
files: [{ id: 'midi', glyph: icons.download, label: t('scores.out.midi'), run: async () => { const { midi } = await made(file, pane); save(midi, midi.name) } },
|
|
334
|
+
{ id: '', glyph: icons.download, label: t('scores.out.abc'), run: async () => (await import('../../ui/preview.js')).download(file) }],
|
|
335
|
+
print: { id: 'print', run: async () => print((await made(file, pane)).source) } })
|
|
336
|
+
|
|
290
337
|
customElements.define('app-score', AppScore)
|
|
338
|
+
register({ id: 'scores', slots: { out: { at: 2, draw: () => null, of: (/** @type {Shown} */ { name }) => /\.abc$/i.test(name), load: async () => ({ ways }) } } })
|
|
291
339
|
drawn.value = { ...drawn.peek(), abc: (source) => html`<app-score source=${source}></app-score>` }
|
package/caps/share/view.js
CHANGED
|
@@ -138,7 +138,7 @@ function draw() {
|
|
|
138
138
|
${reporting === 'writing' ? html`<form @submit=${report}>
|
|
139
139
|
<label for="words">${t('share.reportWhat')}</label>
|
|
140
140
|
<textarea id="words" name="words" rows="4" required maxlength="5000" dir="auto"></textarea>
|
|
141
|
-
<label><input type="checkbox" name="link" checked> ${t('share.reportLink')}</label>
|
|
141
|
+
<label for="link"><input id="link" type="checkbox" name="link" checked> ${t('share.reportLink')}</label>
|
|
142
142
|
<button class="primary">${t('share.reportSend')}</button>
|
|
143
143
|
</form>` : reporting === 'sent' ? html`<p class="said" role="status">${t('share.reportSent')}</p>` : nothing}
|
|
144
144
|
${step.at === 'password' ? html`<form @submit=${(/** @type {SubmitEvent} */ event) => { event.preventDefault(); show({ at: 'opening' }); open(String(new FormData(/** @type {HTMLFormElement} */ (event.target)).get('password'))) }}>
|
package/caps/skills/directory.js
CHANGED
|
@@ -8,7 +8,8 @@ import { parseSkill } from '../../core/skills.js'
|
|
|
8
8
|
|
|
9
9
|
/** @typedef {import('./sources.js').Entry & { icon: string, group: string, body: string, blocks?: string[] }} Ready digest '': Jean's own, read from its own files, its steps too */
|
|
10
10
|
|
|
11
|
-
/** The skills, by name, with what they are for, as Settings' Add a skill groups them
|
|
11
|
+
/** The skills, by name, with what they are for, as Settings' Add a skill groups them, and their icon's path (24×24, drawn with a line). */
|
|
12
|
+
/** @type {readonly { name: string, group: string, icon: string, cap?: string, beside?: string[] }[]} */
|
|
12
13
|
export const DIRECTORY = Object.freeze([
|
|
13
14
|
{ name: 'plain-words', group: 'day', icon: 'M4.5 5.5h15v10h-8l-4 3.5v-3.5h-3zM8 9h8M8 12h5' },
|
|
14
15
|
{ name: 'letter', group: 'day', icon: 'M3.5 6.5h17v11h-17zM3.5 7l8.5 6 8.5-6' },
|
|
@@ -30,6 +31,8 @@ export const DIRECTORY = Object.freeze([
|
|
|
30
31
|
{ name: 'visual', group: 'drawn', icon: 'M3.5 6.5l5-2 7 2 5-2v13l-5 2-7-2-5 2zM8.5 4.5v13M15.5 6.5v13' },
|
|
31
32
|
{ name: 'music-score', group: 'drawn', icon: 'M9 18.5V6l10-2v12.5M4 18.5a2.5 2.5 0 1 0 5 0 2.5 2.5 0 1 0-5 0M14 16.5a2.5 2.5 0 1 0 5 0 2.5 2.5 0 1 0-5 0' },
|
|
32
33
|
{ name: 'slides', group: 'drawn', icon: 'M3.5 4.5h17M5 4.5V14a1.5 1.5 0 0 0 1.5 1.5h11A1.5 1.5 0 0 0 19 14V4.5M12 15.5V18M8.5 20.5 12 18l3.5 2.5M9 12v-1.5M12 12V8M15 12V9.5' },
|
|
34
|
+
// Games (D648): the capability it brings, and its sheets beside its steps.
|
|
35
|
+
{ name: 'game', group: 'drawn', icon: 'M7.5 7h9a4.5 4.5 0 0 1 4.4 5.4l-1 4.4a2.3 2.3 0 0 1-4 1L14 16h-4l-1.9 1.8a2.3 2.3 0 0 1-4-1l-1-4.4A4.5 4.5 0 0 1 7.5 7zM8 10v4M6 12h4M15.5 10.5v.01M17.5 13v.01', cap: 'games', beside: ['phaser.md', 'babylon.md', 'canvas.md', 'feel.md'] },
|
|
33
36
|
{ name: 'pptx', group: 'drawn', icon: 'M6.5 3.5h8l4 4v13h-12zM14.5 3.5v4h4M9 14a3 3 0 1 0 6 0 3 3 0 1 0-6 0M12 11v3h3' },
|
|
34
37
|
])
|
|
35
38
|
|
|
@@ -48,10 +51,10 @@ export function shownIn({ name, description, title = name, metadata = {} }, lang
|
|
|
48
51
|
* @returns {Promise<Ready[]>}
|
|
49
52
|
*/
|
|
50
53
|
export async function readDirectory({ fetch = globalThis.fetch, base = new URL('directory/', import.meta.url) } = {}) {
|
|
51
|
-
const read = await Promise.all(DIRECTORY.map(async ({ name, group, icon }) => {
|
|
54
|
+
const read = await Promise.all(DIRECTORY.map(async ({ name, group, icon, cap, beside }) => {
|
|
52
55
|
const url = new URL(`${name}/SKILL.md`, base).href
|
|
53
56
|
const skill = await fetch(url).then(async (response) => (response.ok ? parseSkill(await response.text(), url) : null)).catch(() => null)
|
|
54
|
-
return skill?.name === name ? [{ name, type: /** @type {const} */ ('skill-md'), description: skill.description, url, digest: '', source: '', icon, group, metadata: skill.metadata, body: skill.body, blocks: skill.blocks }] : []
|
|
57
|
+
return skill?.name === name ? [{ name, type: /** @type {const} */ ('skill-md'), description: skill.description, url, digest: '', source: '', icon, group, metadata: skill.metadata, body: skill.body, blocks: skill.blocks, cap, beside }] : []
|
|
55
58
|
}))
|
|
56
59
|
return read.flat()
|
|
57
60
|
}
|
package/caps/skills/sources.js
CHANGED
|
@@ -16,7 +16,7 @@ import { alike } from '../../core/search.js'
|
|
|
16
16
|
/**
|
|
17
17
|
* A skill an index or a repository offers. url: absolute (a folder's SKILL.md); source: where it is listed; files: a folder's, with git's hashes;
|
|
18
18
|
* metadata: its SKILL.md's, for one of Jean's own (D222).
|
|
19
|
-
* @typedef {{ name: string, type: 'skill-md' | 'archive' | 'folder', description: string, url: string, digest: string, source: string, files?: { path: string, sha: string, size: number }[], metadata?: Record<string, any
|
|
19
|
+
* @typedef {{ name: string, type: 'skill-md' | 'archive' | 'folder', description: string, url: string, digest: string, source: string, files?: { path: string, sha: string, size: number }[], metadata?: Record<string, any>, cap?: string, beside?: string[] }} Entry
|
|
20
20
|
*/
|
|
21
21
|
/** What a source held when last read, or why it couldn't be, and until when (GitHub's limit). @typedef {{ url: string, at: string, skills: Entry[], error?: string, until?: string }} Index */
|
|
22
22
|
|
|
@@ -163,7 +163,9 @@ export async function fetchSkill(entry, fetch = globalThis.fetch) {
|
|
|
163
163
|
const bytesOf = async (/** @type {string} */ url) => new Uint8Array(await (await answer(fetch, url)).arrayBuffer())
|
|
164
164
|
if (!entry.digest) {
|
|
165
165
|
const { data, body } = parseFrontMatter(new TextDecoder().decode(await bytesOf(entry.url)))
|
|
166
|
-
|
|
166
|
+
// Its sheets, beside its steps (D648).
|
|
167
|
+
const files = await Promise.all((entry.beside ?? []).map(async (path) => ({ path, text: new TextDecoder().decode(await bytesOf(new URL(path, entry.url).href)) })))
|
|
168
|
+
return { body: body.trim(), files, blocks: blocksOf(data.metadata?.blocks), metadata: data.metadata }
|
|
167
169
|
}
|
|
168
170
|
if (!entry.files) return unpack(entry, await bytesOf(entry.url))
|
|
169
171
|
const odd = entry.files.find((file) => !TEXT.test(file.path))
|
package/caps/slides/edit.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// What Slides changes in a deck's Markdown (D591), as text, so that the rest of it stays byte for byte: a slide's layout, in
|
|
2
2
|
// its settings; the kit the deck was drawn with, kept in its headmatter as one line, so that the file looks the same wherever it
|
|
3
|
-
// goes; where its pictures are, a picture of the task named by its name kept at its place in the project
|
|
3
|
+
// goes; where its pictures are, a picture of the task named by its name kept at its place in the project; and Jean's
|
|
4
4
|
// version of a deck set against the user's slide by slide, each run of slides it changes, adds or takes away a change to accept
|
|
5
5
|
// or reject (D505). Pure, on deck's own reading of the Markdown (parseDeck).
|
|
6
6
|
import { parseDeck } from '@codename/deck'
|
|
@@ -36,7 +36,7 @@ export const withTitle = (source, title) => withSetting(source, 'title', JSON.st
|
|
|
36
36
|
|
|
37
37
|
/** A picture's place in a deck, as deck reads one: `` or `(<place>)`, or a slide's `image:` or `background:`, quoted or not. */
|
|
38
38
|
const PICTURE = /(!\[[^\]\n]*\]\(<?)([^<>)\n]+?)(>?(?:\s+(?:"[^"\n]*"|'[^'\n]*'))?\))|^([ \t]*(?:image|background|backgroundImage)[ \t]*:[ \t]*)(.+?)([ \t]*)$/gm
|
|
39
|
-
/** The deck with each picture at the place `to` gives it, else where it was
|
|
39
|
+
/** The deck with each picture at the place `to` gives it, else where it was. @param {string} source @param {(place: string) => string | undefined | void} to */
|
|
40
40
|
export const withPictures = (source, to) => source.replace(PICTURE, (all, open, place, close, key, set, rest) => ((there) => (there ? `${open ?? key}${there}${close ?? rest}` : all))(to(place?.trim() ?? set.replace(/^(['"])(.*)\1$/, '$2'))))
|
|
41
41
|
/** The latest of the task's pictures that goes by the name a deck gives it, as the brain writes one: its case, %20 and its extension aside. @template {{ name: string }} T @param {T[]} pictures @param {string} place */
|
|
42
42
|
export const namedIn = (pictures, place) => ((bare) => pictures.findLast((one) => bare(one.name) === bare(place)))((/** @type {string} */ name) => name.trim().toLowerCase().replace(/%20/g, ' ').replace(/\.\w+$/, ''))
|
package/caps/slides/kit-page.css
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
/* Settings › Appearance › Design system (D602): a deck drawn with the kit, then its colours, type, logo, layouts and files. */
|
|
2
|
-
.kit-
|
|
1
|
+
/* Settings › Appearance › Design system (D602, D664): a deck drawn with the kit and a page of paper, then its colours, type, logo, layouts and files. */
|
|
2
|
+
.kit-previews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8rem, 11rem); gap: 1rem; align-items: start; margin-block: 1rem; } .kit-previews figure { margin: 0; }
|
|
3
|
+
@media (max-width: 40rem) { .kit-previews { grid-template-columns: minmax(0, 1fr); } .kit-previews figure { max-inline-size: 11rem; } }
|
|
4
|
+
.kit-sheet { aspect-ratio: 1 / 1.414; padding: 0.9rem; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 0.2rem; background: #fff; color: var(--sheet-ink, #111); font: 0.625rem/1.45 var(--sheet-body, var(--sans)); color-scheme: light; }
|
|
5
|
+
.kit-sheet img { display: block; max-block-size: 1rem; max-inline-size: 4rem; margin-block-end: 0.5rem; } .kit-sheet img[class$="end"] { margin-inline-start: auto; }
|
|
6
|
+
.kit-sheet b { display: block; margin-block-end: 0.35rem; color: var(--sheet-colour, #111); font: 700 0.875rem/1.2 var(--sheet-head, var(--display)); }
|
|
7
|
+
.kit-sheet p { margin: 0 0 0.35rem; } .kit-sheet blockquote { margin: 0 0 0.5rem; padding-inline-start: 0.4rem; border-inline-start: 1px solid var(--sheet-colour, #999); color: var(--sheet-muted, #595959); font-style: italic; }
|
|
8
|
+
.kit-sheet table { inline-size: 100%; border-collapse: collapse; } .kit-sheet th { padding: 0.15rem 0.25rem; border-block-end: 2px solid var(--sheet-colour, #999); background: var(--sheet-soft, #f2f2f2); text-align: start; }
|
|
3
9
|
.kit-colour { display: inline-flex; align-items: center; gap: 0.25rem; }
|
|
4
10
|
.kit-code { inline-size: 12rem; font: 0.85rem var(--mono); }
|
|
5
11
|
.kit-code[aria-invalid="true"] { border-color: var(--danger); }
|
package/caps/slides/kit-page.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// Settings › Appearance › Design system (D602): the kit
|
|
2
|
-
// their files) or a project's (its folder's), as ui/kit.js keeps them, a deck drawn with it beside, over Jean's own look and
|
|
1
|
+
// Settings › Appearance › Design system (D602, D664): the kit documents, collections and decks wear, the person's everywhere (kit.json at the root of
|
|
2
|
+
// their files) or a project's (its folder's), as ui/kit.js keeps them, a deck drawn with it beside and a page of paper, over Jean's own look and
|
|
3
3
|
// under the organisation's: its colours by day and by night, each written (rgb(), rgba() or hex) or picked, its type (a voice, or
|
|
4
4
|
// the user's own fonts), its corners, its logo and the one for dark paper with their corner, and its layouts, deck's own on or
|
|
5
|
-
// off and the user's own as a grid of named slots with how its words sit. A kit, a PowerPoint template or an Office theme is
|
|
5
|
+
// off and the user's own as a grid of named slots with how its words sit, those that only slides show saying so. A kit, a PowerPoint template or an Office theme is
|
|
6
6
|
// brought in, a template's layouts with their art (D606), the kit saved as a file or as design tokens (deck's template module,
|
|
7
|
-
// loaded then). Each change is kept at once.
|
|
7
|
+
// loaded then). Each change is kept at once. Opened by its slot (./kit-slot.js), which
|
|
8
8
|
// Appearance draws under its back button (ui/look-page.js): a saved task's page, which carries Slides, never reaches Settings.
|
|
9
9
|
import { html, nothing } from 'lit-html'
|
|
10
10
|
import { live } from 'lit-html/directives/live.js'
|
|
@@ -12,15 +12,16 @@ import { ref } from 'lit-html/directives/ref.js'
|
|
|
12
12
|
import { signal } from '@preact/signals-core'
|
|
13
13
|
import { createDeck, mergeKits, layoutOf, logoOf, labelOf, tokensFrom, rgbOf, CORNERS, STANDARD } from '@codename/deck'
|
|
14
14
|
import { app, theme } from '../../ui/state.js'
|
|
15
|
-
import { kitFile, keepKit, hexOf } from '../../ui/kit.js'
|
|
15
|
+
import { kitFile, keepKit, hexOf, paperOf } from '../../ui/kit.js'
|
|
16
16
|
import { save } from '../../ui/save.js'
|
|
17
17
|
import { icons } from '../../ui/menu-icons.js'
|
|
18
|
-
import { t, locale, dir } from '../../core/i18n.js'
|
|
19
|
-
import { jeanKit, copyOf, withNames } from './kit.js'
|
|
20
|
-
import {
|
|
18
|
+
import { t, locale, dir, useStrings } from '../../core/i18n.js'
|
|
19
|
+
import { jeanKit, copyOf, withNames, words } from './kit.js'
|
|
20
|
+
import { sampleDeck } from './kit-sample.js'
|
|
21
|
+
import { facesOf } from '../made/paper.js'
|
|
21
22
|
import { styleSheet } from '../../ui/sheet.js'
|
|
22
23
|
|
|
23
|
-
await styleSheet(new URL('kit-page.css', import.meta.url))
|
|
24
|
+
await Promise.all([useStrings('slides'), styleSheet(new URL('../../vendor/deck/deck.css', import.meta.url)), styleSheet(new URL('kit-page.css', import.meta.url))])
|
|
24
25
|
|
|
25
26
|
/** @typedef {{ name?: string, tokens: Record<string, any>, layouts: Record<string, any>, pictures?: Record<string, string> }} Own */
|
|
26
27
|
/** The kit open: its place (null, the person's) and as its file holds it; a layout being made or changed ('+' a new one); what the page says; colours written that deck doesn't read, by field. */
|
|
@@ -114,12 +115,18 @@ async function preview(box, kit) {
|
|
|
114
115
|
const key = JSON.stringify([kit, whose(), theme.peek(), locale.peek()])
|
|
115
116
|
if (!(box instanceof HTMLElement) || shown.key === key) return
|
|
116
117
|
shown.key = key
|
|
117
|
-
const all = await merged(kit)
|
|
118
|
-
const source = names.map((name, i) => `${i ? '\n---\n' : '---\n'}layout: ${name}\n---\n\n# ${labelOf(all.layouts[name], name, locale.peek())}\n\n${t('slides.kit.sample')}\n${
|
|
119
|
-
all.layouts[name].slots.filter((/** @type {string} */ slot) => slot !== 'default').map((/** @type {string} */ slot) => `\n::${slot}::\n\n${t('slides.kit.sample')}\n`).join('')}`).join('')
|
|
118
|
+
const all = await merged(kit)
|
|
120
119
|
shown.view?.destroy()
|
|
121
120
|
box.replaceChildren()
|
|
122
|
-
shown.view = createDeck(box, { source, kit: all, scheme: theme.peek() === 'dark' ? 'dark' : 'light', strings: words(), headings: 'aria', editable: false })
|
|
121
|
+
shown.view = createDeck(box, { source: sampleDeck(all), kit: all, scheme: theme.peek() === 'dark' ? 'dark' : 'light', strings: words(), headings: 'aria', editable: false })
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/** A page of paper in the look, as Word and a print wear it, white whatever the kit's paper. @param {Element | undefined} box @param {Own} kit */
|
|
125
|
+
async function sheet(box, kit) {
|
|
126
|
+
if (!(box instanceof HTMLElement)) return
|
|
127
|
+
const mine = whose() === null, look = paperOf({ ...(mine ? kit : await kitFile(null))?.tokens, ...app.policy.kit?.tokens, ...(mine ? null : kit.tokens) }), [head, body] = facesOf(look), logo = box.querySelector('img')
|
|
128
|
+
for (const [name, value] of Object.entries({ colour: look.colour, ink: look.ink, muted: look.muted, soft: look.soft, head, body })) box.style[value ? 'setProperty' : 'removeProperty'](`--sheet-${name}`, value ?? '')
|
|
129
|
+
if (logo) logo.hidden = !look.logo, logo.src = look.logo ?? '', logo.className = look.logoAt ?? 'top-end'
|
|
123
130
|
}
|
|
124
131
|
|
|
125
132
|
/** A row of the page: its name (none where its section's says it), a line under it, what changes it. @param {unknown} label @param {unknown} line @param {unknown} control */
|
|
@@ -138,9 +145,9 @@ function colour(kit, key, night) {
|
|
|
138
145
|
const value = (night ? kit.tokens.dark ?? {} : kit.tokens)[key], own = /** @type {Record<string, any>} */ (jeanKit().tokens), under = night ? own.dark?.[key] ?? (key === 'primary' ? kit.tokens.primary ?? own.primary : undefined) : own[key]
|
|
139
146
|
const field = `${night ? 'dark.' : ''}${key}`, shown = hexOf(value ?? under ?? '#888888')
|
|
140
147
|
return row(t(`slides.kit.${key}`), value ? nothing : t('slides.kit.auto'), html`<span class="kit-colour"><input class="kit-code" dir="ltr" spellcheck="false" autocomplete="off"
|
|
141
|
-
|
|
148
|
+
title=${t('slides.kit.code', { colour: t(`slides.kit.${key}`) })} aria-invalid=${field in typed.value ? 'true' : 'false'} placeholder=${`rgb(${rgbOf(shown)?.join(', ')})`}
|
|
142
149
|
.value=${live(typed.value[field] ?? value ?? '')} @change=${(/** @type {Event} */ e) => written(key, /** @type {HTMLInputElement} */ (e.target).value, night)}>
|
|
143
|
-
<input type="color"
|
|
150
|
+
<input type="color" title=${t(`slides.kit.${key}`)} .value=${live(shown)}
|
|
144
151
|
@change=${(/** @type {Event} */ e) => written(key, /** @type {HTMLInputElement} */ (e.target).value, night)}>
|
|
145
152
|
${value ? html`<button type="button" class="icon-button subtle" aria-label=${t('slides.kit.auto')} @click=${() => written(key, '', night)}>${icons.close}</button>` : nothing}</span>`)
|
|
146
153
|
}
|
|
@@ -165,18 +172,18 @@ function layoutForm(kit, key) {
|
|
|
165
172
|
making.value = ''
|
|
166
173
|
}
|
|
167
174
|
return html`<form class="kit-layout" @submit=${keep}>
|
|
168
|
-
<label class="kit-field">${t('slides.kit.name')}<input name="name" required maxlength="40" dir="auto" .value=${given ? labelOf(/** @type {any} */ (given), key, locale.peek()) : ''}></label>
|
|
169
|
-
<label class="kit-field">${t('slides.kit.grid')}<textarea name="areas" rows="3" dir="ltr" spellcheck="false" required aria-describedby="kit-grid-hint" .value=${given ? given.areas.map((/** @type {string[]} */ line) => line.join(' ')).join('\n') : 'default default\nleft right'}></textarea></label>
|
|
175
|
+
<label class="kit-field" for="layout-name">${t('slides.kit.name')}<input id="layout-name" name="name" required maxlength="40" dir="auto" .value=${given ? labelOf(/** @type {any} */ (given), key, locale.peek()) : ''}></label>
|
|
176
|
+
<label class="kit-field" for="layout-grid">${t('slides.kit.grid')}<textarea id="layout-grid" name="areas" rows="3" dir="ltr" spellcheck="false" required aria-describedby="kit-grid-hint" .value=${given ? given.areas.map((/** @type {string[]} */ line) => line.join(' ')).join('\n') : 'default default\nleft right'}></textarea></label>
|
|
170
177
|
<p class="hint" id="kit-grid-hint">${t('slides.kit.gridHint')}</p>
|
|
171
|
-
<label class="kit-field">${t('slides.kit.columns')}<input name="columns" dir="ltr" placeholder="1fr 1fr" .value=${given ? given.columns.join(' ') : ''}></label>
|
|
172
|
-
<label class="kit-field">${t('slides.kit.rows')}<input name="rows" dir="ltr" placeholder="auto 1fr" .value=${given ? given.rows.join(' ') : ''}></label>
|
|
173
|
-
<label class="kit-field">${t('slides.kit.background')}<select name="paper">
|
|
178
|
+
<label class="kit-field" for="layout-columns">${t('slides.kit.columns')}<input id="layout-columns" name="columns" dir="ltr" placeholder="1fr 1fr" .value=${given ? given.columns.join(' ') : ''}></label>
|
|
179
|
+
<label class="kit-field" for="layout-rows">${t('slides.kit.rows')}<input id="layout-rows" name="rows" dir="ltr" placeholder="auto 1fr" .value=${given ? given.rows.join(' ') : ''}></label>
|
|
180
|
+
<label class="kit-field" for="layout-paper">${t('slides.kit.background')}<select id="layout-paper" name="paper">
|
|
174
181
|
${['paper', 'fill', 'ink', 'soft'].map((one) => html`<option value=${one} ?selected=${one === (given?.paper ?? 'paper')}>${t(`slides.kit.${one === 'fill' ? 'primary' : one}`)}</option>`)}</select></label>
|
|
175
|
-
${[['align', 'slides.kit.across'], ['justify', 'slides.kit.down']].map(([field, label]) => html`<label class="kit-field">${t(label)}<select name=${field}>
|
|
182
|
+
${[['align', 'slides.kit.across'], ['justify', 'slides.kit.down']].map(([field, label]) => html`<label class="kit-field" for=${`layout-${field}`}>${t(label)}<select id=${`layout-${field}`} name=${field}>
|
|
176
183
|
${AT.map((one) => html`<option value=${one} ?selected=${one === (given?.[field] ?? 'start')}>${t(`slides.kit.${one}`)}</option>`)}</select></label>`)}
|
|
177
|
-
<label class="kit-field">${t('slides.kit.heading')}<select name="title">${['normal', 'large', 'huge'].map((one) => html`<option value=${one} ?selected=${one === (given?.title ?? 'normal')}>${t(`slides.kit.${one}`)}</option>`)}</select></label>
|
|
178
|
-
<label class="kit-field">${t('slides.kit.logo')}<select name="logo">${['small', 'big', 'none'].map((one) => html`<option value=${one} ?selected=${one === (given?.logo ?? 'small')}>${t(`slides.kit.${one === 'big' ? 'large' : one}`)}</option>`)}</select></label>
|
|
179
|
-
<label class="kit-check"><input type="checkbox" name="numbered" ?checked=${given?.numbered ?? true}>${t('slides.kit.numbered')}</label>
|
|
184
|
+
<label class="kit-field" for="layout-title">${t('slides.kit.heading')}<select id="layout-title" name="title">${['normal', 'large', 'huge'].map((one) => html`<option value=${one} ?selected=${one === (given?.title ?? 'normal')}>${t(`slides.kit.${one}`)}</option>`)}</select></label>
|
|
185
|
+
<label class="kit-field" for="layout-logo">${t('slides.kit.logo')}<select id="layout-logo" name="logo">${['small', 'big', 'none'].map((one) => html`<option value=${one} ?selected=${one === (given?.logo ?? 'small')}>${t(`slides.kit.${one === 'big' ? 'large' : one}`)}</option>`)}</select></label>
|
|
186
|
+
<label class="kit-check" for="layout-numbered"><input id="layout-numbered" type="checkbox" name="numbered" ?checked=${given?.numbered ?? true}>${t('slides.kit.numbered')}</label>
|
|
180
187
|
<div class="row"><button class="button primary">${t('slides.kit.keep')}</button><button type="button" class="button subtle" @click=${() => { making.value = '' }}>${t('slides.kit.cancel')}</button></div>
|
|
181
188
|
</form>`
|
|
182
189
|
}
|
|
@@ -186,11 +193,11 @@ function layouts(kit) {
|
|
|
186
193
|
// Named as the Slide layout menu names them, in the user's language (Jean's own kit), the user's own by theirs.
|
|
187
194
|
const all = withNames(mergeKits(jeanKit(), kit).kit).layouts, standard = Object.keys(STANDARD.layouts), mine = Object.keys(kit.layouts).filter((key) => !STANDARD.layouts[key] && kit.layouts[key])
|
|
188
195
|
const turn = (/** @type {string} */ key) => change((next) => { if (next.layouts[key] === false) delete next.layouts[key]; else next.layouts[key] = false })
|
|
189
|
-
return html`<section><h3>${t('slides.kit.layouts')}</h3><ul class="list kit-layouts">
|
|
196
|
+
return html`<section><h3>${t('slides.kit.layouts')}</h3><p class="hint">${t('slides.kit.slidesOnly')}</p><ul class="list kit-layouts">
|
|
190
197
|
${[...standard, ...mine].map((key) => row(labelOf(all[key] ?? /** @type {any} */ (jeanKit().layouts[key]), key, locale.peek()), nothing, html`<span class="row">
|
|
191
198
|
${mine.includes(key) ? html`<button type="button" class="button subtle" @click=${() => { making.value = key }}>${t('slides.kit.change')}</button>
|
|
192
199
|
<button type="button" class="button subtle danger" @click=${() => change((next) => { delete next.layouts[key] })}>${t('slides.kit.delete')}</button>`
|
|
193
|
-
: html`<input type="checkbox" class="switch" role="switch"
|
|
200
|
+
: html`<input type="checkbox" class="switch" role="switch" title=${labelOf(/** @type {any} */ (jeanKit().layouts[key]), key, locale.peek())} .checked=${live(kit.layouts[key] !== false)} ?disabled=${key === 'default'} @change=${() => turn(key)}>`}</span>`))}
|
|
194
201
|
</ul>${making.value ? layoutForm(kit, making.value) : html`<button type="button" class="button" @click=${() => { making.value = '+' }}>${icons.plus} ${t('slides.kit.newLayout')}</button>`}</section>`
|
|
195
202
|
}
|
|
196
203
|
|
|
@@ -199,38 +206,40 @@ export function page() {
|
|
|
199
206
|
const kit = read(), project = app.project.value
|
|
200
207
|
if (!kit) return nothing
|
|
201
208
|
const tokens = kit.tokens, night = tokens.dark ?? {}, fonts = tokens.fonts
|
|
202
|
-
const file = (/** @type {string} */ label, /** @type {string} */ accept, /** @type {(event: Event) => void} */ picked) => html`<label class="button kit-file">${label}<input type="file" class="visually-hidden" accept=${accept} @change=${picked}></label>`
|
|
209
|
+
const file = (/** @type {string} */ id, /** @type {string} */ label, /** @type {string} */ accept, /** @type {(event: Event) => void} */ picked) => html`<label class="button kit-file" for=${id}>${label}<input id=${id} type="file" class="visually-hidden" accept=${accept} @change=${picked}></label>`
|
|
203
210
|
return html`<header class="look-head"><h2 tabindex="-1">${t('slides.kit.title')}</h2>${Object.keys(tokens).length || Object.keys(kit.layouts).length
|
|
204
211
|
? html`<button class="button subtle" @click=${() => change((next) => { next.tokens = {}; next.layouts = {}; delete next.name; typed.value = {} })}>${t('slides.kit.startOver')}</button>` : nothing}</header>
|
|
205
212
|
<p class="lede">${t('slides.kit.text')}</p>
|
|
206
213
|
${project.data.default === true ? nothing : html`<span class="segmented" role="radiogroup" aria-label=${t('slides.kit.title')}>
|
|
207
|
-
${[['kit', t('slides.kit.everywhere')], ['kit-project', t('slides.kit.project', { project: String(project.data.name ?? '') })]].map(([page, label]) => html`<label>
|
|
208
|
-
<input type="radio" name="kit-whose" .checked=${live(pageOpen() === page)} @change=${() => pageOpen(page)}><span>${label}</span></label>`)}</span>`}
|
|
209
|
-
<div class="kit-preview" ${ref((box) => void preview(box, kit))}></div>
|
|
214
|
+
${[['kit', t('slides.kit.everywhere')], ['kit-project', t('slides.kit.project', { project: String(project.data.name ?? '') })]].map(([page, label]) => html`<label for=${`whose-${page}`}>
|
|
215
|
+
<input id=${`whose-${page}`} type="radio" name="kit-whose" .checked=${live(pageOpen() === page)} @change=${() => pageOpen(page)}><span>${label}</span></label>`)}</span>`}
|
|
216
|
+
<div class="kit-previews"><div class="kit-preview" ${ref((box) => void preview(box, kit))}></div>
|
|
217
|
+
<figure><div class="kit-sheet" aria-hidden="true" ${ref((box) => void sheet(box, kit))}><img hidden alt=""><b>${t('slides.kit.title')}</b><p>${t('slides.kit.sample')}</p><blockquote>${t('slides.kit.sample')}</blockquote><table><tr><th>${t('slides.kit.name')}</th><th>${t('slides.kit.words')}</th></tr></table></div>
|
|
218
|
+
<figcaption class="hint">${t('slides.kit.onPaper')}</figcaption></figure></div>
|
|
210
219
|
${said.value ? html`<p class="hint" role="status">${said.value}</p>` : nothing}
|
|
211
|
-
<section><h3>${t('slides.kit.colours')}</h3><ul class="list">${COLOURS.map((key) => colour(kit, key, false))}</ul>
|
|
220
|
+
<section><h3>${t('slides.kit.colours')}</h3><ul class="list">${COLOURS.map((key) => colour(kit, key, false))}</ul><p class="hint">${t('slides.kit.paperHint')}</p>
|
|
212
221
|
<h3>${t('slides.kit.night')}</h3><ul class="list">${COLOURS.slice(0, 3).map((key) => colour(kit, key, true))}</ul></section>
|
|
213
222
|
<section><h3>${t('slides.kit.type')}</h3><ul class="list">
|
|
214
|
-
${row(nothing, nothing, html`<span class="segmented" role="radiogroup" aria-label=${t('slides.kit.type')}>${VOICES.map((voice) => html`<label>
|
|
215
|
-
<input type="radio" name="kit-voice" .checked=${live(!fonts && (tokens.voice ?? 'calm') === voice)} @change=${() => change((next) => { next.tokens.voice = voice; delete next.tokens.fonts })}><span>${t(`slides.kit.voice.${voice}`)}</span></label>`)}</span>`)}
|
|
216
|
-
${row(t('slides.kit.fonts'), nothing, html`<span class="row">${['heading', 'body'].map((part) => html`<input class="kit-face" dir="ltr"
|
|
223
|
+
${row(nothing, nothing, html`<span class="segmented" role="radiogroup" aria-label=${t('slides.kit.type')}>${VOICES.map((voice) => html`<label for=${`voice-${voice}`}>
|
|
224
|
+
<input id=${`voice-${voice}`} type="radio" name="kit-voice" .checked=${live(!fonts && (tokens.voice ?? 'calm') === voice)} @change=${() => change((next) => { next.tokens.voice = voice; delete next.tokens.fonts })}><span>${t(`slides.kit.voice.${voice}`)}</span></label>`)}</span>`)}
|
|
225
|
+
${row(t('slides.kit.fonts'), nothing, html`<span class="row">${['heading', 'body'].map((part) => html`<input class="kit-face" dir="ltr" title=${t(part === 'heading' ? 'slides.kit.headings' : 'slides.kit.words')}
|
|
217
226
|
placeholder=${t(part === 'heading' ? 'slides.kit.headings' : 'slides.kit.words')} .value=${live(fonts?.[part]?.join(', ') ?? '')} @change=${(/** @type {Event} */ e) => change((next) => {
|
|
218
227
|
const faces = /** @type {HTMLInputElement} */ (e.target).value.split(',').map((one) => one.trim()).filter(Boolean), own = { heading: fonts?.heading ?? [], body: fonts?.body ?? [], [part]: faces }
|
|
219
228
|
if (own.heading.length || own.body.length) next.tokens.fonts = { heading: own.heading.length ? own.heading : own.body, body: own.body.length ? own.body : own.heading }
|
|
220
229
|
else delete next.tokens.fonts
|
|
221
230
|
})}>`)}</span>`)}
|
|
222
|
-
${row(t('slides.kit.corners'),
|
|
231
|
+
${row(t('slides.kit.corners'), t('slides.kit.slidesOnly'), html`<input type="range" min="0" max="24" step="1" title=${t('slides.kit.corners')} .value=${live(String(tokens.radius ?? 10))}
|
|
223
232
|
@change=${(/** @type {Event} */ e) => token('radius', Number(/** @type {HTMLInputElement} */ (e.target).value))}>`)}
|
|
224
233
|
</ul></section>
|
|
225
234
|
<section><h3>${t('slides.kit.logo')}</h3><ul class="list">
|
|
226
235
|
${[[false, tokens.logo, ''], [true, night.logo, 'slides.kit.logoDark']].map(([dark, url, label]) => row(label ? t(String(label)) : nothing, nothing, html`<span class="row kit-logo ${dark ? 'is-dark' : ''}">
|
|
227
|
-
${url ? html`<img src=${String(url)} alt="">` : nothing}${file(t('slides.kit.logoAdd'), 'image/png,image/jpeg,image/gif,image/webp,image/svg+xml', (e) => void logo(e, Boolean(dark)))}
|
|
236
|
+
${url ? html`<img src=${String(url)} alt="">` : nothing}${file(`kit-logo-${dark}`, t('slides.kit.logoAdd'), 'image/png,image/jpeg,image/gif,image/webp,image/svg+xml', (e) => void logo(e, Boolean(dark)))}
|
|
228
237
|
${url ? html`<button type="button" class="button subtle" @click=${() => token('logo', undefined, Boolean(dark))}>${t('slides.kit.remove')}</button>` : nothing}</span>`))}
|
|
229
|
-
${tokens.logo ? row(t('slides.kit.corner'), nothing, html`<select
|
|
238
|
+
${tokens.logo ? row(t('slides.kit.corner'), nothing, html`<select title=${t('slides.kit.corner')} @change=${(/** @type {Event} */ e) => token('logoAt', /** @type {HTMLSelectElement} */ (e.target).value)}>
|
|
230
239
|
${CORNERS.map((corner) => html`<option value=${corner} ?selected=${corner === (tokens.logoAt ?? CORNERS[0])}>${cornerName(corner)}</option>`)}</select>`) : nothing}
|
|
231
240
|
</ul></section>
|
|
232
241
|
${layouts(kit)}
|
|
233
|
-
<section class="row kit-files">${file(t('slides.kit.bring'), '.json,.potx,.pptx,.thmx,application/json', (e) => void bring(e))}
|
|
242
|
+
<section class="row kit-files">${file('kit-bring', t('slides.kit.bring'), '.json,.potx,.pptx,.thmx,application/json', (e) => void bring(e))}
|
|
234
243
|
<button type="button" class="button subtle" @click=${() => keepAs(false)}>${icons.download} ${t('slides.kit.saveFile')}</button>
|
|
235
244
|
<button type="button" class="button subtle" @click=${() => keepAs(true)}>${icons.download} ${t('slides.kit.saveTokens')}</button></section>`
|
|
236
245
|
}
|