@bcrumbs.net/inbox 0.0.62 → 0.0.64
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/assets/ar/inbox.json +3 -0
- package/assets/en/inbox.json +3 -0
- package/e2e/auth.setup.d.ts +1 -0
- package/e2e/checkout/checkout.flows.d.ts +18 -0
- package/e2e/global.teardown.d.ts +1 -0
- package/e2e/support/auth.d.ts +18 -0
- package/e2e/support/cleanup.d.ts +20 -0
- package/e2e/support/config.d.ts +23 -0
- package/e2e/support/fixtures.d.ts +16 -0
- package/e2e/support/identifiers.d.ts +13 -0
- package/e2e/support/index.d.ts +6 -0
- package/index.cjs.js +1363 -427
- package/index.esm.js +1365 -430
- package/package.json +2 -2
- package/playwright.config.d.ts +0 -4
- package/src/app/ai/components/playground/ThreadMessages.d.ts +3 -1
- package/src/app/auth/components/AcceptInvitation.d.ts +2 -0
- package/src/app/auth/components/AuthLanguagePicker.d.ts +3 -0
- package/src/app/auth/components/AuthVisualCarousel.d.ts +1 -0
- package/src/app/auth/components/ClerkForgetPanel.d.ts +6 -0
- package/src/app/auth/components/ClerkResetPasswordPanel.d.ts +6 -0
- package/src/app/auth/components/ClerkSessionBridge.d.ts +16 -0
- package/src/app/auth/components/ClerkSignInPanel.d.ts +2 -0
- package/src/app/auth/components/ClerkSignUpPanel.d.ts +2 -0
- package/src/app/auth/components/password-page/PasswordFormView.d.ts +10 -1
- package/src/app/auth/config/authProvider.d.ts +12 -0
- package/src/app/auth/config/clerkAppearance.d.ts +534 -0
- package/src/app/auth/config/clerkLocalization.d.ts +6 -0
- package/src/app/auth/pages/Auth.style.d.ts +28 -0
- package/src/app/auth/pages/CheckAuth.d.ts +7 -4
- package/src/app/auth/pages/Forget.d.ts +2 -2
- package/src/app/auth/pages/Login.d.ts +3 -3
- package/src/app/auth/pages/Password.d.ts +2 -2
- package/src/app/auth/pages/Register.d.ts +2 -3
- package/src/app/auth/utils/clerkTracking.d.ts +9 -0
- package/src/app/billing/pages/GatewayWelcomePage.d.ts +2 -0
- package/src/app/billing/pages/GuidePage.d.ts +1 -0
- package/src/app/billing/utils/isGatewayPlan.d.ts +2 -0
- package/src/app/billing/utils/pendingPlanPurchaseStorage.d.ts +6 -6
- package/src/app/broadcast/constants.d.ts +2 -0
- package/src/app/contact/components/ImportProgressDialog.d.ts +2 -1
- package/src/app/generic/hooks/useOnlineStatus.d.ts +1 -1
- package/src/app/generic/hooks/usePaginatedQuery.d.ts +1 -0
- package/src/app/inbox/components/Chat/ChatContent.d.ts +3 -1
- package/src/app/inbox/components/NewDetails/ContactActionsMenu.d.ts +9 -0
- package/src/app/inbox/components/NewDetails/UserHeader.d.ts +2 -1
- package/src/app/inbox/components/Shared/MobileChatDetailsSlider.d.ts +1 -0
- package/src/app/inbox/components/Shared/MobileDetailsSwipeHint.d.ts +1 -1
- package/src/app/inbox/components/Shared/SharedStyle.d.ts +8 -0
- package/src/app/inbox/hooks/useConvEnhance.d.ts +3 -1
- package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +7 -0
- package/src/app/inbox/utils/convAssistStorage.d.ts +9 -4
- package/src/app/inbox/utils/convs.d.ts +4 -0
- package/src/app/inbox/utils/sounds.d.ts +2 -0
- package/src/app/layout/components/LogoutPopin.d.ts +6 -3
- package/src/app/layout/components/language/index.d.ts +5 -1
- package/src/app/layout/constants/index.d.ts +35 -0
- package/src/app/managemnet/config/webhookDefinition.d.ts +4 -0
- package/src/app/managemnet/pages/generalSettings/WritingAssistanceSettings.d.ts +9 -0
- package/src/app/managemnet/pages/generalSettings/holidayConstants.d.ts +5 -0
- package/src/app/managemnet/pages/generalSettings/writingConstants.d.ts +6 -0
- package/src/app/resources/components/Agents/CreateAgent.d.ts +7 -3
- package/src/app/subscriptions/components/NewSubscription/SubscriptionSuccess.d.ts +3 -1
- package/src/app/subscriptions/components/Plans/PlanCard.d.ts +3 -1
- package/src/app/subscriptions/components/Plans/ShowcasePlans.d.ts +3 -1
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionCreditsCard.d.ts +5 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfile.d.ts +0 -1
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsers.d.ts +0 -1
- package/src/app/subscriptions/components/SubscriptionSettings/index.d.ts +17 -2
- package/src/app/subscriptions/constants/Plans.d.ts +2 -1
- package/src/app/subscriptions/utils/estimateUpgradeProration.d.ts +26 -0
- package/src/assets/locales/translations.d.ts +151 -0
- package/src/environments/environment.dev.d.ts +2 -0
- package/src/environments/types.d.ts +7 -0
- package/src/graphql.autogenerated.d.ts +981 -4
- package/src/graphql.billing.autogenerated.d.ts +193 -0
- package/src/lib/EmbeddedMobileMenu.d.ts +1 -2
- package/src/lib/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcrumbs.net/inbox",
|
|
3
3
|
"description": "Inbox widget for Bread Crumbs portals",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.64",
|
|
5
5
|
"keyword": [
|
|
6
6
|
"bcrumbs",
|
|
7
7
|
"bc-ui",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@bcrumbs.net/bc-shared": "^0.0.11",
|
|
28
|
-
"@bcrumbs.net/bc-ui": "^0.0.
|
|
28
|
+
"@bcrumbs.net/bc-ui": "^0.0.17",
|
|
29
29
|
"@bcrumbs.net/bc-api": "^0.0.49",
|
|
30
30
|
"@azure/storage-blob": "^12.25.0"
|
|
31
31
|
},
|
package/playwright.config.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
type ThreadMessagesProps = {
|
|
2
2
|
/** Overrides the container padding (defaults to 24px) when the parent already provides some (e.g. Crumby ChatView surface). */
|
|
3
3
|
padding?: string;
|
|
4
|
+
/** Overrides the message-text size for the compact Crumby chat (e.g. `TextSizeRem.XS`). Unset in the playground. */
|
|
5
|
+
fontSize?: string;
|
|
4
6
|
};
|
|
5
|
-
declare const ThreadMessages: ({ padding }: ThreadMessagesProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const ThreadMessages: ({ padding, fontSize }: ThreadMessagesProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
8
|
export default ThreadMessages;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AuthVisualCarousel: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clerk forgot-password flow: sends a reset code email, then routes to the Clerk
|
|
3
|
+
* reset page where the user enters the code + new password.
|
|
4
|
+
*/
|
|
5
|
+
export declare function ClerkForgetPanel(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default ClerkForgetPanel;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeps localStorage.token in sync with the Clerk session JWT so Apollo handleAuth
|
|
3
|
+
* and BCRoutesGuard continue to work without per-client changes.
|
|
4
|
+
*
|
|
5
|
+
* Clerk session *tokens* stay short-lived (~60s default). The Clerk *session*
|
|
6
|
+
* (cookie) is configured for 30 days in the Clerk Dashboard. This bridge refreshes
|
|
7
|
+
* the JWT in place and does not treat JWT expiry as logout.
|
|
8
|
+
*
|
|
9
|
+
* Prefer the AspNetUsers id returned by /auth/authorize so the rest of the portal
|
|
10
|
+
* keeps seeing the same user id shape as legacy login.
|
|
11
|
+
*
|
|
12
|
+
* Forwards the PostHog distinct id so auth can alias + emit authoritative
|
|
13
|
+
* "Signup Success" when JIT-provisioning a new AspNetUsers row.
|
|
14
|
+
*/
|
|
15
|
+
export declare function ClerkSessionBridge(): null;
|
|
16
|
+
export default ClerkSessionBridge;
|
|
@@ -7,16 +7,25 @@ export type PasswordFieldConfig = {
|
|
|
7
7
|
onChange: (value: string) => void;
|
|
8
8
|
onToggleVisibility: () => void;
|
|
9
9
|
};
|
|
10
|
+
export type TextFieldConfig = {
|
|
11
|
+
label: string;
|
|
12
|
+
placeholder: string;
|
|
13
|
+
value: string;
|
|
14
|
+
error?: string;
|
|
15
|
+
onChange: (value: string) => void;
|
|
16
|
+
};
|
|
10
17
|
type PasswordFormViewProps = {
|
|
11
18
|
title: string;
|
|
12
19
|
subtitle: string;
|
|
13
20
|
submitLabel: string;
|
|
14
21
|
passwordField: PasswordFieldConfig;
|
|
15
22
|
confirmPasswordField: PasswordFieldConfig;
|
|
23
|
+
/** Optional verification code field used by the Clerk reset flow. */
|
|
24
|
+
codeField?: TextFieldConfig;
|
|
16
25
|
submitDisabled?: boolean;
|
|
17
26
|
loading?: boolean;
|
|
18
27
|
onBack?: () => void;
|
|
19
28
|
onSubmit: () => void;
|
|
20
29
|
};
|
|
21
|
-
export declare function PasswordFormView({ title, subtitle, submitLabel, passwordField, confirmPasswordField, submitDisabled, loading, onBack, onSubmit, }: PasswordFormViewProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare function PasswordFormView({ title, subtitle, submitLabel, passwordField, confirmPasswordField, codeField, submitDisabled, loading, onBack, onSubmit, }: PasswordFormViewProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
22
31
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AuthProvider } from '../../../environments/types';
|
|
2
|
+
/**
|
|
3
|
+
* Selects the frontend auth UI provider. Runtime window._env_ overrides build-time
|
|
4
|
+
* environment so deployments can flip without a rebuild.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getAuthProvider(): AuthProvider;
|
|
7
|
+
export declare function getClerkPublishableKey(): string | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Clerk UI is only mounted when selected and a publishable key is present, matching
|
|
10
|
+
* the auth service's isClerkEnabled() gate.
|
|
11
|
+
*/
|
|
12
|
+
export declare function isClerkAuthEnabled(): boolean;
|
|
@@ -0,0 +1,534 @@
|
|
|
1
|
+
import { FontFamilyStack } from '@bcrumbs.net/bc-ui';
|
|
2
|
+
/**
|
|
3
|
+
* Clerk UI theme aligned with legacy auth pages.
|
|
4
|
+
* Uses --bc-font-stack-poppins so Arabic (lang=ar) swaps to AvenirArabic.
|
|
5
|
+
*/
|
|
6
|
+
export declare const clerkAppearance: {
|
|
7
|
+
variables: {
|
|
8
|
+
fontFamily: FontFamilyStack;
|
|
9
|
+
fontFamilyButtons: FontFamilyStack;
|
|
10
|
+
fontSize: string;
|
|
11
|
+
colorPrimary: string;
|
|
12
|
+
colorTextOnPrimaryBackground: string;
|
|
13
|
+
borderRadius: string;
|
|
14
|
+
};
|
|
15
|
+
elements: {
|
|
16
|
+
rootBox: {
|
|
17
|
+
width: string;
|
|
18
|
+
};
|
|
19
|
+
cardBox: {
|
|
20
|
+
boxShadow: string;
|
|
21
|
+
width: string;
|
|
22
|
+
paddingTop: string;
|
|
23
|
+
paddingBottom: string;
|
|
24
|
+
};
|
|
25
|
+
card: {
|
|
26
|
+
boxShadow: string;
|
|
27
|
+
width: string;
|
|
28
|
+
fontFamily: FontFamilyStack;
|
|
29
|
+
paddingTop: string;
|
|
30
|
+
paddingBottom: string;
|
|
31
|
+
};
|
|
32
|
+
header: {
|
|
33
|
+
marginTop: string;
|
|
34
|
+
paddingTop: string;
|
|
35
|
+
};
|
|
36
|
+
headerTitle: {
|
|
37
|
+
fontFamily: FontFamilyStack;
|
|
38
|
+
fontSize: string;
|
|
39
|
+
fontWeight: string;
|
|
40
|
+
lineHeight: string;
|
|
41
|
+
color: string;
|
|
42
|
+
};
|
|
43
|
+
headerSubtitle: {
|
|
44
|
+
fontFamily: FontFamilyStack;
|
|
45
|
+
fontSize: string;
|
|
46
|
+
fontWeight: string;
|
|
47
|
+
lineHeight: string;
|
|
48
|
+
color: string;
|
|
49
|
+
};
|
|
50
|
+
formFieldLabel: {
|
|
51
|
+
fontFamily: FontFamilyStack;
|
|
52
|
+
fontSize: string;
|
|
53
|
+
fontWeight: string;
|
|
54
|
+
color: string;
|
|
55
|
+
};
|
|
56
|
+
formFieldInput: {
|
|
57
|
+
fontFamily: FontFamilyStack;
|
|
58
|
+
fontSize: string;
|
|
59
|
+
fontWeight: string;
|
|
60
|
+
height: string;
|
|
61
|
+
minHeight: string;
|
|
62
|
+
padding: string;
|
|
63
|
+
borderRadius: string;
|
|
64
|
+
border: string;
|
|
65
|
+
backgroundColor: string;
|
|
66
|
+
color: string;
|
|
67
|
+
boxShadow: string;
|
|
68
|
+
'&:focus': {
|
|
69
|
+
borderColor: string;
|
|
70
|
+
boxShadow: string;
|
|
71
|
+
outline: string;
|
|
72
|
+
};
|
|
73
|
+
'&:hover': {
|
|
74
|
+
borderColor: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
formFieldInputShowPasswordButton: {
|
|
78
|
+
color: string;
|
|
79
|
+
};
|
|
80
|
+
formButtonPrimary: {
|
|
81
|
+
fontFamily: FontFamilyStack;
|
|
82
|
+
fontSize: string;
|
|
83
|
+
fontWeight: string;
|
|
84
|
+
lineHeight: string;
|
|
85
|
+
letterSpacing: string;
|
|
86
|
+
textTransform: string;
|
|
87
|
+
height: string;
|
|
88
|
+
borderRadius: string;
|
|
89
|
+
backgroundColor: string;
|
|
90
|
+
color: string;
|
|
91
|
+
boxShadow: string;
|
|
92
|
+
width: string;
|
|
93
|
+
'&:hover': {
|
|
94
|
+
backgroundColor: string;
|
|
95
|
+
opacity: number;
|
|
96
|
+
};
|
|
97
|
+
'&:focus': {
|
|
98
|
+
backgroundColor: string;
|
|
99
|
+
boxShadow: string;
|
|
100
|
+
};
|
|
101
|
+
'&:active': {
|
|
102
|
+
backgroundColor: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
buttonArrowIcon: {
|
|
106
|
+
display: string;
|
|
107
|
+
};
|
|
108
|
+
socialButtons: {
|
|
109
|
+
gap: string;
|
|
110
|
+
};
|
|
111
|
+
socialButtonsBlockButton: {
|
|
112
|
+
fontFamily: FontFamilyStack;
|
|
113
|
+
fontSize: string;
|
|
114
|
+
fontWeight: string;
|
|
115
|
+
lineHeight: string;
|
|
116
|
+
letterSpacing: string;
|
|
117
|
+
textTransform: string;
|
|
118
|
+
height: string;
|
|
119
|
+
minHeight: string;
|
|
120
|
+
padding: string;
|
|
121
|
+
borderRadius: string;
|
|
122
|
+
border: string;
|
|
123
|
+
backgroundColor: string;
|
|
124
|
+
color: string;
|
|
125
|
+
boxShadow: string;
|
|
126
|
+
'&:hover': {
|
|
127
|
+
backgroundColor: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
socialButtonsBlockButtonText: {
|
|
131
|
+
fontFamily: FontFamilyStack;
|
|
132
|
+
fontSize: string;
|
|
133
|
+
fontWeight: string;
|
|
134
|
+
};
|
|
135
|
+
socialButtonsProviderIcon: {
|
|
136
|
+
width: string;
|
|
137
|
+
height: string;
|
|
138
|
+
};
|
|
139
|
+
lastAuthenticationStrategyBadge: {
|
|
140
|
+
fontFamily: FontFamilyStack;
|
|
141
|
+
fontSize: string;
|
|
142
|
+
fontWeight: string;
|
|
143
|
+
lineHeight: string;
|
|
144
|
+
minHeight: string;
|
|
145
|
+
height: string;
|
|
146
|
+
padding: string;
|
|
147
|
+
display: string;
|
|
148
|
+
alignItems: string;
|
|
149
|
+
boxSizing: string;
|
|
150
|
+
};
|
|
151
|
+
footerActionText: {
|
|
152
|
+
fontFamily: FontFamilyStack;
|
|
153
|
+
fontSize: string;
|
|
154
|
+
};
|
|
155
|
+
footerActionLink: {
|
|
156
|
+
fontFamily: FontFamilyStack;
|
|
157
|
+
fontSize: string;
|
|
158
|
+
};
|
|
159
|
+
identityPreviewText: {
|
|
160
|
+
fontFamily: FontFamilyStack;
|
|
161
|
+
fontSize: string;
|
|
162
|
+
};
|
|
163
|
+
formFieldSuccessText: {
|
|
164
|
+
fontFamily: FontFamilyStack;
|
|
165
|
+
fontSize: string;
|
|
166
|
+
};
|
|
167
|
+
formFieldErrorText: {
|
|
168
|
+
fontFamily: FontFamilyStack;
|
|
169
|
+
fontSize: string;
|
|
170
|
+
};
|
|
171
|
+
dividerText: {
|
|
172
|
+
fontFamily: FontFamilyStack;
|
|
173
|
+
fontSize: string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Hides Clerk's own footer (incl. "Secured by" / built-in account switch row).
|
|
179
|
+
* Custom login/register/forgot links are rendered below the panel instead.
|
|
180
|
+
*/
|
|
181
|
+
export declare const clerkSignInAppearance: {
|
|
182
|
+
elements: {
|
|
183
|
+
footer: {
|
|
184
|
+
display: string;
|
|
185
|
+
};
|
|
186
|
+
footerPages: {
|
|
187
|
+
display: string;
|
|
188
|
+
};
|
|
189
|
+
rootBox: {
|
|
190
|
+
width: string;
|
|
191
|
+
};
|
|
192
|
+
cardBox: {
|
|
193
|
+
boxShadow: string;
|
|
194
|
+
width: string;
|
|
195
|
+
paddingTop: string;
|
|
196
|
+
paddingBottom: string;
|
|
197
|
+
};
|
|
198
|
+
card: {
|
|
199
|
+
boxShadow: string;
|
|
200
|
+
width: string;
|
|
201
|
+
fontFamily: FontFamilyStack;
|
|
202
|
+
paddingTop: string;
|
|
203
|
+
paddingBottom: string;
|
|
204
|
+
};
|
|
205
|
+
header: {
|
|
206
|
+
marginTop: string;
|
|
207
|
+
paddingTop: string;
|
|
208
|
+
};
|
|
209
|
+
headerTitle: {
|
|
210
|
+
fontFamily: FontFamilyStack;
|
|
211
|
+
fontSize: string;
|
|
212
|
+
fontWeight: string;
|
|
213
|
+
lineHeight: string;
|
|
214
|
+
color: string;
|
|
215
|
+
};
|
|
216
|
+
headerSubtitle: {
|
|
217
|
+
fontFamily: FontFamilyStack;
|
|
218
|
+
fontSize: string;
|
|
219
|
+
fontWeight: string;
|
|
220
|
+
lineHeight: string;
|
|
221
|
+
color: string;
|
|
222
|
+
};
|
|
223
|
+
formFieldLabel: {
|
|
224
|
+
fontFamily: FontFamilyStack;
|
|
225
|
+
fontSize: string;
|
|
226
|
+
fontWeight: string;
|
|
227
|
+
color: string;
|
|
228
|
+
};
|
|
229
|
+
formFieldInput: {
|
|
230
|
+
fontFamily: FontFamilyStack;
|
|
231
|
+
fontSize: string;
|
|
232
|
+
fontWeight: string;
|
|
233
|
+
height: string;
|
|
234
|
+
minHeight: string;
|
|
235
|
+
padding: string;
|
|
236
|
+
borderRadius: string;
|
|
237
|
+
border: string;
|
|
238
|
+
backgroundColor: string;
|
|
239
|
+
color: string;
|
|
240
|
+
boxShadow: string;
|
|
241
|
+
'&:focus': {
|
|
242
|
+
borderColor: string;
|
|
243
|
+
boxShadow: string;
|
|
244
|
+
outline: string;
|
|
245
|
+
};
|
|
246
|
+
'&:hover': {
|
|
247
|
+
borderColor: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
formFieldInputShowPasswordButton: {
|
|
251
|
+
color: string;
|
|
252
|
+
};
|
|
253
|
+
formButtonPrimary: {
|
|
254
|
+
fontFamily: FontFamilyStack;
|
|
255
|
+
fontSize: string;
|
|
256
|
+
fontWeight: string;
|
|
257
|
+
lineHeight: string;
|
|
258
|
+
letterSpacing: string;
|
|
259
|
+
textTransform: string;
|
|
260
|
+
height: string;
|
|
261
|
+
borderRadius: string;
|
|
262
|
+
backgroundColor: string;
|
|
263
|
+
color: string;
|
|
264
|
+
boxShadow: string;
|
|
265
|
+
width: string;
|
|
266
|
+
'&:hover': {
|
|
267
|
+
backgroundColor: string;
|
|
268
|
+
opacity: number;
|
|
269
|
+
};
|
|
270
|
+
'&:focus': {
|
|
271
|
+
backgroundColor: string;
|
|
272
|
+
boxShadow: string;
|
|
273
|
+
};
|
|
274
|
+
'&:active': {
|
|
275
|
+
backgroundColor: string;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
buttonArrowIcon: {
|
|
279
|
+
display: string;
|
|
280
|
+
};
|
|
281
|
+
socialButtons: {
|
|
282
|
+
gap: string;
|
|
283
|
+
};
|
|
284
|
+
socialButtonsBlockButton: {
|
|
285
|
+
fontFamily: FontFamilyStack;
|
|
286
|
+
fontSize: string;
|
|
287
|
+
fontWeight: string;
|
|
288
|
+
lineHeight: string;
|
|
289
|
+
letterSpacing: string;
|
|
290
|
+
textTransform: string;
|
|
291
|
+
height: string;
|
|
292
|
+
minHeight: string;
|
|
293
|
+
padding: string;
|
|
294
|
+
borderRadius: string;
|
|
295
|
+
border: string;
|
|
296
|
+
backgroundColor: string;
|
|
297
|
+
color: string;
|
|
298
|
+
boxShadow: string;
|
|
299
|
+
'&:hover': {
|
|
300
|
+
backgroundColor: string;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
socialButtonsBlockButtonText: {
|
|
304
|
+
fontFamily: FontFamilyStack;
|
|
305
|
+
fontSize: string;
|
|
306
|
+
fontWeight: string;
|
|
307
|
+
};
|
|
308
|
+
socialButtonsProviderIcon: {
|
|
309
|
+
width: string;
|
|
310
|
+
height: string;
|
|
311
|
+
};
|
|
312
|
+
lastAuthenticationStrategyBadge: {
|
|
313
|
+
fontFamily: FontFamilyStack;
|
|
314
|
+
fontSize: string;
|
|
315
|
+
fontWeight: string;
|
|
316
|
+
lineHeight: string;
|
|
317
|
+
minHeight: string;
|
|
318
|
+
height: string;
|
|
319
|
+
padding: string;
|
|
320
|
+
display: string;
|
|
321
|
+
alignItems: string;
|
|
322
|
+
boxSizing: string;
|
|
323
|
+
};
|
|
324
|
+
footerActionText: {
|
|
325
|
+
fontFamily: FontFamilyStack;
|
|
326
|
+
fontSize: string;
|
|
327
|
+
};
|
|
328
|
+
footerActionLink: {
|
|
329
|
+
fontFamily: FontFamilyStack;
|
|
330
|
+
fontSize: string;
|
|
331
|
+
};
|
|
332
|
+
identityPreviewText: {
|
|
333
|
+
fontFamily: FontFamilyStack;
|
|
334
|
+
fontSize: string;
|
|
335
|
+
};
|
|
336
|
+
formFieldSuccessText: {
|
|
337
|
+
fontFamily: FontFamilyStack;
|
|
338
|
+
fontSize: string;
|
|
339
|
+
};
|
|
340
|
+
formFieldErrorText: {
|
|
341
|
+
fontFamily: FontFamilyStack;
|
|
342
|
+
fontSize: string;
|
|
343
|
+
};
|
|
344
|
+
dividerText: {
|
|
345
|
+
fontFamily: FontFamilyStack;
|
|
346
|
+
fontSize: string;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
variables: {
|
|
350
|
+
fontFamily: FontFamilyStack;
|
|
351
|
+
fontFamilyButtons: FontFamilyStack;
|
|
352
|
+
fontSize: string;
|
|
353
|
+
colorPrimary: string;
|
|
354
|
+
colorTextOnPrimaryBackground: string;
|
|
355
|
+
borderRadius: string;
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
export declare const clerkSignUpAppearance: {
|
|
359
|
+
elements: {
|
|
360
|
+
footer: {
|
|
361
|
+
display: string;
|
|
362
|
+
};
|
|
363
|
+
footerPages: {
|
|
364
|
+
display: string;
|
|
365
|
+
};
|
|
366
|
+
rootBox: {
|
|
367
|
+
width: string;
|
|
368
|
+
};
|
|
369
|
+
cardBox: {
|
|
370
|
+
boxShadow: string;
|
|
371
|
+
width: string;
|
|
372
|
+
paddingTop: string;
|
|
373
|
+
paddingBottom: string;
|
|
374
|
+
};
|
|
375
|
+
card: {
|
|
376
|
+
boxShadow: string;
|
|
377
|
+
width: string;
|
|
378
|
+
fontFamily: FontFamilyStack;
|
|
379
|
+
paddingTop: string;
|
|
380
|
+
paddingBottom: string;
|
|
381
|
+
};
|
|
382
|
+
header: {
|
|
383
|
+
marginTop: string;
|
|
384
|
+
paddingTop: string;
|
|
385
|
+
};
|
|
386
|
+
headerTitle: {
|
|
387
|
+
fontFamily: FontFamilyStack;
|
|
388
|
+
fontSize: string;
|
|
389
|
+
fontWeight: string;
|
|
390
|
+
lineHeight: string;
|
|
391
|
+
color: string;
|
|
392
|
+
};
|
|
393
|
+
headerSubtitle: {
|
|
394
|
+
fontFamily: FontFamilyStack;
|
|
395
|
+
fontSize: string;
|
|
396
|
+
fontWeight: string;
|
|
397
|
+
lineHeight: string;
|
|
398
|
+
color: string;
|
|
399
|
+
};
|
|
400
|
+
formFieldLabel: {
|
|
401
|
+
fontFamily: FontFamilyStack;
|
|
402
|
+
fontSize: string;
|
|
403
|
+
fontWeight: string;
|
|
404
|
+
color: string;
|
|
405
|
+
};
|
|
406
|
+
formFieldInput: {
|
|
407
|
+
fontFamily: FontFamilyStack;
|
|
408
|
+
fontSize: string;
|
|
409
|
+
fontWeight: string;
|
|
410
|
+
height: string;
|
|
411
|
+
minHeight: string;
|
|
412
|
+
padding: string;
|
|
413
|
+
borderRadius: string;
|
|
414
|
+
border: string;
|
|
415
|
+
backgroundColor: string;
|
|
416
|
+
color: string;
|
|
417
|
+
boxShadow: string;
|
|
418
|
+
'&:focus': {
|
|
419
|
+
borderColor: string;
|
|
420
|
+
boxShadow: string;
|
|
421
|
+
outline: string;
|
|
422
|
+
};
|
|
423
|
+
'&:hover': {
|
|
424
|
+
borderColor: string;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
formFieldInputShowPasswordButton: {
|
|
428
|
+
color: string;
|
|
429
|
+
};
|
|
430
|
+
formButtonPrimary: {
|
|
431
|
+
fontFamily: FontFamilyStack;
|
|
432
|
+
fontSize: string;
|
|
433
|
+
fontWeight: string;
|
|
434
|
+
lineHeight: string;
|
|
435
|
+
letterSpacing: string;
|
|
436
|
+
textTransform: string;
|
|
437
|
+
height: string;
|
|
438
|
+
borderRadius: string;
|
|
439
|
+
backgroundColor: string;
|
|
440
|
+
color: string;
|
|
441
|
+
boxShadow: string;
|
|
442
|
+
width: string;
|
|
443
|
+
'&:hover': {
|
|
444
|
+
backgroundColor: string;
|
|
445
|
+
opacity: number;
|
|
446
|
+
};
|
|
447
|
+
'&:focus': {
|
|
448
|
+
backgroundColor: string;
|
|
449
|
+
boxShadow: string;
|
|
450
|
+
};
|
|
451
|
+
'&:active': {
|
|
452
|
+
backgroundColor: string;
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
buttonArrowIcon: {
|
|
456
|
+
display: string;
|
|
457
|
+
};
|
|
458
|
+
socialButtons: {
|
|
459
|
+
gap: string;
|
|
460
|
+
};
|
|
461
|
+
socialButtonsBlockButton: {
|
|
462
|
+
fontFamily: FontFamilyStack;
|
|
463
|
+
fontSize: string;
|
|
464
|
+
fontWeight: string;
|
|
465
|
+
lineHeight: string;
|
|
466
|
+
letterSpacing: string;
|
|
467
|
+
textTransform: string;
|
|
468
|
+
height: string;
|
|
469
|
+
minHeight: string;
|
|
470
|
+
padding: string;
|
|
471
|
+
borderRadius: string;
|
|
472
|
+
border: string;
|
|
473
|
+
backgroundColor: string;
|
|
474
|
+
color: string;
|
|
475
|
+
boxShadow: string;
|
|
476
|
+
'&:hover': {
|
|
477
|
+
backgroundColor: string;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
socialButtonsBlockButtonText: {
|
|
481
|
+
fontFamily: FontFamilyStack;
|
|
482
|
+
fontSize: string;
|
|
483
|
+
fontWeight: string;
|
|
484
|
+
};
|
|
485
|
+
socialButtonsProviderIcon: {
|
|
486
|
+
width: string;
|
|
487
|
+
height: string;
|
|
488
|
+
};
|
|
489
|
+
lastAuthenticationStrategyBadge: {
|
|
490
|
+
fontFamily: FontFamilyStack;
|
|
491
|
+
fontSize: string;
|
|
492
|
+
fontWeight: string;
|
|
493
|
+
lineHeight: string;
|
|
494
|
+
minHeight: string;
|
|
495
|
+
height: string;
|
|
496
|
+
padding: string;
|
|
497
|
+
display: string;
|
|
498
|
+
alignItems: string;
|
|
499
|
+
boxSizing: string;
|
|
500
|
+
};
|
|
501
|
+
footerActionText: {
|
|
502
|
+
fontFamily: FontFamilyStack;
|
|
503
|
+
fontSize: string;
|
|
504
|
+
};
|
|
505
|
+
footerActionLink: {
|
|
506
|
+
fontFamily: FontFamilyStack;
|
|
507
|
+
fontSize: string;
|
|
508
|
+
};
|
|
509
|
+
identityPreviewText: {
|
|
510
|
+
fontFamily: FontFamilyStack;
|
|
511
|
+
fontSize: string;
|
|
512
|
+
};
|
|
513
|
+
formFieldSuccessText: {
|
|
514
|
+
fontFamily: FontFamilyStack;
|
|
515
|
+
fontSize: string;
|
|
516
|
+
};
|
|
517
|
+
formFieldErrorText: {
|
|
518
|
+
fontFamily: FontFamilyStack;
|
|
519
|
+
fontSize: string;
|
|
520
|
+
};
|
|
521
|
+
dividerText: {
|
|
522
|
+
fontFamily: FontFamilyStack;
|
|
523
|
+
fontSize: string;
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
variables: {
|
|
527
|
+
fontFamily: FontFamilyStack;
|
|
528
|
+
fontFamilyButtons: FontFamilyStack;
|
|
529
|
+
fontSize: string;
|
|
530
|
+
colorPrimary: string;
|
|
531
|
+
colorTextOnPrimaryBackground: string;
|
|
532
|
+
borderRadius: string;
|
|
533
|
+
};
|
|
534
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { LocalizationResource } from '@clerk/types';
|
|
2
|
+
/**
|
|
3
|
+
* Maps portal i18n languages (en / ar / tr) onto Clerk component localizations,
|
|
4
|
+
* including input placeholders for sign-in / sign-up.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getClerkLocalization(language?: string): LocalizationResource;
|