@talkjs/react-components 0.0.29 → 0.0.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talkjs/react-components",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "bugs": {
5
5
  "url": "https://talkjs.com/?chat"
6
6
  },
@@ -11,44 +11,32 @@
11
11
  "files": [
12
12
  "default.d.ts",
13
13
  "default.js",
14
- "theming.d.ts",
15
- "theming.js",
16
- "globalConstants.js",
14
+ "default.cjs",
17
15
  "default.css",
18
16
  "base.css",
19
17
  "LICENSE.md"
20
18
  ],
21
- "main": "default.js",
19
+ "main": "default.cjs",
22
20
  "module": "default.js",
23
21
  "types": "default.d.ts",
24
- "dependencies": {
25
- "@floating-ui/dom": "^1.6.5",
26
- "@floating-ui/react-dom": "^2.1.6",
27
- "@legendapp/state": "3.0.0-beta.40",
28
- "@radix-ui/react-dropdown-menu": "^2.1.15",
29
- "@radix-ui/react-popover": "^1.1.15",
30
- "@talkjs/core": "^1.5.9",
31
- "autolinker": "^4.0.0",
32
- "country-flag-emoji-polyfill": "^0.1.8",
33
- "emoji-picker-element": "1.8.2",
34
- "htm": "^3.1.1",
35
- "lodash.merge": "^4.6.2",
36
- "prosemirror-commands": "^1.5.2",
37
- "prosemirror-history": "^1.4.0",
38
- "prosemirror-keymap": "^1.2.2",
39
- "prosemirror-model": "^1.21.1",
40
- "prosemirror-state": "^1.4.3",
41
- "prosemirror-transform": "^1.9.0",
42
- "prosemirror-view": "^1.33.7",
43
- "react-error-boundary": "^5.0.0",
44
- "react-is": "^19.0.0",
45
- "react-transition-group": "4.4.2",
46
- "universal-base64": "^2.1.0",
47
- "wavesurfer.js": "^7.7.7"
22
+ "exports": {
23
+ ".": {
24
+ "import": "./default.js",
25
+ "require": "./default.cjs",
26
+ "types": "./default.d.ts"
27
+ },
28
+ "./default.css": {
29
+ "default": "./default.css"
30
+ },
31
+ "./base.css": {
32
+ "default": "./base.css"
33
+ }
48
34
  },
35
+ "dependencies": {},
49
36
  "peerDependencies": {
50
37
  "react": ">=17.0.0 <20.0.0",
51
- "react-dom": ">=17.0.0 <20.0.0"
38
+ "react-dom": ">=17.0.0 <20.0.0",
39
+ "@talkjs/core": "^1.5.9"
52
40
  },
53
41
  "keywords": [
54
42
  "chat",
@@ -1,60 +0,0 @@
1
- "use client";
2
- import { createContext as n, useContext as o } from "react";
3
- import { Schema as l } from "prosemirror-model";
4
- class i extends Error {
5
- }
6
- function r(t, e) {
7
- if (!t) throw new i(e != null ? e : "Assertion failed");
8
- }
9
- const s = Object.assign(r, { is: function(t, e, c) {
10
- return r(e, c);
11
- }, unreachable: function() {
12
- throw new Error("Unreachable code");
13
- }, never: function(t) {
14
- throw new Error("Unreachable");
15
- }, defined: function(t) {
16
- if (t == null) throw new i("Value is not defined");
17
- } }), [g, x] = a(), [h, O] = a(), [C, D] = a(), [M, f] = a(), [j, b] = a(), m = n(void 0);
18
- function v() {
19
- const t = o(m);
20
- return s(t !== void 0), t;
21
- }
22
- const u = n(void 0);
23
- function w() {
24
- const t = o(u);
25
- return s(t !== void 0), t;
26
- }
27
- const [E, k] = a(), [P, A] = a();
28
- function a() {
29
- const t = n(void 0);
30
- return [t, () => {
31
- const e = o(t);
32
- return s(e !== void 0), e;
33
- }];
34
- }
35
- const S = new l({ nodes: { doc: { content: "paragraph+" }, paragraph: { code: !0, content: "inline*", parseDOM: [{ tag: "p" }], toDOM: () => ["p", 0] }, text: { group: "inline" }, mention: { group: "inline", inline: !0, attrs: { id: {}, name: {} }, content: "text*", toDOM: (t) => ["span", { "data-mention-id": t.attrs.id, class: "t-mention" }, `@${t.attrs.name}`], parseDOM: [{ tag: "span[data-mention-id]", getAttrs: (t) => ({ id: t.dataset["mention-id"] }) }] }, customemoji: { group: "inline", inline: !0, attrs: { name: {}, url: {} }, content: "text*", selectable: !1, toDOM: (t) => ["img", { src: t.attrs.url, alt: t.attrs.name, "data-custom-emoji": t.attrs.name }], parseDOM: [{ tag: "img[data-custom-emoji]", getAttrs: (t) => {
36
- const e = t;
37
- return { name: e.dataset.customEmoji, url: e.src };
38
- } }] } }, marks: { literal: { toDOM: () => ["span", { "data-literal": "" }], parseDOM: [{ tag: "span[data-literal]" }] }, bold: { toDOM: () => ["b"], parseDOM: [{ tag: "b" }] }, italic: { toDOM: () => ["i"], parseDOM: [{ tag: "i" }] }, strikethrough: { toDOM: () => ["del"], parseDOM: [{ tag: "del" }] }, emoji: { attrs: { emoji: {} }, toDOM: (t) => ["span", { "data-emoji": t.attrs.emoji }, t.attrs.emoji], parseDOM: [{ tag: "span[data-emoji]", getAttrs: (t) => ({ emoji: t.dataset.emoji }) }] } } });
39
- export {
40
- j as ChatboxCallbacksContext,
41
- u as ControllerContext,
42
- h as EditorInternalsContext,
43
- E as EmojiPickerContext,
44
- C as PermissionContext,
45
- P as PopoverContext,
46
- M as SessionContext,
47
- m as StoreContext,
48
- g as ThemeContext,
49
- S as schema,
50
- b as useChatboxCallbacks,
51
- w as useController,
52
- O as useEditorInternals,
53
- k as useEmojiPicker,
54
- D as usePermission,
55
- A as usePopover,
56
- f as useSession,
57
- v as useStore,
58
- x as useTheme
59
- };
60
- //# sourceMappingURL=globalConstants.js.map