-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
transcend
API object an EventTarget and dispatch `view-state-c…
…hange` events (#129)
- Loading branch information
1 parent
794b962
commit 2c77f9c
Showing
9 changed files
with
103 additions
and
45 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file renamed
BIN
+62.1 KB
...types-npm-9.6.0-223b41d7f4-3e337e33fa.zip → ...ypes-npm-10.0.0-12b3cb654f-477c080bcc.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Extend EventTarget to include the Transcend toStringTag | ||
*/ | ||
export class TranscendEventTarget extends EventTarget { | ||
#stringTag = 'Transcend'; | ||
|
||
/** | ||
* Add Transcend to the string tag | ||
* | ||
* @returns string | ||
*/ | ||
get [Symbol.toStringTag](): string { | ||
return this.#stringTag; | ||
} | ||
|
||
/** | ||
* Allow airgap.js code to overwrite [Symbol.toStringTag] | ||
*/ | ||
set [Symbol.toStringTag](updatedStringTag: string) { | ||
this.#stringTag = updatedStringTag; | ||
} | ||
|
||
/** | ||
* @param args - EventTarget constructor parameters | ||
*/ | ||
constructor(...args: ConstructorParameters<typeof EventTarget>) { | ||
super(...args); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2c77f9c
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.
Successfully deployed to the following URLs:
consent-manager-ui – ./
consent-manager-ui.vercel.app
consent-manager-ui-git-main-transcend-io.vercel.app
consent-manager-ui-transcend-io.vercel.app