@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.
- package/docs/dependencies.html +1 -1
- package/docs/injectables/CoreAppEffects.html +24 -5
- package/docs/js/search/search_index.js +2 -2
- package/esm2022/lib/services/store/effects/app.effects.mjs +19 -7
- package/fesm2022/eui-core.mjs +18 -7
- package/fesm2022/eui-core.mjs.map +1 -1
- package/lib/services/store/effects/app.effects.d.ts +2 -1
- package/lib/services/store/effects/app.effects.d.ts.map +1 -1
- package/package.json +2 -2
package/docs/dependencies.html
CHANGED
|
@@ -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
|
|
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(() =>
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
304
|
+
<i>Default value : </i><code>createEffect(() => {
|
|
305
|
+
if(isPlatformBrowser(this.platformId)) {
|
|
306
|
+
return merge(
|
|
307
|
+
fromEvent(window, 'online').pipe(mapTo(true)),
|
|
308
|
+
fromEvent(window, 'offline').pipe(mapTo(false)),
|
|
309
|
+
).pipe(
|
|
310
|
+
map((connected) => new UpdateAppConnectionAction(connected)),
|
|
311
|
+
)
|
|
312
|
+
} else {
|
|
313
|
+
return of(new UpdateAppConnectionAction(false))
|
|
314
|
+
}
|
|
315
|
+
},
|
|
297
316
|
)</code>
|
|
298
317
|
</td>
|
|
299
318
|
</tr>
|