@tensor_1/react 2.17.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.
- package/README.md +131 -1
- package/dist/components/Comments.d.ts +18 -2
- package/dist/components/Comments.js +37 -12
- package/dist/components/EditorIcons.d.ts +39 -0
- package/dist/components/EditorIcons.js +51 -0
- package/dist/components/EmojiGlyph.d.ts +10 -0
- package/dist/components/EmojiGlyph.js +18 -0
- package/dist/components/EmojiPicker.d.ts +60 -0
- package/dist/components/EmojiPicker.js +277 -0
- package/dist/components/Markdown.d.ts +36 -0
- package/dist/components/Markdown.js +104 -0
- package/dist/components/ReactionBar.d.ts +57 -0
- package/dist/components/ReactionBar.js +81 -0
- package/dist/components/RelationshipGraph.d.ts +81 -3
- package/dist/components/RelationshipGraph.js +102 -59
- package/dist/components/RelationshipGraphLayered.d.ts +8 -0
- package/dist/components/RelationshipGraphLayered.js +420 -0
- package/dist/components/RelationshipGraphList.d.ts +16 -0
- package/dist/components/RelationshipGraphList.js +33 -0
- package/dist/components/RichTextEditor.d.ts +128 -0
- package/dist/components/RichTextEditor.js +954 -0
- package/dist/components/SaveStatus.d.ts +32 -0
- package/dist/components/SaveStatus.js +21 -0
- package/dist/components/Tabs.d.ts +10 -3
- package/dist/components/Tabs.js +5 -3
- package/dist/emoji-image-WQLh8ZQP.d.cts +128 -0
- package/dist/emoji-image.d.ts +25 -0
- package/dist/emoji-image.js +80 -0
- package/dist/emoji-model.d.ts +66 -0
- package/dist/emoji-model.js +108 -0
- package/dist/emoji.cjs +871 -0
- package/dist/emoji.d.cts +57 -0
- package/dist/emoji.d.ts +6 -0
- package/dist/emoji.js +18 -0
- package/dist/index.cjs +1503 -540
- package/dist/index.d.cts +245 -65
- package/dist/index.d.ts +3 -2
- package/dist/index.js +11 -2
- package/dist/markdown-model.d.ts +75 -0
- package/dist/markdown-model.js +438 -0
- package/dist/markdown.cjs +585 -0
- package/dist/markdown.d.cts +115 -0
- package/dist/markdown.d.ts +4 -0
- package/dist/markdown.js +9 -0
- package/dist/overlay-position-CEGSz6Z2.d.cts +59 -0
- package/dist/relationship-graph-model.d.ts +112 -1
- package/dist/relationship-graph-model.js +420 -1
- package/dist/rich-text/emoji-items.d.ts +14 -0
- package/dist/rich-text/emoji-items.js +7 -0
- package/dist/rich-text/pipeline.d.ts +91 -0
- package/dist/rich-text/pipeline.js +379 -0
- package/dist/rich-text/round-trip.d.ts +24 -0
- package/dist/rich-text/round-trip.js +11 -0
- package/dist/rich-text.cjs +2578 -0
- package/dist/rich-text.d.cts +148 -0
- package/dist/rich-text.d.ts +8 -0
- package/dist/rich-text.js +10 -0
- package/dist/url-policy.d.ts +9 -0
- package/dist/url-policy.js +11 -0
- package/package.json +82 -1
package/dist/emoji.d.cts
ADDED
|
@@ -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 };
|
package/dist/emoji.d.ts
ADDED
|
@@ -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
|
+
};
|