@talkjs/react-components 0.0.21 → 0.0.23

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,34 +1,34 @@
1
1
  "use client";
2
- import { createContext as t, useContext as s } from "react";
2
+ import { createContext as o, useContext as s } from "react";
3
3
  class i extends Error {
4
4
  }
5
- function a(e, o) {
6
- if (!e) throw new i(o ?? "Assertion failed");
5
+ function a(e, n) {
6
+ if (!e) throw new i(n != null ? n : "Assertion failed");
7
7
  }
8
- const r = Object.assign(a, { is: function(e, o, c) {
9
- return a(o, c);
8
+ const r = Object.assign(a, { is: function(e, n, c) {
9
+ return a(n, c);
10
10
  }, unreachable: function() {
11
11
  throw new Error("Unreachable code");
12
12
  }, never: function(e) {
13
13
  throw new Error("Unreachable");
14
14
  }, defined: function(e) {
15
15
  if (e == null) throw new i("Value is not defined");
16
- } }), [d, x] = n(), [f, h] = n(), [v, b] = n(), [m, w] = n(), [E, P] = n(), u = t(void 0);
16
+ } }), [d, x] = t(), [f, h] = t(), [v, b] = t(), [m, w] = t(), [E, P] = t(), u = o(void 0);
17
17
  function p() {
18
18
  const e = s(u);
19
19
  return r(e !== void 0), e;
20
20
  }
21
- const l = t(void 0);
21
+ const l = o(void 0);
22
22
  function j() {
23
23
  const e = s(l);
24
24
  return r(e !== void 0), e;
25
25
  }
26
- const [k, S] = n(), [U, g] = n();
27
- function n() {
28
- const e = t(void 0);
26
+ const [k, S] = t(), [U, g] = t();
27
+ function t() {
28
+ const e = o(void 0);
29
29
  return [e, () => {
30
- const o = s(e);
31
- return r(o !== void 0), o;
30
+ const n = s(e);
31
+ return r(n !== void 0), n;
32
32
  }];
33
33
  }
34
34
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talkjs/react-components",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "bugs": {
5
5
  "url": "https://talkjs.com/?chat"
6
6
  },
@@ -23,17 +23,16 @@
23
23
  "types": "default.d.ts",
24
24
  "dependencies": {
25
25
  "@floating-ui/dom": "^1.6.5",
26
+ "@floating-ui/react-dom": "^2.1.6",
26
27
  "@legendapp/state": "3.0.0-alpha.9",
27
- "@popperjs/core": "^2.11.8",
28
28
  "@radix-ui/react-dropdown-menu": "^2.1.15",
29
29
  "@radix-ui/react-popover": "^1.1.15",
30
- "@talkjs/core": "^1.5.0",
30
+ "@talkjs/core": "^1.5.4",
31
31
  "autolinker": "^4.0.0",
32
32
  "country-flag-emoji-polyfill": "^0.1.8",
33
33
  "emoji-picker-element": "1.8.2",
34
34
  "htm": "^3.1.1",
35
35
  "lodash.merge": "^4.6.2",
36
- "onecolor": "^4.1.0",
37
36
  "prosemirror-commands": "^1.5.2",
38
37
  "prosemirror-history": "^1.4.0",
39
38
  "prosemirror-keymap": "^1.2.2",
@@ -43,7 +42,6 @@
43
42
  "prosemirror-view": "^1.33.7",
44
43
  "react-error-boundary": "^5.0.0",
45
44
  "react-is": "^19.0.0",
46
- "react-popper": "^2.3.0",
47
45
  "react-transition-group": "4.4.2",
48
46
  "universal-base64": "^2.1.0",
49
47
  "wavesurfer.js": "^7.7.7"
package/theming.d.ts CHANGED
@@ -229,10 +229,9 @@ export declare interface EmojiPickerProps {
229
229
  *
230
230
  * Uses the IndexedDB-backed emoji database from "emoji-picker-element".
231
231
  */
232
- export declare function EmojiSuggestBar({ className }: EmojiSuggestBarProps): JSX.Element;
232
+ export declare function EmojiSuggestBar(props: EmojiSuggestBarProps): JSX.Element;
233
233
 
234
234
  export declare interface EmojiSuggestBarProps {
235
- className?: string;
236
235
  }
237
236
 
238
237
  export { FileBlock }
@@ -290,7 +289,6 @@ export declare interface MentionSuggestList {
290
289
  }
291
290
 
292
291
  export declare interface MentionSuggestListProps {
293
- className?: string;
294
292
  }
295
293
 
296
294
  export declare function MenuItem(props: MenuItemProps): JSX.Element;