@@ -371,6 +370,7 @@
inputSpecsConfiguration={initialConfiguration}
bind:inputSpecs={componentSettings.item.data.configuration}
userInputEnabled={false}
+ acceptSelf
/>
{:else if componentSettings.item.data.type != 'containercomponent'}
diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/GridTabDisabled.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/GridTabDisabled.svelte
index 50595490ce..aab13f4188 100644
--- a/frontend/src/lib/components/apps/editor/settingsPanel/GridTabDisabled.svelte
+++ b/frontend/src/lib/components/apps/editor/settingsPanel/GridTabDisabled.svelte
@@ -19,9 +19,10 @@
on:change={() => {
if (disablable) {
field = {
- type: 'eval',
+ type: 'evalv2',
expr: 'false',
- fieldType: 'boolean'
+ fieldType: 'boolean',
+ connections: []
}
} else {
field = {
diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/InputsSpecEditor.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/InputsSpecEditor.svelte
index 31b725183e..47a82e4a5c 100644
--- a/frontend/src/lib/components/apps/editor/settingsPanel/InputsSpecEditor.svelte
+++ b/frontend/src/lib/components/apps/editor/settingsPanel/InputsSpecEditor.svelte
@@ -36,6 +36,7 @@
export let shouldFormatExpression: boolean = false
export let fixedOverflowWidgets: boolean = true
export let loading: boolean = false
+ export let acceptSelf: boolean = false
const { connectingInput, app } = getContext
('AppViewerContext')
@@ -168,6 +169,7 @@
{:else if componentInput?.type === 'evalv2'}
('AppViewerContext')
const { evalPreview } = getContext('AppEditorContext')
@@ -25,7 +26,7 @@
$: extraLib =
componentInput?.expr && $worldStore
- ? buildExtraLib($worldStore?.outputsById ?? {}, id, $state, false)
+ ? buildExtraLib($worldStore?.outputsById ?? {}, acceptSelf ? '' : id, $state, false)
: undefined
if (
diff --git a/frontend/src/lib/components/apps/inputType.ts b/frontend/src/lib/components/apps/inputType.ts
index 9a8f4af63f..0d72d2d2bd 100644
--- a/frontend/src/lib/components/apps/inputType.ts
+++ b/frontend/src/lib/components/apps/inputType.ts
@@ -74,6 +74,7 @@ export type EvalInputV2 = {
type: 'evalv2'
expr: string
connections: InputConnectionEval[]
+ onDemandOnly?: boolean
}
export type RowInput = {
@@ -162,6 +163,7 @@ type InputConfiguration = {
convertTo?: ReadFileAs
}
noStatic?: boolean
+ onDemandOnly?: boolean
}
export type StaticOptions = {
@@ -216,6 +218,8 @@ export type UserAppInput = Extract
export type ResultAppInput = Extract
export type EvalAppInput = Extract
export type EvalV2AppInput = Extract
+export type StaticAppInputOnDemand = Extract
+
export type UploadAppInput = Extract
export type RichAppInput =