Skip to content

Commit ada0ec0

Browse files
sravan-sSravan S
andauthored
Fix lint warnings and add types (#128)
Co-authored-by: Sravan S <[email protected]>
1 parent da9fc64 commit ada0ec0

File tree

24 files changed

+2149
-422
lines changed

24 files changed

+2149
-422
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Changelog - v3
22

3-
## [3.0.0-beta] (March 2022)
3+
## [3.0.0-beta] (Apr 12 2022)
44

55
This is the official beta for Sendbird UIKit for React version 3!
66

7-
> TLDR -> We split the old `smart-components` into modules which contian context and UI. Context contain logic and UI Components handle UI
7+
TLDR -> We split the old `smart-components` into modules which contian context and UI. Context contain logic and UI Components handle UI
88

9-
**[To learn how to upgrade from v2 to v3, follow the migration guide](MIGRATION_v2-to-v3.md)**
9+
**[Check out the v2 to v3 migration guide for details](MIGRATION_v2-to-v3.md)**
1010

11-
An overview of changes:
11+
Changelog:
1212
* Package should be installed using `@sendbird/uikit-react`
1313
* Restructure smart-components into modules that contain a context and related UI components
1414
* Export these context and UI components to allow fine-grain customization

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
> React based UI kit based on sendbird javascript SDK
88
9+
We are introducing a new version of the Sendbird Chat UIKit. Version 3 features a new modular architecture with more granular components that give you enhanced flexibility to customize your web and mobile apps. Check out our [migration guides](MIGRATION_v2-to-v3.md).
10+
911
## Getting Started
1012

1113
With Sendbird UI Kit React, we export these components:

exports.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ export default {
5858
// OpenChannelSettings
5959
OpenChannelSettings: 'src/smart-components/OpenChannelSettings/index.tsx',
6060
'OpenChannelSettings/context': 'src/smart-components/OpenChannelSettings/context/OpenChannelSettingsProvider.tsx',
61-
'OpenChannelSettings/components/DeleteOpenChannel': 'src/smart-components/OpenChannelSettings/components/DeleteOpenChannel.tsx',
6261
'OpenChannelSettings/components/EditDetailsModal': 'src/smart-components/OpenChannelSettings/components/EditDetailsModal.tsx',
63-
'OpenChannelSettings/components/InvalidChannel': 'src/smart-components/OpenChannelSettings/components/InvalidChannel.tsx',
6462
'OpenChannelSettings/components/OpenChannelProfile': 'src/smart-components/OpenChannelSettings/components/OpenChannelProfile/index.tsx',
6563
'OpenChannelSettings/components/OpenChannelSettingsUI': 'src/smart-components/OpenChannelSettings/components/OpenChannelSettingsUI/index.tsx',
6664
'OpenChannelSettings/components/OperatorUI': 'src/smart-components/OpenChannelSettings/components/OperatorUI/index.tsx',

package-lock.json

Lines changed: 191 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "sendbird-uikit",
3-
"version": "2.5.3",
2+
"name": "@sendbird/uikit-react",
3+
"version": "3.0.0-beta",
44
"description": "React based UI kit for sendbird",
5-
"main": "release/index.js",
6-
"style": "release/dist/index.css",
7-
"typings": "release/index.d.ts",
8-
"module": "release/index.js",
5+
"main": "dist/index.js",
6+
"style": "dist/index.css",
7+
"typings": "dist/index.d.ts",
8+
"module": "dist/index.js",
99
"files": [
1010
"release/**/*",
1111
"dist/**/*",
@@ -34,7 +34,8 @@
3434
"generate-component": "plop",
3535
"rollup": "npm run clean-release; rollup -c",
3636
"deploy-storybook": "storybook-to-ghpages",
37-
"inspect": "npm run test; npm run lint;"
37+
"inspect": "npm run test; npm run lint;",
38+
"bundle": "dts-bundle-generator -o ./dist/my.d.ts ./src/index.d.ts"
3839
},
3940
"repository": {
4041
"type": "git",
@@ -91,6 +92,7 @@
9192
"browserslist": "^4.14.5",
9293
"caniuse-lite": "^1.0.30001148",
9394
"css-loader": "^3.4.2",
95+
"dts-bundle-generator": "^6.5.0",
9496
"enzyme": "^3.11.0",
9597
"eslint": "^6.8.0",
9698
"eslint-config-airbnb": "^18.0.1",

rollup.config.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ module.exports = ({
2626
input: inputs,
2727
output: [
2828
{
29-
dir: 'release/dist/cjs',
29+
dir: 'dist/cjs',
3030
format: 'cjs',
3131
sourcemap: true,
3232
},
3333
{
34-
dir: 'release',
34+
dir: 'dist',
3535
format: 'esm',
3636
sourcemap: true,
3737
},
@@ -54,7 +54,7 @@ module.exports = ({
5454
autoprefixer,
5555
],
5656
sourceMap: true,
57-
extract: 'dist/index.css',
57+
extract: 'index.css',
5858
extensions: ['.sass', '.scss', '.css'],
5959
}),
6060
replace({
@@ -88,6 +88,7 @@ module.exports = ({
8888
},
8989
],
9090
],
91+
babelHelpers: 'bundled',
9192
extensions: ['.tsx', '.ts', '.jsx', '.js'],
9293
exclude: 'node_modules/**',
9394
plugins: [
@@ -105,7 +106,7 @@ module.exports = ({
105106
targets: [
106107
{
107108
src: './src/index.d.ts',
108-
dest: 'release',
109+
dest: 'dist',
109110
},
110111
],
111112
}),

0 commit comments

Comments
 (0)