@jean-is/render 0.8.0-rfd979a8d1388 → 0.11.0-r93a42b20fbc6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/brand.js +3 -2
- package/caps/brain-local/watermark.js +1 -0
- package/caps/charts/charts.css +1 -0
- package/caps/charts/charts.js +3 -2
- package/caps/charts/option.js +1 -0
- package/caps/files/extract.js +1 -0
- package/caps/files/midi.js +1 -0
- package/caps/files/numbers.js +1 -0
- package/caps/files/office.js +1 -0
- package/caps/files/pdf.js +7 -5
- package/caps/games/file.js +3 -0
- package/caps/games/frame.css +1 -0
- package/caps/games/guard.js +1 -0
- package/caps/games/page.js +22 -7
- package/caps/games/shell.js +9 -6
- package/caps/interactive/apps.js +2 -1
- package/caps/interactive/diagram-worker.js +1 -0
- package/caps/interactive/diagram.js +2 -1
- package/caps/interactive/interactive.css +2 -1
- package/caps/interactive/interactive.js +9 -6
- package/caps/interactive/live.js +5 -4
- package/caps/interactive/map.js +12 -5
- package/caps/interactive/mode.js +1 -0
- package/caps/interactive/page-diagram.js +1 -0
- package/caps/interactive/parts.js +1 -0
- package/caps/interactive/starts.js +16 -0
- package/caps/interactive/test.js +2 -1
- package/caps/interactive/view-parts.js +6 -2
- package/caps/layouts/layouts.css +1 -0
- package/caps/layouts/layouts.js +36 -34
- package/caps/layouts/shapes.js +50 -33
- package/caps/layouts/types.d.ts +9 -0
- package/caps/made/formats.js +1 -0
- package/caps/made/paper.js +27 -9
- package/caps/math/latex.js +1 -0
- package/caps/math/math.css +1 -0
- package/caps/math/math.js +1 -0
- package/caps/pictures/mark.js +1 -0
- package/caps/receipt/certificate.js +1 -0
- package/caps/receipt/der.js +2 -1
- package/caps/scores/notes.js +1 -0
- package/caps/scores/scores.css +3 -2
- package/caps/scores/scores.js +25 -4
- package/caps/scores/sound-worker.js +1 -0
- package/caps/scores/sound.js +10 -8
- package/caps/share/seal.js +1 -0
- package/caps/share/view.js +3 -1
- package/caps/skills/directory.js +9 -3
- package/caps/skills/sources.js +1 -0
- package/caps/slides/brand.js +250 -0
- package/caps/slides/edit.js +14 -5
- package/caps/slides/kit-page.css +3 -1
- package/caps/slides/kit-page.js +44 -13
- package/caps/slides/kit-sample.js +2 -1
- package/caps/slides/kit-slot.js +1 -0
- package/caps/slides/kit.js +20 -2
- package/caps/slides/save.js +4 -3
- package/caps/slides/slides.css +6 -2
- package/caps/slides/slides.js +14 -11
- package/caps/tables/formula.js +2 -1
- package/core/anthropic.js +12 -11
- package/core/conversations.js +1 -0
- package/core/deferred.js +6 -4
- package/core/events.js +10 -8
- package/core/files.js +28 -3
- package/core/fs.js +22 -75
- package/core/hooks.js +4 -3
- package/core/i18n.js +23 -19
- package/core/llm.js +21 -15
- package/core/loop.js +17 -6
- package/core/oauth.js +1 -0
- package/core/rules.js +2 -1
- package/core/search.js +1 -0
- package/core/settings.js +11 -60
- package/core/skills.js +2 -1
- package/core/sse.js +1 -0
- package/core/ulid.js +1 -0
- package/core/vertex.js +2 -1
- package/core/zip.js +2 -1
- package/locales/am.json +39 -18
- 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 +0 -2
- package/locales/approvals/co.json +0 -2
- package/locales/approvals/cs.json +0 -2
- package/locales/approvals/da.json +0 -2
- package/locales/approvals/de.json +0 -2
- package/locales/approvals/el.json +0 -2
- package/locales/approvals/en.json +0 -2
- package/locales/approvals/es.json +0 -2
- package/locales/approvals/fa.json +0 -2
- package/locales/approvals/fi.json +0 -2
- package/locales/approvals/fr-CA.json +3 -5
- package/locales/approvals/fr.json +3 -5
- 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 +0 -2
- package/locales/approvals/ja.json +0 -2
- package/locales/approvals/ko.json +0 -2
- 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 +0 -2
- 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 +0 -2
- package/locales/approvals/zh-Hant.json +0 -2
- package/locales/ar.json +39 -18
- package/locales/bg.json +39 -18
- package/locales/bn.json +38 -17
- package/locales/br.json +39 -18
- 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 +2 -1
- package/locales/brains/co.json +2 -1
- package/locales/brains/cs.json +2 -1
- package/locales/brains/da.json +2 -1
- package/locales/brains/de.json +2 -1
- package/locales/brains/el.json +2 -1
- package/locales/brains/en.json +2 -1
- package/locales/brains/es.json +2 -1
- package/locales/brains/fa.json +2 -1
- package/locales/brains/fi.json +2 -1
- package/locales/brains/fr-CA.json +2 -1
- package/locales/brains/fr.json +2 -1
- 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 +2 -1
- package/locales/brains/ja.json +2 -1
- package/locales/brains/ko.json +2 -1
- 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 +2 -1
- 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 +2 -1
- package/locales/brains/zh-Hant.json +2 -1
- package/locales/case/co.json +8 -8
- package/locales/case/es.json +5 -5
- 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/pt.json +5 -5
- package/locales/co.json +39 -18
- package/locales/computer/fr-CA.json +14 -14
- package/locales/computer/fr.json +14 -14
- package/locales/connections/am.json +9 -2
- package/locales/connections/ar.json +9 -2
- package/locales/connections/bg.json +9 -2
- package/locales/connections/bn.json +9 -2
- package/locales/connections/br.json +9 -2
- package/locales/connections/co.json +9 -2
- package/locales/connections/cs.json +9 -2
- package/locales/connections/da.json +9 -2
- package/locales/connections/de.json +9 -2
- package/locales/connections/el.json +9 -2
- package/locales/connections/en.json +9 -2
- package/locales/connections/es.json +9 -2
- package/locales/connections/fa.json +9 -2
- package/locales/connections/fi.json +9 -2
- package/locales/connections/fr-CA.json +9 -2
- package/locales/connections/fr.json +9 -2
- package/locales/connections/ha.json +9 -2
- package/locales/connections/he.json +9 -2
- package/locales/connections/hi.json +9 -2
- package/locales/connections/hr.json +9 -2
- package/locales/connections/hu.json +9 -2
- package/locales/connections/id.json +9 -2
- package/locales/connections/it.json +9 -2
- package/locales/connections/ja.json +9 -2
- package/locales/connections/ko.json +9 -2
- package/locales/connections/mr.json +9 -2
- package/locales/connections/ms.json +9 -2
- package/locales/connections/nl.json +9 -2
- package/locales/connections/pl.json +9 -2
- package/locales/connections/pt.json +9 -2
- package/locales/connections/ro.json +9 -2
- package/locales/connections/ru.json +9 -2
- package/locales/connections/sk.json +9 -2
- package/locales/connections/sv.json +9 -2
- package/locales/connections/sw.json +9 -2
- package/locales/connections/ta.json +9 -2
- package/locales/connections/te.json +9 -2
- package/locales/connections/th.json +9 -2
- package/locales/connections/tl.json +9 -2
- package/locales/connections/tr.json +9 -2
- package/locales/connections/uk.json +9 -2
- package/locales/connections/ur.json +9 -2
- package/locales/connections/vi.json +9 -2
- package/locales/connections/yo.json +9 -2
- package/locales/connections/zh-Hans.json +9 -2
- package/locales/connections/zh-Hant.json +9 -2
- 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 +8 -0
- package/locales/creations/co.json +8 -0
- package/locales/creations/cs.json +8 -0
- package/locales/creations/da.json +8 -0
- package/locales/creations/de.json +8 -0
- package/locales/creations/el.json +8 -0
- package/locales/creations/en.json +8 -0
- package/locales/creations/es.json +8 -0
- package/locales/creations/fa.json +8 -0
- package/locales/creations/fi.json +8 -0
- package/locales/creations/fr-CA.json +8 -0
- package/locales/creations/fr.json +8 -0
- 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 +8 -0
- package/locales/creations/ja.json +8 -0
- package/locales/creations/ko.json +8 -0
- 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 +8 -0
- 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 +8 -0
- package/locales/creations/zh-Hant.json +8 -0
- package/locales/cs.json +39 -18
- package/locales/da.json +38 -17
- 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 +12 -1
- package/locales/data/co.json +12 -1
- 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 +12 -1
- 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 +12 -1
- package/locales/data/ja.json +12 -1
- package/locales/data/ko.json +12 -1
- 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 +12 -1
- 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 +12 -1
- package/locales/data/zh-Hant.json +12 -1
- package/locales/de.json +38 -17
- 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 +26 -11
- package/locales/dialogs/co.json +30 -15
- package/locales/dialogs/cs.json +26 -11
- package/locales/dialogs/da.json +26 -11
- package/locales/dialogs/de.json +26 -11
- package/locales/dialogs/el.json +26 -11
- package/locales/dialogs/en.json +26 -11
- package/locales/dialogs/es.json +30 -15
- package/locales/dialogs/fa.json +26 -11
- package/locales/dialogs/fi.json +26 -11
- package/locales/dialogs/fr-CA.json +32 -17
- package/locales/dialogs/fr.json +32 -17
- 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 +30 -15
- package/locales/dialogs/ja.json +26 -11
- package/locales/dialogs/ko.json +26 -11
- 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 +29 -14
- 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 +26 -11
- package/locales/dialogs/zh-Hant.json +26 -11
- package/locales/documents/am.json +12 -4
- package/locales/documents/ar.json +12 -4
- package/locales/documents/bg.json +12 -4
- package/locales/documents/bn.json +12 -4
- package/locales/documents/br.json +12 -4
- package/locales/documents/co.json +12 -4
- package/locales/documents/cs.json +12 -4
- package/locales/documents/da.json +12 -4
- package/locales/documents/de.json +12 -4
- package/locales/documents/el.json +12 -4
- package/locales/documents/en.json +12 -4
- package/locales/documents/es.json +12 -4
- package/locales/documents/fa.json +12 -4
- package/locales/documents/fi.json +12 -4
- package/locales/documents/fr-CA.json +12 -4
- package/locales/documents/fr.json +12 -4
- package/locales/documents/ha.json +12 -4
- package/locales/documents/he.json +12 -4
- package/locales/documents/hi.json +12 -4
- package/locales/documents/hr.json +12 -4
- package/locales/documents/hu.json +12 -4
- package/locales/documents/id.json +12 -4
- package/locales/documents/it.json +12 -4
- package/locales/documents/ja.json +12 -4
- package/locales/documents/ko.json +12 -4
- package/locales/documents/mr.json +12 -4
- package/locales/documents/ms.json +12 -4
- package/locales/documents/nl.json +12 -4
- package/locales/documents/pl.json +12 -4
- package/locales/documents/pt.json +12 -4
- package/locales/documents/ro.json +12 -4
- package/locales/documents/ru.json +12 -4
- package/locales/documents/sk.json +12 -4
- package/locales/documents/sv.json +12 -4
- package/locales/documents/sw.json +12 -4
- package/locales/documents/ta.json +12 -4
- package/locales/documents/te.json +12 -4
- package/locales/documents/th.json +12 -4
- package/locales/documents/tl.json +12 -4
- package/locales/documents/tr.json +12 -4
- package/locales/documents/uk.json +12 -4
- package/locales/documents/ur.json +12 -4
- package/locales/documents/vi.json +12 -4
- package/locales/documents/yo.json +12 -4
- package/locales/documents/zh-Hans.json +12 -4
- package/locales/documents/zh-Hant.json +12 -4
- package/locales/el.json +39 -18
- package/locales/en.json +39 -18
- package/locales/es.json +39 -18
- package/locales/fa.json +38 -17
- 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 +39 -18
- package/locales/files/am.json +4 -1
- package/locales/files/ar.json +4 -1
- package/locales/files/bg.json +4 -1
- package/locales/files/bn.json +4 -1
- package/locales/files/br.json +4 -1
- package/locales/files/co.json +4 -1
- package/locales/files/cs.json +4 -1
- package/locales/files/da.json +4 -1
- package/locales/files/de.json +4 -1
- package/locales/files/el.json +4 -1
- package/locales/files/en.json +4 -1
- package/locales/files/es.json +4 -1
- package/locales/files/fa.json +4 -1
- package/locales/files/fi.json +4 -1
- package/locales/files/fr-CA.json +4 -1
- package/locales/files/fr.json +4 -1
- package/locales/files/ha.json +4 -1
- package/locales/files/he.json +4 -1
- package/locales/files/hi.json +4 -1
- package/locales/files/hr.json +4 -1
- package/locales/files/hu.json +4 -1
- package/locales/files/id.json +4 -1
- package/locales/files/it.json +4 -1
- package/locales/files/ja.json +4 -1
- package/locales/files/ko.json +4 -1
- package/locales/files/mr.json +4 -1
- package/locales/files/ms.json +4 -1
- package/locales/files/nl.json +4 -1
- package/locales/files/pl.json +4 -1
- package/locales/files/pt.json +4 -1
- package/locales/files/ro.json +4 -1
- package/locales/files/ru.json +4 -1
- package/locales/files/sk.json +4 -1
- package/locales/files/sv.json +4 -1
- package/locales/files/sw.json +4 -1
- package/locales/files/ta.json +4 -1
- package/locales/files/te.json +4 -1
- package/locales/files/th.json +4 -1
- package/locales/files/tl.json +4 -1
- package/locales/files/tr.json +4 -1
- package/locales/files/uk.json +4 -1
- package/locales/files/ur.json +4 -1
- package/locales/files/vi.json +4 -1
- package/locales/files/yo.json +4 -1
- package/locales/files/zh-Hans.json +4 -1
- package/locales/files/zh-Hant.json +4 -1
- 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 +3 -0
- package/locales/flows/co.json +3 -0
- package/locales/flows/cs.json +3 -0
- package/locales/flows/da.json +3 -0
- package/locales/flows/de.json +3 -0
- package/locales/flows/el.json +3 -0
- package/locales/flows/en.json +3 -0
- package/locales/flows/es.json +3 -0
- package/locales/flows/fa.json +3 -0
- package/locales/flows/fi.json +3 -0
- package/locales/flows/fr-CA.json +3 -0
- package/locales/flows/fr.json +3 -0
- 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 +3 -0
- package/locales/flows/ja.json +3 -0
- package/locales/flows/ko.json +3 -0
- 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 +3 -0
- 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 +3 -0
- package/locales/flows/zh-Hant.json +3 -0
- package/locales/fr-CA.json +39 -18
- package/locales/fr.json +39 -18
- package/locales/ha.json +38 -17
- package/locales/he.json +38 -17
- package/locales/hi.json +38 -17
- package/locales/hr.json +39 -18
- package/locales/hu.json +38 -17
- package/locales/id.json +39 -18
- package/locales/it.json +39 -18
- package/locales/ja.json +39 -18
- package/locales/ko.json +38 -17
- package/locales/machine/fr-CA.json +1 -1
- package/locales/machine/fr.json +1 -1
- 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 +2 -4
- 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 +2 -4
- package/locales/made/fr.json +2 -4
- 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 +2 -4
- 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 +2 -4
- 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 +2 -4
- package/locales/made/zh-Hant.json +2 -4
- package/locales/mr.json +38 -17
- package/locales/ms.json +39 -18
- package/locales/nl.json +39 -18
- 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 +2 -1
- package/locales/out/cs.json +2 -1
- package/locales/out/da.json +2 -1
- package/locales/out/de.json +2 -1
- package/locales/out/el.json +2 -1
- package/locales/out/en.json +2 -1
- package/locales/out/es.json +2 -1
- package/locales/out/fa.json +2 -1
- package/locales/out/fi.json +2 -1
- package/locales/out/fr-CA.json +2 -1
- package/locales/out/fr.json +2 -1
- 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 +2 -1
- 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 +2 -1
- 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 +2 -1
- 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/pl.json +38 -17
- 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 +7 -0
- package/locales/profiles/co.json +5 -0
- package/locales/profiles/cs.json +6 -0
- package/locales/profiles/da.json +4 -0
- package/locales/profiles/de.json +4 -0
- package/locales/profiles/el.json +4 -0
- package/locales/profiles/en.json +4 -0
- package/locales/profiles/es.json +5 -0
- package/locales/profiles/fa.json +4 -0
- package/locales/profiles/fi.json +4 -0
- package/locales/profiles/fr-CA.json +5 -0
- package/locales/profiles/fr.json +5 -0
- 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 +5 -0
- package/locales/profiles/ja.json +3 -0
- package/locales/profiles/ko.json +3 -0
- 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 +5 -0
- 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 +3 -0
- package/locales/profiles/zh-Hant.json +3 -0
- 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 +21 -0
- package/locales/prototypes/ar.json +21 -0
- package/locales/prototypes/bg.json +21 -0
- package/locales/prototypes/bn.json +21 -0
- package/locales/prototypes/br.json +21 -0
- package/locales/prototypes/co.json +21 -0
- package/locales/prototypes/cs.json +21 -0
- package/locales/prototypes/da.json +21 -0
- package/locales/prototypes/de.json +21 -0
- package/locales/prototypes/el.json +21 -0
- package/locales/prototypes/en.json +21 -0
- package/locales/prototypes/es.json +21 -0
- package/locales/prototypes/fa.json +21 -0
- package/locales/prototypes/fi.json +21 -0
- package/locales/prototypes/fr-CA.json +21 -0
- package/locales/prototypes/fr.json +21 -0
- package/locales/prototypes/ha.json +21 -0
- package/locales/prototypes/he.json +21 -0
- package/locales/prototypes/hi.json +21 -0
- package/locales/prototypes/hr.json +21 -0
- package/locales/prototypes/hu.json +21 -0
- package/locales/prototypes/id.json +21 -0
- package/locales/prototypes/it.json +21 -0
- package/locales/prototypes/ja.json +21 -0
- package/locales/prototypes/ko.json +21 -0
- package/locales/prototypes/mr.json +21 -0
- package/locales/prototypes/ms.json +21 -0
- package/locales/prototypes/nl.json +21 -0
- package/locales/prototypes/pl.json +21 -0
- package/locales/prototypes/pt.json +21 -0
- package/locales/prototypes/ro.json +21 -0
- package/locales/prototypes/ru.json +21 -0
- package/locales/prototypes/sk.json +21 -0
- package/locales/prototypes/sv.json +21 -0
- package/locales/prototypes/sw.json +21 -0
- package/locales/prototypes/ta.json +21 -0
- package/locales/prototypes/te.json +21 -0
- package/locales/prototypes/th.json +21 -0
- package/locales/prototypes/tl.json +21 -0
- package/locales/prototypes/tr.json +21 -0
- package/locales/prototypes/uk.json +21 -0
- package/locales/prototypes/ur.json +21 -0
- package/locales/prototypes/vi.json +21 -0
- package/locales/prototypes/yo.json +21 -0
- package/locales/prototypes/zh-Hans.json +21 -0
- package/locales/prototypes/zh-Hant.json +21 -0
- package/locales/pt.json +39 -18
- package/locales/receipt/am.json +8 -2
- package/locales/receipt/ar.json +8 -2
- package/locales/receipt/bg.json +8 -2
- package/locales/receipt/bn.json +8 -2
- package/locales/receipt/br.json +8 -2
- package/locales/receipt/co.json +8 -2
- package/locales/receipt/cs.json +8 -2
- package/locales/receipt/da.json +8 -2
- package/locales/receipt/de.json +8 -2
- package/locales/receipt/el.json +8 -2
- package/locales/receipt/en.json +8 -2
- package/locales/receipt/es.json +8 -2
- package/locales/receipt/fa.json +8 -2
- package/locales/receipt/fi.json +8 -2
- package/locales/receipt/fr-CA.json +8 -2
- package/locales/receipt/fr.json +8 -2
- package/locales/receipt/ha.json +8 -2
- package/locales/receipt/he.json +8 -2
- package/locales/receipt/hi.json +8 -2
- package/locales/receipt/hr.json +8 -2
- package/locales/receipt/hu.json +8 -2
- package/locales/receipt/id.json +8 -2
- package/locales/receipt/it.json +8 -2
- package/locales/receipt/ja.json +8 -2
- package/locales/receipt/ko.json +8 -2
- package/locales/receipt/mr.json +8 -2
- package/locales/receipt/ms.json +8 -2
- package/locales/receipt/nl.json +8 -2
- package/locales/receipt/pl.json +8 -2
- package/locales/receipt/pt.json +8 -2
- package/locales/receipt/ro.json +8 -2
- package/locales/receipt/ru.json +8 -2
- package/locales/receipt/sk.json +8 -2
- package/locales/receipt/sv.json +8 -2
- package/locales/receipt/sw.json +8 -2
- package/locales/receipt/ta.json +8 -2
- package/locales/receipt/te.json +8 -2
- package/locales/receipt/th.json +8 -2
- package/locales/receipt/tl.json +8 -2
- package/locales/receipt/tr.json +8 -2
- package/locales/receipt/uk.json +8 -2
- package/locales/receipt/ur.json +8 -2
- package/locales/receipt/vi.json +8 -2
- package/locales/receipt/yo.json +8 -2
- package/locales/receipt/zh-Hans.json +8 -2
- package/locales/receipt/zh-Hant.json +8 -2
- package/locales/ro.json +39 -18
- 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 +2 -0
- package/locales/routines/co.json +2 -0
- 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 +2 -0
- package/locales/routines/fa.json +2 -0
- package/locales/routines/fi.json +2 -0
- package/locales/routines/fr-CA.json +2 -0
- package/locales/routines/fr.json +2 -0
- 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 +2 -0
- package/locales/routines/ja.json +2 -0
- package/locales/routines/ko.json +2 -0
- 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 +2 -0
- 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 +2 -0
- package/locales/routines/zh-Hant.json +2 -0
- package/locales/ru.json +38 -17
- 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 +17 -9
- package/locales/share/co.json +17 -9
- package/locales/share/cs.json +17 -9
- package/locales/share/da.json +17 -9
- package/locales/share/de.json +17 -9
- package/locales/share/el.json +17 -9
- package/locales/share/en.json +17 -9
- package/locales/share/es.json +17 -9
- package/locales/share/fa.json +17 -9
- package/locales/share/fi.json +17 -9
- package/locales/share/fr-CA.json +17 -9
- package/locales/share/fr.json +17 -9
- 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 +17 -9
- package/locales/share/ja.json +17 -9
- package/locales/share/ko.json +17 -9
- 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 +17 -9
- 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 +17 -9
- package/locales/share/zh-Hant.json +17 -9
- 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 +39 -18
- package/locales/skills/am.json +3 -1
- package/locales/skills/ar.json +3 -1
- package/locales/skills/bg.json +3 -1
- package/locales/skills/bn.json +3 -1
- package/locales/skills/br.json +3 -1
- package/locales/skills/co.json +3 -1
- package/locales/skills/cs.json +3 -1
- package/locales/skills/da.json +3 -1
- package/locales/skills/de.json +3 -1
- package/locales/skills/el.json +3 -1
- package/locales/skills/en.json +3 -1
- package/locales/skills/es.json +3 -1
- package/locales/skills/fa.json +3 -1
- package/locales/skills/fi.json +3 -1
- package/locales/skills/fr-CA.json +3 -1
- package/locales/skills/fr.json +3 -1
- package/locales/skills/ha.json +3 -1
- package/locales/skills/he.json +3 -1
- package/locales/skills/hi.json +3 -1
- package/locales/skills/hr.json +3 -1
- package/locales/skills/hu.json +3 -1
- package/locales/skills/id.json +3 -1
- package/locales/skills/it.json +3 -1
- package/locales/skills/ja.json +3 -1
- package/locales/skills/ko.json +3 -1
- package/locales/skills/mr.json +3 -1
- package/locales/skills/ms.json +3 -1
- package/locales/skills/nl.json +3 -1
- package/locales/skills/pl.json +3 -1
- package/locales/skills/pt.json +3 -1
- package/locales/skills/ro.json +3 -1
- package/locales/skills/ru.json +3 -1
- package/locales/skills/sk.json +3 -1
- package/locales/skills/sv.json +3 -1
- package/locales/skills/sw.json +3 -1
- package/locales/skills/ta.json +3 -1
- package/locales/skills/te.json +3 -1
- package/locales/skills/th.json +3 -1
- package/locales/skills/tl.json +3 -1
- package/locales/skills/tr.json +3 -1
- package/locales/skills/uk.json +3 -1
- package/locales/skills/ur.json +3 -1
- package/locales/skills/vi.json +3 -1
- package/locales/skills/yo.json +3 -1
- package/locales/skills/zh-Hans.json +3 -1
- package/locales/skills/zh-Hant.json +3 -1
- 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 +7 -0
- package/locales/slides/co.json +7 -0
- 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 +7 -0
- package/locales/slides/es.json +7 -0
- 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 +7 -0
- package/locales/slides/ja.json +7 -0
- package/locales/slides/ko.json +7 -0
- 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 +7 -0
- 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 +7 -0
- package/locales/slides/zh-Hant.json +7 -0
- 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 +38 -17
- package/locales/sw.json +38 -17
- package/locales/ta.json +38 -17
- 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 +3 -0
- package/locales/tables/co.json +3 -0
- package/locales/tables/cs.json +3 -0
- package/locales/tables/da.json +3 -0
- package/locales/tables/de.json +3 -0
- 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 +3 -0
- package/locales/tables/fr.json +3 -0
- 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 +3 -0
- package/locales/tables/ko.json +3 -0
- 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 +3 -0
- 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 +3 -0
- package/locales/tables/zh-Hant.json +3 -0
- package/locales/te.json +38 -17
- package/locales/th.json +38 -17
- package/locales/tl.json +38 -17
- 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 +38 -17
- package/locales/uk.json +38 -17
- package/locales/ur.json +38 -17
- package/locales/vi.json +38 -17
- 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 +1 -1
- package/locales/{search → web-search}/co.json +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/locales/{search → web-search}/fr.json +1 -1
- 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 +1 -1
- package/locales/{search → web-search}/ja.json +1 -1
- package/locales/{search → web-search}/ko.json +1 -1
- 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 +1 -1
- 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 +1 -1
- package/locales/{search → web-search}/zh-Hant.json +1 -1
- package/locales/yo.json +38 -17
- package/locales/zh-Hans.json +38 -17
- package/locales/zh-Hant.json +38 -17
- package/package.json +1 -1
- package/preview.html +1 -0
- package/ui/base.js +34 -0
- package/ui/caps.js +19 -15
- package/ui/colour.js +1 -0
- package/ui/csp.js +2 -1
- package/ui/export.js +5 -4
- package/ui/icons.js +5 -4
- package/ui/kit.js +11 -2
- package/ui/language.js +1 -0
- package/ui/looks/blueprint.css +1 -0
- package/ui/looks/classic.css +1 -0
- package/ui/looks/fjord.css +1 -0
- package/ui/looks/human.css +13 -3
- package/ui/looks/mail.css +1 -0
- package/ui/looks/minimal.css +1 -0
- package/ui/looks/neon.css +5 -5
- package/ui/looks/notebook.css +1 -0
- package/ui/looks/swiss.css +1 -0
- package/ui/looks/terminal.css +1 -0
- package/ui/looks/tilde.css +2 -1
- package/ui/looks/velvet.css +2 -1
- package/ui/looks.js +1 -0
- package/ui/markdown.js +24 -19
- package/ui/menu-icons.js +14 -5
- package/ui/model.js +5 -4
- package/ui/pointed.js +23 -0
- package/ui/reader-state.js +4 -2
- package/ui/reader.js +1 -0
- package/ui/review.js +1 -0
- package/ui/save.js +1 -0
- package/ui/seal.js +81 -25
- package/ui/sheet.js +1 -0
- package/ui/shown.js +54 -0
- package/ui/style.css +12 -12
- package/ui/touches.js +1 -0
- package/ui/trusted.js +1 -0
- package/ui/view.css +20 -11
- package/ui/view.js +12 -8
- package/ui/weights.js +1 -0
- package/vendor/pele/lazy.d.ts +1 -0
- /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}/es.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}/ja.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/locales/{reader → natural-voice}/zh-Hans.json +0 -0
- /package/locales/{reader → natural-voice}/zh-Hant.json +0 -0
package/brand.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// The only place the name lives. Display only: never use it in storage keys,
|
|
2
3
|
// file paths, cache names, CSS classes or element names (see AGENTS.md).
|
|
3
|
-
export const BRAND = Object.
|
|
4
|
+
export const BRAND = Object.seal({
|
|
4
5
|
name: 'Jean',
|
|
5
6
|
domain: 'jean.is',
|
|
6
7
|
})
|
|
7
8
|
|
|
8
9
|
// The brand's site's pages the app links to, by language (site/), held to site/'s by test/home.test.js.
|
|
9
10
|
export const PAGES = Object.freeze({
|
|
10
|
-
home: { en: '',
|
|
11
|
+
home: { en: '', ...Object.fromEntries('ar br co da de es fi fr fr-CA ha hu id it ja ko ms nl pl pt ro tl zh-Hans zh-Hant'.split(' ').map((lang) => [lang, lang])) },
|
|
11
12
|
help: { en: 'help', fr: 'fr/aide' },
|
|
12
13
|
'site-map': { en: 'site-map', fr: 'fr/plan-du-site' },
|
|
13
14
|
'help/key-refused': { en: 'help/key-refused', fr: 'fr/aide/cle-refusee' },
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// The watermark in what the brain on this device writes (D402), the AI Act's mark for text, which
|
|
2
3
|
// can carry no metadata. Gemma's makers sample its words (a temperature of 1, the 64 likeliest, the
|
|
3
4
|
// fewest whose chances reach 95%); here each is the winner of the exponential race of Aaronson's
|
package/caps/charts/charts.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* SPDX-License-Identifier: MIT */
|
|
1
2
|
/* Charts (D196): the chart in its frame, Copy at its top corner, shown on hover. */
|
|
2
3
|
app-chart { position: relative; }
|
|
3
4
|
/* `dir="ltr"` on the box keeps ECharts' anchors in place. In SVG (on a slide), each word then reads from its first letter, or a mixed one would flip; on a canvas, by `sideOf()`. */
|
package/caps/charts/charts.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// Charts (D196): a ```echarts block in an answer, drawn by ECharts on a canvas, with the theme's
|
|
2
3
|
// light or dark (on a slide, its paper's), the room's type and numbers in the user's language; drawn again as its box, the
|
|
3
4
|
// theme, the look or the language changes; copied as its source and its picture, on light paper,
|
|
@@ -22,7 +23,7 @@ const [echarts] = await Promise.all([import(new URL('../../vendor/echarts/echart
|
|
|
22
23
|
const [contrast, forced] = [matchMedia('(prefers-contrast: more)'), matchMedia('(forced-colors: active)')]
|
|
23
24
|
let charts = 0
|
|
24
25
|
// Escape hides a tip.
|
|
25
|
-
addEventListener('keydown', (event) => { if (event.key === 'Escape') for (const one of document.querySelectorAll('app-chart')) /** @type {
|
|
26
|
+
addEventListener('keydown', (event) => { if (event.key === 'Escape') for (const one of document.querySelectorAll('app-chart')) /** @type {{ chart?: import('echarts').ECharts | null }} */ (one).chart?.dispatchAction({ type: 'hideTip' }) })
|
|
26
27
|
|
|
27
28
|
/**
|
|
28
29
|
* The option as drawn here: numbers in the user's language, the room's type, no animation for
|
|
@@ -38,7 +39,7 @@ function dressed(option, font) {
|
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
/** A chart's numbers as a table, its categories down the side and a column for each series; its source where it has neither. @param {
|
|
42
|
+
/** A chart's numbers as a table, its categories down the side and a column for each series; its source where it has neither. @param {Option} option @param {string} source */
|
|
42
43
|
function figures(option, source) {
|
|
43
44
|
const series = [option.series].flat().filter((one) => Array.isArray(one?.data)), axis = [option.xAxis, option.yAxis].flat().find((one) => Array.isArray(one?.data))?.data, value = (/** @type {any} */ one) => [one?.value ?? one].flat().join(', '), rows = Math.max(0, ...series.map((one) => one.data.length))
|
|
44
45
|
const links = [option.series].flat().flatMap((one) => one?.links ?? one?.edges ?? []), set = [option.dataset].flat()[0]?.source; if (links.length) return html`<ul>${links.map((/** @type {any} */ one) => html`<li dir="auto">${one.source} → ${one.target}${one.value == null ? '' : ` (${one.value})`}</li>`)}</ul>`
|
package/caps/charts/option.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// A chart an answer holds (D196): an ECharts option written as JSON in a ```echarts block. It is
|
|
2
3
|
// data, never code: read with JSON.parse, or as the JavaScript ECharts' own examples are written in,
|
|
3
4
|
// its functions left out (D418), then kept to what draws inside the chart. The toolbox goes (its
|
package/caps/files/extract.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// Text out of the files people share: Word, PowerPoint and Excel (zips of XML), Numbers (numbers.js),
|
|
2
3
|
// and plain text. Returns pages, so the brain can read a long file a part at a time.
|
|
3
4
|
// A small tag scanner instead of DOMParser keeps this runnable in workers and Node.
|
package/caps/files/midi.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// MIDI files: no browser plays one, so Jean does. Its notes are read here, then played by a
|
|
2
3
|
// small synthesizer of Jean's own through the Web Audio API, faster than they last, into a WAV that
|
|
3
4
|
// the page's own player plays, with its seeking and its volume. No instruments fetched from another
|
package/caps/files/numbers.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// Apple Numbers' spreadsheets, as Numbers has saved them since 2013: a zip of .iwa parts, each a run of
|
|
2
3
|
// Snappy-compressed chunks holding protobuf messages that point at each other by id. No schema ships:
|
|
3
4
|
// the few fields read here are named where they are read, after Apple's own messages (TN, TST, TSWP).
|
package/caps/files/office.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// Word, Excel and PowerPoint files as Office draws them (D183), in a file's pane and the browser: by
|
|
2
3
|
// @silurus/ooxml, its parsers WebAssembly, its viewers drawing on a canvas, so nothing of the file
|
|
3
4
|
// becomes markup, in a frame of a file pane's kind (an opaque origin with no network), in a page made
|
package/caps/files/pdf.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// PDF text, page by page, with pdf.js (loaded on demand; its legacy build covers Safari 16.4).
|
|
2
3
|
// No font faces: glyphs are drawn as shapes, so pdf.js never needs eval. Character maps let it
|
|
3
4
|
// read Chinese, Japanese and Korean text; standard font metrics keep words apart. A scan's pictures
|
|
@@ -25,8 +26,8 @@ function pdfjs() {
|
|
|
25
26
|
/** pdf.js's words of a page, laid over it to select (D690). */
|
|
26
27
|
export const textLayer = async () => (await pdfjs()).TextLayer
|
|
27
28
|
|
|
28
|
-
/** A PDF, opened: its text is read here, its pages drawn where a file shows (ui/view.js, D126). @param {Uint8Array} bytes */
|
|
29
|
-
export async function openPdf(bytes) {
|
|
29
|
+
/** A PDF, opened: its text is read here, its pages drawn where a file shows (ui/view.js, D126); `more`, pdf.js's options besides (a face's own name, D740). @param {Uint8Array} bytes @param {object} [more] */
|
|
30
|
+
export async function openPdf(bytes, more = {}) {
|
|
30
31
|
return (await pdfjs()).getDocument({
|
|
31
32
|
data: bytes.slice(), // the buffer is transferred to the worker
|
|
32
33
|
cMapUrl: new URL('cmaps/', BASE).href,
|
|
@@ -38,15 +39,16 @@ export async function openPdf(bytes) {
|
|
|
38
39
|
isEvalSupported: false,
|
|
39
40
|
disableFontFace: true,
|
|
40
41
|
useSystemFonts: false,
|
|
42
|
+
...more,
|
|
41
43
|
})
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
/**
|
|
45
47
|
* What `read` makes of each page of a PDF, the first `count`, in turn; the PDF is let go after.
|
|
46
|
-
* @template T @param {Uint8Array} bytes @param {(page: any) => Promise<T>} read @returns {Promise<T[]>}
|
|
48
|
+
* @template T @param {Uint8Array} bytes @param {(page: any) => Promise<T>} read @param {object} [more] pdf.js's options besides @returns {Promise<T[]>}
|
|
47
49
|
*/
|
|
48
|
-
export async function eachPage(bytes, read, count = Infinity) {
|
|
49
|
-
const task = await openPdf(bytes)
|
|
50
|
+
export async function eachPage(bytes, read, count = Infinity, more = {}) {
|
|
51
|
+
const task = await openPdf(bytes, more)
|
|
50
52
|
const out = []
|
|
51
53
|
try {
|
|
52
54
|
const doc = await task.promise
|
package/caps/games/file.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// A game's file (D648): `games/<ulid>-<slug>.game.html`, named once and never renamed, a page whose head holds Jean's facts (its
|
|
2
3
|
// format, engine, the actions it uses, author, when it was made and changed, whether it is pinned, the task it came from), its
|
|
3
4
|
// title its name, its body a picture of it being played and the design card, and the game itself as one module in an inert script,
|
|
@@ -37,6 +38,8 @@ export function gameOf(page) {
|
|
|
37
38
|
|
|
38
39
|
/** A game's page with its picture, the one before gone; as it was when either isn't one. @param {string} page @param {string} picture */
|
|
39
40
|
export const pictured = (page, picture) => ((game) => (game && PICTURE.test(picture) ? fileOf({ ...game, picture }, /<html lang="([^"]*)">/.exec(page)?.[1] ?? 'en') : page))(gameOf(page))
|
|
41
|
+
/** A game's code importing what it is lent (./page.js) by path, from a file beside it, as on a site, which has no import map (D720): `from 'phaser'` as `from './phaser.js'`. @param {string} code @param {string[]} names */
|
|
42
|
+
export const beside = (code, names) => code.replace(new RegExp(`(\\b(?:from|import)\\s*\\(?\\s*)(["'])(${names.join('|')})\\2`, 'g'), '$1$2./$3.js$2')
|
|
40
43
|
|
|
41
44
|
/** The actions a game says it uses, those Jean knows, all of them when it says none. @param {unknown} list */
|
|
42
45
|
export const actionsOf = (list) => ((known) => (known.length ? known : ACTIONS))((Array.isArray(list) ? list : String(list ?? '').split(/[\s,]+/)).map(String).filter((one, i, all) => ACTIONS.includes(one) && all.indexOf(one) === i))
|
package/caps/games/frame.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* SPDX-License-Identifier: MIT */
|
|
1
2
|
/* A game's frame (D648): written into its page with ./shell.js, never into Jean's. The game fills it; the cover, the bar and the
|
|
2
3
|
touch buttons sit over it, light on dark whatever the game draws. */
|
|
3
4
|
html, body { margin: 0; block-size: 100%; overflow: hidden; background: #0e0e14; color: #fff; font: 1rem/1.4 system-ui, sans-serif; }
|
package/caps/games/guard.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// A check in the condition of every `while`, `do … while` and classic `for` loop of a game's code (D648), so that a loop that never
|
|
2
3
|
// ends throws at its own line instead of freezing Jean, whose page shares its thread with a game's frame in WebKit. Strings,
|
|
3
4
|
// templates, comments and regular expressions are read past, `for … of` and `for … in` left alone, and nothing goes on a line of its
|
package/caps/games/page.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// A game's page (D648): its facts, the shell (./shell.js) and its styles, and the game, guarded (./guard.js). In a frame of Jean's
|
|
2
3
|
// (./frame.js) its engine is lent; as a page of its own, which Save gives and a task saved as a page or shared by link shows
|
|
3
4
|
// (ui/view.js), its engine is inside it: offline, its card where scripts don't run, and what it saves kept in the browser's storage
|
|
4
|
-
// where the page has one (a file opened), else for the visit.
|
|
5
|
+
// where the page has one (a file opened), else for the visit; as a site, its code and engine are files beside it (siteOf).
|
|
5
6
|
import { pagePolicy } from '../../ui/csp.js'
|
|
6
7
|
import { still } from '../../ui/sheet.js'
|
|
7
8
|
import { t, locale, dir, useStrings } from '../../core/i18n.js'
|
|
8
9
|
import { guard } from './guard.js'
|
|
9
|
-
import { actionsOf, gameOf, PICTURE } from './file.js'
|
|
10
|
+
import { actionsOf, gameOf, beside, PICTURE } from './file.js'
|
|
10
11
|
|
|
11
12
|
/** What a game imports by name: its engine's, and ZzFX. */
|
|
12
13
|
export const LENT = /** @type {Record<string, string>} */ ({ phaser: '../../vendor/phaser/phaser.mjs', babylon: '../../vendor/babylon/babylon.mjs', zzfx: '../../vendor/zzfx/zzfx.mjs' })
|
|
@@ -16,19 +17,20 @@ const read = /** @type {Map<string, Promise<string>>} */ (new Map())
|
|
|
16
17
|
/** A file beside this module, read once. @param {string} path */
|
|
17
18
|
export const text = (path) => read.get(path) ?? /** @type {Promise<string>} */ (read.set(path, fetch(new URL(path, import.meta.url)).then((response) => response.text())).get(path))
|
|
18
19
|
const escaped = (/** @type {string} */ words) => words.replace(/&/g, '&').replace(/</g, '<').replace(/"/g, '"')
|
|
20
|
+
const VIEWPORT = '<meta name="viewport" content="width=device-width, initial-scale=1">'
|
|
19
21
|
|
|
20
22
|
/**
|
|
21
|
-
* A game's page. `imports`: its import map, none for a page whose `boot` makes its own; `head`, what its head starts with.
|
|
23
|
+
* A game's page. `imports`: its import map, none for a page whose `boot` makes its own; `head`, what its head starts with; `src`, the file beside it its code is in, on a site.
|
|
22
24
|
* @param {import('./file.js').Game} game
|
|
23
25
|
* @param {{ test?: { frames: number, seed: number, press: { action: string, from: number, to: number }[] } | null, saved?: { save: string | null, storage: Record<string, string> },
|
|
24
|
-
* imports?: Record<string, string> | null, head?: string, boot?: string }} [options]
|
|
26
|
+
* imports?: Record<string, string> | null, head?: string, boot?: string, src?: string }} [options]
|
|
25
27
|
*/
|
|
26
|
-
export async function pageOf(game, { test = null, saved = { save: null, storage: {} }, imports = null, head = '', boot = '' } = {}) {
|
|
28
|
+
export async function pageOf(game, { test = null, saved = { save: null, storage: {} }, imports = null, head = '', boot = '', src = '' } = {}) {
|
|
27
29
|
const lang = locale.peek(), [shell, css] = await Promise.all([text('./shell.js'), text('./frame.css')])
|
|
28
30
|
const words = Object.fromEntries(['play', 'resume', 'paused', 'pause', 'mute', 'full', 'left', 'right', 'up', 'down'].map((key) => [key, t(`games.${key}`)]))
|
|
29
31
|
const given = JSON.stringify({ test, saved, words, actions: actionsOf(game.meta.actions), reduced: still(), title: game.name, pictured: Boolean(game.picture) }).replace(/</g, '\\u003c')
|
|
30
32
|
return /* html */ `<html lang="${lang}" dir="${dir(lang)}"><meta charset="utf-8">${head}${imports ? `<script type="importmap">${JSON.stringify({ imports })}</script>` : ''}<script>window.__game=${given}</script>${boot}<script>${shell}</script><style>${css}</style>
|
|
31
|
-
<body><noscript><article dir="auto">${game.picture && PICTURE.test(game.picture) ? `<img src="${game.picture}" alt="">` : ''}<h1>${escaped(game.name)}</h1><p>${escaped(game.card)}</p></article></noscript><div id="stage" tabindex="-1"></div><script type="text/x-game" id="game"
|
|
33
|
+
<body><noscript><article dir="auto">${game.picture && PICTURE.test(game.picture) ? `<img src="${game.picture}" alt="">` : ''}<h1>${escaped(game.name)}</h1><p>${escaped(game.card)}</p></article></noscript><div id="stage" tabindex="-1"></div><script type="text/x-game" id="game"${src ? ` src="${src}">` : `>${guard(game.code, '__loop()').replace(/<\/(script)/gi, '<\\/$1')}`}</script>`
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
/**
|
|
@@ -47,6 +49,19 @@ try{store=localStorage;Object.assign(g.saved,JSON.parse(store.getItem(key)||'{}'
|
|
|
47
49
|
for(const e of document.querySelectorAll('script[type="text/x-engine"]'))imports[e.dataset.name]=URL.createObjectURL(new Blob([e.textContent],{type:'text/javascript'}))
|
|
48
50
|
document.head.append(Object.assign(document.createElement('script'),{type:'importmap',textContent:JSON.stringify({imports})}))
|
|
49
51
|
if(parent===window&&store){const send=postMessage.bind(window);window.postMessage=(m,o)=>{if(m&&m.keep)try{store.setItem(key,JSON.stringify(m.keep))}catch{}send(m,o)}}})()`
|
|
50
|
-
const head =
|
|
52
|
+
const head = `${VIEWPORT}<meta http-equiv="Content-Security-Policy" content="${pagePolicy({ scripts: true, web: false, network: false, downloads: false, fullscreen: true, maps: false }, [], true)}"><title>${escaped(game.name)}</title>`
|
|
51
53
|
return `<!doctype html>${await pageOf(game, { head, boot: `${engines.join('')}<script>${boot}</script>` })}`
|
|
52
54
|
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* A game as the files of a site (D720), whose host runs a site's own files and no import map: its code, its engine and ZzFX in files
|
|
58
|
+
* beside its page, which it imports by path; the rest as ../sites/file.js makes any page on its own a site. @param {string} file
|
|
59
|
+
*/
|
|
60
|
+
export async function siteOf(file) {
|
|
61
|
+
const [game, { sited }] = [gameOf(file), await import('../sites/file.js')], names = game ? lent(game) : []
|
|
62
|
+
if (!game) return sited(file)
|
|
63
|
+
await useStrings('games')
|
|
64
|
+
const files = sited(`<!doctype html>${await pageOf(game, { head: `${VIEWPORT}<title>${escaped(game.name)}</title>`, src: 'game.js' })}`)
|
|
65
|
+
for (const name of names) files.set(`${name}.js`, await text(LENT[name]))
|
|
66
|
+
return files.set('game.js', guard(beside(game.code, names), '__loop()'))
|
|
67
|
+
}
|
package/caps/games/shell.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// A game's frame, around the game (D648): Jean's own script, written ahead of the game in its page (./frame.js), which runs in the
|
|
2
3
|
// frame alone, never in Jean's page. It owns the frame's clock (requestAnimationFrame, performance.now, Date and timers), so that a
|
|
3
4
|
// pause stops the game wherever it is, whatever its engine, and a play-test steps frames as fast as they come, through a
|
|
@@ -48,7 +49,7 @@
|
|
|
48
49
|
Object.defineProperties(document, { hidden: { get: () => false }, visibilityState: { get: () => 'visible' } })
|
|
49
50
|
}
|
|
50
51
|
win.Date = class extends RealDate {
|
|
51
|
-
constructor(/** @type {
|
|
52
|
+
constructor(/** @type {unknown[]} */ ...args) { if (args.length) super(.../** @type {[string | number | Date]} */ (args)); else super(start + now) }
|
|
52
53
|
static now() { return start + now }
|
|
53
54
|
}
|
|
54
55
|
performance.now = () => now
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
const timers = /** @type {Map<number, { at: number, every?: number, fn: unknown, args: unknown[] }>} */ (new Map())
|
|
57
58
|
win.requestAnimationFrame = (/** @type {Function} */ fn) => (frames.set(++ids, fn), ids)
|
|
58
59
|
win.cancelAnimationFrame = (/** @type {number} */ id) => frames.delete(id)
|
|
59
|
-
win.setTimeout = (/** @type {
|
|
60
|
+
win.setTimeout = (/** @type {TimerHandler} */ fn, ms = 0, /** @type {unknown[]} */ ...args) => (running ? (timers.set(++ids, { at: now + Math.max(0, Number(ms) || 0), fn, args }), ids) : real.later(fn, ms, ...args))
|
|
60
61
|
win.setInterval = (/** @type {unknown} */ fn, ms = 0, /** @type {unknown[]} */ ...args) => ((every) => (timers.set(++ids, { at: now + every, every, fn, args }), ids))(Math.max(1, Number(ms) || 0))
|
|
61
62
|
win.clearTimeout = win.clearInterval = (/** @type {number} */ id) => (id > 1e6 ? timers.delete(id) : real.clear(id))
|
|
62
63
|
const step = (/** @type {number} */ ms) => {
|
|
@@ -107,12 +108,12 @@
|
|
|
107
108
|
removeItem: (/** @type {string} */ key) => (store.delete(String(key)), keep()), clear: () => (store.clear(), keep()), key: (/** @type {number} */ i) => [...store.keys()][i] ?? null, get length() { return store.size } }
|
|
108
109
|
Object.defineProperty(window, 'localStorage', { value: storage, configurable: true })
|
|
109
110
|
let score = NaN
|
|
110
|
-
|
|
111
|
+
let lent = 'zzfx'
|
|
111
112
|
win.host = {
|
|
112
113
|
get stage() { return stage },
|
|
113
114
|
input: { down: (/** @type {string} */ action) => down.has(action), pressed: (/** @type {string} */ action) => pressed.has(action), on: (/** @type {string} */ action, /** @type {unknown} */ fn) => void on.set(action, [...(on.get(action) ?? []), fn]) },
|
|
114
|
-
// ZzFX, lent as the engines are, by the page's import map.
|
|
115
|
-
sound: (/** @type {number[]} */ ...params) => void (muted || import(
|
|
115
|
+
// ZzFX, lent as the engines are, by the page's import map, or a file beside the game's on a site.
|
|
116
|
+
sound: (/** @type {number[]} */ ...params) => void (muted || import(lent).then(({ zzfx, ZZFX }) => (ZZFX.audioContext.resume(), zzfx(...params)), (error) => fault(error))),
|
|
116
117
|
save: (/** @type {unknown} */ value) => { const json = JSON.stringify(value ?? null); if (json.length > 65536) throw new RangeError('A save holds 64 KB at most.'); saved = json; keep() },
|
|
117
118
|
load: () => JSON.parse(saved ?? 'null'),
|
|
118
119
|
state: (/** @type {unknown} */ name) => { report.states.push([Math.round(now), String(name)]); if (!test) post({ state: String(name) }) },
|
|
@@ -250,7 +251,9 @@
|
|
|
250
251
|
|
|
251
252
|
addEventListener('DOMContentLoaded', () => {
|
|
252
253
|
stage = /** @type {HTMLElement} */ (document.getElementById('stage'))
|
|
253
|
-
|
|
254
|
+
const game = document.getElementById('game'), src = game?.getAttribute('src')
|
|
255
|
+
url = src ? new URL(src, document.baseURI).href : URL.createObjectURL(new Blob([game?.textContent ?? ''], { type: 'text/javascript' }))
|
|
256
|
+
if (src) lent = new URL('zzfx.js', url).href
|
|
254
257
|
// Chromium says where a module's syntax error is on its element, WebKit on import()'s.
|
|
255
258
|
document.body.append(make('script', { type: 'module', src: url }))
|
|
256
259
|
import(url).then(() => test && real.later(play, frames.size ? 0 : 300), (error) => { if (!report.errors.some((one) => one.name === 'SyntaxError')) fault(error, error?.line, error?.column); if (test) play() })
|
package/caps/interactive/apps.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// Apps among the creations (D553): the pages a project's answers hold (```html, D289), each a small app Jean made, the newest
|
|
2
3
|
// of each name in a task alone, as a brain writes one whole again for each change; named by its <title>, else its first heading,
|
|
3
4
|
// else its task's title. On its card, the app itself at half size, still; picked, it opens beside the task and works there as in
|
|
@@ -38,7 +39,7 @@ export const apps = { id: 'apps', at: 6, draw: () => GLYPH, kept,
|
|
|
38
39
|
* What an app can do (ui/out.js): a link holds its page as an answer's does, the system's sheet and Download its page on its own, and paper what it shows now.
|
|
39
40
|
* @param {{ uri: string, name: string, title: string }} file @param {Element} pane @returns {import('../../ui/out.js').Ways}
|
|
40
41
|
*/
|
|
41
|
-
const ways = (file, pane) => ({ share: async () => ({ text: `\`\`\`html\n${(await find(file.uri))?.source ?? ''}\n\`\`\`` }),
|
|
42
|
+
const ways = (file, pane) => ({ share: async () => ({ text: `\`\`\`html\n${(await find(file.uri))?.source ?? ''}\n\`\`\`` }), page: () => bytesOf(file.uri),
|
|
42
43
|
send: { file: file.name, type: 'text/html', make: async () => ({ title: file.title, files: [new File([await bytesOf(file.uri)], file.name, { type: 'text/html' })] }) },
|
|
43
44
|
files: [{ id: '', glyph: icons.download, label: t('out.webPage'), run: async () => (await import('../../ui/preview.js')).download(file) }],
|
|
44
45
|
print: { id: 'print', run: async () => (await import('../made/paper.js')).printPage(/** @type {HTMLElement} */ (pane.querySelector('.view .prose'))) } })
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// A diagram (D592): Mermaid's language drawn by Pele (Obsidian's, MIT) with no DOM, its words measured on an OffscreenCanvas,
|
|
2
3
|
// each kind of diagram loaded as one first shows. The SVG and its size go back to the page, which shows it as a picture.
|
|
3
4
|
import { renderAsync } from '../../vendor/pele/lazy.js'
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// Diagrams (D291, D592): a ```mermaid block, of any kind Mermaid draws, drawn by Pele in its worker (./diagram-worker.js), or
|
|
2
3
|
// beside the page where no worker of Jean's starts (a share's viewer, its files from another site). A flowchart Pele refuses is
|
|
3
4
|
// tried again with its boxes written as Mermaid reads them: brains close a box's brackets swapped (A([Start)]), or put brackets
|
|
@@ -174,7 +175,7 @@ function tones(style) {
|
|
|
174
175
|
let worker
|
|
175
176
|
let count = 0
|
|
176
177
|
const asked = /** @type {Map<number, { source: string, options: object, resolve: (drawn: Drawn) => void, reject: (error: Error) => void }>} */ (new Map())
|
|
177
|
-
/** Pele beside the page. @type {Promise<
|
|
178
|
+
/** Pele beside the page. @type {Promise<typeof import('pele/lazy')> | undefined} */
|
|
178
179
|
let here
|
|
179
180
|
|
|
180
181
|
/** Mermaid as Pele draws it. @param {string} source @param {object} options @returns {Promise<Drawn>} */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* SPDX-License-Identifier: MIT */
|
|
1
2
|
/* Pages in answers (D289): framed as the other widgets are, so a page reads as one of its own, Copy at its top corner, shown on hover. The page's body adds a little to the padding, room for its focus rings. */
|
|
2
3
|
app-page { position: relative; display: block; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: 0.9rem; margin-block: 0 0.85rem; }
|
|
3
4
|
app-page iframe { display: block; box-sizing: content-box; inline-size: 100%; block-size: 6rem; border: 0; background: transparent; }
|
|
@@ -11,7 +12,7 @@ app-page iframe { display: block; box-sizing: content-box; inline-size: 100%; bl
|
|
|
11
12
|
(ui/style.css's --column), centred on it and never narrower than it, as Layouts' wide tables do (--shell, D215). */
|
|
12
13
|
app-parts { position: relative; display: block; container-type: inline-size; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: 0.9rem; margin-block: 0 0.85rem; } @media screen { main .prose > app-parts { --wide: max(100cqi, min(var(--shell) - 2.5rem, 64rem)); margin-inline: calc((100cqi - var(--wide)) / 2); } }
|
|
13
14
|
app-parts .part-cards { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-end: 0.85rem; } app-parts .part-cards > * { flex: 1 1 15rem; } app-parts .part-card.wide { flex-basis: 100%; }
|
|
14
|
-
app-parts .part-card { min-inline-size: 0; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: calc(var(--radius) * 0.6); } app-parts .part-card > :last-child { margin-block-end: 0; } app-parts .part-card > h4 { margin-block: 0 0.5rem; } app-parts .part-card > :is(app-chart, .diagram, app-page) { padding: 0; border: 0; }
|
|
15
|
+
app-parts .part-card { min-inline-size: 0; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: calc(var(--radius) * 0.6); } app-parts .part-card > :last-child { margin-block-end: 0; } app-parts .part-card > h4 { margin-block: 0 0.5rem; } app-parts :is(.parts, .part-card) > :is(app-chart, .diagram, app-page) { padding: 0; border: 0; }
|
|
15
16
|
@container (min-width: 36rem) { app-parts .parts:has(> aside) { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start; } }
|
|
16
17
|
app-parts th .sorts { padding: 0; border: 0; background: none; font-weight: inherit; text-align: inherit; }
|
|
17
18
|
app-parts .part-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.6rem 0.75rem; margin-block-end: 0.85rem; } app-parts .part-form :is(.button, label:has(textarea)) { grid-column: 1 / -1; } app-parts .part-form .button { justify-self: start; }
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// Pages in answers (D196, D289): a ```html block is a page that runs where it is, in every room, in a
|
|
2
3
|
// frame of a file pane's kind (preview.html, D126): an opaque origin, scripts and forms, under the
|
|
3
4
|
// policy Settings give web pages (D143), so by default nothing comes from the internet or goes to
|
|
@@ -34,6 +35,8 @@ import { styleSheet, still } from '../../ui/sheet.js'
|
|
|
34
35
|
import { t, locale, dir, useStrings } from '../../core/i18n.js'
|
|
35
36
|
import { row, chip, notes } from './mode.js'
|
|
36
37
|
import { parse } from './parts.js'
|
|
38
|
+
/** @import { Settings } from '../../core/settings.js' */
|
|
39
|
+
/** What goes on to the next hook, and what came of it (core/hooks.js). @typedef {(e?: unknown) => Promise<unknown>} Next */
|
|
37
40
|
|
|
38
41
|
await Promise.all([useStrings('interactive'), styleSheet(new URL('interactive.css', import.meta.url))])
|
|
39
42
|
|
|
@@ -42,13 +45,13 @@ export const capability = {
|
|
|
42
45
|
id: 'interactive',
|
|
43
46
|
rules: ["Bills, loans, recipes, timezones, quizzes, science: end with a working ```html tool, not code: offline, var(--color-*), import 'echarts', sendPrompt(text); localStorage keeps, <a download> saves."],
|
|
44
47
|
// Visual answers as a mode of the box (./mode.js, D300): a row of +, then pressed at the box's foot while it is on.
|
|
45
|
-
slots: { add: { at:
|
|
48
|
+
slots: { add: { at: 3, draw: row }, modes: { at: 0, draw: chip, notes } },
|
|
46
49
|
// A task gone for good takes what its apps kept with it (D688).
|
|
47
|
-
hooks: [{ on: 'record', match: { type: 'removed' }, run: (/** @type {
|
|
50
|
+
hooks: [{ on: 'record', match: { type: 'removed' }, run: (/** @type {{ all: true, task: string } | { all?: false }} */ e, /** @type {Next} */ next) => { const at = e.all && keptAt(e.task); if (at) app.fs.remove(at).catch(() => {}); return next(e) } },
|
|
48
51
|
// A task duplicated (D230) keeps what its apps kept, as it keeps their answers (D688).
|
|
49
|
-
{ on: 'task.start', run: async (/** @type {
|
|
52
|
+
{ on: 'task.start', run: async (/** @type {{ task: string, from?: { path: string } }} */ e, /** @type {Next} */ next) => { const [was, now] = [keptAt(e.from?.path ?? ''), keptAt(e.task)], kept = was && now && (await app.fs.read(was).catch(() => null)); if (kept && now) await app.fs.write(now, kept); return next(e) } },
|
|
50
53
|
// An answer's pages with a script, played out of sight before the turn ends; what broke goes back to the brain (./test.js, D689).
|
|
51
|
-
{ on: 'turn.answer', run: async (/** @type {
|
|
54
|
+
{ on: 'turn.answer', run: async (/** @type {{ text: string, task?: string, signal?: AbortSignal }} */ e, /** @type {Next} */ next) => (rights.peek().allows.scripts && /```html/.test(e.text) && (await (await import('./test.js')).played(e))) || next(e) }],
|
|
52
55
|
}
|
|
53
56
|
register(capability)
|
|
54
57
|
|
|
@@ -128,7 +131,7 @@ export const part = (path) => parts.get(path) ?? /** @type {Promise<string>} */
|
|
|
128
131
|
export const LENT = /** @type {Record<string, string>} */ ({ diagram: './page-diagram.js', map: './map.js' })
|
|
129
132
|
|
|
130
133
|
/** The map service's styles, light and dark, and the addresses that may be fetched for a map: theirs. */
|
|
131
|
-
const styles = () => mapStyles(
|
|
134
|
+
const styles = () => mapStyles(effective.peek().settings, app.policy)
|
|
132
135
|
const mapSites = () => Object.values(styles()).map((address) => new URL(address).origin)
|
|
133
136
|
|
|
134
137
|
// Each component a page holds is asked for as it appears, and lent then; the rest isn't.
|
|
@@ -344,7 +347,7 @@ class AppPage extends HTMLElement {
|
|
|
344
347
|
/** Maps allowed, from now on, unless the organisation says otherwise. */
|
|
345
348
|
async allow() {
|
|
346
349
|
const { allows, locked } = rights.peek()
|
|
347
|
-
if (!allows.maps && !locked.has('maps')) await updateSettings({ pages:
|
|
350
|
+
if (!allows.maps && !locked.has('maps')) await updateSettings({ pages: { ...app.settings.peek().pages, maps: true } })
|
|
348
351
|
return rights.peek().allows.maps
|
|
349
352
|
}
|
|
350
353
|
|
package/caps/interactive/live.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// What a page of parts shares (D670), so that what the user changes reaches all it touches at once, with nothing sent to a brain:
|
|
2
3
|
// its form's fields, by their labels; the values worked out from them (<app-values>, a line each, `Name = formula`), in Tables' formulas,
|
|
3
4
|
// which Jean reads itself, never with eval; `{formula}` in figures, a table's lines, a chart's, a card's heading and words, `{formula:2}`
|
|
@@ -9,7 +10,7 @@ import { compile } from '../tables/formula.js'
|
|
|
9
10
|
import { all, form, lines, number, split, table } from './parts.js'
|
|
10
11
|
|
|
11
12
|
/** @import { Part } from './parts.js' */
|
|
12
|
-
/** What a form's fields, what they work out and a table's sums hold, by their names. @typedef {Record<string,
|
|
13
|
+
/** What a form's fields, what they work out and a table's sums hold, by their names. @typedef {Record<string, unknown>} Cells */
|
|
13
14
|
|
|
14
15
|
const FORMULA = /\{([^{}]+)\}/g, HOLDS = /\{[^{}]+\}/, LIST = /\s*[,،、]\s*/
|
|
15
16
|
/** The parts whose lines may hold a formula: a diagram's braces are its own. */
|
|
@@ -41,7 +42,7 @@ export function shared(parts, { given, added, lang, locales }) {
|
|
|
41
42
|
const reader = (/** @type {string} */ text) => { try { return compile(text.replace(/[{}]/g, ''), columns) } catch { return () => NaN } }
|
|
42
43
|
/** What a formula comes to; NaN where it can't be read or worked out. @param {string} text @param {Cells} cells */
|
|
43
44
|
const value = (text, cells) => /** @type {(cells: Cells) => any} */ (readers.get(text) ?? readers.set(text, reader(text)).get(text))(cells)
|
|
44
|
-
/** A result in the page's words. @param {
|
|
45
|
+
/** A result in the page's words. @param {unknown} got @param {string} [digits] @param {boolean} [bare] with no marks between thousands */
|
|
45
46
|
const said = (got, digits, bare) => (typeof got === 'boolean' ? (got ? '✓' : '') : typeof got !== 'number' ? String(got) : !Number.isFinite(got) ? '—' : /** @type {Intl.NumberFormat} */ (formats.get(`${digits}${bare}`)
|
|
46
47
|
?? formats.set(`${digits}${bare}`, new Intl.NumberFormat(locales, { maximumFractionDigits: digits ? Number(digits) : 2, minimumFractionDigits: digits ? Number(digits) : 0, useGrouping: !bare, signDisplay: 'negative' })).get(`${digits}${bare}`)).format(got))
|
|
47
48
|
/** A line with each formula worked out, an `each`'s own name as it is written. @param {string} line @param {Cells} cells @param {string} [name] */
|
|
@@ -50,7 +51,7 @@ export function shared(parts, { given, added, lang, locales }) {
|
|
|
50
51
|
: /^(number|range)$/.test(kind) ? (raw === '' ? NaN : number(raw, lang, true)) : read(raw)])(given.get(label) ?? (start || choices?.[0] || '')))))
|
|
51
52
|
/** The fields, the tables' sums, and each value worked out, as often as there are values, so that one written before what it reads sees it. @param {Cells} [extra] */
|
|
52
53
|
const work = (extra) => { const cells = { ...base, ...extra }; for (const _ of worked) for (const [name, text] of worked) cells[name] = value(text, cells); return cells }
|
|
53
|
-
/** The name an `each` gives, and the values it goes over: `from..to..step`, or a list. @param {string} each @returns {[string,
|
|
54
|
+
/** The name an `each` gives, and the values it goes over: `from..to..step`, or a list. @param {string} each @returns {[string, unknown[]]} */
|
|
54
55
|
const steps = (each) => {
|
|
55
56
|
const [name, over] = split(each, '='), cells = work(), [from, to, by = 1] = over.split('..').map((text) => value(text, cells))
|
|
56
57
|
return [name, !over.includes('..') ? over.split(LIST).map(read) : by > 0 ? Array.from({ length: Math.min(MOST, Math.max(0, Math.floor((to - from) / by + 1e-9) + 1 || 0)) }, (_, i) => from + i * by) : []]
|
|
@@ -87,7 +88,7 @@ export function shared(parts, { given, added, lang, locales }) {
|
|
|
87
88
|
if (drawn) return { ...part, text: [drawn.heads, ...drawn.rows].map((row) => row.join(' | ')).join('\n') }
|
|
88
89
|
if (!live) return part
|
|
89
90
|
if (part.tag === 'app-card') return { ...part, attrs: { ...part.attrs, heading: spell(part.attrs.heading ?? '', cells) } }
|
|
90
|
-
if (part.tag === 'app-chart') return { ...part, text: from ? tally(part, /** @type {
|
|
91
|
+
if (part.tag === 'app-chart') return { ...part, text: from ? tally(part, /** @type {ReturnType<typeof tabled>} */ (shown.get(from))) : lines(part).map((line, i) => (i ? spelled(line, (text, digits) => plain(value(text, cells), digits)) : spell(line, cells))).join('\n') }
|
|
91
92
|
return SPELLED.includes(part.tag) ? { ...part, text: spell(part.text, cells) } : part
|
|
92
93
|
}
|
|
93
94
|
const now = () => [...fields.map(({ label }) => [label, base[label]]), ...worked.map(([name]) => [name, cells[name]])].map(([name, held]) => [name, typeof held === 'number' ? plain(held) : held]).filter(([, held]) => held !== '').map(([name, held]) => `${name}: ${held}`)
|
package/caps/interactive/map.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// Maps (D291): <app-map> in a page, its GeoJSON as its text, which the page may change to move it (a
|
|
2
3
|
// form beside it, say); a place, a route or an area clicked tells the page (`pick`, with what it
|
|
3
4
|
// says of itself). Lent to a page that holds one, as a ```geojson block in an answer is a page made of
|
|
@@ -22,7 +23,13 @@ const routed = (url) => url.replace(/^(https?):\/\//, 'jean://$1/')
|
|
|
22
23
|
/** @param {string} url */
|
|
23
24
|
const direct = (url) => url.replace(/^jean:\/\/(https?)\//, '$1://')
|
|
24
25
|
|
|
25
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* What Jean lends a map (interactive.js): MapLibre and its worker as text, its style sheet, the map service's styles for light and dark,
|
|
28
|
+
* whether maps are allowed, and the words it says; with MapLibre made ready.
|
|
29
|
+
* @typedef {{ library: string, worker: string, css: string, styles: Record<'light' | 'dark', string>, allowed: boolean, strings: Record<string, string>, maplibregl: typeof import('maplibre-gl') }} Lent
|
|
30
|
+
*/
|
|
31
|
+
/** A place its fold names, and what it says of itself. @typedef {{ name: unknown, about: unknown }} Named */
|
|
32
|
+
/** MapLibre, made ready once: its worker classic, and every address it reaches fetched by Jean. @type {Promise<Lent> | undefined} */
|
|
26
33
|
let lent
|
|
27
34
|
const lend = () => (lent ??= ask({ need: 'maplibre' }).then(async (given) => {
|
|
28
35
|
const maplibregl = await import(URL.createObjectURL(new Blob([given.library], { type: 'text/javascript' })))
|
|
@@ -55,7 +62,7 @@ function rgba(colour) {
|
|
|
55
62
|
/** Features of a kind, one or many (MultiPoint is points too). @param {string} type */
|
|
56
63
|
const kind = (type) => ['in', ['geometry-type'], ['literal', [type, `Multi${type}`]]]
|
|
57
64
|
|
|
58
|
-
/** Every position in some GeoJSON. @param {
|
|
65
|
+
/** Every position in some GeoJSON. @param {unknown} value @returns {number[][]} */
|
|
59
66
|
const positions = (value) => (Array.isArray(value) && typeof value[0] === 'number' ? [value] : Array.isArray(value) ? value.flatMap(positions)
|
|
60
67
|
: value && typeof value === 'object' ? Object.entries(value).flatMap(([key, inner]) => (key === 'properties' ? [] : positions(inner))) : [])
|
|
61
68
|
|
|
@@ -132,12 +139,12 @@ class AppMap extends HTMLElement {
|
|
|
132
139
|
tell() {
|
|
133
140
|
const data = this.data, strings = this.given?.strings
|
|
134
141
|
if (!data || !strings) return
|
|
135
|
-
const named = (data.features ?? [data]).map((/** @type {
|
|
142
|
+
const named = (data.features ?? [data]).map((/** @type {{ properties?: Record<string, unknown> | null }} */ one) => ({ name: one?.properties?.name ?? one?.properties?.title ?? positions(one)[0]?.toReversed().join(', '), about: one?.properties?.description })).filter((/** @type {Named} */ { name }) => name)
|
|
136
143
|
const list = this.words.querySelector('ul') ?? this.words.appendChild(document.createElement('ul'))
|
|
137
|
-
list.replaceChildren(...named.map((/** @type {
|
|
144
|
+
list.replaceChildren(...named.map((/** @type {Named} */ { name, about }) => Object.assign(document.createElement('li'), { dir: 'auto', textContent: about ? `${name}: ${about}` : name })))
|
|
138
145
|
this.words.hidden = !named.length
|
|
139
146
|
if (!this.words.querySelector('summary')) this.words.prepend(Object.assign(document.createElement('summary'), { textContent: strings.words }))
|
|
140
|
-
this.map?.getCanvas().setAttribute('aria-label', named.length ? strings.named.replace('{places}', new Intl.ListFormat(document.documentElement.lang || undefined).format(named.map((/** @type {
|
|
147
|
+
this.map?.getCanvas().setAttribute('aria-label', named.length ? strings.named.replace('{places}', new Intl.ListFormat(document.documentElement.lang || undefined).format(named.map((/** @type {Named} */ { name }) => String(name)))) : strings.map)
|
|
141
148
|
}
|
|
142
149
|
|
|
143
150
|
/** The map service's style for the page's light or dark. */
|
package/caps/interactive/mode.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// Visual answers as a mode of the box (D300): a row of + turns it on, and it shows at the foot of the box,
|
|
2
3
|
// pressed, until pressed again. While it is on, each message comes with a note that asks the brain to
|
|
3
4
|
// follow the steps of Jean's own ready-made skill Visual answers (caps/skills/directory/visual),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// A diagram in a page (D291, D592), lent to it as it appears: <app-diagram> holds Mermaid as its text, which the page's own code
|
|
2
3
|
// may set, and asks Jean for its picture, drawn by Pele in the room's colours, again when its text, the room's light or dark or
|
|
3
4
|
// its look changes. Its text shows nowhere; one Pele can't read keeps what it showed.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// Pages of parts (D631): a ```html block holding only the parts the visual skill names is data, as Markdown is, read here and
|
|
2
3
|
// drawn in the answer itself (./view-parts.js) rather than in a frame: key figures, cards, a table, a chart and a form, nested as
|
|
3
4
|
// the skill shows them, and an <aside> with a map or a diagram. Each part's lines become what it draws. Anything else (a script,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// What visual answers draw (D291, D631), each as a start drawn at once that a document's "/" offers (D485): a page, the charts a page
|
|
3
|
+
// draws, diagrams, a map, a timeline and key figures. Each has its name's key among a document's strings, a glyph, a few English words
|
|
4
|
+
// to find it by as well as its name, and its Markdown, as an answer writes it. Pure, so a document reads it without the rest of this capability.
|
|
5
|
+
|
|
6
|
+
/** @type {{ key: string, glyph: string, words: string, markdown: string }[]} */
|
|
7
|
+
export const STARTS = [
|
|
8
|
+
{ key: 'page', glyph: '</>', words: 'page html app web interactive', markdown: '```html\n```' },
|
|
9
|
+
...Object.entries({ bar: ['▃▇', 'column histogram'], line: ['∿', 'trend curve'], area: ['◢', 'filled'], pie: ['◔', 'donut doughnut share'], hbar: ['☰', 'horizontal across ranking'] }).map(([kind, [glyph, more]]) => ({ key: `${kind}Chart`, glyph, words: `chart graph plot ${kind} ${more}`, markdown: `\`\`\`html\n<app-chart kind="${kind}">\nA | B | C | D\n1: 3, 5, 2, 6\n</app-chart>\n\`\`\`` })),
|
|
10
|
+
{ key: 'flowchart', glyph: '◇', words: 'diagram flowchart graph process decision mermaid', markdown: '```mermaid\nflowchart LR\n A --> B\n```' },
|
|
11
|
+
{ key: 'mindMap', glyph: '⊛', words: 'diagram mind map ideas brainstorm mermaid', markdown: '```mermaid\nmindmap\n root((A))\n B\n C\n D\n```' },
|
|
12
|
+
{ key: 'sequence', glyph: '⇄', words: 'diagram sequence messages exchange mermaid', markdown: '```mermaid\nsequenceDiagram\n A->>B: 1\n B-->>A: 2\n```' },
|
|
13
|
+
{ key: 'map', glyph: '⌖', words: 'map places geojson', markdown: '```geojson\n{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[2.35,48.86]},"properties":{}}]}\n```' },
|
|
14
|
+
{ key: 'timeline', glyph: '◷', words: 'timeline schedule agenda dates history', markdown: '- **09:00** A\n- **10:30** B\n- **12:00** C' },
|
|
15
|
+
{ key: 'figures', glyph: '#', words: 'key figures numbers metrics stats kpi', markdown: '- **3** A\n- **85%** B\n- **12** C' },
|
|
16
|
+
]
|
package/caps/interactive/test.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// Apps played before the turn ends (D689): each page with a script that a step of an answer wrote is played out of sight, as
|
|
2
3
|
// Games plays a game (D648), in a frame of its kind (preview.html), given what it kept: what goes wrong is caught as it starts,
|
|
3
4
|
// then as each of its controls is used once, its buttons pressed and its fields changed; nothing it sends or saves goes anywhere.
|
|
@@ -34,7 +35,7 @@ setTimeout(()=>parent.postMessage({faults},'*'),400)})}</script>`
|
|
|
34
35
|
* @param {string} source @param {Record<string, string>} storage what it kept @param {AbortSignal} [signal] @returns {Promise<string[]>}
|
|
35
36
|
*/
|
|
36
37
|
function play(source, storage, signal) {
|
|
37
|
-
const { allows, sites } = pageRights(
|
|
38
|
+
const { allows, sites } = pageRights(app.settings.peek(), app.policy)
|
|
38
39
|
const box = Object.assign(document.createElement('div'), { className: 'page-test', inert: true }), frame = Object.assign(document.createElement('iframe'), { src: new URL('../../preview.html', import.meta.url).href })
|
|
39
40
|
frame.setAttribute('sandbox', PAGE_SANDBOX)
|
|
40
41
|
box.setAttribute('aria-hidden', 'true')
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
1
2
|
// A page of parts (D631), drawn in the answer itself from what ./parts.js reads in it: key figures as the answers' own (D215),
|
|
2
3
|
// cards side by side, a table whose heads sort it, a chart drawn by Charts (D196), unlocked on sight, a form that adds a row to a
|
|
3
4
|
// table of the page for this visit or sends its fields as the user's next message, a map or a diagram as the answers' own, and
|
|
@@ -22,7 +23,10 @@ import { parse, all, bound, key, frozen, figures, table, chart, form, number, ch
|
|
|
22
23
|
import { shared } from './live.js'
|
|
23
24
|
|
|
24
25
|
/** @import { Part } from './parts.js' */
|
|
25
|
-
/**
|
|
26
|
+
/** @import { Signal } from '@preact/signals-core' */
|
|
27
|
+
/** @import { Loaded } from '../tables/tables.js' */
|
|
28
|
+
/** @import { Property } from '../tables/table.js' */
|
|
29
|
+
/** A part as it is drawn: one that shows a collection with its lines filled, the collection followed, and a form's columns; or the name of one not here, or of one its `where` can't filter. @typedef {Part & { live?: Signal<Loaded | null>, columns?: Property[], missing?: string, unread?: string }} Shown */
|
|
26
30
|
|
|
27
31
|
/** A chart's option for ECharts: bars, lines, areas, bars across or a pie, by its labels and series. @param {ReturnType<typeof chart>} drawing */
|
|
28
32
|
function option({ kind, labels, series }) {
|
|
@@ -65,7 +69,7 @@ customElements.define('app-parts', class extends HTMLElement {
|
|
|
65
69
|
given = new Map()
|
|
66
70
|
/** How each of its tables is sorted, by its place among them: by which column, and whether down. @type {Map<number, { column: number, down: boolean }>} */
|
|
67
71
|
sorted = new Map()
|
|
68
|
-
/** The collections its parts name, by name: followed, a signal; being read, null; out of its reach, false. @type {Map<string,
|
|
72
|
+
/** The collections its parts name, by name: followed, a signal; being read, null; out of its reach, false. @type {Map<string, Signal<Loaded | null> | null | false>} */
|
|
69
73
|
followed = new Map()
|
|
70
74
|
/** What lets them go with it. @type {(() => void)[]} */
|
|
71
75
|
holds = []
|
package/caps/layouts/layouts.css
CHANGED