@tivio/sdk-react 2.1.0 → 2.1.1-alpha1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +3 -0
- package/coverage/clover.xml +113 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +79 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +126 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +170 -0
- package/coverage/lcov-report/src/components/TivioProvider.tsx.html +227 -0
- package/coverage/lcov-report/src/components/TivioWidget.tsx.html +203 -0
- package/coverage/lcov-report/src/components/TivioWidgetError.tsx.html +122 -0
- package/coverage/lcov-report/src/components/TivioWidgetLoader.tsx.html +116 -0
- package/coverage/lcov-report/src/components/index.html +156 -0
- package/coverage/lcov-report/src/conf.ts.html +239 -0
- package/coverage/lcov-report/src/index.html +111 -0
- package/coverage/lcov-report/src/services/bundleLoader.ts.html +698 -0
- package/coverage/lcov-report/src/services/dependencyResolver.ts.html +212 -0
- package/coverage/lcov-report/src/services/index.html +141 -0
- package/coverage/lcov-report/src/services/logger.ts.html +365 -0
- package/coverage/lcov-report/src/services/packageLoader.ts.html +194 -0
- package/coverage/lcov-report/src/services/pubSub.ts.html +242 -0
- package/coverage/lcov-report/src/services/settings.ts.html +218 -0
- package/coverage/lcov-report/src/setupTests.ts.html +158 -0
- package/coverage/lcov.info +175 -0
- package/dist/index.js +1 -1
- package/package.json +5 -4
- package/scripts/prepublish.ts +16 -0
@@ -0,0 +1,122 @@
|
|
1
|
+
|
2
|
+
<!doctype html>
|
3
|
+
<html lang="en">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title>Code coverage report for src/components/TivioWidgetError.tsx</title>
|
7
|
+
<meta charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../prettify.css" />
|
9
|
+
<link rel="stylesheet" href="../../base.css" />
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
12
|
+
<style type='text/css'>
|
13
|
+
.coverage-summary .sorter {
|
14
|
+
background-image: url(../../sort-arrow-sprite.png);
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<div class='wrapper'>
|
21
|
+
<div class='pad1'>
|
22
|
+
<h1><a href="../../index.html">All files</a> / <a href="index.html">src/components</a> TivioWidgetError.tsx</h1>
|
23
|
+
<div class='clearfix'>
|
24
|
+
|
25
|
+
<div class='fl pad1y space-right2'>
|
26
|
+
<span class="strong">75% </span>
|
27
|
+
<span class="quiet">Statements</span>
|
28
|
+
<span class='fraction'>3/4</span>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
|
32
|
+
<div class='fl pad1y space-right2'>
|
33
|
+
<span class="strong">100% </span>
|
34
|
+
<span class="quiet">Branches</span>
|
35
|
+
<span class='fraction'>0/0</span>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
|
39
|
+
<div class='fl pad1y space-right2'>
|
40
|
+
<span class="strong">0% </span>
|
41
|
+
<span class="quiet">Functions</span>
|
42
|
+
<span class='fraction'>0/1</span>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
|
46
|
+
<div class='fl pad1y space-right2'>
|
47
|
+
<span class="strong">66.67% </span>
|
48
|
+
<span class="quiet">Lines</span>
|
49
|
+
<span class='fraction'>2/3</span>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<p class="quiet">
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
56
|
+
</p>
|
57
|
+
</div>
|
58
|
+
<div class='status-line medium'></div>
|
59
|
+
<pre><table class="coverage">
|
60
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
61
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
62
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
63
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
64
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
65
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
66
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
67
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
68
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
69
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
70
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
71
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
72
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
73
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
74
|
+
<a name='L15'></a><a href='#L15'>15</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
75
|
+
<span class="cline-any cline-neutral"> </span>
|
76
|
+
<span class="cline-any cline-neutral"> </span>
|
77
|
+
<span class="cline-any cline-neutral"> </span>
|
78
|
+
<span class="cline-any cline-neutral"> </span>
|
79
|
+
<span class="cline-any cline-yes">2x</span>
|
80
|
+
<span class="cline-any cline-neutral"> </span>
|
81
|
+
<span class="cline-any cline-neutral"> </span>
|
82
|
+
<span class="cline-any cline-neutral"> </span>
|
83
|
+
<span class="cline-any cline-yes">2x</span>
|
84
|
+
<span class="cline-any cline-no"> </span>
|
85
|
+
<span class="cline-any cline-neutral"> </span>
|
86
|
+
<span class="cline-any cline-neutral"> </span>
|
87
|
+
<span class="cline-any cline-neutral"> </span>
|
88
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">/**
|
89
|
+
* Copyright (c) 2021, nangu.TV, a.s. All rights reserved.
|
90
|
+
* nangu.TV, a.s PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
91
|
+
*/
|
92
|
+
|
93
|
+
import React from 'react'
|
94
|
+
|
95
|
+
import type { TivioWidgetErrorProps } from '../types'
|
96
|
+
|
97
|
+
export const TivioWidgetError: React.FC<TivioWidgetErrorProps> = <span class="fstat-no" title="function not covered" >({</span> error }: TivioWidgetErrorProps) => (
|
98
|
+
<span class="cstat-no" title="statement not covered" > <div style={{ backgroundColor: '#d84f92', color: '#fff', padding: '1rem' }}></span>
|
99
|
+
{error}
|
100
|
+
</div>
|
101
|
+
)
|
102
|
+
</pre></td></tr></table></pre>
|
103
|
+
|
104
|
+
<div class='push'></div><!-- for sticky footer -->
|
105
|
+
</div><!-- /wrapper -->
|
106
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
107
|
+
Code coverage generated by
|
108
|
+
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
109
|
+
at Fri Apr 30 2021 12:16:39 GMT+0200 (Central European Summer Time)
|
110
|
+
</div>
|
111
|
+
</div>
|
112
|
+
<script src="../../prettify.js"></script>
|
113
|
+
<script>
|
114
|
+
window.onload = function () {
|
115
|
+
prettyPrint();
|
116
|
+
};
|
117
|
+
</script>
|
118
|
+
<script src="../../sorter.js"></script>
|
119
|
+
<script src="../../block-navigation.js"></script>
|
120
|
+
</body>
|
121
|
+
</html>
|
122
|
+
|
@@ -0,0 +1,116 @@
|
|
1
|
+
|
2
|
+
<!doctype html>
|
3
|
+
<html lang="en">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title>Code coverage report for src/components/TivioWidgetLoader.tsx</title>
|
7
|
+
<meta charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../prettify.css" />
|
9
|
+
<link rel="stylesheet" href="../../base.css" />
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
12
|
+
<style type='text/css'>
|
13
|
+
.coverage-summary .sorter {
|
14
|
+
background-image: url(../../sort-arrow-sprite.png);
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<div class='wrapper'>
|
21
|
+
<div class='pad1'>
|
22
|
+
<h1><a href="../../index.html">All files</a> / <a href="index.html">src/components</a> TivioWidgetLoader.tsx</h1>
|
23
|
+
<div class='clearfix'>
|
24
|
+
|
25
|
+
<div class='fl pad1y space-right2'>
|
26
|
+
<span class="strong">75% </span>
|
27
|
+
<span class="quiet">Statements</span>
|
28
|
+
<span class='fraction'>3/4</span>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
|
32
|
+
<div class='fl pad1y space-right2'>
|
33
|
+
<span class="strong">100% </span>
|
34
|
+
<span class="quiet">Branches</span>
|
35
|
+
<span class='fraction'>0/0</span>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
|
39
|
+
<div class='fl pad1y space-right2'>
|
40
|
+
<span class="strong">0% </span>
|
41
|
+
<span class="quiet">Functions</span>
|
42
|
+
<span class='fraction'>0/1</span>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
|
46
|
+
<div class='fl pad1y space-right2'>
|
47
|
+
<span class="strong">66.67% </span>
|
48
|
+
<span class="quiet">Lines</span>
|
49
|
+
<span class='fraction'>2/3</span>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<p class="quiet">
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
56
|
+
</p>
|
57
|
+
</div>
|
58
|
+
<div class='status-line medium'></div>
|
59
|
+
<pre><table class="coverage">
|
60
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
61
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
62
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
63
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
64
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
65
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
66
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
67
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
68
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
69
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
70
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
71
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
72
|
+
<a name='L13'></a><a href='#L13'>13</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
73
|
+
<span class="cline-any cline-neutral"> </span>
|
74
|
+
<span class="cline-any cline-neutral"> </span>
|
75
|
+
<span class="cline-any cline-neutral"> </span>
|
76
|
+
<span class="cline-any cline-neutral"> </span>
|
77
|
+
<span class="cline-any cline-yes">1x</span>
|
78
|
+
<span class="cline-any cline-neutral"> </span>
|
79
|
+
<span class="cline-any cline-yes">1x</span>
|
80
|
+
<span class="cline-any cline-no"> </span>
|
81
|
+
<span class="cline-any cline-neutral"> </span>
|
82
|
+
<span class="cline-any cline-neutral"> </span>
|
83
|
+
<span class="cline-any cline-neutral"> </span>
|
84
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">/**
|
85
|
+
* Copyright (c) 2021, nangu.TV, a.s. All rights reserved.
|
86
|
+
* nangu.TV, a.s PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
87
|
+
*/
|
88
|
+
|
89
|
+
import React from 'react'
|
90
|
+
|
91
|
+
export const TivioWidgetLoader: React.FC = <span class="fstat-no" title="function not covered" >() =</span>> (
|
92
|
+
<span class="cstat-no" title="statement not covered" > <div></span>
|
93
|
+
loading...
|
94
|
+
</div>
|
95
|
+
)
|
96
|
+
</pre></td></tr></table></pre>
|
97
|
+
|
98
|
+
<div class='push'></div><!-- for sticky footer -->
|
99
|
+
</div><!-- /wrapper -->
|
100
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
101
|
+
Code coverage generated by
|
102
|
+
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
103
|
+
at Fri Apr 30 2021 12:16:39 GMT+0200 (Central European Summer Time)
|
104
|
+
</div>
|
105
|
+
</div>
|
106
|
+
<script src="../../prettify.js"></script>
|
107
|
+
<script>
|
108
|
+
window.onload = function () {
|
109
|
+
prettyPrint();
|
110
|
+
};
|
111
|
+
</script>
|
112
|
+
<script src="../../sorter.js"></script>
|
113
|
+
<script src="../../block-navigation.js"></script>
|
114
|
+
</body>
|
115
|
+
</html>
|
116
|
+
|
@@ -0,0 +1,156 @@
|
|
1
|
+
|
2
|
+
<!doctype html>
|
3
|
+
<html lang="en">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title>Code coverage report for src/components</title>
|
7
|
+
<meta charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../../prettify.css" />
|
9
|
+
<link rel="stylesheet" href="../../base.css" />
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
12
|
+
<style type='text/css'>
|
13
|
+
.coverage-summary .sorter {
|
14
|
+
background-image: url(../../sort-arrow-sprite.png);
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<div class='wrapper'>
|
21
|
+
<div class='pad1'>
|
22
|
+
<h1><a href="../../index.html">All files</a> src/components</h1>
|
23
|
+
<div class='clearfix'>
|
24
|
+
|
25
|
+
<div class='fl pad1y space-right2'>
|
26
|
+
<span class="strong">65% </span>
|
27
|
+
<span class="quiet">Statements</span>
|
28
|
+
<span class='fraction'>26/40</span>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
|
32
|
+
<div class='fl pad1y space-right2'>
|
33
|
+
<span class="strong">33.33% </span>
|
34
|
+
<span class="quiet">Branches</span>
|
35
|
+
<span class='fraction'>5/15</span>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
|
39
|
+
<div class='fl pad1y space-right2'>
|
40
|
+
<span class="strong">20% </span>
|
41
|
+
<span class="quiet">Functions</span>
|
42
|
+
<span class='fraction'>1/5</span>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
|
46
|
+
<div class='fl pad1y space-right2'>
|
47
|
+
<span class="strong">61.11% </span>
|
48
|
+
<span class="quiet">Lines</span>
|
49
|
+
<span class='fraction'>22/36</span>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<p class="quiet">
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
56
|
+
</p>
|
57
|
+
</div>
|
58
|
+
<div class='status-line medium'></div>
|
59
|
+
<div class="pad1">
|
60
|
+
<table class="coverage-summary">
|
61
|
+
<thead>
|
62
|
+
<tr>
|
63
|
+
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
64
|
+
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
65
|
+
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
66
|
+
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
67
|
+
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
68
|
+
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
69
|
+
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
70
|
+
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
71
|
+
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
72
|
+
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
73
|
+
</tr>
|
74
|
+
</thead>
|
75
|
+
<tbody><tr>
|
76
|
+
<td class="file medium" data-value="TivioProvider.tsx"><a href="TivioProvider.tsx.html">TivioProvider.tsx</a></td>
|
77
|
+
<td data-value="52.94" class="pic medium">
|
78
|
+
<div class="chart"><div class="cover-fill" style="width: 52%"></div><div class="cover-empty" style="width: 48%"></div></div>
|
79
|
+
</td>
|
80
|
+
<td data-value="52.94" class="pct medium">52.94%</td>
|
81
|
+
<td data-value="17" class="abs medium">9/17</td>
|
82
|
+
<td data-value="0" class="pct low">0%</td>
|
83
|
+
<td data-value="6" class="abs low">0/6</td>
|
84
|
+
<td data-value="0" class="pct low">0%</td>
|
85
|
+
<td data-value="2" class="abs low">0/2</td>
|
86
|
+
<td data-value="46.67" class="pct low">46.67%</td>
|
87
|
+
<td data-value="15" class="abs low">7/15</td>
|
88
|
+
</tr>
|
89
|
+
|
90
|
+
<tr>
|
91
|
+
<td class="file medium" data-value="TivioWidget.tsx"><a href="TivioWidget.tsx.html">TivioWidget.tsx</a></td>
|
92
|
+
<td data-value="73.33" class="pic medium">
|
93
|
+
<div class="chart"><div class="cover-fill" style="width: 73%"></div><div class="cover-empty" style="width: 27%"></div></div>
|
94
|
+
</td>
|
95
|
+
<td data-value="73.33" class="pct medium">73.33%</td>
|
96
|
+
<td data-value="15" class="abs medium">11/15</td>
|
97
|
+
<td data-value="55.56" class="pct medium">55.56%</td>
|
98
|
+
<td data-value="9" class="abs medium">5/9</td>
|
99
|
+
<td data-value="100" class="pct high">100%</td>
|
100
|
+
<td data-value="1" class="abs high">1/1</td>
|
101
|
+
<td data-value="73.33" class="pct medium">73.33%</td>
|
102
|
+
<td data-value="15" class="abs medium">11/15</td>
|
103
|
+
</tr>
|
104
|
+
|
105
|
+
<tr>
|
106
|
+
<td class="file medium" data-value="TivioWidgetError.tsx"><a href="TivioWidgetError.tsx.html">TivioWidgetError.tsx</a></td>
|
107
|
+
<td data-value="75" class="pic medium">
|
108
|
+
<div class="chart"><div class="cover-fill" style="width: 75%"></div><div class="cover-empty" style="width: 25%"></div></div>
|
109
|
+
</td>
|
110
|
+
<td data-value="75" class="pct medium">75%</td>
|
111
|
+
<td data-value="4" class="abs medium">3/4</td>
|
112
|
+
<td data-value="100" class="pct high">100%</td>
|
113
|
+
<td data-value="0" class="abs high">0/0</td>
|
114
|
+
<td data-value="0" class="pct low">0%</td>
|
115
|
+
<td data-value="1" class="abs low">0/1</td>
|
116
|
+
<td data-value="66.67" class="pct medium">66.67%</td>
|
117
|
+
<td data-value="3" class="abs medium">2/3</td>
|
118
|
+
</tr>
|
119
|
+
|
120
|
+
<tr>
|
121
|
+
<td class="file medium" data-value="TivioWidgetLoader.tsx"><a href="TivioWidgetLoader.tsx.html">TivioWidgetLoader.tsx</a></td>
|
122
|
+
<td data-value="75" class="pic medium">
|
123
|
+
<div class="chart"><div class="cover-fill" style="width: 75%"></div><div class="cover-empty" style="width: 25%"></div></div>
|
124
|
+
</td>
|
125
|
+
<td data-value="75" class="pct medium">75%</td>
|
126
|
+
<td data-value="4" class="abs medium">3/4</td>
|
127
|
+
<td data-value="100" class="pct high">100%</td>
|
128
|
+
<td data-value="0" class="abs high">0/0</td>
|
129
|
+
<td data-value="0" class="pct low">0%</td>
|
130
|
+
<td data-value="1" class="abs low">0/1</td>
|
131
|
+
<td data-value="66.67" class="pct medium">66.67%</td>
|
132
|
+
<td data-value="3" class="abs medium">2/3</td>
|
133
|
+
</tr>
|
134
|
+
|
135
|
+
</tbody>
|
136
|
+
</table>
|
137
|
+
</div>
|
138
|
+
<div class='push'></div><!-- for sticky footer -->
|
139
|
+
</div><!-- /wrapper -->
|
140
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
141
|
+
Code coverage generated by
|
142
|
+
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
143
|
+
at Fri Apr 30 2021 12:16:39 GMT+0200 (Central European Summer Time)
|
144
|
+
</div>
|
145
|
+
</div>
|
146
|
+
<script src="../../prettify.js"></script>
|
147
|
+
<script>
|
148
|
+
window.onload = function () {
|
149
|
+
prettyPrint();
|
150
|
+
};
|
151
|
+
</script>
|
152
|
+
<script src="../../sorter.js"></script>
|
153
|
+
<script src="../../block-navigation.js"></script>
|
154
|
+
</body>
|
155
|
+
</html>
|
156
|
+
|
@@ -0,0 +1,239 @@
|
|
1
|
+
|
2
|
+
<!doctype html>
|
3
|
+
<html lang="en">
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<title>Code coverage report for src/conf.ts</title>
|
7
|
+
<meta charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../prettify.css" />
|
9
|
+
<link rel="stylesheet" href="../base.css" />
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../favicon.png" />
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
12
|
+
<style type='text/css'>
|
13
|
+
.coverage-summary .sorter {
|
14
|
+
background-image: url(../sort-arrow-sprite.png);
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<div class='wrapper'>
|
21
|
+
<div class='pad1'>
|
22
|
+
<h1><a href="../index.html">All files</a> / <a href="index.html">src</a> conf.ts</h1>
|
23
|
+
<div class='clearfix'>
|
24
|
+
|
25
|
+
<div class='fl pad1y space-right2'>
|
26
|
+
<span class="strong">100% </span>
|
27
|
+
<span class="quiet">Statements</span>
|
28
|
+
<span class='fraction'>10/10</span>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
|
32
|
+
<div class='fl pad1y space-right2'>
|
33
|
+
<span class="strong">50% </span>
|
34
|
+
<span class="quiet">Branches</span>
|
35
|
+
<span class='fraction'>1/2</span>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
|
39
|
+
<div class='fl pad1y space-right2'>
|
40
|
+
<span class="strong">100% </span>
|
41
|
+
<span class="quiet">Functions</span>
|
42
|
+
<span class='fraction'>1/1</span>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
|
46
|
+
<div class='fl pad1y space-right2'>
|
47
|
+
<span class="strong">100% </span>
|
48
|
+
<span class="quiet">Lines</span>
|
49
|
+
<span class='fraction'>9/9</span>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<p class="quiet">
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
56
|
+
</p>
|
57
|
+
</div>
|
58
|
+
<div class='status-line high'></div>
|
59
|
+
<pre><table class="coverage">
|
60
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
61
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
62
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
63
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
64
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
65
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
66
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
67
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
68
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
69
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
70
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
71
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
72
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
73
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
74
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
75
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
76
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
77
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
78
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
79
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
80
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
81
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
82
|
+
<a name='L23'></a><a href='#L23'>23</a>
|
83
|
+
<a name='L24'></a><a href='#L24'>24</a>
|
84
|
+
<a name='L25'></a><a href='#L25'>25</a>
|
85
|
+
<a name='L26'></a><a href='#L26'>26</a>
|
86
|
+
<a name='L27'></a><a href='#L27'>27</a>
|
87
|
+
<a name='L28'></a><a href='#L28'>28</a>
|
88
|
+
<a name='L29'></a><a href='#L29'>29</a>
|
89
|
+
<a name='L30'></a><a href='#L30'>30</a>
|
90
|
+
<a name='L31'></a><a href='#L31'>31</a>
|
91
|
+
<a name='L32'></a><a href='#L32'>32</a>
|
92
|
+
<a name='L33'></a><a href='#L33'>33</a>
|
93
|
+
<a name='L34'></a><a href='#L34'>34</a>
|
94
|
+
<a name='L35'></a><a href='#L35'>35</a>
|
95
|
+
<a name='L36'></a><a href='#L36'>36</a>
|
96
|
+
<a name='L37'></a><a href='#L37'>37</a>
|
97
|
+
<a name='L38'></a><a href='#L38'>38</a>
|
98
|
+
<a name='L39'></a><a href='#L39'>39</a>
|
99
|
+
<a name='L40'></a><a href='#L40'>40</a>
|
100
|
+
<a name='L41'></a><a href='#L41'>41</a>
|
101
|
+
<a name='L42'></a><a href='#L42'>42</a>
|
102
|
+
<a name='L43'></a><a href='#L43'>43</a>
|
103
|
+
<a name='L44'></a><a href='#L44'>44</a>
|
104
|
+
<a name='L45'></a><a href='#L45'>45</a>
|
105
|
+
<a name='L46'></a><a href='#L46'>46</a>
|
106
|
+
<a name='L47'></a><a href='#L47'>47</a>
|
107
|
+
<a name='L48'></a><a href='#L48'>48</a>
|
108
|
+
<a name='L49'></a><a href='#L49'>49</a>
|
109
|
+
<a name='L50'></a><a href='#L50'>50</a>
|
110
|
+
<a name='L51'></a><a href='#L51'>51</a>
|
111
|
+
<a name='L52'></a><a href='#L52'>52</a>
|
112
|
+
<a name='L53'></a><a href='#L53'>53</a>
|
113
|
+
<a name='L54'></a><a href='#L54'>54</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
114
|
+
<span class="cline-any cline-neutral"> </span>
|
115
|
+
<span class="cline-any cline-neutral"> </span>
|
116
|
+
<span class="cline-any cline-neutral"> </span>
|
117
|
+
<span class="cline-any cline-neutral"> </span>
|
118
|
+
<span class="cline-any cline-neutral"> </span>
|
119
|
+
<span class="cline-any cline-neutral"> </span>
|
120
|
+
<span class="cline-any cline-yes">1x</span>
|
121
|
+
<span class="cline-any cline-yes">1x</span>
|
122
|
+
<span class="cline-any cline-neutral"> </span>
|
123
|
+
<span class="cline-any cline-yes">1x</span>
|
124
|
+
<span class="cline-any cline-yes">1x</span>
|
125
|
+
<span class="cline-any cline-yes">1x</span>
|
126
|
+
<span class="cline-any cline-neutral"> </span>
|
127
|
+
<span class="cline-any cline-neutral"> </span>
|
128
|
+
<span class="cline-any cline-neutral"> </span>
|
129
|
+
<span class="cline-any cline-neutral"> </span>
|
130
|
+
<span class="cline-any cline-neutral"> </span>
|
131
|
+
<span class="cline-any cline-neutral"> </span>
|
132
|
+
<span class="cline-any cline-neutral"> </span>
|
133
|
+
<span class="cline-any cline-neutral"> </span>
|
134
|
+
<span class="cline-any cline-neutral"> </span>
|
135
|
+
<span class="cline-any cline-neutral"> </span>
|
136
|
+
<span class="cline-any cline-neutral"> </span>
|
137
|
+
<span class="cline-any cline-neutral"> </span>
|
138
|
+
<span class="cline-any cline-neutral"> </span>
|
139
|
+
<span class="cline-any cline-neutral"> </span>
|
140
|
+
<span class="cline-any cline-neutral"> </span>
|
141
|
+
<span class="cline-any cline-neutral"> </span>
|
142
|
+
<span class="cline-any cline-yes">1x</span>
|
143
|
+
<span class="cline-any cline-neutral"> </span>
|
144
|
+
<span class="cline-any cline-neutral"> </span>
|
145
|
+
<span class="cline-any cline-neutral"> </span>
|
146
|
+
<span class="cline-any cline-neutral"> </span>
|
147
|
+
<span class="cline-any cline-neutral"> </span>
|
148
|
+
<span class="cline-any cline-neutral"> </span>
|
149
|
+
<span class="cline-any cline-neutral"> </span>
|
150
|
+
<span class="cline-any cline-neutral"> </span>
|
151
|
+
<span class="cline-any cline-yes">1x</span>
|
152
|
+
<span class="cline-any cline-yes">1x</span>
|
153
|
+
<span class="cline-any cline-neutral"> </span>
|
154
|
+
<span class="cline-any cline-neutral"> </span>
|
155
|
+
<span class="cline-any cline-neutral"> </span>
|
156
|
+
<span class="cline-any cline-neutral"> </span>
|
157
|
+
<span class="cline-any cline-neutral"> </span>
|
158
|
+
<span class="cline-any cline-neutral"> </span>
|
159
|
+
<span class="cline-any cline-neutral"> </span>
|
160
|
+
<span class="cline-any cline-neutral"> </span>
|
161
|
+
<span class="cline-any cline-neutral"> </span>
|
162
|
+
<span class="cline-any cline-neutral"> </span>
|
163
|
+
<span class="cline-any cline-neutral"> </span>
|
164
|
+
<span class="cline-any cline-yes">1x</span>
|
165
|
+
<span class="cline-any cline-neutral"> </span>
|
166
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">/**
|
167
|
+
* Copyright (c) 2021, nangu.TV, a.s. All rights reserved.
|
168
|
+
* nangu.TV, a.s PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
169
|
+
*/
|
170
|
+
|
171
|
+
import { ComponentType } from 'react'
|
172
|
+
|
173
|
+
import { TivioWidgetError } from './components/TivioWidgetError'
|
174
|
+
import { TivioWidgetLoader } from './components/TivioWidgetLoader'
|
175
|
+
import { PubSub } from './pubSub.types'
|
176
|
+
import { createLogger, Logger } from './services/logger'
|
177
|
+
import { FetchPackage, fetchPackage } from './services/packageLoader'
|
178
|
+
import { getPubSub } from './services/pubSub'
|
179
|
+
import type { Conf as ExternalConf } from './types'
|
180
|
+
|
181
|
+
export type InternalConf = {
|
182
|
+
secret: string
|
183
|
+
verbose?: boolean
|
184
|
+
resolverUrl: string
|
185
|
+
disabledUnmounting: boolean
|
186
|
+
logger?: Logger | null
|
187
|
+
fetchPackage: FetchPackage
|
188
|
+
pubSub: PubSub
|
189
|
+
LoaderComponent?: ComponentType<{}>
|
190
|
+
ErrorComponent?: ComponentType<{ error: string | null }>
|
191
|
+
language?: string
|
192
|
+
sdkVersion: string
|
193
|
+
}
|
194
|
+
|
195
|
+
export const defaultConf = {
|
196
|
+
resolverUrl: process.env.RESOLVER_URL,
|
197
|
+
disabledUnmounting: false,
|
198
|
+
fetchPackage,
|
199
|
+
pubSub: getPubSub(),
|
200
|
+
LoaderComponent: TivioWidgetLoader,
|
201
|
+
ErrorComponent: TivioWidgetError,
|
202
|
+
}
|
203
|
+
|
204
|
+
export const createInternalConf = (conf: ExternalConf): InternalConf => {
|
205
|
+
const internalConf = {
|
206
|
+
...defaultConf,
|
207
|
+
...conf,
|
208
|
+
logger: typeof conf.logger !== 'undefined' ?
|
209
|
+
conf.logger :
|
210
|
+
<span class="branch-1 cbranch-no" title="branch not covered" > createLogger({</span>
|
211
|
+
isConsoleEnabled: true,
|
212
|
+
isSentryEnabled: !!process.env.SENTRY_DNS,
|
213
|
+
}),
|
214
|
+
sdkVersion: process.env.VERSION,
|
215
|
+
}
|
216
|
+
|
217
|
+
return internalConf
|
218
|
+
}
|
219
|
+
</pre></td></tr></table></pre>
|
220
|
+
|
221
|
+
<div class='push'></div><!-- for sticky footer -->
|
222
|
+
</div><!-- /wrapper -->
|
223
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
224
|
+
Code coverage generated by
|
225
|
+
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
226
|
+
at Fri Apr 30 2021 12:16:39 GMT+0200 (Central European Summer Time)
|
227
|
+
</div>
|
228
|
+
</div>
|
229
|
+
<script src="../prettify.js"></script>
|
230
|
+
<script>
|
231
|
+
window.onload = function () {
|
232
|
+
prettyPrint();
|
233
|
+
};
|
234
|
+
</script>
|
235
|
+
<script src="../sorter.js"></script>
|
236
|
+
<script src="../block-navigation.js"></script>
|
237
|
+
</body>
|
238
|
+
</html>
|
239
|
+
|