Skip to content

Commit

Permalink
Release/v4.0.0 beta.9 (#72)
Browse files Browse the repository at this point in the history
* fix: ASC-21249 - align story tab component props (#203)

* fix: can't upload story

* fix: story image renderer

* fix: align comment tray component props

* fix: align story tab component props

* fix: change export name to align signature api

* fix: ddraft page

* fix: align signature api

* fix: story tab

* fix: ASC-21260 - align comment tray component props (#202)

* fix: can't upload story

* fix: story image renderer

* fix: align comment tray component props

* fix: align story tab component props

* fix: change export name to align signature api

* fix: ddraft page

* fix: align signature api

* fix: story tab

* fix: remove unused

* fix: comment tray

* fix: ASC-21404 - AmityViewStoryPage signature alignment  (#209)

* fix z-index

* fix: signature alignment

* fix: view story page

* feat: add to support 6 users for storybook (#238)

* feat: ASC-00000 - use more env from secrets (#239)

* feat: add to support 6 users for storybook

* fix: add to read env from secrets

* feat: ASC-00000 - add more storybook user (#240)

* feat: add to support 6 users for storybook

* fix: add to read env from secrets

* fix: add use secret on staging

* fix: permission (#244)

* fix: ASC-21393 - refactor customization 4.0  (#211)

* feat: add generateShadeColors func

* feat: add AmityUIKitManager

* chore: add tsdoc to AmityUIKitManager

* fix: merge from develop

* fix: AmityUIKit manager

* fix: remove unused

* fix: revert uikit 3

* fix: remove unused

* fix: export

* fix: move to main v4

* fix: move to v4

* fix: export path

* Refactor theme generation logic in
ThemeProvider.tsx

* fix: theme color generation

* fix: theme provider

* fix: remove unused

* feat: add Typography component with css

* fix: css

* fix: add queryClient provider

* fix: import

* fix: import

* fix: v4

* fix: conflict

* fix: draft page

* fix: setup

* fix: export

* fix: move mergedNavigationBehavior

* fix: remove unused

* fix: remove unused

* fix: uikit manager

* fix: uncomment

* fix: remove unused

* fix: remove unused

* fix: remove unused

* fix: remove unused files

* fix: remove

* fix: login

* fix: css var

* fix: css var

* fix: condition

* fix: css var

* fix: css var

* fix: hook

* fix: type

* fix: ASC-00000 - V4 fix customization (#248)

* fix: config structure

* fix: add hyperlink config

* fix: add validate

* fix: config and hyperlink

* fix: hyperlink

* fix: css

* fix: border radius

* fix: hyperlink

* fix: hyperlink

* fix: add storybook user

* fix: aspect ratio

* fix: hyperlink config css var

Co-authored-by: Kiattirat Sujjapongse <[email protected]>

* fix: css var module

Co-authored-by: Kiattirat Sujjapongse <[email protected]>

* fix: ASC-21789 - create story on view story page doesn't work (#249)

* fix: video

* fix: uncomment

---------

Co-authored-by: Kiattirat Sujjapongse <[email protected]>

---------

Co-authored-by: Kiattirat Sujjapongse <[email protected]>

* feat(chat): ASC-0000 - Chat V4 big chunk 1 (#214)

* feat: add livechat ui

* feat: add chatButton and desktop view

* fix: bg color

* feat: move story to be under V4 storybook folder

* feat: add customComponent

* fix: change chat icon

* fix: remove unread notification

* fix: remove un-used hook

* fix: remove un-used

* fix: change style to module css

* fix: remove unused

* feat: add prefix`asc` to default css config

* fix: remove chatIcon

* fix: modal not open smoothly at the first time

* fix: remove un-used styling

* feat: update color pallate

* feat: update spacing

* feat: update color and fontSize

* fix: box shadow on header

* feat: re-structure folder to v4

* fix: import global css

* fix: use typograhy module css

* fix: remove unused

* feat: add message list and bubbles

* fix: wrap element

* fix: change file name

* feat: add compose bar

* feat: add home indicator

* feat: add sending a mesage action

* fix: sorting message to be asc

* feat: add badge for moderator

* fix: overflow message

* fix: sortBy segmentAsc

* feat: add message list pagination

* feat(chat): add draft-js as a compose bar

* feat: add loading indicator

* feat(chat): fix submit

* feat(chat): fix compose bar container

* feat: add viewing reply message

* fix: deleted message display

* fix: remove comment

* feat(chat): use default compose bar / remove draft-js

* feat(chat): remove draft

* feat(chat-state): asc-20903 done loading state

* feat(chat-state): asc-20903 restructure

* feat(chat-state): asc-20903 apply infinite scroll

* feat(chat-state): asc-20903 include error from sdk api to local hook

* feat(chat-state): asc-20903 add error state

* feat(chat-state): asc-20903 add error state

* feat(chat-mention): asc-00000 create message with mention

* feat: add popover action

* feat: add hover state for message action

* feat: add flag and mention button

* feat(chat-mention): asc-00000 click to mention

* feat: add more action

* fix: merge

* fix: hide mention and flag

* fix: ASC-20213 - fix message list (#219)

* fix: message list of the same user

* fix: z-index

* feat: confirm modal v3 to support dark mode

* fix: change to use i18n

* fix: TODO text display on Modal content

* fix: merge className

* fix: remove unused

* fix: bring overflow-y back

Co-authored-by: Kiattirat Sujjapongse <[email protected]>

---------

Co-authored-by: Kiattirat Sujjapongse <[email protected]>

* fix(chat): fix pagination issue (#223)

* feat(chat): ASC-21243 - create message with reply message (#218)

* feat(chat): reply placeholder

* feat(chat): create message with reply

* feat: ASC-00000 - dark mode hard code (#225)

* fix: dark theme color palatte

* fix: header color styling

* fix: colors on message bubble

* fix: color on popover

* fix: color on optionIcon

* fix(chat): asc-00000 -  fix loading state css broken (#221)

* fix(chat): asc-00000 loading state css missing

* fix(chat): asc-00000 loading state css missing

* feat(chat): ASC-20222 - connection offline alert (#213)

* feat(chat): asc-20222 - connection state

* feat(chat): asc-20222 - add more connection

* feat(chat): asc-20222 - update PR

* feat(chat): asc-20222 - update PR

* feat: update PR

* fix(chat): ASC-00000 - update mention payload (#224)

* fix(chat): update mention payload

* fix(chat): mention ALL

* fix: sample app to open sheet every selection

* fix: hide heart reaction

* feat: ASC-20213 - fix popover still show (#235)

* fix: popover still show

* fix: bring just ArrowTop code back

* fix: resize messagelist container (#232)

* feat: ASC-20213 - highlight mention message (#236)

* fix: popover still show

* fix: bring just ArrowTop code back

* feat: add hilight for mention message

* fix: truncate long text of replied message

* fix: change getTextWithMention to be a component

* fix: message not show as a new line

* feat: ASC-20213 - fix consequence message list (#237)

* fix: remove consequence message list

* fix: remove unused

* feat(chat): ASC-00000 - api alignment for chat header (#241)

* feat(chat): api alignment chat header

* Update src/v4/chat/components/AmityLiveChatHeader/livechatHeader.stories.tsx

* feat(chat): ASC-00000 - export AmityLiveChatHeader

* fix: ASC-21776 - reply message display on compose bar is over the screen (#242)

* fix: reply display message over the screen

* feat: remove comment

* feat(chat): duplicate useSocialMention => useMention and revert

* feat(chat): update pr

* fix(chat): ASC-00000 - change theme for message composer (#234)

* fix(chat): ASC-00000 - duplicate v4

* fix(chat): ASC-00000 - check message length before submit

* fix(chat): ASC-00000 -update styling

* fix(chat): ASC-00000 - update styling

* fix(chat): prettier remove code by accident

* fix(chat): remove styled component

* fix(chat): asc-21737 - update condition to prevent create duplicate message (#245)

* fix(chat): asc-21791 - fix mention payload (#243)

* feat(chat): update pr

* feat: ASC-20213 - message bubble api alignment (#247)

* fix: message bubble api aligment

* fix: to use action as params for message bubble

* feat: export elements

* fix: remove unused

* fix: change type name

Co-authored-by: Kiattirat Sujjapongse <[email protected]>

* fix: type name

* feat: expose component

* fix: wrong type name

* fix: modify expose component

* fix: storybook's name

---------

Co-authored-by: Kiattirat Sujjapongse <[email protected]>

* fix(chat): ASC-21796 - query chat after connection back to normal + api alignment (#246)

* fix(chat): asc-21796 reload data when connection back to normal

* feat(chat): api alignment for message list

* feat(chat): export

* feat(chat): api align live chat page

* feat(chat): api align for composer

* feat(chat): update pr

* feat(chat): update pr

* feat(chat): remove all v4 component from useCustomComponent

* feat(chat): update pr - remove chat header

* feat(chat): ASC-00000 - compose bar api alignment (#250)

* feat(chat): composebar alignment

* feat(chat): update pr

* fix(chat): revert code (#251)

* feat: ASC-20213 - modal notification v4 (#252)

* fix: add confirm modal v4

* fix: change to use Notification v4

* fix: remove unused

* fix: duplicate icon to v4

* fix: move confirm model component

* fix: revert modal and confirm v3 components

* fix: revert notification v3

* fix: move Icon to v4 and remove unused icon

* fix(chat): revert code

* feat: ASC-20213 -  fix delete message display (#256)

* fix: move component to v4 folder

* fix: delete message

* feat(chat): update pr

* fix(chat): ASC-21734 - Fix UI Bug (#255)

* fix(chat): update mention ui

* fix(chat): update mention ui

* fix(chat): update delete word

* fix(chat): update mention ui

* fix(chat): update mention ui

* Update src/i18n/en.json

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

* feat(chat): update mention logic

* feat(chat): update pr

* feat(chat): revert text

* feat(chat): update mention logic

* fix(chat): popup width

* fix(chat): font-color in light mode

* fix(chat): placeholder

* fix(chat): fix moderator

* feat(chat): fix mention

* feat(chat): fix avatar in reply

* feat(chat): update pr

* feat(chat): use rem

* feat(chat): update pr

---------

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

* fix: ASC-20213 - bug staging (#257)

* fix: bug staging

* fix: revert overflow-x

* feat: ASC-20213 - livechat configuration merge (#253)

* feat: add generateShadeColors func

* feat: add AmityUIKitManager

* chore: add tsdoc to AmityUIKitManager

* fix: merge from develop

* fix: AmityUIKit manager

* fix: remove unused

* fix: revert uikit 3

* fix: remove unused

* fix: export

* fix: move to main v4

* fix: move to v4

* fix: export path

* Refactor theme generation logic in
ThemeProvider.tsx

* fix: theme color generation

* fix: theme provider

* fix: remove unused

* feat: add Typography component with css

* fix: css

* fix: add queryClient provider

* fix: import

* fix: import

* fix: color palette

* fix: change global.css file

* fix: v4

* fix: conflict

* fix: draft page

* fix: setup

* fix: export

* fix: move mergedNavigationBehavior

* fix: remove unused

* fix: remove unused

* fix: uikit manager

* fix: uncomment

* fix: remove unused

* fix: remove unused

* fix: remove unused

* fix: remove unused files

* fix: remove

* fix: login

* fix: typography and style files

* fix: typography

* fix: message type

* fix: type

* fix: add background to livechat page

* feat: add config for message bubble

* feat: fix cannot load next page

* fix: type

* feat: add placeholder for compose bar configuration

* feat: revert storybook user

* fix: use primary color from theme

* fix: nested component style

* fix: to pass class

* fix: change to be module.css

* fix: remove unused file

* fix: remove unused config

* fix: typography

* fix: default user avatar

* feat: upgrade ts-sdk

* fix: revet theme file

---------

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

* fix(chat): change tag

---------

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

* feat(chat): ASC-0000 - export compose bar (#258)

* feat: export v4 provider (#259)

* Release/v4.0.0 beta.1 (#262)

* fix: update ts-sdk version

* chore(release): 4.0.0-beta.1

---------

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

* fix: ASC-00000 - export type (#263)

* fix: export type

* fix: update version

* fix: ASC-00000 - fix provider v4 props (#261)

* fix: provider

* fix: provider

* fix: export

* fix: export

* fix: type

* fix: pnpm lock

* fix: deps

* Release/v4.0.0 beta.2 (#265)

* fix: export wrong path (#264)

* chore(release): 4.0.0-beta.2

---------

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

* feat: ASC-20277 - flag unflag message (#267)

* feat: add report button on message action sheet

* feat: add flag ui on message bubble container

* fix: cannot click report button

* feat: add unFlag button

* fix: unflag button text id

* feat: add flag/unflag toast

* feat: add livechat toast

* fix: icon to support color changing

* fix: message and id for report, unreport

* fix: remove unused

* fix: use color from palette

* fix: ASC-00000 - remove sheet loading state (#271)

* fix: remove sheet in loading state

* fix: remove wrong return

* fix: ASC-21913 - type and optional field on config (#268)

* fix: type and optional field on config

* fix: remove undefined checking

* fix: use config from customization provider

* fix: add error state on delete message (#269)

* fix: ASC-21767 - mention border when got mention (#272)

* fix: mention border when got mention

* fix: remove console.log

* feat: ASC-21691 - add hyperlink style to primary color (#270)

* feat: add hyperlink style to primary color

* fix: remove className because Linktify does not support

* fix: remove nested selector and open to new tab

* fix(social): asc-00000 use internal path (#266)

* feat: ASC-17980 - global feed story targets tab and story target circle (#254)

* feat: add generateShadeColors func

* feat: add AmityUIKitManager

* chore: add tsdoc to AmityUIKitManager

* fix: merge from develop

* fix: AmityUIKit manager

* fix: remove unused

* fix: revert uikit 3

* fix: remove unused

* fix: export

* fix: move to main v4

* fix: move to v4

* fix: export path

* Refactor theme generation logic in
ThemeProvider.tsx

* fix: theme color generation

* fix: theme provider

* fix: remove unused

* feat: add Typography component with css

* fix: css

* fix: add queryClient provider

* fix: import

* fix: import

* fix: v4

* fix: conflict

* fix: draft page

* feat: global feed story tab

* fix: empty state

* fix: css module

* fix: official badge

* fix: css

* fix: css

* fix: css

* fix: update from comments

* fix: story tab item

* feat: feed v4

* fix: private condition

* fix: story

* fix: css

* fix: remove unused

* fix: story

* fix: remove unused

* fix: ignore type

* fix: progress ring

* fix: use clsx

* fix: remove ts-ignore

* fix: remove unused

* feat(chat): ASC-00000 - Muted + Banned channel (#276)

* feat(chat): isMuted done

* feat(chat): asc-00000 remove comment

* feat(chat): banned user

* feat(chat): update PR

* feat(chat): update PR

* feat(chat): ASC-00000 - fix composebar styling + limit 200 character (#275)

* fix(social): asc-00000 use  from v4 folder

* fix(chat): asc-00000 fix mention styling in composebar

* fix: update styling

* fix: compose bar styling

* feat: limit text

* feat: revert file

* feat: revert file

* feat: remove deprecated func

* fix: ASC-21913 - config type (#278)

* fix: type and optional field on config

* fix: remove undefined checking

* fix: use config from customization provider

* fix: use defaultConfig

* fix: add blocked word + not allowed link (#280)

* fix: icon (#281)

* fix: using v3 and v4 provider separately for each stories (#284)

* fix: ASC-00000 - confirm context (#285)

* fix: confirm context

* chore: Update src/social/components/Comment/index.tsx

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

* chore: remove unused code

---------

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

* fix: ASC-00000 - notification context (#286)

* fix: NotificationProvider

* fix: add NotificationProvider into UiKitProvider

* chore: move LiveChatNotificationProvider to chat

* fix: ASC-00000 - add login step on UiKitProvider (#287)

* fix: login

* fix: Update src/core/providers/UiKitProvider/index.tsx

* fix: message remain on compose bar after sending success (#289)

* fix: user muted state (#293)

* fix: ASC-22026 - moderator cannot send message on muted channel (#294)

* fix: user muted state

* fix: moderator cannot send message on muted channel

* fix: ASC-219999 - incorrect comment count color (#283)

* fix: font

* fix: story tab gap

* fix: modal

* fix: ASC-21979 - can't click header on video preview (#282)

* fix: use css var

* fix: move v4 story

* fix: move folder

* fix: remove index path

* fix: styled to css module

* fix: use v4 (#295)

* fix: ASC-20502 - shouldAllowCreation condition (#296)

* fix: shouldAllowCreation

* fix: type

* fix: ASC-20883 - remove latestComments prop (#290)

* fix: pass latestComments to CommentList component

* fix: remove latestComments prop

* fix: add v3 provider (#298)

* fix: ASC-21980 - hyper link background color (#299)

* fix: use v4

* fix: hyperlink position and bg color

* fix: remove styled component

* feat: ASC-21665 - darkmode config (#279)

* fix: type and optional field on config

* fix: remove undefined checking

* fix: use config from customization provider

* feat: handle switch light/dark mode

* feat: add configuration live chat page

* feat: add config on livechat header

* feat: add theme configuration message list

* feat: add configuration theme on message composer

* fix: modal styling

* feat: add configuration for livechat notification

* fix: copy message to use livechat notification

* fix: pr review

* fix: pr

* fix: user preferred theme

* fix: ASC-21980 - fix remove link button style (#300)

* fix: use v4

* fix: hyperlink position and bg color

* fix: remove styled component

* fix: button

* fix: character limit (#302)

* fix: change permission to check if user is a moderator (#304)

* fix: ASC-22060 - remove onBack() on draft page (#303)

* fix: use v4

* fix: hyperlink position and bg color

* fix: remove styled component

* fix: button

* fix: hyperlink style

* fix: style

* fix: story tab item font color

* fix: css var

* fix: remove onBack()

* fix: css

* fix: remove unused

* fix: remove unused line

* fix: ASC-21980 - hyperlink style (#301)

* fix: use v4

* fix: hyperlink position and bg color

* fix: remove styled component

* fix: button

* fix: hyperlink style

* fix: style

* fix: story tab item font color

* fix: css var

* fix: css

* fix: remove unused

* fix: remove line

* fix: ASC-22063 - fix story global feed pagination (#305)

* fix: use v4

* fix: hyperlink position and bg color

* fix: remove styled component

* fix: button

* fix: hyperlink style

* fix: style

* fix: story tab item font color

* fix: css var

* fix: remove onBack()

* fix: story global feed pagination

* fix: add comment

* fix: remove new line

* fix: remove console.log

* fix: logic

* fix: story style

* chore: Update src/v4/styles/global.css

* fix: remove console.log

---------

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

* fix: official condition (#306)

* fix: ASC-19646 - notification error when failed create story (#307)

* fix: official condition

* fix: add error

* fix: ASC-22060 - navigate to community when create story (#308)

* fix: official condition

* fix: add error

* fix: navigate

* fix: ASC-21985 - navigate story target for global feed story (#309)

* fix: official condition

* fix: add error

* fix: navigate

* fix: story global feed navigate

* fix: onClose

* fix: ASC-22060 - create story on view story page (#310)

* fix: story global feed upload

* fix: remove console.log

* fix: navigate

* fix: ASC-21970 - story uploading state (#297)

* fix: font

* fix: story tab gap

* fix: use css var

* fix: modal

* fix: can't delete story

* fix: v4 component

* fix: hyperlink config

* fix: shouldAllowCreation

* fix: type

* fix: uploading state

* fix: remove console.log

* fix: use css var

* fix: modal

* fix: v4 component

* fix: hyperlink config

* fix: shouldAllowCreation

* fix: type

* fix: uploading state

* fix: remove console.log

* fix: storyRing state

* fix: remove fill in verified icon

* fix: story ring

* fix: icon

* fix: story

---------

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

* fix: notification style (#311)

* fix: add onAllStoriesEnd (#312)

* Release/v4.0.0 beta.3 (#314)

* chore: upgrade dependencies

* fix: cherry-pick bugs from v3

* chore(release): 4.0.0-beta.3

---------

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

* chore(sdk): ASC-00000 - custom build ci (#316)

* chore: custom build ci

* chore: remove unused libs

* chore: fix ci

* chore: fix ci

* fix: revert ci

* fix: remove pnpm cache step

* fix: pnpm install step

* fix: ci

* fix: add NPM_TOKEN

* fix: update .npmrc

* fix: update pnpm-lock.yaml

* fix: path

* chore: add cache step

* feat: only creator or story permission can see impression (#319)

* feat: ASC-22084 - StoryPreview component for Console (#317)

* feat: story preview component for console

* fix: ui

* fix: story preview prop

* fix: export

* fix: story prop

* fix: story prop

* fix: trigger action

* fix: trigger action

* fix: trigger action

* fix: trigger action

* fix: action

* update readme (#323)

* feat: ASC-20558 - swipe down gesture to close story  (#321)

* feat: apply framer motion

* feat: add transition

* fix: swipe down for video

* fix: video story should pause when drag

* fix: remove unused libs

* fix: wrong spell function name

* fix: remove unused

* chore: change story component name

* fix: v4 avatar component

* feat: add ghost prop to button

* fix: remove unused

* fix: bottom sheet component

* fix: use rem

* fix: load more wrapper

* fix: draft page

* fix: load more button

* fix: hyperlink

* fix: css

* fix: icon

* fix: css

* fix: css

* fix: comment

* fix: story comment

* fix: remove unused

* fix: import

* fix: button dark theme

* fix: custom css

* fix: bottom sheet css

* fix: css

* fix: import

* fix: css

* fix: css

* fix: avatar

* fix: remove console.log

* fix: avatar

* fix: use clsx

* fix: whitespace

* fix: use icon from v4

* fix: icon

* fix: loading indicator

* fix: ASC-22263 - hyperlink background (#326)

* fix: hyperlink background

* fix: hyperlink icon color

* fix: css (#327)

* fix: ASC-22263 - hyperlink doesn't show in view story page (#328)

* fix: hyperlink background

* fix: hyperlink icon color

* fix: css (#327)

* fix: story

* fix: css

* fix: ASC-22264 - reply comment margin (#329)

* fix: hyperlink background

* fix: hyperlink icon color

* fix: css

* fix: add scroller

* fix: comment

* fix: ASC-21792 - comment list infinite scroll (#330)

* fix: hyperlink background

* fix: hyperlink icon color

* fix: css

* fix: add scroller

* fix: comment

* fix: scroll

* fix: comment list

* fix: reaction list

* fix: comment date css shrink

* fix: type

* fix: css

* fix: color

* fix: comment scroll

* fix: comment list

* fix: use intersection observer instead

* fix: padding

* Release/v4.0.0 beta.4 (#334)

* fix: github actions

* chore: dropdown instead of free-text

* chore: add none option

* chore: add none option for pre-release input

* fix: add NPM_TOKEN env

* chore(release): 4.0.0-beta.4

---------

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

* fix: to support un config value (#340)

* fix: hyperlink long text (#335)

* fix: hyperlink custom text input max length (#336)

* fix: ASC-220001 - share story button (#337)

* fix: share story button

* fix: use avatar v4

* fix: remove unused

* fix: ASC-21590 - hyperlink ui (#347)

* fix: hyperlink long text

* fix: story hyperlink

* fix: story commu condition (#346)

* feat: ASC-22133 - custom reaction provider (#325)

* feat: add custom reaction provider

* feat: add to use reactionsContext

* fix: rename provider

* feat: ASC-22127 - reaction preview message bubble (#331)

* feat: add reaction preview container

* feat: add abbreviateCount function

* feat: add fallback reaction

* feat: update pr

---------

Co-authored-by: Kiattirat S <[email protected]>

* feat: ASC-22124 - message reaction picker (#332)

* feat: add reaction container and button

* feat: add active and hover state

* fix: storybook display

* fix: remove unused

* feat: add checking for active state

* feat: add open state on reaction picker

* feat: add hover state on Quick reaction button

* feat: seperate components

* feat: close picker when clicking outside

* feat: add handling on click reaction button

* fix: hover state

* Update src/v4/chat/components/LiveChatMessageContent/MessageReaction/index.tsx

* Delete src/v4/chat/hooks/useMessageReactions.ts

---------

Co-authored-by: Kiattirat Sujjapongse <[email protected]>

* feat: ASC-22130 - add quick reaction (#339)

* feat: add handling for quick reaction button

* fix: add await to wait for add and remove reaction

* fix: reaction pickert style

* fix: storybook name

* fix: reaction picker storybook

* feat: add pageId, componentId and elementId

* fix: change internal component name and export

* fix: export from components

* fix: message reaction components name

* feat: add static file to include in storybook build

* fix: remove duplicated file

* fix: new design on my reaction

* fix: not use z-index

* fix: position of each reaction

* fix: remove border on reaction preview for my reaction style

* fix: remove unused

* feat(reaction): ASC-22136 - reaction panel (#344)

* feat: add handling for quick reaction button

* fix: add await to wait for add and remove reaction

* fix: reaction pickert style

* fix: storybook name

* fix: reaction picker storybook

* feat: add pageId, componentId and elementId

* fix: remove comment

* feat(reaction-list): add empty files

* feat(reaction): reuse reaction tab from social

* feat(reaction): pass openReaction func to child

* feat(reaction): render data from config

* feat(reaction): update panel style

* feat(reaction): update reaction list

* feat(reaction): update reaction list

* feat(reaction): add all state for reaction list

* feat(reaction): change unit

* feat(reaction): remove unused files

* feat(reaction): update PR

* feat(reaction): update PR

* feat(reaction): update PR

* fix: remove unused

* feat(reaction): update PR

---------

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

---------

Co-authored-by: Kiattirat S <[email protected]>

* fix: ASC-22623 - story video (#349)

* fix: story video

* fix: video

* fix: remove console.log

* feat(reaction): update condition (#350)

* fix(reaction): ASC-22611 - update missing ui and action to remove reaction from message (#348)

* fix: ASC-22611 - update ui

* fix(reaction): missing ui and action to remove reaction from message

* fix: ASC-22611 - update ui

* fix: ASC-22611 - update ui

* fix(reaction): hide 0 reaction count

* fix(reaction): update pr

* fix(reaction): export reaction list

* fix: create story condition (#352)

* fix: ASC-222740 - create story condition for global-admin role (#354)

* fix: create story condition

* fix: condition

* fix: condition

* fix: condition

* fix(reaction): ASC-22622 - fix reaction UI bugs (#355)

* fix(reaction): update pagination

* fix(reaction): use total reactor count from message / story / post / comments

* fix(reaction): update ui

* fix(reaction): update ui

* fix: ASC-22740 - create story permission condition to create story (#356)

* fix: create story condition

* fix: condition

* fix: condition

* fix: condition

* fix: condition

* feat(SDK): test build

* feat(SDK): upgrade ts-sdk version

* fix: ASC-21529 - view story wrapper css (#359)

* fix: css

* refactor: view story page condition

* fix: ASC-20521 - story delete condition (#360)

* fix: story delete condition

* fix: condition

* fix: ASC-20505 - condition for non member (#361)

* fix: condition for non member

* fix: hyperlink config

* fix: condition

* fix: hook (#362)

* fix: ASC-22947 - hyperlink config bottom sheet condition (#367)

* fix: hyperlink action condition

* fix: hyperlink css

* fix: remove unused

* fix: hyperlink config condition

* fix: ASC-22949 - video story bug when delete (#366)

* fix: video story bug when delete

* fix: remove console.log

* fix: condition

* fix: close bottom sheet condition (#365)

* fix: ASC-20502 - comment condition (#363)

* fix: comment condition

* fix: story comment compose bar condition

* fix: ASC-22484 - hyperlink config css (#345)

* fix: hyperlink config css

* fix: remove unused

* fix: remove unused

* fix: hyperlink

* fix: color bg

* fix: remove console log

* fix: type

* fix: type

* fix: hyperlink

* fix: ASC-20532 - deleted comment block (#364)

* fix: deleted comment block

* fix: css

* fix: remove unused props

* fix: css var

* fix: category card responsive styles (#372)

* fix: ASC-22947 - story can't add hyperlink (#373)

* fix: hyperlink action condition

* fix: hyperlink css

* fix: remove unused

* fix: hyperlink config condition

* fix: css

* fix: ASC-00000 - bring back v3 code (#358)

* Revert "fix: ASC-21481 - remove unnecessary request to prevent rate limit (#230)"

This reverts commit e9c82ec82889773dc875f812e7688e4363d20569.

# Conflicts:
#	pnpm-lock.yaml
#	src/core/providers/UiKitProvider/index.tsx
#	src/social/components/CommentList/index.tsx
#	src/social/components/CommentList/styles.tsx
#	src/social/components/EngagementBar/UIEngagementBar.tsx

* fix: reply comment text

* Revert "fix: ASC-21481 - remove unnecessary request to prevent rate limit (#230)"

This reverts commit e9c82ec82889773dc875f812e7688e4363d20569.

# Conflicts:
#	pnpm-lock.yaml
#	src/core/providers/UiKitProvider/index.tsx
#	src/social/components/CommentList/index.tsx
#	src/social/components/CommentList/styles.tsx
#	src/social/components/EngagementBar/UIEngagementBar.tsx

* fix: reply comment text

* fix: undefined .length

* fix: video should pause when click item in action menu (#375)

* 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]>

---------
…
  • Loading branch information
8 people authored Jul 12, 2024
1 parent 038dfcb commit f5f580a
Show file tree
Hide file tree
Showing 442 changed files with 17,654 additions and 7,746 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,13 @@ jobs:

environment:
name: dev/${{ github.event.pull_request.number }}
url: https://ui-kit-open-source.dev.amity.co/${{ github.event.pull_request.number }}
url: https://ui-kit.dev.amity.co/${{ github.event.pull_request.number }}

env:
NPM_FONT_AWESOME_TOKEN: ${{ secrets.NPM_FONT_AWESOME_TOKEN }}
STORYBOOK_API_REGION: ${{ secrets.STORYBOOK_API_REGION }}
STORYBOOK_API_KEY: ${{ secrets.STORYBOOK_API_KEY }}
STORYBOOK_USER1: ${{ secrets.STORYBOOK_USER1 }}
STORYBOOK_USER2: ${{ secrets.STORYBOOK_USER2 }}
STORYBOOK_USER3: ${{ secrets.STORYBOOK_USER3 }}
STORYBOOK_USER4: ${{ secrets.STORYBOOK_USER4 }}
STORYBOOK_USER5: ${{ secrets.STORYBOOK_USER5 }}
STORYBOOK_USER6: ${{ secrets.STORYBOOK_USER6 }}
STORYBOOK_USERS: ${{ secrets.STORYBOOK_USERS }}

steps:
- name: git checkout
Expand Down Expand Up @@ -86,6 +82,6 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_S3_BUCKET: ui-kit-open-source.dev.amity.co
AWS_S3_BUCKET: ui-kit.dev.amity.co
SOURCE_DIR: ./storybook-build
DEST_DIR: ${{ github.event.pull_request.number }}
15 changes: 7 additions & 8 deletions .github/workflows/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,13 @@ jobs:

environment:
name: staging
url: https://ui-kit-open-source.staging.amity.co/
url: https://ui-kit.staging.amity.co/

env:
NPM_FONT_AWESOME_TOKEN: ${{ secrets.NPM_FONT_AWESOME_TOKEN }}
STORYBOOK_API_REGION: ${{ secrets.STORYBOOK_API_REGION }}
STORYBOOK_API_KEY: ${{ secrets.STORYBOOK_API_KEY }}
STORYBOOK_USER1: ${{ secrets.STORYBOOK_USER1 }}
STORYBOOK_USER2: ${{ secrets.STORYBOOK_USER2 }}
STORYBOOK_USER3: ${{ secrets.STORYBOOK_USER3 }}
STORYBOOK_USER4: ${{ secrets.STORYBOOK_USER4 }}
STORYBOOK_USER5: ${{ secrets.STORYBOOK_USER5 }}
STORYBOOK_USER6: ${{ secrets.STORYBOOK_USER6 }}
STORYBOOK_USERS: ${{ secrets.STORYBOOK_USERS }}

steps:
- name: git checkout
Expand Down Expand Up @@ -50,6 +46,9 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: build storybook
run: pnpm run storybook:build

Expand All @@ -60,6 +59,6 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_S3_BUCKET: ui-kit-open-source.staging.amity.co
AWS_S3_BUCKET: ui-kit.staging.amity.co
SOURCE_DIR: ./storybook-build
DEST_DIR: ''
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
5 changes: 2 additions & 3 deletions .storybook/decorators/FluidControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ const FullScreen = (props) => (
position: 'absolute',
left: 0,
top: 0,
width: '100vw',
height: '100vh',
overflow: 'auto',
width: '100dvw',
height: '100dvh',
}}
{...props}
/>
Expand Down
29 changes: 5 additions & 24 deletions .storybook/decorators/UiKitDecorator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import UiKitProvider from '../../src/core/providers/UiKitProvider';
import { Preview } from '@storybook/react';
import amityConfig from '../../amity-uikit.config.json';

const users = import.meta.env.STORYBOOK_USERS.split(',');

const GLOBAL_NAME = 'user';
const global = {
[GLOBAL_NAME]: {
Expand All @@ -13,30 +15,9 @@ const global = {
icon: 'user',
items: [
{ value: 'Web-Test,Web-test', title: 'Web-Test' },
{
value: import.meta.env.STORYBOOK_USER1,
title: import.meta.env.STORYBOOK_USER1?.split(',')[1],
},
{
value: import.meta.env.STORYBOOK_USER2,
title: import.meta.env.STORYBOOK_USER2?.split(',')[1],
},
{
value: import.meta.env.STORYBOOK_USER3,
title: import.meta.env.STORYBOOK_USER3?.split(',')[1],
},
{
value: import.meta.env.STORYBOOK_USER4,
title: import.meta.env.STORYBOOK_USER4?.split(',')[1],
},
{
value: import.meta.env.STORYBOOK_USER5,
title: import.meta.env.STORYBOOK_USER5?.split(',')[1],
},
{
value: import.meta.env.STORYBOOK_USER6,
title: import.meta.env.STORYBOOK_USER6?.split(',')[1],
},
...users.map((user) => {
return { value: `${user},${user}`, title: user };
}),
],
},
},
Expand Down
29 changes: 5 additions & 24 deletions .storybook/decorators/UiKitV4Decorator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { Preview } from '@storybook/react';
import amityConfig from '../../amity-uikit.config.json';
import { Config } from '../../src/v4/core/providers/CustomizationProvider';

const users = import.meta.env.STORYBOOK_USERS.split(',');

const GLOBAL_NAME = 'user';
const global = {
[GLOBAL_NAME]: {
Expand All @@ -14,30 +16,9 @@ const global = {
icon: 'user',
items: [
{ value: 'Web-Test,Web-test', title: 'Web-Test' },
{
value: import.meta.env.STORYBOOK_USER1,
title: import.meta.env.STORYBOOK_USER1?.split(',')[1],
},
{
value: import.meta.env.STORYBOOK_USER2,
title: import.meta.env.STORYBOOK_USER2?.split(',')[1],
},
{
value: import.meta.env.STORYBOOK_USER3,
title: import.meta.env.STORYBOOK_USER3?.split(',')[1],
},
{
value: import.meta.env.STORYBOOK_USER4,
title: import.meta.env.STORYBOOK_USER4?.split(',')[1],
},
{
value: import.meta.env.STORYBOOK_USER5,
title: import.meta.env.STORYBOOK_USER5?.split(',')[1],
},
{
value: import.meta.env.STORYBOOK_USER6,
title: import.meta.env.STORYBOOK_USER6?.split(',')[1],
},
...users.map((user) => {
return { value: `${user},${user}`, title: user };
}),
],
},
},
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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.

## 4.0.0-beta.9 (2024-07-12)

### Bug Fixes

- remove unused file ([6ac29fc](https://github.com/AmityCo/Amity-Social-Cloud-UIKit-Web-OpenSource/commit/6ac29fcf22a99029ed59bbde11b8967054c6fb78))

## 4.0.0-beta.8 (2024-06-24)

## 4.0.0-beta.7 (2024-06-18)
Expand Down
34 changes: 26 additions & 8 deletions amity-uikit.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,28 +177,46 @@
"live_chat/*/*": {
"theme": {
"light": {
"primary_color": "#1054DE",
"secondary_color": "#ebecef",
"primary_color": "#1054de",
"base_inverse_color": "#fff",
"base_color": "#ebecef",
"base_shade1_color": "#a5a9b5",
"base_shade2_color": "#6e7487",
"base_shade3_color": "#40434e",
"base_shade4_color": "#292b32",
"alert_color": "#FA4D30",
"secondary_color": "#292b32",
"secondary_shade1_color": "#a5a9b5",
"secondary_shade2_color": "#898e9e",
"secondary_shade3_color": "#a5a9b5",
"secondary_shade4_color": "#40434e",
"secondary_shade5_color": "#292b32",
"alert_color": "#fa4d30",
"highlight_color": "#1054de",
"message_bubble_primary_color": "#1054de",
"message_bubble_secondary_color": "#292b32",
"background_color": "#191919",
"base_inverse_color": "#FFFFFF"
"background_shade1_color": "#40434e"
},
"dark": {
"primary_color": "#1054DE",
"secondary_color": "#ebecef",
"primary_color": "#1054de",
"base_inverse_color": "#fff",
"base_color": "#ebecef",
"base_shade1_color": "#a5a9b5",
"base_shade2_color": "#6e7487",
"base_shade3_color": "#40434e",
"base_shade4_color": "#292b32",
"alert_color": "#FA4D30",
"secondary_color": "#292b32",
"secondary_shade1_color": "#a5a9b5",
"secondary_shade2_color": "#898e9e",
"secondary_shade3_color": "#a5a9b5",
"secondary_shade4_color": "#40434e",
"secondary_shade5_color": "#292b32",
"alert_color": "#fa4d30",
"highlight_color": "#1054de",
"message_bubble_primary_color": "#1054de",
"message_bubble_secondary_color": "#292b32",
"background_color": "#191919",
"base_inverse_color": "#FFFFFF"
"background_shade1_color": "#40434e"
}
}
},
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amityco/ui-kit-open-source",
"version": "4.0.0-beta.8",
"version": "4.0.0-beta.9",
"engines": {
"node": ">=20",
"pnpm": "9"
Expand Down Expand Up @@ -61,6 +61,7 @@
"@types/lodash": "^4.14.202",
"@types/prop-types": "^15.7.11",
"@types/react": "^17.0.74",
"@types/react-dom": "^18.3.0",
"@types/react-helmet": "^6.1.11",
"@types/react-infinite-scroller": "^1.2.5",
"@types/react-mentions": "^4.1.13",
Expand Down Expand Up @@ -106,14 +107,17 @@
"@fortawesome/react-fontawesome": "^0.2.0",
"@hookform/error-message": "^2.0.1",
"@hookform/resolvers": "^3.3.4",
"@lexical/link": "^0.16.1",
"@lexical/react": "^0.16.1",
"@radix-ui/react-tabs": "^1.0.4",
"@tanstack/react-query": "^5.28.14",
"clsx": "^2.1.0",
"colorthief": "^2.4.0",
"dayjs": "^1.11.11",
"extract-colors": "^4.0.2",
"filesize": "^9.0.11",
"framer-motion": "^11.1.7",
"hls.js": "^1.4.14",
"lexical": "^0.16.1",
"linkify-react": "^4.1.3",
"linkifyjs": "^4.1.3",
"lodash": "^4.17.21",
Expand Down
Loading

0 comments on commit f5f580a

Please sign in to comment.