diff --git a/app/web/package.json b/app/web/package.json index fc1ffd01..90e65fbe 100644 --- a/app/web/package.json +++ b/app/web/package.json @@ -26,7 +26,6 @@ "date-fns": "^2.30.0", "safe-flat": "^2.1.0", "dbgen": "workspace:*", - "downshift": "^8.2.3", "esbuild-wasm": "^0.19.10", "hash-wasm": "^4.11.0", "idb-keyval": "^6.2.1", diff --git a/app/web/src/nova/ed/panel/side/prop-instance/prop-option.tsx b/app/web/src/nova/ed/panel/side/prop-instance/prop-option.tsx index 2481aec4..3d867e97 100644 --- a/app/web/src/nova/ed/panel/side/prop-instance/prop-option.tsx +++ b/app/web/src/nova/ed/panel/side/prop-instance/prop-option.tsx @@ -1,12 +1,11 @@ -import Downshift from "downshift"; import { FC, useEffect } from "react"; import { useGlobal, useLocal } from "web-utils"; import { apiProxy } from "../../../../../base/load/api/api-proxy"; import { dbProxy } from "../../../../../base/load/db/db-proxy"; import { FMCompDef, FNCompDef } from "../../../../../utils/types/meta-fn"; import { EDGlobal } from "../../../logic/ed-global"; -import { EdPropLabel } from "./prop-label"; import { treeRebuild } from "../../../logic/tree/build"; +import { EdPropLabel } from "./prop-label"; export const EdPropInstanceOptions: FC<{ name: string; @@ -87,7 +86,7 @@ else metaOptions = resOpt; p.render(); }; - let mode = prop.meta?.option_mode; + let mode = cprop.meta?.option_mode; if (!mode) mode = "button"; if (metaOptions && metaOptions.length > 0) { @@ -101,8 +100,27 @@ else metaOptions = resOpt; return (
-
+
{mode === "dropdown" && ( + + )} + + {/* {mode === "dropdown" && ( <> - )} + )} */} {mode === "button" && (
{Array.isArray(metaOptions) && diff --git a/app/web/src/render/editor/panel/side/props/CPOption.tsx b/app/web/src/render/editor/panel/side/props/CPOption.tsx index 5c27e07d..79a6d2a8 100644 --- a/app/web/src/render/editor/panel/side/props/CPOption.tsx +++ b/app/web/src/render/editor/panel/side/props/CPOption.tsx @@ -1,10 +1,9 @@ import { FC, useEffect } from "react"; -import { CPArgs } from "./types"; -import { CPCoded } from "./CPCoded"; import { useGlobal, useLocal } from "web-utils"; import { Loading } from "../../../../../utils/ui/loading"; -import Downshift from "downshift"; import { EditorGlobal } from "../../../logic/global"; +import { CPCoded } from "./CPCoded"; +import { CPArgs } from "./types"; export const CPOption: FC = ({ prop, onChange, editCode, reset }) => { const local = useLocal({ @@ -100,7 +99,7 @@ else metaOptions = resOpt; ) : ( <> - {mode === "dropdown" && ( + {/* {mode === "dropdown" && ( <> - )} + )} */} {mode === "button" && (
{Array.isArray(metaOptions) && diff --git a/bun.lockb b/bun.lockb index 4b0d0f63..e237a1b4 100755 Binary files a/bun.lockb and b/bun.lockb differ