Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .config/husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
yarn commit message lint
# Raijin-managed hook
yarn commit message lint "$1"
3 changes: 2 additions & 1 deletion .config/husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
yarn commit staged
# Raijin-managed hook
yarn commit staged
3 changes: 2 additions & 1 deletion .config/husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
yarn commit message $@
# Raijin-managed hook
yarn commit message "$@"
3,856 changes: 1,642 additions & 2,214 deletions .pnp.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .pnp.loader.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2,498 changes: 0 additions & 2,498 deletions .yarn/releases/yarn-remote.mjs

This file was deleted.

5,310 changes: 2,975 additions & 2,335 deletions .yarn/releases/yarn.mjs → .yarn/releases/yarn.js
100755 → 100644

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ pnpEnableEsmLoader: true

preferReuse: true

yarnPath: .yarn/releases/yarn.mjs
yarnPath: .yarn/releases/yarn.js
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
"workspaces": [
"packages/**/*"
],
"lint-staged": {
"*.{yml,yaml,json,graphql,md}": "yarn format",
"*.{js,mjs,cjs,jsx,ts,tsx}": [
"yarn format",
"yarn lint"
],
"*.{ts,tsx}": "yarn typecheck",
"*.{test,spec}.{ts,tsx}": "yarn test unit"
},
"resolutions": {
"@emotion/react": "11.9.3"
},
Expand All @@ -14,14 +23,13 @@
"csstype": "3.1.2"
},
"devDependencies": {
"@atls/code-runtime": "2.1.2",
"@atls/raijin": "0.7.0",
"@atls/raijin": "1.1.0",
"@types/node": "22.10.1",
"@types/testing-library__jest-dom": "5.14.2",
"eslint": "9.16.0",
"typescript": "5.5.4"
},
"packageManager": "yarn@4.6.0",
"packageManager": "yarn@4.18.0",
"testIgnorePatterns": [
"packages/identity-links/src/identity-link.component.test.tsx",
"packages/identity-links/src/use-identity-url.hook.test.ts"
Expand Down
30 changes: 9 additions & 21 deletions packages/api-auth-user/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@


## [0.0.9](https://github.com/atls/reactjs/compare/@atls/react-api-auth-user@0.0.7...@atls/react-api-auth-user@0.0.9) (2025-01-22)






## 0.0.7 (2025-01-22)


### Bug Fixes


* **react:** lint and typecheck errors ([a090051](https://github.com/atls/reactjs/commit/a090051d1007e171df8066e85f15fcf8fd44c4ed))
* upgrade react, types fixes ([34feb02](https://github.com/atls/reactjs/commit/34feb027a2e2d7e5741509fd1ff846755d217b97))
* upgrade yarn, typescript, set resolutions ([b235334](https://github.com/atls/reactjs/commit/b23533417af6fb323187ef281b83d8dc5e7bd9dd))
- **react:** lint and typecheck errors ([a090051](https://github.com/atls/reactjs/commit/a090051d1007e171df8066e85f15fcf8fd44c4ed))
- upgrade react, types fixes ([34feb02](https://github.com/atls/reactjs/commit/34feb027a2e2d7e5741509fd1ff846755d217b97))
- upgrade yarn, typescript, set resolutions ([b235334](https://github.com/atls/reactjs/commit/b23533417af6fb323187ef281b83d8dc5e7bd9dd))

### Features


* add emotion as deps, bump @types/react ([1ce29b3](https://github.com/atls/reactjs/commit/1ce29b384640d9be0550d9c6f4dc07083821137a))
* **api-auth-user:** init ([418aabf](https://github.com/atls/reactjs/commit/418aabf26ab908bb863dcc4fad2d71b4a541d514))
* **common:** bump yarn ([#143](https://github.com/atls/reactjs/issues/143)) ([8239f82](https://github.com/atls/reactjs/commit/8239f82f1c85d872a99613d3693babc761703b05))
* react bump ([#144](https://github.com/atls/reactjs/issues/144)) ([9770fa1](https://github.com/atls/reactjs/commit/9770fa10451b647ed48e226270da68228714d174))
* update kratos browser flows to client 0.8.2 ([52f9c0f](https://github.com/atls/reactjs/commit/52f9c0fa129cd7d4567ab826c754483a6ddd6817))
* upgraded ([71a06f6](https://github.com/atls/reactjs/commit/71a06f6f498c928ed33b79f93af5d398a32af487))


- add emotion as deps, bump @types/react ([1ce29b3](https://github.com/atls/reactjs/commit/1ce29b384640d9be0550d9c6f4dc07083821137a))
- **api-auth-user:** init ([418aabf](https://github.com/atls/reactjs/commit/418aabf26ab908bb863dcc4fad2d71b4a541d514))
- **common:** bump yarn ([#143](https://github.com/atls/reactjs/issues/143)) ([8239f82](https://github.com/atls/reactjs/commit/8239f82f1c85d872a99613d3693babc761703b05))
- react bump ([#144](https://github.com/atls/reactjs/issues/144)) ([9770fa1](https://github.com/atls/reactjs/commit/9770fa10451b647ed48e226270da68228714d174))
- update kratos browser flows to client 0.8.2 ([52f9c0f](https://github.com/atls/reactjs/commit/52f9c0fa129cd7d4567ab826c754483a6ddd6817))
- upgraded ([71a06f6](https://github.com/atls/reactjs/commit/71a06f6f498c928ed33b79f93af5d398a32af487))
17 changes: 5 additions & 12 deletions packages/app-links/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@


## 0.0.5 (2025-01-22)


### Bug Fixes


* **react:** lint and typecheck errors ([a090051](https://github.com/atls/reactjs/commit/a090051d1007e171df8066e85f15fcf8fd44c4ed))
* upgrade react, types fixes ([34feb02](https://github.com/atls/reactjs/commit/34feb027a2e2d7e5741509fd1ff846755d217b97))
- **react:** lint and typecheck errors ([a090051](https://github.com/atls/reactjs/commit/a090051d1007e171df8066e85f15fcf8fd44c4ed))
- upgrade react, types fixes ([34feb02](https://github.com/atls/reactjs/commit/34feb027a2e2d7e5741509fd1ff846755d217b97))

### Features


* add emotion as deps, bump @types/react ([1ce29b3](https://github.com/atls/reactjs/commit/1ce29b384640d9be0550d9c6f4dc07083821137a))
* init app links ([e8e5765](https://github.com/atls/reactjs/commit/e8e5765a3b3e7c4ba78632e973acf2aa659437d5))
* react bump ([#144](https://github.com/atls/reactjs/issues/144)) ([9770fa1](https://github.com/atls/reactjs/commit/9770fa10451b647ed48e226270da68228714d174))


- add emotion as deps, bump @types/react ([1ce29b3](https://github.com/atls/reactjs/commit/1ce29b384640d9be0550d9c6f4dc07083821137a))
- init app links ([e8e5765](https://github.com/atls/reactjs/commit/e8e5765a3b3e7c4ba78632e973acf2aa659437d5))
- react bump ([#144](https://github.com/atls/reactjs/issues/144)) ([9770fa1](https://github.com/atls/reactjs/commit/9770fa10451b647ed48e226270da68228714d174))
4 changes: 2 additions & 2 deletions packages/app-links/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './app-link.component'
export * from './app-link.component'
export type * from './app-url.interfaces'
export * from './use-app-url.hook'
export * from './use-app-url.hook'
29 changes: 11 additions & 18 deletions packages/identity-links/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@


## 0.0.6 (2025-01-22)


### Bug Fixes


* **react:** lint and typecheck errors ([a090051](https://github.com/atls/reactjs/commit/a090051d1007e171df8066e85f15fcf8fd44c4ed))
* upgrade react, types fixes ([34feb02](https://github.com/atls/reactjs/commit/34feb027a2e2d7e5741509fd1ff846755d217b97))
* upgrade yarn, typescript, set resolutions ([b235334](https://github.com/atls/reactjs/commit/b23533417af6fb323187ef281b83d8dc5e7bd9dd))
- **react:** lint and typecheck errors ([a090051](https://github.com/atls/reactjs/commit/a090051d1007e171df8066e85f15fcf8fd44c4ed))
- upgrade react, types fixes ([34feb02](https://github.com/atls/reactjs/commit/34feb027a2e2d7e5741509fd1ff846755d217b97))
- upgrade yarn, typescript, set resolutions ([b235334](https://github.com/atls/reactjs/commit/b23533417af6fb323187ef281b83d8dc5e7bd9dd))

### Features


* add emotion as deps, bump @types/react ([1ce29b3](https://github.com/atls/reactjs/commit/1ce29b384640d9be0550d9c6f4dc07083821137a))
* **common:** bump yarn ([#143](https://github.com/atls/reactjs/issues/143)) ([8239f82](https://github.com/atls/reactjs/commit/8239f82f1c85d872a99613d3693babc761703b05))
* domain based identity links ([8263449](https://github.com/atls/reactjs/commit/826344977b1a86190a47b8d8fc6eecdb432da6a8))
* **identity-links:** init, also refactor react-user ([3fe1388](https://github.com/atls/reactjs/commit/3fe138854f57f7b50ce14df6c5dd9ab6f0d90dc2))
* react bump ([#144](https://github.com/atls/reactjs/issues/144)) ([9770fa1](https://github.com/atls/reactjs/commit/9770fa10451b647ed48e226270da68228714d174))
* root domain based identity links ([61508e4](https://github.com/atls/reactjs/commit/61508e41910a041d604999c01b74469bd1ea128c))
* update kratos browser flows to client 0.8.2 ([52f9c0f](https://github.com/atls/reactjs/commit/52f9c0fa129cd7d4567ab826c754483a6ddd6817))
* upgraded ([71a06f6](https://github.com/atls/reactjs/commit/71a06f6f498c928ed33b79f93af5d398a32af487))


- add emotion as deps, bump @types/react ([1ce29b3](https://github.com/atls/reactjs/commit/1ce29b384640d9be0550d9c6f4dc07083821137a))
- **common:** bump yarn ([#143](https://github.com/atls/reactjs/issues/143)) ([8239f82](https://github.com/atls/reactjs/commit/8239f82f1c85d872a99613d3693babc761703b05))
- domain based identity links ([8263449](https://github.com/atls/reactjs/commit/826344977b1a86190a47b8d8fc6eecdb432da6a8))
- **identity-links:** init, also refactor react-user ([3fe1388](https://github.com/atls/reactjs/commit/3fe138854f57f7b50ce14df6c5dd9ab6f0d90dc2))
- react bump ([#144](https://github.com/atls/reactjs/issues/144)) ([9770fa1](https://github.com/atls/reactjs/commit/9770fa10451b647ed48e226270da68228714d174))
- root domain based identity links ([61508e4](https://github.com/atls/reactjs/commit/61508e41910a041d604999c01b74469bd1ea128c))
- update kratos browser flows to client 0.8.2 ([52f9c0f](https://github.com/atls/reactjs/commit/52f9c0fa129cd7d4567ab826c754483a6ddd6817))
- upgraded ([71a06f6](https://github.com/atls/reactjs/commit/71a06f6f498c928ed33b79f93af5d398a32af487))
7 changes: 1 addition & 6 deletions packages/identity-links/src/identity-url.interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import type { JSX } from 'react'

export type IdentityUrlType =
| 'login'
| 'logout'
| 'recovery'
| 'registration'
| 'settings'
| 'verification'
'login' | 'logout' | 'recovery' | 'registration' | 'settings' | 'verification'

export interface UseIdentityUrlReturnToProps {
subdomain?: string
Expand Down
4 changes: 2 additions & 2 deletions packages/identity-links/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './identity-link.component'
export * from './identity-link.component'
export type * from './identity-url.interfaces'
export * from './use-identity-url.hook'
export * from './use-identity-url.hook'
3 changes: 1 addition & 2 deletions packages/identity-links/src/use-identity-url.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export const identityUrlTypes = {
}

export const useIdentityUrl = ({ type = 'login', returnTo = false }: UseIdentityUrlProps = {}):
| string
| null => {
string | null => {
const [url, setUrl] = useState<string | null>(null)

useBrowserEffect(() => {
Expand Down
26 changes: 7 additions & 19 deletions packages/identity-user-provider/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,16 @@


## [0.0.6](https://github.com/atls/reactjs/compare/@atls/react-identity-user-provider@0.0.5...@atls/react-identity-user-provider@0.0.6) (2025-01-22)






## 0.0.5 (2025-01-22)


### Bug Fixes


* **react:** lint and typecheck errors ([a090051](https://github.com/atls/reactjs/commit/a090051d1007e171df8066e85f15fcf8fd44c4ed))
* upgrade react, types fixes ([34feb02](https://github.com/atls/reactjs/commit/34feb027a2e2d7e5741509fd1ff846755d217b97))
- **react:** lint and typecheck errors ([a090051](https://github.com/atls/reactjs/commit/a090051d1007e171df8066e85f15fcf8fd44c4ed))
- upgrade react, types fixes ([34feb02](https://github.com/atls/reactjs/commit/34feb027a2e2d7e5741509fd1ff846755d217b97))

### Features


* add emotion as deps, bump @types/react ([1ce29b3](https://github.com/atls/reactjs/commit/1ce29b384640d9be0550d9c6f4dc07083821137a))
* **common:** bump yarn ([#143](https://github.com/atls/reactjs/issues/143)) ([8239f82](https://github.com/atls/reactjs/commit/8239f82f1c85d872a99613d3693babc761703b05))
* init identity user provider ([a728eaf](https://github.com/atls/reactjs/commit/a728eafdc9a866e5fce87b73a4adbb6dd9981017))
* react bump ([#144](https://github.com/atls/reactjs/issues/144)) ([9770fa1](https://github.com/atls/reactjs/commit/9770fa10451b647ed48e226270da68228714d174))
* update kratos browser flows to client 0.8.2 ([52f9c0f](https://github.com/atls/reactjs/commit/52f9c0fa129cd7d4567ab826c754483a6ddd6817))


- add emotion as deps, bump @types/react ([1ce29b3](https://github.com/atls/reactjs/commit/1ce29b384640d9be0550d9c6f4dc07083821137a))
- **common:** bump yarn ([#143](https://github.com/atls/reactjs/issues/143)) ([8239f82](https://github.com/atls/reactjs/commit/8239f82f1c85d872a99613d3693babc761703b05))
- init identity user provider ([a728eaf](https://github.com/atls/reactjs/commit/a728eafdc9a866e5fce87b73a4adbb6dd9981017))
- react bump ([#144](https://github.com/atls/reactjs/issues/144)) ([9770fa1](https://github.com/atls/reactjs/commit/9770fa10451b647ed48e226270da68228714d174))
- update kratos browser flows to client 0.8.2 ([52f9c0f](https://github.com/atls/reactjs/commit/52f9c0fa129cd7d4567ab826c754483a6ddd6817))
6 changes: 3 additions & 3 deletions packages/kratos-browser-flows/src/flows/abstract.flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import type { KratosClient } from './kratos.client'
import { EventEmitter } from 'events'

export abstract class AbstractFlow<
State extends SelfServiceFlow,
Body extends SubmitSelfServiceFlowBody,
>
State extends SelfServiceFlow,
Body extends SubmitSelfServiceFlowBody,
>
extends EventEmitter
implements Flow
{
Expand Down
30 changes: 13 additions & 17 deletions packages/kratos-browser-flows/src/flows/flow.interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,23 @@ import type { UiNode } from '@ory/kratos-client'
import type { EventEmitter } from 'events'

export type FlowName =
| 'errors'
| 'login'
| 'logout'
| 'recovery'
| 'registration'
| 'settings'
| 'verification'
'errors' | 'login' | 'logout' | 'recovery' | 'registration' | 'settings' | 'verification'

export type SelfServiceFlow =
| SelfServiceLoginFlow
| SelfServiceRecoveryFlow
| SelfServiceRegistrationFlow
| SelfServiceSettingsFlow
| SelfServiceVerificationFlow

| SelfServiceLoginFlow
| SelfServiceRecoveryFlow
| SelfServiceRegistrationFlow
| SelfServiceSettingsFlow
| SelfServiceVerificationFlow

export type SubmitSelfServiceFlowBody =
| SubmitSelfServiceLoginFlowBody
| SubmitSelfServiceRecoveryFlowBody
| SubmitSelfServiceRegistrationFlowBody
| SubmitSelfServiceSettingsFlowBody
| SubmitSelfServiceVerificationFlowBody

| SubmitSelfServiceLoginFlowBody
| SubmitSelfServiceRecoveryFlowBody
| SubmitSelfServiceRegistrationFlowBody
| SubmitSelfServiceSettingsFlowBody
| SubmitSelfServiceVerificationFlowBody

export interface Flow extends EventEmitter {
setLoading: (loading: boolean) => void
Expand Down
14 changes: 7 additions & 7 deletions packages/kratos-browser-flows/src/flows/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export type * from './flow.interfaces'
export * from './registration.flow'
export * from './verification.flow'
export * from './recovery.flow'
export * from './settings.flow'
export * from './errors.flow'
export * from './login.flow'
export * from './logout.flow'
export * from './registration.flow'
export * from './verification.flow'
export * from './recovery.flow'
export * from './settings.flow'
export * from './errors.flow'
export * from './login.flow'
export * from './logout.flow'
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import type { FC } from 'react'

import type { FlowName } from '../flows/flow.interfaces'
import type { KratosFlowProviderProps } from './kratos-flow.provider'

import React from 'react'

import { KratosFlowProvider } from './kratos-flow.provider'

export const KratosErrorsFlowProvider: FC<Omit<KratosFlowProviderProps, 'name'>> = (props) => (
<KratosFlowProvider {...props} name={'errors' as FlowName} />
<KratosFlowProvider {...props} name='errors' />
)
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { ReactNode } from 'react'
import type { FC } from 'react'

import type { Flow } from '../flows/flow.interfaces'
import type { FlowName } from '../flows/flow.interfaces'

import { useMemo } from 'react'
Expand Down Expand Up @@ -51,5 +50,5 @@ export const KratosFlowProvider: FC<KratosFlowProviderProps> = ({
}
}, [name, client])

return <Provider value={flow as Flow}>{children}</Provider>
return <Provider value={flow}>{children}</Provider>
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import type { FC } from 'react'

import type { FlowName } from '../flows/flow.interfaces'
import type { KratosFlowProviderProps } from './kratos-flow.provider'

import React from 'react'

import { KratosFlowProvider } from './kratos-flow.provider'

export const KratosLoginFlowProvider: FC<Omit<KratosFlowProviderProps, 'name'>> = (props) => (
<KratosFlowProvider {...props} name={'login' as FlowName} />
<KratosFlowProvider {...props} name='login' />
)
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import type { FC } from 'react'

import type { FlowName } from '../flows/flow.interfaces'
import type { KratosFlowProviderProps } from './kratos-flow.provider'

import React from 'react'

import { KratosFlowProvider } from './kratos-flow.provider'

export const KratosRecoveryFlowProvider: FC<Omit<KratosFlowProviderProps, 'name'>> = (props) => (
<KratosFlowProvider {...props} name={'recovery' as FlowName} />
<KratosFlowProvider {...props} name='recovery' />
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { FC } from 'react'

import type { FlowName } from '../flows/flow.interfaces'
import type { KratosFlowProviderProps } from './kratos-flow.provider'

import React from 'react'
Expand All @@ -9,4 +8,4 @@ import { KratosFlowProvider } from './kratos-flow.provider'

export const KratosRegistrationFlowProvider: FC<Omit<KratosFlowProviderProps, 'name'>> = (
props
) => <KratosFlowProvider {...props} name={'registration' as FlowName} />
) => <KratosFlowProvider {...props} name='registration' />
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import type { FC } from 'react'

import type { FlowName } from '../flows/flow.interfaces'
import type { KratosFlowProviderProps } from './kratos-flow.provider'

import React from 'react'

import { KratosFlowProvider } from './kratos-flow.provider'

export const KratosSettingsFlowProvider: FC<Omit<KratosFlowProviderProps, 'name'>> = (props) => (
<KratosFlowProvider {...props} name={'settings' as FlowName} />
<KratosFlowProvider {...props} name='settings' />
)
Loading
Loading