@pie-element/shared-controller-utils 0.1.5-next.20261110132055 → 0.1.5-next.20261117175829

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/dist/index.d.ts CHANGED
@@ -8,3 +8,5 @@ export { lockChoices, getShuffledChoices } from './persistence.js';
8
8
  export * as partialScoring from './partial-scoring.js';
9
9
  export { contentLanguage, foldCase, foldDigits, mathContentLanguage, normalizeResponse, } from './response-normalizer.js';
10
10
  export type { NormalizeOptions } from './response-normalizer.js';
11
+ export { LETTER_VARIANTS_HELP } from './letter-variants-help.js';
12
+ export type { LetterVariantsHelpPart } from './letter-variants-help.js';
package/dist/index.js CHANGED
@@ -138,5 +138,19 @@ var d = /[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069\u0640]/g, f = /[\uFB50-\u
138
138
  }, z = (e, t = {}) => {
139
139
  let n = t.latexNumbers ? O : A(t.language), r = (t.ignoreCase ? R(e, t.language) : e).replace(d, "").replace(f, (e) => e.normalize("NFKC")).normalize("NFC");
140
140
  return r = D(r), t.latexNumbers && j(t.language) && (r = r.replace(_, b).replace(y, ", ")), r = r.replace(h, n.decimal).replace(g, n.group), t.foldLetterVariants && (r = r.replace(w, "").replace(C, "ا").replace(/\u0629/g, "ه").replace(/\u0649/g, "ي")), t.ignoreAccents && (r = r.normalize("NFD").replace(/[\u0300-\u036F]/g, "").normalize("NFC")), t.collapseWhitespace && (r = r.replace(/\s+/g, " ").trim()), t.ignoreSlashSpacing && (r = r.replace(/\s*\/\s*/g, "/")), r;
141
- };
142
- export { F as contentLanguage, R as foldCase, D as foldDigits, a as getShuffledChoices, o as lockChoices, I as mathContentLanguage, z as normalizeResponse, s as partialScoring };
141
+ }, B = [
142
+ "Accepts ",
143
+ { ar: "أ إ آ ٱ" },
144
+ " as ",
145
+ { ar: "ا" },
146
+ ", ignores tashkeel, accepts ",
147
+ { ar: "ه" },
148
+ " for ",
149
+ { ar: "ة" },
150
+ " and ",
151
+ { ar: "ي" },
152
+ " for ",
153
+ { ar: "ى" },
154
+ "."
155
+ ];
156
+ export { B as LETTER_VARIANTS_HELP, F as contentLanguage, R as foldCase, D as foldDigits, a as getShuffledChoices, o as lockChoices, I as mathContentLanguage, z as normalizeResponse, s as partialScoring };
@@ -0,0 +1,10 @@
1
+ /** A run of the help text: English words, or Arabic letters that render marked as Arabic. */
2
+ export type LetterVariantsHelpPart = string | {
3
+ ar: string;
4
+ };
5
+ /**
6
+ * The help text authoring shows under each toggle for `foldLetterVariants`, naming the four
7
+ * variants the fold accepts, so it changes with the fold in `response-normalizer.ts`. It is fixed:
8
+ * hosts reword the toggle's label through configuration.
9
+ */
10
+ export declare const LETTER_VARIANTS_HELP: readonly LetterVariantsHelpPart[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/shared-controller-utils",
3
- "version": "0.1.5-next.20261110132055",
3
+ "version": "0.1.5-next.20261117175829",
4
4
  "description": "Controller utility functions for PIE elements",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",