Merged PR 436: Update deps

Update deps
This commit is contained in:
Eric Nguyen 2023-03-23 19:07:17 +00:00
parent 1da851e3e0
commit dda6232bed
3 changed files with 661 additions and 634 deletions

View file

@ -18,51 +18,51 @@
"coverage": "vitest run coverage" "coverage": "vitest run coverage"
}, },
"dependencies": { "dependencies": {
"@heroicons/react": "^2.0.14", "@heroicons/react": "^2.0.16",
"@react-hook/size": "^2.1.2", "@react-hook/size": "^2.1.2",
"@types/node": "^18.14.2", "@types/node": "^18.15.5",
"interweave": "^13.0.0", "interweave": "^13.1.0",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-svg-pan-zoom": "^3.12.1", "react-svg-pan-zoom": "^3.12.1",
"react-window": "^1.8.8", "react-window": "^1.8.8",
"sweetalert2": "^11.7.1", "sweetalert2": "^11.7.3",
"sweetalert2-react-content": "^5.0.7", "sweetalert2-react-content": "^5.0.7",
"transformation-matrix": "^2.14.0" "transformation-matrix": "^2.15.0"
}, },
"devDependencies": { "devDependencies": {
"@testing-library/dom": "^8.20.0", "@testing-library/dom": "^9.0.1",
"@testing-library/jest-dom": "^5.16.5", "@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0", "@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3", "@testing-library/user-event": "^14.4.3",
"@types/react": "^18.0.27", "@types/react": "^18.0.28",
"@types/react-dom": "^18.0.10", "@types/react-dom": "^18.0.11",
"@types/react-svg-pan-zoom": "^3.3.5", "@types/react-svg-pan-zoom": "^3.3.5",
"@types/react-window": "^1.8.5", "@types/react-window": "^1.8.5",
"@typescript-eslint/eslint-plugin": "^5.51.0", "@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.51.0", "@typescript-eslint/parser": "^5.56.0",
"@vitejs/plugin-react": "^3.1.0", "@vitejs/plugin-react": "^3.1.0",
"@vitejs/plugin-react-swc": "^3.1.0", "@vitejs/plugin-react-swc": "^3.2.0",
"@vitest/ui": "^0.28.4", "@vitest/ui": "^0.29.7",
"autoprefixer": "^10.4.13", "autoprefixer": "^10.4.14",
"eslint": "^8.33.0", "eslint": "^8.36.0",
"eslint-config-standard": "^17.0.0", "eslint-config-standard": "^17.0.0",
"eslint-config-standard-with-typescript": "^34.0.0", "eslint-config-standard-with-typescript": "^34.0.1",
"eslint-plugin-import": "^2.27.5", "eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.6.1", "eslint-plugin-n": "^15.6.1",
"eslint-plugin-only-warn": "^1.1.0", "eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-promise": "^6.1.1", "eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.32.2", "eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-hooks": "^4.6.0",
"jsdom": "^21.1.0", "jsdom": "^21.1.1",
"mprocs": "^0.6.4", "mprocs": "^0.6.4",
"nodemon": "^2.0.20", "nodemon": "^2.0.22",
"postcss": "^8.4.21", "postcss": "^8.4.21",
"sass": "^1.58.0", "sass": "^1.59.3",
"tailwindcss": "^3.2.4", "tailwindcss": "^3.2.7",
"typescript": "^4.9.5", "typescript": "^5.0.2",
"vite": "^4.1.1", "vite": "^4.2.1",
"vitest": "^0.28.4" "vitest": "^0.29.7"
}, },
"pnpm": { "pnpm": {
"patchedDependencies": { "patchedDependencies": {

1225
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -24,7 +24,7 @@ describe.concurrent('Test server test', () => {
expect(url).toBe('http://localhost:5000'); expect(url).toBe('http://localhost:5000');
}); });
it('Fetch configuration', async() => { it('Fetch configuration', async () => {
const configuration = await FetchConfiguration(); const configuration = await FetchConfiguration();
expect(configuration.MainContainer).toBeDefined(); expect(configuration.MainContainer).toBeDefined();
expect(configuration.MainContainer.Height).toBeGreaterThan(0); expect(configuration.MainContainer.Height).toBeGreaterThan(0);
@ -59,7 +59,7 @@ async function Post2API(resource: string, body: string, method = 'POST'): Promis
* See csharp/SVGLDWebAPI/README.md * See csharp/SVGLDWebAPI/README.md
*/ */
describe.concurrent('Models test suite', () => { describe.concurrent('Models test suite', () => {
it('ActionContainerModel', async() => { it('ActionContainerModel', async () => {
const model: IAction = { const model: IAction = {
Id: 'string', Id: 'string',
CustomLogo: { CustomLogo: {
@ -77,7 +77,7 @@ describe.concurrent('Models test suite', () => {
expect(res).toBe(true); expect(res).toBe(true);
}); });
it('AddingBehaviorEnumModel', async() => { it('AddingBehaviorEnumModel', async () => {
let model: AddMethod = AddMethod.Append; let model: AddMethod = AddMethod.Append;
const res0 = await Post2API('AddingBehaviorEnumModel', JSON.stringify(model)); const res0 = await Post2API('AddingBehaviorEnumModel', JSON.stringify(model));
model = AddMethod.Insert; model = AddMethod.Insert;
@ -86,7 +86,7 @@ describe.concurrent('Models test suite', () => {
const res2 = await Post2API('AddingBehaviorEnumModel', JSON.stringify(model)); const res2 = await Post2API('AddingBehaviorEnumModel', JSON.stringify(model));
model = AddMethod.ReplaceParent; model = AddMethod.ReplaceParent;
const res3 = await Post2API('AddingBehaviorEnumModel', JSON.stringify(model)); const res3 = await Post2API('AddingBehaviorEnumModel', JSON.stringify(model));
model = 69; model = 1;
const res4 = await Post2API('AddingBehaviorEnumModel', JSON.stringify(model)); const res4 = await Post2API('AddingBehaviorEnumModel', JSON.stringify(model));
expect(res0).toBe(true); expect(res0).toBe(true);
expect(res1).toBe(true); expect(res1).toBe(true);
@ -108,7 +108,7 @@ describe.concurrent('Models test suite', () => {
symbols: new Map() symbols: new Map()
}; };
it('ApplicationStateModel', async() => { it('ApplicationStateModel', async () => {
const res = await Post2API('ApplicationStateModel', JSON.stringify(historyState)); const res = await Post2API('ApplicationStateModel', JSON.stringify(historyState));
expect(res).toBe(true); expect(res).toBe(true);
}); });
@ -172,7 +172,7 @@ describe.concurrent('Models test suite', () => {
Style: {} Style: {}
}; };
it('AvailableContainerModel', async() => { it('AvailableContainerModel', async () => {
const res = await Post2API('ApplicationStateModel', JSON.stringify(availableContainerModel)); const res = await Post2API('ApplicationStateModel', JSON.stringify(availableContainerModel));
expect(res).toBe(true); expect(res).toBe(true);
}); });
@ -190,7 +190,7 @@ describe.concurrent('Models test suite', () => {
Height: 0 Height: 0
}; };
it('AvailableSymbolModel', async() => { it('AvailableSymbolModel', async () => {
const res = await Post2API('AvailableSymbolModel', JSON.stringify(availableSymbolModel)); const res = await Post2API('AvailableSymbolModel', JSON.stringify(availableSymbolModel));
expect(res).toBe(true); expect(res).toBe(true);
}); });
@ -200,7 +200,7 @@ describe.concurrent('Models test suite', () => {
DisplayedText: 'string' DisplayedText: 'string'
}; };
it('Category', async() => { it('Category', async () => {
const res = await Post2API('Category', JSON.stringify(category)); const res = await Post2API('Category', JSON.stringify(category));
expect(res).toBe(true); expect(res).toBe(true);
}); });
@ -212,7 +212,7 @@ describe.concurrent('Models test suite', () => {
wrapper: 'string' wrapper: 'string'
}; };
it('Configuration', async() => { it('Configuration', async () => {
const model: IConfiguration = { const model: IConfiguration = {
AvailableContainers: [ AvailableContainers: [
availableContainerModel availableContainerModel
@ -247,7 +247,7 @@ describe.concurrent('Models test suite', () => {
availableContainerModel availableContainerModel
); );
it('ContainerModel', async() => { it('ContainerModel', async () => {
const model: IContainerModel = { const model: IContainerModel = {
children: [], children: [],
properties: containerProperties, properties: containerProperties,
@ -257,12 +257,12 @@ describe.concurrent('Models test suite', () => {
expect(res).toBe(true); expect(res).toBe(true);
}); });
it('ContainerProperties', async() => { it('ContainerProperties', async () => {
const res = await Post2API('ContainerModel', JSON.stringify(containerProperties)); const res = await Post2API('ContainerModel', JSON.stringify(containerProperties));
expect(res).toBe(true); expect(res).toBe(true);
}); });
it('CSSStyle', async() => { it('CSSStyle', async () => {
const model: React.CSSProperties = { const model: React.CSSProperties = {
strokeWidth: '0', strokeWidth: '0',
fillOpacity: '0', fillOpacity: '0',