diff --git a/packages/builder/src/components/common/bindings/BindingPanel.svelte b/packages/builder/src/components/common/bindings/BindingPanel.svelte
index 9543c97791..1872ee2e5f 100644
--- a/packages/builder/src/components/common/bindings/BindingPanel.svelte
+++ b/packages/builder/src/components/common/bindings/BindingPanel.svelte
@@ -77,6 +77,18 @@
$: runtimeExpression = readableToRuntimeBinding(enrichedBindings, value)
$: requestUpdateEvaluation(runtimeExpression, context)
$: bindingHelpers = new BindingHelpers(getCaretPosition, insertAtPos)
+ $: hbsCompletions = [
+ hbAutocomplete([
+ ...bindingCompletions,
+ ...getHelperCompletions(EditorModes.Handlebars),
+ ]),
+ ]
+ $: jsCompletions = [
+ jsAutocomplete([
+ ...bindingCompletions,
+ ...getHelperCompletions(EditorModes.JS),
+ ]),
+ ]
const debouncedUpdateEvaluation = Utils.debounce((expression, context) => {
expressionResult = processStringSync(expression || "", context)
@@ -217,38 +229,32 @@
{#if mode === Modes.Text}
-
+ {#key hbsCompletions}
+
+ {/key}
{:else if mode === Modes.JavaScript}
-
+ {#key jsCompletions}
+
+ {/key}
{/if}
{#if targetMode}
diff --git a/packages/builder/src/components/common/bindings/ClientBindingPanel.svelte b/packages/builder/src/components/common/bindings/ClientBindingPanel.svelte
index 97cb097a51..843dec8c89 100644
--- a/packages/builder/src/components/common/bindings/ClientBindingPanel.svelte
+++ b/packages/builder/src/components/common/bindings/ClientBindingPanel.svelte
@@ -4,7 +4,6 @@
import { onMount } from "svelte"
export let bindings = []
- export let valid
export let value = ""
export let allowJS = false
export let allowHelpers = true
@@ -27,7 +26,6 @@
-
+
(tempValue = event.detail)}
{bindings}
{allowJS}
diff --git a/packages/builder/src/components/common/bindings/DrawerBindableInput.svelte b/packages/builder/src/components/common/bindings/DrawerBindableInput.svelte
index 12aa4edf2e..d11ebcf87a 100644
--- a/packages/builder/src/components/common/bindings/DrawerBindableInput.svelte
+++ b/packages/builder/src/components/common/bindings/DrawerBindableInput.svelte
@@ -28,7 +28,6 @@
const dispatch = createEventDispatcher()
let bindingDrawer
- let valid = true
let currentVal = value
$: readableValue = runtimeToReadableBinding(bindings, value)
@@ -93,13 +92,10 @@
title={title ?? placeholder ?? "Bindings"}
{forceModal}
>
-
+
(tempValue = event.detail)}
{bindings}
diff --git a/packages/builder/src/components/common/bindings/DrawerBindableSlot.svelte b/packages/builder/src/components/common/bindings/DrawerBindableSlot.svelte
index 84045e786a..8ce9dda209 100644
--- a/packages/builder/src/components/common/bindings/DrawerBindableSlot.svelte
+++ b/packages/builder/src/components/common/bindings/DrawerBindableSlot.svelte
@@ -25,7 +25,6 @@
const dispatch = createEventDispatcher()
let bindingDrawer
- let valid = true
let currentVal = value
$: readableValue = runtimeToReadableBinding(bindings, value)
@@ -176,13 +175,10 @@
title={title ?? placeholder ?? "Bindings"}
left={drawerLeft}
>
-
+
(tempValue = event.detail)}
{bindings}
diff --git a/packages/builder/src/components/common/bindings/ServerBindingPanel.svelte b/packages/builder/src/components/common/bindings/ServerBindingPanel.svelte
index fdc8254a18..5718d080f2 100644
--- a/packages/builder/src/components/common/bindings/ServerBindingPanel.svelte
+++ b/packages/builder/src/components/common/bindings/ServerBindingPanel.svelte
@@ -2,7 +2,6 @@
import BindingPanel from "./BindingPanel.svelte"
export let bindings = []
- export let valid
export let value = ""
export let allowJS = false
export let context = null
@@ -20,7 +19,6 @@
-
+
Provide a JSON array to use as data
(tmpCustomData = event.detail)}
{bindings}