saasufy-components 7.7.3 → 7.7.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/input-provider.js CHANGED
@@ -141,7 +141,7 @@ class InputProvider extends HTMLElement {
141
141
 
142
142
  let optionElements = optionNames
143
143
  .map((optionName) => {
144
- let optionValue = optionValues[optionName] ?? optionName;
144
+ let optionValue = optionValues[optionName] || optionName;
145
145
  if (optionName === placeholder) {
146
146
  return `<option value="" selected class="select-default-option">${optionName}</option>`;
147
147
  }
package/model-input.js CHANGED
@@ -214,7 +214,7 @@ class ModelInput extends SocketConsumer {
214
214
 
215
215
  let optionElements = optionNames
216
216
  .map((optionName) => {
217
- let optionValue = optionValues[optionName] ?? optionName;
217
+ let optionValue = optionValues[optionName] || optionName;
218
218
  if (optionName === placeholder) {
219
219
  return `<option value="" selected class="select-default-option">${optionName}</option>`;
220
220
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saasufy-components",
3
- "version": "7.7.3",
3
+ "version": "7.7.5",
4
4
  "description": "Components for Saasufy.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/socket.js CHANGED
@@ -131,8 +131,8 @@ export class SocketProvider extends HTMLElement {
131
131
  } else {
132
132
  this.saasufySocket.reconnect(1000, 'log-out');
133
133
  }
134
- } else {
135
- this.saasufySocket.reconnect(1000, 'log-out');
134
+ } else if (this.saasufySocket.authState === 'unauthenticated') {
135
+ this.saasufySocket.reconnect(1000, 'log-in');
136
136
  }
137
137
  }
138
138
  };