microboard-ui-temp 0.1.76 → 0.1.78

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
@@ -338134,7 +338134,7 @@ function createWsClient(msgHandler, setConnectionErrorTimeout, onError, getCurre
338134
338134
  const pingMsg = JSON.stringify({ type: "ping" });
338135
338135
  function keepAlivePing() {
338136
338136
  const board = getCurrentBoard();
338137
- if (isConnected() && !board?.getBoardId().includes("local")) {
338137
+ if (isConnected() && !board?.getBoardId().includes("local") && !board?.getBoardId().includes("welcome")) {
338138
338138
  send(pingMsg);
338139
338139
  if (board) {
338140
338140
  board.presence.ping();
@@ -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();
@@ -446322,7 +446326,7 @@ function WelcomePage() {
446322
446326
  await app2.openBoard(lastBoardId);
446323
446327
  return lastBoardId;
446324
446328
  }
446325
- return "welcome-local";
446329
+ return "welcome";
446326
446330
  };
446327
446331
  import_react419.default.useEffect(() => {
446328
446332
  createPublicBoard(app).then((boardId) => {
package/dist/spa.js CHANGED
@@ -338134,7 +338134,7 @@ function createWsClient(msgHandler, setConnectionErrorTimeout, onError, getCurre
338134
338134
  const pingMsg = JSON.stringify({ type: "ping" });
338135
338135
  function keepAlivePing() {
338136
338136
  const board = getCurrentBoard();
338137
- if (isConnected() && !board?.getBoardId().includes("local")) {
338137
+ if (isConnected() && !board?.getBoardId().includes("local") && !board?.getBoardId().includes("welcome")) {
338138
338138
  send(pingMsg);
338139
338139
  if (board) {
338140
338140
  board.presence.ping();
@@ -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();
@@ -444531,7 +444535,7 @@ function WelcomePage() {
444531
444535
  await app2.openBoard(lastBoardId);
444532
444536
  return lastBoardId;
444533
444537
  }
444534
- return "welcome-local";
444538
+ return "welcome";
444535
444539
  };
444536
444540
  import_react419.default.useEffect(() => {
444537
444541
  createPublicBoard(app).then((boardId) => {
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.78",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",