mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-03 10:37:48 +09:00
## Problem
Commit cc20991b accidentally changed `itemToString` for `var` type
values to use `toValue(item)`, which produces `var(--variable,
fallback)` instead of the intended short `--variable` label.
This meant the CSS value input (when unfocused, and in the autocomplete
dropdown) showed the full `var(--variable, fallback)` string, which is
too long for small inputs and not how it previously displayed.
## Fix
- Restored `itemToString` to return `--${item.value}` for var types
(short label)
- Updated the `onFocus` handler to explicitly call `toValue(value)` for
var types, so the full `var(--variable, fallback)` is shown when the
user focuses the input to edit it
39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
JSON
{
|
|
"name": "@webstudio-is/trpc-interface",
|
|
"version": "0.0.0-webstudio-version",
|
|
"description": "Webstudio TRPC Interface",
|
|
"author": "Webstudio <github@webstudio.is>",
|
|
"homepage": "https://webstudio.is",
|
|
"type": "module",
|
|
"scripts": {
|
|
"typecheck": "tsgo --noEmit",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"@webstudio-is/feature-flags": "workspace:*",
|
|
"@webstudio-is/plans": "workspace:*",
|
|
"@trpc/client": "^10.45.2",
|
|
"@trpc/server": "^10.45.2",
|
|
"memoize": "^10.0.0",
|
|
"ts-custom-error": "^3.3.1",
|
|
"zod": "^3.24.2"
|
|
},
|
|
"devDependencies": {
|
|
"@webstudio-is/postgrest": "workspace:*",
|
|
"@webstudio-is/tsconfig": "workspace:*",
|
|
"vitest": "^3.1.2"
|
|
},
|
|
"exports": {
|
|
"./index.server": {
|
|
"webstudio": "./src/index.server.ts",
|
|
"import": "./src/index.server.ts"
|
|
},
|
|
"./authorize": {
|
|
"webstudio": "./src/authorize/role.ts",
|
|
"import": "./src/authorize/role.ts"
|
|
}
|
|
},
|
|
"license": "AGPL-3.0-or-later",
|
|
"sideEffects": false
|
|
}
|