@versini/ui-bubble 10.1.0 → 10.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/constants.js +3 -3
- package/dist/components/Bubble/Bubble.js +5 -5
- package/dist/components/Bubble/BubbleTypes.js +3 -3
- package/dist/components/Bubble/utilities.js +5 -5
- package/dist/components/BubbleConstants/BubbleConstants.js +3 -3
- package/dist/components/index.js +3 -3
- package/package.json +3 -3
package/dist/common/constants.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-bubble v10.1.
|
|
2
|
+
@versini/ui-bubble v10.1.1
|
|
3
3
|
© 2025 gizmette.com
|
|
4
4
|
*/
|
|
5
5
|
try {
|
|
6
6
|
if (!window.__VERSINI_UI_BUBBLE__) {
|
|
7
7
|
window.__VERSINI_UI_BUBBLE__ = {
|
|
8
|
-
version: "10.1.
|
|
9
|
-
buildTime: "12/
|
|
8
|
+
version: "10.1.1",
|
|
9
|
+
buildTime: "12/24/2025 09:20 AM EST",
|
|
10
10
|
homepage: "https://www.npmjs.com/package/@versini/ui-bubble",
|
|
11
11
|
license: "MIT",
|
|
12
12
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-bubble v10.1.
|
|
2
|
+
@versini/ui-bubble v10.1.1
|
|
3
3
|
© 2025 gizmette.com
|
|
4
4
|
*/
|
|
5
5
|
try {
|
|
6
6
|
if (!window.__VERSINI_UI_BUBBLE__) {
|
|
7
7
|
window.__VERSINI_UI_BUBBLE__ = {
|
|
8
|
-
version: "10.1.
|
|
9
|
-
buildTime: "12/
|
|
8
|
+
version: "10.1.1",
|
|
9
|
+
buildTime: "12/24/2025 09:20 AM EST",
|
|
10
10
|
homepage: "https://www.npmjs.com/package/@versini/ui-bubble",
|
|
11
11
|
license: "MIT",
|
|
12
12
|
};
|
|
@@ -60,7 +60,7 @@ const Bubble = ({ children, kind = "left", className, contentClassName, footerCl
|
|
|
60
60
|
});
|
|
61
61
|
const isCopyToClipboardEnabled = Boolean(copyToClipboard) && (typeof copyToClipboard === "function" || typeof copyToClipboard === "string" || typeof children === "string");
|
|
62
62
|
// copy to clipboard function
|
|
63
|
-
const handleCopyToClipboard = ()=>{
|
|
63
|
+
/* v8 ignore start - clipboard edge cases */ const handleCopyToClipboard = ()=>{
|
|
64
64
|
setCopied(true);
|
|
65
65
|
if (typeof copyToClipboard === "function") {
|
|
66
66
|
copyToClipboard(children);
|
|
@@ -70,7 +70,7 @@ const Bubble = ({ children, kind = "left", className, contentClassName, footerCl
|
|
|
70
70
|
navigator.clipboard.writeText(children);
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
|
-
// after 3 seconds, reset the copied state
|
|
73
|
+
/* v8 ignore stop */ // after 3 seconds, reset the copied state
|
|
74
74
|
useEffect(()=>{
|
|
75
75
|
let timeoutId;
|
|
76
76
|
if (copied) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-bubble v10.1.
|
|
2
|
+
@versini/ui-bubble v10.1.1
|
|
3
3
|
© 2025 gizmette.com
|
|
4
4
|
*/
|
|
5
5
|
try {
|
|
6
6
|
if (!window.__VERSINI_UI_BUBBLE__) {
|
|
7
7
|
window.__VERSINI_UI_BUBBLE__ = {
|
|
8
|
-
version: "10.1.
|
|
9
|
-
buildTime: "12/
|
|
8
|
+
version: "10.1.1",
|
|
9
|
+
buildTime: "12/24/2025 09:20 AM EST",
|
|
10
10
|
homepage: "https://www.npmjs.com/package/@versini/ui-bubble",
|
|
11
11
|
license: "MIT",
|
|
12
12
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-bubble v10.1.
|
|
2
|
+
@versini/ui-bubble v10.1.1
|
|
3
3
|
© 2025 gizmette.com
|
|
4
4
|
*/
|
|
5
5
|
try {
|
|
6
6
|
if (!window.__VERSINI_UI_BUBBLE__) {
|
|
7
7
|
window.__VERSINI_UI_BUBBLE__ = {
|
|
8
|
-
version: "10.1.
|
|
9
|
-
buildTime: "12/
|
|
8
|
+
version: "10.1.1",
|
|
9
|
+
buildTime: "12/24/2025 09:20 AM EST",
|
|
10
10
|
homepage: "https://www.npmjs.com/package/@versini/ui-bubble",
|
|
11
11
|
license: "MIT",
|
|
12
12
|
};
|
|
@@ -70,13 +70,13 @@ const getBubbleBorderClasses = ({ kind, tail })=>{
|
|
|
70
70
|
"last-bubble-left:before:left-0.5 last-bubble-left:before:border-r-8 last-bubble-left:before:border-r-surface-light last-bubble-left:dark:before:border-r-surface-dark last-bubble-left:before:rounded-br-[100%]": kind === "left"
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
if (!tail) {
|
|
73
|
+
/* v8 ignore start - no-tail edge case */ if (!tail) {
|
|
74
74
|
return clsx("rounded-b-xl", {
|
|
75
75
|
"rounded-tr-xl": kind === "left",
|
|
76
76
|
"rounded-tl-xl": kind === "right"
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
};
|
|
79
|
+
/* v8 ignore stop */ };
|
|
80
80
|
const getBubbleClasses = ({ kind, className, contentClassName, footerClassName, noMaxWidth, tail, gradient })=>{
|
|
81
81
|
const wrapper = clsx(BUBBLE_CLASSNAME, `${BUBBLE_CLASSNAME}-${kind}`, "flex items-start", {
|
|
82
82
|
"flex-row-reverse": kind === "right"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-bubble v10.1.
|
|
2
|
+
@versini/ui-bubble v10.1.1
|
|
3
3
|
© 2025 gizmette.com
|
|
4
4
|
*/
|
|
5
5
|
try {
|
|
6
6
|
if (!window.__VERSINI_UI_BUBBLE__) {
|
|
7
7
|
window.__VERSINI_UI_BUBBLE__ = {
|
|
8
|
-
version: "10.1.
|
|
9
|
-
buildTime: "12/
|
|
8
|
+
version: "10.1.1",
|
|
9
|
+
buildTime: "12/24/2025 09:20 AM EST",
|
|
10
10
|
homepage: "https://www.npmjs.com/package/@versini/ui-bubble",
|
|
11
11
|
license: "MIT",
|
|
12
12
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-bubble v10.1.
|
|
2
|
+
@versini/ui-bubble v10.1.1
|
|
3
3
|
© 2025 gizmette.com
|
|
4
4
|
*/
|
|
5
5
|
try {
|
|
6
6
|
if (!window.__VERSINI_UI_BUBBLE__) {
|
|
7
7
|
window.__VERSINI_UI_BUBBLE__ = {
|
|
8
|
-
version: "10.1.
|
|
9
|
-
buildTime: "12/
|
|
8
|
+
version: "10.1.1",
|
|
9
|
+
buildTime: "12/24/2025 09:20 AM EST",
|
|
10
10
|
homepage: "https://www.npmjs.com/package/@versini/ui-bubble",
|
|
11
11
|
license: "MIT",
|
|
12
12
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-bubble",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@tailwindcss/typography": "0.5.19",
|
|
53
|
-
"@versini/ui-button": "11.0.
|
|
53
|
+
"@versini/ui-button": "11.0.1",
|
|
54
54
|
"@versini/ui-icons": "4.15.1",
|
|
55
55
|
"clsx": "2.1.1",
|
|
56
56
|
"tailwindcss": "4.1.18"
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"sideEffects": [
|
|
59
59
|
"**/*.css"
|
|
60
60
|
],
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "7b2640a0650a4c3aa6ca078888f765cb400f9f13"
|
|
62
62
|
}
|