@lokalise/harmony 1.5.6 → 1.6.0-exp-jwtutils.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/harmony.cjs +1 -1
- package/dist/harmony.mjs +685 -452
- package/dist/types/src/features/auth/core/jwtAuthAddon.d.ts +6 -0
- package/dist/types/src/features/auth/core/jwtTokenPayload.d.ts +48 -0
- package/dist/types/src/features/auth/core/jwtTokenPayload.test.d.ts +1 -0
- package/dist/types/src/features/auth/core/middleware/jwtAuthMiddleware.d.ts +7 -0
- package/dist/types/src/features/auth/core/middleware/jwtAuthMiddleware.test.d.ts +1 -0
- package/dist/types/src/features/auth/core/service/authService.d.ts +40 -0
- package/dist/types/src/features/auth/core/service/contributors.d.ts +205 -0
- package/dist/types/src/features/auth/core/service/teamUsersService.d.ts +128 -0
- package/dist/types/src/features/auth/core/types/teamRole.d.ts +3 -0
- package/dist/types/src/features/auth/core/utils/makeAuthHeader.d.ts +3 -0
- package/dist/types/src/features/auth/core/utils/makeAuthHeader.test.d.ts +1 -0
- package/dist/types/src/features/auth/frontend/addon/browserJwtAuthAddon.d.ts +15 -0
- package/dist/types/src/features/auth/frontend/events/NewJwtIssuedEvent.d.ts +17 -0
- package/dist/types/src/features/auth/frontend/hooks/services/useGetUserTokenQuery.d.ts +10 -0
- package/dist/types/src/features/auth/frontend/hooks/services/useRetrieveContributorQuery.d.ts +25 -0
- package/dist/types/src/features/auth/frontend/hooks/services/userGetTeamUsersQuery.d.ts +17 -0
- package/dist/types/src/features/auth/frontend/hooks/utility/useAuthenticatedProjectContributor.d.ts +23 -0
- package/dist/types/src/features/auth/frontend/hooks/utility/useAuthenticatedUser.d.ts +15 -0
- package/dist/types/src/features/auth/frontend/hooks/utility/useGetPromotedClassicSessionJwtQuery.d.ts +8 -0
- package/dist/types/src/features/auth/frontend/hooks/utility/useJwtTokenPayload.d.ts +16 -0
- package/dist/types/src/features/auth/frontend/middleware/promoteClassicSessionToJwtMiddleware.d.ts +6 -0
- package/dist/types/src/features/auth/frontend/middleware/promoteClassicSessionToJwtMiddleware.test.d.ts +1 -0
- package/dist/types/src/features/auth/frontend/utils/cookieToken.d.ts +2 -0
- package/dist/types/src/features/auth/frontend/utils/tokenStorage.d.ts +7 -0
- package/dist/types/src/node.d.ts +15 -0
- package/dist/types/src/utils/types/apiQueryOverrides.d.ts +2 -0
- package/dist/types/tests/utils.d.ts +6 -1
- package/package.json +14 -3
@@ -1,2 +1,7 @@
|
|
1
|
+
import { RenderOptions } from '@testing-library/react';
|
1
2
|
import { ReactElement } from 'react';
|
2
|
-
|
3
|
+
interface ExtendedRenderOptions extends RenderOptions {
|
4
|
+
theme?: 'light' | 'dark';
|
5
|
+
}
|
6
|
+
export declare const renderWithProviders: (ui: ReactElement, { theme, ...options }?: ExtendedRenderOptions) => import('@testing-library/react').RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
7
|
+
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lokalise/harmony",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.6.0-exp-jwtutils.2",
|
4
4
|
"author": {
|
5
5
|
"name": "Lokalise",
|
6
6
|
"url": "https://lokalise.com/"
|
@@ -30,12 +30,18 @@
|
|
30
30
|
"storybook:build": "storybook build"
|
31
31
|
},
|
32
32
|
"peerDependencies": {
|
33
|
+
"@lokalise/frontend-http-client": "^3.0.1",
|
33
34
|
"@lokalise/louis": ">=26.0.0",
|
35
|
+
"@lokalise/styled": ">=3.0.0",
|
34
36
|
"@lokalise/token-dictionary": ">=2.42.1",
|
37
|
+
"@lokalise/universal-ts-utils": "^4.2.2",
|
38
|
+
"@tanstack/react-query": "^5.66.9",
|
35
39
|
"date-fns": ">=4.1",
|
36
40
|
"date-fns-tz": ">=3.2",
|
37
41
|
"react": "^18.0.0 || ^19.0.0",
|
38
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
42
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
43
|
+
"wretch": "^2.11.0",
|
44
|
+
"zod": "^3.24.2"
|
39
45
|
},
|
40
46
|
"devDependencies": {
|
41
47
|
"@biomejs/biome": "^1.9.4",
|
@@ -51,7 +57,6 @@
|
|
51
57
|
"@storybook/addon-essentials": "^8.6.0-alpha.4",
|
52
58
|
"@storybook/addon-interactions": "^8.6.0-alpha.4",
|
53
59
|
"@storybook/addon-onboarding": "^8.6.0-alpha.4",
|
54
|
-
"@storybook/addon-themes": "^8.6.1",
|
55
60
|
"@storybook/blocks": "^8.6.0-alpha.1",
|
56
61
|
"@storybook/react": "^8.6.0-alpha.4",
|
57
62
|
"@storybook/react-vite": "^8.6.0-alpha.4",
|
@@ -70,7 +75,9 @@
|
|
70
75
|
"eslint-plugin-i18next": "^6.0.9",
|
71
76
|
"eslint-plugin-storybook": "^0.11.2",
|
72
77
|
"eslint-plugin-testing-library": "^7.1.1",
|
78
|
+
"jest-fail-on-console": "^3.3.1",
|
73
79
|
"jsdom": "26.0.0",
|
80
|
+
"mockttp": "^3.16.0",
|
74
81
|
"rimraf": "^6.0.1",
|
75
82
|
"semantic-release": "^24.2.1",
|
76
83
|
"storybook": "^8.6.0-alpha.1",
|
@@ -95,5 +102,9 @@
|
|
95
102
|
"dependencies": {
|
96
103
|
"clsx": "^2.1.1",
|
97
104
|
"react-resize-detector": "^12.0.2"
|
105
|
+
},
|
106
|
+
"optionalDependencies": {
|
107
|
+
"@biomejs/cli-linux-x64": "^1.9.4",
|
108
|
+
"@rollup/rollup-linux-x64-gnu": "^4.34.9"
|
98
109
|
}
|
99
110
|
}
|