critique 0.1.6 → 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,15 @@
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
+
8
+ # 0.1.7
9
+
10
+ - Web preview:
11
+ - Enable text wrapping for long lines (`pre-wrap`, `word-break: break-all`, `flex-wrap: wrap`)
12
+
1
13
  # 0.1.6
2
14
 
3
15
  - 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.6",
5
+ "version": "0.1.8",
6
6
  "private": false,
7
7
  "bin": "./src/cli.tsx",
8
8
  "scripts": {
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")