@podlite/to-jsx 0.0.68 → 0.0.70

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.podlite CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  =head1 Upcoming
4
4
 
5
+ =head1 0.0.70
6
+
7
+ =item a code block wraps at spaces instead of breaking inside a word, so a long command stays readable
8
+ =item a table row is read from its first column: that column is set flush left, the columns after it stay centred
9
+
5
10
  =head1 0.0.68
6
11
 
7
12
  =item render the link configuration attributes C<:new>, C<:title>, C<:lang> and C<:download>
package/esm/podlite.css CHANGED
@@ -14,8 +14,10 @@
14
14
 
15
15
  pre {
16
16
  display: block;
17
- word-break: break-all;
18
- word-wrap: break-word;
17
+ /* A command is a sequence of tokens: broken inside one, it cannot be read
18
+ or retyped. Wrap at spaces, and mark the remainder as a continuation. */
19
+ word-break: normal;
20
+ overflow-wrap: normal;
19
21
  background-color: var(--color-canvas-default, #f8f8f8);
20
22
  border: 1px solid var(--color-border-default);
21
23
  border-radius: 6px;
@@ -39,6 +41,13 @@
39
41
  word-break: normal;
40
42
  border-spacing: 0;
41
43
  border-collapse: collapse;
44
+ text-align: left;
45
+ }
46
+ /* The first column names the row and is read top to bottom, so it lines up
47
+ with the text around the table. Columns after it hold short values of even
48
+ length, where centring reads better. */
49
+ th:not(:first-child),
50
+ td:not(:first-child) {
42
51
  text-align: center;
43
52
  }
44
53
  table caption {
package/lib/podlite.css CHANGED
@@ -14,8 +14,10 @@
14
14
 
15
15
  pre {
16
16
  display: block;
17
- word-break: break-all;
18
- word-wrap: break-word;
17
+ /* A command is a sequence of tokens: broken inside one, it cannot be read
18
+ or retyped. Wrap at spaces, and mark the remainder as a continuation. */
19
+ word-break: normal;
20
+ overflow-wrap: normal;
19
21
  background-color: var(--color-canvas-default, #f8f8f8);
20
22
  border: 1px solid var(--color-border-default);
21
23
  border-radius: 6px;
@@ -39,6 +41,13 @@
39
41
  word-break: normal;
40
42
  border-spacing: 0;
41
43
  border-collapse: collapse;
44
+ text-align: left;
45
+ }
46
+ /* The first column names the row and is read top to bottom, so it lines up
47
+ with the text around the table. Columns after it hold short values of even
48
+ length, where centring reads better. */
49
+ th:not(:first-child),
50
+ td:not(:first-child) {
42
51
  text-align: center;
43
52
  }
44
53
  table caption {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@podlite/to-jsx",
3
- "version": "0.0.68",
3
+ "version": "0.0.70",
4
4
  "description": "Render Podlite markup as React JSX components",
5
5
  "main": "./lib/index.js",
6
6
  "sideEffects": [
@@ -25,10 +25,10 @@
25
25
  "test": "yarn g:jest --passWithNoTests"
26
26
  },
27
27
  "dependencies": {
28
- "@podlite/diagram": "^0.0.68",
29
- "@podlite/schema": "0.0.64",
28
+ "@podlite/diagram": "^0.0.70",
29
+ "@podlite/schema": "0.0.66",
30
30
  "entities": "^4.5.0",
31
- "podlite": "0.0.77",
31
+ "podlite": "0.0.79",
32
32
  "react-is": "^18.0.0",
33
33
  "shiki": "^3.21.0"
34
34
  },