@jean-is/render 0.8.0-rede3e4e8e9a5 → 0.10.0-rbdd0a4d699e2
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 +1 -1
- package/caps/charts/charts.js +16 -7
- package/caps/charts/option.js +17 -0
- package/caps/files/office.js +16 -9
- package/caps/files/pdf.js +9 -5
- package/caps/games/file.js +2 -0
- package/caps/games/page.js +21 -7
- package/caps/games/shell.js +8 -6
- package/caps/interactive/apps.js +2 -5
- package/caps/interactive/diagram.js +1 -1
- package/caps/interactive/interactive.css +4 -1
- package/caps/interactive/interactive.js +50 -11
- package/caps/interactive/live.js +4 -4
- package/caps/interactive/map.js +11 -5
- package/caps/interactive/starts.js +15 -0
- package/caps/interactive/test.js +76 -0
- package/caps/interactive/view-parts.js +5 -2
- package/caps/layouts/layouts.js +35 -34
- package/caps/layouts/shapes.js +49 -33
- package/caps/layouts/types.d.ts +8 -0
- package/caps/made/paper.js +26 -9
- package/caps/receipt/der.js +1 -1
- package/caps/scores/scores.js +24 -4
- package/caps/scores/sound.js +9 -8
- package/caps/share/view.js +2 -1
- package/caps/skills/directory.js +10 -3
- package/caps/slides/brand.js +249 -0
- package/caps/slides/edit.js +13 -5
- package/caps/slides/kit-page.css +2 -1
- package/caps/slides/kit-page.js +43 -13
- package/caps/slides/kit-sample.js +1 -1
- package/caps/slides/save.js +3 -3
- package/caps/slides/slides.css +3 -0
- package/caps/slides/slides.js +6 -5
- package/caps/tables/formula.js +1 -1
- package/core/anthropic.js +10 -10
- package/core/deferred.js +5 -4
- package/core/events.js +9 -8
- package/core/files.js +27 -3
- package/core/fs.js +22 -76
- package/core/hooks.js +3 -3
- package/core/i18n.js +22 -19
- package/core/llm.js +16 -13
- package/core/loop.js +17 -5
- package/core/rules.js +1 -1
- package/core/settings.js +7 -59
- package/core/skills.js +1 -1
- package/core/vertex.js +1 -1
- package/core/zip.js +1 -1
- package/locales/am.json +38 -21
- package/locales/approvals/am.json +0 -2
- package/locales/approvals/ar.json +0 -2
- package/locales/approvals/bg.json +0 -2
- package/locales/approvals/bn.json +0 -2
- package/locales/approvals/br.json +7 -9
- package/locales/approvals/co.json +18 -20
- package/locales/approvals/cs.json +0 -2
- package/locales/approvals/da.json +0 -2
- package/locales/approvals/de.json +5 -7
- package/locales/approvals/el.json +0 -2
- package/locales/approvals/en.json +3 -5
- package/locales/approvals/es.json +7 -9
- package/locales/approvals/fa.json +0 -2
- package/locales/approvals/fi.json +0 -2
- package/locales/approvals/fr-CA.json +7 -9
- package/locales/approvals/fr.json +7 -9
- package/locales/approvals/ha.json +0 -2
- package/locales/approvals/he.json +0 -2
- package/locales/approvals/hi.json +0 -2
- package/locales/approvals/hr.json +0 -2
- package/locales/approvals/hu.json +0 -2
- package/locales/approvals/id.json +0 -2
- package/locales/approvals/it.json +10 -12
- package/locales/approvals/ja.json +8 -10
- package/locales/approvals/ko.json +21 -23
- package/locales/approvals/mr.json +0 -2
- package/locales/approvals/ms.json +0 -2
- package/locales/approvals/nl.json +0 -2
- package/locales/approvals/pl.json +0 -2
- package/locales/approvals/pt.json +6 -8
- package/locales/approvals/ro.json +0 -2
- package/locales/approvals/ru.json +0 -2
- package/locales/approvals/sk.json +0 -2
- package/locales/approvals/sv.json +0 -2
- package/locales/approvals/sw.json +0 -2
- package/locales/approvals/ta.json +0 -2
- package/locales/approvals/te.json +0 -2
- package/locales/approvals/th.json +0 -2
- package/locales/approvals/tl.json +0 -2
- package/locales/approvals/tr.json +0 -2
- package/locales/approvals/uk.json +0 -2
- package/locales/approvals/ur.json +0 -2
- package/locales/approvals/vi.json +0 -2
- package/locales/approvals/yo.json +0 -2
- package/locales/approvals/zh-Hans.json +5 -7
- package/locales/approvals/zh-Hant.json +4 -6
- package/locales/ar.json +38 -21
- package/locales/backup/de.json +1 -1
- package/locales/backup/ko.json +1 -1
- package/locales/backup/pt.json +1 -1
- package/locales/backup/zh-Hans.json +1 -1
- package/locales/bg.json +38 -21
- package/locales/bn.json +37 -20
- package/locales/br.json +64 -47
- package/locales/brain-local/ja.json +1 -1
- package/locales/brain-local/pt.json +3 -3
- package/locales/brain-local/zh-Hans.json +1 -1
- package/locales/brain-local/zh-Hant.json +3 -3
- package/locales/brains/am.json +2 -1
- package/locales/brains/ar.json +2 -1
- package/locales/brains/bg.json +2 -1
- package/locales/brains/bn.json +2 -1
- package/locales/brains/br.json +11 -10
- package/locales/brains/co.json +13 -12
- package/locales/brains/cs.json +2 -1
- package/locales/brains/da.json +2 -1
- package/locales/brains/de.json +8 -7
- package/locales/brains/el.json +2 -1
- package/locales/brains/en.json +7 -6
- package/locales/brains/es.json +16 -15
- package/locales/brains/fa.json +2 -1
- package/locales/brains/fi.json +2 -1
- package/locales/brains/fr-CA.json +10 -9
- package/locales/brains/fr.json +9 -8
- package/locales/brains/ha.json +2 -1
- package/locales/brains/he.json +2 -1
- package/locales/brains/hi.json +2 -1
- package/locales/brains/hr.json +2 -1
- package/locales/brains/hu.json +2 -1
- package/locales/brains/id.json +2 -1
- package/locales/brains/it.json +9 -8
- package/locales/brains/ja.json +10 -9
- package/locales/brains/ko.json +14 -13
- package/locales/brains/mr.json +2 -1
- package/locales/brains/ms.json +2 -1
- package/locales/brains/nl.json +2 -1
- package/locales/brains/pl.json +2 -1
- package/locales/brains/pt.json +13 -12
- package/locales/brains/ro.json +2 -1
- package/locales/brains/ru.json +2 -1
- package/locales/brains/sk.json +2 -1
- package/locales/brains/sv.json +2 -1
- package/locales/brains/sw.json +2 -1
- package/locales/brains/ta.json +2 -1
- package/locales/brains/te.json +2 -1
- package/locales/brains/th.json +2 -1
- package/locales/brains/tl.json +2 -1
- package/locales/brains/tr.json +2 -1
- package/locales/brains/uk.json +2 -1
- package/locales/brains/ur.json +2 -1
- package/locales/brains/vi.json +2 -1
- package/locales/brains/yo.json +2 -1
- package/locales/brains/zh-Hans.json +8 -7
- package/locales/brains/zh-Hant.json +15 -14
- package/locales/browser/co.json +2 -2
- package/locales/browser/es.json +1 -1
- package/locales/browser/it.json +1 -1
- package/locales/browser/ja.json +2 -2
- package/locales/browser/ko.json +6 -6
- package/locales/browser/pt.json +2 -2
- package/locales/camera/br.json +1 -1
- package/locales/camera/co.json +1 -1
- package/locales/camera/de.json +1 -1
- package/locales/camera/it.json +1 -1
- package/locales/camera/ja.json +2 -2
- package/locales/camera/ko.json +2 -2
- package/locales/camera/zh-Hant.json +1 -1
- package/locales/case/br.json +1 -1
- package/locales/case/co.json +10 -10
- package/locales/case/de.json +1 -1
- package/locales/case/es.json +6 -6
- package/locales/case/fr-CA.json +9 -9
- package/locales/case/fr.json +9 -9
- package/locales/case/it.json +8 -8
- package/locales/case/ja.json +6 -6
- package/locales/case/ko.json +1 -1
- package/locales/case/pt.json +8 -8
- package/locales/case/zh-Hant.json +1 -1
- package/locales/certificates/co.json +7 -7
- package/locales/certificates/es.json +2 -2
- package/locales/certificates/fr-CA.json +7 -7
- package/locales/certificates/fr.json +7 -7
- package/locales/certificates/it.json +3 -3
- package/locales/certificates/ja.json +2 -2
- package/locales/certificates/ko.json +1 -1
- package/locales/certificates/pt.json +2 -2
- package/locales/certificates/zh-Hans.json +5 -5
- package/locales/certificates/zh-Hant.json +6 -6
- package/locales/charts/br.json +1 -1
- package/locales/charts/co.json +1 -1
- package/locales/charts/de.json +1 -1
- package/locales/charts/ko.json +1 -1
- package/locales/co.json +53 -36
- package/locales/compact/es.json +1 -1
- package/locales/compact/fr-CA.json +1 -1
- package/locales/compact/fr.json +1 -1
- package/locales/compact/it.json +1 -1
- package/locales/compact/pt.json +2 -2
- package/locales/computer/br.json +8 -8
- package/locales/computer/co.json +14 -14
- package/locales/computer/de.json +4 -4
- package/locales/computer/en.json +6 -6
- package/locales/computer/es.json +10 -10
- package/locales/computer/fr-CA.json +17 -17
- package/locales/computer/fr.json +17 -17
- package/locales/computer/it.json +9 -9
- package/locales/computer/ja.json +8 -8
- package/locales/computer/ko.json +14 -14
- package/locales/computer/pt.json +10 -10
- package/locales/computer/zh-Hans.json +8 -8
- package/locales/computer/zh-Hant.json +9 -9
- package/locales/connections/am.json +4 -2
- package/locales/connections/ar.json +4 -2
- package/locales/connections/bg.json +4 -2
- package/locales/connections/bn.json +4 -2
- package/locales/connections/br.json +5 -3
- package/locales/connections/co.json +17 -15
- package/locales/connections/cs.json +4 -2
- package/locales/connections/da.json +4 -2
- package/locales/connections/de.json +4 -2
- package/locales/connections/el.json +4 -2
- package/locales/connections/en.json +5 -3
- package/locales/connections/es.json +7 -5
- package/locales/connections/fa.json +4 -2
- package/locales/connections/fi.json +4 -2
- package/locales/connections/fr-CA.json +5 -3
- package/locales/connections/fr.json +5 -3
- package/locales/connections/ha.json +4 -2
- package/locales/connections/he.json +4 -2
- package/locales/connections/hi.json +4 -2
- package/locales/connections/hr.json +4 -2
- package/locales/connections/hu.json +4 -2
- package/locales/connections/id.json +4 -2
- package/locales/connections/it.json +13 -11
- package/locales/connections/ja.json +28 -26
- package/locales/connections/ko.json +7 -5
- package/locales/connections/mr.json +4 -2
- package/locales/connections/ms.json +4 -2
- package/locales/connections/nl.json +4 -2
- package/locales/connections/pl.json +4 -2
- package/locales/connections/pt.json +10 -8
- package/locales/connections/ro.json +4 -2
- package/locales/connections/ru.json +4 -2
- package/locales/connections/sk.json +4 -2
- package/locales/connections/sv.json +4 -2
- package/locales/connections/sw.json +4 -2
- package/locales/connections/ta.json +4 -2
- package/locales/connections/te.json +4 -2
- package/locales/connections/th.json +4 -2
- package/locales/connections/tl.json +4 -2
- package/locales/connections/tr.json +4 -2
- package/locales/connections/uk.json +4 -2
- package/locales/connections/ur.json +4 -2
- package/locales/connections/vi.json +4 -2
- package/locales/connections/yo.json +4 -2
- package/locales/connections/zh-Hans.json +10 -8
- package/locales/connections/zh-Hant.json +23 -21
- package/locales/creations/am.json +8 -0
- package/locales/creations/ar.json +8 -0
- package/locales/creations/bg.json +8 -0
- package/locales/creations/bn.json +8 -0
- package/locales/creations/br.json +22 -14
- package/locales/creations/co.json +19 -11
- package/locales/creations/cs.json +8 -0
- package/locales/creations/da.json +8 -0
- package/locales/creations/de.json +9 -1
- package/locales/creations/el.json +8 -0
- package/locales/creations/en.json +9 -1
- package/locales/creations/es.json +17 -9
- package/locales/creations/fa.json +8 -0
- package/locales/creations/fi.json +8 -0
- package/locales/creations/fr-CA.json +9 -1
- package/locales/creations/fr.json +17 -9
- package/locales/creations/ha.json +8 -0
- package/locales/creations/he.json +8 -0
- package/locales/creations/hi.json +8 -0
- package/locales/creations/hr.json +8 -0
- package/locales/creations/hu.json +8 -0
- package/locales/creations/id.json +8 -0
- package/locales/creations/it.json +16 -8
- package/locales/creations/ja.json +9 -1
- package/locales/creations/ko.json +9 -1
- package/locales/creations/mr.json +8 -0
- package/locales/creations/ms.json +8 -0
- package/locales/creations/nl.json +8 -0
- package/locales/creations/pl.json +8 -0
- package/locales/creations/pt.json +16 -8
- package/locales/creations/ro.json +8 -0
- package/locales/creations/ru.json +8 -0
- package/locales/creations/sk.json +8 -0
- package/locales/creations/sv.json +8 -0
- package/locales/creations/sw.json +8 -0
- package/locales/creations/ta.json +8 -0
- package/locales/creations/te.json +8 -0
- package/locales/creations/th.json +8 -0
- package/locales/creations/tl.json +8 -0
- package/locales/creations/tr.json +8 -0
- package/locales/creations/uk.json +8 -0
- package/locales/creations/ur.json +8 -0
- package/locales/creations/vi.json +8 -0
- package/locales/creations/yo.json +8 -0
- package/locales/creations/zh-Hans.json +9 -1
- package/locales/creations/zh-Hant.json +9 -1
- package/locales/cs.json +38 -21
- package/locales/da.json +37 -20
- package/locales/data/am.json +12 -1
- package/locales/data/ar.json +12 -1
- package/locales/data/bg.json +12 -1
- package/locales/data/bn.json +12 -1
- package/locales/data/br.json +14 -3
- package/locales/data/co.json +15 -4
- package/locales/data/cs.json +12 -1
- package/locales/data/da.json +12 -1
- package/locales/data/de.json +12 -1
- package/locales/data/el.json +12 -1
- package/locales/data/en.json +12 -1
- package/locales/data/es.json +16 -5
- package/locales/data/fa.json +12 -1
- package/locales/data/fi.json +12 -1
- package/locales/data/fr-CA.json +12 -1
- package/locales/data/fr.json +12 -1
- package/locales/data/ha.json +12 -1
- package/locales/data/he.json +12 -1
- package/locales/data/hi.json +12 -1
- package/locales/data/hr.json +12 -1
- package/locales/data/hu.json +12 -1
- package/locales/data/id.json +12 -1
- package/locales/data/it.json +13 -2
- package/locales/data/ja.json +20 -9
- package/locales/data/ko.json +14 -3
- package/locales/data/mr.json +12 -1
- package/locales/data/ms.json +12 -1
- package/locales/data/nl.json +12 -1
- package/locales/data/pl.json +12 -1
- package/locales/data/pt.json +17 -6
- package/locales/data/ro.json +12 -1
- package/locales/data/ru.json +12 -1
- package/locales/data/sk.json +12 -1
- package/locales/data/sv.json +12 -1
- package/locales/data/sw.json +12 -1
- package/locales/data/ta.json +12 -1
- package/locales/data/te.json +12 -1
- package/locales/data/th.json +12 -1
- package/locales/data/tl.json +12 -1
- package/locales/data/tr.json +12 -1
- package/locales/data/uk.json +12 -1
- package/locales/data/ur.json +12 -1
- package/locales/data/vi.json +12 -1
- package/locales/data/yo.json +12 -1
- package/locales/data/zh-Hans.json +14 -3
- package/locales/data/zh-Hant.json +16 -5
- package/locales/de.json +52 -35
- package/locales/designs/br.json +9 -9
- package/locales/designs/co.json +8 -8
- package/locales/designs/de.json +1 -1
- package/locales/designs/en.json +3 -3
- package/locales/designs/fr-CA.json +4 -4
- package/locales/designs/fr.json +5 -5
- package/locales/designs/it.json +6 -6
- package/locales/designs/ja.json +10 -10
- package/locales/designs/ko.json +6 -6
- package/locales/designs/pt.json +3 -3
- package/locales/designs/zh-Hans.json +1 -1
- package/locales/designs/zh-Hant.json +1 -1
- package/locales/devices/am.json +106 -0
- package/locales/devices/ar.json +118 -0
- package/locales/devices/bg.json +106 -0
- package/locales/devices/bn.json +106 -0
- package/locales/devices/br.json +115 -0
- package/locales/devices/co.json +109 -0
- package/locales/devices/cs.json +112 -0
- package/locales/devices/da.json +106 -0
- package/locales/devices/de.json +106 -0
- package/locales/devices/el.json +106 -0
- package/locales/devices/en.json +106 -0
- package/locales/devices/es.json +109 -0
- package/locales/devices/fa.json +106 -0
- package/locales/devices/fi.json +106 -0
- package/locales/devices/fr-CA.json +109 -0
- package/locales/devices/fr.json +109 -0
- package/locales/devices/ha.json +106 -0
- package/locales/devices/he.json +109 -0
- package/locales/devices/hi.json +106 -0
- package/locales/devices/hr.json +109 -0
- package/locales/devices/hu.json +106 -0
- package/locales/devices/id.json +103 -0
- package/locales/devices/it.json +109 -0
- package/locales/devices/ja.json +103 -0
- package/locales/devices/ko.json +103 -0
- package/locales/devices/mr.json +106 -0
- package/locales/devices/ms.json +103 -0
- package/locales/devices/nl.json +106 -0
- package/locales/devices/pl.json +112 -0
- package/locales/devices/pt.json +109 -0
- package/locales/devices/ro.json +109 -0
- package/locales/devices/ru.json +112 -0
- package/locales/devices/sk.json +112 -0
- package/locales/devices/sv.json +106 -0
- package/locales/devices/sw.json +106 -0
- package/locales/devices/ta.json +106 -0
- package/locales/devices/te.json +106 -0
- package/locales/devices/th.json +103 -0
- package/locales/devices/tl.json +106 -0
- package/locales/devices/tr.json +106 -0
- package/locales/devices/uk.json +112 -0
- package/locales/devices/ur.json +106 -0
- package/locales/devices/vi.json +103 -0
- package/locales/devices/yo.json +103 -0
- package/locales/devices/zh-Hans.json +103 -0
- package/locales/devices/zh-Hant.json +103 -0
- package/locales/dialogs/am.json +26 -11
- package/locales/dialogs/ar.json +26 -11
- package/locales/dialogs/bg.json +26 -11
- package/locales/dialogs/bn.json +26 -11
- package/locales/dialogs/br.json +45 -30
- package/locales/dialogs/co.json +47 -32
- package/locales/dialogs/cs.json +26 -11
- package/locales/dialogs/da.json +26 -11
- package/locales/dialogs/de.json +39 -24
- package/locales/dialogs/el.json +26 -11
- package/locales/dialogs/en.json +34 -19
- package/locales/dialogs/es.json +54 -39
- package/locales/dialogs/fa.json +26 -11
- package/locales/dialogs/fi.json +26 -11
- package/locales/dialogs/fr-CA.json +43 -28
- package/locales/dialogs/fr.json +43 -28
- package/locales/dialogs/ha.json +26 -11
- package/locales/dialogs/he.json +26 -11
- package/locales/dialogs/hi.json +26 -11
- package/locales/dialogs/hr.json +26 -11
- package/locales/dialogs/hu.json +26 -11
- package/locales/dialogs/id.json +26 -11
- package/locales/dialogs/it.json +48 -33
- package/locales/dialogs/ja.json +78 -63
- package/locales/dialogs/ko.json +49 -34
- package/locales/dialogs/mr.json +26 -11
- package/locales/dialogs/ms.json +26 -11
- package/locales/dialogs/nl.json +26 -11
- package/locales/dialogs/pl.json +26 -11
- package/locales/dialogs/pt.json +52 -37
- package/locales/dialogs/ro.json +26 -11
- package/locales/dialogs/ru.json +26 -11
- package/locales/dialogs/sk.json +26 -11
- package/locales/dialogs/sv.json +26 -11
- package/locales/dialogs/sw.json +26 -11
- package/locales/dialogs/ta.json +26 -11
- package/locales/dialogs/te.json +26 -11
- package/locales/dialogs/th.json +26 -11
- package/locales/dialogs/tl.json +26 -11
- package/locales/dialogs/tr.json +26 -11
- package/locales/dialogs/uk.json +26 -11
- package/locales/dialogs/ur.json +26 -11
- package/locales/dialogs/vi.json +26 -11
- package/locales/dialogs/yo.json +26 -11
- package/locales/dialogs/zh-Hans.json +47 -32
- package/locales/dialogs/zh-Hant.json +57 -42
- package/locales/documents/am.json +12 -2
- package/locales/documents/ar.json +12 -2
- package/locales/documents/bg.json +12 -2
- package/locales/documents/bn.json +12 -2
- package/locales/documents/br.json +12 -2
- package/locales/documents/co.json +15 -5
- package/locales/documents/cs.json +12 -2
- package/locales/documents/da.json +12 -2
- package/locales/documents/de.json +14 -4
- package/locales/documents/el.json +12 -2
- package/locales/documents/en.json +13 -3
- package/locales/documents/es.json +13 -3
- package/locales/documents/fa.json +12 -2
- package/locales/documents/fi.json +12 -2
- package/locales/documents/fr-CA.json +13 -3
- package/locales/documents/fr.json +13 -3
- package/locales/documents/ha.json +12 -2
- package/locales/documents/he.json +12 -2
- package/locales/documents/hi.json +12 -2
- package/locales/documents/hr.json +12 -2
- package/locales/documents/hu.json +12 -2
- package/locales/documents/id.json +12 -2
- package/locales/documents/it.json +13 -3
- package/locales/documents/ja.json +26 -16
- package/locales/documents/ko.json +14 -4
- package/locales/documents/mr.json +12 -2
- package/locales/documents/ms.json +12 -2
- package/locales/documents/nl.json +12 -2
- package/locales/documents/pl.json +12 -2
- package/locales/documents/pt.json +16 -6
- package/locales/documents/ro.json +12 -2
- package/locales/documents/ru.json +12 -2
- package/locales/documents/sk.json +12 -2
- package/locales/documents/sv.json +12 -2
- package/locales/documents/sw.json +12 -2
- package/locales/documents/ta.json +12 -2
- package/locales/documents/te.json +12 -2
- package/locales/documents/th.json +12 -2
- package/locales/documents/tl.json +12 -2
- package/locales/documents/tr.json +12 -2
- package/locales/documents/uk.json +12 -2
- package/locales/documents/ur.json +12 -2
- package/locales/documents/vi.json +12 -2
- package/locales/documents/yo.json +12 -2
- package/locales/documents/zh-Hans.json +14 -4
- package/locales/documents/zh-Hant.json +14 -4
- package/locales/el.json +38 -21
- package/locales/en.json +44 -27
- package/locales/enterprise/br.json +13 -13
- package/locales/enterprise/co.json +14 -14
- package/locales/enterprise/de.json +12 -12
- package/locales/enterprise/en.json +4 -4
- package/locales/enterprise/es.json +8 -8
- package/locales/enterprise/fr-CA.json +7 -7
- package/locales/enterprise/fr.json +11 -11
- package/locales/enterprise/it.json +9 -9
- package/locales/enterprise/ja.json +17 -17
- package/locales/enterprise/ko.json +12 -12
- package/locales/enterprise/pt.json +11 -11
- package/locales/enterprise/zh-Hans.json +22 -22
- package/locales/enterprise/zh-Hant.json +25 -25
- package/locales/es.json +52 -35
- package/locales/extensions/am.json +2 -1
- package/locales/extensions/ar.json +2 -1
- package/locales/extensions/bg.json +2 -1
- package/locales/extensions/bn.json +2 -1
- package/locales/extensions/br.json +12 -11
- package/locales/extensions/co.json +8 -7
- package/locales/extensions/cs.json +2 -1
- package/locales/extensions/da.json +2 -1
- package/locales/extensions/de.json +3 -2
- package/locales/extensions/el.json +2 -1
- package/locales/extensions/en.json +3 -2
- package/locales/extensions/es.json +4 -3
- package/locales/extensions/fa.json +2 -1
- package/locales/extensions/fi.json +2 -1
- package/locales/extensions/fr-CA.json +7 -6
- package/locales/extensions/fr.json +7 -6
- package/locales/extensions/ha.json +2 -1
- package/locales/extensions/he.json +2 -1
- package/locales/extensions/hi.json +2 -1
- package/locales/extensions/hr.json +2 -1
- package/locales/extensions/hu.json +2 -1
- package/locales/extensions/id.json +2 -1
- package/locales/extensions/it.json +5 -4
- package/locales/extensions/ja.json +7 -6
- package/locales/extensions/ko.json +24 -23
- package/locales/extensions/mr.json +2 -1
- package/locales/extensions/ms.json +2 -1
- package/locales/extensions/nl.json +2 -1
- package/locales/extensions/pl.json +2 -1
- package/locales/extensions/pt.json +5 -4
- package/locales/extensions/ro.json +2 -1
- package/locales/extensions/ru.json +2 -1
- package/locales/extensions/sk.json +2 -1
- package/locales/extensions/sv.json +2 -1
- package/locales/extensions/sw.json +2 -1
- package/locales/extensions/ta.json +2 -1
- package/locales/extensions/te.json +2 -1
- package/locales/extensions/th.json +2 -1
- package/locales/extensions/tl.json +2 -1
- package/locales/extensions/tr.json +2 -1
- package/locales/extensions/uk.json +2 -1
- package/locales/extensions/ur.json +2 -1
- package/locales/extensions/vi.json +2 -1
- package/locales/extensions/yo.json +2 -1
- package/locales/extensions/zh-Hans.json +5 -4
- package/locales/extensions/zh-Hant.json +9 -8
- package/locales/fa.json +37 -20
- package/locales/feedback/am.json +7 -0
- package/locales/feedback/ar.json +7 -0
- package/locales/feedback/bg.json +7 -0
- package/locales/feedback/bn.json +7 -0
- package/locales/feedback/br.json +7 -0
- package/locales/feedback/co.json +7 -0
- package/locales/feedback/cs.json +7 -0
- package/locales/feedback/da.json +7 -0
- package/locales/feedback/de.json +7 -0
- package/locales/feedback/el.json +7 -0
- package/locales/feedback/en.json +7 -0
- package/locales/feedback/es.json +7 -0
- package/locales/feedback/fa.json +7 -0
- package/locales/feedback/fi.json +7 -0
- package/locales/feedback/fr-CA.json +7 -0
- package/locales/feedback/fr.json +7 -0
- package/locales/feedback/ha.json +7 -0
- package/locales/feedback/he.json +7 -0
- package/locales/feedback/hi.json +7 -0
- package/locales/feedback/hr.json +7 -0
- package/locales/feedback/hu.json +7 -0
- package/locales/feedback/id.json +7 -0
- package/locales/feedback/it.json +7 -0
- package/locales/feedback/ja.json +7 -0
- package/locales/feedback/ko.json +7 -0
- package/locales/feedback/mr.json +7 -0
- package/locales/feedback/ms.json +7 -0
- package/locales/feedback/nl.json +7 -0
- package/locales/feedback/pl.json +7 -0
- package/locales/feedback/pt.json +7 -0
- package/locales/feedback/ro.json +7 -0
- package/locales/feedback/ru.json +7 -0
- package/locales/feedback/sk.json +7 -0
- package/locales/feedback/sv.json +7 -0
- package/locales/feedback/sw.json +7 -0
- package/locales/feedback/ta.json +7 -0
- package/locales/feedback/te.json +7 -0
- package/locales/feedback/th.json +7 -0
- package/locales/feedback/tl.json +7 -0
- package/locales/feedback/tr.json +7 -0
- package/locales/feedback/uk.json +7 -0
- package/locales/feedback/ur.json +7 -0
- package/locales/feedback/vi.json +7 -0
- package/locales/feedback/yo.json +7 -0
- package/locales/feedback/zh-Hans.json +7 -0
- package/locales/feedback/zh-Hant.json +7 -0
- package/locales/fi.json +38 -21
- package/locales/files/am.json +11 -0
- package/locales/files/ar.json +11 -0
- package/locales/files/bg.json +11 -0
- package/locales/files/bn.json +11 -0
- package/locales/files/br.json +11 -0
- package/locales/files/co.json +11 -0
- package/locales/files/cs.json +11 -0
- package/locales/files/da.json +11 -0
- package/locales/files/de.json +11 -0
- package/locales/files/el.json +11 -0
- package/locales/files/en.json +11 -0
- package/locales/files/es.json +11 -0
- package/locales/files/fa.json +11 -0
- package/locales/files/fi.json +11 -0
- package/locales/files/fr-CA.json +11 -0
- package/locales/files/fr.json +11 -0
- package/locales/files/ha.json +11 -0
- package/locales/files/he.json +11 -0
- package/locales/files/hi.json +11 -0
- package/locales/files/hr.json +11 -0
- package/locales/files/hu.json +11 -0
- package/locales/files/id.json +11 -0
- package/locales/files/it.json +11 -0
- package/locales/files/ja.json +11 -0
- package/locales/files/ko.json +11 -0
- package/locales/files/mr.json +11 -0
- package/locales/files/ms.json +11 -0
- package/locales/files/nl.json +11 -0
- package/locales/files/pl.json +11 -0
- package/locales/files/pt.json +11 -0
- package/locales/files/ro.json +11 -0
- package/locales/files/ru.json +11 -0
- package/locales/files/sk.json +11 -0
- package/locales/files/sv.json +11 -0
- package/locales/files/sw.json +11 -0
- package/locales/files/ta.json +11 -0
- package/locales/files/te.json +11 -0
- package/locales/files/th.json +11 -0
- package/locales/files/tl.json +11 -0
- package/locales/files/tr.json +11 -0
- package/locales/files/uk.json +11 -0
- package/locales/files/ur.json +11 -0
- package/locales/files/vi.json +11 -0
- package/locales/files/yo.json +11 -0
- package/locales/files/zh-Hans.json +11 -0
- package/locales/files/zh-Hant.json +11 -0
- package/locales/first/br.json +5 -5
- package/locales/first/co.json +1 -1
- package/locales/first/es.json +4 -4
- package/locales/first/fr-CA.json +1 -1
- package/locales/first/fr.json +1 -1
- package/locales/first/it.json +1 -1
- package/locales/first/ja.json +7 -7
- package/locales/first/ko.json +3 -3
- package/locales/first/pt.json +3 -3
- package/locales/first/zh-Hans.json +2 -2
- package/locales/first/zh-Hant.json +3 -3
- package/locales/flows/am.json +3 -0
- package/locales/flows/ar.json +3 -0
- package/locales/flows/bg.json +3 -0
- package/locales/flows/bn.json +3 -0
- package/locales/flows/br.json +10 -7
- package/locales/flows/co.json +7 -4
- package/locales/flows/cs.json +3 -0
- package/locales/flows/da.json +3 -0
- package/locales/flows/de.json +5 -2
- package/locales/flows/el.json +3 -0
- package/locales/flows/en.json +3 -0
- package/locales/flows/es.json +5 -2
- package/locales/flows/fa.json +3 -0
- package/locales/flows/fi.json +3 -0
- package/locales/flows/fr-CA.json +6 -3
- package/locales/flows/fr.json +6 -3
- package/locales/flows/ha.json +3 -0
- package/locales/flows/he.json +3 -0
- package/locales/flows/hi.json +3 -0
- package/locales/flows/hr.json +3 -0
- package/locales/flows/hu.json +3 -0
- package/locales/flows/id.json +3 -0
- package/locales/flows/it.json +5 -2
- package/locales/flows/ja.json +7 -4
- package/locales/flows/ko.json +10 -7
- package/locales/flows/mr.json +3 -0
- package/locales/flows/ms.json +3 -0
- package/locales/flows/nl.json +3 -0
- package/locales/flows/pl.json +3 -0
- package/locales/flows/pt.json +9 -6
- package/locales/flows/ro.json +3 -0
- package/locales/flows/ru.json +3 -0
- package/locales/flows/sk.json +3 -0
- package/locales/flows/sv.json +3 -0
- package/locales/flows/sw.json +3 -0
- package/locales/flows/ta.json +3 -0
- package/locales/flows/te.json +3 -0
- package/locales/flows/th.json +3 -0
- package/locales/flows/tl.json +3 -0
- package/locales/flows/tr.json +3 -0
- package/locales/flows/uk.json +3 -0
- package/locales/flows/ur.json +3 -0
- package/locales/flows/vi.json +3 -0
- package/locales/flows/yo.json +3 -0
- package/locales/flows/zh-Hans.json +8 -5
- package/locales/flows/zh-Hant.json +11 -8
- package/locales/folders/br.json +4 -4
- package/locales/folders/de.json +1 -1
- package/locales/folders/es.json +2 -2
- package/locales/folders/ja.json +2 -2
- package/locales/folders/ko.json +3 -3
- package/locales/folders/pt.json +2 -2
- package/locales/folders/zh-Hans.json +2 -2
- package/locales/folders/zh-Hant.json +7 -7
- package/locales/fr-CA.json +71 -54
- package/locales/fr.json +68 -51
- package/locales/games/br.json +2 -2
- package/locales/ha.json +37 -20
- package/locales/he.json +37 -20
- package/locales/hi.json +37 -20
- package/locales/hr.json +38 -21
- package/locales/hu.json +37 -20
- package/locales/id.json +38 -21
- package/locales/interactive/br.json +8 -8
- package/locales/interactive/co.json +5 -5
- package/locales/interactive/es.json +1 -1
- package/locales/interactive/it.json +1 -1
- package/locales/interactive/ja.json +3 -3
- package/locales/interactive/ko.json +3 -3
- package/locales/interactive/pt.json +2 -2
- package/locales/interactive/zh-Hans.json +1 -1
- package/locales/interactive/zh-Hant.json +6 -6
- package/locales/it.json +75 -58
- package/locales/ja.json +67 -50
- package/locales/ko.json +61 -44
- package/locales/layouts/ja.json +1 -1
- package/locales/layouts/zh-Hans.json +1 -1
- package/locales/layouts/zh-Hant.json +1 -1
- package/locales/lock/br.json +3 -3
- package/locales/lock/co.json +4 -4
- package/locales/lock/de.json +4 -4
- package/locales/lock/en.json +1 -1
- package/locales/lock/es.json +1 -1
- package/locales/lock/fr-CA.json +3 -3
- package/locales/lock/fr.json +3 -3
- package/locales/lock/it.json +5 -5
- package/locales/lock/ja.json +6 -6
- package/locales/lock/ko.json +2 -2
- package/locales/lock/pt.json +1 -1
- package/locales/lock/zh-Hans.json +3 -3
- package/locales/lock/zh-Hant.json +3 -3
- package/locales/look/am.json +5 -1
- package/locales/look/ar.json +5 -1
- package/locales/look/bg.json +5 -1
- package/locales/look/bn.json +5 -1
- package/locales/look/br.json +14 -10
- package/locales/look/co.json +5 -1
- package/locales/look/cs.json +5 -1
- package/locales/look/da.json +5 -1
- package/locales/look/de.json +5 -1
- package/locales/look/el.json +5 -1
- package/locales/look/en.json +5 -1
- package/locales/look/es.json +7 -3
- package/locales/look/fa.json +5 -1
- package/locales/look/fi.json +5 -1
- package/locales/look/fr-CA.json +5 -1
- package/locales/look/fr.json +5 -1
- package/locales/look/ha.json +5 -1
- package/locales/look/he.json +5 -1
- package/locales/look/hi.json +5 -1
- package/locales/look/hr.json +5 -1
- package/locales/look/hu.json +5 -1
- package/locales/look/id.json +5 -1
- package/locales/look/it.json +5 -1
- package/locales/look/ja.json +11 -7
- package/locales/look/ko.json +6 -2
- package/locales/look/mr.json +5 -1
- package/locales/look/ms.json +5 -1
- package/locales/look/nl.json +5 -1
- package/locales/look/pl.json +5 -1
- package/locales/look/pt.json +7 -3
- package/locales/look/ro.json +5 -1
- package/locales/look/ru.json +5 -1
- package/locales/look/sk.json +5 -1
- package/locales/look/sv.json +5 -1
- package/locales/look/sw.json +5 -1
- package/locales/look/ta.json +5 -1
- package/locales/look/te.json +5 -1
- package/locales/look/th.json +5 -1
- package/locales/look/tl.json +5 -1
- package/locales/look/tr.json +5 -1
- package/locales/look/uk.json +5 -1
- package/locales/look/ur.json +5 -1
- package/locales/look/vi.json +5 -1
- package/locales/look/yo.json +5 -1
- package/locales/look/zh-Hans.json +10 -6
- package/locales/look/zh-Hant.json +15 -11
- package/locales/machine/br.json +5 -5
- package/locales/machine/co.json +4 -4
- package/locales/machine/de.json +2 -2
- package/locales/machine/en.json +2 -2
- package/locales/machine/es.json +8 -8
- package/locales/machine/fr-CA.json +4 -4
- package/locales/machine/fr.json +4 -4
- package/locales/machine/it.json +9 -9
- package/locales/machine/ja.json +4 -4
- package/locales/machine/ko.json +10 -10
- package/locales/machine/pt.json +4 -4
- package/locales/machine/zh-Hans.json +7 -7
- package/locales/machine/zh-Hant.json +10 -10
- package/locales/made/am.json +2 -4
- package/locales/made/ar.json +2 -4
- package/locales/made/bg.json +2 -4
- package/locales/made/bn.json +2 -4
- package/locales/made/br.json +4 -6
- package/locales/made/co.json +2 -4
- package/locales/made/cs.json +2 -4
- package/locales/made/da.json +2 -4
- package/locales/made/de.json +2 -4
- package/locales/made/el.json +2 -4
- package/locales/made/en.json +2 -4
- package/locales/made/es.json +2 -4
- package/locales/made/fa.json +2 -4
- package/locales/made/fi.json +2 -4
- package/locales/made/fr-CA.json +3 -5
- package/locales/made/fr.json +3 -5
- package/locales/made/ha.json +2 -4
- package/locales/made/he.json +2 -4
- package/locales/made/hi.json +2 -4
- package/locales/made/hr.json +2 -4
- package/locales/made/hu.json +2 -4
- package/locales/made/id.json +2 -4
- package/locales/made/it.json +2 -4
- package/locales/made/ja.json +2 -4
- package/locales/made/ko.json +3 -5
- package/locales/made/mr.json +2 -4
- package/locales/made/ms.json +2 -4
- package/locales/made/nl.json +2 -4
- package/locales/made/pl.json +2 -4
- package/locales/made/pt.json +4 -6
- package/locales/made/ro.json +2 -4
- package/locales/made/ru.json +2 -4
- package/locales/made/sk.json +2 -4
- package/locales/made/sv.json +2 -4
- package/locales/made/sw.json +2 -4
- package/locales/made/ta.json +2 -4
- package/locales/made/te.json +2 -4
- package/locales/made/th.json +2 -4
- package/locales/made/tl.json +2 -4
- package/locales/made/tr.json +2 -4
- package/locales/made/uk.json +2 -4
- package/locales/made/ur.json +2 -4
- package/locales/made/vi.json +2 -4
- package/locales/made/yo.json +2 -4
- package/locales/made/zh-Hans.json +4 -6
- package/locales/made/zh-Hant.json +3 -5
- package/locales/mr.json +37 -20
- package/locales/ms.json +38 -21
- package/locales/{reader → natural-voice}/es.json +1 -1
- package/locales/natural-voice/ja.json +9 -0
- package/locales/{reader → natural-voice}/zh-Hans.json +1 -1
- package/locales/{reader → natural-voice}/zh-Hant.json +2 -2
- package/locales/nl.json +38 -21
- package/locales/notifications/br.json +2 -2
- package/locales/notifications/es.json +4 -4
- package/locales/notifications/it.json +2 -2
- package/locales/notifications/pt.json +2 -2
- package/locales/notifications/zh-Hans.json +1 -1
- package/locales/notifications/zh-Hant.json +2 -2
- package/locales/out/am.json +2 -1
- package/locales/out/ar.json +2 -1
- package/locales/out/bg.json +2 -1
- package/locales/out/bn.json +2 -1
- package/locales/out/br.json +2 -1
- package/locales/out/co.json +3 -2
- package/locales/out/cs.json +2 -1
- package/locales/out/da.json +2 -1
- package/locales/out/de.json +3 -2
- package/locales/out/el.json +2 -1
- package/locales/out/en.json +2 -1
- package/locales/out/es.json +3 -2
- package/locales/out/fa.json +2 -1
- package/locales/out/fi.json +2 -1
- package/locales/out/fr-CA.json +3 -2
- package/locales/out/fr.json +3 -2
- package/locales/out/ha.json +2 -1
- package/locales/out/he.json +2 -1
- package/locales/out/hi.json +2 -1
- package/locales/out/hr.json +2 -1
- package/locales/out/hu.json +2 -1
- package/locales/out/id.json +2 -1
- package/locales/out/it.json +2 -1
- package/locales/out/ja.json +3 -2
- package/locales/out/ko.json +2 -1
- package/locales/out/mr.json +2 -1
- package/locales/out/ms.json +2 -1
- package/locales/out/nl.json +2 -1
- package/locales/out/pl.json +2 -1
- package/locales/out/pt.json +3 -2
- package/locales/out/ro.json +2 -1
- package/locales/out/ru.json +2 -1
- package/locales/out/sk.json +2 -1
- package/locales/out/sv.json +2 -1
- package/locales/out/sw.json +2 -1
- package/locales/out/ta.json +2 -1
- package/locales/out/te.json +2 -1
- package/locales/out/th.json +2 -1
- package/locales/out/tl.json +2 -1
- package/locales/out/tr.json +2 -1
- package/locales/out/uk.json +2 -1
- package/locales/out/ur.json +2 -1
- package/locales/out/vi.json +2 -1
- package/locales/out/yo.json +2 -1
- package/locales/out/zh-Hans.json +4 -3
- package/locales/out/zh-Hant.json +2 -1
- package/locales/people/am.json +94 -0
- package/locales/people/ar.json +102 -0
- package/locales/people/bg.json +94 -0
- package/locales/people/bn.json +94 -0
- package/locales/people/br.json +100 -0
- package/locales/people/co.json +96 -0
- package/locales/people/cs.json +98 -0
- package/locales/people/da.json +94 -0
- package/locales/people/de.json +94 -0
- package/locales/people/el.json +94 -0
- package/locales/people/en.json +94 -0
- package/locales/people/es.json +96 -0
- package/locales/people/fa.json +94 -0
- package/locales/people/fi.json +94 -0
- package/locales/people/fr-CA.json +96 -0
- package/locales/people/fr.json +96 -0
- package/locales/people/ha.json +94 -0
- package/locales/people/he.json +96 -0
- package/locales/people/hi.json +94 -0
- package/locales/people/hr.json +96 -0
- package/locales/people/hu.json +94 -0
- package/locales/people/id.json +92 -0
- package/locales/people/it.json +96 -0
- package/locales/people/ja.json +92 -0
- package/locales/people/ko.json +92 -0
- package/locales/people/mr.json +94 -0
- package/locales/people/ms.json +92 -0
- package/locales/people/nl.json +94 -0
- package/locales/people/pl.json +98 -0
- package/locales/people/pt.json +96 -0
- package/locales/people/ro.json +96 -0
- package/locales/people/ru.json +98 -0
- package/locales/people/sk.json +98 -0
- package/locales/people/sv.json +94 -0
- package/locales/people/sw.json +94 -0
- package/locales/people/ta.json +94 -0
- package/locales/people/te.json +94 -0
- package/locales/people/th.json +92 -0
- package/locales/people/tl.json +94 -0
- package/locales/people/tr.json +94 -0
- package/locales/people/uk.json +98 -0
- package/locales/people/ur.json +94 -0
- package/locales/people/vi.json +92 -0
- package/locales/people/yo.json +92 -0
- package/locales/people/zh-Hans.json +92 -0
- package/locales/people/zh-Hant.json +92 -0
- package/locales/pictures/br.json +5 -5
- package/locales/pictures/co.json +5 -5
- package/locales/pictures/de.json +3 -3
- package/locales/pictures/en.json +2 -2
- package/locales/pictures/es.json +4 -4
- package/locales/pictures/fr-CA.json +6 -6
- package/locales/pictures/fr.json +4 -4
- package/locales/pictures/it.json +7 -7
- package/locales/pictures/ja.json +8 -8
- package/locales/pictures/ko.json +8 -8
- package/locales/pictures/pt.json +5 -5
- package/locales/pictures/zh-Hans.json +5 -5
- package/locales/pictures/zh-Hant.json +6 -6
- package/locales/pl.json +37 -20
- package/locales/plan/fr-CA.json +1 -1
- package/locales/plan/fr.json +1 -1
- package/locales/plan/it.json +2 -2
- package/locales/plan/ja.json +3 -3
- package/locales/plan/zh-Hans.json +2 -2
- package/locales/plan/zh-Hant.json +1 -1
- package/locales/policy/am.json +1 -0
- package/locales/policy/ar.json +1 -0
- package/locales/policy/bg.json +1 -0
- package/locales/policy/bn.json +1 -0
- package/locales/policy/br.json +1 -0
- package/locales/policy/co.json +3 -2
- package/locales/policy/cs.json +1 -0
- package/locales/policy/da.json +1 -0
- package/locales/policy/de.json +1 -0
- package/locales/policy/el.json +1 -0
- package/locales/policy/en.json +1 -0
- package/locales/policy/es.json +4 -3
- package/locales/policy/fa.json +1 -0
- package/locales/policy/fi.json +1 -0
- package/locales/policy/fr-CA.json +2 -1
- package/locales/policy/fr.json +2 -1
- package/locales/policy/ha.json +1 -0
- package/locales/policy/he.json +1 -0
- package/locales/policy/hi.json +1 -0
- package/locales/policy/hr.json +1 -0
- package/locales/policy/hu.json +1 -0
- package/locales/policy/id.json +1 -0
- package/locales/policy/it.json +4 -3
- package/locales/policy/ja.json +3 -2
- package/locales/policy/ko.json +1 -0
- package/locales/policy/mr.json +1 -0
- package/locales/policy/ms.json +1 -0
- package/locales/policy/nl.json +1 -0
- package/locales/policy/pl.json +1 -0
- package/locales/policy/pt.json +4 -3
- package/locales/policy/ro.json +1 -0
- package/locales/policy/ru.json +1 -0
- package/locales/policy/sk.json +1 -0
- package/locales/policy/sv.json +1 -0
- package/locales/policy/sw.json +1 -0
- package/locales/policy/ta.json +1 -0
- package/locales/policy/te.json +1 -0
- package/locales/policy/th.json +1 -0
- package/locales/policy/tl.json +1 -0
- package/locales/policy/tr.json +1 -0
- package/locales/policy/uk.json +1 -0
- package/locales/policy/ur.json +1 -0
- package/locales/policy/vi.json +1 -0
- package/locales/policy/yo.json +1 -0
- package/locales/policy/zh-Hans.json +9 -8
- package/locales/policy/zh-Hant.json +17 -16
- package/locales/profiles/am.json +4 -0
- package/locales/profiles/ar.json +8 -0
- package/locales/profiles/bg.json +4 -0
- package/locales/profiles/bn.json +4 -0
- package/locales/profiles/br.json +17 -10
- package/locales/profiles/co.json +14 -9
- package/locales/profiles/cs.json +6 -0
- package/locales/profiles/da.json +4 -0
- package/locales/profiles/de.json +5 -1
- package/locales/profiles/el.json +4 -0
- package/locales/profiles/en.json +6 -2
- package/locales/profiles/es.json +7 -2
- package/locales/profiles/fa.json +4 -0
- package/locales/profiles/fi.json +4 -0
- package/locales/profiles/fr-CA.json +13 -8
- package/locales/profiles/fr.json +13 -8
- package/locales/profiles/ha.json +4 -0
- package/locales/profiles/he.json +5 -0
- package/locales/profiles/hi.json +4 -0
- package/locales/profiles/hr.json +5 -0
- package/locales/profiles/hu.json +4 -0
- package/locales/profiles/id.json +3 -0
- package/locales/profiles/it.json +11 -6
- package/locales/profiles/ja.json +12 -9
- package/locales/profiles/ko.json +25 -22
- package/locales/profiles/mr.json +4 -0
- package/locales/profiles/ms.json +3 -0
- package/locales/profiles/nl.json +4 -0
- package/locales/profiles/pl.json +6 -0
- package/locales/profiles/pt.json +10 -5
- package/locales/profiles/ro.json +5 -0
- package/locales/profiles/ru.json +6 -0
- package/locales/profiles/sk.json +6 -0
- package/locales/profiles/sv.json +4 -0
- package/locales/profiles/sw.json +4 -0
- package/locales/profiles/ta.json +4 -0
- package/locales/profiles/te.json +4 -0
- package/locales/profiles/th.json +3 -0
- package/locales/profiles/tl.json +4 -0
- package/locales/profiles/tr.json +4 -0
- package/locales/profiles/uk.json +6 -0
- package/locales/profiles/ur.json +4 -0
- package/locales/profiles/vi.json +3 -0
- package/locales/profiles/yo.json +3 -0
- package/locales/profiles/zh-Hans.json +17 -14
- package/locales/profiles/zh-Hant.json +12 -9
- package/locales/projects/am.json +4 -0
- package/locales/projects/ar.json +4 -0
- package/locales/projects/bg.json +4 -0
- package/locales/projects/bn.json +4 -0
- package/locales/projects/br.json +4 -0
- package/locales/projects/co.json +4 -0
- package/locales/projects/cs.json +4 -0
- package/locales/projects/da.json +4 -0
- package/locales/projects/de.json +4 -0
- package/locales/projects/el.json +4 -0
- package/locales/projects/en.json +4 -0
- package/locales/projects/es.json +4 -0
- package/locales/projects/fa.json +4 -0
- package/locales/projects/fi.json +4 -0
- package/locales/projects/fr-CA.json +4 -0
- package/locales/projects/fr.json +4 -0
- package/locales/projects/ha.json +4 -0
- package/locales/projects/he.json +4 -0
- package/locales/projects/hi.json +4 -0
- package/locales/projects/hr.json +4 -0
- package/locales/projects/hu.json +4 -0
- package/locales/projects/id.json +4 -0
- package/locales/projects/it.json +4 -0
- package/locales/projects/ja.json +4 -0
- package/locales/projects/ko.json +4 -0
- package/locales/projects/mr.json +4 -0
- package/locales/projects/ms.json +4 -0
- package/locales/projects/nl.json +4 -0
- package/locales/projects/pl.json +4 -0
- package/locales/projects/pt.json +4 -0
- package/locales/projects/ro.json +4 -0
- package/locales/projects/ru.json +4 -0
- package/locales/projects/sk.json +4 -0
- package/locales/projects/sv.json +4 -0
- package/locales/projects/sw.json +4 -0
- package/locales/projects/ta.json +4 -0
- package/locales/projects/te.json +4 -0
- package/locales/projects/th.json +4 -0
- package/locales/projects/tl.json +4 -0
- package/locales/projects/tr.json +4 -0
- package/locales/projects/uk.json +4 -0
- package/locales/projects/ur.json +4 -0
- package/locales/projects/vi.json +4 -0
- package/locales/projects/yo.json +4 -0
- package/locales/projects/zh-Hans.json +4 -0
- package/locales/projects/zh-Hant.json +4 -0
- package/locales/prototypes/am.json +24 -0
- package/locales/prototypes/ar.json +24 -0
- package/locales/prototypes/bg.json +24 -0
- package/locales/prototypes/bn.json +24 -0
- package/locales/prototypes/br.json +24 -0
- package/locales/prototypes/co.json +24 -0
- package/locales/prototypes/cs.json +24 -0
- package/locales/prototypes/da.json +24 -0
- package/locales/prototypes/de.json +24 -0
- package/locales/prototypes/el.json +24 -0
- package/locales/prototypes/en.json +24 -0
- package/locales/prototypes/es.json +24 -0
- package/locales/prototypes/fa.json +24 -0
- package/locales/prototypes/fi.json +24 -0
- package/locales/prototypes/fr-CA.json +24 -0
- package/locales/prototypes/fr.json +24 -0
- package/locales/prototypes/ha.json +24 -0
- package/locales/prototypes/he.json +24 -0
- package/locales/prototypes/hi.json +24 -0
- package/locales/prototypes/hr.json +24 -0
- package/locales/prototypes/hu.json +24 -0
- package/locales/prototypes/id.json +24 -0
- package/locales/prototypes/it.json +24 -0
- package/locales/prototypes/ja.json +24 -0
- package/locales/prototypes/ko.json +24 -0
- package/locales/prototypes/mr.json +24 -0
- package/locales/prototypes/ms.json +24 -0
- package/locales/prototypes/nl.json +24 -0
- package/locales/prototypes/pl.json +24 -0
- package/locales/prototypes/pt.json +24 -0
- package/locales/prototypes/ro.json +24 -0
- package/locales/prototypes/ru.json +24 -0
- package/locales/prototypes/sk.json +24 -0
- package/locales/prototypes/sv.json +24 -0
- package/locales/prototypes/sw.json +24 -0
- package/locales/prototypes/ta.json +24 -0
- package/locales/prototypes/te.json +24 -0
- package/locales/prototypes/th.json +24 -0
- package/locales/prototypes/tl.json +24 -0
- package/locales/prototypes/tr.json +24 -0
- package/locales/prototypes/uk.json +24 -0
- package/locales/prototypes/ur.json +24 -0
- package/locales/prototypes/vi.json +24 -0
- package/locales/prototypes/yo.json +24 -0
- package/locales/prototypes/zh-Hans.json +24 -0
- package/locales/prototypes/zh-Hant.json +24 -0
- package/locales/pt.json +64 -47
- package/locales/receipt/am.json +14 -2
- package/locales/receipt/ar.json +14 -2
- package/locales/receipt/bg.json +14 -2
- package/locales/receipt/bn.json +14 -2
- package/locales/receipt/br.json +16 -4
- package/locales/receipt/co.json +16 -4
- package/locales/receipt/cs.json +14 -2
- package/locales/receipt/da.json +14 -2
- package/locales/receipt/de.json +16 -4
- package/locales/receipt/el.json +14 -2
- package/locales/receipt/en.json +16 -4
- package/locales/receipt/es.json +19 -7
- package/locales/receipt/fa.json +14 -2
- package/locales/receipt/fi.json +14 -2
- package/locales/receipt/fr-CA.json +16 -4
- package/locales/receipt/fr.json +16 -4
- package/locales/receipt/ha.json +14 -2
- package/locales/receipt/he.json +14 -2
- package/locales/receipt/hi.json +14 -2
- package/locales/receipt/hr.json +14 -2
- package/locales/receipt/hu.json +14 -2
- package/locales/receipt/id.json +14 -2
- package/locales/receipt/it.json +21 -9
- package/locales/receipt/ja.json +18 -6
- package/locales/receipt/ko.json +15 -3
- package/locales/receipt/mr.json +14 -2
- package/locales/receipt/ms.json +14 -2
- package/locales/receipt/nl.json +14 -2
- package/locales/receipt/pl.json +14 -2
- package/locales/receipt/pt.json +18 -6
- package/locales/receipt/ro.json +14 -2
- package/locales/receipt/ru.json +14 -2
- package/locales/receipt/sk.json +14 -2
- package/locales/receipt/sv.json +14 -2
- package/locales/receipt/sw.json +14 -2
- package/locales/receipt/ta.json +14 -2
- package/locales/receipt/te.json +14 -2
- package/locales/receipt/th.json +14 -2
- package/locales/receipt/tl.json +14 -2
- package/locales/receipt/tr.json +14 -2
- package/locales/receipt/uk.json +14 -2
- package/locales/receipt/ur.json +14 -2
- package/locales/receipt/vi.json +14 -2
- package/locales/receipt/yo.json +14 -2
- package/locales/receipt/zh-Hans.json +17 -5
- package/locales/receipt/zh-Hant.json +25 -13
- package/locales/ro.json +38 -21
- package/locales/routines/am.json +2 -0
- package/locales/routines/ar.json +2 -0
- package/locales/routines/bg.json +2 -0
- package/locales/routines/bn.json +2 -0
- package/locales/routines/br.json +12 -10
- package/locales/routines/co.json +8 -6
- package/locales/routines/cs.json +2 -0
- package/locales/routines/da.json +2 -0
- package/locales/routines/de.json +2 -0
- package/locales/routines/el.json +2 -0
- package/locales/routines/en.json +2 -0
- package/locales/routines/es.json +6 -4
- package/locales/routines/fa.json +2 -0
- package/locales/routines/fi.json +2 -0
- package/locales/routines/fr-CA.json +4 -2
- package/locales/routines/fr.json +4 -2
- package/locales/routines/ha.json +2 -0
- package/locales/routines/he.json +2 -0
- package/locales/routines/hi.json +2 -0
- package/locales/routines/hr.json +2 -0
- package/locales/routines/hu.json +2 -0
- package/locales/routines/id.json +2 -0
- package/locales/routines/it.json +3 -1
- package/locales/routines/ja.json +14 -12
- package/locales/routines/ko.json +3 -1
- package/locales/routines/mr.json +2 -0
- package/locales/routines/ms.json +2 -0
- package/locales/routines/nl.json +2 -0
- package/locales/routines/pl.json +2 -0
- package/locales/routines/pt.json +7 -5
- package/locales/routines/ro.json +2 -0
- package/locales/routines/ru.json +2 -0
- package/locales/routines/sk.json +2 -0
- package/locales/routines/sv.json +2 -0
- package/locales/routines/sw.json +2 -0
- package/locales/routines/ta.json +2 -0
- package/locales/routines/te.json +2 -0
- package/locales/routines/th.json +2 -0
- package/locales/routines/tl.json +2 -0
- package/locales/routines/tr.json +2 -0
- package/locales/routines/uk.json +2 -0
- package/locales/routines/ur.json +2 -0
- package/locales/routines/vi.json +2 -0
- package/locales/routines/yo.json +2 -0
- package/locales/routines/zh-Hans.json +4 -2
- package/locales/routines/zh-Hant.json +5 -3
- package/locales/ru.json +37 -20
- package/locales/scores/de.json +1 -1
- package/locales/scores/it.json +1 -1
- package/locales/scores/ja.json +2 -2
- package/locales/scores/ko.json +1 -1
- package/locales/screen/am.json +11 -0
- package/locales/screen/ar.json +11 -0
- package/locales/screen/bg.json +11 -0
- package/locales/screen/bn.json +11 -0
- package/locales/screen/br.json +11 -0
- package/locales/screen/co.json +11 -0
- package/locales/screen/cs.json +11 -0
- package/locales/screen/da.json +11 -0
- package/locales/screen/de.json +11 -0
- package/locales/screen/el.json +11 -0
- package/locales/screen/en.json +11 -0
- package/locales/screen/es.json +11 -0
- package/locales/screen/fa.json +11 -0
- package/locales/screen/fi.json +11 -0
- package/locales/screen/fr-CA.json +11 -0
- package/locales/screen/fr.json +11 -0
- package/locales/screen/ha.json +11 -0
- package/locales/screen/he.json +11 -0
- package/locales/screen/hi.json +11 -0
- package/locales/screen/hr.json +11 -0
- package/locales/screen/hu.json +11 -0
- package/locales/screen/id.json +11 -0
- package/locales/screen/it.json +11 -0
- package/locales/screen/ja.json +11 -0
- package/locales/screen/ko.json +11 -0
- package/locales/screen/mr.json +11 -0
- package/locales/screen/ms.json +11 -0
- package/locales/screen/nl.json +11 -0
- package/locales/screen/pl.json +11 -0
- package/locales/screen/pt.json +11 -0
- package/locales/screen/ro.json +11 -0
- package/locales/screen/ru.json +11 -0
- package/locales/screen/sk.json +11 -0
- package/locales/screen/sv.json +11 -0
- package/locales/screen/sw.json +11 -0
- package/locales/screen/ta.json +11 -0
- package/locales/screen/te.json +11 -0
- package/locales/screen/th.json +11 -0
- package/locales/screen/tl.json +11 -0
- package/locales/screen/tr.json +11 -0
- package/locales/screen/uk.json +11 -0
- package/locales/screen/ur.json +11 -0
- package/locales/screen/vi.json +11 -0
- package/locales/screen/yo.json +11 -0
- package/locales/screen/zh-Hans.json +11 -0
- package/locales/screen/zh-Hant.json +11 -0
- package/locales/share/am.json +17 -9
- package/locales/share/ar.json +17 -9
- package/locales/share/bg.json +17 -9
- package/locales/share/bn.json +17 -9
- package/locales/share/br.json +22 -14
- package/locales/share/co.json +20 -12
- package/locales/share/cs.json +17 -9
- package/locales/share/da.json +17 -9
- package/locales/share/de.json +19 -11
- package/locales/share/el.json +17 -9
- package/locales/share/en.json +17 -9
- package/locales/share/es.json +18 -10
- package/locales/share/fa.json +17 -9
- package/locales/share/fi.json +17 -9
- package/locales/share/fr-CA.json +21 -13
- package/locales/share/fr.json +19 -11
- package/locales/share/ha.json +17 -9
- package/locales/share/he.json +17 -9
- package/locales/share/hi.json +17 -9
- package/locales/share/hr.json +17 -9
- package/locales/share/hu.json +17 -9
- package/locales/share/id.json +17 -9
- package/locales/share/it.json +21 -13
- package/locales/share/ja.json +31 -23
- package/locales/share/ko.json +21 -13
- package/locales/share/mr.json +17 -9
- package/locales/share/ms.json +17 -9
- package/locales/share/nl.json +17 -9
- package/locales/share/pl.json +17 -9
- package/locales/share/pt.json +19 -11
- package/locales/share/ro.json +17 -9
- package/locales/share/ru.json +17 -9
- package/locales/share/sk.json +17 -9
- package/locales/share/sv.json +17 -9
- package/locales/share/sw.json +17 -9
- package/locales/share/ta.json +17 -9
- package/locales/share/te.json +17 -9
- package/locales/share/th.json +17 -9
- package/locales/share/tl.json +17 -9
- package/locales/share/tr.json +17 -9
- package/locales/share/uk.json +17 -9
- package/locales/share/ur.json +17 -9
- package/locales/share/vi.json +17 -9
- package/locales/share/yo.json +17 -9
- package/locales/share/zh-Hans.json +24 -16
- package/locales/share/zh-Hant.json +30 -22
- package/locales/signin/br.json +1 -1
- package/locales/signin/co.json +1 -1
- package/locales/signin/es.json +1 -1
- package/locales/signin/ja.json +1 -1
- package/locales/signin/ko.json +2 -2
- package/locales/signin/pt.json +1 -1
- package/locales/signin/zh-Hans.json +1 -1
- package/locales/signin/zh-Hant.json +1 -1
- package/locales/sites/am.json +80 -0
- package/locales/sites/ar.json +84 -0
- package/locales/sites/bg.json +80 -0
- package/locales/sites/bn.json +80 -0
- package/locales/sites/br.json +83 -0
- package/locales/sites/co.json +81 -0
- package/locales/sites/cs.json +82 -0
- package/locales/sites/da.json +80 -0
- package/locales/sites/de.json +80 -0
- package/locales/sites/el.json +80 -0
- package/locales/sites/en.json +80 -0
- package/locales/sites/es.json +81 -0
- package/locales/sites/fa.json +80 -0
- package/locales/sites/fi.json +80 -0
- package/locales/sites/fr-CA.json +81 -0
- package/locales/sites/fr.json +81 -0
- package/locales/sites/ha.json +80 -0
- package/locales/sites/he.json +81 -0
- package/locales/sites/hi.json +80 -0
- package/locales/sites/hr.json +81 -0
- package/locales/sites/hu.json +80 -0
- package/locales/sites/id.json +79 -0
- package/locales/sites/it.json +81 -0
- package/locales/sites/ja.json +79 -0
- package/locales/sites/ko.json +79 -0
- package/locales/sites/mr.json +80 -0
- package/locales/sites/ms.json +79 -0
- package/locales/sites/nl.json +80 -0
- package/locales/sites/pl.json +82 -0
- package/locales/sites/pt.json +81 -0
- package/locales/sites/ro.json +81 -0
- package/locales/sites/ru.json +82 -0
- package/locales/sites/sk.json +82 -0
- package/locales/sites/sv.json +80 -0
- package/locales/sites/sw.json +80 -0
- package/locales/sites/ta.json +80 -0
- package/locales/sites/te.json +80 -0
- package/locales/sites/th.json +79 -0
- package/locales/sites/tl.json +80 -0
- package/locales/sites/tr.json +80 -0
- package/locales/sites/uk.json +82 -0
- package/locales/sites/ur.json +80 -0
- package/locales/sites/vi.json +79 -0
- package/locales/sites/yo.json +79 -0
- package/locales/sites/zh-Hans.json +79 -0
- package/locales/sites/zh-Hant.json +79 -0
- package/locales/sk.json +38 -21
- package/locales/skills/am.json +1 -0
- package/locales/skills/ar.json +1 -0
- package/locales/skills/bg.json +1 -0
- package/locales/skills/bn.json +1 -0
- package/locales/skills/br.json +8 -7
- package/locales/skills/co.json +8 -7
- package/locales/skills/cs.json +1 -0
- package/locales/skills/da.json +1 -0
- package/locales/skills/de.json +6 -5
- package/locales/skills/el.json +1 -0
- package/locales/skills/en.json +1 -0
- package/locales/skills/es.json +5 -4
- package/locales/skills/fa.json +1 -0
- package/locales/skills/fi.json +1 -0
- package/locales/skills/fr-CA.json +4 -3
- package/locales/skills/fr.json +4 -3
- package/locales/skills/ha.json +1 -0
- package/locales/skills/he.json +1 -0
- package/locales/skills/hi.json +1 -0
- package/locales/skills/hr.json +1 -0
- package/locales/skills/hu.json +1 -0
- package/locales/skills/id.json +1 -0
- package/locales/skills/it.json +2 -1
- package/locales/skills/ja.json +17 -16
- package/locales/skills/ko.json +2 -1
- package/locales/skills/mr.json +1 -0
- package/locales/skills/ms.json +1 -0
- package/locales/skills/nl.json +1 -0
- package/locales/skills/pl.json +1 -0
- package/locales/skills/pt.json +6 -5
- package/locales/skills/ro.json +1 -0
- package/locales/skills/ru.json +1 -0
- package/locales/skills/sk.json +1 -0
- package/locales/skills/sv.json +1 -0
- package/locales/skills/sw.json +1 -0
- package/locales/skills/ta.json +1 -0
- package/locales/skills/te.json +1 -0
- package/locales/skills/th.json +1 -0
- package/locales/skills/tl.json +1 -0
- package/locales/skills/tr.json +1 -0
- package/locales/skills/uk.json +1 -0
- package/locales/skills/ur.json +1 -0
- package/locales/skills/vi.json +1 -0
- package/locales/skills/yo.json +1 -0
- package/locales/skills/zh-Hans.json +3 -2
- package/locales/skills/zh-Hant.json +5 -4
- package/locales/slides/am.json +7 -0
- package/locales/slides/ar.json +7 -0
- package/locales/slides/bg.json +7 -0
- package/locales/slides/bn.json +7 -0
- package/locales/slides/br.json +18 -11
- package/locales/slides/co.json +35 -28
- package/locales/slides/cs.json +7 -0
- package/locales/slides/da.json +7 -0
- package/locales/slides/de.json +7 -0
- package/locales/slides/el.json +7 -0
- package/locales/slides/en.json +11 -4
- package/locales/slides/es.json +14 -7
- package/locales/slides/fa.json +7 -0
- package/locales/slides/fi.json +7 -0
- package/locales/slides/fr-CA.json +7 -0
- package/locales/slides/fr.json +7 -0
- package/locales/slides/ha.json +7 -0
- package/locales/slides/he.json +7 -0
- package/locales/slides/hi.json +7 -0
- package/locales/slides/hr.json +7 -0
- package/locales/slides/hu.json +7 -0
- package/locales/slides/id.json +7 -0
- package/locales/slides/it.json +13 -6
- package/locales/slides/ja.json +12 -5
- package/locales/slides/ko.json +21 -14
- package/locales/slides/mr.json +7 -0
- package/locales/slides/ms.json +7 -0
- package/locales/slides/nl.json +7 -0
- package/locales/slides/pl.json +7 -0
- package/locales/slides/pt.json +16 -9
- package/locales/slides/ro.json +7 -0
- package/locales/slides/ru.json +7 -0
- package/locales/slides/sk.json +7 -0
- package/locales/slides/sv.json +7 -0
- package/locales/slides/sw.json +7 -0
- package/locales/slides/ta.json +7 -0
- package/locales/slides/te.json +7 -0
- package/locales/slides/th.json +7 -0
- package/locales/slides/tl.json +7 -0
- package/locales/slides/tr.json +7 -0
- package/locales/slides/uk.json +7 -0
- package/locales/slides/ur.json +7 -0
- package/locales/slides/vi.json +7 -0
- package/locales/slides/yo.json +7 -0
- package/locales/slides/zh-Hans.json +11 -4
- package/locales/slides/zh-Hant.json +10 -3
- package/locales/starters/am.json +20 -0
- package/locales/starters/ar.json +20 -0
- package/locales/starters/bg.json +20 -0
- package/locales/starters/bn.json +20 -0
- package/locales/starters/br.json +20 -0
- package/locales/starters/co.json +20 -0
- package/locales/starters/cs.json +20 -0
- package/locales/starters/da.json +20 -0
- package/locales/starters/de.json +20 -0
- package/locales/starters/el.json +20 -0
- package/locales/starters/en.json +20 -0
- package/locales/starters/es.json +20 -0
- package/locales/starters/fa.json +20 -0
- package/locales/starters/fi.json +20 -0
- package/locales/starters/fr-CA.json +20 -0
- package/locales/starters/fr.json +20 -0
- package/locales/starters/ha.json +20 -0
- package/locales/starters/he.json +20 -0
- package/locales/starters/hi.json +20 -0
- package/locales/starters/hr.json +20 -0
- package/locales/starters/hu.json +20 -0
- package/locales/starters/id.json +20 -0
- package/locales/starters/it.json +20 -0
- package/locales/starters/ja.json +20 -0
- package/locales/starters/ko.json +20 -0
- package/locales/starters/mr.json +20 -0
- package/locales/starters/ms.json +20 -0
- package/locales/starters/nl.json +20 -0
- package/locales/starters/pl.json +20 -0
- package/locales/starters/pt.json +20 -0
- package/locales/starters/ro.json +20 -0
- package/locales/starters/ru.json +20 -0
- package/locales/starters/sk.json +20 -0
- package/locales/starters/sv.json +20 -0
- package/locales/starters/sw.json +20 -0
- package/locales/starters/ta.json +20 -0
- package/locales/starters/te.json +20 -0
- package/locales/starters/th.json +20 -0
- package/locales/starters/tl.json +20 -0
- package/locales/starters/tr.json +20 -0
- package/locales/starters/uk.json +20 -0
- package/locales/starters/ur.json +20 -0
- package/locales/starters/vi.json +20 -0
- package/locales/starters/yo.json +20 -0
- package/locales/starters/zh-Hans.json +20 -0
- package/locales/starters/zh-Hant.json +20 -0
- package/locales/sv.json +37 -20
- package/locales/sw.json +37 -20
- package/locales/sync/br.json +2 -2
- package/locales/sync/de.json +2 -2
- package/locales/sync/es.json +6 -6
- package/locales/sync/it.json +1 -1
- package/locales/sync/ja.json +2 -2
- package/locales/sync/pt.json +1 -1
- package/locales/ta.json +37 -20
- package/locales/tables/am.json +3 -0
- package/locales/tables/ar.json +3 -0
- package/locales/tables/bg.json +3 -0
- package/locales/tables/bn.json +3 -0
- package/locales/tables/br.json +11 -8
- package/locales/tables/co.json +18 -15
- package/locales/tables/cs.json +3 -0
- package/locales/tables/da.json +3 -0
- package/locales/tables/de.json +5 -2
- package/locales/tables/el.json +3 -0
- package/locales/tables/en.json +3 -0
- package/locales/tables/es.json +3 -0
- package/locales/tables/fa.json +3 -0
- package/locales/tables/fi.json +3 -0
- package/locales/tables/fr-CA.json +7 -4
- package/locales/tables/fr.json +6 -3
- package/locales/tables/ha.json +3 -0
- package/locales/tables/he.json +3 -0
- package/locales/tables/hi.json +3 -0
- package/locales/tables/hr.json +3 -0
- package/locales/tables/hu.json +3 -0
- package/locales/tables/id.json +3 -0
- package/locales/tables/it.json +3 -0
- package/locales/tables/ja.json +5 -2
- package/locales/tables/ko.json +7 -4
- package/locales/tables/mr.json +3 -0
- package/locales/tables/ms.json +3 -0
- package/locales/tables/nl.json +3 -0
- package/locales/tables/pl.json +3 -0
- package/locales/tables/pt.json +11 -8
- package/locales/tables/ro.json +3 -0
- package/locales/tables/ru.json +3 -0
- package/locales/tables/sk.json +3 -0
- package/locales/tables/sv.json +3 -0
- package/locales/tables/sw.json +3 -0
- package/locales/tables/ta.json +3 -0
- package/locales/tables/te.json +3 -0
- package/locales/tables/th.json +3 -0
- package/locales/tables/tl.json +3 -0
- package/locales/tables/tr.json +3 -0
- package/locales/tables/uk.json +3 -0
- package/locales/tables/ur.json +3 -0
- package/locales/tables/vi.json +3 -0
- package/locales/tables/yo.json +3 -0
- package/locales/tables/zh-Hans.json +4 -1
- package/locales/tables/zh-Hant.json +4 -1
- package/locales/te.json +37 -20
- package/locales/th.json +37 -20
- package/locales/tl.json +37 -20
- package/locales/together/am.json +56 -0
- package/locales/together/ar.json +56 -0
- package/locales/together/bg.json +56 -0
- package/locales/together/bn.json +56 -0
- package/locales/together/br.json +56 -0
- package/locales/together/co.json +56 -0
- package/locales/together/cs.json +56 -0
- package/locales/together/da.json +56 -0
- package/locales/together/de.json +56 -0
- package/locales/together/el.json +56 -0
- package/locales/together/en.json +56 -0
- package/locales/together/es.json +56 -0
- package/locales/together/fa.json +56 -0
- package/locales/together/fi.json +56 -0
- package/locales/together/fr-CA.json +56 -0
- package/locales/together/fr.json +56 -0
- package/locales/together/ha.json +56 -0
- package/locales/together/he.json +56 -0
- package/locales/together/hi.json +56 -0
- package/locales/together/hr.json +56 -0
- package/locales/together/hu.json +56 -0
- package/locales/together/id.json +56 -0
- package/locales/together/it.json +56 -0
- package/locales/together/ja.json +56 -0
- package/locales/together/ko.json +56 -0
- package/locales/together/mr.json +56 -0
- package/locales/together/ms.json +56 -0
- package/locales/together/nl.json +56 -0
- package/locales/together/pl.json +56 -0
- package/locales/together/pt.json +56 -0
- package/locales/together/ro.json +56 -0
- package/locales/together/ru.json +56 -0
- package/locales/together/sk.json +56 -0
- package/locales/together/sv.json +56 -0
- package/locales/together/sw.json +56 -0
- package/locales/together/ta.json +56 -0
- package/locales/together/te.json +56 -0
- package/locales/together/th.json +56 -0
- package/locales/together/tl.json +56 -0
- package/locales/together/tr.json +56 -0
- package/locales/together/uk.json +56 -0
- package/locales/together/ur.json +56 -0
- package/locales/together/vi.json +56 -0
- package/locales/together/yo.json +56 -0
- package/locales/together/zh-Hans.json +56 -0
- package/locales/together/zh-Hant.json +56 -0
- package/locales/tr.json +37 -20
- package/locales/uk.json +37 -20
- package/locales/ur.json +37 -20
- package/locales/vi.json +37 -20
- package/locales/{search → web-search}/am.json +1 -1
- package/locales/{search → web-search}/ar.json +1 -1
- package/locales/{search → web-search}/bg.json +1 -1
- package/locales/{search → web-search}/bn.json +1 -1
- package/locales/{search → web-search}/br.json +9 -9
- package/locales/{search → web-search}/co.json +8 -8
- package/locales/{search → web-search}/cs.json +1 -1
- package/locales/{search → web-search}/da.json +1 -1
- package/locales/{search → web-search}/de.json +2 -2
- package/locales/{search → web-search}/el.json +1 -1
- package/locales/{search → web-search}/en.json +1 -1
- package/locales/{search → web-search}/es.json +5 -5
- package/locales/{search → web-search}/fa.json +1 -1
- package/locales/{search → web-search}/fi.json +1 -1
- package/locales/{search → web-search}/fr-CA.json +2 -2
- package/locales/{search → web-search}/fr.json +2 -2
- package/locales/{search → web-search}/ha.json +1 -1
- package/locales/{search → web-search}/he.json +1 -1
- package/locales/{search → web-search}/hi.json +1 -1
- package/locales/{search → web-search}/hr.json +1 -1
- package/locales/{search → web-search}/hu.json +1 -1
- package/locales/{search → web-search}/id.json +1 -1
- package/locales/{search → web-search}/it.json +2 -2
- package/locales/{search → web-search}/ja.json +8 -8
- package/locales/{search → web-search}/ko.json +2 -2
- package/locales/{search → web-search}/mr.json +1 -1
- package/locales/{search → web-search}/ms.json +1 -1
- package/locales/{search → web-search}/nl.json +1 -1
- package/locales/{search → web-search}/pl.json +1 -1
- package/locales/{search → web-search}/pt.json +3 -3
- package/locales/{search → web-search}/ro.json +1 -1
- package/locales/{search → web-search}/ru.json +1 -1
- package/locales/{search → web-search}/sk.json +1 -1
- package/locales/{search → web-search}/sv.json +1 -1
- package/locales/{search → web-search}/sw.json +1 -1
- package/locales/{search → web-search}/ta.json +1 -1
- package/locales/{search → web-search}/te.json +1 -1
- package/locales/{search → web-search}/th.json +1 -1
- package/locales/{search → web-search}/tl.json +1 -1
- package/locales/{search → web-search}/tr.json +1 -1
- package/locales/{search → web-search}/uk.json +1 -1
- package/locales/{search → web-search}/ur.json +1 -1
- package/locales/{search → web-search}/vi.json +1 -1
- package/locales/{search → web-search}/yo.json +1 -1
- package/locales/{search → web-search}/zh-Hans.json +3 -3
- package/locales/{search → web-search}/zh-Hant.json +19 -19
- package/locales/yo.json +37 -20
- package/locales/you/br.json +13 -13
- package/locales/you/co.json +2 -2
- package/locales/you/de.json +1 -1
- package/locales/you/en.json +1 -1
- package/locales/you/es.json +2 -2
- package/locales/you/fr-CA.json +3 -3
- package/locales/you/fr.json +3 -3
- package/locales/you/it.json +10 -10
- package/locales/you/ja.json +9 -9
- package/locales/you/pt.json +11 -11
- package/locales/you/zh-Hans.json +3 -3
- package/locales/you/zh-Hant.json +3 -3
- package/locales/zh-Hans.json +56 -39
- package/locales/zh-Hant.json +66 -49
- package/package.json +1 -1
- package/preview.html +8 -2
- package/ui/base.js +33 -0
- package/ui/caps.js +18 -15
- package/ui/csp.js +1 -1
- package/ui/export.js +4 -4
- package/ui/icons.js +4 -4
- package/ui/kit.js +12 -7
- package/ui/looks/classic.css +2 -0
- package/ui/looks/human.css +15 -5
- package/ui/looks/neon.css +4 -5
- package/ui/looks/tilde.css +1 -1
- package/ui/looks/velvet.css +1 -1
- package/ui/looks.js +2 -5
- package/ui/markdown.js +23 -19
- package/ui/menu-icons.js +13 -5
- package/ui/model.js +4 -4
- package/ui/pointed.js +22 -0
- package/ui/reader-state.js +4 -3
- package/ui/reader.js +1 -1
- package/ui/seal.js +80 -25
- package/ui/shown.js +53 -0
- package/ui/style.css +19 -21
- package/ui/touches.js +22 -0
- package/ui/view.css +27 -1
- package/ui/view.js +38 -15
- package/vendor/pele/lazy.d.ts +1 -0
- package/locales/reader/ja.json +0 -9
- package/ui/looks/mondrian.css +0 -90
- package/ui/looks/paper.css +0 -51
- /package/locales/{reader → natural-voice}/am.json +0 -0
- /package/locales/{reader → natural-voice}/ar.json +0 -0
- /package/locales/{reader → natural-voice}/bg.json +0 -0
- /package/locales/{reader → natural-voice}/bn.json +0 -0
- /package/locales/{reader → natural-voice}/br.json +0 -0
- /package/locales/{reader → natural-voice}/co.json +0 -0
- /package/locales/{reader → natural-voice}/cs.json +0 -0
- /package/locales/{reader → natural-voice}/da.json +0 -0
- /package/locales/{reader → natural-voice}/de.json +0 -0
- /package/locales/{reader → natural-voice}/el.json +0 -0
- /package/locales/{reader → natural-voice}/en.json +0 -0
- /package/locales/{reader → natural-voice}/fa.json +0 -0
- /package/locales/{reader → natural-voice}/fi.json +0 -0
- /package/locales/{reader → natural-voice}/fr-CA.json +0 -0
- /package/locales/{reader → natural-voice}/fr.json +0 -0
- /package/locales/{reader → natural-voice}/ha.json +0 -0
- /package/locales/{reader → natural-voice}/he.json +0 -0
- /package/locales/{reader → natural-voice}/hi.json +0 -0
- /package/locales/{reader → natural-voice}/hr.json +0 -0
- /package/locales/{reader → natural-voice}/hu.json +0 -0
- /package/locales/{reader → natural-voice}/id.json +0 -0
- /package/locales/{reader → natural-voice}/it.json +0 -0
- /package/locales/{reader → natural-voice}/ko.json +0 -0
- /package/locales/{reader → natural-voice}/mr.json +0 -0
- /package/locales/{reader → natural-voice}/ms.json +0 -0
- /package/locales/{reader → natural-voice}/nl.json +0 -0
- /package/locales/{reader → natural-voice}/pl.json +0 -0
- /package/locales/{reader → natural-voice}/pt.json +0 -0
- /package/locales/{reader → natural-voice}/ro.json +0 -0
- /package/locales/{reader → natural-voice}/ru.json +0 -0
- /package/locales/{reader → natural-voice}/sk.json +0 -0
- /package/locales/{reader → natural-voice}/sv.json +0 -0
- /package/locales/{reader → natural-voice}/sw.json +0 -0
- /package/locales/{reader → natural-voice}/ta.json +0 -0
- /package/locales/{reader → natural-voice}/te.json +0 -0
- /package/locales/{reader → natural-voice}/th.json +0 -0
- /package/locales/{reader → natural-voice}/tl.json +0 -0
- /package/locales/{reader → natural-voice}/tr.json +0 -0
- /package/locales/{reader → natural-voice}/uk.json +0 -0
- /package/locales/{reader → natural-voice}/ur.json +0 -0
- /package/locales/{reader → natural-voice}/vi.json +0 -0
- /package/locales/{reader → natural-voice}/yo.json +0 -0
package/caps/scores/scores.js
CHANGED
|
@@ -15,6 +15,7 @@ import { icon, icons } from '../../ui/menu-icons.js'
|
|
|
15
15
|
import { styleSheet, still } from '../../ui/sheet.js'
|
|
16
16
|
import { modelWorker } from '../../ui/model.js'
|
|
17
17
|
import { t, dir, locale, useStrings, intlLocales } from '../../core/i18n.js'
|
|
18
|
+
import { serviceURL } from '../../core/settings.js'
|
|
18
19
|
import { notesOf, wholeNote } from './notes.js'
|
|
19
20
|
|
|
20
21
|
/** @typedef {import('./notes.js').Note} Note */
|
|
@@ -37,6 +38,23 @@ let playing = /** @type {AppScore | null} */ (null)
|
|
|
37
38
|
/** 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
39
|
const WORKER = new URL('./sound-worker.js', import.meta.url)
|
|
39
40
|
const sounds = WORKER.origin === location.origin ? modelWorker(WORKER, 'The score’s sound stopped') : null
|
|
41
|
+
/** Jean's own list of the instruments (D338): the sounds package's version, and each file's SHA-256, which the files that come from elsewhere are checked against. */
|
|
42
|
+
const OWN = new URL('../../vendor/sounds/', import.meta.url)
|
|
43
|
+
let version = /** @type {Promise<string> | null} */ (null)
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Where the instruments come from, as Settings or policy name it, at this Jean's version of them, an address of Jean's own
|
|
47
|
+
* when relative (an organisation's copy beside it), with Jean's own list of them; in a saved copy, the address it was saved
|
|
48
|
+
* with, and the list there. None when the address is ''.
|
|
49
|
+
* @returns {Promise<{ base: string, index?: string }>}
|
|
50
|
+
*/
|
|
51
|
+
async function instruments() {
|
|
52
|
+
const where = String(serviceURL('sounds', app.settings.peek(), app.policy) ?? '')
|
|
53
|
+
if (!where || !sounds && where.includes('{version}')) throw new Error('No address for the instruments')
|
|
54
|
+
if (!sounds) return { base: where }
|
|
55
|
+
const at = await (version ??= fetch(new URL('package.json', OWN)).then((response) => response.json()).then((found) => String(found.version)))
|
|
56
|
+
return { base: new URL(where.replace('{version}', at), document.baseURI).href, index: new URL('sounds.json', OWN).href }
|
|
57
|
+
}
|
|
40
58
|
|
|
41
59
|
/**
|
|
42
60
|
* One note: a triangle wave and, softer, its octave, struck and fading as a plucked string does,
|
|
@@ -106,9 +124,9 @@ class AppScore extends HTMLElement {
|
|
|
106
124
|
} catch (error) {
|
|
107
125
|
console.warn('Score', error)
|
|
108
126
|
}
|
|
109
|
-
const music = tune?.lines?.some((/** @type {
|
|
127
|
+
const music = tune?.lines?.some((/** @type {{ staff?: unknown }} */ line) => line.staff)
|
|
110
128
|
this.notes = music ? notesOf(tune.setUpAudio(), wholeNote(tune.millisecondsPerMeasure(), tune.getMeterFraction())) : []
|
|
111
|
-
this.moments = music ? tune.setTiming().filter((/** @type {
|
|
129
|
+
this.moments = music ? tune.setTiming().filter((/** @type {{ type: string }} */ moment) => moment.type === 'event') : []
|
|
112
130
|
this.length = Math.max(0, ...this.notes.map((note) => note.at + note.length))
|
|
113
131
|
this.at = Math.min(this.at, this.length)
|
|
114
132
|
this.label = music ? String(tune.metaText?.title ?? '') : ''
|
|
@@ -179,7 +197,6 @@ class AppScore extends HTMLElement {
|
|
|
179
197
|
this.loading = null
|
|
180
198
|
this.start(sound)
|
|
181
199
|
}
|
|
182
|
-
const request = { notes: this.notes, rate: sound.sampleRate, base: (/** @type {Record<string, string>} */ (app.settings.peek().urls ?? {})).sounds }
|
|
183
200
|
const made = (/** @type {Record<string, any>} */ message) => {
|
|
184
201
|
if (this.parts !== parts) return
|
|
185
202
|
if (message.type === 'progress') return this.loading !== null && ((this.loading = message.loaded / message.total), this.paint())
|
|
@@ -190,7 +207,10 @@ class AppScore extends HTMLElement {
|
|
|
190
207
|
if (this.started !== null) this.schedule(parts[parts.length - 1])
|
|
191
208
|
ready()
|
|
192
209
|
}
|
|
193
|
-
const making =
|
|
210
|
+
const making = instruments().then((where) => {
|
|
211
|
+
const request = { notes: this.notes, rate: sound.sampleRate, ...where }
|
|
212
|
+
return sounds ? sounds.call(request, { onMessage: made }) : import('./sound.js').then(({ render }) => render(request, made, () => this.parts !== parts))
|
|
213
|
+
})
|
|
194
214
|
making.catch((error) => {
|
|
195
215
|
console.warn('Score', error)
|
|
196
216
|
if (this.parts !== parts || parts.length) return
|
package/caps/scores/sound.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
// A score's sound (D338): the instruments its notes ask for,
|
|
2
|
-
//
|
|
1
|
+
// A score's sound (D338): the instruments its notes ask for, MS Basic's files from where Settings or policy
|
|
2
|
+
// name them (jsDelivr's copy of the sounds package unless they name another), or where a saved copy names
|
|
3
|
+
// them, each downloaded once, checked against its SHA-256 in Jean's own list of them and kept apart
|
|
3
4
|
// from app versions where the browser keeps caches, then played by spessasynth_core a second at a
|
|
4
5
|
// time, each second handed on as it is made, so that the music starts with the first. In a worker
|
|
5
6
|
// (./sound-worker.js), or on the page of a saved copy, whose files come from an address that starts none.
|
|
@@ -20,15 +21,15 @@ const banks = new Map()
|
|
|
20
21
|
const channelOf = (note) => (note.instrument === 128 ? 9 : (note.track + (note.track >= 9 ? 1 : 0)) % 16)
|
|
21
22
|
|
|
22
23
|
/**
|
|
23
|
-
* The music of `notes` at `rate`, from the instruments at `base`
|
|
24
|
-
* them has come, then each second, handed to `post`, until it is done or `stopped()`.
|
|
25
|
-
* @param {{ notes: Note[], rate: number, base?: string }} request
|
|
24
|
+
* The music of `notes` at `rate`, from the instruments at `base` as `index` lists them (the list there when
|
|
25
|
+
* none): what of them has come, then each second, handed to `post`, until it is done or `stopped()`.
|
|
26
|
+
* @param {{ notes: Note[], rate: number, base: string, index?: string }} request
|
|
26
27
|
* @param {(message: Record<string, any>, transfer?: Transferable[]) => void} post @param {() => boolean} stopped
|
|
27
28
|
*/
|
|
28
|
-
export async function render({ notes, rate, base }, post, stopped) {
|
|
29
|
+
export async function render({ notes, rate, base, index }, post, stopped) {
|
|
29
30
|
const { SoundBankLoader, SpessaSynthProcessor } = await (library ??= import(new URL('../../vendor/spessasynth/spessasynth.mjs', import.meta.url).href))
|
|
30
|
-
const sounds = new URL(base
|
|
31
|
-
const { files, programs, drums } = /** @type {Index} */ (await (await fetch(new URL('sounds.json', sounds))).json())
|
|
31
|
+
const sounds = new URL(base, import.meta.url)
|
|
32
|
+
const { files, programs, drums } = /** @type {Index} */ (await (await fetch(index ?? new URL('sounds.json', sounds))).json())
|
|
32
33
|
const wanted = [...new Set(notes.map((note) => files[note.instrument === 128 ? drums : (programs[note.instrument] ?? programs[0])]))]
|
|
33
34
|
const got = wanted.map((file) => (banks.has(file.path) ? file.bytes : 0))
|
|
34
35
|
const total = wanted.reduce((sum, file) => sum + file.bytes, 0)
|
package/caps/share/view.js
CHANGED
|
@@ -22,7 +22,8 @@ const root = document.documentElement
|
|
|
22
22
|
root.lang = locale.value
|
|
23
23
|
root.dir = dir()
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
// The share's id ends the address, which may open under a path of the host's (hst.ing/s/<id>).
|
|
26
|
+
const id = location.pathname.split('/').pop() ?? ''
|
|
26
27
|
const secret = location.hash.slice(1)
|
|
27
28
|
/**
|
|
28
29
|
* Where the viewer is: opening; asking for the password, after a wrong one perhaps; the share drawn,
|
package/caps/skills/directory.js
CHANGED
|
@@ -33,7 +33,15 @@ export const DIRECTORY = Object.freeze([
|
|
|
33
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
34
|
// Games (D648): the capability it brings, and its sheets beside its steps.
|
|
35
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'] },
|
|
36
|
+
// Sites (D720): the capability it brings, and its sheets of the kinds of site and of the look.
|
|
37
|
+
{ name: 'site', group: 'drawn', icon: 'M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zM3 9h18M6 7h.01M8.5 7h.01M7 13h6M7 16h4', cap: 'sites', beside: ['kinds.md', 'look.md'] },
|
|
38
|
+
// Prototypes (D742): the capability it brings, and its sheet of shapes; the look is the site skill's.
|
|
39
|
+
{ name: 'prototype', group: 'drawn', icon: 'M3 5h6v14H3zM15 5h6v14h-6zM9 12h6M13 10l2 2-2 2', cap: 'prototypes', beside: ['screens.md'] },
|
|
40
|
+
// Apps (D553): the pages answers hold, whose capability it needs; a prototype's Build it follows it (D742).
|
|
41
|
+
{ name: 'app', group: 'drawn', icon: 'M4 4h6.5v6.5H4zM4 13.5h6.5V20H4zM13.5 13.5H20V20h-6.5zM16.75 3.35l3.9 3.9-3.9 3.9-3.9-3.9z', cap: 'interactive' },
|
|
36
42
|
{ 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' },
|
|
43
|
+
// Extensions (D692): the capability whose tool it brings, `extension`, which offers one on its page in Settings.
|
|
44
|
+
{ name: 'extension', group: 'work', icon: 'M4 10a2.5 2.5 0 0 1 2.5-2.5h2a2.25 2.25 0 1 1 3.5 0h4.5V12a2.25 2.25 0 1 1 0 3.5v2a2.5 2.5 0 0 1-2.5 2.5h-7.5A2.5 2.5 0 0 1 4 17.5Z', cap: 'extensions' },
|
|
37
45
|
])
|
|
38
46
|
|
|
39
47
|
/**
|
|
@@ -51,10 +59,9 @@ export function shownIn({ name, description, title = name, metadata = {} }, lang
|
|
|
51
59
|
* @returns {Promise<Ready[]>}
|
|
52
60
|
*/
|
|
53
61
|
export async function readDirectory({ fetch = globalThis.fetch, base = new URL('directory/', import.meta.url) } = {}) {
|
|
54
|
-
|
|
62
|
+
return (await Promise.all(DIRECTORY.map(async ({ name, group, icon, cap, beside }) => {
|
|
55
63
|
const url = new URL(`${name}/SKILL.md`, base).href
|
|
56
64
|
const skill = await fetch(url).then(async (response) => (response.ok ? parseSkill(await response.text(), url) : null)).catch(() => null)
|
|
57
65
|
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 }] : []
|
|
58
|
-
}))
|
|
59
|
-
return read.flat()
|
|
66
|
+
}))).flat()
|
|
60
67
|
}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
// A design system proposed from the person's own material (D740): a logo, a screenshot of their site, a brand guide as a PDF or
|
|
2
|
+
// a Word file. Its colours are read from the codes a guide writes, else from pixels; its faces from the names a guide gives, else
|
|
3
|
+
// from the faces it is set in; its logo is the picture it holds. No brain reads any of it, so a device brain proposes what any
|
|
4
|
+
// other does. Every colour then reads at AA where the kit is worn: words, quiet words and the main colour on its paper, words on
|
|
5
|
+
// its pale fill, and by night words and the main colour on the night's paper. The proposal waits beside the kit it would change
|
|
6
|
+
// (`proposedPath()` in ui/kit.js) until the person accepts or rejects it on the design system's page (./kit-page.js). Pure, but
|
|
7
|
+
// for reading pictures (a canvas), PDFs (pdf.js, as Files reads them) and Word files.
|
|
8
|
+
import { contrast, mix, readable } from '../../ui/colour.js'
|
|
9
|
+
import { readZip } from '../../core/zip.js'
|
|
10
|
+
|
|
11
|
+
/** @typedef {{ hex: string, share: number, L: number, C: number }} Swatch a colour of the material, how much of it counts, its lightness and chroma (OKLab) */
|
|
12
|
+
/** @typedef {{ heading?: string, body?: string }} Used the faces a document is set in, its headings' and its text's */
|
|
13
|
+
|
|
14
|
+
/** A picture a proposal reads, by its name. */
|
|
15
|
+
const PICTURE = /\.(png|jpe?g|gif|webp|svg)$/i
|
|
16
|
+
|
|
17
|
+
/** @param {number[]} rgb */
|
|
18
|
+
const hexOf = (rgb) => `#${rgb.map((c) => Math.round(c).toString(16).padStart(2, '0')).join('')}`
|
|
19
|
+
/** @param {string} hex #rrggbb */
|
|
20
|
+
const rgbOf = (hex) => [1, 3, 5].map((at) => parseInt(hex.slice(at, at + 2), 16))
|
|
21
|
+
/** @param {number} c 0–255 */
|
|
22
|
+
const linear = (c) => ((c /= 255) <= 0.04045 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4)
|
|
23
|
+
|
|
24
|
+
/** A colour in OKLab: its lightness, then a and b, whose length is its chroma. @param {number[]} rgb */
|
|
25
|
+
export function oklab(rgb) {
|
|
26
|
+
const [r, g, b] = rgb.map(linear), [l, m, s] = [[0.4122214708, 0.5363325363, 0.0514459929], [0.2119034982, 0.6806995451, 0.1073969566], [0.0883024619, 0.2817188376, 0.6299787005]].map(([x, y, z]) => Math.cbrt(x * r + y * g + z * b))
|
|
27
|
+
return [0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s, 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s, 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s]
|
|
28
|
+
}
|
|
29
|
+
/** @param {number[]} one @param {number[]} other */
|
|
30
|
+
const far = (one, other) => Math.hypot(...one.map((v, i) => v - other[i]))
|
|
31
|
+
/** A colour with how much of it there is, as a swatch. @param {number[]} rgb @param {number} share */
|
|
32
|
+
const swatch = (rgb, share) => ((lab) => ({ hex: hexOf(rgb), share, L: lab[0], C: Math.hypot(lab[1], lab[2]) }))(oklab(rgb))
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Colours taken together where they are near (OKLab, 0.06 apart), most first, each the mean of its own, its share of all; those
|
|
36
|
+
* under 0.3 % left out, and a blend of two larger ones too, as a picture's edges between them are.
|
|
37
|
+
* @param {{ rgb: number[], n: number }[]} colours @returns {Swatch[]}
|
|
38
|
+
*/
|
|
39
|
+
function grouped(colours) {
|
|
40
|
+
/** @type {{ sum: number[], n: number, lab: number[] }[]} */
|
|
41
|
+
const groups = []
|
|
42
|
+
for (const { rgb, n } of [...colours].sort((one, other) => other.n - one.n)) {
|
|
43
|
+
const lab = oklab(rgb), near = groups.find((group) => far(group.lab, lab) < 0.06)
|
|
44
|
+
if (near) near.sum = near.sum.map((v, i) => v + rgb[i] * n), near.n += n
|
|
45
|
+
else groups.push({ sum: rgb.map((v) => v * n), n, lab })
|
|
46
|
+
}
|
|
47
|
+
const total = groups.reduce((sum, group) => sum + group.n, 0)
|
|
48
|
+
for (const group of groups) group.lab = oklab(group.sum.map((v) => v / group.n))
|
|
49
|
+
/** Whether a group lies between two larger ones, as their blend. @param {typeof groups[number]} one */
|
|
50
|
+
const blend = (one) => groups.some((a) => a.n > one.n * 3 && groups.some((b) => {
|
|
51
|
+
const ab = b.lab.map((v, i) => v - a.lab[i]), t = ab.reduce((sum, v, i) => sum + v * (one.lab[i] - a.lab[i]), 0) / (ab.reduce((sum, v) => sum + v * v, 0) || 1)
|
|
52
|
+
return b !== a && b.n > one.n * 3 && t > 0.1 && t < 0.9 && far(one.lab, a.lab.map((v, i) => v + t * ab[i])) < 0.03
|
|
53
|
+
}))
|
|
54
|
+
return groups.filter((group) => group.n / total >= 0.003 && !blend(group)).map((group) => swatch(group.sum.map((v) => v / group.n), group.n / total))
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The colours a picture's pixels (RGBA, `width` to a row) are made of, most first: those of its flat parts, each pixel alike the one
|
|
59
|
+
* four to its left and four above (a fill, a button, a logo's shapes), not a gradient's, a photograph's or words' edges, unless it has
|
|
60
|
+
* none; see-through ones left out. @param {ArrayLike<number>} rgba @param {number} [width] @returns {Swatch[]}
|
|
61
|
+
*/
|
|
62
|
+
export function paletteOf(rgba, width = rgba.length / 4) {
|
|
63
|
+
/** @type {Map<number, number[]>} */
|
|
64
|
+
const bins = new Map(), near = (/** @type {number} */ i, /** @type {number} */ j) => j >= 0 && [0, 1, 2].reduce((sum, c) => sum + Math.abs(rgba[i * 4 + c] - rgba[j * 4 + c]), 0) <= 2
|
|
65
|
+
for (const flat of [true, false]) {
|
|
66
|
+
for (let i = 0, at = 0; i < rgba.length / 4; i++, at += 4) {
|
|
67
|
+
if (rgba[at + 3] < 128 || (flat && !(i % width >= 4 && near(i, i - 4) && near(i, i - 4 * width)))) continue
|
|
68
|
+
const key = ((rgba[at] >> 3) << 10) | ((rgba[at + 1] >> 3) << 5) | (rgba[at + 2] >> 3), bin = bins.get(key) ?? /** @type {number[]} */ (bins.set(key, [0, 0, 0, 0]).get(key))
|
|
69
|
+
for (const c of [0, 1, 2, 3]) bin[c] += c < 3 ? rgba[at + c] : 1
|
|
70
|
+
}
|
|
71
|
+
if (bins.size) break
|
|
72
|
+
}
|
|
73
|
+
return grouped([...bins.values()].map(([r, g, b, n]) => ({ rgb: [r / n, g / n, b / n], n })))
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The colours a guide writes as codes, in the order it first writes them, each with how often: `#hex`, `HEX 1D3557`, `rgb()` or
|
|
78
|
+
* `RGB 29 53 87`, `R29 G53 B87` (`V` for French's vert), in its language's digits and colons too; one its words call the main colour first,
|
|
79
|
+
* as a guide written right to left may come out of a PDF in the order it is seen. @param {string} text @returns {{ hex: string, count: number }[]}
|
|
80
|
+
*/
|
|
81
|
+
export function codesIn(text) {
|
|
82
|
+
/** @type {Map<string, { hex: string, count: number, main: boolean }>} */
|
|
83
|
+
const found = new Map()
|
|
84
|
+
const plain = text.normalize('NFKC').replace(/[٠-٩۰-۹]/g, (digit) => String(digit.charCodeAt(0) & 0xf))
|
|
85
|
+
let since = 0
|
|
86
|
+
for (const match of plain.matchAll(/(?:#|\b(?:hex|html|web)\s*:?\s*#?)([\da-f]{6}|[\da-f]{3})(?![\da-z])|\b(?:rgb|rvb)?\s*:?\s*\(?\s*R\s*:?\s*(\d{1,3})\s*[,/ ]\s*[GV]\s*:?\s*(\d{1,3})\s*[,/ ]\s*B\s*:?\s*(\d{1,3})\b|\b(?:rgb|rvb)\s*:?\s*\(?\s*(\d{1,3})\s*[,/ ]\s*(\d{1,3})\s*[,/ ]\s*(\d{1,3})\b/gi)) {
|
|
87
|
+
const [, code, ...rgb3] = match, at = /** @type {number} */ (match.index), main = PRIMARY.test(plain.slice(Math.max(since, at - 40), at))
|
|
88
|
+
const rgb = code ? (code.length === 3 ? [...code].map((d) => d + d) : /** @type {string[]} */ (code.match(/../g))).map((d) => parseInt(d, 16)) : [0, 1, 2].map((i) => Number(rgb3[i] ?? rgb3[i + 3]))
|
|
89
|
+
since = at + match[0].length
|
|
90
|
+
if (rgb.some((c) => c > 255)) continue
|
|
91
|
+
const one = found.get(hexOf(rgb)) ?? /** @type {{ hex: string, count: number, main: boolean }} */ (found.set(hexOf(rgb), { hex: hexOf(rgb), count: 0, main }).get(hexOf(rgb)))
|
|
92
|
+
one.count++, one.main ||= main
|
|
93
|
+
}
|
|
94
|
+
return [...found.values()].sort((a, b) => Number(b.main) - Number(a.main)).map(({ hex, count }) => ({ hex, count }))
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** What a guide calls its main colour, just before its code: in Arabic as a PDF may spell it (its hamza apart), in Japanese and Chinese. */
|
|
98
|
+
const PRIMARY = /primary|primaire|principale?|main colou?r|ساسي|رئيس|メイン|プライマリ|主色|基本色/i
|
|
99
|
+
|
|
100
|
+
/** The weights and styles a face's name may end with, which its family leaves out. */
|
|
101
|
+
const WEIGHTS = /(?:\s+(?:thin|hairline|(?:extra|ultra|semi|demi)?\s?(?:light|bold)|regular|book|roman|normal|medium|black|heavy|italic|oblique|w\d))+$/i
|
|
102
|
+
/** A face's family, from its name as a guide or a PDF writes it: Futura Bold, AAAAAA+Futura-Bold, AvenirNext-Regular, Hiragino Sans W6. @param {string} name */
|
|
103
|
+
export const familyOf = (name) => name.trim().replace(/^[A-Z]{6}\+/, '').replace(/^\S+$/, (one) => one.replace(/[-_,]+/g, ' ').replace(/([a-z])([A-Z])/g, '$1 $2')).replace(WEIGHTS, '').trim()
|
|
104
|
+
/** The faces a document's maker sets it in unasked, which say nothing of a brand. */
|
|
105
|
+
const DEFAULTS = /^(?:times(?: new roman)?|helvetica|arial|calibri(?: light)?|cambria|aptos(?: display)?|symbol|courier(?: new)?|segoe ui|menlo)$/i
|
|
106
|
+
|
|
107
|
+
/** What a colour's code starts with, which a label names as a face's name would. */
|
|
108
|
+
const CODES = /^(?:hex|html|rgb|rvb|cmyk|cmjn|pantone|pms|ral)\b/i
|
|
109
|
+
/** A face's name in Latin letters, one to four words. */
|
|
110
|
+
const NAME = '([A-Z][\\w]*(?:[ -][A-Z\\d][\\w]*){0,3})'
|
|
111
|
+
/** Words a guide names its faces' parts with, in Jean's languages that write them most: its headings, its text, its faces. */
|
|
112
|
+
const LABELS = { heading: 'headings?|headlines?|titles?|display|titres?|titrages?|見出し|タイトル|العناوين|عناوين', body: 'body(?: text| copy)?|text|copy|texte(?: courant)?|corps(?: de texte)?|本文|النصوص|النص', any: 'typefaces?|fonts?|typography|polices?|typographie|caractères|フォント|書体|الخطوط|الخط' }
|
|
113
|
+
/** @param {string} words */
|
|
114
|
+
const after = (words) => new RegExp(`(?<!\\p{L})(?:${words})\\s*[:\\-–—]\\s*${NAME}`, 'giu')
|
|
115
|
+
/** A face named before its label, as a line written right to left may come out of a PDF. @param {string} words */
|
|
116
|
+
const before = (words) => new RegExp(`${NAME}\\s*[:\\-–—]\\s*(?:${words})(?!\\p{L})`, 'giu')
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The faces a guide names, its headings' and its text's: those it labels so first, then the faces it names as typography, then
|
|
120
|
+
* those it is set in (`used`, but a maker's own), then each named with a weight. @param {string} text @param {Used[]} [used]
|
|
121
|
+
* @returns {{ heading: string[], body: string[] } | undefined}
|
|
122
|
+
*/
|
|
123
|
+
export function facesIn(text, used = []) {
|
|
124
|
+
// A PDF may set a character of Chinese or Japanese apart from the next, and words with several spaces between them.
|
|
125
|
+
const plain = text.normalize('NFKC').replace(/(?<=[\p{sc=Han}\p{sc=Hiragana}\p{sc=Katakana}]) +(?=[\p{sc=Han}\p{sc=Hiragana}\p{sc=Katakana}])/gu, '').replace(/[^\S\n]+/g, ' ')
|
|
126
|
+
const named = (/** @type {string} */ words) => [...plain.matchAll(after(words)), ...plain.matchAll(before(words))].map(([, name]) => familyOf(name)).filter((face) => face && !CODES.test(face))
|
|
127
|
+
const own = (/** @type {'heading' | 'body'} */ part) => used.map((one) => familyOf(one[part] ?? '')).filter((face) => face && !DEFAULTS.test(face))
|
|
128
|
+
const any = named(LABELS.any), weighted = [...plain.matchAll(/\b([A-Z][a-zA-Z]+(?: [A-Z][a-zA-Z]+){0,2}) (?:Thin|Light|Regular|Book|Medium|Semi ?[Bb]old|Bold|Black|Heavy)\b/g)].map(([, name]) => familyOf(name))
|
|
129
|
+
const heading = [...named(LABELS.heading), ...any, ...own('heading'), ...weighted][0]
|
|
130
|
+
const body = [...named(LABELS.body), ...any.slice(1), ...own('body'), ...weighted.filter((face) => face !== heading)][0] ?? heading
|
|
131
|
+
return heading && body ? { heading: [heading], body: [body] } : undefined
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/** A guide's codes as swatches: the first written counts most, then those written often. @param {{ hex: string, count: number }[]} codes */
|
|
135
|
+
const swatchesOf = (codes) => ((weights) => codes.map(({ hex }, i) => swatch(rgbOf(hex), weights[i] / weights.reduce((sum, w) => sum + w, 0))))(codes.map(({ count }, i) => (1 + count / 4) * 0.75 ** i))
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* A kit's tokens proposed from the colours found, the most telling first, its faces and logo beside. The main colour is the first
|
|
139
|
+
* of the brand's that reads on the paper as it is, unless one more telling is three times as much, which is then deepened at its
|
|
140
|
+
* hue until it reads; a light colour of the brand's is its pale fill where words read on it; by night, the brand's first colour
|
|
141
|
+
* that reads on a paper of its hue nearly black. Every pair `unreadable()` checks reads at AA.
|
|
142
|
+
* @param {Swatch[]} swatches @param {{ fonts?: { heading: string[], body: string[] }, logo?: string }} [more]
|
|
143
|
+
*/
|
|
144
|
+
export function kitOf(swatches, { fonts, logo } = {}) {
|
|
145
|
+
const colourful = swatches.filter((one) => one.C >= 0.04), greys = swatches.filter((one) => one.C < 0.04)
|
|
146
|
+
const paper = greys.find((one) => one.L >= 0.94 && one.share >= 0.15)?.hex ?? '#ffffff', top = colourful[0]
|
|
147
|
+
/** The first colour that reads on a ground as it is, unless one more telling is three times as much; else that one, made to read. @param {string} ground */
|
|
148
|
+
const main = (ground) => (colourful.find((one) => contrast(one.hex, ground) >= 4.5 && one.share * 3 >= top.share)?.hex ?? readable(top.hex, ground))
|
|
149
|
+
const primary = top ? main(paper) : readable(greys.find((one) => one.L < 0.5)?.hex ?? '#2b2b33', paper)
|
|
150
|
+
const ink = readable(greys.find((one) => one.L < 0.4)?.hex ?? '#1d1c21', paper), muted = readable(mix(ink, paper, 0.45), paper)
|
|
151
|
+
const soft = colourful.find((one) => one.L >= 0.75 && contrast(ink, one.hex) >= 4.5)?.hex ?? mix(primary, paper, 0.88)
|
|
152
|
+
const night = greys.find((one) => one.L < 0.25 && one.share >= 0.3)?.hex ?? mix(primary, '#0e0e12', 0.88)
|
|
153
|
+
const series = colourful.length > 1 ? [primary, ...colourful.map((one) => one.hex).filter((hex) => hex !== primary)].slice(0, 6) : undefined
|
|
154
|
+
return { paper, ink, primary, muted, soft: contrast(ink, soft) >= 4.5 ? soft : mix(soft, paper, 0.5), ...(series && { series }), ...(fonts && { fonts }), ...(logo && { logo }),
|
|
155
|
+
dark: { paper: night, ink: readable('#f3f2ef', night), primary: top ? main(night) : readable('#d8d6d0', night) } }
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** Where a kit's colours don't read at AA (4.5), as pairs of its tokens by day and by night: none in a kit proposed. @param {Record<string, any>} tokens */
|
|
159
|
+
export const unreadable = (tokens) => [['', tokens], ['dark.', tokens.dark ?? {}]].flatMap(([at, own]) => [['ink', 'paper'], ['primary', 'paper'], ['muted', 'paper'], ['ink', 'soft']]
|
|
160
|
+
.filter(([fore, ground]) => own[fore] && own[ground] && contrast(own[fore], own[ground]) < 4.5).map(([fore, ground]) => `${at}${fore}/${ground}`))
|
|
161
|
+
|
|
162
|
+
/** A picture drawn at most `most` pixels across, with its pixels. @param {CanvasImageSource} source @param {number} width @param {number} height @param {number} [most] */
|
|
163
|
+
function paint(source, width, height, most = 480) {
|
|
164
|
+
const scale = Math.min(1, most / Math.max(width, height, 1)), canvas = Object.assign(document.createElement('canvas'), { width: Math.max(1, Math.round(width * scale)), height: Math.max(1, Math.round(height * scale)) })
|
|
165
|
+
const pen = /** @type {CanvasRenderingContext2D} */ (canvas.getContext('2d', { willReadFrequently: true }))
|
|
166
|
+
pen.drawImage(source, 0, 0, canvas.width, canvas.height)
|
|
167
|
+
return { canvas, rgba: pen.getImageData(0, 0, canvas.width, canvas.height).data, width, height }
|
|
168
|
+
}
|
|
169
|
+
/** A picture's file drawn. @param {Blob} blob */
|
|
170
|
+
async function drawn(blob) {
|
|
171
|
+
const url = URL.createObjectURL(blob), image = Object.assign(new Image(), { src: url })
|
|
172
|
+
try { return await image.decode().then(() => paint(image, image.naturalWidth || 480, image.naturalHeight || 480)) } finally { URL.revokeObjectURL(url) }
|
|
173
|
+
}
|
|
174
|
+
/** Whether a picture is a logo rather than a page: see-through somewhere, or a few colours make nearly all of it. @param {ReturnType<typeof paint>} picture */
|
|
175
|
+
const logoLike = ({ canvas, rgba, width, height }) => Array.prototype.filter.call(rgba, (_, i) => i % 4 === 3).filter((a) => a < 250).length > rgba.length / 200
|
|
176
|
+
|| (Math.max(width, height) < 1200 && paletteOf(rgba, canvas.width).slice(0, 4).reduce((sum, one) => sum + one.share, 0) > 0.9)
|
|
177
|
+
/** A logo as the kit keeps one, a picture inside it of 512 KB at most: its own file if small enough, else drawn 512 pixels across. @param {Blob} blob @param {ReturnType<typeof paint>} picture */
|
|
178
|
+
const logoOf = async (blob, picture) => (blob.size <= 500_000 && /^image\/(png|jpeg|gif|webp|svg\+xml)$/.test(blob.type)
|
|
179
|
+
? `data:${blob.type};base64,${btoa(Array.from(new Uint8Array(await blob.arrayBuffer()), (byte) => String.fromCharCode(byte)).join(''))}`
|
|
180
|
+
: paint(picture.canvas, picture.width, picture.height, 512).canvas.toDataURL('image/png'))
|
|
181
|
+
/** @param {string} name */
|
|
182
|
+
const typeOf = (name) => `image/${(/\.(\w+)$/.exec(name)?.[1] ?? 'png').toLowerCase().replace('jpg', 'jpeg').replace('svg', 'svg+xml')}`
|
|
183
|
+
|
|
184
|
+
/** A PDF's first three pages: their words, the faces of their largest words and of most of them, its first picture, its first page drawn. @param {Uint8Array} bytes */
|
|
185
|
+
async function fromPdf(bytes) {
|
|
186
|
+
const { eachPage } = await import('../files/pdf.js')
|
|
187
|
+
const pages = await eachPage(bytes, async (page) => {
|
|
188
|
+
const { items } = await page.getTextContent(), ops = await page.getOperatorList(), face = (/** @type {string} */ name) => { try { return String(page.commonObjs.get(name)?.name ?? '') } catch { return '' } }
|
|
189
|
+
const set = items.filter((/** @type {any} */ item) => item.str?.trim()).map((/** @type {any} */ item) => ({ face: face(item.fontName), size: Math.hypot(item.transform[0], item.transform[1]), length: item.str.length }))
|
|
190
|
+
// paintImageXObject, as pdf.js numbers its operators: the pictures a page draws, one a page used on several kept among its common objects.
|
|
191
|
+
const ids = ops.fnArray.flatMap((/** @type {number} */ op, /** @type {number} */ i) => (op === 85 ? [ops.argsArray[i][0]] : [])).slice(0, 3)
|
|
192
|
+
// Drawn while its page is open, which lets its pictures go after: a bitmap, or its pixels as RGBA.
|
|
193
|
+
const picture = (await Promise.all(ids.map((/** @type {string} */ id) => new Promise((done) => (id.startsWith('g_') ? page.commonObjs : page.objs).get(id, done))))).find((one) => one?.bitmap || one?.data?.length === one?.width * one?.height * 4)
|
|
194
|
+
const pictures = picture ? [picture.bitmap ? paint(picture.bitmap, picture.width, picture.height, 512).canvas : ((canvas) => (canvas.getContext('2d')?.putImageData(new ImageData(new Uint8ClampedArray(picture.data), picture.width), 0, 0), canvas))(Object.assign(document.createElement('canvas'), { width: picture.width, height: picture.height }))] : []
|
|
195
|
+
const viewport = page.getViewport({ scale: 480 / page.getViewport({ scale: 1 }).width }), canvas = Object.assign(document.createElement('canvas'), { width: Math.round(viewport.width), height: Math.round(viewport.height) })
|
|
196
|
+
if (page.pageNumber === 1) await page.render({ canvas, viewport }).promise
|
|
197
|
+
return { text: items.map((/** @type {any} */ item) => `${item.str}${item.hasEOL ? '\n' : ' '}`).join(''), set, pictures, canvas: page.pageNumber === 1 ? canvas : null }
|
|
198
|
+
}, 3, { fontExtraProperties: true })
|
|
199
|
+
const set = pages.flatMap((page) => page.set), most = /** @type {Record<string, number>} */ ({})
|
|
200
|
+
for (const { face, length } of set) most[face] = (most[face] ?? 0) + length
|
|
201
|
+
const picture = pages.flatMap((page) => page.pictures)[0]
|
|
202
|
+
return { text: pages.map((page) => page.text).join('\n'), used: { heading: set.reduce((big, one) => (one.size > big.size ? one : big), { face: '', size: 0 }).face, body: Object.keys(most).sort((a, b) => most[b] - most[a])[0] },
|
|
203
|
+
page: pages[0]?.canvas, picture }
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/** A Word file: its words, its theme's faces or those its first and most runs are set in, the picture its header holds, else its first. @param {Uint8Array} bytes */
|
|
207
|
+
export async function fromWord(bytes) {
|
|
208
|
+
const entries = new Map(readZip(bytes).map((entry) => [entry.name, entry])), xml = async (/** @type {string} */ path) => new TextDecoder().decode(await entries.get(path)?.read() ?? new Uint8Array())
|
|
209
|
+
const theme = await xml('word/theme/theme1.xml'), runs = [...(await xml('word/document.xml')).matchAll(/w:ascii="([^"]+)"/g)].map(([, face]) => face), count = (/** @type {string} */ face) => runs.filter((one) => one === face).length
|
|
210
|
+
const headers = (await Promise.all([...entries.keys()].filter((name) => /^word\/_rels\/header\d*\.xml\.rels$/.test(name)).map(xml))).join('')
|
|
211
|
+
const picture = [...[...headers.matchAll(/Target="(media\/[^"]+)"/g)].map(([, place]) => `word/${place}`), ...[...entries.keys()].filter((name) => name.startsWith('word/media/')).sort()].find((name) => PICTURE.test(name) && entries.has(name))
|
|
212
|
+
const { extractPages } = await import('../files/extract.js'), face = (/** @type {string} */ part) => new RegExp(`<a:${part}Font>\\s*<a:latin typeface="([^"]+)"`).exec(theme)?.[1]
|
|
213
|
+
return { text: (await extractPages('guide.docx', bytes))?.join('\n') ?? '', used: { heading: face('major') ?? runs[0], body: face('minor') ?? [...runs].sort((a, b) => count(b) - count(a))[0] },
|
|
214
|
+
file: picture ? new Blob([/** @type {BlobPart} */ (await entries.get(picture)?.read())], { type: typeOf(picture) }) : undefined }
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* The design system the person's material proposes: its name, what it came from, its tokens. A guide's codes are its colours,
|
|
219
|
+
* else its pictures' and its first page's pixels are; a logo's count more than a screenshot's. Throws when it holds no colour.
|
|
220
|
+
* @param {{ name: string, bytes: Uint8Array }[]} files @param {string} [name] the brand's
|
|
221
|
+
*/
|
|
222
|
+
export async function proposal(files, name) {
|
|
223
|
+
const words = /** @type {string[]} */ ([]), used = /** @type {Used[]} */ ([]), colours = /** @type {{ rgb: number[], n: number }[]} */ ([])
|
|
224
|
+
let logo = ''
|
|
225
|
+
/** A picture's colours among the rest, weighed, and its file as the logo where it is one and none is yet. @param {ReturnType<typeof paint>} picture @param {number} weight @param {Blob} [file] */
|
|
226
|
+
const seen = async (picture, weight, file) => {
|
|
227
|
+
const like = logoLike(picture)
|
|
228
|
+
colours.push(...paletteOf(picture.rgba, picture.canvas.width).map((one) => ({ rgb: rgbOf(one.hex), n: one.share * (like ? weight : weight / 2) })))
|
|
229
|
+
if (like && !logo) logo = await logoOf(file ?? new Blob([]), picture)
|
|
230
|
+
}
|
|
231
|
+
for (const file of files) {
|
|
232
|
+
if (/\.pdf$/i.test(file.name)) {
|
|
233
|
+
const pdf = await fromPdf(file.bytes)
|
|
234
|
+
words.push(pdf.text), used.push(pdf.used)
|
|
235
|
+
if (pdf.picture) await seen(paint(pdf.picture, pdf.picture.width, pdf.picture.height), 1)
|
|
236
|
+
if (pdf.page) colours.push(...((page) => paletteOf(page.rgba, page.canvas.width))(paint(pdf.page, pdf.page.width, pdf.page.height)).map((one) => ({ rgb: rgbOf(one.hex), n: one.share / 2 })))
|
|
237
|
+
} else if (/\.docx$/i.test(file.name)) {
|
|
238
|
+
const word = await fromWord(file.bytes)
|
|
239
|
+
words.push(word.text), used.push(word.used)
|
|
240
|
+
if (word.file) await seen(await drawn(word.file), 1, word.file)
|
|
241
|
+
} else if (PICTURE.test(file.name)) {
|
|
242
|
+
const blob = new Blob([/** @type {BlobPart} */ (file.bytes)], { type: typeOf(file.name) })
|
|
243
|
+
await seen(await drawn(blob), 1, blob)
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
const codes = codesIn(words.join('\n')), written = swatchesOf(codes), swatches = written.some((one) => one.C >= 0.04) ? written : grouped(colours)
|
|
247
|
+
if (!swatches.length) throw new Error('no colour in it')
|
|
248
|
+
return { name: name || files[0]?.name.replace(/\.\w+$/, '') || '', from: files.map((file) => file.name), tokens: kitOf(swatches, { fonts: facesIn(words.join('\n'), used), logo: logo || undefined }) }
|
|
249
|
+
}
|
package/caps/slides/edit.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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;
|
|
4
|
-
// version of
|
|
5
|
-
// or reject (D505). Pure, on deck's own reading of the Markdown (parseDeck).
|
|
3
|
+
// goes; where its pictures are, a picture of the task named by its name kept at its place in the project; whether a deck an
|
|
4
|
+
// answer wrote is Jean's version of one kept; and that version set against the user's slide by slide, each run of slides it
|
|
5
|
+
// changes, adds or takes away a change to accept or reject (D505). Pure, on deck's own reading of the Markdown (parseDeck).
|
|
6
6
|
import { parseDeck } from '@codename/deck'
|
|
7
7
|
|
|
8
8
|
/** A deck's Markdown as pieces that join back into it, a slide each, each but the first from the rule before its slide. @param {string} source */
|
|
@@ -38,8 +38,6 @@ export const withTitle = (source, title) => withSetting(source, 'title', JSON.st
|
|
|
38
38
|
const PICTURE = /(!\[[^\]\n]*\]\(<?)([^<>)\n]+?)(>?(?:\s+(?:"[^"\n]*"|'[^'\n]*'))?\))|^([ \t]*(?:image|background|backgroundImage)[ \t]*:[ \t]*)(.+?)([ \t]*)$/gm
|
|
39
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
|
-
/** 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
|
-
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+$/, ''))
|
|
43
41
|
/** A place from the deck's folder, in the project, unless it is the web's, held inside or the page's own. @param {string} place */
|
|
44
42
|
export const placeIn = (place) => (/^([a-z][\w+.-]*:|\/)/i.test(place) ? undefined : new URL(place, 'file:///decks/').pathname.slice(1))
|
|
45
43
|
|
|
@@ -91,6 +89,16 @@ export function changesOf(mine, theirs) {
|
|
|
91
89
|
return changes
|
|
92
90
|
}
|
|
93
91
|
|
|
92
|
+
/** The name a deck gives itself: its title, else its first slide's words; none when it gives neither. @param {string} source */
|
|
93
|
+
export const ownName = (source) => ((deck) => String(deck.settings.title ?? deck.slides[0]?.title ?? '').replace(/[*_`#]/g, '').trim())(parseDeck(source))
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Whether two decks are one deck changed: more than half the longer one's slides alike, those of the first that no change takes.
|
|
97
|
+
* A slide alike, a closing "Questions?" or an empty one, doesn't make a deck about something else a version of another (D505).
|
|
98
|
+
* @param {string} mine @param {string} theirs
|
|
99
|
+
*/
|
|
100
|
+
export const mostAlike = (mine, theirs) => ((a, b) => 2 * changesOf(mine, theirs).reduce((alike, { mine: [from, to] }) => alike - (to - from), a) > Math.max(a, b))(piecesOf(mine).length, piecesOf(theirs).length)
|
|
101
|
+
|
|
94
102
|
/**
|
|
95
103
|
* A deck with the slides from..to of another in place of its own at..: the user's with one of Jean's changes taken, or Jean's
|
|
96
104
|
* with one given up. A slide that no longer comes first gets a rule before it. @param {string} into @param {[number, number]} at
|
package/caps/slides/kit-page.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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. */
|
|
1
|
+
/* Settings › Appearance › Design system (D602, D664): a deck drawn with the kit and a page of paper, a kit proposed over them (D740), then its colours, type, logo, layouts and files. */
|
|
2
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
3
|
@media (max-width: 40rem) { .kit-previews { grid-template-columns: minmax(0, 1fr); } .kit-previews figure { max-inline-size: 11rem; } }
|
|
4
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; }
|
|
@@ -20,3 +20,4 @@
|
|
|
20
20
|
.kit-field :is(textarea, input[dir="ltr"]) { font-family: var(--mono); }
|
|
21
21
|
.kit-check { display: flex; align-items: center; gap: 0.5rem; }
|
|
22
22
|
.kit-files { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: 1rem; }
|
|
23
|
+
.kit-proposed { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin-block: 1rem 0; padding: 0.8rem 1rem; border: 1px solid var(--line-strong); border-radius: 0.8rem; } .kit-proposed p { flex: 1 1 16rem; margin: 0; }
|
package/caps/slides/kit-page.js
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
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
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. A kit proposed from the person's material, here or by Jean in a task (D740, ./brand.js),
|
|
8
|
+
// is drawn in the previews until they accept or reject it. Opened by its slot (./kit-slot.js), which
|
|
8
9
|
// Appearance draws under its back button (ui/look-page.js): a saved task's page, which carries Slides, never reaches Settings.
|
|
9
10
|
import { html, nothing } from 'lit-html'
|
|
10
11
|
import { live } from 'lit-html/directives/live.js'
|
|
@@ -12,10 +13,10 @@ import { ref } from 'lit-html/directives/ref.js'
|
|
|
12
13
|
import { signal } from '@preact/signals-core'
|
|
13
14
|
import { createDeck, mergeKits, layoutOf, logoOf, labelOf, tokensFrom, rgbOf, CORNERS, STANDARD } from '@codename/deck'
|
|
14
15
|
import { app, theme } from '../../ui/state.js'
|
|
15
|
-
import { kitFile, keepKit, hexOf, paperOf } from '../../ui/kit.js'
|
|
16
|
+
import { kitFile, keepKit, hexOf, paperOf, proposedPath } from '../../ui/kit.js'
|
|
16
17
|
import { save } from '../../ui/save.js'
|
|
17
18
|
import { icons } from '../../ui/menu-icons.js'
|
|
18
|
-
import { t, locale, dir, useStrings } from '../../core/i18n.js'
|
|
19
|
+
import { t, locale, dir, useStrings, intlLocales } from '../../core/i18n.js'
|
|
19
20
|
import { jeanKit, copyOf, withNames, words } from './kit.js'
|
|
20
21
|
import { sampleDeck } from './kit-sample.js'
|
|
21
22
|
import { facesOf } from '../made/paper.js'
|
|
@@ -23,9 +24,10 @@ import { styleSheet } from '../../ui/sheet.js'
|
|
|
23
24
|
|
|
24
25
|
await Promise.all([useStrings('slides'), styleSheet(new URL('../../vendor/deck/deck.css', import.meta.url)), styleSheet(new URL('kit-page.css', import.meta.url))])
|
|
25
26
|
|
|
27
|
+
/** One of deck's layouts. @typedef {ReturnType<typeof mergeKits>['kit']['layouts'][string]} Layout */
|
|
26
28
|
/** @typedef {{ name?: string, tokens: Record<string, any>, layouts: Record<string, any>, pictures?: Record<string, string> }} Own */
|
|
27
29
|
/** 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. */
|
|
28
|
-
const open = signal(/** @type {{ dir: string | null, kit: Own } | null} */ (null))
|
|
30
|
+
const open = signal(/** @type {{ dir: string | null, kit: Own, proposed: { name: string, from: string[], tokens: Record<string, any> } | null } | null} */ (null))
|
|
29
31
|
const making = signal('')
|
|
30
32
|
const said = signal('')
|
|
31
33
|
const typed = signal(/** @type {Record<string, string>} */ ({}))
|
|
@@ -42,7 +44,7 @@ const whose = () => (pageOpen() === 'kit-project' ? app.projectDir : null)
|
|
|
42
44
|
/** Its file, read again as the page opens on another. */
|
|
43
45
|
function read() {
|
|
44
46
|
const place = whose()
|
|
45
|
-
if (open.peek()?.dir !== place) void kitFile(place).then((kit) => { open.value = { dir: place, kit: { tokens: {}, layouts: {}, ...structuredClone(kit ?? {}) } } })
|
|
47
|
+
if (open.peek()?.dir !== place) void Promise.all([kitFile(place), app.fs.read(proposedPath(place)).catch(() => null)]).then(([kit, proposed]) => { open.value = { dir: place, kit: { tokens: {}, layouts: {}, ...structuredClone(kit ?? {}) }, proposed: proposed ? JSON.parse(proposed) : null } })
|
|
46
48
|
return open.value?.dir === place ? open.value.kit : null
|
|
47
49
|
}
|
|
48
50
|
/** A change to the kit, kept at once, with the pictures its layouts' art still draws. @param {(kit: Own) => void} how */
|
|
@@ -52,7 +54,7 @@ function change(how) {
|
|
|
52
54
|
const kit = structuredClone(now.kit)
|
|
53
55
|
how(kit)
|
|
54
56
|
if (kit.pictures) kit.pictures = Object.fromEntries(Object.entries(kit.pictures).filter(([name]) => Object.values(kit.layouts).some((layout) => layout?.art?.includes(name))))
|
|
55
|
-
open.value = {
|
|
57
|
+
open.value = { ...now, kit }
|
|
56
58
|
said.value = ''
|
|
57
59
|
void keepKit(now.dir, kit)
|
|
58
60
|
}
|
|
@@ -98,6 +100,29 @@ async function bring(event) {
|
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
102
|
|
|
103
|
+
/** A kit proposed from the person's logo, guide or screenshot, waiting beside the kit open for them to accept or reject it. @param {Event} event */
|
|
104
|
+
async function propose(event) {
|
|
105
|
+
const files = [.../** @type {HTMLInputElement} */ (event.target).files ?? []], place = open.peek()?.dir ?? null
|
|
106
|
+
if (!files.length) return
|
|
107
|
+
said.value = t('slides.kit.reading')
|
|
108
|
+
try {
|
|
109
|
+
const proposed = await (await import('./brand.js')).proposal(await Promise.all(files.map(async (file) => ({ name: file.name, bytes: new Uint8Array(await file.arrayBuffer()) }))))
|
|
110
|
+
await app.fs.write(proposedPath(place), JSON.stringify(proposed))
|
|
111
|
+
if (open.peek()?.dir === place) open.value = { .../** @type {NonNullable<typeof open.value>} */ (open.peek()), proposed }
|
|
112
|
+
said.value = ''
|
|
113
|
+
} catch {
|
|
114
|
+
said.value = t('slides.kit.noLook')
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
/** The kit proposed, accepted over the kit open (its tokens over the kit's, its name if the kit has none) or rejected, and let go. @param {boolean} accepted */
|
|
118
|
+
function decide(accepted) {
|
|
119
|
+
const now = open.peek(), proposed = now?.proposed
|
|
120
|
+
if (!now || !proposed) return
|
|
121
|
+
open.value = { ...now, proposed: null }
|
|
122
|
+
void app.fs.remove(proposedPath(now.dir)).catch(() => {})
|
|
123
|
+
if (accepted) change((kit) => Object.assign(kit, { name: kit.name || proposed.name, tokens: { ...kit.tokens, ...proposed.tokens } }))
|
|
124
|
+
}
|
|
125
|
+
|
|
101
126
|
/** The kit open as a file, or its tokens as the W3C's design tokens. @param {boolean} tokens */
|
|
102
127
|
async function keepAs(tokens) {
|
|
103
128
|
const kit = open.peek()?.kit ?? { tokens: {}, layouts: {} }, name = kit.name || t('slides.kit.title')
|
|
@@ -172,7 +197,7 @@ function layoutForm(kit, key) {
|
|
|
172
197
|
making.value = ''
|
|
173
198
|
}
|
|
174
199
|
return html`<form class="kit-layout" @submit=${keep}>
|
|
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 {
|
|
200
|
+
<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 {Layout} */ (given), key, locale.peek()) : ''}></label>
|
|
176
201
|
<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>
|
|
177
202
|
<p class="hint" id="kit-grid-hint">${t('slides.kit.gridHint')}</p>
|
|
178
203
|
<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>
|
|
@@ -194,27 +219,32 @@ function layouts(kit) {
|
|
|
194
219
|
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])
|
|
195
220
|
const turn = (/** @type {string} */ key) => change((next) => { if (next.layouts[key] === false) delete next.layouts[key]; else next.layouts[key] = false })
|
|
196
221
|
return html`<section><h3>${t('slides.kit.layouts')}</h3><p class="hint">${t('slides.kit.slidesOnly')}</p><ul class="list kit-layouts">
|
|
197
|
-
${[...standard, ...mine].map((key) => row(labelOf(all[key] ?? /** @type {
|
|
222
|
+
${[...standard, ...mine].map((key) => row(labelOf(all[key] ?? /** @type {Layout} */ (jeanKit().layouts[key]), key, locale.peek()), nothing, html`<span class="row">
|
|
198
223
|
${mine.includes(key) ? html`<button type="button" class="button subtle" @click=${() => { making.value = key }}>${t('slides.kit.change')}</button>
|
|
199
224
|
<button type="button" class="button subtle danger" @click=${() => change((next) => { delete next.layouts[key] })}>${t('slides.kit.delete')}</button>`
|
|
200
|
-
: html`<input type="checkbox" class="switch" role="switch" title=${labelOf(/** @type {
|
|
225
|
+
: html`<input type="checkbox" class="switch" role="switch" title=${labelOf(/** @type {Layout} */ (jeanKit().layouts[key]), key, locale.peek())} .checked=${live(kit.layouts[key] !== false)} ?disabled=${key === 'default'} @change=${() => turn(key)}>`}</span>`))}
|
|
201
226
|
</ul>${making.value ? layoutForm(kit, making.value) : html`<button type="button" class="button" @click=${() => { making.value = '+' }}>${icons.plus} ${t('slides.kit.newLayout')}</button>`}</section>`
|
|
202
227
|
}
|
|
203
228
|
|
|
204
229
|
/** The page. */
|
|
205
230
|
export function page() {
|
|
206
|
-
const kit = read(), project = app.project.value
|
|
231
|
+
const kit = read(), project = app.project.value, proposed = open.value?.proposed
|
|
207
232
|
if (!kit) return nothing
|
|
233
|
+
// What the previews draw: the kit proposed over the kit, while it waits.
|
|
234
|
+
const look = proposed ? { ...kit, tokens: { ...kit.tokens, ...proposed.tokens } } : kit
|
|
208
235
|
const tokens = kit.tokens, night = tokens.dark ?? {}, fonts = tokens.fonts
|
|
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>`
|
|
236
|
+
const file = (/** @type {string} */ id, /** @type {string} */ label, /** @type {string} */ accept, /** @type {(event: Event) => void} */ picked, many = false) => html`<label class="button kit-file" for=${id}>${label}<input id=${id} type="file" class="visually-hidden" accept=${accept} ?multiple=${many} @change=${picked}></label>`
|
|
210
237
|
return html`<header class="look-head"><h2 tabindex="-1">${t('slides.kit.title')}</h2>${Object.keys(tokens).length || Object.keys(kit.layouts).length
|
|
211
238
|
? html`<button class="button subtle" @click=${() => change((next) => { next.tokens = {}; next.layouts = {}; delete next.name; typed.value = {} })}>${t('slides.kit.startOver')}</button>` : nothing}</header>
|
|
212
239
|
<p class="lede">${t('slides.kit.text')}</p>
|
|
240
|
+
<p>${file('kit-propose', t('slides.kit.propose'), 'image/png,image/jpeg,image/gif,image/webp,image/svg+xml,.pdf,.docx', (e) => void propose(e), true)}</p>
|
|
213
241
|
${project.data.default === true ? nothing : html`<span class="segmented" role="radiogroup" aria-label=${t('slides.kit.title')}>
|
|
214
242
|
${[['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
243
|
<input id=${`whose-${page}`} type="radio" name="kit-whose" .checked=${live(pageOpen() === page)} @change=${() => pageOpen(page)}><span>${label}</span></label>`)}</span>`}
|
|
216
|
-
|
|
217
|
-
<
|
|
244
|
+
${proposed ? html`<section class="kit-proposed"><p role="status"><strong>${t('slides.kit.proposed', { from: new Intl.ListFormat(intlLocales(), { type: 'conjunction' }).format(proposed.from) })}</strong> ${t('slides.kit.proposedText')}</p>
|
|
245
|
+
<span class="row"><button type="button" class="button primary" @click=${() => decide(true)}>${t('slides.kit.accept')}</button><button type="button" class="button" @click=${() => decide(false)}>${t('slides.kit.reject')}</button></span></section>` : nothing}
|
|
246
|
+
<div class="kit-previews"><div class="kit-preview" ${ref((box) => void preview(box, look))}></div>
|
|
247
|
+
<figure><div class="kit-sheet" aria-hidden="true" ${ref((box) => void sheet(box, look))}><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
248
|
<figcaption class="hint">${t('slides.kit.onPaper')}</figcaption></figure></div>
|
|
219
249
|
${said.value ? html`<p class="hint" role="status">${said.value}</p>` : nothing}
|
|
220
250
|
<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>
|
|
@@ -24,7 +24,7 @@ const picture = (colour) => `data:image/svg+xml;base64,${btoa(`<svg xmlns="http:
|
|
|
24
24
|
/**
|
|
25
25
|
* A slide's words on a layout, under its name: a line on a slide of few words, else a list; a lead and a line in each of its other
|
|
26
26
|
* slots but one beside a list, which goes on with it. A sentence, a quote and a big number have their name small, as it would take their room.
|
|
27
|
-
* @param {string} name @param {
|
|
27
|
+
* @param {string} name @param {ReturnType<typeof import('@codename/deck').mergeKits>['kit']['layouts'][string]} layout as deck's mergeKits() reads it @returns {string}
|
|
28
28
|
*/
|
|
29
29
|
function words(name, layout) {
|
|
30
30
|
const key = layout.parts === 'none' ? (layout.lists === 'bullets' ? name : layout.lists) : layout.parts, rest = layout.slots.filter((/** @type {string} */ slot) => slot !== 'default')
|