@versini/ui-bubble 10.1.0 → 10.2.0

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.
@@ -1,19 +1,7 @@
1
1
  /*!
2
- @versini/ui-bubble v10.1.0
2
+ @versini/ui-bubble v10.2.0
3
3
  © 2025 gizmette.com
4
4
  */
5
- try {
6
- if (!window.__VERSINI_UI_BUBBLE__) {
7
- window.__VERSINI_UI_BUBBLE__ = {
8
- version: "10.1.0",
9
- buildTime: "12/22/2025 07:40 PM EST",
10
- homepage: "https://www.npmjs.com/package/@versini/ui-bubble",
11
- license: "MIT",
12
- };
13
- }
14
- } catch (error) {
15
- // nothing to declare officer
16
- }
17
5
 
18
6
 
19
7
  ;// CONCATENATED MODULE: ./src/common/constants.ts
@@ -1,19 +1,7 @@
1
1
  /*!
2
- @versini/ui-bubble v10.1.0
2
+ @versini/ui-bubble v10.2.0
3
3
  © 2025 gizmette.com
4
4
  */
5
- try {
6
- if (!window.__VERSINI_UI_BUBBLE__) {
7
- window.__VERSINI_UI_BUBBLE__ = {
8
- version: "10.1.0",
9
- buildTime: "12/22/2025 07:40 PM EST",
10
- homepage: "https://www.npmjs.com/package/@versini/ui-bubble",
11
- license: "MIT",
12
- };
13
- }
14
- } catch (error) {
15
- // nothing to declare officer
16
- }
17
5
 
18
6
  import { jsx, jsxs } from "react/jsx-runtime";
19
7
  import { ButtonIcon } from "@versini/ui-button/button-icon";
@@ -60,7 +48,7 @@ const Bubble = ({ children, kind = "left", className, contentClassName, footerCl
60
48
  });
61
49
  const isCopyToClipboardEnabled = Boolean(copyToClipboard) && (typeof copyToClipboard === "function" || typeof copyToClipboard === "string" || typeof children === "string");
62
50
  // copy to clipboard function
63
- const handleCopyToClipboard = ()=>{
51
+ /* v8 ignore start - clipboard edge cases */ const handleCopyToClipboard = ()=>{
64
52
  setCopied(true);
65
53
  if (typeof copyToClipboard === "function") {
66
54
  copyToClipboard(children);
@@ -70,7 +58,7 @@ const Bubble = ({ children, kind = "left", className, contentClassName, footerCl
70
58
  navigator.clipboard.writeText(children);
71
59
  }
72
60
  };
73
- // after 3 seconds, reset the copied state
61
+ /* v8 ignore stop */ // after 3 seconds, reset the copied state
74
62
  useEffect(()=>{
75
63
  let timeoutId;
76
64
  if (copied) {
@@ -1,19 +1,7 @@
1
1
  /*!
2
- @versini/ui-bubble v10.1.0
2
+ @versini/ui-bubble v10.2.0
3
3
  © 2025 gizmette.com
4
4
  */
5
- try {
6
- if (!window.__VERSINI_UI_BUBBLE__) {
7
- window.__VERSINI_UI_BUBBLE__ = {
8
- version: "10.1.0",
9
- buildTime: "12/22/2025 07:40 PM EST",
10
- homepage: "https://www.npmjs.com/package/@versini/ui-bubble",
11
- license: "MIT",
12
- };
13
- }
14
- } catch (error) {
15
- // nothing to declare officer
16
- }
17
5
 
18
6
 
19
7
  ;// CONCATENATED MODULE: ./src/components/Bubble/BubbleTypes.ts
@@ -1,19 +1,7 @@
1
1
  /*!
2
- @versini/ui-bubble v10.1.0
2
+ @versini/ui-bubble v10.2.0
3
3
  © 2025 gizmette.com
4
4
  */
5
- try {
6
- if (!window.__VERSINI_UI_BUBBLE__) {
7
- window.__VERSINI_UI_BUBBLE__ = {
8
- version: "10.1.0",
9
- buildTime: "12/22/2025 07:40 PM EST",
10
- homepage: "https://www.npmjs.com/package/@versini/ui-bubble",
11
- license: "MIT",
12
- };
13
- }
14
- } catch (error) {
15
- // nothing to declare officer
16
- }
17
5
 
18
6
  import clsx from "clsx";
19
7
  import { BUBBLE_CLASSNAME } from "../../common/constants.js";
@@ -70,13 +58,13 @@ const getBubbleBorderClasses = ({ kind, tail })=>{
70
58
  "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
59
  });
72
60
  }
73
- if (!tail) {
61
+ /* v8 ignore start - no-tail edge case */ if (!tail) {
74
62
  return clsx("rounded-b-xl", {
75
63
  "rounded-tr-xl": kind === "left",
76
64
  "rounded-tl-xl": kind === "right"
77
65
  });
78
66
  }
79
- };
67
+ /* v8 ignore stop */ };
80
68
  const getBubbleClasses = ({ kind, className, contentClassName, footerClassName, noMaxWidth, tail, gradient })=>{
81
69
  const wrapper = clsx(BUBBLE_CLASSNAME, `${BUBBLE_CLASSNAME}-${kind}`, "flex items-start", {
82
70
  "flex-row-reverse": kind === "right"
@@ -1,19 +1,7 @@
1
1
  /*!
2
- @versini/ui-bubble v10.1.0
2
+ @versini/ui-bubble v10.2.0
3
3
  © 2025 gizmette.com
4
4
  */
5
- try {
6
- if (!window.__VERSINI_UI_BUBBLE__) {
7
- window.__VERSINI_UI_BUBBLE__ = {
8
- version: "10.1.0",
9
- buildTime: "12/22/2025 07:40 PM EST",
10
- homepage: "https://www.npmjs.com/package/@versini/ui-bubble",
11
- license: "MIT",
12
- };
13
- }
14
- } catch (error) {
15
- // nothing to declare officer
16
- }
17
5
 
18
6
 
19
7
  ;// CONCATENATED MODULE: ./src/components/BubbleConstants/BubbleConstants.tsx
@@ -1,19 +1,7 @@
1
1
  /*!
2
- @versini/ui-bubble v10.1.0
2
+ @versini/ui-bubble v10.2.0
3
3
  © 2025 gizmette.com
4
4
  */
5
- try {
6
- if (!window.__VERSINI_UI_BUBBLE__) {
7
- window.__VERSINI_UI_BUBBLE__ = {
8
- version: "10.1.0",
9
- buildTime: "12/22/2025 07:40 PM EST",
10
- homepage: "https://www.npmjs.com/package/@versini/ui-bubble",
11
- license: "MIT",
12
- };
13
- }
14
- } catch (error) {
15
- // nothing to declare officer
16
- }
17
5
 
18
6
  import { BUBBLE_FOOTER_EMPTY } from "./BubbleConstants/BubbleConstants.js";
19
7
  export * from "../common/constants.js";
@@ -22,6 +10,7 @@ export * from "./Bubble/Bubble.js";
22
10
  ;// CONCATENATED MODULE: external "./BubbleConstants/BubbleConstants.js"
23
11
 
24
12
  ;// CONCATENATED MODULE: ./src/components/index.ts
13
+ // force new release
25
14
 
26
15
 
27
16
  // Export constants through a dedicated module entry for better tree-shaking.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-bubble",
3
- "version": "10.1.0",
3
+ "version": "10.2.0",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -46,11 +46,11 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@testing-library/jest-dom": "6.9.1",
49
- "@versini/ui-types": "8.0.0"
49
+ "@versini/ui-types": "8.1.0"
50
50
  },
51
51
  "dependencies": {
52
52
  "@tailwindcss/typography": "0.5.19",
53
- "@versini/ui-button": "11.0.0",
53
+ "@versini/ui-button": "11.1.0",
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": "b6c978f58a022361de91a6202d322c1109163761"
61
+ "gitHead": "b2ee2e328ecadfbedcb26d14afa896a30f0ab54b"
62
62
  }