@vanduo-oss/vd3-cbun 1.3.2 → 1.4.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 (40) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.md +24 -9
  3. package/SKILL.md +42 -15
  4. package/dist/charts/core.d.ts +4 -0
  5. package/dist/charts/index.cjs +197 -10
  6. package/dist/charts/index.cjs.map +3 -3
  7. package/dist/charts/index.js +197 -10
  8. package/dist/charts/index.js.map +3 -3
  9. package/dist/charts/vd3-charts.css +82 -0
  10. package/dist/charts/vue.d.ts +4 -0
  11. package/dist/code-editor/core.d.ts +19 -2
  12. package/dist/code-editor/highlight.cjs +1242 -0
  13. package/dist/code-editor/highlight.cjs.map +7 -0
  14. package/dist/code-editor/highlight.d.ts +6 -0
  15. package/dist/code-editor/highlight.js +1219 -0
  16. package/dist/code-editor/highlight.js.map +7 -0
  17. package/dist/code-editor/index.cjs +694 -70
  18. package/dist/code-editor/index.cjs.map +4 -4
  19. package/dist/code-editor/index.d.ts +2 -0
  20. package/dist/code-editor/index.js +694 -70
  21. package/dist/code-editor/index.js.map +4 -4
  22. package/dist/code-editor/vd3-code-editor.css +5 -0
  23. package/dist/draw/core.d.ts +7 -1
  24. package/dist/draw/index.cjs +470 -52
  25. package/dist/draw/index.cjs.map +2 -2
  26. package/dist/draw/index.js +470 -52
  27. package/dist/draw/index.js.map +2 -2
  28. package/dist/draw/vd3-draw.css +45 -0
  29. package/dist/draw/vue.d.ts +4 -0
  30. package/dist/hex-grid/core.d.ts +41 -0
  31. package/dist/hex-grid/index.cjs +308 -13
  32. package/dist/hex-grid/index.cjs.map +3 -3
  33. package/dist/hex-grid/index.d.ts +1 -0
  34. package/dist/hex-grid/index.js +308 -13
  35. package/dist/hex-grid/index.js.map +3 -3
  36. package/dist/hex-grid/vue.d.ts +4 -0
  37. package/dist/index.js +2 -2
  38. package/dist/index.js.map +2 -2
  39. package/dist/meta.json +177 -66
  40. package/package.json +15 -10
package/dist/meta.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "inputs": {
3
3
  "src/index.js": {
4
- "bytes": 860,
4
+ "bytes": 888,
5
5
  "imports": [],
6
6
  "format": "esm"
7
7
  },
8
8
  "src/charts/core.js": {
9
- "bytes": 52467,
9
+ "bytes": 58695,
10
10
  "imports": [],
11
11
  "format": "esm"
12
12
  },
13
13
  "src/charts/vue.js": {
14
- "bytes": 6479,
14
+ "bytes": 6841,
15
15
  "imports": [
16
16
  {
17
17
  "path": "vue",
@@ -43,12 +43,12 @@
43
43
  "format": "esm"
44
44
  },
45
45
  "src/code-editor/tokenizer/scanner.js": {
46
- "bytes": 2792,
46
+ "bytes": 3369,
47
47
  "imports": [],
48
48
  "format": "esm"
49
49
  },
50
50
  "src/code-editor/tokenizer/javascript.js": {
51
- "bytes": 2622,
51
+ "bytes": 7481,
52
52
  "imports": [
53
53
  {
54
54
  "path": "src/code-editor/tokenizer/scanner.js",
@@ -58,8 +58,8 @@
58
58
  ],
59
59
  "format": "esm"
60
60
  },
61
- "src/code-editor/tokenizer/html.js": {
62
- "bytes": 1834,
61
+ "src/code-editor/tokenizer/css.js": {
62
+ "bytes": 6597,
63
63
  "imports": [
64
64
  {
65
65
  "path": "src/code-editor/tokenizer/scanner.js",
@@ -69,13 +69,23 @@
69
69
  ],
70
70
  "format": "esm"
71
71
  },
72
- "src/code-editor/tokenizer/css.js": {
73
- "bytes": 1140,
72
+ "src/code-editor/tokenizer/html.js": {
73
+ "bytes": 6800,
74
74
  "imports": [
75
75
  {
76
76
  "path": "src/code-editor/tokenizer/scanner.js",
77
77
  "kind": "import-statement",
78
78
  "original": "./scanner.js"
79
+ },
80
+ {
81
+ "path": "src/code-editor/tokenizer/javascript.js",
82
+ "kind": "import-statement",
83
+ "original": "./javascript.js"
84
+ },
85
+ {
86
+ "path": "src/code-editor/tokenizer/css.js",
87
+ "kind": "import-statement",
88
+ "original": "./css.js"
79
89
  }
80
90
  ],
81
91
  "format": "esm"
@@ -125,7 +135,7 @@
125
135
  "format": "esm"
126
136
  },
127
137
  "src/code-editor/tokenizer/index.js": {
128
- "bytes": 2392,
138
+ "bytes": 2499,
129
139
  "imports": [
130
140
  {
131
141
  "path": "src/code-editor/tokenizer/javascript.js",
@@ -166,7 +176,7 @@
166
176
  "format": "esm"
167
177
  },
168
178
  "src/code-editor/highlight.js": {
169
- "bytes": 2256,
179
+ "bytes": 2757,
170
180
  "imports": [
171
181
  {
172
182
  "path": "src/code-editor/tokenizer/index.js",
@@ -193,7 +203,7 @@
193
203
  "format": "esm"
194
204
  },
195
205
  "src/code-editor/core.js": {
196
- "bytes": 17629,
206
+ "bytes": 17671,
197
207
  "imports": [
198
208
  {
199
209
  "path": "src/code-editor/tokenizer/index.js",
@@ -214,6 +224,11 @@
214
224
  "path": "src/code-editor/constants.js",
215
225
  "kind": "import-statement",
216
226
  "original": "./constants.js"
227
+ },
228
+ {
229
+ "path": "src/code-editor/highlight.js",
230
+ "kind": "import-statement",
231
+ "original": "./highlight.js"
217
232
  }
218
233
  ],
219
234
  "format": "esm"
@@ -235,7 +250,7 @@
235
250
  "format": "esm"
236
251
  },
237
252
  "src/code-editor/index.js": {
238
- "bytes": 454,
253
+ "bytes": 476,
239
254
  "imports": [
240
255
  {
241
256
  "path": "src/code-editor/vue.js",
@@ -251,12 +266,12 @@
251
266
  "format": "esm"
252
267
  },
253
268
  "src/draw/shapes.js": {
254
- "bytes": 20554,
269
+ "bytes": 24264,
255
270
  "imports": [],
256
271
  "format": "esm"
257
272
  },
258
273
  "src/draw/core.js": {
259
- "bytes": 69102,
274
+ "bytes": 82099,
260
275
  "imports": [
261
276
  {
262
277
  "path": "src/draw/shapes.js",
@@ -267,7 +282,7 @@
267
282
  "format": "esm"
268
283
  },
269
284
  "src/draw/vue.js": {
270
- "bytes": 4123,
285
+ "bytes": 4775,
271
286
  "imports": [
272
287
  {
273
288
  "path": "vue",
@@ -362,7 +377,7 @@
362
377
  "format": "esm"
363
378
  },
364
379
  "src/hex-grid/core.js": {
365
- "bytes": 26230,
380
+ "bytes": 36477,
366
381
  "imports": [
367
382
  {
368
383
  "path": "src/hex-grid/hex-math.js",
@@ -378,7 +393,7 @@
378
393
  "format": "esm"
379
394
  },
380
395
  "src/hex-grid/vue.js": {
381
- "bytes": 2355,
396
+ "bytes": 2832,
382
397
  "imports": [
383
398
  {
384
399
  "path": "vue",
@@ -452,7 +467,7 @@
452
467
  "imports": [],
453
468
  "exports": [],
454
469
  "inputs": {},
455
- "bytes": 1131
470
+ "bytes": 1160
456
471
  },
457
472
  "dist/index.js": {
458
473
  "imports": [],
@@ -471,7 +486,7 @@
471
486
  "imports": [],
472
487
  "exports": [],
473
488
  "inputs": {},
474
- "bytes": 104833
489
+ "bytes": 116243
475
490
  },
476
491
  "dist/charts/index.js": {
477
492
  "imports": [
@@ -512,22 +527,22 @@
512
527
  "entryPoint": "src/charts/index.js",
513
528
  "inputs": {
514
529
  "src/charts/vue.js": {
515
- "bytesInOutput": 5643
530
+ "bytesInOutput": 5999
516
531
  },
517
532
  "src/charts/core.js": {
518
- "bytesInOutput": 50233
533
+ "bytesInOutput": 56420
519
534
  },
520
535
  "src/charts/index.js": {
521
536
  "bytesInOutput": 0
522
537
  }
523
538
  },
524
- "bytes": 56354
539
+ "bytes": 62897
525
540
  },
526
541
  "dist/charts/index.cjs.map": {
527
542
  "imports": [],
528
543
  "exports": [],
529
544
  "inputs": {},
530
- "bytes": 105672
545
+ "bytes": 117082
531
546
  },
532
547
  "dist/charts/index.cjs": {
533
548
  "imports": [
@@ -544,19 +559,19 @@
544
559
  "bytesInOutput": 937
545
560
  },
546
561
  "src/charts/vue.js": {
547
- "bytesInOutput": 5722
562
+ "bytesInOutput": 6078
548
563
  },
549
564
  "src/charts/core.js": {
550
- "bytesInOutput": 50233
565
+ "bytesInOutput": 56420
551
566
  }
552
567
  },
553
- "bytes": 57817
568
+ "bytes": 64360
554
569
  },
555
570
  "dist/code-editor/index.js.map": {
556
571
  "imports": [],
557
572
  "exports": [],
558
573
  "inputs": {},
559
- "bytes": 77486
574
+ "bytes": 105814
560
575
  },
561
576
  "dist/code-editor/index.js": {
562
577
  "imports": [
@@ -572,6 +587,7 @@
572
587
  "VdCodeEditor",
573
588
  "VdCodeEditorCore",
574
589
  "highlight",
590
+ "renderTokensToHtml",
575
591
  "tokenize"
576
592
  ],
577
593
  "entryPoint": "src/code-editor/index.js",
@@ -580,16 +596,16 @@
580
596
  "bytesInOutput": 4614
581
597
  },
582
598
  "src/code-editor/tokenizer/scanner.js": {
583
- "bytesInOutput": 1556
599
+ "bytesInOutput": 1829
584
600
  },
585
601
  "src/code-editor/tokenizer/javascript.js": {
586
- "bytesInOutput": 2390
587
- },
588
- "src/code-editor/tokenizer/html.js": {
589
- "bytesInOutput": 1131
602
+ "bytesInOutput": 6816
590
603
  },
591
604
  "src/code-editor/tokenizer/css.js": {
592
- "bytesInOutput": 880
605
+ "bytesInOutput": 6229
606
+ },
607
+ "src/code-editor/tokenizer/html.js": {
608
+ "bytesInOutput": 6032
593
609
  },
594
610
  "src/code-editor/tokenizer/json.js": {
595
611
  "bytesInOutput": 384
@@ -604,10 +620,10 @@
604
620
  "bytesInOutput": 1825
605
621
  },
606
622
  "src/code-editor/tokenizer/index.js": {
607
- "bytesInOutput": 1259
623
+ "bytesInOutput": 1273
608
624
  },
609
625
  "src/code-editor/highlight.js": {
610
- "bytesInOutput": 1143
626
+ "bytesInOutput": 1213
611
627
  },
612
628
  "src/code-editor/constants.js": {
613
629
  "bytesInOutput": 435
@@ -622,13 +638,13 @@
622
638
  "bytesInOutput": 0
623
639
  }
624
640
  },
625
- "bytes": 37796
641
+ "bytes": 52851
626
642
  },
627
643
  "dist/code-editor/index.cjs.map": {
628
644
  "imports": [],
629
645
  "exports": [],
630
646
  "inputs": {},
631
- "bytes": 78064
647
+ "bytes": 106420
632
648
  },
633
649
  "dist/code-editor/index.cjs": {
634
650
  "imports": [
@@ -642,22 +658,22 @@
642
658
  "entryPoint": "src/code-editor/index.js",
643
659
  "inputs": {
644
660
  "src/code-editor/index.js": {
645
- "bytesInOutput": 320
661
+ "bytesInOutput": 368
646
662
  },
647
663
  "src/code-editor/vue.js": {
648
664
  "bytesInOutput": 4757
649
665
  },
650
666
  "src/code-editor/tokenizer/scanner.js": {
651
- "bytesInOutput": 1556
667
+ "bytesInOutput": 1829
652
668
  },
653
669
  "src/code-editor/tokenizer/javascript.js": {
654
- "bytesInOutput": 2390
655
- },
656
- "src/code-editor/tokenizer/html.js": {
657
- "bytesInOutput": 1131
670
+ "bytesInOutput": 6816
658
671
  },
659
672
  "src/code-editor/tokenizer/css.js": {
660
- "bytesInOutput": 880
673
+ "bytesInOutput": 6229
674
+ },
675
+ "src/code-editor/tokenizer/html.js": {
676
+ "bytesInOutput": 6032
661
677
  },
662
678
  "src/code-editor/tokenizer/json.js": {
663
679
  "bytesInOutput": 384
@@ -672,10 +688,10 @@
672
688
  "bytesInOutput": 1825
673
689
  },
674
690
  "src/code-editor/tokenizer/index.js": {
675
- "bytesInOutput": 1259
691
+ "bytesInOutput": 1273
676
692
  },
677
693
  "src/code-editor/highlight.js": {
678
- "bytesInOutput": 1143
694
+ "bytesInOutput": 1213
679
695
  },
680
696
  "src/code-editor/constants.js": {
681
697
  "bytesInOutput": 435
@@ -687,13 +703,108 @@
687
703
  "bytesInOutput": 16042
688
704
  }
689
705
  },
690
- "bytes": 38945
706
+ "bytes": 54026
707
+ },
708
+ "dist/code-editor/highlight.js.map": {
709
+ "imports": [],
710
+ "exports": [],
711
+ "inputs": {},
712
+ "bytes": 57766
713
+ },
714
+ "dist/code-editor/highlight.js": {
715
+ "imports": [],
716
+ "exports": [
717
+ "LANGUAGES",
718
+ "escapeHtml",
719
+ "highlight",
720
+ "renderTokensToDom",
721
+ "renderTokensToHtml",
722
+ "tokenize"
723
+ ],
724
+ "entryPoint": "src/code-editor/highlight.js",
725
+ "inputs": {
726
+ "src/code-editor/tokenizer/scanner.js": {
727
+ "bytesInOutput": 1829
728
+ },
729
+ "src/code-editor/tokenizer/javascript.js": {
730
+ "bytesInOutput": 6816
731
+ },
732
+ "src/code-editor/tokenizer/css.js": {
733
+ "bytesInOutput": 6229
734
+ },
735
+ "src/code-editor/tokenizer/html.js": {
736
+ "bytesInOutput": 6032
737
+ },
738
+ "src/code-editor/tokenizer/json.js": {
739
+ "bytesInOutput": 384
740
+ },
741
+ "src/code-editor/tokenizer/markdown.js": {
742
+ "bytesInOutput": 552
743
+ },
744
+ "src/code-editor/tokenizer/shell.js": {
745
+ "bytesInOutput": 1373
746
+ },
747
+ "src/code-editor/tokenizer/python.js": {
748
+ "bytesInOutput": 1825
749
+ },
750
+ "src/code-editor/tokenizer/index.js": {
751
+ "bytesInOutput": 1273
752
+ },
753
+ "src/code-editor/highlight.js": {
754
+ "bytesInOutput": 1213
755
+ }
756
+ },
757
+ "bytes": 28060
758
+ },
759
+ "dist/code-editor/highlight.cjs.map": {
760
+ "imports": [],
761
+ "exports": [],
762
+ "inputs": {},
763
+ "bytes": 57837
764
+ },
765
+ "dist/code-editor/highlight.cjs": {
766
+ "imports": [],
767
+ "exports": [],
768
+ "entryPoint": "src/code-editor/highlight.js",
769
+ "inputs": {
770
+ "src/code-editor/highlight.js": {
771
+ "bytesInOutput": 1538
772
+ },
773
+ "src/code-editor/tokenizer/scanner.js": {
774
+ "bytesInOutput": 1829
775
+ },
776
+ "src/code-editor/tokenizer/javascript.js": {
777
+ "bytesInOutput": 6816
778
+ },
779
+ "src/code-editor/tokenizer/css.js": {
780
+ "bytesInOutput": 6229
781
+ },
782
+ "src/code-editor/tokenizer/html.js": {
783
+ "bytesInOutput": 6032
784
+ },
785
+ "src/code-editor/tokenizer/json.js": {
786
+ "bytesInOutput": 384
787
+ },
788
+ "src/code-editor/tokenizer/markdown.js": {
789
+ "bytesInOutput": 552
790
+ },
791
+ "src/code-editor/tokenizer/shell.js": {
792
+ "bytesInOutput": 1373
793
+ },
794
+ "src/code-editor/tokenizer/python.js": {
795
+ "bytesInOutput": 1825
796
+ },
797
+ "src/code-editor/tokenizer/index.js": {
798
+ "bytesInOutput": 1273
799
+ }
800
+ },
801
+ "bytes": 29113
691
802
  },
692
803
  "dist/draw/index.js.map": {
693
804
  "imports": [],
694
805
  "exports": [],
695
806
  "inputs": {},
696
- "bytes": 162707
807
+ "bytes": 191840
697
808
  },
698
809
  "dist/draw/index.js": {
699
810
  "imports": [
@@ -714,25 +825,25 @@
714
825
  "entryPoint": "src/draw/index.js",
715
826
  "inputs": {
716
827
  "src/draw/vue.js": {
717
- "bytesInOutput": 3560
828
+ "bytesInOutput": 4191
718
829
  },
719
830
  "src/draw/shapes.js": {
720
- "bytesInOutput": 15146
831
+ "bytesInOutput": 17816
721
832
  },
722
833
  "src/draw/core.js": {
723
- "bytesInOutput": 66656
834
+ "bytesInOutput": 79015
724
835
  },
725
836
  "src/draw/index.js": {
726
837
  "bytesInOutput": 0
727
838
  }
728
839
  },
729
- "bytes": 85605
840
+ "bytes": 101265
730
841
  },
731
842
  "dist/draw/index.cjs.map": {
732
843
  "imports": [],
733
844
  "exports": [],
734
845
  "inputs": {},
735
- "bytes": 163190
846
+ "bytes": 192323
736
847
  },
737
848
  "dist/draw/index.cjs": {
738
849
  "imports": [
@@ -749,16 +860,16 @@
749
860
  "bytesInOutput": 308
750
861
  },
751
862
  "src/draw/vue.js": {
752
- "bytesInOutput": 3655
863
+ "bytesInOutput": 4350
753
864
  },
754
865
  "src/draw/shapes.js": {
755
- "bytesInOutput": 15146
866
+ "bytesInOutput": 17816
756
867
  },
757
868
  "src/draw/core.js": {
758
- "bytesInOutput": 66656
869
+ "bytesInOutput": 79015
759
870
  }
760
871
  },
761
- "bytes": 86705
872
+ "bytes": 102429
762
873
  },
763
874
  "dist/flowchart/index.js.map": {
764
875
  "imports": [],
@@ -838,7 +949,7 @@
838
949
  "imports": [],
839
950
  "exports": [],
840
951
  "inputs": {},
841
- "bytes": 57978
952
+ "bytes": 75351
842
953
  },
843
954
  "dist/hex-grid/index.js": {
844
955
  "imports": [
@@ -856,25 +967,25 @@
856
967
  "entryPoint": "src/hex-grid/index.js",
857
968
  "inputs": {
858
969
  "src/hex-grid/vue.js": {
859
- "bytesInOutput": 1808
970
+ "bytesInOutput": 2283
860
971
  },
861
972
  "src/hex-grid/hex-math.js": {
862
973
  "bytesInOutput": 3574
863
974
  },
864
975
  "src/hex-grid/core.js": {
865
- "bytesInOutput": 24000
976
+ "bytesInOutput": 33429
866
977
  },
867
978
  "src/hex-grid/index.js": {
868
979
  "bytesInOutput": 0
869
980
  }
870
981
  },
871
- "bytes": 29916
982
+ "bytes": 39820
872
983
  },
873
984
  "dist/hex-grid/index.cjs.map": {
874
985
  "imports": [],
875
986
  "exports": [],
876
987
  "inputs": {},
877
- "bytes": 58534
988
+ "bytes": 75907
878
989
  },
879
990
  "dist/hex-grid/index.cjs": {
880
991
  "imports": [
@@ -891,16 +1002,16 @@
891
1002
  "bytesInOutput": 204
892
1003
  },
893
1004
  "src/hex-grid/vue.js": {
894
- "bytesInOutput": 1903
1005
+ "bytesInOutput": 2410
895
1006
  },
896
1007
  "src/hex-grid/hex-math.js": {
897
1008
  "bytesInOutput": 3574
898
1009
  },
899
1010
  "src/hex-grid/core.js": {
900
- "bytesInOutput": 24000
1011
+ "bytesInOutput": 33429
901
1012
  }
902
1013
  },
903
- "bytes": 30916
1014
+ "bytes": 40852
904
1015
  },
905
1016
  "dist/hex-grid/hex-math.js.map": {
906
1017
  "imports": [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanduo-oss/vd3-cbun",
3
- "version": "1.3.2",
3
+ "version": "1.4.1",
4
4
  "description": "Vanduo UI components bundle for Vue 3 — charts, code-editor, draw, flowchart, hex-grid, music-player (the vd3 line)",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -35,6 +35,11 @@
35
35
  "import": "./dist/code-editor/index.js",
36
36
  "require": "./dist/code-editor/index.cjs"
37
37
  },
38
+ "./code-editor/highlight": {
39
+ "types": "./dist/code-editor/highlight.d.ts",
40
+ "import": "./dist/code-editor/highlight.js",
41
+ "require": "./dist/code-editor/highlight.cjs"
42
+ },
38
43
  "./code-editor/css": "./dist/code-editor/vd3-code-editor.css",
39
44
  "./draw": {
40
45
  "types": "./dist/draw/index.d.ts",
@@ -89,17 +94,17 @@
89
94
  },
90
95
  "devDependencies": {
91
96
  "@eslint/js": "10.0.1",
92
- "@playwright/test": "1.61.1",
93
- "@typescript-eslint/parser": "8.62.0",
94
- "@vue/test-utils": "^2.4.11",
95
- "esbuild": "^0.28.1",
96
- "eslint": "^10.6.0",
97
+ "@playwright/test": "1.63.0",
98
+ "@typescript-eslint/parser": "8.69.0",
99
+ "@vue/test-utils": "^2.5.0",
100
+ "esbuild": "^0.28.2",
101
+ "eslint": "^10.10.0",
97
102
  "jsdom": "^29.1.1",
98
- "prettier": "^3.9.1",
103
+ "prettier": "^3.9.6",
99
104
  "typescript": "^6.0.3",
100
- "typescript-eslint": "8.62.0",
101
- "vitest": "^4.1.9",
102
- "vue": "^3.5.39"
105
+ "typescript-eslint": "8.69.0",
106
+ "vitest": "4.1.11",
107
+ "vue": "^3.5.42"
103
108
  },
104
109
  "engines": {
105
110
  "node": ">=20.19.0",