# Changelog

All notable changes to `@funhub-ugc/comment-sdk` will be documented in this file.

## 0.3.1

- upgraded the platform runtime alias to `@funhub/platform-beta@1.3.0-beta.6`

## 0.3.0

- added focused-comment navigation and source context fields for comment publishing
- added comment pagination, count synchronization, and compact count display
- improved comment media rendering, image previews, video playback, and mobile/desktop layouts
- fixed comment detail scrolling, reply behavior, content expansion, and avatar interactions
- fixed published type declaration entrypoints and pending publish button layout
- pinned the platform runtime to `@funhub/platform-beta@1.3.0-beta.5` through an npm alias
- added page metadata support for comment SDK materials

## 0.1.19

- aligned comment detail replies with backend `commentThread` ordering and pagination
- refined nested reply mention rendering and own-comment badge placement
- shared client IP lookup with ai-fe internal comment publishing

## 0.1.18

- kept comment detail open when replying from the detail sheet and layered the composer above it
- fixed the own-comment badge positioning inside comment detail
- improved comment detail touch scrolling behavior in mobile browsers

## 0.1.16

- fixed a comment detail like-state sync loop that could trigger React maximum update depth errors after liking the detail comment

## 0.1.15

- fixed image-only comments in the comment detail sheet by skipping expandable text rendering when no text is present

## 0.1.14

- fixed image-only comments by normalizing empty comment content and skipping expandable text rendering when no text is present

## 0.1.13

- updated the discussion composer placeholder copy and kept the collapsed composer trigger single-line on narrow screens
- made the collapsed composer avatar open the current user's profile when available
- changed comment action bubbles to open comment detail while keeping the explicit reply button as the reply entrypoint

## 0.1.12

- fixed comment action bubbles to open the reply composer instead of comment detail
- hardened comment image rendering when browser image load events are missed
- fixed single-image comment media sizing fallback
- centered the login redirect confirmation dialog in mobile layouts

## 0.1.11

- declared `@emoji-mart/react` as a runtime dependency for the emoji picker bundle

## 0.1.4

- fixed browser bundle output to avoid `node:module` runtime injection in consumer apps
- added automatic `ugcId` resolution from routes like `/video/{id}`
- changed editor behavior so `ugcId` is preview-only instead of being treated as publish-time required input
- removed the editor-only dashed border from the detail discussion widget wrapper
- clarified empty-state messaging when preview cannot resolve a usable `ugcId`

## 0.1.3

- published the first route-aware discussion material version
- exposed low-code `detail-discussion` material for admin integration

## 0.1.1

- initial public package release
- exposed base comment component and material entrypoints
