@tensor_1/react 2.18.0 → 2.19.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.
Files changed (53) hide show
  1. package/README.md +102 -1
  2. package/dist/components/Comments.d.ts +18 -2
  3. package/dist/components/Comments.js +37 -12
  4. package/dist/components/EditorIcons.d.ts +39 -0
  5. package/dist/components/EditorIcons.js +51 -0
  6. package/dist/components/EmojiGlyph.d.ts +10 -0
  7. package/dist/components/EmojiGlyph.js +18 -0
  8. package/dist/components/EmojiPicker.d.ts +60 -0
  9. package/dist/components/EmojiPicker.js +277 -0
  10. package/dist/components/Markdown.d.ts +36 -0
  11. package/dist/components/Markdown.js +104 -0
  12. package/dist/components/ReactionBar.d.ts +57 -0
  13. package/dist/components/ReactionBar.js +81 -0
  14. package/dist/components/RelationshipGraph.js +23 -4
  15. package/dist/components/RichTextEditor.d.ts +128 -0
  16. package/dist/components/RichTextEditor.js +954 -0
  17. package/dist/components/SaveStatus.d.ts +32 -0
  18. package/dist/components/SaveStatus.js +21 -0
  19. package/dist/components/Tabs.d.ts +10 -3
  20. package/dist/components/Tabs.js +5 -3
  21. package/dist/emoji-image-WQLh8ZQP.d.cts +128 -0
  22. package/dist/emoji-image.d.ts +25 -0
  23. package/dist/emoji-image.js +80 -0
  24. package/dist/emoji-model.d.ts +66 -0
  25. package/dist/emoji-model.js +108 -0
  26. package/dist/emoji.cjs +871 -0
  27. package/dist/emoji.d.cts +57 -0
  28. package/dist/emoji.d.ts +6 -0
  29. package/dist/emoji.js +18 -0
  30. package/dist/index.cjs +587 -519
  31. package/dist/index.d.cts +59 -64
  32. package/dist/index.d.ts +1 -0
  33. package/dist/index.js +3 -0
  34. package/dist/markdown-model.d.ts +75 -0
  35. package/dist/markdown-model.js +438 -0
  36. package/dist/markdown.cjs +585 -0
  37. package/dist/markdown.d.cts +115 -0
  38. package/dist/markdown.d.ts +4 -0
  39. package/dist/markdown.js +9 -0
  40. package/dist/overlay-position-CEGSz6Z2.d.cts +59 -0
  41. package/dist/rich-text/emoji-items.d.ts +14 -0
  42. package/dist/rich-text/emoji-items.js +7 -0
  43. package/dist/rich-text/pipeline.d.ts +91 -0
  44. package/dist/rich-text/pipeline.js +379 -0
  45. package/dist/rich-text/round-trip.d.ts +24 -0
  46. package/dist/rich-text/round-trip.js +11 -0
  47. package/dist/rich-text.cjs +2578 -0
  48. package/dist/rich-text.d.cts +148 -0
  49. package/dist/rich-text.d.ts +8 -0
  50. package/dist/rich-text.js +10 -0
  51. package/dist/url-policy.d.ts +9 -0
  52. package/dist/url-policy.js +11 -0
  53. package/package.json +82 -1
@@ -0,0 +1,57 @@
1
+ import { E as EmojiPickerLabels, a as EmojiLocale, b as EmojiDataLoader } from './emoji-image-WQLh8ZQP.cjs';
2
+ export { C as CompactEmoji, D as DEFAULT_EMOJI_PICKER_LABELS, c as EMOJI_GRID_COLUMNS, d as EmojiData, e as EmojiEntry, f as EmojiGroup, g as EmojiMessages, h as EmojiPicker, i as EmojiPickerProps, j as buildEmojiData, k as canRenderEmoji, l as emojiImageFileName, m as loadEmojiData, n as normalizeEmojiImageBaseUrl, s as searchEmoji } from './emoji-image-WQLh8ZQP.cjs';
3
+ export { A as Align, P as Placement, S as Side } from './overlay-position-CEGSz6Z2.cjs';
4
+ import * as react from 'react';
5
+
6
+ interface ReactionSummary {
7
+ /** Unicode emoji. */
8
+ emoji: string;
9
+ count: number;
10
+ /** Whether the current user is among the reactors (chip shows pressed). */
11
+ reactedByMe: boolean;
12
+ /** Display names of the reactors, in the order to show them. */
13
+ names: ReadonlyArray<string>;
14
+ }
15
+ interface ReactionBarLabels {
16
+ /** Accessible name of the reaction group. */
17
+ group: string;
18
+ /** Add-reaction button. */
19
+ addReaction: string;
20
+ /** Chip name and tooltip. Placeholders: `{names}`, `{emoji}`, `{count}`. */
21
+ reactedWith: string;
22
+ /** Used when no names are known. Placeholders: `{count}`, `{emoji}`. */
23
+ reactedCount: string;
24
+ /** Appended to a truncated name list. Placeholder: `{count}`. */
25
+ others: string;
26
+ }
27
+ declare const DEFAULT_REACTION_BAR_LABELS: ReactionBarLabels;
28
+ declare const DEFAULT_QUICK_REACTIONS: ReadonlyArray<string>;
29
+ interface ReactionBarProps {
30
+ reactions: ReadonlyArray<ReactionSummary>;
31
+ /** Called with the emoji of a clicked chip, or of an emoji picked that the user has not reacted with yet. */
32
+ onToggle: (emoji: string) => void;
33
+ /** Chips and the add button stay visible but cannot be used. */
34
+ disabled?: boolean;
35
+ /** Emoji offered first in the add-reaction picker. */
36
+ quickPicks?: ReadonlyArray<string>;
37
+ labels?: Partial<ReactionBarLabels>;
38
+ /** Labels of the add-reaction picker. */
39
+ pickerLabels?: Partial<EmojiPickerLabels>;
40
+ /** Language of emoji names in the picker. Default `'en'`. */
41
+ locale?: EmojiLocale;
42
+ loadData?: EmojiDataLoader;
43
+ /** Same-origin folder of fallback emoji PNGs, as on EmojiPicker. Unset = native emoji only. */
44
+ emojiImageBaseUrl?: string;
45
+ /** Names listed before "and N more". Default 10. */
46
+ maxNames?: number;
47
+ className?: string;
48
+ }
49
+ /**
50
+ * Emoji reactions over `.uix-reactions`: one toggle chip per emoji (`aria-pressed`
51
+ * when the viewer reacted), reactor names in the tooltip and the chip's accessible
52
+ * name, and an add-reaction picker with quick picks. Informational only — the bar
53
+ * carries no approval semantics.
54
+ */
55
+ declare function ReactionBar({ reactions, onToggle, disabled, quickPicks, labels: labelOverrides, pickerLabels, locale, loadData, maxNames, className, emojiImageBaseUrl, }: ReactionBarProps): react.JSX.Element;
56
+
57
+ export { DEFAULT_QUICK_REACTIONS, DEFAULT_REACTION_BAR_LABELS, EmojiDataLoader, EmojiLocale, EmojiPickerLabels, ReactionBar, type ReactionBarLabels, type ReactionBarProps, type ReactionSummary };
@@ -0,0 +1,6 @@
1
+ export { DEFAULT_EMOJI_PICKER_LABELS, EMOJI_GRID_COLUMNS, EmojiPicker, EmojiPickerLabels, EmojiPickerProps } from './components/EmojiPicker.js';
2
+ export { Align, Placement, Side } from './overlay-position.js';
3
+ export { DEFAULT_QUICK_REACTIONS, DEFAULT_REACTION_BAR_LABELS, ReactionBar, ReactionBarLabels, ReactionBarProps, ReactionSummary } from './components/ReactionBar.js';
4
+ export { CompactEmoji, EmojiData, EmojiDataLoader, EmojiEntry, EmojiGroup, EmojiLocale, EmojiMessages, buildEmojiData, loadEmojiData, searchEmoji } from './emoji-model.js';
5
+ export { canRenderEmoji, emojiImageFileName, normalizeEmojiImageBaseUrl } from './emoji-image.js';
6
+ import 'react';
package/dist/emoji.js ADDED
@@ -0,0 +1,18 @@
1
+ import { EmojiPicker, DEFAULT_EMOJI_PICKER_LABELS, EMOJI_GRID_COLUMNS } from "./components/EmojiPicker.js";
2
+ import { ReactionBar, DEFAULT_REACTION_BAR_LABELS, DEFAULT_QUICK_REACTIONS } from "./components/ReactionBar.js";
3
+ import { buildEmojiData, loadEmojiData, searchEmoji } from "./emoji-model.js";
4
+ import { canRenderEmoji, emojiImageFileName, normalizeEmojiImageBaseUrl } from "./emoji-image.js";
5
+ export {
6
+ DEFAULT_EMOJI_PICKER_LABELS,
7
+ DEFAULT_QUICK_REACTIONS,
8
+ DEFAULT_REACTION_BAR_LABELS,
9
+ EMOJI_GRID_COLUMNS,
10
+ EmojiPicker,
11
+ ReactionBar,
12
+ buildEmojiData,
13
+ canRenderEmoji,
14
+ emojiImageFileName,
15
+ loadEmojiData,
16
+ normalizeEmojiImageBaseUrl,
17
+ searchEmoji
18
+ };