@ngrok/ngrok 0.2.0 → 0.3.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 (52) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/Cargo.toml +1 -1
  3. package/README.md +16 -9
  4. package/docs/assets/highlight.css +13 -6
  5. package/docs/assets/main.js +3 -3
  6. package/docs/assets/search.js +1 -1
  7. package/docs/assets/style.css +447 -361
  8. package/docs/classes/NgrokHttpTunnel.html +112 -77
  9. package/docs/classes/NgrokHttpTunnelBuilder.html +235 -199
  10. package/docs/classes/NgrokLabeledTunnel.html +107 -72
  11. package/docs/classes/NgrokLabeledTunnelBuilder.html +84 -49
  12. package/docs/classes/NgrokSession.html +99 -66
  13. package/docs/classes/NgrokSessionBuilder.html +171 -138
  14. package/docs/classes/NgrokTcpTunnel.html +112 -77
  15. package/docs/classes/NgrokTcpTunnelBuilder.html +115 -80
  16. package/docs/classes/NgrokTlsTunnel.html +112 -77
  17. package/docs/classes/NgrokTlsTunnelBuilder.html +133 -98
  18. package/docs/classes/UpdateRequest.html +69 -33
  19. package/docs/functions/authtoken.html +88 -0
  20. package/docs/functions/connect.html +88 -0
  21. package/docs/functions/consoleLog.html +50 -34
  22. package/docs/functions/disconnect.html +88 -0
  23. package/docs/functions/kill.html +83 -0
  24. package/docs/functions/listen.html +52 -36
  25. package/docs/functions/listenable.html +51 -35
  26. package/docs/functions/loggingCallback.html +56 -40
  27. package/docs/index.html +94 -101
  28. package/docs/interfaces/Config.html +608 -0
  29. package/docs/modules.html +74 -47
  30. package/examples/ngrok-connect-full.js +64 -0
  31. package/examples/ngrok-connect-minimal.js +16 -0
  32. package/examples/ngrok-http-full.js +9 -11
  33. package/examples/ngrok-http-minimum.js +8 -12
  34. package/examples/ngrok-labeled.js +5 -5
  35. package/examples/ngrok-listen.js +2 -2
  36. package/examples/ngrok-tcp.js +5 -6
  37. package/examples/ngrok-tls.js +5 -5
  38. package/examples/ngrok-typescript.ts +3 -3
  39. package/examples/ngrok-windows-pipe.js +1 -1
  40. package/examples/ngrok-winston.js +2 -2
  41. package/index.d.ts +234 -15
  42. package/index.js +118 -3
  43. package/package.json +16 -16
  44. package/src/config.rs +182 -0
  45. package/src/connect.rs +328 -0
  46. package/src/http.rs +5 -4
  47. package/src/lib.rs +2 -0
  48. package/src/session.rs +61 -4
  49. package/src/tls.rs +1 -1
  50. package/src/tunnel.rs +105 -37
  51. package/src/tunnel_builder.rs +8 -0
  52. package/trailer.js +113 -2
@@ -6,17 +6,36 @@
6
6
  --light-color-background-warning: #e6e600;
7
7
  --light-color-icon-background: var(--light-color-background);
8
8
  --light-color-accent: #c5c7c9;
9
+ --light-color-active-menu-item: var(--light-color-accent);
9
10
  --light-color-text: #222;
10
- --light-color-text-aside: #707070;
11
- --light-color-link: #4da6ff;
12
- --light-color-ts: #db1373;
13
- --light-color-ts-interface: #139d2c;
14
- --light-color-ts-enum: #9c891a;
15
- --light-color-ts-class: #2484e5;
11
+ --light-color-text-aside: #6e6e6e;
12
+ --light-color-link: #1f70c2;
13
+
14
+ --light-color-ts-project: #b111c9;
15
+ --light-color-ts-module: var(--light-color-ts-project);
16
+ --light-color-ts-namespace: var(--light-color-ts-project);
17
+ --light-color-ts-enum: #7e6f15;
18
+ --light-color-ts-enum-member: var(--light-color-ts-enum);
19
+ --light-color-ts-variable: #4760ec;
16
20
  --light-color-ts-function: #572be7;
17
- --light-color-ts-namespace: #b111c9;
18
- --light-color-ts-private: #707070;
19
- --light-color-ts-variable: #4d68ff;
21
+ --light-color-ts-class: #1f70c2;
22
+ --light-color-ts-interface: #108024;
23
+ --light-color-ts-constructor: var(--light-color-ts-class);
24
+ --light-color-ts-property: var(--light-color-ts-variable);
25
+ --light-color-ts-method: var(--light-color-ts-function);
26
+ --light-color-ts-call-signature: var(--light-color-ts-method);
27
+ --light-color-ts-index-signature: var(--light-color-ts-property);
28
+ --light-color-ts-constructor-signature: var(--light-color-ts-constructor);
29
+ --light-color-ts-parameter: var(--light-color-ts-variable);
30
+ /* type literal not included as links will never be generated to it */
31
+ --light-color-ts-type-parameter: var(--light-color-ts-type-alias);
32
+ --light-color-ts-accessor: var(--light-color-ts-property);
33
+ --light-color-ts-get-signature: var(--light-color-ts-accessor);
34
+ --light-color-ts-set-signature: var(--light-color-ts-accessor);
35
+ /* object literal not included as it is not used and will be removed in 0.25 */
36
+ --light-color-ts-type-alias: #d51270;
37
+ /* reference not included as links will be colored with the kind that it points to */
38
+
20
39
  --light-external-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='10' height='10'><path fill-opacity='0' stroke='%23000' stroke-width='10' d='m43,35H5v60h60V57M45,5v10l10,10-30,30 20,20 30-30 10,10h10V5z'/></svg>");
21
40
  --light-color-scheme: light;
22
41
 
@@ -27,17 +46,36 @@
27
46
  --dark-color-warning-text: #222;
28
47
  --dark-color-icon-background: var(--dark-color-background-secondary);
29
48
  --dark-color-accent: #9096a2;
49
+ --dark-color-active-menu-item: #5d5d6a;
30
50
  --dark-color-text: #f5f5f5;
31
51
  --dark-color-text-aside: #dddddd;
32
52
  --dark-color-link: #00aff4;
33
- --dark-color-ts: #ff6492;
34
- --dark-color-ts-interface: #6cff87;
53
+
54
+ --dark-color-ts-project: #e358ff;
55
+ --dark-color-ts-module: var(--dark-color-ts-project);
56
+ --dark-color-ts-namespace: var(--dark-color-ts-project);
35
57
  --dark-color-ts-enum: #f4d93e;
36
- --dark-color-ts-class: #61b0ff;
37
- --dark-color-ts-function: #9772ff;
38
- --dark-color-ts-namespace: #e14dff;
39
- --dark-color-ts-private: #e2e2e2;
40
- --dark-color-ts-variable: #4d68ff;
58
+ --dark-color-ts-enum-member: var(--dark-color-ts-enum);
59
+ --dark-color-ts-variable: #798dff;
60
+ --dark-color-ts-function: #a280ff;
61
+ --dark-color-ts-class: #8ac4ff;
62
+ --dark-color-ts-interface: #6cff87;
63
+ --dark-color-ts-constructor: var(--dark-color-ts-class);
64
+ --dark-color-ts-property: var(--dark-color-ts-variable);
65
+ --dark-color-ts-method: var(--dark-color-ts-function);
66
+ --dark-color-ts-call-signature: var(--dark-color-ts-method);
67
+ --dark-color-ts-index-signature: var(--dark-color-ts-property);
68
+ --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor);
69
+ --dark-color-ts-parameter: var(--dark-color-ts-variable);
70
+ /* type literal not included as links will never be generated to it */
71
+ --dark-color-ts-type-parameter: var(--dark-color-ts-type-alias);
72
+ --dark-color-ts-accessor: var(--dark-color-ts-property);
73
+ --dark-color-ts-get-signature: var(--dark-color-ts-accessor);
74
+ --dark-color-ts-set-signature: var(--dark-color-ts-accessor);
75
+ /* object literal not included as it is not used and will be removed in 0.25 */
76
+ --dark-color-ts-type-alias: #ff6492;
77
+ /* reference not included as links will be colored with the kind that it points to */
78
+
41
79
  --dark-external-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='10' height='10'><path fill-opacity='0' stroke='%23fff' stroke-width='10' d='m43,35H5v60h60V57M45,5v10l10,10-30,30 20,20 30-30 10,10h10V5z'/></svg>");
42
80
  --dark-color-scheme: dark;
43
81
  }
@@ -50,17 +88,34 @@
50
88
  --color-warning-text: var(--light-color-warning-text);
51
89
  --color-icon-background: var(--light-color-icon-background);
52
90
  --color-accent: var(--light-color-accent);
91
+ --color-active-menu-item: var(--light-color-active-menu-item);
53
92
  --color-text: var(--light-color-text);
54
93
  --color-text-aside: var(--light-color-text-aside);
55
94
  --color-link: var(--light-color-link);
56
- --color-ts: var(--light-color-ts);
57
- --color-ts-interface: var(--light-color-ts-interface);
58
- --color-ts-enum: var(--light-color-ts-enum);
59
- --color-ts-class: var(--light-color-ts-class);
60
- --color-ts-function: var(--light-color-ts-function);
95
+
96
+ --color-ts-module: var(--light-color-ts-module);
61
97
  --color-ts-namespace: var(--light-color-ts-namespace);
62
- --color-ts-private: var(--light-color-ts-private);
98
+ --color-ts-enum: var(--light-color-ts-enum);
99
+ --color-ts-enum-member: var(--light-color-ts-enum-member);
63
100
  --color-ts-variable: var(--light-color-ts-variable);
101
+ --color-ts-function: var(--light-color-ts-function);
102
+ --color-ts-class: var(--light-color-ts-class);
103
+ --color-ts-interface: var(--light-color-ts-interface);
104
+ --color-ts-constructor: var(--light-color-ts-constructor);
105
+ --color-ts-property: var(--light-color-ts-property);
106
+ --color-ts-method: var(--light-color-ts-method);
107
+ --color-ts-call-signature: var(--light-color-ts-call-signature);
108
+ --color-ts-index-signature: var(--light-color-ts-index-signature);
109
+ --color-ts-constructor-signature: var(
110
+ --light-color-ts-constructor-signature
111
+ );
112
+ --color-ts-parameter: var(--light-color-ts-parameter);
113
+ --color-ts-type-parameter: var(--light-color-ts-type-parameter);
114
+ --color-ts-accessor: var(--light-color-ts-accessor);
115
+ --color-ts-get-signature: var(--light-color-ts-get-signature);
116
+ --color-ts-set-signature: var(--light-color-ts-set-signature);
117
+ --color-ts-type-alias: var(--light-color-ts-type-alias);
118
+
64
119
  --external-icon: var(--light-external-icon);
65
120
  --color-scheme: var(--light-color-scheme);
66
121
  }
@@ -74,17 +129,34 @@
74
129
  --color-warning-text: var(--dark-color-warning-text);
75
130
  --color-icon-background: var(--dark-color-icon-background);
76
131
  --color-accent: var(--dark-color-accent);
132
+ --color-active-menu-item: var(--dark-color-active-menu-item);
77
133
  --color-text: var(--dark-color-text);
78
134
  --color-text-aside: var(--dark-color-text-aside);
79
135
  --color-link: var(--dark-color-link);
80
- --color-ts: var(--dark-color-ts);
81
- --color-ts-interface: var(--dark-color-ts-interface);
82
- --color-ts-enum: var(--dark-color-ts-enum);
83
- --color-ts-class: var(--dark-color-ts-class);
84
- --color-ts-function: var(--dark-color-ts-function);
136
+
137
+ --color-ts-module: var(--dark-color-ts-module);
85
138
  --color-ts-namespace: var(--dark-color-ts-namespace);
86
- --color-ts-private: var(--dark-color-ts-private);
139
+ --color-ts-enum: var(--dark-color-ts-enum);
140
+ --color-ts-enum-member: var(--dark-color-ts-enum-member);
87
141
  --color-ts-variable: var(--dark-color-ts-variable);
142
+ --color-ts-function: var(--dark-color-ts-function);
143
+ --color-ts-class: var(--dark-color-ts-class);
144
+ --color-ts-interface: var(--dark-color-ts-interface);
145
+ --color-ts-constructor: var(--dark-color-ts-constructor);
146
+ --color-ts-property: var(--dark-color-ts-property);
147
+ --color-ts-method: var(--dark-color-ts-method);
148
+ --color-ts-call-signature: var(--dark-color-ts-call-signature);
149
+ --color-ts-index-signature: var(--dark-color-ts-index-signature);
150
+ --color-ts-constructor-signature: var(
151
+ --dark-color-ts-constructor-signature
152
+ );
153
+ --color-ts-parameter: var(--dark-color-ts-parameter);
154
+ --color-ts-type-parameter: var(--dark-color-ts-type-parameter);
155
+ --color-ts-accessor: var(--dark-color-ts-accessor);
156
+ --color-ts-get-signature: var(--dark-color-ts-get-signature);
157
+ --color-ts-set-signature: var(--dark-color-ts-set-signature);
158
+ --color-ts-type-alias: var(--dark-color-ts-type-alias);
159
+
88
160
  --external-icon: var(--dark-external-icon);
89
161
  --color-scheme: var(--dark-color-scheme);
90
162
  }
@@ -105,17 +177,34 @@ body {
105
177
  --color-warning-text: var(--light-color-warning-text);
106
178
  --color-icon-background: var(--light-color-icon-background);
107
179
  --color-accent: var(--light-color-accent);
180
+ --color-active-menu-item: var(--light-color-active-menu-item);
108
181
  --color-text: var(--light-color-text);
109
182
  --color-text-aside: var(--light-color-text-aside);
110
183
  --color-link: var(--light-color-link);
111
- --color-ts: var(--light-color-ts);
112
- --color-ts-interface: var(--light-color-ts-interface);
113
- --color-ts-enum: var(--light-color-ts-enum);
114
- --color-ts-class: var(--light-color-ts-class);
115
- --color-ts-function: var(--light-color-ts-function);
184
+
185
+ --color-ts-module: var(--light-color-ts-module);
116
186
  --color-ts-namespace: var(--light-color-ts-namespace);
117
- --color-ts-private: var(--light-color-ts-private);
187
+ --color-ts-enum: var(--light-color-ts-enum);
188
+ --color-ts-enum-member: var(--light-color-ts-enum-member);
118
189
  --color-ts-variable: var(--light-color-ts-variable);
190
+ --color-ts-function: var(--light-color-ts-function);
191
+ --color-ts-class: var(--light-color-ts-class);
192
+ --color-ts-interface: var(--light-color-ts-interface);
193
+ --color-ts-constructor: var(--light-color-ts-constructor);
194
+ --color-ts-property: var(--light-color-ts-property);
195
+ --color-ts-method: var(--light-color-ts-method);
196
+ --color-ts-call-signature: var(--light-color-ts-call-signature);
197
+ --color-ts-index-signature: var(--light-color-ts-index-signature);
198
+ --color-ts-constructor-signature: var(
199
+ --light-color-ts-constructor-signature
200
+ );
201
+ --color-ts-parameter: var(--light-color-ts-parameter);
202
+ --color-ts-type-parameter: var(--light-color-ts-type-parameter);
203
+ --color-ts-accessor: var(--light-color-ts-accessor);
204
+ --color-ts-get-signature: var(--light-color-ts-get-signature);
205
+ --color-ts-set-signature: var(--light-color-ts-set-signature);
206
+ --color-ts-type-alias: var(--light-color-ts-type-alias);
207
+
119
208
  --external-icon: var(--light-external-icon);
120
209
  --color-scheme: var(--light-color-scheme);
121
210
  }
@@ -127,17 +216,34 @@ body {
127
216
  --color-warning-text: var(--dark-color-warning-text);
128
217
  --color-icon-background: var(--dark-color-icon-background);
129
218
  --color-accent: var(--dark-color-accent);
219
+ --color-active-menu-item: var(--dark-color-active-menu-item);
130
220
  --color-text: var(--dark-color-text);
131
221
  --color-text-aside: var(--dark-color-text-aside);
132
222
  --color-link: var(--dark-color-link);
133
- --color-ts: var(--dark-color-ts);
134
- --color-ts-interface: var(--dark-color-ts-interface);
135
- --color-ts-enum: var(--dark-color-ts-enum);
136
- --color-ts-class: var(--dark-color-ts-class);
137
- --color-ts-function: var(--dark-color-ts-function);
223
+
224
+ --color-ts-module: var(--dark-color-ts-module);
138
225
  --color-ts-namespace: var(--dark-color-ts-namespace);
139
- --color-ts-private: var(--dark-color-ts-private);
226
+ --color-ts-enum: var(--dark-color-ts-enum);
227
+ --color-ts-enum-member: var(--dark-color-ts-enum-member);
140
228
  --color-ts-variable: var(--dark-color-ts-variable);
229
+ --color-ts-function: var(--dark-color-ts-function);
230
+ --color-ts-class: var(--dark-color-ts-class);
231
+ --color-ts-interface: var(--dark-color-ts-interface);
232
+ --color-ts-constructor: var(--dark-color-ts-constructor);
233
+ --color-ts-property: var(--dark-color-ts-property);
234
+ --color-ts-method: var(--dark-color-ts-method);
235
+ --color-ts-call-signature: var(--dark-color-ts-call-signature);
236
+ --color-ts-index-signature: var(--dark-color-ts-index-signature);
237
+ --color-ts-constructor-signature: var(
238
+ --dark-color-ts-constructor-signature
239
+ );
240
+ --color-ts-parameter: var(--dark-color-ts-parameter);
241
+ --color-ts-type-parameter: var(--dark-color-ts-type-parameter);
242
+ --color-ts-accessor: var(--dark-color-ts-accessor);
243
+ --color-ts-get-signature: var(--dark-color-ts-get-signature);
244
+ --color-ts-set-signature: var(--dark-color-ts-set-signature);
245
+ --color-ts-type-alias: var(--dark-color-ts-type-alias);
246
+
141
247
  --external-icon: var(--dark-external-icon);
142
248
  --color-scheme: var(--dark-color-scheme);
143
249
  }
@@ -156,6 +262,16 @@ h6 {
156
262
  line-height: 1.2;
157
263
  }
158
264
 
265
+ h1 > a,
266
+ h2 > a,
267
+ h3 > a,
268
+ h4 > a,
269
+ h5 > a,
270
+ h6 > a {
271
+ text-decoration: none;
272
+ color: var(--color-text);
273
+ }
274
+
159
275
  h1 {
160
276
  font-size: 1.875rem;
161
277
  margin: 0.67rem 0;
@@ -190,12 +306,6 @@ h6 {
190
306
  text-transform: uppercase;
191
307
  }
192
308
 
193
- pre {
194
- white-space: pre;
195
- white-space: pre-wrap;
196
- word-wrap: break-word;
197
- }
198
-
199
309
  dl,
200
310
  menu,
201
311
  ol,
@@ -208,26 +318,10 @@ dd {
208
318
  }
209
319
 
210
320
  .container {
211
- max-width: 1600px;
321
+ max-width: 1700px;
212
322
  padding: 0 2rem;
213
323
  }
214
324
 
215
- @media (min-width: 640px) {
216
- .container {
217
- padding: 0 4rem;
218
- }
219
- }
220
- @media (min-width: 1200px) {
221
- .container {
222
- padding: 0 8rem;
223
- }
224
- }
225
- @media (min-width: 1600px) {
226
- .container {
227
- padding: 0 12rem;
228
- }
229
- }
230
-
231
325
  /* Footer */
232
326
  .tsd-generator {
233
327
  border-top: 1px solid var(--color-accent);
@@ -243,26 +337,9 @@ dd {
243
337
  }
244
338
 
245
339
  .container-main {
246
- display: flex;
247
- justify-content: space-between;
248
- position: relative;
249
340
  margin: 0 auto;
250
- }
251
-
252
- .col-4,
253
- .col-8 {
254
- box-sizing: border-box;
255
- float: left;
256
- padding: 2rem 1rem;
257
- }
258
-
259
- .col-4 {
260
- flex: 0 0 25%;
261
- }
262
- .col-8 {
263
- flex: 1 0;
264
- flex-wrap: wrap;
265
- padding-left: 0;
341
+ /* toolbar, footer, margin */
342
+ min-height: calc(100vh - 41px - 56px - 4rem);
266
343
  }
267
344
 
268
345
  @keyframes fade-in {
@@ -305,22 +382,6 @@ dd {
305
382
  opacity: 0;
306
383
  }
307
384
  }
308
- @keyframes shift-to-left {
309
- from {
310
- transform: translate(0, 0);
311
- }
312
- to {
313
- transform: translate(-25%, 0);
314
- }
315
- }
316
- @keyframes unshift-to-left {
317
- from {
318
- transform: translate(-25%, 0);
319
- }
320
- to {
321
- transform: translate(0, 0);
322
- }
323
- }
324
385
  @keyframes pop-in-from-right {
325
386
  from {
326
387
  transform: translate(100%, 0);
@@ -369,13 +430,29 @@ pre {
369
430
  }
370
431
 
371
432
  pre {
433
+ position: relative;
434
+ white-space: pre;
435
+ white-space: pre-wrap;
436
+ word-wrap: break-word;
372
437
  padding: 10px;
373
- border: 0.1em solid var(--color-accent);
438
+ border: 1px solid var(--color-accent);
374
439
  }
375
440
  pre code {
376
441
  padding: 0;
377
442
  font-size: 100%;
378
443
  }
444
+ pre > button {
445
+ position: absolute;
446
+ top: 10px;
447
+ right: 10px;
448
+ opacity: 0;
449
+ transition: opacity 0.1s;
450
+ box-sizing: border-box;
451
+ }
452
+ pre:hover > button,
453
+ pre > button.visible {
454
+ opacity: 1;
455
+ }
379
456
 
380
457
  blockquote {
381
458
  margin: 1em 0;
@@ -409,91 +486,6 @@ blockquote {
409
486
  margin: 1em 0;
410
487
  }
411
488
 
412
- @media (max-width: 1024px) {
413
- html .col-content {
414
- float: none;
415
- max-width: 100%;
416
- width: 100%;
417
- padding-top: 3rem;
418
- }
419
- html .col-menu {
420
- position: fixed !important;
421
- overflow-y: auto;
422
- -webkit-overflow-scrolling: touch;
423
- z-index: 1024;
424
- top: 0 !important;
425
- bottom: 0 !important;
426
- left: auto !important;
427
- right: 0 !important;
428
- padding: 1.5rem 1.5rem 0 0;
429
- max-width: 25rem;
430
- visibility: hidden;
431
- background-color: var(--color-background);
432
- transform: translate(100%, 0);
433
- }
434
- html .col-menu > *:last-child {
435
- padding-bottom: 20px;
436
- }
437
- html .overlay {
438
- content: "";
439
- display: block;
440
- position: fixed;
441
- z-index: 1023;
442
- top: 0;
443
- left: 0;
444
- right: 0;
445
- bottom: 0;
446
- background-color: rgba(0, 0, 0, 0.75);
447
- visibility: hidden;
448
- }
449
-
450
- .to-has-menu .overlay {
451
- animation: fade-in 0.4s;
452
- }
453
-
454
- .to-has-menu :is(header, footer, .col-content) {
455
- animation: shift-to-left 0.4s;
456
- }
457
-
458
- .to-has-menu .col-menu {
459
- animation: pop-in-from-right 0.4s;
460
- }
461
-
462
- .from-has-menu .overlay {
463
- animation: fade-out 0.4s;
464
- }
465
-
466
- .from-has-menu :is(header, footer, .col-content) {
467
- animation: unshift-to-left 0.4s;
468
- }
469
-
470
- .from-has-menu .col-menu {
471
- animation: pop-out-to-right 0.4s;
472
- }
473
-
474
- .has-menu body {
475
- overflow: hidden;
476
- }
477
- .has-menu .overlay {
478
- visibility: visible;
479
- }
480
- .has-menu :is(header, footer, .col-content) {
481
- transform: translate(-25%, 0);
482
- }
483
- .has-menu .col-menu {
484
- visibility: visible;
485
- transform: translate(0, 0);
486
- display: flex;
487
- flex-direction: column;
488
- gap: 1.5rem;
489
- max-height: 100vh;
490
- padding: 1rem 2rem;
491
- }
492
- .has-menu .tsd-navigation {
493
- max-height: 100%;
494
- }
495
- }
496
-
497
489
  .tsd-breadcrumb {
498
490
  margin: 0;
499
491
  padding: 0;
@@ -672,43 +664,6 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
672
664
  -o-page-break-inside: avoid;
673
665
  page-break-inside: avoid;
674
666
  }
675
- .tsd-index-panel a,
676
- .tsd-index-panel a.tsd-parent-kind-module {
677
- color: var(--color-ts);
678
- }
679
- .tsd-index-panel a.tsd-parent-kind-interface {
680
- color: var(--color-ts-interface);
681
- }
682
- .tsd-index-panel a.tsd-parent-kind-enum {
683
- color: var(--color-ts-enum);
684
- }
685
- .tsd-index-panel a.tsd-parent-kind-class {
686
- color: var(--color-ts-class);
687
- }
688
- .tsd-index-panel a.tsd-kind-module {
689
- color: var(--color-ts-namespace);
690
- }
691
- .tsd-index-panel a.tsd-kind-interface {
692
- color: var(--color-ts-interface);
693
- }
694
- .tsd-index-panel a.tsd-kind-enum {
695
- color: var(--color-ts-enum);
696
- }
697
- .tsd-index-panel a.tsd-kind-class {
698
- color: var(--color-ts-class);
699
- }
700
- .tsd-index-panel a.tsd-kind-function {
701
- color: var(--color-ts-function);
702
- }
703
- .tsd-index-panel a.tsd-kind-namespace {
704
- color: var(--color-ts-namespace);
705
- }
706
- .tsd-index-panel a.tsd-kind-variable {
707
- color: var(--color-ts-variable);
708
- }
709
- .tsd-index-panel a.tsd-is-private {
710
- color: var(--color-ts-private);
711
- }
712
667
 
713
668
  .tsd-flag {
714
669
  display: inline-block;
@@ -723,7 +678,7 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
723
678
  }
724
679
 
725
680
  .tsd-anchor {
726
- position: absolute;
681
+ position: relative;
727
682
  top: -100px;
728
683
  }
729
684
 
@@ -737,108 +692,64 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
737
692
  margin-bottom: 0;
738
693
  border-bottom: none;
739
694
  }
740
- .tsd-member [data-tsd-kind] {
741
- color: var(--color-ts);
742
- }
743
- .tsd-member [data-tsd-kind="Interface"] {
744
- color: var(--color-ts-interface);
745
- }
746
- .tsd-member [data-tsd-kind="Enum"] {
747
- color: var(--color-ts-enum);
748
- }
749
- .tsd-member [data-tsd-kind="Class"] {
750
- color: var(--color-ts-class);
695
+
696
+ .tsd-navigation.settings {
697
+ margin: 1rem 0;
751
698
  }
752
- .tsd-member [data-tsd-kind="Private"] {
753
- color: var(--color-ts-private);
699
+ .tsd-navigation > a,
700
+ .tsd-navigation .tsd-accordion-summary {
701
+ width: calc(100% - 0.5rem);
754
702
  }
755
-
756
- .tsd-navigation a {
757
- display: block;
758
- margin: 0.4rem 0;
759
- border-left: 2px solid transparent;
703
+ .tsd-navigation a,
704
+ .tsd-navigation summary > span,
705
+ .tsd-page-navigation a {
706
+ display: inline-flex;
707
+ align-items: center;
708
+ padding: 0.25rem;
760
709
  color: var(--color-text);
761
710
  text-decoration: none;
762
- transition: border-left-color 0.1s;
711
+ box-sizing: border-box;
712
+ }
713
+ .tsd-navigation a.current,
714
+ .tsd-page-navigation a.current {
715
+ background: var(--color-active-menu-item);
763
716
  }
764
- .tsd-navigation a:hover {
717
+ .tsd-navigation a:hover,
718
+ .tsd-page-navigation a:hover {
765
719
  text-decoration: underline;
766
720
  }
767
- .tsd-navigation ul {
768
- margin: 0;
721
+ .tsd-navigation ul,
722
+ .tsd-page-navigation ul {
723
+ margin-top: 0;
724
+ margin-bottom: 0;
769
725
  padding: 0;
770
726
  list-style: none;
771
727
  }
772
- .tsd-navigation li {
728
+ .tsd-navigation li,
729
+ .tsd-page-navigation li {
773
730
  padding: 0;
731
+ max-width: 100%;
774
732
  }
775
-
776
- .tsd-navigation.primary .tsd-accordion-details > ul {
777
- margin-top: 0.75rem;
778
- }
779
- .tsd-navigation.primary a {
780
- padding: 0.75rem 0.5rem;
781
- margin: 0;
733
+ .tsd-nested-navigation {
734
+ margin-left: 3rem;
782
735
  }
783
- .tsd-navigation.primary ul li a {
784
- margin-left: 0.5rem;
736
+ .tsd-nested-navigation > li > details {
737
+ margin-left: -1.5rem;
785
738
  }
786
- .tsd-navigation.primary ul li li a {
739
+ .tsd-small-nested-navigation {
787
740
  margin-left: 1.5rem;
788
741
  }
789
- .tsd-navigation.primary ul li li li a {
790
- margin-left: 2.5rem;
791
- }
792
- .tsd-navigation.primary ul li li li li a {
793
- margin-left: 3.5rem;
794
- }
795
- .tsd-navigation.primary ul li li li li li a {
796
- margin-left: 4.5rem;
797
- }
798
- .tsd-navigation.primary ul li li li li li li a {
799
- margin-left: 5.5rem;
800
- }
801
- .tsd-navigation.primary li.current > a {
802
- border-left: 0.15rem var(--color-text) solid;
803
- }
804
- .tsd-navigation.primary li.selected > a {
805
- font-weight: bold;
806
- border-left: 0.2rem var(--color-text) solid;
807
- }
808
- .tsd-navigation.primary ul li a:hover {
809
- border-left: 0.2rem var(--color-text-aside) solid;
810
- }
811
- .tsd-navigation.primary li.globals + li > span,
812
- .tsd-navigation.primary li.globals + li > a {
813
- padding-top: 20px;
742
+ .tsd-small-nested-navigation > li > details {
743
+ margin-left: -1.5rem;
814
744
  }
815
745
 
816
- .tsd-navigation.secondary.tsd-navigation--toolbar-hide {
817
- max-height: calc(100vh - 1rem);
818
- top: 0.5rem;
819
- }
820
- .tsd-navigation.secondary > ul {
821
- display: inline;
822
- padding-right: 0.5rem;
823
- transition: opacity 0.2s;
746
+ .tsd-nested-navigation > li > a,
747
+ .tsd-nested-navigation > li > span {
748
+ width: calc(100% - 1.75rem - 0.5rem);
824
749
  }
825
- .tsd-navigation.secondary ul li a {
826
- padding-left: 0;
827
- }
828
- .tsd-navigation.secondary ul li li a {
829
- padding-left: 1.1rem;
830
- }
831
- .tsd-navigation.secondary ul li li li a {
832
- padding-left: 2.2rem;
833
- }
834
- .tsd-navigation.secondary ul li li li li a {
835
- padding-left: 3.3rem;
836
- }
837
- .tsd-navigation.secondary ul li li li li li a {
838
- padding-left: 4.4rem;
839
- }
840
- .tsd-navigation.secondary ul li li li li li li a {
841
- padding-left: 5.5rem;
750
+
751
+ .tsd-page-navigation ul {
752
+ padding-left: 1.75rem;
842
753
  }
843
754
 
844
755
  #tsd-sidebar-links a {
@@ -851,41 +762,38 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
851
762
  }
852
763
 
853
764
  a.tsd-index-link {
854
- margin: 0.25rem 0;
765
+ padding: 0.25rem 0 !important;
855
766
  font-size: 1rem;
856
767
  line-height: 1.25rem;
857
768
  display: inline-flex;
858
769
  align-items: center;
770
+ color: var(--color-text);
859
771
  }
860
- .tsd-accordion-summary > h1,
861
- .tsd-accordion-summary > h2,
862
- .tsd-accordion-summary > h3,
863
- .tsd-accordion-summary > h4,
864
- .tsd-accordion-summary > h5 {
865
- display: inline-flex;
772
+ .tsd-accordion-summary {
773
+ list-style-type: none;
774
+ display: flex;
866
775
  align-items: center;
867
- vertical-align: middle;
868
- margin-bottom: 0;
776
+ }
777
+ .tsd-accordion-summary,
778
+ .tsd-accordion-summary a {
869
779
  user-select: none;
870
780
  -moz-user-select: none;
871
781
  -webkit-user-select: none;
872
782
  -ms-user-select: none;
873
- }
874
- .tsd-accordion-summary {
875
- display: block;
783
+
876
784
  cursor: pointer;
877
785
  }
786
+ .tsd-accordion-summary a {
787
+ flex-grow: 1;
788
+ }
878
789
  .tsd-accordion-summary > * {
879
790
  margin-top: 0;
880
791
  margin-bottom: 0;
881
792
  padding-top: 0;
882
793
  padding-bottom: 0;
883
794
  }
884
- .tsd-accordion-summary::-webkit-details-marker {
885
- display: none;
886
- }
887
- .tsd-index-accordion .tsd-accordion-summary svg {
888
- margin-right: 0.25rem;
795
+ .tsd-index-accordion .tsd-accordion-summary > svg {
796
+ margin-left: 0.25rem;
889
797
  }
890
798
  .tsd-index-content > :not(:first-child) {
891
799
  margin-top: 0.75rem;
@@ -910,34 +818,6 @@ a.tsd-index-link {
910
818
  margin-right: 0.8rem;
911
819
  }
912
820
 
913
- @media (min-width: 1025px) {
914
- .col-content {
915
- margin: 2rem auto;
916
- }
917
-
918
- .menu-sticky-wrap {
919
- position: sticky;
920
- height: calc(100vh - 2rem);
921
- top: 4rem;
922
- right: 0;
923
- padding: 0 1.5rem;
924
- padding-top: 1rem;
925
- margin-top: 3rem;
926
- transition: 0.3s ease-in-out;
927
- transition-property: top, padding-top, padding, height;
928
- overflow-y: auto;
929
- }
930
- .col-menu {
931
- border-left: 1px solid var(--color-accent);
932
- }
933
- .col-menu--hide {
934
- top: 1rem;
935
- }
936
- .col-menu .tsd-navigation:not(:last-child) {
937
- padding-bottom: 1.75rem;
938
- }
939
- }
940
-
941
821
  .tsd-panel {
942
822
  margin-bottom: 2.5rem;
943
823
  }
@@ -1143,7 +1023,7 @@ ul.tsd-type-parameter-list h5 {
1143
1023
  }
1144
1024
 
1145
1025
  .tsd-page-toolbar {
1146
- position: fixed;
1026
+ position: sticky;
1147
1027
  z-index: 1;
1148
1028
  top: 0;
1149
1029
  left: 0;
@@ -1183,10 +1063,6 @@ ul.tsd-type-parameter-list h5 {
1183
1063
  padding: 12px 0;
1184
1064
  }
1185
1065
 
1186
- .tsd-page-toolbar--hide {
1187
- transform: translateY(-100%);
1188
- }
1189
-
1190
1066
  .tsd-widget {
1191
1067
  display: inline-block;
1192
1068
  overflow: hidden;
@@ -1214,12 +1090,6 @@ ul.tsd-type-parameter-list h5 {
1214
1090
  .tsd-widget.menu {
1215
1091
  display: none;
1216
1092
  }
1217
- @media (max-width: 1024px) {
1218
- .tsd-widget.options,
1219
- .tsd-widget.menu {
1220
- display: inline-block;
1221
- }
1222
- }
1223
1093
  input[type="checkbox"] + .tsd-widget:before {
1224
1094
  background-position: -120px 0;
1225
1095
  }
@@ -1259,6 +1129,78 @@ img {
1259
1129
  background: var(--color-background-warning);
1260
1130
  }
1261
1131
 
1132
+ .tsd-kind-project {
1133
+ color: var(--color-ts-project);
1134
+ }
1135
+ .tsd-kind-module {
1136
+ color: var(--color-ts-module);
1137
+ }
1138
+ .tsd-kind-namespace {
1139
+ color: var(--color-ts-namespace);
1140
+ }
1141
+ .tsd-kind-enum {
1142
+ color: var(--color-ts-enum);
1143
+ }
1144
+ .tsd-kind-enum-member {
1145
+ color: var(--color-ts-enum-member);
1146
+ }
1147
+ .tsd-kind-variable {
1148
+ color: var(--color-ts-variable);
1149
+ }
1150
+ .tsd-kind-function {
1151
+ color: var(--color-ts-function);
1152
+ }
1153
+ .tsd-kind-class {
1154
+ color: var(--color-ts-class);
1155
+ }
1156
+ .tsd-kind-interface {
1157
+ color: var(--color-ts-interface);
1158
+ }
1159
+ .tsd-kind-constructor {
1160
+ color: var(--color-ts-constructor);
1161
+ }
1162
+ .tsd-kind-property {
1163
+ color: var(--color-ts-property);
1164
+ }
1165
+ .tsd-kind-method {
1166
+ color: var(--color-ts-method);
1167
+ }
1168
+ .tsd-kind-call-signature {
1169
+ color: var(--color-ts-call-signature);
1170
+ }
1171
+ .tsd-kind-index-signature {
1172
+ color: var(--color-ts-index-signature);
1173
+ }
1174
+ .tsd-kind-constructor-signature {
1175
+ color: var(--color-ts-constructor-signature);
1176
+ }
1177
+ .tsd-kind-parameter {
1178
+ color: var(--color-ts-parameter);
1179
+ }
1180
+ .tsd-kind-type-literal {
1181
+ color: var(--color-ts-type-literal);
1182
+ }
1183
+ .tsd-kind-type-parameter {
1184
+ color: var(--color-ts-type-parameter);
1185
+ }
1186
+ .tsd-kind-accessor {
1187
+ color: var(--color-ts-accessor);
1188
+ }
1189
+ .tsd-kind-get-signature {
1190
+ color: var(--color-ts-get-signature);
1191
+ }
1192
+ .tsd-kind-set-signature {
1193
+ color: var(--color-ts-set-signature);
1194
+ }
1195
+ .tsd-kind-type-alias {
1196
+ color: var(--color-ts-type-alias);
1197
+ }
1198
+
1199
+ /* if we have a kind icon, don't color the text by kind */
1200
+ .tsd-kind-icon ~ span {
1201
+ color: var(--color-text);
1202
+ }
1203
+
1262
1204
  * {
1263
1205
  scrollbar-width: thin;
1264
1206
  scrollbar-color: var(--color-accent) var(--color-icon-background);
@@ -1277,3 +1219,147 @@ img {
1277
1219
  border-radius: 999rem;
1278
1220
  border: 0.25rem solid var(--color-icon-background);
1279
1221
  }
1222
+
1223
+ /* mobile */
1224
+ @media (max-width: 769px) {
1225
+ .tsd-widget.options,
1226
+ .tsd-widget.menu {
1227
+ display: inline-block;
1228
+ }
1229
+
1230
+ .container-main {
1231
+ display: flex;
1232
+ }
1233
+ html .col-content {
1234
+ float: none;
1235
+ max-width: 100%;
1236
+ width: 100%;
1237
+ }
1238
+ html .col-sidebar {
1239
+ position: fixed !important;
1240
+ overflow-y: auto;
1241
+ -webkit-overflow-scrolling: touch;
1242
+ z-index: 1024;
1243
+ top: 0 !important;
1244
+ bottom: 0 !important;
1245
+ left: auto !important;
1246
+ right: 0 !important;
1247
+ padding: 1.5rem 1.5rem 0 0;
1248
+ width: 75vw;
1249
+ visibility: hidden;
1250
+ background-color: var(--color-background);
1251
+ transform: translate(100%, 0);
1252
+ }
1253
+ html .col-sidebar > *:last-child {
1254
+ padding-bottom: 20px;
1255
+ }
1256
+ html .overlay {
1257
+ content: "";
1258
+ display: block;
1259
+ position: fixed;
1260
+ z-index: 1023;
1261
+ top: 0;
1262
+ left: 0;
1263
+ right: 0;
1264
+ bottom: 0;
1265
+ background-color: rgba(0, 0, 0, 0.75);
1266
+ visibility: hidden;
1267
+ }
1268
+
1269
+ .to-has-menu .overlay {
1270
+ animation: fade-in 0.4s;
1271
+ }
1272
+
1273
+ .to-has-menu .col-sidebar {
1274
+ animation: pop-in-from-right 0.4s;
1275
+ }
1276
+
1277
+ .from-has-menu .overlay {
1278
+ animation: fade-out 0.4s;
1279
+ }
1280
+
1281
+ .from-has-menu .col-sidebar {
1282
+ animation: pop-out-to-right 0.4s;
1283
+ }
1284
+
1285
+ .has-menu body {
1286
+ overflow: hidden;
1287
+ }
1288
+ .has-menu .overlay {
1289
+ visibility: visible;
1290
+ }
1291
+ .has-menu .col-sidebar {
1292
+ visibility: visible;
1293
+ transform: translate(0, 0);
1294
+ display: flex;
1295
+ flex-direction: column;
1296
+ gap: 1.5rem;
1297
+ max-height: 100vh;
1298
+ padding: 1rem 2rem;
1299
+ }
1300
+ .has-menu .tsd-navigation {
1301
+ max-height: 100%;
1302
+ }
1303
+ }
1304
+
1305
+ /* one sidebar */
1306
+ @media (min-width: 770px) {
1307
+ .container-main {
1308
+ display: grid;
1309
+ grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
1310
+ grid-template-areas: "sidebar content";
1311
+ margin: 2rem auto;
1312
+ }
1313
+
1314
+ .col-sidebar {
1315
+ grid-area: sidebar;
1316
+ }
1317
+ .col-content {
1318
+ grid-area: content;
1319
+ padding: 0 1rem;
1320
+ }
1321
+ }
1322
+ @media (min-width: 770px) and (max-width: 1399px) {
1323
+ .col-sidebar {
1324
+ max-height: calc(100vh - 2rem - 42px);
1325
+ overflow: auto;
1326
+ position: sticky;
1327
+ top: 42px;
1328
+ padding-top: 1rem;
1329
+ }
1330
+ .site-menu {
1331
+ margin-top: 1rem;
1332
+ }
1333
+ }
1334
+
1335
+ /* two sidebars */
1336
+ @media (min-width: 1200px) {
1337
+ .container-main {
1338
+ grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 20rem);
1339
+ grid-template-areas: "sidebar content toc";
1340
+ }
1341
+
1342
+ .col-sidebar {
1343
+ display: contents;
1344
+ }
1345
+
1346
+ .page-menu {
1347
+ grid-area: toc;
1348
+ padding-left: 1rem;
1349
+ }
1350
+ .site-menu {
1351
+ grid-area: sidebar;
1352
+ }
1353
+
1354
+ .site-menu {
1355
+ margin-top: 1rem 0;
1356
+ }
1357
+
1358
+ .page-menu,
1359
+ .site-menu {
1360
+ max-height: calc(100vh - 2rem - 42px);
1361
+ overflow: auto;
1362
+ position: sticky;
1363
+ top: 42px;
1364
+ }
1365
+ }