@limetech/lime-elements 39.6.0 → 39.7.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/CHANGELOG.md +7 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/{limel-action-bar_2.cjs.entry.js → limel-action-bar_3.cjs.entry.js} +111 -93
- package/dist/cjs/limel-ai-avatar.cjs.entry.js +1 -1
- package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js +6 -6
- package/dist/cjs/limel-button-group.cjs.entry.js +7 -8
- package/dist/cjs/limel-callout.cjs.entry.js +1 -1
- package/dist/cjs/limel-chart.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-diff.cjs.entry.js +1758 -0
- package/dist/cjs/limel-code-editor.cjs.entry.js +2 -2
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +2 -2
- package/dist/cjs/limel-color-picker-palette.cjs.entry.js +2 -2
- package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-dialog.cjs.entry.js +2 -2
- package/dist/cjs/limel-dock.cjs.entry.js +2 -2
- package/dist/cjs/limel-drag-handle.cjs.entry.js +2 -2
- package/dist/cjs/limel-email-viewer.cjs.entry.js +2 -2
- package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-file-viewer.cjs.entry.js +1 -1
- package/dist/cjs/limel-file.cjs.entry.js +2 -2
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +2 -2
- package/dist/cjs/limel-flex-container.cjs.entry.js +1 -1
- package/dist/cjs/limel-form.cjs.entry.js +1 -1
- package/dist/cjs/limel-grid.cjs.entry.js +1 -1
- package/dist/cjs/limel-header.cjs.entry.js +1 -1
- package/dist/cjs/limel-help-content.cjs.entry.js +1 -1
- package/dist/cjs/limel-help.cjs.entry.js +2 -2
- package/dist/cjs/limel-helper-line_2.cjs.entry.js +3 -3
- package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-icon.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +2 -2
- package/dist/cjs/limel-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/limel-list-item.cjs.entry.js +3 -3
- package/dist/cjs/limel-markdown.cjs.entry.js +1 -1
- package/dist/cjs/limel-menu-item-meta.cjs.entry.js +1 -1
- package/dist/cjs/limel-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-popover_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-portal_3.cjs.entry.js +4 -4
- package/dist/cjs/limel-profile-picture.cjs.entry.js +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +2 -2
- package/dist/cjs/limel-radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/limel-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-select.cjs.entry.js +1 -1
- package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +1 -1
- package/dist/cjs/limel-snackbar.cjs.entry.js +3 -3
- package/dist/cjs/limel-split-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +4 -4
- package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +120 -0
- package/dist/cjs/limel-text-editor.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{translations-BBGWKIVD.js → translations-Bu_0fli7.js} +236 -4
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/button-group/button-group.css +38 -650
- package/dist/collection/components/button-group/button-group.js +6 -7
- package/dist/collection/components/code-diff/code-diff.css +519 -0
- package/dist/collection/components/code-diff/code-diff.js +775 -0
- package/dist/collection/components/code-diff/content-utils.js +49 -0
- package/dist/collection/components/code-diff/diff-engine.js +308 -0
- package/dist/collection/components/code-diff/search-utils.js +41 -0
- package/dist/collection/components/code-diff/syntax-highlighter.js +87 -0
- package/dist/collection/components/code-diff/types.js +1 -0
- package/dist/collection/components/code-editor/code-editor.js +1 -1
- package/dist/collection/components/collapsible-section/collapsible-section.js +1 -1
- package/dist/collection/components/color-picker/color-picker-palette.js +2 -2
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +1 -1
- package/dist/collection/components/dialog/dialog.js +2 -2
- package/dist/collection/components/dock/dock.js +2 -2
- package/dist/collection/components/drag-handle/drag-handle.js +1 -1
- package/dist/collection/components/email-viewer/email-viewer.js +1 -1
- package/dist/collection/components/file/file.js +1 -1
- package/dist/collection/components/file-dropzone/file-dropzone.js +1 -1
- package/dist/collection/components/file-input/file-input.js +1 -1
- package/dist/collection/components/flex-container/flex-container.js +1 -1
- package/dist/collection/components/form/form.js +1 -1
- package/dist/collection/components/grid/grid.js +1 -1
- package/dist/collection/components/header/header.js +1 -1
- package/dist/collection/components/help/help-content.js +1 -1
- package/dist/collection/components/help/help.js +2 -2
- package/dist/collection/components/helper-line/helper-line.js +2 -2
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/info-tile/info-tile.js +2 -2
- package/dist/collection/components/input-field/input-field.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list-item/list-item.js +2 -2
- package/dist/collection/components/list-item/menu-item-meta/menu-item-meta.js +1 -1
- package/dist/collection/components/markdown/markdown.js +1 -1
- package/dist/collection/components/menu/menu.js +1 -1
- package/dist/collection/components/menu-list/menu-list.js +1 -1
- package/dist/collection/components/menu-surface/menu-surface.js +1 -1
- package/dist/collection/components/notched-outline/notched-outline.js +1 -1
- package/dist/collection/components/picker/picker.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover-surface/popover-surface.js +1 -1
- package/dist/collection/components/portal/portal.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button.js +2 -2
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shortcut/shortcut.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/snackbar/snackbar.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-button/split-button.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/table/table.js +3 -3
- package/dist/collection/components/text-editor/link-menu/editor-link-menu.js +3 -3
- package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +1 -1
- package/dist/collection/components/text-editor/text-editor.js +1 -1
- package/dist/collection/components/tooltip/tooltip-content.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/translations/da.js +29 -0
- package/dist/collection/translations/de.js +29 -0
- package/dist/collection/translations/en.js +29 -0
- package/dist/collection/translations/fi.js +29 -0
- package/dist/collection/translations/fr.js +33 -4
- package/dist/collection/translations/nl.js +29 -0
- package/dist/collection/translations/no.js +29 -0
- package/dist/collection/translations/sv.js +29 -0
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/{limel-action-bar_2.entry.js → limel-action-bar_3.entry.js} +110 -93
- package/dist/esm/limel-ai-avatar.entry.js +1 -1
- package/dist/esm/limel-breadcrumbs_7.entry.js +6 -6
- package/dist/esm/limel-button-group.entry.js +7 -8
- package/dist/esm/limel-callout.entry.js +1 -1
- package/dist/esm/limel-chart.entry.js +1 -1
- package/dist/esm/limel-chip_2.entry.js +1 -1
- package/dist/esm/limel-code-diff.entry.js +1756 -0
- package/dist/esm/limel-code-editor.entry.js +2 -2
- package/dist/esm/limel-collapsible-section.entry.js +2 -2
- package/dist/esm/limel-color-picker-palette.entry.js +2 -2
- package/dist/esm/limel-color-picker.entry.js +1 -1
- package/dist/esm/limel-dialog.entry.js +2 -2
- package/dist/esm/limel-dock.entry.js +2 -2
- package/dist/esm/limel-drag-handle.entry.js +2 -2
- package/dist/esm/limel-email-viewer.entry.js +2 -2
- package/dist/esm/limel-file-dropzone_2.entry.js +2 -2
- package/dist/esm/limel-file-viewer.entry.js +1 -1
- package/dist/esm/limel-file.entry.js +2 -2
- package/dist/esm/limel-flatpickr-adapter.entry.js +2 -2
- package/dist/esm/limel-flex-container.entry.js +1 -1
- package/dist/esm/limel-form.entry.js +1 -1
- package/dist/esm/limel-grid.entry.js +1 -1
- package/dist/esm/limel-header.entry.js +1 -1
- package/dist/esm/limel-help-content.entry.js +1 -1
- package/dist/esm/limel-help.entry.js +2 -2
- package/dist/esm/limel-helper-line_2.entry.js +3 -3
- package/dist/esm/limel-icon-button.entry.js +1 -1
- package/dist/esm/limel-icon.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js +2 -2
- package/dist/esm/limel-linear-progress.entry.js +1 -1
- package/dist/esm/limel-list-item.entry.js +3 -3
- package/dist/esm/limel-markdown.entry.js +1 -1
- package/dist/esm/limel-menu-item-meta.entry.js +1 -1
- package/dist/esm/limel-picker.entry.js +1 -1
- package/dist/esm/limel-popover_2.entry.js +2 -2
- package/dist/esm/limel-portal_3.entry.js +4 -4
- package/dist/esm/limel-profile-picture.entry.js +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +2 -2
- package/dist/esm/limel-radio-button-group.entry.js +1 -1
- package/dist/esm/limel-radio-button.entry.js +2 -2
- package/dist/esm/limel-select.entry.js +1 -1
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-slider.entry.js +1 -1
- package/dist/esm/limel-snackbar.entry.js +3 -3
- package/dist/esm/limel-split-button.entry.js +2 -2
- package/dist/esm/limel-tab-bar.entry.js +2 -2
- package/dist/esm/limel-tab-panel.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +4 -4
- package/dist/esm/limel-text-editor-link-menu.entry.js +118 -0
- package/dist/esm/limel-text-editor.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{translations-BHybIZJs.js → translations-DVRaJQvC.js} +236 -4
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-58176f7b.entry.js → p-05ff053d.entry.js} +1 -1
- package/dist/lime-elements/{p-7dd4e4bb.entry.js → p-08d1b87a.entry.js} +1 -1
- package/dist/lime-elements/{p-94f78e7a.entry.js → p-0fa2add8.entry.js} +1 -1
- package/dist/lime-elements/{p-40883e25.entry.js → p-1547b9c8.entry.js} +1 -1
- package/dist/lime-elements/{p-16a5f421.entry.js → p-1c244f85.entry.js} +1 -1
- package/dist/lime-elements/{p-ba9d6d42.entry.js → p-21dc4586.entry.js} +1 -1
- package/dist/lime-elements/{p-8e6a36a7.entry.js → p-2292181d.entry.js} +1 -1
- package/dist/lime-elements/{p-889d0000.entry.js → p-26bc957e.entry.js} +1 -1
- package/dist/lime-elements/{p-d4a51f0a.entry.js → p-287c4fb1.entry.js} +1 -1
- package/dist/lime-elements/p-358b277c.entry.js +1 -0
- package/dist/lime-elements/{p-f43e4cb8.entry.js → p-44295cc0.entry.js} +1 -1
- package/dist/lime-elements/{p-78fffaa9.entry.js → p-5178cc39.entry.js} +1 -1
- package/dist/lime-elements/{p-ec5b360a.entry.js → p-518fe33c.entry.js} +2 -2
- package/dist/lime-elements/{p-911db0aa.entry.js → p-53b94806.entry.js} +1 -1
- package/dist/lime-elements/p-5be668d8.entry.js +1 -0
- package/dist/lime-elements/{p-f49e5d8a.entry.js → p-68ffd790.entry.js} +1 -1
- package/dist/lime-elements/{p-fdfecf3d.entry.js → p-6a26ea78.entry.js} +1 -1
- package/dist/lime-elements/{p-5f593160.entry.js → p-6b05db4a.entry.js} +1 -1
- package/dist/lime-elements/p-70e2e60c.entry.js +1 -0
- package/dist/lime-elements/{p-3ad102a1.entry.js → p-756f452c.entry.js} +1 -1
- package/dist/lime-elements/{p-fa6aea91.entry.js → p-8784a57c.entry.js} +1 -1
- package/dist/lime-elements/{p-6d28c7b4.entry.js → p-89dfbd4a.entry.js} +1 -1
- package/dist/lime-elements/{p-5280d11e.entry.js → p-8ec4fdee.entry.js} +1 -1
- package/dist/lime-elements/{p-1b0eec07.entry.js → p-90f8d2ef.entry.js} +1 -1
- package/dist/lime-elements/p-965288d2.entry.js +1 -0
- package/dist/lime-elements/{p-8b77d2a8.entry.js → p-9908b57a.entry.js} +1 -1
- package/dist/lime-elements/{p-2d7a2258.entry.js → p-9e3e4f2c.entry.js} +1 -1
- package/dist/lime-elements/p-DVRaJQvC.js +1 -0
- package/dist/lime-elements/{p-3b18ef34.entry.js → p-a2295fa6.entry.js} +1 -1
- package/dist/lime-elements/{p-14bfd676.entry.js → p-a489f4b0.entry.js} +1 -1
- package/dist/lime-elements/{p-d5e954d4.entry.js → p-aeebf410.entry.js} +1 -1
- package/dist/lime-elements/{p-f4c9301d.entry.js → p-b11751c9.entry.js} +1 -1
- package/dist/lime-elements/{p-a1c1c40d.entry.js → p-b6ccc921.entry.js} +1 -1
- package/dist/lime-elements/{p-60f12574.entry.js → p-b95a42ea.entry.js} +1 -1
- package/dist/lime-elements/{p-8118cd4f.entry.js → p-bb38bb3c.entry.js} +1 -1
- package/dist/lime-elements/{p-d93f1c5f.entry.js → p-c3d565e2.entry.js} +1 -1
- package/dist/lime-elements/{p-a113dc9d.entry.js → p-c3ff8518.entry.js} +1 -1
- package/dist/lime-elements/{p-e00a96bd.entry.js → p-c6b9425b.entry.js} +1 -1
- package/dist/lime-elements/{p-373b7df7.entry.js → p-c6e9af7c.entry.js} +1 -1
- package/dist/lime-elements/{p-7997c118.entry.js → p-ce22f3da.entry.js} +1 -1
- package/dist/lime-elements/{p-8c6dfb19.entry.js → p-d5da5b05.entry.js} +1 -1
- package/dist/lime-elements/{p-b255e8e6.entry.js → p-da4429a8.entry.js} +1 -1
- package/dist/lime-elements/{p-6aa7cd43.entry.js → p-dcf3cc71.entry.js} +1 -1
- package/dist/lime-elements/{p-97f719ae.entry.js → p-de1e5ad9.entry.js} +1 -1
- package/dist/lime-elements/{p-13d0ec04.entry.js → p-eaac5ad2.entry.js} +1 -1
- package/dist/lime-elements/{p-ce178fbd.entry.js → p-ed8129db.entry.js} +1 -1
- package/dist/lime-elements/{p-b92431c8.entry.js → p-ee3afb60.entry.js} +3 -3
- package/dist/lime-elements/{p-8eff8a18.entry.js → p-ef75eed9.entry.js} +1 -1
- package/dist/lime-elements/{p-46b95d7c.entry.js → p-ef9bb368.entry.js} +1 -1
- package/dist/lime-elements/{p-912f53a3.entry.js → p-f70b8487.entry.js} +1 -1
- package/dist/lime-elements/{p-d53b8de5.entry.js → p-f9d5513d.entry.js} +1 -1
- package/dist/lime-elements/{p-bc4b4e46.entry.js → p-fb6c42a6.entry.js} +1 -1
- package/dist/types/components/code-diff/code-diff.d.ts +147 -0
- package/dist/types/components/code-diff/content-utils.d.ts +27 -0
- package/dist/types/components/code-diff/diff-engine.d.ts +36 -0
- package/dist/types/components/code-diff/search-utils.d.ts +30 -0
- package/dist/types/components/code-diff/syntax-highlighter.d.ts +19 -0
- package/dist/types/components/code-diff/types.d.ts +50 -0
- package/dist/types/components.d.ts +175 -0
- package/dist/types/translations/da.d.ts +29 -0
- package/dist/types/translations/de.d.ts +29 -0
- package/dist/types/translations/en.d.ts +29 -0
- package/dist/types/translations/fi.d.ts +29 -0
- package/dist/types/translations/fr.d.ts +29 -0
- package/dist/types/translations/nl.d.ts +29 -0
- package/dist/types/translations/no.d.ts +29 -0
- package/dist/types/translations/sv.d.ts +29 -0
- package/package.json +2 -1
- package/dist/cjs/limel-action-bar-item_2.cjs.entry.js +0 -137
- package/dist/esm/limel-action-bar-item_2.entry.js +0 -134
- package/dist/lime-elements/p-854a3ffe.entry.js +0 -1
- package/dist/lime-elements/p-8f2ac274.entry.js +0 -1
- package/dist/lime-elements/p-BHybIZJs.js +0 -1
- package/dist/lime-elements/p-accc6cc0.entry.js +0 -1
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { Languages } from '../date-picker/date.types';
|
|
2
|
+
/**
|
|
3
|
+
* Displays a visual diff between two text values, modeled on
|
|
4
|
+
* GitHub's code difference view.
|
|
5
|
+
*
|
|
6
|
+
* Supports unified and split (side-by-side) views with line numbers,
|
|
7
|
+
* color-coded additions and removals, word-level inline highlighting,
|
|
8
|
+
* and collapsible unchanged context sections.
|
|
9
|
+
*
|
|
10
|
+
* @beta
|
|
11
|
+
* @exampleComponent limel-example-code-diff-basic
|
|
12
|
+
* @exampleComponent limel-example-code-diff-headings
|
|
13
|
+
* @exampleComponent limel-example-code-diff-json
|
|
14
|
+
* @exampleComponent limel-example-code-diff-split
|
|
15
|
+
* @exampleComponent limel-example-code-diff-line-wrap
|
|
16
|
+
* @exampleComponent limel-example-code-diff-expand
|
|
17
|
+
*/
|
|
18
|
+
export declare class CodeDiff {
|
|
19
|
+
/**
|
|
20
|
+
* The "before" value to compare.
|
|
21
|
+
* Can be a string or an object (which will be serialized to JSON).
|
|
22
|
+
*/
|
|
23
|
+
oldValue: string | object;
|
|
24
|
+
/**
|
|
25
|
+
* The "after" value to compare.
|
|
26
|
+
* Can be a string or an object (which will be serialized to JSON).
|
|
27
|
+
*/
|
|
28
|
+
newValue: string | object;
|
|
29
|
+
/**
|
|
30
|
+
* Heading for the original (before) version, displayed in the diff header.
|
|
31
|
+
* Defaults to `"Original"`, localized via `translationLanguage`.
|
|
32
|
+
*/
|
|
33
|
+
oldHeading?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Heading for the modified (after) version, displayed in the diff header.
|
|
36
|
+
* Defaults to `"Modified"`, localized via `translationLanguage`.
|
|
37
|
+
*/
|
|
38
|
+
newHeading?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The layout of the diff view.
|
|
41
|
+
* - `unified` — single column with interleaved additions and removals
|
|
42
|
+
* - `split` — side-by-side comparison with old on left, new on right
|
|
43
|
+
*/
|
|
44
|
+
layout: 'unified' | 'split';
|
|
45
|
+
/**
|
|
46
|
+
* Number of unchanged context lines to display around each change.
|
|
47
|
+
*/
|
|
48
|
+
contextLines: number;
|
|
49
|
+
/**
|
|
50
|
+
* When `true`, long lines are wrapped instead of causing
|
|
51
|
+
* horizontal scrolling. Useful when comparing prose or
|
|
52
|
+
* config files with long values.
|
|
53
|
+
*/
|
|
54
|
+
lineWrapping: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Language for syntax highlighting.
|
|
57
|
+
* Currently supports `"json"`. When set, code tokens are
|
|
58
|
+
* colorized (strings, numbers, keys, etc.) alongside the
|
|
59
|
+
* diff highlighting.
|
|
60
|
+
*/
|
|
61
|
+
language?: string;
|
|
62
|
+
/**
|
|
63
|
+
* When `true`, JSON values are parsed, keys are sorted,
|
|
64
|
+
* and indentation is normalized before diffing.
|
|
65
|
+
* This eliminates noise from formatting or key-order differences.
|
|
66
|
+
*/
|
|
67
|
+
reformatJson: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Defines the language for translations.
|
|
70
|
+
* Will translate all visible labels and announcements.
|
|
71
|
+
*/
|
|
72
|
+
translationLanguage: Languages;
|
|
73
|
+
private readonly host;
|
|
74
|
+
private diffResult;
|
|
75
|
+
private liveAnnouncement;
|
|
76
|
+
private copyState;
|
|
77
|
+
private searchVisible;
|
|
78
|
+
private searchTerm;
|
|
79
|
+
private currentMatchIndex;
|
|
80
|
+
private focusedRowIndex;
|
|
81
|
+
private normalizedOldText;
|
|
82
|
+
/**
|
|
83
|
+
* Render-time counter that increments for each search match
|
|
84
|
+
* found while rendering removed lines. Used to determine which
|
|
85
|
+
* match is the "current" one for navigation highlighting.
|
|
86
|
+
*/
|
|
87
|
+
private searchMatchCounter;
|
|
88
|
+
/**
|
|
89
|
+
* Total search matches found during the last render pass.
|
|
90
|
+
*/
|
|
91
|
+
private totalSearchMatches;
|
|
92
|
+
/**
|
|
93
|
+
* Whether the current render is inside a removed line,
|
|
94
|
+
* so search highlighting knows when to activate.
|
|
95
|
+
*/
|
|
96
|
+
private isRenderingRemovedLine;
|
|
97
|
+
/**
|
|
98
|
+
* Cached search regex for the current render pass.
|
|
99
|
+
* Built once in render() and reused across all renderSearchableText calls.
|
|
100
|
+
*/
|
|
101
|
+
private activeSearchRegex;
|
|
102
|
+
private searchInputEl;
|
|
103
|
+
private prevSearchVisible;
|
|
104
|
+
componentWillLoad(): void;
|
|
105
|
+
componentDidRender(): void;
|
|
106
|
+
render(): any;
|
|
107
|
+
protected watchInputs(): void;
|
|
108
|
+
private recomputeDiff;
|
|
109
|
+
private formatSrSummary;
|
|
110
|
+
private renderScreenReaderSummary;
|
|
111
|
+
private handleKeyDown;
|
|
112
|
+
private getDiffRows;
|
|
113
|
+
private updateRowFocus;
|
|
114
|
+
private announceLine;
|
|
115
|
+
private renderHeader;
|
|
116
|
+
private renderCopyButton;
|
|
117
|
+
private copyToClipboard;
|
|
118
|
+
private renderSearchToggle;
|
|
119
|
+
private renderSearchBar;
|
|
120
|
+
private toggleSearch;
|
|
121
|
+
private onSearchInput;
|
|
122
|
+
private onSearchKeyDown;
|
|
123
|
+
private computeLineNumberWidth;
|
|
124
|
+
private getSearchActions;
|
|
125
|
+
private onSearchAction;
|
|
126
|
+
private navigateSearch;
|
|
127
|
+
private renderDiff;
|
|
128
|
+
private renderHunks;
|
|
129
|
+
private renderHunkLines;
|
|
130
|
+
private renderChangeBlock;
|
|
131
|
+
private renderLine;
|
|
132
|
+
private renderSplitHunkRows;
|
|
133
|
+
private renderSplitChangeBlock;
|
|
134
|
+
private renderSplitRow;
|
|
135
|
+
private renderBlockCopyButton;
|
|
136
|
+
private renderContent;
|
|
137
|
+
private renderSegment;
|
|
138
|
+
private renderSyntaxTokens;
|
|
139
|
+
private renderSyntaxToken;
|
|
140
|
+
private renderSearchableText;
|
|
141
|
+
private renderCollapsedRow;
|
|
142
|
+
private renderCollapsedAfterRow;
|
|
143
|
+
private expandHunk;
|
|
144
|
+
private expandAfter;
|
|
145
|
+
private getTranslation;
|
|
146
|
+
}
|
|
147
|
+
//# sourceMappingURL=code-diff.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure utility functions for extracting text content from diff structures.
|
|
3
|
+
*/
|
|
4
|
+
import { DiffLine, SplitDiffLine } from './types';
|
|
5
|
+
/**
|
|
6
|
+
* Extract the text content of removed lines from a unified change block.
|
|
7
|
+
*
|
|
8
|
+
* @param lines - consecutive changed lines from a unified diff hunk
|
|
9
|
+
* @returns the removed lines joined by newlines, or empty string if none
|
|
10
|
+
*/
|
|
11
|
+
export declare function extractRemovedContent(lines: DiffLine[]): string;
|
|
12
|
+
/**
|
|
13
|
+
* Extract the text content of removed lines from a split change block.
|
|
14
|
+
*
|
|
15
|
+
* @param rows - consecutive changed rows from a split diff hunk
|
|
16
|
+
* @returns the removed lines joined by newlines, or empty string if none
|
|
17
|
+
*/
|
|
18
|
+
export declare function extractRemovedContentFromSplit(rows: SplitDiffLine[]): string;
|
|
19
|
+
/**
|
|
20
|
+
* Format a screen-reader summary of diff additions and deletions.
|
|
21
|
+
*
|
|
22
|
+
* @param additions - number of added lines
|
|
23
|
+
* @param deletions - number of removed lines
|
|
24
|
+
* @returns human-readable summary string, or null if no changes
|
|
25
|
+
*/
|
|
26
|
+
export declare function formatDiffSummary(additions: number, deletions: number): string | null;
|
|
27
|
+
//# sourceMappingURL=content-utils.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DiffLine, DiffResult, SplitDiffLine } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Compute a structured diff between two strings.
|
|
4
|
+
*
|
|
5
|
+
* @param oldText - the "before" text
|
|
6
|
+
* @param newText - the "after" text
|
|
7
|
+
* @param contextLines - number of unchanged lines to show around each change
|
|
8
|
+
* @returns a DiffResult with hunks, additions, and deletions counts
|
|
9
|
+
*/
|
|
10
|
+
export declare function computeDiff(oldText: string, newText: string, contextLines?: number): DiffResult;
|
|
11
|
+
/**
|
|
12
|
+
* Re-group previously computed flat lines into hunks.
|
|
13
|
+
* Used when expanding collapsed sections without re-diffing.
|
|
14
|
+
*
|
|
15
|
+
* @param allLines - the full flat diff lines from a previous computation
|
|
16
|
+
* @param contextLines - number of context lines around changes
|
|
17
|
+
* @returns a DiffResult with new hunk groupings
|
|
18
|
+
*/
|
|
19
|
+
export declare function regroupLines(allLines: DiffLine[], contextLines: number): DiffResult;
|
|
20
|
+
/**
|
|
21
|
+
* Build paired rows for split (side-by-side) view from flat diff lines.
|
|
22
|
+
* Context lines appear on both sides. Adjacent removed+added lines
|
|
23
|
+
* are paired into the same row.
|
|
24
|
+
*
|
|
25
|
+
* @param lines - flat diff lines
|
|
26
|
+
* @returns paired rows for split rendering
|
|
27
|
+
*/
|
|
28
|
+
export declare function buildSplitLines(lines: DiffLine[]): SplitDiffLine[];
|
|
29
|
+
/**
|
|
30
|
+
* Normalize values for diffing. If `reformatJson` is true,
|
|
31
|
+
* parse and re-stringify with sorted keys and consistent indentation.
|
|
32
|
+
* @param value
|
|
33
|
+
* @param reformatJson
|
|
34
|
+
*/
|
|
35
|
+
export declare function normalizeForDiff(value: string | object, reformatJson?: boolean): string;
|
|
36
|
+
//# sourceMappingURL=diff-engine.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure utility functions for search-within-diff functionality.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Escape special regex characters in a search term so it can
|
|
6
|
+
* be used as a literal pattern in a RegExp constructor.
|
|
7
|
+
*
|
|
8
|
+
* @param term - the raw search string
|
|
9
|
+
* @returns regex-safe string
|
|
10
|
+
*/
|
|
11
|
+
export declare function escapeRegex(term: string): string;
|
|
12
|
+
/**
|
|
13
|
+
* Build a case-insensitive regex that captures the search term.
|
|
14
|
+
* Returns `null` when the term is empty.
|
|
15
|
+
*
|
|
16
|
+
* @param term - the raw search string
|
|
17
|
+
* @returns a RegExp with a single capture group, or null
|
|
18
|
+
*/
|
|
19
|
+
export declare function buildSearchRegex(term: string): RegExp | null;
|
|
20
|
+
/**
|
|
21
|
+
* Calculate the next match index when navigating forward or backward,
|
|
22
|
+
* wrapping around at the boundaries.
|
|
23
|
+
*
|
|
24
|
+
* @param currentIndex - current zero-based match index
|
|
25
|
+
* @param direction - +1 for next, -1 for previous
|
|
26
|
+
* @param total - total number of matches
|
|
27
|
+
* @returns the new match index
|
|
28
|
+
*/
|
|
29
|
+
export declare function navigateMatchIndex(currentIndex: number, direction: number, total: number): number;
|
|
30
|
+
//# sourceMappingURL=search-utils.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A syntax token representing a colored segment of code.
|
|
3
|
+
*/
|
|
4
|
+
export interface SyntaxToken {
|
|
5
|
+
value: string;
|
|
6
|
+
type: SyntaxTokenType;
|
|
7
|
+
}
|
|
8
|
+
export type SyntaxTokenType = 'plain' | 'string' | 'number' | 'boolean' | 'null' | 'key' | 'punctuation';
|
|
9
|
+
/**
|
|
10
|
+
* Tokenize a text fragment for syntax highlighting.
|
|
11
|
+
* Returns the original text as a single plain token when the
|
|
12
|
+
* language is not supported.
|
|
13
|
+
*
|
|
14
|
+
* @param text - the text to tokenize
|
|
15
|
+
* @param language - the language identifier (e.g. "json")
|
|
16
|
+
* @returns array of syntax tokens
|
|
17
|
+
*/
|
|
18
|
+
export declare function tokenize(text: string, language?: string): SyntaxToken[];
|
|
19
|
+
//# sourceMappingURL=syntax-highlighter.d.ts.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a segment within a diff line that may or may not be highlighted.
|
|
3
|
+
* Used for word-level diff highlighting within changed lines.
|
|
4
|
+
*/
|
|
5
|
+
export interface DiffSegment {
|
|
6
|
+
value: string;
|
|
7
|
+
type: 'equal' | 'added' | 'removed';
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Represents a single line in the diff output.
|
|
11
|
+
*/
|
|
12
|
+
export interface DiffLine {
|
|
13
|
+
type: 'added' | 'removed' | 'context';
|
|
14
|
+
content: string;
|
|
15
|
+
oldLineNumber?: number;
|
|
16
|
+
newLineNumber?: number;
|
|
17
|
+
segments?: DiffSegment[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A group of diff lines with surrounding context.
|
|
21
|
+
*/
|
|
22
|
+
export interface DiffHunk {
|
|
23
|
+
lines: DiffLine[];
|
|
24
|
+
collapsedBefore?: number;
|
|
25
|
+
/** Index of the first line in this hunk within the flat `allLines` array. */
|
|
26
|
+
startIndex: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A paired row for split (side-by-side) view.
|
|
30
|
+
* One or both sides may be present.
|
|
31
|
+
*/
|
|
32
|
+
export interface SplitDiffLine {
|
|
33
|
+
left?: DiffLine;
|
|
34
|
+
right?: DiffLine;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The full computed diff result.
|
|
38
|
+
*/
|
|
39
|
+
export interface DiffResult {
|
|
40
|
+
hunks: DiffHunk[];
|
|
41
|
+
additions: number;
|
|
42
|
+
deletions: number;
|
|
43
|
+
collapsedAfter?: number;
|
|
44
|
+
/**
|
|
45
|
+
* The full flat list of diff lines before grouping.
|
|
46
|
+
* Used internally for re-grouping when expanding hunks.
|
|
47
|
+
*/
|
|
48
|
+
allLines: DiffLine[];
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -955,6 +955,69 @@ export namespace Components {
|
|
|
955
955
|
*/
|
|
956
956
|
"value": number;
|
|
957
957
|
}
|
|
958
|
+
/**
|
|
959
|
+
* Displays a visual diff between two text values, modeled on
|
|
960
|
+
* GitHub's code difference view.
|
|
961
|
+
* Supports unified and split (side-by-side) views with line numbers,
|
|
962
|
+
* color-coded additions and removals, word-level inline highlighting,
|
|
963
|
+
* and collapsible unchanged context sections.
|
|
964
|
+
* @beta
|
|
965
|
+
* @exampleComponent limel-example-code-diff-basic
|
|
966
|
+
* @exampleComponent limel-example-code-diff-headings
|
|
967
|
+
* @exampleComponent limel-example-code-diff-json
|
|
968
|
+
* @exampleComponent limel-example-code-diff-split
|
|
969
|
+
* @exampleComponent limel-example-code-diff-line-wrap
|
|
970
|
+
* @exampleComponent limel-example-code-diff-expand
|
|
971
|
+
*/
|
|
972
|
+
interface LimelCodeDiff {
|
|
973
|
+
/**
|
|
974
|
+
* Number of unchanged context lines to display around each change.
|
|
975
|
+
* @default 3
|
|
976
|
+
*/
|
|
977
|
+
"contextLines": number;
|
|
978
|
+
/**
|
|
979
|
+
* Language for syntax highlighting. Currently supports `"json"`. When set, code tokens are colorized (strings, numbers, keys, etc.) alongside the diff highlighting.
|
|
980
|
+
*/
|
|
981
|
+
"language"?: string;
|
|
982
|
+
/**
|
|
983
|
+
* The layout of the diff view. - `unified` — single column with interleaved additions and removals - `split` — side-by-side comparison with old on left, new on right
|
|
984
|
+
* @default 'unified'
|
|
985
|
+
*/
|
|
986
|
+
"layout": 'unified' | 'split';
|
|
987
|
+
/**
|
|
988
|
+
* When `true`, long lines are wrapped instead of causing horizontal scrolling. Useful when comparing prose or config files with long values.
|
|
989
|
+
* @default true
|
|
990
|
+
*/
|
|
991
|
+
"lineWrapping": boolean;
|
|
992
|
+
/**
|
|
993
|
+
* Heading for the modified (after) version, displayed in the diff header. Defaults to `"Modified"`, localized via `translationLanguage`.
|
|
994
|
+
*/
|
|
995
|
+
"newHeading"?: string;
|
|
996
|
+
/**
|
|
997
|
+
* The "after" value to compare. Can be a string or an object (which will be serialized to JSON).
|
|
998
|
+
* @default ''
|
|
999
|
+
*/
|
|
1000
|
+
"newValue": string | object;
|
|
1001
|
+
/**
|
|
1002
|
+
* Heading for the original (before) version, displayed in the diff header. Defaults to `"Original"`, localized via `translationLanguage`.
|
|
1003
|
+
*/
|
|
1004
|
+
"oldHeading"?: string;
|
|
1005
|
+
/**
|
|
1006
|
+
* The "before" value to compare. Can be a string or an object (which will be serialized to JSON).
|
|
1007
|
+
* @default ''
|
|
1008
|
+
*/
|
|
1009
|
+
"oldValue": string | object;
|
|
1010
|
+
/**
|
|
1011
|
+
* When `true`, JSON values are parsed, keys are sorted, and indentation is normalized before diffing. This eliminates noise from formatting or key-order differences.
|
|
1012
|
+
* @default false
|
|
1013
|
+
*/
|
|
1014
|
+
"reformatJson": boolean;
|
|
1015
|
+
/**
|
|
1016
|
+
* Defines the language for translations. Will translate all visible labels and announcements.
|
|
1017
|
+
* @default 'en'
|
|
1018
|
+
*/
|
|
1019
|
+
"translationLanguage": Languages;
|
|
1020
|
+
}
|
|
958
1021
|
/**
|
|
959
1022
|
* @exampleComponent limel-example-code-editor
|
|
960
1023
|
* @exampleComponent limel-example-code-editor-readonly-with-line-numbers
|
|
@@ -4492,6 +4555,26 @@ declare global {
|
|
|
4492
4555
|
prototype: HTMLLimelCircularProgressElement;
|
|
4493
4556
|
new (): HTMLLimelCircularProgressElement;
|
|
4494
4557
|
};
|
|
4558
|
+
/**
|
|
4559
|
+
* Displays a visual diff between two text values, modeled on
|
|
4560
|
+
* GitHub's code difference view.
|
|
4561
|
+
* Supports unified and split (side-by-side) views with line numbers,
|
|
4562
|
+
* color-coded additions and removals, word-level inline highlighting,
|
|
4563
|
+
* and collapsible unchanged context sections.
|
|
4564
|
+
* @beta
|
|
4565
|
+
* @exampleComponent limel-example-code-diff-basic
|
|
4566
|
+
* @exampleComponent limel-example-code-diff-headings
|
|
4567
|
+
* @exampleComponent limel-example-code-diff-json
|
|
4568
|
+
* @exampleComponent limel-example-code-diff-split
|
|
4569
|
+
* @exampleComponent limel-example-code-diff-line-wrap
|
|
4570
|
+
* @exampleComponent limel-example-code-diff-expand
|
|
4571
|
+
*/
|
|
4572
|
+
interface HTMLLimelCodeDiffElement extends Components.LimelCodeDiff, HTMLStencilElement {
|
|
4573
|
+
}
|
|
4574
|
+
var HTMLLimelCodeDiffElement: {
|
|
4575
|
+
prototype: HTMLLimelCodeDiffElement;
|
|
4576
|
+
new (): HTMLLimelCodeDiffElement;
|
|
4577
|
+
};
|
|
4495
4578
|
interface HTMLLimelCodeEditorElementEventMap {
|
|
4496
4579
|
"change": string;
|
|
4497
4580
|
}
|
|
@@ -6212,6 +6295,7 @@ declare global {
|
|
|
6212
6295
|
"limel-chip": HTMLLimelChipElement;
|
|
6213
6296
|
"limel-chip-set": HTMLLimelChipSetElement;
|
|
6214
6297
|
"limel-circular-progress": HTMLLimelCircularProgressElement;
|
|
6298
|
+
"limel-code-diff": HTMLLimelCodeDiffElement;
|
|
6215
6299
|
"limel-code-editor": HTMLLimelCodeEditorElement;
|
|
6216
6300
|
"limel-collapsible-section": HTMLLimelCollapsibleSectionElement;
|
|
6217
6301
|
"limel-color-picker": HTMLLimelColorPickerElement;
|
|
@@ -7178,6 +7262,69 @@ declare namespace LocalJSX {
|
|
|
7178
7262
|
*/
|
|
7179
7263
|
"value"?: number;
|
|
7180
7264
|
}
|
|
7265
|
+
/**
|
|
7266
|
+
* Displays a visual diff between two text values, modeled on
|
|
7267
|
+
* GitHub's code difference view.
|
|
7268
|
+
* Supports unified and split (side-by-side) views with line numbers,
|
|
7269
|
+
* color-coded additions and removals, word-level inline highlighting,
|
|
7270
|
+
* and collapsible unchanged context sections.
|
|
7271
|
+
* @beta
|
|
7272
|
+
* @exampleComponent limel-example-code-diff-basic
|
|
7273
|
+
* @exampleComponent limel-example-code-diff-headings
|
|
7274
|
+
* @exampleComponent limel-example-code-diff-json
|
|
7275
|
+
* @exampleComponent limel-example-code-diff-split
|
|
7276
|
+
* @exampleComponent limel-example-code-diff-line-wrap
|
|
7277
|
+
* @exampleComponent limel-example-code-diff-expand
|
|
7278
|
+
*/
|
|
7279
|
+
interface LimelCodeDiff {
|
|
7280
|
+
/**
|
|
7281
|
+
* Number of unchanged context lines to display around each change.
|
|
7282
|
+
* @default 3
|
|
7283
|
+
*/
|
|
7284
|
+
"contextLines"?: number;
|
|
7285
|
+
/**
|
|
7286
|
+
* Language for syntax highlighting. Currently supports `"json"`. When set, code tokens are colorized (strings, numbers, keys, etc.) alongside the diff highlighting.
|
|
7287
|
+
*/
|
|
7288
|
+
"language"?: string;
|
|
7289
|
+
/**
|
|
7290
|
+
* The layout of the diff view. - `unified` — single column with interleaved additions and removals - `split` — side-by-side comparison with old on left, new on right
|
|
7291
|
+
* @default 'unified'
|
|
7292
|
+
*/
|
|
7293
|
+
"layout"?: 'unified' | 'split';
|
|
7294
|
+
/**
|
|
7295
|
+
* When `true`, long lines are wrapped instead of causing horizontal scrolling. Useful when comparing prose or config files with long values.
|
|
7296
|
+
* @default true
|
|
7297
|
+
*/
|
|
7298
|
+
"lineWrapping"?: boolean;
|
|
7299
|
+
/**
|
|
7300
|
+
* Heading for the modified (after) version, displayed in the diff header. Defaults to `"Modified"`, localized via `translationLanguage`.
|
|
7301
|
+
*/
|
|
7302
|
+
"newHeading"?: string;
|
|
7303
|
+
/**
|
|
7304
|
+
* The "after" value to compare. Can be a string or an object (which will be serialized to JSON).
|
|
7305
|
+
* @default ''
|
|
7306
|
+
*/
|
|
7307
|
+
"newValue"?: string | object;
|
|
7308
|
+
/**
|
|
7309
|
+
* Heading for the original (before) version, displayed in the diff header. Defaults to `"Original"`, localized via `translationLanguage`.
|
|
7310
|
+
*/
|
|
7311
|
+
"oldHeading"?: string;
|
|
7312
|
+
/**
|
|
7313
|
+
* The "before" value to compare. Can be a string or an object (which will be serialized to JSON).
|
|
7314
|
+
* @default ''
|
|
7315
|
+
*/
|
|
7316
|
+
"oldValue"?: string | object;
|
|
7317
|
+
/**
|
|
7318
|
+
* When `true`, JSON values are parsed, keys are sorted, and indentation is normalized before diffing. This eliminates noise from formatting or key-order differences.
|
|
7319
|
+
* @default false
|
|
7320
|
+
*/
|
|
7321
|
+
"reformatJson"?: boolean;
|
|
7322
|
+
/**
|
|
7323
|
+
* Defines the language for translations. Will translate all visible labels and announcements.
|
|
7324
|
+
* @default 'en'
|
|
7325
|
+
*/
|
|
7326
|
+
"translationLanguage"?: Languages;
|
|
7327
|
+
}
|
|
7181
7328
|
/**
|
|
7182
7329
|
* @exampleComponent limel-example-code-editor
|
|
7183
7330
|
* @exampleComponent limel-example-code-editor-readonly-with-line-numbers
|
|
@@ -10414,6 +10561,18 @@ declare namespace LocalJSX {
|
|
|
10414
10561
|
"displayPercentageColors": boolean;
|
|
10415
10562
|
"size": CircularProgressSize;
|
|
10416
10563
|
}
|
|
10564
|
+
interface LimelCodeDiffAttributes {
|
|
10565
|
+
"oldValue": string | object;
|
|
10566
|
+
"newValue": string | object;
|
|
10567
|
+
"oldHeading": string;
|
|
10568
|
+
"newHeading": string;
|
|
10569
|
+
"layout": 'unified' | 'split';
|
|
10570
|
+
"contextLines": number;
|
|
10571
|
+
"lineWrapping": boolean;
|
|
10572
|
+
"language": string;
|
|
10573
|
+
"reformatJson": boolean;
|
|
10574
|
+
"translationLanguage": Languages;
|
|
10575
|
+
}
|
|
10417
10576
|
interface LimelCodeEditorAttributes {
|
|
10418
10577
|
"value": string;
|
|
10419
10578
|
"language": Language;
|
|
@@ -10865,6 +11024,7 @@ declare namespace LocalJSX {
|
|
|
10865
11024
|
"limel-chip": Omit<LimelChip, keyof LimelChipAttributes> & { [K in keyof LimelChip & keyof LimelChipAttributes]?: LimelChip[K] } & { [K in keyof LimelChip & keyof LimelChipAttributes as `attr:${K}`]?: LimelChipAttributes[K] } & { [K in keyof LimelChip & keyof LimelChipAttributes as `prop:${K}`]?: LimelChip[K] };
|
|
10866
11025
|
"limel-chip-set": Omit<LimelChipSet, keyof LimelChipSetAttributes> & { [K in keyof LimelChipSet & keyof LimelChipSetAttributes]?: LimelChipSet[K] } & { [K in keyof LimelChipSet & keyof LimelChipSetAttributes as `attr:${K}`]?: LimelChipSetAttributes[K] } & { [K in keyof LimelChipSet & keyof LimelChipSetAttributes as `prop:${K}`]?: LimelChipSet[K] };
|
|
10867
11026
|
"limel-circular-progress": Omit<LimelCircularProgress, keyof LimelCircularProgressAttributes> & { [K in keyof LimelCircularProgress & keyof LimelCircularProgressAttributes]?: LimelCircularProgress[K] } & { [K in keyof LimelCircularProgress & keyof LimelCircularProgressAttributes as `attr:${K}`]?: LimelCircularProgressAttributes[K] } & { [K in keyof LimelCircularProgress & keyof LimelCircularProgressAttributes as `prop:${K}`]?: LimelCircularProgress[K] };
|
|
11027
|
+
"limel-code-diff": Omit<LimelCodeDiff, keyof LimelCodeDiffAttributes> & { [K in keyof LimelCodeDiff & keyof LimelCodeDiffAttributes]?: LimelCodeDiff[K] } & { [K in keyof LimelCodeDiff & keyof LimelCodeDiffAttributes as `attr:${K}`]?: LimelCodeDiffAttributes[K] } & { [K in keyof LimelCodeDiff & keyof LimelCodeDiffAttributes as `prop:${K}`]?: LimelCodeDiff[K] };
|
|
10868
11028
|
"limel-code-editor": Omit<LimelCodeEditor, keyof LimelCodeEditorAttributes> & { [K in keyof LimelCodeEditor & keyof LimelCodeEditorAttributes]?: LimelCodeEditor[K] } & { [K in keyof LimelCodeEditor & keyof LimelCodeEditorAttributes as `attr:${K}`]?: LimelCodeEditorAttributes[K] } & { [K in keyof LimelCodeEditor & keyof LimelCodeEditorAttributes as `prop:${K}`]?: LimelCodeEditor[K] };
|
|
10869
11029
|
"limel-collapsible-section": Omit<LimelCollapsibleSection, keyof LimelCollapsibleSectionAttributes> & { [K in keyof LimelCollapsibleSection & keyof LimelCollapsibleSectionAttributes]?: LimelCollapsibleSection[K] } & { [K in keyof LimelCollapsibleSection & keyof LimelCollapsibleSectionAttributes as `attr:${K}`]?: LimelCollapsibleSectionAttributes[K] } & { [K in keyof LimelCollapsibleSection & keyof LimelCollapsibleSectionAttributes as `prop:${K}`]?: LimelCollapsibleSection[K] };
|
|
10870
11030
|
"limel-color-picker": Omit<LimelColorPicker, keyof LimelColorPickerAttributes> & { [K in keyof LimelColorPicker & keyof LimelColorPickerAttributes]?: LimelColorPicker[K] } & { [K in keyof LimelColorPicker & keyof LimelColorPickerAttributes as `attr:${K}`]?: LimelColorPickerAttributes[K] } & { [K in keyof LimelColorPicker & keyof LimelColorPickerAttributes as `prop:${K}`]?: LimelColorPicker[K] };
|
|
@@ -11264,6 +11424,21 @@ declare module "@stencil/core" {
|
|
|
11264
11424
|
* @exampleComponent limel-example-circular-progress-percentage-colors
|
|
11265
11425
|
*/
|
|
11266
11426
|
"limel-circular-progress": LocalJSX.IntrinsicElements["limel-circular-progress"] & JSXBase.HTMLAttributes<HTMLLimelCircularProgressElement>;
|
|
11427
|
+
/**
|
|
11428
|
+
* Displays a visual diff between two text values, modeled on
|
|
11429
|
+
* GitHub's code difference view.
|
|
11430
|
+
* Supports unified and split (side-by-side) views with line numbers,
|
|
11431
|
+
* color-coded additions and removals, word-level inline highlighting,
|
|
11432
|
+
* and collapsible unchanged context sections.
|
|
11433
|
+
* @beta
|
|
11434
|
+
* @exampleComponent limel-example-code-diff-basic
|
|
11435
|
+
* @exampleComponent limel-example-code-diff-headings
|
|
11436
|
+
* @exampleComponent limel-example-code-diff-json
|
|
11437
|
+
* @exampleComponent limel-example-code-diff-split
|
|
11438
|
+
* @exampleComponent limel-example-code-diff-line-wrap
|
|
11439
|
+
* @exampleComponent limel-example-code-diff-expand
|
|
11440
|
+
*/
|
|
11441
|
+
"limel-code-diff": LocalJSX.IntrinsicElements["limel-code-diff"] & JSXBase.HTMLAttributes<HTMLLimelCodeDiffElement>;
|
|
11267
11442
|
/**
|
|
11268
11443
|
* @exampleComponent limel-example-code-editor
|
|
11269
11444
|
* @exampleComponent limel-example-code-editor-readonly-with-line-numbers
|
|
@@ -72,6 +72,35 @@ declare const _default: {
|
|
|
72
72
|
'ai-avatar.thinking': string;
|
|
73
73
|
'table.select-all': string;
|
|
74
74
|
'table.select-row': string;
|
|
75
|
+
'code-diff.table-label': string;
|
|
76
|
+
'code-diff.no-differences': string;
|
|
77
|
+
'code-diff.no-differences-found': string;
|
|
78
|
+
'code-diff.copy-old-version': string;
|
|
79
|
+
'code-diff.copied': string;
|
|
80
|
+
'code-diff.copied-to-clipboard': string;
|
|
81
|
+
'code-diff.copy-change': string;
|
|
82
|
+
'code-diff.search': string;
|
|
83
|
+
'code-diff.previous-match': string;
|
|
84
|
+
'code-diff.next-match': string;
|
|
85
|
+
'code-diff.close-search': string;
|
|
86
|
+
'code-diff.no-matches': string;
|
|
87
|
+
'code-diff.match-count': string;
|
|
88
|
+
'code-diff.hidden-lines': string;
|
|
89
|
+
'code-diff.show-hidden-lines': string;
|
|
90
|
+
'code-diff.expanded-lines': string;
|
|
91
|
+
'code-diff.expanded-lines-end': string;
|
|
92
|
+
'code-diff.line-added': string;
|
|
93
|
+
'code-diff.line-removed': string;
|
|
94
|
+
'code-diff.line-context': string;
|
|
95
|
+
'code-diff.old-line': string;
|
|
96
|
+
'code-diff.new-line': string;
|
|
97
|
+
'code-diff.diff-addition': string;
|
|
98
|
+
'code-diff.diff-additions': string;
|
|
99
|
+
'code-diff.diff-deletion': string;
|
|
100
|
+
'code-diff.diff-deletions': string;
|
|
101
|
+
'code-diff.old-heading': string;
|
|
102
|
+
'code-diff.new-heading': string;
|
|
103
|
+
'code-diff.diff-summary': string;
|
|
75
104
|
'profile-picture.remove': string;
|
|
76
105
|
'profile-picture.unsupported-preview.title': string;
|
|
77
106
|
'profile-picture.unsupported-preview.description': string;
|
|
@@ -72,6 +72,35 @@ declare const _default: {
|
|
|
72
72
|
'ai-avatar.thinking': string;
|
|
73
73
|
'table.select-all': string;
|
|
74
74
|
'table.select-row': string;
|
|
75
|
+
'code-diff.table-label': string;
|
|
76
|
+
'code-diff.no-differences': string;
|
|
77
|
+
'code-diff.no-differences-found': string;
|
|
78
|
+
'code-diff.copy-old-version': string;
|
|
79
|
+
'code-diff.copied': string;
|
|
80
|
+
'code-diff.copied-to-clipboard': string;
|
|
81
|
+
'code-diff.copy-change': string;
|
|
82
|
+
'code-diff.search': string;
|
|
83
|
+
'code-diff.previous-match': string;
|
|
84
|
+
'code-diff.next-match': string;
|
|
85
|
+
'code-diff.close-search': string;
|
|
86
|
+
'code-diff.no-matches': string;
|
|
87
|
+
'code-diff.match-count': string;
|
|
88
|
+
'code-diff.hidden-lines': string;
|
|
89
|
+
'code-diff.show-hidden-lines': string;
|
|
90
|
+
'code-diff.expanded-lines': string;
|
|
91
|
+
'code-diff.expanded-lines-end': string;
|
|
92
|
+
'code-diff.line-added': string;
|
|
93
|
+
'code-diff.line-removed': string;
|
|
94
|
+
'code-diff.line-context': string;
|
|
95
|
+
'code-diff.old-line': string;
|
|
96
|
+
'code-diff.new-line': string;
|
|
97
|
+
'code-diff.diff-addition': string;
|
|
98
|
+
'code-diff.diff-additions': string;
|
|
99
|
+
'code-diff.diff-deletion': string;
|
|
100
|
+
'code-diff.diff-deletions': string;
|
|
101
|
+
'code-diff.old-heading': string;
|
|
102
|
+
'code-diff.new-heading': string;
|
|
103
|
+
'code-diff.diff-summary': string;
|
|
75
104
|
'profile-picture.remove': string;
|
|
76
105
|
'profile-picture.unsupported-preview.title': string;
|
|
77
106
|
'profile-picture.unsupported-preview.description': string;
|
|
@@ -72,6 +72,35 @@ declare const _default: {
|
|
|
72
72
|
'ai-avatar.thinking': string;
|
|
73
73
|
'table.select-all': string;
|
|
74
74
|
'table.select-row': string;
|
|
75
|
+
'code-diff.table-label': string;
|
|
76
|
+
'code-diff.no-differences': string;
|
|
77
|
+
'code-diff.no-differences-found': string;
|
|
78
|
+
'code-diff.copy-old-version': string;
|
|
79
|
+
'code-diff.copied': string;
|
|
80
|
+
'code-diff.copied-to-clipboard': string;
|
|
81
|
+
'code-diff.copy-change': string;
|
|
82
|
+
'code-diff.search': string;
|
|
83
|
+
'code-diff.previous-match': string;
|
|
84
|
+
'code-diff.next-match': string;
|
|
85
|
+
'code-diff.close-search': string;
|
|
86
|
+
'code-diff.no-matches': string;
|
|
87
|
+
'code-diff.match-count': string;
|
|
88
|
+
'code-diff.hidden-lines': string;
|
|
89
|
+
'code-diff.show-hidden-lines': string;
|
|
90
|
+
'code-diff.expanded-lines': string;
|
|
91
|
+
'code-diff.expanded-lines-end': string;
|
|
92
|
+
'code-diff.line-added': string;
|
|
93
|
+
'code-diff.line-removed': string;
|
|
94
|
+
'code-diff.line-context': string;
|
|
95
|
+
'code-diff.old-line': string;
|
|
96
|
+
'code-diff.new-line': string;
|
|
97
|
+
'code-diff.diff-addition': string;
|
|
98
|
+
'code-diff.diff-additions': string;
|
|
99
|
+
'code-diff.diff-deletion': string;
|
|
100
|
+
'code-diff.diff-deletions': string;
|
|
101
|
+
'code-diff.old-heading': string;
|
|
102
|
+
'code-diff.new-heading': string;
|
|
103
|
+
'code-diff.diff-summary': string;
|
|
75
104
|
'profile-picture.remove': string;
|
|
76
105
|
'profile-picture.unsupported-preview.title': string;
|
|
77
106
|
'profile-picture.unsupported-preview.description': string;
|