Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/concrete-utopia/utopia in…
Browse files Browse the repository at this point in the history
…to spike/plugin-prop-setter
  • Loading branch information
bkrmendy committed Oct 22, 2024
2 parents 19ef8ed + 4c0ed00 commit c738164
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions editor/src/components/canvas/commands/utils/property-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ import type { EditorState, EditorStatePatch } from '../../../editor/store/editor
import { modifyUnderlyingElementForOpenFile } from '../../../editor/store/editor-state'
import { patchParseSuccessAtElementPath } from '../patch-utils'

export interface EditorStateWithPatch {
editorStateWithChanges: EditorState
editorStatePatch: EditorStatePatch
}

export function applyValuesAtPath(
editorState: EditorState,
target: ElementPath,
jsxValuesAndPathsToSet: ValueAtPath[],
): EditorStateWithPatch {
): { editorStateWithChanges: EditorState; editorStatePatch: EditorStatePatch } {
const workingEditorState = modifyUnderlyingElementForOpenFile(
target,
editorState,
Expand Down Expand Up @@ -56,7 +51,7 @@ export function deleteValuesAtPath(
editorState: EditorState,
target: ElementPath,
properties: Array<PropertyPath>,
): EditorStateWithPatch {
): { editorStateWithChanges: EditorState; editorStatePatch: EditorStatePatch } {
const workingEditorState = modifyUnderlyingElementForOpenFile(
target,
editorState,
Expand Down

0 comments on commit c738164

Please sign in to comment.