Files
webstudio/packages/sdk/package.json
Oleg Isonen 9f497a3513 feat: Redirects improvements (#5619)
Show a warning banner when a redirect path matches the current page
path, indicating the redirect will override access to the page.

Changes:
- Add PanelBanner component with warning variant to page settings
- Implement findMatchingRedirect utility to detect redirect conflicts
- Show contextual warning with link to Redirects settings section
- Add comprehensive tests for redirect conflict detection

Code quality:
- Replace 'return undefined' with 'return' per style guide
- Use 'return null' for React components returning nothing
2026-02-19 11:26:07 +01:00

67 lines
2.1 KiB
JSON

{
"name": "@webstudio-is/sdk",
"version": "0.0.0-webstudio-version",
"description": "Webstudio project data schema",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
"license": "AGPL-3.0-or-later",
"type": "module",
"exports": {
".": {
"webstudio": "./src/index.ts",
"types": "./lib/types/index.d.ts",
"import": "./lib/index.js"
},
"./runtime": {
"webstudio": "./src/runtime.ts",
"types": "./lib/types/runtime.d.ts",
"import": "./lib/runtime.js"
},
"./normalize.css": {
"webstudio": "./src/__generated__/normalize.css.ts",
"types": "./lib/types/__generated__/normalize.css.d.ts",
"import": "./lib/__generated__/normalize.css.js"
},
"./core-templates": {
"webstudio": "./src/core-templates.tsx",
"types": "./lib/types/core-templates.d.ts",
"import": "./lib/core-templates.js"
},
"./router-paths.test": {
"webstudio": "./src/router-paths.test.ts"
}
},
"files": [
"lib/*",
"!*.{test,stories}.*"
],
"sideEffects": false,
"scripts": {
"typecheck": "tsgo --noEmit -p tsconfig.typecheck.json",
"test": "vitest run",
"build:normalize.css": "tsx --conditions=webstudio ./scripts/normalize.css.ts && prettier --write src/__generated__/normalize.css.ts",
"build": "rm -rf lib && esbuild src/index.ts src/runtime.ts src/__generated__/normalize.css.ts src/core-templates.tsx --outdir=lib --bundle --format=esm --packages=external",
"dts": "tsc --project tsconfig.dts.json"
},
"dependencies": {
"@emotion/hash": "^0.9.2",
"@webstudio-is/css-engine": "workspace:*",
"@webstudio-is/fonts": "workspace:*",
"@webstudio-is/icons": "workspace:*",
"acorn": "^8.14.1",
"acorn-walk": "^8.3.4",
"change-case": "^5.4.4",
"reserved-identifiers": "^1.0.0",
"type-fest": "^4.37.0",
"warn-once": "^0.1.1",
"zod": "^3.24.2"
},
"devDependencies": {
"@webstudio-is/css-data": "workspace:*",
"@webstudio-is/template": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"html-tags": "^4.0.0",
"vitest": "^3.1.2"
}
}