-
Notifications
You must be signed in to change notification settings - Fork 107
V12 #2102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
1f5fd86 to
ca9bbbf
Compare
05fa616 to
36c320d
Compare
|
|
||
| function bootstrap() { | ||
| execSync(path.resolve('scripts/clean.js'), opts) |
Check warning
Code scanning / CodeQL
Shell command built from environment values Medium
absolute path
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 2 months ago
To fix this vulnerability and avoid misinterpretation of a file path passed to the shell, the project should explicitly invoke the script using the Node.js interpreter and pass the path as an argument, rather than passing the resolved path directly as the shell command to execSync. The best practice is to use execFileSync("node", [path.resolve("scripts/clean.js")], opts) instead. This approach ensures that the file path is not interpreted by the shell, and special characters, spaces, or shell metacharacters in the path cannot alter command execution. The edit should be made only on line 68 in scripts/bootstrap.js, replacing the usage of execSync for executing the clean script.
-
Copy modified lines R68-R72
| @@ -65,7 +65,11 @@ | ||
| } | ||
|
|
||
| function bootstrap() { | ||
| execSync(path.resolve('scripts/clean.js'), opts) | ||
| require('child_process').execFileSync( | ||
| 'node', | ||
| [path.resolve('scripts/clean.js')], | ||
| opts | ||
| ); | ||
| buildProject() | ||
| } | ||
|
|
Migrates Text component from legacy theme.ts to new token-based theming system: - Remove theme.ts file and use direct token references in styles - Update color mappings to use new semantic tokens (baseColor, mutedColor, etc.) - Add fontFamily to variant definitions from typography tokens - Update theme variable references throughout styles.ts BREAKING CHANGE: Removed 'alert' color prop value. Use 'primary' color instead. Also improves documentation: - Clarify variant usage and recommendations in README - Add deprecation notes for size, weight, and lineHeight legacy values - Update color examples to include inverse colors and remove alert - Add JSDoc comments for deprecated prop values - Improve code examples with clearer formatting To test: Compare with Figma design 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
…g build error, fix docs key warning
INSTUI-4838
- Converted `NumberInput` from class-based to functional component - It uses the theme from TextInput, they are the same in Figma - The styling of the upper label/messages are not done, they are coming in `FormFieldLayout` Tokens are also not fully used (they are used only in `TextInput`): - `fontSizeSm`, `heightSm`, `paddingHorizontalSm`: This component has no small size - `gapContent`: This is a gap between the text and elements rendered after it, `NumberInput` does not have such To test: - Check the examples in the docs, they should function exactly as before - Compare its CSS to the ones in Figma Completes INSTUI-4814
INSTUI-4801
…gs when a focusable element is rendered inside It was using a :focus-within selector, but this was not a good solution when the TextInput contained a focusable element. The new solution only displays the component's focus ring if an input is focused, preventing double focus
INSTUI-4816
No description provided.