@kabmo-labs/kabmo 0.36.0 → 0.37.0
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/dist/client/index.html +1 -1
- package/dist/client/index.js +2 -2
- package/dist/client/static/js/{CsvGrid-1h3bcak7.js → CsvGrid-xb429wvb.js} +2 -2
- package/dist/client/static/js/{DocxView-ndca8jch.js → DocxView-g58e0bs7.js} +1 -1
- package/dist/client/static/js/{DrawioView-kpzd6y0b.js → DrawioView-1j66avvy.js} +2 -2
- package/dist/client/static/js/{ImageView-79prn3dg.js → ImageView-kraqkypn.js} +1 -1
- package/dist/client/static/js/{LayoutWrapper-v2wn2sb2.js → LayoutWrapper-85dhbn62.js} +2 -2
- package/dist/client/static/js/{Modal-99j0zz3z.js → Modal-f0nfya07.js} +4 -4
- package/dist/client/static/js/{PdfView-2rjd87ay.js → PdfView-nddkrky9.js} +1 -1
- package/dist/client/static/js/{SessionsView-t7f3s71b.js → SessionsView-a595m6g1.js} +1 -1
- package/dist/client/static/js/{SheetView-ehb976st.js → SheetView-s2p4sk6b.js} +4 -4
- package/dist/client/static/js/{SvgPreview-de2bbba6.js → SvgPreview-ppdx4yb9.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-nx9jzn7m.js → abnfDiagram-O67JEVCF-5cjzxcaq.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-7ewrw5vc.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-170v67rr.js → architectureDiagram-NJMV4G6O-62mygavm.js} +2 -2
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-16q285n1.js → blockDiagram-BEXU5L5S-s5yz9hcd.js} +1 -1
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-rn3qt45h.js → c4Diagram-YGBWAQC7-rf9xkmrm.js} +1 -1
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-r26wg74e.js → classDiagram-v2-NBCMYWYE-zfm2cj2a.js} +1 -1
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-82kwe7ha.js → cose-bilkent-JH36ORCC-fmgpv55e.js} +1 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-yyyx3px0.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-tcxdn6pa.js → cynefinDiagram-VND7K2PF-468r5xc2.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-g833ata3.js → dagre-6A5THRUB-w370qmgj.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-f1fq8xec.js → diagram-22UHCM2B-sfvfjjsy.js} +1 -1
- package/dist/client/static/js/{diagram-3UASUU5V-6j2w016f.js → diagram-3UASUU5V-3r2c8s14.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-6t2qxsk4.js → diagram-ATOU4E4O-yathy97a.js} +1 -1
- package/dist/client/static/js/{diagram-CDSNMT55-7abar8s7.js → diagram-CDSNMT55-kk437kxq.js} +1 -1
- package/dist/client/static/js/{diagram-MLGK6HIB-s68rgy16.js → diagram-MLGK6HIB-qdxfjjhf.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-azgkm6w8.js → diagram-MPIPVDR6-dfqeqa1d.js} +1 -1
- package/dist/client/static/js/{dockerfile-47e33kqa.js → dockerfile-yxrt509r.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-esrjz750.js → ebnfDiagram-ZINNZB2B-s0b0vv4k.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-fhr4b4jj.js → elk-276RUBZZ-mtpw0spa.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-5r3fmdnz.js → erDiagram-OPXOYQCR-agjdsm1b.js} +1 -1
- package/dist/client/static/js/{erlang-bh5cbm8m.js → erlang-6m6tpt72.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-cx3ztxfz.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-267mw6sv.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-j4pf6rdn.js → ganttDiagram-FUAMR5RP-z6ywqqc1.js} +1 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-eg9r85ak.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-x5epk0gr.js → gitGraphDiagram-X574FWY7-bvbmfw6h.js} +1 -1
- package/dist/client/static/js/graphql-skw5krjr.js +1 -0
- package/dist/client/static/js/{index-k1xt92h4.js → index-059qyaj0.js} +1 -1
- package/dist/client/static/js/{index-6xzfta4b.js → index-09gx6edj.js} +1 -1
- package/dist/client/static/js/{index-c09a5s1n.js → index-0mvcbbmy.js} +7 -7
- package/dist/client/static/js/{index-sar2ggde.js → index-0sqa91wb.js} +1 -1
- package/dist/client/static/js/{index-v8qd8ypc.js → index-15zn3sns.js} +2 -2
- package/dist/client/static/js/{index-7r1hw2gd.js → index-1tyvk778.js} +1 -1
- package/dist/client/static/js/{index-3vdmwpbh.js → index-21b3zyrd.js} +2 -2
- package/dist/client/static/js/{index-ctgefatv.js → index-302d35e5.js} +10 -10
- package/dist/client/static/js/{index-5rzk1226.js → index-49dhv8ry.js} +1 -1
- package/dist/client/static/js/{index-44qrckd2.js → index-5fn0agag.js} +1 -1
- package/dist/client/static/js/{index-zdtsvnpq.js → index-64mb65wx.js} +1 -1
- package/dist/client/static/js/{index-mm1rf116.js → index-6q80csr0.js} +1 -1
- package/dist/client/static/js/{index-zp73zexp.js → index-72t6kqjx.js} +2 -2
- package/dist/client/static/js/{index-8cy3x2y8.js → index-7fdp9c7m.js} +2 -2
- package/dist/client/static/js/{index-9gf8b73w.js → index-7sa2e8mn.js} +1 -1
- package/dist/client/static/js/{index-c1j0xb0w.js → index-83ts8zmk.js} +1 -1
- package/dist/client/static/js/{index-ye450a7z.js → index-8e0s9p45.js} +1 -1
- package/dist/client/static/js/{index-982jyfsb.js → index-a0bdavdr.js} +2 -2
- package/dist/client/static/js/{index-8e15fzax.js → index-actppd4z.js} +1 -1
- package/dist/client/static/js/{index-h1e1abpt.js → index-cx89yk15.js} +2 -2
- package/dist/client/static/js/{index-w3n97x4b.js → index-dt7e1328.js} +2 -2
- package/dist/client/static/js/{index-be6gevq8.js → index-es3pt29g.js} +1 -1
- package/dist/client/static/js/{index-af24nes6.js → index-gbfg0anm.js} +2 -2
- package/dist/client/static/js/{index-55pqvh82.js → index-h7pn9qw6.js} +2 -2
- package/dist/client/static/js/{index-5kjpacvd.js → index-hbtk0c12.js} +1 -1
- package/dist/client/static/js/{index-nws03exw.js → index-j7r414hf.js} +1 -1
- package/dist/client/static/js/{index-40ve7zzv.js → index-jpkj6vqp.js} +1 -1
- package/dist/client/static/js/{index-0b1kwsam.js → index-k06med7d.js} +28 -28
- package/dist/client/static/js/{index-3kgrcaq1.js → index-kzhtmrh0.js} +1 -1
- package/dist/client/static/js/{index-q5t4sy22.js → index-m3j5yx5f.js} +2 -2
- package/dist/client/static/js/{index-skm6k5w2.js → index-m87yykre.js} +2 -2
- package/dist/client/static/js/{index-63c6t75t.js → index-nmc30xaz.js} +1 -1
- package/dist/client/static/js/{index-ktvbsj6w.js → index-ntxm8pw3.js} +1 -1
- package/dist/client/static/js/{index-htt8qxm3.js → index-pd0140dx.js} +1 -1
- package/dist/client/static/js/{index-dmgawfhw.js → index-qkscve6n.js} +2 -2
- package/dist/client/static/js/{index-v5t761a1.js → index-qz8mbxm9.js} +1 -1
- package/dist/client/static/js/{index-75haaj8g.js → index-qznwd6g8.js} +157 -157
- package/dist/client/static/js/{index-63jbb4kf.js → index-sa9cp6km.js} +2 -2
- package/dist/client/static/js/{index-60ceydzn.js → index-sezz011q.js} +1 -1
- package/dist/client/static/js/{index-pyx8n25s.js → index-t07b31ny.js} +2 -2
- package/dist/client/static/js/index-tcegdd2t.js +1 -0
- package/dist/client/static/js/{index-d2km9egp.js → index-w9zxmev3.js} +4 -4
- package/dist/client/static/js/{index-b48p8d1j.js → index-we1rpftn.js} +2 -2
- package/dist/client/static/js/{index-ky0prc71.js → index-xearvz2z.js} +3 -3
- package/dist/client/static/js/{index-r8pckaqe.js → index-xya34x4v.js} +2 -2
- package/dist/client/static/js/{index-ydvfc9td.js → index-z0frtyje.js} +1 -1
- package/dist/client/static/js/{index-97t3mv1v.js → index-z7qnffwj.js} +1 -1
- package/dist/client/static/js/info-A6RAGUB7-7qhah7fs.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-ktc8nb8g.js → infoDiagram-VRGFBTTK-58bv28d4.js} +1 -1
- package/dist/client/static/js/ini-cg0a5wm3.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-n3dk6227.js → ishikawaDiagram-OU5B5YK6-tz6b0caw.js} +1 -1
- package/dist/client/static/js/java-vcck089n.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-f0p1h8qn.js → journeyDiagram-ZHPQQLJL-ydamm17a.js} +2 -2
- package/dist/client/static/js/jsx-ht9zyzwa.js +1 -0
- package/dist/client/static/js/{julia-73zjh2w6.js → julia-v7j460gw.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-7jdt7dv1.js → kanban-definition-PNTS6WVX-7jxfsf17.js} +1 -1
- package/dist/client/static/js/lua-ke895s2q.js +1 -0
- package/dist/client/static/js/markdown-gwmsh53r.js +1 -0
- package/dist/client/static/js/{mermaid.core-e8rzrjt9.js → mermaid.core-vty0aq6f.js} +6 -6
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-7shv6ge0.js → mindmap-definition-NLK3R4M7-ra4wrts4.js} +2 -2
- package/dist/client/static/js/one-dark-pro-2pywnqrh.js +1 -0
- package/dist/client/static/js/one-light-vfgdt4wf.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-ag2g7tbk.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-17ak2zx3.js → pegDiagram-GJSIUBJH-ydjcfea9.js} +1 -1
- package/dist/client/static/js/{perl-8z46dmze.js → perl-gg4jdkcr.js} +1 -1
- package/dist/client/static/js/{php-6qvnp2t6.js → php-2q8fm6k8.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-nqcyj3x1.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-at4x1g4q.js → pieDiagram-5QR66LMP-wh04y7wp.js} +1 -1
- package/dist/client/static/js/properties-mzvvbqg5.js +1 -0
- package/dist/client/static/js/python-3w64wsyd.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-apzhwrn4.js → quadrantDiagram-O4NWA36T-4mhbag8n.js} +1 -1
- package/dist/client/static/js/r-32re2zwb.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-60gby7be.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-cnkmcjse.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-qgfdnazd.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-609h6cpx.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-xqnytjhg.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-rw8cj5f3.js → railroadDiagram-XR7U4H2S-pagmr4hc.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-qyrse7mb.js → requirementDiagram-PLB6GJNP-jhfhp4eq.js} +1 -1
- package/dist/client/static/js/{ruby-qy8mhstq.js → ruby-vag6a82m.js} +1 -1
- package/dist/client/static/js/{rust-fpshqnk0.js → rust-yntkm6hw.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-254qr59q.js → sankeyDiagram-IPEJSGJF-qrfxzvp3.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-y9xjxfc5.js → sequenceDiagram-PO4LG4MO-fpznwnva.js} +3 -3
- package/dist/client/static/js/{sizeCapture-INFHLROL-sc5e60t3.js → sizeCapture-INFHLROL-3hz930jg.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-r134s4xr.js → stateDiagram-v2-GCMORJYK-2m99syxm.js} +2 -2
- package/dist/client/static/js/{swimlanes-2SLR337P-xc7rbawt.js → swimlanes-2SLR337P-hmhd360r.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-a8b7z74e.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-cgjd8shk.js → timeline-definition-EJHVYXUP-765y3ssa.js} +1 -1
- package/dist/client/static/js/treeView-Q6P3EWNA-8djqab8k.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-hdztnffk.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-9qsmjhm6.js → usecaseDiagram-POWQR4AR-rex2j507.js} +1 -1
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-4grw9awx.js → vennDiagram-UO4OBE2U-wd51qq26.js} +1 -1
- package/dist/client/static/js/wardley-WFR3VGLG-avby77vv.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-8gxy0wat.js → wardleyDiagram-VNRHLVJA-6jdqn8f7.js} +1 -1
- package/dist/client/static/js/xml-81hxjjt4.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-5sh7tdrx.js → xychartDiagram-PMCCYNJV-kcz8y04e.js} +2 -2
- package/dist/client/static/js/yaml-yssayv8a.js +1 -0
- package/package.json +1 -1
- package/src/client/components/settings/apply-side-effects.test.ts +5 -4
- package/src/client/hooks/ui/icon-style.ts +7 -4
- package/src/client/hooks/ui/style-attributes.test.ts +11 -11
- package/src/client/hooks/ui/surface-style.ts +8 -5
- package/src/server/lib/assets/shell-attributes.server.ts +12 -9
- package/src/server/lib/assets/shell-attributes.test.ts +18 -13
- package/src/shared/lib/icons/icon-paint-authority.ts +5 -3
- package/src/shared/lib/theme/icon-style.test.ts +8 -5
- package/src/shared/lib/theme/icon-style.ts +15 -7
- package/src/shared/lib/theme/surface-style.test.ts +8 -5
- package/src/shared/lib/theme/surface-style.ts +17 -7
- package/src/shared/lib/workspace/sidebar-style.test.ts +7 -8
- package/src/shared/lib/workspace/sidebar-style.ts +7 -8
- package/dist/client/static/js/architecture-7GRP2DOG-aqft2erp.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-v2sz60t6.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-8qbefe4m.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-krsvgcq7.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-9bx1a38k.js +0 -1
- package/dist/client/static/js/graphql-xnpp5gn9.js +0 -1
- package/dist/client/static/js/index-dh1vd0d9.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-j51t7jhh.js +0 -1
- package/dist/client/static/js/ini-ygfyhprj.js +0 -1
- package/dist/client/static/js/java-gm49vw59.js +0 -1
- package/dist/client/static/js/jsx-ksxw1byz.js +0 -1
- package/dist/client/static/js/lua-53gzb9bx.js +0 -1
- package/dist/client/static/js/markdown-tk3cd3vs.js +0 -1
- package/dist/client/static/js/one-dark-pro-39bt34v9.js +0 -1
- package/dist/client/static/js/one-light-xec0sehr.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-n83gfj2g.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-5c5pctwz.js +0 -1
- package/dist/client/static/js/properties-2tcybqjk.js +0 -1
- package/dist/client/static/js/python-qph3dntq.js +0 -1
- package/dist/client/static/js/r-gd26x93y.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-52e5n99a.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-44nqxxpy.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-25jxgwg7.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-64pqpf2y.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-0p5sxzpx.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-kdcdamkj.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-8j14nnd1.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-esf993kk.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-v4dxm2sb.js +0 -1
- package/dist/client/static/js/xml-0py2vkw7.js +0 -1
- package/dist/client/static/js/yaml-vghdz0f0.js +0 -1
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
* The surface style's contract.
|
|
8
8
|
*
|
|
9
9
|
* The rule that matters is the FALLBACK and the DEFAULT: a stored value this
|
|
10
|
-
* build cannot draw must resolve to the shipped default, and that default
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* build cannot draw must resolve to the shipped default, and that default
|
|
11
|
+
* (`glass`) is deliberately NOT the style CSS paints with no attribute
|
|
12
|
+
* (`classic`) — mixing the two would leave the setting on glass while the
|
|
13
|
+
* document showed opaque panels.
|
|
13
14
|
*/
|
|
14
15
|
|
|
15
16
|
import { describe, expect, test } from 'bun:test';
|
|
@@ -18,6 +19,7 @@ import {
|
|
|
18
19
|
SURFACE_ATTRIBUTE,
|
|
19
20
|
SURFACE_STYLES,
|
|
20
21
|
SURFACE_STYLE_COPY,
|
|
22
|
+
SURFACE_STYLE_WITHOUT_ATTRIBUTE,
|
|
21
23
|
isSurfaceStyle,
|
|
22
24
|
resolveSurfaceStyle,
|
|
23
25
|
} from '@/shared/lib/theme/surface-style';
|
|
@@ -48,8 +50,9 @@ describe('resolveSurfaceStyle', () => {
|
|
|
48
50
|
});
|
|
49
51
|
|
|
50
52
|
describe('the style table', () => {
|
|
51
|
-
test('
|
|
52
|
-
expect(DEFAULT_SURFACE_STYLE).toBe('
|
|
53
|
+
test('a fresh install resolves to glass, while the absent attribute stays classic', () => {
|
|
54
|
+
expect(DEFAULT_SURFACE_STYLE).toBe('glass');
|
|
55
|
+
expect(SURFACE_STYLE_WITHOUT_ATTRIBUTE).toBe('classic');
|
|
53
56
|
expect(SURFACE_STYLES).toContain(DEFAULT_SURFACE_STYLE);
|
|
54
57
|
});
|
|
55
58
|
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
* why this module states names and copy while `src/client/tailwind.css` states
|
|
13
13
|
* every pixel.
|
|
14
14
|
*
|
|
15
|
-
* - `classic` — opaque paper over the palette's canvas.
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* - `classic` — opaque paper over the palette's canvas. Rendered when the
|
|
16
|
+
* attribute is ABSENT, which is why `SURFACE_STYLE_WITHOUT_ATTRIBUTE` is
|
|
17
|
+
* `classic` and not the default: CSS states the opaque look once, in `:root`.
|
|
18
18
|
* - `glass` — one frosted plane over a palette-coloured aura, with the
|
|
19
19
|
* panels above it as translucent tints. The plane owns the blur (a single
|
|
20
20
|
* `backdrop-filter` per window), so the panel count does not decide the
|
|
21
|
-
* frame budget.
|
|
21
|
+
* frame budget. The DEFAULT a fresh install resolves to.
|
|
22
22
|
*
|
|
23
23
|
* The style reaches the document as `data-surface` on `<html>`, never as a
|
|
24
24
|
* prop: the sidebar, the navbar, the composer and every modal are separate
|
|
@@ -33,10 +33,20 @@
|
|
|
33
33
|
export type SurfaceStyle = 'classic' | 'glass';
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* The style a
|
|
37
|
-
*
|
|
36
|
+
* The style a fresh install — or any stored value this build cannot draw —
|
|
37
|
+
* resolves to.
|
|
38
38
|
*/
|
|
39
|
-
export const DEFAULT_SURFACE_STYLE: SurfaceStyle = '
|
|
39
|
+
export const DEFAULT_SURFACE_STYLE: SurfaceStyle = 'glass';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The style CSS paints when `data-surface` is absent.
|
|
43
|
+
*
|
|
44
|
+
* Two facts, kept apart on purpose: the DEFAULT is what a fresh install picks,
|
|
45
|
+
* while the ABSENT state is what `:root` in `tailwind.css` paints. They
|
|
46
|
+
* coincide only before the default moved to `glass`; every writer must compare
|
|
47
|
+
* against THIS constant when deciding whether the attribute can be omitted.
|
|
48
|
+
*/
|
|
49
|
+
export const SURFACE_STYLE_WITHOUT_ATTRIBUTE: SurfaceStyle = 'classic';
|
|
40
50
|
|
|
41
51
|
/** Document attribute carrying the style. Read by CSS only. */
|
|
42
52
|
export const SURFACE_ATTRIBUTE = 'data-surface';
|
|
@@ -9,12 +9,11 @@
|
|
|
9
9
|
* The value is stored in the `kabmo_settings` blob and read on every render of
|
|
10
10
|
* the left column, so the two failure modes worth pinning are:
|
|
11
11
|
*
|
|
12
|
-
* - **an unknown value must resolve to
|
|
13
|
-
* build, a hand-edited row, or a downgrade would otherwise name a
|
|
14
|
-
* that does not exist in this build.
|
|
15
|
-
* - **the default
|
|
16
|
-
*
|
|
17
|
-
* default silently rearranges a sidebar nobody asked to change.
|
|
12
|
+
* - **an unknown value must resolve to the shipped default.** A blob written by
|
|
13
|
+
* a newer build, a hand-edited row, or a downgrade would otherwise name a
|
|
14
|
+
* renderer that does not exist in this build.
|
|
15
|
+
* - **the default is `modern`.** A fresh install leads with the search/chips
|
|
16
|
+
* chrome; a stored `classic` still renders the older sidebar unchanged.
|
|
18
17
|
*/
|
|
19
18
|
|
|
20
19
|
import { describe, expect, test } from 'bun:test';
|
|
@@ -27,8 +26,8 @@ import {
|
|
|
27
26
|
} from '@/shared/lib/workspace/sidebar-style';
|
|
28
27
|
|
|
29
28
|
describe('resolveSidebarStyle', () => {
|
|
30
|
-
test('the shipped default is
|
|
31
|
-
expect(DEFAULT_SIDEBAR_STYLE).toBe('
|
|
29
|
+
test('the shipped default is modern, so a fresh install leads with search and chips', () => {
|
|
30
|
+
expect(DEFAULT_SIDEBAR_STYLE).toBe('modern');
|
|
32
31
|
});
|
|
33
32
|
|
|
34
33
|
test('every style this build can draw resolves to itself', () => {
|
|
@@ -14,13 +14,12 @@
|
|
|
14
14
|
* which is why the shared row and the shared workspace section are primitives
|
|
15
15
|
* rather than two copies.
|
|
16
16
|
*
|
|
17
|
-
* - `classic` — the toolbar of boxed icons and the 24px rows Kabmo
|
|
18
|
-
*
|
|
19
|
-
* sidebar the user did not ask to change (the same rule
|
|
20
|
-
* `DEFAULT_TOOL_RENDER_MODE` follows).
|
|
17
|
+
* - `classic` — the toolbar of boxed icons and the 24px rows Kabmo shipped
|
|
18
|
+
* before the setting existed.
|
|
21
19
|
* - `modern` — a permanent search field, filter chips, sticky workspace
|
|
22
20
|
* headers and a taller row whose trailing column is shared by the age and
|
|
23
|
-
* the actions trigger.
|
|
21
|
+
* the actions trigger. The DEFAULT: a fresh install leads with the chrome
|
|
22
|
+
* the product is designed around, and a stored `classic` still wins.
|
|
24
23
|
*
|
|
25
24
|
* **The names and the copy live here**; the markup lives in
|
|
26
25
|
* `layout/session-sidebar/modern/`. A style added here without a renderer is a
|
|
@@ -41,10 +40,10 @@ export type SidebarStyle = 'classic' | 'modern';
|
|
|
41
40
|
|
|
42
41
|
|
|
43
42
|
/**
|
|
44
|
-
* The style a document with no stored preference renders at
|
|
45
|
-
*
|
|
43
|
+
* The style a document with no stored preference renders at. A fresh install
|
|
44
|
+
* leads with the modern chrome; a stored `classic` is still honoured.
|
|
46
45
|
*/
|
|
47
|
-
export const DEFAULT_SIDEBAR_STYLE: SidebarStyle = '
|
|
46
|
+
export const DEFAULT_SIDEBAR_STYLE: SidebarStyle = 'modern';
|
|
48
47
|
|
|
49
48
|
/** Every style, in the order the settings control lists them. */
|
|
50
49
|
export const SIDEBAR_STYLES = ['classic', 'modern'] as const;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{uf}from"./index-0b1kwsam.js";export{uf as createArchitectureServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{rf}from"./index-0b1kwsam.js";export{rf as createCynefinServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{df}from"./index-0b1kwsam.js";export{df as createEventModelingServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./index-ctgefatv.js";import"./index-h1e1abpt.js";import{ah}from"./index-ky0prc71.js";export{ah as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{af}from"./index-0b1kwsam.js";export{af as createGitGraphServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Tf}from"./index-v8qd8ypc.js";import"./index-zvfvqvn9.js";import"./index-3zc1b0dv.js";import"./index-0j518hqm.js";import"./index-r8pckaqe.js";export{Tf as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Mn,Ni,Dm,es,so,Js,qu,Zs,Kf,Hu,Qm,Nm,Rm,Fm,Jg,Xs,Wu,Zg,Ku,Br,Xg}from"./index-75haaj8g.js";export{Zs as IndentContext,Xg as StreamLanguage,Ku as bracketMatching,Xs as codeFolding,Rm as foldAll,Qm as foldCode,Wu as foldGutter,Jg as foldKeymap,Hu as foldService,so as getIndentUnit,qu as getIndentation,Zg as highlightingFor,Kf as indentOnInput,Dm as indentService,Js as indentString,es as indentUnit,Ni as language,Br as matchBrackets,Mn as syntaxTree,Fm as unfoldAll,Nm as unfoldCode};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{of}from"./index-0b1kwsam.js";export{of as createInfoServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{IA}from"./index-dmgawfhw.js";export{IA as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Qf}from"./index-8cy3x2y8.js";export{Qf as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Xf}from"./index-r8pckaqe.js";export{Xf as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Df}from"./index-982jyfsb.js";import"./index-9t82sx0w.js";export{Df as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{eA}from"./index-55pqvh82.js";export{eA as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{OA}from"./index-75haaj8g.js";export{OA as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{PA}from"./index-75haaj8g.js";export{PA as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{sf}from"./index-0b1kwsam.js";export{sf as createPacketServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{lf}from"./index-0b1kwsam.js";export{lf as createPieServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{IA}from"./index-dmgawfhw.js";export{IA as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Rf}from"./index-af24nes6.js";export{Rf as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Sf}from"./index-63jbb4kf.js";export{Sf as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ef}from"./index-0b1kwsam.js";export{ef as createRadarServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ul}from"./index-0b1kwsam.js";export{ul as createRailroadServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{pl}from"./index-0b1kwsam.js";export{pl as createRailroadAbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dl}from"./index-0b1kwsam.js";export{dl as createRailroadEbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ml}from"./index-0b1kwsam.js";export{ml as createRailroadPegServices};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{t}from"./index-ctgefatv.js";import"./index-h1e1abpt.js";import{pf,mf}from"./index-ky0prc71.js";var o=t((r)=>`${pf(r)}
|
|
2
|
-
.swimlane.cluster:not([data-color-id]) rect {
|
|
3
|
-
stroke: ${r.clusterBorder} !important;
|
|
4
|
-
}
|
|
5
|
-
[data-look="neo"].cluster rect {
|
|
6
|
-
filter: none;
|
|
7
|
-
}
|
|
8
|
-
`,"getStyles"),m=o,D=mf({styles:m});export{D as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cf}from"./index-0b1kwsam.js";export{cf as createTreeViewServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{tf}from"./index-0b1kwsam.js";export{tf as createTreemapServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{nf}from"./index-0b1kwsam.js";export{nf as createWardleyServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Hi}from"./index-mm1rf116.js";import"./index-8cy3x2y8.js";export{Hi as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Nf}from"./index-w3n97x4b.js";export{Nf as default};
|