@itutoring/itutoring_application_js_api 1.3.3 → 1.3.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -10,37 +10,12 @@ class Toolkit
10
10
  /**
11
11
  * Main function to initialize any toolkit module.
12
12
  * It will handle all important authorizations
13
- *
14
- * uiChangedCallback(jsx variable with actual UI)
15
13
  */
16
- static async Initialize(moduleUid, uiChangedCallback)
14
+ static async Initialize(moduleUid)
17
15
  {
18
- uiChangedCallback(
19
- <div id="welcome-screen" className="w-screen">
20
- <div className="w-logo-wrap">
21
- <img src="https://itutoring.cz/client/static/img/logos/logo_landscape_trans_w.png"></img>
22
- <p className="w-toolkit"><i class="fa-solid fa-toolbox"></i> Toolkit</p>
23
- </div>
24
- <h2 className="w-em">Načítání...</h2>
25
- </div>
26
- )
27
-
28
16
  this.ModuleInfo = await this.GetModuleProperties(moduleUid);
29
17
 
30
- uiChangedCallback(
31
- <div id="welcome-screen" className="w-screen">
32
- <div className="w-logo-wrap">
33
- <img src="https://itutoring.cz/client/static/img/logos/logo_landscape_trans_w.png"></img>
34
- <p className="w-toolkit"><i class="fa-solid fa-toolbox"></i> Toolkit</p>
35
- </div>
36
- <h2 className="w-em">{this.ModuleInfo['Name']}</h2>
37
- </div>
38
- )
39
-
40
18
  await this.RequestAccess();
41
-
42
- while (!this.UserDataLoaded)
43
- await new Promise(t => setInterval(t, 250));
44
19
  }
45
20
 
46
21
  /***** API Methods ******/