Commit Graph

21 Commits

Author SHA1 Message Date
Kyle Fang
c1601d2e5b feat: remove spell check @react-telegram/core@0.1.0 @react-telegram/mtcute-adapter@0.1.0 2025-07-01 10:33:13 +08:00
Kyle Fang
491dc831cf feat: add push to allow commands 2025-07-01 10:26:11 +08:00
Kyle Fang
2d57a7c9c9 fix: resolve GitHub Actions workflow failures
- Add README.md to packages/examples for docs workflow
- Fix CI workflow bun filter commands and add test env vars
- Add security permissions for SARIF upload in security workflow
- Document NPM_TOKEN requirement in release workflow

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-01 10:22:16 +08:00
Kyle Fang
f83027e79d feat: add comprehensive CI/CD pipeline with GitHub Actions
- Add CI workflow for testing, type checking, and building
- Add publish workflow for npm releases
- Add automated release workflow with changesets
- Add PR checks for changesets and formatting
- Add security scanning workflow
- Add documentation validation workflow
- Configure changesets for version management
- Add Prettier for code formatting
- Add unit tests for core and adapter packages
- Add contributing guidelines and release documentation
- Configure Dependabot for dependency updates
- Update README with CI badges

This establishes a complete CI/CD pipeline for automated testing,
versioning, and publishing of the React Telegram packages.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-01 10:10:22 +08:00
Kyle Fang
457f933273 refactor: reorganize into monorepo with Bun workspaces
- Split project into three packages:
  - @react-telegram/core: Core React reconciler
  - @react-telegram/mtcute-adapter: MTCute Telegram adapter
  - @react-telegram/examples: Example bots (private)
- Add <br /> tag support for line breaks
- Update all examples to use <br /> instead of {'\n'}
- Configure Bun workspaces for better package management
- Update imports to use package names instead of relative paths
- Update README with new installation instructions
- Remove test files (moved to separate testing setup)

BREAKING CHANGE: Package names changed from react-telegram to @react-telegram/*

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-01 09:58:46 +08:00
Kyle Fang
19ebc996d6 feat: add <br /> tag support and update examples
- Introduced a new <br /> tag for line breaks in JSX, enhancing readability and usability.
- Updated multiple example components to utilize the <br /> tag instead of newline characters for better formatting.
- Added a new BrDemo component to showcase the <br /> tag functionality.
2025-07-01 09:39:16 +08:00
Kyle Fang
cd808b8d4f fix: input not persist after rerender 2025-07-01 09:30:49 +08:00
Kyle Fang
a543be55f0 fix: improve button text extraction for complex children
- Fixed button text extraction to handle arrays, expressions, and mixed content
- Buttons with template literals now display correctly (e.g., "Switch to {mode} Mode")
- Added comprehensive tests for button text extraction edge cases
- Removed accidentally committed editReactMessage method

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-01 09:20:29 +08:00
Kyle Fang
8c1b225e3a feat: add auto delete 2025-07-01 08:49:40 +08:00
Kyle Fang
3ea8517101 feat: add input 2025-07-01 08:44:24 +08:00
Kyle Fang
5ab2a8b5aa docs: update README with comprehensive features, quick start guide, example bots, and API reference 2025-06-30 22:47:35 +08:00
Kyle Fang
faf11834d6 feat: add command handler 2025-06-30 22:38:33 +08:00
Kyle Fang
72ab464868 fix: example 2025-06-30 21:40:01 +08:00
Kyle Fang
782b63fced fix: resolve TypeScript errors in reconciler and mtcute-adapter
- Update MTCute imports to use correct types from @mtcute/tl
- Fix MessageEntity construction with proper discriminated union types
- Fix callback query data handling for string/Uint8Array
- Update inline keyboard markup structure
- Fix reconciler host config type issues
- Add @ts-expect-error for complex React reconciler types

Note: One persistence mode test is still failing - static content
in formatted elements loses children on re-render. This appears
to be a complex issue with how React's persistence mode handles
child reconciliation.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-30 20:58:50 +08:00
Kyle Fang
f404bb9af0 fix: compile 2025-06-30 20:46:14 +08:00
Kyle Fang
4d535a30d2 wip 2025-06-30 20:43:16 +08:00
Kyle Fang
6695d8c008 feat: add onRenderContainer 2025-06-30 20:20:06 +08:00
Kyle Fang
44559d345c fix: preserve static content in persistence mode during re-renders
- Update cloneInstance to properly handle keepChildren parameter
- Fix static content (bold, blockquote) losing children on re-render
- Add comprehensive tests for persistence mode behavior
- Ensure dynamic content updates while static content is preserved

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-30 19:40:18 +08:00
Kyle Fang
435696b86e feat: update types package 2025-06-30 18:49:25 +08:00
Kyle Fang
7469aa0ebf inital working version 2025-06-30 18:41:06 +08:00
Kyle Fang
cd355a4a1d chore: init 2025-06-30 18:01:23 +08:00