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/v4.0.0.beta.5 #62

Merged
merged 89 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
d24c4f6
chore: ASC-00000 - css module typescript config (#233)
bonanaaaaaa Apr 9, 2024
54c354e
fix: ASC-21254 - align api signature for draft page (#210)
chaiwattsw Apr 9, 2024
b823c8a
fix: ASC-21249 - align story tab component props (#203)
chaiwattsw Apr 9, 2024
f3fdbe0
fix: ASC-21260 - align comment tray component props (#202)
chaiwattsw Apr 9, 2024
3844fcf
fix: ASC-21404 - AmityViewStoryPage signature alignment (#209)
chaiwattsw Apr 9, 2024
d383e4c
feat: add to support 6 users for storybook (#238)
ptchayap Apr 10, 2024
f9e2f4d
feat: ASC-00000 - use more env from secrets (#239)
ptchayap Apr 10, 2024
a10ce17
feat: ASC-00000 - add more storybook user (#240)
ptchayap Apr 10, 2024
1451795
fix: permission (#244)
chaiwattsw Apr 10, 2024
42fd40b
fix: ASC-21393 - refactor customization 4.0 (#211)
chaiwattsw Apr 11, 2024
be5c85b
feat(chat): ASC-0000 - Chat V4 big chunk 1 (#214)
frankent Apr 12, 2024
f826ff4
feat(chat): ASC-0000 - export compose bar (#258)
frankent Apr 12, 2024
b26358e
feat: export v4 provider (#259)
ptchayap Apr 12, 2024
7f1b545
Release/v4.0.0 beta.1 (#262)
ptchayap Apr 12, 2024
40bb79a
fix: ASC-00000 - export type (#263)
ptchayap Apr 12, 2024
f1f1106
fix: ASC-00000 - fix provider v4 props (#261)
chaiwattsw Apr 12, 2024
f1ae3bd
Release/v4.0.0 beta.2 (#265)
ptchayap Apr 17, 2024
4f55e38
feat: ASC-20277 - flag unflag message (#267)
ptchayap Apr 19, 2024
deb28b1
fix: ASC-00000 - remove sheet loading state (#271)
ptchayap Apr 22, 2024
4621765
fix: ASC-21913 - type and optional field on config (#268)
ptchayap Apr 22, 2024
ff4f4d3
fix: add error state on delete message (#269)
ptchayap Apr 22, 2024
e47b597
fix: ASC-21767 - mention border when got mention (#272)
ptchayap Apr 22, 2024
c46baa7
feat: ASC-21691 - add hyperlink style to primary color (#270)
ptchayap Apr 22, 2024
ac7c5f6
fix(social): asc-00000 use internal path (#266)
frankent Apr 22, 2024
278c60a
feat: ASC-17980 - global feed story targets tab and story target circ…
chaiwattsw Apr 23, 2024
7799451
feat(chat): ASC-00000 - Muted + Banned channel (#276)
frankent Apr 23, 2024
60cdada
feat(chat): ASC-00000 - fix composebar styling + limit 200 character …
frankent Apr 23, 2024
af4f290
fix: ASC-21913 - config type (#278)
ptchayap Apr 23, 2024
f7c1934
fix: add blocked word + not allowed link (#280)
frankent Apr 23, 2024
0698b8e
fix: icon (#281)
chaiwattsw Apr 23, 2024
fcbaf43
fix: using v3 and v4 provider separately for each stories (#284)
bonanaaaaaa Apr 24, 2024
f399aa4
fix: ASC-00000 - confirm context (#285)
bonanaaaaaa Apr 24, 2024
20878a7
fix: ASC-00000 - notification context (#286)
bonanaaaaaa Apr 24, 2024
0197c27
fix: ASC-00000 - add login step on UiKitProvider (#287)
bonanaaaaaa Apr 24, 2024
0942cb0
fix: message remain on compose bar after sending success (#289)
ptchayap Apr 24, 2024
ab87cd0
fix: user muted state (#293)
ptchayap Apr 25, 2024
a87b1cf
fix: ASC-22026 - moderator cannot send message on muted channel (#294)
ptchayap Apr 25, 2024
b47ba77
fix: ASC-219999 - incorrect comment count color (#283)
chaiwattsw Apr 25, 2024
1bfad59
fix: ASC-21979 - can't click header on video preview (#282)
chaiwattsw Apr 25, 2024
e141fb8
fix: use v4 (#295)
chaiwattsw Apr 25, 2024
5b229e2
fix: ASC-20502 - shouldAllowCreation condition (#296)
chaiwattsw Apr 25, 2024
4955abc
fix: ASC-20883 - remove latestComments prop (#290)
bonanaaaaaa Apr 25, 2024
313ffdf
fix: add v3 provider (#298)
bonanaaaaaa Apr 25, 2024
0052c57
fix: ASC-21980 - hyper link background color (#299)
chaiwattsw Apr 25, 2024
ae84a93
feat: ASC-21665 - darkmode config (#279)
ptchayap Apr 25, 2024
108a81c
fix: ASC-21980 - fix remove link button style (#300)
chaiwattsw Apr 25, 2024
fc7745e
fix: character limit (#302)
ptchayap Apr 25, 2024
d188c37
fix: change permission to check if user is a moderator (#304)
ptchayap Apr 26, 2024
d79d39a
fix: ASC-22060 - remove onBack() on draft page (#303)
chaiwattsw Apr 26, 2024
663520d
fix: ASC-21980 - hyperlink style (#301)
chaiwattsw Apr 26, 2024
8c0ad0c
fix: ASC-22063 - fix story global feed pagination (#305)
chaiwattsw Apr 26, 2024
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
8f76880
Merge branch 'develop' into release/v4.0.0-beta.3
frankent May 28, 2024
23892cf
update readme
frankent May 28, 2024
ac8cfc3
manual update version
frankent May 28, 2024
7a05574
chore(release): 4.0.0-beta.5
bmo-amity-bot May 28, 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: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
1 change: 1 addition & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const config: StorybookConfig = {
'@storybook/addon-a11y',
],
framework: '@storybook/react-vite',
staticDirs: ['../static'],
};

export default config;
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.

## 4.0.0-beta.5 (2024-05-28)

## 4.0.0-beta.3 (2024-04-26)

### Bug Fixes
Expand Down
10 changes: 10 additions & 0 deletions amity-uikit.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
}
},
"excludes": [],
"message_reactions": [
{ "name": "heart", "image": "message_reaction_heart.png" },
{ "name": "like", "image": "message_reaction_like.png" },
{ "name": "fire", "image": "message_reaction_fire.png" },
{ "name": "grinning", "image": "message_reaction_grinning.png" },
{ "name": "sad", "image": "message_reaction_sad.png" }
],
"customizations": {
"select_target_page/*/*": {
"theme": {},
Expand Down Expand Up @@ -200,6 +207,9 @@
"live_chat/message_composer/*": {
"message_limit": 200,
"placeholder_text": "Write a message"
},
"live_chat_page/message_list/message_quick_reaction": {
"reaction": "heart"
}
}
}
4 changes: 2 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.3",
"version": "4.0.0-beta.5",
"engines": {
"node": ">=16",
"pnpm": ">=8"
Expand Down Expand Up @@ -39,7 +39,7 @@
"react-dom": ">=17.0.2"
},
"devDependencies": {
"@amityco/ts-sdk": "^6.23.0",
"@amityco/ts-sdk": "^6.25.1",
"@storybook/addon-a11y": "^7.6.7",
"@storybook/addon-actions": "^7.6.7",
"@storybook/addon-backgrounds": "^7.6.7",
Expand Down
28 changes: 14 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

136 changes: 136 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# Amity UI-Kit for Web (Open-Source)

## Prerequisites

Before getting started, ensure that you have the following prerequisites installed on your system:

- [Node.js](https://nodejs.org/) LTS version (currently version 20)
- [pnpm](https://pnpm.io/) version 8

## How to install PNPM (Optional)

```
corepack enable pnpm
```

Ref: https://pnpm.io/installation#using-corepack

## Running Storybook (Optional)

To run Storybook and view the UI components in isolation, follow these steps:

1. Clone the Amity UI-Kit repository:

```
git clone https://github.com/AmityCo/Amity-Social-Cloud-UIKit-Web-OpenSource.git
```

2. Navigate to the cloned repository's directory:

```
cd Amity-Social-Cloud-UIKit-Web-OpenSource
```

3. Install the dependencies using pnpm:

```
pnpm install
```

4. Create a `.env` file at the root of the project with the following content:

```
STORYBOOK_API_REGION=<API_REGION>
STORYBOOK_API_KEY=<API_KEY>
```

Replace `<API_REGION>` and `<API_KEY>` with your actual credentials.

5. Run Storybook:

```
pnpm run storybook
```

6. Open your browser and navigate to `http://localhost:6006` to view the Storybook interface.

## Installation

To install the Amity UI-Kit together with another project, follow these steps:

1. Clone the repository using the following command:

```
git clone https://github.com/AmityCo/Amity-Social-Cloud-UIKit-Web-OpenSource.git
```

2. Navigate to the cloned repository's directory:

```
cd ./Amity-Social-Cloud-UIKit-Web-OpenSource
```

3. Install the dependencies using pnpm:

```
pnpm install
```

4. Build the project:

```
pnpm run build
```

5. Pack the project

```
pnpm pack
```

6. Navigate to your application's directory:

```
cd <path-to-your-app>
```

7. Install the Amity UI-Kit to your application using one of the following package managers:
- NPM:
```
npm i file:<path-to-amity-ui-kit-repository>/<path-to-tgz-file> --save
```
- Yarn (Classic):
```
yarn add file:<path-to-amity-ui-kit-repository>/<path-to-tgz-file>
```
- PNPM:
```
pnpm i file:<path-to-amity-ui-kit-repository>/<path-to-tgz-file>
```

## Documentation

For detailed information and guidance on using the Amity UI-Kit, please refer to our comprehensive online documentation available at [https://docs.amity.co](https://docs.amity.co).

If you require further assistance or have any questions, please don't hesitate to contact our dedicated UI-Kit support team at **[email protected]**. We are here to help you make the most of the Amity UI-Kit.

## Contributing

We welcome contributions from the community to help improve and enhance the Amity UI-Kit. If you are interested in contributing to this project, please review our [contributing guide](https://github.com/AmityCo/Amity-Social-Cloud-UIKit-Web-OpenSource/blob/develop/contributing.md) for guidelines and best practices.

Thank you for choosing the Amity UI-Kit for your web development needs!

### FAQ

Q: I tried to run `pnpm build` and it throws a types error.
A: Try to structure your project to be like this:

```
- your_app
- src
- Amity-Social-Cloud-UIKit-Web-OpenSource
- src
```

Q: The modifications I made to the code do not appear to be applied.
A: Please attempt to execute `npm cache clean` or `npm cache clean --force` to resolve this issue.
8 changes: 7 additions & 1 deletion src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,8 @@

"storyDraft.button.shareStory": "Share story",

"storyTab.title": "Story",

"select.chatType.item": "{answerType} type",
"chatComposer.label.channelId": "Channel ID",
"chatComposer.label.displayName": "Display Name",
Expand Down Expand Up @@ -435,5 +437,9 @@
"livechat.error.tooLongMessage.description": "Your message is too long. Please shorten your message and try again.",
"livechat.error.sendingMessage.error": "Your message wasn't sent. Please try again.",
"livechat.error.sendingMessage.blockedWord": "Your message wasn't sent as it contains a blocked word.",
"livechat.error.sendingMessage.notAllowLink": "Your message wasn’t sent as it contained a link that’s not allowed."
"livechat.error.sendingMessage.notAllowLink": "Your message wasn’t sent as it contained a link that’s not allowed.",
"livechat.reaction.errorOnload": "Unable to load reactions",
"livechat.reaction.emptyState": "No reactions yet",
"livechat.reaction.emptyState.description": "Be the first to react to this message!",
"livechat.reaction.label.removeReaction": "Click to remove reaction"
}
8 changes: 8 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,16 @@ export {
AmityLiveChatMessageComposeBar,
} from '~/v4/chat/components';

export { MessageReactionPreview as AmityLiveChatMessageReactionPreview } from '~/v4/chat/components/MessageReactionPreview';
export { MessageReactionPicker as AmityLiveChatMessageReactionPicker } from '~/v4/chat/components/MessageReactionPicker';
export { MessageQuickReaction as AmityLiveChatMessageQuickReaction } from '~/v4/chat/components/MessageQuickReaction';
export { ReactionList as AmityReactionList } from '~/v4/social/components/ReactionList';

import type { AmityMessageActionType } from '~/v4/chat/components';
import type { ReactionListProps } from '~/v4/social/components/ReactionList';

export type { AmityMessageActionType };
export type { ReactionListProps as AmityReactionListProps };

export { AmityLiveChatPage } from '~/v4/chat/pages';

Expand Down
Loading
Loading