@digi-frontend/dgate-api-documentation 1.0.8 → 1.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digi-frontend/dgate-api-documentation",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "main": "dist/src/index.js",
5
5
  "module": "dist/src/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "license": "ISC",
17
17
  "description": "",
18
18
  "dependencies": {
19
- "digitinary-ui": "^1.0.166",
19
+ "digitinary-ui": "1.0.166",
20
20
  "formik": "^2.4.6",
21
21
  "html-react-parser": "^5.2.2",
22
22
  "js-yaml": "^4.1.0",
@@ -3,17 +3,19 @@
3
3
  box-shadow: none !important;
4
4
  margin-bottom: 0 !important;
5
5
 
6
- :global(.summary) {
6
+ :global(.accordion-header) {
7
7
  padding: 0 !important;
8
8
  margin: 1.25rem 1.875rem 0 1.875rem !important;
9
9
  height: 2.625rem;
10
+ border: none !important;
11
+ background-color: transparent !important;
10
12
  }
11
13
 
12
14
  :global(.iconContainer .dropdownIcon) {
13
15
  display: none !important;
14
16
  }
15
17
 
16
- :global(.details.show) {
18
+ :global(.accordion-details.expanded) {
17
19
  border: none !important;
18
20
  padding: 0 !important;
19
21
  }
@@ -26,11 +28,13 @@
26
28
 
27
29
  .methodSummary {
28
30
  display: flex;
31
+ align-items: center;
29
32
  gap: 0.3125rem;
30
33
  background-color: #f8f9fb;
31
34
  width: 100%;
32
35
  padding: 0.3125rem;
33
36
  border-radius: 0.3125rem;
37
+ font-size: 0.875rem;
34
38
 
35
39
  .methodLabel {
36
40
  display: grid;
@@ -41,6 +45,11 @@
41
45
  border-radius: 0.1875rem;
42
46
  text-transform: capitalize;
43
47
  }
48
+
49
+ .methodPath {
50
+ display: block;
51
+ line-height: 1.25rem !important;
52
+ }
44
53
  }
45
54
 
46
55
  .methodExpandArrowContainer {
@@ -62,6 +71,16 @@
62
71
  transition: rotate 0.3s ease-in-out;
63
72
  }
64
73
  }
74
+
75
+ &.readOnly {
76
+ .methodSummary {
77
+ background-color: #ebecf2;
78
+ }
79
+
80
+ .methodExpandArrowContainer {
81
+ background-color: #ebecf2;
82
+ }
83
+ }
65
84
  }
66
85
 
67
86
  .methodAccordionContent {
@@ -70,16 +89,6 @@
70
89
  gap: 1.25rem;
71
90
  padding-inline: 1.875rem;
72
91
 
73
- .divTest {
74
- background-color: red;
75
- height: 40px;
76
- width: 15px;
77
- }
78
-
79
- .divTest:focus {
80
- background-color: black;
81
- }
82
-
83
92
  .methodDesc {
84
93
  margin-top: 1.25rem;
85
94
  }
@@ -171,19 +180,24 @@
171
180
 
172
181
  .requestAccordion,
173
182
  .responseAccordion {
174
- border-top: 1px solid #babdcc;
183
+ border: 1px solid #babdcc;
175
184
  border-radius: 0.3125rem !important;
176
185
  box-shadow: none !important;
177
186
  margin-bottom: 0 !important;
178
187
  cursor: default !important;
179
188
 
180
- :global(.summary) {
189
+ :global(.accordion-header) {
190
+ display: flex;
191
+ align-items: center;
192
+ justify-content: space-between;
181
193
  margin: 0 !important;
182
- padding: 1rem !important;
183
- height: auto !important;
194
+ padding: 0 !important;
195
+ height: 4.0625rem !important;
196
+ border-radius: 0.3125rem !important;
197
+ background-color: white !important;
184
198
  }
185
199
 
186
- :global(.details.show) {
200
+ :global(.accordion-details.expanded) {
187
201
  border-top: 1px solid #babdcc !important;
188
202
  padding: 1.25rem !important;
189
203
  padding: 0 !important;
@@ -199,23 +213,27 @@
199
213
  }
200
214
  }
201
215
 
202
- :global(.details.show .textArea .containerTextArea) {
216
+ :global(.accordion-details.expanded .textArea .containerTextArea) {
203
217
  display: flex;
204
218
  }
205
219
 
206
- :global(.details.show .textArea .containerTextArea .inputField) {
220
+ :global(.accordion-details.expanded .textArea .containerTextArea .inputField) {
207
221
  height: 100%;
208
222
  padding: 1.25rem;
209
223
  }
210
224
 
211
225
  .requestAccordionSummary,
212
226
  .responseAccordionSummary {
227
+ width: 100%;
228
+ display: flex;
229
+ justify-content: space-between;
213
230
  font-weight: 700;
214
231
  font-size: 1.125rem;
215
232
  line-height: 1.5rem;
216
233
  display: flex;
217
234
  align-items: center;
218
235
  cursor: default !important;
236
+ margin-inline: 0.625rem 1.25rem;
219
237
  }
220
238
 
221
239
  .responseAccordionSummary_title,
@@ -233,18 +251,18 @@
233
251
  }
234
252
  }
235
253
 
236
- :global(.details) {
254
+ :global(.accordion-details) {
237
255
  :global(.textArea .inputField) {
238
256
  padding: 0;
239
257
  border: none;
240
258
  }
241
259
  }
242
260
 
243
- :global(.summary .iconContainer .dropdownIcon) {
261
+ :global(.accordion-header .iconContainer .dropdownIcon) {
244
262
  display: none !important;
245
263
  }
246
264
 
247
- :global(.summary) {
265
+ :global(.accordion-header) {
248
266
  cursor: default;
249
267
  }
250
268
  }
@@ -272,7 +290,7 @@
272
290
  }
273
291
  }
274
292
 
275
- :global(.summary) {
293
+ :global(.accordion-header) {
276
294
  overflow: visible;
277
295
  cursor: default;
278
296
  }
@@ -54,7 +54,7 @@ const MethodsAccordion = ({
54
54
  const [selectedParamIndex, setSelectedParamIndex] = useState<number | null>(null)
55
55
  const [selectedParamName, setSelectedParamName] = useState<string | null>(null)
56
56
  const [tableRecords, setTableRecords] = useState()
57
-
57
+
58
58
  const [selectedStatusCode, setSelectedStatusCode] = useState(httpStatusCodeOptions[4])
59
59
  const currentResponse =
60
60
  method.responses.find((res) => Number(res.code) === selectedStatusCode.value) || '{}'
@@ -220,7 +220,7 @@ const MethodsAccordion = ({
220
220
  onChange={() => setIsExpanded((prev) => ({ ...prev, method: !prev.method }))}
221
221
  className={styles.methodAccordion}
222
222
  summary={
223
- <div className={styles.methodSummaryContainer}>
223
+ <div className={`${styles.methodSummaryContainer} ${readOnly ? styles.readOnly : ''}`}>
224
224
  <div className={styles.methodSummary}>
225
225
  <span
226
226
  style={{
@@ -339,6 +339,7 @@ const MethodsAccordion = ({
339
339
  <SelectGroup
340
340
  withSearch={false}
341
341
  isMultiple={false}
342
+ clearable={false}
342
343
  placeholder="200"
343
344
  options={[
344
345
  {