mftsccs-browser 2.1.31-beta → 2.1.34-beta

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.
@@ -12104,11 +12104,11 @@ class Logger {
12104
12104
  if (this.applicationLogsData.length === 0) {
12105
12105
  return;
12106
12106
  }
12107
+ this.applicationLogsData = [];
12107
12108
  const accessToken = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
12108
12109
  if (!accessToken)
12109
12110
  return;
12110
12111
  // clear application log from memory
12111
- this.applicationLogsData = [];
12112
12112
  const chunkSize = 50;
12113
12113
  for (let i = 0; i < storedLogs.length; i += chunkSize) {
12114
12114
  const chunk = storedLogs.slice(i, i + chunkSize);
@@ -12125,13 +12125,13 @@ class Logger {
12125
12125
  });
12126
12126
  if (!response.ok) {
12127
12127
  const responseBody = yield response.text();
12128
- //this.applicationLogsData.push(storedLogs);
12128
+ this.applicationLogsData.push(...storedLogs);
12129
12129
  // console.error("Failed to send app-logs:-", response.status, response.statusText, responseBody);
12130
12130
  }
12131
12131
  }
12132
12132
  }
12133
12133
  catch (error) {
12134
- // this.applicationLogsData.push(storedLogs);
12134
+ this.applicationLogsData.push(...storedLogs);
12135
12135
  // console.error("Network error while sending logs:", error);
12136
12136
  }
12137
12137
  });
@@ -12143,10 +12143,10 @@ class Logger {
12143
12143
  console.log("Log from sendPackageLogsToServer : ", this.packageLogsData);
12144
12144
  if (this.packageLogsData.length === 0)
12145
12145
  return;
12146
+ this.packageLogsData = [];
12146
12147
  const accessToken = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
12147
12148
  if (!accessToken)
12148
12149
  return;
12149
- this.packageLogsData = [];
12150
12150
  const chunkSize = 300;
12151
12151
  for (let i = 0; i < storedLogs.length; i += chunkSize) {
12152
12152
  const chunk = storedLogs.slice(i, i + chunkSize);
@@ -12163,7 +12163,7 @@ class Logger {
12163
12163
  });
12164
12164
  if (!response.ok) {
12165
12165
  const responseBody = yield response.text();
12166
- //this.packageLogsData.push(storedLogs);
12166
+ this.packageLogsData.push(...storedLogs);
12167
12167
  //console.error("Failed to send logs:-", response.status, response.statusText, responseBody);
12168
12168
  return;
12169
12169
  }
@@ -12172,7 +12172,7 @@ class Logger {
12172
12172
  //this.packageLogsData = []
12173
12173
  }
12174
12174
  catch (error) {
12175
- //this.packageLogsData.push(storedLogs);
12175
+ this.packageLogsData.push(...storedLogs);
12176
12176
  //console.error("Error while sending logs to server:", error);
12177
12177
  }
12178
12178
  });
@@ -22633,6 +22633,7 @@ class WidgetTree {
22633
22633
  this.html = "";
22634
22634
  this.css = "";
22635
22635
  this.js = "";
22636
+ this.library = { css: [], js: [] };
22636
22637
  this.timestamp = "";
22637
22638
  this.widgetId = 0;
22638
22639
  this.type = "";
@@ -12104,11 +12104,11 @@ class Logger {
12104
12104
  if (this.applicationLogsData.length === 0) {
12105
12105
  return;
12106
12106
  }
12107
+ this.applicationLogsData = [];
12107
12108
  const accessToken = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
12108
12109
  if (!accessToken)
12109
12110
  return;
12110
12111
  // clear application log from memory
12111
- this.applicationLogsData = [];
12112
12112
  const chunkSize = 50;
12113
12113
  for (let i = 0; i < storedLogs.length; i += chunkSize) {
12114
12114
  const chunk = storedLogs.slice(i, i + chunkSize);
@@ -12125,13 +12125,13 @@ class Logger {
12125
12125
  });
12126
12126
  if (!response.ok) {
12127
12127
  const responseBody = yield response.text();
12128
- //this.applicationLogsData.push(storedLogs);
12128
+ this.applicationLogsData.push(...storedLogs);
12129
12129
  // console.error("Failed to send app-logs:-", response.status, response.statusText, responseBody);
12130
12130
  }
12131
12131
  }
12132
12132
  }
12133
12133
  catch (error) {
12134
- // this.applicationLogsData.push(storedLogs);
12134
+ this.applicationLogsData.push(...storedLogs);
12135
12135
  // console.error("Network error while sending logs:", error);
12136
12136
  }
12137
12137
  });
@@ -12143,10 +12143,10 @@ class Logger {
12143
12143
  console.log("Log from sendPackageLogsToServer : ", this.packageLogsData);
12144
12144
  if (this.packageLogsData.length === 0)
12145
12145
  return;
12146
+ this.packageLogsData = [];
12146
12147
  const accessToken = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
12147
12148
  if (!accessToken)
12148
12149
  return;
12149
- this.packageLogsData = [];
12150
12150
  const chunkSize = 300;
12151
12151
  for (let i = 0; i < storedLogs.length; i += chunkSize) {
12152
12152
  const chunk = storedLogs.slice(i, i + chunkSize);
@@ -12163,7 +12163,7 @@ class Logger {
12163
12163
  });
12164
12164
  if (!response.ok) {
12165
12165
  const responseBody = yield response.text();
12166
- //this.packageLogsData.push(storedLogs);
12166
+ this.packageLogsData.push(...storedLogs);
12167
12167
  //console.error("Failed to send logs:-", response.status, response.statusText, responseBody);
12168
12168
  return;
12169
12169
  }
@@ -12172,7 +12172,7 @@ class Logger {
12172
12172
  //this.packageLogsData = []
12173
12173
  }
12174
12174
  catch (error) {
12175
- //this.packageLogsData.push(storedLogs);
12175
+ this.packageLogsData.push(...storedLogs);
12176
12176
  //console.error("Error while sending logs to server:", error);
12177
12177
  }
12178
12178
  });
@@ -23571,6 +23571,7 @@ class WidgetTree {
23571
23571
  this.html = "";
23572
23572
  this.css = "";
23573
23573
  this.js = "";
23574
+ this.library = { css: [], js: [] };
23574
23575
  this.timestamp = "";
23575
23576
  this.widgetId = 0;
23576
23577
  this.type = "";
@@ -0,0 +1,8 @@
1
+ export type TLibrary = {
2
+ order: number;
3
+ url: string;
4
+ };
5
+ export type TMainLibrary = {
6
+ css: TLibrary[];
7
+ js: TLibrary[];
8
+ };
@@ -1,3 +1,4 @@
1
+ import { TMainLibrary } from "../DataStructures/TypeLibrary";
1
2
  import { BuilderStatefulWidget } from "./BuilderStatefulWidget";
2
3
  export declare class WidgetTree {
3
4
  id: number;
@@ -5,6 +6,7 @@ export declare class WidgetTree {
5
6
  html: string;
6
7
  css: string;
7
8
  js: string;
9
+ library: TMainLibrary;
8
10
  timestamp: string;
9
11
  widgetId: number;
10
12
  type: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mftsccs-browser",
3
- "version": "2.1.31-beta",
3
+ "version": "2.1.34-beta",
4
4
  "environment": "production",
5
5
  "description": "Full Pack of concept and connection system",
6
6
  "main": "dist/main.bundle.js",