@intentic/extension-ui 1.231.0 → 1.232.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -91,6 +91,7 @@ export const useAgentRunPick = m["useAgentRunPick"];
91
91
  export const useAsyncAction = m["useAsyncAction"];
92
92
  export const useCompact = m["useCompact"];
93
93
  export const useDevice = m["useDevice"];
94
+ export const useKeyedDraft = m["useKeyedDraft"];
94
95
  export const useListNavigation = m["useListNavigation"];
95
96
  export const useLoadingReveal = m["useLoadingReveal"];
96
97
  export const useNarrow = m["useNarrow"];
@@ -1,4 +1,4 @@
1
- export { AgentRunButton, type AgentRunChoice, type AgentRunPicker, type ModelPicking, useAgentRunPick, 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, isRenderableImage, Markdown, MarkdownFigure, Modal, type NavGroup, NavRail, NoteEditor, type NoteDraft, type NoteDraftOptions, useNoteDraft, type NoticeModel, type NoticeTone, type NoticeAction, Notice, NoticeStack, Page, PageAction, PageHeader, ScrollFrame, PersonaFace, type PersonaLike, Picker, 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, TIME_WINDOWS, type TimeWindow, timeWindowWords, useCompact, useDevice, useListNavigation, useNow, errorMessage, noticeFrom, noticeOf, useAsyncAction, useNarrow, useRailMemory, useTheme, } from "../../ui/src/index.js";
1
+ export { AgentRunButton, type AgentRunChoice, type AgentRunPicker, type ModelPicking, useAgentRunPick, 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, isRenderableImage, Markdown, 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, 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, TIME_WINDOWS, type TimeWindow, timeWindowWords, useCompact, useDevice, useListNavigation, useNow, errorMessage, noticeFrom, noticeOf, useAsyncAction, useNarrow, useRailMemory, useTheme, } from "../../ui/src/index.js";
2
2
  export { formatBytes, formatDate, formatDateTime, formatDayMonth, formatTime, formatTimestamp, formatTokens, formatWeekdayTime, freshness, timeAgo, } from "./format.js";
3
3
  export type { BarsFigure, BarsFigureItem, DagFigure, DagFigureEdge, DagFigureNode, Figure, FigureAccent, MermaidFigure, StatsFigure, StatsFigureItem, } from "../../ui/src/markdown/index.js";
4
4
  export { default as Checkbox } from "primevue/checkbox";
@@ -7,7 +7,8 @@ export interface TallyItem {
7
7
  readonly pulse?: boolean;
8
8
  }
9
9
  type __VLS_Props = {
10
- items: readonly TallyItem[];
10
+ items?: readonly TallyItem[];
11
+ skeleton?: number;
11
12
  };
12
13
  declare var __VLS_1: {};
13
14
  type __VLS_Slots = {} & {
@@ -0,0 +1,5 @@
1
+ import { type Ref, type WritableComputedRef } from "vue";
2
+ export declare const useKeyedDraft: (selected: Ref<string | undefined>) => {
3
+ draft: WritableComputedRef<string | undefined>;
4
+ hasDraft: (key: string) => boolean;
5
+ };
@@ -39,6 +39,7 @@ export { default as NavRail } from "./components/NavRail.vue";
39
39
  export { type NavGroup } from "./components/navRail.js";
40
40
  export { default as NoteEditor } from "./components/NoteEditor.vue";
41
41
  export { type NoteDraft, type NoteDraftOptions, useNoteDraft } from "./composables/useNoteDraft.js";
42
+ export { useKeyedDraft } from "./composables/useKeyedDraft.js";
42
43
  export { default as Notice } from "./components/Notice.vue";
43
44
  export { default as NoticeStack } from "./components/NoticeStack.vue";
44
45
  export { type NoticeAction, type NoticeModel, type NoticeTone } from "./components/notice.js";
package/names.mjs CHANGED
@@ -84,6 +84,7 @@ export const extensionUiNames = [
84
84
  "useAsyncAction",
85
85
  "useCompact",
86
86
  "useDevice",
87
+ "useKeyedDraft",
87
88
  "useListNavigation",
88
89
  "useLoadingReveal",
89
90
  "useNarrow",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentic/extension-ui",
3
- "version": "1.231.0",
3
+ "version": "1.232.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
@@ -128,6 +128,10 @@ export {
128
128
  type NoteDraft,
129
129
  type NoteDraftOptions,
130
130
  useNoteDraft,
131
+ /* And the map those drafts live in, for the same pair of callers: the lifecycle deliberately does not own
132
+ * the ref (an unsaved edit has to outlive the pane that shows it), so both views had written the same
133
+ * keyed store above it, down to the `undefined` deletes rule the picker's "Unsaved" reads. */
134
+ useKeyedDraft,
131
135
  /* <NoticeStack> and its model ship beside <ConfirmDialog> for the same reason <InfoDialog> does: a view
132
136
  * with several async actions needs somewhere for their failures to land that isn't one action's own row,
133
137
  * and a hand-rolled error strip is the first thing to disagree with the app's about tone and dismissal.