Assemblies: Make Clone available in releases (#6538)
* Assemblies: Make Clone available in releases Fixes #6537 * Lint
This commit is contained in:
@ -1,7 +1,6 @@
|
|||||||
import type { Models } from '@kittycad/lib'
|
import type { Models } from '@kittycad/lib'
|
||||||
|
|
||||||
import { angleLengthInfo } from '@src/components/Toolbar/angleLengthInfo'
|
import { angleLengthInfo } from '@src/components/Toolbar/angleLengthInfo'
|
||||||
import { DEV } from '@src/env'
|
|
||||||
import { findUniqueName } from '@src/lang/create'
|
import { findUniqueName } from '@src/lang/create'
|
||||||
import { getNodeFromPath } from '@src/lang/queryAst'
|
import { getNodeFromPath } from '@src/lang/queryAst'
|
||||||
import { getVariableDeclaration } from '@src/lang/queryAst/getVariableDeclaration'
|
import { getVariableDeclaration } from '@src/lang/queryAst/getVariableDeclaration'
|
||||||
@ -34,7 +33,6 @@ import type { Selections } from '@src/lib/selections'
|
|||||||
import { codeManager, kclManager } from '@src/lib/singletons'
|
import { codeManager, kclManager } from '@src/lib/singletons'
|
||||||
import { err } from '@src/lib/trap'
|
import { err } from '@src/lib/trap'
|
||||||
import type { SketchTool, modelingMachine } from '@src/machines/modelingMachine'
|
import type { SketchTool, modelingMachine } from '@src/machines/modelingMachine'
|
||||||
import { IS_NIGHTLY_OR_DEBUG } from '@src/routes/utils'
|
|
||||||
|
|
||||||
type OutputFormat = Models['OutputFormat3d_type']
|
type OutputFormat = Models['OutputFormat3d_type']
|
||||||
type OutputTypeKey = OutputFormat['type']
|
type OutputTypeKey = OutputFormat['type']
|
||||||
@ -1115,7 +1113,6 @@ export const modelingMachineCommandConfig: StateMachineCommandSetConfig<
|
|||||||
description: 'Clone a solid or sketch.',
|
description: 'Clone a solid or sketch.',
|
||||||
icon: 'clone',
|
icon: 'clone',
|
||||||
needsReview: true,
|
needsReview: true,
|
||||||
hide: DEV || IS_NIGHTLY_OR_DEBUG ? undefined : 'both',
|
|
||||||
args: {
|
args: {
|
||||||
nodeToEdit: {
|
nodeToEdit: {
|
||||||
description:
|
description:
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import { DEV } from '@src/env'
|
|
||||||
import type { EventFrom, StateFrom } from 'xstate'
|
import type { EventFrom, StateFrom } from 'xstate'
|
||||||
import { settingsActor } from '@src/lib/singletons'
|
import { settingsActor } from '@src/lib/singletons'
|
||||||
|
|
||||||
@ -11,7 +10,6 @@ import {
|
|||||||
isEditingExistingSketch,
|
isEditingExistingSketch,
|
||||||
pipeHasCircle,
|
pipeHasCircle,
|
||||||
} from '@src/machines/modelingMachine'
|
} from '@src/machines/modelingMachine'
|
||||||
import { IS_NIGHTLY_OR_DEBUG } from '@src/routes/utils'
|
|
||||||
|
|
||||||
export type ToolbarModeName = 'modeling' | 'sketching'
|
export type ToolbarModeName = 'modeling' | 'sketching'
|
||||||
|
|
||||||
@ -405,7 +403,7 @@ export const toolbarConfig: Record<ToolbarModeName, ToolbarMode> = {
|
|||||||
type: 'Find and select command',
|
type: 'Find and select command',
|
||||||
data: { name: 'Clone', groupId: 'modeling' },
|
data: { name: 'Clone', groupId: 'modeling' },
|
||||||
}),
|
}),
|
||||||
status: DEV || IS_NIGHTLY_OR_DEBUG ? 'available' : 'kcl-only',
|
status: 'available',
|
||||||
title: 'Clone',
|
title: 'Clone',
|
||||||
icon: 'clone',
|
icon: 'clone',
|
||||||
description: 'Clone a solid or sketch.',
|
description: 'Clone a solid or sketch.',
|
||||||
|
Reference in New Issue
Block a user