@llumi/design-system 2.1.4 → 2.1.6

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.
@@ -342,22 +342,32 @@
342
342
  },
343
343
  {
344
344
  "kind": "javascript-module",
345
- "path": "src/components/copy-button/copy-button.element.ts",
345
+ "path": "src/components/download-button/download-button.element.ts",
346
346
  "declarations": [
347
347
  {
348
348
  "kind": "class",
349
- "description": "`<llumi-copy-button>` — copy-to-clipboard icon button with success/error feedback.\nRenders in light DOM; styled by the shared icon-button rules in `base.css`.",
350
- "name": "LlumiCopyButton",
349
+ "description": "`<llumi-download-button>` — download-a-string-as-a-file icon button with\nsuccess/error feedback. Renders in light DOM; styled by the shared\nicon-button rules in `base.css`.",
350
+ "name": "LlumiDownloadButton",
351
351
  "members": [
352
352
  {
353
353
  "kind": "field",
354
- "name": "value",
354
+ "name": "filename",
355
355
  "type": {
356
356
  "text": "string"
357
357
  },
358
358
  "default": "\"\"",
359
- "description": "Static string source (lowest precedence before the empty-string fallback).",
360
- "attribute": "value"
359
+ "description": "Name of the downloaded file. Required a click with no filename is a no-op.",
360
+ "attribute": "filename"
361
+ },
362
+ {
363
+ "kind": "field",
364
+ "name": "mimeType",
365
+ "type": {
366
+ "text": "string"
367
+ },
368
+ "default": "\"text/plain\"",
369
+ "description": "MIME type for the Blob.",
370
+ "attribute": "mime-type"
361
371
  },
362
372
  {
363
373
  "kind": "field",
@@ -365,7 +375,7 @@
365
375
  "type": {
366
376
  "text": "string"
367
377
  },
368
- "default": "\"Copy to clipboard\"",
378
+ "default": "\"Download file\"",
369
379
  "description": "Tooltip + mirrored to the button's aria-label.",
370
380
  "attribute": "title"
371
381
  },
@@ -375,13 +385,13 @@
375
385
  "type": {
376
386
  "text": "() => string | undefined"
377
387
  },
378
- "description": "Function source (highest precedence), JS property only — no attribute."
388
+ "description": "Content source (highest precedence), JS property only — no attribute."
379
389
  },
380
390
  {
381
391
  "kind": "field",
382
392
  "name": "instance",
383
393
  "type": {
384
- "text": "ReturnType<typeof copyButtonMachine.newInstance> | undefined"
394
+ "text": "ReturnType<typeof downloadButtonMachine.newInstance> | undefined"
385
395
  },
386
396
  "privacy": "private"
387
397
  },
@@ -401,28 +411,17 @@
401
411
  {
402
412
  "name": "_state",
403
413
  "type": {
404
- "text": "CopyButtonState"
414
+ "text": "DownloadButtonState"
405
415
  }
406
416
  },
407
417
  {
408
418
  "name": "event",
409
419
  "type": {
410
- "text": "CopyButtonEvent | undefined"
420
+ "text": "DownloadButtonEvent | undefined"
411
421
  }
412
422
  }
413
423
  ]
414
424
  },
415
- {
416
- "kind": "method",
417
- "name": "resolveText",
418
- "privacy": "private",
419
- "return": {
420
- "type": {
421
- "text": "string"
422
- }
423
- },
424
- "description": "Resolve the text to copy, by precedence:\n getValue() (function prop)\n → get-value (attribute: dotted path to a function on globalThis, resolved at click time)\n → value (string attr)\n → \"\""
425
- },
426
425
  {
427
426
  "kind": "method",
428
427
  "name": "onClick",
@@ -441,7 +440,7 @@
441
440
  {
442
441
  "name": "name",
443
442
  "type": {
444
- "text": "CopyButtonState[\"name\"]"
443
+ "text": "DownloadButtonState[\"name\"]"
445
444
  }
446
445
  }
447
446
  ]
@@ -449,14 +448,14 @@
449
448
  ],
450
449
  "events": [
451
450
  {
452
- "name": "llumi-copy",
451
+ "name": "llumi-download",
453
452
  "type": {
454
453
  "text": "CustomEvent"
455
454
  },
456
- "description": "on success; detail `{ text }`"
455
+ "description": "on success; detail `{ filename }`"
457
456
  },
458
457
  {
459
- "name": "llumi-copy-error",
458
+ "name": "llumi-download-error",
460
459
  "type": {
461
460
  "text": "CustomEvent"
462
461
  },
@@ -465,20 +464,29 @@
465
464
  ],
466
465
  "attributes": [
467
466
  {
468
- "name": "value",
467
+ "name": "filename",
469
468
  "type": {
470
469
  "text": "string"
471
470
  },
472
471
  "default": "\"\"",
473
- "description": "Static string source (lowest precedence before the empty-string fallback).",
474
- "fieldName": "value"
472
+ "description": "Name of the downloaded file. Required a click with no filename is a no-op.",
473
+ "fieldName": "filename"
474
+ },
475
+ {
476
+ "name": "mime-type",
477
+ "type": {
478
+ "text": "string"
479
+ },
480
+ "default": "\"text/plain\"",
481
+ "description": "MIME type for the Blob.",
482
+ "fieldName": "mimeType"
475
483
  },
476
484
  {
477
485
  "name": "title",
478
486
  "type": {
479
487
  "text": "string"
480
488
  },
481
- "default": "\"Copy to clipboard\"",
489
+ "default": "\"Download file\"",
482
490
  "description": "Tooltip + mirrored to the button's aria-label.",
483
491
  "fieldName": "title"
484
492
  }
@@ -487,57 +495,47 @@
487
495
  "name": "LlumiElement",
488
496
  "module": "/src/shared/llumi-element"
489
497
  },
490
- "tagName": "llumi-copy-button",
498
+ "tagName": "llumi-download-button",
491
499
  "customElement": true
492
500
  }
493
501
  ],
494
502
  "exports": [
495
503
  {
496
504
  "kind": "js",
497
- "name": "LlumiCopyButton",
505
+ "name": "LlumiDownloadButton",
498
506
  "declaration": {
499
- "name": "LlumiCopyButton",
500
- "module": "src/components/copy-button/copy-button.element.ts"
507
+ "name": "LlumiDownloadButton",
508
+ "module": "src/components/download-button/download-button.element.ts"
501
509
  }
502
510
  },
503
511
  {
504
512
  "kind": "custom-element-definition",
505
- "name": "llumi-copy-button",
513
+ "name": "llumi-download-button",
506
514
  "declaration": {
507
- "name": "LlumiCopyButton",
508
- "module": "src/components/copy-button/copy-button.element.ts"
515
+ "name": "LlumiDownloadButton",
516
+ "module": "src/components/download-button/download-button.element.ts"
509
517
  }
510
518
  }
511
519
  ]
512
520
  },
513
521
  {
514
522
  "kind": "javascript-module",
515
- "path": "src/components/download-button/download-button.element.ts",
523
+ "path": "src/components/copy-button/copy-button.element.ts",
516
524
  "declarations": [
517
525
  {
518
526
  "kind": "class",
519
- "description": "`<llumi-download-button>` — download-a-string-as-a-file icon button with\nsuccess/error feedback. Renders in light DOM; styled by the shared\nicon-button rules in `base.css`.",
520
- "name": "LlumiDownloadButton",
527
+ "description": "`<llumi-copy-button>` — copy-to-clipboard icon button with success/error feedback.\nRenders in light DOM; styled by the shared icon-button rules in `base.css`.",
528
+ "name": "LlumiCopyButton",
521
529
  "members": [
522
530
  {
523
531
  "kind": "field",
524
- "name": "filename",
532
+ "name": "value",
525
533
  "type": {
526
534
  "text": "string"
527
535
  },
528
536
  "default": "\"\"",
529
- "description": "Name of the downloaded file. Required a click with no filename is a no-op.",
530
- "attribute": "filename"
531
- },
532
- {
533
- "kind": "field",
534
- "name": "mimeType",
535
- "type": {
536
- "text": "string"
537
- },
538
- "default": "\"text/plain\"",
539
- "description": "MIME type for the Blob.",
540
- "attribute": "mime-type"
537
+ "description": "Static string source (lowest precedence before the empty-string fallback).",
538
+ "attribute": "value"
541
539
  },
542
540
  {
543
541
  "kind": "field",
@@ -545,7 +543,7 @@
545
543
  "type": {
546
544
  "text": "string"
547
545
  },
548
- "default": "\"Download file\"",
546
+ "default": "\"Copy to clipboard\"",
549
547
  "description": "Tooltip + mirrored to the button's aria-label.",
550
548
  "attribute": "title"
551
549
  },
@@ -555,13 +553,13 @@
555
553
  "type": {
556
554
  "text": "() => string | undefined"
557
555
  },
558
- "description": "Content source (highest precedence), JS property only — no attribute."
556
+ "description": "Function source (highest precedence), JS property only — no attribute."
559
557
  },
560
558
  {
561
559
  "kind": "field",
562
560
  "name": "instance",
563
561
  "type": {
564
- "text": "ReturnType<typeof downloadButtonMachine.newInstance> | undefined"
562
+ "text": "ReturnType<typeof copyButtonMachine.newInstance> | undefined"
565
563
  },
566
564
  "privacy": "private"
567
565
  },
@@ -581,17 +579,28 @@
581
579
  {
582
580
  "name": "_state",
583
581
  "type": {
584
- "text": "DownloadButtonState"
582
+ "text": "CopyButtonState"
585
583
  }
586
584
  },
587
585
  {
588
586
  "name": "event",
589
587
  "type": {
590
- "text": "DownloadButtonEvent | undefined"
588
+ "text": "CopyButtonEvent | undefined"
591
589
  }
592
590
  }
593
591
  ]
594
592
  },
593
+ {
594
+ "kind": "method",
595
+ "name": "resolveText",
596
+ "privacy": "private",
597
+ "return": {
598
+ "type": {
599
+ "text": "string"
600
+ }
601
+ },
602
+ "description": "Resolve the text to copy, by precedence:\n getValue() (function prop)\n → get-value (attribute: dotted path to a function on globalThis, resolved at click time)\n → value (string attr)\n → \"\""
603
+ },
595
604
  {
596
605
  "kind": "method",
597
606
  "name": "onClick",
@@ -610,7 +619,7 @@
610
619
  {
611
620
  "name": "name",
612
621
  "type": {
613
- "text": "DownloadButtonState[\"name\"]"
622
+ "text": "CopyButtonState[\"name\"]"
614
623
  }
615
624
  }
616
625
  ]
@@ -618,14 +627,14 @@
618
627
  ],
619
628
  "events": [
620
629
  {
621
- "name": "llumi-download",
630
+ "name": "llumi-copy",
622
631
  "type": {
623
632
  "text": "CustomEvent"
624
633
  },
625
- "description": "on success; detail `{ filename }`"
634
+ "description": "on success; detail `{ text }`"
626
635
  },
627
636
  {
628
- "name": "llumi-download-error",
637
+ "name": "llumi-copy-error",
629
638
  "type": {
630
639
  "text": "CustomEvent"
631
640
  },
@@ -634,29 +643,20 @@
634
643
  ],
635
644
  "attributes": [
636
645
  {
637
- "name": "filename",
646
+ "name": "value",
638
647
  "type": {
639
648
  "text": "string"
640
649
  },
641
650
  "default": "\"\"",
642
- "description": "Name of the downloaded file. Required a click with no filename is a no-op.",
643
- "fieldName": "filename"
644
- },
645
- {
646
- "name": "mime-type",
647
- "type": {
648
- "text": "string"
649
- },
650
- "default": "\"text/plain\"",
651
- "description": "MIME type for the Blob.",
652
- "fieldName": "mimeType"
651
+ "description": "Static string source (lowest precedence before the empty-string fallback).",
652
+ "fieldName": "value"
653
653
  },
654
654
  {
655
655
  "name": "title",
656
656
  "type": {
657
657
  "text": "string"
658
658
  },
659
- "default": "\"Download file\"",
659
+ "default": "\"Copy to clipboard\"",
660
660
  "description": "Tooltip + mirrored to the button's aria-label.",
661
661
  "fieldName": "title"
662
662
  }
@@ -665,25 +665,25 @@
665
665
  "name": "LlumiElement",
666
666
  "module": "/src/shared/llumi-element"
667
667
  },
668
- "tagName": "llumi-download-button",
668
+ "tagName": "llumi-copy-button",
669
669
  "customElement": true
670
670
  }
671
671
  ],
672
672
  "exports": [
673
673
  {
674
674
  "kind": "js",
675
- "name": "LlumiDownloadButton",
675
+ "name": "LlumiCopyButton",
676
676
  "declaration": {
677
- "name": "LlumiDownloadButton",
678
- "module": "src/components/download-button/download-button.element.ts"
677
+ "name": "LlumiCopyButton",
678
+ "module": "src/components/copy-button/copy-button.element.ts"
679
679
  }
680
680
  },
681
681
  {
682
682
  "kind": "custom-element-definition",
683
- "name": "llumi-download-button",
683
+ "name": "llumi-copy-button",
684
684
  "declaration": {
685
- "name": "LlumiDownloadButton",
686
- "module": "src/components/download-button/download-button.element.ts"
685
+ "name": "LlumiCopyButton",
686
+ "module": "src/components/copy-button/copy-button.element.ts"
687
687
  }
688
688
  }
689
689
  ]
@@ -862,16 +862,262 @@
862
862
  "kind": "js",
863
863
  "name": "LlumiHighlighter",
864
864
  "declaration": {
865
- "name": "LlumiHighlighter",
866
- "module": "src/components/highlighter/highlighter.element.ts"
865
+ "name": "LlumiHighlighter",
866
+ "module": "src/components/highlighter/highlighter.element.ts"
867
+ }
868
+ },
869
+ {
870
+ "kind": "custom-element-definition",
871
+ "name": "llumi-highlighter",
872
+ "declaration": {
873
+ "name": "LlumiHighlighter",
874
+ "module": "src/components/highlighter/highlighter.element.ts"
875
+ }
876
+ }
877
+ ]
878
+ },
879
+ {
880
+ "kind": "javascript-module",
881
+ "path": "src/components/mermaid/mermaid.element.ts",
882
+ "declarations": [
883
+ {
884
+ "kind": "class",
885
+ "description": "`<llumi-mermaid>` — renders a Mermaid diagram from a definition string.\nShadow DOM; async render guarded by a `_seq` cancellation token. Custom\ntheming is delegated to mermaid's in-diagram directives; `theme` selects a\nbuilt-in theme name. Pan/zoom + fit button are wired via d3-zoom and\nMacGesturesController.",
886
+ "name": "LlumiMermaid",
887
+ "members": [
888
+ {
889
+ "kind": "field",
890
+ "name": "theme",
891
+ "type": {
892
+ "text": "string"
893
+ },
894
+ "default": "\"default\"",
895
+ "attribute": "theme",
896
+ "reflects": true
897
+ },
898
+ {
899
+ "kind": "field",
900
+ "name": "_source",
901
+ "type": {
902
+ "text": "string"
903
+ },
904
+ "privacy": "protected",
905
+ "default": "\"\""
906
+ },
907
+ {
908
+ "kind": "field",
909
+ "name": "_error",
910
+ "type": {
911
+ "text": "string | null"
912
+ },
913
+ "privacy": "protected",
914
+ "default": "null"
915
+ },
916
+ {
917
+ "kind": "field",
918
+ "name": "_hasDiagram",
919
+ "type": {
920
+ "text": "boolean"
921
+ },
922
+ "privacy": "protected",
923
+ "default": "false"
924
+ },
925
+ {
926
+ "kind": "field",
927
+ "name": "_slot",
928
+ "privacy": "private",
929
+ "readonly": true,
930
+ "default": "new SlotTextController(this, (text) => { this._source = text; })"
931
+ },
932
+ {
933
+ "kind": "field",
934
+ "name": "_container",
935
+ "type": {
936
+ "text": "HTMLDivElement"
937
+ },
938
+ "privacy": "protected"
939
+ },
940
+ {
941
+ "kind": "field",
942
+ "name": "_uid",
943
+ "privacy": "protected",
944
+ "readonly": true,
945
+ "default": "`llumi-mermaid-${++uidCounter}`"
946
+ },
947
+ {
948
+ "kind": "field",
949
+ "name": "_seq",
950
+ "type": {
951
+ "text": "number"
952
+ },
953
+ "privacy": "protected",
954
+ "default": "0"
955
+ },
956
+ {
957
+ "kind": "field",
958
+ "name": "_renderTask",
959
+ "type": {
960
+ "text": "Promise<void>"
961
+ },
962
+ "privacy": "private"
963
+ },
964
+ {
965
+ "kind": "field",
966
+ "name": "_gestures",
967
+ "privacy": "private",
968
+ "readonly": true,
969
+ "default": "new MacGesturesController(this)"
970
+ },
971
+ {
972
+ "kind": "field",
973
+ "name": "_zoomCtx",
974
+ "type": {
975
+ "text": "{\n\t\tsvgSelection: Selection<SVGSVGElement, unknown, null, undefined>;\n\t\tzoomBehavior: ZoomBehavior<SVGSVGElement, unknown>;\n\t} | null"
976
+ },
977
+ "privacy": "private",
978
+ "default": "null"
979
+ },
980
+ {
981
+ "kind": "field",
982
+ "name": "resolvedCode",
983
+ "type": {
984
+ "text": "string"
985
+ },
986
+ "privacy": "protected",
987
+ "description": "Diagram source: dedented light-DOM text content.",
988
+ "readonly": true
989
+ },
990
+ {
991
+ "kind": "field",
992
+ "name": "whenRendered",
993
+ "type": {
994
+ "text": "Promise<void>"
995
+ },
996
+ "description": "Test hook: resolves when the in-flight render has settled.\nChains through `updateComplete` so that calling this immediately after a\nproperty change (before the next Lit update cycle) still awaits the render\nthat `willUpdate` schedules for that change.",
997
+ "readonly": true
998
+ },
999
+ {
1000
+ "kind": "method",
1001
+ "name": "cleanupOrphans",
1002
+ "privacy": "protected",
1003
+ "return": {
1004
+ "type": {
1005
+ "text": "void"
1006
+ }
1007
+ }
1008
+ },
1009
+ {
1010
+ "kind": "method",
1011
+ "name": "onSvgRendered",
1012
+ "privacy": "protected",
1013
+ "return": {
1014
+ "type": {
1015
+ "text": "void"
1016
+ }
1017
+ },
1018
+ "parameters": [
1019
+ {
1020
+ "name": "container",
1021
+ "type": {
1022
+ "text": "HTMLDivElement"
1023
+ }
1024
+ }
1025
+ ],
1026
+ "description": "Attach d3-zoom + gestures to the freshly rendered SVG."
1027
+ },
1028
+ {
1029
+ "kind": "method",
1030
+ "name": "teardownZoom",
1031
+ "privacy": "protected",
1032
+ "return": {
1033
+ "type": {
1034
+ "text": "void"
1035
+ }
1036
+ },
1037
+ "description": "Tear down zoom/gesture state on error/disconnect."
1038
+ },
1039
+ {
1040
+ "kind": "method",
1041
+ "name": "zoomTo",
1042
+ "return": {
1043
+ "type": {
1044
+ "text": "void"
1045
+ }
1046
+ },
1047
+ "parameters": [
1048
+ {
1049
+ "name": "k",
1050
+ "type": {
1051
+ "text": "number"
1052
+ }
1053
+ }
1054
+ ],
1055
+ "description": "Test hook: jump the zoom to scale `k` (no transition)."
1056
+ },
1057
+ {
1058
+ "kind": "field",
1059
+ "name": "fitToContent",
1060
+ "privacy": "private",
1061
+ "readonly": true
1062
+ },
1063
+ {
1064
+ "kind": "method",
1065
+ "name": "renderDiagram",
1066
+ "privacy": "protected",
1067
+ "return": {
1068
+ "type": {
1069
+ "text": "Promise<void>"
1070
+ }
1071
+ }
1072
+ }
1073
+ ],
1074
+ "events": [
1075
+ {
1076
+ "name": "llumi-mermaid-render",
1077
+ "type": {
1078
+ "text": "CustomEvent"
1079
+ }
1080
+ },
1081
+ {
1082
+ "name": "llumi-mermaid-error",
1083
+ "type": {
1084
+ "text": "CustomEvent"
1085
+ }
1086
+ }
1087
+ ],
1088
+ "attributes": [
1089
+ {
1090
+ "name": "theme",
1091
+ "type": {
1092
+ "text": "string"
1093
+ },
1094
+ "default": "\"default\"",
1095
+ "fieldName": "theme"
1096
+ }
1097
+ ],
1098
+ "superclass": {
1099
+ "name": "LlumiElement",
1100
+ "module": "/src/shared/llumi-element"
1101
+ },
1102
+ "tagName": "llumi-mermaid",
1103
+ "customElement": true
1104
+ }
1105
+ ],
1106
+ "exports": [
1107
+ {
1108
+ "kind": "js",
1109
+ "name": "LlumiMermaid",
1110
+ "declaration": {
1111
+ "name": "LlumiMermaid",
1112
+ "module": "src/components/mermaid/mermaid.element.ts"
867
1113
  }
868
1114
  },
869
1115
  {
870
1116
  "kind": "custom-element-definition",
871
- "name": "llumi-highlighter",
1117
+ "name": "llumi-mermaid",
872
1118
  "declaration": {
873
- "name": "LlumiHighlighter",
874
- "module": "src/components/highlighter/highlighter.element.ts"
1119
+ "name": "LlumiMermaid",
1120
+ "module": "src/components/mermaid/mermaid.element.ts"
875
1121
  }
876
1122
  }
877
1123
  ]
@@ -1970,252 +2216,6 @@
1970
2216
  }
1971
2217
  }
1972
2218
  ]
1973
- },
1974
- {
1975
- "kind": "javascript-module",
1976
- "path": "src/components/mermaid/mermaid.element.ts",
1977
- "declarations": [
1978
- {
1979
- "kind": "class",
1980
- "description": "`<llumi-mermaid>` — renders a Mermaid diagram from a definition string.\nShadow DOM; async render guarded by a `_seq` cancellation token. Custom\ntheming is delegated to mermaid's in-diagram directives; `theme` selects a\nbuilt-in theme name. Pan/zoom + fit button are wired via d3-zoom and\nMacGesturesController.",
1981
- "name": "LlumiMermaid",
1982
- "members": [
1983
- {
1984
- "kind": "field",
1985
- "name": "theme",
1986
- "type": {
1987
- "text": "string"
1988
- },
1989
- "default": "\"default\"",
1990
- "attribute": "theme",
1991
- "reflects": true
1992
- },
1993
- {
1994
- "kind": "field",
1995
- "name": "_source",
1996
- "type": {
1997
- "text": "string"
1998
- },
1999
- "privacy": "protected",
2000
- "default": "\"\""
2001
- },
2002
- {
2003
- "kind": "field",
2004
- "name": "_error",
2005
- "type": {
2006
- "text": "string | null"
2007
- },
2008
- "privacy": "protected",
2009
- "default": "null"
2010
- },
2011
- {
2012
- "kind": "field",
2013
- "name": "_hasDiagram",
2014
- "type": {
2015
- "text": "boolean"
2016
- },
2017
- "privacy": "protected",
2018
- "default": "false"
2019
- },
2020
- {
2021
- "kind": "field",
2022
- "name": "_slot",
2023
- "privacy": "private",
2024
- "readonly": true,
2025
- "default": "new SlotTextController(this, (text) => { this._source = text; })"
2026
- },
2027
- {
2028
- "kind": "field",
2029
- "name": "_container",
2030
- "type": {
2031
- "text": "HTMLDivElement"
2032
- },
2033
- "privacy": "protected"
2034
- },
2035
- {
2036
- "kind": "field",
2037
- "name": "_uid",
2038
- "privacy": "protected",
2039
- "readonly": true,
2040
- "default": "`llumi-mermaid-${++uidCounter}`"
2041
- },
2042
- {
2043
- "kind": "field",
2044
- "name": "_seq",
2045
- "type": {
2046
- "text": "number"
2047
- },
2048
- "privacy": "protected",
2049
- "default": "0"
2050
- },
2051
- {
2052
- "kind": "field",
2053
- "name": "_renderTask",
2054
- "type": {
2055
- "text": "Promise<void>"
2056
- },
2057
- "privacy": "private"
2058
- },
2059
- {
2060
- "kind": "field",
2061
- "name": "_gestures",
2062
- "privacy": "private",
2063
- "readonly": true,
2064
- "default": "new MacGesturesController(this)"
2065
- },
2066
- {
2067
- "kind": "field",
2068
- "name": "_zoomCtx",
2069
- "type": {
2070
- "text": "{\n\t\tsvgSelection: Selection<SVGSVGElement, unknown, null, undefined>;\n\t\tzoomBehavior: ZoomBehavior<SVGSVGElement, unknown>;\n\t} | null"
2071
- },
2072
- "privacy": "private",
2073
- "default": "null"
2074
- },
2075
- {
2076
- "kind": "field",
2077
- "name": "resolvedCode",
2078
- "type": {
2079
- "text": "string"
2080
- },
2081
- "privacy": "protected",
2082
- "description": "Diagram source: dedented light-DOM text content.",
2083
- "readonly": true
2084
- },
2085
- {
2086
- "kind": "field",
2087
- "name": "whenRendered",
2088
- "type": {
2089
- "text": "Promise<void>"
2090
- },
2091
- "description": "Test hook: resolves when the in-flight render has settled.\nChains through `updateComplete` so that calling this immediately after a\nproperty change (before the next Lit update cycle) still awaits the render\nthat `willUpdate` schedules for that change.",
2092
- "readonly": true
2093
- },
2094
- {
2095
- "kind": "method",
2096
- "name": "cleanupOrphans",
2097
- "privacy": "protected",
2098
- "return": {
2099
- "type": {
2100
- "text": "void"
2101
- }
2102
- }
2103
- },
2104
- {
2105
- "kind": "method",
2106
- "name": "onSvgRendered",
2107
- "privacy": "protected",
2108
- "return": {
2109
- "type": {
2110
- "text": "void"
2111
- }
2112
- },
2113
- "parameters": [
2114
- {
2115
- "name": "container",
2116
- "type": {
2117
- "text": "HTMLDivElement"
2118
- }
2119
- }
2120
- ],
2121
- "description": "Attach d3-zoom + gestures to the freshly rendered SVG."
2122
- },
2123
- {
2124
- "kind": "method",
2125
- "name": "teardownZoom",
2126
- "privacy": "protected",
2127
- "return": {
2128
- "type": {
2129
- "text": "void"
2130
- }
2131
- },
2132
- "description": "Tear down zoom/gesture state on error/disconnect."
2133
- },
2134
- {
2135
- "kind": "method",
2136
- "name": "zoomTo",
2137
- "return": {
2138
- "type": {
2139
- "text": "void"
2140
- }
2141
- },
2142
- "parameters": [
2143
- {
2144
- "name": "k",
2145
- "type": {
2146
- "text": "number"
2147
- }
2148
- }
2149
- ],
2150
- "description": "Test hook: jump the zoom to scale `k` (no transition)."
2151
- },
2152
- {
2153
- "kind": "field",
2154
- "name": "fitToContent",
2155
- "privacy": "private",
2156
- "readonly": true
2157
- },
2158
- {
2159
- "kind": "method",
2160
- "name": "renderDiagram",
2161
- "privacy": "protected",
2162
- "return": {
2163
- "type": {
2164
- "text": "Promise<void>"
2165
- }
2166
- }
2167
- }
2168
- ],
2169
- "events": [
2170
- {
2171
- "name": "llumi-mermaid-render",
2172
- "type": {
2173
- "text": "CustomEvent"
2174
- }
2175
- },
2176
- {
2177
- "name": "llumi-mermaid-error",
2178
- "type": {
2179
- "text": "CustomEvent"
2180
- }
2181
- }
2182
- ],
2183
- "attributes": [
2184
- {
2185
- "name": "theme",
2186
- "type": {
2187
- "text": "string"
2188
- },
2189
- "default": "\"default\"",
2190
- "fieldName": "theme"
2191
- }
2192
- ],
2193
- "superclass": {
2194
- "name": "LlumiElement",
2195
- "module": "/src/shared/llumi-element"
2196
- },
2197
- "tagName": "llumi-mermaid",
2198
- "customElement": true
2199
- }
2200
- ],
2201
- "exports": [
2202
- {
2203
- "kind": "js",
2204
- "name": "LlumiMermaid",
2205
- "declaration": {
2206
- "name": "LlumiMermaid",
2207
- "module": "src/components/mermaid/mermaid.element.ts"
2208
- }
2209
- },
2210
- {
2211
- "kind": "custom-element-definition",
2212
- "name": "llumi-mermaid",
2213
- "declaration": {
2214
- "name": "LlumiMermaid",
2215
- "module": "src/components/mermaid/mermaid.element.ts"
2216
- }
2217
- }
2218
- ]
2219
2219
  }
2220
2220
  ]
2221
2221
  }