@talkjs/react-components 0.0.30 → 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.30",
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,52 +0,0 @@
1
- "use client";
2
- import { createContext as r, useContext as i } from "react";
3
- import { Schema as l } from "prosemirror-model";
4
- class o extends Error {
5
- }
6
- function n(t, e) {
7
- if (!t) throw new o(e != null ? e : "Assertion failed");
8
- }
9
- const c = Object.assign(n, { is: function(t, e, s) {
10
- return n(e, s);
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 o("Value is not defined");
17
- } }), [d, p] = a(), [g, x] = a(), [C, h] = a(), [O, D] = a(), [M, j] = a(), [b, f] = a(), [w, E] = a(), [P, k] = a(), [v, A] = a(), [S, I] = a();
18
- function a() {
19
- const t = r(void 0);
20
- return [t, () => {
21
- const e = i(t);
22
- return c(e !== void 0), e;
23
- }];
24
- }
25
- const T = 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) => {
26
- const e = t;
27
- return { name: e.dataset.customEmoji, url: e.src };
28
- } }] } }, 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 }) }] } } });
29
- export {
30
- M as ChatboxCallbacksContext,
31
- w as ControllerContext,
32
- g as EditorInternalsContext,
33
- v as EmojiPickerContext,
34
- C as PermissionContext,
35
- S as PopoverContext,
36
- P as PublicControllerContext,
37
- O as SessionContext,
38
- b as StoreContext,
39
- d as ThemeContext,
40
- T as schema,
41
- j as useChatboxCallbacks,
42
- E as useController,
43
- x as useEditorInternals,
44
- A as useEmojiPicker,
45
- h as usePermission,
46
- I as usePopover,
47
- k as usePublicController,
48
- D as useSession,
49
- f as useStore,
50
- p as useTheme
51
- };
52
- //# sourceMappingURL=globalConstants.js.map