@hadoku/prefs-client 1.1.15 → 1.1.16

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.
@@ -55,9 +55,16 @@ declare function avatarHtml(o: {
55
55
  declare function messageHtml(text: string, worn?: AvatarCosmetics, opts?: {
56
56
  keep?: boolean;
57
57
  }): string;
58
+ /**
59
+ * When a reveal's last piece finishes, put the plain text back. An
60
+ * `animationend` handler: ensureCosmeticsStyles installs it on the document;
61
+ * a page that ships the stylesheet statically (and must not touch the
62
+ * document) attaches it to its own container instead.
63
+ */
64
+ declare function finishReveal(e: AnimationEvent): void;
58
65
  /** The whole stylesheet, with asset URLs under `assetBase`. */
59
66
  declare function cosmeticsCss(assetBase?: string): string;
60
67
  /** Add the stylesheet and the reveal clean-up to a document, once. */
61
68
  declare function ensureCosmeticsStyles(doc?: Document, assetBase?: string): void;
62
69
 
63
- export { AvatarCosmetics, COSMETICS_ASSET_BASE, Placement, avatarHtml, colourStyle, cosmeticsCss, decorHtml, ensureCosmeticsStyles, messageHtml, nameHtml, placementTransform };
70
+ export { AvatarCosmetics, COSMETICS_ASSET_BASE, Placement, avatarHtml, colourStyle, cosmeticsCss, decorHtml, ensureCosmeticsStyles, finishReveal, messageHtml, nameHtml, placementTransform };
package/dist/cosmetics.js CHANGED
@@ -531,6 +531,7 @@ export {
531
531
  decorHtml,
532
532
  emptyLoadout,
533
533
  ensureCosmeticsStyles,
534
+ finishReveal,
534
535
  fitPlacement,
535
536
  messageHtml,
536
537
  nameHtml,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/prefs-client",
3
- "version": "1.1.15",
4
- "gitHead": "bdf1c74cc458107cf5cb7a427fbfc319cb5f5b95",
3
+ "version": "1.1.16",
4
+ "gitHead": "1870f7b16a89299f75df81e0fc3b0dda3af35798",
5
5
  "description": "Client SDK for the hadoku unified preferences store. Wraps /prefs/api/v1/* with localStorage caching, debounced writes, Zod-validated reads, and a usePrefs() React hook, plus match history, ratings and leaderboards for every game (./games), the one resolved avatar per user (./avatar), and the avatar cosmetics renderer (./cosmetics).",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",