bump kittycad lib (#1907)

This commit is contained in:
Kurt Hutten
2024-03-26 21:27:50 +11:00
committed by GitHub
parent 3688c8a05e
commit 39566174e7
4 changed files with 5 additions and 9 deletions

View File

@ -10,7 +10,7 @@
"@fortawesome/react-fontawesome": "^0.2.0", "@fortawesome/react-fontawesome": "^0.2.0",
"@headlessui/react": "^1.7.18", "@headlessui/react": "^1.7.18",
"@headlessui/tailwindcss": "^0.2.0", "@headlessui/tailwindcss": "^0.2.0",
"@kittycad/lib": "^0.1.0", "@kittycad/lib": "^0.0.56",
"@lezer/javascript": "^1.4.9", "@lezer/javascript": "^1.4.9",
"@open-rpc/client-js": "^1.8.1", "@open-rpc/client-js": "^1.8.1",
"@react-hook/resize-observer": "^1.2.6", "@react-hook/resize-observer": "^1.2.6",

View File

@ -242,7 +242,6 @@ export const ModelingMachineProvider = ({
} }
exportFromEngine({ exportFromEngine({
source_unit: baseUnit,
format: format as Models['OutputFormat_type'], format: format as Models['OutputFormat_type'],
}).catch((e) => toast.error('Error while exporting', e)) // TODO I think we need to throw the error from engineCommandManager }).catch((e) => toast.error('Error while exporting', e)) // TODO I think we need to throw the error from engineCommandManager
}, },

View File

@ -5,10 +5,8 @@ import { v4 as uuidv4 } from 'uuid'
// Isolating a function to call the engine to export the current scene. // Isolating a function to call the engine to export the current scene.
// Because it has given us trouble in automated testing environments. // Because it has given us trouble in automated testing environments.
export function exportFromEngine({ export function exportFromEngine({
source_unit,
format, format,
}: { }: {
source_unit: Models['UnitLength_type']
format: Models['OutputFormat_type'] format: Models['OutputFormat_type']
}) { }) {
return engineCommandManager.sendSceneCommand({ return engineCommandManager.sendSceneCommand({
@ -20,7 +18,6 @@ export function exportFromEngine({
// in the scene to export. In that case, you'd pass the IDs thru here. // in the scene to export. In that case, you'd pass the IDs thru here.
entity_ids: [], entity_ids: [],
format, format,
source_unit,
}, },
cmd_id: uuidv4(), cmd_id: uuidv4(),
}) })

View File

@ -1802,10 +1802,10 @@
resolved "https://registry.yarnpkg.com/@juggle/resize-observer/-/resize-observer-3.4.0.tgz#08d6c5e20cf7e4cc02fd181c4b0c225cd31dbb60" resolved "https://registry.yarnpkg.com/@juggle/resize-observer/-/resize-observer-3.4.0.tgz#08d6c5e20cf7e4cc02fd181c4b0c225cd31dbb60"
integrity sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA== integrity sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==
"@kittycad/lib@^0.1.0": "@kittycad/lib@^0.0.56":
version "0.1.0" version "0.0.56"
resolved "https://registry.yarnpkg.com/@kittycad/lib/-/lib-0.1.0.tgz#1a65936cd4f933bbea5a691f195f6eb63f1c14b2" resolved "https://registry.yarnpkg.com/@kittycad/lib/-/lib-0.0.56.tgz#4cdecd3d51f296a6654b3994a4711112865a8d79"
integrity sha512-Zx7ukUDIJSoDowMII+j5WU8FqcYaOA3HqtG6dNwSiv4+MdU+Ifuj+XjduqxUxP0Z4eaq4u6hV8lBsv4b4CYzeA== integrity sha512-04E6qH6mR9fK+Vzxw6KJKJiEWsVKCJtAMbHh7qyblVo51oz7CSPtFh67SGHGsqVazTwJO+Ht/Gx0HrVycVcfZg==
dependencies: dependencies:
node-fetch "3.3.2" node-fetch "3.3.2"
openapi-types "^12.0.0" openapi-types "^12.0.0"