@langchain/macaw-components 1.7.12 → 1.7.13
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/_chunks/{LoadingIndicator-Itl4c0WV.js → LoadingIndicator-Cq9XwElQ.js} +10 -10
- package/dist/_chunks/LoadingIndicator-Cq9XwElQ.js.map +1 -0
- package/dist/catalog.json +760 -760
- package/dist/components/ChatState/ChatState.js +1 -1
- package/dist/components/ChatToolCall/ChatToolCallReasoning.js +1 -1
- package/dist/components/ThinkingState/LoadingIndicator.js +1 -1
- package/dist/components/ThinkingState/ThinkingState.js +1 -1
- package/dist/components/ThinkingState/index.js +1 -1
- package/dist/components.css +1 -1
- package/dist/docs/overviewEntries.js +1 -1
- package/package.json +2 -2
- package/dist/_chunks/LoadingIndicator-Itl4c0WV.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn } from "../../utils/cn.js";
|
|
2
2
|
import { VISUAL_ELEMENT_SIZES } from "../../utils/componentSizes.js";
|
|
3
3
|
import { Text } from "../Text/Text.js";
|
|
4
|
-
import { t as LoadingIndicator } from "../../_chunks/LoadingIndicator-
|
|
4
|
+
import { t as LoadingIndicator } from "../../_chunks/LoadingIndicator-Cq9XwElQ.js";
|
|
5
5
|
import { ChatStateTimer } from "./ChatStateTimer.js";
|
|
6
6
|
import { useId } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../utils/cn.js";
|
|
2
2
|
import { Text } from "../Text/Text.js";
|
|
3
|
-
import { n as ThinkingState_module_default } from "../../_chunks/LoadingIndicator-
|
|
3
|
+
import { n as ThinkingState_module_default } from "../../_chunks/LoadingIndicator-Cq9XwElQ.js";
|
|
4
4
|
import { ChatToolCallAccordion } from "./ChatToolCallAccordion.js";
|
|
5
5
|
import { useReportToGroup } from "./ChatToolCallGroupContext.js";
|
|
6
6
|
import { ChatToolCallIcon } from "./ChatToolCallIcon.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as LoadingIndicator } from "../../_chunks/LoadingIndicator-
|
|
1
|
+
import { t as LoadingIndicator } from "../../_chunks/LoadingIndicator-Cq9XwElQ.js";
|
|
2
2
|
export { LoadingIndicator };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../utils/cn.js";
|
|
2
2
|
import { Text } from "../Text/Text.js";
|
|
3
|
-
import { n as ThinkingState_module_default, t as LoadingIndicator } from "../../_chunks/LoadingIndicator-
|
|
3
|
+
import { n as ThinkingState_module_default, t as LoadingIndicator } from "../../_chunks/LoadingIndicator-Cq9XwElQ.js";
|
|
4
4
|
import { ThinkingStateTimer } from "./ThinkingStateTimer.js";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/dist/components.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
2
|
._editor_1jx45_3 p.is-editor-empty:first-child:before{pointer-events:none;float:left;height:0;color:var(--text-placeholder);content:attr(data-placeholder)}._editor_1jx45_3 p{margin:0}._editor_1jx45_3>*+*{margin-top:.5rem}._editor_1jx45_3 h1,._editor_1jx45_3 h2,._editor_1jx45_3 h3,._editor_1jx45_3 h4,._editor_1jx45_3 h5,._editor_1jx45_3 h6{font-size:1rem;line-height:var(--tw-leading,1.5rem);--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600)}._editor_1jx45_3 ul{padding-left:1.5rem;list-style-type:disc;list-style-position:outside}._editor_1jx45_3 ol{padding-left:1.5rem;list-style-type:decimal;list-style-position:outside}._editor_1jx45_3 a{color:var(--text-link);text-underline-offset:2px;text-decoration-line:underline}._editor_1jx45_3 blockquote{border-left-style:var(--tw-border-style);border-left-width:2px;border-color:var(--border-default);color:var(--text-secondary);padding-left:.75rem}._editor_1jx45_3 :not(pre)>code{border-radius:var(--radius-sm);background-color:var(--bg-surface-level-2);padding-inline:.25rem;font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}._editor_1jx45_3 pre code{background-color:#0000;padding:0}._editor_1jx45_3 hr{border-color:var(--border-default)}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}
|
|
3
3
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
4
|
-
.
|
|
4
|
+
._grid_17phj_4{grid-template:repeat(3,minmax(0,1fr))/repeat(3,minmax(0,1fr));gap:10%;display:inline-grid}@supports (width:round(1px, 1px)){._grid_17phj_4{--pixel-gap:round(10%, 1px);--pixel-size:round(down, calc((100% - 2 * var(--pixel-gap)) / 3), 1px);grid-template:repeat(3, var(--pixel-size)) / repeat(3, var(--pixel-size));gap:var(--pixel-gap);place-content:center}}._pixel_17phj_21{opacity:.15;animation:_pixel-on_17phj_1 var(--loading-cycle) ease-in-out infinite;border-radius:1px}._dot_17phj_27{border-radius:var(--radius-full)}._inactive_17phj_31{opacity:.07;animation:none}._grid_17phj_4[data-animated=false] ._pixel_17phj_21{animation:none}._grid_17phj_4[data-animated=false] ._pixel_17phj_21:not(._inactive_17phj_31){opacity:.5}._shimmer_17phj_44{--macaw-shimmer-highlight:var(--text-primary);color:#0000;-webkit-background-clip:text;background-clip:text;background-image:linear-gradient(to right, var(--text-tertiary) 35%, var(--macaw-shimmer-highlight) 50%, var(--text-tertiary) 65%);background-size:200% 100%;animation:1.4s linear infinite _shimmer-text_17phj_1}._slow_17phj_57{animation-duration:2.8s}._brandShimmer_17phj_61{--macaw-shimmer-highlight:var(--text-brand-primary)}@keyframes _pixel-on_17phj_1{0%,to{opacity:.15}18%,42%{opacity:1}62%{opacity:.15}}@keyframes _shimmer-text_17phj_1{0%{background-position:150%}to{background-position:-50%}}@media (prefers-reduced-motion:reduce){._pixel_17phj_21,._shimmer_17phj_44{animation:none}._pixel_17phj_21:not(._inactive_17phj_31){opacity:.5}._shimmer_17phj_44{color:var(--text-secondary);background:0 0}}@media (forced-colors:active){._shimmer_17phj_44{color:canvastext;background:0 0}._pixel_17phj_21{background:canvastext}}
|
|
5
5
|
/*$vite$:1*/
|
|
@@ -19,7 +19,7 @@ import { ChatConversationList } from "../components/ChatConversationList/ChatCon
|
|
|
19
19
|
import { ChatConversationListGroup } from "../components/ChatConversationList/ChatConversationListGroup.js";
|
|
20
20
|
import { ChatConversationListItem } from "../components/ChatConversationList/ChatConversationListItem.js";
|
|
21
21
|
import "../components/ChatConversationList/index.js";
|
|
22
|
-
import { t as LoadingIndicator } from "../_chunks/LoadingIndicator-
|
|
22
|
+
import { t as LoadingIndicator } from "../_chunks/LoadingIndicator-Cq9XwElQ.js";
|
|
23
23
|
import { ChatMessage } from "../components/ChatMessage/ChatMessage.js";
|
|
24
24
|
import { RadioButton } from "../components/RadioButton/RadioButton.js";
|
|
25
25
|
import { RadioGroup } from "../components/RadioGroup/RadioGroup.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/macaw-components",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.13",
|
|
4
4
|
"description": "React components and usage guidance for the Macaw Design System.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -657,7 +657,7 @@
|
|
|
657
657
|
"@fontsource/fira-code": "^5.2.7",
|
|
658
658
|
"@fontsource/inter": "^5.2.8",
|
|
659
659
|
"@headlessui/react": "^2.2.10",
|
|
660
|
-
"@langchain/macaw-tokens": "1.7.
|
|
660
|
+
"@langchain/macaw-tokens": "1.7.13",
|
|
661
661
|
"@lezer/common": "^1.2.1",
|
|
662
662
|
"@lezer/highlight": "^1.2.0",
|
|
663
663
|
"@lezer/yaml": "^1.0.4",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingIndicator-Itl4c0WV.js","names":[],"sources":["../../src/components/ThinkingState/ThinkingState.module.css","../../src/components/ThinkingState/LoadingIndicator.tsx"],"sourcesContent":["@reference \"../../styles/tailwind.css\";\n\n/* Adapted from TurboKach/ai-native-react-components (MIT). See NOTICE. */\n.grid {\n display: inline-grid;\n grid-template: repeat(3, minmax(0, 1fr)) / repeat(3, minmax(0, 1fr));\n gap: 10%;\n}\n\n.pixel {\n border-radius: 1px;\n opacity: 0.15;\n animation: pixel-on var(--loading-cycle) ease-in-out infinite;\n}\n\n.dot {\n @apply rounded-full;\n}\n\n.inactive {\n opacity: 0.07;\n animation: none;\n}\n\n.grid[data-animated='false'] .pixel {\n animation: none;\n}\n\n.grid[data-animated='false'] .pixel:not(.inactive) {\n opacity: 0.5;\n}\n\n.shimmer {\n --macaw-shimmer-highlight: var(--text-primary);\n @apply bg-clip-text text-transparent;\n background-image: linear-gradient(\n to right,\n var(--text-tertiary) 35%,\n var(--macaw-shimmer-highlight) 50%,\n var(--text-tertiary) 65%\n );\n background-size: 200% 100%;\n animation: shimmer-text 1.4s linear infinite;\n}\n\n.slow {\n animation-duration: 2.8s;\n}\n\n.brandShimmer {\n --macaw-shimmer-highlight: var(--text-brand-primary);\n}\n\n@keyframes pixel-on {\n 0%,\n 100% {\n opacity: 0.15;\n }\n 18%,\n 42% {\n opacity: 1;\n }\n 62% {\n opacity: 0.15;\n }\n}\n\n@keyframes shimmer-text {\n from {\n background-position: 150% 50%;\n }\n to {\n background-position: -50% 50%;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .pixel,\n .shimmer {\n animation: none;\n }\n\n .pixel:not(.inactive) {\n opacity: 0.5;\n }\n .shimmer {\n @apply text-secondary;\n background: none;\n }\n}\n\n@media (forced-colors: active) {\n .shimmer {\n background: none;\n color: CanvasText;\n }\n .pixel {\n background: CanvasText;\n }\n}\n","// Adapted from TurboKach/ai-native-react-components (MIT). See NOTICE.\nimport { forwardRef } from 'react';\nimport type { ComponentPropsWithRef, CSSProperties } from 'react';\n\nimport { cn } from '../../utils/cn';\nimport { VISUAL_ELEMENT_SIZES } from '../../utils/componentSizes';\n\nimport styles from './ThinkingState.module.css';\n\ntype ThinkingStateVariant = 'drive' | 'dots' | 'orbit';\n\nconst SIZES = {\n xs: VISUAL_ELEMENT_SIZES.xxs.className,\n sm: VISUAL_ELEMENT_SIZES.xs.className,\n md: VISUAL_ELEMENT_SIZES.sm.className,\n lg: VISUAL_ELEMENT_SIZES.md.className,\n};\n\ninterface LoadingIndicatorProps extends Omit<\n ComponentPropsWithRef<'span'>,\n 'children'\n> {\n variant?: ThinkingStateVariant;\n /** Indicator outer size: xs=12px, sm=16px, md=20px, lg=24px. */\n size?: keyof typeof SIZES;\n tone?: 'neutral' | 'brand';\n /** Reduced-motion preferences always take precedence. */\n animated?: boolean;\n speed?: 'normal' | 'slow';\n}\n\nconst CHEVRON_DELAYS = [90, 180, 270, 0, 90, 180, 90, 180, 270];\nconst PATTERNS: Record<\n ThinkingStateVariant,\n { delays: (number | null)[]; duration: string }\n> = {\n drive: { delays: CHEVRON_DELAYS, duration: '650ms' },\n dots: { delays: CHEVRON_DELAYS, duration: '650ms' },\n orbit: {\n delays: [0, 110, 220, 770, null, 330, 660, 550, 440],\n duration: '950ms',\n },\n};\n\ninterface IndicatorStyle extends CSSProperties {\n '--loading-cycle': string;\n}\n\n/** Decorative indicator. Announce loading on the surrounding control or region. */\nconst LoadingIndicator = forwardRef<HTMLSpanElement, LoadingIndicatorProps>(\n function LoadingIndicator(\n {\n variant = 'drive',\n size = 'sm',\n tone = 'neutral',\n animated = true,\n speed = 'normal',\n className,\n style,\n ...props\n },\n ref\n ) {\n const pattern = PATTERNS[variant];\n const indicatorStyle: IndicatorStyle = {\n '--loading-cycle':\n speed === 'slow' ? `calc(${pattern.duration} * 2)` : pattern.duration,\n ...style,\n };\n\n return (\n <span\n {...props}\n ref={ref}\n aria-hidden=\"true\"\n data-animated={animated}\n className={cn(\n styles.grid,\n SIZES[size],\n 'shrink-0',\n tone === 'brand' ? 'text-icon-brand' : 'text-icon-primary',\n className\n )}\n style={indicatorStyle}\n >\n {pattern.delays.map((delay, index) => (\n <span\n key={index}\n className={cn(\n styles.pixel,\n 'bg-current',\n variant === 'dots' && styles.dot,\n delay === null && styles.inactive\n )}\n style={{\n animationDelay: `${(delay ?? 0) * (speed === 'slow' ? 2 : 1)}ms`,\n }}\n />\n ))}\n </span>\n );\n }\n);\n\nexport { LoadingIndicator };\nexport type { LoadingIndicatorProps, ThinkingStateVariant };\n"],"mappings":";;;;;;;;;;;;;;;;;ACWA,IAAM,QAAQ;CACZ,IAAI,qBAAqB,IAAI;CAC7B,IAAI,qBAAqB,GAAG;CAC5B,IAAI,qBAAqB,GAAG;CAC5B,IAAI,qBAAqB,GAAG;AAC9B;AAeA,IAAM,iBAAiB;CAAC;CAAI;CAAK;CAAK;CAAG;CAAI;CAAK;CAAI;CAAK;AAAG;AAC9D,IAAM,WAGF;CACF,OAAO;EAAE,QAAQ;EAAgB,UAAU;CAAQ;CACnD,MAAM;EAAE,QAAQ;EAAgB,UAAU;CAAQ;CAClD,OAAO;EACL,QAAQ;GAAC;GAAG;GAAK;GAAK;GAAK;GAAM;GAAK;GAAK;GAAK;EAAG;EACnD,UAAU;CACZ;AACF;;AAOA,IAAM,mBAAmB,WACvB,SAAS,iBACP,EACE,UAAU,SACV,OAAO,MACP,OAAO,WACP,WAAW,MACX,QAAQ,UACR,WACA,OACA,GAAG,SAEL,KACA;CACA,MAAM,UAAU,SAAS;CACzB,MAAM,iBAAiC;EACrC,mBACE,UAAU,SAAS,QAAQ,QAAQ,SAAS,SAAS,QAAQ;EAC/D,GAAG;CACL;CAEA,OACE,oBAAC,QAAD;EACE,GAAI;EACC;EACL,eAAY;EACZ,iBAAe;EACf,WAAW,GACT,6BAAO,MACP,MAAM,OACN,YACA,SAAS,UAAU,oBAAoB,qBACvC,SACF;EACA,OAAO;EAEN,UAAA,QAAQ,OAAO,KAAK,OAAO,UAC1B,oBAAC,QAAD;GAEE,WAAW,GACT,6BAAO,OACP,cACA,YAAY,UAAU,6BAAO,KAC7B,UAAU,QAAQ,6BAAO,QAC3B;GACA,OAAO,EACL,gBAAgB,IAAI,SAAS,MAAM,UAAU,SAAS,IAAI,GAAG,IAC/D;EACD,GAVM,KAUN,CACF;CACG,CAAA;AAEV,CACF"}
|