@talkjs/web-components 0.0.30 → 0.0.32

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,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