@digi-frontend/dgate-api-documentation 1.0.28 → 1.0.31

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 (103) hide show
  1. package/.editorconfig +12 -12
  2. package/.prettierignore +7 -7
  3. package/.prettierrc +15 -15
  4. package/dist/{a7568b270e175038.svg → 070dc6ecd197bc80.svg} +8 -8
  5. package/dist/{43595976d1fdccbf.svg → 2e10bbdb265df50e.svg} +4 -4
  6. package/dist/{b82c7612e73342f3.svg → 7f54eeb0bb2d1150.svg} +3 -3
  7. package/dist/{56dc416b683db280.svg → 8789eb84283ea95b.svg} +5 -5
  8. package/dist/{af16a554be8c4d69.svg → 9bdff13f8d8fa48a.svg} +3 -3
  9. package/dist/_virtual/index4.js +1 -1
  10. package/dist/_virtual/index5.js +1 -1
  11. package/dist/_virtual/index6.js +1 -1
  12. package/dist/{64efc2716808c4a4.svg → bb8b87cace25e052.svg} +3 -3
  13. package/dist/{72db3b05a96dd600.svg → d32ce84bbd78babd.svg} +3 -3
  14. package/dist/{844eba3f2e42a9eb.svg → d501922060662842.svg} +3 -3
  15. package/dist/node_modules/toposort/index.js +1 -1
  16. package/dist/node_modules/yup/index.esm.js +1 -1
  17. package/dist/src/assets/icons/AddRow.svg.js +1 -1
  18. package/dist/src/assets/icons/AddRow.svg.js.map +1 -1
  19. package/dist/src/assets/icons/CheckMarkSquare.svg.js +1 -1
  20. package/dist/src/assets/icons/CheckMarkSquare.svg.js.map +1 -1
  21. package/dist/src/assets/icons/CloseIcon.svg.js +1 -1
  22. package/dist/src/assets/icons/CloseIcon.svg.js.map +1 -1
  23. package/dist/src/assets/icons/DeleteIcon.svg.js +1 -1
  24. package/dist/src/assets/icons/DeleteIcon.svg.js.map +1 -1
  25. package/dist/src/assets/icons/DownArrow.svg.js +1 -1
  26. package/dist/src/assets/icons/DownArrow.svg.js.map +1 -1
  27. package/dist/src/assets/icons/EditIcon.svg.js +1 -1
  28. package/dist/src/assets/icons/EditIcon.svg.js.map +1 -1
  29. package/dist/src/assets/icons/UpArrow.svg.js +1 -1
  30. package/dist/src/assets/icons/UpArrow.svg.js.map +1 -1
  31. package/dist/src/assets/icons/deleteOutlinedIcon.svg.js +1 -1
  32. package/dist/src/assets/icons/deleteOutlinedIcon.svg.js.map +1 -1
  33. package/dist/src/components/Chips/Chips.js.map +1 -1
  34. package/dist/src/components/InfoForm/InfoForm.js.map +1 -1
  35. package/dist/src/components/JsonInput/JsonInput.js.map +1 -1
  36. package/dist/src/components/LivePreview/LivePreview.js.map +1 -1
  37. package/dist/src/components/MethodAccordion/MethodAccordion.js +1 -1
  38. package/dist/src/components/MethodAccordion/MethodAccordion.js.map +1 -1
  39. package/dist/src/components/SVGLoader/SVGLoader.js.map +1 -1
  40. package/dist/src/components/SectionHead/SectionHead.js.map +1 -1
  41. package/dist/src/components/SimpleLabelValue/SimpleLabelValue.js.map +1 -1
  42. package/dist/src/components/Tooltip/Tooltip.js.map +1 -1
  43. package/dist/src/components/dialog/index.js.map +1 -1
  44. package/dist/src/components/table/table.js +1 -1
  45. package/dist/src/components/table/table.js.map +1 -1
  46. package/dist/src/components/table/tags-table.js +1 -1
  47. package/dist/src/components/table/tags-table.js.map +1 -1
  48. package/dist/src/constants/index.js.map +1 -1
  49. package/dist/src/constants/regex.js.map +1 -1
  50. package/dist/src/helpers/layout.helper.js.map +1 -1
  51. package/dist/src/helpers/methodAccordion.helper.js.map +1 -1
  52. package/dist/src/layout/layout.js.map +1 -1
  53. package/dist/src/validator/form.scheme.js.map +1 -1
  54. package/dist/styles.css +212 -212
  55. package/package.json +43 -43
  56. package/rollup.config.js +35 -35
  57. package/src/assets/icons/AddRow.svg +3 -3
  58. package/src/assets/icons/CheckMarkSquare.svg +5 -5
  59. package/src/assets/icons/CloseIcon.svg +4 -4
  60. package/src/assets/icons/DeleteIcon.svg +3 -3
  61. package/src/assets/icons/DownArrow.svg +3 -3
  62. package/src/assets/icons/EditIcon.svg +3 -3
  63. package/src/assets/icons/UpArrow.svg +3 -3
  64. package/src/assets/icons/deleteOutlinedIcon.svg +8 -8
  65. package/src/assets/icons/index.ts +8 -8
  66. package/src/components/Chips/Chips.tsx +87 -87
  67. package/src/components/Chips/style.scss +147 -147
  68. package/src/components/InfoForm/InfoForm.module.scss +165 -165
  69. package/src/components/InfoForm/InfoForm.tsx +426 -426
  70. package/src/components/JsonInput/JsonInput.tsx +149 -149
  71. package/src/components/JsonInput/style.module.scss +133 -133
  72. package/src/components/LivePreview/LivePreview.module.scss +24 -24
  73. package/src/components/LivePreview/LivePreview.tsx +184 -184
  74. package/src/components/MethodAccordion/MethodAccordion.module.scss +338 -338
  75. package/src/components/MethodAccordion/MethodAccordion.tsx +515 -514
  76. package/src/components/SVGLoader/SVGLoader.tsx +94 -94
  77. package/src/components/SectionHead/SectionHead.scss +29 -29
  78. package/src/components/SectionHead/SectionHead.tsx +22 -22
  79. package/src/components/SimpleLabelValue/SimpleLabelValue.tsx +31 -31
  80. package/src/components/SimpleLabelValue/index.ts +1 -1
  81. package/src/components/SimpleLabelValue/style.scss +30 -30
  82. package/src/components/Tooltip/Tooltip.scss +133 -133
  83. package/src/components/Tooltip/Tooltip.tsx +85 -85
  84. package/src/components/_global.scss +337 -337
  85. package/src/components/dialog/dialog.ts +54 -54
  86. package/src/components/dialog/index.tsx +85 -85
  87. package/src/components/dialog/style.scss +104 -104
  88. package/src/components/table/style.scss +190 -190
  89. package/src/components/table/table.tsx +327 -322
  90. package/src/components/table/tags-table.tsx +348 -341
  91. package/src/constants/index.ts +93 -93
  92. package/src/constants/regex.ts +7 -7
  93. package/src/global.d.ts +13 -13
  94. package/src/helpers/layout.helper.ts +162 -162
  95. package/src/helpers/methodAccordion.helper.ts +19 -19
  96. package/src/index.ts +1 -1
  97. package/src/layout/layout.module.css +61 -61
  98. package/src/layout/layout.tsx +150 -150
  99. package/src/types/layout.type.ts +30 -30
  100. package/src/types/openApi.ts +108 -108
  101. package/src/types/transformedOpenApi.ts +52 -52
  102. package/src/validator/form.scheme.ts +70 -70
  103. package/tsconfig.json +33 -33
package/dist/styles.css CHANGED
@@ -1,4 +1,104 @@
1
- .methodAccordion {
1
+ .containerTitleDrawer {
2
+ height: 64px;
3
+ min-height: 64px;
4
+ display: flex;
5
+ flex-direction: row;
6
+ justify-content: space-between;
7
+ align-items: center;
8
+ background-color: #f1f2f6;
9
+ padding: 0 30px 0 30px;
10
+ width: 100%;
11
+ }
12
+ .containerTitleDrawer span {
13
+ color: #12131a;
14
+ font-weight: 600;
15
+ font-size: 18px;
16
+ line-height: 25px;
17
+ letter-spacing: 0em;
18
+ }
19
+ .containerTitleDrawer svg path {
20
+ stroke: #000 !important;
21
+ }
22
+ .containerTitleDrawer .closeIcon {
23
+ cursor: pointer;
24
+ }#common-dialog.dialog-content-wrapper {
25
+ overflow: visible !important;
26
+ max-height: 100%;
27
+ width: 22.1875rem;
28
+ }
29
+ #common-dialog.dialog-content-wrapper .dialog-content-root {
30
+ overflow: visible !important;
31
+ border-radius: 0.625rem;
32
+ max-height: 100%;
33
+ }
34
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content {
35
+ padding: 0 1.875rem !important;
36
+ overflow: visible !important;
37
+ max-height: 100%;
38
+ }
39
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog {
40
+ position: relative;
41
+ }
42
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .close-icon {
43
+ position: absolute;
44
+ z-index: 1;
45
+ top: 1.5rem;
46
+ right: 0;
47
+ transform: translate(0.625rem, -0.625rem);
48
+ cursor: pointer;
49
+ }
50
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header {
51
+ display: flex;
52
+ padding-top: 0.5rem;
53
+ position: relative;
54
+ }
55
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon {
56
+ margin-top: 1rem;
57
+ margin-bottom: 1.5rem;
58
+ margin-inline: auto;
59
+ }
60
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info path {
61
+ stroke: #12131a;
62
+ }
63
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line {
64
+ stroke: #12131a;
65
+ }
66
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line + path {
67
+ fill: #12131a;
68
+ }
69
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning path {
70
+ stroke: #faad14;
71
+ }
72
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning line {
73
+ stroke: #faad14;
74
+ }
75
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error path {
76
+ stroke: #da3f3f;
77
+ }
78
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line {
79
+ stroke: #da3f3f;
80
+ }
81
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line + path {
82
+ fill: #da3f3f;
83
+ }
84
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title {
85
+ font-size: 1.5rem;
86
+ font-weight: 500;
87
+ line-height: 1.875rem;
88
+ text-align: center;
89
+ margin-bottom: 0.625rem;
90
+ }
91
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.error-title {
92
+ color: #da3f3f;
93
+ }
94
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.warning-title {
95
+ color: #faad14;
96
+ }
97
+ #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-footer {
98
+ display: flex;
99
+ gap: 1.25rem;
100
+ margin-top: 1.875rem;
101
+ }.methodAccordion {
2
102
  border: none !important;
3
103
  box-shadow: none !important;
4
104
  margin-bottom: 0 !important;
@@ -271,83 +371,136 @@
271
371
  }
272
372
  .methodAccordion.readOnly .methodSummaryContainer .methodExpandArrowContainer {
273
373
  background-color: #ebecf2;
274
- }#common-dialog.dialog-content-wrapper {
275
- overflow: visible !important;
276
- max-height: 100%;
277
- width: 22.1875rem;
278
- }
279
- #common-dialog.dialog-content-wrapper .dialog-content-root {
280
- overflow: visible !important;
281
- border-radius: 0.625rem;
282
- max-height: 100%;
374
+ }.livePreviewContainer .titleContainer {
375
+ display: flex;
376
+ justify-content: space-between;
377
+ align-items: center;
378
+ flex-wrap: wrap;
379
+ max-width: 100%;
380
+ gap: 1.25rem;
283
381
  }
284
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content {
285
- padding: 0 1.875rem !important;
286
- overflow: visible !important;
287
- max-height: 100%;
382
+ .livePreviewContainer .titleContainer p.apiName {
383
+ font-size: 40px;
384
+ line-height: 30px;
385
+ font-weight: 500;
386
+ word-wrap: break-word;
387
+ overflow-wrap: break-word;
388
+ word-break: break-all;
288
389
  }
289
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog {
290
- position: relative;
390
+ .livePreviewContainer .titleContainer .livePreviewChip {
391
+ background-color: #ebecf2;
392
+ color: #12131a;
393
+ }.json-editor-container {
394
+ overflow: hidden;
395
+ border-bottom-right-radius: 0.3125rem;
396
+ border-bottom-left-radius: 0.3125rem;
291
397
  }
292
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .close-icon {
293
- position: absolute;
294
- z-index: 1;
295
- top: 1.5rem;
296
- right: 0;
297
- transform: translate(0.625rem, -0.625rem);
298
- cursor: pointer;
398
+ .json-editor-container .json-editor-label {
399
+ font-size: 0.875rem;
400
+ font-weight: 600;
401
+ line-height: 1.25rem;
402
+ margin-bottom: 0.3125rem;
299
403
  }
300
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header {
404
+ .json-editor-container .json-editor {
301
405
  display: flex;
302
- padding-top: 0.5rem;
406
+ flex-direction: column;
407
+ background-color: #142452;
408
+ width: 100%;
409
+ outline: 1px solid transparent;
303
410
  position: relative;
411
+ overflow: hidden;
304
412
  }
305
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon {
306
- margin-top: 1rem;
307
- margin-bottom: 1.5rem;
308
- margin-inline: auto;
413
+ .json-editor-container .json-editor .actions-container {
414
+ width: 100%;
415
+ height: 5rem;
416
+ padding: 1.25rem;
417
+ border-radius: 0 0 0.3125rem 0.3125rem;
418
+ background: #101e47;
419
+ display: flex;
420
+ flex-direction: row;
421
+ gap: 1.25rem;
422
+ align-items: center;
309
423
  }
310
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info path {
311
- stroke: #12131a;
424
+ .json-editor-container .json-editor .actions-container .validate {
425
+ color: #fff;
426
+ text-align: center;
427
+ font-size: 1rem;
428
+ font-style: normal;
429
+ font-weight: 600;
430
+ line-height: 1.25rem;
431
+ width: 8.75rem;
432
+ padding: 0.625rem 2.25rem;
433
+ background-color: rgba(240, 248, 255, 0);
434
+ border-radius: 0.3125rem;
435
+ border: 0.0625rem solid #4d75d8;
436
+ cursor: pointer;
312
437
  }
313
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line {
314
- stroke: #12131a;
438
+ .json-editor-container .json-editor .actions-container .validate:disabled {
439
+ color: #babdcc;
440
+ border-color: #a2a5b6;
315
441
  }
316
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line + path {
317
- fill: #12131a;
442
+ .json-editor-container .json-editor .actions-container .beautify {
443
+ color: #fff;
444
+ text-align: center;
445
+ font-size: 1rem;
446
+ font-style: normal;
447
+ font-weight: 600;
448
+ line-height: 1.25rem;
449
+ width: 8.75rem;
450
+ padding: 0.625rem 2.25rem;
451
+ background-color: rgba(240, 248, 255, 0);
452
+ border-radius: 0.3125rem;
453
+ border: 1px solid #babdcc;
454
+ cursor: pointer;
318
455
  }
319
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning path {
320
- stroke: #faad14;
456
+ .json-editor-container .json-editor .actions-container .beautify:disabled {
457
+ color: #a2a5b6;
458
+ border-color: #a2a5b6;
321
459
  }
322
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning line {
323
- stroke: #faad14;
460
+ .json-editor-container .json-editor textarea {
461
+ width: 100%;
462
+ padding: 1.25rem;
463
+ font-size: 0.875rem;
464
+ font-style: normal;
465
+ font-weight: 400;
466
+ line-height: 1.25rem;
467
+ color: white;
468
+ height: 25rem;
469
+ background-color: #142452;
470
+ border: none;
471
+ resize: none;
324
472
  }
325
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error path {
326
- stroke: #da3f3f;
473
+ .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 {
474
+ outline: none;
475
+ border: none;
327
476
  }
328
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line {
329
- stroke: #da3f3f;
477
+ .json-editor-container .json-editor textarea::-webkit-scrollbar {
478
+ width: 0.5rem;
330
479
  }
331
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line + path {
332
- fill: #da3f3f;
480
+ .json-editor-container .json-editor textarea::-webkit-scrollbar-track {
481
+ background-color: #828699;
482
+ border: none;
483
+ border-color: transparent;
484
+ border-top-left-radius: 0;
333
485
  }
334
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title {
335
- font-size: 1.5rem;
336
- font-weight: 500;
337
- line-height: 1.875rem;
338
- text-align: center;
339
- margin-bottom: 0.625rem;
486
+ .json-editor-container .json-editor textarea::-webkit-scrollbar-thumb {
487
+ background-color: #d8dae5;
488
+ border: none;
489
+ border-color: transparent;
490
+ border-radius: 0;
340
491
  }
341
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.error-title {
342
- color: #da3f3f;
492
+ .json-editor-container .json-editor.invalid {
493
+ outline: 1px solid #ce2828 !important;
343
494
  }
344
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.warning-title {
345
- color: #faad14;
495
+ .json-editor-container .error-message {
496
+ color: #ce2828;
497
+ font-size: 0.75rem;
498
+ line-height: 1.25rem;
499
+ margin-top: 0.625rem;
346
500
  }
347
- #common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-footer {
348
- display: flex;
349
- gap: 1.25rem;
350
- margin-top: 1.875rem;
501
+ .json-editor-container.disabled .json-editor textarea {
502
+ background-color: white;
503
+ color: #12131a;
351
504
  }.apiInfoForm {
352
505
  display: grid;
353
506
  padding: 1.25rem 1.875rem;
@@ -466,159 +619,6 @@
466
619
  content: "*";
467
620
  color: red;
468
621
  transform: translateX(0.125rem);
469
- }.livePreviewContainer .titleContainer {
470
- display: flex;
471
- justify-content: space-between;
472
- align-items: center;
473
- flex-wrap: wrap;
474
- max-width: 100%;
475
- gap: 1.25rem;
476
- }
477
- .livePreviewContainer .titleContainer p.apiName {
478
- font-size: 40px;
479
- line-height: 30px;
480
- font-weight: 500;
481
- word-wrap: break-word;
482
- overflow-wrap: break-word;
483
- word-break: break-all;
484
- }
485
- .livePreviewContainer .titleContainer .livePreviewChip {
486
- background-color: #ebecf2;
487
- color: #12131a;
488
- }.containerTitleDrawer {
489
- height: 64px;
490
- min-height: 64px;
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%;
498
- }
499
- .containerTitleDrawer span {
500
- color: #12131a;
501
- font-weight: 600;
502
- font-size: 18px;
503
- line-height: 25px;
504
- letter-spacing: 0em;
505
- }
506
- .containerTitleDrawer svg path {
507
- stroke: #000 !important;
508
- }
509
- .containerTitleDrawer .closeIcon {
510
- cursor: pointer;
511
- }.json-editor-container {
512
- overflow: hidden;
513
- border-bottom-right-radius: 0.3125rem;
514
- border-bottom-left-radius: 0.3125rem;
515
- }
516
- .json-editor-container .json-editor-label {
517
- font-size: 0.875rem;
518
- font-weight: 600;
519
- line-height: 1.25rem;
520
- margin-bottom: 0.3125rem;
521
- }
522
- .json-editor-container .json-editor {
523
- display: flex;
524
- flex-direction: column;
525
- background-color: #142452;
526
- width: 100%;
527
- outline: 1px solid transparent;
528
- position: relative;
529
- overflow: hidden;
530
- }
531
- .json-editor-container .json-editor .actions-container {
532
- width: 100%;
533
- height: 5rem;
534
- padding: 1.25rem;
535
- border-radius: 0 0 0.3125rem 0.3125rem;
536
- background: #101e47;
537
- display: flex;
538
- flex-direction: row;
539
- gap: 1.25rem;
540
- align-items: center;
541
- }
542
- .json-editor-container .json-editor .actions-container .validate {
543
- color: #fff;
544
- text-align: center;
545
- font-size: 1rem;
546
- font-style: normal;
547
- font-weight: 600;
548
- line-height: 1.25rem;
549
- width: 8.75rem;
550
- padding: 0.625rem 2.25rem;
551
- background-color: rgba(240, 248, 255, 0);
552
- border-radius: 0.3125rem;
553
- border: 0.0625rem solid #4d75d8;
554
- cursor: pointer;
555
- }
556
- .json-editor-container .json-editor .actions-container .validate:disabled {
557
- color: #babdcc;
558
- border-color: #a2a5b6;
559
- }
560
- .json-editor-container .json-editor .actions-container .beautify {
561
- color: #fff;
562
- text-align: center;
563
- font-size: 1rem;
564
- font-style: normal;
565
- font-weight: 600;
566
- line-height: 1.25rem;
567
- width: 8.75rem;
568
- padding: 0.625rem 2.25rem;
569
- background-color: rgba(240, 248, 255, 0);
570
- border-radius: 0.3125rem;
571
- border: 1px solid #babdcc;
572
- cursor: pointer;
573
- }
574
- .json-editor-container .json-editor .actions-container .beautify:disabled {
575
- color: #a2a5b6;
576
- border-color: #a2a5b6;
577
- }
578
- .json-editor-container .json-editor textarea {
579
- width: 100%;
580
- padding: 1.25rem;
581
- font-size: 0.875rem;
582
- font-style: normal;
583
- font-weight: 400;
584
- line-height: 1.25rem;
585
- color: white;
586
- height: 25rem;
587
- background-color: #142452;
588
- border: none;
589
- resize: none;
590
- }
591
- .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 {
592
- outline: none;
593
- border: none;
594
- }
595
- .json-editor-container .json-editor textarea::-webkit-scrollbar {
596
- width: 0.5rem;
597
- }
598
- .json-editor-container .json-editor textarea::-webkit-scrollbar-track {
599
- background-color: #828699;
600
- border: none;
601
- border-color: transparent;
602
- border-top-left-radius: 0;
603
- }
604
- .json-editor-container .json-editor textarea::-webkit-scrollbar-thumb {
605
- background-color: #d8dae5;
606
- border: none;
607
- border-color: transparent;
608
- border-radius: 0;
609
- }
610
- .json-editor-container .json-editor.invalid {
611
- outline: 1px solid #ce2828 !important;
612
- }
613
- .json-editor-container .error-message {
614
- color: #ce2828;
615
- font-size: 0.75rem;
616
- line-height: 1.25rem;
617
- margin-top: 0.625rem;
618
- }
619
- .json-editor-container.disabled .json-editor textarea {
620
- background-color: white;
621
- color: #12131a;
622
622
  }.tooltip-custom-wrapper {
623
623
  display: flex;
624
624
  }
package/package.json CHANGED
@@ -1,43 +1,43 @@
1
- {
2
- "name": "@digi-frontend/dgate-api-documentation",
3
- "version": "1.0.28",
4
- "main": "dist/src/index.js",
5
- "module": "dist/src/index.js",
6
- "types": "dist/types/index.d.ts",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1",
9
- "build": "tsc --noEmit --skipLibCheck || true && rollup -c"
10
- },
11
- "exports": {
12
- ".": "./src/index.ts"
13
- },
14
- "keywords": [],
15
- "author": "Dgate",
16
- "license": "ISC",
17
- "description": "",
18
- "dependencies": {
19
- "digitinary-ui": "1.0.166",
20
- "formik": "^2.4.6",
21
- "html-react-parser": "^5.2.2",
22
- "js-yaml": "^4.1.0",
23
- "react": "^18.0.0",
24
- "react-dom": "^18.0.0",
25
- "tslib": "^2.8.1",
26
- "yup": "^1.6.1"
27
- },
28
- "devDependencies": {
29
- "@rollup/plugin-commonjs": "^28.0.2",
30
- "@rollup/plugin-node-resolve": "^16.0.0",
31
- "@rollup/plugin-typescript": "^12.1.2",
32
- "@rollup/plugin-url": "^8.0.2",
33
- "@types/react": "^19.0.7",
34
- "@types/react-dom": "^19.0.3",
35
- "rollup": "^2.79.2",
36
- "rollup-plugin-postcss": "^4.0.2",
37
- "rollup-plugin-sass": "^1.15.2",
38
- "rollup-plugin-terser": "^7.0.2",
39
- "sass": "^1.83.4",
40
- "typescript": "^5.7.3",
41
- "typescript-plugin-css-modules": "^5.1.0"
42
- }
43
- }
1
+ {
2
+ "name": "@digi-frontend/dgate-api-documentation",
3
+ "version": "1.0.31",
4
+ "main": "dist/src/index.js",
5
+ "module": "dist/src/index.js",
6
+ "types": "dist/types/index.d.ts",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "build": "tsc --noEmit --skipLibCheck || true && rollup -c"
10
+ },
11
+ "exports": {
12
+ ".": "./src/index.ts"
13
+ },
14
+ "keywords": [],
15
+ "author": "Dgate",
16
+ "license": "ISC",
17
+ "description": "",
18
+ "dependencies": {
19
+ "digitinary-ui": "1.0.166",
20
+ "formik": "^2.4.6",
21
+ "html-react-parser": "^5.2.2",
22
+ "js-yaml": "^4.1.0",
23
+ "react": "^18.0.0",
24
+ "react-dom": "^18.0.0",
25
+ "tslib": "^2.8.1",
26
+ "yup": "^1.6.1"
27
+ },
28
+ "devDependencies": {
29
+ "@rollup/plugin-commonjs": "^28.0.2",
30
+ "@rollup/plugin-node-resolve": "^16.0.0",
31
+ "@rollup/plugin-typescript": "^12.1.2",
32
+ "@rollup/plugin-url": "^8.0.2",
33
+ "@types/react": "^19.0.7",
34
+ "@types/react-dom": "^19.0.3",
35
+ "rollup": "^2.79.2",
36
+ "rollup-plugin-postcss": "^4.0.2",
37
+ "rollup-plugin-sass": "^1.15.2",
38
+ "rollup-plugin-terser": "^7.0.2",
39
+ "sass": "^1.83.4",
40
+ "typescript": "^5.7.3",
41
+ "typescript-plugin-css-modules": "^5.1.0"
42
+ }
43
+ }
package/rollup.config.js CHANGED
@@ -1,35 +1,35 @@
1
- import resolve from '@rollup/plugin-node-resolve'
2
- import commonjs from '@rollup/plugin-commonjs'
3
- import typescript from '@rollup/plugin-typescript'
4
- import postcss from 'rollup-plugin-postcss'
5
- import { terser } from 'rollup-plugin-terser'
6
- import url from '@rollup/plugin-url'
7
- import sass from 'rollup-plugin-sass'
8
-
9
- export default {
10
- input: 'src/index.ts',
11
- output: [
12
- {
13
- dir: 'dist',
14
- format: 'esm',
15
- preserveModules: true,
16
- sourcemap: true,
17
- },
18
- ],
19
- plugins: [
20
- resolve(),
21
- commonjs(),
22
- typescript({ tsconfig: './tsconfig.json' }),
23
- postcss({
24
- modules: false,
25
- extract: false,
26
- minimize: true,
27
- }),
28
- terser(),
29
- url({ limit: 0 }),
30
- sass({
31
- output: 'dist/styles.css',
32
- }),
33
- ],
34
- external: ['react', 'react-dom'],
35
- }
1
+ import resolve from '@rollup/plugin-node-resolve'
2
+ import commonjs from '@rollup/plugin-commonjs'
3
+ import typescript from '@rollup/plugin-typescript'
4
+ import postcss from 'rollup-plugin-postcss'
5
+ import { terser } from 'rollup-plugin-terser'
6
+ import url from '@rollup/plugin-url'
7
+ import sass from 'rollup-plugin-sass'
8
+
9
+ export default {
10
+ input: 'src/index.ts',
11
+ output: [
12
+ {
13
+ dir: 'dist',
14
+ format: 'esm',
15
+ preserveModules: true,
16
+ sourcemap: true,
17
+ },
18
+ ],
19
+ plugins: [
20
+ resolve(),
21
+ commonjs(),
22
+ typescript({ tsconfig: './tsconfig.json' }),
23
+ postcss({
24
+ modules: false,
25
+ extract: false,
26
+ minimize: true,
27
+ }),
28
+ terser(),
29
+ url({ limit: 0 }),
30
+ sass({
31
+ output: 'dist/styles.css',
32
+ }),
33
+ ],
34
+ external: ['react', 'react-dom'],
35
+ }
@@ -1,3 +1,3 @@
1
- <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12.2507 1.5H5.74899C3.20081 1.5 1.50024 3.32445 1.50024 5.937V12.063C1.50024 14.678 3.19627 16.5 5.74899 16.5H12.25C14.8035 16.5 16.5002 14.678 16.5002 12.063V5.937C16.5002 3.32213 14.8036 1.5 12.2507 1.5ZM5.74899 2.625H12.2507C14.1636 2.625 15.3752 3.92622 15.3752 5.937V12.063C15.3752 14.0739 14.1635 15.375 12.25 15.375H5.74899C3.83631 15.375 2.62524 14.074 2.62524 12.063V5.937C2.62524 3.92878 3.8405 2.625 5.74899 2.625ZM12.0676 6.8225C11.8479 6.60283 11.4918 6.60283 11.2721 6.8225L8.10969 9.98385L6.72753 8.60217L6.66443 8.54772C6.44419 8.38437 6.1317 8.40259 5.93204 8.60234C5.71241 8.82205 5.71249 9.17821 5.93221 9.39783L7.71271 11.1776L7.7758 11.232C7.99601 11.3954 8.30845 11.3772 8.50812 11.1775L12.0676 7.618L12.1221 7.55491C12.2855 7.3347 12.2673 7.0222 12.0676 6.8225Z" fill="#A2A5B6"/>
3
- </svg>
1
+ <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12.2507 1.5H5.74899C3.20081 1.5 1.50024 3.32445 1.50024 5.937V12.063C1.50024 14.678 3.19627 16.5 5.74899 16.5H12.25C14.8035 16.5 16.5002 14.678 16.5002 12.063V5.937C16.5002 3.32213 14.8036 1.5 12.2507 1.5ZM5.74899 2.625H12.2507C14.1636 2.625 15.3752 3.92622 15.3752 5.937V12.063C15.3752 14.0739 14.1635 15.375 12.25 15.375H5.74899C3.83631 15.375 2.62524 14.074 2.62524 12.063V5.937C2.62524 3.92878 3.8405 2.625 5.74899 2.625ZM12.0676 6.8225C11.8479 6.60283 11.4918 6.60283 11.2721 6.8225L8.10969 9.98385L6.72753 8.60217L6.66443 8.54772C6.44419 8.38437 6.1317 8.40259 5.93204 8.60234C5.71241 8.82205 5.71249 9.17821 5.93221 9.39783L7.71271 11.1776L7.7758 11.232C7.99601 11.3954 8.30845 11.3772 8.50812 11.1775L12.0676 7.618L12.1221 7.55491C12.2855 7.3347 12.2673 7.0222 12.0676 6.8225Z" fill="#A2A5B6"/>
3
+ </svg>
@@ -1,5 +1,5 @@
1
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g id="Tick Square">
3
- <path id="Tick Square_2" fill-rule="evenodd" clip-rule="evenodd" d="M14.3345 0.000244141H5.66549C2.26791 0.000244141 0.000488281 2.43284 0.000488281 5.91624V14.0842C0.000488281 17.5709 2.26186 20.0002 5.66549 20.0002H14.3335C17.7381 20.0002 20.0005 17.5709 20.0005 14.0842V5.91624C20.0005 2.42975 17.7383 0.000244141 14.3345 0.000244141ZM5.66549 1.50024H14.3345C16.885 1.50024 18.5005 3.23521 18.5005 5.91624V14.0842C18.5005 16.7654 16.8849 18.5002 14.3335 18.5002H5.66549C3.11525 18.5002 1.50049 16.7656 1.50049 14.0842V5.91624C1.50049 3.23862 3.12083 1.50024 5.66549 1.50024ZM14.0903 7.09691C13.7974 6.80402 13.3226 6.80402 13.0297 7.09691L8.81309 11.312L6.97021 9.4698L6.88607 9.3972C6.59242 9.17941 6.17576 9.2037 5.90955 9.47003C5.61671 9.76298 5.61682 10.2379 5.90977 10.5307L8.28377 12.9037L8.36789 12.9763C8.6615 13.194 9.07809 13.1698 9.34432 12.9036L14.0903 8.15757L14.1629 8.07346C14.3808 7.77984 14.3566 7.36318 14.0903 7.09691Z" fill="#3AAA35"/>
4
- </g>
5
- </svg>
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="Tick Square">
3
+ <path id="Tick Square_2" fill-rule="evenodd" clip-rule="evenodd" d="M14.3345 0.000244141H5.66549C2.26791 0.000244141 0.000488281 2.43284 0.000488281 5.91624V14.0842C0.000488281 17.5709 2.26186 20.0002 5.66549 20.0002H14.3335C17.7381 20.0002 20.0005 17.5709 20.0005 14.0842V5.91624C20.0005 2.42975 17.7383 0.000244141 14.3345 0.000244141ZM5.66549 1.50024H14.3345C16.885 1.50024 18.5005 3.23521 18.5005 5.91624V14.0842C18.5005 16.7654 16.8849 18.5002 14.3335 18.5002H5.66549C3.11525 18.5002 1.50049 16.7656 1.50049 14.0842V5.91624C1.50049 3.23862 3.12083 1.50024 5.66549 1.50024ZM14.0903 7.09691C13.7974 6.80402 13.3226 6.80402 13.0297 7.09691L8.81309 11.312L6.97021 9.4698L6.88607 9.3972C6.59242 9.17941 6.17576 9.2037 5.90955 9.47003C5.61671 9.76298 5.61682 10.2379 5.90977 10.5307L8.28377 12.9037L8.36789 12.9763C8.6615 13.194 9.07809 13.1698 9.34432 12.9036L14.0903 8.15757L14.1629 8.07346C14.3808 7.77984 14.3566 7.36318 14.0903 7.09691Z" fill="#3AAA35"/>
4
+ </g>
5
+ </svg>
@@ -1,4 +1,4 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M6 6L18 18" stroke="#12131A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- <path d="M18 6L6 18" stroke="#12131A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
- </svg>
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M6 6L18 18" stroke="#12131A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M18 6L6 18" stroke="#12131A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
@@ -1,3 +1,3 @@
1
- <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M11.9543 2.54279C11.7393 1.90971 11.1806 1.5 10.5479 1.5H7.45194L7.33425 1.50475C6.7119 1.55512 6.18083 2.00172 6.01728 2.62899L5.83157 3.5761L5.80981 3.65947C5.72088 3.92946 5.47227 4.11685 5.18829 4.11685H2.79854L2.72411 4.12198C2.45636 4.15923 2.25 4.39458 2.25 4.67937C2.25 4.99004 2.49559 5.24189 2.79854 5.24189H15.2015L15.2759 5.23675C15.5436 5.1995 15.75 4.96415 15.75 4.67937C15.75 4.3687 15.5044 4.11685 15.2015 4.11685H12.8116L12.7276 4.11133C12.4519 4.0749 12.224 3.86154 12.1682 3.57587L11.9906 2.66406L11.9543 2.54279ZM11.1858 4.11685C11.1608 4.05334 11.1392 3.98791 11.1212 3.92076L11.0925 3.79656L10.9227 2.9196C10.883 2.76743 10.7605 2.65604 10.6127 2.63057L10.5479 2.62504H7.45194C7.29803 2.62504 7.16122 2.71742 7.10439 2.83352L7.08512 2.88453L6.90735 3.79679C6.88565 3.90786 6.85424 4.01483 6.81413 4.11685H11.1858ZM14.2338 6.54013C14.5106 6.56301 14.7228 6.79287 14.7375 7.06954L14.7304 7.2238L14.4945 10.1122L14.2471 12.931C14.1947 13.4937 14.1479 13.9684 14.1074 14.342C13.9668 15.6441 13.1216 16.4493 11.8475 16.4731C9.86203 16.5098 7.95358 16.5094 6.10029 16.4693C4.86298 16.4433 4.03025 15.6294 3.89216 14.3473L3.79672 13.4026L3.62995 11.5703L3.45912 9.55955L3.26379 7.14591C3.23951 6.83624 3.46463 6.56501 3.76661 6.54012C4.04342 6.5173 4.28873 6.70938 4.34639 6.98008L4.36883 7.2013L4.55224 9.46404L4.75252 11.8094C4.84234 12.8247 4.92025 13.6464 4.9826 14.2236C5.06129 14.9543 5.44603 15.3303 6.12309 15.3445C7.96189 15.3843 9.85611 15.3846 11.8276 15.3482C12.5458 15.3348 12.9366 14.9625 13.017 14.218L13.112 13.2784C13.1398 12.9889 13.1696 12.6692 13.201 12.322L13.4015 10.0153L13.643 7.05562C13.6653 6.77176 13.8894 6.55418 14.1592 6.53911L14.2338 6.54013Z" fill="#DA3F3F"/>
3
- </svg>
1
+ <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.9543 2.54279C11.7393 1.90971 11.1806 1.5 10.5479 1.5H7.45194L7.33425 1.50475C6.7119 1.55512 6.18083 2.00172 6.01728 2.62899L5.83157 3.5761L5.80981 3.65947C5.72088 3.92946 5.47227 4.11685 5.18829 4.11685H2.79854L2.72411 4.12198C2.45636 4.15923 2.25 4.39458 2.25 4.67937C2.25 4.99004 2.49559 5.24189 2.79854 5.24189H15.2015L15.2759 5.23675C15.5436 5.1995 15.75 4.96415 15.75 4.67937C15.75 4.3687 15.5044 4.11685 15.2015 4.11685H12.8116L12.7276 4.11133C12.4519 4.0749 12.224 3.86154 12.1682 3.57587L11.9906 2.66406L11.9543 2.54279ZM11.1858 4.11685C11.1608 4.05334 11.1392 3.98791 11.1212 3.92076L11.0925 3.79656L10.9227 2.9196C10.883 2.76743 10.7605 2.65604 10.6127 2.63057L10.5479 2.62504H7.45194C7.29803 2.62504 7.16122 2.71742 7.10439 2.83352L7.08512 2.88453L6.90735 3.79679C6.88565 3.90786 6.85424 4.01483 6.81413 4.11685H11.1858ZM14.2338 6.54013C14.5106 6.56301 14.7228 6.79287 14.7375 7.06954L14.7304 7.2238L14.4945 10.1122L14.2471 12.931C14.1947 13.4937 14.1479 13.9684 14.1074 14.342C13.9668 15.6441 13.1216 16.4493 11.8475 16.4731C9.86203 16.5098 7.95358 16.5094 6.10029 16.4693C4.86298 16.4433 4.03025 15.6294 3.89216 14.3473L3.79672 13.4026L3.62995 11.5703L3.45912 9.55955L3.26379 7.14591C3.23951 6.83624 3.46463 6.56501 3.76661 6.54012C4.04342 6.5173 4.28873 6.70938 4.34639 6.98008L4.36883 7.2013L4.55224 9.46404L4.75252 11.8094C4.84234 12.8247 4.92025 13.6464 4.9826 14.2236C5.06129 14.9543 5.44603 15.3303 6.12309 15.3445C7.96189 15.3843 9.85611 15.3846 11.8276 15.3482C12.5458 15.3348 12.9366 14.9625 13.017 14.218L13.112 13.2784C13.1398 12.9889 13.1696 12.6692 13.201 12.322L13.4015 10.0153L13.643 7.05562C13.6653 6.77176 13.8894 6.55418 14.1592 6.53911L14.2338 6.54013Z" fill="#DA3F3F"/>
3
+ </svg>