@eui/core 18.0.0-rc.39 → 18.0.0-rc.40

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.
@@ -284,7 +284,7 @@
284
284
  <li>
285
285
  <b>@stackblitz/sdk</b> : 1.10.0</li>
286
286
  <li>
287
- <b>@eui/ecl</b> : 18.0.0-rc.38</li>
287
+ <b>@eui/ecl</b> : 18.0.0-rc.39</li>
288
288
  <li>
289
289
  <b>@eui/tools</b> : ^6.0.0</li>
290
290
  </ul>
@@ -155,7 +155,7 @@
155
155
  <tbody>
156
156
  <tr>
157
157
  <td class="col-md-4">
158
- <code>constructor(actions: Actions, showConnectionStatus: <a href="../undefineds/Status.html" target="_self">boolean | ConnectionStatus</a>, translateService: TranslateService, asService: <a href="../injectables/EuiGrowlService.html" target="_self">EuiGrowlService</a>)</code>
158
+ <code>constructor(actions: Actions, showConnectionStatus: <a href="../undefineds/Status.html" target="_self">boolean | ConnectionStatus</a>, translateService: TranslateService, asService: <a href="../injectables/EuiGrowlService.html" target="_self">EuiGrowlService</a>, platformId)</code>
159
159
  </td>
160
160
  </tr>
161
161
 
@@ -220,6 +220,17 @@
220
220
  </td>
221
221
 
222
222
  </tr>
223
+ <tr>
224
+ <td>platformId</td>
225
+
226
+ <td>
227
+ </td>
228
+
229
+ <td>
230
+ No
231
+ </td>
232
+
233
+ </tr>
223
234
  </tbody>
224
235
  </table>
225
236
  </div>
@@ -290,10 +301,18 @@
290
301
  </tr>
291
302
  <tr>
292
303
  <td class="col-md-4">
293
- <i>Default value : </i><code>createEffect(() &#x3D;&gt;
294
- merge(fromEvent(window, &#x27;online&#x27;).pipe(mapTo(true)), fromEvent(window, &#x27;offline&#x27;).pipe(mapTo(false))).pipe(
295
- map((connected) &#x3D;&gt; new UpdateAppConnectionAction(connected)),
296
- ),
304
+ <i>Default value : </i><code>createEffect(() &#x3D;&gt; {
305
+ if(isPlatformBrowser(this.platformId)) {
306
+ return merge(
307
+ fromEvent(window, &#x27;online&#x27;).pipe(mapTo(true)),
308
+ fromEvent(window, &#x27;offline&#x27;).pipe(mapTo(false)),
309
+ ).pipe(
310
+ map((connected) &#x3D;&gt; new UpdateAppConnectionAction(connected)),
311
+ )
312
+ } else {
313
+ return of(new UpdateAppConnectionAction(false))
314
+ }
315
+ },
297
316
  )</code>
298
317
  </td>
299
318
  </tr>