Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/v3.11.2 #91

Merged
merged 301 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
301 commits
Select commit Hold shift + click to select a range
7ac3965
fix: official condition (#306)
chaiwattsw Apr 26, 2024
04e1a61
fix: ASC-19646 - notification error when failed create story (#307)
chaiwattsw Apr 26, 2024
72b7abf
fix: ASC-22060 - navigate to community when create story (#308)
chaiwattsw Apr 26, 2024
ebf39f0
fix: ASC-21985 - navigate story target for global feed story (#309)
chaiwattsw Apr 26, 2024
6120a05
fix: ASC-21970 - story uploading state (#297)
chaiwattsw Apr 26, 2024
e1e17e9
fix: notification style (#311)
chaiwattsw Apr 26, 2024
2b05e24
fix: add onAllStoriesEnd (#312)
chaiwattsw Apr 26, 2024
bfe560c
Release/v4.0.0 beta.3 (#314)
ptchayap Apr 26, 2024
acd2075
chore(sdk): ASC-00000 - custom build ci (#316)
bonanaaaaaa Apr 29, 2024
61368cc
feat: only creator or story permission can see impression (#319)
chaiwattsw Apr 30, 2024
3dc7893
feat: ASC-22084 - StoryPreview component for Console (#317)
chaiwattsw Apr 30, 2024
3919fe7
update readme (#323)
frankent May 2, 2024
baebc18
feat: ASC-20558 - swipe down gesture to close story (#321)
chaiwattsw May 7, 2024
240f0e5
fix: ASC-22263 - hyperlink background (#326)
chaiwattsw May 8, 2024
e3e1dcd
fix: ASC-22263 - hyperlink doesn't show in view story page (#328)
chaiwattsw May 9, 2024
3c6cbf4
fix: ASC-22264 - reply comment margin (#329)
chaiwattsw May 10, 2024
bbcd949
fix: ASC-21792 - comment list infinite scroll (#330)
chaiwattsw May 13, 2024
3528ce4
Release/v4.0.0 beta.4 (#334)
bonanaaaaaa May 13, 2024
1e41eef
fix: to support un config value (#340)
ptchayap May 15, 2024
2662160
fix: hyperlink long text (#335)
chaiwattsw May 20, 2024
ccdbbdd
fix: hyperlink custom text input max length (#336)
chaiwattsw May 20, 2024
3ebfc1a
fix: ASC-220001 - share story button (#337)
chaiwattsw May 20, 2024
067ff98
fix: ASC-21590 - hyperlink ui (#347)
chaiwattsw May 20, 2024
83a1d34
fix: story commu condition (#346)
chaiwattsw May 20, 2024
fe8aab8
feat: ASC-22133 - custom reaction provider (#325)
ptchayap May 20, 2024
eca154a
fix: ASC-22623 - story video (#349)
chaiwattsw May 24, 2024
596d158
feat(reaction): update condition (#350)
frankent May 24, 2024
2d95eb1
fix(reaction): ASC-22611 - update missing ui and action to remove rea…
frankent May 24, 2024
1799fe5
fix: create story condition (#352)
chaiwattsw May 24, 2024
7d6e687
fix: ASC-222740 - create story condition for global-admin role (#354)
chaiwattsw May 27, 2024
0c95669
fix(reaction): ASC-22622 - fix reaction UI bugs (#355)
frankent May 27, 2024
c138b57
fix: ASC-22740 - create story permission condition to create story (#…
chaiwattsw May 27, 2024
be48905
feat(SDK): test build
frankent May 28, 2024
cc22a38
feat(SDK): upgrade ts-sdk version
frankent May 28, 2024
3a74cb6
fix: ASC-21529 - view story wrapper css (#359)
chaiwattsw May 31, 2024
00f978f
fix: ASC-20521 - story delete condition (#360)
chaiwattsw May 31, 2024
22062fa
fix: ASC-20505 - condition for non member (#361)
chaiwattsw Jun 4, 2024
478f3a6
fix: hook (#362)
chaiwattsw Jun 4, 2024
6efd829
fix: ASC-22947 - hyperlink config bottom sheet condition (#367)
chaiwattsw Jun 5, 2024
e887e78
fix: ASC-22949 - video story bug when delete (#366)
chaiwattsw Jun 5, 2024
896cffb
fix: close bottom sheet condition (#365)
chaiwattsw Jun 5, 2024
d85467c
fix: ASC-20502 - comment condition (#363)
chaiwattsw Jun 5, 2024
27c1aab
fix: ASC-22484 - hyperlink config css (#345)
chaiwattsw Jun 5, 2024
52f83a3
fix: ASC-20532 - deleted comment block (#364)
chaiwattsw Jun 5, 2024
14171c3
fix: category card responsive styles (#372)
chaiwattsw Jun 6, 2024
2349f87
fix: ASC-22947 - story can't add hyperlink (#373)
chaiwattsw Jun 6, 2024
8e3f30c
fix: ASC-00000 - bring back v3 code (#358)
bonanaaaaaa Jun 6, 2024
59a97e6
fix: video should pause when click item in action menu (#375)
chaiwattsw Jun 7, 2024
7a67b43
fix: hyperlink text color (#376)
chaiwattsw Jun 7, 2024
c80ef32
fix: ASC-21507 - reset form when confirm remove hyperlink (#368)
chaiwattsw Jun 7, 2024
d9ae116
chore: ASC-22035 - customizations (#378)
bonanaaaaaa Jun 10, 2024
2f0f1f2
fix: story tab show with member only (#383)
chaiwattsw Jun 10, 2024
2cf3c79
chore: ASC-22036 - stylelint (#379)
bonanaaaaaa Jun 10, 2024
200d9b7
chore: ASC-22039 - browserslist (#380)
bonanaaaaaa Jun 10, 2024
69f5558
fix: draft video should loop (#369)
chaiwattsw Jun 10, 2024
0708b36
chore: ASC-22040 - node 20 (#381)
bonanaaaaaa Jun 11, 2024
f3f8fcd
fix: fix a staging workflow (#389)
bonanaaaaaa Jun 12, 2024
20c6ffe
fix: add pnpm install step (#390)
bonanaaaaaa Jun 12, 2024
db78b3a
feat: ASC-22340 - CommunitySearchResults (#391)
bonanaaaaaa Jun 12, 2024
1c0b558
feat: ASC-22294 - PostContent (#392)
bonanaaaaaa Jun 12, 2024
91c3035
feat: TopSearchBar (#393)
bonanaaaaaa Jun 12, 2024
58ff6aa
feat: SocialHomePage (#394)
bonanaaaaaa Jun 12, 2024
c81ad9e
feat: SocialGlobalSearchPage (#395)
bonanaaaaaa Jun 12, 2024
300dea5
feat: MyCommunities (#396)
bonanaaaaaa Jun 12, 2024
a0b5fba
feat: PostDetailPage (#397)
bonanaaaaaa Jun 12, 2024
4f732ad
feat: ASC-22335 - update routes (#398)
bonanaaaaaa Jun 12, 2024
94d3831
chore: Drawer (#402)
bonanaaaaaa Jun 13, 2024
c9b6c2a
fix: text overflow (#400)
bonanaaaaaa Jun 13, 2024
ff1d052
chore: ASC-22335 - update SocialGlobalSearchPage route (#399)
bonanaaaaaa Jun 13, 2024
ce29902
fix: ASC-22335 - VideoViewer styles (#401)
bonanaaaaaa Jun 13, 2024
af3a58d
fix: ASC-21508 - hyperlink to show confirm when back with data (#404)
chaiwattsw Jun 13, 2024
11178ed
fix: ASC-20694 - react story condition for non member (#370)
chaiwattsw Jun 13, 2024
f985532
fix: ASC-22312 - moderator badge (#384)
chaiwattsw Jun 14, 2024
f20534b
feat: ASC-22893 - create post menu & select post target page (#405)
ChayanitBm Jun 14, 2024
f2b97bb
feat: ASC-22888 - hide create post menu for current release (#413)
ChayanitBm Jun 14, 2024
43fbcd0
fix: hyperlink confirm remove link (#406)
chaiwattsw Jun 14, 2024
18444ad
fix: ASC-23219 - story view page onClose (#408)
chaiwattsw Jun 14, 2024
3881e12
fix: ASC-20522 - navigate view story in mobile overlay (#409)
chaiwattsw Jun 17, 2024
0d343fc
fix: ASC-22720 - view story full width and height (#410)
chaiwattsw Jun 17, 2024
21205a9
feat(message): handle optimistic on message creation (#377)
frankent Jun 17, 2024
250a066
fix: ASC-22081 - notification v4 (#411)
chaiwattsw Jun 17, 2024
e57374c
fix: ASC-20521 - delete first multiple story go to next story (#412)
chaiwattsw Jun 17, 2024
d7ee437
fix: ASC-23136 - fix social v3 issues (#388)
bonanaaaaaa Jun 17, 2024
88bb4c3
feat: ASC-00000 - tech debt livechat (#416)
ptchayap Jun 18, 2024
5f2823a
fix: view story page context (#420)
chaiwattsw Jun 18, 2024
736182a
fix: build include css (#421)
ptchayap Jun 18, 2024
afb784b
fix: ASC-23233 - disabled button when file is uploading and fix 429 i…
bonanaaaaaa Jun 19, 2024
f3bc479
fix: ASC-23288 - disabled submit vote button (#424)
bonanaaaaaa Jun 19, 2024
bc5f833
fix: formatDuration (#429)
bonanaaaaaa Jun 20, 2024
84d9d57
fix: link text color (#426)
bonanaaaaaa Jun 20, 2024
5b63b65
fix: reduce comment api network call amount (#427)
bonanaaaaaa Jun 20, 2024
814e8a8
fix: like button color (#425)
bonanaaaaaa Jun 20, 2024
09ba538
fix: play icon (#428)
bonanaaaaaa Jun 20, 2024
47fad16
feat: ASC-23090 - LinkPreview (#414)
bonanaaaaaa Jun 20, 2024
98b8d65
fix: move post creator out of infinite scroll (#430)
bonanaaaaaa Jun 20, 2024
09c00fa
fix: append a created poll post (#432)
bonanaaaaaa Jun 20, 2024
fdfd85a
fix: ASC-22315 - error noti when user upload unsupported file (#417)
chaiwattsw Jun 20, 2024
175f384
fix: ASC-20535 - deleted reply block (#418)
chaiwattsw Jun 20, 2024
0d89042
fix: ASC-20356 - story tab should navigate to unseen (#419)
chaiwattsw Jun 20, 2024
30d7b1b
fix: ASC-21809 - upload video story on mobile device (#423)
chaiwattsw Jun 20, 2024
99f8737
fix: type and layout (#434)
bonanaaaaaa Jun 20, 2024
3c6d994
fix: ASC-21494 - non member can react in comment tray (#433)
chaiwattsw Jun 21, 2024
3828a69
feat: skeleton loader (#407)
bonanaaaaaa Jun 21, 2024
aa4579b
fix: ASC-23278 - view story container (#435)
chaiwattsw Jun 21, 2024
881e565
fix: ASC-23385 - view story comment tray close after comment (#438)
chaiwattsw Jun 24, 2024
f251eb4
Release/v4.0.0 beta.7 (#439)
ptchayap Jun 24, 2024
19c0669
Release/v4.0.0 beta.8 (#440)
ptchayap Jun 24, 2024
9743637
feat: ASC-22898 - create post page (#437)
ChayanitBm Jun 25, 2024
f24f710
fix: remove log (#445)
ChayanitBm Jun 25, 2024
137ac9d
feat: ASC-00000 - Add empty user (#447)
ChayanitBm Jun 26, 2024
ca21dad
feat: ASC-23125 - ads on post (#448)
ptchayap Jun 27, 2024
1ab826a
fix: delete first multiple segment story should navigate to next stor…
chaiwattsw Jun 27, 2024
dffd0af
fix: ASC-20694 - wrong notification content (#442)
chaiwattsw Jun 27, 2024
185eaef
fix: ASC-22312 - comment moderator badge condition (#443)
chaiwattsw Jun 27, 2024
8196664
feat: sync api v5 (#455)
ChayanitBm Jun 28, 2024
215f0bf
fix: use preferred theme as light on v3 (#454)
chaiwattsw Jun 28, 2024
83a1cfd
fix: select file to pause story progress bar (#456)
chaiwattsw Jun 28, 2024
4a2db32
fix: ASC-23557 - scroll mention list (#453)
ChayanitBm Jun 28, 2024
c50c033
fix: ASC-20957 - story tab ring loading state (#444)
chaiwattsw Jun 28, 2024
a96493b
fix: ASC-22315 - failed noti to use BE message (#446)
chaiwattsw Jun 28, 2024
382d52e
fix: showImpression condition (#451)
chaiwattsw Jun 28, 2024
82605a2
chore: ASC-00000 - uikit core api (#457)
bonanaaaaaa Jun 28, 2024
bad3546
feat: MyCommunitiesSearchPage (#459)
bonanaaaaaa Jun 28, 2024
57f8126
fix: ASC-23544 - global search UI (#460)
bonanaaaaaa Jun 28, 2024
93a2681
feat: ASC-22903 - media attachment (#449)
ChayanitBm Jun 28, 2024
41f0951
fix: ASC-23543 - fix PostDetailPage navigation and layout (#461)
bonanaaaaaa Jun 28, 2024
d9330be
fix: shouldCall useEffect logic (#462)
bonanaaaaaa Jun 28, 2024
ec692a0
fix: ASC-22949 - view story navigate logic (#458)
chaiwattsw Jun 28, 2024
ee68c13
fix: member query (#466)
ChayanitBm Jul 1, 2024
7be6be4
fix: moderator badge logic (#464)
bonanaaaaaa Jul 1, 2024
0881bcb
fix: ASC-00000 - tanstack query cache key (#465)
bonanaaaaaa Jul 1, 2024
9c64f84
fix: remove timestamp interaction (#463)
bonanaaaaaa Jul 1, 2024
d6bb2a8
fix: ASC-21809 - upload story video in android device (#467)
chaiwattsw Jul 2, 2024
e68a722
fix: ASC-23419 - like reaction in story reaction list show unknown re…
chaiwattsw Jul 2, 2024
e990805
fix: swipe down (#470)
chaiwattsw Jul 2, 2024
384e59e
fix: ASC-00000 - css broken in v3 (#473)
chaiwattsw Jul 2, 2024
674ccce
fix: ASC-23389 - disable overlay when desktop screen (#477)
chaiwattsw Jul 2, 2024
74a85f2
style: ASC-23581 - add width full button (#476)
ChayanitBm Jul 2, 2024
3b54ede
fix: ASC-23552 - fix reaction button interaction (#472)
bonanaaaaaa Jul 2, 2024
a3552a1
fix: type error (#471)
bonanaaaaaa Jul 2, 2024
413845b
fix: ASC-23659 - newsfeed layout (#474)
bonanaaaaaa Jul 2, 2024
6ca94ef
fix: ASC-23007 - community member collection limit (#478)
chaiwattsw Jul 2, 2024
32464b8
fix(sdk): ASC-22474 - story preview thumbnail hyperlink in console (#…
chaiwattsw Jul 2, 2024
8d9b011
fix: ASC-23583 - discard post modal (#483)
ChayanitBm Jul 3, 2024
cef0796
fix: ASC-23600 - create post params (#475)
ChayanitBm Jul 3, 2024
4f83068
fix: ASC-23590 - add toast duration (#479)
ChayanitBm Jul 3, 2024
3121dbf
fix: ASC-23599 - mention member in private community (#468)
ChayanitBm Jul 3, 2024
72735f4
fix: query mention (#484)
ChayanitBm Jul 3, 2024
ef1562c
feat: ASC-00000 - story preview skeleton (#486)
chaiwattsw Jul 3, 2024
ca73e6e
feat: ASC-22898 - create postProvider (#485)
ChayanitBm Jul 3, 2024
789ac57
fix: story bugs (#487)
chaiwattsw Jul 3, 2024
39116b3
feat: ASC-00000 - new comment (#482)
ptchayap Jul 8, 2024
3801e95
fix: ASC-00000 - story bugs (#491)
chaiwattsw Jul 8, 2024
46ea97f
fix: ASC-22508 - impression count condition (#492)
chaiwattsw Jul 8, 2024
fd92307
feat: ASC-23125 - global feed ad integration (#489)
bonanaaaaaa Jul 8, 2024
ffc15d5
chore: add storybook users (#494)
bonanaaaaaa Jul 8, 2024
1869dae
feat: comment ad (#493)
bonanaaaaaa Jul 8, 2024
a386845
chore: update ci (#495)
bonanaaaaaa Jul 8, 2024
8d0a671
fix: fix slice index (#498)
bonanaaaaaa Jul 9, 2024
9f9398e
fix: ad live collection integration (#503)
bonanaaaaaa Jul 9, 2024
a0ec6a5
fix: ASC-00000 - fix react error (#502)
bonanaaaaaa Jul 9, 2024
6803df7
fix: ASC-00000 - done button (#496)
chaiwattsw Jul 9, 2024
ee0e87c
fix: ASC-00000 - modal overlay (#497)
chaiwattsw Jul 9, 2024
4ddaba0
fix: ad information drawer (#500)
bonanaaaaaa Jul 9, 2024
6e2cba8
fix: ASC-24074 - comment ad style (#504)
bonanaaaaaa Jul 9, 2024
271fc72
fix: ASC-00000 - theme (#501)
bonanaaaaaa Jul 9, 2024
5fa2bfe
fix: ASC-24074 - fix an incorrect text position (#499)
bonanaaaaaa Jul 9, 2024
20f0042
feat: ASC-23131 - story premium ads (#508)
bonanaaaaaa Jul 10, 2024
1cb6ea6
feat: ASC-23312 - support image video upload (#506)
ChayanitBm Jul 10, 2024
8a50f99
fix: ASC-23693 - fix premium ads global feed (#512)
bonanaaaaaa Jul 11, 2024
3e1fa8e
fix: retain scroll position (#513)
bonanaaaaaa Jul 11, 2024
a43aedd
fix: remove button hover color (#517)
bonanaaaaaa Jul 11, 2024
8a29b4e
fix: reaction count (#509)
bonanaaaaaa Jul 11, 2024
48bd769
fix: comment ad styles (#518)
bonanaaaaaa Jul 11, 2024
de2d038
fix: ASC-00000 - fix paginator (#516)
bonanaaaaaa Jul 11, 2024
399b381
fix: ASC-23591 - image ratio (#515)
bonanaaaaaa Jul 11, 2024
812c3e4
fix: ASC-24193 - fix a background color css variable (#510)
bonanaaaaaa Jul 11, 2024
6bde523
chore: ASC-00000 - premium ads pure components (#522)
bonanaaaaaa Jul 11, 2024
cf5bb43
chore: ASC-00000 - console story ad ui (#521)
bonanaaaaaa Jul 11, 2024
d639683
fix: reactions count formatting (#519)
bonanaaaaaa Jul 11, 2024
05a19a9
style: fix height (#523)
ChayanitBm Jul 11, 2024
7a00f82
fix: ASC-24020 - load more mention list (#514)
ChayanitBm Jul 11, 2024
26222c6
fix: button style unset (#524)
bonanaaaaaa Jul 12, 2024
8a65e0c
style: change height (#525)
ChayanitBm Jul 12, 2024
c01da64
fix: ASC-00000 - create post menu position (#526)
ChayanitBm Jul 12, 2024
dea254d
feat: ASC-00000 - AmityStoryTargetSelectionPage (#528)
chaiwattsw Jul 12, 2024
80bc06f
fix: comment ad style (#527)
bonanaaaaaa Jul 12, 2024
bd29071
fix: ASC-23586 - livechat customization (#520)
bonanaaaaaa Jul 12, 2024
000742d
fix: ASC-24263 - stories bug (#533)
bonanaaaaaa Jul 12, 2024
49fdd43
fix: image ratio to 1 (#532)
bonanaaaaaa Jul 12, 2024
aee2164
fix: ASC-00000 - minor bugs (#531)
bonanaaaaaa Jul 12, 2024
5a9a424
fix: draft video story (#530)
chaiwattsw Jul 12, 2024
9e115b2
fix: ASC-00000 - story (#507)
chaiwattsw Jul 12, 2024
4e0eea1
fix: align with api (#534)
bonanaaaaaa Jul 12, 2024
a4cff59
feat: ASC-24094 - update code snippet (#529)
ChayanitBm Jul 12, 2024
ee61d27
fix: ASC-21809 - story video duration (#511)
chaiwattsw Jul 12, 2024
38003e8
fix: ASC-21809 - image local (#535)
chaiwattsw Jul 12, 2024
3547d7e
fix: video ratio (#536)
bonanaaaaaa Jul 15, 2024
91bd753
fix: fix Linkify (#539)
bonanaaaaaa Jul 15, 2024
23b1b97
fix: StoryAd layout (#537)
bonanaaaaaa Jul 15, 2024
21cf181
feat: combine v3 code (#541)
ChayanitBm Jul 15, 2024
40c6654
refactor: ASC-00000 - upload media (#540)
ChayanitBm Jul 15, 2024
281921e
fix: split into RoundedBackButton and BackButton (#543)
bonanaaaaaa Jul 15, 2024
3200a08
fix: useFeed (#542)
bonanaaaaaa Jul 16, 2024
223ef14
chore: ASC-23077 - eslint 9 (#387)
bonanaaaaaa Jul 16, 2024
5a40ac3
fix: ASC-00000 - v4 comment list component (#505)
chaiwattsw Jul 16, 2024
df87103
feat: ASC-00000 - comment skeleton loading and see more (#546)
ptchayap Jul 16, 2024
e69b3bd
fix: ASC-23324 - combine v3 and v4 (#548)
ChayanitBm Jul 18, 2024
06c0e95
fix: ASC-24390 - mention is not show in comment (#549)
ptchayap Jul 19, 2024
dbd8162
fix: onPress button (#550)
ChayanitBm Jul 23, 2024
2104f50
fix: ASC-24396 - comment list pagination (#553)
bonanaaaaaa Jul 24, 2024
ee60c55
fix: ASC-24024 - mention list and media attachment position (#551)
ChayanitBm Jul 24, 2024
81d1531
fix: query community sort (#552)
ChayanitBm Jul 24, 2024
e24d56b
docs: update example env (#554)
ptchayap Jul 24, 2024
9357565
Release/v4.0.0 beta.10 (#555)
ptchayap Jul 24, 2024
c37d928
feat: ASC-24349 - edit post (#557)
ChayanitBm Aug 1, 2024
abf6f13
feat: ASC-24665 - check labels ci (#558)
bonanaaaaaa Aug 1, 2024
4edd8ed
feat: ASC-24666 - create pull_request_template.md (#559)
ChayanitBm Aug 5, 2024
1136d05
feat: ASC-23982 - post impression (#561)
ChayanitBm Aug 6, 2024
568afd1
fix: undefined metadata (#564)
ChayanitBm Aug 7, 2024
f30d7ae
fix: ASC-24780 - handle no change edit post (#562)
ChayanitBm Aug 8, 2024
4853c2f
fix: ASC-24778 - add edit tag (#563)
ChayanitBm Aug 8, 2024
8e5faf1
fix: add getAuthToken param (#567)
ptchayap Aug 9, 2024
16c0ac8
fix: ASC-24831 - profile blinking (#569)
ptchayap Aug 9, 2024
0fd1d3b
fix: change text fail edit (#571)
ChayanitBm Aug 13, 2024
e7f0868
fix: ASC-23280 - showing long post (#580)
ChayanitBm Aug 13, 2024
9b5cdb8
style: add spacing (#581)
ChayanitBm Aug 13, 2024
10d37bb
fix: ASC-24779 - onClick go to post detail (#584)
ChayanitBm Aug 14, 2024
3fc1101
fix: fix ui (#589)
bonanaaaaaa Aug 15, 2024
5a91c31
fix: ASC-24857 - link preview button (#570)
ChayanitBm Aug 16, 2024
e16b6d2
chore(release): 4.0.0-beta.11 (#601)
ChayanitBm Aug 16, 2024
e86ed22
chore: v3.6.0
ptchayap Jun 24, 2024
d4b6b36
chore: v3.6.0
ptchayap Jun 24, 2024
eec9875
fix: remove expose v4 component
ptchayap Jun 24, 2024
3aefb29
chore(release): 3.7.0
bmo-amity-bot Jun 24, 2024
4cc383d
chore: update pnpm-lock.yaml
bonanaaaaaa Jul 12, 2024
0bc37a0
chore(release): 3.8.0
bmo-amity-bot Jul 12, 2024
a903fcd
chore: update pnpmplock
ptchayap Aug 8, 2024
4c75b04
chore: update lock
ChayanitBm Aug 16, 2024
89d5097
chore(release): 3.9.0 (#602)
ChayanitBm Aug 19, 2024
02da826
Release/v3.10.0 (#639)
ptchayap Sep 2, 2024
8ebc957
fix: skeleton style (#646)
bonanaaaaaa Sep 12, 2024
a4c5f13
chore(release): 3.10.1 (#649)
bonanaaaaaa Sep 12, 2024
fd2001b
Release/v3.10.2 (#687)
ChayanitBm Oct 18, 2024
fba2e36
Release/v3.11.0 (#703)
ptchayap Oct 25, 2024
258afeb
Release/v3.11.1 (#726)
ChayanitBm Nov 14, 2024
6db887d
Release/v3.11.2 (#739)
ptchayap Nov 22, 2024
2c53bd3
chore: v3.11.1
ptchayap Nov 22, 2024
0837e38
Merge remote-tracking branch 'upstream/v3' into release/v3.11.2
ptchayap Nov 22, 2024
3df5b16
chore(release): 3.11.2
bmo-amity-bot Nov 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.11.2 (2024-11-22)

## 3.11.0 (2024-10-25)

### 3.10.3 (2024-10-18)
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.11.0",
"version": "3.11.2",
"engines": {
"node": ">=16",
"pnpm": ">=8"
Expand Down
4 changes: 3 additions & 1 deletion src/core/components/GalleryGrid/TruncatedGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ import Square from '~/core/components/Square';
=> ((100% / 3) / .75)
*/

const Gallery = styled.div<{ count?: number; grid?: boolean }>`
const Gallery = styled.div.withConfig({
shouldForwardProp: (prop) => prop !== 'grid',
})<{ count?: number; grid?: boolean }>`
display: grid;
width: 100%;

Expand Down
4 changes: 3 additions & 1 deletion src/core/components/SideMenuActionItem/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export const ButtonActionItem = styled(SecondaryButton)`
width: 100%;
`;

export const AnchorActionItem = styled.a<{ active?: boolean }>`
export const AnchorActionItem = styled.a.withConfig({
shouldForwardProp: (prop) => prop !== 'active',
})<{ active?: boolean }>`
cursor: pointer;
border-radius: 4px;
${actionItemContainerStyles}
Expand Down
7 changes: 6 additions & 1 deletion src/social/components/post/TextContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ import MentionHighlightTag from '~/core/components/MentionHighlightTag';
import { Mentioned, findChunks } from '~/helpers/utils';
import { useCustomComponent } from '~/core/providers/CustomComponentsProvider';

export const PostContent = styled.div<{ isExpanded: boolean; postMaxLines: number }>`
export const PostContent = styled.div.withConfig({
shouldForwardProp: (prop) => prop !== 'isExpanded' && prop !== 'postMaxLines',
})<{
isExpanded: boolean;
postMaxLines: number;
}>`
overflow-wrap: break-word;
color: ${({ theme }) => theme.palette.neutral.main};
white-space: pre-wrap;
Expand Down
5 changes: 3 additions & 2 deletions src/v4/core/AdEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class SeenRecencyCache {
return JSON.parse(window.localStorage.getItem(this.#persistentCacheKey) || '{}');
}

getSeenRecencyByAdId(adId: string): number {
getSeenRecencyByAdId(adId?: string): number | undefined {
if (!adId) return;
return this.#getSeenRecencyCache()[adId];
}

Expand Down Expand Up @@ -82,7 +83,7 @@ export class AdEngine {
}
}

getLastSeen(adId: string) {
getLastSeen(adId?: string) {
return SeenRecencyCache.instance.getSeenRecencyByAdId(adId);
}

Expand Down
7 changes: 5 additions & 2 deletions src/v4/core/AdSupplier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@ export class AdSupplier {

#calculateImpressionAges(ads: Amity.Ad[]) {
const recencySortedAds = ads.sort((ad1, ad2) => {
return AdEngine.instance.getLastSeen(ad2.adId) - AdEngine.instance.getLastSeen(ad1.adId);
const ad1ID = AdEngine.instance.getLastSeen(ad1.adId) ?? 0;
const ad2ID = AdEngine.instance.getLastSeen(ad2.adId) ?? 0;
return ad2ID - ad1ID;
});

const impressionAges = new Map<string, number>();

const minLastSeen = AdEngine.instance.getLastSeen(
recencySortedAds[recencySortedAds.length - 1].adId,
recencySortedAds?.[recencySortedAds.length - 1]?.adId,
);
const maxLastSeen = AdEngine.instance.getLastSeen(recencySortedAds[0].adId);

Expand Down
4 changes: 2 additions & 2 deletions src/v4/icons/AngleRight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';

const AngleRight = (props: React.SVGProps<SVGSVGElement>) => (
<svg
width="6"
height="9"
width="100%"
height="100%"
viewBox="0 0 6 9"
fill="none"
xmlns="http://www.w3.org/2000/svg"
Expand Down
12 changes: 6 additions & 6 deletions src/v4/social/elements/CommunityAvatar/CommunityAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import { useAmityElement } from '~/v4/core/hooks/uikit';
import styles from './CommunityAvatar.module.css';
import clsx from 'clsx';

const CommunityAvatarSvg = (props: React.SVGProps<SVGSVGElement>) => (
const CommunityAvatarSvg = ({ className, ...props }: React.SVGProps<SVGSVGElement>) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width="64"
height="64"
width="100%"
height="100%"
viewBox="0 0 64 64"
fill="none"
className={styles.communityAvatar__placeholder}
className={clsx(styles.communityAvatar__placeholder, className)}
{...props}
>
<rect width="64" height="64" rx="32" className={styles.communityAvatar__placeholder__rect} />
Expand Down Expand Up @@ -46,7 +46,7 @@ export function CommunityAvatar({

if (isExcluded) return null;

if (avatarFile == null) return <CommunityAvatarSvg style={themeStyles} />;
if (avatarFile == null) return <CommunityAvatarSvg style={themeStyles} className={className} />;

return (
<object
Expand All @@ -56,7 +56,7 @@ export function CommunityAvatar({
data-qa-anchor={accessibilityId}
className={clsx(styles.communityAvatar__image, className)}
>
<CommunityAvatarSvg />
<CommunityAvatarSvg className={className} />
</object>
);
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.shareStoryButton {
display: inline-flex;
height: 2.5rem;
padding: 0.375rem 0.5rem 0.375rem 0.25rem;
padding: 0.25rem 0.5rem 0.25rem 0.25rem;
align-items: center;
gap: var(--asc-spacing-s1);
flex-shrink: 0;
Expand Down
34 changes: 34 additions & 0 deletions src/v4/social/hooks/useVisibilitySensor.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { RefObject, useEffect, useState } from 'react';

interface UseVisibilitySensorProps {
threshold: number;
elementRef: RefObject<HTMLDivElement>;
}

export const useVisibilitySensor = ({ threshold, elementRef }: UseVisibilitySensorProps) => {
const [isVisible, setIsVisible] = useState(false);

useEffect(() => {
if (!elementRef.current) return;

const observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
const isIntersecting = entry.isIntersecting;
setIsVisible(isIntersecting);
});
},
{
threshold: threshold,
},
);

observer.observe(elementRef.current);

return () => {
observer.disconnect();
};
}, [threshold, elementRef]);

return { isVisible };
};
34 changes: 9 additions & 25 deletions src/v4/social/internal-components/ImageViewer/ImageViewer.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
import React, { useState } from 'react';
import useImage from '~/core/hooks/useImage';
import usePostByIds from '~/social/hooks/usePostByIds';
import { useAmityElement } from '~/v4/core/hooks/uikit';
import { ClearButton } from '~/v4/social/elements/ClearButton';

import styles from './ImageViewer.module.css';
import AngleRight from '~/v4/icons/AngleRight';
import usePost from '~/v4/core/hooks/objects/usePost';

const AngleRight = (props: React.SVGProps<SVGSVGElement>) => (
<svg
width="6"
height="9"
viewBox="0 0 6 9"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path d="M5.13281 4.71094L1.71094 8.17969C1.59375 8.29688 1.40625 8.29688 1.3125 8.17969L0.84375 7.71094C0.726562 7.59375 0.726562 7.42969 0.84375 7.3125L3.60938 4.5L0.84375 1.71094C0.726562 1.59375 0.726562 1.40625 0.84375 1.3125L1.3125 0.84375C1.40625 0.726562 1.59375 0.726562 1.71094 0.84375L5.13281 4.3125C5.25 4.42969 5.25 4.59375 5.13281 4.71094Z" />
</svg>
);

//TODO: After SDK update getPostChildren should be used instead of usePost
interface ImageViewerProps {
pageId?: string;
componentId?: string;
Expand All @@ -36,18 +24,14 @@ export function ImageViewer({
initialImageIndex,
onClose,
}: ImageViewerProps) {
const { themeStyles } = useAmityElement({ pageId, componentId, elementId });
const { themeStyles, accessibilityId } = useAmityElement({ pageId, componentId, elementId });

const [selectedImageIndex, setSelectedImageIndex] = useState(initialImageIndex);

const posts = usePostByIds(post?.children || []);

const imagePosts = posts.filter((post) => post.dataType === 'image');

const selectedPost = imagePosts[selectedImageIndex];
const { post: imagePost } = usePost(post?.children[selectedImageIndex]);

const imageUrl = useImage({ fileId: selectedPost?.data?.fileId });
const hasNext = selectedImageIndex < imagePosts.length - 1;
const imageUrl = useImage({ fileId: imagePost?.data?.fileId });
const hasNext = selectedImageIndex < post?.children.length - 1;
const hasPrev = selectedImageIndex > 0;

const next = () => {
Expand All @@ -65,10 +49,10 @@ export function ImageViewer({
};

return (
<div style={themeStyles}>
<div style={themeStyles} data-qa-anchor={accessibilityId}>
<div className={styles.modal} onClick={onClose}>
<div className={styles.modalContent} onClick={(e) => e.stopPropagation()}>
<img src={imageUrl} alt={selectedPost?.data?.fileId || ''} className={styles.fullImage} />
<img src={imageUrl} alt={imageUrl || ''} className={styles.fullImage} />
<div className={styles.overlayPanel}>
{hasPrev && (
<div className={styles.overlayPanel__prev} onClick={prev}>
Expand Down