@danxbot/ui 15.30.0 → 15.32.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 +6784 -6583
- package/dist/index.js.map +1 -1
- package/dist/types/components/LineDiff.d.ts +7 -1
- package/dist/types/components/auth/SignupCard.d.ts +35 -0
- package/dist/types/components/auth/index.d.ts +1 -0
- package/dist/types/components/focus-web/types.d.ts +14 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,12 @@ export interface LineDiffProps {
|
|
|
5
5
|
after: string;
|
|
6
6
|
/** The accessible name for the diff region. */
|
|
7
7
|
label: string;
|
|
8
|
+
/**
|
|
9
|
+
* Show only this many unchanged lines either side of a change, folding each
|
|
10
|
+
* longer unchanged run into a "N unchanged lines" row (`git diff -U<n>`).
|
|
11
|
+
* Omitted: every line is shown. `0` shows the changed lines alone. DX-4041.
|
|
12
|
+
*/
|
|
13
|
+
context?: number;
|
|
8
14
|
className?: string;
|
|
9
15
|
}
|
|
10
16
|
/**
|
|
@@ -15,4 +21,4 @@ export interface LineDiffProps {
|
|
|
15
21
|
* its new form added. Identical `before`/`after` renders every line
|
|
16
22
|
* unchanged, with no added/removed markers at all.
|
|
17
23
|
*/
|
|
18
|
-
export declare function LineDiff({ before, after, label, className }: LineDiffProps): import("react").JSX.Element;
|
|
24
|
+
export declare function LineDiff({ before, after, label, context, className }: LineDiffProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type PasswordRequirementRule } from "../PasswordRequirements";
|
|
2
|
+
import { type TermsAcceptanceProps } from "./TermsAcceptance";
|
|
3
|
+
export interface SignupCardProps {
|
|
4
|
+
/** A code already known (the sign-up link's). Checked on mount, then shown read-only while it is good. */
|
|
5
|
+
initialCode?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Checks a code. Resolves when it is usable — with the email it is reserved for, or `null` when
|
|
8
|
+
* any address may use it. Rejects with an `Error` whose message is shown to the person when it is not.
|
|
9
|
+
*/
|
|
10
|
+
onValidateCode: (code: string) => Promise<{
|
|
11
|
+
emailLock: string | null;
|
|
12
|
+
}>;
|
|
13
|
+
/** Pure — recomputed against the current draft of the password on every render. */
|
|
14
|
+
passwordRules: (password: string) => PasswordRequirementRule[];
|
|
15
|
+
/** Where the Terms of Use are read, linked from the agreement row. */
|
|
16
|
+
termsHref: string;
|
|
17
|
+
/** Runs on that link's click; see `TermsAcceptance`. */
|
|
18
|
+
onOpenTerms?: TermsAcceptanceProps["onOpenTerms"];
|
|
19
|
+
onSignup: (input: {
|
|
20
|
+
code: string;
|
|
21
|
+
name: string;
|
|
22
|
+
username: string;
|
|
23
|
+
email: string;
|
|
24
|
+
teamName: string;
|
|
25
|
+
password: string;
|
|
26
|
+
acceptedTerms: true;
|
|
27
|
+
}) => void;
|
|
28
|
+
loading?: boolean;
|
|
29
|
+
/** A server-side error surfaced after a failed submit (username taken, rate limited, ...). */
|
|
30
|
+
error?: string;
|
|
31
|
+
/** Offered beneath the card for a visitor who already has an account. */
|
|
32
|
+
onSignInInstead?: () => void;
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare function SignupCard({ initialCode, onValidateCode, passwordRules, termsHref, onOpenTerms, onSignup, loading, error, onSignInInstead, className, }: SignupCardProps): import("react").JSX.Element;
|
|
@@ -17,6 +17,20 @@ export interface FocusWebNodeLook {
|
|
|
17
17
|
* themes, and a caller-supplied hex is not. Omitted → the accent colour.
|
|
18
18
|
*/
|
|
19
19
|
paletteKey?: string;
|
|
20
|
+
/**
|
|
21
|
+
* DX-4041: a small marker drawn at the disc's top-right corner — a count, a
|
|
22
|
+
* change tag, an unread dot — typically a `Badge` (or a few stacked). It is
|
|
23
|
+
* decoration for the eye: the default body hides it from assistive tech, so
|
|
24
|
+
* say what it MEANS in `badgeLabel`. Ignored by a custom `renderNode`, which
|
|
25
|
+
* draws whatever it likes from the node's own fields.
|
|
26
|
+
*/
|
|
27
|
+
badge?: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* What `badge` means, in words ("contains 2 added, 1 changed"). Appended to a
|
|
30
|
+
* clickable node's accessible name after its label, and read in place beside
|
|
31
|
+
* a plain (non-clickable) centre. Meaningless without `badge`.
|
|
32
|
+
*/
|
|
33
|
+
badgeLabel?: string;
|
|
20
34
|
}
|
|
21
35
|
/**
|
|
22
36
|
* One node FocusWeb draws — the centre, a ring member, or the "up" parent.
|
package/dist/types/index.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ export { initialFocusDay, isInMonth, nextDayForKey, useGridNavigation, type Grid
|
|
|
141
141
|
export { AmbiguousTimeError, addDays, addDuration, addMonths, atMidnight, atTime, comparePlainDate, dayFraction, dayLengthMs, dayOfWeek, daysBetween, daysInMonth, endOfMonth, hoursInDay, instantAtFraction, instantToPlainDate, instantToPlainDateTime, isSameDate, isoDateString, isoDateTimeString, monthGridDays, nextDay, offsetAt, parsePlainDate, plainDateTimeToInstant, relativeAge, startOfDay, startOfMonth, startOfWeek, weekDays, type CalendarDuration, type Disambiguation, type Instant, type PlainDate, type PlainDateTime, type TimeZone, } from "./lib/time";
|
|
142
142
|
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";
|
|
143
143
|
export { RBACProvider, useRBAC, Can, useHasPermission, AccountMenu, TeamSwitcher, DevToolsPopover, RolePermissionMatrix, RoleEditorDialog, ProfileForm, ProfilePage, RolesPermissionsPage, MembersPanel, ChangePasswordForm, SessionsList, ApiTokensPanel, InvitationsList, InviteMembersDialog, Brand, TeamSettingsForm, DangerZone, type RBACProviderProps, type RBACHookResult, type CanProps, type AccountMenuProps, type TeamSwitcherProps, type DevToolsPopoverProps, type RolePermissionMatrixProps, type RoleEditorDialogProps, type RoleEditorDialogSubmitInput, type ProfileFormProps, type ProfileFormAccount, type ProfileFormSaveInput, type ProfilePageProps, type RolesPermissionsPageProps, type MembersPanelProps, type MembersPanelMember, type ChangePasswordFormProps, type SessionsListProps, type Session, type ApiTokensPanelProps, type ApiToken, type InvitationsListProps, type InvitationsListItem, type InvitationStatus, type InviteMembersDialogProps, type Permission, type Role, type User, type Team, type TeamMembership, type BrandProps, type TeamSettingsFormProps, type TeamSettingsFormTeam, type TeamSettingsFormSaveInput, type DangerZoneProps, } from "./components/rbac";
|
|
144
|
-
export { AuthLayout, AcceptInvitationCard, TermsAcceptance, LoginForm, ForgotPasswordForm, ResetPasswordForm, type AuthLayoutProps, type AcceptInvitationCardProps, type TermsAcceptanceProps, type LoginFormProps, type ForgotPasswordFormProps, type ResetPasswordFormProps, } from "./components/auth";
|
|
144
|
+
export { AuthLayout, AcceptInvitationCard, SignupCard, TermsAcceptance, LoginForm, ForgotPasswordForm, ResetPasswordForm, type AuthLayoutProps, type AcceptInvitationCardProps, type SignupCardProps, type TermsAcceptanceProps, type LoginFormProps, type ForgotPasswordFormProps, type ResetPasswordFormProps, } from "./components/auth";
|
|
145
145
|
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";
|
|
146
146
|
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";
|
|
147
147
|
export { confidenceLevel, CONFIDENCE_LEVEL_LABELS, type ConfidenceLevel } from "./lib/confidence";
|