Skip to content

Commit

Permalink
Release/v3.10.3 (#85)
Browse files Browse the repository at this point in the history
* fix: hyperlink text color (#376)

* fix: ASC-21507 - reset form when confirm remove hyperlink (#368)

* fix: hyperlink action condition

* fix: hyperlink css

* fix: remove unused

* fix: hyperlink config condition

* fix: reset form when confirm remove hyperlink

* chore: ASC-22035 - customizations (#378)

* feat: ThemeProvider, CustomizationProvider and IconComponent

* chore: remove unused code

* chore: useAmityComponentProps

* feat: useAmityPage, useAmityComponent, useAmityElement

* chore: update foundation

* fix: uikit hook bug

* fix: update core foundation (theme, modal)

* fix: default color palette

* fix: types

* fix: fix isExcluded

* chore: remove unused code

* fix: typing

* fix: fix a testing workflow

* chore: Apply suggestions from code review

Co-authored-by: Pitchaya T. <[email protected]>

---------

Co-authored-by: Pitchaya T. <[email protected]>

* fix: story tab show with member only (#383)

* chore: ASC-22036 - stylelint (#379)

* chore: stylelint

* chore: add postcss

* chore: update lint scripts

* chore: ASC-22039 - browserslist (#380)

* chore: setup browserslist

* chore: run prettier

* fix: draft video should loop (#369)

* chore: ASC-22040 - node 20 (#381)

* chore: add asdf and change engines field of node version to 20

* chore: pnpm v9

* chore: remove pull_request_template.md

* chore: upgrade github actions

* chore: update node version

---------

Co-authored-by: Chaiwat Trisuwan <[email protected]>

* fix: fix a staging workflow (#389)

* fix: add pnpm install step (#390)

* feat: ASC-22340 - CommunitySearchResults (#391)

* feat: CommunitySearchResults

* fix: update avatar size

* feat: ASC-22294 - PostContent (#392)

* feat: PostContent

* fix: lint

* chore: update package.json

* fix: elements/index

* feat: TopSearchBar (#393)

* feat: SocialHomePage (#394)

* feat: SocialGlobalSearchPage (#395)

* feat: MyCommunities (#396)

* feat: PostDetailPage (#397)

* feat: ASC-22335 -  update routes (#398)

* feat: update route

* chore: remove unused code

* chore: Drawer (#402)

* fix: text overflow (#400)

* chore: ASC-22335 - update SocialGlobalSearchPage route (#399)

* feat: add SocialGlobalSearchPage routing

* fix: update useUserQueryByDisplayName

* fix: ASC-22335 - VideoViewer styles (#401)

* fix: fix VideoViewer

* chore: remove console.log

* fix: ASC-21508 - hyperlink to show confirm when back with data (#404)

* fix: hyperlink to show confirm when back with data

* fix: bring bank old cold

* fix: pageId no need to pass prop

* fix: ASC-20694 - react story condition for non member (#370)

* fix: comment condition

* fix: story react condition for non member

* fix: import

* fix: params

* fix: ASC-22312 - moderator badge (#384)

* fix: moderator badge

* fix: moderator badge

* fix: moderator badge

* fix: use css var

* fix: remove unused

* fix: remove package manager

* fix: comment tray stories

* fix: remove unused

* fix: remove console.log

* fix: sub story community rte

* feat: ASC-22893 - create post menu & select post target page (#405)

* style: change create menu color

* feat: implement ui CreatePostMenu

* feat: add event when click createPostMenuButton

* feat: implement CreateStoryButtons

* feat: implement CreatePollButton

* feat: implement CreateLivestreamButton

* fix: text Livestream

* fix: changeable text

* feat: implement SelectPostTargetPage

* feat: onBack

* fix: pageId

* fix: text static

* style: pointer

* feat: integrate API communites to SelectPostTargetPage

* feat: custom communities avatar size

* feat: add UserAvatar

* feat: apply infinity scroll

* fix: map key

* feat: add userId

* style: change px to rem

* fix: dark theme styles

* reafactor: remove blank line

* style: add pointer

* fix: pr comments

* refactor: wrap button in IconComponent

* style: adapt global var

* fix: optional pageId

* refactor: remove comment

* feat: ASC-22888 - hide create post menu for current release (#413)

* feat: comment code create post menu for current release

* fix: remove SelectPostTargetPage

* fix: hyperlink confirm remove link (#406)

* fix: ASC-23219 - story view page onClose (#408)

* fix: story view page onClose

* fix: to v4

* fix: removed deprecated

* fix: import

* fix: ASC-20522 - navigate view story in mobile overlay (#409)

* fix: story view page onClose

* fix: to v4

* fix: overlay bug

* fix: remove console.log

* fix: remove styled component

* fix: add story arrow left right to customization provider

* fix: remove unused

* fix: import

* fix: import

* fix: global story hook import

* fix: ASC-22720 - view story full width and height (#410)

* fix: story view page onClose

* fix: to v4

* fix: overlay bug

* fix: remove console.log

* fix: remove styled component

* fix: add story arrow left right to customization provider

* fix: view story full width and height

* feat(message): handle optimistic on message creation (#377)

* fix: ASC-22081 - notification v4 (#411)

* fix: story view page onClose

* fix: to v4

* fix: overlay bug

* fix: remove console.log

* fix: remove styled component

* fix: add story arrow left right to customization provider

* fix: view story full width and height

* fix: notification v4

* fix: file name

* fix: ASC-20521 - delete first multiple story go to next story (#412)

* fix: story view page onClose

* fix: to v4

* fix: overlay bug

* fix: remove console.log

* fix: remove styled component

* fix: add story arrow left right to customization provider

* fix: view story full width and height

* fix: notification v4

* fix: delete first multiple stories go to next story

* fix: ASC-23136 - fix social v3 issues (#388)

* fix: bring back reply i18n

i18n

* fix: icon size

* fix: comments do not load

* chore: story in v3

* fix: isFlaggedByMe rate limit issue

* fix: fix PageBehavior

* fix: ViewStoryPage navigation

* fix: remove duplicate

* fix: import

* fix: draft page prop

* fix: draft story page storyType prop

---------

Co-authored-by: Chaiwat Trisuwan <[email protected]>

* feat: ASC-00000 - tech debt livechat (#416)

* fix: unconfigurable style

* fix: modify avatar v4 to support defaultImage

* fix: livechat avatar to use avatar component v4

* fix: user icon in message bubble to use v4 compo

* fix: change defaul image for livechat

* fix: use avatar v4 component on story preview

* fix: to use v4 components in reply message placeholder

* fix: mention item to use v4 avatar components

* fix: defaultImage on share story button

* fix: theme on AmityLiveChatHeader

* fix: compose bar to use useAmityComponent

* fix: LiveChatMessageList to use useAmityComponent

* fix: remove condition variable

* fix: configuration value

* fix: message reaction to use useAmityElement

* fix: remove unused

* fix: to use same value on light and dark theme for livechat

* fix: remove /index

* fix: view story page context (#420)

* fix: build include css (#421)

* fix: ASC-23233 - disabled button when file is uploading and fix 429 issue (#422)

* fix: disabled remove button when file is uploading

* fix: add handle document event when menu opened

* fix: ASC-23288 - disabled submit vote button (#424)

* fix: disabled submit vote button

* chore: remove console.log

* fix: formatDuration (#429)

* fix: link text color (#426)

* fix: reduce comment api network call amount (#427)

* fix: like button color (#425)

* fix: play icon (#428)

* feat: ASC-23090 - LinkPreview (#414)

* feat: LinkPreview

* fix: error handling

* fix: types

* fix: move post creator out of infinite scroll (#430)

* fix: append a created poll post (#432)

* fix: ASC-22315 - error noti when user upload unsupported file (#417)

* fix: story tab background color

* fix: update navigate

* fix: styled to css module

* fix: remove console.log

* fix: remove console.log

* fix: story tab

* fix: type

* fix: remove console.log

* fix: story tab type

* fix: noti css

* fix: story avatar

* fix: remove unused

* fix: remove unused

* fix: share story button use amityElement

* fix: icon

* fix: add default communityProfileImageBackground

* fix: story tab community

* fix: story tab

* fix: navigate

* fix: story navigate

* fix: remove unused

* fix: red border story tab

* fix: import and type

* fix: import and type

* fix: remove error icon z-index

* fix: official badge condition

* fix: remove unused

* fix: height

* fix: story avatar

* fix: share story button

* fix: ASC-20535 - deleted reply block (#418)

* fix: story view page onClose

* fix: to v4

* fix: overlay bug

* fix: remove console.log

* fix: remove styled component

* fix: add story arrow left right to customization provider

* fix: view story full width and height

* fix: notification v4

* fix: delete first multiple stories go to next story

* fix: story tab background color

* fix: update navigate

* fix: styled to css module

* fix: remove console.log

* fix: remove console.log

* fix: story tab

* fix: type

* fix: remove console.log

* fix: story tab type

* fix: noti css

* fix: story avatar

* fix: remove unused

* fix: remove unused

* fix: share story button use amityElement

* fix: icon

* fix: add default communityProfileImageBackground

* fix: story tab community

* fix: story tab

* fix: navigate

* fix: story navigate

* fix: remove unused

* fix: red border story tab

* fix: remove ts-sdk peer dep

* fix: delete comment

* fix: i18n

* fix: add margin-bottom to container

* fix: remove packagemanager

* fix: story ring empty state color

* fix: import and type

* fix: import and type

* fix: remove error icon z-index

* fix: official badge condition

* fix: remove i18n

* fix: no comment word

* fix: ASC-20356 - story tab should navigate to unseen (#419)

* fix: story view page onClose

* fix: to v4

* fix: overlay bug

* fix: remove console.log

* fix: remove styled component

* fix: add story arrow left right to customization provider

* fix: view story full width and height

* fix: notification v4

* fix: delete first multiple stories go to next story

* fix: story tab background color

* fix: update navigate

* fix: styled to css module

* fix: remove console.log

* fix: remove console.log

* fix: story tab

* fix: type

* fix: remove console.log

* fix: story tab type

* fix: noti css

* fix: story avatar

* fix: remove unused

* fix: remove unused

* fix: share story button use amityElement

* fix: icon

* fix: add default communityProfileImageBackground

* fix: story tab community

* fix: story tab

* fix: navigate

* fix: story navigate

* fix: remove unused

* fix: red border story tab

* fix: remove ts-sdk peer dep

* fix: delete comment

* fix: i18n

* fix: add margin-bottom to container

* fix: remove packagemanager

* fix: story ring empty state color

* fix: story tab should navigate to unseen

* fix: type

* fix: import and type

* fix: type

* fix: background image

* fix: element

* fix: community story tab condition

* fix: remove unused

* fix: create story button

* fix: community story tab render condition

* fix: delete community story condition

* fix: discard create story navigate condition

* fix: add create new story button

* fix: export create new story button

* chore: add ui story for create new story button

* fix: share story button

* fix: remove unused

* fix: close button color

* fix: remove unused

* fix: remove unused function

* fix: remove unused

* fix: flicker render

* fix: loading overlay width height

* fix: draft page container

* fix: remove inline function

* fix: story wrapper height

* fix: community story tab condition

* fix: aspect ratio button to use useAmityElement

* fix: elements

* fix: remove inline function

* fix: elements

* fix: import and type

* fix: remove error icon z-index

* fix: official badge condition

* fix: prop

* fix: import

* fix: community avatar

* fix: story tab condition

* fix: type

* fix: remove console.log

* fix: story tab condition

* fix: remove i18n

* fix: no comment word

* fix: elements

* fix: type

* fix: add pageId to confirm

* fix: ASC-21809 - upload video story on mobile device (#423)

* fix: story view page onClose

* fix: to v4

* fix: overlay bug

* fix: remove console.log

* fix: remove styled component

* fix: add story arrow left right to customization provider

* fix: view story full width and height

* fix: notification v4

* fix: delete first multiple stories go to next story

* fix: story tab background color

* fix: update navigate

* fix: styled to css module

* fix: remove console.log

* fix: remove console.log

* fix: story tab

* fix: type

* fix: remove console.log

* fix: story tab type

* fix: noti css

* fix: story avatar

* fix: remove unused

* fix: remove unused

* fix: share story button use amityElement

* fix: icon

* fix: add default communityProfileImageBackground

* fix: story tab community

* fix: story tab

* fix: navigate

* fix: story navigate

* fix: remove unused

* fix: red border story tab

* fix: remove ts-sdk peer dep

* fix: delete comment

* fix: i18n

* fix: add margin-bottom to container

* fix: remove packagemanager

* fix: story ring empty state color

* fix: story tab should navigate to unseen

* fix: type

* fix: import and type

* fix: type

* fix: background image

* fix: element

* fix: official badge condition

* fix: condition

* chore: add react-aria-component

* fix: hooks

* fix: community story tab condition

* fix: remove unused

* fix: create story button

* fix: community story tab render condition

* fix: delete community story condition

* fix: discard create story navigate condition

* fix: add create new story button

* fix: export create new story button

* chore: add ui story for create new story button

* fix: share story button

* fix: remove unused

* fix: close button color

* fix: remove unused

* fix: remove unused function

* fix: remove unused

* fix: flicker render

* fix: loading overlay width height

* fix: draft page container

* fix: remove inline function

* fix: story wrapper height

* fix: community story tab condition

* fix: aspect ratio button to use useAmityElement

* fix: elements

* fix: remove inline function

* fix: elements

* fix: import and type

* fix: remove error icon z-index

* fix: official badge condition

* fix: prop

* fix: import

* fix: community avatar

* fix: condition

* fix: story tab condition

* fix: type

* fix: story tab

* fix: community

* fix: type and layout (#434)

* fix: ASC-21494 - non member can react in comment tray (#433)

* fix: story tab background color

* fix: update navigate

* fix: styled to css module

* fix: remove console.log

* fix: remove console.log

* fix: story tab

* fix: type

* fix: remove console.log

* fix: story tab type

* fix: noti css

* fix: story avatar

* fix: remove unused

* fix: remove unused

* fix: share story button use amityElement

* fix: icon

* fix: add default communityProfileImageBackground

* fix: story tab community

* fix: story tab

* fix: navigate

* fix: story navigate

* fix: remove unused

* fix: red border story tab

* fix: import and type

* fix: import and type

* fix: remove error icon z-index

* fix: official badge condition

* fix: reaction list

* fix: remove console.log

* fix: import

* fix: pass pageId and componentId

* fix: avatar

* fix: community avatar

* fix: play pause button

* fix: story tab condition

* fix: remove unused

* fix: remove unused

* fix: story tab

* fix: onPress

* fix: wrapper

* fix: rem

* fix: remove package manager

* feat: skeleton loader (#407)

* fix: ASC-23278 - view story container (#435)

* fix: create new story button prop

* fix: story view

* fix: remove package manager

* fix: remove console

* fix: unnecessary code

* fix: elements

* fix: ASC-23385 - view story comment tray close after comment (#438)

* fix: create new story button prop

* fix: story view

* fix: remove package manager

* fix: remove console

* fix: unnecessary code

* fix: elements

* fix: story comment button width

* fix: useGetActiveStoriesByTarget hook

* fix: add story progress bar

* fix: view story comment tray close after comment

* fix: story progress bar

* fix: community  story

* fix: remove unused

* fix: community

* fix: type

* fix: speaker button condition ui

* fix: story sub

* fix: remove unused

* fix: button css

* Release/v4.0.0 beta.7 (#439)

* chore(release): 4.0.0-beta.5

* chore(release): 4.0.0-beta.6

* fix: build include css (#421)

* chore(release): 4.0.0-beta.7

---------

Co-authored-by: bmo-amity-bot <[email protected]>

* Release/v4.0.0 beta.8 (#440)

* build: upgrade version ts-sdk

* build: upgrade dependencies

* chore(release): 4.0.0-beta.8

---------

Co-authored-by: bmo-amity-bot <[email protected]>

* feat: ASC-22898 - create post page (#437)

* feat: show select post menu

* feat: create PostComposerPage

* feat: themeStyle

* style: change create menu color

* feat: implement ui CreatePostMenu

* feat: add event when click createPostMenuButton

* feat: implement CreateStoryButtons

* feat: implement CreatePollButton

* feat: implement CreateLivestreamButton

* fix: changeable text

* feat: implement SelectPostTargetPage

* fix: pageId

* fix: text static

* style: pointer

* feat: integrate API communites to SelectPostTargetPage

* feat: add UserAvatar

* fix: map key

* style: change px to rem

* fix: dark theme styles

* reafactor: remove blank line

* feat: create new post page

* feat: DetailMediaAttachment

* feat: implement media attachment

* feat: show mention options

* feat: mention

* feat: disable post button

* feat: add @ in mention text editor

* feat: lexical

* feat: add goToPostComposerPage

* style: truncate

* style: text size

* feat: post to feed

* style: editor

* feat: limit max length 5000 cha

* fix: follow comment pr

* fix: error class

* feat: onSubmit form

* fix: query search mention from hooks

* fix: remove try catch and remove comments

* fix: mention post

* fix: build failed

* fix: remove log (#445)

* feat: ASC-00000 - Add empty user (#447)

* feat: add user7

* fix: remove mock userId

* feat: ASC-23125 - ads on post (#448)

* feat: add AdsPost Component

* feat: add TODO

* feat: add use themeStyle from config

* feat: align theme by component

* fix: pr comments

* fix: refactor Avatar V4

* feat: add TODO

* fix: delete first multiple segment story should navigate to next story (#441)

* fix: ASC-20694 - wrong notification content (#442)

* fix: delete first multiple segment story should navigate to next story

* fix: wrong notification text content

* fix: ASC-22312 - comment moderator badge condition (#443)

* fix: delete first multiple segment story should navigate to next story

* fix: wrong notification text content

* fix: comment author

* fix: remove isBanned prop

* fix: remove console.log

* feat: sync api v5 (#455)

* fix: use preferred theme as light on v3 (#454)

* fix: select file to pause story progress bar (#456)

* fix: ASC-23557 - scroll mention list (#453)

* style: scroll mention list

* fix: style and ref

* refactor: rename MentionTextInput

* fix: ASC-20957 - story tab ring loading state (#444)

* fix: delete first multiple segment story should navigate to next story

* fix: wrong notification text content

* fix: comment author

* fix: remove isBanned prop

* fix: remove unused

* fix: apply useAmityComponent to StoryTab

* fix: story tab v4

* fix: remove unused

* fix: type

* fix: ASC-22315 - failed noti to use BE message (#446)

* fix: delete first multiple segment story should navigate to next story

* fix: wrong notification text content

* fix: comment author

* fix: remove isBanned prop

* fix: remove unused

* fix: apply useAmityComponent to StoryTab

* fix: story tab v4

* fix: failed noti should use BE response message

* fix: use accessibilityId instead of uiReference

* fix: remove unused

* fix: remove unused

* fix: showImpression condition (#451)

* chore: ASC-00000 - uikit core api (#457)

* chore: change shouldCall type

* chore: update IconComponent api

* fix: fix button in story from CancelButton to EditCancelButton

* chore: update configuration

* feat: MyCommunitiesSearchPage (#459)

* fix: ASC-23544 - global search UI (#460)

* fix: fix SocialGlobalSearchPage behavior

* fix: fix post reaction

* feat: ASC-22903 - media attachment (#449)

* feat: swipe bottom menu

* feat. bottom menu position

* feat: hide file button

* style: overflow auto

* style: hide scroll bar form

* feat: add asc-uikit class

* fix: show text condition

* fix: ASC-23543 - fix PostDetailPage navigation and layout (#461)

* fix: fix PostDetailPage navigation and layout

* fix: style

* fix: post container style

* fix: shouldCall useEffect logic (#462)

* fix: ASC-22949 - view story navigate logic (#458)

* fix: select file to pause story progress bar

* fix: story navigate

* fix: remove unused

* fix: remove unused

* fix: add ref to image

* fix: remove unused

* fix: package

* fix: member query (#466)

* fix: moderator badge logic (#464)

* fix: ASC-00000 - tanstack query cache key (#465)

* fix: tanstack query cache key

* fix: image viewer, video viewer and image content

* fix: remove timestamp interaction (#463)

* fix: ASC-21809 - upload story video in android device (#467)

* fix: upload story video in android device

* fix: prop type

* fix: remove console.log

* fix: play pause function

* fix: ASC-23419 - like reaction in story reaction list show unknown reaction (#469)

* fix: upload story video in android device

* fix: prop type

* fix: reaction list reactions

* fix: rte

* fix: console.log

* fix: swipe down (#470)

* fix: ASC-00000 - css broken in v3 (#473)

* fix: css

* fix: css

* fix: ASC-23389 - disable overlay when desktop screen (#477)

* fix: swipe down

* fix: css

* fix: next story condition

* fix: css

* style: ASC-23581 - add width full button (#476)

* style: add width full

* fix: type create post

* fix: ASC-23552 - fix reaction button interaction (#472)

* fix: fix reaction button interaction

* chore: remove unused code and apply configuration

* fix: type error (#471)

* fix: ASC-23659 - newsfeed layout (#474)

* fix: newsfeed layout

* chore: Update SocialHomePage.module.css

* fix: ASC-23007 - community member collection limit (#478)

* fix: swipe down

* fix: css

* fix: next story condition

* fix: limit

* fix: type

* fix: hooks

* fix(sdk): ASC-22474 - story preview thumbnail hyperlink in console (#480)

* fix: swipe down

* fix: css

* fix: next story condition

* fix: limit

* fix: story preview thumbnail for console

* fix: story preview

* fix: npmrc

* fix: export

* fix: export

* fix: export

* fix: export

* fix: export

* fix: ASC-23583 - discard post modal (#483)

* style: modal

* style: modal

* fix: ASC-23600 - create post params (#475)

* fix: push userIds

* fix: prevent empty mentionees

* fix: ASC-23590 - add toast duration (#479)

* fix: add toast duration

* feat: prevent click when loading

* feat: check offline post

* refactor: remove comment code

* feat: import isOnline hooks

* refactor: remove log

* fix: ASC-23599 -  mention member in private community (#468)

* feat: member mention

* refactor: import

* fix: query params

* refactor: rename component

* fix: undefined type

* fix: shouldCall

* fix: query mention (#484)

* feat: ASC-00000 - story preview skeleton (#486)

* feat: story preview skeleton

* fix: remove z-index

* feat: ASC-22898 - create postProvider (#485)

* feat: create postProvider

* refactor: accessibility

* fix: story bugs (#487)

* feat: ASC-00000 - new comment (#482)

* chore: comments

* fix: cannot see comment in storybook

* feat: add ui for composer

* feat: export PostCommentComposer

* feat: add view reply and view all comments UI

* fix: post comment input style

* fix: change to new comment compose bar

* fix: comment compose bar style

* fix: remove compose bar on globalFeed page

* fix: change className

* feat: add PostReplyComment component

* feat: set max line height to 10

* fix: add margin to align the item vertical center at first

* feat: add comment mention input in composer

* feat: add query mentionable users hook

* feat: fix mention list position

* fix: remove unused

* feat: add reply comment ui

* fix: placeholder position

* fix: to clear textInput state

* feat: handle loadMore in post comment list

* feat: add post reply comment list

* fix: load more replies button in reply list

* feat: add bottomsheet for action on PostComment

* feat: add bottom sheet for PostReplyComment action

* feat: add to show delete comment

* feat add handling action

* fix: delete comment text style

* feat: add delete state ui on PostReplyComment

* feat: add edit text in comment details

* fix: clear editor state when comment create success

* feat: add edit ui

* fix: button style

* fix: PostCommentInput prop

* feat: add logic to convert data text to edior state

* fix: cannot mention user

* fix: edit text styling

* feat: add pointer styling

* fix: change to wrap options inside component to reduce calling check isFlaggedByMe

* feat: handle update comment

* feat: update comment in reply comment

* feat: add subscription to each comment

* feat: add ui text with mention

* fix: remove unused

* fix: sending too many request when intersect

* feat: subscribe to get new comment data

* feat: fix mention panel position

---------

Co-authored-by: Bonn <[email protected]>

* fix: ASC-00000 - story bugs (#491)

* fix: story bugs

* fix: button style

* fix: image mode

* fix: story bugs

* fix: remove console.log

* fix: onPress

* fix: css

* fix: ASC-22508 - impression count condition (#492)

* fix: story bugs

* fix: button style

* fix: image mode

* fix: story bugs

* fix: remove console.log

* fix: onPress

* fix: css

* fix: impression condition only creator and community mod can see

* feat: ASC-23125 - global feed ad integration (#489)

* feat: AdEngine

* chore: AdEngineProvider

* feat: integrate with Newsfeed

* chore: refactoring

* feat: update pagination logic

* feat: update Paginator logic

* feat: PostAd integration

* chore: add data-qa-anchor

* fix: avatarUrl and adImageUrl

* chore: remove packageManager field

* chore: remove unused code

* chore: Update src/v4/social/internal-components/PostAd/PostAd.module.css

* fix: update code by review

* chore: add storybook users (#494)

* feat: comment ad (#493)

* chore: update ci (#495)

* fix: fix slice index (#498)

* fix: ad live collection integration (#503)

* fix: ASC-00000 - fix react error (#502)

* fix: fix svg props

* fix: fix react error

* fix: svg props

* fix: ASC-00000 - done button (#496)

* fix: done button

* fix: add todo comment for type

* fix: submit form function

* fix: remove console.log

* fix: apply themeStyle

* fix: type

* fix: formId prop

* fix: formId to be optional type

* fix: done button type

* fix: ASC-00000 - modal overlay (#497)

* fix: done button

* fix: add todo comment for type

* fix: submit form function

* fix: remove console.log

* fix: apply themeStyle

* fix: type

* fix: modal overlay

* fix: remove console.log

* fix: ad information drawer (#500)

* fix: ASC-24074 - comment ad style (#504)

* fix: comment ad style

* feat: change sponsor badge text

* fix: ASC-00000 - theme (#501)

* fix: configuration background not change in livechat compose bar

* fix: cannot use theme configuration

* fix: theme logic

* feat: update a customization key ordering

* fix: update css variable names to align with a design

* css var

* fix: theme

---------

Co-authored-by: ptchaya_p <[email protected]>

* fix: ASC-24074 - fix an incorrect text position (#499)

* fix: fix an incorrect text position

* fix: update classname

* feat: ASC-23131 - story premium ads (#508)

* feat: story premium ads

* chore: remove commented code

* feat: ASC-23312 - support image video upload (#506)

* feat: upload images

* feat: handle failed

* feat: add upload image

* feat: upload video

* feat: prevent more than 10 uploads

* feat: handle error

* feat: apply detail media attachment

* fix: resolution thumbnail

* feat: camera upload

* fix: remove not used file

* fix: remove log

* style: data-attribute

* refactor: isMobile utils

* fix: params

* refactor: onChange

* fix: ASC-23693 - fix premium ads global feed (#512)

* fix: fix usePaginatorCore logic

* fix: remove poll liveStream file posts from a global feed

* fix: reduce a request amount

* fix: time-window ad and type error

* fix: child post

* fix: filter liveStream poll file post

* fix: react rerender issue

* fix: observer display

* fix: retain scroll position (#513)

* fix: remove button hover color (#517)

* fix: reaction count (#509)

* fix: comment ad styles (#518)

* fix: ASC-00000 - fix paginator (#516)

* fix: return an empty array when its length is 0

* chore: rename usePagination to usePaginator

* fix: ASC-23591 - image ratio (#515)

* chore: remove unused code

* fix: fix image ratio

* fix: ASC-24193 - fix a background color css variable (#510)

* fix: asc-color-base-background to asc-color-background-default

* fix: update PostAd footer background color

* chore: ASC-00000 - premium ads pure components (#522)

* feat: export CommentAd and PostAd as a pure component

# Conflicts:
#	src/index.ts
#	src/v4/social/internal-components/CommentAd/CommentAd.tsx
#	src/v4/social/internal-components/PostAd/PostAd.tsx

* chore: rename AdInformation dir

* fix: componentId

* chore: ASC-00000 - console story ad ui (#521)

* chore: console story ad ui

* chore: add TODO

* fix: reactions count formatting (#519)

* style: fix height (#523)

* fix: ASC-24020 - load more mention list (#514)

* fix: load more mention list

* refactor: load more

Co-authored-by: Bonn <[email protected]>

* fix: error ci

---------

Co-authored-by: Bonn <[email protected]>

* fix: button style unset (#524)

* style: change height (#525)

* fix: ASC-00000 - create post menu position (#526)

* fix: z-index

* style: remove z-index

* feat: ASC-00000 - AmityStoryTargetSelectionPage (#528)

* feat: AmityStoryTargetSelectionPage

* fix: remove console.log

* fix: comment ad style (#527)

* fix: ASC-23586 - livechat customization (#520)

* feat: lexical

* fix: restructure LiveChat

# Conflicts:
#	src/v4/core/providers/AmityUIKitProvider.tsx
#	src/v4/social/components/PostContent/ImageContent/ImageContent.tsx
#	src/v4/social/components/PostContent/VideoContent/VideoContent.tsx

* fix: a new MessageComposer

* chore: remove packageManager field

* fix: fix import

* fix: type error

* fix: enter to send only on h/w keyboard

* chore: update LiveChate storybook

* fix: update livechat configuration

* chore: update src/v4/chat/elements/SenderMessageBubble/SenderMessageBubble.tsx

Co-authored-by: Pitchaya T. <[email protected]>

* chore: apply suggestions from code review

Co-authored-by: Pitchaya T. <[email protected]>

---------

Co-authored-by: Pitchaya T. <[email protected]>

* fix: ASC-24263 - stories bug (#533)

* fix: i18n error

* fix: global feed story index

* fix: CommunityFeedStory

* fix: image ratio to 1 (#532)

* fix: ASC-00000 - minor bugs (#531)

* fix: change unit to dvw and dvh

* fix: change p to span because an error in a browser

* fix: globalfeed key

* fix: stop drag default and remove unnecessary preventDefault

* fix: cannot click on mobille

* fix: prevent drag event

* fix: UIPostAd

* chore: add TODO

* fix: style on mobile

* fix: Linkify

* fix: draft video story (#530)

* fix: ASC-00000 - story  (#507)

* fix: story uploading state

* fix: remove unnessescary useMeme

* fix: remove unused

* fix: bottom sheet story

* fix: remove unused

* fix: done button type

* fix: type

* fix: align with api (#534)

* feat: ASC-24094 - update code snippet (#529)

* feat: create post button

* feat: code snippet

* feat: update MyCommunitiesSearchPage

* fest: export components and page

* fix: ci error

* feat: export TopNavigation

* fix: types

* feat: export AmitySocialHomePageTab

---------

Co-authored-by: Bonn <[email protected]>

* fix: ASC-21809 - story video duration (#511)

* fix: story uploading state

* fix: remove unnessescary useMeme

* fix: remove unused

* fix: bottom sheet story

* fix: video duration

* fix: remove unused

* fix: type

* fix: done button type

* fix: type

* fix: ignore type

* fix duration

* fix: story image bottom sheet

* fix: ASC-21809 - image local (#535)

* fix: story uploading state

* fix: remove unnessescary useMeme

* fix: remove unused

* fix: bottom sheet story

* fix: video duration

* fix: remove unused

* fix: type

* fix: done button type

* fix: type

* fix: ignore type

* fix duration

* fix: story image bottom sheet

* fix: image local

* fix: video ratio (#536)

* fix: fix Linkify (#539)

* fix: StoryAd layout (#537)

* feat: combine v3 code (#541)

* refactor: ASC-00000 - upload media (#540)

* refactor: upload media

* fix: spelling

* refactor: props name

* fix: props name

* refactor: props name

* fix: split into RoundedBackButton and BackButton (#543)

* fix: useFeed (#542)

* chore: ASC-23077 - eslint 9 (#387)

* chore: import rule lint

* chore: eslint 9

* chore: add packageManager field

* fix: remove pnpm version from ci

* chore: removed unused file

* chore: update packageManager field in package.json

* chore: update pnpm-lock.yaml

* chore: bring back the old code

* fix: lint

* chore: upgrade pnpm to 9.5.0

* chore: bring back .npmrc

* fix: css path

* fix: ASC-00000 - v4 comment list component (#505)

* fix: done button

* fix: add todo comment for type

* fix: submit form function

* fix: remove console.log

* fix: apply themeStyle

* fix: type

* fix: modal overlay

* fix: remove console.log

* fix: integrate comment v4

* fix: comment list

* fix: remove pkg version

* fix: type

* fix: type

* fix: comment component

* fix: comment component

* fix: remove console.log

* fix: css

* fix: import name

* feat: ASC-00000 - comment skeleton loading and see more (#546)

* feat: add skeletons on comment list

* feat: change limit

* feat: add see more button

* feat: use line-clamp

* fix: use max height instead

* fix: mention panel position

* fix: flex item gap on mention user

* fix: remove unused

* fix: reply offset bottom

* fix: use variable

* fix: react error

* fix: use variable instead of inline style

* fix: remove inline style

* fix: use uuid to be key

* fix: ASC-23324 - combine v3 and v4 (#548)

* fix: add button for user

* refactor: condition

Co-authored-by: Bonn <[email protected]>

* fix: build fail

* fix: handle navigation cross version

* fix: remove console

* fix: combine story

---------

Co-authored-by: Bonn <[email protected]>

* fix: ASC-24390 - mention is not show in comment (#549)

* fix: mention is not show

* fix: remove post props

* fix: onPress button (#550)

* fix: ASC-24396 - comment list pagination (#553)

* fix: update threshold

* fix: remove height 100%

* chore: typo

* fix: ASC-24024 - mention list and media attachment position  (#551)

* fix: position media attachment

* style: adapt data attribute

* fix: query params

* fix: mention list position

* fix: z-index

* fix: mention list position

* fix: position mention

* fix: unit rem

* fix: query community sort (#552)

* docs: update example env (#554)

* Release/v4.0.0 beta.10 (#555)

* chore: v4.0.0-beta.9

* chore(release): 4.0.0-beta.10

---------

Co-authored-by: bmo-amity-bot <[email protected]>

* feat: ASC-24349 - edit post (#557)

* feat: edit menu

* feat: default value edit post

* refactor: remove log

* feat: edit image

* feat: edit video

* refactor: thumbnail component

* refactor: remove log

* feat: update items

* fix: combineItemsWithAds

* fix: post data selector

* fix: mention enter new line

* refactor: button

* fix: element button

---------

Co-authored-by: Bonn <[email protected]>

* feat: ASC-24665 - check labels ci (#558)

* feat: ASC-24666 - create pull_request_template.md (#559)

* Create pull_request_template.md

Create pull request template

* Update pull_request_template.md

Add checklist

* feat: ASC-23982 - post impression (#561)

* feat: add post impression

* refactor: remove log

* refactor: changed to hooks

* refactor: hooks

* refactor: ref div

* fix: undefined metadata (#564)

* fix: ASC-24780 - handle no change edit post (#562)

* fix: handle no change edit

* fix: remove img change save

* fix: compare array function

* fix: type params

Co-authored-by: Bonn <[email protected]>

* fix: error text

---------

Co-authored-by: Bonn <[email protected]>

* fix: ASC-24778 - add edit tag (#563)

* fix: edit tag

* style: reduce spacing

* fix: add getAuthToken param (#567)

* fix: ASC-24831 - profile blinking (#569)

* chore: v3.6.0

* fix: remove expose v4 component

* chore: v3.6.0

* fix: remove expose v4 component

* chore(release): 3.7.0

* chore: update pnpm-lock.yaml

* chore(release): 3.8.0

* chore: update pnpmplock

* fix: ASC-24831 - profile blinking

* fix: ASC-24831 - profile blinking

* fix: avoid channel object change affect to avatarUrl from calling reading api while reading the channel

* fix: button size

* fix: lint

---------

Co-authored-by: bmo-amity-bot <[email protected]>
Co-authored-by: Bonn <[email protected]>

* fix: change text fail edit (#571)

* fix: ASC-23280 - showing long post (#580)

* fix: truncate

* style: truncate

* style: add spacing (#581)

* fix: ASC-24779 - onClick go to post detail (#584)

* fix: add onClick redirect

* fix: use Button

* fix: fix ui (#589)

* fix: ASC-24857 - link preview button (#570)

* fix: use button instead div

* refactor: onBack

* fix: add button Ad link

* chore(release): 4.0.0-beta.11 (#601)

Co-authored-by: bmo-amity-bot <[email protected]>

* fix: ASC-00000 - layout global feed (#603)

* fix: scroll horizontal

* style: remove padding

* chore: change default screen to fullscreen (#598)

* chore: ASC-00000 - configurable storybook (#595)

* chore: receive apiKey, apiRegion, userId and displayName as a free text

* chore: add submit toggle

* feat: ASC-24796 - fix community profile (#568)

* fix: merge from develop

* fix: remove unused

* fix: community profile component

* fix: post content to use bottom sheet

* fix: community tab control state

* feat: add community pin

* fix: community profile style

* feat: navigate back in community cover

* fix: use millify for count value

* fix: coomunity profile post gap

* fix: verify badge

* fix: community name description

* fix: remove unused

* fix: community description max lines

* fix: community categories

* fix: comunity cover to use bem convention

* fix: community cover add max-height

* fix: export page and components

* fix: update navigation and page behavior

* fix: add community info

* feat: community feed post skeleton

* fix: remove unused

* fix: community tab active color state

* fix: page behavior comment unused

* fix: css

* fix: pin

* fix: type

* fix: css

* Revert "fix: css"

This reverts commit d10c48f94a79d0ab4dcd876a35553457ad6abbc3.

* fix: css

* style: z index

* fix: category UI

* fix: handle long description

* fix: max length

* fix: cover icon color

* fix: private commu hide join btn

* feat: no post UI

* feat: empty pinpost

* feat: lock private content

* fix: condition show lock private content

* fix: condition lock content

* feat: edit page v3

* fix: export error

* fix: context type

* fix: redirect edit post

* style: pass fill default icon as props

* style: remove props

* fix: skeleton feed

* refactor: icons and conditions

* style: lock icon size

* fix: locate files

* fix: import error

* fix: duplicated code

* fix: edit update post

* fix: review comments

* refactor: spinner pull to refresh

* fix: navigate post detail

* fix: hide post impression when not member

* style: spacing

* fix: prevent comment for non member

* style: color text empty post

* fix: UI post title

* fix: post detail click and non member access

* fix: threshold

* style: menu button size

---------

Co-authored-by: Chaiwat Trisuwan <[email protected]>

* fix: ASC-00000 - ulta fixes (#577)

* fix: ASC-24926 - responsive image carousel (#574)

* style: fix color item (#572)

* fix: ASC-24930 - user profile about color (#573)

* style: add bg

* fix: color-scheme light

* style: ratio edit profile

* style: change rem to px

* style: spacing

* fix: ASC-24929 - mobile responsive edit community profile (#578)

* style: mobile responsive

* style: center

* fix: ASC-24927 - mobile create community page (#576)

* fix: mobile create community page

* chore: update form layout

* chore: ASC-24925 - post permissions (#579)

* chore: add skeleton loader

* chore:

* fix: remove skeleton loader

* fix: post permissions

* fix: ASC-24931 - navigation (#582)

* fix: hamburger navigation

* fix: add hideSideMenu prop

* fix: ASC-24924 - update each attachment type (#575)

* fix: update each attachment type

* fix: modal style on mobile screen

* fix: not return just setPosts

Co-authored-by: Bonn <[email protected]>

---------

Co-authored-by: Bonn <[email protected]>

* fix: ASC-24922 - remove subscription (#583)

* fix: remove subscription on post and comment

* chore: upgreade ts-sdk

* fix: remove unused

* fix: ASC-24930 - edit user profile ratio (#585)

* style: mobile responsive

* fix: responsive edit user button

* fix: ASC-23387 - discard post (#586)

* style: text modal color

* fix: clear input

* fix: modal block

* fix: redirect page

* fix: user comment link (#588)

* fix: avatar click link (#591)

* style: fix sticky side (#587)

* fix: ASC-24978 - permission typo (#592)

* fix: permission typo

* chore: remove console.log

* fix: ASC-24972 - handle error submit (#590)

* fix: handle error submit

* fix: remove log

* fix: error type

Co-authored-by: Bonn <[email protected]>

* fix: type any

---------

Co-authored-by: Bonn <[email protected]>

* chore: upgrade sdk version (#593)

* fix: bring back isModerator (#594)

* fix: move hook to a top of a component

* chore: upgrade sdk version (#596)

* fix: export v3 provider

* fix: remove unused code

* chore: remove default font

* chore: circular std font

* chore: update max-width

* fix: remove max-width on Explore

* fix: remove min-width and min-height from a community card

* fix: update CategoriesCard and RecommendedList layout

* fix: ASC-25140 - active and hover state sidebar V3 (#604)

* fix: z-index (#600)

* style: active and hover state

* fix: ASC-25143 - gallery grid (#605)

* fix: grid 3

* fix: remove grid-gap

* fix: ASC-00000 - skeleton css (#609)

* fix: skeleton css

* fix: lint
# Conflicts:
#	src/core/components/Button/styles.tsx
#	src/core/components/SideMenuActionItem/styles.tsx
#	src/icons/Verified.tsx
#	src/social/components/CommunitiesList/index.tsx
#	src/social/components/CommunitiesList/styles.tsx
#	src/social/components/community/AllCommunities/index.tsx
#	src/social/components/community/Card/UICommunityCard.tsx
#	src/social/components/community/Header/UICommunityHeader.tsx
#	src/social/components/community/Header/styles.tsx
#	src/social/components/community/Name/index.tsx
#	src/social/components/community/Name/styles.tsx
#	src/social/components/community/TrendingItem/UITrendingItem.tsx
#	src/social/pages/Application/index.tsx
#	src/social/pages/Explore/styles.tsx
#	src/social/pages/UserFeed/index.tsx
#	src/v4/social/pages/Application/index.tsx

* chore: revert fonts

* Revert "chore: remove default font"

This reverts commit b62f1aa5e77828772cd1fffd5a46d84480b35626.

# Conflicts:
#	src/core/providers/UiKitProvider/index.css
#	src/v4/styles/global.css

* chore: change sdk version to a latest one

* fix: bring back v4 export

---------

Co-authored-by: ChayanitBm <[email protected]>
Co-authored-by: Pitchaya T. <[email protected]>

* feat: ASC-23849 - announcement post (#610)

* fix: merge from develop

* fix: remove unused

* fix: community profile component

* fix: community tab control state

* fix: community profile style

* fix: verify badge

* fix: community description max lines

* fix: community categories

* fix: comunity cover to use bem convention

* fix: community cover add max-height

* fix: export page and components

* fix: update navigation and page behavior

* fix: add community info

* feat: community feed post skeleton

* fix: remove unused

* fix: community tab active color state

* fix: pin

* fix: css

* Revert "fix: css"

This reverts commit d10c48f94a79d0ab4dcd876a35553457ad6abbc3.

* fix: css

* style: z index

* fix: cover icon color

* feat: empty pinpost

* feat: lock private content

* fix: redirect edit post

* style: pass fill default icon as props

* style: remove props

* fix: skeleton feed

* refactor: icons and conditions

* fix: locate files

* fix: duplicated code

* feat: featured tag

* feat: announcement icon

* feat: integrate annouce post with mock data

* feat: add SDK getPinnedPosts

* feat: integrate announcement post

* chore: install stg SDK

* feat: show tag category in post detail

* refactor: remove mock data

* refactor: PR comment

* refactor: remove class not used

* fix: duplicate css

* fix: error unknow type

---------

Co-authored-by: Chaiwat Trisuwan <[email protected]>

* fix: ASC-25190 - delete announcement post (#612)

* fix: refresh live collection

* fix: type

* fix: SDK version stg

* fix: add dot

* fix: add dot

* fix: comments demo

* fix: update permission to create story

* fix: story permission

* fix: story permission

* refactor: typo

* fix: ASC-25195 - hide chat input for normal user (#617)

* feat: hide chat input for normal user

* fix: condition to hide compose bar

* fix: ASC-00000 - sdk version prod (#623)

* fix: sdk version

* fix: version sdk

* fix: ASC-235231 - video thumbnail (#626)

* fix: video thumbanil

* fix: position toast

* chore: update sdk

* refactor: upload from camera

* chore: revert sdk

* fix: add remove drawer (#627)

* fix: ASC-25204 - post mention (#630)

* chore: update PostTextField

* fix: mention layout

* fix: layout and removed unused code

* chore: remove console.log

* fix: intersection node

* fix: condition show story (#631)

* fix: ASC-24623 - add redirect user feed v3[Repeat PR to DEV] (#632)

* fix: add redirect user feed

* fix: remove code not use

* fix: ASC-24486 - All users show in comment's mention list (#622)

* chore: rattata

* chore: applied includeDeleted

* chore: update tssdk version

* fix: update SDK version

* chore: revert sdk version

* fix: sdk version

* fix: ci

* fix: ci and upgrade pnpm to 9.9

* chore: update ci

* fix: force ci to install specific sdk version

* fix: user navigation

* fix: pass community to CommentComposer

* feat: add includeDeleted filter

* fix: background coloer

* fix: use searchMembers instead of getMembers

* fix: sdk version on devDependencies

* fix: installed SDK version

* chore: rattata

* chore: applied includeDeleted

* chore: update tssdk version

* fix: update SDK version

* chore: revert sdk version

* fix: sdk version

* fix: ci

* fix: ci and upgrade pnpm to 9.9

* chore: update ci

* fix: force ci to install specific sdk version

* fix: user navigation

* fix: pass community to CommentComposer

* feat: add includeDeleted filter

* fix: background coloer

* fix: use searchMembers instead of getMembers

* fix: sdk version on devDependencies

* fix: installed SDK version

* fix: revert change

---------

Co-authored-by: Bonn <[email protected]>
Co-authored-by: Chayanit Manop <[email protected]>

* chore(sdk): rattata (#611)

* chore: rattata

* chore: applied includeDeleted

* chore: update tssdk version

* fix: update SDK version

* chore: revert sdk version

* fix: ASC-24486 - All users show in comment's mention list (#622)

* chore: rattata

* chore: applied includeDeleted

* chore: update tssdk version

* fix: update SDK version

* chore: revert sdk version

* fix: sdk version

* fix: ci

* fix: ci and upgrade pnpm to 9.9

* chore: update ci

* fix: force ci to install specific sdk version

* fix: user navigation

* fix: pass community to CommentComposer

* feat: add includeDeleted filter

* fix: background coloer

* fix: use searchMembers instead of getMembers

* fix: sdk version on devDependencies

* fix: installed SDK version

* chore: rattata

* chore: applied includeDeleted

* chore: update tssdk version

* fix: update SDK version

* chore: revert sdk version

* fix: sdk version

* fix: ci

* fix: ci and upgrade pnpm to 9.9

* chore: update ci

* fix: force ci to install specific sdk version

* fix: user navigation

* fix: pass community to CommentComposer

* feat: add includeDeleted filter

* fix: background coloer

* fix: use searchMembers instead of getMembers

* fix: sdk version on devDependencies

* fix: installed SDK version

* fix: revert change

---------

Co-authored-by: Bonn <[email protected]>
Co-authored-by: Chayanit Manop <[email protected]>

* chore: rattata

* chore: update tssdk version

* fix: update SDK version

* chore: revert sdk version

* fix: sdk version

* fix: ci

* fix: ci and upgrade pnpm to 9.9

* chore: update ci

* fix: force ci to install specific sdk version

* fix: user navigation

* fix: ASC-25204 - post mention (#618)

* chore: update PostTextField

* fix: mention layout

* fix: layout and removed unused code

* chore: remove console.log

* chore: update tssdk version

* fix: update SDK version

* chore: revert sdk version

* chore: upgrade sdk version

* chore: update tssdk version

* fix: update SDK version

* chore: revert sdk version

* chore: upgrade sdk version

* fix: revert workflow and readme

---------

Co-authored-by: Chayanit Manop <[email protected]>
Co-authored-by: Pitchaya T. <[email protected]>
Co-authored-by: ptchaya_p <[email protected]>

* chore(release): 4.0.0-beta.12 (#638)

Co-authored-by: bmo-amity-bot <[email protected]>

* feat: ASC-24795 - pinned post (#621)

* fix: comments demo

* refactor: typo

* feat: pinned post

* chore: update package

* feat: pinned post filter

* refactor: remove limit pinned post

* fix: props fill

* fix: fix PostTextField (#643)

* fix: prevent pr to be merged if it is labeled with do not merge (#644)

* fix: skeleton style (#646)

* fix: community feed render post (#651)

* feat: ASC-25653 - add accessibilityId (#650)

* feat: add accessibility id

* feat: add accessibilityId

* fix: ASC-25689 - add condition to show moderator badge (#652)

* fix: add condition to show moderator badge

* fix: hooks moderator

* feat: ASC-25040 - post as brand (#608)

* chore: post as brand

* feat: add renderer prop into Typography

* feat: add BrandBadge for PostContent

* feat: add BrandBadge into Mention

* fix: fix layout

* fix: isBrand logic

* chore: remove unused code

* chore: update tssdk version

* fix: postContent layout

* fix: fix UserSearchResult layout

* chore: remove unused code

* chore: upgrade sdk version

* fix: add targetType for StoryCommentComposeBar

* chore: refactor CommentComposer

* fix: postcontent brand badge

* chore: upgrade lexical to a latest version

* fix: add error handling for login fn

* fix: add brand badge on UserHeader v3 component

* fix: type

* fix: type

* fix: bring back import css

* fix: version

* chore: update sdk version

* chore(release): 4.0.0-beta.13 (#653)

Co-authored-by: bmo-amity-bot <[email protected]>

* fix: dedup mention data (#655)

* fix: loadmore (#660)

* feat: ASC-25653 - add accessibility (#659)

* feat: add accessibilityId

* feat: add accessibilityId

* fix: change to use accessibilityId

* fix: hooks render

* feat: ASC-25247 - explore page (#656)

* feat: explore page

* feat: explore page

* feat: explore

* feat: a new CommunityJoinedButton

* feat: update skeleton and CommunitySearchResult

* fix: change trending limit to 5

* fix: change default tab back to newsfeed

* fix: add key and fix style

* fix: explore error logic

* fix: fix ClickableArea type

* chore: custom sdk version

* fix: fix style

* chore: remove unused code

* fix: fix community category render logic

* fix: search click logic

* fix: spacing

* fix: css

* fix: fix TopSearchBar style

* fix: truncate logic and CommunityRowItem on CommunitiesByCategoryPage

* fix: update code due to comments

* fix: fix build

* fix: remove React error and update component to align with a tech spec

* fix: fix ClickableArea style

* fix: customization key

* fix: notification typo

* fix: seemore button

* fix: isBrand logic

* fix: remove join button from MycommunitiesPage

* fix: fix recommended community card layout

* fix: scrolling behavior

* fix: fix bugs

* fix: navigation bugs

* fix: community create page

* fix: ASC-26256 - fix lexical utils (#661)

* chore: upgrade lexical to 0.18

* fix: url parsing logic

* chore: remove console.log

* fix: ASC-26255 - refetch recommended communities after join (#662)

* fix: refetch recommended communities after join

* chore: bring back old code

* fix: condition check target community (#663)

* Release/v4.0.0 beta.14 (#664)

* chore(release): 4.0.0-beta.14

* chore: upgrade sdk version

---------

Co-authored-by: bmo-amity-bot <[email protected]>

* chore(release): 4.0.0-beta.15 (#665)

Co-authored-by: bmo-amity-bot <[email protected]>

* style: fix max height video preview (#670)

* fix: passing currentUserId (#672)

* fix: call onBack when create story success (#671)

* fix: ASC-26434 - refresh global feed story (#673)

* fix: refresh global feed story

* fix: remove log

* feat: changed to onPressStart (#674)

* fix: ASC-26262 - input blur after commented (#675)

* feat: changed to onPressStart

* feat: blur event

* feat: ASC-26280 - icons storybook (#668)

* feat: storybook for icons

* feat: dark mode

* feat: add dark mode support

* feat: remove duplicates

* fix: ASC-26458 - video story view (#676)

* fix: pass userId

* fix: call videoLoaded

* fix: handle loading video

* fix: redirect page

* fix: redirect page

* fix: ASC-26262 - blur delay  (#678)

* feat: changed to onPressStart

* feat: blur event

* feat: delay

* feat: overflow index (#677)

* feat: ASC-25653 - add accessibility (#679)

* feat: add accessibilityId comment input

* feat: edited tag accessibilityId

* feat: story upload ui fixes (#682)

* feat: ASC-26263 - private icon (#683)

* feat: private icon

* feat: lock icon className

* fix: ASC-26568 - mention disappear while edit post in v3 (#685)

* fix: mention disappear after edit post

* fix: modal close icon size

* fix: remove comment

* fix: prop name

* chore: v3.6.0

* chore: v3.6.0

* fix: remove expose v4 component

* chore(release): 3.7.0

* chore: update pnpm-lock.yaml

* chore(release): 3.8.0

* chore: update pnpmplock

* chore: update lock

* chore(release): 3.9.0 (#602)

Co-authored-by: bmo-amity-bot <[email protected]>

* Release/v3.10.0 (#639)

* fix: ASC-00000 - layout global feed (#603)

* fix: scroll horizontal

* style: remove padding

* chore: change default screen to fullscreen (#598)

* chore: ASC-00000 - configurable storybook (#595)

* chore: receive apiKey, apiRegion, userId and displayName as a free text

* chore: add submit toggle

* feat: ASC-24796 - fix community profile (#568)

* fix: merge from develop

* fix: remove unused

* fix: community profile component

* fix: post content to use bottom sheet

* fix: community tab control state

* feat: add community pin

* fix: community profile style

* feat: navigate back in community cover

* fix: use millify for count value

* fix: coomunity profile post gap

* fix: verify badge

* fix: community name description

* fix: remove unused

* fix: community description max lines

* fix: community categories

* fix: comunity cover to use bem convention

* fix: community cover add max-height

* fix: export page and components

* fix: update navigation and page behavior

* fix: add community info

* feat: community feed post skeleton

* fix: remove unused

* fix: community tab active color state

* fix: page behavior comment unused

* fix: css

* fix: pin

* fix: type

* fix: css

* Revert "fix: css"

This reverts commit d10c48f94a79d0ab4dcd876a35553457ad6abbc3.

* fix: css

* style: z index

* fix: category UI

* fix: handle long description

* fix: max length

* fix: cover icon color

* fix: private commu hide join btn

* feat: no post UI

* feat: empty pinpost

* feat: lock private content

* fix: condition show lock private content

* fix: condition lock content

* feat: edit page v3

* fix: export error

* fix: context type

* fix: redirect edit post

* style: pass fill default icon as props

* style: remove props

* fix: skeleton feed

* refactor: icons and conditions

* style: lock icon size

* fix: locate files

* fix: import error

* fix: duplicated code

* fix: edit update post

* fix: review comments

* refactor: spinner pull to refresh

* fix: navigate post detail

* fix: hide post impression when not member

* style: spacing

* fix: prevent comment for non member

* style: color text empty post

* fix: UI post title

* fix: post detail click and non member access

* fix: threshold

* style: menu button size

---------

Co-authored-by: Chaiwat Trisuwan <[email protected]>

* fix: ASC-00000 - ulta fixes (#577)

* fix: ASC-24926 - responsive image carousel (#574)

* style: fix color item (#572)

* fix: ASC-24930 - user profile about color (#573)

* style: add bg

* fix: color-scheme light

* style: ratio edit profile

* style: change rem to px

* style: spacing

* fix: ASC-24929 - mobile responsive edit community profile (#578)

* style: mobile responsive

* style: center

* fix: ASC-24927 - mobile create community page (#576)

* fix: mobile create community page

* chore: update form layout

* chore: ASC-24925 - post permissions (#579)

* chore: add skeleton loader

* chore:

* fix: remove skeleton loader

* fix: post permissions

* fix: ASC-24931 - navigation (#582)

* fix: hamburger navigation

* fix: add hideSideMenu prop

* fix: ASC-24924 - update each attachment type (#575)

* fix: update each attachment type

* fix: modal style on mobile screen

* fix: not return just setPosts

Co-authored-by: Bonn <[email protected]>

---------

Co-authored-by: Bonn <[email protected]>

* fix: ASC-24922 - remove subscription (#583)

* fix: remove subscription on post and comment

* chore: upgreade ts-sdk

* fix: remove unused

* fix: ASC-24930 - edit user profile ratio (#585)

* style: mobile responsive

* fix: responsive edit user button

* fix: ASC-23387 - discard post (#586)

* style: text modal color

* fix: clear input

* fix: modal block

* fix: redirect page

* fix: user comment link (#588)

* fix: avatar click link (#591)

* style: fix sticky side (#587)

* fix: ASC-24978 - permission typo (#592)

* fix: permission typo

* chore: remove console.log

* fix: ASC-24972 - handle error submit (#590)

* fix: handle error submit

* fix: remove log

* fix: error type

Co-authored-by: Bonn <[email protected]>

* fix: type any

---------

Co-authored-by: Bonn <[email protected]>

* chore: upgrade sdk version (#593)

* fix: bring back isModerator (#594)

* fix: move hook to a top of a component

* chore: upgrade sdk version (#596)

* fix: export v3 provider

* fix: remove unused code

* chore: remove default font

* chore: circular std font

* chore: update max-width

* fix: remove max-width on Explore

* fix: remove min-width and min-height from a community card

* fix: update CategoriesCard and RecommendedList layout

* fix: ASC-25140 - active and hover state sidebar V3 (#604)

* fix: z-index (#600)

* style: active and hover state

* fix: ASC-25143 - gallery grid (#605)

* fix: grid 3

* fix: remove grid-gap

* fix: ASC-00000 - skeleton css (#609)

* fix: skeleton css

* fix: lint

* chore: revert fonts

* Revert "chore: remove default font"

This reverts commit b62f1aa5e77828772cd1fffd5a46d84480b35626.

* chore: change sdk version to a latest one

* fix: bring back v4 export

---------

Co-authored-by: ChayanitBm <[email protected]>
Co-authored-by: Pitchaya T. <[email protected]>

* feat: ASC-23849 - announcement post (#610)

* fix: merge from develop

* fix: remove unused

* fix: community profile component

* fix: community tab control state

* fix: community profile style

* fix: verify badge

* fix: community description max lines

* fix: community categories

* fix: comunity cover to use bem convention

* fix: community cover add max-height

* fix: export page and components

* fix: update navigation and page behavior

* fix: add community info

* feat: community feed post skeleton

* fix: remove unused

* fix: community tab active color state

* fix: pin

* fix: css

* Revert "fix: css"

This reverts commit d10c48f94a79d0ab4dcd876a35553457ad6abbc3.

* fix: css

* style: z index

* fix: cover icon color

* feat: empty pinpost

* feat: lock private content

* fix: redirect edit post

* style: pass fill default icon as props

* style: remove props

* fix: skeleton feed

* refactor: icons and conditions

* fix: locate files

* fix: duplicated code

* feat: featured tag

* feat: announcement icon

* feat: integrate annouce post with mock data

* feat: add SDK getPinnedPosts

* feat: integrate announcement post

* chore: install stg SDK

* feat: show tag category in post detail

* refactor: remove mock data

* refactor: PR comment

* refactor: remove class not used

* fix: duplicate css

* fix: error unknow type

---------

Co-authored-by:…
  • Loading branch information
8 people authored Oct 18, 2024
1 parent 986d2ae commit 4a8e69c
Show file tree
Hide file tree
Showing 232 changed files with 6,175 additions and 1,044 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/check_do_not_merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ on:

jobs:
ok-to-merge:
if: contains(github.event.pull_request.labels.*.name, 'DO NOT MERGE') == false
runs-on: ubuntu-latest
steps:
- name: This PR is labeled with do not merge
if: contains(github.event.pull_request.labels.*.name, 'DO NOT MERGE') == true
run: |
echo "This PR cannot be merged"
exit 1
- name: This PR is not labeled with do not merge
if: contains(github.event.pull_request.labels.*.name, 'DO NOT MERGE') == false
run: |
echo "This PR can be merged"
exit 0
74 changes: 73 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import path from 'path';
import { readdirSync } from 'fs';
import type { InlineConfig, Plugin } from 'vite';
import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
Expand All @@ -9,11 +12,80 @@ const config: StorybookConfig = {
'@storybook/addon-controls',
'@storybook/addon-viewport',
'@storybook/addon-toolbars',

'@storybook/addon-a11y',
],
framework: '@storybook/react-vite',
staticDirs: ['../static'],
viteFinal: async (config) => {
config.plugins?.push(
assetPlugin(config, {
markup: `[ICONS]`,
exclude: [/.*stories.*/],
assetDir: 'src/v4/icons',
storyFileName: 'icons.stories.tsx',
}),
);
return config;
},
};

export default config;

const assetPlugin: (
config: InlineConfig,
options: {
assetDir: string;
storyFileName: string;
exclude?: Array<RegExp>;
markup: string | RegExp;
},
) => Plugin = (config, { storyFileName, assetDir, exclude, markup }) => {
return {
enforce: 'pre',
name: 'vite-plugin-v4-icons',
transform(code, id) {
const rootDir = config.root!;

if (id.includes(storyFileName)) {
let icons = '',
imports = '';
readdirSync(path.join(rootDir, assetDir)).forEach((file) => {
if (file.match(/.*\.(tsx)/) && exclude?.every((ex) => !file.match(ex))) {
const fileName = file.replace(/.tsx/, '');
const source = {
relativePath: path.join(assetDir.replace(/.*src\//, ''), fileName),
path: path.join(rootDir, assetDir, file),
};

// eslint-disable-next-line @typescript-eslint/no-var-requires
const exportedAssets = require(source.path!);
const entries = Object.entries(exportedAssets);

entries.map(([key, _]) => {
const componentName = key === 'default' ? fileName : key;
imports +=
key == 'default'
? `import ${fileName} from "src/${source?.relativePath}";\n`
: `import {${key}} from "src/${source?.relativePath}";\n`;
icons += `
<button
key="${key}"
data-name="${componentName}"
>
<${componentName} width='25' height='25' />
<div>
<p>${componentName}</p>
<p>${source.relativePath.replace('/src', '')}</p>
</div>
</button>
`;
});
}
});

code = imports + code.replace(markup, icons);
}
return code;
},
};
};
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### 3.10.3 (2024-10-18)

### 3.10.2 (2024-09-12)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amityco/ui-kit-open-source",
"version": "3.10.2",
"version": "3.10.3",
"engines": {
"node": ">=16",
"pnpm": ">=8"
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/Modal/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
import styled, { css } from 'styled-components';
import { Close } from '~/icons';

export const CloseIcon = styled(Close).attrs<{ icon?: ReactNode }>({ width: 18, height: 18 })`
export const CloseIcon = styled(Close).attrs<{ icon?: ReactNode }>({ width: 20, height: 20 })`
padding: 0 6px;
cursor: pointer;
margin-left: auto;
Expand Down
34 changes: 32 additions & 2 deletions src/helpers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ import {
} from '@amityco/ts-sdk';
import isEmpty from 'lodash/isEmpty';

export type Mentioned = { userId: string; length: number; index: number; type: string };
export type Mentionees = Parameters<typeof CommentRepository.updateComment>[1]['mentionees'];
export type Mentioned = {
userId: string;
length: number;
index: number;
type: string;
displayName: string;
};
export type Mentionees = Amity.UserMention[];
export type Metadata = {
mentioned?: Mentioned[];
};
Expand Down Expand Up @@ -116,6 +122,7 @@ export function extractMetadata(
length: displayName.length - AT_SIGN_LENGTH,
type: 'user',
userId: id,
displayName,
})),
];

Expand Down Expand Up @@ -160,3 +167,26 @@ export function parseMentionsMarkup(
export function isNonNullable<TValue>(value: TValue | undefined | null): value is TValue {
return value != null;
}

export function reconstructMentions(
metadata?: Metadata,
mentionees?: Mentionees,
): { plainTextIndex: number; id: string; display: string }[] {
if (!metadata?.mentioned || mentionees?.length === 0) {
return [];
}

const userIds = mentionees?.find((mentionee) => mentionee.type === 'user')?.userIds || [];

return metadata?.mentioned?.map((mention, index) => {
const id = userIds[index];
const displayName = mention.displayName;
const display = '@' + (displayName ?? id);

return {
plainTextIndex: mention.index,
id,
display,
};
});
}
8 changes: 8 additions & 0 deletions src/social/components/CommunityForm/EditCommunityForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ const EditCommunityForm = ({
await onSubmit?.({ ...data, avatarFileId: data.avatarFileId || undefined });

notification.success({ content: <FormattedMessage id="community.updateSuccess" /> });
} catch (error) {
console.log('error', error);
if (error instanceof Error) {
if (error.message.indexOf(':') > -1) {
const [, errorMessage] = error.message.split(':');
notification.error({ content: errorMessage });
}
}
} finally {
setSubmitting(false);
}
Expand Down
1 change: 0 additions & 1 deletion src/social/components/SideSectionMyCommunity/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const SideSectionMyCommunity = ({ className, activeCommunity }: SideSectionMyCom
const open = () => setIsOpen(true);

const close = (communityId?: string) => {
console.log('communityId', communityId);
setIsOpen(false);
communityId && onCommunityCreated(communityId);
};
Expand Down
5 changes: 4 additions & 1 deletion src/social/components/UserHeader/UIUserHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ import {
UserHeaderTitle,
} from './styles';
import { useCustomComponent } from '~/core/providers/CustomComponentsProvider';
import { BrandBadge } from '~/v4/social/internal-components/BrandBadge/BrandBadge';

interface UIUserHeaderProps {
userId?: string | null;
displayName?: string | null;
avatarFileUrl?: string | null;
children?: ReactNode;
isBanned?: boolean;
isBrand?: boolean;
onClick?: (userId: string) => void;
}

Expand All @@ -26,6 +28,7 @@ const UIUserHeader = ({
children,
onClick,
isBanned,
isBrand,
}: UIUserHeaderProps) => {
const onClickUser = () => userId && onClick?.(userId);
return (
Expand All @@ -36,7 +39,7 @@ const UIUserHeader = ({
onClick={onClickUser}
/>
<UserHeaderTitle title={userId || undefined} onClick={onClickUser}>
<div>{displayName}</div> {isBanned && <BanIcon />}
<div>{displayName}</div> {isBanned && <BanIcon />} {isBrand && <BrandBadge />}
</UserHeaderTitle>
{children && <UserHeaderSubtitle>{children}</UserHeaderSubtitle>}
</UserHeaderContainer>
Expand Down
1 change: 1 addition & 0 deletions src/social/components/UserHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const UserHeader = ({ userId, children, onClick, isBanned = false }: UserHeaderP
displayName={user?.displayName}
avatarFileUrl={avatarFileUrl}
isBanned={isBanned}
isBrand={user?.isBrand}
onClick={onClick}
>
{children}
Expand Down
1 change: 1 addition & 0 deletions src/social/components/UserHeader/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const UserHeaderTitle = styled.div`
display: flex;
min-width: 0;
align-items: center;
gap: 8px;
> div {
text-overflow: ellipsis;
Expand Down
7 changes: 3 additions & 4 deletions src/social/components/post/Editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,19 @@ import { PostEditorContainer, Footer, ContentContainer, PostButton } from './sty
import { usePostEditor } from './usePostEditor';

interface PostEditorProps {
postId?: string;
post: Amity.Post;
onSave: () => void;
className?: string;
placeholder?: string;
}

const PostEditor = ({
postId,
post,
placeholder = "What's going on...",
className,
onSave,
}: PostEditorProps) => {
const {
post,
markup,
onChange,
queryMentionees,
Expand All @@ -30,7 +29,7 @@ const PostEditor = ({
isEmpty,
handleSave,
} = usePostEditor({
postId,
post,
onSave,
});

Expand Down
6 changes: 3 additions & 3 deletions src/social/components/post/Editor/usePostEditor.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { PostRepository } from '@amityco/ts-sdk';
import { useMemo, useState } from 'react';
import { parseMentionsMarkup } from '~/helpers/utils';
import { parseMentionsMarkup, reconstructMentions } from '~/helpers/utils';
import usePost from '~/social/hooks/usePost';
import usePostByIds from '~/social/hooks/usePostByIds';
import useSocialMention from '~/social/hooks/useSocialMention';

export const usePostEditor = ({ postId, onSave }: { postId?: string; onSave: () => void }) => {
const post = usePost(postId);
export const usePostEditor = ({ post, onSave }: { post: Amity.Post; onSave: () => void }) => {
const initialChildrenPosts = usePostByIds(post?.children);
const { text, markup, mentions, mentionees, metadata, clearAll, onChange, queryMentionees } =
useSocialMention({
Expand All @@ -18,6 +17,7 @@ export const usePostEditor = ({ postId, onSave }: { postId?: string; onSave: ()
typeof post?.data === 'string' ? post?.data : (post?.data as Amity.ContentDataText)?.text,
post?.metadata,
),
remoteMentions: reconstructMentions(post?.metadata, post?.mentionees),
});

// List of the children posts removed - these will be deleted on save.
Expand Down
4 changes: 2 additions & 2 deletions src/social/components/post/Post/DefaultPostRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,13 @@ const DefaultPostRenderer = (props: DefaultPostRendererProps) => {
</ReviewButtonsContainer>
)}

{isEditing && (
{isEditing && post && (
<Modal
data-qa-anchor="post-editor-modal"
title={formatMessage({ id: 'post.editPost' })}
onCancel={closeEditingPostModal}
>
<PostEditor postId={post?.postId} onSave={closeEditingPostModal} />
<PostEditor post={post} onSave={closeEditingPostModal} />
</Modal>
)}
</>
Expand Down
7 changes: 4 additions & 3 deletions src/social/hooks/useSocialMention.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ interface UseSocialMentionProps {
targetType?: 'user' | 'community' | string;
remoteText?: string;
remoteMarkup?: string;
remoteMentions?: { plainTextIndex: number; id: string; display: string }[];
}

export type QueryMentioneesFnType = (query?: string) => Promise<
Expand All @@ -24,15 +25,15 @@ const useSocialMention = ({
targetType,
remoteText,
remoteMarkup,
remoteMentions = [],
}: UseSocialMentionProps) => {
const isCommunityFeed = targetType === 'community';
const community = useCommunity(targetId);

const [text, setText] = useState(remoteText ?? '');
const [markup, setMarkup] = useState(remoteMarkup ?? remoteText);
const [mentions, setMentions] = useState<
{ plainTextIndex: number; id: string; display: string }[]
>([]);
const [mentions, setMentions] =
useState<{ plainTextIndex: number; id: string; display: string }[]>(remoteMentions);

useEffect(() => {
setText(remoteText || '');
Expand Down
4 changes: 2 additions & 2 deletions src/social/pages/CommunityEdit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ const CommunityEditPage = ({

useEffect(() => setActiveTab(tab), [tab]);

const { onClickCommunity } = useNavigation();
const { onBack } = useNavigation();
const community = useCommunity(communityId);
const avatarFileUrl = useImage({ fileId: community?.avatarFileId, imageSize: 'medium' });

const handleReturnToCommunity = () => communityId && onClickCommunity(communityId);
const handleReturnToCommunity = () => communityId && onBack();

const handleEditCommunity = async (
data: Parameters<typeof CommunityRepository.updateCommunity>[1],
Expand Down
4 changes: 2 additions & 2 deletions src/v4/chat/components/MessageComposer/MessageComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { MentionPlugin } from '~/v4/social/internal-components/Lexical/plugins/M

import { useMutation } from '@tanstack/react-query';
import {
editorStateToText,
editorToText,
getEditorConfig,
MentionData,
} from '~/v4/social/internal-components/Lexical/utils';
Expand Down Expand Up @@ -148,7 +148,7 @@ export const MessageComposer = ({
if (!channel) return;
if (!editorRef.current) return;

const { mentioned, mentionees, text } = editorStateToText(editorRef.current);
const { mentioned, mentionees, text } = editorToText(editorRef.current);

if (text?.trim().length === 0) return;

Expand Down
Loading

0 comments on commit 4a8e69c

Please sign in to comment.