update docs

This commit is contained in:
Ruben Fiszel
2023-02-27 18:26:59 +01:00
parent 42d1cd6456
commit fae406ee8f
7 changed files with 12 additions and 7 deletions
@@ -110,6 +110,10 @@
}
}
export function focus() {
editor?.focus()
}
let width = 0
async function loadMonaco() {
model = meditor.createModel(code, lang, mUri.parse(uri))
@@ -27,8 +27,7 @@
parentModule.id,
$flowStore,
$previewArgs,
false,
true
false
)
</script>
@@ -37,6 +36,7 @@
pickableProperties={stepPropPicker.pickableProperties}
on:select={({ detail }) => {
editor?.insertAtCursor(detail)
editor?.focus()
}}
>
<div class="border border-gray-400">
@@ -33,8 +33,7 @@
mod.id,
$flowStore,
$previewArgs,
false,
true
false
)
</script>
@@ -60,6 +59,7 @@
pickableProperties={stepPropPicker.pickableProperties}
on:select={({ detail }) => {
editor?.insertAtCursor(detail)
editor?.focus()
}}
>
<SimpleEditor
@@ -71,8 +71,7 @@
flowModule.id,
$flowStore,
$previewArgs,
false,
true
false
)
function onKeyDown(event: KeyboardEvent) {
@@ -120,6 +119,7 @@
<svelte:window on:keydown={onKeyDown} />
{previousModule?.id}
{#if value}
<div class="h-full" bind:this={wrapper} bind:clientWidth={width}>
<FlowCard bind:flowModule>
@@ -57,6 +57,7 @@
pickableProperties={undefined}
on:select={({ detail }) => {
editor?.insertAtCursor(detail)
editor?.focus()
}}
>
<SimpleEditor
@@ -64,6 +64,7 @@
pickableProperties={undefined}
on:select={({ detail }) => {
editor?.insertAtCursor(detail)
editor?.focus()
}}
>
<InputTransformForm
@@ -103,7 +103,6 @@ export function getStepPropPicker(
flow: Flow,
args: any,
include_node: boolean,
approvers: boolean = false
): StepPropPicker {
const flowInput = getFlowInput(dfs(parentModule?.id, flow), flowState, args, flow.schema)