@tencentcloud/trtc-cloud-wx 1.0.8 → 1.0.9-beta.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 (56) hide show
  1. package/.babelrc +6 -0
  2. package/.eslintrc.json +129 -0
  3. package/build/chokidar.js +19 -0
  4. package/build/clear.js +24 -0
  5. package/build/copy.js +24 -0
  6. package/build/copy_to_roomkit.js +19 -0
  7. package/dist/package.json +14 -0
  8. package/{trtc-cloud-wx.js → dist/trtc-cloud-wx.js} +15 -5
  9. package/docs/API/TRTCCloud.html +4353 -0
  10. package/docs/API/index.html +98 -0
  11. package/docs/API/scripts/add-toc.js +57 -0
  12. package/docs/API/scripts/collapse.js +20 -0
  13. package/docs/API/scripts/highlight/highlight.min.js +1282 -0
  14. package/docs/API/scripts/highlight/highlightjs-line-numbers.min.js +1 -0
  15. package/docs/API/scripts/linenumber.js +25 -0
  16. package/docs/API/scripts/nav.js +12 -0
  17. package/docs/API/scripts/polyfill.js +4 -0
  18. package/docs/API/scripts/prettify/Apache-License-2.0.txt +202 -0
  19. package/docs/API/scripts/prettify/lang-css.js +2 -0
  20. package/docs/API/scripts/prettify/prettify.js +28 -0
  21. package/docs/API/scripts/search.js +83 -0
  22. package/docs/API/styles/font.css +81 -0
  23. package/docs/API/styles/fonts/JTURjIg1_i6t8kCHKm45_dJE3g3D_vx3rCubqg.woff2 +0 -0
  24. package/docs/API/styles/fonts/JTURjIg1_i6t8kCHKm45_dJE3gTD_vx3rCubqg.woff2 +0 -0
  25. package/docs/API/styles/fonts/JTURjIg1_i6t8kCHKm45_dJE3gbD_vx3rCubqg.woff2 +0 -0
  26. package/docs/API/styles/fonts/JTURjIg1_i6t8kCHKm45_dJE3gfD_vx3rCubqg.woff2 +0 -0
  27. package/docs/API/styles/fonts/JTURjIg1_i6t8kCHKm45_dJE3gnD_vx3rCs.woff2 +0 -0
  28. package/docs/API/styles/fonts/JTUSjIg1_i6t8kCHKm459W1hyyTh89ZNpQ.woff2 +0 -0
  29. package/docs/API/styles/fonts/JTUSjIg1_i6t8kCHKm459WRhyyTh89ZNpQ.woff2 +0 -0
  30. package/docs/API/styles/fonts/JTUSjIg1_i6t8kCHKm459WZhyyTh89ZNpQ.woff2 +0 -0
  31. package/docs/API/styles/fonts/JTUSjIg1_i6t8kCHKm459WdhyyTh89ZNpQ.woff2 +0 -0
  32. package/docs/API/styles/fonts/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2 +0 -0
  33. package/docs/API/styles/highlight/highlight.min.css +26 -0
  34. package/docs/API/styles/highlight/rainbow.min.css +1 -0
  35. package/docs/API/styles/jsdoc.css +684 -0
  36. package/docs/API/styles/prettify.css +79 -0
  37. package/docs/API/styles/toc.css +44 -0
  38. package/docs/API/tutorial-00-guideline.html +81 -0
  39. package/docs/doc-src/home.md +7 -0
  40. package/docs/doc-src/tutorials/00-guideline.md +1 -0
  41. package/docs/doc-src/tutorials/tutorials.json +5 -0
  42. package/jsdoc.json +43 -0
  43. package/package.json +40 -2
  44. package/rollup.config.js +19 -0
  45. package/sdk_publish.bash +5 -0
  46. package/src/TaskMachine.ts +371 -0
  47. package/src/index.ts +1184 -0
  48. package/src/interface/index.ts +45 -0
  49. package/src/interface/types.ts +95 -0
  50. package/src/log/logger.ts +80 -0
  51. package/src/types.d.ts +1 -0
  52. package/src/utils/common.ts +50 -0
  53. package/src/utils/index.ts +2 -0
  54. package/src/utils/translate.ts +139 -0
  55. package/tsconfig.json +15 -0
  56. package/typedoc.json +21 -0
@@ -0,0 +1,684 @@
1
+ @import url(font.css);
2
+
3
+ * {
4
+ box-sizing: border-box
5
+ }
6
+
7
+ html, body {
8
+ height: 100%;
9
+ width: 100%;
10
+ }
11
+
12
+ body {
13
+ color: #4d4e53;
14
+ background-color: white;
15
+ margin: 0 auto;
16
+ padding: 0 20px;
17
+ font-family: 'Helvetica Neue', Helvetica, sans-serif;
18
+ font-size: 16px;
19
+ }
20
+
21
+ img {
22
+ max-width: 100%;
23
+ }
24
+
25
+ a,
26
+ a:active {
27
+ color: #00a4ff;
28
+ text-decoration: none;
29
+ }
30
+
31
+ a:hover {
32
+ text-decoration: none;
33
+ }
34
+
35
+ article a {
36
+ border-bottom: 1px solid #ddd;
37
+ }
38
+
39
+ article a:hover, article a:active {
40
+ border-bottom-color: #222;
41
+ }
42
+
43
+ article .description a {
44
+ word-break: break-word;
45
+ }
46
+
47
+ p, ul, ol, blockquote {
48
+ margin-bottom: 1em;
49
+ line-height: 160%;
50
+ }
51
+
52
+ h1, h2, h3, h4, h5, h6 {
53
+ font-family: 'Montserrat', sans-serif;
54
+ }
55
+
56
+ h1, h2, h3, h4, h5, h6 {
57
+ color: #000;
58
+ font-weight: 500;
59
+ margin: 0;
60
+ }
61
+
62
+ h1 {
63
+ font-size: 38px;
64
+ margin: 1em 0 .5em;
65
+ }
66
+
67
+ h1.page-title {
68
+ font-size: 38px;
69
+ margin: 1em 30px;
70
+ line-height: 100%;
71
+ word-wrap: break-word;
72
+ }
73
+
74
+ h2 {
75
+ font-size: 30px;
76
+ margin: 1.5em 0 .3em;
77
+ }
78
+
79
+ h3 {
80
+ font-size: 24px;
81
+ margin: 1.2em 0 .3em;
82
+ }
83
+
84
+ h4 {
85
+ font-size: 20px;
86
+ margin: 1em 0 .2em;
87
+ color: #4d4e53;
88
+ }
89
+
90
+ h4.name {
91
+ color: #fff;
92
+ background-color: #00a4ff;
93
+ box-shadow: 0 .25em .5em #d3d3d3;
94
+ border-top: 1px solid #d3d3d3;
95
+ border-bottom: 1px solid #d3d3d3;
96
+ margin: 1.5em 0 0.5em;
97
+ padding: .75em 0 .75em 10px;
98
+ }
99
+
100
+ h4.name a {
101
+ color: #ffdb00;
102
+ }
103
+
104
+ h4.name a:hover {
105
+ border-bottom-color: #222;
106
+ }
107
+
108
+ h5, .container-overview .subsection-title {
109
+ font-size: 120%;
110
+ letter-spacing: -0.01em;
111
+ margin: 8px 0 3px 0;
112
+ }
113
+
114
+ h6 {
115
+ font-size: 100%;
116
+ letter-spacing: -0.01em;
117
+ margin: 6px 0 3px 0;
118
+ font-style: italic;
119
+ }
120
+
121
+ tt, code, kbd, samp {
122
+ font-family: Consolas, Monaco, sans-serif, 'Andale Mono', monospace;
123
+ background: #f4f4f4;
124
+ padding: 1px 5px;
125
+ }
126
+
127
+ .class-description {
128
+ font-size: 130%;
129
+ line-height: 140%;
130
+ margin-bottom: 1em;
131
+ margin-top: 1em;
132
+ }
133
+
134
+ .class-description:empty {
135
+ margin: 0
136
+ }
137
+
138
+ #main {
139
+ float: right;
140
+ min-width: 360px;
141
+ width: calc(100% - 240px);
142
+ }
143
+
144
+ header {
145
+ display: block
146
+ }
147
+
148
+ section {
149
+ display: block;
150
+ background-color: #fff;
151
+ padding: 0 0 0 30px;
152
+ }
153
+
154
+ .variation {
155
+ display: none
156
+ }
157
+
158
+ .signature-attributes {
159
+ font-size: 60%;
160
+ color: #eee;
161
+ font-style: italic;
162
+ font-weight: lighter;
163
+ }
164
+
165
+ nav {
166
+ float: left;
167
+ display: block;
168
+ width: 250px;
169
+ background: #fff;
170
+ overflow: auto;
171
+ position: fixed;
172
+ height: 100%;
173
+ }
174
+
175
+ nav #nav-search{
176
+ width: 210px;
177
+ height: 30px;
178
+ padding: 5px 10px;
179
+ font-size: 12px;
180
+ line-height: 1.5;
181
+ border-radius: 3px;
182
+ margin-right: 20px;
183
+ margin-top: 20px;
184
+ }
185
+
186
+ nav.wrap a{
187
+ word-wrap: break-word;
188
+ }
189
+
190
+ nav h3 {
191
+ margin-top: 12px;
192
+ font-size: 16px;
193
+ text-transform: uppercase;
194
+ letter-spacing: 1px;
195
+ font-weight: 700;
196
+ line-height: 24px;
197
+ margin: 15px 0 10px;
198
+ padding: 0;
199
+ color: #000;
200
+ }
201
+
202
+ nav ul {
203
+ font-family: 'Lucida Grande', 'Lucida Sans Unicode', arial, sans-serif;
204
+ font-size: 100%;
205
+ line-height: 17px;
206
+ padding: 0;
207
+ margin: 0;
208
+ list-style-type: none;
209
+ }
210
+
211
+ nav ul a,
212
+ nav ul a:active {
213
+ font-family: 'Montserrat', sans-serif;
214
+ line-height: 26px;
215
+ padding: 0;
216
+ display: block;
217
+ font-size: 14px;
218
+ }
219
+
220
+ nav a:hover,
221
+ nav a:active {
222
+ color: #00a4ff;
223
+ }
224
+
225
+ nav > ul {
226
+ padding: 0 10px;
227
+ }
228
+
229
+ nav > ul > li > a {
230
+ color: #000;
231
+ font-weight: bold;
232
+ margin-top: 10px;
233
+ }
234
+
235
+ nav ul ul a {
236
+ /* color: hsl(207, 1%, 60%); */
237
+ color: #000;
238
+ border-left: 1px solid hsl(207, 10%, 86%);
239
+ }
240
+
241
+ nav ul ul a,
242
+ nav ul ul a:active {
243
+ padding-left: 20px
244
+ }
245
+
246
+ nav h2 {
247
+ font-size: 16px;
248
+ margin: 10px 0 0 0;
249
+ padding: 0;
250
+ }
251
+
252
+ nav > h2 > a {
253
+ margin: 10px 0 -10px;
254
+ color: #000 !important;
255
+ font-weight: bold;
256
+ }
257
+
258
+ nav ul ul li .nav-separator{
259
+ /* padding-left: 20px; */
260
+ /* color: #000; */
261
+ color: hsl(207, 1%, 60%);
262
+ font-size: 12px;
263
+ border-left: 1px solid hsl(207, 10%, 86%);
264
+ }
265
+
266
+ footer {
267
+ color: hsl(0, 0%, 28%);
268
+ margin-left: 250px;
269
+ display: block;
270
+ padding: 15px;
271
+ font-style: italic;
272
+ font-size: 90%;
273
+ }
274
+
275
+ .ancestors {
276
+ color: #999
277
+ }
278
+
279
+ .ancestors a {
280
+ color: #999 !important;
281
+ }
282
+
283
+ .clear {
284
+ clear: both
285
+ }
286
+
287
+ .important {
288
+ font-weight: bold;
289
+ color: #950B02;
290
+ }
291
+
292
+ .yes-def {
293
+ text-indent: -1000px
294
+ }
295
+
296
+ .type-signature {
297
+ color: #ffdb00
298
+ }
299
+
300
+ .type-signature:last-child {
301
+ color: #eee;
302
+ }
303
+
304
+ .name, .signature {
305
+ font-family: Consolas, Monaco, 'Andale Mono', monospace
306
+ }
307
+
308
+ .signature {
309
+ color: #ffdb00;
310
+ }
311
+
312
+ .details {
313
+ margin-top: 6px;
314
+ border-left: 2px solid #DDD;
315
+ line-height: 20px;
316
+ font-size: 14px;
317
+ }
318
+
319
+ .details dt {
320
+ width: auto;
321
+ float: left;
322
+ padding-left: 10px;
323
+ }
324
+
325
+ .details dd {
326
+ margin-left: 70px;
327
+ margin-top: 6px;
328
+ margin-bottom: 6px;
329
+ }
330
+
331
+ .details ul {
332
+ margin: 0
333
+ }
334
+
335
+ .details ul {
336
+ list-style-type: none
337
+ }
338
+
339
+ .details pre.prettyprint {
340
+ margin: 0
341
+ }
342
+
343
+ .details .object-value {
344
+ padding-top: 0
345
+ }
346
+
347
+ .description {
348
+ margin-bottom: 1em;
349
+ margin-top: 1em;
350
+ }
351
+
352
+ .code-caption {
353
+ font-style: italic;
354
+ font-size: 107%;
355
+ margin: 0;
356
+ }
357
+
358
+ .prettyprint {
359
+ font-size: 14px;
360
+ overflow: auto;
361
+ }
362
+
363
+ .prettyprint.source {
364
+ line-height: 18px;
365
+ display: block;
366
+ background-color: #0d152a;
367
+ color: #aeaeae;
368
+ }
369
+
370
+ .prettyprint code {
371
+ line-height: 18px;
372
+ display: block;
373
+ background-color: #0d152a;
374
+ color: #4D4E53;
375
+ }
376
+
377
+ .prettyprint > code {
378
+ padding: 15px;
379
+ }
380
+
381
+ .prettyprint .linenums code {
382
+ padding: 0 15px
383
+ }
384
+
385
+ .prettyprint .linenums li:first-of-type code {
386
+ padding-top: 15px
387
+ }
388
+
389
+ .prettyprint .linenums li:last-of-type code {
390
+ padding-bottom: 15px;
391
+ }
392
+
393
+ .prettyprint code span.line {
394
+ display: inline-block
395
+ }
396
+
397
+ .prettyprint.linenums {
398
+ padding-left: 60px;
399
+ -webkit-user-select: none;
400
+ -moz-user-select: none;
401
+ -ms-user-select: none;
402
+ user-select: none;
403
+ }
404
+
405
+ .prettyprint.linenums ol {
406
+ padding-left: 0
407
+ }
408
+
409
+ .prettyprint.linenums li {
410
+ border-left: 3px #34446B solid;
411
+ }
412
+
413
+ .prettyprint.linenums li.selected, .prettyprint.linenums li.selected * {
414
+ background-color: #34446B;
415
+ }
416
+
417
+ .prettyprint.linenums li * {
418
+ -webkit-user-select: text;
419
+ -moz-user-select: text;
420
+ -ms-user-select: text;
421
+ user-select: text;
422
+ }
423
+
424
+ table {
425
+ border-spacing: 0;
426
+ border: 1px solid #ddd;
427
+ border-collapse: collapse;
428
+ border-radius: 3px;
429
+ box-shadow: 0 1px 3px rgba(0,0,0,0.1);
430
+ width: 100%;
431
+ font-size: 14px;
432
+ margin: 1em 0;
433
+ }
434
+
435
+ td, th {
436
+ margin: 0px;
437
+ text-align: left;
438
+ vertical-align: top;
439
+ padding: 10px;
440
+ display: table-cell;
441
+ }
442
+
443
+ thead tr, thead tr {
444
+ background-color: #fff;
445
+ font-weight: bold;
446
+ border-bottom: 1px solid #ddd;
447
+ }
448
+
449
+ .params .type {
450
+ white-space: nowrap;
451
+ }
452
+
453
+ .params code {
454
+ white-space: pre;
455
+ }
456
+
457
+ .params td, .params .name, .props .name, .name code {
458
+ color: #4D4E53;
459
+ font-family: Consolas, Monaco, sans-serif, 'Andale Mono', monospace;
460
+ font-size: 100%;
461
+ }
462
+
463
+ .params td {
464
+ border-top: 1px solid #eee
465
+ }
466
+
467
+ .params td.description > p:first-child, .props td.description > p:first-child {
468
+ margin-top: 0;
469
+ padding-top: 0;
470
+ }
471
+
472
+ .params td.description > p:last-child, .props td.description > p:last-child {
473
+ margin-bottom: 0;
474
+ padding-bottom: 0;
475
+ }
476
+
477
+ span.param-type, .params td .param-type, .param-type dd {
478
+ color: #f00;
479
+ font-family: Consolas, Monaco, sans-serif, 'Andale Mono', monospace
480
+ }
481
+
482
+ .param-type dt, .param-type dd {
483
+ display: inline-block
484
+ }
485
+
486
+ .param-type {
487
+ margin: 14px 0;
488
+ }
489
+
490
+ .disabled {
491
+ color: #454545
492
+ }
493
+
494
+ /* navicon button */
495
+ .navicon-button {
496
+ display: none;
497
+ position: relative;
498
+ padding: 2.0625rem 1.5rem;
499
+ transition: 0.25s;
500
+ cursor: pointer;
501
+ -webkit-user-select: none;
502
+ -moz-user-select: none;
503
+ -ms-user-select: none;
504
+ user-select: none;
505
+ opacity: .8;
506
+ }
507
+ .navicon-button .navicon:before, .navicon-button .navicon:after {
508
+ transition: 0.25s;
509
+ }
510
+ .navicon-button:hover {
511
+ transition: 0.5s;
512
+ opacity: 1;
513
+ }
514
+ .navicon-button:hover .navicon:before, .navicon-button:hover .navicon:after {
515
+ transition: 0.25s;
516
+ }
517
+ .navicon-button:hover .navicon:before {
518
+ top: .825rem;
519
+ }
520
+ .navicon-button:hover .navicon:after {
521
+ top: -.825rem;
522
+ }
523
+
524
+ /* navicon */
525
+ .navicon {
526
+ position: relative;
527
+ width: 2.5em;
528
+ height: .3125rem;
529
+ background: #000;
530
+ transition: 0.3s;
531
+ border-radius: 2.5rem;
532
+ }
533
+ .navicon:before, .navicon:after {
534
+ display: block;
535
+ content: "";
536
+ height: .3125rem;
537
+ width: 2.5rem;
538
+ background: #000;
539
+ position: absolute;
540
+ z-index: -1;
541
+ transition: 0.3s 0.25s;
542
+ border-radius: 1rem;
543
+ }
544
+ .navicon:before {
545
+ top: .625rem;
546
+ }
547
+ .navicon:after {
548
+ top: -.625rem;
549
+ }
550
+
551
+ /* open */
552
+ .nav-trigger:checked + label:not(.steps) .navicon:before,
553
+ .nav-trigger:checked + label:not(.steps) .navicon:after {
554
+ top: 0 !important;
555
+ }
556
+
557
+ .nav-trigger:checked + label .navicon:before,
558
+ .nav-trigger:checked + label .navicon:after {
559
+ transition: 0.5s;
560
+ }
561
+
562
+ /* Minus */
563
+ .nav-trigger:checked + label {
564
+ -webkit-transform: scale(0.75);
565
+ transform: scale(0.75);
566
+ }
567
+
568
+ /* × and + */
569
+ .nav-trigger:checked + label.plus .navicon,
570
+ .nav-trigger:checked + label.x .navicon {
571
+ background: transparent;
572
+ }
573
+
574
+ .nav-trigger:checked + label.plus .navicon:before,
575
+ .nav-trigger:checked + label.x .navicon:before {
576
+ -webkit-transform: rotate(-45deg);
577
+ transform: rotate(-45deg);
578
+ background: #FFF;
579
+ }
580
+
581
+ .nav-trigger:checked + label.plus .navicon:after,
582
+ .nav-trigger:checked + label.x .navicon:after {
583
+ -webkit-transform: rotate(45deg);
584
+ transform: rotate(45deg);
585
+ background: #FFF;
586
+ }
587
+
588
+ .nav-trigger:checked + label.plus {
589
+ -webkit-transform: scale(0.75) rotate(45deg);
590
+ transform: scale(0.75) rotate(45deg);
591
+ }
592
+
593
+ .nav-trigger:checked ~ nav {
594
+ left: 0 !important;
595
+ }
596
+
597
+ .nav-trigger:checked ~ .overlay {
598
+ display: block;
599
+ }
600
+
601
+ .nav-trigger {
602
+ position: fixed;
603
+ top: 0;
604
+ clip: rect(0, 0, 0, 0);
605
+ }
606
+
607
+ .overlay {
608
+ display: none;
609
+ position: fixed;
610
+ top: 0;
611
+ bottom: 0;
612
+ left: 0;
613
+ right: 0;
614
+ width: 100%;
615
+ height: 100%;
616
+ background: hsla(0, 0%, 0%, 0.5);
617
+ z-index: 1;
618
+ }
619
+
620
+ /* nav level */
621
+ .level-hide {
622
+ display: none;
623
+ }
624
+ html[data-search-mode] .level-hide {
625
+ display: block;
626
+ }
627
+
628
+
629
+ @media only screen and (min-width: 320px) and (max-width: 680px) {
630
+ body {
631
+ overflow-x: hidden;
632
+ }
633
+
634
+ nav {
635
+ background: #FFF;
636
+ width: 250px;
637
+ height: 100%;
638
+ position: fixed;
639
+ top: 0;
640
+ right: 0;
641
+ bottom: 0;
642
+ left: -250px;
643
+ z-index: 3;
644
+ padding: 0 10px;
645
+ transition: left 0.2s;
646
+ }
647
+
648
+ .navicon-button {
649
+ display: inline-block;
650
+ position: fixed;
651
+ top: 1.5em;
652
+ right: 0;
653
+ z-index: 2;
654
+ }
655
+
656
+ #main {
657
+ width: 100%;
658
+ min-width: 360px;
659
+ }
660
+
661
+ #main h1.page-title {
662
+ margin: 1em 0;
663
+ }
664
+
665
+ #main section {
666
+ padding: 0;
667
+ }
668
+
669
+ footer {
670
+ margin-left: 0;
671
+ }
672
+ }
673
+
674
+ /** Add a '#' to static members */
675
+ [data-type="member"] a::before {
676
+ content: '#';
677
+ /* display: inline-block; */
678
+ margin-left: -14px;
679
+ margin-right: 5px;
680
+ }
681
+
682
+ #disqus_thread{
683
+ margin-left: 30px;
684
+ }