@lettuceai/crisp 1.2.0 → 1.3.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/dist/components/InlineMarkdown.d.ts +15 -0
- package/dist/components/Tooltip.d.ts +7 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +702 -615
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface InlineMarkdownProps {
|
|
2
|
+
children: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
/** ATX headings kept as text: the first `#` of a heading line is escaped. */
|
|
6
|
+
export declare function escapeHeadings(text: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Markdown inside a line of text — a card's description, a list row's preview. Bold,
|
|
9
|
+
* italic, strikethrough and inline code keep their emphasis; paragraphs, lists and quotes
|
|
10
|
+
* run on as one line so a line clamp still works; headings stay as the text they were
|
|
11
|
+
* typed as, and links are plain text, since the line usually sits inside a button.
|
|
12
|
+
*
|
|
13
|
+
* Raw HTML is not enabled: descriptions and messages are untrusted text.
|
|
14
|
+
*/
|
|
15
|
+
export declare function InlineMarkdown({ children, className }: InlineMarkdownProps): import("react").JSX.Element;
|
|
@@ -11,5 +11,11 @@ export interface TooltipProps {
|
|
|
11
11
|
className?: string;
|
|
12
12
|
children: ReactElement<Record<string, unknown>>;
|
|
13
13
|
}
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Hover / focus hint. Never the only place a label lives — icon buttons still need `label`.
|
|
16
|
+
* It renders in the overlay portal at the trigger's position, so a scrolling or clipping
|
|
17
|
+
* ancestor never hides it; it closes on scroll and resize instead of following the trigger.
|
|
18
|
+
* It keeps its own compositing layer: WebKit otherwise paints it under any layer a
|
|
19
|
+
* `backdrop-filter` creates, such as AppBar, whatever the z-index says.
|
|
20
|
+
*/
|
|
15
21
|
export declare function Tooltip({ content, placement, delay, disabled, className, children }: TooltipProps): import("react").JSX.Element;
|