Skip to content

fix: TypingAnimation package.json export + dedicated COMPONENTS_REFERENCE entry#25

Merged
whykusanagi merged 1 commit into
mainfrom
fix/typing-animation-export
May 18, 2026
Merged

fix: TypingAnimation package.json export + dedicated COMPONENTS_REFERENCE entry#25
whykusanagi merged 1 commit into
mainfrom
fix/typing-animation-export

Conversation

@whykusanagi
Copy link
Copy Markdown
Owner

Summary

Pre-existing 0.1.x-era gap surfaced during 0.2.0 doc audit:

  • TypingAnimation (src/core/typing-animation.js) is the canonical streaming/typed-reveal class but had no package.json export
  • No dedicated ## TypingAnimation section in docs/COMPONENTS_REFERENCE.md — only mentioned as comparison points in DecryptReveal / PhraseCycle sections
  • README import examples used the long internal path @whykusanagi/corrupted-theme/src/core/typing-animation.js instead of an idiomatic export

Fixes

  • package.json — adds "./typing-animation": "./src/core/typing-animation.js"
  • docs/COMPONENTS_REFERENCE.md — new ## TypingAnimation section inserted immediately before ## DecryptReveal, so the 3 text-reveal patterns (TypingAnimation | DecryptReveal | PhraseCycle) are contiguous in the doc. TOC entry updated.
  • README.md — 2 import examples updated from the long path to '@whykusanagi/corrupted-theme/typing-animation'. Code examples now use the canonical duration + bufferEnabled + bufferFlickerSpeed options (dropped the deprecated glitchChance from the old examples).

Test plan

  • node -e "require('./package.json').exports['./typing-animation']"./src/core/typing-animation.js
  • import('./src/core/typing-animation.js') loads and TypingAnimation.SFW_JAPANESE.length === 40
  • Zero long-path imports remain in README (was 2, now 0)
  • npm test — 166/166 pass

🤖 Generated with Claude Code

Pre-existing gap surfaced during 0.2.0 doc audit: TypingAnimation
(src/core/typing-animation.js) is the canonical streaming/typed-reveal
class but had no package.json export and no dedicated COMPONENTS_REFERENCE
entry. README import examples used the long internal path
'src/core/typing-animation.js' instead of an idiomatic export.

Fixes:
- package.json: add './typing-animation' → './src/core/typing-animation.js'
- docs/COMPONENTS_REFERENCE.md: add ## TypingAnimation section
  immediately before DecryptReveal so the 3 text-reveal patterns
  (TypingAnimation | DecryptReveal | PhraseCycle) are contiguous and
  the conceptual distinction is reinforced
- docs/COMPONENTS_REFERENCE.md: TOC entry updated to include TypingAnimation
- README.md: 2 import examples updated from long path to './typing-animation'
- README.md: dropped deprecated 'glitchChance' option from example code,
  showed canonical 'duration' + 'bufferEnabled' + 'bufferFlickerSpeed'
  pattern instead
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
corrupted-theme bd775b8 Commit Preview URL

Branch Preview URL
May 18 2026, 10:21 AM

@whykusanagi whykusanagi merged commit 08fea24 into main May 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant