@digi-frontend/dgate-api-documentation 1.0.18 → 1.0.21

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 (30) hide show
  1. package/dist/_virtual/index3.js +1 -1
  2. package/dist/_virtual/index4.js +1 -1
  3. package/dist/_virtual/index5.js +1 -1
  4. package/dist/_virtual/index6.js +1 -1
  5. package/dist/node_modules/toposort/index.js +1 -1
  6. package/dist/node_modules/yup/index.esm.js +1 -1
  7. package/dist/src/components/InfoForm/InfoForm.js +1 -1
  8. package/dist/src/components/InfoForm/InfoForm.js.map +1 -1
  9. package/dist/src/components/LivePreview/LivePreview.js +1 -1
  10. package/dist/src/components/LivePreview/LivePreview.js.map +1 -1
  11. package/dist/src/components/MethodAccordion/MethodAccordion.js +1 -1
  12. package/dist/src/components/MethodAccordion/MethodAccordion.js.map +1 -1
  13. package/dist/src/components/table/table.js +1 -1
  14. package/dist/src/components/table/table.js.map +1 -1
  15. package/dist/src/components/table/tags-table.js +1 -1
  16. package/dist/src/components/table/tags-table.js.map +1 -1
  17. package/dist/src/layout/layout.js +1 -1
  18. package/dist/src/layout/layout.js.map +1 -1
  19. package/dist/styles.css +298 -280
  20. package/dist/types/components/MethodAccordion/MethodAccordion.d.ts +4 -3
  21. package/dist/types/layout/layout.d.ts +2 -1
  22. package/package.json +2 -2
  23. package/src/components/InfoForm/InfoForm.module.scss +13 -0
  24. package/src/components/InfoForm/InfoForm.tsx +32 -18
  25. package/src/components/LivePreview/LivePreview.tsx +29 -6
  26. package/src/components/MethodAccordion/MethodAccordion.module.scss +13 -0
  27. package/src/components/MethodAccordion/MethodAccordion.tsx +60 -18
  28. package/src/components/table/table.tsx +1 -0
  29. package/src/components/table/tags-table.tsx +2 -2
  30. package/src/layout/layout.tsx +15 -3
package/dist/styles.css CHANGED
@@ -1,4 +1,103 @@
1
- .methodAccordion {
1
+ .apiInfoForm {
2
+ display: grid;
3
+ padding: 1.25rem 1.875rem;
4
+ gap: 1.25rem;
5
+ }
6
+ .apiInfoForm .paramsTable .paramDescContainer {
7
+ display: flex;
8
+ }
9
+ .apiInfoForm .paramsTable .paramDescContainer .paramDescContainer_separator {
10
+ height: inherit;
11
+ width: 1px;
12
+ background-color: #d8dae5;
13
+ }
14
+ .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn) svg path {
15
+ stroke-width: 0.1;
16
+ }
17
+ .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn).editDescBtn {
18
+ padding: 0;
19
+ margin-right: 1.25rem;
20
+ }
21
+ .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn).editDescBtn :global(.btnContentWrapper) {
22
+ display: flex;
23
+ align-items: center;
24
+ padding: 0;
25
+ color: #12131a;
26
+ }
27
+ .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn).editDescBtn :global(.btnContentWrapper) :global(.endBtnIcon) {
28
+ margin-block: auto;
29
+ }
30
+ .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn).editDescBtn :global(.btnContentWrapper) :global(.endBtnIcon) svg path {
31
+ fill: #12131a;
32
+ }
33
+ .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn).deleteParamBtn {
34
+ padding: 0;
35
+ }
36
+ .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn).deleteParamBtn :global(.btnContentWrapper) :global(.endBtnIcon) {
37
+ margin-block: auto;
38
+ }
39
+ .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn).deleteParamBtn :global(.btnContentWrapper) :global(.endBtnIcon) svg {
40
+ width: 1.125rem;
41
+ }
42
+ .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn):not(:global(.disabled)):global(.success) :global(.endBtnIcon) {
43
+ margin-block: auto;
44
+ }
45
+ .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn):not(:global(.disabled)):global(.success) :global(.endBtnIcon) svg {
46
+ width: 1.125rem;
47
+ }
48
+ .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn):not(:global(.disabled)):global(.success) :global(.endBtnIcon) svg path {
49
+ fill: #3aaa35;
50
+ }
51
+ .apiInfoForm .paramsTable .editDescTooltipContent {
52
+ display: flex;
53
+ flex-direction: column;
54
+ gap: 0.625rem;
55
+ padding-bottom: 0.625rem;
56
+ }
57
+ .apiInfoForm .paramsTable .editDescTooltipContent > *:not(.editDescTooltipContent_header) {
58
+ margin-inline: 0.625rem;
59
+ }
60
+ .apiInfoForm .paramsTable .editDescTooltipContent .editDescTooltipContent_header {
61
+ font-weight: 600;
62
+ font-size: 0.875rem;
63
+ line-height: 1.25rem;
64
+ padding: 0.75rem 1.25rem;
65
+ border-bottom: 1px solid #d8dae5;
66
+ }
67
+ .apiInfoForm .paramsTable :global(.requiredParam) :global(.headContainer)::after {
68
+ content: "*";
69
+ color: red;
70
+ transform: translateX(0.125rem);
71
+ }
72
+ .apiInfoForm .apiDocRow {
73
+ display: grid;
74
+ grid-template-columns: 1fr 1fr;
75
+ gap: 1.25rem;
76
+ }
77
+ .apiInfoForm .apiInfoForm_tagsChips {
78
+ margin-top: -1.25rem;
79
+ }
80
+ .apiInfoForm .editDescTooltipContent {
81
+ display: flex;
82
+ flex-direction: column;
83
+ gap: 0.625rem;
84
+ padding-bottom: 0.625rem;
85
+ }
86
+ .apiInfoForm .editDescTooltipContent > *:not(.editDescTooltipContent_header) {
87
+ margin-inline: 0.625rem;
88
+ }
89
+ .apiInfoForm .editDescTooltipContent .editDescTooltipContent_header {
90
+ font-weight: 600;
91
+ font-size: 0.875rem;
92
+ line-height: 1.25rem;
93
+ padding: 0.75rem 1.25rem;
94
+ border-bottom: 1px solid #d8dae5;
95
+ }
96
+ .apiInfoForm :global(.requiredParam) :global(.headContainer)::after {
97
+ content: "*";
98
+ color: red;
99
+ transform: translateX(0.125rem);
100
+ }.methodAccordion {
2
101
  border: none !important;
3
102
  box-shadow: none !important;
4
103
  margin-bottom: 0 !important;
@@ -106,6 +205,15 @@
106
205
  .methodAccordion .methodAccordionContent .paramsTable .paramDescContainer :global(.customBtn).deleteParamBtn :global(.btnContentWrapper) :global(.endBtnIcon) svg {
107
206
  width: 1.125rem;
108
207
  }
208
+ .methodAccordion .methodAccordionContent .paramsTable .paramDescContainer :global(.customBtn).deleteParamBtn:not(:global(.disabled)):global(.success) :global(.endBtnIcon) {
209
+ margin-block: auto;
210
+ }
211
+ .methodAccordion .methodAccordionContent .paramsTable .paramDescContainer :global(.customBtn).deleteParamBtn:not(:global(.disabled)):global(.success) :global(.endBtnIcon) svg {
212
+ width: 1.125rem;
213
+ }
214
+ .methodAccordion .methodAccordionContent .paramsTable .paramDescContainer :global(.customBtn).deleteParamBtn:not(:global(.disabled)):global(.success) :global(.endBtnIcon) svg path {
215
+ fill: #3aaa35;
216
+ }
109
217
  .methodAccordion .methodAccordionContent .paramsTable .editDescTooltipContent {
110
218
  display: flex;
111
219
  flex-direction: column;
@@ -262,6 +370,29 @@
262
370
  }
263
371
  .methodAccordion.readOnly .methodSummaryContainer .methodExpandArrowContainer {
264
372
  background-color: #ebecf2;
373
+ }.containerTitleDrawer {
374
+ height: 64px;
375
+ min-height: 64px;
376
+ display: flex;
377
+ flex-direction: row;
378
+ justify-content: space-between;
379
+ align-items: center;
380
+ background-color: #f1f2f6;
381
+ padding: 0 30px 0 30px;
382
+ width: 100%;
383
+ }
384
+ .containerTitleDrawer span {
385
+ color: #12131a;
386
+ font-weight: 600;
387
+ font-size: 18px;
388
+ line-height: 25px;
389
+ letter-spacing: 0em;
390
+ }
391
+ .containerTitleDrawer svg path {
392
+ stroke: #000 !important;
393
+ }
394
+ .containerTitleDrawer .closeIcon {
395
+ cursor: pointer;
265
396
  }.tooltip-custom-wrapper {
266
397
  display: flex;
267
398
  }
@@ -352,106 +483,6 @@
352
483
  z-index: 20000000000;
353
484
  top: -0.6rem;
354
485
  transform-origin: center !important;
355
- }#common-dialog.dialog-content-wrapper {
356
- overflow: visible !important;
357
- max-height: 100%;
358
- width: 22.1875rem;
359
- }
360
- #common-dialog.dialog-content-wrapper .dialog-content-root {
361
- overflow: visible !important;
362
- border-radius: 0.625rem;
363
- max-height: 100%;
364
- }
365
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content {
366
- padding: 0 1.875rem !important;
367
- overflow: visible !important;
368
- max-height: 100%;
369
- }
370
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog {
371
- position: relative;
372
- }
373
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .close-icon {
374
- position: absolute;
375
- z-index: 1;
376
- top: 1.5rem;
377
- right: 0;
378
- transform: translate(0.625rem, -0.625rem);
379
- cursor: pointer;
380
- }
381
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header {
382
- display: flex;
383
- padding-top: 0.5rem;
384
- position: relative;
385
- }
386
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon {
387
- margin-top: 1rem;
388
- margin-bottom: 1.5rem;
389
- margin-inline: auto;
390
- }
391
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info path {
392
- stroke: #12131a;
393
- }
394
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line {
395
- stroke: #12131a;
396
- }
397
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line + path {
398
- fill: #12131a;
399
- }
400
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning path {
401
- stroke: #faad14;
402
- }
403
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning line {
404
- stroke: #faad14;
405
- }
406
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error path {
407
- stroke: #da3f3f;
408
- }
409
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line {
410
- stroke: #da3f3f;
411
- }
412
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line + path {
413
- fill: #da3f3f;
414
- }
415
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title {
416
- font-size: 1.5rem;
417
- font-weight: 500;
418
- line-height: 1.875rem;
419
- text-align: center;
420
- margin-bottom: 0.625rem;
421
- }
422
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.error-title {
423
- color: #da3f3f;
424
- }
425
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.warning-title {
426
- color: #faad14;
427
- }
428
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-footer {
429
- display: flex;
430
- gap: 1.25rem;
431
- margin-top: 1.875rem;
432
- }.containerTitleDrawer {
433
- height: 64px;
434
- min-height: 64px;
435
- display: flex;
436
- flex-direction: row;
437
- justify-content: space-between;
438
- align-items: center;
439
- background-color: #f1f2f6;
440
- padding: 0 30px 0 30px;
441
- width: 100%;
442
- }
443
- .containerTitleDrawer span {
444
- color: #12131a;
445
- font-weight: 600;
446
- font-size: 18px;
447
- line-height: 25px;
448
- letter-spacing: 0em;
449
- }
450
- .containerTitleDrawer svg path {
451
- stroke: #000 !important;
452
- }
453
- .containerTitleDrawer .closeIcon {
454
- cursor: pointer;
455
486
  }:root {
456
487
  --white: #fff;
457
488
  --Gray-5: #f1f2f6;
@@ -691,207 +722,83 @@
691
722
  font-size: 40px;
692
723
  line-height: 30px;
693
724
  font-weight: 500;
694
- }.json-editor-container {
695
- overflow: hidden;
696
- border-bottom-right-radius: 0.3125rem;
697
- border-bottom-left-radius: 0.3125rem;
725
+ }#common-dialog.dialog-content-wrapper {
726
+ overflow: visible !important;
727
+ max-height: 100%;
728
+ width: 22.1875rem;
698
729
  }
699
- .json-editor-container .json-editor-label {
700
- font-size: 0.875rem;
701
- font-weight: 600;
702
- line-height: 1.25rem;
703
- margin-bottom: 0.3125rem;
730
+ #common-dialog.dialog-content-wrapper .dialog-content-root {
731
+ overflow: visible !important;
732
+ border-radius: 0.625rem;
733
+ max-height: 100%;
704
734
  }
705
- .json-editor-container .json-editor {
706
- display: flex;
707
- flex-direction: column;
708
- background-color: #142452;
709
- width: 100%;
710
- outline: 1px solid transparent;
735
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content {
736
+ padding: 0 1.875rem !important;
737
+ overflow: visible !important;
738
+ max-height: 100%;
739
+ }
740
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog {
711
741
  position: relative;
712
- overflow: hidden;
713
742
  }
714
- .json-editor-container .json-editor .actions-container {
715
- width: 100%;
716
- height: 5rem;
717
- padding: 1.25rem;
718
- border-radius: 0 0 0.3125rem 0.3125rem;
719
- background: #101e47;
720
- display: flex;
721
- flex-direction: row;
722
- gap: 1.25rem;
723
- align-items: center;
724
- }
725
- .json-editor-container .json-editor .actions-container .validate {
726
- color: #fff;
727
- text-align: center;
728
- font-size: 1rem;
729
- font-style: normal;
730
- font-weight: 600;
731
- line-height: 1.25rem;
732
- width: 8.75rem;
733
- padding: 0.625rem 2.25rem;
734
- background-color: rgba(240, 248, 255, 0);
735
- border-radius: 0.3125rem;
736
- border: 0.0625rem solid #4d75d8;
737
- cursor: pointer;
738
- }
739
- .json-editor-container .json-editor .actions-container .validate:disabled {
740
- color: #babdcc;
741
- border-color: #a2a5b6;
742
- }
743
- .json-editor-container .json-editor .actions-container .beautify {
744
- color: #fff;
745
- text-align: center;
746
- font-size: 1rem;
747
- font-style: normal;
748
- font-weight: 600;
749
- line-height: 1.25rem;
750
- width: 8.75rem;
751
- padding: 0.625rem 2.25rem;
752
- background-color: rgba(240, 248, 255, 0);
753
- border-radius: 0.3125rem;
754
- border: 1px solid #babdcc;
743
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .close-icon {
744
+ position: absolute;
745
+ z-index: 1;
746
+ top: 1.5rem;
747
+ right: 0;
748
+ transform: translate(0.625rem, -0.625rem);
755
749
  cursor: pointer;
756
750
  }
757
- .json-editor-container .json-editor .actions-container .beautify:disabled {
758
- color: #a2a5b6;
759
- border-color: #a2a5b6;
760
- }
761
- .json-editor-container .json-editor textarea {
762
- width: 100%;
763
- padding: 1.25rem;
764
- font-size: 0.875rem;
765
- font-style: normal;
766
- font-weight: 400;
767
- line-height: 1.25rem;
768
- color: white;
769
- height: 25rem;
770
- background-color: #142452;
771
- border: none;
772
- resize: none;
773
- }
774
- .json-editor-container .json-editor textarea:focus, .json-editor-container .json-editor textarea:focus-within, .json-editor-container .json-editor textarea:focus-visible .json-editor-container .json-editor textarea:active {
775
- outline: none;
776
- border: none;
777
- }
778
- .json-editor-container .json-editor textarea::-webkit-scrollbar {
779
- width: 0.5rem;
780
- }
781
- .json-editor-container .json-editor textarea::-webkit-scrollbar-track {
782
- background-color: #828699;
783
- border: none;
784
- border-color: transparent;
785
- border-top-left-radius: 0;
786
- }
787
- .json-editor-container .json-editor textarea::-webkit-scrollbar-thumb {
788
- background-color: #d8dae5;
789
- border: none;
790
- border-color: transparent;
791
- border-radius: 0;
792
- }
793
- .json-editor-container .json-editor.invalid {
794
- outline: 1px solid #ce2828 !important;
795
- }
796
- .json-editor-container .error-message {
797
- color: #ce2828;
798
- font-size: 0.75rem;
799
- line-height: 1.25rem;
800
- margin-top: 0.625rem;
801
- }
802
- .json-editor-container.disabled .json-editor textarea {
803
- background-color: white;
804
- color: #12131a;
805
- }.apiInfoForm {
806
- display: grid;
807
- padding: 1.25rem 1.875rem;
808
- gap: 1.25rem;
809
- }
810
- .apiInfoForm .paramsTable .paramDescContainer {
751
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header {
811
752
  display: flex;
753
+ padding-top: 0.5rem;
754
+ position: relative;
812
755
  }
813
- .apiInfoForm .paramsTable .paramDescContainer .paramDescContainer_separator {
814
- height: inherit;
815
- width: 1px;
816
- background-color: #d8dae5;
817
- }
818
- .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn) svg path {
819
- stroke-width: 0.1;
820
- }
821
- .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn).editDescBtn {
822
- padding: 0;
823
- margin-right: 1.25rem;
756
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon {
757
+ margin-top: 1rem;
758
+ margin-bottom: 1.5rem;
759
+ margin-inline: auto;
824
760
  }
825
- .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn).editDescBtn :global(.btnContentWrapper) {
826
- display: flex;
827
- align-items: center;
828
- padding: 0;
829
- color: #12131a;
761
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info path {
762
+ stroke: #12131a;
830
763
  }
831
- .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn).editDescBtn :global(.btnContentWrapper) :global(.endBtnIcon) {
832
- margin-block: auto;
764
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line {
765
+ stroke: #12131a;
833
766
  }
834
- .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn).editDescBtn :global(.btnContentWrapper) :global(.endBtnIcon) svg path {
767
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line + path {
835
768
  fill: #12131a;
836
769
  }
837
- .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn).deleteParamBtn {
838
- padding: 0;
839
- }
840
- .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn).deleteParamBtn :global(.btnContentWrapper) :global(.endBtnIcon) {
841
- margin-block: auto;
770
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning path {
771
+ stroke: #faad14;
842
772
  }
843
- .apiInfoForm .paramsTable .paramDescContainer :global(.customBtn).deleteParamBtn :global(.btnContentWrapper) :global(.endBtnIcon) svg {
844
- width: 1.125rem;
773
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning line {
774
+ stroke: #faad14;
845
775
  }
846
- .apiInfoForm .paramsTable .editDescTooltipContent {
847
- display: flex;
848
- flex-direction: column;
849
- gap: 0.625rem;
850
- padding-bottom: 0.625rem;
776
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error path {
777
+ stroke: #da3f3f;
851
778
  }
852
- .apiInfoForm .paramsTable .editDescTooltipContent > *:not(.editDescTooltipContent_header) {
853
- margin-inline: 0.625rem;
779
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line {
780
+ stroke: #da3f3f;
854
781
  }
855
- .apiInfoForm .paramsTable .editDescTooltipContent .editDescTooltipContent_header {
856
- font-weight: 600;
857
- font-size: 0.875rem;
858
- line-height: 1.25rem;
859
- padding: 0.75rem 1.25rem;
860
- border-bottom: 1px solid #d8dae5;
782
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line + path {
783
+ fill: #da3f3f;
861
784
  }
862
- .apiInfoForm .paramsTable :global(.requiredParam) :global(.headContainer)::after {
863
- content: "*";
864
- color: red;
865
- transform: translateX(0.125rem);
785
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title {
786
+ font-size: 1.5rem;
787
+ font-weight: 500;
788
+ line-height: 1.875rem;
789
+ text-align: center;
790
+ margin-bottom: 0.625rem;
866
791
  }
867
- .apiInfoForm .apiDocRow {
868
- display: grid;
869
- grid-template-columns: 1fr 1fr;
870
- gap: 1.25rem;
792
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.error-title {
793
+ color: #da3f3f;
871
794
  }
872
- .apiInfoForm .apiInfoForm_tagsChips {
873
- margin-top: -1.25rem;
795
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.warning-title {
796
+ color: #faad14;
874
797
  }
875
- .apiInfoForm .editDescTooltipContent {
798
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-footer {
876
799
  display: flex;
877
- flex-direction: column;
878
- gap: 0.625rem;
879
- padding-bottom: 0.625rem;
880
- }
881
- .apiInfoForm .editDescTooltipContent > *:not(.editDescTooltipContent_header) {
882
- margin-inline: 0.625rem;
883
- }
884
- .apiInfoForm .editDescTooltipContent .editDescTooltipContent_header {
885
- font-weight: 600;
886
- font-size: 0.875rem;
887
- line-height: 1.25rem;
888
- padding: 0.75rem 1.25rem;
889
- border-bottom: 1px solid #d8dae5;
890
- }
891
- .apiInfoForm :global(.requiredParam) :global(.headContainer)::after {
892
- content: "*";
893
- color: red;
894
- transform: translateX(0.125rem);
800
+ gap: 1.25rem;
801
+ margin-top: 1.875rem;
895
802
  }:root {
896
803
  --white: #fff;
897
804
  --Gray-5: #f1f2f6;
@@ -997,4 +904,115 @@
997
904
  }
998
905
  .drawerItemContainer .color-red {
999
906
  color: var(--color-error);
907
+ }.json-editor-container {
908
+ overflow: hidden;
909
+ border-bottom-right-radius: 0.3125rem;
910
+ border-bottom-left-radius: 0.3125rem;
911
+ }
912
+ .json-editor-container .json-editor-label {
913
+ font-size: 0.875rem;
914
+ font-weight: 600;
915
+ line-height: 1.25rem;
916
+ margin-bottom: 0.3125rem;
917
+ }
918
+ .json-editor-container .json-editor {
919
+ display: flex;
920
+ flex-direction: column;
921
+ background-color: #142452;
922
+ width: 100%;
923
+ outline: 1px solid transparent;
924
+ position: relative;
925
+ overflow: hidden;
926
+ }
927
+ .json-editor-container .json-editor .actions-container {
928
+ width: 100%;
929
+ height: 5rem;
930
+ padding: 1.25rem;
931
+ border-radius: 0 0 0.3125rem 0.3125rem;
932
+ background: #101e47;
933
+ display: flex;
934
+ flex-direction: row;
935
+ gap: 1.25rem;
936
+ align-items: center;
937
+ }
938
+ .json-editor-container .json-editor .actions-container .validate {
939
+ color: #fff;
940
+ text-align: center;
941
+ font-size: 1rem;
942
+ font-style: normal;
943
+ font-weight: 600;
944
+ line-height: 1.25rem;
945
+ width: 8.75rem;
946
+ padding: 0.625rem 2.25rem;
947
+ background-color: rgba(240, 248, 255, 0);
948
+ border-radius: 0.3125rem;
949
+ border: 0.0625rem solid #4d75d8;
950
+ cursor: pointer;
951
+ }
952
+ .json-editor-container .json-editor .actions-container .validate:disabled {
953
+ color: #babdcc;
954
+ border-color: #a2a5b6;
955
+ }
956
+ .json-editor-container .json-editor .actions-container .beautify {
957
+ color: #fff;
958
+ text-align: center;
959
+ font-size: 1rem;
960
+ font-style: normal;
961
+ font-weight: 600;
962
+ line-height: 1.25rem;
963
+ width: 8.75rem;
964
+ padding: 0.625rem 2.25rem;
965
+ background-color: rgba(240, 248, 255, 0);
966
+ border-radius: 0.3125rem;
967
+ border: 1px solid #babdcc;
968
+ cursor: pointer;
969
+ }
970
+ .json-editor-container .json-editor .actions-container .beautify:disabled {
971
+ color: #a2a5b6;
972
+ border-color: #a2a5b6;
973
+ }
974
+ .json-editor-container .json-editor textarea {
975
+ width: 100%;
976
+ padding: 1.25rem;
977
+ font-size: 0.875rem;
978
+ font-style: normal;
979
+ font-weight: 400;
980
+ line-height: 1.25rem;
981
+ color: white;
982
+ height: 25rem;
983
+ background-color: #142452;
984
+ border: none;
985
+ resize: none;
986
+ }
987
+ .json-editor-container .json-editor textarea:focus, .json-editor-container .json-editor textarea:focus-within, .json-editor-container .json-editor textarea:focus-visible .json-editor-container .json-editor textarea:active {
988
+ outline: none;
989
+ border: none;
990
+ }
991
+ .json-editor-container .json-editor textarea::-webkit-scrollbar {
992
+ width: 0.5rem;
993
+ }
994
+ .json-editor-container .json-editor textarea::-webkit-scrollbar-track {
995
+ background-color: #828699;
996
+ border: none;
997
+ border-color: transparent;
998
+ border-top-left-radius: 0;
999
+ }
1000
+ .json-editor-container .json-editor textarea::-webkit-scrollbar-thumb {
1001
+ background-color: #d8dae5;
1002
+ border: none;
1003
+ border-color: transparent;
1004
+ border-radius: 0;
1005
+ }
1006
+ .json-editor-container .json-editor.invalid {
1007
+ outline: 1px solid #ce2828 !important;
1008
+ }
1009
+ .json-editor-container .error-message {
1010
+ color: #ce2828;
1011
+ font-size: 0.75rem;
1012
+ line-height: 1.25rem;
1013
+ margin-top: 0.625rem;
1014
+ }
1015
+ .json-editor-container.disabled .json-editor textarea {
1016
+ background-color: white;
1017
+ color: #12131a;
1000
1018
  }
@@ -1,9 +1,10 @@
1
1
  import { TransformedMethod } from '../../types/layout.type';
2
- declare const MethodsAccordion: ({ method, path, setFieldValue, readOnly, }: {
2
+ import { Tags } from '@entities/openApi';
3
+ declare const MethodsAccordion: ({ method, path, setFieldValue, readOnly, tags, }: {
3
4
  method: TransformedMethod;
4
5
  path: string;
5
- setFieldValue?: (key: string, value: string) => void;
6
+ setFieldValue?: (key: string, value: string | string[]) => void;
6
7
  readOnly?: boolean;
7
- handleSave: () => void;
8
+ tags: Tags[];
8
9
  }) => import("react/jsx-runtime").JSX.Element;
9
10
  export default MethodsAccordion;
@@ -3,6 +3,7 @@ import { OpenAPIFile } from '../types/openApi';
3
3
  interface ILayoutProps {
4
4
  openApiJson?: OpenAPIFile;
5
5
  handleSave?: (values: unknown) => unknown;
6
+ setIsFormDirty?: any;
6
7
  }
7
- declare const Layout: ({ openApiJson, handleSave }: ILayoutProps) => JSX.Element;
8
+ declare const Layout: ({ openApiJson, handleSave, setIsFormDirty }: ILayoutProps) => JSX.Element;
8
9
  export default Layout;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "@digi-frontend/dgate-api-documentation",
3
- "version": "1.0.18",
2
+ "name": "@digi-frontend/dgate-api-documentation",
3
+ "version": "1.0.21",
4
4
  "main": "dist/src/index.js",
5
5
  "module": "dist/src/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -55,6 +55,19 @@
55
55
  }
56
56
  }
57
57
  }
58
+
59
+ &:not(:global(.disabled)):global(.success) {
60
+ :global(.endBtnIcon) {
61
+ margin-block: auto;
62
+
63
+ svg {
64
+ width: 1.125rem;
65
+ path {
66
+ fill: #3aaa35;
67
+ }
68
+ }
69
+ }
70
+ }
58
71
  }
59
72
  }
60
73