-
Notifications
You must be signed in to change notification settings - Fork 11
fix(): 支持嵌入 iframe 时通讯 #4584
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
fix(): 支持嵌入 iframe 时通讯 #4584
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4584 +/- ##
==========================================
- Coverage 93.21% 93.21% -0.01%
==========================================
Files 315 316 +1
Lines 10377 10413 +36
Branches 1982 1991 +9
==========================================
+ Hits 9673 9706 +33
- Misses 432 433 +1
- Partials 272 274 +2
|
| sendUrlChange({ | ||
| url: window.location.href, | ||
| }); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
当跨小产品跳转时,不是路由刷新,而是整个页面刷新,不会被 history.listen 监听到,所以这里也加了发送url-change 的消息
next-core
|
||||||||||||||||||||||||||||
| Project |
next-core
|
| Branch Review |
refs/pull/4584/merge
|
| Run status |
|
| Run duration | 00m 27s |
| Commit |
|
| Committer | jojiang |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
6
|
| View all changes introduced in this branch ↗︎ | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (2)
packages/brick-container/src/preview/listen.ts:14
- The use of (window as any).PARENT_ORIGIN_IN_IFRAME is risky as it assumes origin is always defined. If it is not, this will cause an error.
(window as any).PARENT_ORIGIN_IN_IFRAME = origin;
packages/brick-kit/src/core/listen.ts:13
- Remove optional chaining from
data?.urlsincedatais always passed in.
if (window.self !== window.parent && data?.url !== cachedUrl) {
c09aadc to
0e0fbd9
Compare
0e0fbd9 to
46be219
Compare
Refs CD-8866
46be219 to
b7b727a
Compare
Refs CD-8866
依赖检查
组件之间的依赖声明,是微服务组件架构下的重要信息,请确保其正确性。
请勾选以下两组选项其中之一:
或者:
提交信息检查
Git 提交信息将决定包的版本发布及自动生成的 CHANGELOG,请检查工作内容与提交信息是否相符,并在以下每组选项中都依次确认。
破坏性变更:
feat作为提交类型。BREAKING CHANGE: 你的变更说明。新特性:
feat作为提交类型。问题修复:
fix作为提交类型。杂项工作:
即所有对下游使用者无任何影响、且没有必要显示在 CHANGELOG 中的改动,例如修改注释、测试用例、开发文档等:
chore,docs,test等作为提交类型。