mockaton 13.11.0 → 13.11.2

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.
@@ -0,0 +1,90 @@
1
+ .PayloadSubToolbar {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: space-between;
5
+ padding-right: 14px;
6
+ padding-left: 16px;
7
+ border-bottom: 1px solid var(--colorBorder);
8
+ background: var(--colorBgHeader);
9
+ }
10
+
11
+
12
+ .PayloadViewer {
13
+ display: grid;
14
+ height: 100%;
15
+ grid-template-rows: var(--subtoolbarHeight) 1fr;
16
+
17
+ > pre {
18
+ overflow: auto;
19
+ height: 100%;
20
+ padding: 16px;
21
+ padding-top: 12px;
22
+ font-family: monospace;
23
+
24
+ &:has(> code > :is(iframe, video)) {
25
+ padding: 0;
26
+ }
27
+
28
+ > code {
29
+ line-height: 1.3;
30
+ white-space: pre;
31
+ tab-size: 2;
32
+ color: var(--colorLabel);
33
+
34
+ > video {
35
+ width: 100%;
36
+ }
37
+ > iframe {
38
+ width: 100%;
39
+ height: 100%;
40
+ }
41
+ }
42
+ }
43
+ }
44
+
45
+ .syntaxPunc {
46
+ color: var(--colorLabel);
47
+ }
48
+ .syntaxKey,
49
+ .syntaxTag {
50
+ color: var(--colorPink);
51
+ }
52
+ .syntaxVal,
53
+ .syntaxAttr {
54
+ color: var(--colorPurple);
55
+ }
56
+ .syntaxStr,
57
+ .syntaxAttrVal {
58
+ color: var(--colorGreen);
59
+ }
60
+
61
+
62
+ .ProgressBar {
63
+ position: relative;
64
+ top: -12px;
65
+ left: -16px;
66
+ width: calc(100% + 32px);
67
+ height: 2px;
68
+ background: var(--colorBgHeaderField);
69
+
70
+ > div {
71
+ position: absolute;
72
+ top: 0;
73
+ left: 0;
74
+ width: 0;
75
+ height: 100%;
76
+ background: var(--colorAccent);
77
+ animation-name: _kfProgress;
78
+ animation-timing-function: linear;
79
+ animation-iteration-count: infinite;
80
+ animation-direction: alternate;
81
+ /* animation-duration is set in JS */
82
+ }
83
+ }
84
+ @keyframes _kfProgress {
85
+ to {
86
+ width: 100%;
87
+ }
88
+ }
89
+
90
+
@@ -1,10 +1,10 @@
1
1
  import { createElement as r, t } from './utils/dom.js'
2
2
  import { parseFilename } from './Filename.js'
3
3
  import { store } from './app-store.js'
4
+ import { adoptSheet } from './utils/css.js'
4
5
 
5
- import CSS from './app.css' with { type: 'css' }
6
- import { extractClassNames } from './utils/css.js'
7
- Object.assign(CSS, extractClassNames(CSS))
6
+ import CSS from './app-payload-viewer.css' with { type: 'css' }
7
+ adoptSheet(CSS, './app-payload-viewer.css')
8
8
 
9
9
 
10
10
  const titleRef = {}
@@ -14,7 +14,7 @@ export function PayloadViewer() {
14
14
  return (
15
15
  r('div', { className: CSS.PayloadViewer },
16
16
 
17
- r('div', { className: CSS.SubToolbar },
17
+ r('div', { className: CSS.PayloadSubToolbar },
18
18
  r('h2', { ref: titleRef },
19
19
  !store.hasChosenLink && t`Preview`)),
20
20
 
@@ -13,6 +13,7 @@ export const store = {
13
13
  onError(err) {},
14
14
  render() {},
15
15
  renderRow(method, urlMask) {},
16
+ mounted: false,
16
17
  skipNextRender: false,
17
18
 
18
19
  brokersByMethod: /** @type ClientBrokersByMethod */ {},