@teaflask/assistant 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/custom-elements.json +264 -0
- package/dist/appearance/theme.d.ts +138 -0
- package/dist/components/approval-card.js +3 -3
- package/dist/components/approval-context.d.ts +20 -0
- package/dist/components/assistant-companion.d.ts +15 -0
- package/dist/components/assistant-page.d.ts +61 -0
- package/dist/components/assistant-palette.d.ts +12 -0
- package/dist/components/assistant-palette.js +2 -2
- package/dist/components/child-transcript.js +1 -1
- package/dist/components/companion-header-disclosure.js +1 -1
- package/dist/components/companion-history-menu.js +1 -1
- package/dist/components/composer.js +11 -65
- package/dist/components/conversation-context.d.ts +6 -0
- package/dist/components/conversation-gate-card.js +1 -1
- package/dist/components/conversation-view.d.ts +11 -0
- package/dist/components/elicitation-context.d.ts +39 -0
- package/dist/components/model-picker-chip.js +4 -2
- package/dist/components/primitives/button.js +25 -17
- package/dist/components/primitives/floating-panel.js +1 -1
- package/dist/components/provider-chip.js +8 -1
- package/dist/components/question-panel-footer.js +1 -1
- package/dist/components/react-tool-view.d.ts +7 -0
- package/dist/components/subagent-count-pill.js +2 -2
- package/dist/components/subagent-group-row.js +1 -26
- package/dist/components/subagent-preview-popover.js +1 -1
- package/dist/components/subscription-connect-arms.js +6 -4
- package/dist/components/subscription-connect-flow.js +30 -45
- package/dist/components/subscription-connected-standing.js +9 -6
- package/dist/components/subscription-plan-notice.js +4 -2
- package/dist/components/teaflask-assistant-provider.d.ts +99 -0
- package/dist/components/teaflask-assistant.d.ts +33 -0
- package/dist/components/tool-views/action-view.js +1 -1
- package/dist/components/tool-views/parts-classes.d.ts +5 -5
- package/dist/components/tool-views/parts-classes.js +5 -5
- package/dist/components/tool-views/parts.d.ts +44 -0
- package/dist/components/tool-views/questions-view.js +2 -2
- package/dist/components/tool-views/view-dom.d.ts +76 -0
- package/dist/components/transcript.js +2 -2
- package/dist/components/use-assistant-activity.d.ts +5 -0
- package/dist/components/use-assistant-conversation.d.ts +99 -2
- package/dist/components/use-store-cell.d.ts +5 -0
- package/dist/components/use-thread-dispatches.js +8 -366
- package/dist/components/use-transcript-folds.js +2 -1
- package/dist/components/use-transcript.d.ts +55 -2
- package/dist/components/use-transcript.js +7 -2
- package/dist/contract/actions-adapter.d.ts +78 -0
- package/dist/contract/errors.d.ts +6 -1
- package/dist/contract/events.d.ts +1 -3
- package/dist/contract/identity.d.ts +1 -1
- package/dist/contract/subscriptions.d.ts +2 -2
- package/dist/contract/subscriptions.js +1 -1
- package/dist/contract/telemetry.d.ts +45 -0
- package/dist/contract/threads.d.ts +5 -1
- package/dist/core/activity.d.ts +44 -0
- package/dist/core/approval-inbox.d.ts +69 -0
- package/dist/core/assistant-session-registry.js +15 -0
- package/dist/core/composer-attachments.js +82 -0
- package/dist/core/composer-input-state.js +1 -0
- package/dist/core/composer-policy.d.ts +20 -0
- package/dist/core/connection-epoch.d.ts +65 -2
- package/dist/core/conversation-adoption.js +3 -0
- package/dist/core/conversation-contract.d.ts +112 -1
- package/dist/core/conversation-publish.js +1 -0
- package/dist/core/conversation-store.d.ts +3 -0
- package/dist/core/conversation-store.js +7 -0
- package/dist/core/dispatch-poll.js +81 -0
- package/dist/core/elicitation-answers.js +12 -0
- package/dist/core/elicitation-cards.d.ts +14 -0
- package/dist/core/elicitation-pickers.d.ts +16 -0
- package/dist/core/memory-provenance-anchors.d.ts +16 -0
- package/dist/core/observable-cell.d.ts +12 -0
- package/dist/core/pending-decision-gap.d.ts +9 -0
- package/dist/core/question-drafts.d.ts +59 -0
- package/dist/core/receipt-anchors.d.ts +9 -0
- package/dist/core/segment-timing.d.ts +23 -0
- package/dist/core/subagent-delivery-anchors.d.ts +7 -0
- package/dist/core/subagent-ledger-join.js +176 -0
- package/dist/core/subagent-rows.d.ts +68 -0
- package/dist/core/thread-dispatch-ledger.js +303 -0
- package/dist/core/tool-call-display.d.ts +71 -0
- package/dist/core/tool-call-presentation.d.ts +34 -1
- package/dist/core/tool-call-presentation.js +0 -1
- package/dist/core/tool-schema-anchors.d.ts +6 -0
- package/dist/core/tool-view.d.ts +174 -1
- package/dist/core/transcript-rows.d.ts +138 -3
- package/dist/core/turn-failed-anchors.d.ts +4 -0
- package/dist/core/user-turn-ledger.d.ts +3 -0
- package/dist/generated/models/apiErrorCode.d.ts +1 -0
- package/dist/generated/models/apiErrorCode.js +1 -0
- package/dist/generated/models/assistantTurnStatus.d.ts +16 -0
- package/dist/generated/models/servingAssistantThreadResponse.d.ts +23 -0
- package/dist/generated/models/servingAttachmentResponse.d.ts +29 -0
- package/dist/generated/models/servingErrorCode.d.ts +18 -0
- package/dist/generated/models/servingTurnAttachmentResponse.d.ts +12 -0
- package/dist/generated/models/siteTheme.d.ts +1 -0
- package/dist/generated/models/thinkingEffort.d.ts +10 -0
- package/dist/generated/models/threadModelPickResponse.d.ts +12 -0
- package/dist/headless.d.ts +9 -4
- package/dist/index.d.ts +2 -6
- package/dist/index.js +0 -3
- package/dist/persistence/stored-thread.d.ts +5 -0
- package/dist/styles.css +1 -1
- package/dist/transport/serving-error.d.ts +21 -0
- package/package.json +6 -25
- package/dist/affordances/highlight.d.ts +0 -3
- package/dist/affordances/prefill.d.ts +0 -14
- package/dist/components/activity-rail.d.ts +0 -12
- package/dist/components/activity-shelf.d.ts +0 -7
- package/dist/components/agent-identity-mark.d.ts +0 -7
- package/dist/components/appearance-context.d.ts +0 -14
- package/dist/components/approval-card.d.ts +0 -7
- package/dist/components/assistant-palette-body.d.ts +0 -3
- package/dist/components/assistant-transcript.d.ts +0 -47
- package/dist/components/attachment-chips.d.ts +0 -4
- package/dist/components/child-transcript.d.ts +0 -22
- package/dist/components/companion-drawer-body.d.ts +0 -1
- package/dist/components/companion-drawer.d.ts +0 -10
- package/dist/components/companion-header-disclosure.d.ts +0 -20
- package/dist/components/companion-history-menu.d.ts +0 -15
- package/dist/components/companion-mark-image.d.ts +0 -3
- package/dist/components/companion-mark-image.js +0 -18
- package/dist/components/companion-mark.d.ts +0 -1
- package/dist/components/companion-mode-menu.d.ts +0 -15
- package/dist/components/composer-attachment-chip.d.ts +0 -7
- package/dist/components/composer-banner.d.ts +0 -4
- package/dist/components/composer.d.ts +0 -4
- package/dist/components/conversation-gate-card.d.ts +0 -8
- package/dist/components/conversation-surfaces-provider.d.ts +0 -6
- package/dist/components/copy-text-button.d.ts +0 -5
- package/dist/components/elicitation-receipt-row.d.ts +0 -4
- package/dist/components/human-file-size.d.ts +0 -1
- package/dist/components/icons.d.ts +0 -15
- package/dist/components/lazy-body.d.ts +0 -4
- package/dist/components/markdown/assistant-markdown.d.ts +0 -3
- package/dist/components/markdown/code-block.d.ts +0 -4
- package/dist/components/markdown/highlight.d.ts +0 -1
- package/dist/components/markdown/markdown-structure.d.ts +0 -16
- package/dist/components/markdown/memoized-blocks.d.ts +0 -6
- package/dist/components/markdown/paced-assistant-markdown.d.ts +0 -4
- package/dist/components/markdown/reveal-pacer.d.ts +0 -20
- package/dist/components/markdown/shiki-highlighter.d.ts +0 -1
- package/dist/components/markdown/streaming-repair.d.ts +0 -1
- package/dist/components/markdown/use-highlighted-html.d.ts +0 -1
- package/dist/components/markdown/use-paced-reveal.d.ts +0 -5
- package/dist/components/memory-updated-footer.d.ts +0 -4
- package/dist/components/message-list-row.d.ts +0 -13
- package/dist/components/message-list-slots.d.ts +0 -25
- package/dist/components/message-list-slots.js +0 -1
- package/dist/components/message-list.d.ts +0 -23
- package/dist/components/model-picker-chip.d.ts +0 -1
- package/dist/components/model-picker-effort.d.ts +0 -4
- package/dist/components/model-picker-panels.d.ts +0 -22
- package/dist/components/notice-banner.d.ts +0 -8
- package/dist/components/operation-icons.d.ts +0 -19
- package/dist/components/pretty-print.d.ts +0 -1
- package/dist/components/primitives/autofocus.d.ts +0 -1
- package/dist/components/primitives/button.d.ts +0 -10
- package/dist/components/primitives/cx.d.ts +0 -1
- package/dist/components/primitives/dialog.d.ts +0 -7
- package/dist/components/primitives/disclosure.d.ts +0 -22
- package/dist/components/primitives/file-input.d.ts +0 -5
- package/dist/components/primitives/floating-panel.d.ts +0 -15
- package/dist/components/primitives/kbd.d.ts +0 -2
- package/dist/components/primitives/sheet.d.ts +0 -11
- package/dist/components/primitives/sheet.js +0 -18
- package/dist/components/primitives/textarea.d.ts +0 -7
- package/dist/components/primitives/use-dock-reflow.d.ts +0 -2
- package/dist/components/primitives/use-swipe-dismiss.d.ts +0 -17
- package/dist/components/provider-chip.d.ts +0 -8
- package/dist/components/question-panel-answers.d.ts +0 -29
- package/dist/components/question-panel-footer.d.ts +0 -9
- package/dist/components/question-panel.d.ts +0 -4
- package/dist/components/reasoning-row.d.ts +0 -4
- package/dist/components/receipt-rows.d.ts +0 -3
- package/dist/components/run-status-announcer.d.ts +0 -5
- package/dist/components/scroll-follow-guards.d.ts +0 -1
- package/dist/components/served-suggestions.d.ts +0 -3
- package/dist/components/slot-boundary.d.ts +0 -11
- package/dist/components/standing-poll.d.ts +0 -1
- package/dist/components/streaming-states.d.ts +0 -12
- package/dist/components/subagent-count-pill.d.ts +0 -8
- package/dist/components/subagent-current-work.d.ts +0 -6
- package/dist/components/subagent-delegation-surface.d.ts +0 -9
- package/dist/components/subagent-delivery-divider.d.ts +0 -5
- package/dist/components/subagent-drill-in.d.ts +0 -8
- package/dist/components/subagent-execution-work.d.ts +0 -3
- package/dist/components/subagent-group-row.d.ts +0 -26
- package/dist/components/subagent-preview-popover.d.ts +0 -8
- package/dist/components/subscription-connect-arms.d.ts +0 -25
- package/dist/components/subscription-connect-flow.d.ts +0 -60
- package/dist/components/subscription-connected-standing.d.ts +0 -16
- package/dist/components/subscription-plan-notice.d.ts +0 -1
- package/dist/components/subscription-recheck.d.ts +0 -10
- package/dist/components/surface-boundary.d.ts +0 -8
- package/dist/components/suspension-surfaces.d.ts +0 -3
- package/dist/components/thread-list.d.ts +0 -16
- package/dist/components/tool-arguments-summary.d.ts +0 -2
- package/dist/components/tool-call-rows.d.ts +0 -10
- package/dist/components/tool-row.d.ts +0 -7
- package/dist/components/tool-view-registry-context.d.ts +0 -3
- package/dist/components/tool-view-slot.d.ts +0 -11
- package/dist/components/tool-views/action-view.d.ts +0 -1
- package/dist/components/tool-views/command-view.d.ts +0 -1
- package/dist/components/tool-views/docs-search-view.d.ts +0 -10
- package/dist/components/tool-views/file-edit-view.d.ts +0 -1
- package/dist/components/tool-views/questions-view.d.ts +0 -1
- package/dist/components/transcript.d.ts +0 -3
- package/dist/components/use-agent-subscriber.d.ts +0 -3
- package/dist/components/use-agent-subscriber.js +0 -13
- package/dist/components/use-answer-list-fold.d.ts +0 -6
- package/dist/components/use-assistant-surface-presence.d.ts +0 -2
- package/dist/components/use-child-replay-stream.d.ts +0 -20
- package/dist/components/use-latest-ref.d.ts +0 -2
- package/dist/components/use-member-toggle-outrank.d.ts +0 -6
- package/dist/components/use-perch-clearance.d.ts +0 -2
- package/dist/components/use-question-panel-keys.d.ts +0 -32
- package/dist/components/use-register-assistant-surface.d.ts +0 -2
- package/dist/components/use-resolved-theme-mode.d.ts +0 -3
- package/dist/components/use-roster-disclosure.d.ts +0 -20
- package/dist/components/use-roster-preview.d.ts +0 -24
- package/dist/components/use-thread-dispatches.d.ts +0 -8
- package/dist/components/use-transcript-folds.d.ts +0 -26
- package/dist/components/user-message.d.ts +0 -6
- package/dist/contract/actions-adapter.js +0 -1
- package/dist/contract/assistant-config.js +0 -1
- package/dist/contract/dispatches.d.ts +0 -15
- package/dist/contract/errors.js +0 -1
- package/dist/contract/identity.js +0 -1
- package/dist/core/activity-title.d.ts +0 -1
- package/dist/core/agent-identity.d.ts +0 -2
- package/dist/core/approval-decision.d.ts +0 -6
- package/dist/core/approval-resolved.d.ts +0 -7
- package/dist/core/assistant-prose.d.ts +0 -2
- package/dist/core/assistant-session-registry.d.ts +0 -51
- package/dist/core/attachment-uploads.d.ts +0 -5
- package/dist/core/block-timing-anchors.d.ts +0 -5
- package/dist/core/companion-drawer-flag.d.ts +0 -4
- package/dist/core/companion-presence.d.ts +0 -7
- package/dist/core/composer-input-state.d.ts +0 -8
- package/dist/core/connection-driver.d.ts +0 -3
- package/dist/core/conversation-adoption.d.ts +0 -13
- package/dist/core/conversation-contract.js +0 -1
- package/dist/core/conversation-publish.d.ts +0 -8
- package/dist/core/conversation-refresh.d.ts +0 -4
- package/dist/core/conversation-send.d.ts +0 -6
- package/dist/core/disposable-subscriber.d.ts +0 -6
- package/dist/core/disposable-subscriber.js +0 -18
- package/dist/core/dock-reflow.d.ts +0 -5
- package/dist/core/elicitation-answers.d.ts +0 -7
- package/dist/core/epoch-sync.d.ts +0 -12
- package/dist/core/error-copy.d.ts +0 -3
- package/dist/core/execution-driver.d.ts +0 -37
- package/dist/core/host-fill.d.ts +0 -1
- package/dist/core/hotkey.d.ts +0 -18
- package/dist/core/identity-pair.d.ts +0 -14
- package/dist/core/idle-recheck.d.ts +0 -3
- package/dist/core/messages-cell.d.ts +0 -11
- package/dist/core/perch-clearance.d.ts +0 -19
- package/dist/core/question-receipt.d.ts +0 -11
- package/dist/core/reasoning-copy.d.ts +0 -2
- package/dist/core/run-folds.d.ts +0 -43
- package/dist/core/run-status.d.ts +0 -4
- package/dist/core/settle-refresh.d.ts +0 -9
- package/dist/core/step-caption.d.ts +0 -2
- package/dist/core/stop-copy.d.ts +0 -1
- package/dist/core/stop-settle.d.ts +0 -5
- package/dist/core/stream-trouble.d.ts +0 -5
- package/dist/core/subagent-brief.d.ts +0 -3
- package/dist/core/subagent-presence.d.ts +0 -10
- package/dist/core/subagent-roster.d.ts +0 -35
- package/dist/core/surface-registry.d.ts +0 -16
- package/dist/core/suspension-queue.d.ts +0 -14
- package/dist/core/tail-slot-pool.d.ts +0 -13
- package/dist/core/time-labels.d.ts +0 -7
- package/dist/core/tool-call-display-anchors.d.ts +0 -11
- package/dist/core/tool-cancel-anchors.d.ts +0 -5
- package/dist/core/tool-decision-anchors.d.ts +0 -6
- package/dist/core/tool-error-anchors.d.ts +0 -5
- package/dist/core/tool-flag-anchors.d.ts +0 -9
- package/dist/core/tool-offload-anchors.d.ts +0 -5
- package/dist/core/tool-outcome.d.ts +0 -9
- package/dist/core/tool-refusal-anchors.d.ts +0 -5
- package/dist/core/tool-result-envelope.d.ts +0 -3
- package/dist/core/tool-sentence-anchors.d.ts +0 -11
- package/dist/core/transcript-lease.d.ts +0 -2
- package/dist/core/turn-failure-copy.d.ts +0 -4
- package/dist/core/turns-backfill.d.ts +0 -14
- package/dist/core/wire-sentence-cap.d.ts +0 -1
- package/dist/generated/serving.d.ts +0 -38
- package/dist/markdown.d.ts +0 -4
- package/dist/markdown.js +0 -4
- package/dist/persistence/execution-ledger.d.ts +0 -7
- package/dist/persistence/panel-mode.d.ts +0 -6
- package/dist/persistence/plan-notice.d.ts +0 -3
- package/dist/reader/accessible-name.d.ts +0 -3
- package/dist/reader/interactivity.d.ts +0 -11
- package/dist/reader/layout-probe.d.ts +0 -29
- package/dist/reader/line-diff.d.ts +0 -1
- package/dist/reader/read-page.d.ts +0 -12
- package/dist/reader/redaction.d.ts +0 -3
- package/dist/reader/render.d.ts +0 -3
- package/dist/reader/roles.d.ts +0 -8
- package/dist/reader/snapshot-compaction.d.ts +0 -5
- package/dist/reader/snapshot-node.d.ts +0 -4
- package/dist/reader/snapshot-root.d.ts +0 -15
- package/dist/reader/snapshot.d.ts +0 -60
- package/dist/reader/visibility.d.ts +0 -8
- package/dist/scroll.d.ts +0 -1
- package/dist/scroll.js +0 -1
- package/dist/transcript-ui.d.ts +0 -15
- package/dist/transcript-ui.js +0 -8
- package/dist/transcript.d.ts +0 -43
- package/dist/transcript.js +0 -38
- package/dist/transport/actions-adapter.d.ts +0 -4
- package/dist/transport/door-budget.d.ts +0 -4
- package/dist/transport/serving-api.d.ts +0 -33
- package/dist/transport/serving-fetch.d.ts +0 -11
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ApprovalCardModel } from "../core/approval-inbox.js";
|
|
2
|
-
import { type RunFoldRow } from "../core/run-folds.js";
|
|
3
|
-
import type { ToolRowSlot } from "./message-list-slots.js";
|
|
4
|
-
export declare function ActivityRail({ fold, cards, turnLive, inCurrentTurn, identityToken, decisionSurfacesInShelf, toolRow, }: {
|
|
5
|
-
fold: RunFoldRow;
|
|
6
|
-
cards: readonly ApprovalCardModel[];
|
|
7
|
-
turnLive: boolean;
|
|
8
|
-
inCurrentTurn: boolean;
|
|
9
|
-
identityToken: string;
|
|
10
|
-
decisionSurfacesInShelf: boolean;
|
|
11
|
-
toolRow?: ToolRowSlot;
|
|
12
|
-
}): import("react").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
export declare function ActivityShelf({ suspension, }: {
|
|
3
|
-
suspension?: ReactNode;
|
|
4
|
-
}): import("react").JSX.Element;
|
|
5
|
-
export declare function ComposerActivityOverlay({ activity, }: {
|
|
6
|
-
activity?: ReactNode;
|
|
7
|
-
}): import("react").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type AgentIdentityRegister = "primary" | "subagent";
|
|
2
|
-
export declare function AgentIdentityMark({ register, variantIndex, size, className, }: {
|
|
3
|
-
register: AgentIdentityRegister;
|
|
4
|
-
variantIndex?: number;
|
|
5
|
-
size?: "sm" | "md" | "fill";
|
|
6
|
-
className?: string;
|
|
7
|
-
}): import("react").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type CSSProperties, type ReactNode } from "react";
|
|
2
|
-
import type { AssistantThemeMode } from "../appearance/theme.js";
|
|
3
|
-
import type { AssistantSuggestionInput } from "./conversation-view.js";
|
|
4
|
-
export interface AssistantRootProps {
|
|
5
|
-
style?: CSSProperties;
|
|
6
|
-
"data-tf-theme"?: AssistantThemeMode;
|
|
7
|
-
}
|
|
8
|
-
export interface AssistantAppearanceValue {
|
|
9
|
-
rootProps: AssistantRootProps;
|
|
10
|
-
companionMark: ReactNode | null;
|
|
11
|
-
suggestions: readonly AssistantSuggestionInput[] | null;
|
|
12
|
-
}
|
|
13
|
-
export declare const AssistantAppearanceContext: import("react").Context<AssistantAppearanceValue | null>;
|
|
14
|
-
export declare function useAssistantAppearance(): AssistantAppearanceValue;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ApprovalCardModel } from "../core/approval-inbox.js";
|
|
2
|
-
export declare const APPROVED_NOTE = "Approved";
|
|
3
|
-
export declare const TRUSTED_NOTE = "Approved \u2014 the assistant won't ask about this again in this conversation.";
|
|
4
|
-
export declare const DENIED_NOTE = "Not approved \u2014 the assistant has been told.";
|
|
5
|
-
export declare function ApprovalCard({ card }: {
|
|
6
|
-
card: ApprovalCardModel;
|
|
7
|
-
}): import("react").JSX.Element;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { AbstractAgent } from "@ag-ui/client";
|
|
2
|
-
import { type ComponentType, type ReactNode } from "react";
|
|
3
|
-
import type { ApprovalCardModel } from "../core/approval-inbox.js";
|
|
4
|
-
import { type MarkerBoundaries, type TranscriptRow } from "../core/transcript-rows.js";
|
|
5
|
-
import type { TurnAttachment } from "../contract/threads.js";
|
|
6
|
-
import { type MessageViewSlot, type ToolRowSlot, type TranscriptMarkerProps } from "./message-list.js";
|
|
7
|
-
interface TranscriptSlotProps {
|
|
8
|
-
scrollClassName?: string;
|
|
9
|
-
messageView?: MessageViewSlot;
|
|
10
|
-
toolRow?: ToolRowSlot;
|
|
11
|
-
input?: ReactNode;
|
|
12
|
-
welcomeScreen?: ReactNode;
|
|
13
|
-
threadList?: ReactNode;
|
|
14
|
-
}
|
|
15
|
-
export interface AgentTranscriptSource extends TranscriptSlotProps {
|
|
16
|
-
agent: AbstractAgent;
|
|
17
|
-
onStreamError: (error: Error) => void;
|
|
18
|
-
markers?: ComponentType<TranscriptMarkerProps>;
|
|
19
|
-
markerBoundaries?: MarkerBoundaries;
|
|
20
|
-
resumeAnchoredIds?: ReadonlySet<string>;
|
|
21
|
-
deliveryAnchoredIds?: ReadonlySet<string>;
|
|
22
|
-
turnAttachments?: ReadonlyMap<string, TurnAttachment[]>;
|
|
23
|
-
frameClaimsLiveness?: boolean;
|
|
24
|
-
rows?: never;
|
|
25
|
-
cards?: never;
|
|
26
|
-
live?: never;
|
|
27
|
-
turnOpen?: never;
|
|
28
|
-
decisionSurfacesInShelf?: never;
|
|
29
|
-
}
|
|
30
|
-
export interface RowsTranscriptSource extends TranscriptSlotProps {
|
|
31
|
-
rows: readonly TranscriptRow[];
|
|
32
|
-
cards?: readonly ApprovalCardModel[];
|
|
33
|
-
live?: boolean;
|
|
34
|
-
turnOpen?: boolean;
|
|
35
|
-
decisionSurfacesInShelf?: boolean;
|
|
36
|
-
agent?: never;
|
|
37
|
-
onStreamError?: never;
|
|
38
|
-
markers?: never;
|
|
39
|
-
markerBoundaries?: never;
|
|
40
|
-
resumeAnchoredIds?: never;
|
|
41
|
-
deliveryAnchoredIds?: never;
|
|
42
|
-
turnAttachments?: never;
|
|
43
|
-
frameClaimsLiveness?: never;
|
|
44
|
-
}
|
|
45
|
-
export type AssistantTranscriptProps = AgentTranscriptSource | RowsTranscriptSource;
|
|
46
|
-
export declare function AssistantTranscript(props: AssistantTranscriptProps): import("react").JSX.Element;
|
|
47
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
type ChildStatus = "running" | "failed" | "finished";
|
|
3
|
-
export declare function ChildTranscriptPanel({ threadId, childSessionId, variantIndex, opener, onBack, }: {
|
|
4
|
-
threadId: string;
|
|
5
|
-
childSessionId: string;
|
|
6
|
-
variantIndex?: number;
|
|
7
|
-
opener: HTMLElement | null;
|
|
8
|
-
onBack: () => void;
|
|
9
|
-
}): import("react").JSX.Element;
|
|
10
|
-
export declare function ChildTranscriptPreview({ threadId, childSessionId, variantIndex, }: {
|
|
11
|
-
threadId: string;
|
|
12
|
-
childSessionId: string;
|
|
13
|
-
variantIndex?: number;
|
|
14
|
-
}): import("react").JSX.Element;
|
|
15
|
-
export declare function ChildTranscriptPreviewFrame({ label, status, duration, variantIndex, children, }: {
|
|
16
|
-
label: string;
|
|
17
|
-
status: ChildStatus;
|
|
18
|
-
duration?: string | null;
|
|
19
|
-
variantIndex?: number;
|
|
20
|
-
children: ReactNode;
|
|
21
|
-
}): import("react").JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function CompanionDrawerBody(): import("react").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { PanelDock } from "../persistence/panel-mode.js";
|
|
2
|
-
export declare function CompanionDrawer({ open, exiting, focusOnOpen, onOpenChange, corner, dock, onDockChange, }: {
|
|
3
|
-
open: boolean;
|
|
4
|
-
focusOnOpen: boolean;
|
|
5
|
-
exiting: boolean;
|
|
6
|
-
onOpenChange: (open: boolean) => void;
|
|
7
|
-
corner: "bottom-right" | "bottom-left";
|
|
8
|
-
dock: PanelDock;
|
|
9
|
-
onDockChange: ((dock: PanelDock) => void) | null;
|
|
10
|
-
}): import("react").JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type ComponentProps, type ReactNode, type RefObject } from "react";
|
|
2
|
-
import { TfButton } from "./primitives/button.js";
|
|
3
|
-
export declare function HeaderDisclosureTrigger({ menuId, open, onOpenChange, triggerRef, children, ...buttonProps }: {
|
|
4
|
-
menuId: string;
|
|
5
|
-
open: boolean;
|
|
6
|
-
onOpenChange: (open: boolean) => void;
|
|
7
|
-
triggerRef: RefObject<HTMLButtonElement | null>;
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
} & Omit<ComponentProps<typeof TfButton>, "onClick" | "onKeyDown" | "ref">): import("react").JSX.Element;
|
|
10
|
-
export declare function HeaderDisclosureMenu({ id, onClose, triggerRef, triggerId, "aria-label": ariaLabel, className, insetFromSurfaceTop, autoFocusFirstButton, children, }: {
|
|
11
|
-
id: string;
|
|
12
|
-
onClose: () => void;
|
|
13
|
-
triggerRef?: RefObject<HTMLButtonElement | null>;
|
|
14
|
-
triggerId?: string;
|
|
15
|
-
"aria-label": string;
|
|
16
|
-
className?: string;
|
|
17
|
-
insetFromSurfaceTop?: boolean;
|
|
18
|
-
autoFocusFirstButton?: boolean;
|
|
19
|
-
children: ReactNode;
|
|
20
|
-
}): import("react").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from "react";
|
|
2
|
-
export declare function CompanionHeaderTitle({ menuId, open, onOpenChange, triggerRef, fallbackTitle, }: {
|
|
3
|
-
menuId: string;
|
|
4
|
-
open: boolean;
|
|
5
|
-
onOpenChange: (open: boolean) => void;
|
|
6
|
-
triggerRef: RefObject<HTMLButtonElement | null>;
|
|
7
|
-
fallbackTitle?: string;
|
|
8
|
-
}): import("react").JSX.Element;
|
|
9
|
-
export declare function CompanionHistoryMenu({ id, onClose, triggerRef, triggerId, insetFromSurfaceTop, }: {
|
|
10
|
-
id: string;
|
|
11
|
-
onClose: () => void;
|
|
12
|
-
triggerRef?: RefObject<HTMLButtonElement | null>;
|
|
13
|
-
triggerId?: string;
|
|
14
|
-
insetFromSurfaceTop?: boolean;
|
|
15
|
-
}): import("react").JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useState } from "react";
|
|
4
|
-
import { AgentIdentityMark } from "./agent-identity-mark.js";
|
|
5
|
-
const warnedSources = new Set();
|
|
6
|
-
export function CompanionMarkImage({ src }) {
|
|
7
|
-
const [failed, setFailed] = useState(false);
|
|
8
|
-
if (failed) {
|
|
9
|
-
return _jsx(AgentIdentityMark, { register: "primary", size: "fill" });
|
|
10
|
-
}
|
|
11
|
-
return (_jsx("img", { src: src, alt: "", draggable: false, onError: () => {
|
|
12
|
-
if (!warnedSources.has(src)) {
|
|
13
|
-
warnedSources.add(src);
|
|
14
|
-
console.warn(`[teaflask-assistant] companion-mark-src "${src}" did not load; showing the TeaFlask flask instead.`);
|
|
15
|
-
}
|
|
16
|
-
setFailed(true);
|
|
17
|
-
} }));
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function CompanionMark(): import("react").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from "react";
|
|
2
|
-
import type { PanelDock } from "../persistence/panel-mode.js";
|
|
3
|
-
export declare function CompanionModeTrigger({ menuId, open, onOpenChange, triggerRef, }: {
|
|
4
|
-
menuId: string;
|
|
5
|
-
open: boolean;
|
|
6
|
-
onOpenChange: (open: boolean) => void;
|
|
7
|
-
triggerRef: RefObject<HTMLButtonElement | null>;
|
|
8
|
-
}): import("react").JSX.Element;
|
|
9
|
-
export declare function CompanionModeMenu({ id, dock, onSelect, onClose, triggerRef, }: {
|
|
10
|
-
id: string;
|
|
11
|
-
dock: PanelDock;
|
|
12
|
-
onSelect: (dock: PanelDock) => void;
|
|
13
|
-
onClose: () => void;
|
|
14
|
-
triggerRef: RefObject<HTMLButtonElement | null>;
|
|
15
|
-
}): import("react").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ServedAttachmentPolicy } from "../contract/assistant-config.js";
|
|
2
|
-
import { type AttachmentDraft } from "../core/composer-policy.js";
|
|
3
|
-
export declare function ComposerAttachmentChip({ item, onRemove, }: {
|
|
4
|
-
item: AttachmentDraft;
|
|
5
|
-
onRemove: () => void;
|
|
6
|
-
}): import("react").JSX.Element;
|
|
7
|
-
export declare function attachmentAcceptOf(policy: ServedAttachmentPolicy): string | undefined;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import type { AssistantConversationStore } from "../core/conversation-store.js";
|
|
3
|
-
export declare function ConversationSurfacesProvider({ store, children, }: {
|
|
4
|
-
store: AssistantConversationStore;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}): import("react").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function humanFileSize(byteSize: number): string;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare function ComposeIcon(): import("react").JSX.Element;
|
|
2
|
-
export declare function ArrowUpIcon(): import("react").JSX.Element;
|
|
3
|
-
export declare function StopIcon(): import("react").JSX.Element;
|
|
4
|
-
export declare function ChevronDownIcon(): import("react").JSX.Element;
|
|
5
|
-
export declare function MinimizeIcon(): import("react").JSX.Element;
|
|
6
|
-
export declare function SidebarIcon(): import("react").JSX.Element;
|
|
7
|
-
export declare function CheckIcon(): import("react").JSX.Element;
|
|
8
|
-
export declare function CloseIcon(): import("react").JSX.Element;
|
|
9
|
-
export declare function ArrowRightIcon(): import("react").JSX.Element;
|
|
10
|
-
export declare function SearchIcon(): import("react").JSX.Element;
|
|
11
|
-
export declare function FlagIcon(): import("react").JSX.Element;
|
|
12
|
-
export declare function BookIcon(): import("react").JSX.Element;
|
|
13
|
-
export declare function FileIcon(): import("react").JSX.Element;
|
|
14
|
-
export declare function PlusIcon(): import("react").JSX.Element;
|
|
15
|
-
export declare function OpenAiMarkIcon(): import("react").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function highlightToHtml(code: string, language: string): Promise<string | null>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type ComponentType, type ReactNode } from "react";
|
|
2
|
-
import type { Components } from "react-markdown";
|
|
3
|
-
export interface CodeBlockProps {
|
|
4
|
-
code: string;
|
|
5
|
-
language: string | null;
|
|
6
|
-
}
|
|
7
|
-
export declare function preBlockFor(CodeBlock: ComponentType<CodeBlockProps>): Components["pre"];
|
|
8
|
-
export declare function TranscriptLink({ href, children, }: {
|
|
9
|
-
href?: string;
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
}): import("react").JSX.Element;
|
|
12
|
-
export declare function TranscriptImage({ src, alt, title, }: {
|
|
13
|
-
src?: string;
|
|
14
|
-
alt?: string;
|
|
15
|
-
title?: string;
|
|
16
|
-
}): import("react").JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare class RevealPacer {
|
|
2
|
-
private arrived;
|
|
3
|
-
private position;
|
|
4
|
-
private committedAt;
|
|
5
|
-
private ratePerMs;
|
|
6
|
-
private expectedGapMs;
|
|
7
|
-
private lastArrivalAt;
|
|
8
|
-
private calibrated;
|
|
9
|
-
private instant;
|
|
10
|
-
constructor(arrivedLength: number, nowMs: number);
|
|
11
|
-
observe(arrivedLength: number, nowMs: number): void;
|
|
12
|
-
beginDrain(nowMs: number): void;
|
|
13
|
-
revealInstantly(): void;
|
|
14
|
-
revealedLength(nowMs: number): number;
|
|
15
|
-
isCaughtUp(nowMs: number): boolean;
|
|
16
|
-
private _arrivalShrankBelowRevealed;
|
|
17
|
-
private _isStillInTheMountBurst;
|
|
18
|
-
private _foldGapIntoExpectation;
|
|
19
|
-
private _commitRevealedAt;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function highlightWithShiki(code: string, language: string): Promise<string | null>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function repairedStreamingMarkdown(text: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useHighlightedHtml(code: string, language: string | null): string | null;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ApprovalCardModel } from "../core/approval-inbox.js";
|
|
2
|
-
import type { MessageViewSlot, ToolRowSlot } from "./message-list-slots.js";
|
|
3
|
-
import type { DisplayRow } from "./use-transcript-folds.js";
|
|
4
|
-
export declare function Row({ row, cards, turnLive, inCurrentTurn, identityToken, decisionSurfacesInShelf, messageView, toolRow, }: {
|
|
5
|
-
row: DisplayRow;
|
|
6
|
-
cards: readonly ApprovalCardModel[];
|
|
7
|
-
turnLive: boolean;
|
|
8
|
-
inCurrentTurn: boolean;
|
|
9
|
-
identityToken: string;
|
|
10
|
-
decisionSurfacesInShelf: boolean;
|
|
11
|
-
messageView?: MessageViewSlot;
|
|
12
|
-
toolRow?: ToolRowSlot;
|
|
13
|
-
}): import("react").JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
import type { SubagentGroupRow as SubagentGroupRowModel } from "../core/subagent-rows.js";
|
|
3
|
-
import type { ToolCallViewModel } from "../core/tool-call-display.js";
|
|
4
|
-
import type { AssistantTextRow, SubagentDeliveryRow, ToolCallRow, TranscriptBlock, TranscriptRow, UserMessageRow } from "../core/transcript-rows.js";
|
|
5
|
-
export interface TranscriptMarkerProps {
|
|
6
|
-
message: {
|
|
7
|
-
id: string;
|
|
8
|
-
};
|
|
9
|
-
position: "before" | "after";
|
|
10
|
-
}
|
|
11
|
-
export type TranscriptSlotRow = UserMessageRow | AssistantTextRow | SubagentGroupRowModel | SubagentDeliveryRow;
|
|
12
|
-
export interface ToolRowSlotProps {
|
|
13
|
-
row: ToolCallRow;
|
|
14
|
-
view: ToolCallViewModel;
|
|
15
|
-
awaitingInput: boolean;
|
|
16
|
-
}
|
|
17
|
-
export type MessageViewSlot = (row: TranscriptSlotRow) => ReactNode;
|
|
18
|
-
export type ToolRowSlot = (props: ToolRowSlotProps) => ReactNode;
|
|
19
|
-
export type MessageListSource = {
|
|
20
|
-
rows: readonly TranscriptRow[];
|
|
21
|
-
blocks?: never;
|
|
22
|
-
} | {
|
|
23
|
-
blocks: readonly TranscriptBlock[];
|
|
24
|
-
rows?: never;
|
|
25
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type ComponentType, type ReactNode } from "react";
|
|
2
|
-
import type { ApprovalCardModel } from "../core/approval-inbox.js";
|
|
3
|
-
import type { MarkerBoundaries } from "../core/transcript-rows.js";
|
|
4
|
-
import type { MessageListSource, MessageViewSlot, ToolRowSlot, TranscriptMarkerProps } from "./message-list-slots.js";
|
|
5
|
-
export type { MessageListSource, MessageViewSlot, ToolRowSlot, ToolRowSlotProps, TranscriptMarkerProps, TranscriptSlotRow, } from "./message-list-slots.js";
|
|
6
|
-
interface MessageListOptions {
|
|
7
|
-
cards: readonly ApprovalCardModel[];
|
|
8
|
-
decisionSurfacesInShelf?: boolean;
|
|
9
|
-
typing?: boolean;
|
|
10
|
-
identityToken?: string;
|
|
11
|
-
live?: boolean;
|
|
12
|
-
turnOpen?: boolean;
|
|
13
|
-
markers?: ComponentType<TranscriptMarkerProps>;
|
|
14
|
-
markerBoundaries?: MarkerBoundaries;
|
|
15
|
-
turnStartIds?: ReadonlySet<string>;
|
|
16
|
-
frameClaimsLiveness?: boolean;
|
|
17
|
-
emptyFallback?: ReactNode;
|
|
18
|
-
scrollClassName?: string;
|
|
19
|
-
messageView?: MessageViewSlot;
|
|
20
|
-
toolRow?: ToolRowSlot;
|
|
21
|
-
placementHolds?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export declare function MessageList({ cards, typing, live, turnOpen, identityToken, decisionSurfacesInShelf, markers: Markers, markerBoundaries, turnStartIds, frameClaimsLiveness, emptyFallback, scrollClassName, messageView, toolRow, placementHolds, ...source }: MessageListSource & MessageListOptions): import("react").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ModelPickerShelf(): import("react").JSX.Element | null;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { ServedThinkingEffort } from "../contract/assistant-config.js";
|
|
2
|
-
export declare function nearestEffortIn(ladder: readonly ServedThinkingEffort[], effort: ServedThinkingEffort): ServedThinkingEffort | null;
|
|
3
|
-
export declare function displayEffortOf(ladder: readonly ServedThinkingEffort[], effort: ServedThinkingEffort | null, servedDefault: ServedThinkingEffort | null): ServedThinkingEffort | null;
|
|
4
|
-
export declare function effortLabelOf(effort: ServedThinkingEffort): string;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { RefObject } from "react";
|
|
2
|
-
import type { ServedModelChoice, ServedThinkingEffort } from "../contract/assistant-config.js";
|
|
3
|
-
import type { ComposerContract } from "../core/conversation-contract.js";
|
|
4
|
-
export type PickerPanel = "root" | "model" | "effort";
|
|
5
|
-
interface PickerPanelFrame {
|
|
6
|
-
panelRef: RefObject<HTMLDivElement | null>;
|
|
7
|
-
panel: PickerPanel;
|
|
8
|
-
showPanel: (next: PickerPanel) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function ModelPickerRootPanel({ panelRef, panel, currentName, currentEffort, showPanel, }: PickerPanelFrame & {
|
|
11
|
-
currentName: string;
|
|
12
|
-
currentEffort: ServedThinkingEffort | null;
|
|
13
|
-
}): import("react").JSX.Element;
|
|
14
|
-
export declare function ModelPickerServedModelsPanel({ panelRef, panel, menu, currentModelId, modelPick, setModelPick, showPanel, }: PickerPanelFrame & Pick<ComposerContract, "modelPick" | "setModelPick"> & {
|
|
15
|
-
menu: ServedModelChoice;
|
|
16
|
-
currentModelId: string;
|
|
17
|
-
}): import("react").JSX.Element;
|
|
18
|
-
export declare function ModelPickerEffortPanel({ panelRef, panel, ladder, currentEffort, modelPick, setModelPick, showPanel, }: PickerPanelFrame & Pick<ComposerContract, "modelPick" | "setModelPick"> & {
|
|
19
|
-
ladder: readonly ServedThinkingEffort[];
|
|
20
|
-
currentEffort: ServedThinkingEffort | null;
|
|
21
|
-
}): import("react").JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
export declare function NoticeBanner({ children, hook, }: {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
hook?: string;
|
|
5
|
-
}): import("react").JSX.Element;
|
|
6
|
-
export declare function PendingDecisionGapNotice({ onRetry }: {
|
|
7
|
-
onRetry: () => void;
|
|
8
|
-
}): import("react").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
import type { ToolCallState } from "../core/tool-call-display.js";
|
|
3
|
-
import type { ToolCallIcon } from "../core/tool-call-presentation.js";
|
|
4
|
-
export declare function OperationMarkFrame({ status, children, }: {
|
|
5
|
-
status: ToolCallState;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}): import("react").JSX.Element;
|
|
8
|
-
export declare function OperationMark({ icon, status, }: {
|
|
9
|
-
icon: ToolCallIcon;
|
|
10
|
-
status: ToolCallState;
|
|
11
|
-
}): import("react").JSX.Element;
|
|
12
|
-
export declare function OperationGlyph({ icon, className, }: {
|
|
13
|
-
icon: ToolCallIcon;
|
|
14
|
-
className?: string;
|
|
15
|
-
}): import("react").JSX.Element;
|
|
16
|
-
export declare function StatePill({ children, destructive, }: {
|
|
17
|
-
children: string;
|
|
18
|
-
destructive?: boolean;
|
|
19
|
-
}): import("react").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function prettyPrintParameters(parameters: unknown): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function focusAutofocusTarget(surface: HTMLElement, stillShowing: () => boolean): void;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from "react";
|
|
2
|
-
export type TfButtonVariant = "primary" | "ghost" | "send" | "stop" | "icon" | "iconFloating" | "row" | "rowAction" | "rowTouch" | "rowActionTouch" | "prompt" | "bare" | "chip" | "chipQuiet" | "outline" | "answerRow";
|
|
3
|
-
interface TfButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
variant?: TfButtonVariant;
|
|
5
|
-
}
|
|
6
|
-
export declare const TfButton: import("react").ForwardRefExoticComponent<TfButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
export declare function TfLinkButton({ variant, className, children, ...props }: AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
8
|
-
variant?: TfButtonVariant;
|
|
9
|
-
}): import("react").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function cx(...parts: (string | false | null | undefined)[]): string;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type DialogHTMLAttributes } from "react";
|
|
2
|
-
interface TfDialogProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, "open"> {
|
|
3
|
-
open: boolean;
|
|
4
|
-
onOpenChange: (open: boolean) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function TfDialog({ open, onOpenChange, className, children, onPointerDown: onHostPointerDown, ...props }: TfDialogProps): import("react").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
type DisclosureVariant = "framed" | "bare";
|
|
3
|
-
interface DisclosureProps {
|
|
4
|
-
summary: ReactNode;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
variant?: DisclosureVariant;
|
|
7
|
-
open?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
summaryClassName?: string;
|
|
10
|
-
bodyClassName?: string;
|
|
11
|
-
rootDataAttributes?: Record<`data-${string}`, string>;
|
|
12
|
-
}
|
|
13
|
-
interface DisclosureVisualState {
|
|
14
|
-
open: boolean;
|
|
15
|
-
summaryActive: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare function useDisclosureVisualState(): DisclosureVisualState | null;
|
|
18
|
-
export declare function Disclosure({ summary, children, variant, open, className, summaryClassName, bodyClassName, rootDataAttributes, }: DisclosureProps): import("react").JSX.Element;
|
|
19
|
-
export declare function DisclosureChevron({ revealOnInteraction, }?: {
|
|
20
|
-
revealOnInteraction?: boolean;
|
|
21
|
-
}): import("react").JSX.Element;
|
|
22
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
type FloatingPanelCorner = "bottom-right" | "bottom-left";
|
|
3
|
-
type FloatingPanelDock = "floating" | "sidebar";
|
|
4
|
-
interface TfFloatingPanelProps {
|
|
5
|
-
open: boolean;
|
|
6
|
-
onOpenChange: (open: boolean) => void;
|
|
7
|
-
corner?: FloatingPanelCorner;
|
|
8
|
-
dock?: FloatingPanelDock;
|
|
9
|
-
"aria-label": string;
|
|
10
|
-
focusOnOpen: boolean;
|
|
11
|
-
className?: string;
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
}
|
|
14
|
-
export declare function TfFloatingPanel({ open, onOpenChange, corner, dock, focusOnOpen, className, children, ...props }: TfFloatingPanelProps): import("react").JSX.Element;
|
|
15
|
-
export {};
|