@dfosco/storyboard-react 3.11.0-beta.5 → 3.11.0-beta.6
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/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dfosco/storyboard-react",
|
|
3
|
-
"version": "3.11.0-beta.
|
|
3
|
+
"version": "3.11.0-beta.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@dfosco/storyboard-core": "3.11.0-beta.
|
|
7
|
-
"@dfosco/tiny-canvas": "3.11.0-beta.
|
|
6
|
+
"@dfosco/storyboard-core": "3.11.0-beta.6",
|
|
7
|
+
"@dfosco/tiny-canvas": "3.11.0-beta.6",
|
|
8
8
|
"@neodrag/react": "^2.3.1",
|
|
9
9
|
"glob": "^11.0.0",
|
|
10
10
|
"jsonc-parser": "^3.3.1"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fireEvent, render, screen,
|
|
1
|
+
import { fireEvent, render, screen, act } from '@testing-library/react'
|
|
2
2
|
import CanvasPage from './CanvasPage.jsx'
|
|
3
3
|
import { getCanvasPrimerAttrs, getCanvasThemeVars } from './canvasTheme.js'
|
|
4
4
|
import { updateCanvas } from './canvasApi.js'
|
|
@@ -136,6 +136,7 @@ function snapValue(value, gridSize) {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
/** Snap a position to the grid if snapping is enabled. */
|
|
139
|
+
// eslint-disable-next-line no-unused-vars
|
|
139
140
|
function snapPosition(pos, gridSize, enabled) {
|
|
140
141
|
if (!enabled || !gridSize) return pos
|
|
141
142
|
return {
|
|
@@ -53,7 +53,7 @@ describe('useUndoRedo', () => {
|
|
|
53
53
|
const { result } = renderHook(() => useUndoRedo())
|
|
54
54
|
const s0 = [{ id: '1' }]
|
|
55
55
|
const s1 = [{ id: '1' }, { id: '2' }]
|
|
56
|
-
const s2 = [{ id: '1' }, { id: '3' }]
|
|
56
|
+
const s2 = [{ id: '1' }, { id: '3' }] // eslint-disable-line no-unused-vars
|
|
57
57
|
|
|
58
58
|
act(() => result.current.snapshot(s0, 'add'))
|
|
59
59
|
act(() => result.current.undo(s1))
|