Skip to content

Commit d2dba7f

Browse files
authored
fix: Update licence in package.json and added ssr support
1 parent a912e88 commit d2dba7f

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Francisco Hodge
3+
Copyright (c) 2023 keyvalue software systems
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ npm install @keyvaluesystems/react-inline-avatars
2020

2121
You’ll need to install React separately since it isn't included in the package.
2222

23+
Note for **Next.js** users, if you are using Next.js version 13 or later, you will have to use the `use client` feature to ensure proper compatibility.
24+
2325
## Usage
2426

2527
React Inline Avatars can run in a very basic mode by just providing the `data` like given below:
@@ -209,6 +211,6 @@ The below code shows all the overridable styles:
209211

210212
```
211213

212-
- `Avatar` - overrides the avatar (user image) style
213-
- `Name` - overrides the user name style
214-
- `ExtraCount` - overrides the style of additional count displayed at last bubble
214+
- `Avatar` - Overrides the avatar (user image) style
215+
- `Name` - Overrides the user name style
216+
- `ExtraCount` - Overrides the style of additional count displayed at last bubble

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@
2424
"url": "https://github.com/KeyValueSoftwareSystems/react-inline-avatars"
2525
},
2626
"author": "Keyvalue",
27-
"license": "",
27+
"license": "MIT",
2828
"homepage": "https://github.com/KeyValueSoftwareSystems/react-inline-avatars",
2929
"keywords": [
3030
"library",
3131
"starter",
32-
"es6"
32+
"es6",
33+
"react",
34+
"nextjs"
3335
],
3436
"devDependencies": {
3537
"@babel/cli": "^7.20.7",

src/lib/inline-images/styles.module.scss

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
img {
1111
border: 3px solid white;
1212
transition: all 0.3s;
13+
&.elevateOnHover:hover {
14+
transform: scale(1.1);
15+
z-index: 10;
16+
position: relative;
17+
}
1318
&:hover + .name{
1419
display: flex;
1520
position: absolute;
@@ -18,17 +23,8 @@
1823
justify-content: center;
1924
}
2025
}
21-
.elevateOnHover {
22-
cursor: pointer;
23-
&:hover {
24-
transform: scale(1.1);
25-
z-index: 10;
26-
position: absolute;
27-
}
28-
}
2926
}
3027
.imagesContainer {
31-
position: relative;
3228
.circular{
3329
border-radius: 50%;
3430
}
@@ -53,11 +49,9 @@
5349
cursor: pointer;
5450
}
5551
.elevateOnHover {
56-
cursor: pointer;
5752
&:hover {
5853
transform: scale(1.1);
5954
z-index: 10;
60-
position: absolute;
6155
}
6256
}
6357
}

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ module.exports = {
3333
path: path.resolve(__dirname, 'build'),
3434
library: "InlineAvatars",
3535
libraryTarget: 'umd',
36-
clean: true
36+
clean: true,
37+
globalObject: 'this'
3738
},
3839
externals: {
3940
'react': 'react'

0 commit comments

Comments
 (0)