-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ref(feedback): Refactor to better support multiple dialogs #9305
ref(feedback): Refactor to better support multiple dialogs #9305
Conversation
size-limit report 📦
|
packages/feedback/src/widget/Icon.ts
Outdated
const cENS = document.createElementNS.bind(document, XMLNS); | ||
const cENS = <K extends keyof SVGElementTagNameMap>(tagName: K): SVGElementTagNameMap[K] => | ||
// eslint-disable-next-line no-restricted-globals | ||
document.createElementNS(XMLNS, tagName); |
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.
@mydea is there a good way to use document? getGlobalObj
seems to be deprecated
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.
What about WINDOW
from @sentry/browser
? WINDOW.document
should work I guess?
9e01127
to
b3373b7
Compare
1b4b74a
to
6ef6f29
Compare
b3373b7
to
e0dbb83
Compare
Going to merge this into #9217 so i'm not juggling multiple git stacks |
6ef6f29
to
21454dc
Compare
e0037f1
to
267ba37
Compare
- refactor to support multiple widgets - add `attachTo` and `createWidget` public methods to create respective components.
- refactor to support multiple widgets - add `attachTo` and `createWidget` public methods to create respective components.
- refactor to support multiple widgets - add `attachTo` and `createWidget` public methods to create respective components.
- refactor to support multiple widgets - add `attachTo` and `createWidget` public methods to create respective components.
- refactor to support multiple widgets - add `attachTo` and `createWidget` public methods to create respective components.
- refactor to support multiple widgets - add `attachTo` and `createWidget` public methods to create respective components.
attachTo
andcreateWidget
public methods to create respective components.Requires #9217