Skip to content

Commit 22e3ecd

Browse files
Removed debugging statements
1 parent 5a9d970 commit 22e3ecd

File tree

2 files changed

+0
-82
lines changed

2 files changed

+0
-82
lines changed

‎packages/atri-app-core/src/canvasMachine.ts‎

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -319,44 +319,20 @@ export function createCanvasMachine(id: string) {
319319
},
320320
states: {
321321
[initial]: {
322-
entry: () => {
323-
console.log("Entered Initial State", id);
324-
},
325-
exit: () => {
326-
console.log("Exited Initial State", id);
327-
},
328322
on: {
329323
[IFRAME_DETECTED]: { target: checks_completed },
330324
[TOP_WINDOW_DETECTED]: { target: noop },
331325
},
332326
},
333327
[checks_completed]: {
334-
entry: () => {
335-
console.log("Entered Checks Completed State", id);
336-
},
337-
exit: () => {
338-
console.log("Exited Checks Completed State", id);
339-
},
340328
on: {
341329
[WINDOW_LOADED]: { target: ready, actions: ["emitReady"] },
342330
},
343331
},
344332
[ready]: {
345-
entry: () => {
346-
console.log("Entered Ready State", id);
347-
},
348-
exit: () => {
349-
console.log("Exited Ready State", id);
350-
},
351333
initial: idle,
352334
states: {
353335
[idle]: {
354-
entry: () => {
355-
console.log("Entered Ready Idle State", id);
356-
},
357-
exit: () => {
358-
console.log("Exited Ready Idle State", id);
359-
},
360336
on: {
361337
[MOUSE_MOVE]: {
362338
target: hover,
@@ -372,11 +348,9 @@ export function createCanvasMachine(id: string) {
372348
},
373349
[hover]: {
374350
entry: (context, event) => {
375-
console.log("Entered Ready Hover State", id);
376351
callSubscribers("hover", context, event);
377352
},
378353
exit: (context, event) => {
379-
console.log("Exited Ready Hover State", id);
380354
context.hovered = null;
381355
callSubscribers("hoverEnd", context, event);
382356
},
@@ -398,12 +372,6 @@ export function createCanvasMachine(id: string) {
398372
},
399373
},
400374
[pressed]: {
401-
entry: () => {
402-
console.log("Entered Pressed State", id);
403-
},
404-
exit: () => {
405-
console.log("Exited Pressed State", id);
406-
},
407375
on: {
408376
[MOUSE_UP]: {
409377
target: selected,
@@ -412,11 +380,7 @@ export function createCanvasMachine(id: string) {
412380
},
413381
},
414382
[selected]: {
415-
entry: () => {
416-
console.log("Entered Selected State", id);
417-
},
418383
exit: (context) => {
419-
console.log("Exited Selected State", id);
420384
context.selected = null;
421385
},
422386
on: {
@@ -433,26 +397,17 @@ export function createCanvasMachine(id: string) {
433397
[focused]: {
434398
entry: (context, event) => {
435399
callSubscribers("focus", context, event);
436-
console.log("Entered Selected focused State", id);
437400
},
438401
exit: (context, event) => {
439402
callSubscribers("focusEnd", context, event);
440-
console.log("Exited Selected focused State", id);
441403
},
442-
443404
on: {
444405
[BLUR]: {
445406
target: unfocused,
446407
},
447408
},
448409
},
449410
[unfocused]: {
450-
entry: () => {
451-
console.log("Entered Selected unfocused State", id);
452-
},
453-
exit: () => {
454-
console.log("Exited Selected unfocused State", id);
455-
},
456411
type: "final",
457412
},
458413
},
@@ -461,12 +416,6 @@ export function createCanvasMachine(id: string) {
461416
initial: selectIdle,
462417
states: {
463418
[selectIdle]: {
464-
entry: () => {
465-
console.log("Entered Selected selectIdle State", id);
466-
},
467-
exit: () => {
468-
console.log("Exited Selected selectIdle State", id);
469-
},
470419
on: {
471420
[MOUSE_OVER]: {
472421
target: hoverWhileSelected,
@@ -475,18 +424,6 @@ export function createCanvasMachine(id: string) {
475424
},
476425
},
477426
[hoverWhileSelected]: {
478-
entry: () => {
479-
console.log(
480-
"Entered Selected hoverWhileSelected State",
481-
id
482-
);
483-
},
484-
exit: () => {
485-
console.log(
486-
"Exited Selected hoverWhileSelected State",
487-
id
488-
);
489-
},
490427
on: {
491428
[MOUSE_OVER]: {
492429
target: hoverWhileSelected,
@@ -512,21 +449,9 @@ export function createCanvasMachine(id: string) {
512449
},
513450
},
514451
[drag_in_progress]: {
515-
entry: () => {
516-
console.log("Entered Drag In Progress State", id);
517-
},
518-
exit: () => {
519-
console.log("Exited Drag In Progress State", id);
520-
},
521452
initial: drag_in_progress_idle,
522453
states: {
523454
[drag_in_progress_idle]: {
524-
entry: () => {
525-
console.log("Entered Drag In Progress Idle State", id);
526-
},
527-
exit: () => {
528-
console.log("Exited Drag In Progress Idle State", id);
529-
},
530455
on: {
531456
[DRAG_STOPPED]: { target: `#${id}.${ready}` },
532457
[INSIDE_CANVAS]: {
@@ -536,12 +461,6 @@ export function createCanvasMachine(id: string) {
536461
},
537462
},
538463
[drag_in_progress_active]: {
539-
entry: () => {
540-
console.log("Entered Drag In Progress Active State", id);
541-
},
542-
exit: () => {
543-
console.log("Exited Drag In Progress Active State", id);
544-
},
545464
on: {
546465
[MOUSE_MOVE]: {
547466
actions: ["setMousePosition", "emitMoveWhileDrag"],

‎packages/atri-app-core/src/editor-components/hooks/useFocusComponent.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export function useFocusComponent(props: DecoratorData) {
1111
if (ref.current) {
1212
ref.current.tabIndex = 0;
1313
ref.current.focus();
14-
console.log("Running ENter");
1514
}
1615
}
1716
});

0 commit comments

Comments
 (0)