@crewlethq/ui 0.152.0 → 0.154.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/README.md +9 -1
- package/dist/AgentHandoffPanel/index.js +9 -9
- package/dist/AppShell/index.js +3 -3
- package/dist/ArrangeList/index.js +2 -2
- package/dist/ArtifactBar/index.js +1 -1
- package/dist/ArtifactCard/index.js +2 -2
- package/dist/AuthLayout/index.js +1 -1
- package/dist/BriefCard/index.js +1 -1
- package/dist/ChangeList/index.js +2 -2
- package/dist/ChatThread/index.js +3 -3
- package/dist/Combobox/index.js +2 -2
- package/dist/CommandPalette/index.js +5 -5
- package/dist/CommentThread/index.js +9 -9
- package/dist/Composer/index.js +5 -5
- package/dist/DataGrid/index.js +6 -6
- package/dist/DataTable/index.js +4 -4
- package/dist/DataView/index.js +6 -6
- package/dist/DatasetSource/index.js +1 -1
- package/dist/DeepWorkCard/index.js +1 -1
- package/dist/DiffList/index.js +1 -1
- package/dist/{DiffList-3JNPLQ2E.css → DiffList-57M6YCNS.css} +6 -7
- package/dist/DiffView/DiffView.d.ts +60 -35
- package/dist/DiffView/diff.d.ts +9 -41
- package/dist/DiffView/index.d.ts +7 -3
- package/dist/DiffView/index.js +1 -1
- package/dist/DiffView/lineDiff.d.ts +58 -0
- package/dist/DiffView/wordDiff.d.ts +47 -0
- package/dist/DiffView-J55CPJDX.css +224 -0
- package/dist/DocTabsEditor/index.js +6 -6
- package/dist/DockColumn/index.js +1 -1
- package/dist/DurationField/index.js +5 -5
- package/dist/EditingStatus/index.js +2 -2
- package/dist/EntityList/index.js +1 -1
- package/dist/InlineEditor/index.js +3 -3
- package/dist/KeyValueRows/index.js +3 -3
- package/dist/ListInput/index.js +6 -6
- package/dist/NumberField/index.js +3 -3
- package/dist/OpenInAppCard/index.js +2 -2
- package/dist/OrgTable/index.js +8 -8
- package/dist/PrincipalPicker/index.js +3 -3
- package/dist/ProposalCard/index.js +6 -6
- package/dist/RailList/index.js +5 -5
- package/dist/RefusalCard/index.js +1 -1
- package/dist/ResultTableCard/index.js +1 -1
- package/dist/RichEditor/index.js +1 -1
- package/dist/SectionFrame/index.js +3 -3
- package/dist/Select/index.js +2 -2
- package/dist/SendKeys/index.js +2 -2
- package/dist/SettingForm/index.js +3 -3
- package/dist/SettingsTable/index.js +1 -1
- package/dist/SetupWizard/index.js +1 -1
- package/dist/ShareDialog/index.js +5 -5
- package/dist/SheetColumnEditor/index.js +7 -7
- package/dist/SidebarNav/index.js +2 -2
- package/dist/SlideFilmstrip/index.js +4 -4
- package/dist/StatusCard/index.js +1 -1
- package/dist/Switcher/index.js +5 -5
- package/dist/TableCells/index.js +1 -1
- package/dist/TimeRangePicker/index.js +4 -4
- package/dist/TimeWindowPicker/index.js +5 -5
- package/dist/ToolCallLog/ToolCallLog.d.ts +97 -0
- package/dist/ToolCallLog/index.d.ts +3 -0
- package/dist/ToolCallLog/index.js +22 -0
- package/dist/ToolCallLog-WSK6TEGH.css +288 -0
- package/dist/TreeCanvas/index.js +2 -2
- package/dist/TreeGrid/index.js +7 -7
- package/dist/ValueField/index.js +4 -4
- package/dist/VersionCompare/VersionCompare.d.ts +3 -4
- package/dist/VersionCompare/index.js +2 -2
- package/dist/{chunk-5DLBGF6I.js → chunk-2YAK37D6.js} +1 -1
- package/dist/chunk-4U5ATJPP.js +194 -0
- package/dist/chunk-4YLN5QVL.js +803 -0
- package/dist/{chunk-DWXTJWCJ.js → chunk-5V2DNF3F.js} +3 -3
- package/dist/{chunk-6BGD32C5.js → chunk-7DLIVPK4.js} +2 -2
- package/dist/{chunk-RGJB34YN.js → chunk-7XUP32RY.js} +1 -1
- package/dist/{chunk-D33K2BCZ.js → chunk-C6F5HISC.js} +1 -1
- package/dist/{chunk-CJAPAIJG.js → chunk-CFVKNEGM.js} +2 -2
- package/dist/{chunk-3Q5USPLM.js → chunk-CSLONHHB.js} +1 -1
- package/dist/{chunk-ITZAWYRG.js → chunk-DBXXJOGQ.js} +1 -1
- package/dist/{chunk-F6OYNO7O.js → chunk-E6STS4FD.js} +2 -2
- package/dist/{chunk-QRUQOITJ.js → chunk-GMHP5KXF.js} +1 -1
- package/dist/{chunk-M4VA76JF.js → chunk-MTJ7KNHZ.js} +3 -3
- package/dist/{chunk-NB53SAL4.js → chunk-NOZD547E.js} +1 -1
- package/dist/{chunk-GFNCMSYS.js → chunk-PPQ3VJUE.js} +1 -1
- package/dist/{chunk-S4ADDFRT.js → chunk-S53XH4SS.js} +1 -1
- package/dist/{chunk-OX332RI7.js → chunk-SZU2JNJN.js} +1 -1
- package/dist/{chunk-OMVGWZ3V.js → chunk-V3HP2HOI.js} +24 -19
- package/dist/{chunk-RUKSDKG5.js → chunk-WA4BKMRI.js} +1 -1
- package/dist/{chunk-CA62YCFK.js → chunk-WTWYN7Z5.js} +1 -1
- package/dist/{chunk-U3ZUZ7VU.js → chunk-Z2YOBQHX.js} +2 -2
- package/dist/{chunk-ECYA6XZL.js → chunk-ZPD4XF4H.js} +2 -2
- package/dist/generated/index.d.ts +1 -0
- package/dist/generated/index.js +77 -76
- package/dist/index.js +77 -76
- package/dist/styles.css +466 -42
- package/package.json +3 -3
- package/dist/DiffView-ZI5C25Q3.css +0 -90
- package/dist/chunk-F4CM5KD3.js +0 -187
- package/dist/{Editor-FXREHINI.js → Editor-VMQ5DK6H.js} +2 -2
- package/dist/{chunk-N3R2POGO.js → chunk-2E4MAF6Z.js} +1 -1
- package/dist/{chunk-7FY7L6WD.js → chunk-46YFRLA2.js} +1 -1
- package/dist/{chunk-KRF3GQ63.js → chunk-6N53ZWRM.js} +1 -1
- package/dist/{chunk-Q3SHCEXN.js → chunk-77J2YS55.js} +1 -1
- package/dist/{chunk-VXTRPLNB.js → chunk-BFJE3C7Q.js} +1 -1
- package/dist/{chunk-657WR3MX.js → chunk-D5UVJL4I.js} +1 -1
- package/dist/{chunk-TTUFOH2Y.js → chunk-FNX3YS55.js} +1 -1
- package/dist/{chunk-O2J5PSWI.js → chunk-FYJAWS4E.js} +1 -1
- package/dist/{chunk-7CVV3DQC.js → chunk-GTJR4APZ.js} +1 -1
- package/dist/{chunk-RXHY5T2Z.js → chunk-KJBDOWG7.js} +1 -1
- package/dist/{chunk-EDQHZOU3.js → chunk-LPTQN7RS.js} +1 -1
- package/dist/{chunk-2DASEYUG.js → chunk-MC5JMA2T.js} +0 -0
- package/dist/{chunk-PW6QXVIX.js → chunk-STYJH473.js} +2 -2
- package/dist/{chunk-WAF36OFS.js → chunk-T3BIW52Y.js} +1 -1
- package/dist/{chunk-7FWYJCKT.js → chunk-WCV44AYD.js} +1 -1
- package/dist/{chunk-YWPUT6JQ.js → chunk-YBUUPA5R.js} +1 -1
- package/dist/{chunk-5ORAUELE.js → chunk-YGMCXWRA.js} +1 -1
- package/dist/{chunk-NG6GEBSJ.js → chunk-YRMDDNFY.js} +1 -1
- package/dist/{chunk-UZMXC5T6.js → chunk-YUVQUJND.js} +1 -1
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ import { Button } from '@crewlethq/ui/Button'; // 8 KB of CSS, not 182 KB
|
|
|
46
46
|
| Data display | `DataGrid` (with `useDataGridDriving`, `useAnyDataGridDriving` and `countDataGridRows`), `DataTable`, `CopyableCell`, `Table`, the read-only table cells (`TableKeyCell`, `TableNumberCell`, `TableDateCell`, `TableEntityCell`, `TableStatusCell`, `TableTagsCell`, `TableTextCell`, `TableTwoLineCell`), `StatCard`, `Meter`, `SegmentedMeter`, `Stepper`, `PricingCard`, `Avatar`, `AvatarStack`, `EntityChip`, `CodeBlock`, `QrCode`, `ObjectHeader`, `FactLine`, `SetByLine` (set, seen, observed or confirmed by, with `SET_BY_VERBS`), `GraphCanvas` (a layered map of clusters, groups and three families of line, with its legend, the card beside an entry, the selection dock and fullscreen, its pure layout `layoutGraph`, the trunks `graphTrunks`, the reach `graphReach` and the keyboard walk `graphStep`), `Skeleton`, `Eyebrow`, `StatGroup`, `PinTile`, `IconTile`, `SettingsTable` (with `SettingsTable.Row`), `CatalogTile` |
|
|
47
47
|
| List screens | `DataView`, and its parts on their own: `DataViewToolbar`, `FilterAxisBar`, `FilterAxisChip`, `FilterPill`, plus the filter model (`filterDefsFromColumns`, `applyColumnFilters`, `filterPredicate`, `blankFilterValue`) |
|
|
48
48
|
| Feedback and overlays | `Callout`, `NoticeList` and `groupNotices` (several notices from one source, each said once), `AttentionList` (what needs a person, as rows in one card), `ConflictNote`, `EditingStatus`, `Toaster`, `Modal` (with `variant="sheet"`), `ConfirmModal`, `CommandPalette`, `Tooltip`, `Popover`, `Announcer` |
|
|
49
|
-
| Documents and review | `DiffView` and `DiffSummary` with the line diff they draw (`
|
|
49
|
+
| Documents and review | `DiffView` and `DiffSummary` with the line diff they draw (`compareLines`, `compareSequences`, `changedRuns`, `diffStat`, `collapseDiff`, `firstChangedLines`, `splitLines`, with no React in it), `DiffList`, `VersionCompare`, `CommentThread` |
|
|
50
50
|
| Conversations and the assistant | `ChatThread` (with `ChatThreadHandle`), `ChatMessage` and `ChatMessageFailure`, `MessageActions` (with `MessageAction`, `QuickReaction` and `ActionDivider`), `ReactionBar` and `AddReaction` (with `reactionWho`), `EmojiPicker` (with `EMOJI_GROUPS`, `emojiName` and `searchEmoji`), `ThreadSummary`, `ActivityLine`, `WorkingLine` (every agent at work on one line, with `workingSentence`, `workingAnnouncement` and `BouncingDots`), `MentionChip`, `MessageBubble`, `RunChip`, `StepList` and `StepStateMark`, `ProposalCard`, `ChangeList` (with `shortenUnchanged`), `StatusCard`, `ReceiptStrip`, `RefusalStrip`, `ResultTableCard`, `OpenInAppCard`, `BriefCard` (with `points`, what was said, each citing its message), `EntityList`, `RecordChip` and `RecordChipList` (a record named in a sentence, opening a peek, and the Also read line), `RefusalCard`, `SuggestionRow` and `SuggestionList`, `SendButton`, a transcript's timeline (`ChatDay` with `ChatDayPill`, `ChatDivider`), `LinkCard` (a link unfurled under its message), `MentionMenu` (with `mentionQuery`), `ActionCard` and `ActionCardRow` |
|
|
51
51
|
| Charts | `Legend`, `BarList`, `StackedBar`, `StackedColumns`, `StackedRing`, `ActivityStrip`, `TimeSeries`, `Sparkline` (with its `fine` weight), the reading layer they share (`ChartTooltip`, `useChartHover`), and the ramp (`DATA_COLORS`, `DATA_COLOR_OTHER`, `dataColor`) |
|
|
52
52
|
| Marks | `Count` (with `tone="attention"`), `StatusDot`, `Spinner`, `EmptyValue`, `VisuallyHidden` |
|
|
@@ -208,6 +208,14 @@ places:
|
|
|
208
208
|
- A surface that pans or zooms dispatches `LAYER_REPOSITION_EVENT` on its host
|
|
209
209
|
when the content beneath it moves, and every panel anchored inside follows.
|
|
210
210
|
|
|
211
|
+
## Changes in 0.153.0
|
|
212
|
+
|
|
213
|
+
### Every line diff is tinted, compared honestly and written on
|
|
214
|
+
|
|
215
|
+
- **`DiffView` tints every diff** (`--color-diff-*`: green and red rows, the numbers on a band in the sign ink, an edited run on its word tint), keeps the glyph and the word, and clears 4.5:1 on every tint; `DiffSummary` and `DiffList` take the same tokens.
|
|
216
|
+
- **`DiffView` compares two texts itself** (`before`, `after`, `context`; `compareLines`, Myers, bounded by `MAX_COMPARE_LINES` and `MAX_EDITS`, a sentence in place of the rows past them) and takes keyed lines (`path`), `layout="split"`, `against`, `empty`, `notes`, `onPick`, `picked`, `reveal` and `tokens`, windowed past `WINDOW_FROM_ROWS` rows.
|
|
217
|
+
- **Breaking:** `diffLines` and `MAX_DIFF_LINES` are gone (they drew a whole replacement past 2,000 lines); use `compareLines` or hand `DiffView` the texts. `DiffSection.lines` is read-only and `DiffLine` takes an optional `path`.
|
|
218
|
+
|
|
211
219
|
## Changes in 0.151.0
|
|
212
220
|
|
|
213
221
|
### A standing advisory rests as one line
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-
|
|
1
|
+
export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-S53XH4SS.js';
|
|
2
2
|
import '../chunk-XDUXAQIS.js';
|
|
3
3
|
import '../chunk-WFCWPXJN.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-GMHP5KXF.js';
|
|
5
|
+
import '../chunk-YUVQUJND.js';
|
|
6
6
|
import '../chunk-D5O64CVE.js';
|
|
7
7
|
import '../chunk-HIDOUXLD.js';
|
|
8
8
|
import '../chunk-DGB7R42F.js';
|
|
9
9
|
import '../chunk-MBEZOURR.js';
|
|
10
10
|
import '../chunk-FQ6J4DK7.js';
|
|
11
|
+
import '../chunk-VBBLHS2Y.js';
|
|
12
|
+
import '../chunk-IMF3CPTY.js';
|
|
13
|
+
import '../chunk-XSPCITPN.js';
|
|
14
|
+
import '../chunk-2YTOOH3A.js';
|
|
15
|
+
import '../chunk-SK4BIFTG.js';
|
|
16
|
+
import '../chunk-COS6LJ4K.js';
|
|
11
17
|
import '../chunk-XQMRSL7Z.js';
|
|
12
18
|
import '../chunk-NICEDVZM.js';
|
|
13
19
|
import '../chunk-JLKO7PSK.js';
|
|
14
20
|
import '../chunk-PJV5HVZY.js';
|
|
15
21
|
import '../chunk-TEXK4RK6.js';
|
|
16
|
-
import '../chunk-SK4BIFTG.js';
|
|
17
|
-
import '../chunk-COS6LJ4K.js';
|
|
18
|
-
import '../chunk-VBBLHS2Y.js';
|
|
19
|
-
import '../chunk-IMF3CPTY.js';
|
|
20
|
-
import '../chunk-XSPCITPN.js';
|
|
21
|
-
import '../chunk-2YTOOH3A.js';
|
|
22
22
|
import '../chunk-KM5OKCW6.js';
|
|
23
23
|
import '../chunk-TDFLCUBE.js';
|
|
24
24
|
import '../chunk-BFZAGIXR.js';
|
package/dist/AppShell/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from '../chunk-
|
|
1
|
+
export { APP_SHELL_ASIDE_WIDTH, AccountRow, AppShell, AppShellRail, AppShellRailRow, AppShellRailStatus, AppShellToggle, AppShellTopbar, readStoredWidth, useAppShell, useScreenBelow, useScreenWidth, useStoredWidth } from '../chunk-YGMCXWRA.js';
|
|
2
2
|
import '../chunk-SNKQNAJI.js';
|
|
3
3
|
import '../chunk-JLOESTT2.js';
|
|
4
4
|
import '../chunk-ZMZNKDPO.js';
|
|
5
5
|
export { useAppShellAside, useAppShellPeek } from '../chunk-MBEZOURR.js';
|
|
6
6
|
export { RESIZE_HANDLE_LARGE_STEP, RESIZE_HANDLE_STEP, ResizeHandle, clampSize } from '../chunk-FQ6J4DK7.js';
|
|
7
|
-
import '../chunk-SK4BIFTG.js';
|
|
8
|
-
import '../chunk-COS6LJ4K.js';
|
|
9
7
|
import '../chunk-VBBLHS2Y.js';
|
|
10
8
|
import '../chunk-IMF3CPTY.js';
|
|
11
9
|
import '../chunk-XSPCITPN.js';
|
|
12
10
|
import '../chunk-2YTOOH3A.js';
|
|
11
|
+
import '../chunk-SK4BIFTG.js';
|
|
12
|
+
import '../chunk-COS6LJ4K.js';
|
|
13
13
|
import '../chunk-KM5OKCW6.js';
|
|
14
14
|
import '../chunk-TDFLCUBE.js';
|
|
15
15
|
import '../chunk-BFZAGIXR.js';
|
|
@@ -2,13 +2,13 @@ export { ArrangeList, DEFAULT_ARRANGE_LABELS } from '../chunk-YRNIPS4M.js';
|
|
|
2
2
|
import '../chunk-6YYRFGXO.js';
|
|
3
3
|
import '../chunk-JMBPMSNI.js';
|
|
4
4
|
import '../chunk-BRMJPZC4.js';
|
|
5
|
+
import '../chunk-SK4BIFTG.js';
|
|
6
|
+
import '../chunk-COS6LJ4K.js';
|
|
5
7
|
import '../chunk-XQMRSL7Z.js';
|
|
6
8
|
import '../chunk-NICEDVZM.js';
|
|
7
9
|
import '../chunk-JLKO7PSK.js';
|
|
8
10
|
import '../chunk-PJV5HVZY.js';
|
|
9
11
|
import '../chunk-TEXK4RK6.js';
|
|
10
|
-
import '../chunk-SK4BIFTG.js';
|
|
11
|
-
import '../chunk-COS6LJ4K.js';
|
|
12
12
|
import '../chunk-KM5OKCW6.js';
|
|
13
13
|
import '../chunk-TDFLCUBE.js';
|
|
14
14
|
import '../chunk-BFZAGIXR.js';
|
|
@@ -5,8 +5,8 @@ import '../chunk-XJU53WMW.js';
|
|
|
5
5
|
import '../chunk-7F3OPUM5.js';
|
|
6
6
|
import '../chunk-QRE6JCHS.js';
|
|
7
7
|
import '../chunk-AVL52EME.js';
|
|
8
|
-
import '../chunk-RSKW25Y5.js';
|
|
9
8
|
import '../chunk-ZMZNKDPO.js';
|
|
9
|
+
import '../chunk-RSKW25Y5.js';
|
|
10
10
|
import '../chunk-VBBLHS2Y.js';
|
|
11
11
|
import '../chunk-IMF3CPTY.js';
|
|
12
12
|
import '../chunk-XSPCITPN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-
|
|
1
|
+
export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-YBUUPA5R.js';
|
|
2
2
|
import '../chunk-WFAJYBLX.js';
|
|
3
3
|
import '../chunk-265IX4YA.js';
|
|
4
4
|
import '../chunk-GBKBME7Q.js';
|
|
@@ -8,9 +8,9 @@ import '../chunk-AV2DXAEL.js';
|
|
|
8
8
|
import '../chunk-475DOAWF.js';
|
|
9
9
|
import '../chunk-WSIJDWUG.js';
|
|
10
10
|
import '../chunk-W3A6NBUM.js';
|
|
11
|
+
export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
|
|
11
12
|
import '../chunk-BRMJPZC4.js';
|
|
12
13
|
import '../chunk-DOY3KC6I.js';
|
|
13
|
-
export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
|
|
14
14
|
import '../chunk-2PSOUDCS.js';
|
|
15
15
|
import '../chunk-YMFFGPFE.js';
|
|
16
16
|
import '../chunk-XQMRSL7Z.js';
|
package/dist/AuthLayout/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { AuthLayout } from '../chunk-HHYFL2GH.js';
|
|
2
2
|
import '../chunk-KXWJJWBD.js';
|
|
3
|
+
import '../chunk-JLOESTT2.js';
|
|
3
4
|
import '../chunk-E7KRB77B.js';
|
|
4
5
|
import '../chunk-AV2DXAEL.js';
|
|
5
6
|
import '../chunk-475DOAWF.js';
|
|
6
7
|
import '../chunk-WSIJDWUG.js';
|
|
7
|
-
import '../chunk-JLOESTT2.js';
|
|
8
8
|
import '../chunk-Y5CMDLQM.js';
|
|
9
9
|
import '../chunk-PQADV6P6.js';
|
|
10
10
|
import '../chunk-RRRK2KB6.js';
|
package/dist/BriefCard/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import '../chunk-IR3OWPAZ.js';
|
|
|
3
3
|
import '../chunk-6C7GQOBV.js';
|
|
4
4
|
import '../chunk-NWKH5FF7.js';
|
|
5
5
|
import '../chunk-SJ3EUCFD.js';
|
|
6
|
+
import '../chunk-QRE6JCHS.js';
|
|
6
7
|
import '../chunk-E7KRB77B.js';
|
|
7
8
|
import '../chunk-AV2DXAEL.js';
|
|
8
9
|
import '../chunk-475DOAWF.js';
|
|
9
10
|
import '../chunk-WSIJDWUG.js';
|
|
10
|
-
import '../chunk-QRE6JCHS.js';
|
|
11
11
|
import '../chunk-IMF3CPTY.js';
|
|
12
12
|
import '../chunk-XSPCITPN.js';
|
|
13
13
|
import '../chunk-TDFLCUBE.js';
|
package/dist/ChangeList/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CHANGE_LIST_COLLAPSE_OVER, CHANGE_LIST_LABELS, ChangeList, ChangeListItems, shortenUnchanged } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CHANGE_LIST_COLLAPSE_OVER, CHANGE_LIST_LABELS, ChangeList, ChangeListItems, shortenUnchanged } from '../chunk-NOZD547E.js';
|
|
2
|
+
import '../chunk-7XUP32RY.js';
|
|
3
3
|
import '../chunk-SJ3EUCFD.js';
|
|
4
4
|
import '../chunk-QRE6JCHS.js';
|
|
5
5
|
import '../chunk-D5O64CVE.js';
|
package/dist/ChatThread/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-
|
|
1
|
+
export { CHAT_THREAD_FOLLOW_WITHIN, CHAT_THREAD_LABELS, ChatThread } from '../chunk-KJBDOWG7.js';
|
|
2
2
|
import '../chunk-6RBE5RVG.js';
|
|
3
|
-
import '../chunk-SK4BIFTG.js';
|
|
4
|
-
import '../chunk-COS6LJ4K.js';
|
|
5
3
|
import '../chunk-IMF3CPTY.js';
|
|
6
4
|
import '../chunk-XSPCITPN.js';
|
|
5
|
+
import '../chunk-SK4BIFTG.js';
|
|
6
|
+
import '../chunk-COS6LJ4K.js';
|
|
7
7
|
import '../chunk-TDFLCUBE.js';
|
|
8
8
|
import '../chunk-BFZAGIXR.js';
|
|
9
9
|
import '../chunk-L72URIHR.js';
|
package/dist/Combobox/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { Combobox } from '../chunk-
|
|
1
|
+
export { Combobox } from '../chunk-WCV44AYD.js';
|
|
2
2
|
import '../chunk-KW7T23RT.js';
|
|
3
|
+
import '../chunk-2YTOOH3A.js';
|
|
3
4
|
import '../chunk-XQMRSL7Z.js';
|
|
4
5
|
import '../chunk-NICEDVZM.js';
|
|
5
6
|
import '../chunk-JLKO7PSK.js';
|
|
6
7
|
import '../chunk-PJV5HVZY.js';
|
|
7
8
|
import '../chunk-TEXK4RK6.js';
|
|
8
|
-
import '../chunk-2YTOOH3A.js';
|
|
9
9
|
import '../chunk-KM5OKCW6.js';
|
|
10
10
|
import '../chunk-TDFLCUBE.js';
|
|
11
11
|
import '../chunk-BFZAGIXR.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { CommandPalette } from '../chunk-
|
|
1
|
+
export { CommandPalette } from '../chunk-46YFRLA2.js';
|
|
2
2
|
import '../chunk-7PK2Z5JY.js';
|
|
3
3
|
import '../chunk-KW7T23RT.js';
|
|
4
|
+
import '../chunk-VBBLHS2Y.js';
|
|
5
|
+
import '../chunk-IMF3CPTY.js';
|
|
6
|
+
import '../chunk-XSPCITPN.js';
|
|
7
|
+
import '../chunk-2YTOOH3A.js';
|
|
4
8
|
import '../chunk-XQMRSL7Z.js';
|
|
5
9
|
import '../chunk-NICEDVZM.js';
|
|
6
10
|
import '../chunk-JLKO7PSK.js';
|
|
7
11
|
import '../chunk-PJV5HVZY.js';
|
|
8
12
|
import '../chunk-TEXK4RK6.js';
|
|
9
|
-
import '../chunk-VBBLHS2Y.js';
|
|
10
|
-
import '../chunk-IMF3CPTY.js';
|
|
11
|
-
import '../chunk-XSPCITPN.js';
|
|
12
|
-
import '../chunk-2YTOOH3A.js';
|
|
13
13
|
import '../chunk-KM5OKCW6.js';
|
|
14
14
|
import '../chunk-TDFLCUBE.js';
|
|
15
15
|
import '../chunk-BFZAGIXR.js';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-
|
|
1
|
+
export { COMMENT_THREAD_LABELS, CommentThread } from '../chunk-Z2YOBQHX.js';
|
|
2
|
+
import '../chunk-I4PBFJGX.js';
|
|
2
3
|
import '../chunk-265IX4YA.js';
|
|
3
4
|
import '../chunk-GBKBME7Q.js';
|
|
4
5
|
import '../chunk-WGLOH33S.js';
|
|
5
|
-
import '../chunk-I4PBFJGX.js';
|
|
6
6
|
import '../chunk-2PSOUDCS.js';
|
|
7
7
|
import '../chunk-YMFFGPFE.js';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-GMHP5KXF.js';
|
|
9
|
+
import '../chunk-YUVQUJND.js';
|
|
10
|
+
import '../chunk-VBBLHS2Y.js';
|
|
11
|
+
import '../chunk-IMF3CPTY.js';
|
|
12
|
+
import '../chunk-XSPCITPN.js';
|
|
13
|
+
import '../chunk-SK4BIFTG.js';
|
|
14
|
+
import '../chunk-COS6LJ4K.js';
|
|
10
15
|
import '../chunk-XQMRSL7Z.js';
|
|
11
16
|
import '../chunk-NICEDVZM.js';
|
|
12
17
|
import '../chunk-JLKO7PSK.js';
|
|
13
18
|
import '../chunk-PJV5HVZY.js';
|
|
14
19
|
import '../chunk-TEXK4RK6.js';
|
|
15
|
-
import '../chunk-SK4BIFTG.js';
|
|
16
|
-
import '../chunk-COS6LJ4K.js';
|
|
17
|
-
import '../chunk-VBBLHS2Y.js';
|
|
18
|
-
import '../chunk-IMF3CPTY.js';
|
|
19
|
-
import '../chunk-XSPCITPN.js';
|
|
20
20
|
import '../chunk-KM5OKCW6.js';
|
|
21
21
|
import '../chunk-TDFLCUBE.js';
|
|
22
22
|
import '../chunk-BFZAGIXR.js';
|
package/dist/Composer/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { COMPOSER_COUNTER_AT, Composer } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { COMPOSER_COUNTER_AT, Composer } from '../chunk-GMHP5KXF.js';
|
|
2
|
+
import '../chunk-YUVQUJND.js';
|
|
3
|
+
import '../chunk-VBBLHS2Y.js';
|
|
4
|
+
import '../chunk-SK4BIFTG.js';
|
|
5
|
+
import '../chunk-COS6LJ4K.js';
|
|
3
6
|
import '../chunk-XQMRSL7Z.js';
|
|
4
7
|
import '../chunk-NICEDVZM.js';
|
|
5
8
|
import '../chunk-JLKO7PSK.js';
|
|
6
9
|
import '../chunk-PJV5HVZY.js';
|
|
7
10
|
import '../chunk-TEXK4RK6.js';
|
|
8
|
-
import '../chunk-SK4BIFTG.js';
|
|
9
|
-
import '../chunk-COS6LJ4K.js';
|
|
10
|
-
import '../chunk-VBBLHS2Y.js';
|
|
11
11
|
import '../chunk-KM5OKCW6.js';
|
|
12
12
|
import '../chunk-TDFLCUBE.js';
|
|
13
13
|
import '../chunk-BFZAGIXR.js';
|
package/dist/DataGrid/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, sortGridRows, useAnyDataGridDriving, useDataGridDriving } from '../chunk-
|
|
1
|
+
export { ChooserList, ColumnChooser, DATA_GRID_ICON_TRACK, DataGrid, columnChoicesOf, countDataGridRows, fitGridColumns, sortGridRows, useAnyDataGridDriving, useDataGridDriving } from '../chunk-77J2YS55.js';
|
|
2
2
|
export { nextGridSort, parseGridSort } from '../chunk-HU56GCZ7.js';
|
|
3
|
+
import '../chunk-JMBPMSNI.js';
|
|
3
4
|
import '../chunk-WFAJYBLX.js';
|
|
4
5
|
import '../chunk-WSIJDWUG.js';
|
|
5
|
-
import '../chunk-JMBPMSNI.js';
|
|
6
6
|
import '../chunk-BRMJPZC4.js';
|
|
7
7
|
import '../chunk-PPUR46MK.js';
|
|
8
|
+
import '../chunk-IMF3CPTY.js';
|
|
9
|
+
import '../chunk-XSPCITPN.js';
|
|
10
|
+
import '../chunk-SK4BIFTG.js';
|
|
11
|
+
import '../chunk-COS6LJ4K.js';
|
|
8
12
|
import '../chunk-XQMRSL7Z.js';
|
|
9
13
|
import '../chunk-NICEDVZM.js';
|
|
10
14
|
import '../chunk-JLKO7PSK.js';
|
|
11
15
|
import '../chunk-PJV5HVZY.js';
|
|
12
16
|
import '../chunk-TEXK4RK6.js';
|
|
13
|
-
import '../chunk-SK4BIFTG.js';
|
|
14
|
-
import '../chunk-COS6LJ4K.js';
|
|
15
|
-
import '../chunk-IMF3CPTY.js';
|
|
16
|
-
import '../chunk-XSPCITPN.js';
|
|
17
17
|
import '../chunk-KM5OKCW6.js';
|
|
18
18
|
import '../chunk-TDFLCUBE.js';
|
|
19
19
|
import '../chunk-BFZAGIXR.js';
|
package/dist/DataTable/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-
|
|
1
|
+
export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-T3BIW52Y.js';
|
|
2
2
|
import '../chunk-7PK2Z5JY.js';
|
|
3
3
|
import '../chunk-STJ7QBC3.js';
|
|
4
4
|
import '../chunk-DTIW4CHZ.js';
|
|
5
|
+
import '../chunk-ZMZNKDPO.js';
|
|
5
6
|
import '../chunk-WGLOH33S.js';
|
|
6
7
|
import '../chunk-AV2DXAEL.js';
|
|
7
8
|
import '../chunk-BRMJPZC4.js';
|
|
8
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-IMF3CPTY.js';
|
|
10
|
+
import '../chunk-XSPCITPN.js';
|
|
9
11
|
import '../chunk-XQMRSL7Z.js';
|
|
10
12
|
import '../chunk-NICEDVZM.js';
|
|
11
13
|
import '../chunk-JLKO7PSK.js';
|
|
12
14
|
import '../chunk-PJV5HVZY.js';
|
|
13
15
|
import '../chunk-TEXK4RK6.js';
|
|
14
|
-
import '../chunk-IMF3CPTY.js';
|
|
15
|
-
import '../chunk-XSPCITPN.js';
|
|
16
16
|
import '../chunk-KM5OKCW6.js';
|
|
17
17
|
import '../chunk-TDFLCUBE.js';
|
|
18
18
|
import '../chunk-BFZAGIXR.js';
|
package/dist/DataView/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-
|
|
1
|
+
export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-5V2DNF3F.js';
|
|
2
2
|
import '../chunk-FPDIHEM4.js';
|
|
3
3
|
import '../chunk-GQQMN6O3.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-T3BIW52Y.js';
|
|
5
5
|
import '../chunk-7SXCCVUR.js';
|
|
6
6
|
import '../chunk-7PK2Z5JY.js';
|
|
7
7
|
import '../chunk-KW7T23RT.js';
|
|
@@ -10,19 +10,19 @@ import '../chunk-DTIW4CHZ.js';
|
|
|
10
10
|
import '../chunk-NPEI2QAN.js';
|
|
11
11
|
import '../chunk-EE3DJMSQ.js';
|
|
12
12
|
import '../chunk-AJFA2XDQ.js';
|
|
13
|
+
import '../chunk-ZMZNKDPO.js';
|
|
13
14
|
import '../chunk-GBKBME7Q.js';
|
|
14
15
|
import '../chunk-WGLOH33S.js';
|
|
15
16
|
import '../chunk-AV2DXAEL.js';
|
|
16
17
|
import '../chunk-BRMJPZC4.js';
|
|
17
|
-
import '../chunk-
|
|
18
|
+
import '../chunk-VBBLHS2Y.js';
|
|
19
|
+
import '../chunk-IMF3CPTY.js';
|
|
20
|
+
import '../chunk-XSPCITPN.js';
|
|
18
21
|
import '../chunk-XQMRSL7Z.js';
|
|
19
22
|
import '../chunk-NICEDVZM.js';
|
|
20
23
|
import '../chunk-JLKO7PSK.js';
|
|
21
24
|
import '../chunk-PJV5HVZY.js';
|
|
22
25
|
import '../chunk-TEXK4RK6.js';
|
|
23
|
-
import '../chunk-VBBLHS2Y.js';
|
|
24
|
-
import '../chunk-IMF3CPTY.js';
|
|
25
|
-
import '../chunk-XSPCITPN.js';
|
|
26
26
|
import '../chunk-KM5OKCW6.js';
|
|
27
27
|
import '../chunk-TDFLCUBE.js';
|
|
28
28
|
import '../chunk-BFZAGIXR.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { DATASET_SOURCE_KINDS, DatasetSource, DatasetSourceList } from '../chunk-OHXOUHTX.js';
|
|
2
2
|
import '../chunk-SJ3EUCFD.js';
|
|
3
|
+
import '../chunk-QRE6JCHS.js';
|
|
3
4
|
import '../chunk-GBKBME7Q.js';
|
|
4
5
|
import '../chunk-WGLOH33S.js';
|
|
5
|
-
import '../chunk-QRE6JCHS.js';
|
|
6
6
|
import '../chunk-2YTOOH3A.js';
|
|
7
7
|
import '../chunk-RRRK2KB6.js';
|
|
8
8
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -4,11 +4,11 @@ import '../chunk-OAD4AXYJ.js';
|
|
|
4
4
|
import '../chunk-MXOT2CWL.js';
|
|
5
5
|
import '../chunk-NWKH5FF7.js';
|
|
6
6
|
import '../chunk-SJ3EUCFD.js';
|
|
7
|
+
import '../chunk-QRE6JCHS.js';
|
|
7
8
|
import '../chunk-E7KRB77B.js';
|
|
8
9
|
import '../chunk-AV2DXAEL.js';
|
|
9
10
|
import '../chunk-475DOAWF.js';
|
|
10
11
|
import '../chunk-WSIJDWUG.js';
|
|
11
|
-
import '../chunk-QRE6JCHS.js';
|
|
12
12
|
import '../chunk-D5O64CVE.js';
|
|
13
13
|
import '../chunk-IMF3CPTY.js';
|
|
14
14
|
import '../chunk-XSPCITPN.js';
|
package/dist/DiffList/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/* DiffList: one path per row, with its mark, its word and its tint.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
is never text and an ink step is never a background. */
|
|
3
|
+
An added or removed row takes the diff family's row and sign, as a line of
|
|
4
|
+
DiffView does; a changed one the warning soft step and its ink. */
|
|
6
5
|
/*
|
|
7
6
|
* HALF A STEP, between the rows and inside them. A diff row is a LINE OF A
|
|
8
7
|
* DOCUMENT rather than an item in a list: at the full 4px step a fifty-line
|
|
@@ -35,13 +34,13 @@
|
|
|
35
34
|
this replaces read add, remove and replace, which no answer has ever
|
|
36
35
|
carried, so every diff row rendered untinted. */
|
|
37
36
|
.crewlet-diff-list__row--added {
|
|
38
|
-
background: var(--color-
|
|
39
|
-
color: var(--color-
|
|
37
|
+
background: var(--color-diff-added-row);
|
|
38
|
+
color: var(--color-diff-added-sign);
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
.crewlet-diff-list__row--removed {
|
|
43
|
-
background: var(--color-
|
|
44
|
-
color: var(--color-
|
|
42
|
+
background: var(--color-diff-removed-row);
|
|
43
|
+
color: var(--color-diff-removed-sign);
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
.crewlet-diff-list__row--changed {
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { DiffSection } from './diff.js';
|
|
3
|
-
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import type { DiffLine, DiffSection } from './diff.js';
|
|
3
|
+
import { type Uncompared } from './lineDiff.js';
|
|
4
|
+
import { type DiffSpan } from './wordDiff.js';
|
|
5
|
+
export interface DiffSummaryLabels {
|
|
6
|
+
/** Read in place of the drawn counts: "3 lines added, 1 removed". */
|
|
7
|
+
spoken: (added: number, removed: number) => string;
|
|
8
|
+
/** What the counts are measured against: "against version 4". */
|
|
9
|
+
against: (what: string) => string;
|
|
10
|
+
}
|
|
11
|
+
export declare const DIFF_SUMMARY_LABELS: DiffSummaryLabels;
|
|
12
|
+
export interface DiffViewLabels extends DiffSummaryLabels {
|
|
4
13
|
/** The row a dropped run of unchanged lines is drawn as: "12 unchanged lines". */
|
|
5
14
|
skipped: (count: number) => string;
|
|
6
15
|
/** Read in place of the `+` mark on an added line. */
|
|
@@ -9,39 +18,57 @@ export interface DiffViewLabels {
|
|
|
9
18
|
removed: string;
|
|
10
19
|
/** The region's accessible name when the caller gives none. */
|
|
11
20
|
region: string;
|
|
21
|
+
/** Said in place of the diff when nothing changed and the host gives no `empty`. */
|
|
22
|
+
empty: string;
|
|
23
|
+
/** Said in place of every row when two texts were not compared. */
|
|
24
|
+
notCompared: (why: Uncompared) => string;
|
|
25
|
+
/** A pickable line number's name: "Line 12: pick it". */
|
|
26
|
+
pick: (line: DiffLine) => string;
|
|
12
27
|
}
|
|
13
28
|
export declare const DIFF_VIEW_LABELS: DiffViewLabels;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* sections a host computed some other way.
|
|
19
|
-
*/
|
|
29
|
+
/** How the two sides are laid out. */
|
|
30
|
+
export type DiffLayout = 'unified' | 'split';
|
|
31
|
+
/** Sections a host computed, or two texts the diff compares by line. */
|
|
32
|
+
type DiffSource = {
|
|
20
33
|
sections: readonly DiffSection[];
|
|
34
|
+
before?: undefined;
|
|
35
|
+
after?: undefined;
|
|
36
|
+
context?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
before: string;
|
|
39
|
+
after: string;
|
|
40
|
+
/** Unchanged lines kept either side of a change: three when unset. */
|
|
41
|
+
context?: number | undefined;
|
|
42
|
+
sections?: undefined;
|
|
43
|
+
};
|
|
44
|
+
export type DiffViewProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & DiffSource & {
|
|
45
|
+
/** Unified by default; split only where the diff is at least the phone breakpoint wide. */
|
|
46
|
+
layout?: DiffLayout | undefined;
|
|
47
|
+
/** What the counts above the diff are measured against ("rev 12"); left out, no counts are drawn. */
|
|
48
|
+
against?: string | undefined;
|
|
49
|
+
/** Drawn in place of the diff when nothing changed. */
|
|
50
|
+
empty?: ReactNode;
|
|
51
|
+
/** What a host draws under a line (a finding, a thread); asked only for the rows drawn. */
|
|
52
|
+
notes?: ((line: DiffLine) => ReactNode) | undefined;
|
|
53
|
+
/** With it, each line's own number is a button that picks the line; Shift extends the pick. */
|
|
54
|
+
onPick?: ((line: DiffLine, extend: boolean) => void) | undefined;
|
|
55
|
+
/** Whether the host has picked a line, which is drawn marked. */
|
|
56
|
+
picked?: ((line: DiffLine) => boolean) | undefined;
|
|
57
|
+
/** The line to bring into view once, wherever the window is; a new predicate is a new reveal. */
|
|
58
|
+
reveal?: ((line: DiffLine) => boolean) | undefined;
|
|
59
|
+
/** A line's coloured spans (its syntax), by the side it is read from and its number there. */
|
|
60
|
+
tokens?: ((side: 'before' | 'after', n: number) => readonly DiffSpan[] | null) | undefined;
|
|
21
61
|
labels?: Partial<DiffViewLabels> | undefined;
|
|
22
|
-
}
|
|
62
|
+
};
|
|
63
|
+
/** Rows a diff draws before only the blocks near the view hold theirs. */
|
|
64
|
+
export declare const WINDOW_FROM_ROWS = 1000;
|
|
65
|
+
/** Rows a window block holds. */
|
|
66
|
+
export declare const WINDOW_BLOCK_ROWS = 100;
|
|
23
67
|
/**
|
|
24
|
-
* A line diff,
|
|
25
|
-
*
|
|
26
|
-
* MONOSPACE AND LINE-NUMBERED on both sides, because the two numbers are what
|
|
27
|
-
* a reader uses to find the paragraph in the version beside it. A skipped run
|
|
28
|
-
* is a row of its own saying how many lines it stands for: a gap silently
|
|
29
|
-
* closed makes a document edited at both ends look like one rewritten in the
|
|
30
|
-
* middle.
|
|
31
|
-
*
|
|
32
|
-
* COLOUR IS NEVER THE ONLY SIGNAL. An added or removed line carries a tint, a
|
|
33
|
-
* drawn mark and a word: the mark is hidden from assistive technology and the
|
|
34
|
-
* word ("Added", "Removed") is read in its place, because a minus sign is
|
|
35
|
-
* announced as anything from "minus" to nothing at all.
|
|
68
|
+
* A line diff on the diff family's tints, each line also marked by a glyph and
|
|
69
|
+
* a word; handed two texts it compares them, and says when it did not.
|
|
36
70
|
*/
|
|
37
|
-
export declare function DiffView(
|
|
38
|
-
export interface DiffSummaryLabels {
|
|
39
|
-
/** Read in place of the drawn counts: "3 lines added, 1 removed". */
|
|
40
|
-
spoken: (added: number, removed: number) => string;
|
|
41
|
-
/** What the counts are measured against: "against version 4". */
|
|
42
|
-
against: (what: string) => string;
|
|
43
|
-
}
|
|
44
|
-
export declare const DIFF_SUMMARY_LABELS: DiffSummaryLabels;
|
|
71
|
+
export declare function DiffView(props: DiffViewProps): import("react").JSX.Element;
|
|
45
72
|
export interface DiffSummaryProps extends Omit<HTMLAttributes<HTMLParagraphElement>, 'children'> {
|
|
46
73
|
added: number;
|
|
47
74
|
removed: number;
|
|
@@ -50,10 +77,8 @@ export interface DiffSummaryProps extends Omit<HTMLAttributes<HTMLParagraphEleme
|
|
|
50
77
|
labels?: Partial<DiffSummaryLabels> | undefined;
|
|
51
78
|
}
|
|
52
79
|
/**
|
|
53
|
-
* The one line above a diff that says how big it is: `+3 −1 against version 4
|
|
54
|
-
*
|
|
55
|
-
* The drawn counts are tinted with the same inks as the lines they count, and
|
|
56
|
-
* a sentence is read in their place, so the size of the change never rests on
|
|
57
|
-
* a plus sign and a colour.
|
|
80
|
+
* The one line above a diff that says how big it is: `+3 −1 against version 4`,
|
|
81
|
+
* the counts in the diff family's sign inks and a sentence read in their place.
|
|
58
82
|
*/
|
|
59
83
|
export declare function DiffSummary({ added, removed, against, labels: overrides, className, ...rest }: DiffSummaryProps): import("react").JSX.Element;
|
|
84
|
+
export {};
|
package/dist/DiffView/diff.d.ts
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* the one a prose document wants: a paragraph somebody rewrote is a line
|
|
6
|
-
* replaced, not thirty character edits scattered through it. Word-level
|
|
7
|
-
* refinement inside a changed line is deliberately absent: it makes a small
|
|
8
|
-
* edit prettier and a large one unreadable, and documents are rewritten in
|
|
9
|
-
* paragraphs.
|
|
10
|
-
*
|
|
11
|
-
* THE TABLE RATHER THAN MYERS, and [MAX_DIFF_LINES] is what pays for that
|
|
12
|
-
* choice. The table is quadratic on every input, but it is a dozen lines
|
|
13
|
-
* anybody can check by reading; the cap keeps the quadratic term small, and a
|
|
14
|
-
* document past it is reported as a whole replacement rather than freezing the
|
|
15
|
-
* tab.
|
|
16
|
-
*
|
|
17
|
-
* FRAMEWORK FREE. Nothing here imports React, so a host can compute a diff in
|
|
18
|
-
* a worker or a test and hand the sections to [DiffView].
|
|
2
|
+
* The shapes a line diff is drawn from, and what a host does with them: count
|
|
3
|
+
* a diff, collapse a whole one to its changes, or cut a preview. Two texts are
|
|
4
|
+
* compared by [compareLines] (`lineDiff.ts`). Framework free.
|
|
19
5
|
*/
|
|
20
|
-
/** One line of
|
|
6
|
+
/** One line of a diff. `same` lines carry both numbers. */
|
|
21
7
|
export interface DiffLine {
|
|
22
8
|
kind: 'same' | 'add' | 'remove';
|
|
23
9
|
text: string;
|
|
@@ -25,6 +11,8 @@ export interface DiffLine {
|
|
|
25
11
|
before: number | null;
|
|
26
12
|
/** 1-based line number in the NEW document, or null on a removal. */
|
|
27
13
|
after: number | null;
|
|
14
|
+
/** Where a setting is (a configuration path, a file): a keyed diff draws it in place of the numbers. */
|
|
15
|
+
path?: string | undefined;
|
|
28
16
|
}
|
|
29
17
|
/** What a diff amounts to, for a one-line summary above it. */
|
|
30
18
|
export interface DiffStat {
|
|
@@ -40,35 +28,15 @@ export interface DiffStat {
|
|
|
40
28
|
*/
|
|
41
29
|
export interface DiffSection {
|
|
42
30
|
/** The lines of this section, in order. */
|
|
43
|
-
lines: DiffLine[];
|
|
31
|
+
lines: readonly DiffLine[];
|
|
44
32
|
/** How many unchanged lines were dropped BEFORE this section. */
|
|
45
33
|
skipped: number;
|
|
46
34
|
}
|
|
47
35
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* SIZED FROM THE TABLE'S MEMORY, because that is the quantity that binds and
|
|
51
|
-
* it is paid on every input: `(N+1)` rows of `(M+1)` `Uint32` entries, every
|
|
52
|
-
* cell filled. At two thousand lines that is about 16 MB and 60 ms, which a
|
|
53
|
-
* tab holds without noticing; at ten thousand it is hundreds of megabytes and
|
|
54
|
-
* seconds on the main thread. Raising it means replacing the table with Myers
|
|
55
|
-
* or Hirschberg first.
|
|
56
|
-
*/
|
|
57
|
-
export declare const MAX_DIFF_LINES = 2000;
|
|
58
|
-
/**
|
|
59
|
-
* Split a document into the lines a diff compares.
|
|
60
|
-
*
|
|
61
|
-
* A trailing newline is not a line. Every file that ends properly has one, so
|
|
62
|
-
* counting it would report an added last line on every document that gained
|
|
63
|
-
* one. Both line endings read as one.
|
|
36
|
+
* Split a text into the lines a diff compares: every line ending ends one, and
|
|
37
|
+
* a final newline ends the last line rather than starting another.
|
|
64
38
|
*/
|
|
65
39
|
export declare function splitLines(text: string): string[];
|
|
66
|
-
/**
|
|
67
|
-
* The line diff of two documents: every line of the result in order, context
|
|
68
|
-
* included, because a document diff is read as a document rather than as a
|
|
69
|
-
* patch.
|
|
70
|
-
*/
|
|
71
|
-
export declare function diffLines(before: string, after: string): DiffLine[];
|
|
72
40
|
/**
|
|
73
41
|
* Count the additions and removals, and say when there are none: identical is
|
|
74
42
|
* its own answer, not "0 added, 0 removed".
|
package/dist/DiffView/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import './DiffView.css';
|
|
2
|
-
export { DiffView, DiffSummary, DIFF_VIEW_LABELS, DIFF_SUMMARY_LABELS } from './DiffView.js';
|
|
3
|
-
export type { DiffViewLabels, DiffViewProps, DiffSummaryLabels, DiffSummaryProps } from './DiffView.js';
|
|
4
|
-
export {
|
|
2
|
+
export { DiffView, DiffSummary, DIFF_VIEW_LABELS, DIFF_SUMMARY_LABELS, WINDOW_BLOCK_ROWS, WINDOW_FROM_ROWS, } from './DiffView.js';
|
|
3
|
+
export type { DiffLayout, DiffViewLabels, DiffViewProps, DiffSummaryLabels, DiffSummaryProps } from './DiffView.js';
|
|
4
|
+
export { collapseDiff, diffStat, firstChangedLines, splitLines } from './diff.js';
|
|
5
5
|
export type { DiffLine, DiffSection, DiffStat } from './diff.js';
|
|
6
|
+
export { CONTEXT_LINES, MAX_COMPARE_LINES, MAX_EDITS, compareLines, compareSequences, distanceFloor, notComparedReason, } from './lineDiff.js';
|
|
7
|
+
export type { EditRun, LineComparison, Uncompared } from './lineDiff.js';
|
|
8
|
+
export { changedRuns, lineTokens, segments } from './wordDiff.js';
|
|
9
|
+
export type { ChangedRuns, DiffSpan, LineToken, Run, Segment } from './wordDiff.js';
|
package/dist/DiffView/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DIFF_SUMMARY_LABELS, DIFF_VIEW_LABELS, DiffSummary, DiffView,
|
|
1
|
+
export { CONTEXT_LINES, DIFF_SUMMARY_LABELS, DIFF_VIEW_LABELS, DiffSummary, DiffView, MAX_COMPARE_LINES, MAX_EDITS, WINDOW_BLOCK_ROWS, WINDOW_FROM_ROWS, changedRuns, collapseDiff, compareLines, compareSequences, diffStat, distanceFloor, firstChangedLines, lineTokens, notComparedReason, segments, splitLines } from '../chunk-4YLN5QVL.js';
|
|
2
2
|
import '../chunk-RRRK2KB6.js';
|
|
3
3
|
import '../chunk-ODEQTPFM.js';
|