@intentic/extension-ui 1.301.0 → 1.303.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/format.js CHANGED
@@ -9,10 +9,12 @@ export const formatBytes = m["formatBytes"];
9
9
  export const formatDate = m["formatDate"];
10
10
  export const formatDateTime = m["formatDateTime"];
11
11
  export const formatDayMonth = m["formatDayMonth"];
12
+ export const formatDayMonthTime = m["formatDayMonthTime"];
12
13
  export const formatDuration = m["formatDuration"];
13
14
  export const formatTime = m["formatTime"];
14
15
  export const formatTimestamp = m["formatTimestamp"];
15
16
  export const formatTokens = m["formatTokens"];
16
17
  export const formatWeekdayTime = m["formatWeekdayTime"];
18
+ export const formatWhen = m["formatWhen"];
17
19
  export const freshness = m["freshness"];
18
20
  export const timeAgo = m["timeAgo"];
package/dist/index.js CHANGED
@@ -78,11 +78,13 @@ export const formatBytes = m["formatBytes"];
78
78
  export const formatDate = m["formatDate"];
79
79
  export const formatDateTime = m["formatDateTime"];
80
80
  export const formatDayMonth = m["formatDayMonth"];
81
+ export const formatDayMonthTime = m["formatDayMonthTime"];
81
82
  export const formatDuration = m["formatDuration"];
82
83
  export const formatTime = m["formatTime"];
83
84
  export const formatTimestamp = m["formatTimestamp"];
84
85
  export const formatTokens = m["formatTokens"];
85
86
  export const formatWeekdayTime = m["formatWeekdayTime"];
87
+ export const formatWhen = m["formatWhen"];
86
88
  export const freshness = m["freshness"];
87
89
  export const isRenderableImage = m["isRenderableImage"];
88
90
  export const noticeFrom = m["noticeFrom"];
@@ -1 +1 @@
1
- export { formatBytes, formatDate, formatDateTime, formatDayMonth, formatDuration, formatTime, formatTimestamp, formatTokens, formatWeekdayTime, freshness, timeAgo, } from "../../ui/src/lib/format.js";
1
+ export { formatBytes, formatDate, formatDateLong, formatDateTime, formatDayMonth, formatDayMonthTime, formatDuration, formatTime, formatTimestamp, formatTokens, formatWeekdayTime, formatWhen, freshness, timeAgo, } from "../../ui/src/lib/format.js";
@@ -1,5 +1,5 @@
1
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, isRenderableImage, 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, errorMessage, noticeFrom, noticeOf, useAsyncAction, useNarrow, useRailMemory, useScrollReset, type StickyTop, useStickyTop, useTheme, } from "../../ui/src/index.js";
2
- export { formatBytes, formatDate, formatDateTime, formatDayMonth, formatDuration, formatTime, formatTimestamp, formatTokens, formatWeekdayTime, freshness, timeAgo, } from "./format.js";
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 { activeLocale, extensionT } from "./i18n.js";
5
5
  export type { BarsFigure, BarsFigureItem, DagFigure, DagFigureEdge, DagFigureNode, Figure, FigureAccent, MermaidFigure, StatsFigure, StatsFigureItem, } from "../../ui/src/markdown/index.js";
@@ -4,12 +4,15 @@ export declare const formatTokens: (tokens: number) => string;
4
4
  export declare const initialsOf: (name: string) => string | undefined;
5
5
  export declare const setFormatLocale: (tag: string) => void;
6
6
  export declare const formatDate: (at: number) => string;
7
+ export declare const formatDateLong: (at: number | string) => string;
7
8
  export declare const formatDayMonth: (at: number) => string;
8
9
  export declare const formatDateTime: (at: number) => string;
9
10
  export declare const formatTimestamp: (at: number) => string;
10
11
  export declare const formatTime: (at: number) => string;
11
12
  export declare const formatClock: (at: number) => string;
12
13
  export declare const formatWeekdayTime: (at: number) => string;
14
+ export declare const formatDayMonthTime: (at: number) => string;
15
+ export declare const formatWhen: (at: number, now?: number) => string;
13
16
  export declare const timeAgo: (at: number, { now, days }?: {
14
17
  now?: number;
15
18
  days?: boolean;
@@ -0,0 +1,15 @@
1
+ export interface FrontmatterField {
2
+ readonly key: string;
3
+ readonly values: readonly string[];
4
+ readonly sequence: boolean;
5
+ }
6
+ export interface Frontmatter {
7
+ readonly raw: string;
8
+ readonly body: string;
9
+ readonly fields: readonly FrontmatterField[] | undefined;
10
+ }
11
+ export declare const splitFrontmatter: (source: string) => {
12
+ readonly matter: Frontmatter;
13
+ readonly rest: string;
14
+ } | undefined;
15
+ export declare const frontmatterHtml: (matter: Frontmatter) => string;
@@ -4,4 +4,5 @@ export { continueList, indentLines, insertLink, type ListEnter, onListLine, outd
4
4
  export { createMarkdownHistory, type DocumentState, type EditKind, type MarkdownHistory } from "./history.js";
5
5
  export { blockBody, buildBlockElement, caretAtOffset, offsetOfCaret } from "./sourceDom.js";
6
6
  export { type BarsFigure, type BarsFigureItem, type DagFigure, type DagFigureEdge, type DagFigureNode, type Figure, FIGURE_ACCENTS, type FigureAccent, FIGURE_LANGS, JSON_FIGURE_LANGS, type MarkdownSegment, MERMAID_LANG, type MermaidFigure, parseFigure, splitFigureSegments, type StatsFigure, type StatsFigureItem, } from "./figures.js";
7
+ export { type Frontmatter, type FrontmatterField, frontmatterHtml, splitFrontmatter } from "./frontmatter.js";
7
8
  export { createStreamingMarkdown, lexBlocks, lexInline, type MarkdownDecorator, type MarkdownPart, markdownParseCount, type MarkdownToken, renderMarkdown, renderMarkdownParts, type RenderedMarkdown, settledEnd, type StreamingMarkdown, } from "./render.js";
package/names.mjs CHANGED
@@ -33,11 +33,13 @@ export const extensionUiNames = [
33
33
  "formatDate",
34
34
  "formatDateTime",
35
35
  "formatDayMonth",
36
+ "formatDayMonthTime",
36
37
  "formatDuration",
37
38
  "formatTime",
38
39
  "formatTimestamp",
39
40
  "formatTokens",
40
41
  "formatWeekdayTime",
42
+ "formatWhen",
41
43
  "freshness",
42
44
  "activeLocale",
43
45
  "extensionT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentic/extension-ui",
3
- "version": "1.301.0",
3
+ "version": "1.303.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/format.ts CHANGED
@@ -5,13 +5,16 @@
5
5
  export {
6
6
  formatBytes,
7
7
  formatDate,
8
+ formatDateLong,
8
9
  formatDateTime,
9
10
  formatDayMonth,
11
+ formatDayMonthTime,
10
12
  formatDuration,
11
13
  formatTime,
12
14
  formatTimestamp,
13
15
  formatTokens,
14
16
  formatWeekdayTime,
17
+ formatWhen,
15
18
  freshness,
16
19
  timeAgo,
17
20
  } from "@intentic/ui/format";
package/src/index.ts CHANGED
@@ -161,11 +161,13 @@ export {
161
161
  formatDate,
162
162
  formatDateTime,
163
163
  formatDayMonth,
164
+ formatDayMonthTime,
164
165
  formatDuration,
165
166
  formatTime,
166
167
  formatTimestamp,
167
168
  formatTokens,
168
169
  formatWeekdayTime,
170
+ formatWhen,
169
171
  freshness,
170
172
  timeAgo,
171
173
  } from "./format.js";