Repository navigation
fix: support CSP nonce in getTargetScrollBarSize - #821
HhBeingStrong wants to merge 1 commit into
Conversation
|
@HhBeingStrong is attempting to deploy a commit to the afc163's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Walkthrough
Changes滚动条测量的 CSP nonce 支持
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #821 +/- ##
==========================================
+ Coverage 87.00% 88.08% +1.07%
==========================================
Files 42 42
Lines 1116 1116
Branches 399 407 +8
==========================================
+ Hits 971 983 +12
+ Misses 143 131 -12
Partials 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Add an optional CSP configuration to getTargetScrollBarSize and forward
its nonce to the temporary styles used for scrollbar measurement.
Existing calls remain compatible. Callers need to pass their CSP configuration.
Related to #613
Validation: all 32 test suites passed; TypeScript check passed.
Summary by CodeRabbit
ConfigProvider的组件可将其csp配置传入;该工具不会自动读取 React context。