@intlayer/design-system 5.7.3 → 5.7.5
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/Form-CriPBaZk.js.map +1 -1
- package/dist/Form-DJrUK3mm.cjs.map +1 -1
- package/dist/components/CopyToClipboard/index.cjs +32 -23
- package/dist/components/CopyToClipboard/index.cjs.map +1 -1
- package/dist/components/CopyToClipboard/index.d.ts.map +1 -1
- package/dist/components/CopyToClipboard/index.mjs +32 -23
- package/dist/components/CopyToClipboard/index.mjs.map +1 -1
- package/dist/components/Form/elements/CheckboxElement.d.ts +2 -2
- package/dist/components/Form/elements/CheckboxElement.d.ts.map +1 -1
- package/dist/components/Input/Checkbox.cjs +29 -22
- package/dist/components/Input/Checkbox.cjs.map +1 -1
- package/dist/components/Input/Checkbox.d.ts +3 -2
- package/dist/components/Input/Checkbox.d.ts.map +1 -1
- package/dist/components/Input/Checkbox.mjs +30 -23
- package/dist/components/Input/Checkbox.mjs.map +1 -1
- package/dist/hooks/index.cjs +2 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +3 -2
- package/dist/hooks/intlayerAPIHooks.cjs +8 -6
- package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
- package/dist/hooks/intlayerAPIHooks.d.ts +222 -17
- package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
- package/dist/hooks/intlayerAPIHooks.mjs +8 -6
- package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
- package/dist/hooks/useAuth/useAuth.cjs.map +1 -1
- package/dist/hooks/useAuth/useAuth.d.ts +6 -6
- package/dist/hooks/useAuth/useAuth.d.ts.map +1 -1
- package/dist/hooks/useAuth/useAuth.mjs.map +1 -1
- package/dist/hooks/useAuth/useSession.cjs.map +1 -1
- package/dist/hooks/useAuth/useSession.d.ts +354 -6
- package/dist/hooks/useAuth/useSession.d.ts.map +1 -1
- package/dist/hooks/useAuth/useSession.mjs.map +1 -1
- package/dist/hooks/useUser/index.d.ts +18 -2
- package/dist/hooks/useUser/index.d.ts.map +1 -1
- package/package.json +16 -16
|
@@ -1,9 +1,357 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SessionAPI } from '@intlayer/backend';
|
|
2
2
|
import { IntlayerConfig } from '@intlayer/config/client';
|
|
3
|
-
export declare const useSession: (sessionProp?:
|
|
4
|
-
session:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export declare const useSession: (sessionProp?: SessionAPI | null, intlayerConfiguration?: IntlayerConfig) => {
|
|
4
|
+
session: {
|
|
5
|
+
session: {
|
|
6
|
+
userId: string;
|
|
7
|
+
expiresAt: Date;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
token: string;
|
|
11
|
+
ipAddress?: string | null | undefined;
|
|
12
|
+
userAgent?: string | null | undefined;
|
|
13
|
+
id: string;
|
|
14
|
+
activeOrganizationId?: string | undefined;
|
|
15
|
+
activeProjectId?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
user: {
|
|
18
|
+
email: string;
|
|
19
|
+
name: string;
|
|
20
|
+
image?: string | null | undefined;
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
updatedAt: Date;
|
|
23
|
+
emailVerified: boolean;
|
|
24
|
+
phone?: string | undefined;
|
|
25
|
+
dateOfBirth?: Date | undefined;
|
|
26
|
+
id: string;
|
|
27
|
+
emailsList?: {
|
|
28
|
+
newsLetter: boolean;
|
|
29
|
+
} | undefined;
|
|
30
|
+
customerId?: string | undefined;
|
|
31
|
+
role?: string | undefined;
|
|
32
|
+
lang?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
organization?: {
|
|
35
|
+
name: string;
|
|
36
|
+
membersIds: string[];
|
|
37
|
+
adminsIds: string[];
|
|
38
|
+
id: string;
|
|
39
|
+
creatorId: string;
|
|
40
|
+
plan?: {
|
|
41
|
+
type: import('@intlayer/backend').PlanType;
|
|
42
|
+
creatorId?: string | undefined;
|
|
43
|
+
subscriptionId?: string | undefined;
|
|
44
|
+
customerId?: string | undefined;
|
|
45
|
+
priceId?: string | undefined;
|
|
46
|
+
status?: "active" | "canceled" | "past_due" | "unpaid" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | undefined;
|
|
47
|
+
period?: "MONTHLY" | "YEARLY" | undefined;
|
|
48
|
+
id: string;
|
|
49
|
+
createdAt: number;
|
|
50
|
+
updatedAt: number;
|
|
51
|
+
} | undefined;
|
|
52
|
+
createdAt: number;
|
|
53
|
+
updatedAt: number;
|
|
54
|
+
} | null | undefined;
|
|
55
|
+
project?: {
|
|
56
|
+
organizationId: string;
|
|
57
|
+
name: string;
|
|
58
|
+
membersIds: string[];
|
|
59
|
+
adminsIds: string[];
|
|
60
|
+
creatorId: string;
|
|
61
|
+
configuration?: {
|
|
62
|
+
internationalization: {
|
|
63
|
+
locales: import('intlayer').Locales[];
|
|
64
|
+
defaultLocale: import('intlayer').Locales;
|
|
65
|
+
};
|
|
66
|
+
editor: {
|
|
67
|
+
applicationURL: string;
|
|
68
|
+
cmsURL: string;
|
|
69
|
+
};
|
|
70
|
+
} | undefined;
|
|
71
|
+
id: string;
|
|
72
|
+
createdAt: number;
|
|
73
|
+
updatedAt: number;
|
|
74
|
+
oAuth2Access: {
|
|
75
|
+
name: string;
|
|
76
|
+
grants: string[];
|
|
77
|
+
expiresAt?: Date | undefined;
|
|
78
|
+
clientId: string;
|
|
79
|
+
clientSecret: string;
|
|
80
|
+
accessToken: string[];
|
|
81
|
+
userId: string;
|
|
82
|
+
id: string;
|
|
83
|
+
createdAt: number;
|
|
84
|
+
updatedAt: number;
|
|
85
|
+
}[];
|
|
86
|
+
} | null | undefined;
|
|
87
|
+
id: string;
|
|
88
|
+
permissions: import('node_modules/@intlayer/backend/dist/types/utils/permissions').Permission[];
|
|
89
|
+
roles: import('node_modules/@intlayer/backend/dist/types/utils/permissions').Roles[];
|
|
90
|
+
authType: "session" | "oauth2" | null;
|
|
91
|
+
} | null | undefined;
|
|
92
|
+
fetchSession: () => Promise<{
|
|
93
|
+
session: {
|
|
94
|
+
userId: string;
|
|
95
|
+
expiresAt: Date;
|
|
96
|
+
createdAt: Date;
|
|
97
|
+
updatedAt: Date;
|
|
98
|
+
token: string;
|
|
99
|
+
ipAddress?: string | null | undefined;
|
|
100
|
+
userAgent?: string | null | undefined;
|
|
101
|
+
id: string;
|
|
102
|
+
activeOrganizationId?: string | undefined;
|
|
103
|
+
activeProjectId?: string | undefined;
|
|
104
|
+
};
|
|
105
|
+
user: {
|
|
106
|
+
email: string;
|
|
107
|
+
name: string;
|
|
108
|
+
image?: string | null | undefined;
|
|
109
|
+
createdAt: Date;
|
|
110
|
+
updatedAt: Date;
|
|
111
|
+
emailVerified: boolean;
|
|
112
|
+
phone?: string | undefined;
|
|
113
|
+
dateOfBirth?: Date | undefined;
|
|
114
|
+
id: string;
|
|
115
|
+
emailsList?: {
|
|
116
|
+
newsLetter: boolean;
|
|
117
|
+
} | undefined;
|
|
118
|
+
customerId?: string | undefined;
|
|
119
|
+
role?: string | undefined;
|
|
120
|
+
lang?: string | undefined;
|
|
121
|
+
};
|
|
122
|
+
organization?: {
|
|
123
|
+
name: string;
|
|
124
|
+
membersIds: string[];
|
|
125
|
+
adminsIds: string[];
|
|
126
|
+
id: string;
|
|
127
|
+
creatorId: string;
|
|
128
|
+
plan?: {
|
|
129
|
+
type: import('@intlayer/backend').PlanType;
|
|
130
|
+
creatorId?: string | undefined;
|
|
131
|
+
subscriptionId?: string | undefined;
|
|
132
|
+
customerId?: string | undefined;
|
|
133
|
+
priceId?: string | undefined;
|
|
134
|
+
status?: "active" | "canceled" | "past_due" | "unpaid" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | undefined;
|
|
135
|
+
period?: "MONTHLY" | "YEARLY" | undefined;
|
|
136
|
+
id: string;
|
|
137
|
+
createdAt: number;
|
|
138
|
+
updatedAt: number;
|
|
139
|
+
} | undefined;
|
|
140
|
+
createdAt: number;
|
|
141
|
+
updatedAt: number;
|
|
142
|
+
} | null | undefined;
|
|
143
|
+
project?: {
|
|
144
|
+
organizationId: string;
|
|
145
|
+
name: string;
|
|
146
|
+
membersIds: string[];
|
|
147
|
+
adminsIds: string[];
|
|
148
|
+
creatorId: string;
|
|
149
|
+
configuration?: {
|
|
150
|
+
internationalization: {
|
|
151
|
+
locales: import('intlayer').Locales[];
|
|
152
|
+
defaultLocale: import('intlayer').Locales;
|
|
153
|
+
};
|
|
154
|
+
editor: {
|
|
155
|
+
applicationURL: string;
|
|
156
|
+
cmsURL: string;
|
|
157
|
+
};
|
|
158
|
+
} | undefined;
|
|
159
|
+
id: string;
|
|
160
|
+
createdAt: number;
|
|
161
|
+
updatedAt: number;
|
|
162
|
+
oAuth2Access: {
|
|
163
|
+
name: string;
|
|
164
|
+
grants: string[];
|
|
165
|
+
expiresAt?: Date | undefined;
|
|
166
|
+
clientId: string;
|
|
167
|
+
clientSecret: string;
|
|
168
|
+
accessToken: string[];
|
|
169
|
+
userId: string;
|
|
170
|
+
id: string;
|
|
171
|
+
createdAt: number;
|
|
172
|
+
updatedAt: number;
|
|
173
|
+
}[];
|
|
174
|
+
} | null | undefined;
|
|
175
|
+
id: string;
|
|
176
|
+
permissions: import('node_modules/@intlayer/backend/dist/types/utils/permissions').Permission[];
|
|
177
|
+
roles: import('node_modules/@intlayer/backend/dist/types/utils/permissions').Roles[];
|
|
178
|
+
authType: "session" | "oauth2" | null;
|
|
179
|
+
}>;
|
|
180
|
+
revalidateSession: () => Promise<{
|
|
181
|
+
session: {
|
|
182
|
+
userId: string;
|
|
183
|
+
expiresAt: Date;
|
|
184
|
+
createdAt: Date;
|
|
185
|
+
updatedAt: Date;
|
|
186
|
+
token: string;
|
|
187
|
+
ipAddress?: string | null | undefined;
|
|
188
|
+
userAgent?: string | null | undefined;
|
|
189
|
+
id: string;
|
|
190
|
+
activeOrganizationId?: string | undefined;
|
|
191
|
+
activeProjectId?: string | undefined;
|
|
192
|
+
};
|
|
193
|
+
user: {
|
|
194
|
+
email: string;
|
|
195
|
+
name: string;
|
|
196
|
+
image?: string | null | undefined;
|
|
197
|
+
createdAt: Date;
|
|
198
|
+
updatedAt: Date;
|
|
199
|
+
emailVerified: boolean;
|
|
200
|
+
phone?: string | undefined;
|
|
201
|
+
dateOfBirth?: Date | undefined;
|
|
202
|
+
id: string;
|
|
203
|
+
emailsList?: {
|
|
204
|
+
newsLetter: boolean;
|
|
205
|
+
} | undefined;
|
|
206
|
+
customerId?: string | undefined;
|
|
207
|
+
role?: string | undefined;
|
|
208
|
+
lang?: string | undefined;
|
|
209
|
+
};
|
|
210
|
+
organization?: {
|
|
211
|
+
name: string;
|
|
212
|
+
membersIds: string[];
|
|
213
|
+
adminsIds: string[];
|
|
214
|
+
id: string;
|
|
215
|
+
creatorId: string;
|
|
216
|
+
plan?: {
|
|
217
|
+
type: import('@intlayer/backend').PlanType;
|
|
218
|
+
creatorId?: string | undefined;
|
|
219
|
+
subscriptionId?: string | undefined;
|
|
220
|
+
customerId?: string | undefined;
|
|
221
|
+
priceId?: string | undefined;
|
|
222
|
+
status?: "active" | "canceled" | "past_due" | "unpaid" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | undefined;
|
|
223
|
+
period?: "MONTHLY" | "YEARLY" | undefined;
|
|
224
|
+
id: string;
|
|
225
|
+
createdAt: number;
|
|
226
|
+
updatedAt: number;
|
|
227
|
+
} | undefined;
|
|
228
|
+
createdAt: number;
|
|
229
|
+
updatedAt: number;
|
|
230
|
+
} | null | undefined;
|
|
231
|
+
project?: {
|
|
232
|
+
organizationId: string;
|
|
233
|
+
name: string;
|
|
234
|
+
membersIds: string[];
|
|
235
|
+
adminsIds: string[];
|
|
236
|
+
creatorId: string;
|
|
237
|
+
configuration?: {
|
|
238
|
+
internationalization: {
|
|
239
|
+
locales: import('intlayer').Locales[];
|
|
240
|
+
defaultLocale: import('intlayer').Locales;
|
|
241
|
+
};
|
|
242
|
+
editor: {
|
|
243
|
+
applicationURL: string;
|
|
244
|
+
cmsURL: string;
|
|
245
|
+
};
|
|
246
|
+
} | undefined;
|
|
247
|
+
id: string;
|
|
248
|
+
createdAt: number;
|
|
249
|
+
updatedAt: number;
|
|
250
|
+
oAuth2Access: {
|
|
251
|
+
name: string;
|
|
252
|
+
grants: string[];
|
|
253
|
+
expiresAt?: Date | undefined;
|
|
254
|
+
clientId: string;
|
|
255
|
+
clientSecret: string;
|
|
256
|
+
accessToken: string[];
|
|
257
|
+
userId: string;
|
|
258
|
+
id: string;
|
|
259
|
+
createdAt: number;
|
|
260
|
+
updatedAt: number;
|
|
261
|
+
}[];
|
|
262
|
+
} | null | undefined;
|
|
263
|
+
id: string;
|
|
264
|
+
permissions: import('node_modules/@intlayer/backend/dist/types/utils/permissions').Permission[];
|
|
265
|
+
roles: import('node_modules/@intlayer/backend/dist/types/utils/permissions').Roles[];
|
|
266
|
+
authType: "session" | "oauth2" | null;
|
|
267
|
+
}>;
|
|
268
|
+
setSession: (data: {
|
|
269
|
+
session: {
|
|
270
|
+
userId: string;
|
|
271
|
+
expiresAt: Date;
|
|
272
|
+
createdAt: Date;
|
|
273
|
+
updatedAt: Date;
|
|
274
|
+
token: string;
|
|
275
|
+
ipAddress?: string | null | undefined;
|
|
276
|
+
userAgent?: string | null | undefined;
|
|
277
|
+
id: string;
|
|
278
|
+
activeOrganizationId?: string | undefined;
|
|
279
|
+
activeProjectId?: string | undefined;
|
|
280
|
+
};
|
|
281
|
+
user: {
|
|
282
|
+
email: string;
|
|
283
|
+
name: string;
|
|
284
|
+
image?: string | null | undefined;
|
|
285
|
+
createdAt: Date;
|
|
286
|
+
updatedAt: Date;
|
|
287
|
+
emailVerified: boolean;
|
|
288
|
+
phone?: string | undefined;
|
|
289
|
+
dateOfBirth?: Date | undefined;
|
|
290
|
+
id: string;
|
|
291
|
+
emailsList?: {
|
|
292
|
+
newsLetter: boolean;
|
|
293
|
+
} | undefined;
|
|
294
|
+
customerId?: string | undefined;
|
|
295
|
+
role?: string | undefined;
|
|
296
|
+
lang?: string | undefined;
|
|
297
|
+
};
|
|
298
|
+
organization?: {
|
|
299
|
+
name: string;
|
|
300
|
+
membersIds: string[];
|
|
301
|
+
adminsIds: string[];
|
|
302
|
+
id: string;
|
|
303
|
+
creatorId: string;
|
|
304
|
+
plan?: {
|
|
305
|
+
type: import('@intlayer/backend').PlanType;
|
|
306
|
+
creatorId?: string | undefined;
|
|
307
|
+
subscriptionId?: string | undefined;
|
|
308
|
+
customerId?: string | undefined;
|
|
309
|
+
priceId?: string | undefined;
|
|
310
|
+
status?: "active" | "canceled" | "past_due" | "unpaid" | "incomplete" | "incomplete_expired" | "paused" | "trialing" | undefined;
|
|
311
|
+
period?: "MONTHLY" | "YEARLY" | undefined;
|
|
312
|
+
id: string;
|
|
313
|
+
createdAt: number;
|
|
314
|
+
updatedAt: number;
|
|
315
|
+
} | undefined;
|
|
316
|
+
createdAt: number;
|
|
317
|
+
updatedAt: number;
|
|
318
|
+
} | null | undefined;
|
|
319
|
+
project?: {
|
|
320
|
+
organizationId: string;
|
|
321
|
+
name: string;
|
|
322
|
+
membersIds: string[];
|
|
323
|
+
adminsIds: string[];
|
|
324
|
+
creatorId: string;
|
|
325
|
+
configuration?: {
|
|
326
|
+
internationalization: {
|
|
327
|
+
locales: import('intlayer').Locales[];
|
|
328
|
+
defaultLocale: import('intlayer').Locales;
|
|
329
|
+
};
|
|
330
|
+
editor: {
|
|
331
|
+
applicationURL: string;
|
|
332
|
+
cmsURL: string;
|
|
333
|
+
};
|
|
334
|
+
} | undefined;
|
|
335
|
+
id: string;
|
|
336
|
+
createdAt: number;
|
|
337
|
+
updatedAt: number;
|
|
338
|
+
oAuth2Access: {
|
|
339
|
+
name: string;
|
|
340
|
+
grants: string[];
|
|
341
|
+
expiresAt?: Date | undefined;
|
|
342
|
+
clientId: string;
|
|
343
|
+
clientSecret: string;
|
|
344
|
+
accessToken: string[];
|
|
345
|
+
userId: string;
|
|
346
|
+
id: string;
|
|
347
|
+
createdAt: number;
|
|
348
|
+
updatedAt: number;
|
|
349
|
+
}[];
|
|
350
|
+
} | null | undefined;
|
|
351
|
+
id: string;
|
|
352
|
+
permissions: import('node_modules/@intlayer/backend/dist/types/utils/permissions').Permission[];
|
|
353
|
+
roles: import('node_modules/@intlayer/backend/dist/types/utils/permissions').Roles[];
|
|
354
|
+
authType: "session" | "oauth2" | null;
|
|
355
|
+
} | null) => void;
|
|
8
356
|
};
|
|
9
357
|
//# sourceMappingURL=useSession.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSession.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAuth/useSession.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"useSession.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAuth/useSession.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAK9D,eAAO,MAAM,UAAU,GACrB,cAAc,UAAU,GAAG,IAAI,EAC/B,wBAAwB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSession.mjs","sources":["../../../src/hooks/useAuth/useSession.ts"],"sourcesContent":["'use client';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"useSession.mjs","sources":["../../../src/hooks/useAuth/useSession.ts"],"sourcesContent":["'use client';\n\nimport type { SessionAPI } from '@intlayer/backend';\nimport defaultConfiguration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/config/client';\nimport { useConfiguration } from '@intlayer/editor-react';\nimport { getAuthAPI } from '../auth';\nimport { useAsync } from '../useAsync';\n\nexport const useSession = (\n sessionProp?: SessionAPI | null,\n intlayerConfiguration?: IntlayerConfig\n) => {\n const configuration = useConfiguration();\n const config = intlayerConfiguration ?? configuration ?? defaultConfiguration;\n\n const {\n getSession,\n revalidate,\n data,\n setData: setSession,\n isFetched,\n } = useAsync(\n 'getSession',\n async () => {\n const intlayerAPI = getAuthAPI(config);\n const result = await intlayerAPI.getSession();\n return result.data as unknown as SessionAPI;\n },\n {\n cache: true,\n store: true,\n autoFetch: true,\n enable: !sessionProp,\n invalidateQueries: [\n 'getOrganizations',\n 'getProjects',\n 'getUsers',\n 'getDictionaries',\n ],\n }\n );\n\n const session = data ?? (isFetched ? null : undefined);\n\n return {\n session,\n fetchSession: getSession,\n revalidateSession: revalidate,\n setSession,\n };\n};\n"],"names":["configuration","defaultConfiguration"],"mappings":";;;;;;AASa,MAAA,aAAa,CACxB,aACA,0BACG;AACH,QAAMA,kBAAgB,iBAAiB;AACjC,QAAA,SAAS,yBAAyBA,mBAAiBC;AAEnD,QAAA;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,EAAA,IACE;AAAA,IACF;AAAA,IACA,YAAY;AACJ,YAAA,cAAc,WAAW,MAAM;AAC/B,YAAA,SAAS,MAAM,YAAY,WAAW;AAC5C,aAAO,OAAO;AAAA,IAChB;AAAA,IACA;AAAA,MACE,OAAO;AAAA,MACP,OAAO;AAAA,MACP,WAAW;AAAA,MACX,QAAQ,CAAC;AAAA,MACT,mBAAmB;AAAA,QACjB;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MAAA;AAAA,IACF;AAAA,EAEJ;AAEM,QAAA,UAAU,SAAS,YAAY,OAAO;AAErC,SAAA;AAAA,IACL;AAAA,IACA,cAAc;AAAA,IACd,mBAAmB;AAAA,IACnB;AAAA,EACF;AACF;"}
|
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
export declare const useUser: () => {
|
|
2
2
|
isAuthenticated: boolean;
|
|
3
3
|
isUnauthenticated: boolean;
|
|
4
|
-
user:
|
|
5
|
-
|
|
4
|
+
user: {
|
|
5
|
+
email: string;
|
|
6
|
+
name: string;
|
|
7
|
+
image?: string | null | undefined;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
emailVerified: boolean;
|
|
11
|
+
phone?: string | undefined;
|
|
12
|
+
dateOfBirth?: Date | undefined;
|
|
13
|
+
id: string;
|
|
14
|
+
emailsList?: {
|
|
15
|
+
newsLetter: boolean;
|
|
16
|
+
} | undefined;
|
|
17
|
+
customerId?: string | undefined;
|
|
18
|
+
role?: string | undefined;
|
|
19
|
+
lang?: string | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
revalidateSession: () => Promise<import('@intlayer/backend').SessionAPI | null | undefined>;
|
|
6
22
|
logout: () => Promise<void>;
|
|
7
23
|
};
|
|
8
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useUser/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useUser/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;CAuBnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/design-system",
|
|
3
|
-
"version": "5.7.
|
|
3
|
+
"version": "5.7.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Intlayer design system, including UI components used in the Intlayer editor, website, and visual editor/CMS.",
|
|
6
6
|
"keywords": [
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
"tailwind-merge": "^3.3.0",
|
|
80
80
|
"zod": "^3.25.56",
|
|
81
81
|
"zustand": "^4.5.6",
|
|
82
|
-
"@intlayer/
|
|
83
|
-
"@intlayer/
|
|
84
|
-
"@intlayer/
|
|
85
|
-
"@intlayer/
|
|
86
|
-
"
|
|
87
|
-
"
|
|
82
|
+
"@intlayer/config": "5.7.5",
|
|
83
|
+
"@intlayer/core": "5.7.5",
|
|
84
|
+
"@intlayer/dictionaries-entry": "5.7.5",
|
|
85
|
+
"@intlayer/editor-react": "5.7.5",
|
|
86
|
+
"react-intlayer": "5.7.5",
|
|
87
|
+
"@intlayer/api": "5.7.5"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@chromatic-com/storybook": "^3.2.6",
|
|
@@ -121,11 +121,11 @@
|
|
|
121
121
|
"vite": "^6.3.5",
|
|
122
122
|
"vite-plugin-dts": "^4.5.3",
|
|
123
123
|
"vitest": "^3.2.2",
|
|
124
|
-
"@intlayer/backend": "5.7.3",
|
|
125
124
|
"@utils/eslint-config": "1.0.4",
|
|
126
125
|
"@utils/ts-config": "1.0.4",
|
|
127
126
|
"@utils/ts-config-types": "1.0.4",
|
|
128
|
-
"@utils/tsup-config": "1.0.4"
|
|
127
|
+
"@utils/tsup-config": "1.0.4",
|
|
128
|
+
"@intlayer/backend": "5.7.5"
|
|
129
129
|
},
|
|
130
130
|
"peerDependencies": {
|
|
131
131
|
"@monaco-editor/react": "^4.7.0",
|
|
@@ -136,13 +136,13 @@
|
|
|
136
136
|
"react-dom": ">=16.0.0",
|
|
137
137
|
"tailwind-merge": "^3.3.0",
|
|
138
138
|
"zustand": "^4.5.6",
|
|
139
|
-
"@intlayer/
|
|
140
|
-
"
|
|
141
|
-
"@intlayer/
|
|
142
|
-
"@intlayer/
|
|
143
|
-
"@intlayer/
|
|
144
|
-
"
|
|
145
|
-
"intlayer": "5.7.
|
|
139
|
+
"@intlayer/core": "5.7.5",
|
|
140
|
+
"react-intlayer": "5.7.5",
|
|
141
|
+
"@intlayer/dictionaries-entry": "5.7.5",
|
|
142
|
+
"@intlayer/editor-react": "5.7.5",
|
|
143
|
+
"@intlayer/api": "5.7.5",
|
|
144
|
+
"@intlayer/config": "5.7.5",
|
|
145
|
+
"intlayer": "5.7.5"
|
|
146
146
|
},
|
|
147
147
|
"scripts": {
|
|
148
148
|
"build": "pnpm clean & pnpm build:ci",
|