microboard-ui-temp 0.1.76 → 0.1.77

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/dist/index.js CHANGED
@@ -427268,6 +427268,7 @@ function AppView() {
427268
427268
  const forceUpdate = useForceUpdate2();
427269
427269
  const animationId = import_react414.useRef(null);
427270
427270
  const containerRef = import_react414.useRef(null);
427271
+ const [offlineNotificationSent, setOfflineNotificationSent] = import_react414.useState(false);
427271
427272
  const [searchParams] = useSearchParams();
427272
427273
  const authCode = searchParams.get("code");
427273
427274
  const teamIdSearch = searchParams.get("team_id");
@@ -427286,12 +427287,15 @@ function AppView() {
427286
427287
  Audio: AudioPlayer
427287
427288
  };
427288
427289
  import_react414.useEffect(() => {
427289
- notify2({
427290
- header: t11("notifications.offlineHeader"),
427291
- body: t11("notifications.offlineBody"),
427292
- variant: "info",
427293
- duration: Infinity
427294
- });
427290
+ if (!offlineNotificationSent) {
427291
+ notify2({
427292
+ header: t11("notifications.offlineHeader"),
427293
+ body: t11("notifications.offlineBody"),
427294
+ variant: "info",
427295
+ duration: Infinity
427296
+ });
427297
+ setOfflineNotificationSent(true);
427298
+ }
427295
427299
  const handleCtrlWheel = (ev) => {
427296
427300
  if (ev.ctrlKey) {
427297
427301
  ev.preventDefault();
package/dist/spa.js CHANGED
@@ -425477,6 +425477,7 @@ function AppView() {
425477
425477
  const forceUpdate = useForceUpdate2();
425478
425478
  const animationId = import_react414.useRef(null);
425479
425479
  const containerRef = import_react414.useRef(null);
425480
+ const [offlineNotificationSent, setOfflineNotificationSent] = import_react414.useState(false);
425480
425481
  const [searchParams] = useSearchParams();
425481
425482
  const authCode = searchParams.get("code");
425482
425483
  const teamIdSearch = searchParams.get("team_id");
@@ -425495,12 +425496,15 @@ function AppView() {
425495
425496
  Audio: AudioPlayer
425496
425497
  };
425497
425498
  import_react414.useEffect(() => {
425498
- notify2({
425499
- header: t11("notifications.offlineHeader"),
425500
- body: t11("notifications.offlineBody"),
425501
- variant: "info",
425502
- duration: Infinity
425503
- });
425499
+ if (!offlineNotificationSent) {
425500
+ notify2({
425501
+ header: t11("notifications.offlineHeader"),
425502
+ body: t11("notifications.offlineBody"),
425503
+ variant: "info",
425504
+ duration: Infinity
425505
+ });
425506
+ setOfflineNotificationSent(true);
425507
+ }
425504
425508
  const handleCtrlWheel = (ev) => {
425505
425509
  if (ev.ctrlKey) {
425506
425510
  ev.preventDefault();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-ui-temp",
3
- "version": "0.1.76",
3
+ "version": "0.1.77",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",