Skip to content

v1.4.0

Choose a tag to compare

@github-actions github-actions released this 02 Nov 22:01

Added

  • A table can be laid in the family's five cloths: <kumimoji-table cloth="blue">, mountKumimoji(el, { cloth }) and set({ cloth }), the cloth embed parameter and Builder option, and KUMIMOJI_CLOTHS, isCloth and clothVars from /ui. The demo's header patches lay it through the page's theme.

  • checkKumimoji gives its reason as a code and values as well as in English. A refusal is now { ok: false, reason, code, values }: reason is the sentence it has always been, word for word, and code ("no-hand", "givens-not-bag", "wild-count-wrong", "bag-exceeds-set", "answer-not-grid", "grid-not-the-bag", "tiles-apart", "not-a-word" and "grid-not-finished") and values ({ size } for no-hand, { word } for not-a-word) let a site say it in its own language. KUMIMOJI_CHECK_REASONS lists every code with its English clause, kumimojiRefusal(code, values) makes a refusal, and the types are KumimojiCheckCode and KumimojiCheckValues. A test holds every refusal's reason to its code's clause filled with its values.