{"_id":"@astralibx/telegram-ui","_rev":"5-b782a193fad06277c73655f1b0c47cde","name":"@astralibx/telegram-ui","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.1":{"name":"@astralibx/telegram-ui","version":"0.1.1","license":"MIT","_id":"@astralibx/telegram-ui@0.1.1","maintainers":[{"name":"astralib","email":"1997hariprakash@gmail.com"}],"homepage":"https://github.com/Hariprakash1997/astralib#readme","bugs":{"url":"https://github.com/Hariprakash1997/astralib/issues"},"dist":{"shasum":"0905cc7fecaed08a9c68c65dda481a8268efabde","tarball":"https://registry.npmjs.org/@astralibx/telegram-ui/-/telegram-ui-0.1.1.tgz","fileCount":8,"integrity":"sha512-wmSCVlj0U7WsCVegEpPyUCbSarM1IaZ5G9Z78MxzAND4bWVvwXr4z9ENCLnQNUcmPOuw9oVxOKC89qBAMLs3SQ==","signatures":[{"sig":"MEUCIHNygJzS0oeGHtRxLZQ3PJXsRPtWa6F121F/6oJZS9JtAiEA5FDfJVzAnTkOUWnc/lKPiRkZLvyKnCdykZQZbnJk+iM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":355619},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./api":{"import":{"types":"./dist/api.d.ts","default":"./dist/api.js"}}},"gitHead":"df956e4b9f30b71fc0ee0eba6b811eee2092bf52","scripts":{"dev":"vite","lint":"eslint src/","test":"echo 'No unit tests — Lit components tested via browser'","build":"vite build","clean":"rm -rf dist"},"_npmUser":{"name":"astralib","email":"1997hariprakash@gmail.com"},"repository":{"url":"git+https://github.com/Hariprakash1997/astralib.git","type":"git","directory":"packages/telegram/ui"},"_npmVersion":"10.9.4","description":"Lit Web Components for the @astralibx telegram ecosystem","directories":{},"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"devDependencies":{"lit":"^3.2.0","vite":"^6.0.0","vitest":"^3.0.0","typescript":"^5.8.0"},"peerDependencies":{"lit":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/telegram-ui_0.1.1_1773730925522_0.7175628996844912","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@astralibx/telegram-ui","version":"0.1.2","license":"MIT","_id":"@astralibx/telegram-ui@0.1.2","maintainers":[{"name":"astralib","email":"1997hariprakash@gmail.com"}],"homepage":"https://github.com/Hariprakash1997/astralib#readme","bugs":{"url":"https://github.com/Hariprakash1997/astralib/issues"},"dist":{"shasum":"60bd19b62aaba14b75ea05e7f6e50f51f79f324c","tarball":"https://registry.npmjs.org/@astralibx/telegram-ui/-/telegram-ui-0.1.2.tgz","fileCount":8,"integrity":"sha512-M/JthIludhqTNrVGqfqL9fYfZzRaP9pHDnV+Cw+Xm11DFrn6nBAcWoXsLcNeeebs2UpQ3CEkR9HVr2KLxM8lCg==","signatures":[{"sig":"MEUCIQDE5X4SGUkKZU0BjQb4a5tTXnYe/9MX13nTk3Sn51unXAIgI4d4QQ8MI+DeWwauZSYmdtVwgttF3L7z16iEW6BT5Nc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":355619},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./api":{"import":{"types":"./dist/api.d.ts","default":"./dist/api.js"}}},"gitHead":"fd42f0db8c9fd08982aee61f94304819cd425d54","scripts":{"dev":"vite","lint":"eslint src/","test":"echo 'No unit tests — Lit components tested via browser'","build":"vite build","clean":"rm -rf dist"},"_npmUser":{"name":"astralib","email":"1997hariprakash@gmail.com"},"repository":{"url":"git+https://github.com/Hariprakash1997/astralib.git","type":"git","directory":"packages/telegram/ui"},"_npmVersion":"10.9.4","description":"Lit Web Components for the @astralibx telegram ecosystem","directories":{},"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"devDependencies":{"lit":"^3.2.0","vite":"^6.0.0","vitest":"^3.0.0","typescript":"^5.8.0"},"peerDependencies":{"lit":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/telegram-ui_0.1.2_1773733708681_0.8623950207297988","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@astralibx/telegram-ui","version":"0.2.0","license":"MIT","_id":"@astralibx/telegram-ui@0.2.0","maintainers":[{"name":"astralib","email":"1997hariprakash@gmail.com"}],"homepage":"https://github.com/Hariprakash1997/astralib#readme","bugs":{"url":"https://github.com/Hariprakash1997/astralib/issues"},"dist":{"shasum":"f9f2c7f6ad084cda62f57fa7b53ba32417aaef4a","tarball":"https://registry.npmjs.org/@astralibx/telegram-ui/-/telegram-ui-0.2.0.tgz","fileCount":8,"integrity":"sha512-UaKekD4nI6k2fqlE5tIcWbtqRRgV+VuKNkJjoatWLeQVKV6Or9Cgac7mXuo2hoOPMwmsuiGij2ToWJpPL5zRkg==","signatures":[{"sig":"MEUCIQDtxpB5EDYgrRN12piyejXm1Voa6wgsK2DcWztUkmBNXgIgVjYem13pHmzJXQdQdt2CAB/OUbxNQNheu9ST74A6ib0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":380380},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./api":{"import":{"types":"./dist/api.d.ts","default":"./dist/api.js"}}},"gitHead":"2799c3a72496f6989c30cb5e2954ea0f4c34d66b","scripts":{"dev":"vite","lint":"eslint src/","test":"echo 'No unit tests — Lit components tested via browser'","build":"vite build","clean":"rm -rf dist"},"_npmUser":{"name":"astralib","email":"1997hariprakash@gmail.com"},"repository":{"url":"git+https://github.com/Hariprakash1997/astralib.git","type":"git","directory":"packages/telegram/ui"},"_npmVersion":"10.9.4","description":"Lit Web Components for the @astralibx telegram ecosystem","directories":{},"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"devDependencies":{"lit":"^3.2.0","vite":"^6.0.0","vitest":"^3.0.0","typescript":"^5.8.0"},"peerDependencies":{"lit":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/telegram-ui_0.2.0_1773745863599_0.4949774682611161","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@astralibx/telegram-ui","version":"0.3.0","license":"MIT","_id":"@astralibx/telegram-ui@0.3.0","maintainers":[{"name":"astralib","email":"1997hariprakash@gmail.com"}],"homepage":"https://github.com/Hariprakash1997/astralib#readme","bugs":{"url":"https://github.com/Hariprakash1997/astralib/issues"},"dist":{"shasum":"bb494b6b35bd970da33351e96b1aff11b523a2b4","tarball":"https://registry.npmjs.org/@astralibx/telegram-ui/-/telegram-ui-0.3.0.tgz","fileCount":8,"integrity":"sha512-go26bNVBjf+QQ6D79iCiT8Y6Apvgef7xgHXmAtLssbMUTbSJA9tJqtJp2A8dTBBljp9Rr7mA9Ipnentga+20/Q==","signatures":[{"sig":"MEQCICRHiSLY29uAcYEpyYP0UURQfNiE6BfY5deIbEsytE+HAiAGphimhLtdysE67pt8zvio6s0sPaOyiUVVSqbJpoXz5Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":405607},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./api":{"import":{"types":"./dist/api.d.ts","default":"./dist/api.js"}}},"gitHead":"b96fb6e63feccf19591d627ddda0c3d04f165ad2","scripts":{"dev":"vite","lint":"eslint src/","test":"echo 'No unit tests — Lit components tested via browser'","build":"vite build","clean":"rm -rf dist"},"_npmUser":{"name":"astralib","email":"1997hariprakash@gmail.com"},"repository":{"url":"git+https://github.com/Hariprakash1997/astralib.git","type":"git","directory":"packages/telegram/ui"},"_npmVersion":"10.9.4","description":"Lit Web Components for the @astralibx telegram ecosystem","directories":{},"_nodeVersion":"22.22.1","_hasShrinkwrap":false,"devDependencies":{"lit":"^3.2.0","vite":"^6.0.0","vitest":"^3.0.0","typescript":"^5.8.0"},"peerDependencies":{"lit":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/telegram-ui_0.3.0_1773814061645_0.45366809612687176","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@astralibx/telegram-ui","version":"1.0.0","description":"Lit Web Components for the @astralibx telegram ecosystem","repository":{"type":"git","url":"git+https://github.com/Hariprakash1997/astralib.git","directory":"packages/telegram/ui"},"type":"module","main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./api":{"import":{"types":"./dist/api.d.ts","default":"./dist/api.js"}}},"scripts":{"build":"vite build","dev":"vite","test":"echo 'No unit tests — Lit components tested via browser'","lint":"eslint src/","clean":"rm -rf dist"},"peerDependencies":{"lit":"^3.0.0"},"dependencies":{"@astralibx/rule-engine-ui":"*"},"devDependencies":{"lit":"^3.2.0","vite":"^6.0.0","typescript":"^5.8.0","vitest":"^3.0.0"},"license":"MIT","_id":"@astralibx/telegram-ui@1.0.0","gitHead":"4d2a55b3968e55f083d4a957eb2319acb1fa5ba3","bugs":{"url":"https://github.com/Hariprakash1997/astralib/issues"},"homepage":"https://github.com/Hariprakash1997/astralib#readme","_nodeVersion":"22.22.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-ruX33YFqnzXNuAQL3uHLIvEPe3bQNPWFwhmhPoZMIBPTv+8znLxASekU70n6tNfhCHOZ9hiElYOBKXDORSIg8A==","shasum":"008b4c790d2ac7e421c9c17633d00f6c2d50a700","tarball":"https://registry.npmjs.org/@astralibx/telegram-ui/-/telegram-ui-1.0.0.tgz","fileCount":8,"unpackedSize":648759,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDpRU3jbpHeibVVnkW4OhC7RC9UakuojCuHFljvo6AjfQIhALCOQqG/35uABm9wzQVa6K0hkzopZuGexTe0dM7nCYs8"}]},"_npmUser":{"name":"astralib","email":"1997hariprakash@gmail.com"},"directories":{},"maintainers":[{"name":"astralib","email":"1997hariprakash@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/telegram-ui_1.0.0_1773998152772_0.23932731797299267"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-17T07:02:05.420Z","modified":"2026-03-20T09:15:53.093Z","0.1.1":"2026-03-17T07:02:05.688Z","0.1.2":"2026-03-17T07:48:28.828Z","0.2.0":"2026-03-17T11:11:03.748Z","0.3.0":"2026-03-18T06:07:41.788Z","1.0.0":"2026-03-20T09:15:52.966Z"},"bugs":{"url":"https://github.com/Hariprakash1997/astralib/issues"},"license":"MIT","homepage":"https://github.com/Hariprakash1997/astralib#readme","repository":{"type":"git","url":"git+https://github.com/Hariprakash1997/astralib.git","directory":"packages/telegram/ui"},"description":"Lit Web Components for the @astralibx telegram ecosystem","maintainers":[{"name":"astralib","email":"1997hariprakash@gmail.com"}],"readme":"# @astralibx/telegram-ui\n\nLit Web Components for Telegram account management, campaigns, inbox, and bot analytics -- built on native Custom Elements that work in any framework.\n\nRule-engine components (templates, rules, throttle, run history) are provided by `@astralibx/rule-engine-ui` and re-exported from this package. Telegram-specific components (accounts, inbox, bot) are built here.\n\nPart of the [@astralibx](https://github.com/astralibx) telegram ecosystem:\n- `@astralibx/telegram-account-manager` -- account CRUD, sessions, health, capacity\n- `@astralibx/telegram-rule-engine` -- templates, rules, throttling, runner (wraps `@astralibx/rule-engine`)\n- `@astralibx/telegram-inbox` -- conversations, messages, sessions\n- `@astralibx/telegram-bot` -- bot status, user analytics\n- `@astralibx/rule-engine-ui` -- shared rule-engine UI components (templates, rules, throttle, run history)\n\n## Install\n\n```bash\nnpm install @astralibx/telegram-ui\n```\n\nPeer dependency: `lit ^3.0.0` (included automatically).\n\n## Quick Start\n\n```typescript\nimport { AlxTelegramConfig } from '@astralibx/telegram-ui';\n\n// One-time setup at app bootstrap\nAlxTelegramConfig.setup({\n  accountManagerApi: '/api/telegram-accounts',\n  ruleEngineApi: '/api/telegram-rules',\n  inboxApi: '/api/telegram-inbox',\n  botApi: '/api/telegram-bot',\n  authToken: 'Bearer your-token',\n  theme: 'dark',\n});\n```\n\n```html\n<!-- Drop the all-in-one dashboard anywhere -->\n<alx-telegram-dashboard theme=\"dark\"></alx-telegram-dashboard>\n```\n\n## Components\n\n### Shared (2)\n\n| Tag | Description |\n|-----|-------------|\n| `<alx-telegram-dashboard>` | All-in-one dashboard with tabs, drawer editing, density/theme toggle |\n| `<alx-tg-drawer>` | Slide-in drawer panel for editing forms |\n\n### Account Management (2)\n\n| Tag | Description |\n|-----|-------------|\n| `<alx-tg-account-list>` | Paginated table with status, health score, capacity usage |\n| `<alx-tg-account-form>` | Create/edit form with phone, session string, send limits |\n\n### Rule Engine (6)\n\n| Tag | Description |\n|-----|-------------|\n| `<alx-tg-template-list>` | Template table with message count, variables, category, and clone support |\n| `<alx-tg-template-editor>` | Multi-variant message editor with preview and custom fields |\n| `<alx-tg-rule-list>` | Rules with active toggle, mode badge, last run date, and clone support |\n| `<alx-tg-rule-editor>` | Condition builder, identifier list, template selection |\n| `<alx-tg-run-history>` | Execution logs with sent/failed/skipped stats and duration |\n| `<alx-tg-throttle-settings>` | Per-recipient throttle config: daily/weekly limits, gap days, window mode |\n\n### Inbox (1)\n\n| Tag | Description |\n|-----|-------------|\n| `<alx-tg-inbox>` | Split-pane conversation list + message thread with send support |\n\n### Bot (1)\n\n| Tag | Description |\n|-----|-------------|\n| `<alx-tg-bot-stats>` | Bot status, user stats cards, paginated user table |\n\n### Analytics (1)\n\n| Tag | Description |\n|-----|-------------|\n| `<alx-tg-analytics>` | Send/fail/skip stats, send logs, error logs with date filters |\n\n## API-Only Usage\n\nUse the typed API clients without any UI components:\n\n```typescript\nimport { TelegramAccountAPI, TelegramRuleAPI, TelegramInboxAPI, TelegramBotAPI } from '@astralibx/telegram-ui/api';\n\nconst accounts = new TelegramAccountAPI('/api/telegram-accounts');\nconst list = await accounts.listAccounts({ page: 1, limit: 20 });\n```\n\n## Theming\n\nOverride CSS custom properties on any component or a parent element:\n\n```css\nalx-telegram-dashboard {\n  --alx-primary: #d4af37;\n  --alx-bg: #111;\n  --alx-surface: #1a1a1a;\n  --alx-border: #333;\n  --alx-text: #ccc;\n  --alx-text-muted: #888;\n  --alx-radius: 4px;\n  --alx-font-family: 'Inter', sans-serif;\n}\n```\n\nBuilt-in themes: `alxDarkTheme` and `alxLightTheme` are available as Lit CSS exports.\n\n## Documentation\n\n- [Quick Start](https://github.com/Hariprakash1997/astralib/blob/main/packages/telegram/ui/docs/quick-start.md) -- Pipeline overview, dashboard setup\n- [Configuration](https://github.com/Hariprakash1997/astralib/blob/main/packages/telegram/ui/docs/configuration.md) -- AlxTelegramConfig setup, auth tokens, all options\n- [Components](https://github.com/Hariprakash1997/astralib/blob/main/packages/telegram/ui/docs/components.md) -- All 13 components with properties and events\n- [Types](https://github.com/Hariprakash1997/astralib/blob/main/packages/telegram/ui/docs/types.md) -- Exported types, APIs, styles, utilities\n\n## License\n\nMIT\n","readmeFilename":"README.md"}