@digi-frontend/dgate-api-documentation 1.4.97 → 2.0.0

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 (36) hide show
  1. package/README.md +333 -0
  2. package/dist/index.cjs +983 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +793 -0
  5. package/dist/index.d.cts.map +1 -0
  6. package/dist/index.d.ts +792 -8
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +951 -43
  9. package/dist/index.js.map +1 -1
  10. package/package.json +53 -70
  11. package/dist/index.css +0 -12
  12. package/dist/index.css.map +0 -1
  13. package/dist/index.d.mts +0 -9
  14. package/dist/index.mjs +0 -25
  15. package/dist/index.mjs.map +0 -1
  16. package/src/components/Chips/style.scss +0 -147
  17. package/src/components/InfoForm/InfoForm.module.scss +0 -165
  18. package/src/components/JsonInput/style.module.scss +0 -133
  19. package/src/components/LivePreview/LivePreview.module.scss +0 -181
  20. package/src/components/MethodAccordion/MethodAccordion.module.scss +0 -399
  21. package/src/components/SectionHead/SectionHead.scss +0 -29
  22. package/src/components/SimpleLabelValue/style.scss +0 -30
  23. package/src/components/Tooltip/Tooltip.scss +0 -133
  24. package/src/components/_global.scss +0 -338
  25. package/src/components/dialog/style.scss +0 -188
  26. package/src/components/table/style.scss +0 -223
  27. package/src/layout/docsComponents/Codebox/style.module.scss +0 -43
  28. package/src/layout/docsComponents/DocsAside/style.module.scss +0 -113
  29. package/src/layout/docsComponents/DocsContent/EndpointPage/style.scss +0 -382
  30. package/src/layout/docsComponents/DocsContent/OverviewPage/style.scss +0 -332
  31. package/src/layout/docsComponents/DocsContent/style.scss +0 -0
  32. package/src/layout/docsComponents/DocsHeader/DocsHeader.module.scss +0 -297
  33. package/src/layout/docsComponents/DocsSideMenuTree/style.scss +0 -202
  34. package/src/layout/docsComponents/index.scss +0 -49
  35. package/src/test.scss +0 -3
  36. package/src/test2.module.scss +0 -5
@@ -1,382 +0,0 @@
1
- main {
2
- padding: 2rem;
3
-
4
- .url-container {
5
- position: relative;
6
- width: 100%;
7
- }
8
-
9
- .type-ddl {
10
- cursor: pointer;
11
- display: flex;
12
- align-items: center;
13
- justify-content: space-between;
14
- width: 100%;
15
- background-color: #edf1fb;
16
- border-radius: 0.375rem;
17
- }
18
-
19
- .url-text {
20
- flex: 1;
21
- padding-right: 0.75rem;
22
- border: none;
23
- background: transparent;
24
- line-height: 1.75rem;
25
- letter-spacing: 0;
26
- font-size: 1.125rem;
27
- font-weight: 400;
28
- opacity: 0.5;
29
- color: #000000;
30
- }
31
-
32
- .icon-container {
33
- display: flex;
34
- align-items: center;
35
- gap: 0.75rem;
36
-
37
- .icon {
38
- display: inline-block;
39
- width: 1.75rem;
40
- height: 1.75rem;
41
-
42
- &:focus {
43
- outline: none;
44
- }
45
- }
46
- }
47
-
48
- .url-list {
49
- position: absolute;
50
- top: 100%;
51
- left: 0;
52
- width: 100%;
53
- z-index: 10;
54
- background: white;
55
- border: 1px solid #ccc;
56
- border-radius: 0.375rem;
57
- max-height: 12.5rem;
58
- overflow-y: auto;
59
- }
60
-
61
- .url-item {
62
- padding: 0.5rem 1rem;
63
- display: flex;
64
- align-items: center;
65
- gap: 0.5rem;
66
- cursor: pointer;
67
-
68
- &:hover {
69
- background-color: #f5f5f5;
70
- }
71
- }
72
-
73
- .api-details-expanded {
74
- .response-section .codeboxSection .codeboxHeader {
75
- .multiSelectGroup {
76
- .selectDisplay {
77
- padding: 0;
78
- width: 7.5rem !important;
79
- height: 2rem !important;
80
-
81
- .select-label-container {
82
- min-width: 100%;
83
- padding: 0;
84
- }
85
- }
86
-
87
- .optionsList .option {
88
- height: 1.5rem;
89
- padding: 0;
90
- }
91
-
92
- .statusCodeOptionContainer {
93
- display: flex;
94
- align-items: center;
95
- gap: 0.625rem;
96
- padding-left: 0.75rem;
97
-
98
- .statusCodeOptionCircle {
99
- width: 0.625rem;
100
- min-width: 0.625rem;
101
- aspect-ratio: 1 / 1;
102
- border-radius: 100%;
103
- }
104
- }
105
- }
106
- }
107
-
108
- .api-title {
109
- font-size: 3rem;
110
- font-weight: 600;
111
- letter-spacing: -1px;
112
- line-height: 3.5rem;
113
- margin-bottom: 0.752rem;
114
- color: #4d75d9;
115
- }
116
-
117
- .test-button {
118
- margin-top: 1.25rem;
119
- margin-bottom: 3.125rem;
120
- display: flex;
121
- align-items: center;
122
- justify-content: space-between;
123
-
124
- gap: 0.5rem;
125
-
126
- .back-button {
127
- display: inline-flex;
128
- align-items: center;
129
- justify-content: center;
130
- width: 2.75rem;
131
- height: 2.75rem;
132
- border: 1px solid #3b82f6;
133
- border-radius: 0.5rem;
134
- background-color: white;
135
- color: #3b82f6;
136
- cursor: pointer;
137
- transition: background-color 0.2s ease;
138
-
139
- svg {
140
- stroke-width: 2;
141
- }
142
-
143
- &:hover {
144
- background-color: #eff6ff;
145
- }
146
- }
147
- }
148
-
149
- .test-button .disabled {
150
- background: #f0f1f2;
151
- color: #9ca1aa;
152
- cursor: not-allowed;
153
- padding: 0.375rem 1rem;
154
- border-radius: 6px;
155
- font-size: 14px;
156
- border: 1px #b8bfca solid;
157
- width: 7.56rem;
158
- height: 2.75rem;
159
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
160
- }
161
-
162
- h3 {
163
- color: #616874;
164
- font-size: 1.125rem;
165
- font-weight: 400;
166
- letter-spacing: 0px;
167
- line-height: 1.5rem;
168
- margin-top: 1.5rem;
169
- margin-bottom: 0.5rem;
170
- }
171
-
172
- .url-box {
173
- position: relative;
174
- background-color: #edf1fb;
175
- padding: 0.375rem 0.75rem;
176
- border-radius: 0.5rem;
177
- display: flex;
178
- align-items: center;
179
- gap: 0.5rem;
180
- font-size: 14px;
181
- flex: 1;
182
- height: 2.8rem;
183
- margin-bottom: 1.5rem;
184
-
185
- &_text-container {
186
- display: flex;
187
- align-items: center;
188
- flex: 1;
189
-
190
- .url-text {
191
- color: #3b3f46;
192
- font-size: 1.25rem;
193
- line-height: 1.75rem;
194
- max-width: 100%;
195
- overflow: hidden;
196
- text-overflow: ellipsis;
197
- white-space: nowrap;
198
- flex: 1;
199
- }
200
-
201
- .method-label {
202
- font-size: 1.25rem;
203
- padding: 0.125rem 0.5rem;
204
- border-radius: 0.375rem;
205
- text-transform: uppercase;
206
- color: #3aaa35;
207
- text-decoration: underline;
208
-
209
- &.get {
210
- color: #3a6cd1;
211
- }
212
- &.post {
213
- color: #3aaa35;
214
- }
215
- &.put {
216
- color: #faad14;
217
- }
218
- &.patch {
219
- color: #58e2c2;
220
- }
221
- &.delete {
222
- color: #da3f3f;
223
- }
224
- &.head {
225
- color: #9461c9;
226
- }
227
- &.trace {
228
- color: #ffa28f;
229
- }
230
- &.options {
231
- color: #495d97;
232
- }
233
- }
234
- }
235
-
236
- .copy-icon {
237
- cursor: pointer;
238
- width: 1.5rem;
239
- height: 1.5rem;
240
- }
241
- }
242
-
243
- .api-desc {
244
- color: #6b7280;
245
- margin: 1.5rem 0;
246
- }
247
-
248
- .head-table-label {
249
- color: #3b3f46 !important;
250
- letter-spacing: 0px;
251
- font-weight: 400 !important;
252
- line-height: 1rem;
253
- }
254
-
255
- .request-tabs {
256
- display: flex;
257
- gap: 0.5rem;
258
- margin-bottom: 0.75rem;
259
- }
260
-
261
- .tab {
262
- background: white;
263
- border: 1px solid #d1d3d8;
264
- padding: 0.375rem 0.75rem;
265
- border-radius: 6px;
266
- cursor: pointer;
267
- font-size: 0.875rem;
268
- color: #000000;
269
- display: flex;
270
- align-items: center;
271
- gap: 0.375rem;
272
- }
273
-
274
- .tab {
275
- background: white;
276
- border: 1px solid #d1d3d8;
277
- padding: 0.375rem 0.75rem;
278
- border-radius: 6px;
279
- cursor: pointer;
280
- font-size: 0.875rem;
281
- color: #000000;
282
- display: flex;
283
- align-items: center;
284
- gap: 0.375rem;
285
-
286
- &.active {
287
- background-color: #e5edff;
288
- border-color: #4d75d9;
289
- color: #000000;
290
- font-weight: 400;
291
- }
292
- }
293
-
294
- .icon-left {
295
- width: 0.875rem;
296
- height: 0.875rem;
297
- }
298
-
299
- .table-wrapper {
300
- overflow-x: auto;
301
- border: 1px solid #e5e7eb;
302
- border-radius: 0.8rem;
303
- background: white;
304
- border: 1px #bbbec5 solid;
305
- margin-bottom: 2rem;
306
- }
307
-
308
- .param-table {
309
- width: 100%;
310
- border-collapse: collapse;
311
- font-size: 0.875rem;
312
-
313
- .desc-cell {
314
- position: relative;
315
- max-width: 20rem;
316
- padding-right: 1.5rem;
317
- }
318
-
319
- .desc-text {
320
- white-space: nowrap;
321
- overflow: hidden;
322
- text-overflow: ellipsis;
323
- max-width: 90%;
324
- }
325
-
326
- .desc-text.expanded {
327
- white-space: normal;
328
- }
329
-
330
- .desc-toggle {
331
- position: absolute;
332
- right: 0.5rem;
333
- top: 50%;
334
- transform: translateY(-50%);
335
- background: none;
336
- border: none;
337
- cursor: pointer;
338
- }
339
-
340
- .desc-toggle svg {
341
- transition: transform 0.2s ease;
342
- }
343
-
344
- .desc-toggle .rotated {
345
- transform: rotate(180deg);
346
- }
347
- }
348
-
349
- .param-table th,
350
- .param-table td {
351
- padding: 10px;
352
- border-bottom: 1px solid #bbbec5;
353
- text-align: left;
354
- color: #3b3f46;
355
- }
356
-
357
- .param-table th {
358
- background: #edf1fb;
359
- font-weight: 600;
360
- }
361
-
362
- .response-status {
363
- display: flex;
364
- align-items: center;
365
- justify-content: end;
366
- gap: 0.375rem;
367
- font-size: 0.875rem;
368
- color: green;
369
- margin-bottom: 0.75rem;
370
- }
371
-
372
- .response-drop {
373
- width: 10rem;
374
- justify-content: end;
375
- }
376
- .response-drop-test {
377
- justify-content: end !important;
378
- align-items: end !important;
379
- align-content: end !important;
380
- }
381
- }
382
- }
@@ -1,332 +0,0 @@
1
- .api-details-page {
2
- padding: 2rem;
3
-
4
- .welcome {
5
- font-size: 1.2rem;
6
- color: #616874;
7
- font-weight: 400;
8
- font-size: 1.125rem;
9
- letter-spacing: 0px;
10
- line-height: 1.5rem;
11
- }
12
-
13
- .api-title {
14
- font-size: 2rem;
15
- font-weight: 600;
16
- color: #4d75d9;
17
- font-size: 3rem;
18
- letter-spacing: -1px;
19
- margin-bottom: 0.5rem;
20
- }
21
-
22
- .api-version {
23
- font-size: 1.25rem;
24
- color: #3b3f46;
25
- font-weight: 400;
26
- letter-spacing: 0px;
27
- line-height: 1.75rem;
28
- }
29
- .custom-url-input {
30
- margin-top: 1.5rem;
31
- width: 50%;
32
-
33
- .input-label {
34
- display: block;
35
- margin-bottom: 0.5rem;
36
- font-size: 0.875rem;
37
- font-weight: 600;
38
- color: #4d4f5c;
39
- }
40
-
41
- .url-container {
42
- position: relative;
43
- }
44
-
45
- .type-ddl {
46
- cursor: pointer;
47
- display: flex;
48
- align-items: center;
49
- justify-content: space-between;
50
- width: 100%;
51
- background-color: #edf1fb;
52
- border: 1px solid #fff;
53
- border-radius: 0.375rem;
54
- padding: 0.5rem 1rem;
55
- }
56
-
57
- .url-text {
58
- flex: 1;
59
- padding-right: 0.75rem;
60
- border: none;
61
- background: transparent;
62
- line-height: 1.75rem;
63
- letter-spacing: 0;
64
- font-size: 1.125rem;
65
- font-weight: 400;
66
- opacity: 0.5;
67
- color: #000000;
68
- }
69
-
70
- .icon-container {
71
- display: flex;
72
- align-items: center;
73
- gap: 0.75rem;
74
-
75
- .icon {
76
- display: inline-block;
77
- width: 1.75rem;
78
- height: 1.75rem;
79
-
80
- &:focus {
81
- outline: none;
82
- }
83
- }
84
- }
85
-
86
- .url-list {
87
- position: absolute;
88
- top: 100%;
89
- left: 0;
90
- width: 100%;
91
- z-index: 10;
92
- background: white;
93
- border: 1px solid #ccc;
94
- border-radius: 0.375rem;
95
- max-height: 12.5rem;
96
- overflow-y: auto;
97
- }
98
-
99
- .url-item {
100
- padding: 0.5rem 1rem;
101
- display: flex;
102
- align-items: center;
103
- gap: 0.5rem;
104
- cursor: pointer;
105
-
106
- &:hover {
107
- background-color: #f5f5f5;
108
- }
109
- }
110
-
111
- .input-wrapper {
112
- .icon {
113
- cursor: pointer;
114
- color: #4d75d9;
115
- font-size: 1rem;
116
- margin-left: 0.5rem;
117
-
118
- &:hover {
119
- color: #2f54eb;
120
- }
121
- }
122
- }
123
- }
124
- .api-desc {
125
- padding: 1.125rem 0;
126
- color: #000000;
127
- font-weight: 400;
128
- line-height: 1.125rem;
129
- }
130
-
131
- .api-product-tag {
132
- margin: 1rem 0;
133
- font-size: 0.9rem;
134
- font-size: 1rem;
135
- font-weight: 500;
136
- color: #616874;
137
- line-height: 1.125rem;
138
- letter-spacing: 0px;
139
-
140
- .product-tag {
141
- background: #f1f1f1;
142
- padding: 0.25rem 0.5rem;
143
- border-radius: 0.25rem;
144
- border: 1px solid #bbbec5;
145
- font-weight: 400;
146
- font-size: 0.75rem;
147
- letter-spacing: 0px;
148
- margin-left: 0.5rem;
149
- cursor: pointer;
150
- }
151
- }
152
-
153
- .section-title {
154
- margin-top: 2rem;
155
- color: #4d75d9;
156
- font-weight: 600;
157
- font-size: 1.75rem;
158
- letter-spacing: -0.5px;
159
- line-height: 2.25rem;
160
- }
161
-
162
- .endpoint-group {
163
- margin-top: 1.5rem;
164
- gap: 1rem;
165
-
166
- .tag-title {
167
- font-size: 1.125rem;
168
- margin-bottom: 1rem;
169
- border-bottom: 1px solid #ddd;
170
- padding-bottom: 0.5rem;
171
- line-height: 1.5rem;
172
- letter-spacing: 0px;
173
- font-weight: 500;
174
- color: #616874;
175
- }
176
-
177
- .endpoint-list {
178
- display: grid;
179
- grid-template-columns: repeat(auto-fill, minmax(308px, 1fr));
180
- gap: 1rem;
181
- }
182
-
183
- .endpoint-card {
184
- display: flex;
185
- align-items: center;
186
- justify-content: space-between;
187
- padding: 1rem;
188
- border: 1px solid #e5e7eb;
189
- border-radius: 0.5rem;
190
- background-color: #fff;
191
- margin-bottom: 1rem;
192
- transition: box-shadow 0.2s ease;
193
-
194
- .endpoint-card-header {
195
- display: flex;
196
- gap: 0.8rem;
197
- align-items: flex-start;
198
-
199
- .title-wrapper {
200
- flex: 1;
201
- max-width: 10rem;
202
- min-width: 10rem;
203
- }
204
-
205
- h5 {
206
- font-size: 1rem;
207
- font-weight: 400;
208
- line-height: 1.25rem;
209
- letter-spacing: 0px;
210
- white-space: nowrap;
211
- overflow: hidden;
212
- text-overflow: ellipsis;
213
- max-width: 100%;
214
- }
215
- }
216
-
217
- .method-label {
218
- font-size: 0.875rem;
219
- font-weight: 400;
220
- letter-spacing: 0px;
221
- line-height: 1rem;
222
- padding: 0.275rem 1.563rem;
223
- border-radius: 0.188rem;
224
- display: inline-block;
225
- margin-bottom: 1rem;
226
- text-transform: uppercase;
227
-
228
- &.get {
229
- background-color: #3a6cd1;
230
- color: #ffffff;
231
- }
232
- &.post {
233
- background-color: #3aaa35;
234
- color: #ffffff;
235
- }
236
- &.put {
237
- background-color: #faad14;
238
- color: #ffffff;
239
- }
240
- &.patch {
241
- background-color: #58e2c2;
242
- color: #ffffff;
243
- }
244
- &.delete {
245
- background-color: #da3f3f;
246
- color: #ffffff;
247
- }
248
- &.head {
249
- background-color: #9461c9;
250
- color: #ffffff;
251
- }
252
- &.trace {
253
- background-color: #ffa28f;
254
- color: #ffffff;
255
- }
256
- &.options {
257
- background-color: #495d97;
258
- color: #ffffff;
259
- }
260
- }
261
-
262
- .endpoint-meta {
263
- h5 {
264
- font-size: 1rem;
265
- font-weight: 400;
266
- line-height: 1.25rem;
267
- letter-spacing: 0px;
268
- }
269
-
270
- p {
271
- color: #616874;
272
- font-weight: 400;
273
- font-size: 0.85rem;
274
- letter-spacing: 0px;
275
- line-height: 1rem;
276
- margin: 0.25rem 0;
277
- }
278
-
279
- .description {
280
- color: #3b3f46;
281
- line-height: 1rem;
282
- font-weight: 400;
283
- letter-spacing: 0px;
284
- margin-top: 1.5rem;
285
- }
286
- }
287
- .endpoint-arrow {
288
- align-content: center;
289
- width: 1rem;
290
- height: 1rem;
291
- flex-shrink: 0;
292
- margin-left: 1rem;
293
- }
294
- }
295
- }
296
-
297
- .versions-section {
298
- margin-top: 2rem;
299
-
300
- h4 {
301
- color: #4d75d9;
302
- font-weight: 600;
303
- font-size: 1.75rem;
304
- letter-spacing: -0.5px;
305
- line-height: 2.25rem;
306
-
307
- margin-bottom: 0.75rem;
308
- }
309
-
310
- .version-list {
311
- display: flex;
312
- flex-wrap: wrap;
313
- gap: 1rem;
314
-
315
- .version-btn {
316
- height: 3rem;
317
- padding: 0.4rem 0.8rem;
318
- border: 1px solid #4d75d9;
319
- border-radius: 0.375rem;
320
- background-color: #fff;
321
-
322
- cursor: pointer;
323
- font-size: 0.875rem;
324
- color: #4d75d9;
325
- box-shadow: inset 0 1px 3px #00000040;
326
-
327
- white-space: nowrap;
328
- min-width: 3.9375rem;
329
- }
330
- }
331
- }
332
- }
File without changes