Skip to content

Commit 1b86a1d

Browse files
authoredDec 9, 2024··
feat(clerk-js,types): Add socialButtonsRoot descriptor (#4729)
1 parent 08b3e40 commit 1b86a1d

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed
 

‎.changeset/tiny-brooms-learn.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
'@clerk/types': patch
4+
---
5+
6+
Add `socialButtonsRoot` descriptor.

‎packages/clerk-js/bundlewatch.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{ "path": "./dist/clerk.js", "maxSize": "707kB" },
44
{ "path": "./dist/clerk.browser.js", "maxSize": "75kB" },
55
{ "path": "./dist/clerk.headless.js", "maxSize": "48kB" },
6-
{ "path": "./dist/ui-common*.js", "maxSize": "88KB" },
6+
{ "path": "./dist/ui-common*.js", "maxSize": "89KB" },
77
{ "path": "./dist/vendors*.js", "maxSize": "70KB" },
88
{ "path": "./dist/coinbase*.js", "maxSize": "58KB" },
99
{ "path": "./dist/createorganization*.js", "maxSize": "5KB" },

‎packages/clerk-js/src/ui/customizables/elementDescriptors.ts

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export const APPEARANCE_KEYS = containsAllElementsConfigKeys([
4747
'backRow',
4848
'backLink',
4949

50+
'socialButtonsRoot',
5051
'socialButtons',
5152
'socialButtonsIconButton',
5253
'socialButtonsBlockButton',

‎packages/clerk-js/src/ui/elements/SocialButtons.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export const SocialButtons = React.memo((props: SocialButtonsRootProps) => {
8888
<Flex
8989
direction='col'
9090
gap={2}
91+
elementDescriptor={descriptors.socialButtonsRoot}
9192
>
9293
{strategyRows.map((row, rowIndex) => (
9394
<Grid

‎packages/types/src/appearance.ts

+1
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ export type ElementsConfig = {
166166
footerPages: WithOptions;
167167
footerPagesLink: WithOptions<'help' | 'terms' | 'privacy'>;
168168

169+
socialButtonsRoot: WithOptions;
169170
socialButtons: WithOptions;
170171
socialButtonsIconButton: WithOptions<OAuthProvider | Web3Provider, LoadingState>;
171172
socialButtonsBlockButton: WithOptions<OAuthProvider | Web3Provider, LoadingState>;

0 commit comments

Comments
 (0)
Please sign in to comment.