critique 0.1.7 → 0.1.8

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 CHANGED
@@ -1,3 +1,10 @@
1
+ # 0.1.8
2
+
3
+ - Web preview:
4
+ - Enable text wrapping in opentui diff component (`wrapMode="wrap"`)
5
+ - Revert HTML CSS wrapping (caused broken backgrounds on wrapped lines)
6
+ - Remove `www.` from preview URLs
7
+
1
8
  # 0.1.7
2
9
 
3
10
  - Web preview:
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "critique",
3
3
  "module": "src/diff.tsx",
4
4
  "type": "module",
5
- "version": "0.1.7",
5
+ "version": "0.1.8",
6
6
  "private": false,
7
7
  "bin": "./src/cli.tsx",
8
8
  "scripts": {
package/src/ansi-html.ts CHANGED
@@ -166,16 +166,14 @@ body {
166
166
  box-sizing: border-box;
167
167
  }
168
168
  .line {
169
- white-space: pre-wrap;
170
- word-break: break-all;
169
+ white-space: pre;
171
170
  display: flex;
172
- flex-wrap: wrap;
173
171
  content-visibility: auto;
174
172
  contain-intrinsic-block-size: auto 1lh;
175
173
  background-color: ${backgroundColor};
176
174
  }
177
175
  .line span {
178
- white-space: pre-wrap;
176
+ white-space: pre;
179
177
  }
180
178
  </style>
181
179
  </head>
package/src/cli.tsx CHANGED
@@ -229,7 +229,7 @@ function DiffView({ diff, view, filetype, themeName }: DiffViewProps) {
229
229
  filetype={filetype}
230
230
  syntaxStyle={syntaxStyle}
231
231
  showLineNumbers
232
- wrapMode="none"
232
+ wrapMode="wrap"
233
233
  addedContentBg={resolvedTheme.diffAddedBg}
234
234
  removedContentBg={resolvedTheme.diffRemovedBg}
235
235
  contextContentBg={resolvedTheme.backgroundPanel}
@@ -988,7 +988,7 @@ cli
988
988
 
989
989
  // Worker URL for uploading HTML previews
990
990
  const WORKER_URL =
991
- process.env.CRITIQUE_WORKER_URL || "https://www.critique.work";
991
+ process.env.CRITIQUE_WORKER_URL || "https://critique.work";
992
992
 
993
993
  cli
994
994
  .command("web [ref]", "Generate web preview of diff")