@orbitconnect/react 0.1.0 → 0.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbitconnect/react",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "description": "OrbitConnect React SDK — drop-in real-time chat, voice/video calls, and meetings",
5
5
  "author": "OrbitConnect <sdk@orbitconnect.cloud>",
6
6
  "license": "MIT",
@@ -46,7 +46,11 @@
46
46
  "typecheck": "tsc -p tsconfig.app.json --noEmit",
47
47
  "lint": "eslint .",
48
48
  "preview": "vite preview",
49
- "prepublishOnly": "npm run build"
49
+ "preversion": "npm run build",
50
+ "version": "bash scripts/version.sh && git add -A",
51
+ "postversion": "git push && git push --tags",
52
+ "prepublishOnly": "npm run build",
53
+ "postpublish": "bash scripts/postpublish.sh"
50
54
  },
51
55
  "peerDependencies": {
52
56
  "react": ">=18.0.0",
package/CHANGELOG.md DELETED
@@ -1,56 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to `@orbitconnect/react` will be documented here.
4
-
5
- The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
-
7
- ---
8
-
9
- ## [0.1.0] — 2025-04-27
10
-
11
- Initial public release.
12
-
13
- ### Added
14
-
15
- **Core**
16
- - `OrbitProvider` — root context provider with WebSocket lifecycle, token refresh (`onTokenExpired`), and theming
17
- - `useOrbit` — access `apiClient`, `appUserId`, `clientId`, `baseUrl`, `appConfig` from any child
18
- - `useAppConfig` — resolved feature flags and icon overrides from `AppConfig`
19
-
20
- **Widgets**
21
- - `Chat` — full-featured chat UI: conversation list, message bubbles, composer, reactions, reply/quote, file/image/video/audio attachments, voice recording, emoji & sticker picker, message search, pin, batch select/delete/forward, presence, call history
22
- - `VideoCall` — floating WebRTC call overlay, renders automatically when a call is active
23
- - `MeetingWidget` — full video-conferencing room with participant grid, screen share, reactions, and hand-raise
24
-
25
- **Hooks**
26
- - `useMessages` — real-time messages with typing indicators, pinned messages, read receipts, reactions, recall, edit
27
- - `useConversations` — conversation list with live presence, typing, and delivery status
28
- - `useCall` — full call lifecycle: initiate, accept, reject, end, mute, camera toggle
29
- - `useMeeting` — meeting lifecycle: join, leave, mute, screen share, raise hand, reactions
30
- - `useMedia` — file upload with `upload()` and `getUrl()`
31
- - `useNotifications` — in-app notification feed with unread count, mark read, mark all read, clear
32
- - `usePresence` — real-time presence status per user (`online` / `away` / `offline`)
33
- - `useCallHistory` — call records with caller/callee info
34
- - `useRealtime` — session lifecycle with transitions (chat → call → meeting) and custom event emission
35
- - `useOrbitEvent` — subscribe to any raw WebSocket event
36
- - `useOrbitListener` — access the raw socket and connection status
37
-
38
- **Meeting context**
39
- - `MeetingProvider`, `MeetingContext`, `useMeetingContext` — standalone meeting context for custom meeting UIs
40
-
41
- **Theme**
42
- - `ThemeProvider`, `useTheme`, `darkTheme`, `lightTheme`
43
- - Full CSS variable token set: backgrounds, foregrounds, bubbles, composer, borders, radii, fonts
44
- - `PartialTheme` type for partial overrides via `OrbitProvider`
45
-
46
- **Stylesheet**
47
- - `dist/index.css` — pre-built Tailwind CSS stylesheet, import once via `import '@orbitconnect/react/index.css'`
48
-
49
- **Build**
50
- - Vite library build (ESM only) with React Compiler (babel-plugin-react-compiler)
51
- - TypeScript declarations emitted to `dist/` via `tsc -p tsconfig.build.json`
52
- - Tailwind CSS minified and bundled to `dist/index.css`
53
-
54
- ---
55
-
56
- [0.1.0]: https://github.com/core-dynamics/orbitconnect-sdk/releases/tag/react-v0.1.0