@danxbot/ui 7.1.0 → 7.2.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 +66 -59
- package/dist/index.js.map +1 -1
- package/dist/pure.js +72 -58
- package/dist/pure.js.map +1 -1
- package/dist/types/components/provenance/types.d.ts +0 -16
- package/dist/types/index.d.ts +2 -1
- package/dist/types/lib/confidence.d.ts +23 -0
- package/dist/types/pure.d.ts +1 -0
- package/package.json +1 -1
|
@@ -134,20 +134,4 @@ export declare function ratedConfidence(rating: number, scale: number): Provenan
|
|
|
134
134
|
/** 0..1 to a band. A bare percentage invites false precision. */
|
|
135
135
|
export type ConfidenceBand = "high" | "moderate" | "low";
|
|
136
136
|
export declare function confidenceBand(confidence: ConfidenceScore): ConfidenceBand;
|
|
137
|
-
/** One of the five steps of the confidence scale — see `ConfidenceBar` for the colours. */
|
|
138
|
-
export type ConfidenceLevel = 1 | 2 | 3 | 4 | 5;
|
|
139
|
-
/**
|
|
140
|
-
* A RATING to one of the five confidence steps, or null when there is no
|
|
141
|
-
* rating on a real scale to draw.
|
|
142
|
-
*
|
|
143
|
-
* A five-point rating maps one-to-one. Any other scale is mapped by its
|
|
144
|
-
* fraction, so a colour keeps one meaning whatever scale a consumer rates on.
|
|
145
|
-
* A rating below one step is "not rated", never level 1: a zero is the absence
|
|
146
|
-
* of a rating, and drawing it as the lowest earned level would claim a
|
|
147
|
-
* judgement nobody made.
|
|
148
|
-
*
|
|
149
|
-
* The fraction feeds a COLOUR, never a printed figure — a step is a judgement
|
|
150
|
-
* five values wide and survives the trip; a percentage is a figure and does not.
|
|
151
|
-
*/
|
|
152
|
-
export declare function confidenceLevel(rating: number, scale: number): ConfidenceLevel | null;
|
|
153
137
|
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -115,7 +115,8 @@ export { AmbiguousTimeError, addDays, addDuration, addMonths, atMidnight, atTime
|
|
|
115
115
|
export { allDayBandSegment, dayKey, daySlots, isAllDay, packBand, packLanes, snapFractionToInstant, timeSegments, timedBandSegment, type AllDayEvent, type BandInput, type BandOptions, type BandPlacement, type BandResult, type BandSegment, type CalendarEvent, type CalendarEventId, type CalendarView, type DaySlot, type DragKind, type EventDraft, type EventPalette, type LaneInput, type LaneOptions, type LanePlacement, type PaletteEntry, type TimeSegment, type TimedEvent, type VisibleRange, } from "./lib/calendar";
|
|
116
116
|
export { RBACProvider, useRBAC, AccountMenu, DevToolsPopover, RolePermissionMatrix, ProfilePage, RolesPermissionsPage, type RBACProviderProps, type RBACHookResult, type AccountMenuProps, type DevToolsPopoverProps, type RolePermissionMatrixProps, type Permission, type Role, type User, type Team, type TeamMembership, } from "./components/rbac";
|
|
117
117
|
export { UseCaseCard, RoadmapItemCard, RoadmapSwimlaneBoard, UseCaseLedgerPage, RoadmapPage, PhaseManager, TrackManager, deriveRoadmapItemStatus, isFullyBuilt, isUnbuilt, trackIds, trackProgress, toneForIndex, CATEGORY_TONES, type Domain, type Phase, type Track, type RoadmapItem, type RoadmapItemStatus, type UseCase, type UseCaseStatus, type UseCaseDecision, type UseCaseCardProps, type RoadmapItemCardProps, type RoadmapSwimlaneBoardProps, type UseCaseLedgerPageProps, type RoadmapPageProps, type PhaseManagerProps, type TrackManagerProps, } from "./components/roadmap";
|
|
118
|
-
export { ProvenanceDisclosure, ProvenanceDetail, ProvenanceBadge, ConfidenceReadout, ConfidenceMeter, ConfidenceBar, provenanceStateLabel, confidenceBand,
|
|
118
|
+
export { ProvenanceDisclosure, ProvenanceDetail, ProvenanceBadge, ConfidenceReadout, ConfidenceMeter, ConfidenceBar, provenanceStateLabel, confidenceBand, confidenceScore, scoredConfidence, ratedConfidence, type ProvenanceRecord, type ProvenanceState, type ProvenanceSource, type ProvenanceCheck, type ProvenanceCall, type ProvenanceSignoff, type ConfidenceBand, type ConfidenceScore, type ProvenanceConfidence, type ConfidenceReadoutProps, type ConfidenceBarProps, type ConfidenceBarSize, type ProvenanceDisclosureProps, type ProvenanceDetailProps, type ProvenanceDetailTitleAs, type ProvenanceTriggerBadge, type ProvenanceBadgeProps, type ProvenanceBadgeAppearance, type ConfidenceMeterProps, } from "./components/provenance";
|
|
119
|
+
export { confidenceLevel, CONFIDENCE_LEVEL_LABELS, type ConfidenceLevel } from "./lib/confidence";
|
|
119
120
|
export { createSimStore, resetSimStores, useSimSettings, setSimSettings, getNetworkSpeed, getDataSource, simulateLatency, SimNetworkError, type SimStore, type SimStoreOptions, type SimSettings, type NetworkSpeed, type DataSource, type SimNamespace, } from "./lib/sim";
|
|
120
121
|
export { NodeCanvas, LAYOUT_DEFAULTS, layoutTree, pathToNode, type NodeCanvasProps, type CanvasEdge, type CanvasLayout, type CanvasNode, type CanvasOrientation, type LayoutOptions, type NodeRenderContext, type NodeRenderer, type PlacedNode, } from "./components/node-canvas";
|
|
121
122
|
export { defineRecordType, resetRecordTypes, useRecord, useRecords, useStaleness, write, writeAll, peekRecord, readState, readStaleness, subscribeToKey, subscribeToStaleness, retainKeys, sweepRecords, setRecordStoreTenant, getRecordStoreTenant, flushRecordNotifications, resetRecordStore, recordStoreStats, UNKNOWN_STATE, normalizeTypeName, normalizeTimestamp, recordKey, isRecordRef, type RecordRef, type ReadOptions, type RecordPayload, type RecordState, type RecordTypeOptions, type RecordTypeToken, type StalenessEntry, type WriteAllResult, type WriteOptions, type WriteResult, type WriteSource, type WriteVerdict, } from "./lib/records";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** One of the five steps of the confidence scale — see `ConfidenceBar` for how each is drawn. */
|
|
2
|
+
export type ConfidenceLevel = 1 | 2 | 3 | 4 | 5;
|
|
3
|
+
/**
|
|
4
|
+
* A RATING to one of the five confidence steps, or null when there is no
|
|
5
|
+
* rating on a real scale to draw.
|
|
6
|
+
*
|
|
7
|
+
* A five-point rating maps one-to-one. Any other scale is mapped by its
|
|
8
|
+
* fraction, so a colour and a length keep one meaning whatever scale a consumer
|
|
9
|
+
* rates on. A rating below one step is "not rated", never level 1: a zero is
|
|
10
|
+
* the absence of a rating, and drawing it as the lowest earned level would
|
|
11
|
+
* claim a judgement nobody made.
|
|
12
|
+
*
|
|
13
|
+
* The fraction feeds a COLOUR and a LENGTH, never a printed figure — a step is
|
|
14
|
+
* a judgement five values wide and survives the trip; a percentage is a figure
|
|
15
|
+
* and does not.
|
|
16
|
+
*/
|
|
17
|
+
export declare function confidenceLevel(rating: number, scale: number): ConfidenceLevel | null;
|
|
18
|
+
/**
|
|
19
|
+
* Each level's own word, the operator's scale (SG-843): 4 is "Confident" and 5
|
|
20
|
+
* is "Highly confident", so the two readings of "fine" stay distinguishable in
|
|
21
|
+
* words exactly as they are in colour and length.
|
|
22
|
+
*/
|
|
23
|
+
export declare const CONFIDENCE_LEVEL_LABELS: Readonly<Record<ConfidenceLevel, string>>;
|
package/dist/types/pure.d.ts
CHANGED
|
@@ -40,3 +40,4 @@
|
|
|
40
40
|
*/
|
|
41
41
|
export { formatBytes, formatTokens, formatCompactNumber } from "./lib/format";
|
|
42
42
|
export { formatDate, parseDate, formatDateTime, parseDateTime, type FormatDateTimeOptions, type ParseDateTimeOptions, formatCurrency, parseCurrency, formatPhone, parsePhone, formatNumber, parseNumber, type FormatNumberOptions, formatBoolean, parseBoolean, type FormatBooleanOptions, } from "./lib/values";
|
|
43
|
+
export { confidenceLevel, CONFIDENCE_LEVEL_LABELS, type ConfidenceLevel } from "./lib/confidence";
|