@copilotkit/react-core 1.82.0 → 1.84.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/{MarkdownSurfaces-DGpjmPaB.mjs → MarkdownSurfaces-DV9P0Gi9.mjs} +55 -13
- package/dist/MarkdownSurfaces-DV9P0Gi9.mjs.map +1 -0
- package/dist/{MarkdownSurfaces-FF5za2kU.cjs → MarkdownSurfaces-IUaWSJ0E.cjs} +54 -12
- package/dist/MarkdownSurfaces-IUaWSJ0E.cjs.map +1 -0
- package/dist/{copilotkit-CVvbU9lV.cjs → copilotkit-BOTf5RHF.cjs} +296 -291
- package/dist/copilotkit-BOTf5RHF.cjs.map +1 -0
- package/dist/{copilotkit-wqaNanhw.d.cts → copilotkit-C3mvJexb.d.cts} +31 -8
- package/dist/copilotkit-C3mvJexb.d.cts.map +1 -0
- package/dist/{copilotkit-DDReN1Px.mjs → copilotkit-CKnD8GeM.mjs} +300 -295
- package/dist/copilotkit-CKnD8GeM.mjs.map +1 -0
- package/dist/{copilotkit-C765tOUi.d.mts → copilotkit-CnYo662V.d.mts} +31 -8
- package/dist/copilotkit-CnYo662V.d.mts.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.umd.js +199 -289
- package/dist/index.umd.js.map +1 -1
- package/dist/v2/generative-ui.cjs +33 -54
- package/dist/v2/generative-ui.cjs.map +1 -1
- package/dist/v2/generative-ui.d.cts +118 -118
- package/dist/v2/generative-ui.d.mts +118 -118
- package/dist/v2/generative-ui.mjs +33 -54
- package/dist/v2/generative-ui.mjs.map +1 -1
- package/dist/v2/headless.cjs +32 -16
- package/dist/v2/headless.cjs.map +1 -1
- package/dist/v2/headless.d.cts +2 -0
- package/dist/v2/headless.d.cts.map +1 -1
- package/dist/v2/headless.d.mts +2 -0
- package/dist/v2/headless.d.mts.map +1 -1
- package/dist/v2/headless.mjs +33 -17
- package/dist/v2/headless.mjs.map +1 -1
- package/dist/v2/index.cjs +14 -2
- package/dist/v2/index.css +1 -1
- package/dist/v2/index.d.cts +2 -2
- package/dist/v2/index.d.mts +2 -2
- package/dist/v2/index.mjs +3 -3
- package/dist/v2/index.umd.js +359 -300
- package/dist/v2/index.umd.js.map +1 -1
- package/package.json +8 -8
- package/dist/MarkdownSurfaces-DGpjmPaB.mjs.map +0 -1
- package/dist/MarkdownSurfaces-FF5za2kU.cjs.map +0 -1
- package/dist/copilotkit-C765tOUi.d.mts.map +0 -1
- package/dist/copilotkit-CVvbU9lV.cjs.map +0 -1
- package/dist/copilotkit-DDReN1Px.mjs.map +0 -1
- package/dist/copilotkit-wqaNanhw.d.cts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { A as isRecord, I as useKatexStyles, N as createGenerativeUI, P as toJsonSchema, c as DARK_THEME_CSS, d as useGenerativeUIAccessibility, f as wrapperAria, g as GenerativeUINodeContext, h as useManagerVersion,
|
|
3
|
+
import { A as GenerativeUIError, D as isRecord, I as useKatexStyles, N as createGenerativeUI, P as toJsonSchema, c as DARK_THEME_CSS, d as useGenerativeUIAccessibility, f as wrapperAria, g as GenerativeUINodeContext, h as useManagerVersion, l as controlAria, m as useGenerativeUIState, n as DefaultGenerativeUIChatCard, p as useGenerativeUIFunction, s as SurfaceView, t as MarkdownSurfaces, u as namedRole, v as useGenerativeUIRuntime, y as useRequiredGenerativeUIRuntime } from "../MarkdownSurfaces-DV9P0Gi9.mjs";
|
|
4
4
|
import React, { Suspense, createContext, isValidElement, memo, useCallback, useContext, useEffect, useId, useInsertionEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { A2UI_CHILD_LIST_MARK, A2UI_CHILD_LIST_REF, A2UI_COMPONENT_ID_MARK, A2UI_COMPONENT_ID_REF, GENERATIVE_UI_FUNCTIONS, GENERATIVE_UI_MAX_TARGET_COMPONENTS, childRefKind, functionCallers } from "@copilotkit/shared";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -586,27 +586,6 @@ const BORDER_COLORS = [
|
|
|
586
586
|
"danger",
|
|
587
587
|
"discovery"
|
|
588
588
|
];
|
|
589
|
-
const BACKGROUNDS = [
|
|
590
|
-
"surface",
|
|
591
|
-
"surface-secondary",
|
|
592
|
-
"surface-tertiary",
|
|
593
|
-
"surface-elevated",
|
|
594
|
-
"surface-elevated-secondary",
|
|
595
|
-
"surface-inverted",
|
|
596
|
-
"surface-soft",
|
|
597
|
-
"info",
|
|
598
|
-
"warning",
|
|
599
|
-
"caution",
|
|
600
|
-
"success",
|
|
601
|
-
"danger",
|
|
602
|
-
"discovery",
|
|
603
|
-
"info-solid",
|
|
604
|
-
"warning-solid",
|
|
605
|
-
"caution-solid",
|
|
606
|
-
"success-solid",
|
|
607
|
-
"danger-solid",
|
|
608
|
-
"discovery-solid"
|
|
609
|
-
];
|
|
610
589
|
const RADIUS_PX = {
|
|
611
590
|
"2xs": "2px",
|
|
612
591
|
xs: "4px",
|
|
@@ -997,7 +976,7 @@ const layoutProps = {
|
|
|
997
976
|
rowGap: sizeValue.optional(),
|
|
998
977
|
columnGap: sizeValue.optional(),
|
|
999
978
|
padding: sizeValue.optional().describe("4px steps when a number"),
|
|
1000
|
-
background: z.string().optional().describe(
|
|
979
|
+
background: z.string().optional().describe("Leave it unset. A surface token such as surface, surface-secondary, info, success, warning, danger, discovery, or one with -solid, or a CSS color. Only one summary panel in a Card uses \"surface-secondary\""),
|
|
1001
980
|
border: z.boolean().optional(),
|
|
1002
981
|
borderColor: z.enum(BORDER_COLORS).optional(),
|
|
1003
982
|
radius: radiusValue.optional(),
|
|
@@ -1865,7 +1844,7 @@ const layoutComponents = {
|
|
|
1865
1844
|
},
|
|
1866
1845
|
Row: {
|
|
1867
1846
|
component: Row,
|
|
1868
|
-
description: "A horizontal flex container.
|
|
1847
|
+
description: "A horizontal flex container. Label and value pair: justify \"spaceBetween\", a Caption left and a Text with fontWeight \"medium\" right. Buttons go in a Row at the bottom of a Card: one variant \"primary\", the others default or \"borderless\".",
|
|
1869
1848
|
props: layoutSchema,
|
|
1870
1849
|
events: VISIBLE_EVENT,
|
|
1871
1850
|
slots: CHILDREN_SLOT
|
|
@@ -1886,7 +1865,7 @@ const layoutComponents = {
|
|
|
1886
1865
|
},
|
|
1887
1866
|
Card: {
|
|
1888
1867
|
component: Card,
|
|
1889
|
-
description: "A bordered
|
|
1868
|
+
description: "A bordered panel, only for an interactive panel (controls, a form, a configurator); tables, charts and text need none. Give it a Title and a Caption. Separate groups with a Divider or the gap, never a nested Card or bordered Box. Variant \"section\": no box; \"outline\": always a box. In markdown mode, without controls it renders as \"section\" unless variant or border is set.",
|
|
1890
1869
|
props: cardSchema,
|
|
1891
1870
|
events: VISIBLE_EVENT,
|
|
1892
1871
|
slots: {
|
|
@@ -1910,7 +1889,7 @@ const layoutComponents = {
|
|
|
1910
1889
|
},
|
|
1911
1890
|
Carousel: {
|
|
1912
1891
|
component: Carousel,
|
|
1913
|
-
description: "A row that
|
|
1892
|
+
description: "A horizontally scrolling row that snaps to its CarouselItem or CarouselMediaItem children, with arrows. Bind activeIndex to read or set the slide in view.",
|
|
1914
1893
|
props: carouselSchema,
|
|
1915
1894
|
events: VISIBLE_EVENT,
|
|
1916
1895
|
slots: CHILDREN_SLOT,
|
|
@@ -1925,7 +1904,7 @@ const layoutComponents = {
|
|
|
1925
1904
|
},
|
|
1926
1905
|
CarouselMediaItem: {
|
|
1927
1906
|
component: CarouselMediaItem,
|
|
1928
|
-
description: "A
|
|
1907
|
+
description: "A Carousel slide: an image with its children (a Caption, a Text) under it. size \"sm\" 160px, \"md\" 240px (default), \"lg\" 320px wide. A click opens all slides full-screen, unless href or onClick is set.",
|
|
1929
1908
|
props: carouselMediaItemSchema,
|
|
1930
1909
|
events: {
|
|
1931
1910
|
...VISIBLE_EVENT,
|
|
@@ -3002,7 +2981,7 @@ const mediaComponents = {
|
|
|
3002
2981
|
},
|
|
3003
2982
|
Video: {
|
|
3004
2983
|
component: Video,
|
|
3005
|
-
description: "A video
|
|
2984
|
+
description: "A video file URL (optional captions) or a YouTube link, privacy-enhanced: the poster shows until play. Other video sites show as a link. Set title.",
|
|
3006
2985
|
props: videoSchema
|
|
3007
2986
|
},
|
|
3008
2987
|
AudioPlayer: {
|
|
@@ -3048,7 +3027,7 @@ const followUpItem = z.union([z.string(), z.object({
|
|
|
3048
3027
|
message: text("The text sent when the user clicks. Default: label")
|
|
3049
3028
|
})]);
|
|
3050
3029
|
const followUpSchema = z.object({
|
|
3051
|
-
items: z.array(followUpItem).optional()
|
|
3030
|
+
items: z.array(followUpItem).optional(),
|
|
3052
3031
|
title: text("A caption above the pills")
|
|
3053
3032
|
});
|
|
3054
3033
|
const followUpArgs = z.object({ message: z.string().describe("The message of the clicked pill") });
|
|
@@ -3096,7 +3075,7 @@ const gridImage = z.object({
|
|
|
3096
3075
|
href: text("Opens this URL instead of the full-screen view")
|
|
3097
3076
|
});
|
|
3098
3077
|
const imageGridSchema = z.object({
|
|
3099
|
-
images: z.array(gridImage).optional()
|
|
3078
|
+
images: z.array(gridImage).optional(),
|
|
3100
3079
|
columns: z.number().optional().describe("Default 3"),
|
|
3101
3080
|
aspectRatio: z.string().optional().describe("Default \"1 / 1\""),
|
|
3102
3081
|
gap: sizeValue.optional().describe("Default 2"),
|
|
@@ -3676,7 +3655,7 @@ function ImageGrid(props) {
|
|
|
3676
3655
|
const compositeComponents = {
|
|
3677
3656
|
LinkCard: {
|
|
3678
3657
|
component: LinkCard,
|
|
3679
|
-
description: "A preview
|
|
3658
|
+
description: "A preview of a URL: favicon and domain, title, description, thumbnail. A click opens it in a new tab, or sends onClick when bound. For sources, articles and products with a page.",
|
|
3680
3659
|
props: linkCardSchema,
|
|
3681
3660
|
events: { onClick: {
|
|
3682
3661
|
description: "Sent when the user clicks the card, instead of the link.",
|
|
@@ -3685,12 +3664,12 @@ const compositeComponents = {
|
|
|
3685
3664
|
},
|
|
3686
3665
|
Citation: {
|
|
3687
3666
|
component: Citation,
|
|
3688
|
-
description: "An inline source marker ([1])
|
|
3667
|
+
description: "An inline source marker ([1]) showing title, snippet and link on hover or click. Put it right after the sentence it supports, as a child of a Text or in a Row.",
|
|
3689
3668
|
props: citationSchema
|
|
3690
3669
|
},
|
|
3691
3670
|
FollowUp: {
|
|
3692
3671
|
component: FollowUp,
|
|
3693
|
-
description: "Suggested next prompts as pills
|
|
3672
|
+
description: "Suggested next prompts as pills; a click sends the pill's message as the user's next turn, no event needed. At the end of a surface, two to four short items.",
|
|
3694
3673
|
props: followUpSchema,
|
|
3695
3674
|
events: { onFollowUp: {
|
|
3696
3675
|
description: "Sent when the user clicks a pill. The args carry the message of the pill.",
|
|
@@ -3699,7 +3678,7 @@ const compositeComponents = {
|
|
|
3699
3678
|
},
|
|
3700
3679
|
EntityCard: {
|
|
3701
3680
|
component: EntityCard,
|
|
3702
|
-
description: "A card for one
|
|
3681
|
+
description: "A card for one product, place, person or listing: image, title, subtitle, description, a price or meta line, badge, rating and up to three buttons. href opens a page; onClick is sent when bound. Use a Grid of them for several things.",
|
|
3703
3682
|
props: entityCardSchema,
|
|
3704
3683
|
events: {
|
|
3705
3684
|
onClick: {
|
|
@@ -3735,9 +3714,9 @@ const chartSchema = z.object({
|
|
|
3735
3714
|
"pie",
|
|
3736
3715
|
"donut"
|
|
3737
3716
|
]).optional().describe("Default \"bar\""),
|
|
3738
|
-
data: z.array(z.record(z.string(), z.unknown())).optional()
|
|
3717
|
+
data: z.array(z.record(z.string(), z.unknown())).optional(),
|
|
3739
3718
|
xKey: z.string().optional().describe("The field of the category axis"),
|
|
3740
|
-
series: z.array(chartSeries).optional().describe("
|
|
3719
|
+
series: z.array(chartSeries).optional().describe("Default: every number field except xKey"),
|
|
3741
3720
|
stacked: z.boolean().optional(),
|
|
3742
3721
|
layout: z.enum(["vertical", "horizontal"]).optional().describe("\"horizontal\" draws the bars from left to right. Default \"vertical\""),
|
|
3743
3722
|
yAxis: z.object({
|
|
@@ -3745,7 +3724,7 @@ const chartSchema = z.object({
|
|
|
3745
3724
|
min: z.number().optional(),
|
|
3746
3725
|
max: z.number().optional(),
|
|
3747
3726
|
width: z.number().optional().describe("Pixels")
|
|
3748
|
-
}).optional().describe("
|
|
3727
|
+
}).optional().describe("Example: {label: \"Revenue (USD)\", min: 0, max: 100}. In a horizontal chart it is the horizontal axis, and width sets the category axis width"),
|
|
3749
3728
|
showDots: z.boolean().optional().describe("Point markers on a line or area"),
|
|
3750
3729
|
barRadius: z.number().optional().describe("The corner radius of a bar, in pixels"),
|
|
3751
3730
|
innerRadius: z.union([z.number(), z.string()]).optional().describe("Pie and donut"),
|
|
@@ -3764,7 +3743,7 @@ const chartSchema = z.object({
|
|
|
3764
3743
|
"number",
|
|
3765
3744
|
"currency",
|
|
3766
3745
|
"percent"
|
|
3767
|
-
]).optional().describe("
|
|
3746
|
+
]).optional().describe("With \"percent\", data values and axis min/max are fractions: 0.4 shows as 40%; for 0% to 10%, use min: 0 and max: 0.1."),
|
|
3768
3747
|
currency: z.string().optional().describe("ISO code. Default \"USD\""),
|
|
3769
3748
|
title: z.string().optional()
|
|
3770
3749
|
});
|
|
@@ -4178,7 +4157,7 @@ const mapMarker = z.object({
|
|
|
4178
4157
|
icon: z.string().optional()
|
|
4179
4158
|
});
|
|
4180
4159
|
const mapSchema = z.object({
|
|
4181
|
-
markers: z.array(mapMarker).optional()
|
|
4160
|
+
markers: z.array(mapMarker).optional(),
|
|
4182
4161
|
route: z.boolean().optional().describe("Draws a line through the markers in order"),
|
|
4183
4162
|
selected: z.string().optional().describe("The label of the selected marker. Bind it with { \"@path\": \"/x\" } to read the choice of the user"),
|
|
4184
4163
|
height: z.number().optional().describe("Pixels. Default 240"),
|
|
@@ -4506,8 +4485,8 @@ const tableColumn = z.union([
|
|
|
4506
4485
|
]);
|
|
4507
4486
|
const tableSchema = z.object({
|
|
4508
4487
|
caption: z.string().optional().describe("A short name of the table for screen readers. It is not shown"),
|
|
4509
|
-
columns: z.array(tableColumn).optional().describe("
|
|
4510
|
-
rows: z.array(z.array(z.unknown())).optional().describe("A list of row lists
|
|
4488
|
+
columns: z.array(tableColumn).optional().describe("Default []"),
|
|
4489
|
+
rows: z.array(z.array(z.unknown())).optional().describe("A list of row lists. A cell is a string, a number, or { \"componentId\": \"<id>\" } to show a component. Default []"),
|
|
4511
4490
|
columnSizing: z.enum(["auto", "equal"]).optional().describe("Default \"auto\""),
|
|
4512
4491
|
dividers: z.boolean().optional().describe("Default true"),
|
|
4513
4492
|
stickyHeader: z.boolean().optional().describe("Default false"),
|
|
@@ -4539,7 +4518,7 @@ const listItemValue = z.union([z.string(), z.object({
|
|
|
4539
4518
|
value: z.union([z.string(), z.number()]).optional().describe("Without an action: shown on the right of the label, for a key and value fact. With an action: the payload of the pick, not shown")
|
|
4540
4519
|
})]);
|
|
4541
4520
|
const listSchema = z.object({
|
|
4542
|
-
items: z.array(listItemValue).optional()
|
|
4521
|
+
items: z.array(listItemValue).optional(),
|
|
4543
4522
|
direction: z.enum(["vertical", "horizontal"]).optional().describe("Default \"vertical\". \"horizontal\" scrolls sideways"),
|
|
4544
4523
|
align: z.enum([
|
|
4545
4524
|
"start",
|
|
@@ -4993,7 +4972,7 @@ function ListItem(props) {
|
|
|
4993
4972
|
const dataComponents = {
|
|
4994
4973
|
Table: {
|
|
4995
4974
|
component: Table,
|
|
4996
|
-
description: "A data table
|
|
4975
|
+
description: "A data table, in a plain Column, not a Card. Give \"columns\" and \"rows\", or \"children\": TableSection or TableRow ids, or a template { \"componentId\", \"path\" } repeating a TableRow per item. A component in a cell or header (Badge, Button, Icon, Text): { \"componentId\": \"<id>\" }, with the id in \"cellComponents\".",
|
|
4997
4976
|
props: tableSchema,
|
|
4998
4977
|
slots: {
|
|
4999
4978
|
children: "multiple",
|
|
@@ -5023,7 +5002,7 @@ const dataComponents = {
|
|
|
5023
5002
|
},
|
|
5024
5003
|
List: {
|
|
5025
5004
|
component: List,
|
|
5026
|
-
description: "A list in a Card or next to another component
|
|
5005
|
+
description: "A list in a Card or next to another component; a plain list of text is markdown. Give \"items\": an item with a value and no action is a key-value row (Price: $1,599). Or give \"children\": ListItem ids or a template. With \"action\" the user picks an item; the event context gets its index, label and value.",
|
|
5027
5006
|
props: listSchema,
|
|
5028
5007
|
events: { action: {
|
|
5029
5008
|
description: "Runs when the user picks an item. The args are the index, label and value of the item.",
|
|
@@ -5048,7 +5027,7 @@ const dataComponents = {
|
|
|
5048
5027
|
},
|
|
5049
5028
|
Map: {
|
|
5050
5029
|
component: MapView,
|
|
5051
|
-
description: "A map with markers
|
|
5030
|
+
description: "A map with markers; with \"route\" a line connects them in order. Bind \"selected\" to get the label of the marker the user picks. Without maps it shows a list of the places.",
|
|
5052
5031
|
props: mapSchema,
|
|
5053
5032
|
writable: ["selected"]
|
|
5054
5033
|
}
|
|
@@ -5604,7 +5583,7 @@ const feedbackComponents = {
|
|
|
5604
5583
|
},
|
|
5605
5584
|
Popover: {
|
|
5606
5585
|
component: Popover,
|
|
5607
|
-
description: "A small overlay
|
|
5586
|
+
description: "A small overlay: exactly two children, one PopoverTrigger then one PopoverContent. A click on the trigger toggles it; Escape or a click outside closes it.",
|
|
5608
5587
|
props: popoverSchema,
|
|
5609
5588
|
slots: CHILDREN_SLOT,
|
|
5610
5589
|
writable: ["open"]
|
|
@@ -5738,7 +5717,7 @@ const optionList = z.array(z.union([z.string(), z.object({
|
|
|
5738
5717
|
value: z.string(),
|
|
5739
5718
|
label: z.string().optional(),
|
|
5740
5719
|
description: z.string().optional()
|
|
5741
|
-
})])).optional()
|
|
5720
|
+
})])).optional();
|
|
5742
5721
|
const SIZES = [
|
|
5743
5722
|
"sm",
|
|
5744
5723
|
"md",
|
|
@@ -7190,7 +7169,7 @@ function Slider(props) {
|
|
|
7190
7169
|
const inputComponents = {
|
|
7191
7170
|
Button: {
|
|
7192
7171
|
component: Button,
|
|
7193
|
-
description: "
|
|
7172
|
+
description: "Sends its onClick event; with href it opens the URL, with copy it copies the text. Variant \"primary\" for the one main Button in a Row. submit true submits the Form around it. Its children render instead of the label. With checks it is disabled while a check fails.",
|
|
7194
7173
|
props: buttonSchema,
|
|
7195
7174
|
events: { onClick: {
|
|
7196
7175
|
description: "Sent when the user clicks the button.",
|
|
@@ -7216,7 +7195,7 @@ const inputComponents = {
|
|
|
7216
7195
|
},
|
|
7217
7196
|
Form: {
|
|
7218
7197
|
component: Form,
|
|
7219
|
-
description: "A layout container that is a form. It sends
|
|
7198
|
+
description: "A layout container that is a form. It sends onSubmit when the user submits (a Button with submit true, or Enter in a field). Put its field values in the event context with { \"@path\": \"/x\" }.",
|
|
7220
7199
|
props: formSchema,
|
|
7221
7200
|
events: { onSubmit: {
|
|
7222
7201
|
description: "Sent when the user submits the form.",
|
|
@@ -7273,13 +7252,13 @@ const inputComponents = {
|
|
|
7273
7252
|
},
|
|
7274
7253
|
ChoicePicker: {
|
|
7275
7254
|
component: ChoicePicker,
|
|
7276
|
-
description: "
|
|
7255
|
+
description: "Options as checkboxes or chips: pick one, or several with variant \"multipleSelection\". Its value is the list of chosen values. Give it a label.",
|
|
7277
7256
|
props: choicePickerSchema,
|
|
7278
7257
|
writable: VALUE_WRITABLE
|
|
7279
7258
|
},
|
|
7280
7259
|
DateTimeInput: {
|
|
7281
7260
|
component: DateTimeInput,
|
|
7282
|
-
description: "A date picker,
|
|
7261
|
+
description: "A date picker, a time picker with enableTime, or both. timeStep (minutes) offers fixed times, e.g. 30 for a booking. The value is ISO 8601. Give it a label.",
|
|
7283
7262
|
props: dateTimeInputSchema,
|
|
7284
7263
|
writable: VALUE_WRITABLE
|
|
7285
7264
|
}
|
|
@@ -7781,12 +7760,12 @@ function Tooltip({ trigger, content }) {
|
|
|
7781
7760
|
const textComponents = {
|
|
7782
7761
|
Title: {
|
|
7783
7762
|
component: Title,
|
|
7784
|
-
description: "A heading
|
|
7763
|
+
description: "A heading in a Card or next to another component; a heading alone is markdown. Size \"2xl\" at most once per surface, \"lg\" for sections. \"sm\" is an h4, \"md\"/\"lg\" an h3 (default \"md\"), \"xl\" and up an h2. Bold unless strong is false.",
|
|
7785
7764
|
props: titleSchema
|
|
7786
7765
|
},
|
|
7787
7766
|
Text: {
|
|
7788
7767
|
component: Text,
|
|
7789
|
-
description: "Body text
|
|
7768
|
+
description: "Body text in a Card or next to another component; a paragraph alone is markdown outside the fence. Color \"default\" or \"secondary\". `text` takes inline markdown (**bold**, *italic*, ~~strike~~, ++underline++, `code`, [link](url)). `children` ids render inline after it, e.g. a Badge.",
|
|
7790
7769
|
props: textSchema,
|
|
7791
7770
|
slots: CHILDREN_SLOT
|
|
7792
7771
|
},
|
|
@@ -7857,7 +7836,7 @@ const textComponents = {
|
|
|
7857
7836
|
},
|
|
7858
7837
|
Tooltip: {
|
|
7859
7838
|
component: Tooltip,
|
|
7860
|
-
description: "Shows `content` when the user points at
|
|
7839
|
+
description: "Shows `content` when the user points at or focuses `trigger`. `trigger`: one child id, a Text, Icon or Badge (not a Button or Link). `content`: one child id of short text, no links or buttons.",
|
|
7861
7840
|
slots: {
|
|
7862
7841
|
trigger: "single",
|
|
7863
7842
|
content: "single"
|