@intentic/extension-ui 1.316.0 → 1.318.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 (26) hide show
  1. package/dist/index.js +2 -0
  2. package/dist/types/extension-ui/src/index.d.ts +1 -1
  3. package/dist/types/ui/src/components/brand/personaFace.d.ts +1 -1
  4. package/dist/types/ui/src/components/charts/dagLayout.d.ts +2 -1
  5. package/dist/types/ui/src/components/forms/SegmentedControl.vue.d.ts +3 -2
  6. package/dist/types/ui/src/components/layout/PageAction.vue.d.ts +5 -4
  7. package/dist/types/ui/src/components/layout/repoRail.d.ts +3 -2
  8. package/dist/types/ui/src/components/overlays/ActionSheet.vue.d.ts +17 -0
  9. package/dist/types/ui/src/components/overlays/AnchoredOverlay.vue.d.ts +1 -0
  10. package/dist/types/ui/src/components/overlays/ConfirmDialog.vue.d.ts +2 -0
  11. package/dist/types/ui/src/components/overlays/OverflowActions.vue.d.ts +10 -0
  12. package/dist/types/ui/src/components/overlays/actionItem.d.ts +12 -0
  13. package/dist/types/ui/src/components/sandbox/AgentRunButton.vue.d.ts +2 -1
  14. package/dist/types/ui/src/composables/useDevice.d.ts +2 -0
  15. package/dist/types/ui/src/i18n/i18n.d.ts +1 -0
  16. package/dist/types/ui/src/i18n/index.d.ts +1 -1
  17. package/dist/types/ui/src/index.d.ts +3 -2
  18. package/dist/types/ui/src/lib/timeWindow.d.ts +1 -0
  19. package/dist/types/ui/src/lib/tooltip.d.ts +24 -0
  20. package/dist/types/ui/src/markdown/code.d.ts +1 -0
  21. package/dist/types/ui/src/markdown/index.d.ts +1 -1
  22. package/names.mjs +2 -0
  23. package/package.json +1 -1
  24. package/src/index.ts +6 -1
  25. package/dist/types/ui/src/components/charts/DagEditor.vue.d.ts +0 -39
  26. package/dist/types/ui/src/components/charts/DagGraph.vue.d.ts +0 -50
package/dist/index.js CHANGED
@@ -9,6 +9,7 @@ if (host === undefined) {
9
9
  throw new Error("@intentic/extension-ui was loaded outside an intentic host: its components come from the app, not from this package.");
10
10
  }
11
11
  const m = host.modules["@intentic/extension-ui"];
12
+ export const ActionSheet = m["ActionSheet"];
12
13
  export const AgentRunButton = m["AgentRunButton"];
13
14
  export const AnchoredOverlay = m["AnchoredOverlay"];
14
15
  export const Avatar = m["Avatar"];
@@ -42,6 +43,7 @@ export const NavRail = m["NavRail"];
42
43
  export const NoteEditor = m["NoteEditor"];
43
44
  export const Notice = m["Notice"];
44
45
  export const NoticeStack = m["NoticeStack"];
46
+ export const OverflowActions = m["OverflowActions"];
45
47
  export const Page = m["Page"];
46
48
  export const PageAction = m["PageAction"];
47
49
  export const PageHeader = m["PageHeader"];
@@ -1,4 +1,4 @@
1
- export { AgentRunButton, type AgentRunAttempt, type AgentRunChoice, type AgentRunPicker, type ModelPicking, useAgentRunPick, type FixStanceLook, fixStanceLook, AnchoredOverlay, Avatar, Button, vAction, BarChart, BottomSheet, BrandMark, Card, clipboardOf, browserOwnsClick, appLink, openForwardedPort, ChangeStatusMark, type ChangeStatus, ui, Code, CodeField, ConfirmDialog, ContextMenu, CopyButton, StatusTally, type TallyItem, DagEditor, DagGraph, type DagEdge, type DagNode, DiffStat, DisclosureRow, FilterBar, Icon, type IconName, ImageView, InfoDialog, InfoHint, InfoTable, type FileFormat, formatOf, Markdown, MarkdownDocument, MarkdownFigure, Modal, type NavGroup, NavRail, NoteEditor, type NoteDraft, type NoteDraftOptions, useNoteDraft, useKeyedDraft, type NoticeModel, type NoticeTone, type NoticeAction, Notice, NoticeStack, Page, PageAction, PageHeader, ScrollFrame, PersonaFace, type PersonaLike, Picker, ProjectChip, type PickerGroup, type PickerOption, type PickerOptions, ProgressRing, RepoRail, type RepoRailAll, type RepoRailGroup, type RepoRailRow, ProseField, ResizeSeam, ResponsiveOverlay, Row, RowGroup, SearchBar, SegmentedControl, seriesColor, sinceOf, useLoadingReveal, SkeletonRows, SplitView, StatStrip, StatusBadge, type StatusVariant, StepSection, timeWindows, type TimeWindow, timeWindowWords, useCompact, useDevice, useListNavigation, useNow, useLatest, errorMessage, noticeFrom, noticeOf, useAsyncAction, useNarrow, useRailMemory, useScrollReset, type StickyTop, useStickyTop, useTheme, } from "../../ui/src/index.js";
1
+ export { AgentRunButton, type AgentRunAttempt, type AgentRunChoice, type AgentRunPicker, type ModelPicking, useAgentRunPick, type FixStanceLook, fixStanceLook, AnchoredOverlay, Avatar, Button, vAction, BarChart, BottomSheet, BrandMark, Card, clipboardOf, browserOwnsClick, appLink, openForwardedPort, ChangeStatusMark, type ChangeStatus, ui, Code, CodeField, ConfirmDialog, ContextMenu, OverflowActions, ActionSheet, type ActionItem, CopyButton, StatusTally, type TallyItem, DagEditor, DagGraph, type DagEdge, type DagNode, DiffStat, DisclosureRow, FilterBar, Icon, type IconName, ImageView, InfoDialog, InfoHint, InfoTable, type FileFormat, formatOf, Markdown, MarkdownDocument, MarkdownFigure, Modal, type NavGroup, NavRail, NoteEditor, type NoteDraft, type NoteDraftOptions, useNoteDraft, useKeyedDraft, type NoticeModel, type NoticeTone, type NoticeAction, Notice, NoticeStack, Page, PageAction, PageHeader, ScrollFrame, PersonaFace, type PersonaLike, Picker, ProjectChip, type PickerGroup, type PickerOption, type PickerOptions, ProgressRing, RepoRail, type RepoRailAll, type RepoRailGroup, type RepoRailRow, ProseField, ResizeSeam, ResponsiveOverlay, Row, RowGroup, SearchBar, SegmentedControl, seriesColor, sinceOf, useLoadingReveal, SkeletonRows, SplitView, StatStrip, StatusBadge, type StatusVariant, StepSection, timeWindows, type TimeWindow, timeWindowWords, useCompact, useDevice, useListNavigation, useNow, useLatest, errorMessage, noticeFrom, noticeOf, useAsyncAction, useNarrow, useRailMemory, useScrollReset, type StickyTop, useStickyTop, useTheme, } from "../../ui/src/index.js";
2
2
  export { formatBytes, formatDate, formatDateTime, formatDayMonth, formatDayMonthTime, formatDuration, formatTime, formatTimestamp, formatTokens, formatWeekdayTime, formatWhen, freshness, timeAgo, } from "./format.js";
3
3
  export { diffSequence, pairEdits, similarity, wordDiff } from "./diff.js";
4
4
  export { createWorkerCall, serveWorkerCall, WorkerCallError } from "./worker.js";
@@ -5,5 +5,5 @@ export interface PersonaLike {
5
5
  export declare const FACE_SIZES: {
6
6
  readonly pill: 22;
7
7
  readonly row: 36;
8
- readonly card: 56;
8
+ readonly card: 64;
9
9
  };
@@ -1,7 +1,8 @@
1
+ import type { TooltipValue } from "../../lib/tooltip.js";
1
2
  export interface DagNode<T = unknown> {
2
3
  readonly id: string;
3
4
  readonly data: T;
4
- readonly tooltip?: string;
5
+ readonly tooltip?: TooltipValue;
5
6
  readonly dimmed?: boolean;
6
7
  readonly width?: number;
7
8
  readonly height?: number;
@@ -1,4 +1,5 @@
1
1
  import type { IconName } from "../../icons/iconSets.js";
2
+ import type { TooltipValue } from "../../lib/tooltip.js";
2
3
  declare const __VLS_export: <T extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
4
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
5
  options: readonly {
@@ -6,11 +7,11 @@ declare const __VLS_export: <T extends string>(__VLS_props: NonNullable<Awaited<
6
7
  value: T;
7
8
  icon?: IconName;
8
9
  hue?: number;
9
- title?: string;
10
+ title?: TooltipValue;
10
11
  badge?: number;
11
12
  mark?: IconName;
12
13
  markSpin?: boolean;
13
- markTitle?: string;
14
+ markTitle?: TooltipValue;
14
15
  }[];
15
16
  size?: `sm` | `xs`;
16
17
  variant?: `pills` | `underline`;
@@ -1,8 +1,9 @@
1
1
  import type { IconName } from "../../icons/iconSets.js";
2
+ import type { TooltipValue } from "../../lib/tooltip.js";
2
3
  declare const __VLS_export: import("vue").DefineComponent<({
3
4
  label: string;
4
5
  icon: IconName;
5
- hint?: string;
6
+ hint?: TooltipValue;
6
7
  disabled?: boolean;
7
8
  } & {
8
9
  quiet?: boolean;
@@ -11,7 +12,7 @@ declare const __VLS_export: import("vue").DefineComponent<({
11
12
  }) | ({
12
13
  label: string;
13
14
  icon: IconName;
14
- hint?: string;
15
+ hint?: TooltipValue;
15
16
  disabled?: boolean;
16
17
  } & {
17
18
  href: string;
@@ -20,7 +21,7 @@ declare const __VLS_export: import("vue").DefineComponent<({
20
21
  }), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<({
21
22
  label: string;
22
23
  icon: IconName;
23
- hint?: string;
24
+ hint?: TooltipValue;
24
25
  disabled?: boolean;
25
26
  } & {
26
27
  quiet?: boolean;
@@ -29,7 +30,7 @@ declare const __VLS_export: import("vue").DefineComponent<({
29
30
  }) | ({
30
31
  label: string;
31
32
  icon: IconName;
32
- hint?: string;
33
+ hint?: TooltipValue;
33
34
  disabled?: boolean;
34
35
  } & {
35
36
  href: string;
@@ -1,11 +1,12 @@
1
1
  import type { IconName } from "../../icons/iconSets.js";
2
+ import type { TooltipValue } from "../../lib/tooltip.js";
2
3
  export interface RepoRailRow {
3
4
  readonly value: string;
4
5
  readonly label: string;
5
6
  readonly icon: IconName;
6
7
  readonly meta: string;
7
8
  readonly tone?: string;
8
- readonly tooltip?: string;
9
+ readonly tooltip?: TooltipValue;
9
10
  readonly mono?: boolean;
10
11
  }
11
12
  export interface RepoRailGroup {
@@ -17,5 +18,5 @@ export interface RepoRailAll {
17
18
  readonly icon: IconName;
18
19
  readonly meta: string;
19
20
  readonly tone?: string;
20
- readonly tooltip?: string;
21
+ readonly tooltip?: TooltipValue;
21
22
  }
@@ -0,0 +1,17 @@
1
+ import type { ActionItem } from "./actionItem.js";
2
+ type __VLS_Props = {
3
+ actions: readonly ActionItem[];
4
+ header?: string;
5
+ from?: HTMLElement | undefined;
6
+ };
7
+ type __VLS_ModelProps = {
8
+ modelValue: boolean;
9
+ };
10
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:modelValue": (value: boolean) => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -5,6 +5,7 @@ type __VLS_Props = {
5
5
  cross?: Cross;
6
6
  gap?: number;
7
7
  edge?: number;
8
+ restoreFocus?: boolean;
8
9
  };
9
10
  type __VLS_ModelProps = {
10
11
  modelValue: boolean;
@@ -26,6 +26,8 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
26
26
  }) => any;
27
27
  } & {
28
28
  default?: (props: {}) => any;
29
+ } & {
30
+ actions?: (props: {}) => any;
29
31
  };
30
32
  emit: ((evt: "cancel") => void) & ((evt: "hide") => void) & ((evt: "confirm") => void);
31
33
  }>) => import("vue").VNode & {
@@ -0,0 +1,10 @@
1
+ import type { ActionItem } from "./actionItem.js";
2
+ type __VLS_Props = {
3
+ actions: readonly ActionItem[];
4
+ buttonClass?: string;
5
+ iconClass?: string;
6
+ header?: string;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import type { IconName } from "../../icons/iconSets.js";
2
+ import type { TooltipValue } from "../../lib/tooltip.js";
3
+ export interface ActionItem {
4
+ readonly id: string;
5
+ readonly label: string;
6
+ readonly icon: IconName;
7
+ readonly hint?: TooltipValue;
8
+ readonly note?: string;
9
+ readonly danger?: boolean;
10
+ readonly disabled?: boolean;
11
+ readonly run: (from: HTMLElement) => void;
12
+ }
@@ -1,5 +1,6 @@
1
1
  import type { AgentRunPicker } from "../../composables/useAgentRunPick.js";
2
2
  import type { IconName } from "../../icons/iconSets.js";
3
+ import type { TooltipValue } from "../../lib/tooltip.js";
3
4
  type __VLS_Props = {
4
5
  label: string;
5
6
  picker: AgentRunPicker;
@@ -9,7 +10,7 @@ type __VLS_Props = {
9
10
  icon?: IconName | undefined;
10
11
  loading?: boolean;
11
12
  disabled?: boolean;
12
- hint?: string | undefined;
13
+ hint?: TooltipValue;
13
14
  };
14
15
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
16
  run: () => any;
@@ -1,8 +1,10 @@
1
1
  import { type ComputedRef, type Ref } from "vue";
2
2
  export type Device = "mobile" | "tablet" | "desktop";
3
+ export declare const keyboardOcclusion: (layoutHeight: number, visualHeight: number, offsetTop: number, unfocusedHeight: number, editing: boolean) => number;
3
4
  export declare function useDevice(): {
4
5
  device: ComputedRef<Device>;
5
6
  mobile: ComputedRef<boolean>;
6
7
  coarse: Readonly<Ref<boolean, boolean>>;
7
8
  keyboardInset: Readonly<Ref<number, number>>;
9
+ keyboardOpen: Readonly<Ref<boolean, boolean>>;
8
10
  };
@@ -11,6 +11,7 @@ export interface Catalog {
11
11
  }>;
12
12
  }
13
13
  declare const i18n: import("vue-i18n").I18n<{}, {}, {}, string, false>;
14
+ export declare const staticCopy: () => ReadonlySet<string>;
14
15
  export declare const activeLocale: ComputedRef<Locale>;
15
16
  export declare const registerCatalog: (catalog: Catalog) => Promise<void>;
16
17
  export declare const setLocale: (locale: Locale) => Promise<void>;
@@ -4,4 +4,4 @@ declare module "vue-i18n" {
4
4
  readonly ui: typeof base;
5
5
  }
6
6
  }
7
- export { activeLocale, BASE_LOCALE, type Catalog, installI18n, isLocale, type Locale, LOCALE_CODES, LOCALE_KEY, LOCALES, type LooseT, type MessageTree, negotiate, registerCatalog, setLocale, startI18n, t, type TypedT, useT, } from "./i18n.js";
7
+ export { activeLocale, BASE_LOCALE, type Catalog, installI18n, isLocale, type Locale, LOCALE_CODES, LOCALE_KEY, LOCALES, type LooseT, type MessageTree, negotiate, registerCatalog, setLocale, startI18n, staticCopy, t, type TypedT, useT, } from "./i18n.js";
@@ -20,10 +20,11 @@ export { default as Code } from "./components/primitives/Code.vue";
20
20
  export { default as CodeField } from "./components/forms/CodeField.vue";
21
21
  export { default as ConfirmDialog } from "./components/overlays/ConfirmDialog.vue";
22
22
  export { default as ContextMenu } from "./components/overlays/ContextMenu.vue";
23
+ export { default as OverflowActions } from "./components/overlays/OverflowActions.vue";
24
+ export { default as ActionSheet } from "./components/overlays/ActionSheet.vue";
25
+ export { type ActionItem } from "./components/overlays/actionItem.js";
23
26
  export { default as CopyButton } from "./components/primitives/CopyButton.vue";
24
27
  export { type TallyItem, default as StatusTally } from "./components/charts/StatusTally.vue";
25
- export { default as DagEditor } from "./components/charts/DagEditor.vue";
26
- export { default as DagGraph } from "./components/charts/DagGraph.vue";
27
28
  export { default as DisclosureRow } from "./components/rows/DisclosureRow.vue";
28
29
  export { type DagEdge, type DagNode } from "./components/charts/dagLayout.js";
29
30
  export { default as FilterBar } from "./components/forms/FilterBar.vue";
@@ -6,3 +6,4 @@ export declare const timeWindows: () => readonly {
6
6
  export declare const sinceOf: (window: TimeWindow, now: number) => number;
7
7
  export declare const timeWindowWords: (window: TimeWindow) => string;
8
8
  export declare const withinWindow: (at: number, window: TimeWindow, now: number) => boolean;
9
+ export declare const formatUntil: (at: number, now?: number) => string;
@@ -0,0 +1,24 @@
1
+ import type { Directive } from "vue";
2
+ import { type Side } from "./anchorPlacement.js";
3
+ type Modifier = Side | "overflow" | "lines";
4
+ export type TipTone = "info" | "ok" | "warn" | "danger";
5
+ export interface TipRow {
6
+ readonly label: string;
7
+ readonly value: string | number;
8
+ readonly tone?: TipTone | undefined;
9
+ }
10
+ export interface Tip {
11
+ readonly title: string;
12
+ readonly keys?: string | undefined;
13
+ readonly tone?: TipTone | undefined;
14
+ readonly rows?: readonly TipRow[] | undefined;
15
+ readonly note?: string | undefined;
16
+ }
17
+ export type TooltipValue = string | Tip | false | null | undefined;
18
+ export declare const vTooltip: Directive<HTMLElement, TooltipValue, Modifier>;
19
+ declare module "vue" {
20
+ interface GlobalDirectives {
21
+ vTooltip: typeof vTooltip;
22
+ }
23
+ }
24
+ export {};
@@ -4,6 +4,7 @@ export interface CodeBlock {
4
4
  }
5
5
  export declare const escapeHtml: (text: string) => string;
6
6
  export declare const highlightVersion: import("vue").Ref<number, number>;
7
+ export declare const highlightInWorker: () => void;
7
8
  export declare const highlightedCode: (code: string, info: string) => string | undefined;
8
9
  export declare const codeBlockHtml: (block: CodeBlock, index: number, colour: boolean) => string;
9
10
  export declare const copyCodeFromEvent: (event: Event) => void;
@@ -1,5 +1,5 @@
1
1
  export { blockAtOffset, type MarkdownBlock, type MarkdownBlocks, offsetOfLine, splitMarkdownBlocks } from "./blocks.js";
2
- export { type CodeBlock, codeBlockHtml, copyCodeFromEvent, escapeHtml } from "./code.js";
2
+ export { type CodeBlock, codeBlockHtml, copyCodeFromEvent, escapeHtml, highlightInWorker } from "./code.js";
3
3
  export { continueList, indentLines, insertLink, type ListEnter, onListLine, outdentLines, type TextEdit, toggleWrap } from "./edits.js";
4
4
  export { createMarkdownHistory, type DocumentState, type EditKind, type MarkdownHistory } from "./history.js";
5
5
  export { blockBody, buildBlockElement, caretAtOffset, offsetOfCaret } from "./sourceDom.js";
package/names.mjs CHANGED
@@ -20,6 +20,8 @@ export const extensionUiNames = [
20
20
  "CodeField",
21
21
  "ConfirmDialog",
22
22
  "ContextMenu",
23
+ "OverflowActions",
24
+ "ActionSheet",
23
25
  "CopyButton",
24
26
  "DagEditor",
25
27
  "DagGraph",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentic/extension-ui",
3
- "version": "1.316.0",
3
+ "version": "1.318.0",
4
4
  "description": "The UI kit intentic extensions render with, host-provided at runtime (the app's own components via the import map), so extension UI is always native to the shell",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -12,7 +12,7 @@ export {
12
12
  type AgentRunPicker,
13
13
  type ModelPicking,
14
14
  useAgentRunPick,
15
- // How a fix stance (the contract's `fixStance`) is drawn, so a chip beside a red row wears the same icon and tint
15
+ // How a fix stance (the contract's `fixStance`) is drawn, so a chip beside a failed row wears the same icon and tint
16
16
  // as the same state on the shell's own surfaces.
17
17
  type FixStanceLook,
18
18
  fixStanceLook,
@@ -47,6 +47,11 @@ export {
47
47
  CodeField,
48
48
  ConfirmDialog,
49
49
  ContextMenu,
50
+ // A row's own presses: icon buttons with a pointer, folded behind one ⋯ into a sheet on a phone. `ActionSheet` is
51
+ // that sheet on its own, the touch twin of `ContextMenu`.
52
+ OverflowActions,
53
+ ActionSheet,
54
+ type ActionItem,
50
55
  CopyButton,
51
56
  StatusTally,
52
57
  type TallyItem,
@@ -1,39 +0,0 @@
1
- import "@vue-flow/core/dist/style.css";
2
- import { type DagEdge, type DagNode } from "./dagLayout.js";
3
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: import("vue").PublicProps & __VLS_PrettifyLocal<({
5
- nodes: readonly DagNode<T>[];
6
- edges: readonly DagEdge[];
7
- nodeWidth?: number;
8
- nodeHeight?: number;
9
- direction?: `LR` | `TB`;
10
- addLabel?: string;
11
- } & {
12
- modelValue?: string | undefined;
13
- }) & {
14
- onAdd?: ((from: string) => any) | undefined;
15
- onConnect?: ((from: string, to: string) => any) | undefined;
16
- "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
17
- onSelectEdge?: ((from: string, to: string) => any) | undefined;
18
- }> & (typeof globalThis extends {
19
- __VLS_PROPS_FALLBACK: infer P;
20
- } ? P : {});
21
- expose: (exposed: {}) => void;
22
- attrs: any;
23
- slots: {
24
- node(props: {
25
- node: DagNode<T>;
26
- selected: boolean;
27
- }): unknown;
28
- };
29
- emit: (((evt: "add", from: string) => void) & ((evt: "connect", from: string, to: string) => void) & ((evt: "selectEdge", from: string, to: string) => void)) & ((event: "update:modelValue", value: string | undefined) => void);
30
- }>) => import("vue").VNode & {
31
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
32
- };
33
- declare const _default: typeof __VLS_export;
34
- export default _default;
35
- type __VLS_PrettifyLocal<T> = (T extends any ? {
36
- [K in keyof T]: T[K];
37
- } : {
38
- [K in keyof T as K]: T[K];
39
- }) & {};
@@ -1,50 +0,0 @@
1
- import "@vue-flow/core/dist/style.css";
2
- import { type DagEdge, type DagNode } from "./dagLayout.js";
3
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: import("vue").PublicProps & __VLS_PrettifyLocal<({
5
- nodes: readonly DagNode<T>[];
6
- edges: readonly DagEdge[];
7
- nodeWidth?: number;
8
- nodeHeight?: number;
9
- direction?: `LR` | `TB`;
10
- minZoom?: number;
11
- readableZoom?: number;
12
- magnify?: boolean;
13
- edgeShape?: `curve` | `elbow`;
14
- rankSep?: number;
15
- nodeSep?: number;
16
- fitAlign?: `center` | `start`;
17
- fitPadding?: number | {
18
- readonly x: number;
19
- readonly y: number;
20
- };
21
- touchPan?: boolean;
22
- } & {
23
- modelValue?: string | undefined;
24
- }) & {
25
- "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
26
- }> & (typeof globalThis extends {
27
- __VLS_PROPS_FALLBACK: infer P;
28
- } ? P : {});
29
- expose: (exposed: {}) => void;
30
- attrs: any;
31
- slots: {
32
- node(props: {
33
- node: DagNode<T>;
34
- selected: boolean;
35
- }): unknown;
36
- overlay(props: {
37
- fitAll: () => void;
38
- }): unknown;
39
- };
40
- emit: (event: "update:modelValue", value: string | undefined) => void;
41
- }>) => import("vue").VNode & {
42
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
43
- };
44
- declare const _default: typeof __VLS_export;
45
- export default _default;
46
- type __VLS_PrettifyLocal<T> = (T extends any ? {
47
- [K in keyof T]: T[K];
48
- } : {
49
- [K in keyof T as K]: T[K];
50
- }) & {};