-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove inline prop, move lambda type back into the correct locations. (…
- Loading branch information
Showing
20 changed files
with
85 additions
and
99 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,18 +1,11 @@ | ||
--- | ||
interface Props { | ||
inline: boolean, | ||
since: string | ||
} | ||
const { inline, since }: Props = Astro.props; | ||
const { since }: Props = Astro.props; | ||
if (!since) { | ||
throw new Error("No since field"); | ||
} | ||
let classList = 'text-green-500 text-sm italic'; | ||
if (inline) { | ||
classList = 'pl-3 ' + classList; | ||
} | ||
--- | ||
<span class={classList}>Available since {since}</span> | ||
<span class='text-green-500 text-sm italic'>Available since {since}</span> |
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 |
---|---|---|
@@ -1,20 +1,15 @@ | ||
--- | ||
interface Props { | ||
inline: boolean, | ||
since: string | ||
} | ||
const { inline, since }: Props = Astro.props; | ||
const { since }: Props = Astro.props; | ||
const hasContent = Astro.slots.has("default"); | ||
let classList = 'text-red-700 italic'; | ||
if (inline) { | ||
classList = 'pl-3 ' + classList; | ||
} | ||
--- | ||
{ since && <span class={classList}>Deprecated since {since}</span> | ||
<> | ||
{ since && <span class='text-red-700 italic'>Deprecated since {since}</span> | ||
<Fragment> | ||
{hasContent && | ||
<div class="prose-p:mt-1"><slot></slot></div> | ||
} | ||
</> | ||
</Fragment> | ||
} |
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 |
---|---|---|
@@ -1,20 +1,15 @@ | ||
--- | ||
interface Props { | ||
inline: boolean, | ||
since: string | ||
} | ||
const { inline, since }: Props = Astro.props; | ||
const { since }: Props = Astro.props; | ||
const hasContent = Astro.slots.has("default"); | ||
let classList = 'text-red-700 italic'; | ||
if (inline) { | ||
classList = 'pl-3 ' + classList; | ||
} | ||
--- | ||
{ since && <span class={classList}>Removed in {since}</span> | ||
<> | ||
{ since && <span class='text-red-700 italic'>Removed in {since}</span> | ||
<Fragment> | ||
{hasContent && | ||
<div class="prose-p:mt-1"><slot></slot></div> | ||
} | ||
</> | ||
</Fragment> | ||
} |
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 |
---|---|---|
@@ -1,45 +1,44 @@ | ||
import EnterpriseEditionBlurbApi from 'src/content/docs/_shared/_enterprise-edition-blurb-api.astro'; | ||
import PremiumEditionBlurbApi from 'src/content/docs/_shared/_premium-edition-blurb-api.astro'; | ||
import APIField from 'src/components/api/APIField.astro'; | ||
import AvailableSince from 'src/components/api/AvailableSince.astro'; | ||
|
||
* <code>audit-log.create</code> - When an audit log is created <AvailableSince since="1.30.0" inline={true}/> | ||
* <code>event-log.create</code> - When an event log is created <AvailableSince since="1.30.0" inline={true}/> | ||
* <code>audit-log.create</code> - When an audit log is created <AvailableSince since="1.30.0"/> | ||
* <code>event-log.create</code> - When an event log is created <AvailableSince since="1.30.0"/> | ||
* <code>jwt.public-key.update</code> - When a JWT RSA Public / Private keypair may have been changed | ||
* <code>jwt.refresh</code> - When an access token is refreshed using a refresh token <AvailableSince since="1.16.0" inline={true}/> | ||
* <code>jwt.refresh</code> - When an access token is refreshed using a refresh token <AvailableSince since="1.16.0"/> | ||
* <code>jwt.refresh-token.revoke</code> - When a JWT Refresh Token is revoked | ||
* <code>kickstart.success</code> - When kickstart has successfully completed <AvailableSince since="1.30.0" inline={true}/> | ||
* <code>kickstart.success</code> - When kickstart has successfully completed <AvailableSince since="1.30.0"/> | ||
* <code>user.action</code> - When a user action is triggered | ||
* <code>user.bulk.create</code> - When multiple users are created in bulk (i.e. during an import) | ||
* <code>user.create</code> - When a user is created | ||
* <code>user.create.complete</code> - When a user create transaction has completed <AvailableSince since="1.30.0" inline={true}/> | ||
* <code>user.create.complete</code> - When a user create transaction has completed <AvailableSince since="1.30.0"/> | ||
* <code>user.deactivate</code> - When a user is deactivated | ||
* <code>user.delete</code> - When a user is deleted | ||
* <code>user.delete.complete</code> - When a user delete transaction has completed <AvailableSince since="1.30.0" inline={true}/> | ||
* <code>user.email.update</code> - When a user updates their email address <AvailableSince since="1.30.0" inline={true}/> | ||
* <code>user.email.verified</code> - When a user verifies their email address <AvailableSince since="1.8.0" inline={true}/> | ||
* <code>user.identity-provider.link</code> - When a link is created from a user to an Identity Provider <AvailableSince since="1.36.0" inline={true}/> | ||
* <code>user.identity-provider.unlink</code> - When an existing Identity Provider link is removed from a User <AvailableSince since="1.36.0" inline={true} /> | ||
* <code>user.loginId.duplicate.create</code> - When a request to create a user with a login Id (email or username) which is already in use has been received <AvailableSince since="1.30.0" inline={true}/> <EnterpriseEditionBlurbApi> the `user.loginId.duplicate.create` event </EnterpriseEditionBlurbApi> | ||
* <code>user.loginId.duplicate.update</code> - When a request to update a user and change their login Id (email or username) to one that is already in use has been received <AvailableSince since="1.30.0" inline={true}/> <br/> <EnterpriseEditionBlurbApi> the ``user.loginId.duplicate.update`` event </EnterpriseEditionBlurbApi> | ||
* <code>user.delete.complete</code> - When a user delete transaction has completed <AvailableSince since="1.30.0"/> | ||
* <code>user.email.update</code> - When a user updates their email address <AvailableSince since="1.30.0"/> | ||
* <code>user.email.verified</code> - When a user verifies their email address <AvailableSince since="1.8.0"/> | ||
* <code>user.identity-provider.link</code> - When a link is created from a user to an Identity Provider <AvailableSince since="1.36.0"/> | ||
* <code>user.identity-provider.unlink</code> - When an existing Identity Provider link is removed from a User <AvailableSince since="1.36.0" /> | ||
* <code>user.loginId.duplicate.create</code> - When a request to create a user with a login Id (email or username) which is already in use has been received <AvailableSince since="1.30.0"/> <EnterpriseEditionBlurbApi> the `user.loginId.duplicate.create` event </EnterpriseEditionBlurbApi> | ||
* <code>user.loginId.duplicate.update</code> - When a request to update a user and change their login Id (email or username) to one that is already in use has been received <AvailableSince since="1.30.0"/> <br/> <EnterpriseEditionBlurbApi> the ``user.loginId.duplicate.update`` event </EnterpriseEditionBlurbApi> | ||
* <code>user.login.failed</code> - When a user fails a login request <AvailableSince since="1.6.0" /> | ||
* <code>user.login.new-device</code> - When a user begins a login request with a new device <AvailableSince since="1.30.0" inline={true}/> <br/> <EnterpriseEditionBlurbApi> the ``user.login.new-device`` event </EnterpriseEditionBlurbApi> | ||
* <code>user.login.success</code> - When a user completes a login request <AvailableSince since="1.6.0" inline={true}/> | ||
* <code>user.login.suspicious</code> - When a user logs in and is considered to be a potential threat (requires an activated Enterprise license) <AvailableSince since="1.30.0" inline={true}/> <br/> <EnterpriseEditionBlurbApi> the ``user.login.suspicious`` event </EnterpriseEditionBlurbApi> | ||
* <code>user.password.breach</code> - When Reactor detects a user is using a potentially breached password (requires an activated license) <AvailableSince since="1.15.0" inline={true}/> <br/> <PremiumEditionBlurbApi>the ``user.password.breach`` event </PremiumEditionBlurbApi> | ||
* <code>user.login.new-device</code> - When a user begins a login request with a new device <AvailableSince since="1.30.0"/> <br/> <EnterpriseEditionBlurbApi> the ``user.login.new-device`` event </EnterpriseEditionBlurbApi> | ||
* <code>user.login.success</code> - When a user completes a login request <AvailableSince since="1.6.0"/> | ||
* <code>user.login.suspicious</code> - When a user logs in and is considered to be a potential threat (requires an activated Enterprise license) <AvailableSince since="1.30.0"/> <br/> <EnterpriseEditionBlurbApi> the ``user.login.suspicious`` event </EnterpriseEditionBlurbApi> | ||
* <code>user.password.breach</code> - When Reactor detects a user is using a potentially breached password (requires an activated license) <AvailableSince since="1.15.0"/> <br/> <PremiumEditionBlurbApi>the ``user.password.breach`` event </PremiumEditionBlurbApi> | ||
* <code>user.password.reset.send</code> - When a forgot password email has been sent to a user <AvailableSince since="1.30.0"inline={true}/> <br/> <EnterpriseEditionBlurbApi>the ``user.password.reset.send`` event</EnterpriseEditionBlurbApi> | ||
* <code>user.password.reset.start</code> - When the process to reset a user password has started <AvailableSince since="1.30.0" inline={true}/> <br/> <EnterpriseEditionBlurbApi>the ``user.password.reset.start`` event</EnterpriseEditionBlurbApi> | ||
* <code>user.password.reset.success</code> - When a user has successfully reset their password <AvailableSince since="1.30.0" inline={true}/> <br/> <EnterpriseEditionBlurbApi>the ``user.password.reset.success`` event</EnterpriseEditionBlurbApi> | ||
* <code>user.password.update</code> - When a user has updated their password <AvailableSince since="1.30.0" inline={true}/> <br/> <EnterpriseEditionBlurbApi>the ``user.password.update`` event</EnterpriseEditionBlurbApi> | ||
* <code>user.password.reset.start</code> - When the process to reset a user password has started <AvailableSince since="1.30.0"/> <br/> <EnterpriseEditionBlurbApi>the ``user.password.reset.start`` event</EnterpriseEditionBlurbApi> | ||
* <code>user.password.reset.success</code> - When a user has successfully reset their password <AvailableSince since="1.30.0"/> <br/> <EnterpriseEditionBlurbApi>the ``user.password.reset.success`` event</EnterpriseEditionBlurbApi> | ||
* <code>user.password.update</code> - When a user has updated their password <AvailableSince since="1.30.0"/> <br/> <EnterpriseEditionBlurbApi>the ``user.password.update`` event</EnterpriseEditionBlurbApi> | ||
* <code>user.reactivate</code> - When a user is reactivated | ||
* <code>user.registration.create</code> - When a user registration is created <AvailableSince since="1.6.0" inline={true}/> | ||
* <code>user.registration.create.complete</code> - When a user registration create transaction has completed <AvailableSince since="1.30.0" inline={true}/> | ||
* <code>user.registration.delete</code> - When a user registration is deleted <AvailableSince since="1.6.0" inline={true}/> | ||
* <code>user.registration.delete.complete</code> - When a user registration delete transaction has completed <AvailableSince since="1.30.0" inline={true}/> | ||
* <code>user.registration.update</code> - When a user registration is updated <AvailableSince since="1.6.0" inline={true}/> | ||
* <code>user.registration.update.complete</code> - When a user registration update transaction has completed <AvailableSince since="1.30.0" inline={true}/> | ||
* <code>user.registration.verified</code> - When a user completes registration verification <AvailableSince since="1.8.0" inline={true}/> | ||
* <code>user.two-factor.method.add</code> - When a user has added a two-factor method <AvailableSince since="1.30.0" inline={true}/> <br/> <EnterpriseEditionBlurbApi>the ``user.two-factor.method.add`` event</EnterpriseEditionBlurbApi> | ||
* <code>user.two-factor.method.remove</code> - When a user has removed a two-factor method <AvailableSince since="1.30.0" inline={true} /> <br/> <EnterpriseEditionBlurbApi>the ``user.two-factor.method.remove`` event</EnterpriseEditionBlurbApi> | ||
* <code>user.registration.create</code> - When a user registration is created <AvailableSince since="1.6.0"/> | ||
* <code>user.registration.create.complete</code> - When a user registration create transaction has completed <AvailableSince since="1.30.0"/> | ||
* <code>user.registration.delete</code> - When a user registration is deleted <AvailableSince since="1.6.0"/> | ||
* <code>user.registration.delete.complete</code> - When a user registration delete transaction has completed <AvailableSince since="1.30.0"/> | ||
* <code>user.registration.update</code> - When a user registration is updated <AvailableSince since="1.6.0"/> | ||
* <code>user.registration.update.complete</code> - When a user registration update transaction has completed <AvailableSince since="1.30.0"/> | ||
* <code>user.registration.verified</code> - When a user completes registration verification <AvailableSince since="1.8.0"/> | ||
* <code>user.two-factor.method.add</code> - When a user has added a two-factor method <AvailableSince since="1.30.0"/> <br/> <EnterpriseEditionBlurbApi>the ``user.two-factor.method.add`` event</EnterpriseEditionBlurbApi> | ||
* <code>user.two-factor.method.remove</code> - When a user has removed a two-factor method <AvailableSince since="1.30.0" /> <br/> <EnterpriseEditionBlurbApi>the ``user.two-factor.method.remove`` event</EnterpriseEditionBlurbApi> | ||
* <code>user.update</code> - When a user is updated | ||
* <code>user.update.complete</code> - When a user update transaction has completed <AvailableSince since="1.30.0" inline={true}/> | ||
* <code>user.update.complete</code> - When a user update transaction has completed <AvailableSince since="1.30.0"/> |
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
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
Oops, something went wrong.