@mastra/playground-ui 70.0.0 → 70.0.1-alpha.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.
Files changed (56) hide show
  1. package/dist/{Section-Dk_Vcsi7.cjs → Section-BdO9TFjY.cjs} +2 -2
  2. package/dist/{Section-Dk_Vcsi7.cjs.map → Section-BdO9TFjY.cjs.map} +1 -1
  3. package/dist/{Section-D6JJ926q.js → Section-DV2aLnkc.js} +2 -2
  4. package/dist/{Section-D6JJ926q.js.map → Section-DV2aLnkc.js.map} +1 -1
  5. package/dist/components/Section.cjs.js +1 -1
  6. package/dist/components/Section.es.js +1 -1
  7. package/dist/components/SideDialog.cjs.js +1 -1
  8. package/dist/components/SideDialog.es.js +1 -1
  9. package/dist/domains/datasets/components/add-dataset-item-dialog/add-dataset-item-dialog.cjs.js +1 -1
  10. package/dist/domains/datasets/components/add-dataset-item-dialog/add-dataset-item-dialog.es.js +1 -1
  11. package/dist/domains/datasets/components/add-dataset-item-dialog/collapsible-settings-row.cjs.js +1 -1
  12. package/dist/domains/datasets/components/add-dataset-item-dialog/collapsible-settings-row.es.js +1 -1
  13. package/dist/domains/knowledge/components/KnowledgePageDetail.cjs.js +99 -58
  14. package/dist/domains/knowledge/components/KnowledgePageDetail.cjs.js.map +1 -1
  15. package/dist/domains/knowledge/components/KnowledgePageDetail.es.js +99 -58
  16. package/dist/domains/knowledge/components/KnowledgePageDetail.es.js.map +1 -1
  17. package/dist/domains/knowledge/components/KnowledgePageExplorer.cjs.js +21 -0
  18. package/dist/domains/knowledge/components/KnowledgePageExplorer.cjs.js.map +1 -1
  19. package/dist/domains/knowledge/components/KnowledgePageExplorer.es.js +21 -0
  20. package/dist/domains/knowledge/components/KnowledgePageExplorer.es.js.map +1 -1
  21. package/dist/domains/knowledge/components/KnowledgePageTree.cjs.js +1 -1
  22. package/dist/domains/knowledge/components/KnowledgePageTree.cjs.js.map +1 -1
  23. package/dist/domains/knowledge/components/KnowledgePageTree.es.js +2 -2
  24. package/dist/domains/knowledge/components/KnowledgePageTree.es.js.map +1 -1
  25. package/dist/domains/knowledge/lib/pageAddress.cjs.js +21 -6
  26. package/dist/domains/knowledge/lib/pageAddress.cjs.js.map +1 -1
  27. package/dist/domains/knowledge/lib/pageAddress.es.js +21 -6
  28. package/dist/domains/knowledge/lib/pageAddress.es.js.map +1 -1
  29. package/dist/domains/mcps/components/mcp-app-viewer.cjs.js +1 -1
  30. package/dist/domains/mcps/components/mcp-app-viewer.es.js +1 -1
  31. package/dist/domains/mcps/hooks/use-mcp-app-tool-call.cjs.js +1 -1
  32. package/dist/domains/mcps/hooks/use-mcp-app-tool-call.es.js +1 -1
  33. package/dist/new/settings.cjs.js +2 -2
  34. package/dist/new/settings.es.js +2 -2
  35. package/dist/{settings-DIrzLcgE.js → settings-B7RMGKgf.js} +31 -15
  36. package/dist/settings-B7RMGKgf.js.map +1 -0
  37. package/dist/{settings-5PdsNlhV.cjs → settings-CYKWxfrJ.cjs} +31 -15
  38. package/dist/settings-CYKWxfrJ.cjs.map +1 -0
  39. package/dist/{settings-row-C2HTuwjN.js → settings-row-BnlFZSQL.js} +27 -5
  40. package/dist/settings-row-BnlFZSQL.js.map +1 -0
  41. package/dist/{settings-row-Dfi4pLnl.cjs → settings-row-Da1HHyBg.cjs} +27 -5
  42. package/dist/settings-row-Da1HHyBg.cjs.map +1 -0
  43. package/dist/src/domains/knowledge/components/KnowledgePageDetail.d.ts +11 -1
  44. package/dist/src/domains/knowledge/lib/pageAddress.d.ts +4 -2
  45. package/dist/src/ds/new/settings/settings-list.d.ts +16 -2
  46. package/dist/src/ds/new/settings/settings-row.d.ts +22 -2
  47. package/dist/style.css +32 -0
  48. package/dist/{types-DT1pgDom.cjs → types-CVS7iNs8.cjs} +2 -2
  49. package/dist/{types-DT1pgDom.cjs.map → types-CVS7iNs8.cjs.map} +1 -1
  50. package/dist/{types-Dl74jixe.js → types-D64dArGX.js} +2 -2
  51. package/dist/{types-Dl74jixe.js.map → types-D64dArGX.js.map} +1 -1
  52. package/package.json +7 -7
  53. package/dist/settings-5PdsNlhV.cjs.map +0 -1
  54. package/dist/settings-DIrzLcgE.js.map +0 -1
  55. package/dist/settings-row-C2HTuwjN.js.map +0 -1
  56. package/dist/settings-row-Dfi4pLnl.cjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  const require_utils = require("./utils-uDc1ofX1.cjs");
2
2
  const require_Txt = require("./Txt-_00wWxTd.cjs");
3
3
  const require_components_Field = require("./components/Field.cjs.js");
4
- const require_settings_row = require("./settings-row-Dfi4pLnl.cjs");
4
+ const require_settings_row = require("./settings-row-Da1HHyBg.cjs");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
6
  // src/ds/components/Section/section-content.tsx
7
7
  function SectionContent({ className, ...props }) {
@@ -160,4 +160,4 @@ Object.defineProperty(exports, "SubSectionRoot", {
160
160
  }
161
161
  });
162
162
 
163
- //# sourceMappingURL=Section-Dk_Vcsi7.cjs.map
163
+ //# sourceMappingURL=Section-BdO9TFjY.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Section-Dk_Vcsi7.cjs","names":["cn","Txt","cn","cn","cn","cn","HeadingTag","cn","cn","Field","cn","FieldLabel","FieldDescription","FieldError","SettingsRowControl"],"sources":["../src/ds/components/Section/section-content.tsx","../src/ds/components/Section/section-description.tsx","../src/ds/components/Section/section-divider.tsx","../src/ds/components/Section/section-header.tsx","../src/ds/components/Section/section-header-text.tsx","../src/ds/components/Section/section-heading.tsx","../src/ds/components/Section/section-root.tsx","../src/ds/components/Section/section-row.tsx","../src/ds/components/Section/section.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionContentProps = ComponentProps<'div'>;\n\nexport function SectionContent({ className, ...props }: SectionContentProps) {\n return (\n <div\n data-slot=\"section-content\"\n className={cn(\n 'group-data-[variant=factory]/section:overflow-hidden group-data-[variant=factory]/section:rounded-xl',\n 'group-data-[variant=factory]/section:bg-card group-data-[variant=factory]/section:shadow-raised',\n className,\n )}\n {...props}\n />\n );\n}\n","import type { ComponentProps } from 'react';\nimport { Txt } from '@/ds/components/Txt';\nimport { cn } from '@/lib/utils';\n\nexport type SectionDescriptionProps = ComponentProps<'p'>;\n\nexport function SectionDescription({ className, ...props }: SectionDescriptionProps) {\n return (\n <Txt\n variant=\"caption\"\n tone=\"muted\"\n data-slot=\"section-description\"\n className={cn('max-w-[62ch] text-pretty', className)}\n {...props}\n />\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionDividerProps = ComponentProps<'div'>;\n\nexport function SectionDivider({ className, ...props }: SectionDividerProps) {\n return <div role=\"separator\" aria-orientation=\"horizontal\" className={cn('h-px bg-border', className)} {...props} />;\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeaderProps = ComponentProps<'header'> & {\n inset?: boolean;\n};\n\nexport function SectionHeader({ children, className, inset = false, ...props }: SectionHeaderProps) {\n return (\n <header\n data-slot=\"section-header\"\n className={cn(\n 'group-data-[variant=default]/section:grid group-data-[variant=default]/section:grid-cols-[1fr_auto] group-data-[variant=default]/section:items-center',\n 'group-data-[variant=flat]/section:flex group-data-[variant=flat]/section:min-w-0 group-data-[variant=flat]/section:flex-col group-data-[variant=flat]/section:gap-3 group-data-[variant=flat]/section:pb-3 sm:group-data-[variant=flat]/section:flex-row sm:group-data-[variant=flat]/section:items-start sm:group-data-[variant=flat]/section:justify-between sm:group-data-[variant=flat]/section:gap-4',\n 'group-data-[variant=factory]/section:flex group-data-[variant=factory]/section:min-w-0 group-data-[variant=factory]/section:flex-col group-data-[variant=factory]/section:gap-2 sm:group-data-[variant=factory]/section:flex-row sm:group-data-[variant=factory]/section:items-start sm:group-data-[variant=factory]/section:justify-between sm:group-data-[variant=factory]/section:gap-4',\n inset && 'px-4',\n className,\n )}\n {...props}\n >\n {children}\n </header>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeaderTextProps = ComponentProps<'div'>;\n\nexport function SectionHeaderText({ className, ...props }: SectionHeaderTextProps) {\n return <div data-slot=\"section-header-text\" className={cn('flex min-w-0 flex-col gap-1.5', className)} {...props} />;\n}\n","import type { ComponentProps, ElementType } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeadingProps = ComponentProps<'h2'> & {\n headingLevel?: 'h2' | 'h3' | 'h4';\n};\n\nexport function SectionHeading({ headingLevel = 'h2', children, className, ...props }: SectionHeadingProps) {\n const HeadingTag: ElementType = headingLevel;\n\n return (\n <HeadingTag\n data-slot=\"section-heading\"\n className={cn(\n 'group-data-[variant=default]/section:flex group-data-[variant=default]/section:items-center group-data-[variant=default]/section:gap-2 group-data-[variant=default]/section:text-subheading group-data-[variant=default]/section:text-muted-foreground group-data-[variant=default]/section:[&>svg]:size-[1.2em] group-data-[variant=default]/section:[&>svg]:opacity-50',\n 'group-data-[variant=flat]/section:text-subheading group-data-[variant=flat]/section:text-balance group-data-[variant=flat]/section:text-foreground',\n 'group-data-[variant=factory]/section:text-subheading group-data-[variant=factory]/section:text-balance group-data-[variant=factory]/section:text-foreground',\n className,\n )}\n {...props}\n >\n {children}\n </HeadingTag>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionVariant = 'default' | 'flat' | 'factory';\n\nexport type SectionRootProps = ComponentProps<'section'> & {\n variant?: SectionVariant;\n};\n\nexport function SectionRoot({ variant = 'default', children, className, ...props }: SectionRootProps) {\n return (\n <section\n data-slot=\"section\"\n data-variant={variant}\n className={cn(\n 'group/section',\n variant === 'default' && 'grid gap-3',\n variant === 'flat' && 'w-full min-w-0',\n variant === 'factory' && 'flex w-full min-w-0 flex-col gap-2',\n className,\n )}\n {...props}\n >\n {children}\n </section>\n );\n}\n\nexport function SubSectionRoot({ children, className, ...props }: ComponentProps<'section'>) {\n return (\n <section className={cn('grid gap-2', className)} {...props}>\n {children}\n </section>\n );\n}\n","import type { ReactNode } from 'react';\nimport { Field, FieldDescription, FieldError, FieldLabel } from '@/ds/components/Field';\nimport type { FieldProps } from '@/ds/components/Field';\nimport { SettingsRowControl } from '@/ds/new/settings/settings-row';\nimport { cn } from '@/lib/utils';\n\nexport type SectionRowProps = Omit<FieldProps, 'children' | 'invalid' | 'orientation'> & {\n label: ReactNode;\n description?: ReactNode;\n htmlFor?: string;\n children?: ReactNode;\n required?: boolean;\n errorMsg?: ReactNode;\n};\nexport type SectionViewOnlyRowProps = SectionRowProps & { children: ReactNode };\nexport type SectionDestructiveRowProps = SectionRowProps & { children: ReactNode };\n\nfunction SectionRowBase({\n label,\n description,\n htmlFor,\n children,\n className,\n required = false,\n errorMsg,\n disabled,\n viewOnly = false,\n destructive = false,\n ...props\n}: SectionRowProps & { viewOnly?: boolean; destructive?: boolean }) {\n return (\n <Field\n orientation=\"responsive\"\n invalid={Boolean(errorMsg)}\n disabled={disabled || viewOnly}\n data-slot=\"section-row\"\n className={cn(\n 'grid min-w-0 gap-3 group-data-[variant=factory]/section:px-3 group-data-[variant=factory]/section:py-2 group-data-[variant=flat]/section:p-3 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center sm:group-data-[variant=default]/section:gap-4 sm:group-data-[variant=factory]/section:gap-4 sm:group-data-[variant=flat]/section:gap-6',\n className,\n )}\n {...props}\n >\n <div className=\"min-w-0\">\n <FieldLabel\n {...(htmlFor ? { htmlFor } : {})}\n required={required}\n className={cn(destructive && 'text-destructive-foreground')}\n >\n {label}\n </FieldLabel>\n {description != null && <FieldDescription className=\"mt-1 text-pretty\">{description}</FieldDescription>}\n <FieldError className=\"mt-1\">{errorMsg}</FieldError>\n </div>\n {children != null && (\n <div\n data-slot=\"section-control\"\n className={cn(\n 'min-w-0 sm:justify-self-end',\n viewOnly && 'flex items-center gap-2 text-body-sm text-muted-foreground',\n )}\n >\n <SettingsRowControl viewOnly={viewOnly}>{children}</SettingsRowControl>\n </div>\n )}\n </Field>\n );\n}\n\n/** @deprecated Use SettingsRow from @mastra/playground-ui/new/settings for settings pages. */\nexport function SectionRow(props: SectionRowProps) {\n return <SectionRowBase {...props} />;\n}\n\n/** @deprecated Use SettingsRow with viewOnly from @mastra/playground-ui/new/settings. */\nexport function SectionViewOnlyRow(props: SectionViewOnlyRowProps) {\n return <SectionRowBase {...props} viewOnly />;\n}\n\n/** @deprecated Use SettingsRow with tone=\"destructive\" from @mastra/playground-ui/new/settings. */\nexport function SectionDestructiveRow(props: SectionDestructiveRowProps) {\n return <SectionRowBase {...props} destructive />;\n}\n","import { SectionContent } from './section-content';\nimport { SectionDescription } from './section-description';\nimport { SectionDivider } from './section-divider';\nimport { SectionHeader } from './section-header';\nimport { SectionHeaderText } from './section-header-text';\nimport { SectionHeading } from './section-heading';\nimport { SectionRoot } from './section-root';\nimport type { SectionRootProps } from './section-root';\nimport { SectionDestructiveRow, SectionRow, SectionViewOnlyRow } from './section-row';\n\nexport { type SectionContentProps } from './section-content';\nexport { type SectionDescriptionProps } from './section-description';\nexport { type SectionDividerProps } from './section-divider';\nexport { type SectionHeaderProps } from './section-header';\nexport { type SectionHeaderTextProps } from './section-header-text';\nexport { type SectionHeadingProps } from './section-heading';\nexport { type SectionRootProps as SectionProps, type SectionVariant } from './section-root';\nexport { type SectionDestructiveRowProps, type SectionRowProps, type SectionViewOnlyRowProps } from './section-row';\n\nexport function Section(props: SectionRootProps) {\n return <SectionRoot {...props} />;\n}\n\nSection.Header = SectionHeader;\nSection.HeaderText = SectionHeaderText;\nSection.Heading = SectionHeading;\nSection.Description = SectionDescription;\nSection.Content = SectionContent;\nSection.Row = SectionRow;\nSection.ViewOnlyRow = SectionViewOnlyRow;\nSection.DestructiveRow = SectionDestructiveRow;\nSection.Divider = SectionDivider;\n"],"mappings":";;;;;;AAKA,SAAgB,eAAe,EAAE,WAAW,GAAG,SAA8B;CAC3E,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EACE,aAAU;EACV,WAAWA,cA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SAAgB,WAAW,OAAwB;CACjD,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD,EAAgB,GAAI,MAAQ,CAAA;AACrC;;AAGA,SAAgB,mBAAmB,OAAgC;CACjE,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD;EAAgB,GAAI;EAAO,UAAA;CAAU,CAAA;AAC9C;;AAGA,SAAgB,sBAAsB,OAAmC;CACvE,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD;EAAgB,GAAI;EAAO,aAAA;CAAa,CAAA;AACjD;;AC9DA,SAAgB,QAAQ,OAAyB;CAC/C,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,aAAD,EAAa,GAAI,MAAQ,CAAA;AAClC;AAEA,QAAQ,SAAS;AACjB,QAAQ,aAAa;AACrB,QAAQ,UAAU;AAClB,QAAQ,cAAc;AACtB,QAAQ,UAAU;AAClB,QAAQ,MAAM;AACd,QAAQ,cAAc;AACtB,QAAQ,iBAAiB;AACzB,QAAQ,UAAU"}
1
+ {"version":3,"file":"Section-BdO9TFjY.cjs","names":["cn","Txt","cn","cn","cn","cn","HeadingTag","cn","cn","Field","cn","FieldLabel","FieldDescription","FieldError","SettingsRowControl"],"sources":["../src/ds/components/Section/section-content.tsx","../src/ds/components/Section/section-description.tsx","../src/ds/components/Section/section-divider.tsx","../src/ds/components/Section/section-header.tsx","../src/ds/components/Section/section-header-text.tsx","../src/ds/components/Section/section-heading.tsx","../src/ds/components/Section/section-root.tsx","../src/ds/components/Section/section-row.tsx","../src/ds/components/Section/section.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionContentProps = ComponentProps<'div'>;\n\nexport function SectionContent({ className, ...props }: SectionContentProps) {\n return (\n <div\n data-slot=\"section-content\"\n className={cn(\n 'group-data-[variant=factory]/section:overflow-hidden group-data-[variant=factory]/section:rounded-xl',\n 'group-data-[variant=factory]/section:bg-card group-data-[variant=factory]/section:shadow-raised',\n className,\n )}\n {...props}\n />\n );\n}\n","import type { ComponentProps } from 'react';\nimport { Txt } from '@/ds/components/Txt';\nimport { cn } from '@/lib/utils';\n\nexport type SectionDescriptionProps = ComponentProps<'p'>;\n\nexport function SectionDescription({ className, ...props }: SectionDescriptionProps) {\n return (\n <Txt\n variant=\"caption\"\n tone=\"muted\"\n data-slot=\"section-description\"\n className={cn('max-w-[62ch] text-pretty', className)}\n {...props}\n />\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionDividerProps = ComponentProps<'div'>;\n\nexport function SectionDivider({ className, ...props }: SectionDividerProps) {\n return <div role=\"separator\" aria-orientation=\"horizontal\" className={cn('h-px bg-border', className)} {...props} />;\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeaderProps = ComponentProps<'header'> & {\n inset?: boolean;\n};\n\nexport function SectionHeader({ children, className, inset = false, ...props }: SectionHeaderProps) {\n return (\n <header\n data-slot=\"section-header\"\n className={cn(\n 'group-data-[variant=default]/section:grid group-data-[variant=default]/section:grid-cols-[1fr_auto] group-data-[variant=default]/section:items-center',\n 'group-data-[variant=flat]/section:flex group-data-[variant=flat]/section:min-w-0 group-data-[variant=flat]/section:flex-col group-data-[variant=flat]/section:gap-3 group-data-[variant=flat]/section:pb-3 sm:group-data-[variant=flat]/section:flex-row sm:group-data-[variant=flat]/section:items-start sm:group-data-[variant=flat]/section:justify-between sm:group-data-[variant=flat]/section:gap-4',\n 'group-data-[variant=factory]/section:flex group-data-[variant=factory]/section:min-w-0 group-data-[variant=factory]/section:flex-col group-data-[variant=factory]/section:gap-2 sm:group-data-[variant=factory]/section:flex-row sm:group-data-[variant=factory]/section:items-start sm:group-data-[variant=factory]/section:justify-between sm:group-data-[variant=factory]/section:gap-4',\n inset && 'px-4',\n className,\n )}\n {...props}\n >\n {children}\n </header>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeaderTextProps = ComponentProps<'div'>;\n\nexport function SectionHeaderText({ className, ...props }: SectionHeaderTextProps) {\n return <div data-slot=\"section-header-text\" className={cn('flex min-w-0 flex-col gap-1.5', className)} {...props} />;\n}\n","import type { ComponentProps, ElementType } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeadingProps = ComponentProps<'h2'> & {\n headingLevel?: 'h2' | 'h3' | 'h4';\n};\n\nexport function SectionHeading({ headingLevel = 'h2', children, className, ...props }: SectionHeadingProps) {\n const HeadingTag: ElementType = headingLevel;\n\n return (\n <HeadingTag\n data-slot=\"section-heading\"\n className={cn(\n 'group-data-[variant=default]/section:flex group-data-[variant=default]/section:items-center group-data-[variant=default]/section:gap-2 group-data-[variant=default]/section:text-subheading group-data-[variant=default]/section:text-muted-foreground group-data-[variant=default]/section:[&>svg]:size-[1.2em] group-data-[variant=default]/section:[&>svg]:opacity-50',\n 'group-data-[variant=flat]/section:text-subheading group-data-[variant=flat]/section:text-balance group-data-[variant=flat]/section:text-foreground',\n 'group-data-[variant=factory]/section:text-subheading group-data-[variant=factory]/section:text-balance group-data-[variant=factory]/section:text-foreground',\n className,\n )}\n {...props}\n >\n {children}\n </HeadingTag>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionVariant = 'default' | 'flat' | 'factory';\n\nexport type SectionRootProps = ComponentProps<'section'> & {\n variant?: SectionVariant;\n};\n\nexport function SectionRoot({ variant = 'default', children, className, ...props }: SectionRootProps) {\n return (\n <section\n data-slot=\"section\"\n data-variant={variant}\n className={cn(\n 'group/section',\n variant === 'default' && 'grid gap-3',\n variant === 'flat' && 'w-full min-w-0',\n variant === 'factory' && 'flex w-full min-w-0 flex-col gap-2',\n className,\n )}\n {...props}\n >\n {children}\n </section>\n );\n}\n\nexport function SubSectionRoot({ children, className, ...props }: ComponentProps<'section'>) {\n return (\n <section className={cn('grid gap-2', className)} {...props}>\n {children}\n </section>\n );\n}\n","import type { ReactNode } from 'react';\nimport { Field, FieldDescription, FieldError, FieldLabel } from '@/ds/components/Field';\nimport type { FieldProps } from '@/ds/components/Field';\nimport { SettingsRowControl } from '@/ds/new/settings/settings-row';\nimport { cn } from '@/lib/utils';\n\nexport type SectionRowProps = Omit<FieldProps, 'children' | 'invalid' | 'orientation'> & {\n label: ReactNode;\n description?: ReactNode;\n htmlFor?: string;\n children?: ReactNode;\n required?: boolean;\n errorMsg?: ReactNode;\n};\nexport type SectionViewOnlyRowProps = SectionRowProps & { children: ReactNode };\nexport type SectionDestructiveRowProps = SectionRowProps & { children: ReactNode };\n\nfunction SectionRowBase({\n label,\n description,\n htmlFor,\n children,\n className,\n required = false,\n errorMsg,\n disabled,\n viewOnly = false,\n destructive = false,\n ...props\n}: SectionRowProps & { viewOnly?: boolean; destructive?: boolean }) {\n return (\n <Field\n orientation=\"responsive\"\n invalid={Boolean(errorMsg)}\n disabled={disabled || viewOnly}\n data-slot=\"section-row\"\n className={cn(\n 'grid min-w-0 gap-3 group-data-[variant=factory]/section:px-3 group-data-[variant=factory]/section:py-2 group-data-[variant=flat]/section:p-3 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center sm:group-data-[variant=default]/section:gap-4 sm:group-data-[variant=factory]/section:gap-4 sm:group-data-[variant=flat]/section:gap-6',\n className,\n )}\n {...props}\n >\n <div className=\"min-w-0\">\n <FieldLabel\n {...(htmlFor ? { htmlFor } : {})}\n required={required}\n className={cn(destructive && 'text-destructive-foreground')}\n >\n {label}\n </FieldLabel>\n {description != null && <FieldDescription className=\"mt-1 text-pretty\">{description}</FieldDescription>}\n <FieldError className=\"mt-1\">{errorMsg}</FieldError>\n </div>\n {children != null && (\n <div\n data-slot=\"section-control\"\n className={cn(\n 'min-w-0 sm:justify-self-end',\n viewOnly && 'flex items-center gap-2 text-body-sm text-muted-foreground',\n )}\n >\n <SettingsRowControl viewOnly={viewOnly}>{children}</SettingsRowControl>\n </div>\n )}\n </Field>\n );\n}\n\n/** @deprecated Use SettingsRow from @mastra/playground-ui/new/settings for settings pages. */\nexport function SectionRow(props: SectionRowProps) {\n return <SectionRowBase {...props} />;\n}\n\n/** @deprecated Use SettingsRow with viewOnly from @mastra/playground-ui/new/settings. */\nexport function SectionViewOnlyRow(props: SectionViewOnlyRowProps) {\n return <SectionRowBase {...props} viewOnly />;\n}\n\n/** @deprecated Use SettingsRow with tone=\"destructive\" from @mastra/playground-ui/new/settings. */\nexport function SectionDestructiveRow(props: SectionDestructiveRowProps) {\n return <SectionRowBase {...props} destructive />;\n}\n","import { SectionContent } from './section-content';\nimport { SectionDescription } from './section-description';\nimport { SectionDivider } from './section-divider';\nimport { SectionHeader } from './section-header';\nimport { SectionHeaderText } from './section-header-text';\nimport { SectionHeading } from './section-heading';\nimport { SectionRoot } from './section-root';\nimport type { SectionRootProps } from './section-root';\nimport { SectionDestructiveRow, SectionRow, SectionViewOnlyRow } from './section-row';\n\nexport { type SectionContentProps } from './section-content';\nexport { type SectionDescriptionProps } from './section-description';\nexport { type SectionDividerProps } from './section-divider';\nexport { type SectionHeaderProps } from './section-header';\nexport { type SectionHeaderTextProps } from './section-header-text';\nexport { type SectionHeadingProps } from './section-heading';\nexport { type SectionRootProps as SectionProps, type SectionVariant } from './section-root';\nexport { type SectionDestructiveRowProps, type SectionRowProps, type SectionViewOnlyRowProps } from './section-row';\n\nexport function Section(props: SectionRootProps) {\n return <SectionRoot {...props} />;\n}\n\nSection.Header = SectionHeader;\nSection.HeaderText = SectionHeaderText;\nSection.Heading = SectionHeading;\nSection.Description = SectionDescription;\nSection.Content = SectionContent;\nSection.Row = SectionRow;\nSection.ViewOnlyRow = SectionViewOnlyRow;\nSection.DestructiveRow = SectionDestructiveRow;\nSection.Divider = SectionDivider;\n"],"mappings":";;;;;;AAKA,SAAgB,eAAe,EAAE,WAAW,GAAG,SAA8B;CAC3E,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EACE,aAAU;EACV,WAAWA,cAAAA,GACT,wGACA,mGACA,S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jD,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD,EAAgB,GAAI,MAAQ,CAAA;AACrC;;AAGA,SAAgB,mBAAmB,OAAgC;CACjE,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD;EAAgB,GAAI;EAAO,UAAA;CAAU,CAAA;AAC9C;;AAGA,SAAgB,sBAAsB,OAAmC;CACvE,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD;EAAgB,GAAI;EAAO,aAAA;CAAa,CAAA;AACjD;;AC9DA,SAAgB,QAAQ,OAAyB;CAC/C,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,aAAD,EAAa,GAAI,MAAQ,CAAA;AAClC;AAEA,QAAQ,SAAS;AACjB,QAAQ,aAAa;AACrB,QAAQ,UAAU;AAClB,QAAQ,cAAc;AACtB,QAAQ,UAAU;AAClB,QAAQ,MAAM;AACd,QAAQ,cAAc;AACtB,QAAQ,iBAAiB;AACzB,QAAQ,UAAU"}
@@ -1,7 +1,7 @@
1
1
  import { t as cn } from "./utils-DQx8TpNT.js";
2
2
  import { t as Txt } from "./Txt-5efBsb2p.js";
3
3
  import { Field, FieldDescription, FieldError, FieldLabel } from "./components/Field.es.js";
4
- import { r as SettingsRowControl } from "./settings-row-C2HTuwjN.js";
4
+ import { r as SettingsRowControl } from "./settings-row-BnlFZSQL.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  // src/ds/components/Section/section-content.tsx
7
7
  function SectionContent({ className, ...props }) {
@@ -143,4 +143,4 @@ Section.DestructiveRow = SectionDestructiveRow;
143
143
  Section.Divider = SectionDivider;
144
144
  export { SectionRoot as n, SubSectionRoot as r, Section as t };
145
145
 
146
- //# sourceMappingURL=Section-D6JJ926q.js.map
146
+ //# sourceMappingURL=Section-DV2aLnkc.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Section-D6JJ926q.js","names":["HeadingTag"],"sources":["../src/ds/components/Section/section-content.tsx","../src/ds/components/Section/section-description.tsx","../src/ds/components/Section/section-divider.tsx","../src/ds/components/Section/section-header.tsx","../src/ds/components/Section/section-header-text.tsx","../src/ds/components/Section/section-heading.tsx","../src/ds/components/Section/section-root.tsx","../src/ds/components/Section/section-row.tsx","../src/ds/components/Section/section.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionContentProps = ComponentProps<'div'>;\n\nexport function SectionContent({ className, ...props }: SectionContentProps) {\n return (\n <div\n data-slot=\"section-content\"\n className={cn(\n 'group-data-[variant=factory]/section:overflow-hidden group-data-[variant=factory]/section:rounded-xl',\n 'group-data-[variant=factory]/section:bg-card group-data-[variant=factory]/section:shadow-raised',\n className,\n )}\n {...props}\n />\n );\n}\n","import type { ComponentProps } from 'react';\nimport { Txt } from '@/ds/components/Txt';\nimport { cn } from '@/lib/utils';\n\nexport type SectionDescriptionProps = ComponentProps<'p'>;\n\nexport function SectionDescription({ className, ...props }: SectionDescriptionProps) {\n return (\n <Txt\n variant=\"caption\"\n tone=\"muted\"\n data-slot=\"section-description\"\n className={cn('max-w-[62ch] text-pretty', className)}\n {...props}\n />\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionDividerProps = ComponentProps<'div'>;\n\nexport function SectionDivider({ className, ...props }: SectionDividerProps) {\n return <div role=\"separator\" aria-orientation=\"horizontal\" className={cn('h-px bg-border', className)} {...props} />;\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeaderProps = ComponentProps<'header'> & {\n inset?: boolean;\n};\n\nexport function SectionHeader({ children, className, inset = false, ...props }: SectionHeaderProps) {\n return (\n <header\n data-slot=\"section-header\"\n className={cn(\n 'group-data-[variant=default]/section:grid group-data-[variant=default]/section:grid-cols-[1fr_auto] group-data-[variant=default]/section:items-center',\n 'group-data-[variant=flat]/section:flex group-data-[variant=flat]/section:min-w-0 group-data-[variant=flat]/section:flex-col group-data-[variant=flat]/section:gap-3 group-data-[variant=flat]/section:pb-3 sm:group-data-[variant=flat]/section:flex-row sm:group-data-[variant=flat]/section:items-start sm:group-data-[variant=flat]/section:justify-between sm:group-data-[variant=flat]/section:gap-4',\n 'group-data-[variant=factory]/section:flex group-data-[variant=factory]/section:min-w-0 group-data-[variant=factory]/section:flex-col group-data-[variant=factory]/section:gap-2 sm:group-data-[variant=factory]/section:flex-row sm:group-data-[variant=factory]/section:items-start sm:group-data-[variant=factory]/section:justify-between sm:group-data-[variant=factory]/section:gap-4',\n inset && 'px-4',\n className,\n )}\n {...props}\n >\n {children}\n </header>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeaderTextProps = ComponentProps<'div'>;\n\nexport function SectionHeaderText({ className, ...props }: SectionHeaderTextProps) {\n return <div data-slot=\"section-header-text\" className={cn('flex min-w-0 flex-col gap-1.5', className)} {...props} />;\n}\n","import type { ComponentProps, ElementType } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeadingProps = ComponentProps<'h2'> & {\n headingLevel?: 'h2' | 'h3' | 'h4';\n};\n\nexport function SectionHeading({ headingLevel = 'h2', children, className, ...props }: SectionHeadingProps) {\n const HeadingTag: ElementType = headingLevel;\n\n return (\n <HeadingTag\n data-slot=\"section-heading\"\n className={cn(\n 'group-data-[variant=default]/section:flex group-data-[variant=default]/section:items-center group-data-[variant=default]/section:gap-2 group-data-[variant=default]/section:text-subheading group-data-[variant=default]/section:text-muted-foreground group-data-[variant=default]/section:[&>svg]:size-[1.2em] group-data-[variant=default]/section:[&>svg]:opacity-50',\n 'group-data-[variant=flat]/section:text-subheading group-data-[variant=flat]/section:text-balance group-data-[variant=flat]/section:text-foreground',\n 'group-data-[variant=factory]/section:text-subheading group-data-[variant=factory]/section:text-balance group-data-[variant=factory]/section:text-foreground',\n className,\n )}\n {...props}\n >\n {children}\n </HeadingTag>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionVariant = 'default' | 'flat' | 'factory';\n\nexport type SectionRootProps = ComponentProps<'section'> & {\n variant?: SectionVariant;\n};\n\nexport function SectionRoot({ variant = 'default', children, className, ...props }: SectionRootProps) {\n return (\n <section\n data-slot=\"section\"\n data-variant={variant}\n className={cn(\n 'group/section',\n variant === 'default' && 'grid gap-3',\n variant === 'flat' && 'w-full min-w-0',\n variant === 'factory' && 'flex w-full min-w-0 flex-col gap-2',\n className,\n )}\n {...props}\n >\n {children}\n </section>\n );\n}\n\nexport function SubSectionRoot({ children, className, ...props }: ComponentProps<'section'>) {\n return (\n <section className={cn('grid gap-2', className)} {...props}>\n {children}\n </section>\n );\n}\n","import type { ReactNode } from 'react';\nimport { Field, FieldDescription, FieldError, FieldLabel } from '@/ds/components/Field';\nimport type { FieldProps } from '@/ds/components/Field';\nimport { SettingsRowControl } from '@/ds/new/settings/settings-row';\nimport { cn } from '@/lib/utils';\n\nexport type SectionRowProps = Omit<FieldProps, 'children' | 'invalid' | 'orientation'> & {\n label: ReactNode;\n description?: ReactNode;\n htmlFor?: string;\n children?: ReactNode;\n required?: boolean;\n errorMsg?: ReactNode;\n};\nexport type SectionViewOnlyRowProps = SectionRowProps & { children: ReactNode };\nexport type SectionDestructiveRowProps = SectionRowProps & { children: ReactNode };\n\nfunction SectionRowBase({\n label,\n description,\n htmlFor,\n children,\n className,\n required = false,\n errorMsg,\n disabled,\n viewOnly = false,\n destructive = false,\n ...props\n}: SectionRowProps & { viewOnly?: boolean; destructive?: boolean }) {\n return (\n <Field\n orientation=\"responsive\"\n invalid={Boolean(errorMsg)}\n disabled={disabled || viewOnly}\n data-slot=\"section-row\"\n className={cn(\n 'grid min-w-0 gap-3 group-data-[variant=factory]/section:px-3 group-data-[variant=factory]/section:py-2 group-data-[variant=flat]/section:p-3 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center sm:group-data-[variant=default]/section:gap-4 sm:group-data-[variant=factory]/section:gap-4 sm:group-data-[variant=flat]/section:gap-6',\n className,\n )}\n {...props}\n >\n <div className=\"min-w-0\">\n <FieldLabel\n {...(htmlFor ? { htmlFor } : {})}\n required={required}\n className={cn(destructive && 'text-destructive-foreground')}\n >\n {label}\n </FieldLabel>\n {description != null && <FieldDescription className=\"mt-1 text-pretty\">{description}</FieldDescription>}\n <FieldError className=\"mt-1\">{errorMsg}</FieldError>\n </div>\n {children != null && (\n <div\n data-slot=\"section-control\"\n className={cn(\n 'min-w-0 sm:justify-self-end',\n viewOnly && 'flex items-center gap-2 text-body-sm text-muted-foreground',\n )}\n >\n <SettingsRowControl viewOnly={viewOnly}>{children}</SettingsRowControl>\n </div>\n )}\n </Field>\n );\n}\n\n/** @deprecated Use SettingsRow from @mastra/playground-ui/new/settings for settings pages. */\nexport function SectionRow(props: SectionRowProps) {\n return <SectionRowBase {...props} />;\n}\n\n/** @deprecated Use SettingsRow with viewOnly from @mastra/playground-ui/new/settings. */\nexport function SectionViewOnlyRow(props: SectionViewOnlyRowProps) {\n return <SectionRowBase {...props} viewOnly />;\n}\n\n/** @deprecated Use SettingsRow with tone=\"destructive\" from @mastra/playground-ui/new/settings. */\nexport function SectionDestructiveRow(props: SectionDestructiveRowProps) {\n return <SectionRowBase {...props} destructive />;\n}\n","import { SectionContent } from './section-content';\nimport { SectionDescription } from './section-description';\nimport { SectionDivider } from './section-divider';\nimport { SectionHeader } from './section-header';\nimport { SectionHeaderText } from './section-header-text';\nimport { SectionHeading } from './section-heading';\nimport { SectionRoot } from './section-root';\nimport type { SectionRootProps } from './section-root';\nimport { SectionDestructiveRow, SectionRow, SectionViewOnlyRow } from './section-row';\n\nexport { type SectionContentProps } from './section-content';\nexport { type SectionDescriptionProps } from './section-description';\nexport { type SectionDividerProps } from './section-divider';\nexport { type SectionHeaderProps } from './section-header';\nexport { type SectionHeaderTextProps } from './section-header-text';\nexport { type SectionHeadingProps } from './section-heading';\nexport { type SectionRootProps as SectionProps, type SectionVariant } from './section-root';\nexport { type SectionDestructiveRowProps, type SectionRowProps, type SectionViewOnlyRowProps } from './section-row';\n\nexport function Section(props: SectionRootProps) {\n return <SectionRoot {...props} />;\n}\n\nSection.Header = SectionHeader;\nSection.HeaderText = SectionHeaderText;\nSection.Heading = SectionHeading;\nSection.Description = SectionDescription;\nSection.Content = SectionContent;\nSection.Row = SectionRow;\nSection.ViewOnlyRow = SectionViewOnlyRow;\nSection.DestructiveRow = SectionDestructiveRow;\nSection.Divider = SectionDivider;\n"],"mappings":";;;;;;AAKA,SAAgB,eAAe,EAAE,WAAW,GAAG,SAA8B;CAC3E,OACE,oBAAC,OAAD;EACE,aAAU;EACV,WAAW,GACT,wGACA,mGACA,SACF;EACA,GAAI;CACL,CAAA;AAEL;;ACXA,SAAgB,mBAAmB,EAAE,WAAW,GAAG,SAAkC;CACnF,OACE,oBAAC,KAAD;EACE,SAAQ;EACR,MAAK;EACL,aAAU;EACV,WAAW,GAAG,4BAA4B,SAAS;EACnD,GAAI;CACL,CAAA;AAEL;;ACXA,SAAgB,eAAe,EAAE,WAAW,GAAG,SAA8B;CAC3E,OAAO,oBAAC,OAAD;EAAK,MAAK;EAAY,oBAAiB;EAAa,WAAW,GAAG,kBAAkB,SAAS;EAAG,GAAI;CAAQ,CAAA;AACrH;;ACAA,SAAgB,cAAc,EAAE,UAAU,WAAW,QAAQ,OAAO,GAAG,SAA6B;CAClG,OACE,oBAAC,UAAD;EACE,aAAU;EACV,WAAW,GACT,yJACA,6YACA,8XACA,SAAS,QACT,SACF;EACA,GAAI;EAEH;CACK,CAAA;AAEZ;;AClBA,SAAgB,kBAAkB,EAAE,WAAW,GAAG,SAAiC;CACjF,OAAO,oBAAC,OAAD;EAAK,aAAU;EAAsB,WAAW,GAAG,iCAAiC,SAAS;EAAG,GAAI;CAAQ,CAAA;AACrH;;ACAA,SAAgB,eAAe,EAAE,eAAe,MAAM,UAAU,WAAW,GAAG,SAA8B;CAG1G,OACE,oBAACA,cAAD;EACE,aAAU;EACV,WAAW,GACT,4WACA,sJACA,+JACA,SACF;EACA,G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AAO,oBAAC,gBAAD;EAAgB,GAAI;EAAO,UAAA;CAAU,CAAA;AAC9C;;AAGA,SAAgB,sBAAsB,OAAmC;CACvE,OAAO,oBAAC,gBAAD;EAAgB,GAAI;EAAO,aAAA;CAAa,CAAA;AACjD;;AC9DA,SAAgB,QAAQ,OAAyB;CAC/C,OAAO,oBAAC,aAAD,EAAa,GAAI,MAAQ,CAAA;AAClC;AAEA,QAAQ,SAAS;AACjB,QAAQ,aAAa;AACrB,QAAQ,UAAU;AAClB,QAAQ,cAAc;AACtB,QAAQ,UAAU;AAClB,QAAQ,MAAM;AACd,QAAQ,cAAc;AACtB,QAAQ,iBAAiB;AACzB,QAAQ,UAAU"}
1
+ {"version":3,"file":"Section-DV2aLnkc.js","names":["HeadingTag"],"sources":["../src/ds/components/Section/section-content.tsx","../src/ds/components/Section/section-description.tsx","../src/ds/components/Section/section-divider.tsx","../src/ds/components/Section/section-header.tsx","../src/ds/components/Section/section-header-text.tsx","../src/ds/components/Section/section-heading.tsx","../src/ds/components/Section/section-root.tsx","../src/ds/components/Section/section-row.tsx","../src/ds/components/Section/section.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionContentProps = ComponentProps<'div'>;\n\nexport function SectionContent({ className, ...props }: SectionContentProps) {\n return (\n <div\n data-slot=\"section-content\"\n className={cn(\n 'group-data-[variant=factory]/section:overflow-hidden group-data-[variant=factory]/section:rounded-xl',\n 'group-data-[variant=factory]/section:bg-card group-data-[variant=factory]/section:shadow-raised',\n className,\n )}\n {...props}\n />\n );\n}\n","import type { ComponentProps } from 'react';\nimport { Txt } from '@/ds/components/Txt';\nimport { cn } from '@/lib/utils';\n\nexport type SectionDescriptionProps = ComponentProps<'p'>;\n\nexport function SectionDescription({ className, ...props }: SectionDescriptionProps) {\n return (\n <Txt\n variant=\"caption\"\n tone=\"muted\"\n data-slot=\"section-description\"\n className={cn('max-w-[62ch] text-pretty', className)}\n {...props}\n />\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionDividerProps = ComponentProps<'div'>;\n\nexport function SectionDivider({ className, ...props }: SectionDividerProps) {\n return <div role=\"separator\" aria-orientation=\"horizontal\" className={cn('h-px bg-border', className)} {...props} />;\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeaderProps = ComponentProps<'header'> & {\n inset?: boolean;\n};\n\nexport function SectionHeader({ children, className, inset = false, ...props }: SectionHeaderProps) {\n return (\n <header\n data-slot=\"section-header\"\n className={cn(\n 'group-data-[variant=default]/section:grid group-data-[variant=default]/section:grid-cols-[1fr_auto] group-data-[variant=default]/section:items-center',\n 'group-data-[variant=flat]/section:flex group-data-[variant=flat]/section:min-w-0 group-data-[variant=flat]/section:flex-col group-data-[variant=flat]/section:gap-3 group-data-[variant=flat]/section:pb-3 sm:group-data-[variant=flat]/section:flex-row sm:group-data-[variant=flat]/section:items-start sm:group-data-[variant=flat]/section:justify-between sm:group-data-[variant=flat]/section:gap-4',\n 'group-data-[variant=factory]/section:flex group-data-[variant=factory]/section:min-w-0 group-data-[variant=factory]/section:flex-col group-data-[variant=factory]/section:gap-2 sm:group-data-[variant=factory]/section:flex-row sm:group-data-[variant=factory]/section:items-start sm:group-data-[variant=factory]/section:justify-between sm:group-data-[variant=factory]/section:gap-4',\n inset && 'px-4',\n className,\n )}\n {...props}\n >\n {children}\n </header>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeaderTextProps = ComponentProps<'div'>;\n\nexport function SectionHeaderText({ className, ...props }: SectionHeaderTextProps) {\n return <div data-slot=\"section-header-text\" className={cn('flex min-w-0 flex-col gap-1.5', className)} {...props} />;\n}\n","import type { ComponentProps, ElementType } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionHeadingProps = ComponentProps<'h2'> & {\n headingLevel?: 'h2' | 'h3' | 'h4';\n};\n\nexport function SectionHeading({ headingLevel = 'h2', children, className, ...props }: SectionHeadingProps) {\n const HeadingTag: ElementType = headingLevel;\n\n return (\n <HeadingTag\n data-slot=\"section-heading\"\n className={cn(\n 'group-data-[variant=default]/section:flex group-data-[variant=default]/section:items-center group-data-[variant=default]/section:gap-2 group-data-[variant=default]/section:text-subheading group-data-[variant=default]/section:text-muted-foreground group-data-[variant=default]/section:[&>svg]:size-[1.2em] group-data-[variant=default]/section:[&>svg]:opacity-50',\n 'group-data-[variant=flat]/section:text-subheading group-data-[variant=flat]/section:text-balance group-data-[variant=flat]/section:text-foreground',\n 'group-data-[variant=factory]/section:text-subheading group-data-[variant=factory]/section:text-balance group-data-[variant=factory]/section:text-foreground',\n className,\n )}\n {...props}\n >\n {children}\n </HeadingTag>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type SectionVariant = 'default' | 'flat' | 'factory';\n\nexport type SectionRootProps = ComponentProps<'section'> & {\n variant?: SectionVariant;\n};\n\nexport function SectionRoot({ variant = 'default', children, className, ...props }: SectionRootProps) {\n return (\n <section\n data-slot=\"section\"\n data-variant={variant}\n className={cn(\n 'group/section',\n variant === 'default' && 'grid gap-3',\n variant === 'flat' && 'w-full min-w-0',\n variant === 'factory' && 'flex w-full min-w-0 flex-col gap-2',\n className,\n )}\n {...props}\n >\n {children}\n </section>\n );\n}\n\nexport function SubSectionRoot({ children, className, ...props }: ComponentProps<'section'>) {\n return (\n <section className={cn('grid gap-2', className)} {...props}>\n {children}\n </section>\n );\n}\n","import type { ReactNode } from 'react';\nimport { Field, FieldDescription, FieldError, FieldLabel } from '@/ds/components/Field';\nimport type { FieldProps } from '@/ds/components/Field';\nimport { SettingsRowControl } from '@/ds/new/settings/settings-row';\nimport { cn } from '@/lib/utils';\n\nexport type SectionRowProps = Omit<FieldProps, 'children' | 'invalid' | 'orientation'> & {\n label: ReactNode;\n description?: ReactNode;\n htmlFor?: string;\n children?: ReactNode;\n required?: boolean;\n errorMsg?: ReactNode;\n};\nexport type SectionViewOnlyRowProps = SectionRowProps & { children: ReactNode };\nexport type SectionDestructiveRowProps = SectionRowProps & { children: ReactNode };\n\nfunction SectionRowBase({\n label,\n description,\n htmlFor,\n children,\n className,\n required = false,\n errorMsg,\n disabled,\n viewOnly = false,\n destructive = false,\n ...props\n}: SectionRowProps & { viewOnly?: boolean; destructive?: boolean }) {\n return (\n <Field\n orientation=\"responsive\"\n invalid={Boolean(errorMsg)}\n disabled={disabled || viewOnly}\n data-slot=\"section-row\"\n className={cn(\n 'grid min-w-0 gap-3 group-data-[variant=factory]/section:px-3 group-data-[variant=factory]/section:py-2 group-data-[variant=flat]/section:p-3 sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center sm:group-data-[variant=default]/section:gap-4 sm:group-data-[variant=factory]/section:gap-4 sm:group-data-[variant=flat]/section:gap-6',\n className,\n )}\n {...props}\n >\n <div className=\"min-w-0\">\n <FieldLabel\n {...(htmlFor ? { htmlFor } : {})}\n required={required}\n className={cn(destructive && 'text-destructive-foreground')}\n >\n {label}\n </FieldLabel>\n {description != null && <FieldDescription className=\"mt-1 text-pretty\">{description}</FieldDescription>}\n <FieldError className=\"mt-1\">{errorMsg}</FieldError>\n </div>\n {children != null && (\n <div\n data-slot=\"section-control\"\n className={cn(\n 'min-w-0 sm:justify-self-end',\n viewOnly && 'flex items-center gap-2 text-body-sm text-muted-foreground',\n )}\n >\n <SettingsRowControl viewOnly={viewOnly}>{children}</SettingsRowControl>\n </div>\n )}\n </Field>\n );\n}\n\n/** @deprecated Use SettingsRow from @mastra/playground-ui/new/settings for settings pages. */\nexport function SectionRow(props: SectionRowProps) {\n return <SectionRowBase {...props} />;\n}\n\n/** @deprecated Use SettingsRow with viewOnly from @mastra/playground-ui/new/settings. */\nexport function SectionViewOnlyRow(props: SectionViewOnlyRowProps) {\n return <SectionRowBase {...props} viewOnly />;\n}\n\n/** @deprecated Use SettingsRow with tone=\"destructive\" from @mastra/playground-ui/new/settings. */\nexport function SectionDestructiveRow(props: SectionDestructiveRowProps) {\n return <SectionRowBase {...props} destructive />;\n}\n","import { SectionContent } from './section-content';\nimport { SectionDescription } from './section-description';\nimport { SectionDivider } from './section-divider';\nimport { SectionHeader } from './section-header';\nimport { SectionHeaderText } from './section-header-text';\nimport { SectionHeading } from './section-heading';\nimport { SectionRoot } from './section-root';\nimport type { SectionRootProps } from './section-root';\nimport { SectionDestructiveRow, SectionRow, SectionViewOnlyRow } from './section-row';\n\nexport { type SectionContentProps } from './section-content';\nexport { type SectionDescriptionProps } from './section-description';\nexport { type SectionDividerProps } from './section-divider';\nexport { type SectionHeaderProps } from './section-header';\nexport { type SectionHeaderTextProps } from './section-header-text';\nexport { type SectionHeadingProps } from './section-heading';\nexport { type SectionRootProps as SectionProps, type SectionVariant } from './section-root';\nexport { type SectionDestructiveRowProps, type SectionRowProps, type SectionViewOnlyRowProps } from './section-row';\n\nexport function Section(props: SectionRootProps) {\n return <SectionRoot {...props} />;\n}\n\nSection.Header = SectionHeader;\nSection.HeaderText = SectionHeaderText;\nSection.Heading = SectionHeading;\nSection.Description = SectionDescription;\nSection.Content = SectionContent;\nSection.Row = SectionRow;\nSection.ViewOnlyRow = SectionViewOnlyRow;\nSection.DestructiveRow = SectionDestructiveRow;\nSection.Divider = SectionDivider;\n"],"mappings":";;;;;;AAKA,SAAgB,eAAe,EAAE,WAAW,GAAG,SAA8B;CAC3E,OACE,oBAAC,OAAD;EACE,aAAU;EACV,WAAW,GACT,wGACA,mGACA,SACF;EACA,GAAI;CACL,CAAA;AAEL;;ACXA,SAAgB,mBAAmB,EAAE,WAAW,GAAG,SAAkC;CACnF,OACE,oBAAC,KAAD;EACE,SAAQ;EACR,MAAK;EACL,aAAU;EACV,WAAW,GAAG,4BAA4B,SAAS;EACnD,GAAI;CACL,CAAA;AAEL;;ACXA,SAAgB,eAAe,EAAE,WAAW,GAAG,SAA8B;CAC3E,OAAO,oBAAC,OAAD;EAAK,MAAK;EAAY,oBAAiB;EAAa,WAAW,GAAG,kBAAkB,SA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U,EAAE,QAAQ,IAAI,CAAC;KACpB;KACV,WAAW,GAAG,eAAe,6BAA6B;KAEzD,UAAA;IACS,CAAA;IACX,eAAe,QAAQ,oBAAC,kBAAD;KAAkB,WAAU;KAAoB,UAAA;IAA8B,CAAA;IACtG,oBAAC,YAAD;KAAY,WAAU;KAAQ,UAAA;IAAqB,CAAA;GAChD;EACJ,CAAA,GAAA,YAAY,QACX,oBAAC,OAAD;GACE,aAAU;GACV,WAAW,GACT,+BACA,YAAY,4DACd;GAEA,UAAA,oBAAC,oBAAD;IAA8B;IAAW;GAA6B,CAAA;EACnE,CAAA,CAEF;;AAEX;;AAGA,SAAgB,WAAW,OAAwB;CACjD,OAAO,oBAAC,gBAAD,EAAgB,GAAI,MAAQ,CAAA;AACrC;;AAGA,SAAgB,mBAAmB,OAAgC;CACjE,OAAO,oBAAC,gBAAD;EAAgB,GAAI;EAAO,UAAA;CAAU,CAAA;AAC9C;;AAGA,SAAgB,sBAAsB,OAAmC;CACvE,OAAO,oBAAC,gBAAD;EAAgB,GAAI;EAAO,aAAA;CAAa,CAAA;AACjD;;AC9DA,SAAgB,QAAQ,OAAyB;CAC/C,OAAO,oBAAC,aAAD,EAAa,GAAI,MAAQ,CAAA;AAClC;AAEA,QAAQ,SAAS;AACjB,QAAQ,aAAa;AACrB,QAAQ,UAAU;AAClB,QAAQ,cAAc;AACtB,QAAQ,UAAU;AAClB,QAAQ,MAAM;AACd,QAAQ,cAAc;AACtB,QAAQ,iBAAiB;AACzB,QAAQ,UAAU"}
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_Section = require("../Section-Dk_Vcsi7.cjs");
2
+ const require_Section = require("../Section-BdO9TFjY.cjs");
3
3
  exports.Section = require_Section.Section;
4
4
  exports.SectionRoot = require_Section.SectionRoot;
5
5
  exports.SubSectionRoot = require_Section.SubSectionRoot;
@@ -1 +1 @@
1
- export { t as Section, n as SectionRoot, r as SubSectionRoot } from "../Section-D6JJ926q.js";
1
+ export { t as Section, n as SectionRoot, r as SubSectionRoot } from "../Section-DV2aLnkc.js";
@@ -4,7 +4,7 @@ const require_Button = require("../Button-C_tgwxcK.cjs");
4
4
  const require_buttons_group = require("../buttons-group-DM6_Kohs.cjs");
5
5
  const require_CodeEditor = require("../CodeEditor-CeQHPj0g.cjs");
6
6
  const require_copy_button = require("../copy-button-BipGcWo2.cjs");
7
- const require_Section = require("../Section-Dk_Vcsi7.cjs");
7
+ const require_Section = require("../Section-BdO9TFjY.cjs");
8
8
  const require_icons_central_IconAlignmentJustify = require("../icons/central/IconAlignmentJustify.cjs.js");
9
9
  const require_icons_central_IconAlignmentLeft = require("../icons/central/IconAlignmentLeft.cjs.js");
10
10
  require("../primitives/raised-surface.cjs.js");
@@ -2,7 +2,7 @@ import { t as Button } from "../Button-BcQ4CsoL.js";
2
2
  import { t as ButtonsGroup } from "../buttons-group-DA_wORqQ.js";
3
3
  import { n as useCodemirrorTheme, s as codeFoldGutter } from "../CodeEditor-AaW7HgY9.js";
4
4
  import { t as CopyButton } from "../copy-button-5PzdvEQI.js";
5
- import { t as Section } from "../Section-D6JJ926q.js";
5
+ import { t as Section } from "../Section-DV2aLnkc.js";
6
6
  import { IconAlignmentJustify } from "../icons/central/IconAlignmentJustify.es.js";
7
7
  import { IconAlignmentLeft } from "../icons/central/IconAlignmentLeft.es.js";
8
8
  import "../primitives/raised-surface.es.js";
@@ -13,7 +13,7 @@ const require_CodeEditor = require("../../../../CodeEditor-CeQHPj0g.cjs");
13
13
  const require_Dialog = require("../../../../Dialog-vZiwc-R9.cjs");
14
14
  const require_components_Field = require("../../../../components/Field.cjs.js");
15
15
  const require_Txt = require("../../../../Txt-_00wWxTd.cjs");
16
- const require_settings = require("../../../../settings-5PdsNlhV.cjs");
16
+ const require_settings = require("../../../../settings-CYKWxfrJ.cjs");
17
17
  const require_lib_framework = require("../../../../lib/framework.cjs.js");
18
18
  const require_utils = require("../../../../utils-uDc1ofX1.cjs");
19
19
  const require_toast_api = require("../../../../toast-api-B1NLVGk7.cjs");
@@ -12,7 +12,7 @@ import { t as CodeEditor } from "../../../../CodeEditor-AaW7HgY9.js";
12
12
  import { a as DialogContent, c as DialogHeader, d as DialogTitle, n as DialogBody, o as DialogDescription, p as DialogAction, r as DialogCancel, s as DialogFooter, t as Dialog } from "../../../../Dialog-CQ0-jiY3.js";
13
13
  import { Field, FieldDescription, FieldError, FieldLabel } from "../../../../components/Field.es.js";
14
14
  import { t as Txt } from "../../../../Txt-5efBsb2p.js";
15
- import { d as SettingsContainer } from "../../../../settings-DIrzLcgE.js";
15
+ import { d as SettingsContainer } from "../../../../settings-B7RMGKgf.js";
16
16
  import { useLinkComponent } from "../../../../lib/framework.es.js";
17
17
  import { t as cn } from "../../../../utils-DQx8TpNT.js";
18
18
  import { t as toast } from "../../../../toast-api-0fwBoJod.js";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_components_Collapsible = require("../../../../components/Collapsible.cjs.js");
3
3
  const require_components_Switch = require("../../../../components/Switch.cjs.js");
4
- const require_settings_row = require("../../../../settings-row-Dfi4pLnl.cjs");
4
+ const require_settings_row = require("../../../../settings-row-Da1HHyBg.cjs");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
6
  // src/domains/datasets/components/add-dataset-item-dialog/collapsible-settings-row.tsx
7
7
  /**
@@ -1,6 +1,6 @@
1
1
  import { Collapsible, CollapsibleContent } from "../../../../components/Collapsible.es.js";
2
2
  import { Switch } from "../../../../components/Switch.es.js";
3
- import { n as SettingsRow } from "../../../../settings-row-C2HTuwjN.js";
3
+ import { n as SettingsRow } from "../../../../settings-row-BnlFZSQL.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  // src/domains/datasets/components/add-dataset-item-dialog/collapsible-settings-row.tsx
6
6
  /**
@@ -16,6 +16,7 @@ const require_Metadata = require("../../../Metadata-5GJlO4GU.cjs");
16
16
  const require_components_RelativeTimestamp = require("../../../components/RelativeTimestamp.cjs.js");
17
17
  const require_scroll_area = require("../../../scroll-area-7N9C8DwL.cjs");
18
18
  const require_Txt = require("../../../Txt-_00wWxTd.cjs");
19
+ const require_icons_central_IconArrowLeft = require("../../../icons/central/IconArrowLeft.cjs.js");
19
20
  const require_icons_central_IconArrowRight = require("../../../icons/central/IconArrowRight.cjs.js");
20
21
  const require_icons_central_IconPin = require("../../../icons/central/IconPin.cjs.js");
21
22
  let react = require("react");
@@ -262,7 +263,7 @@ function KnowledgeNoteItem({ note, pagesById, onPageClick, highlighted, itemRef,
262
263
  *
263
264
  * Paged lists take a `…More` slot the host fills with the next page's loader.
264
265
  */
265
- function KnowledgePageDetail({ page, notes, pin, pagesById, onPageClick, highlightMentionOf, ancestors = [], mentionedBy = [], notesMore, childPages, activity, onOpenPage, compact = false }) {
266
+ function KnowledgePageDetail({ page, notes, pin, pagesById, onPageClick, highlightMentionOf, ancestors = [], mentionedBy = [], notesMore, childPages, activity, links, onOpenPage, compact = false }) {
266
267
  const firstHighlighted = (0, react.useRef)(null);
267
268
  (0, react.useEffect)(() => {
268
269
  firstHighlighted.current?.scrollIntoView?.({ block: "nearest" });
@@ -293,7 +294,10 @@ function KnowledgePageDetail({ page, notes, pin, pagesById, onPageClick, highlig
293
294
  }), [refIndex, onPageClick]);
294
295
  const bodyRef = (0, react.useRef)(null);
295
296
  const headings = (0, react.useMemo)(() => page.body ? require_domains_knowledge_lib_bodyHeadings.bodyHeadings(page.body) : [], [page.body]);
296
- const linksTo = (0, react.useMemo)(() => linkedPages(page, refIndex), [page, refIndex]);
297
+ const bodyLinkTargets = (0, react.useMemo)(() => linkedPages(page, refIndex), [page, refIndex]);
298
+ const linksTo = links?.out ?? bodyLinkTargets;
299
+ const linkedFrom = links?.in ?? [];
300
+ const linksIn = links ? links.in.length : mentionedBy.length;
297
301
  const body = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BodyLinks.Provider, {
298
302
  value: bodyLinks,
299
303
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_MarkdownRenderer.MarkdownRenderer, {
@@ -332,63 +336,100 @@ function KnowledgePageDetail({ page, notes, pin, pagesById, onPageClick, highlig
332
336
  const mentioning = highlightMentionOf ? notes.filter((note) => note.mentions.includes(highlightMentionOf)) : [];
333
337
  const latest = notes.reduce((newest, note) => !newest || note.updatedAt > newest.updatedAt ? note : newest, void 0);
334
338
  const peekNotes = mentioning.length > 0 ? mentioning : latest ? [latest] : [];
335
- const connections = linksTo.length > 0 || mentionedBy.length > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(KnowledgeDetailSection, {
339
+ const connections = linksTo.length > 0 || linkedFrom.length > 0 || mentionedBy.length > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(KnowledgeDetailSection, {
336
340
  label: "Connections",
337
- count: linksTo.length + mentionedBy.length,
341
+ count: linksTo.length + Math.max(linkedFrom.length, mentionedBy.length),
338
342
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
339
343
  className: "flex flex-col gap-4",
340
- children: [linksTo.length > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
341
- "aria-label": "Links to",
342
- className: "flex flex-col gap-1.5",
343
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Txt.Txt, {
344
- as: "h4",
345
- variant: "caption",
346
- tone: "muted",
347
- children: "Links to"
348
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
349
- className: "flex flex-col gap-1",
350
- children: linksTo.map(({ page: target, count }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
351
- className: "flex min-w-0 items-center gap-2",
352
- children: [
353
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_central_IconArrowRight.IconArrowRight, {
354
- "aria-hidden": true,
355
- className: "size-icon-xs shrink-0 text-muted-foreground"
356
- }),
357
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
358
- type: "button",
359
- className: "min-w-0 truncate text-left text-body-sm text-foreground hover:underline",
360
- onClick: () => onPageClick(target),
361
- children: target.name
362
- }),
363
- count > 1 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Txt.Txt, {
364
- as: "span",
365
- variant: "caption",
366
- tone: "muted",
367
- className: "tabular-nums",
368
- children: ["×", count]
369
- }) : null
370
- ]
371
- }, target.id))
372
- })]
373
- }) : null, mentionedBy.length > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
374
- "aria-label": "Mentioned in",
375
- className: "flex flex-col gap-1.5",
376
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Txt.Txt, {
377
- as: "h4",
378
- variant: "caption",
379
- tone: "muted",
380
- children: "Mentioned in"
381
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
382
- className: "flex flex-col gap-2",
383
- children: mentionedBy.map((note) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(KnowledgeNoteItem, {
384
- note,
385
- pagesById: notePages,
386
- onPageClick,
387
- showPage: true,
388
- compact: true
389
- }, note.id))
390
- })]
391
- }) : null]
344
+ children: [
345
+ linksTo.length > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
346
+ "aria-label": "Links to",
347
+ className: "flex flex-col gap-1.5",
348
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Txt.Txt, {
349
+ as: "h4",
350
+ variant: "caption",
351
+ tone: "muted",
352
+ children: "Links to"
353
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
354
+ className: "flex flex-col gap-1",
355
+ children: linksTo.map(({ page: target, count }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
356
+ className: "flex min-w-0 items-center gap-2",
357
+ children: [
358
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_central_IconArrowRight.IconArrowRight, {
359
+ "aria-hidden": true,
360
+ className: "size-icon-xs shrink-0 text-muted-foreground"
361
+ }),
362
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
363
+ type: "button",
364
+ className: "min-w-0 truncate text-left text-body-sm text-foreground hover:underline",
365
+ onClick: () => onPageClick(target),
366
+ children: require_domains_knowledge_lib_pageAddress.scopeTitle(target)
367
+ }),
368
+ count > 1 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Txt.Txt, {
369
+ as: "span",
370
+ variant: "caption",
371
+ tone: "muted",
372
+ className: "tabular-nums",
373
+ children: ["×", count]
374
+ }) : null
375
+ ]
376
+ }, target.id))
377
+ })]
378
+ }) : null,
379
+ linkedFrom.length > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
380
+ "aria-label": "Linked from",
381
+ className: "flex flex-col gap-1.5",
382
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Txt.Txt, {
383
+ as: "h4",
384
+ variant: "caption",
385
+ tone: "muted",
386
+ children: "Linked from"
387
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
388
+ className: "flex flex-col gap-1",
389
+ children: linkedFrom.map(({ page: source, count }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
390
+ className: "flex min-w-0 items-center gap-2",
391
+ children: [
392
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_icons_central_IconArrowLeft.IconArrowLeft, {
393
+ "aria-hidden": true,
394
+ className: "size-icon-xs shrink-0 text-muted-foreground"
395
+ }),
396
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
397
+ type: "button",
398
+ className: "min-w-0 truncate text-left text-body-sm text-foreground hover:underline",
399
+ onClick: () => onPageClick(source),
400
+ children: require_domains_knowledge_lib_pageAddress.scopeTitle(source)
401
+ }),
402
+ count > 1 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Txt.Txt, {
403
+ as: "span",
404
+ variant: "caption",
405
+ tone: "muted",
406
+ className: "tabular-nums",
407
+ children: ["×", count]
408
+ }) : null
409
+ ]
410
+ }, source.id))
411
+ })]
412
+ }) : null,
413
+ mentionedBy.length > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
414
+ "aria-label": "Mentioned in",
415
+ className: "flex flex-col gap-1.5",
416
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Txt.Txt, {
417
+ as: "h4",
418
+ variant: "caption",
419
+ tone: "muted",
420
+ children: "Mentioned in"
421
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
422
+ className: "flex flex-col gap-2",
423
+ children: mentionedBy.map((note) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(KnowledgeNoteItem, {
424
+ note,
425
+ pagesById: notePages,
426
+ onPageClick,
427
+ showPage: true,
428
+ compact: true
429
+ }, note.id))
430
+ })]
431
+ }) : null
432
+ ]
392
433
  })
393
434
  }) : null;
394
435
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("article", {
@@ -463,7 +504,7 @@ function KnowledgePageDetail({ page, notes, pin, pagesById, onPageClick, highlig
463
504
  tone: "muted",
464
505
  "data-testid": "knowledge-page-version",
465
506
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Metadata.Metadata, { children: [
466
- page.isScope ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Metadata.Metadata.Item, { children: ["In ", scope ? require_domains_knowledge_lib_pageAddress.scopeTitle(scope) : page.scopeId] }),
507
+ page.isScope || !scope ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Metadata.Metadata.Item, { children: ["In ", require_domains_knowledge_lib_pageAddress.scopeTitle(scope)] }),
467
508
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Metadata.Metadata.Item, { children: ["v", page.version] }),
468
509
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Metadata.Metadata.Item, { children: [
469
510
  "Updated",
@@ -488,7 +529,7 @@ function KnowledgePageDetail({ page, notes, pin, pagesById, onPageClick, highlig
488
529
  children: [
489
530
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PeekCount, {
490
531
  label: "Links in",
491
- value: mentionedBy.length
532
+ value: linksIn
492
533
  }),
493
534
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PeekCount, {
494
535
  label: "Links out",