Skip to content

Commit eedfb3c

Browse files
authored
Chore/update dependencies (#147)
* chore: update yarn bundle * style(upload): reorder fields in package.json * chore: change husky config * style: fix lint kratos browser flows * style: fix lint react user package * style: fix lint react app links package * style: fix lint react identity links package * style: fix lint react react identity user provider package * style: fix lint payment widget * style: complete api auth user fix lint * style: fix lint upload package * chore: recorded events package version * chore: unused libraries removed * chore: recorded types events package version * chore: recorded axios package version * chore: recorded react package version * chore: recorded react dom package version * chore: add package extension for atls ui parts text * chore: add package extension for emotion utils * chore: bump packages versions * fix: package version * fix: dependency atls react user package version * fix: yarn lock file
1 parent e64b376 commit eedfb3c

File tree

106 files changed

+1362
-1101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+1362
-1101
lines changed

.config/husky/commit-msg

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
yarn commit message lint
1+
yarn commit message lint

.config/husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
yarn commit staged
1+
yarn commit staged

.config/husky/prepare-commit-msg

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
yarn commit message $@
1+
yarn commit message $@

.pnp.cjs

Lines changed: 43 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.yarn/releases/yarn.cjs

Lines changed: 556 additions & 604 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ packageExtensions:
1313
dependencies:
1414
jest: '*'
1515
typescript: 4.6.2
16-
16+
'@atls-ui-parts/text@*':
17+
dependencies:
18+
'@types/styled-system': '*'
19+
'@emotion/utils@*':
20+
dependencies:
21+
'@emotion/sheet': '*'
1722
preferReuse: true
1823

1924
yarnPath: .yarn/releases/yarn.cjs

packages/api-auth-user/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@atls/react-api-auth-user",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"license": "BSD 3-Clause",
55
"main": "src/index.ts",
66
"files": [
@@ -12,7 +12,7 @@
1212
"postpack": "rm -rf dist"
1313
},
1414
"devDependencies": {
15-
"@atls/react-user": "workspace:0.1.44",
15+
"@atls/react-user": "workspace:0.1.45",
1616
"@types/react": "18.3.6",
1717
"react": "^18.2.0"
1818
},

packages/api-auth-user/src/api-auth-user.provider.tsx

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
1-
import { useState } from 'react'
2-
import { useEffect } from 'react'
3-
import React from 'react'
1+
import type { ReactNode } from 'react'
2+
import type { FC } from 'react'
43

5-
import { UserProvider } from '@atls/react-user'
4+
import { useState } from 'react'
5+
import { useEffect } from 'react'
6+
import React from 'react'
67

7-
const fetchSession = async (url) => {
8+
import { UserProvider } from '@atls/react-user'
9+
10+
type Session = any
11+
12+
interface ApiAuthUserProviderProps {
13+
url?: string
14+
children: ReactNode
15+
}
16+
17+
const fetchSession = async (url: string): Promise<Session> => {
818
const response = await fetch(url)
919
const text = await response.text()
1020

21+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
1122
return text ? JSON.parse(text) : null
1223
}
1324

14-
export const ApiAuthUserProvider = ({ url = '/api/auth/session', children }) => {
15-
const [session, setSession] = useState(null)
25+
export const ApiAuthUserProvider: FC<ApiAuthUserProviderProps> = ({
26+
url = '/api/auth/session',
27+
children,
28+
}) => {
29+
const [session, setSession] = useState<Session>(null)
1630

1731
useEffect(() => {
1832
if (typeof window !== 'undefined') {

packages/app-links/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@atls/react-app-links",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"license": "BSD-3-Clause",
55
"main": "src/index.ts",
66
"files": [

packages/app-links/src/app-link.component.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { FC } from 'react'
1+
import type { FC } from 'react'
22

3-
import { AppLinkProps } from './app-url.interfaces'
4-
import { useAppUrl } from './use-app-url.hook'
3+
import type { AppLinkProps } from './app-url.interfaces'
4+
5+
import { useAppUrl } from './use-app-url.hook'
56

67
export const AppLink: FC<AppLinkProps> = ({ children, subdomain, pathname }) => {
78
const url = useAppUrl({ subdomain, pathname })

0 commit comments

Comments
 (0)