-
Notifications
You must be signed in to change notification settings - Fork 440
feat: add docs for ory elements v1.2 #2361
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
Open
jonas-jonas
wants to merge
5
commits into
master
Choose a base branch
from
jonas-jonas/oryElementsV1.2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
476119e
feat: add docs for ory elements v1.2
jonas-jonas 0b675f3
Apply suggestions from code review
jonas-jonas 83f9863
Merge remote-tracking branch 'origin/master' into jonas-jonas/oryElem…
jonas-jonas e402664
chore: u
jonas-jonas 4e6e4d3
chore: u
jonas-jonas 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
35 changes: 32 additions & 3 deletions
35
docs/elements/guides/05_migration_0x.mdx → docs/elements/guides/05_upgrading.mdx
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
32 changes: 16 additions & 16 deletions
32
docs/elements/reference/@ory/elements-react/functions/OrySettingsFormSection.md
Large diffs are not rendered by default.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
docs/elements/reference/@ory/elements-react/functions/isUiNodeAnchor.md
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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # isUiNodeAnchor() | ||
|
|
||
| ```ts | ||
| function isUiNodeAnchor(node: UiNode): node is UiNodeAnchor | ||
| ``` | ||
|
|
||
| ## Parameters | ||
|
|
||
| | Parameter | Type | | ||
| | --------- | -------- | | ||
| | `node` | `UiNode` | | ||
|
|
||
| ## Returns | ||
|
|
||
| `node is UiNodeAnchor` |
15 changes: 15 additions & 0 deletions
15
docs/elements/reference/@ory/elements-react/functions/isUiNodeDiv.md
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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # isUiNodeDiv() | ||
|
|
||
| ```ts | ||
| function isUiNodeDiv(node: UiNode): node is UiNodeDiv | ||
| ``` | ||
|
|
||
| ## Parameters | ||
|
|
||
| | Parameter | Type | | ||
| | --------- | -------- | | ||
| | `node` | `UiNode` | | ||
|
|
||
| ## Returns | ||
|
|
||
| `node is UiNodeDiv` |
15 changes: 15 additions & 0 deletions
15
docs/elements/reference/@ory/elements-react/functions/isUiNodeImage.md
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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # isUiNodeImage() | ||
|
|
||
| ```ts | ||
| function isUiNodeImage(node: UiNode): node is UiNodeImage | ||
| ``` | ||
|
|
||
| ## Parameters | ||
|
|
||
| | Parameter | Type | | ||
| | --------- | -------- | | ||
| | `node` | `UiNode` | | ||
|
|
||
| ## Returns | ||
|
|
||
| `node is UiNodeImage` |
15 changes: 15 additions & 0 deletions
15
docs/elements/reference/@ory/elements-react/functions/isUiNodeInput.md
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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # isUiNodeInput() | ||
|
|
||
| ```ts | ||
| function isUiNodeInput(node: UiNode): node is UiNodeInput | ||
| ``` | ||
|
|
||
| ## Parameters | ||
|
|
||
| | Parameter | Type | | ||
| | --------- | -------- | | ||
| | `node` | `UiNode` | | ||
|
|
||
| ## Returns | ||
|
|
||
| `node is UiNodeInput` |
15 changes: 15 additions & 0 deletions
15
docs/elements/reference/@ory/elements-react/functions/isUiNodeScript.md
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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # isUiNodeScript() | ||
|
|
||
| ```ts | ||
| function isUiNodeScript(node: UiNode): node is UiNodeScript | ||
| ``` | ||
|
|
||
| ## Parameters | ||
|
|
||
| | Parameter | Type | | ||
| | --------- | -------- | | ||
| | `node` | `UiNode` | | ||
|
|
||
| ## Returns | ||
|
|
||
| `node is UiNodeScript` |
15 changes: 15 additions & 0 deletions
15
docs/elements/reference/@ory/elements-react/functions/isUiNodeText.md
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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # isUiNodeText() | ||
|
|
||
| ```ts | ||
| function isUiNodeText(node: UiNode): node is UiNodeText | ||
| ``` | ||
|
|
||
| ## Parameters | ||
|
|
||
| | Parameter | Type | | ||
| | --------- | -------- | | ||
| | `node` | `UiNode` | | ||
|
|
||
| ## Returns | ||
|
|
||
| `node is UiNodeText` |
16 changes: 16 additions & 0 deletions
16
docs/elements/reference/@ory/elements-react/functions/resolvePlaceholder.md
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 |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # resolvePlaceholder() | ||
|
|
||
| ```ts | ||
| function resolvePlaceholder(text: UiText, intl: IntlShape): string | ||
| ``` | ||
|
|
||
| ## Parameters | ||
|
|
||
| | Parameter | Type | | ||
| | --------- | ----------- | | ||
| | `text` | `UiText` | | ||
| | `intl` | `IntlShape` | | ||
|
|
||
| ## Returns | ||
|
|
||
| `string` |
42 changes: 42 additions & 0 deletions
42
docs/elements/reference/@ory/elements-react/functions/useResendCode.md
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 |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # useResendCode() | ||
|
|
||
| ```ts | ||
| function useResendCode(): { | ||
| resendCode: () => void | ||
| resendCodeNode: undefined | UiNode | ||
| } | ||
| ``` | ||
|
|
||
| useResendCode provides a callback to trigger a code resend in the current flow. | ||
|
|
||
| You may use this hook to implement a "Resend Code" button in your forms. | ||
|
|
||
| If the current flow does not support code resending, `resendCodeNode` will be `undefined` and `resendCode` will be a no-op. | ||
|
|
||
| Example: | ||
|
|
||
| ```tsx | ||
| const { resendCode, resendCodeNode } = useResendCode(); | ||
|
|
||
| return ( | ||
| {resendCodeNode && ( | ||
| <button onClick={resendCode}>Resend Code</button> | ||
| )} | ||
| ) | ||
| ``` | ||
|
|
||
| ## Returns | ||
|
|
||
| ```ts | ||
| { | ||
| resendCode: () => void; | ||
| resendCodeNode: undefined | UiNode; | ||
| } | ||
| ``` | ||
|
|
||
| the callback to trigger a code resend | ||
|
|
||
| | Name | Type | Default value | | ||
| | ---------------- | ----------------------- | -------------- | | ||
| | `resendCode()` | () => `void` | `handleResend` | | ||
| | `resendCodeNode` | `undefined` \| `UiNode` | - | |
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
13 changes: 8 additions & 5 deletions
13
docs/elements/reference/@ory/elements-react/theme/functions/DefaultCard.md
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.
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.
Uh oh!
There was an error while loading. Please reload this page.