@digi-frontend/dgate-api-documentation 1.0.53 → 1.0.54
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/_virtual/index4.js +1 -1
- package/dist/_virtual/index5.js +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +1 -1
- package/dist/src/helpers/docs.helper.js.map +1 -1
- package/dist/src/layout/docsComponents/DocsContent/DocsContent.js.map +1 -1
- package/dist/src/layout/docsComponents/DocsContent/EndpointPage/index.js.map +1 -1
- package/dist/src/layout/docsComponents/DocsContent/TagPage/index.js +1 -1
- package/dist/src/layout/docsComponents/DocsContent/TagPage/index.js.map +1 -1
- package/dist/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.js +1 -1
- package/dist/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.js.map +1 -1
- package/dist/src/layout/docsLayout.js +1 -1
- package/dist/src/layout/docsLayout.js.map +1 -1
- package/dist/styles.css +280 -280
- package/dist/types/layout/docsComponents/DocsContent/DocsContent.d.ts +5 -0
- package/dist/types/layout/docsComponents/DocsContent/EndpointPage/index.d.ts +2 -1
- package/dist/types/layout/docsComponents/DocsContent/TagPage/index.d.ts +6 -5
- package/dist/types/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.d.ts +4 -2
- package/dist/types/layout/docsLayout.d.ts +4 -3
- package/package.json +3 -1
- package/rollup.config.js +2 -2
- package/src/helpers/docs.helper.ts +1 -0
- package/src/layout/docsComponents/DocsContent/DocsContent.tsx +6 -4
- package/src/layout/docsComponents/DocsContent/EndpointPage/index.tsx +13 -11
- package/src/layout/docsComponents/DocsContent/TagPage/index.tsx +58 -4
- package/src/layout/docsComponents/DocsSideMenuTree/DocsSideMenuTree.tsx +11 -33
- package/src/layout/docsLayout.tsx +99 -21
package/dist/styles.css
CHANGED
|
@@ -367,29 +367,6 @@
|
|
|
367
367
|
}
|
|
368
368
|
.methodAccordion.readOnly .methodSummaryContainer .methodExpandArrowContainer {
|
|
369
369
|
background-color: #ebecf2;
|
|
370
|
-
}.containerTitleDrawer {
|
|
371
|
-
height: 64px;
|
|
372
|
-
min-height: 64px;
|
|
373
|
-
display: flex;
|
|
374
|
-
flex-direction: row;
|
|
375
|
-
justify-content: space-between;
|
|
376
|
-
align-items: center;
|
|
377
|
-
background-color: #f1f2f6;
|
|
378
|
-
padding: 0 30px 0 30px;
|
|
379
|
-
width: 100%;
|
|
380
|
-
}
|
|
381
|
-
.containerTitleDrawer span {
|
|
382
|
-
color: #12131a;
|
|
383
|
-
font-weight: 600;
|
|
384
|
-
font-size: 18px;
|
|
385
|
-
line-height: 25px;
|
|
386
|
-
letter-spacing: 0em;
|
|
387
|
-
}
|
|
388
|
-
.containerTitleDrawer svg path {
|
|
389
|
-
stroke: #000 !important;
|
|
390
|
-
}
|
|
391
|
-
.containerTitleDrawer .closeIcon {
|
|
392
|
-
cursor: pointer;
|
|
393
370
|
}.apiInfoForm {
|
|
394
371
|
display: grid;
|
|
395
372
|
padding: 1.25rem 1.875rem;
|
|
@@ -508,101 +485,29 @@
|
|
|
508
485
|
content: "*";
|
|
509
486
|
color: red;
|
|
510
487
|
transform: translateX(0.125rem);
|
|
511
|
-
}.
|
|
488
|
+
}.containerTitleDrawer {
|
|
489
|
+
height: 64px;
|
|
490
|
+
min-height: 64px;
|
|
512
491
|
display: flex;
|
|
492
|
+
flex-direction: row;
|
|
493
|
+
justify-content: space-between;
|
|
494
|
+
align-items: center;
|
|
495
|
+
background-color: #f1f2f6;
|
|
496
|
+
padding: 0 30px 0 30px;
|
|
497
|
+
width: 100%;
|
|
513
498
|
}
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
background-color: #202f5b;
|
|
521
|
-
font-size: 0.875rem;
|
|
522
|
-
border-radius: 0.3125rem;
|
|
523
|
-
width: max-content;
|
|
524
|
-
max-width: 100%;
|
|
525
|
-
overflow-wrap: break-word;
|
|
526
|
-
word-break: break-word;
|
|
527
|
-
position: relative;
|
|
528
|
-
border: 1px solid #d8dae5;
|
|
529
|
-
z-index: 2;
|
|
530
|
-
}
|
|
531
|
-
.tippy-box.function .tippy-content {
|
|
532
|
-
background-color: #fff !important;
|
|
533
|
-
color: #000 !important;
|
|
534
|
-
}
|
|
535
|
-
.tippy-box.function[data-placement] > .tippy-arrow:before {
|
|
536
|
-
color: #fff !important;
|
|
537
|
-
}
|
|
538
|
-
.tippy-box.info .tippy-arrow {
|
|
539
|
-
color: #202f5b;
|
|
540
|
-
}
|
|
541
|
-
.tippy-box.success {
|
|
542
|
-
border-radius: 1.875rem;
|
|
543
|
-
background-color: #3aaa35;
|
|
544
|
-
padding-inline: 0.625rem;
|
|
545
|
-
}
|
|
546
|
-
.tippy-box .tippy-content {
|
|
547
|
-
text-align: justify;
|
|
548
|
-
font-size: 0.875rem;
|
|
549
|
-
line-height: 1.25rem;
|
|
550
|
-
padding: 0.625rem;
|
|
551
|
-
}
|
|
552
|
-
.tippy-box .tippy-arrow {
|
|
553
|
-
position: relative;
|
|
554
|
-
width: 1rem;
|
|
555
|
-
height: 1rem;
|
|
556
|
-
}
|
|
557
|
-
.tippy-box[data-placement^=top] .tippy-arrow:before {
|
|
558
|
-
bottom: -0.4375rem;
|
|
559
|
-
border-width: 0.5rem 0.5rem 0 !important;
|
|
560
|
-
}
|
|
561
|
-
.tippy-box[data-placement^=right] .tippy-arrow:before {
|
|
562
|
-
left: -0.4375rem;
|
|
563
|
-
border-width: 0.5rem 0.5rem 0.5rem 0 !important;
|
|
564
|
-
}
|
|
565
|
-
.tippy-box[data-placement^=bottom] .tippy-arrow:before {
|
|
566
|
-
top: -0.4375rem;
|
|
567
|
-
border-width: 0 0.5rem 0.5rem !important;
|
|
568
|
-
}
|
|
569
|
-
.tippy-box[data-placement^=left] .tippy-arrow:before {
|
|
570
|
-
right: -0.4375rem;
|
|
571
|
-
border-width: 0.5rem 0 0.5rem 0.5rem !important;
|
|
572
|
-
}
|
|
573
|
-
.tippy-box[data-placement^=bottom-start] .tippy-arrow {
|
|
574
|
-
transform: translate(0.937rem, 0) !important;
|
|
575
|
-
}
|
|
576
|
-
.tippy-box[data-placement^=bottom-end] .tippy-arrow {
|
|
577
|
-
margin-left: calc(100% - 1.937rem);
|
|
578
|
-
transform: translate(0, 0) !important;
|
|
579
|
-
}
|
|
580
|
-
.tippy-box[data-placement^=top-start] .tippy-arrow {
|
|
581
|
-
transform: translate(0.937rem, 0) !important;
|
|
582
|
-
}
|
|
583
|
-
.tippy-box[data-placement^=top-end] .tippy-arrow {
|
|
584
|
-
transform: translate(0.937rem, 0) !important;
|
|
585
|
-
}
|
|
586
|
-
.tippy-box.arrow-with-border {
|
|
587
|
-
border: 1px solid #d8dae5;
|
|
499
|
+
.containerTitleDrawer span {
|
|
500
|
+
color: #12131a;
|
|
501
|
+
font-weight: 600;
|
|
502
|
+
font-size: 18px;
|
|
503
|
+
line-height: 25px;
|
|
504
|
+
letter-spacing: 0em;
|
|
588
505
|
}
|
|
589
|
-
.
|
|
590
|
-
|
|
591
|
-
background-color: white;
|
|
592
|
-
z-index: 2;
|
|
593
|
-
height: 1px;
|
|
506
|
+
.containerTitleDrawer svg path {
|
|
507
|
+
stroke: #000 !important;
|
|
594
508
|
}
|
|
595
|
-
.
|
|
596
|
-
|
|
597
|
-
height: 0.625rem;
|
|
598
|
-
background-color: white;
|
|
599
|
-
transform: rotate(45deg);
|
|
600
|
-
border: none;
|
|
601
|
-
border-left: 1px solid #d8dae5 !important;
|
|
602
|
-
border-top: 1px solid #d8dae5 !important;
|
|
603
|
-
z-index: 2;
|
|
604
|
-
top: -0.45rem;
|
|
605
|
-
transform-origin: center !important;
|
|
509
|
+
.containerTitleDrawer .closeIcon {
|
|
510
|
+
cursor: pointer;
|
|
606
511
|
}#common-dialog.dialog-content-wrapper {
|
|
607
512
|
overflow: visible !important;
|
|
608
513
|
max-height: 100%;
|
|
@@ -744,6 +649,101 @@
|
|
|
744
649
|
display: flex;
|
|
745
650
|
gap: 1.25rem;
|
|
746
651
|
margin-top: 1.875rem;
|
|
652
|
+
}.tooltip-custom-wrapper {
|
|
653
|
+
display: flex;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
[data-tippy-root] {
|
|
657
|
+
z-index: 2 !important;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.tippy-box {
|
|
661
|
+
background-color: #202f5b;
|
|
662
|
+
font-size: 0.875rem;
|
|
663
|
+
border-radius: 0.3125rem;
|
|
664
|
+
width: max-content;
|
|
665
|
+
max-width: 100%;
|
|
666
|
+
overflow-wrap: break-word;
|
|
667
|
+
word-break: break-word;
|
|
668
|
+
position: relative;
|
|
669
|
+
border: 1px solid #d8dae5;
|
|
670
|
+
z-index: 2;
|
|
671
|
+
}
|
|
672
|
+
.tippy-box.function .tippy-content {
|
|
673
|
+
background-color: #fff !important;
|
|
674
|
+
color: #000 !important;
|
|
675
|
+
}
|
|
676
|
+
.tippy-box.function[data-placement] > .tippy-arrow:before {
|
|
677
|
+
color: #fff !important;
|
|
678
|
+
}
|
|
679
|
+
.tippy-box.info .tippy-arrow {
|
|
680
|
+
color: #202f5b;
|
|
681
|
+
}
|
|
682
|
+
.tippy-box.success {
|
|
683
|
+
border-radius: 1.875rem;
|
|
684
|
+
background-color: #3aaa35;
|
|
685
|
+
padding-inline: 0.625rem;
|
|
686
|
+
}
|
|
687
|
+
.tippy-box .tippy-content {
|
|
688
|
+
text-align: justify;
|
|
689
|
+
font-size: 0.875rem;
|
|
690
|
+
line-height: 1.25rem;
|
|
691
|
+
padding: 0.625rem;
|
|
692
|
+
}
|
|
693
|
+
.tippy-box .tippy-arrow {
|
|
694
|
+
position: relative;
|
|
695
|
+
width: 1rem;
|
|
696
|
+
height: 1rem;
|
|
697
|
+
}
|
|
698
|
+
.tippy-box[data-placement^=top] .tippy-arrow:before {
|
|
699
|
+
bottom: -0.4375rem;
|
|
700
|
+
border-width: 0.5rem 0.5rem 0 !important;
|
|
701
|
+
}
|
|
702
|
+
.tippy-box[data-placement^=right] .tippy-arrow:before {
|
|
703
|
+
left: -0.4375rem;
|
|
704
|
+
border-width: 0.5rem 0.5rem 0.5rem 0 !important;
|
|
705
|
+
}
|
|
706
|
+
.tippy-box[data-placement^=bottom] .tippy-arrow:before {
|
|
707
|
+
top: -0.4375rem;
|
|
708
|
+
border-width: 0 0.5rem 0.5rem !important;
|
|
709
|
+
}
|
|
710
|
+
.tippy-box[data-placement^=left] .tippy-arrow:before {
|
|
711
|
+
right: -0.4375rem;
|
|
712
|
+
border-width: 0.5rem 0 0.5rem 0.5rem !important;
|
|
713
|
+
}
|
|
714
|
+
.tippy-box[data-placement^=bottom-start] .tippy-arrow {
|
|
715
|
+
transform: translate(0.937rem, 0) !important;
|
|
716
|
+
}
|
|
717
|
+
.tippy-box[data-placement^=bottom-end] .tippy-arrow {
|
|
718
|
+
margin-left: calc(100% - 1.937rem);
|
|
719
|
+
transform: translate(0, 0) !important;
|
|
720
|
+
}
|
|
721
|
+
.tippy-box[data-placement^=top-start] .tippy-arrow {
|
|
722
|
+
transform: translate(0.937rem, 0) !important;
|
|
723
|
+
}
|
|
724
|
+
.tippy-box[data-placement^=top-end] .tippy-arrow {
|
|
725
|
+
transform: translate(0.937rem, 0) !important;
|
|
726
|
+
}
|
|
727
|
+
.tippy-box.arrow-with-border {
|
|
728
|
+
border: 1px solid #d8dae5;
|
|
729
|
+
}
|
|
730
|
+
.tippy-box.arrow-with-border[data-placement] .tippy-arrow {
|
|
731
|
+
top: 1px;
|
|
732
|
+
background-color: white;
|
|
733
|
+
z-index: 2;
|
|
734
|
+
height: 1px;
|
|
735
|
+
}
|
|
736
|
+
.tippy-box.arrow-with-border[data-placement] .tippy-arrow:before {
|
|
737
|
+
width: 0.625rem;
|
|
738
|
+
height: 0.625rem;
|
|
739
|
+
background-color: white;
|
|
740
|
+
transform: rotate(45deg);
|
|
741
|
+
border: none;
|
|
742
|
+
border-left: 1px solid #d8dae5 !important;
|
|
743
|
+
border-top: 1px solid #d8dae5 !important;
|
|
744
|
+
z-index: 2;
|
|
745
|
+
top: -0.45rem;
|
|
746
|
+
transform-origin: center !important;
|
|
747
747
|
}.livePreviewContainer .titleContainer {
|
|
748
748
|
margin-top: 1.875rem;
|
|
749
749
|
display: flex;
|
|
@@ -1396,22 +1396,176 @@ div.endBtnIcon {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
.drawerItemContainer .color-red {
|
|
1398
1398
|
color: var(--color-error);
|
|
1399
|
-
}.
|
|
1400
|
-
height: 2.625rem;
|
|
1401
|
-
background-color: #f0f1f2;
|
|
1402
|
-
display: flex;
|
|
1403
|
-
align-items: center;
|
|
1404
|
-
padding: 0 1rem;
|
|
1405
|
-
}
|
|
1406
|
-
.api_docs_header .header_content {
|
|
1399
|
+
}.api-docs-api-tree {
|
|
1407
1400
|
width: 100%;
|
|
1401
|
+
max-width: 12.5rem;
|
|
1402
|
+
padding: 3rem 1.25rem;
|
|
1403
|
+
box-sizing: border-box;
|
|
1404
|
+
}
|
|
1405
|
+
.api-docs-api-tree > * {
|
|
1406
|
+
box-sizing: border-box;
|
|
1407
|
+
}
|
|
1408
|
+
.api-docs-api-tree__section-header {
|
|
1408
1409
|
display: flex;
|
|
1409
1410
|
align-items: center;
|
|
1411
|
+
gap: 0.25rem;
|
|
1412
|
+
padding-inline: 0.5rem;
|
|
1413
|
+
cursor: pointer;
|
|
1414
|
+
user-select: none;
|
|
1415
|
+
height: 2.5rem;
|
|
1410
1416
|
}
|
|
1411
|
-
.
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1417
|
+
.api-docs-api-tree__section-header:hover {
|
|
1418
|
+
background-color: #f3f4f6;
|
|
1419
|
+
}
|
|
1420
|
+
.api-docs-api-tree__section-header svg:first-child path {
|
|
1421
|
+
stroke: #bbbec5;
|
|
1422
|
+
}
|
|
1423
|
+
.api-docs-api-tree__section-title {
|
|
1424
|
+
font-size: 0.75rem;
|
|
1425
|
+
line-height: 0.875rem;
|
|
1426
|
+
font-weight: 500;
|
|
1427
|
+
color: #000;
|
|
1428
|
+
margin-left: 0.25rem;
|
|
1429
|
+
}
|
|
1430
|
+
.api-docs-api-tree__section__overview {
|
|
1431
|
+
display: flex;
|
|
1432
|
+
align-items: center;
|
|
1433
|
+
gap: 0.5rem;
|
|
1434
|
+
padding: 0.5rem 1.75rem;
|
|
1435
|
+
border-radius: 0.25rem;
|
|
1436
|
+
cursor: pointer;
|
|
1437
|
+
}
|
|
1438
|
+
.api-docs-api-tree__section__overview:hover {
|
|
1439
|
+
background-color: #f3f4f6;
|
|
1440
|
+
}
|
|
1441
|
+
.api-docs-api-tree__section__overview span {
|
|
1442
|
+
font-size: 0.75rem;
|
|
1443
|
+
line-height: 0.875rem;
|
|
1444
|
+
color: #000000;
|
|
1445
|
+
}
|
|
1446
|
+
.api-docs-api-tree__section__overview[data-active=true] {
|
|
1447
|
+
background-color: #f0f1f2;
|
|
1448
|
+
}
|
|
1449
|
+
.api-docs-api-tree__section__endpoints {
|
|
1450
|
+
display: flex;
|
|
1451
|
+
align-items: center;
|
|
1452
|
+
height: 1.5rem;
|
|
1453
|
+
gap: 0.5rem;
|
|
1454
|
+
border-radius: 0.25rem;
|
|
1455
|
+
padding-inline: 1.75rem;
|
|
1456
|
+
cursor: pointer;
|
|
1457
|
+
}
|
|
1458
|
+
.api-docs-api-tree__section__endpoints span {
|
|
1459
|
+
font-size: 0.75rem;
|
|
1460
|
+
line-height: 0.875rem;
|
|
1461
|
+
color: #000000;
|
|
1462
|
+
}
|
|
1463
|
+
.api-docs-api-tree__section__endpoints[data-active=true] {
|
|
1464
|
+
background-color: #f0f1f2;
|
|
1465
|
+
}
|
|
1466
|
+
.api-docs-api-tree__section[data-active=true] .api-docs-api-tree__section-title {
|
|
1467
|
+
color: #616874;
|
|
1468
|
+
}
|
|
1469
|
+
.api-docs-api-tree__endpoints {
|
|
1470
|
+
display: flex;
|
|
1471
|
+
flex-direction: column;
|
|
1472
|
+
align-items: start;
|
|
1473
|
+
gap: 0.5rem;
|
|
1474
|
+
border-radius: 0.25rem;
|
|
1475
|
+
cursor: pointer;
|
|
1476
|
+
}
|
|
1477
|
+
.api-docs-api-tree__endpoints span {
|
|
1478
|
+
font-size: 0.75rem;
|
|
1479
|
+
line-height: 0.875rem;
|
|
1480
|
+
color: #000000;
|
|
1481
|
+
}
|
|
1482
|
+
.api-docs-api-tree__endpoints[data-active=true] {
|
|
1483
|
+
background-color: #f0f1f2;
|
|
1484
|
+
}
|
|
1485
|
+
.api-docs-api-tree__subsection-header {
|
|
1486
|
+
height: 2rem;
|
|
1487
|
+
display: flex;
|
|
1488
|
+
align-items: center;
|
|
1489
|
+
gap: 0.875rem;
|
|
1490
|
+
padding-inline: 0.5rem;
|
|
1491
|
+
cursor: pointer;
|
|
1492
|
+
user-select: none;
|
|
1493
|
+
}
|
|
1494
|
+
.api-docs-api-tree__subsection-header svg {
|
|
1495
|
+
color: #6b7280;
|
|
1496
|
+
}
|
|
1497
|
+
.api-docs-api-tree__subsection-title {
|
|
1498
|
+
font-size: 0.75rem;
|
|
1499
|
+
line-height: 0.875rem;
|
|
1500
|
+
color: #616874;
|
|
1501
|
+
}
|
|
1502
|
+
.api-docs-api-tree__endpoint {
|
|
1503
|
+
display: flex;
|
|
1504
|
+
align-items: center;
|
|
1505
|
+
gap: 0.25rem;
|
|
1506
|
+
padding: 0.5rem 0.75rem;
|
|
1507
|
+
text-transform: capitalize;
|
|
1508
|
+
width: 100%;
|
|
1509
|
+
cursor: pointer;
|
|
1510
|
+
}
|
|
1511
|
+
.api-docs-api-tree__endpoint[data-active=true] {
|
|
1512
|
+
background-color: #f0f1f2;
|
|
1513
|
+
}
|
|
1514
|
+
.api-docs-api-tree__endpoint:hover {
|
|
1515
|
+
background-color: #f3f4f6;
|
|
1516
|
+
}
|
|
1517
|
+
.api-docs-api-tree__endpoint-method {
|
|
1518
|
+
font-size: 0.75rem;
|
|
1519
|
+
line-height: 0.875rem;
|
|
1520
|
+
font-weight: 400;
|
|
1521
|
+
text-align: start;
|
|
1522
|
+
}
|
|
1523
|
+
.api-docs-api-tree__endpoint-name {
|
|
1524
|
+
font-size: 0.75rem;
|
|
1525
|
+
line-height: 0.875rem;
|
|
1526
|
+
color: #3b3f46;
|
|
1527
|
+
display: -webkit-box;
|
|
1528
|
+
-webkit-box-orient: vertical;
|
|
1529
|
+
-webkit-line-clamp: 1;
|
|
1530
|
+
overflow: hidden;
|
|
1531
|
+
text-overflow: ellipsis;
|
|
1532
|
+
}
|
|
1533
|
+
.api-docs-api-tree__endpoint--get .api-docs-api-tree__endpoint-method {
|
|
1534
|
+
color: #3a6cd1;
|
|
1535
|
+
}
|
|
1536
|
+
.api-docs-api-tree__endpoint--post .api-docs-api-tree__endpoint-method {
|
|
1537
|
+
color: #3aaa35;
|
|
1538
|
+
}
|
|
1539
|
+
.api-docs-api-tree__endpoint--put .api-docs-api-tree__endpoint-method {
|
|
1540
|
+
color: #faad14;
|
|
1541
|
+
}
|
|
1542
|
+
.api-docs-api-tree__endpoint--delete .api-docs-api-tree__endpoint-method {
|
|
1543
|
+
color: #da3f3f;
|
|
1544
|
+
}
|
|
1545
|
+
.api-docs-api-tree__endpoint--option .api-docs-api-tree__endpoint-method {
|
|
1546
|
+
color: #495d97;
|
|
1547
|
+
}
|
|
1548
|
+
.api-docs-api-tree__endpoint--head .api-docs-api-tree__endpoint-method {
|
|
1549
|
+
color: #9461c9;
|
|
1550
|
+
}
|
|
1551
|
+
.api-docs-api-tree__endpoint--patch .api-docs-api-tree__endpoint-method {
|
|
1552
|
+
color: #58e2c2;
|
|
1553
|
+
}.api_docs_header {
|
|
1554
|
+
height: 2.625rem;
|
|
1555
|
+
background-color: #f0f1f2;
|
|
1556
|
+
display: flex;
|
|
1557
|
+
align-items: center;
|
|
1558
|
+
padding: 0 1rem;
|
|
1559
|
+
}
|
|
1560
|
+
.api_docs_header .header_content {
|
|
1561
|
+
width: 100%;
|
|
1562
|
+
display: flex;
|
|
1563
|
+
align-items: center;
|
|
1564
|
+
}
|
|
1565
|
+
.api_docs_header .nav_buttons {
|
|
1566
|
+
display: flex;
|
|
1567
|
+
gap: 1rem;
|
|
1568
|
+
margin-left: 2.9375rem;
|
|
1415
1569
|
}
|
|
1416
1570
|
.api_docs_header .search_filter_btn {
|
|
1417
1571
|
background-color: #ffffff !important;
|
|
@@ -1635,160 +1789,6 @@ div.endBtnIcon {
|
|
|
1635
1789
|
opacity: 1 !important;
|
|
1636
1790
|
backdrop-filter: blur(0.5rem);
|
|
1637
1791
|
background-color: rgba(0, 0, 0, 0.281) !important;
|
|
1638
|
-
}.api-docs-api-tree {
|
|
1639
|
-
width: 100%;
|
|
1640
|
-
max-width: 12.5rem;
|
|
1641
|
-
padding: 3rem 1.25rem;
|
|
1642
|
-
box-sizing: border-box;
|
|
1643
|
-
}
|
|
1644
|
-
.api-docs-api-tree > * {
|
|
1645
|
-
box-sizing: border-box;
|
|
1646
|
-
}
|
|
1647
|
-
.api-docs-api-tree__section-header {
|
|
1648
|
-
display: flex;
|
|
1649
|
-
align-items: center;
|
|
1650
|
-
gap: 0.25rem;
|
|
1651
|
-
padding-inline: 0.5rem;
|
|
1652
|
-
cursor: pointer;
|
|
1653
|
-
user-select: none;
|
|
1654
|
-
height: 2.5rem;
|
|
1655
|
-
}
|
|
1656
|
-
.api-docs-api-tree__section-header:hover {
|
|
1657
|
-
background-color: #f3f4f6;
|
|
1658
|
-
}
|
|
1659
|
-
.api-docs-api-tree__section-header svg:first-child path {
|
|
1660
|
-
stroke: #bbbec5;
|
|
1661
|
-
}
|
|
1662
|
-
.api-docs-api-tree__section-title {
|
|
1663
|
-
font-size: 0.75rem;
|
|
1664
|
-
line-height: 0.875rem;
|
|
1665
|
-
font-weight: 500;
|
|
1666
|
-
color: #000;
|
|
1667
|
-
margin-left: 0.25rem;
|
|
1668
|
-
}
|
|
1669
|
-
.api-docs-api-tree__section__overview {
|
|
1670
|
-
display: flex;
|
|
1671
|
-
align-items: center;
|
|
1672
|
-
gap: 0.5rem;
|
|
1673
|
-
padding: 0.5rem 1.75rem;
|
|
1674
|
-
border-radius: 0.25rem;
|
|
1675
|
-
cursor: pointer;
|
|
1676
|
-
}
|
|
1677
|
-
.api-docs-api-tree__section__overview:hover {
|
|
1678
|
-
background-color: #f3f4f6;
|
|
1679
|
-
}
|
|
1680
|
-
.api-docs-api-tree__section__overview span {
|
|
1681
|
-
font-size: 0.75rem;
|
|
1682
|
-
line-height: 0.875rem;
|
|
1683
|
-
color: #000000;
|
|
1684
|
-
}
|
|
1685
|
-
.api-docs-api-tree__section__overview[data-active=true] {
|
|
1686
|
-
background-color: #f0f1f2;
|
|
1687
|
-
}
|
|
1688
|
-
.api-docs-api-tree__section__endpoints {
|
|
1689
|
-
display: flex;
|
|
1690
|
-
align-items: center;
|
|
1691
|
-
height: 1.5rem;
|
|
1692
|
-
gap: 0.5rem;
|
|
1693
|
-
border-radius: 0.25rem;
|
|
1694
|
-
padding-inline: 1.75rem;
|
|
1695
|
-
cursor: pointer;
|
|
1696
|
-
}
|
|
1697
|
-
.api-docs-api-tree__section__endpoints span {
|
|
1698
|
-
font-size: 0.75rem;
|
|
1699
|
-
line-height: 0.875rem;
|
|
1700
|
-
color: #000000;
|
|
1701
|
-
}
|
|
1702
|
-
.api-docs-api-tree__section__endpoints[data-active=true] {
|
|
1703
|
-
background-color: #f0f1f2;
|
|
1704
|
-
}
|
|
1705
|
-
.api-docs-api-tree__section[data-active=true] .api-docs-api-tree__section-title {
|
|
1706
|
-
color: #616874;
|
|
1707
|
-
}
|
|
1708
|
-
.api-docs-api-tree__endpoints {
|
|
1709
|
-
display: flex;
|
|
1710
|
-
flex-direction: column;
|
|
1711
|
-
align-items: start;
|
|
1712
|
-
gap: 0.5rem;
|
|
1713
|
-
border-radius: 0.25rem;
|
|
1714
|
-
cursor: pointer;
|
|
1715
|
-
}
|
|
1716
|
-
.api-docs-api-tree__endpoints span {
|
|
1717
|
-
font-size: 0.75rem;
|
|
1718
|
-
line-height: 0.875rem;
|
|
1719
|
-
color: #000000;
|
|
1720
|
-
}
|
|
1721
|
-
.api-docs-api-tree__endpoints[data-active=true] {
|
|
1722
|
-
background-color: #f0f1f2;
|
|
1723
|
-
}
|
|
1724
|
-
.api-docs-api-tree__subsection-header {
|
|
1725
|
-
height: 2rem;
|
|
1726
|
-
display: flex;
|
|
1727
|
-
align-items: center;
|
|
1728
|
-
gap: 0.875rem;
|
|
1729
|
-
padding-inline: 0.5rem;
|
|
1730
|
-
cursor: pointer;
|
|
1731
|
-
user-select: none;
|
|
1732
|
-
}
|
|
1733
|
-
.api-docs-api-tree__subsection-header svg {
|
|
1734
|
-
color: #6b7280;
|
|
1735
|
-
}
|
|
1736
|
-
.api-docs-api-tree__subsection-title {
|
|
1737
|
-
font-size: 0.75rem;
|
|
1738
|
-
line-height: 0.875rem;
|
|
1739
|
-
color: #616874;
|
|
1740
|
-
}
|
|
1741
|
-
.api-docs-api-tree__endpoint {
|
|
1742
|
-
display: flex;
|
|
1743
|
-
align-items: center;
|
|
1744
|
-
gap: 0.25rem;
|
|
1745
|
-
padding: 0.5rem 0.75rem;
|
|
1746
|
-
text-transform: capitalize;
|
|
1747
|
-
width: 100%;
|
|
1748
|
-
cursor: pointer;
|
|
1749
|
-
}
|
|
1750
|
-
.api-docs-api-tree__endpoint[data-active=true] {
|
|
1751
|
-
background-color: #f0f1f2;
|
|
1752
|
-
}
|
|
1753
|
-
.api-docs-api-tree__endpoint:hover {
|
|
1754
|
-
background-color: #f3f4f6;
|
|
1755
|
-
}
|
|
1756
|
-
.api-docs-api-tree__endpoint-method {
|
|
1757
|
-
font-size: 0.75rem;
|
|
1758
|
-
line-height: 0.875rem;
|
|
1759
|
-
font-weight: 400;
|
|
1760
|
-
text-align: start;
|
|
1761
|
-
}
|
|
1762
|
-
.api-docs-api-tree__endpoint-name {
|
|
1763
|
-
font-size: 0.75rem;
|
|
1764
|
-
line-height: 0.875rem;
|
|
1765
|
-
color: #3b3f46;
|
|
1766
|
-
display: -webkit-box;
|
|
1767
|
-
-webkit-box-orient: vertical;
|
|
1768
|
-
-webkit-line-clamp: 1;
|
|
1769
|
-
overflow: hidden;
|
|
1770
|
-
text-overflow: ellipsis;
|
|
1771
|
-
}
|
|
1772
|
-
.api-docs-api-tree__endpoint--get .api-docs-api-tree__endpoint-method {
|
|
1773
|
-
color: #3a6cd1;
|
|
1774
|
-
}
|
|
1775
|
-
.api-docs-api-tree__endpoint--post .api-docs-api-tree__endpoint-method {
|
|
1776
|
-
color: #3aaa35;
|
|
1777
|
-
}
|
|
1778
|
-
.api-docs-api-tree__endpoint--put .api-docs-api-tree__endpoint-method {
|
|
1779
|
-
color: #faad14;
|
|
1780
|
-
}
|
|
1781
|
-
.api-docs-api-tree__endpoint--delete .api-docs-api-tree__endpoint-method {
|
|
1782
|
-
color: #da3f3f;
|
|
1783
|
-
}
|
|
1784
|
-
.api-docs-api-tree__endpoint--option .api-docs-api-tree__endpoint-method {
|
|
1785
|
-
color: #495d97;
|
|
1786
|
-
}
|
|
1787
|
-
.api-docs-api-tree__endpoint--head .api-docs-api-tree__endpoint-method {
|
|
1788
|
-
color: #9461c9;
|
|
1789
|
-
}
|
|
1790
|
-
.api-docs-api-tree__endpoint--patch .api-docs-api-tree__endpoint-method {
|
|
1791
|
-
color: #58e2c2;
|
|
1792
1792
|
}.codebox {
|
|
1793
1793
|
border-radius: 0.25rem;
|
|
1794
1794
|
overflow: hidden;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './style.scss';
|
|
2
3
|
import { EndpointData, OverviewData } from 'src/layout/docsLayout';
|
|
3
4
|
declare const DocsContent: ({ data, activeType, setActiveItemData, setActiveType, setExpandedSections, }: {
|
|
4
5
|
data: OverviewData | EndpointData;
|
|
5
6
|
activeType: "OVERVIEW" | "ENDPOINT";
|
|
7
|
+
setActiveItemData: React.Dispatch<React.SetStateAction<OverviewData | EndpointData>>;
|
|
8
|
+
setActiveType: React.Dispatch<React.SetStateAction<"OVERVIEW" | "ENDPOINT">>;
|
|
9
|
+
setExpandedSections: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
10
|
+
toggleSection: (apiId: string, sectionId: string, resetOthers?: boolean, key?: string[]) => void;
|
|
6
11
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
12
|
export default DocsContent;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import './style.scss';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { EndpointData, OverviewData } from 'src/layout/docsLayout';
|
|
3
|
+
export declare const TagPage: ({ data, setActiveItemData, setActiveType, setExpandedSections, }: {
|
|
4
|
+
data: OverviewData;
|
|
5
|
+
setActiveItemData: React.Dispatch<React.SetStateAction<OverviewData | EndpointData>>;
|
|
6
|
+
setActiveType: React.Dispatch<React.SetStateAction<"OVERVIEW" | "ENDPOINT">>;
|
|
7
|
+
setExpandedSections: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
7
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import './style.scss';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { EndpointData, OverviewData } from 'src/layout/docsLayout';
|
|
4
|
-
declare const DocsSideMenuTree: ({ apis, setActiveItemData, activeItemData, activeType, expandedSections, setExpandedSections, isFirstApiExpanded, setIsFirstApiExpanded, setActiveType, }: {
|
|
4
|
+
declare const DocsSideMenuTree: ({ apis, setActiveItemData, activeItemData, activeType, expandedSections, setExpandedSections, isFirstApiExpanded, setIsFirstApiExpanded, setActiveType, toggleSection, canSelectFirstApi, }: {
|
|
5
5
|
apis: OverviewData[];
|
|
6
6
|
setActiveItemData: React.Dispatch<React.SetStateAction<OverviewData | EndpointData>>;
|
|
7
7
|
activeItemData: OverviewData | EndpointData;
|
|
8
8
|
expandedSections: Record<string, boolean>;
|
|
9
|
-
setExpandedSections:
|
|
9
|
+
setExpandedSections: (newSections: Record<string, boolean>) => void;
|
|
10
10
|
isFirstApiExpanded: boolean;
|
|
11
11
|
setIsFirstApiExpanded: React.Dispatch<React.SetStateAction<boolean>>;
|
|
12
12
|
setActiveType: React.Dispatch<React.SetStateAction<"OVERVIEW" | "ENDPOINT">>;
|
|
13
13
|
activeType: "OVERVIEW" | "ENDPOINT";
|
|
14
|
+
toggleSection: (apiId: string, sectionId: string, resetOthers?: boolean, key?: string[]) => void;
|
|
15
|
+
canSelectFirstApi?: boolean;
|
|
14
16
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
export default DocsSideMenuTree;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { JSX } from 'react';
|
|
1
|
+
import React, { JSX } from 'react';
|
|
2
2
|
import { HTTPMethod, OpenAPIFile, Parameter, RequestBody, Responses } from '@entities/openApi';
|
|
3
3
|
import { ApiSpecModel } from '@entities/index';
|
|
4
4
|
interface ILayoutProps {
|
|
5
5
|
apis?: ApiSpecModel[];
|
|
6
|
+
activeApiId?: string;
|
|
6
7
|
}
|
|
7
8
|
export interface TagData {
|
|
8
9
|
id: string;
|
|
@@ -30,5 +31,5 @@ export interface OverviewData extends Omit<ApiSpecModel, 'metaData'> {
|
|
|
30
31
|
tags: Record<string, TagData[]>;
|
|
31
32
|
servers: OpenAPIFile['servers'];
|
|
32
33
|
}
|
|
33
|
-
declare const
|
|
34
|
-
export default
|
|
34
|
+
declare const _default: React.MemoExoticComponent<({ apis, activeApiId }: ILayoutProps) => JSX.Element>;
|
|
35
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digi-frontend/dgate-api-documentation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.54",
|
|
4
4
|
"main": "dist/src/index.js",
|
|
5
5
|
"module": "dist/src/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"description": "",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"digitinary-ui": "1.0.166",
|
|
20
|
+
"fast-json-stable-stringify": "^2.1.0",
|
|
20
21
|
"formik": "^2.4.6",
|
|
21
22
|
"html-react-parser": "^5.2.2",
|
|
22
23
|
"js-yaml": "^4.1.0",
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
32
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
33
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
32
34
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
33
35
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
34
36
|
"@rollup/plugin-url": "^8.0.2",
|