@tensor_1/react 2.38.0 → 2.40.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 +65 -0
- package/dist/{chart-theme-Cl0IrkKQ.d.cts → ChartCore-BKK2HEfi.d.cts} +77 -50
- package/dist/chart-analytic-guide.d.ts +6 -0
- package/dist/chart-analytic-guide.js +10 -0
- package/dist/chart-analytic-model.d.ts +145 -0
- package/dist/chart-analytic-model.js +259 -0
- package/dist/chart-analytic.cjs +1379 -0
- package/dist/chart-analytic.d.cts +339 -0
- package/dist/chart-analytic.d.ts +19 -0
- package/dist/chart-analytic.js +95 -0
- package/dist/chart-panels-model.d.ts +92 -0
- package/dist/chart-panels-model.js +284 -0
- package/dist/chart-preset.cjs +41 -4
- package/dist/chart-preset.d.cts +2 -2
- package/dist/chart-preset.d.ts +1 -1
- package/dist/chart-stats-o4zDhpVm.d.cts +46 -0
- package/dist/chart-stats.d.ts +46 -0
- package/dist/chart-stats.js +89 -0
- package/dist/chart-theme.d.ts +3 -0
- package/dist/chart-theme.js +2 -0
- package/dist/chart.cjs +41 -4
- package/dist/chart.d.cts +2 -2
- package/dist/chart.d.ts +1 -1
- package/dist/components/Chart.d.ts +1 -1
- package/dist/components/ChartCore.d.ts +23 -3
- package/dist/components/ChartCore.js +40 -5
- package/dist/components/ChartPanels.d.ts +52 -0
- package/dist/components/ChartPanels.js +170 -0
- package/dist/components/Comments.d.ts +4 -1
- package/dist/components/Comments.js +3 -2
- package/dist/components/InsightCard.d.ts +86 -0
- package/dist/components/InsightCard.js +118 -0
- package/dist/components/Markdown.d.ts +9 -2
- package/dist/components/Markdown.js +16 -2
- package/dist/components/RichTextEditor.d.ts +17 -0
- package/dist/components/RichTextEditor.js +179 -11
- package/dist/components/ToggleRow.d.ts +8 -1
- package/dist/components/ToggleRow.js +17 -3
- package/dist/correlation-scatter-model.d.ts +68 -0
- package/dist/correlation-scatter-model.js +179 -0
- package/dist/icons/Icon.d.ts +17 -17
- package/dist/index.cjs +1663 -1427
- package/dist/index.d.cts +96 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.js +10 -0
- package/dist/markdown-model-Cuwi6pIk.d.cts +110 -0
- package/dist/markdown-model.d.ts +38 -1
- package/dist/markdown-model.js +67 -0
- package/dist/markdown.cjs +90 -4
- package/dist/markdown.d.cts +11 -75
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.js +16 -2
- package/dist/rich-text/mention.d.ts +14 -0
- package/dist/rich-text/mention.js +57 -0
- package/dist/rich-text/pipeline.js +4 -1
- package/dist/rich-text.cjs +1795 -1483
- package/dist/rich-text.d.cts +27 -1
- package/dist/rich-text.d.ts +3 -0
- package/dist/rich-text.js +6 -0
- package/package.json +6 -1
package/dist/rich-text.d.cts
CHANGED
|
@@ -2,8 +2,19 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { E as EmojiPickerLabels, a as EmojiLocale } from './emoji-image-DjCKpdwE.cjs';
|
|
4
4
|
export { l as emojiImageFileName } from './emoji-image-DjCKpdwE.cjs';
|
|
5
|
+
export { M as MENTION_SCHEME, f as findMentions, e as formatMention, i as isMentionId, r as readMention } from './markdown-model-Cuwi6pIk.cjs';
|
|
5
6
|
import './overlay-position-2Afke51l.cjs';
|
|
6
7
|
|
|
8
|
+
/** A person the consumer offers in the `@` listbox. */
|
|
9
|
+
interface MentionCandidate {
|
|
10
|
+
/** Stored in the text; letters, digits and `_ . -` only (see `isMentionId`). */
|
|
11
|
+
id: string;
|
|
12
|
+
/** The name inserted and shown. */
|
|
13
|
+
label: string;
|
|
14
|
+
/** A second line in the listbox (e.g. team or e-mail), never stored. */
|
|
15
|
+
description?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
7
18
|
type RichTextFeatures = 'full' | 'comment' | 'template';
|
|
8
19
|
type RichTextHeadingLevel = 1 | 2 | 3;
|
|
9
20
|
/** Every visible and accessible string of the editor. Placeholders are filled by the editor. */
|
|
@@ -43,6 +54,14 @@ interface RichTextLabels {
|
|
|
43
54
|
emoji: string;
|
|
44
55
|
/** Accessible name of the `:shortcode` suggestion list. */
|
|
45
56
|
emojiSuggestions: string;
|
|
57
|
+
/** Accessible name of the `@` people list. */
|
|
58
|
+
mentionSuggestions: string;
|
|
59
|
+
/** Shown while `onMentionSearch` has not answered. */
|
|
60
|
+
mentionSearching: string;
|
|
61
|
+
/** Shown when `onMentionSearch` found nobody. */
|
|
62
|
+
mentionEmpty: string;
|
|
63
|
+
/** Shown when `onMentionSearch` failed. */
|
|
64
|
+
mentionFailed: string;
|
|
46
65
|
undo: string;
|
|
47
66
|
redo: string;
|
|
48
67
|
/** Toggle to markdown source. */
|
|
@@ -85,6 +104,13 @@ interface RichTextEditorProps {
|
|
|
85
104
|
onSubmitShortcut?: () => void;
|
|
86
105
|
/** Emoji button and `:shortcode` suggestions. Default `true`. */
|
|
87
106
|
emoji?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* People for the `@` list: called with the text typed after `@` (possibly empty) and
|
|
109
|
+
* answering the candidates to offer. The product owns the query and who may be
|
|
110
|
+
* mentioned; UIx never fetches. A picked person is inserted as one token, stored as
|
|
111
|
+
* `@[Name](mention:<id>)`. Without it, typing `@` does nothing special.
|
|
112
|
+
*/
|
|
113
|
+
onMentionSearch?: (query: string) => Promise<ReadonlyArray<MentionCandidate>> | ReadonlyArray<MentionCandidate>;
|
|
88
114
|
/**
|
|
89
115
|
* Same-origin folder of fallback emoji PNGs for devices without a colour emoji font
|
|
90
116
|
* (e.g. `/static/emoji`). Emoji the device cannot draw show as
|
|
@@ -153,4 +179,4 @@ interface RoundTripOptions {
|
|
|
153
179
|
*/
|
|
154
180
|
declare function roundTripMarkdown(markdown: string, options?: RoundTripOptions): Promise<string>;
|
|
155
181
|
|
|
156
|
-
export { DEFAULT_RICH_TEXT_LABELS, EmojiLocale, EmojiPickerLabels, RichTextEditor, RichTextEditorFallback, type RichTextEditorProps, type RichTextFeatures, type RichTextHeadingLevel, type RichTextLabels, type RoundTripOptions, roundTripMarkdown };
|
|
182
|
+
export { DEFAULT_RICH_TEXT_LABELS, EmojiLocale, EmojiPickerLabels, type MentionCandidate, RichTextEditor, RichTextEditorFallback, type RichTextEditorProps, type RichTextFeatures, type RichTextHeadingLevel, type RichTextLabels, type RoundTripOptions, roundTripMarkdown };
|
package/dist/rich-text.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ export { RoundTripOptions, roundTripMarkdown } from './rich-text/round-trip.js';
|
|
|
3
3
|
export { EmojiLocale } from './emoji-model.js';
|
|
4
4
|
export { EmojiPickerLabels } from './components/EmojiPicker.js';
|
|
5
5
|
export { emojiImageFileName } from './emoji-image.js';
|
|
6
|
+
export { MentionCandidate } from './rich-text/mention.js';
|
|
7
|
+
export { MENTION_SCHEME, findMentions, formatMention, isMentionId, readMention } from './markdown-model.js';
|
|
6
8
|
import 'react';
|
|
7
9
|
import '@tiptap/extension-emoji';
|
|
8
10
|
import './overlay-position.js';
|
|
11
|
+
import '@tiptap/core';
|
package/dist/rich-text.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { RichTextEditor, RichTextEditorFallback, DEFAULT_RICH_TEXT_LABELS } from "./components/RichTextEditor.js";
|
|
2
2
|
import { roundTripMarkdown } from "./rich-text/round-trip.js";
|
|
3
3
|
import { emojiImageFileName } from "./emoji-image.js";
|
|
4
|
+
import { findMentions, formatMention, readMention, isMentionId, MENTION_SCHEME } from "./markdown-model.js";
|
|
4
5
|
export {
|
|
5
6
|
DEFAULT_RICH_TEXT_LABELS,
|
|
7
|
+
MENTION_SCHEME,
|
|
6
8
|
RichTextEditor,
|
|
7
9
|
RichTextEditorFallback,
|
|
8
10
|
emojiImageFileName,
|
|
11
|
+
findMentions,
|
|
12
|
+
formatMention,
|
|
13
|
+
isMentionId,
|
|
14
|
+
readMention,
|
|
9
15
|
roundTripMarkdown
|
|
10
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tensor_1/react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.40.0",
|
|
4
4
|
"description": "Thin React wrappers over the UIx v2 CSS component library.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
"import": "./dist/chart.js",
|
|
29
29
|
"require": "./dist/chart.cjs"
|
|
30
30
|
},
|
|
31
|
+
"./chart/analytic": {
|
|
32
|
+
"types": "./dist/chart-analytic.d.ts",
|
|
33
|
+
"import": "./dist/chart-analytic.js",
|
|
34
|
+
"require": "./dist/chart-analytic.cjs"
|
|
35
|
+
},
|
|
31
36
|
"./chart/preset": {
|
|
32
37
|
"types": "./dist/chart-preset.d.ts",
|
|
33
38
|
"import": "./dist/chart-preset.js",
|