@fasl-work/caos-app-shell 0.6.0 → 0.6.1

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.
Files changed (2) hide show
  1. package/package.json +59 -59
  2. package/styles.css +16 -9
package/package.json CHANGED
@@ -1,59 +1,59 @@
1
- {
2
- "name": "@fasl-work/caos-app-shell",
3
- "version": "0.6.0",
4
- "description": "Shared web-app shell + content primitives + design system for the CAOS / Faena public apps (ADR-0016).",
5
- "license": "MIT",
6
- "author": "Felipe Santibáñez-Leal",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/fsantibanezleal/CAOS_APP_SHELL.git"
10
- },
11
- "type": "module",
12
- "publishConfig": {
13
- "access": "public"
14
- },
15
- "sideEffects": [
16
- "*.css"
17
- ],
18
- "exports": {
19
- ".": {
20
- "types": "./dist/index.d.ts",
21
- "import": "./dist/index.js"
22
- },
23
- "./styles.css": "./styles.css"
24
- },
25
- "files": [
26
- "dist",
27
- "styles.css"
28
- ],
29
- "scripts": {
30
- "build": "tsup",
31
- "test": "node --import tsx --test \"test/**/*.test.ts\" \"test/**/*.test.tsx\"",
32
- "prepublishOnly": "npm run build"
33
- },
34
- "peerDependencies": {
35
- "katex": "^0.16.0",
36
- "lucide-react": ">=0.400.0",
37
- "react": "^18 || ^19",
38
- "react-dom": "^18 || ^19",
39
- "react-router": "^6 || ^7 || ^8",
40
- "zustand": "^4 || ^5"
41
- },
42
- "devDependencies": {
43
- "@types/katex": "^0.16.7",
44
- "@types/react": "^19.0.0",
45
- "@types/react-dom": "^19.0.0",
46
- "katex": "^0.16.11",
47
- "lucide-react": "^0.469.0",
48
- "react": "^19.0.0",
49
- "react-dom": "^19.0.0",
50
- "react-router": "^8.3.0",
51
- "tsup": "^8.3.5",
52
- "tsx": "^4.23.0",
53
- "typescript": "^5.7.3",
54
- "zustand": "^5.0.2"
55
- },
56
- "overrides": {
57
- "esbuild": "0.28.1"
58
- }
59
- }
1
+ {
2
+ "name": "@fasl-work/caos-app-shell",
3
+ "version": "0.6.1",
4
+ "description": "Shared web-app shell + content primitives + design system for the CAOS / Faena public apps (ADR-0016).",
5
+ "license": "MIT",
6
+ "author": "Felipe Santibáñez-Leal",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/fsantibanezleal/CAOS_APP_SHELL.git"
10
+ },
11
+ "type": "module",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "sideEffects": [
16
+ "*.css"
17
+ ],
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "import": "./dist/index.js"
22
+ },
23
+ "./styles.css": "./styles.css"
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "styles.css"
28
+ ],
29
+ "scripts": {
30
+ "build": "tsup",
31
+ "test": "node --import tsx --test \"test/**/*.test.ts\" \"test/**/*.test.tsx\"",
32
+ "prepublishOnly": "npm run build"
33
+ },
34
+ "peerDependencies": {
35
+ "katex": "^0.16.0",
36
+ "lucide-react": ">=0.400.0",
37
+ "react": "^18 || ^19",
38
+ "react-dom": "^18 || ^19",
39
+ "react-router": "^6 || ^7 || ^8",
40
+ "zustand": "^4 || ^5"
41
+ },
42
+ "devDependencies": {
43
+ "@types/katex": "^0.16.7",
44
+ "@types/react": "^19.0.0",
45
+ "@types/react-dom": "^19.0.0",
46
+ "katex": "^0.16.11",
47
+ "lucide-react": "^0.469.0",
48
+ "react": "^19.0.0",
49
+ "react-dom": "^19.0.0",
50
+ "react-router": "^8.3.0",
51
+ "tsup": "^8.3.5",
52
+ "tsx": "^4.23.0",
53
+ "typescript": "^5.7.3",
54
+ "zustand": "^5.0.2"
55
+ },
56
+ "overrides": {
57
+ "esbuild": "0.28.1"
58
+ }
59
+ }
package/styles.css CHANGED
@@ -285,7 +285,14 @@ code, kbd { font-family: var(--font-mono); }
285
285
  the tab bar a single scrollable row pushes the whole page wider than the viewport and the user has to
286
286
  drag sideways to reach the right edge. Measured on ChargeCascade: scrollWidth 1817 on a 1600 viewport. */
287
287
  html, body { overflow-x: hidden; }
288
- .page-body { max-width: 100%; }
288
+ /* `min-width: 0`, NOT `max-width: 100%`. Containment is about letting a box SHRINK below its
289
+ content; capping it at 100% does nothing for that and, because this rule comes after the
290
+ `.page-body` definition above, it silently OVERRODE `max-width: var(--maxw)` and removed the
291
+ 1200px reading cap from every prose page in every product on this shell. Measured on Porvenir at
292
+ 1600x900: doc routes rendered 1600px wide instead of 1200px centered, so body text ran the full
293
+ width of the display, which is the opposite of what ADR-0017 s1.1 specifies. The wide workbench
294
+ opt-in is `.page-body.wide`; a prose page must keep the measure. */
295
+ .page-body { min-width: 0; }
289
296
  .tabs, .tabpanel { min-width: 0; max-width: 100%; }
290
297
  .tablist { min-width: 0; max-width: 100%; width: 100%; }
291
298
 
@@ -301,11 +308,11 @@ html, body { overflow-x: hidden; }
301
308
  /* A viewport-filling app must not carry the prose footer margin: it becomes dead space between the
302
309
  content and the chrome. Measured on ChargeCascade as exactly 48px (3rem). */
303
310
  .app-shell.fixed .site-footer { margin-top: 0; }
304
-
305
- /* ADR-0058 diagram i18n. A hand-authored architecture SVG carries BOTH languages inside ONE file,
306
- and the modal wrapper picks one. Two files would be two things to keep in step, and the one not
307
- on screen is the one that goes stale. The rules are scoped to [data-arch-lang] so the short class
308
- names cannot collide with an app's own styles. */
309
- [data-arch-lang] .l-es { display: none; }
310
- [data-arch-lang="es"] .l-en { display: none; }
311
- [data-arch-lang="es"] .l-es { display: inline; }
311
+
312
+ /* ADR-0058 diagram i18n. A hand-authored architecture SVG carries BOTH languages inside ONE file,
313
+ and the modal wrapper picks one. Two files would be two things to keep in step, and the one not
314
+ on screen is the one that goes stale. The rules are scoped to [data-arch-lang] so the short class
315
+ names cannot collide with an app's own styles. */
316
+ [data-arch-lang] .l-es { display: none; }
317
+ [data-arch-lang="es"] .l-en { display: none; }
318
+ [data-arch-lang="es"] .l-es { display: inline; }