mockaton 12.0.0 → 12.0.1

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/README.md CHANGED
@@ -38,8 +38,8 @@ On the dashboard you can:
38
38
  - Trigger an autogenerated `500` error
39
39
  - …and cycle it off (for testing retries)
40
40
 
41
- Nonetheless, there’s a programmatic API, which is handy for
42
- setting up tests (see **Commander API** section below).
41
+ Nonetheless, there’s a [Control API ↗](https://mockaton.com/api), which is handy for
42
+ setting up tests.
43
43
 
44
44
  <br/>
45
45
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "mockaton",
3
3
  "description": "HTTP Mock Server",
4
4
  "type": "module",
5
- "version": "12.0.0",
5
+ "version": "12.0.1",
6
6
  "exports": {
7
7
  ".": {
8
8
  "import": "./index.js",
@@ -5,6 +5,7 @@
5
5
 
6
6
  @media (prefers-color-scheme: light) {
7
7
  :root {
8
+ color-scheme: light;
8
9
  --color4xxBackground: #ffedd1;
9
10
  --colorAccent: #0b61ec;
10
11
  --colorBackground: #fff;
@@ -27,6 +28,7 @@
27
28
  }
28
29
  @media (prefers-color-scheme: dark) {
29
30
  :root {
31
+ color-scheme: dark;
30
32
  --color4xxBackground: #68554a;
31
33
  --colorAccent: #2495ff;
32
34
  --colorBackground: #181818;
@@ -52,9 +54,6 @@ html,
52
54
  body {
53
55
  overflow: hidden;
54
56
  height: 100%;
55
- padding: 0;
56
- margin: 0;
57
- background: var(--colorHeaderBackground);
58
57
  font-size: 12px;
59
58
  }
60
59
  body {
@@ -72,7 +71,6 @@ body {
72
71
  margin: 0;
73
72
  font-family: inherit;
74
73
  font-size: 100%;
75
- outline: 0;
76
74
  scrollbar-width: thin;
77
75
  }
78
76
 
@@ -88,6 +86,7 @@ a,
88
86
  select,
89
87
  button,
90
88
  input[type=checkbox] {
89
+ outline: 0;
91
90
  cursor: pointer;
92
91
  }
93
92
 
@@ -100,6 +99,11 @@ input[type=checkbox]:active {
100
99
 
101
100
  a {
102
101
  text-decoration: none;
102
+ color: var(--colorAccent);
103
+ }
104
+
105
+ input[type="number"]:not(:focus) {
106
+ -moz-appearance: textfield;
103
107
  }
104
108
 
105
109
  select {
@@ -128,7 +132,7 @@ select {
128
132
 
129
133
  header {
130
134
  display: flex;
131
- width: 100vw;
135
+ flex: 0 0 100%;
132
136
  padding: 16px;
133
137
  border-bottom: 1px solid var(--colorSecondaryActionBorder);
134
138
  background: var(--colorHeaderBackground);
@@ -143,6 +147,10 @@ header {
143
147
  pointer-events: none;
144
148
  fill: var(--colorText);
145
149
  }
150
+
151
+ @media (max-width: 830px) {
152
+ display: none;
153
+ }
146
154
  }
147
155
 
148
156
  > div {
@@ -151,16 +159,11 @@ header {
151
159
  flex-wrap: wrap;
152
160
  align-items: flex-end;
153
161
  gap: 16px 8px;
154
- }
155
162
 
156
- @media (max-width: 830px) {
157
- .Logo {
158
- display: none;
159
- }
160
- }
161
- @media (max-width: 690px) {
162
- > div .MenuTrigger {
163
- margin-left: unset;
163
+ @media (max-width: 690px) {
164
+ .MenuTrigger {
165
+ margin-left: unset;
166
+ }
164
167
  }
165
168
  }
166
169
 
@@ -194,11 +197,6 @@ header {
194
197
  border-radius: var(--radius);
195
198
  }
196
199
 
197
- select:enabled:hover {
198
- border-color: var(--colorSecondaryActionBorder);
199
- background: var(--colorHover);
200
- }
201
-
202
200
  &.GlobalDelayField {
203
201
  position: relative;
204
202
  width: 76px;
@@ -263,8 +261,12 @@ header {
263
261
  input:enabled + .checkboxBody {
264
262
  cursor: pointer;
265
263
  }
264
+ input:disabled {
265
+ cursor: not-allowed;
266
+ }
266
267
  input:disabled + .checkboxBody {
267
268
  opacity: 0.8;
269
+ cursor: not-allowed;
268
270
  }
269
271
  }
270
272
  }
@@ -329,10 +331,6 @@ header {
329
331
  gap: 12px;
330
332
  text-align: left;
331
333
 
332
- a {
333
- color: var(--colorAccent);
334
- }
335
-
336
334
  .GroupByMethod {
337
335
  display: flex;
338
336
  align-items: center;
@@ -356,10 +354,9 @@ main {
356
354
  }
357
355
 
358
356
  .leftSide {
359
- min-width: 100%;
360
- min-height: 50%;
361
- max-height: 50%;
362
- border: 0;
357
+ width: 100% !important;
358
+ height: 50%;
359
+ border-right: 0;
363
360
  }
364
361
  }
365
362
 
@@ -430,7 +427,6 @@ main {
430
427
  }
431
428
  }
432
429
  }
433
-
434
430
  @keyframes _kfRowIn {
435
431
  to {
436
432
  opacity: 1;
@@ -459,7 +455,6 @@ main {
459
455
  padding: 6px 8px;
460
456
  margin-left: 4px;
461
457
  border-radius: var(--radius);
462
- color: var(--colorAccent);
463
458
  word-break: break-word;
464
459
 
465
460
 
@@ -651,9 +646,7 @@ main {
651
646
 
652
647
 
653
648
  .PayloadViewer {
654
- display: flex;
655
649
  height: 100%;
656
- flex-direction: column;
657
650
  padding-top: 16px;
658
651
 
659
652
  > h2 {
@@ -750,7 +743,6 @@ main {
750
743
  background: rgba(0, 0, 0, 0.5);
751
744
  }
752
745
  }
753
-
754
746
  @keyframes _kfToastIn {
755
747
  to {
756
748
  opacity: 1;