@alexgorbatchev/shadcn 0.0.194 → 0.0.195

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.
@@ -13,7 +13,10 @@ export interface ITextDiffProps extends Omit<ComponentProps<"div">, "children">
13
13
  viewMode?: TextDiffViewMode | undefined;
14
14
  /** The narrowest own width, in pixels, that shows the versions side by side in `auto` mode; defaults to 560. */
15
15
  splitMinWidth?: number | undefined;
16
- /** Unchanged lines kept around each change; longer unchanged runs fold behind a button. Defaults to 3. */
16
+ /**
17
+ * Unchanged lines kept around each change; longer unchanged runs fold behind a button. Defaults to 3. `Infinity` keeps
18
+ * every line, so nothing folds and no button shows.
19
+ */
17
20
  contextLines?: number | undefined;
18
21
  showLineNumbers?: boolean | undefined;
19
22
  }
@@ -3,6 +3,6 @@ import type { TextDiffSegment } from "./types.js";
3
3
  /**
4
4
  * Splits diff lines into shown lines and runs of unchanged lines that fold away: an unchanged line stays shown when it
5
5
  * is within `contextLines` of a change, and a hidden run of one line stays shown because folding it saves nothing. With
6
- * no change at all, every line stays shown.
6
+ * no change at all, or with `contextLines` of `Infinity`, every line stays shown.
7
7
  */
8
8
  export declare function groupDiffLines(lines: readonly IParsedDiffLine[], contextLines: number): TextDiffSegment[];
package/dist/prototype.js CHANGED
@@ -2051,7 +2051,7 @@ var program = new Command;
2051
2051
  // package.json
2052
2052
  var package_default = {
2053
2053
  name: "@alexgorbatchev/shadcn",
2054
- version: "0.0.194",
2054
+ version: "0.0.195",
2055
2055
  description: "Sharp, monospace React components with compact, comfortable, and touch densities.",
2056
2056
  license: "MIT",
2057
2057
  repository: {
@@ -47,6 +47,14 @@ Storybook CSF excerpts. Default args and render apply unless overridden. Local h
47
47
  {}
48
48
  ```
49
49
 
50
+ ### EveryLine
51
+
52
+ ```tsx
53
+ {
54
+ args: { contextLines: Number.POSITIVE_INFINITY }
55
+ }
56
+ ```
57
+
50
58
  ### SideBySide
51
59
 
52
60
  ```tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexgorbatchev/shadcn",
3
- "version": "0.0.194",
3
+ "version": "0.0.195",
4
4
  "description": "Sharp, monospace React components with compact, comfortable, and touch densities.",
5
5
  "license": "MIT",
6
6
  "repository": {