generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 202
chore: Follow up for the modal root fixes #4016
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
Merged
+49
−27
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -7649,14 +7649,19 @@ is provided by its parent form field component.", | |
| "description": "Use this property to specify a different dynamic modal root for the dialog. | ||
| The function will be called when a user clicks on the trigger button.", | ||
| "inlineType": { | ||
| "name": "() => Promise<HTMLElement>", | ||
| "parameters": [], | ||
| "name": "(options: { abortSignal: AbortSignal; }) => Promise<HTMLElement>", | ||
| "parameters": [ | ||
| { | ||
| "name": "options", | ||
| "type": "{ abortSignal: AbortSignal; }", | ||
| }, | ||
| ], | ||
| "returnType": "Promise<HTMLElement>", | ||
| "type": "function", | ||
| }, | ||
| "name": "getModalRoot", | ||
| "optional": true, | ||
| "type": "(() => Promise<HTMLElement>)", | ||
| "type": "((options: { abortSignal: AbortSignal; }) => Promise<HTMLElement>)", | ||
| }, | ||
| { | ||
| "description": "An object containing all the necessary localized strings required by the component. | ||
|
|
@@ -8091,19 +8096,19 @@ You can use any theme provided by Ace.", | |
| element after a user closes the dialog. The function receives the return value | ||
| of the most recent getModalRoot call as an argument.", | ||
| "inlineType": { | ||
| "name": "(container: HTMLElement) => void", | ||
| "name": "(container: HTMLElement | null) => void", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this not a breaking change?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is. I already confirmed it is safe with a dry-run to live linked in the original component-toolkit CR: 7586509761 |
||
| "parameters": [ | ||
| { | ||
| "name": "container", | ||
| "type": "HTMLElement", | ||
| "type": "HTMLElement | null", | ||
| }, | ||
| ], | ||
| "returnType": "void", | ||
| "type": "function", | ||
| }, | ||
| "name": "removeModalRoot", | ||
| "optional": true, | ||
| "type": "((container: HTMLElement) => void)", | ||
| "type": "((container: HTMLElement | null) => void)", | ||
| }, | ||
| { | ||
| "description": "List of Ace themes available for selection in preferences dialog. Make sure you include at least one light and at | ||
|
|
@@ -8547,14 +8552,19 @@ the custom content is displayed at the bottom of the left column within the moda | |
| "description": "Use this property to specify a different dynamic modal root for the dialog. | ||
| The function will be called when a user clicks on the trigger button.", | ||
| "inlineType": { | ||
| "name": "() => Promise<HTMLElement>", | ||
| "parameters": [], | ||
| "name": "(options: { abortSignal: AbortSignal; }) => Promise<HTMLElement>", | ||
| "parameters": [ | ||
| { | ||
| "name": "options", | ||
| "type": "{ abortSignal: AbortSignal; }", | ||
| }, | ||
| ], | ||
| "returnType": "Promise<HTMLElement>", | ||
| "type": "function", | ||
| }, | ||
| "name": "getModalRoot", | ||
| "optional": true, | ||
| "type": "(() => Promise<HTMLElement>)", | ||
| "type": "((options: { abortSignal: AbortSignal; }) => Promise<HTMLElement>)", | ||
| }, | ||
| { | ||
| "deprecatedTag": "The usage of the \`id\` attribute is reserved for internal use cases. For testing and other use cases, | ||
|
|
@@ -8694,19 +8704,19 @@ It contains the following: | |
| element after a user closes the dialog. The function receives the return value | ||
| of the most recent getModalRoot call as an argument.", | ||
| "inlineType": { | ||
| "name": "(container: HTMLElement) => void", | ||
| "name": "(container: HTMLElement | null) => void", | ||
| "parameters": [ | ||
| { | ||
| "name": "container", | ||
| "type": "HTMLElement", | ||
| "type": "HTMLElement | null", | ||
| }, | ||
| ], | ||
| "returnType": "void", | ||
| "type": "function", | ||
| }, | ||
| "name": "removeModalRoot", | ||
| "optional": true, | ||
| "type": "((container: HTMLElement) => void)", | ||
| "type": "((container: HTMLElement | null) => void)", | ||
| }, | ||
| { | ||
| "description": "Configures the sticky columns preference that can be set for both left and right columns. | ||
|
|
@@ -16774,14 +16784,19 @@ The event detail contains the \`reason\`, which can be any of the following: | |
| "description": "Use this property to specify a different dynamic modal root for the dialog. | ||
| The function will be called when a user clicks on the trigger button.", | ||
| "inlineType": { | ||
| "name": "() => Promise<HTMLElement>", | ||
| "parameters": [], | ||
| "name": "(options: { abortSignal: AbortSignal; }) => Promise<HTMLElement>", | ||
| "parameters": [ | ||
| { | ||
| "name": "options", | ||
| "type": "{ abortSignal: AbortSignal; }", | ||
| }, | ||
| ], | ||
| "returnType": "Promise<HTMLElement>", | ||
| "type": "function", | ||
| }, | ||
| "name": "getModalRoot", | ||
| "optional": true, | ||
| "type": "(() => Promise<HTMLElement>)", | ||
| "type": "((options: { abortSignal: AbortSignal; }) => Promise<HTMLElement>)", | ||
| }, | ||
| { | ||
| "deprecatedTag": "The usage of the \`id\` attribute is reserved for internal use cases. For testing and other use cases, | ||
|
|
@@ -16805,19 +16820,19 @@ render to an element under \`document.body\`.", | |
| element after a user closes the dialog. The function receives the return value | ||
| of the most recent getModalRoot call as an argument.", | ||
| "inlineType": { | ||
| "name": "(container: HTMLElement) => void", | ||
| "name": "(container: HTMLElement | null) => void", | ||
| "parameters": [ | ||
| { | ||
| "name": "container", | ||
| "type": "HTMLElement", | ||
| "type": "HTMLElement | null", | ||
| }, | ||
| ], | ||
| "returnType": "void", | ||
| "type": "function", | ||
| }, | ||
| "name": "removeModalRoot", | ||
| "optional": true, | ||
| "type": "((container: HTMLElement) => void)", | ||
| "type": "((container: HTMLElement | null) => void)", | ||
| }, | ||
| { | ||
| "defaultValue": "'medium'", | ||
|
|
@@ -20434,14 +20449,19 @@ The return type of the function should be a promise that resolves to a list of v | |
| "description": "Use this property to specify a different dynamic modal root for the dialog. | ||
| The function will be called when a user clicks on the trigger button.", | ||
| "inlineType": { | ||
| "name": "() => Promise<HTMLElement>", | ||
| "parameters": [], | ||
| "name": "(options: { abortSignal: AbortSignal; }) => Promise<HTMLElement>", | ||
| "parameters": [ | ||
| { | ||
| "name": "options", | ||
| "type": "{ abortSignal: AbortSignal; }", | ||
| }, | ||
| ], | ||
| "returnType": "Promise<HTMLElement>", | ||
| "type": "function", | ||
| }, | ||
| "name": "getModalRoot", | ||
| "optional": true, | ||
| "type": "(() => Promise<HTMLElement>)", | ||
| "type": "((options: { abortSignal: AbortSignal; }) => Promise<HTMLElement>)", | ||
| }, | ||
| { | ||
| "description": "An object containing all the necessary localized strings required by the component.", | ||
|
|
@@ -21000,19 +21020,19 @@ and 'Size'.", | |
| element after a user closes the dialog. The function receives the return value | ||
| of the most recent getModalRoot call as an argument.", | ||
| "inlineType": { | ||
| "name": "(container: HTMLElement) => void", | ||
| "name": "(container: HTMLElement | null) => void", | ||
| "parameters": [ | ||
| { | ||
| "name": "container", | ||
| "type": "HTMLElement", | ||
| "type": "HTMLElement | null", | ||
| }, | ||
| ], | ||
| "returnType": "void", | ||
| "type": "function", | ||
| }, | ||
| "name": "removeModalRoot", | ||
| "optional": true, | ||
| "type": "((container: HTMLElement) => void)", | ||
| "type": "((container: HTMLElement | null) => void)", | ||
| }, | ||
| { | ||
| "description": "The current selected resource. Resource has the following properties: | ||
|
|
||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can we instead avoid calling this function when it is aborted?
Uh oh!
There was an error while loading. Please reload this page.
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.
How do you imagine that? This function is async it is called on the start, and there is no way to abort it after it has been already called
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.
got it now, thanks