diff --git a/packages/editor/e2e-tests/__tests__/selectionAdjustment.collaborative.test.ts b/packages/editor/e2e-tests/__tests__/selectionAdjustment.collaborative.test.ts index 119cc05e..6fe78513 100644 --- a/packages/editor/e2e-tests/__tests__/selectionAdjustment.collaborative.test.ts +++ b/packages/editor/e2e-tests/__tests__/selectionAdjustment.collaborative.test.ts @@ -33,61 +33,61 @@ describe('selection adjustment', () => { expect(selectionA).toEqual(expectedSelectionA) await editorB.pressKey('Enter') expect(await editorA.getValue()).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "B-7", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "B-6", "_type": "span", - "marks": Array [], + "marks": [], "text": "", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "someKey", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "anotherKey", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] `) selectionA = await editorA.getSelection() expect(selectionA).toMatchInlineSnapshot(` - Object { - "anchor": Object { + { + "anchor": { "offset": 2, - "path": Array [ - Object { + "path": [ + { "_key": "someKey", }, "children", - Object { + { "_key": "anotherKey", }, ], }, "backward": false, - "focus": Object { + "focus": { "offset": 2, - "path": Array [ - Object { + "path": [ + { "_key": "someKey", }, "children", - Object { + { "_key": "anotherKey", }, ], @@ -255,33 +255,33 @@ describe('selection adjustment', () => { const valueA = await editorA.getValue() const valueB = await editorB.getValue() expect(valueB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "someKey4", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "anotherKey4", "_type": "span", - "marks": Array [], + "marks": [], "text": "", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "someKey5", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "anotherKey5", "_type": "span", - "marks": Array [], + "marks": [], "text": "Three", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -381,28 +381,28 @@ describe('selection adjustment', () => { const valueA = await editorA.getValue() expect(valueA).toEqual(valueB) expect(await editorA.getSelection()).toMatchInlineSnapshot(` - Object { - "anchor": Object { + { + "anchor": { "offset": 0, - "path": Array [ - Object { + "path": [ + { "_key": "someKey7", }, "children", - Object { + { "_key": "anotherKey7", }, ], }, "backward": false, - "focus": Object { + "focus": { "offset": 0, - "path": Array [ - Object { + "path": [ + { "_key": "someKey7", }, "children", - Object { + { "_key": "anotherKey7", }, ], @@ -455,19 +455,19 @@ describe('selection adjustment', () => { await editorB.toggleDecoratorUsingKeyboard('strong') const valueB = await editorB.getValue() expect(valueB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "someKey", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "anotherKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "1 22 333", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -534,33 +534,33 @@ describe('selection adjustment', () => { await editorA.toggleDecoratorUsingKeyboard('strong') const valueB = await editorB.getValue() expect(valueB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "someKey1", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "anotherKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "1", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "someKey2", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "anotherKey2", "_type": "span", - "marks": Array [], + "marks": [], "text": "2", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] diff --git a/packages/editor/e2e-tests/__tests__/undoRedo.collborative.test.ts b/packages/editor/e2e-tests/__tests__/undoRedo.collborative.test.ts index e13f9c21..a7a49cc6 100644 --- a/packages/editor/e2e-tests/__tests__/undoRedo.collborative.test.ts +++ b/packages/editor/e2e-tests/__tests__/undoRedo.collborative.test.ts @@ -71,19 +71,19 @@ describe('undo/redo', () => { let valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello worl there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -93,19 +93,19 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello world there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -206,33 +206,33 @@ describe('undo/redo', () => { let valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello world there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "A-6", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "A-5", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hey!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -243,33 +243,33 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello world", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "A-6", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "A-5", "_type": "span", - "marks": Array [], + "marks": [], "text": "", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -324,19 +324,19 @@ describe('undo/redo', () => { let valA = await editorA.getValue() let valB = await editorB.getValue() expect(valA).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello123 worldABC there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -347,19 +347,19 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello worldABC there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -369,19 +369,19 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello world there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -441,19 +441,19 @@ describe('undo/redo', () => { let valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valA).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello123 world there", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -463,19 +463,19 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valA).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello123 world there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -485,19 +485,19 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valA).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello world there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -536,33 +536,33 @@ describe('undo/redo', () => { let valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello world there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "A-6", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "A-5", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hey!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -573,19 +573,19 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello world there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -642,33 +642,33 @@ describe('undo/redo', () => { let valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello123", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "A-6", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "A-5", "_type": "span", - "marks": Array [], + "marks": [], "text": " worldABC there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -679,47 +679,47 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello123 world there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] `) const selectionA = await editorA.getSelection() expect(selectionA).toMatchInlineSnapshot(` - Object { - "anchor": Object { + { + "anchor": { "offset": 8, - "path": Array [ - Object { + "path": [ + { "_key": "randomKey0", }, "children", - Object { + { "_key": "randomKey1", }, ], }, "backward": false, - "focus": Object { + "focus": { "offset": 8, - "path": Array [ - Object { + "path": [ + { "_key": "randomKey0", }, "children", - Object { + { "_key": "randomKey1", }, ], @@ -728,28 +728,28 @@ describe('undo/redo', () => { `) const selectionB = await editorB.getSelection() expect(selectionB).toMatchInlineSnapshot(` - Object { - "anchor": Object { + { + "anchor": { "offset": 14, - "path": Array [ - Object { + "path": [ + { "_key": "randomKey0", }, "children", - Object { + { "_key": "randomKey1", }, ], }, "backward": false, - "focus": Object { + "focus": { "offset": 14, - "path": Array [ - Object { + "path": [ + { "_key": "randomKey0", }, "children", - Object { + { "_key": "randomKey1", }, ], @@ -810,19 +810,19 @@ describe('undo/redo', () => { let valA = await editorA.getValue() let valB = await editorB.getValue() expect(valA).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello123 worldABC there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -833,19 +833,19 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello worldABC there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -855,19 +855,19 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello world there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -881,19 +881,19 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello123 world there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -903,19 +903,19 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello123 worldABC there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -984,33 +984,33 @@ describe('undo/redo', () => { let valA = await editorA.getValue() let valB = await editorB.getValue() expect(valA).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "1a", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "randomKey2", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey3", "_type": "span", - "marks": Array [], + "marks": [], "text": "2b", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -1021,33 +1021,33 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "1", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "randomKey2", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey3", "_type": "span", - "marks": Array [], + "marks": [], "text": "2b", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -1057,33 +1057,33 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "1", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "randomKey2", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey3", "_type": "span", - "marks": Array [], + "marks": [], "text": "2", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -1097,33 +1097,33 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "1a", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "randomKey2", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey3", "_type": "span", - "marks": Array [], + "marks": [], "text": "2", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -1133,33 +1133,33 @@ describe('undo/redo', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "1a", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "randomKey2", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey3", "_type": "span", - "marks": Array [], + "marks": [], "text": "2b", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] diff --git a/packages/editor/e2e-tests/__tests__/writingTogether.collaborative.test.ts b/packages/editor/e2e-tests/__tests__/writingTogether.collaborative.test.ts index 487732fe..9b6b2d34 100644 --- a/packages/editor/e2e-tests/__tests__/writingTogether.collaborative.test.ts +++ b/packages/editor/e2e-tests/__tests__/writingTogether.collaborative.test.ts @@ -192,19 +192,19 @@ describe('collaborate editing', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valA).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "B-9", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "B-8", "_type": "span", - "marks": Array [], + "marks": [], "text": "1", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -214,19 +214,19 @@ describe('collaborate editing', () => { valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "B-9", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "B-8", "_type": "span", - "marks": Array [], + "marks": [], "text": "12", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -635,74 +635,74 @@ describe('collaborate editing', () => { const valB = await editorB.getValue() expect(valA).toEqual(valB) expect(valA).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello world<- I left off here. And you wrote that ->", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "A-6", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "A-5", "_type": "span", - "marks": Array [], + "marks": [], "text": " there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "B-3", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "B-2", "_type": "span", - "marks": Array [], + "marks": [], "text": "I'm writing here!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] `) expect(await editorA.getSelection()).toMatchInlineSnapshot(` - Object { - "anchor": Object { + { + "anchor": { "offset": 0, - "path": Array [ - Object { + "path": [ + { "_key": "A-6", }, "children", - Object { + { "_key": "A-5", }, ], }, "backward": false, - "focus": Object { + "focus": { "offset": 0, - "path": Array [ - Object { + "path": [ + { "_key": "A-6", }, "children", - Object { + { "_key": "A-5", }, ], @@ -712,61 +712,61 @@ describe('collaborate editing', () => { await editorA.pressKey('Enter') const valAAfterSecondEnter = await editorA.getValue() expect(valAAfterSecondEnter).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "randomKey0", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "randomKey1", "_type": "span", - "marks": Array [], + "marks": [], "text": "Hello world<- I left off here. And you wrote that ->", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "A-9", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "A-8", "_type": "span", - "marks": Array [], + "marks": [], "text": "", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "A-6", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "A-5", "_type": "span", - "marks": Array [], + "marks": [], "text": " there!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, - Object { + { "_key": "B-3", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "B-2", "_type": "span", - "marks": Array [], + "marks": [], "text": "I'm writing here!", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -829,33 +829,33 @@ describe('collaborate editing', () => { await editorA.insertText('!') const valueB = await editorB.getValue() expect(valueB).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "26901064a3c9", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "b629e8140c25", "_type": "span", - "marks": Array [], + "marks": [], "text": "pweoirrporiwpweporiwproi wer", }, - Object { + { "_key": "ef4627c1c11b", "_type": "span", - "marks": Array [ + "marks": [ "strong", ], "text": "poiwyuXty45....!....ytutyy666uerpwer1", }, - Object { + { "_key": "7d3c9bcc9c10", "_type": "span", - "marks": Array [], + "marks": [], "text": "weuirwer werewopri", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] @@ -905,19 +905,19 @@ describe('collaborate editing', () => { await editorA.insertText('1') const newValA = await editorA.getValue() expect(newValA).toMatchInlineSnapshot(` - Array [ - Object { + [ + { "_key": "A-4", "_type": "block", - "children": Array [ - Object { + "children": [ + { "_key": "A-3", "_type": "span", - "marks": Array [], + "marks": [], "text": "1", }, ], - "markDefs": Array [], + "markDefs": [], "style": "normal", }, ] diff --git a/packages/editor/e2e-tests/e2e.config.ts b/packages/editor/e2e-tests/e2e.config.ts index 21c48a80..640a1b2c 100644 --- a/packages/editor/e2e-tests/e2e.config.ts +++ b/packages/editor/e2e-tests/e2e.config.ts @@ -1,29 +1,11 @@ -import path from 'node:path' -import type {Config} from '@jest/types' +import type {Config} from 'jest' -const config: Config.InitialOptions = { - globals: {}, +const config: Config = { globalSetup: './setup/globalSetup.ts', globalTeardown: './setup/globalTeardown.ts', moduleFileExtensions: ['feature', 'js', 'ts'], - modulePathIgnorePatterns: [ - '/bin/', - '/coverage/', - '/lib/', - ], - resolver: path.resolve(__dirname, './resolver.cjs'), - setupFiles: [path.resolve(__dirname, './setup.ts')], setupFilesAfterEnv: ['./setup/afterEnv.ts'], - snapshotFormat: { - escapeString: true, - printBasicPrototype: true, - }, - testEnvironment: path.resolve(__dirname, './jsdom.jest.env.ts'), - testEnvironmentOptions: { - url: 'http://localhost:3333', - }, - testMatch: ['/**/*.{test,spec}.{js,ts,tsx}'], - testPathIgnorePatterns: ['/node_modules/', '/.yalc/'], + testMatch: ['/**/*.test.ts'], transform: { '\\.feature$': '/feature-file-transformer.js', '\\.[jt]sx?$': [ @@ -52,7 +34,6 @@ const config: Config.InitialOptions = { }, ], }, - transformIgnorePatterns: ['/node_modules/(?!(get-random-values-esm)/)'], } export default config diff --git a/packages/editor/e2e-tests/jsdom.jest.env.ts b/packages/editor/e2e-tests/jsdom.jest.env.ts deleted file mode 100644 index f4144a0f..00000000 --- a/packages/editor/e2e-tests/jsdom.jest.env.ts +++ /dev/null @@ -1,12 +0,0 @@ -import JSDOMEnvironment from 'jest-environment-jsdom' - -export default class JSDOMEnvironmentWithDomRange extends JSDOMEnvironment { - public async setup(): Promise { - await super.setup() - if (typeof this.global.TextEncoder === 'undefined') { - const {TextEncoder, TextDecoder} = require('node:util') - this.global.TextEncoder = TextEncoder - this.global.TextDecoder = TextDecoder - } - } -} diff --git a/packages/editor/e2e-tests/resolver.cjs b/packages/editor/e2e-tests/resolver.cjs deleted file mode 100644 index 1dbf239c..00000000 --- a/packages/editor/e2e-tests/resolver.cjs +++ /dev/null @@ -1,29 +0,0 @@ -'use strict' - -module.exports = (path, options) => { - // Call the defaultResolver, so we leverage its cache, error handling, etc. - return options.defaultResolver(path, { - ...options, - // Use packageFilter to process parsed `package.json` before the resolution (see https://www.npmjs.com/package/resolve#resolveid-opts-cb) - packageFilter: (pkg) => { - // This is a workaround for https://github.com/uuidjs/uuid/pull/616 - // - // jest-environment-jsdom 28+ tries to use browser exports instead of default exports, - // but uuid only offers an ESM browser export and not a CommonJS one. Jest does not yet - // support ESM modules natively, so this causes a Jest error related to trying to parse - // "export" syntax. - // - // This workaround prevents Jest from considering uuid's module-based exports at all; - // it falls back to uuid's CommonJS+node "main" property. - // - // Once we're able to migrate our Jest config to ESM and a browser crypto - // implementation is available for the browser+ESM version of uuid to use (eg, via - // https://github.com/jsdom/jsdom/pull/3352 or a similar polyfill), this can go away. - if (['nanoid', 'uuid', 'get-random-values-esm'].includes(pkg.name)) { - pkg.exports = undefined - pkg.module = undefined - } - return pkg - }, - }) -} diff --git a/packages/editor/e2e-tests/serve.ts b/packages/editor/e2e-tests/serve.ts deleted file mode 100644 index 13dcbc1d..00000000 --- a/packages/editor/e2e-tests/serve.ts +++ /dev/null @@ -1,9 +0,0 @@ -// Start servers file for 'npm start' - -import globalSetup from './setup/globalSetup' - -globalSetup().then(() => { - console.log( - 'Started web and websocket servers.\n\nhttp://localhost:3000 (web)\n\nhttp://localhost:3001 (ws)', - ) -}) diff --git a/packages/editor/e2e-tests/setup.ts b/packages/editor/e2e-tests/setup.ts deleted file mode 100644 index 71b3fdfc..00000000 --- a/packages/editor/e2e-tests/setup.ts +++ /dev/null @@ -1,33 +0,0 @@ -import path from 'node:path' -import {jest} from '@jest/globals' -import dotenv from 'dotenv' - -process.env.FORCE_COLOR = '0' - -dotenv.config({path: path.resolve(__dirname, '../.env')}) - -if (typeof window !== 'undefined') { - // https://jestjs.io/docs/manual-mocks#mocking-methods-which-are-not-implemented-in-jsdom - Object.defineProperty(window, 'matchMedia', { - writable: true, - value: jest.fn().mockImplementation((query) => ({ - matches: false, - media: query, - onchange: null, - addListener: jest.fn(), // deprecated - removeListener: jest.fn(), // deprecated - addEventListener: jest.fn(), - removeEventListener: jest.fn(), - dispatchEvent: jest.fn(), - })), - }) - - Object.defineProperty(window, 'IntersectionObserver', { - writable: true, - value: class IntersectionObserver { - observe = jest.fn() - unobserve = jest.fn() - disconnect = jest.fn() - }, - }) -} diff --git a/packages/editor/package.json b/packages/editor/package.json index 5d0ae50c..90f2eedd 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -95,7 +95,6 @@ "express-ws": "^5.0.2", "jest": "^29.7.0", "jest-dev-server": "^10.1.1", - "jest-environment-jsdom": "^29.7.0", "jest-environment-node": "^29.7.0", "jsdom": "^25.0.1", "node-ipc": "npm:@node-ipc/compat@9.2.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 20c98c82..d584d9dc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -369,9 +369,6 @@ importers: jest-dev-server: specifier: ^10.1.1 version: 10.1.1(debug@4.3.6) - jest-environment-jsdom: - specifier: ^29.7.0 - version: 29.7.0 jest-environment-node: specifier: ^29.7.0 version: 29.7.0 @@ -3151,10 +3148,6 @@ packages: '@types/react-dom': optional: true - '@tootallnate/once@2.0.0': - resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==} - engines: {node: '>= 10'} - '@tsconfig/node10@1.0.11': resolution: {integrity: sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==} @@ -3242,9 +3235,6 @@ packages: '@types/istanbul-reports@3.0.4': resolution: {integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==} - '@types/jsdom@20.0.1': - resolution: {integrity: sha512-d0r18sZPmMQr1eG35u12FZfhIXNrnsPU/g5wvRKCUf/tOGilKKwYMYGqh33BNR6ba+2gkHw1EUiHoN3mn7E5IQ==} - '@types/lodash.isequal@4.5.8': resolution: {integrity: sha512-uput6pg4E/tj2LGxCZo9+y27JNyB2OZuuI/T5F+ylVDYuqICLG2/ktjxx0v6GvVntAf8TvEzeQLcV0ffRirXuA==} @@ -3326,9 +3316,6 @@ packages: '@types/tar-stream@3.1.3': resolution: {integrity: sha512-Zbnx4wpkWBMBSu5CytMbrT5ZpMiF55qgM+EpHzR4yIDu7mv52cej8hTkOc6K+LzpkOAbxwn/m7j3iO+/l42YkQ==} - '@types/tough-cookie@4.0.5': - resolution: {integrity: sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==} - '@types/unist@2.0.11': resolution: {integrity: sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==} @@ -3550,10 +3537,6 @@ packages: xstate: optional: true - abab@2.0.6: - resolution: {integrity: sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==} - deprecated: Use your platform's native atob() and btoa() methods instead - abort-controller@3.0.0: resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} engines: {node: '>=6.5'} @@ -3562,9 +3545,6 @@ packages: resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==} engines: {node: '>= 0.6'} - acorn-globals@7.0.1: - resolution: {integrity: sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==} - acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -3579,10 +3559,6 @@ packages: engines: {node: '>=0.4.0'} hasBin: true - agent-base@6.0.2: - resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} - engines: {node: '>= 6.0.0'} - agent-base@7.1.1: resolution: {integrity: sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==} engines: {node: '>= 14'} @@ -4234,16 +4210,6 @@ packages: engines: {node: '>=4'} hasBin: true - cssom@0.3.8: - resolution: {integrity: sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==} - - cssom@0.5.0: - resolution: {integrity: sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==} - - cssstyle@2.3.0: - resolution: {integrity: sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==} - engines: {node: '>=8'} - cssstyle@4.1.0: resolution: {integrity: sha512-h66W1URKpBS5YMI/V8PyXvTMFT8SupJ1IzoIV8IeBC/ji8WVmrO8dGlTi+2dh6whmdk6BiKJLD/ZBkhWbcg6nA==} engines: {node: '>=18'} @@ -4264,10 +4230,6 @@ packages: data-uri-to-buffer@1.2.0: resolution: {integrity: sha512-vKQ9DTQPN1FLYiiEEOQ6IBGFqvjCa5rSK3cWMy/Nespm5d/x3dGFT9UBZnkLxCwua/IXBi2TYnwTEpsOvhC4UQ==} - data-urls@3.0.2: - resolution: {integrity: sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==} - engines: {node: '>=12'} - data-urls@5.0.0: resolution: {integrity: sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==} engines: {node: '>=18'} @@ -4495,11 +4457,6 @@ packages: domelementtype@2.3.0: resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} - domexception@4.0.0: - resolution: {integrity: sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==} - engines: {node: '>=12'} - deprecated: Use your platform's native DOMException instead - domhandler@5.0.3: resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==} engines: {node: '>= 4'} @@ -4645,11 +4602,6 @@ packages: resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} engines: {node: '>=12'} - escodegen@2.1.0: - resolution: {integrity: sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==} - engines: {node: '>=6.0'} - hasBin: true - eslint-plugin-jsx-a11y@6.9.0: resolution: {integrity: sha512-nOFOCaJG2pYqORjK19lqPqxMO/JpvdCZdPtNdxY3kvom3jTvkAbOvQvD8wuD0G8BYR0IGAGYDlzqWJOh/ybn2g==} engines: {node: '>=4.0'} @@ -5210,10 +5162,6 @@ packages: hotscript@1.0.13: resolution: {integrity: sha512-C++tTF1GqkGYecL+2S1wJTfoH6APGAsbb7PAWQ3iVIwgG/EFseAfEVOKFgAFq4yK3+6j1EjUD4UQ9dRJHX/sSQ==} - html-encoding-sniffer@3.0.0: - resolution: {integrity: sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==} - engines: {node: '>=12'} - html-encoding-sniffer@4.0.0: resolution: {integrity: sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==} engines: {node: '>=18'} @@ -5231,18 +5179,10 @@ packages: resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==} engines: {node: '>= 0.8'} - http-proxy-agent@5.0.0: - resolution: {integrity: sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==} - engines: {node: '>= 6'} - http-proxy-agent@7.0.2: resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==} engines: {node: '>= 14'} - https-proxy-agent@5.0.1: - resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} - engines: {node: '>= 6'} - https-proxy-agent@7.0.5: resolution: {integrity: sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==} engines: {node: '>= 14'} @@ -5672,15 +5612,6 @@ packages: resolution: {integrity: sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - jest-environment-jsdom@29.7.0: - resolution: {integrity: sha512-k9iQbsf9OyOfdzWH8HDmrRT0gSIcX+FLNW7IQq94tFX0gynPwqDTW0Ho6iMVNjGz/nb+l/vW3dWM2bbLLpkbXA==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - peerDependencies: - canvas: ^2.5.0 - peerDependenciesMeta: - canvas: - optional: true - jest-environment-node@29.7.0: resolution: {integrity: sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -5798,15 +5729,6 @@ packages: peerDependencies: jsdom: '>=10.0.0' - jsdom@20.0.3: - resolution: {integrity: sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==} - engines: {node: '>=14'} - peerDependencies: - canvas: ^2.5.0 - peerDependenciesMeta: - canvas: - optional: true - jsdom@23.2.0: resolution: {integrity: sha512-L88oL7D/8ufIES+Zjz7v0aes+oBMh2Xnh3ygWvL0OaICOomKEPKuPnIfBJekiXr+BHbbMjrWn/xqrDQuxFTeyA==} engines: {node: '>=18'} @@ -7648,10 +7570,6 @@ packages: resolution: {integrity: sha512-FRKsF7cz96xIIeMZ82ehjC3xW2E+O2+v11udrDYewUbszngYhsGa8z6YUMMzO9QJZzzyd0nGGXnML/TReX6W8Q==} engines: {node: '>=16'} - tr46@3.0.0: - resolution: {integrity: sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==} - engines: {node: '>=12'} - tr46@5.0.0: resolution: {integrity: sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==} engines: {node: '>=18'} @@ -8105,10 +8023,6 @@ packages: w3c-keyname@2.2.8: resolution: {integrity: sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==} - w3c-xmlserializer@4.0.0: - resolution: {integrity: sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==} - engines: {node: '>=14'} - w3c-xmlserializer@5.0.0: resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==} engines: {node: '>=18'} @@ -8128,26 +8042,14 @@ packages: resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==} engines: {node: '>=12'} - whatwg-encoding@2.0.0: - resolution: {integrity: sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==} - engines: {node: '>=12'} - whatwg-encoding@3.1.1: resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==} engines: {node: '>=18'} - whatwg-mimetype@3.0.0: - resolution: {integrity: sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==} - engines: {node: '>=12'} - whatwg-mimetype@4.0.0: resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==} engines: {node: '>=18'} - whatwg-url@11.0.0: - resolution: {integrity: sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==} - engines: {node: '>=12'} - whatwg-url@14.0.0: resolution: {integrity: sha512-1lfMEm2IEr7RIV+f4lUNPOqfFL+pO+Xw3fJSqmjX9AbXcXcYOkCe1P6+9VBZB6n94af16NfZf+sSk0JCBZC9aw==} engines: {node: '>=18'} @@ -8235,10 +8137,6 @@ packages: resolution: {integrity: sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==} engines: {node: '>=8'} - xml-name-validator@4.0.0: - resolution: {integrity: sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==} - engines: {node: '>=12'} - xml-name-validator@5.0.0: resolution: {integrity: sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==} engines: {node: '>=18'} @@ -12019,8 +11917,6 @@ snapshots: '@types/react': 18.3.3 '@types/react-dom': 18.3.0 - '@tootallnate/once@2.0.0': {} - '@tsconfig/node10@1.0.11': {} '@tsconfig/node12@1.0.11': {} @@ -12131,12 +12027,6 @@ snapshots: dependencies: '@types/istanbul-lib-report': 3.0.3 - '@types/jsdom@20.0.1': - dependencies: - '@types/node': 18.19.45 - '@types/tough-cookie': 4.0.5 - parse5: 7.1.2 - '@types/lodash.isequal@4.5.8': dependencies: '@types/lodash': 4.17.7 @@ -12221,8 +12111,6 @@ snapshots: dependencies: '@types/node': 18.19.45 - '@types/tough-cookie@4.0.5': {} - '@types/unist@2.0.11': {} '@types/unist@3.0.3': {} @@ -12516,8 +12404,6 @@ snapshots: transitivePeerDependencies: - '@types/react' - abab@2.0.6: {} - abort-controller@3.0.0: dependencies: event-target-shim: 5.0.1 @@ -12527,11 +12413,6 @@ snapshots: mime-types: 2.1.35 negotiator: 0.6.3 - acorn-globals@7.0.1: - dependencies: - acorn: 8.12.1 - acorn-walk: 8.3.3 - acorn-jsx@5.3.2(acorn@8.12.1): dependencies: acorn: 8.12.1 @@ -12542,12 +12423,6 @@ snapshots: acorn@8.12.1: {} - agent-base@6.0.2: - dependencies: - debug: 4.3.6 - transitivePeerDependencies: - - supports-color - agent-base@7.1.1: dependencies: debug: 4.3.6 @@ -13303,14 +13178,6 @@ snapshots: cssesc@3.0.0: {} - cssom@0.3.8: {} - - cssom@0.5.0: {} - - cssstyle@2.3.0: - dependencies: - cssom: 0.3.8 - cssstyle@4.1.0: dependencies: rrweb-cssom: 0.7.1 @@ -13328,12 +13195,6 @@ snapshots: data-uri-to-buffer@1.2.0: {} - data-urls@3.0.2: - dependencies: - abab: 2.0.6 - whatwg-mimetype: 3.0.0 - whatwg-url: 11.0.0 - data-urls@5.0.0: dependencies: whatwg-mimetype: 4.0.0 @@ -13558,10 +13419,6 @@ snapshots: domelementtype@2.3.0: {} - domexception@4.0.0: - dependencies: - webidl-conversions: 7.0.0 - domhandler@5.0.3: dependencies: domelementtype: 2.3.0 @@ -13832,14 +13689,6 @@ snapshots: escape-string-regexp@5.0.0: {} - escodegen@2.1.0: - dependencies: - esprima: 4.0.1 - estraverse: 5.3.0 - esutils: 2.0.3 - optionalDependencies: - source-map: 0.6.1 - eslint-plugin-jsx-a11y@6.9.0(eslint@8.57.0): dependencies: aria-query: 5.1.3 @@ -14569,10 +14418,6 @@ snapshots: hotscript@1.0.13: {} - html-encoding-sniffer@3.0.0: - dependencies: - whatwg-encoding: 2.0.0 - html-encoding-sniffer@4.0.0: dependencies: whatwg-encoding: 3.1.1 @@ -14593,14 +14438,6 @@ snapshots: statuses: 2.0.1 toidentifier: 1.0.1 - http-proxy-agent@5.0.0: - dependencies: - '@tootallnate/once': 2.0.0 - agent-base: 6.0.2 - debug: 4.3.6 - transitivePeerDependencies: - - supports-color - http-proxy-agent@7.0.2: dependencies: agent-base: 7.1.1 @@ -14608,13 +14445,6 @@ snapshots: transitivePeerDependencies: - supports-color - https-proxy-agent@5.0.1: - dependencies: - agent-base: 6.0.2 - debug: 4.3.6 - transitivePeerDependencies: - - supports-color - https-proxy-agent@7.0.5: dependencies: agent-base: 7.1.1 @@ -15066,21 +14896,6 @@ snapshots: jest-util: 29.7.0 pretty-format: 29.7.0 - jest-environment-jsdom@29.7.0: - dependencies: - '@jest/environment': 29.7.0 - '@jest/fake-timers': 29.7.0 - '@jest/types': 29.6.3 - '@types/jsdom': 20.0.1 - '@types/node': 18.19.45 - jest-mock: 29.7.0 - jest-util: 29.7.0 - jsdom: 20.0.3 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - jest-environment-node@29.7.0: dependencies: '@jest/environment': 29.7.0 @@ -15318,39 +15133,6 @@ snapshots: dependencies: jsdom: 23.2.0 - jsdom@20.0.3: - dependencies: - abab: 2.0.6 - acorn: 8.12.1 - acorn-globals: 7.0.1 - cssom: 0.5.0 - cssstyle: 2.3.0 - data-urls: 3.0.2 - decimal.js: 10.4.3 - domexception: 4.0.0 - escodegen: 2.1.0 - form-data: 4.0.0 - html-encoding-sniffer: 3.0.0 - http-proxy-agent: 5.0.0 - https-proxy-agent: 5.0.1 - is-potential-custom-element-name: 1.0.1 - nwsapi: 2.2.12 - parse5: 7.1.2 - saxes: 6.0.0 - symbol-tree: 3.2.4 - tough-cookie: 4.1.4 - w3c-xmlserializer: 4.0.0 - webidl-conversions: 7.0.0 - whatwg-encoding: 2.0.0 - whatwg-mimetype: 3.0.0 - whatwg-url: 11.0.0 - ws: 8.18.0 - xml-name-validator: 4.0.0 - transitivePeerDependencies: - - bufferutil - - supports-color - - utf-8-validate - jsdom@23.2.0: dependencies: '@asamuzakjp/dom-selector': 2.0.2 @@ -17774,10 +17556,6 @@ snapshots: dependencies: tldts: 6.1.47 - tr46@3.0.0: - dependencies: - punycode: 2.3.1 - tr46@5.0.0: dependencies: punycode: 2.3.1 @@ -18212,10 +17990,6 @@ snapshots: w3c-keyname@2.2.8: {} - w3c-xmlserializer@4.0.0: - dependencies: - xml-name-validator: 4.0.0 - w3c-xmlserializer@5.0.0: dependencies: xml-name-validator: 5.0.0 @@ -18240,23 +18014,12 @@ snapshots: webidl-conversions@7.0.0: {} - whatwg-encoding@2.0.0: - dependencies: - iconv-lite: 0.6.3 - whatwg-encoding@3.1.1: dependencies: iconv-lite: 0.6.3 - whatwg-mimetype@3.0.0: {} - whatwg-mimetype@4.0.0: {} - whatwg-url@11.0.0: - dependencies: - tr46: 3.0.0 - webidl-conversions: 7.0.0 - whatwg-url@14.0.0: dependencies: tr46: 5.0.0 @@ -18353,8 +18116,6 @@ snapshots: xdg-basedir@4.0.0: {} - xml-name-validator@4.0.0: {} - xml-name-validator@5.0.0: {} xmlchars@2.2.0: {}