@intentic/extension-ui 1.327.0 → 1.328.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 +9 -0
- package/dist/tone.js +16 -0
- package/dist/types/extension-ui/src/index.d.ts +2 -1
- package/dist/types/extension-ui/src/tone.d.ts +1 -0
- package/dist/types/ui/src/components/feedback/Notice.vue.d.ts +1 -0
- package/dist/types/ui/src/components/feedback/notice.d.ts +5 -4
- package/dist/types/ui/src/components/feedback/statusBadge.d.ts +2 -1
- package/dist/types/ui/src/components/forms/NoteEditor.vue.d.ts +2 -2
- package/dist/types/ui/src/components/primitives/Button.vue.d.ts +8 -1
- package/dist/types/ui/src/components/primitives/button.d.ts +14 -0
- package/dist/types/ui/src/components/rows/row.d.ts +1 -7
- package/dist/types/ui/src/components/sandbox/AgentRunButton.vue.d.ts +3 -0
- package/dist/types/ui/src/index.d.ts +2 -1
- package/dist/types/ui/src/lib/tone.d.ts +15 -0
- package/dist/types/ui/src/lib/tooltip.d.ts +2 -1
- package/dist/types/ui/src/lib/ui.d.ts +40 -12
- package/names.mjs +9 -0
- package/package.json +6 -1
- package/src/index.ts +26 -0
- package/src/tone.ts +19 -0
package/dist/index.js
CHANGED
|
@@ -76,6 +76,7 @@ export const appLink = m["appLink"];
|
|
|
76
76
|
export const browserOwnsClick = m["browserOwnsClick"];
|
|
77
77
|
export const clipboardOf = m["clipboardOf"];
|
|
78
78
|
export const createWorkerCall = m["createWorkerCall"];
|
|
79
|
+
export const diffMark = m["diffMark"];
|
|
79
80
|
export const diffSequence = m["diffSequence"];
|
|
80
81
|
export const errorMessage = m["errorMessage"];
|
|
81
82
|
export const extensionI18n = m["extensionI18n"];
|
|
@@ -113,6 +114,14 @@ export const sinceOf = m["sinceOf"];
|
|
|
113
114
|
export const timeAgo = m["timeAgo"];
|
|
114
115
|
export const timeWindowWords = m["timeWindowWords"];
|
|
115
116
|
export const timeWindows = m["timeWindows"];
|
|
117
|
+
export const toneDot = m["toneDot"];
|
|
118
|
+
export const toneFill = m["toneFill"];
|
|
119
|
+
export const toneHover = m["toneHover"];
|
|
120
|
+
export const toneInk = m["toneInk"];
|
|
121
|
+
export const tonePlate = m["tonePlate"];
|
|
122
|
+
export const toneRim = m["toneRim"];
|
|
123
|
+
export const toneTint = m["toneTint"];
|
|
124
|
+
export const toneWash = m["toneWash"];
|
|
116
125
|
export const ui = m["ui"];
|
|
117
126
|
export const useAgentRunPick = m["useAgentRunPick"];
|
|
118
127
|
export const useAsyncAction = m["useAsyncAction"];
|
package/dist/tone.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Generated by scripts/build.mjs: do not edit.
|
|
2
|
+
// The kit's tone entry point, off the same host bridge as ./index.js.
|
|
3
|
+
const host = globalThis.__intenticHost;
|
|
4
|
+
if (host === undefined) {
|
|
5
|
+
throw new Error("@intentic/extension-ui was loaded outside an intentic host: its helpers come from the app, not from this package.");
|
|
6
|
+
}
|
|
7
|
+
const m = host.modules["@intentic/extension-ui"];
|
|
8
|
+
export const diffMark = m["diffMark"];
|
|
9
|
+
export const toneDot = m["toneDot"];
|
|
10
|
+
export const toneFill = m["toneFill"];
|
|
11
|
+
export const toneHover = m["toneHover"];
|
|
12
|
+
export const toneInk = m["toneInk"];
|
|
13
|
+
export const tonePlate = m["tonePlate"];
|
|
14
|
+
export const toneRim = m["toneRim"];
|
|
15
|
+
export const toneTint = m["toneTint"];
|
|
16
|
+
export const toneWash = m["toneWash"];
|
|
@@ -1,5 +1,6 @@
|
|
|
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, AddressField, 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, SkeletonSnapshot, vSkeletonSource, SplitView, StatStrip, StatusBadge, type StatusVariant, StepSection, timeWindows, type TimeWindow, timeWindowWords, useCompact, useDevice, useListNavigation, useNow, useLatest, messageOr, messageOr as 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, type IconButtonVariants, type TextButtonVariants, type InputVariants, type ChipVariants, type SectionLabelVariants, type ButtonTier, type ButtonTone, Code, CodeField, ConfirmDialog, ContextMenu, OverflowActions, ActionSheet, type ActionItem, CopyButton, AddressField, 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, SkeletonSnapshot, vSkeletonSource, SplitView, StatStrip, StatusBadge, type StatusVariant, StepSection, timeWindows, type TimeWindow, timeWindowWords, useCompact, useDevice, useListNavigation, useNow, useLatest, messageOr, messageOr as errorMessage, noticeFrom, noticeOf, useAsyncAction, useNarrow, useRailMemory, useScrollReset, type StickyTop, useStickyTop, useTheme, } from "../../ui/src/index.js";
|
|
2
2
|
export { formatBytes, formatClock, formatCompact, formatCount, formatDate, formatDateLong, formatDateTime, formatDayMonth, formatDayMonthTime, formatDuration, formatElapsed, formatMoney, formatPercent, formatTime, formatTimestamp, formatTokens, formatWeekdayTime, formatWhen, freshness, timeAgo, } from "./format.js";
|
|
3
|
+
export { type DiffMark, diffMark, type Signal, type TintWeight, type Tone, toneDot, toneFill, toneHover, toneInk, tonePlate, toneRim, toneTint, toneWash, } from "./tone.js";
|
|
3
4
|
export { diffSequence, pairEdits, similarity, wordDiff } from "./diff.js";
|
|
4
5
|
export { createWorkerCall, serveWorkerCall, WorkerCallError } from "./worker.js";
|
|
5
6
|
export { activeLocale, extensionI18n, extensionT } from "./i18n.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type DiffMark, diffMark, type Signal, type TintWeight, type Tone, toneDot, toneFill, toneHover, toneInk, tonePlate, toneRim, toneTint, toneWash, } from "../../ui/src/lib/tone.js";
|
|
@@ -11,11 +11,12 @@ export interface NoticeModel {
|
|
|
11
11
|
readonly action?: NoticeAction;
|
|
12
12
|
readonly key?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare const NOTICE_TONE: Record<NoticeTone, string>;
|
|
15
14
|
export type NoticeSize = "xs" | "sm" | "md" | "lg";
|
|
16
|
-
export declare const
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
export declare const noticeLook: (tone: NoticeTone, size: NoticeSize, actions: boolean, strip?: boolean) => {
|
|
16
|
+
readonly box: (own?: string) => string;
|
|
17
|
+
readonly icon: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const noticeBox: (tone: NoticeTone, size: NoticeSize, actions: boolean, strip?: boolean) => string;
|
|
19
20
|
export declare const NOTICE_ICON: Record<NoticeTone, IconName>;
|
|
20
21
|
export declare const noticeKey: (notice: NoticeModel) => string;
|
|
21
22
|
export declare const rankNotices: (notices: readonly NoticeModel[]) => readonly NoticeModel[];
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Tone } from "../../lib/tone.js";
|
|
2
|
+
export type StatusVariant = Tone;
|
|
@@ -9,7 +9,7 @@ type __VLS_Props = {
|
|
|
9
9
|
verb?: string;
|
|
10
10
|
paged?: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare var __VLS_8: {}, __VLS_11: {}, __VLS_19: {}, __VLS_22: {}, __VLS_46: {}, __VLS_64: {}, __VLS_66: {},
|
|
12
|
+
declare var __VLS_8: {}, __VLS_11: {}, __VLS_19: {}, __VLS_22: {}, __VLS_46: {}, __VLS_64: {}, __VLS_66: {}, __VLS_93: {};
|
|
13
13
|
type __VLS_Slots = {} & {
|
|
14
14
|
lead?: (props: typeof __VLS_8) => any;
|
|
15
15
|
} & {
|
|
@@ -25,7 +25,7 @@ type __VLS_Slots = {} & {
|
|
|
25
25
|
} & {
|
|
26
26
|
confirm?: (props: typeof __VLS_66) => any;
|
|
27
27
|
} & {
|
|
28
|
-
default?: (props: typeof
|
|
28
|
+
default?: (props: typeof __VLS_93) => any;
|
|
29
29
|
};
|
|
30
30
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
31
|
cancel: () => any;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { type ButtonTier, type ButtonTone } from "./button.js";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
tier?: ButtonTier;
|
|
4
|
+
tone?: ButtonTone;
|
|
5
|
+
gilded?: boolean;
|
|
6
|
+
thumb?: boolean;
|
|
7
|
+
};
|
|
1
8
|
declare var __VLS_12: string, __VLS_13: any, __VLS_22: {
|
|
2
9
|
class: string;
|
|
3
10
|
}, __VLS_25: {}, __VLS_32: {};
|
|
@@ -10,7 +17,7 @@ type __VLS_Slots = {} & {
|
|
|
10
17
|
} & {
|
|
11
18
|
default?: (props: typeof __VLS_32) => any;
|
|
12
19
|
};
|
|
13
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
20
|
+
declare const __VLS_base: 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>;
|
|
14
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
22
|
declare const _default: typeof __VLS_export;
|
|
16
23
|
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type ButtonTier = `loud` | `accent` | `boring` | `quiet`;
|
|
2
|
+
export type ButtonTone = `accent` | `danger` | `warning` | `success`;
|
|
3
|
+
export interface ButtonLook {
|
|
4
|
+
readonly tier?: ButtonTier | undefined;
|
|
5
|
+
readonly tone?: ButtonTone | undefined;
|
|
6
|
+
readonly gilded?: boolean | undefined;
|
|
7
|
+
readonly thumb?: boolean | undefined;
|
|
8
|
+
}
|
|
9
|
+
export interface PrimeLook {
|
|
10
|
+
readonly severity: string | undefined;
|
|
11
|
+
readonly text: boolean;
|
|
12
|
+
readonly class: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const primeLook: ({ tier, tone, gilded, thumb }: ButtonLook) => PrimeLook;
|
|
@@ -33,13 +33,7 @@ export declare const ROW_TIERS: {
|
|
|
33
33
|
readonly mark: 18;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
-
export declare const ROW_TONES:
|
|
37
|
-
readonly default: "text-muted";
|
|
38
|
-
readonly danger: "text-danger";
|
|
39
|
-
readonly warning: "text-warning";
|
|
40
|
-
readonly success: "text-success";
|
|
41
|
-
readonly info: "text-link";
|
|
42
|
-
};
|
|
36
|
+
export declare const ROW_TONES: Record<RowTone, string>;
|
|
43
37
|
export declare const ROW_TOGGLE_GAPS: {
|
|
44
38
|
readonly comfortable: "gap-2.5";
|
|
45
39
|
readonly compact: "gap-2";
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import type { ButtonTier, ButtonTone } from "../primitives/button.js";
|
|
1
2
|
import type { AgentRunPicker } from "../../composables/useAgentRunPick.js";
|
|
2
3
|
import type { IconName } from "../../icons/iconSets.js";
|
|
3
4
|
import type { TooltipValue } from "../../lib/tooltip.js";
|
|
4
5
|
type __VLS_Props = {
|
|
5
6
|
label: string;
|
|
6
7
|
picker: AgentRunPicker;
|
|
8
|
+
tier?: ButtonTier | undefined;
|
|
9
|
+
tone?: ButtonTone | undefined;
|
|
7
10
|
severity?: string | undefined;
|
|
8
11
|
size?: string;
|
|
9
12
|
text?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { clipboardOf } from "./lib/clipboard.js";
|
|
2
2
|
export { appLink, browserOwnsClick } from "./lib/link.js";
|
|
3
3
|
export { openForwardedPort } from "./lib/portPreview.js";
|
|
4
|
-
export { ui } from "./lib/ui.js";
|
|
4
|
+
export { type ChipVariants, type IconButtonVariants, type InputVariants, type SectionLabelVariants, type TextButtonVariants, ui } from "./lib/ui.js";
|
|
5
5
|
export { default as AgentRunButton } from "./components/sandbox/AgentRunButton.vue";
|
|
6
6
|
export { type AgentRunAttempt, type AgentRunChoice, type AgentRunPicker, type ModelPicking, useAgentRunPick } from "./composables/useAgentRunPick.js";
|
|
7
7
|
export { type FixStanceLook, fixStanceLook } from "./composables/fixStanceLook.js";
|
|
@@ -11,6 +11,7 @@ export { default as BarChart } from "./components/charts/BarChart.vue";
|
|
|
11
11
|
export { default as BottomSheet } from "./components/layout/BottomSheet.vue";
|
|
12
12
|
export { default as BrandMark } from "./components/brand/BrandMark.vue";
|
|
13
13
|
export { default as Button } from "./components/primitives/Button.vue";
|
|
14
|
+
export { type ButtonTier, type ButtonTone } from "./components/primitives/button.js";
|
|
14
15
|
export { vAction } from "./lib/pressAction.js";
|
|
15
16
|
export { default as Card } from "./components/layout/Card.vue";
|
|
16
17
|
export { default as ChangeStatusMark } from "./components/feedback/ChangeStatusMark.vue";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type Tone = `success` | `warning` | `danger` | `info` | `neutral` | `primary`;
|
|
2
|
+
export type Signal = Exclude<Tone, `neutral` | `primary`>;
|
|
3
|
+
export type TintWeight = `strong` | `soft`;
|
|
4
|
+
type ClassArg = string | false | null | undefined;
|
|
5
|
+
export declare const toneInk: (tone: Tone, ...classes: ClassArg[]) => string;
|
|
6
|
+
export declare const toneDot: (tone: Tone, ...classes: ClassArg[]) => string;
|
|
7
|
+
export declare const toneWash: (tone: Tone, ...classes: ClassArg[]) => string;
|
|
8
|
+
export declare const toneTint: (tone: Tone, weight?: TintWeight, ...classes: ClassArg[]) => string;
|
|
9
|
+
export declare const toneRim: (tone: Tone, weight?: TintWeight, ...classes: ClassArg[]) => string;
|
|
10
|
+
export declare const toneFill: (tone: Tone, weight?: TintWeight, ...classes: ClassArg[]) => string;
|
|
11
|
+
export declare const tonePlate: (tone: Tone, ...classes: ClassArg[]) => string;
|
|
12
|
+
export declare const toneHover: (tone: Tone, ...classes: ClassArg[]) => string;
|
|
13
|
+
export type DiffMark = `added` | `removed` | `changed`;
|
|
14
|
+
export declare const diffMark: (mark: DiffMark, as?: `inline` | `rule`, ...classes: ClassArg[]) => string;
|
|
15
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Directive } from "vue";
|
|
2
2
|
import { type Side } from "./anchorPlacement.js";
|
|
3
|
+
import type { Signal } from "./tone.js";
|
|
3
4
|
type Modifier = Side | "overflow" | "lines";
|
|
4
|
-
export type TipTone =
|
|
5
|
+
export type TipTone = Signal;
|
|
5
6
|
export interface TipRow {
|
|
6
7
|
readonly label: string;
|
|
7
8
|
readonly value: string | number;
|
|
@@ -1,14 +1,42 @@
|
|
|
1
|
+
export type ClassArg = string | false | null | undefined;
|
|
2
|
+
export type Recipe<V> = (variants?: V | ClassArg, ...classes: ClassArg[]) => string;
|
|
3
|
+
export interface IconButtonVariants {
|
|
4
|
+
size?: `xs` | `sm` | `md` | `lg` | `xl`;
|
|
5
|
+
tone?: `muted` | `subtle` | `danger`;
|
|
6
|
+
round?: boolean;
|
|
7
|
+
on?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface TextButtonVariants {
|
|
10
|
+
tone?: `link` | `quiet` | `subtle` | `danger`;
|
|
11
|
+
size?: `xs` | `sm`;
|
|
12
|
+
flush?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface InputVariants {
|
|
15
|
+
size?: `md` | `sm` | `inline`;
|
|
16
|
+
}
|
|
17
|
+
export interface ChipVariants {
|
|
18
|
+
on?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface SectionLabelVariants {
|
|
21
|
+
size?: `sm` | `xs`;
|
|
22
|
+
tone?: `neutral` | `danger` | `warning` | `success`;
|
|
23
|
+
}
|
|
24
|
+
export interface TabVariants {
|
|
25
|
+
active?: boolean;
|
|
26
|
+
}
|
|
1
27
|
export declare const ui: {
|
|
2
|
-
iconButton:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
28
|
+
iconButton: Recipe<IconButtonVariants>;
|
|
29
|
+
textButton: Recipe<TextButtonVariants>;
|
|
30
|
+
linkButton: (...classes: ClassArg[]) => string;
|
|
31
|
+
textAction: (...classes: ClassArg[]) => string;
|
|
32
|
+
input: Recipe<InputVariants>;
|
|
33
|
+
inputSm: (...classes: ClassArg[]) => string;
|
|
34
|
+
inputInline: (...classes: ClassArg[]) => string;
|
|
35
|
+
emptyState: Recipe<object>;
|
|
36
|
+
addTile: Recipe<object>;
|
|
37
|
+
chip: Recipe<ChipVariants>;
|
|
38
|
+
overlayChip: Recipe<object>;
|
|
39
|
+
sectionLabel: Recipe<SectionLabelVariants>;
|
|
40
|
+
sectionLabelSm: (...classes: ClassArg[]) => string;
|
|
41
|
+
tab: (active: boolean | TabVariants, ...classes: ClassArg[]) => string;
|
|
14
42
|
};
|
package/names.mjs
CHANGED
|
@@ -16,6 +16,15 @@ export const extensionUiNames = [
|
|
|
16
16
|
"browserOwnsClick",
|
|
17
17
|
"appLink",
|
|
18
18
|
"ui",
|
|
19
|
+
"toneInk",
|
|
20
|
+
"toneDot",
|
|
21
|
+
"toneWash",
|
|
22
|
+
"toneTint",
|
|
23
|
+
"toneRim",
|
|
24
|
+
"toneFill",
|
|
25
|
+
"tonePlate",
|
|
26
|
+
"toneHover",
|
|
27
|
+
"diffMark",
|
|
19
28
|
"Code",
|
|
20
29
|
"CodeField",
|
|
21
30
|
"ConfirmDialog",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentic/extension-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.328.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",
|
|
@@ -36,6 +36,11 @@
|
|
|
36
36
|
"types": "./dist/types/extension-ui/src/format.d.ts",
|
|
37
37
|
"default": "./dist/format.js"
|
|
38
38
|
},
|
|
39
|
+
"./tone": {
|
|
40
|
+
"@intentic/src": "./src/tone.ts",
|
|
41
|
+
"types": "./dist/types/extension-ui/src/tone.d.ts",
|
|
42
|
+
"default": "./dist/tone.js"
|
|
43
|
+
},
|
|
39
44
|
"./worker": {
|
|
40
45
|
"@intentic/src": "./src/worker.ts",
|
|
41
46
|
"types": "./dist/types/extension-ui/src/worker.d.ts",
|
package/src/index.ts
CHANGED
|
@@ -41,7 +41,16 @@ export {
|
|
|
41
41
|
// `ChangeStatusMark` is fixed-width, so a column of paths stays aligned whatever status letter lands in it.
|
|
42
42
|
ChangeStatusMark,
|
|
43
43
|
type ChangeStatus,
|
|
44
|
+
// The kit's recipes: a variant is chosen by name (`ui.iconButton({ size: "lg", tone: "danger" })`), never by
|
|
45
|
+
// overriding the recipe's own classes.
|
|
44
46
|
ui,
|
|
47
|
+
type IconButtonVariants,
|
|
48
|
+
type TextButtonVariants,
|
|
49
|
+
type InputVariants,
|
|
50
|
+
type ChipVariants,
|
|
51
|
+
type SectionLabelVariants,
|
|
52
|
+
type ButtonTier,
|
|
53
|
+
type ButtonTone,
|
|
45
54
|
Code,
|
|
46
55
|
// The editable counterpart to `Code`: syntax-coloured text with a caret in it.
|
|
47
56
|
CodeField,
|
|
@@ -197,6 +206,23 @@ export {
|
|
|
197
206
|
freshness,
|
|
198
207
|
timeAgo,
|
|
199
208
|
} from "./format.js";
|
|
209
|
+
// Also reachable as `@intentic/extension-ui/tone`: the one tone vocabulary (ink, dot, wash, tint, plate, hover, and a
|
|
210
|
+
// diff's three marks), so an extension's "danger" is the shell's.
|
|
211
|
+
export {
|
|
212
|
+
type DiffMark,
|
|
213
|
+
diffMark,
|
|
214
|
+
type Signal,
|
|
215
|
+
type TintWeight,
|
|
216
|
+
type Tone,
|
|
217
|
+
toneDot,
|
|
218
|
+
toneFill,
|
|
219
|
+
toneHover,
|
|
220
|
+
toneInk,
|
|
221
|
+
tonePlate,
|
|
222
|
+
toneRim,
|
|
223
|
+
toneTint,
|
|
224
|
+
toneWash,
|
|
225
|
+
} from "./tone.js";
|
|
200
226
|
// Also reachable as `@intentic/extension-ui/diff`: the edit scripts a viewer marks two versions of a file with.
|
|
201
227
|
export { diffSequence, pairEdits, similarity, wordDiff } from "./diff.js";
|
|
202
228
|
// Also reachable as `@intentic/extension-ui/worker`: work moved off the page, with the page as its fallback.
|
package/src/tone.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// The kit's tone vocabulary, reachable without the component barrel: `index.ts` pulls in every .vue component, which
|
|
2
|
+
// breaks an extension's node-environment tests, and a status table in a plain module (a pipeline's stage colours) is
|
|
3
|
+
// exactly what such a test reads. A source-level door for in-repo extensions and their tests; a git-installed bundle
|
|
4
|
+
// resolves through the import map instead, which carries the same names.
|
|
5
|
+
export {
|
|
6
|
+
type DiffMark,
|
|
7
|
+
diffMark,
|
|
8
|
+
type Signal,
|
|
9
|
+
type TintWeight,
|
|
10
|
+
type Tone,
|
|
11
|
+
toneDot,
|
|
12
|
+
toneFill,
|
|
13
|
+
toneHover,
|
|
14
|
+
toneInk,
|
|
15
|
+
tonePlate,
|
|
16
|
+
toneRim,
|
|
17
|
+
toneTint,
|
|
18
|
+
toneWash,
|
|
19
|
+
} from "@intentic/ui/tone";
|