@clerk/ui 1.44.0-canary.v20261118212914 → 1.44.0

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.
Files changed (202) hide show
  1. package/dist/ClerkUI.js +2 -2
  2. package/dist/components/OAuthConsent/ListGroup.js +40 -9
  3. package/dist/components/OAuthConsent/ListGroup.js.map +1 -1
  4. package/dist/components/OAuthConsent/OAuthConsent.js +30 -6
  5. package/dist/components/OAuthConsent/OAuthConsent.js.map +1 -1
  6. package/dist/customizables/elementDescriptors.js +1 -0
  7. package/dist/customizables/elementDescriptors.js.map +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/internal/appearance.d.ts +1 -0
  10. package/dist/no-rhc/ClerkUI.js +2 -2
  11. package/dist/no-rhc/components/OAuthConsent/ListGroup.js +40 -9
  12. package/dist/no-rhc/components/OAuthConsent/ListGroup.js.map +1 -1
  13. package/dist/no-rhc/components/OAuthConsent/OAuthConsent.js +30 -6
  14. package/dist/no-rhc/components/OAuthConsent/OAuthConsent.js.map +1 -1
  15. package/dist/no-rhc/customizables/elementDescriptors.js +1 -0
  16. package/dist/no-rhc/customizables/elementDescriptors.js.map +1 -1
  17. package/dist/no-rhc/index.js +1 -1
  18. package/dist/oauthConsent_ui_5bb062_1.44.0.js +1 -0
  19. package/dist/oauthConsent_ui_5bd460_1.44.0.js +1 -0
  20. package/dist/oauthConsent_ui_f0884a_1.44.0.js +1 -0
  21. package/dist/oauthDeviceVerification_ui_5bb062_1.44.0.js +1 -0
  22. package/dist/oauthDeviceVerification_ui_5bd460_1.44.0.js +1 -0
  23. package/dist/oauthDeviceVerification_ui_f0884a_1.44.0.js +1 -0
  24. package/dist/server.js +1 -1
  25. package/dist/{ui-common_ui_e16343_1.44.0-canary.v20261118212914.js → ui-common_ui_5bb062_1.44.0.js} +1 -1
  26. package/dist/ui-common_ui_5bd460_1.44.0.js +1 -0
  27. package/dist/{ui-common_ui_485945_1.44.0-canary.v20261118212914.js → ui-common_ui_f0884a_1.44.0.js} +1 -1
  28. package/dist/ui.browser.js +2 -2
  29. package/dist/ui.legacy.browser.js +1 -1
  30. package/dist/ui.shared.browser.js +6 -6
  31. package/package.json +3 -3
  32. package/dist/oauthConsent_ui_485945_1.44.0-canary.v20261118212914.js +0 -1
  33. package/dist/oauthConsent_ui_ae73d4_1.44.0-canary.v20261118212914.js +0 -1
  34. package/dist/oauthConsent_ui_e16343_1.44.0-canary.v20261118212914.js +0 -1
  35. package/dist/oauthDeviceVerification_ui_485945_1.44.0-canary.v20261118212914.js +0 -1
  36. package/dist/oauthDeviceVerification_ui_ae73d4_1.44.0-canary.v20261118212914.js +0 -1
  37. package/dist/oauthDeviceVerification_ui_e16343_1.44.0-canary.v20261118212914.js +0 -1
  38. package/dist/ui-common_ui_ae73d4_1.44.0-canary.v20261118212914.js +0 -1
  39. /package/dist/{3736_ui_e16343_1.44.0-canary.v20261118212914.js → 3736_ui_5bb062_1.44.0.js} +0 -0
  40. /package/dist/{3736_ui_ae73d4_1.44.0-canary.v20261118212914.js → 3736_ui_5bd460_1.44.0.js} +0 -0
  41. /package/dist/{3736_ui_485945_1.44.0-canary.v20261118212914.js → 3736_ui_f0884a_1.44.0.js} +0 -0
  42. /package/dist/{4424_ui_e16343_1.44.0-canary.v20261118212914.js → 4424_ui_5bb062_1.44.0.js} +0 -0
  43. /package/dist/{4424_ui_ae73d4_1.44.0-canary.v20261118212914.js → 4424_ui_5bd460_1.44.0.js} +0 -0
  44. /package/dist/{4424_ui_485945_1.44.0-canary.v20261118212914.js → 4424_ui_f0884a_1.44.0.js} +0 -0
  45. /package/dist/{524_ui_e16343_1.44.0-canary.v20261118212914.js → 524_ui_5bb062_1.44.0.js} +0 -0
  46. /package/dist/{524_ui_ae73d4_1.44.0-canary.v20261118212914.js → 524_ui_5bd460_1.44.0.js} +0 -0
  47. /package/dist/{524_ui_485945_1.44.0-canary.v20261118212914.js → 524_ui_f0884a_1.44.0.js} +0 -0
  48. /package/dist/{6206_ui_e16343_1.44.0-canary.v20261118212914.js → 6206_ui_5bb062_1.44.0.js} +0 -0
  49. /package/dist/{6206_ui_ae73d4_1.44.0-canary.v20261118212914.js → 6206_ui_5bd460_1.44.0.js} +0 -0
  50. /package/dist/{6206_ui_485945_1.44.0-canary.v20261118212914.js → 6206_ui_f0884a_1.44.0.js} +0 -0
  51. /package/dist/{6678_ui_e16343_1.44.0-canary.v20261118212914.js → 6678_ui_5bb062_1.44.0.js} +0 -0
  52. /package/dist/{6678_ui_ae73d4_1.44.0-canary.v20261118212914.js → 6678_ui_5bd460_1.44.0.js} +0 -0
  53. /package/dist/{6678_ui_485945_1.44.0-canary.v20261118212914.js → 6678_ui_f0884a_1.44.0.js} +0 -0
  54. /package/dist/{7181_ui_e16343_1.44.0-canary.v20261118212914.js → 7181_ui_5bb062_1.44.0.js} +0 -0
  55. /package/dist/{7181_ui_ae73d4_1.44.0-canary.v20261118212914.js → 7181_ui_5bd460_1.44.0.js} +0 -0
  56. /package/dist/{7181_ui_485945_1.44.0-canary.v20261118212914.js → 7181_ui_f0884a_1.44.0.js} +0 -0
  57. /package/dist/{8316_ui_e16343_1.44.0-canary.v20261118212914.js → 8316_ui_5bb062_1.44.0.js} +0 -0
  58. /package/dist/{8316_ui_ae73d4_1.44.0-canary.v20261118212914.js → 8316_ui_5bd460_1.44.0.js} +0 -0
  59. /package/dist/{8316_ui_485945_1.44.0-canary.v20261118212914.js → 8316_ui_f0884a_1.44.0.js} +0 -0
  60. /package/dist/{8746_ui_e16343_1.44.0-canary.v20261118212914.js → 8746_ui_5bb062_1.44.0.js} +0 -0
  61. /package/dist/{8746_ui_ae73d4_1.44.0-canary.v20261118212914.js → 8746_ui_5bd460_1.44.0.js} +0 -0
  62. /package/dist/{8746_ui_485945_1.44.0-canary.v20261118212914.js → 8746_ui_f0884a_1.44.0.js} +0 -0
  63. /package/dist/{9419_ui_e16343_1.44.0-canary.v20261118212914.js → 9419_ui_5bb062_1.44.0.js} +0 -0
  64. /package/dist/{9419_ui_ae73d4_1.44.0-canary.v20261118212914.js → 9419_ui_5bd460_1.44.0.js} +0 -0
  65. /package/dist/{9419_ui_485945_1.44.0-canary.v20261118212914.js → 9419_ui_f0884a_1.44.0.js} +0 -0
  66. /package/dist/{980_ui_e16343_1.44.0-canary.v20261118212914.js → 980_ui_5bb062_1.44.0.js} +0 -0
  67. /package/dist/{980_ui_ae73d4_1.44.0-canary.v20261118212914.js → 980_ui_5bd460_1.44.0.js} +0 -0
  68. /package/dist/{980_ui_485945_1.44.0-canary.v20261118212914.js → 980_ui_f0884a_1.44.0.js} +0 -0
  69. /package/dist/{apiKeys_ui_e16343_1.44.0-canary.v20261118212914.js → apiKeys_ui_5bb062_1.44.0.js} +0 -0
  70. /package/dist/{apiKeys_ui_ae73d4_1.44.0-canary.v20261118212914.js → apiKeys_ui_5bd460_1.44.0.js} +0 -0
  71. /package/dist/{apiKeys_ui_485945_1.44.0-canary.v20261118212914.js → apiKeys_ui_f0884a_1.44.0.js} +0 -0
  72. /package/dist/{blankcaptcha_ui_485945_1.44.0-canary.v20261118212914.js → blankcaptcha_ui_5bb062_1.44.0.js} +0 -0
  73. /package/dist/{blankcaptcha_ui_ae73d4_1.44.0-canary.v20261118212914.js → blankcaptcha_ui_5bd460_1.44.0.js} +0 -0
  74. /package/dist/{blankcaptcha_ui_e16343_1.44.0-canary.v20261118212914.js → blankcaptcha_ui_f0884a_1.44.0.js} +0 -0
  75. /package/dist/{checkout_ui_e16343_1.44.0-canary.v20261118212914.js → checkout_ui_5bb062_1.44.0.js} +0 -0
  76. /package/dist/{checkout_ui_ae73d4_1.44.0-canary.v20261118212914.js → checkout_ui_5bd460_1.44.0.js} +0 -0
  77. /package/dist/{checkout_ui_485945_1.44.0-canary.v20261118212914.js → checkout_ui_f0884a_1.44.0.js} +0 -0
  78. /package/dist/{configureDirectorySync_ui_e16343_1.44.0-canary.v20261118212914.js → configureDirectorySync_ui_5bb062_1.44.0.js} +0 -0
  79. /package/dist/{configureDirectorySync_ui_ae73d4_1.44.0-canary.v20261118212914.js → configureDirectorySync_ui_5bd460_1.44.0.js} +0 -0
  80. /package/dist/{configureDirectorySync_ui_485945_1.44.0-canary.v20261118212914.js → configureDirectorySync_ui_f0884a_1.44.0.js} +0 -0
  81. /package/dist/{configureSSO_ui_e16343_1.44.0-canary.v20261118212914.js → configureSSO_ui_5bb062_1.44.0.js} +0 -0
  82. /package/dist/{configureSSO_ui_ae73d4_1.44.0-canary.v20261118212914.js → configureSSO_ui_5bd460_1.44.0.js} +0 -0
  83. /package/dist/{configureSSO_ui_485945_1.44.0-canary.v20261118212914.js → configureSSO_ui_f0884a_1.44.0.js} +0 -0
  84. /package/dist/{copy-api-key-modal_ui_e16343_1.44.0-canary.v20261118212914.js → copy-api-key-modal_ui_5bb062_1.44.0.js} +0 -0
  85. /package/dist/{copy-api-key-modal_ui_ae73d4_1.44.0-canary.v20261118212914.js → copy-api-key-modal_ui_5bd460_1.44.0.js} +0 -0
  86. /package/dist/{copy-api-key-modal_ui_485945_1.44.0-canary.v20261118212914.js → copy-api-key-modal_ui_f0884a_1.44.0.js} +0 -0
  87. /package/dist/{createorganization_ui_e16343_1.44.0-canary.v20261118212914.js → createorganization_ui_5bb062_1.44.0.js} +0 -0
  88. /package/dist/{createorganization_ui_ae73d4_1.44.0-canary.v20261118212914.js → createorganization_ui_5bd460_1.44.0.js} +0 -0
  89. /package/dist/{createorganization_ui_485945_1.44.0-canary.v20261118212914.js → createorganization_ui_f0884a_1.44.0.js} +0 -0
  90. /package/dist/{credit-history-page_ui_485945_1.44.0-canary.v20261118212914.js → credit-history-page_ui_5bb062_1.44.0.js} +0 -0
  91. /package/dist/{credit-history-page_ui_ae73d4_1.44.0-canary.v20261118212914.js → credit-history-page_ui_5bd460_1.44.0.js} +0 -0
  92. /package/dist/{credit-history-page_ui_e16343_1.44.0-canary.v20261118212914.js → credit-history-page_ui_f0884a_1.44.0.js} +0 -0
  93. /package/dist/{enableOrganizationsPrompt_ui_e16343_1.44.0-canary.v20261118212914.js → enableOrganizationsPrompt_ui_5bb062_1.44.0.js} +0 -0
  94. /package/dist/{enableOrganizationsPrompt_ui_ae73d4_1.44.0-canary.v20261118212914.js → enableOrganizationsPrompt_ui_5bd460_1.44.0.js} +0 -0
  95. /package/dist/{enableOrganizationsPrompt_ui_485945_1.44.0-canary.v20261118212914.js → enableOrganizationsPrompt_ui_f0884a_1.44.0.js} +0 -0
  96. /package/dist/{framework_ui_e16343_1.44.0-canary.v20261118212914.js → framework_ui_5bb062_1.44.0.js} +0 -0
  97. /package/dist/{framework_ui_ae73d4_1.44.0-canary.v20261118212914.js → framework_ui_5bd460_1.44.0.js} +0 -0
  98. /package/dist/{impersonationfab_ui_e16343_1.44.0-canary.v20261118212914.js → impersonationfab_ui_5bb062_1.44.0.js} +0 -0
  99. /package/dist/{impersonationfab_ui_ae73d4_1.44.0-canary.v20261118212914.js → impersonationfab_ui_5bd460_1.44.0.js} +0 -0
  100. /package/dist/{impersonationfab_ui_485945_1.44.0-canary.v20261118212914.js → impersonationfab_ui_f0884a_1.44.0.js} +0 -0
  101. /package/dist/{invitemembers_ui_485945_1.44.0-canary.v20261118212914.js → invitemembers_ui_5bb062_1.44.0.js} +0 -0
  102. /package/dist/{invitemembers_ui_ae73d4_1.44.0-canary.v20261118212914.js → invitemembers_ui_5bd460_1.44.0.js} +0 -0
  103. /package/dist/{invitemembers_ui_e16343_1.44.0-canary.v20261118212914.js → invitemembers_ui_f0884a_1.44.0.js} +0 -0
  104. /package/dist/{keylessPrompt_ui_e16343_1.44.0-canary.v20261118212914.js → keylessPrompt_ui_5bb062_1.44.0.js} +0 -0
  105. /package/dist/{keylessPrompt_ui_ae73d4_1.44.0-canary.v20261118212914.js → keylessPrompt_ui_5bd460_1.44.0.js} +0 -0
  106. /package/dist/{keylessPrompt_ui_485945_1.44.0-canary.v20261118212914.js → keylessPrompt_ui_f0884a_1.44.0.js} +0 -0
  107. /package/dist/{onetap_ui_e16343_1.44.0-canary.v20261118212914.js → onetap_ui_5bb062_1.44.0.js} +0 -0
  108. /package/dist/{onetap_ui_ae73d4_1.44.0-canary.v20261118212914.js → onetap_ui_5bd460_1.44.0.js} +0 -0
  109. /package/dist/{onetap_ui_485945_1.44.0-canary.v20261118212914.js → onetap_ui_f0884a_1.44.0.js} +0 -0
  110. /package/dist/{op-api-keys-page_ui_485945_1.44.0-canary.v20261118212914.js → op-api-keys-page_ui_5bb062_1.44.0.js} +0 -0
  111. /package/dist/{op-api-keys-page_ui_ae73d4_1.44.0-canary.v20261118212914.js → op-api-keys-page_ui_5bd460_1.44.0.js} +0 -0
  112. /package/dist/{op-api-keys-page_ui_e16343_1.44.0-canary.v20261118212914.js → op-api-keys-page_ui_f0884a_1.44.0.js} +0 -0
  113. /package/dist/{op-billing-page_ui_485945_1.44.0-canary.v20261118212914.js → op-billing-page_ui_5bb062_1.44.0.js} +0 -0
  114. /package/dist/{op-billing-page_ui_ae73d4_1.44.0-canary.v20261118212914.js → op-billing-page_ui_5bd460_1.44.0.js} +0 -0
  115. /package/dist/{op-billing-page_ui_e16343_1.44.0-canary.v20261118212914.js → op-billing-page_ui_f0884a_1.44.0.js} +0 -0
  116. /package/dist/{op-plans-page_ui_485945_1.44.0-canary.v20261118212914.js → op-plans-page_ui_5bb062_1.44.0.js} +0 -0
  117. /package/dist/{op-plans-page_ui_ae73d4_1.44.0-canary.v20261118212914.js → op-plans-page_ui_5bd460_1.44.0.js} +0 -0
  118. /package/dist/{op-plans-page_ui_e16343_1.44.0-canary.v20261118212914.js → op-plans-page_ui_f0884a_1.44.0.js} +0 -0
  119. /package/dist/{op-security-page_ui_e16343_1.44.0-canary.v20261118212914.js → op-security-page_ui_5bb062_1.44.0.js} +0 -0
  120. /package/dist/{op-security-page_ui_ae73d4_1.44.0-canary.v20261118212914.js → op-security-page_ui_5bd460_1.44.0.js} +0 -0
  121. /package/dist/{op-security-page_ui_485945_1.44.0-canary.v20261118212914.js → op-security-page_ui_f0884a_1.44.0.js} +0 -0
  122. /package/dist/{organizationlist_ui_e16343_1.44.0-canary.v20261118212914.js → organizationlist_ui_5bb062_1.44.0.js} +0 -0
  123. /package/dist/{organizationlist_ui_ae73d4_1.44.0-canary.v20261118212914.js → organizationlist_ui_5bd460_1.44.0.js} +0 -0
  124. /package/dist/{organizationlist_ui_485945_1.44.0-canary.v20261118212914.js → organizationlist_ui_f0884a_1.44.0.js} +0 -0
  125. /package/dist/{organizationprofile_ui_e16343_1.44.0-canary.v20261118212914.js → organizationprofile_ui_5bb062_1.44.0.js} +0 -0
  126. /package/dist/{organizationprofile_ui_ae73d4_1.44.0-canary.v20261118212914.js → organizationprofile_ui_5bd460_1.44.0.js} +0 -0
  127. /package/dist/{organizationprofile_ui_485945_1.44.0-canary.v20261118212914.js → organizationprofile_ui_f0884a_1.44.0.js} +0 -0
  128. /package/dist/{organizationswitcher_ui_e16343_1.44.0-canary.v20261118212914.js → organizationswitcher_ui_5bb062_1.44.0.js} +0 -0
  129. /package/dist/{organizationswitcher_ui_ae73d4_1.44.0-canary.v20261118212914.js → organizationswitcher_ui_5bd460_1.44.0.js} +0 -0
  130. /package/dist/{organizationswitcher_ui_485945_1.44.0-canary.v20261118212914.js → organizationswitcher_ui_f0884a_1.44.0.js} +0 -0
  131. /package/dist/{payment-attempt-page_ui_485945_1.44.0-canary.v20261118212914.js → payment-attempt-page_ui_5bb062_1.44.0.js} +0 -0
  132. /package/dist/{payment-attempt-page_ui_ae73d4_1.44.0-canary.v20261118212914.js → payment-attempt-page_ui_5bd460_1.44.0.js} +0 -0
  133. /package/dist/{payment-attempt-page_ui_e16343_1.44.0-canary.v20261118212914.js → payment-attempt-page_ui_f0884a_1.44.0.js} +0 -0
  134. /package/dist/{planDetails_ui_e16343_1.44.0-canary.v20261118212914.js → planDetails_ui_5bb062_1.44.0.js} +0 -0
  135. /package/dist/{planDetails_ui_ae73d4_1.44.0-canary.v20261118212914.js → planDetails_ui_5bd460_1.44.0.js} +0 -0
  136. /package/dist/{planDetails_ui_485945_1.44.0-canary.v20261118212914.js → planDetails_ui_f0884a_1.44.0.js} +0 -0
  137. /package/dist/{prefetchorganizationlist_ui_485945_1.44.0-canary.v20261118212914.js → prefetchorganizationlist_ui_5bb062_1.44.0.js} +0 -0
  138. /package/dist/{prefetchorganizationlist_ui_ae73d4_1.44.0-canary.v20261118212914.js → prefetchorganizationlist_ui_5bd460_1.44.0.js} +0 -0
  139. /package/dist/{prefetchorganizationlist_ui_e16343_1.44.0-canary.v20261118212914.js → prefetchorganizationlist_ui_f0884a_1.44.0.js} +0 -0
  140. /package/dist/{pricingTable_ui_e16343_1.44.0-canary.v20261118212914.js → pricingTable_ui_5bb062_1.44.0.js} +0 -0
  141. /package/dist/{pricingTable_ui_ae73d4_1.44.0-canary.v20261118212914.js → pricingTable_ui_5bd460_1.44.0.js} +0 -0
  142. /package/dist/{pricingTable_ui_485945_1.44.0-canary.v20261118212914.js → pricingTable_ui_f0884a_1.44.0.js} +0 -0
  143. /package/dist/{protectcheck_ui_e16343_1.44.0-canary.v20261118212914.js → protectcheck_ui_5bb062_1.44.0.js} +0 -0
  144. /package/dist/{protectcheck_ui_ae73d4_1.44.0-canary.v20261118212914.js → protectcheck_ui_5bd460_1.44.0.js} +0 -0
  145. /package/dist/{protectcheck_ui_485945_1.44.0-canary.v20261118212914.js → protectcheck_ui_f0884a_1.44.0.js} +0 -0
  146. /package/dist/{revoke-api-key-modal_ui_e16343_1.44.0-canary.v20261118212914.js → revoke-api-key-modal_ui_5bb062_1.44.0.js} +0 -0
  147. /package/dist/{revoke-api-key-modal_ui_ae73d4_1.44.0-canary.v20261118212914.js → revoke-api-key-modal_ui_5bd460_1.44.0.js} +0 -0
  148. /package/dist/{revoke-api-key-modal_ui_485945_1.44.0-canary.v20261118212914.js → revoke-api-key-modal_ui_f0884a_1.44.0.js} +0 -0
  149. /package/dist/{sessionTasks_ui_e16343_1.44.0-canary.v20261118212914.js → sessionTasks_ui_5bb062_1.44.0.js} +0 -0
  150. /package/dist/{sessionTasks_ui_ae73d4_1.44.0-canary.v20261118212914.js → sessionTasks_ui_5bd460_1.44.0.js} +0 -0
  151. /package/dist/{sessionTasks_ui_485945_1.44.0-canary.v20261118212914.js → sessionTasks_ui_f0884a_1.44.0.js} +0 -0
  152. /package/dist/{signin_ui_e16343_1.44.0-canary.v20261118212914.js → signin_ui_5bb062_1.44.0.js} +0 -0
  153. /package/dist/{signin_ui_ae73d4_1.44.0-canary.v20261118212914.js → signin_ui_5bd460_1.44.0.js} +0 -0
  154. /package/dist/{signin_ui_485945_1.44.0-canary.v20261118212914.js → signin_ui_f0884a_1.44.0.js} +0 -0
  155. /package/dist/{signup_ui_e16343_1.44.0-canary.v20261118212914.js → signup_ui_5bb062_1.44.0.js} +0 -0
  156. /package/dist/{signup_ui_ae73d4_1.44.0-canary.v20261118212914.js → signup_ui_5bd460_1.44.0.js} +0 -0
  157. /package/dist/{signup_ui_485945_1.44.0-canary.v20261118212914.js → signup_ui_f0884a_1.44.0.js} +0 -0
  158. /package/dist/{statement-page_ui_e16343_1.44.0-canary.v20261118212914.js → statement-page_ui_5bb062_1.44.0.js} +0 -0
  159. /package/dist/{statement-page_ui_ae73d4_1.44.0-canary.v20261118212914.js → statement-page_ui_5bd460_1.44.0.js} +0 -0
  160. /package/dist/{statement-page_ui_485945_1.44.0-canary.v20261118212914.js → statement-page_ui_f0884a_1.44.0.js} +0 -0
  161. /package/dist/{subscriptionDetails_ui_e16343_1.44.0-canary.v20261118212914.js → subscriptionDetails_ui_5bb062_1.44.0.js} +0 -0
  162. /package/dist/{subscriptionDetails_ui_ae73d4_1.44.0-canary.v20261118212914.js → subscriptionDetails_ui_5bd460_1.44.0.js} +0 -0
  163. /package/dist/{subscriptionDetails_ui_485945_1.44.0-canary.v20261118212914.js → subscriptionDetails_ui_f0884a_1.44.0.js} +0 -0
  164. /package/dist/{taskChooseOrganization_ui_e16343_1.44.0-canary.v20261118212914.js → taskChooseOrganization_ui_5bb062_1.44.0.js} +0 -0
  165. /package/dist/{taskChooseOrganization_ui_ae73d4_1.44.0-canary.v20261118212914.js → taskChooseOrganization_ui_5bd460_1.44.0.js} +0 -0
  166. /package/dist/{taskChooseOrganization_ui_485945_1.44.0-canary.v20261118212914.js → taskChooseOrganization_ui_f0884a_1.44.0.js} +0 -0
  167. /package/dist/{taskResetPassword_ui_e16343_1.44.0-canary.v20261118212914.js → taskResetPassword_ui_5bb062_1.44.0.js} +0 -0
  168. /package/dist/{taskResetPassword_ui_ae73d4_1.44.0-canary.v20261118212914.js → taskResetPassword_ui_5bd460_1.44.0.js} +0 -0
  169. /package/dist/{taskResetPassword_ui_485945_1.44.0-canary.v20261118212914.js → taskResetPassword_ui_f0884a_1.44.0.js} +0 -0
  170. /package/dist/{taskSetupMFA_ui_e16343_1.44.0-canary.v20261118212914.js → taskSetupMFA_ui_5bb062_1.44.0.js} +0 -0
  171. /package/dist/{taskSetupMFA_ui_ae73d4_1.44.0-canary.v20261118212914.js → taskSetupMFA_ui_5bd460_1.44.0.js} +0 -0
  172. /package/dist/{taskSetupMFA_ui_485945_1.44.0-canary.v20261118212914.js → taskSetupMFA_ui_f0884a_1.44.0.js} +0 -0
  173. /package/dist/{up-api-keys-page_ui_485945_1.44.0-canary.v20261118212914.js → up-api-keys-page_ui_5bb062_1.44.0.js} +0 -0
  174. /package/dist/{up-api-keys-page_ui_ae73d4_1.44.0-canary.v20261118212914.js → up-api-keys-page_ui_5bd460_1.44.0.js} +0 -0
  175. /package/dist/{up-api-keys-page_ui_e16343_1.44.0-canary.v20261118212914.js → up-api-keys-page_ui_f0884a_1.44.0.js} +0 -0
  176. /package/dist/{up-billing-page_ui_485945_1.44.0-canary.v20261118212914.js → up-billing-page_ui_5bb062_1.44.0.js} +0 -0
  177. /package/dist/{up-billing-page_ui_ae73d4_1.44.0-canary.v20261118212914.js → up-billing-page_ui_5bd460_1.44.0.js} +0 -0
  178. /package/dist/{up-billing-page_ui_e16343_1.44.0-canary.v20261118212914.js → up-billing-page_ui_f0884a_1.44.0.js} +0 -0
  179. /package/dist/{up-plans-page_ui_485945_1.44.0-canary.v20261118212914.js → up-plans-page_ui_5bb062_1.44.0.js} +0 -0
  180. /package/dist/{up-plans-page_ui_ae73d4_1.44.0-canary.v20261118212914.js → up-plans-page_ui_5bd460_1.44.0.js} +0 -0
  181. /package/dist/{up-plans-page_ui_e16343_1.44.0-canary.v20261118212914.js → up-plans-page_ui_f0884a_1.44.0.js} +0 -0
  182. /package/dist/{useravatar_ui_e16343_1.44.0-canary.v20261118212914.js → useravatar_ui_5bb062_1.44.0.js} +0 -0
  183. /package/dist/{useravatar_ui_ae73d4_1.44.0-canary.v20261118212914.js → useravatar_ui_5bd460_1.44.0.js} +0 -0
  184. /package/dist/{useravatar_ui_485945_1.44.0-canary.v20261118212914.js → useravatar_ui_f0884a_1.44.0.js} +0 -0
  185. /package/dist/{userbutton_ui_e16343_1.44.0-canary.v20261118212914.js → userbutton_ui_5bb062_1.44.0.js} +0 -0
  186. /package/dist/{userbutton_ui_ae73d4_1.44.0-canary.v20261118212914.js → userbutton_ui_5bd460_1.44.0.js} +0 -0
  187. /package/dist/{userbutton_ui_485945_1.44.0-canary.v20261118212914.js → userbutton_ui_f0884a_1.44.0.js} +0 -0
  188. /package/dist/{userprofile_ui_e16343_1.44.0-canary.v20261118212914.js → userprofile_ui_5bb062_1.44.0.js} +0 -0
  189. /package/dist/{userprofile_ui_ae73d4_1.44.0-canary.v20261118212914.js → userprofile_ui_5bd460_1.44.0.js} +0 -0
  190. /package/dist/{userprofile_ui_485945_1.44.0-canary.v20261118212914.js → userprofile_ui_f0884a_1.44.0.js} +0 -0
  191. /package/dist/{userverification_ui_e16343_1.44.0-canary.v20261118212914.js → userverification_ui_5bb062_1.44.0.js} +0 -0
  192. /package/dist/{userverification_ui_ae73d4_1.44.0-canary.v20261118212914.js → userverification_ui_5bd460_1.44.0.js} +0 -0
  193. /package/dist/{userverification_ui_485945_1.44.0-canary.v20261118212914.js → userverification_ui_f0884a_1.44.0.js} +0 -0
  194. /package/dist/{vendors_ui_e16343_1.44.0-canary.v20261118212914.js → vendors_ui_5bb062_1.44.0.js} +0 -0
  195. /package/dist/{vendors_ui_ae73d4_1.44.0-canary.v20261118212914.js → vendors_ui_5bd460_1.44.0.js} +0 -0
  196. /package/dist/{vendors_ui_485945_1.44.0-canary.v20261118212914.js → vendors_ui_f0884a_1.44.0.js} +0 -0
  197. /package/dist/{waitlist_ui_e16343_1.44.0-canary.v20261118212914.js → waitlist_ui_5bb062_1.44.0.js} +0 -0
  198. /package/dist/{waitlist_ui_ae73d4_1.44.0-canary.v20261118212914.js → waitlist_ui_5bd460_1.44.0.js} +0 -0
  199. /package/dist/{waitlist_ui_485945_1.44.0-canary.v20261118212914.js → waitlist_ui_f0884a_1.44.0.js} +0 -0
  200. /package/dist/{web3-solana-wallet-buttons_ui_485945_1.44.0-canary.v20261118212914.js → web3-solana-wallet-buttons_ui_5bb062_1.44.0.js} +0 -0
  201. /package/dist/{web3-solana-wallet-buttons_ui_ae73d4_1.44.0-canary.v20261118212914.js → web3-solana-wallet-buttons_ui_5bd460_1.44.0.js} +0 -0
  202. /package/dist/{web3-solana-wallet-buttons_ui_e16343_1.44.0-canary.v20261118212914.js → web3-solana-wallet-buttons_ui_f0884a_1.44.0.js} +0 -0
package/dist/ClerkUI.js CHANGED
@@ -22,8 +22,8 @@ import { isVersionAtLeast, parseVersion } from "@clerk/shared/versionCheck";
22
22
  * @public
23
23
  */
24
24
  var ClerkUI = class ClerkUI {
25
- static version = "1.44.0-canary.v20261118212914";
26
- version = "1.44.0-canary.v20261118212914";
25
+ static version = "1.44.0";
26
+ version = "1.44.0";
27
27
  #componentRenderer;
28
28
  /**
29
29
  * Creates a new `ClerkUI` instance and mounts the internal component renderer.
@@ -1,8 +1,8 @@
1
1
  import { colors } from "../../utils/colors/index.js";
2
2
  import { common } from "../../styledSystem/common.js";
3
3
  import { descriptors } from "../../customizables/elementDescriptors.js";
4
- import { Box, Text } from "../../customizables/index.js";
5
- import { jsx } from "@emotion/react/jsx-runtime";
4
+ import { Box, CheckboxInput, Flex, Text } from "../../customizables/index.js";
5
+ import { jsx, jsxs } from "@emotion/react/jsx-runtime";
6
6
 
7
7
  //#region src/components/OAuthConsent/ListGroup.tsx
8
8
  function ListGroup({ children, sx, ...props }) {
@@ -49,7 +49,7 @@ function ListGroupContent({ children, sx, ...props }) {
49
49
  backgroundColor: t.colors.$colorBackground,
50
50
  overflowY: "auto",
51
51
  ...common.unstyledScrollbar(t),
52
- "--fade-distance": "2.5rem",
52
+ "--fade-distance": "2rem",
53
53
  "&::before, &::after": {
54
54
  content: "\"\"",
55
55
  display: "block",
@@ -101,18 +101,21 @@ function ListGroupContent({ children, sx, ...props }) {
101
101
  children
102
102
  });
103
103
  }
104
+ const listGroupItemStyles = (t) => ({
105
+ paddingInline: t.space.$3,
106
+ paddingBlock: t.space.$2,
107
+ borderTopWidth: t.borderWidths.$normal,
108
+ borderTopStyle: t.borderStyles.$solid,
109
+ borderTopColor: t.colors.$borderAlpha100
110
+ });
104
111
  function ListGroupItem({ children, sx, ...props }) {
105
112
  return /* @__PURE__ */ jsx(Box, {
106
113
  ...props,
107
114
  as: "li",
108
115
  sx: [(t) => ({
116
+ ...listGroupItemStyles(t),
109
117
  display: "flex",
110
118
  alignItems: "baseline",
111
- paddingInline: t.space.$3,
112
- paddingBlock: t.space.$2,
113
- borderTopWidth: t.borderWidths.$normal,
114
- borderTopStyle: t.borderStyles.$solid,
115
- borderTopColor: t.colors.$borderAlpha100,
116
119
  "&::before": {
117
120
  content: "\"\"",
118
121
  display: "inline-block",
@@ -136,7 +139,35 @@ function ListGroupItemLabel(props) {
136
139
  elementDescriptor: descriptors.listGroupItemLabel
137
140
  });
138
141
  }
142
+ function ListGroupCheckboxItem({ children, ...props }) {
143
+ return /* @__PURE__ */ jsx(Box, {
144
+ as: "li",
145
+ sx: listGroupItemStyles,
146
+ elementDescriptor: descriptors.listGroupItem,
147
+ children: /* @__PURE__ */ jsxs(Flex, {
148
+ as: "label",
149
+ align: "start",
150
+ gap: 2,
151
+ sx: {
152
+ cursor: "pointer",
153
+ userSelect: "none"
154
+ },
155
+ children: [/* @__PURE__ */ jsx(CheckboxInput, {
156
+ ...props,
157
+ elementDescriptor: descriptors.listGroupItemCheckbox,
158
+ sx: (t) => ({
159
+ flexShrink: 0,
160
+ cursor: "pointer",
161
+ marginBlockStart: `calc((${t.fontSizes.$md} * ${t.lineHeights.$small} - ${t.sizes.$3x5}) / 2)`
162
+ })
163
+ }), /* @__PURE__ */ jsx(ListGroupItemLabel, {
164
+ as: "span",
165
+ children
166
+ })]
167
+ })
168
+ });
169
+ }
139
170
 
140
171
  //#endregion
141
- export { ListGroup, ListGroupContent, ListGroupHeader, ListGroupHeaderTitle, ListGroupItem, ListGroupItemLabel };
172
+ export { ListGroup, ListGroupCheckboxItem, ListGroupContent, ListGroupHeader, ListGroupHeaderTitle, ListGroupItem, ListGroupItemLabel };
142
173
  //# sourceMappingURL=ListGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListGroup.js","names":[],"sources":["../../../src/components/OAuthConsent/ListGroup.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\n\nimport { Box, descriptors, Text } from '@/ui/customizables';\nimport { common } from '@/ui/styledSystem';\nimport { colors } from '@/ui/utils/colors';\n\nexport function ListGroup({ children, sx, ...props }: Omit<ComponentProps<typeof Box>, 'elementDescriptor'>) {\n return (\n <Box\n {...props}\n sx={[\n t => ({\n textAlign: 'start',\n borderWidth: t.borderWidths.$normal,\n borderStyle: t.borderStyles.$solid,\n borderColor: t.colors.$borderAlpha100,\n borderRadius: t.radii.$lg,\n overflow: 'hidden',\n }),\n sx,\n ]}\n elementDescriptor={descriptors.listGroup}\n >\n {children}\n </Box>\n );\n}\n\nexport function ListGroupHeader({ children, sx, ...props }: Omit<ComponentProps<typeof Box>, 'elementDescriptor'>) {\n return (\n <Box\n {...props}\n sx={[\n t => ({\n padding: t.space.$3,\n background: common.mergedColorsBackground(\n colors.setAlpha(t.colors.$colorBackground, 1),\n t.colors.$neutralAlpha50,\n ),\n }),\n sx,\n ]}\n elementDescriptor={descriptors.listGroupHeader}\n >\n {children}\n </Box>\n );\n}\n\nexport function ListGroupHeaderTitle(props: Omit<ComponentProps<typeof Text>, 'elementDescriptor'>) {\n return (\n <Text\n {...props}\n variant='subtitle'\n elementDescriptor={descriptors.listGroupHeaderTitle}\n />\n );\n}\n\nexport function ListGroupContent({\n children,\n sx,\n ...props\n}: Omit<ComponentProps<typeof Box>, 'as' | 'elementDescriptor'>) {\n return (\n <Box\n {...props}\n as='ul'\n sx={[\n t => ({\n margin: t.sizes.$none,\n padding: t.sizes.$none,\n maxBlockSize: '10.9375rem',\n backgroundColor: t.colors.$colorBackground,\n overflowY: 'auto',\n ...common.unstyledScrollbar(t),\n '--fade-distance': '2.5rem',\n '&::before, &::after': {\n content: '\"\"',\n display: 'block',\n position: 'sticky',\n insetInline: 0,\n blockSize: 'var(--fade-distance)',\n pointerEvents: 'none',\n zIndex: 1,\n opacity: 0,\n },\n '&::before': {\n insetBlockStart: 0,\n marginBlockEnd: 'calc(var(--fade-distance) * -1)',\n background: `linear-gradient(to bottom, ${t.colors.$colorBackground}, transparent)`,\n },\n '&::after': {\n insetBlockEnd: 0,\n marginBlockStart: 'calc(var(--fade-distance) * -1)',\n background: `linear-gradient(to top, ${t.colors.$colorBackground}, transparent)`,\n },\n '@keyframes list-fade-top': {\n from: { opacity: 0 },\n to: { opacity: 1 },\n },\n '@keyframes list-fade-bottom': {\n from: { opacity: 1 },\n to: { opacity: 0 },\n },\n '@supports (animation-timeline: scroll())': {\n '&::before': {\n animationName: 'list-fade-top',\n animationDuration: 'auto',\n animationTimingFunction: 'linear',\n animationFillMode: 'both',\n animationTimeline: 'scroll(y)',\n animationRange: '0 var(--fade-distance)',\n },\n '&::after': {\n animationName: 'list-fade-bottom',\n animationDuration: 'auto',\n animationTimingFunction: 'linear',\n animationFillMode: 'both',\n animationTimeline: 'scroll(y)',\n animationRange: 'calc(100% - var(--fade-distance)) 100%',\n },\n },\n }),\n sx,\n ]}\n elementDescriptor={descriptors.listGroupContent}\n >\n {children}\n </Box>\n );\n}\n\nexport function ListGroupItem({\n children,\n sx,\n ...props\n}: Omit<ComponentProps<typeof Box>, 'as' | 'elementDescriptor'>) {\n return (\n <Box\n {...props}\n as='li'\n sx={[\n t => ({\n display: 'flex',\n alignItems: 'baseline',\n paddingInline: t.space.$3,\n paddingBlock: t.space.$2,\n borderTopWidth: t.borderWidths.$normal,\n borderTopStyle: t.borderStyles.$solid,\n borderTopColor: t.colors.$borderAlpha100,\n '&::before': {\n content: '\"\"',\n display: 'inline-block',\n width: t.space.$1,\n height: t.space.$1,\n background: t.colors.$colorMutedForeground,\n borderRadius: t.radii.$circle,\n transform: 'translateY(-0.1875rem)',\n marginInlineEnd: t.space.$2,\n flexShrink: 0,\n },\n }),\n sx,\n ]}\n elementDescriptor={descriptors.listGroupItem}\n >\n {children}\n </Box>\n );\n}\n\nexport function ListGroupItemLabel(props: Omit<ComponentProps<typeof Text>, 'elementDescriptor'>) {\n return (\n <Text\n {...props}\n variant='subtitle'\n elementDescriptor={descriptors.listGroupItemLabel}\n />\n );\n}\n"],"mappings":";;;;;;;AAMA,SAAgB,UAAU,EAAE,UAAU,IAAI,GAAG,SAAgE;CAC3G,OACE,oBAAC,KAAD;EACE,GAAI;EACJ,IAAI,EACF,OAAM;GACJ,WAAW;GACX,aAAa,EAAE,aAAa;GAC5B,aAAa,EAAE,aAAa;GAC5B,aAAa,EAAE,OAAO;GACtB,cAAc,EAAE,MAAM;GACtB,UAAU;EACZ,IACA,EACF;EACA,mBAAmB,YAAY;EAE9B;CACE;AAET;AAEA,SAAgB,gBAAgB,EAAE,UAAU,IAAI,GAAG,SAAgE;CACjH,OACE,oBAAC,KAAD;EACE,GAAI;EACJ,IAAI,EACF,OAAM;GACJ,SAAS,EAAE,MAAM;GACjB,YAAY,OAAO,uBACjB,OAAO,SAAS,EAAE,OAAO,kBAAkB,CAAC,GAC5C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AI;EACJ,IAAG;EACH,IAAI,EACF,OAAM;GACJ,SAAS;GACT,YAAY;GACZ,eAAe,EAAE,MAAM;GACvB,cAAc,EAAE,MAAM;GACtB,gBAAgB,EAAE,aAAa;GAC/B,gBAAgB,EAAE,aAAa;GAC/B,gBAAgB,EAAE,OAAO;GACzB,aAAa;IACX,SAAS;IACT,SAAS;IACT,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,MAAM;IAChB,YAAY,EAAE,OAAO;IACrB,cAAc,EAAE,MAAM;IACtB,WAAW;IACX,iBAAiB,EAAE,MAAM;IACzB,YAAY;GACd;EACF,IACA,EACF;EACA,mBAAmB,YAAY;EAE9B;CACE;AAET;AAEA,SAAgB,mBAAmB,OAA+D;CAChG,OACE,oBAAC,MAAD;EACE,GAAI;EACJ,SAAQ;EACR,mBAAmB,YAAY;CAChC;AAEL"}
1
+ {"version":3,"file":"ListGroup.js","names":[],"sources":["../../../src/components/OAuthConsent/ListGroup.tsx"],"sourcesContent":["import type { ComponentProps } from 'react';\n\nimport { Box, CheckboxInput, descriptors, Flex, Text } from '@/ui/customizables';\nimport type { InternalTheme } from '@/ui/styledSystem';\nimport { common } from '@/ui/styledSystem';\nimport { colors } from '@/ui/utils/colors';\n\nexport function ListGroup({ children, sx, ...props }: Omit<ComponentProps<typeof Box>, 'elementDescriptor'>) {\n return (\n <Box\n {...props}\n sx={[\n t => ({\n textAlign: 'start',\n borderWidth: t.borderWidths.$normal,\n borderStyle: t.borderStyles.$solid,\n borderColor: t.colors.$borderAlpha100,\n borderRadius: t.radii.$lg,\n overflow: 'hidden',\n }),\n sx,\n ]}\n elementDescriptor={descriptors.listGroup}\n >\n {children}\n </Box>\n );\n}\n\nexport function ListGroupHeader({ children, sx, ...props }: Omit<ComponentProps<typeof Box>, 'elementDescriptor'>) {\n return (\n <Box\n {...props}\n sx={[\n t => ({\n padding: t.space.$3,\n background: common.mergedColorsBackground(\n colors.setAlpha(t.colors.$colorBackground, 1),\n t.colors.$neutralAlpha50,\n ),\n }),\n sx,\n ]}\n elementDescriptor={descriptors.listGroupHeader}\n >\n {children}\n </Box>\n );\n}\n\nexport function ListGroupHeaderTitle(props: Omit<ComponentProps<typeof Text>, 'elementDescriptor'>) {\n return (\n <Text\n {...props}\n variant='subtitle'\n elementDescriptor={descriptors.listGroupHeaderTitle}\n />\n );\n}\n\nexport function ListGroupContent({\n children,\n sx,\n ...props\n}: Omit<ComponentProps<typeof Box>, 'as' | 'elementDescriptor'>) {\n return (\n <Box\n {...props}\n as='ul'\n sx={[\n t => ({\n margin: t.sizes.$none,\n padding: t.sizes.$none,\n maxBlockSize: '10.9375rem',\n backgroundColor: t.colors.$colorBackground,\n overflowY: 'auto',\n ...common.unstyledScrollbar(t),\n '--fade-distance': '2rem',\n '&::before, &::after': {\n content: '\"\"',\n display: 'block',\n position: 'sticky',\n insetInline: 0,\n blockSize: 'var(--fade-distance)',\n pointerEvents: 'none',\n zIndex: 1,\n opacity: 0,\n },\n '&::before': {\n insetBlockStart: 0,\n marginBlockEnd: 'calc(var(--fade-distance) * -1)',\n background: `linear-gradient(to bottom, ${t.colors.$colorBackground}, transparent)`,\n },\n '&::after': {\n insetBlockEnd: 0,\n marginBlockStart: 'calc(var(--fade-distance) * -1)',\n background: `linear-gradient(to top, ${t.colors.$colorBackground}, transparent)`,\n },\n '@keyframes list-fade-top': {\n from: { opacity: 0 },\n to: { opacity: 1 },\n },\n '@keyframes list-fade-bottom': {\n from: { opacity: 1 },\n to: { opacity: 0 },\n },\n '@supports (animation-timeline: scroll())': {\n '&::before': {\n animationName: 'list-fade-top',\n animationDuration: 'auto',\n animationTimingFunction: 'linear',\n animationFillMode: 'both',\n animationTimeline: 'scroll(y)',\n animationRange: '0 var(--fade-distance)',\n },\n '&::after': {\n animationName: 'list-fade-bottom',\n animationDuration: 'auto',\n animationTimingFunction: 'linear',\n animationFillMode: 'both',\n animationTimeline: 'scroll(y)',\n animationRange: 'calc(100% - var(--fade-distance)) 100%',\n },\n },\n }),\n sx,\n ]}\n elementDescriptor={descriptors.listGroupContent}\n >\n {children}\n </Box>\n );\n}\n\nconst listGroupItemStyles = (t: InternalTheme) => ({\n paddingInline: t.space.$3,\n paddingBlock: t.space.$2,\n borderTopWidth: t.borderWidths.$normal,\n borderTopStyle: t.borderStyles.$solid,\n borderTopColor: t.colors.$borderAlpha100,\n});\n\nexport function ListGroupItem({\n children,\n sx,\n ...props\n}: Omit<ComponentProps<typeof Box>, 'as' | 'elementDescriptor'>) {\n return (\n <Box\n {...props}\n as='li'\n sx={[\n t => ({\n ...listGroupItemStyles(t),\n display: 'flex',\n alignItems: 'baseline',\n '&::before': {\n content: '\"\"',\n display: 'inline-block',\n width: t.space.$1,\n height: t.space.$1,\n background: t.colors.$colorMutedForeground,\n borderRadius: t.radii.$circle,\n transform: 'translateY(-0.1875rem)',\n marginInlineEnd: t.space.$2,\n flexShrink: 0,\n },\n }),\n sx,\n ]}\n elementDescriptor={descriptors.listGroupItem}\n >\n {children}\n </Box>\n );\n}\n\nexport function ListGroupItemLabel(props: Omit<ComponentProps<typeof Text>, 'elementDescriptor'>) {\n return (\n <Text\n {...props}\n variant='subtitle'\n elementDescriptor={descriptors.listGroupItemLabel}\n />\n );\n}\n\nexport function ListGroupCheckboxItem({\n children,\n ...props\n}: Pick<ComponentProps<typeof CheckboxInput>, 'checked' | 'value' | 'isDisabled' | 'onChange'> & {\n children: ComponentProps<typeof Text>['children'];\n}) {\n return (\n <Box\n as='li'\n sx={listGroupItemStyles}\n elementDescriptor={descriptors.listGroupItem}\n >\n <Flex\n as='label'\n align='start'\n gap={2}\n sx={{ cursor: 'pointer', userSelect: 'none' }}\n >\n <CheckboxInput\n {...props}\n elementDescriptor={descriptors.listGroupItemCheckbox}\n sx={t => ({\n flexShrink: 0,\n cursor: 'pointer',\n marginBlockStart: `calc((${t.fontSizes.$md} * ${t.lineHeights.$small} - ${t.sizes.$3x5}) / 2)`,\n })}\n />\n <ListGroupItemLabel as='span'>{children}</ListGroupItemLabel>\n </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/B,qBAAC,MAAD;GACE,IAAG;GACH,OAAM;GACN,KAAK;GACL,IAAI;IAAE,QAAQ;IAAW,YAAY;GAAO;aAJ9C,CAME,oBAAC,eAAD;IACE,GAAI;IACJ,mBAAmB,YAAY;IAC/B,KAAI,OAAM;KACR,YAAY;KACZ,QAAQ;KACR,kBAAkB,SAAS,EAAE,UAAU,IAAI,KAAK,EAAE,YAAY,OAAO,KAAK,EAAE,MAAM,KAAK;IACzF;GACD,IACD,oBAAC,oBAAD;IAAoB,IAAG;IAAQ;GAA6B,EACxD;;CACH;AAET"}
@@ -19,11 +19,11 @@ import { LoadingCardContainer } from "../../elements/LoadingCard.js";
19
19
  import { getClientIdentityNotice } from "./clientIdentity.js";
20
20
  import { InlineAction } from "./InlineAction.js";
21
21
  import { getKnownOAuthClient } from "./knownClients.js";
22
- import { ListGroup, ListGroupContent, ListGroupHeader, ListGroupHeaderTitle, ListGroupItem, ListGroupItemLabel } from "./ListGroup.js";
22
+ import { ListGroup, ListGroupCheckboxItem, ListGroupContent, ListGroupHeader, ListGroupHeaderTitle } from "./ListGroup.js";
23
23
  import { LogoGroup, LogoGroupIcon, LogoGroupItem, LogoGroupItemContainer, LogoGroupSeparator } from "./LogoGroup.js";
24
24
  import { OrgSelect } from "./OrgSelect.js";
25
25
  import { getForwardedParams, getOAuthConsentFromSearch, getRedirectUriFromSearch } from "./utils.js";
26
- import { useState } from "react";
26
+ import { useEffect, useState } from "react";
27
27
  import { useClerk, useOAuthConsent, useUser } from "@clerk/shared/react";
28
28
  import { Fragment as Fragment$1, jsx, jsxs } from "@emotion/react/jsx-runtime";
29
29
  import { getRedirectDisplay } from "@clerk/shared/internal/clerk-js/oauthConsent";
@@ -39,10 +39,14 @@ function _OAuthConsent() {
39
39
  const { displayConfig: { applicationName, logoImageUrl }, organizationSettings } = useEnvironment();
40
40
  const [isUriModalOpen, setIsUriModalOpen] = useState(false);
41
41
  const [selectedOrg, setSelectedOrg] = useState(null);
42
+ const [uncheckedScopes, setUncheckedScopes] = useState([]);
42
43
  const hasContextCallbacks = Boolean(ctx.onAllow || ctx.onDeny);
43
44
  const fromUrl = getOAuthConsentFromSearch();
44
45
  const oauthClientId = ctx.oauthClientId ?? fromUrl.oauthClientId;
45
46
  const scope = ctx.scope ?? fromUrl.scope;
47
+ useEffect(() => {
48
+ setUncheckedScopes([]);
49
+ }, [oauthClientId, scope]);
46
50
  const redirectUri = ctx.redirectUrl ?? getRedirectUriFromSearch();
47
51
  const { data, isLoading, error } = useOAuthConsent({
48
52
  oauthClientId,
@@ -56,11 +60,13 @@ function _OAuthConsent() {
56
60
  requires_consent: s.requiresConsent
57
61
  }));
58
62
  const scopes = ctx.scopes ?? mappedHookScopes ?? [];
63
+ const selectedScopes = scopes.filter((item) => !uncheckedScopes.includes(item.scope));
64
+ const selectedScope = selectedScopes.map((item) => item.scope).join(" ") || OFFLINE_ACCESS_SCOPE;
59
65
  const oauthApplicationName = ctx.oauthApplicationName ?? data?.oauthApplicationName ?? "";
60
66
  const oauthApplicationLogoUrl = ctx.oauthApplicationLogoUrl ?? data?.oauthApplicationLogoUrl;
61
67
  const oauthApplicationUrl = ctx.oauthApplicationUrl ?? data?.oauthApplicationUrl;
62
68
  const redirectUrl = ctx.redirectUrl ?? redirectUri;
63
- const orgSelectionEnabled = !!(scopes.some((s) => s.scope === USER_ORG_READ_SCOPE) && organizationSettings.enabled);
69
+ const orgSelectionEnabled = !!(selectedScopes.some((s) => s.scope === USER_ORG_READ_SCOPE) && organizationSettings.enabled);
64
70
  const orgOptions = orgSelectionEnabled ? (user?.organizationMemberships ?? []).map((m) => ({
65
71
  value: m.organization.id,
66
72
  label: m.organization.name,
@@ -80,7 +86,11 @@ function _OAuthConsent() {
80
86
  if (isLoading) return /* @__PURE__ */ jsxs(Card.Root, { children: [/* @__PURE__ */ jsx(Card.Content, { children: /* @__PURE__ */ jsx(LoadingCardContainer, {}) }), /* @__PURE__ */ jsx(Card.Footer, {})] });
81
87
  }
82
88
  const actionUrl = clerk.oauthApplication.buildConsentActionUrl({ clientId: oauthClientId });
83
- const forwardedParams = getForwardedParams();
89
+ const forwardedParams = getForwardedParams().filter(([key]) => ![
90
+ "scope",
91
+ "organization_id",
92
+ "consented"
93
+ ].includes(key));
84
94
  const handleSubmit = (e) => {
85
95
  if (!hasContextCallbacks) return;
86
96
  e.preventDefault();
@@ -88,7 +98,7 @@ function _OAuthConsent() {
88
98
  else ctx.onDeny?.();
89
99
  };
90
100
  const primaryIdentifier = user?.primaryEmailAddress?.emailAddress || user?.primaryPhoneNumber?.phoneNumber;
91
- const displayedScopes = scopes.filter((item) => item.scope !== OFFLINE_ACCESS_SCOPE).map((item) => ({
101
+ const displayedScopes = scopes.map((item) => ({
92
102
  ...item,
93
103
  description: item.scope === PRIVATE_METADATA_SCOPE ? t(localizationKeys("oauthConsent.scopeList.privateMetadata", { applicationName })) : item.description
94
104
  }));
@@ -170,7 +180,16 @@ function _OAuthConsent() {
170
180
  value: effectiveOrg,
171
181
  onChange: setSelectedOrg
172
182
  }),
173
- displayedScopes.length > 0 && /* @__PURE__ */ jsxs(ListGroup, { children: [/* @__PURE__ */ jsx(ListGroupHeader, { children: /* @__PURE__ */ jsx(ListGroupHeaderTitle, { localizationKey: localizationKeys("oauthConsent.scopeList.title", { applicationName: oauthApplicationName }) }) }), /* @__PURE__ */ jsx(ListGroupContent, { children: displayedScopes.map((item) => /* @__PURE__ */ jsx(ListGroupItem, { children: /* @__PURE__ */ jsx(ListGroupItemLabel, { children: item.description || item.scope || "" }) }, item.scope)) })] }),
183
+ displayedScopes.length > 0 && /* @__PURE__ */ jsxs(ListGroup, { children: [/* @__PURE__ */ jsx(ListGroupHeader, { children: /* @__PURE__ */ jsx(ListGroupHeaderTitle, { localizationKey: localizationKeys("oauthConsent.scopeList.title", { applicationName: oauthApplicationName }) }) }), /* @__PURE__ */ jsx(ListGroupContent, { children: displayedScopes.map((item) => /* @__PURE__ */ jsx(ListGroupCheckboxItem, {
184
+ value: item.scope,
185
+ checked: !uncheckedScopes.includes(item.scope),
186
+ isDisabled: hasContextCallbacks || item.scope === OFFLINE_ACCESS_SCOPE,
187
+ onChange: (e) => {
188
+ const checked = e.target.checked;
189
+ setUncheckedScopes((previous) => checked ? previous.filter((scope) => scope !== item.scope) : [...previous, item.scope]);
190
+ },
191
+ children: item.description || item.scope || ""
192
+ }, item.scope)) })] }),
174
193
  /* @__PURE__ */ jsx(Alert, {
175
194
  colorScheme: "warning",
176
195
  children: /* @__PURE__ */ jsx(Text, {
@@ -224,6 +243,11 @@ function _OAuthConsent() {
224
243
  name: key,
225
244
  value
226
245
  }, key)),
246
+ !hasContextCallbacks && /* @__PURE__ */ jsx("input", {
247
+ type: "hidden",
248
+ name: "scope",
249
+ value: selectedScope
250
+ }),
227
251
  !hasContextCallbacks && orgSelectionEnabled && effectiveOrg && /* @__PURE__ */ jsx("input", {
228
252
  type: "hidden",
229
253
  name: "organization_id",
@@ -1 +1 @@
1
- {"version":3,"file":"OAuthConsent.js","names":[],"sources":["../../../src/components/OAuthConsent/OAuthConsent.tsx"],"sourcesContent":["import { getRedirectDisplay } from '@clerk/shared/internal/clerk-js/oauthConsent';\nimport { useClerk, useOAuthConsent, useUser } from '@clerk/shared/react';\nimport { useState } from 'react';\n\nimport { useEnvironment, useOAuthConsentContext, withCoreUserGuard } from '@/ui/contexts';\nimport { Box, Button, descriptors, Flow, Grid, localizationKeys, Text, useLocalizations } from '@/ui/customizables';\nimport { ApplicationLogo } from '@/ui/elements/ApplicationLogo';\nimport { Card } from '@/ui/elements/Card';\nimport { withCardStateProvider } from '@/ui/elements/contexts';\nimport { Header } from '@/ui/elements/Header';\nimport { LoadingCardContainer } from '@/ui/elements/LoadingCard';\nimport { Modal } from '@/ui/elements/Modal';\nimport { Alert, Textarea } from '@/ui/primitives';\nimport { Route, Switch } from '@/ui/router';\n\nimport { getClientIdentityNotice } from './clientIdentity';\nimport { InlineAction } from './InlineAction';\nimport { getKnownOAuthClient } from './knownClients';\nimport {\n ListGroup,\n ListGroupContent,\n ListGroupHeader,\n ListGroupHeaderTitle,\n ListGroupItem,\n ListGroupItemLabel,\n} from './ListGroup';\nimport { LogoGroup, LogoGroupIcon, LogoGroupItem, LogoGroupItemContainer, LogoGroupSeparator } from './LogoGroup';\nimport { OrgSelect } from './OrgSelect';\nimport { getForwardedParams, getOAuthConsentFromSearch, getRedirectUriFromSearch } from './utils';\n\nconst OFFLINE_ACCESS_SCOPE = 'offline_access';\nconst PRIVATE_METADATA_SCOPE = 'private_metadata';\nconst USER_ORG_READ_SCOPE = 'user:org:read';\n\nfunction _OAuthConsent() {\n const ctx = useOAuthConsentContext();\n const clerk = useClerk();\n const { user } = useUser();\n const {\n displayConfig: { applicationName, logoImageUrl },\n organizationSettings,\n } = useEnvironment();\n const [isUriModalOpen, setIsUriModalOpen] = useState(false);\n\n const [selectedOrg, setSelectedOrg] = useState<string | null>(null);\n\n // onAllow and onDeny are always provided as a pair by the accounts portal.\n const hasContextCallbacks = Boolean(ctx.onAllow || ctx.onDeny);\n\n // Resolve oauthClientId and scope once: context overrides URL fallback.\n const fromUrl = getOAuthConsentFromSearch();\n const oauthClientId = ctx.oauthClientId ?? fromUrl.oauthClientId;\n const scope = ctx.scope ?? fromUrl.scope;\n\n // Public path: fetch via hook. Disabled on the accounts portal path\n // (which already has all data via context) to avoid a wasted FAPI request.\n const redirectUri = ctx.redirectUrl ?? getRedirectUriFromSearch();\n const { data, isLoading, error } = useOAuthConsent({\n oauthClientId,\n scope,\n redirectUri: redirectUri || undefined,\n // TODO: Remove this once account portal is refactored to use this component\n enabled: !hasContextCallbacks,\n });\n\n // Hook returns camelCase `requiresConsent`; the render logic uses snake_case.\n const mappedHookScopes = data?.scopes?.map(s => ({\n scope: s.scope,\n description: s.description,\n requires_consent: s.requiresConsent,\n }));\n\n // Context (accounts portal path) wins over hook data (public path).\n const scopes = ctx.scopes ?? mappedHookScopes ?? [];\n const oauthApplicationName = ctx.oauthApplicationName ?? data?.oauthApplicationName ?? '';\n const oauthApplicationLogoUrl = ctx.oauthApplicationLogoUrl ?? data?.oauthApplicationLogoUrl;\n const oauthApplicationUrl = ctx.oauthApplicationUrl ?? data?.oauthApplicationUrl;\n const redirectUrl = ctx.redirectUrl ?? redirectUri;\n\n const hasOrgReadScope = scopes.some(s => s.scope === USER_ORG_READ_SCOPE);\n const orgSelectionEnabled = !!(hasOrgReadScope && organizationSettings.enabled);\n const orgOptions = orgSelectionEnabled\n ? (user?.organizationMemberships ?? []).map(m => ({\n value: m.organization.id,\n label: m.organization.name,\n logoUrl: m.organization.imageUrl,\n }))\n : [];\n const lastActiveOrgId = clerk.session?.lastActiveOrganizationId;\n const defaultOrg = orgOptions.find(o => o.value === lastActiveOrgId)?.value ?? orgOptions[0]?.value ?? null;\n const effectiveOrg = selectedOrg ?? defaultOrg;\n\n const { t } = useLocalizations();\n const domainAction = data?.redirectDomain ?? getRedirectDisplay(redirectUrl);\n const viewFullUrlText = t(localizationKeys('oauthConsent.viewFullUrl'));\n\n // When the OAuth app has no uploaded logo, fall back to a recognized client's\n // brand mark (Claude, ChatGPT, ...). Keyed on the trusted redirect domain, not\n // the app-owner-set name, so a look-alike name cannot borrow the branding.\n const knownClient = oauthApplicationLogoUrl ? undefined : getKnownOAuthClient(domainAction);\n const clientIdentityNotice = getClientIdentityNotice(data?.clientRegistration, data?.clientMetadataHost);\n\n // Error states only apply to the public flow.\n if (!hasContextCallbacks) {\n const errorMessage = !oauthClientId\n ? 'The client ID is missing.'\n : !redirectUrl\n ? 'The redirect URI is missing.'\n : error\n ? (error.message ?? 'Failed to load consent information.')\n : undefined;\n\n if (errorMessage) {\n return (\n <Card.Root>\n <Card.Content>\n <Card.Alert>{errorMessage}</Card.Alert>\n </Card.Content>\n <Card.Footer />\n </Card.Root>\n );\n }\n\n if (isLoading) {\n return (\n <Card.Root>\n <Card.Content>\n <LoadingCardContainer />\n </Card.Content>\n <Card.Footer />\n </Card.Root>\n );\n }\n }\n\n const actionUrl = clerk.oauthApplication.buildConsentActionUrl({ clientId: oauthClientId });\n const forwardedParams = getForwardedParams();\n\n // Accounts portal path delegates to context callbacks; public path lets the form submit natively.\n const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {\n if (!hasContextCallbacks) {\n return;\n }\n e.preventDefault();\n const submitter = (e.nativeEvent as SubmitEvent).submitter as HTMLButtonElement | null;\n if (submitter?.value === 'true') {\n ctx.onAllow?.();\n } else {\n ctx.onDeny?.();\n }\n };\n\n const primaryIdentifier = user?.primaryEmailAddress?.emailAddress || user?.primaryPhoneNumber?.phoneNumber;\n\n const displayedScopes = scopes\n .filter(item => item.scope !== OFFLINE_ACCESS_SCOPE)\n .map(item => ({\n ...item,\n description:\n item.scope === PRIVATE_METADATA_SCOPE\n ? t(localizationKeys('oauthConsent.scopeList.privateMetadata', { applicationName }))\n : item.description,\n }));\n const hasOfflineAccess = scopes.some(item => item.scope === OFFLINE_ACCESS_SCOPE);\n\n return (\n <>\n <form\n method='POST'\n action={actionUrl}\n onSubmit={handleSubmit}\n >\n <Card.Root>\n <Card.Content>\n <Header.Root>\n {/* both have avatars */}\n {oauthApplicationLogoUrl && logoImageUrl && (\n <LogoGroup>\n <LogoGroupItem justify='end'>\n <LogoGroupItemContainer>\n <ApplicationLogo\n src={oauthApplicationLogoUrl}\n alt={oauthApplicationName}\n href={oauthApplicationUrl}\n isExternal\n />\n </LogoGroupItemContainer>\n </LogoGroupItem>\n <LogoGroupSeparator />\n <LogoGroupItem justify='start'>\n <LogoGroupItemContainer>\n <ApplicationLogo />\n </LogoGroupItemContainer>\n </LogoGroupItem>\n </LogoGroup>\n )}\n {/* only OAuth app has an avatar */}\n {oauthApplicationLogoUrl && !logoImageUrl && (\n <LogoGroup>\n <Box sx={{ position: 'relative' }}>\n <LogoGroupItemContainer>\n <ApplicationLogo\n src={oauthApplicationLogoUrl}\n alt={oauthApplicationName}\n href={oauthApplicationUrl}\n isExternal\n />\n </LogoGroupItemContainer>\n <LogoGroupItemContainer\n size='sm'\n sx={t => ({\n position: 'absolute',\n bottom: `calc(${t.space.$2x5} * -1)`,\n insetInlineEnd: `calc(${t.space.$2x5} * -1)`,\n })}\n >\n <LogoGroupIcon />\n </LogoGroupItemContainer>\n </Box>\n </LogoGroup>\n )}\n {/* only Clerk application has an avatar */}\n {!oauthApplicationLogoUrl && logoImageUrl && (\n <LogoGroup>\n <LogoGroupItem justify='end'>\n <LogoGroupItemContainer>\n <LogoGroupIcon\n icon={knownClient?.icon}\n iconSx={knownClient?.iconSx}\n label={knownClient?.name}\n />\n </LogoGroupItemContainer>\n </LogoGroupItem>\n <LogoGroupSeparator />\n <LogoGroupItem justify='start'>\n <LogoGroupItemContainer>\n <ApplicationLogo />\n </LogoGroupItemContainer>\n </LogoGroupItem>\n </LogoGroup>\n )}\n {/* no avatars */}\n {!oauthApplicationLogoUrl && !logoImageUrl && (\n <LogoGroup>\n <LogoGroupItemContainer>\n <LogoGroupIcon\n icon={knownClient?.icon}\n iconSx={knownClient?.iconSx}\n label={knownClient?.name}\n />\n </LogoGroupItemContainer>\n </LogoGroup>\n )}\n <Header.Title localizationKey={oauthApplicationName} />\n <Header.Subtitle\n localizationKey={localizationKeys('oauthConsent.subtitle', {\n applicationName,\n identifier: primaryIdentifier || '',\n })}\n />\n {clientIdentityNotice && (\n <Text\n elementDescriptor={descriptors.oauthConsentClientIdentity}\n colorScheme={clientIdentityNotice.colorScheme}\n variant='caption'\n localizationKey={clientIdentityNotice.localizationKey}\n />\n )}\n </Header.Root>\n {orgSelectionEnabled && orgOptions.length > 0 && effectiveOrg && (\n <OrgSelect\n options={orgOptions}\n value={effectiveOrg}\n onChange={setSelectedOrg}\n />\n )}\n {displayedScopes.length > 0 && (\n <ListGroup>\n <ListGroupHeader>\n <ListGroupHeaderTitle\n localizationKey={localizationKeys('oauthConsent.scopeList.title', {\n applicationName: oauthApplicationName,\n })}\n />\n </ListGroupHeader>\n <ListGroupContent>\n {displayedScopes.map(item => (\n <ListGroupItem key={item.scope}>\n <ListGroupItemLabel>{item.description || item.scope || ''}</ListGroupItemLabel>\n </ListGroupItem>\n ))}\n </ListGroupContent>\n </ListGroup>\n )}\n <Alert colorScheme='warning'>\n <Text\n colorScheme='warning'\n variant='caption'\n >\n <InlineAction\n text={t(\n localizationKeys('oauthConsent.warning', {\n applicationName: oauthApplicationName || applicationName,\n domainAction,\n }),\n )}\n actionText={domainAction}\n onClick={() => setIsUriModalOpen(true)}\n tooltipText={viewFullUrlText}\n />\n </Text>\n </Alert>\n <Grid\n columns={2}\n gap={3}\n >\n <Button\n type='submit'\n name='consented'\n value='false'\n colorScheme='secondary'\n variant='outline'\n localizationKey={localizationKeys('oauthConsent.action__deny')}\n />\n <Button\n type='submit'\n name='consented'\n value='true'\n localizationKey={localizationKeys('oauthConsent.action__allow')}\n />\n <Text\n sx={{ gridColumn: 'span 2' }}\n colorScheme='secondary'\n variant='caption'\n >\n <InlineAction\n text={t(localizationKeys('oauthConsent.redirectNotice', { domainAction }))}\n actionText={domainAction}\n onClick={() => setIsUriModalOpen(true)}\n tooltipText={viewFullUrlText}\n />\n {hasOfflineAccess && t(localizationKeys('oauthConsent.offlineAccessNotice'))}\n </Text>\n </Grid>\n </Card.Content>\n <Card.Footer />\n </Card.Root>\n {!hasContextCallbacks &&\n forwardedParams.map(([key, value]) => (\n <input\n key={key}\n type='hidden'\n name={key}\n value={value}\n />\n ))}\n {!hasContextCallbacks && orgSelectionEnabled && effectiveOrg && (\n <input\n type='hidden'\n name='organization_id'\n value={effectiveOrg}\n />\n )}\n </form>\n <RedirectUriModal\n isOpen={isUriModalOpen}\n onOpen={() => setIsUriModalOpen(true)}\n onClose={() => setIsUriModalOpen(false)}\n redirectUri={redirectUrl}\n oauthApplicationName={oauthApplicationName}\n />\n </>\n );\n}\n\ntype RedirectUriModalProps = {\n onOpen: () => void;\n onClose: () => void;\n isOpen: boolean;\n redirectUri: string;\n oauthApplicationName: string;\n};\n\nfunction RedirectUriModal({ onOpen, onClose, isOpen, redirectUri, oauthApplicationName }: RedirectUriModalProps) {\n if (!isOpen) {\n return null;\n }\n\n return (\n <Modal\n handleOpen={onOpen}\n handleClose={onClose}\n >\n <Card.Root>\n <Card.Content>\n <Header.Root>\n <Header.Title localizationKey={localizationKeys('oauthConsent.redirectUriModal.title')} />\n <Header.Subtitle\n localizationKey={localizationKeys('oauthConsent.redirectUriModal.subtitle', {\n applicationName: oauthApplicationName,\n })}\n />\n </Header.Root>\n <Textarea\n style={{ maxHeight: 'none' }}\n cols={50}\n rows={6}\n defaultValue={redirectUri}\n readOnly\n />\n </Card.Content>\n </Card.Root>\n </Modal>\n );\n}\n\nconst AuthenticatedRoutes = withCoreUserGuard(withCardStateProvider(_OAuthConsent));\n\nconst OAuthConsentInternal = () => {\n return (\n <Flow.Root flow='oauthConsent'>\n <Flow.Part>\n <Switch>\n <Route>\n <AuthenticatedRoutes />\n </Route>\n </Switch>\n </Flow.Part>\n </Flow.Root>\n );\n};\n\nexport const OAuthConsent = OAuthConsentInternal;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,MAAM,uBAAuB;AAC7B,MAAM,yBAAyB;AAC/B,MAAM,sBAAsB;AAE5B,SAAS,gBAAgB;CACvB,MAAM,MAAM,uBAAuB;CACnC,MAAM,QAAQ,SAAS;CACvB,MAAM,EAAE,SAAS,QAAQ;CACzB,MAAM,EACJ,eAAe,EAAE,iBAAiB,gBAClC,yBACE,eAAe;CACnB,MAAM,CAAC,gBAAgB,qBAAqB,SAAS,KAAK;CAE1D,MAAM,CAAC,aAAa,kBAAkB,SAAwB,IAAI;CAGlE,MAAM,sBAAsB,QAAQ,IAAI,WAAW,IAAI,MAAM;CAG7D,MAAM,UAAU,0BAA0B;CAC1C,MAAM,gBAAgB,IAAI,iBAAiB,QAAQ;CACnD,MAAM,QAAQ,IAAI,SAAS,QAAQ;CAInC,MAAM,cAAc,IAAI,eAAe,yBAAyB;CAChE,MAAM,EAAE,MAAM,WAAW,UAAU,gBAAgB;EACjD;EACA;EACA,aAAa,eAAe;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AkB,KAAK;EACtC,aAAa;EACS;CACvB,EACD;AAEN;AAUA,SAAS,iBAAiB,EAAE,QAAQ,SAAS,QAAQ,aAAa,wBAA+C;CAC/G,IAAI,CAAC,QACH,OAAO;CAGT,OACE,oBAAC,OAAD;EACE,YAAY;EACZ,aAAa;YAEb,oBAAC,KAAK,MAAN,YACE,qBAAC,KAAK,SAAN,aACE,qBAAC,OAAO,MAAR,aACE,oBAAC,OAAO,OAAR,EAAc,iBAAiB,iBAAiB,qCAAqC,EAAI,IACzF,oBAAC,OAAO,UAAR,EACE,iBAAiB,iBAAiB,0CAA0C,EAC1E,iBAAiB,qBACnB,CAAC,EACF,EACU,MACb,oBAAC,UAAD;GACE,OAAO,EAAE,WAAW,OAAO;GAC3B,MAAM;GACN,MAAM;GACN,cAAc;GACd;EACD,EACW,KACL;CACN;AAEX;AAEA,MAAM,sBAAsB,kBAAkB,sBAAsB,aAAa,CAAC;AAElF,MAAM,6BAA6B;CACjC,OACE,oBAAC,KAAK,MAAN;EAAW,MAAK;YACd,oBAAC,KAAK,MAAN,YACE,oBAAC,QAAD,YACE,oBAAC,OAAD,YACE,oBAAC,qBAAD,CAAsB,GACjB,GACD,GACC;CACF;AAEf;AAEA,MAAa,eAAe"}
1
+ {"version":3,"file":"OAuthConsent.js","names":[],"sources":["../../../src/components/OAuthConsent/OAuthConsent.tsx"],"sourcesContent":["import { getRedirectDisplay } from '@clerk/shared/internal/clerk-js/oauthConsent';\nimport { useClerk, useOAuthConsent, useUser } from '@clerk/shared/react';\nimport { useEffect, useState } from 'react';\n\nimport { useEnvironment, useOAuthConsentContext, withCoreUserGuard } from '@/ui/contexts';\nimport { Box, Button, descriptors, Flow, Grid, localizationKeys, Text, useLocalizations } from '@/ui/customizables';\nimport { ApplicationLogo } from '@/ui/elements/ApplicationLogo';\nimport { Card } from '@/ui/elements/Card';\nimport { withCardStateProvider } from '@/ui/elements/contexts';\nimport { Header } from '@/ui/elements/Header';\nimport { LoadingCardContainer } from '@/ui/elements/LoadingCard';\nimport { Modal } from '@/ui/elements/Modal';\nimport { Alert, Textarea } from '@/ui/primitives';\nimport { Route, Switch } from '@/ui/router';\n\nimport { getClientIdentityNotice } from './clientIdentity';\nimport { InlineAction } from './InlineAction';\nimport { getKnownOAuthClient } from './knownClients';\nimport { ListGroup, ListGroupCheckboxItem, ListGroupContent, ListGroupHeader, ListGroupHeaderTitle } from './ListGroup';\nimport { LogoGroup, LogoGroupIcon, LogoGroupItem, LogoGroupItemContainer, LogoGroupSeparator } from './LogoGroup';\nimport { OrgSelect } from './OrgSelect';\nimport { getForwardedParams, getOAuthConsentFromSearch, getRedirectUriFromSearch } from './utils';\n\nconst OFFLINE_ACCESS_SCOPE = 'offline_access';\nconst PRIVATE_METADATA_SCOPE = 'private_metadata';\nconst USER_ORG_READ_SCOPE = 'user:org:read';\n\nfunction _OAuthConsent() {\n const ctx = useOAuthConsentContext();\n const clerk = useClerk();\n const { user } = useUser();\n const {\n displayConfig: { applicationName, logoImageUrl },\n organizationSettings,\n } = useEnvironment();\n const [isUriModalOpen, setIsUriModalOpen] = useState(false);\n\n const [selectedOrg, setSelectedOrg] = useState<string | null>(null);\n const [uncheckedScopes, setUncheckedScopes] = useState<string[]>([]);\n\n // onAllow and onDeny are always provided as a pair by the accounts portal.\n const hasContextCallbacks = Boolean(ctx.onAllow || ctx.onDeny);\n\n // Resolve oauthClientId and scope once: context overrides URL fallback.\n const fromUrl = getOAuthConsentFromSearch();\n const oauthClientId = ctx.oauthClientId ?? fromUrl.oauthClientId;\n const scope = ctx.scope ?? fromUrl.scope;\n\n useEffect(() => {\n setUncheckedScopes([]);\n }, [oauthClientId, scope]);\n\n // Public path: fetch via hook. Disabled on the accounts portal path\n // (which already has all data via context) to avoid a wasted FAPI request.\n const redirectUri = ctx.redirectUrl ?? getRedirectUriFromSearch();\n const { data, isLoading, error } = useOAuthConsent({\n oauthClientId,\n scope,\n redirectUri: redirectUri || undefined,\n // TODO: Remove this once account portal is refactored to use this component\n enabled: !hasContextCallbacks,\n });\n\n // Hook returns camelCase `requiresConsent`; the render logic uses snake_case.\n const mappedHookScopes = data?.scopes?.map(s => ({\n scope: s.scope,\n description: s.description,\n requires_consent: s.requiresConsent,\n }));\n\n // Context (accounts portal path) wins over hook data (public path).\n const scopes = ctx.scopes ?? mappedHookScopes ?? [];\n const selectedScopes = scopes.filter(item => !uncheckedScopes.includes(item.scope));\n const selectedScope = selectedScopes.map(item => item.scope).join(' ') || OFFLINE_ACCESS_SCOPE;\n const oauthApplicationName = ctx.oauthApplicationName ?? data?.oauthApplicationName ?? '';\n const oauthApplicationLogoUrl = ctx.oauthApplicationLogoUrl ?? data?.oauthApplicationLogoUrl;\n const oauthApplicationUrl = ctx.oauthApplicationUrl ?? data?.oauthApplicationUrl;\n const redirectUrl = ctx.redirectUrl ?? redirectUri;\n\n const hasOrgReadScope = selectedScopes.some(s => s.scope === USER_ORG_READ_SCOPE);\n const orgSelectionEnabled = !!(hasOrgReadScope && organizationSettings.enabled);\n const orgOptions = orgSelectionEnabled\n ? (user?.organizationMemberships ?? []).map(m => ({\n value: m.organization.id,\n label: m.organization.name,\n logoUrl: m.organization.imageUrl,\n }))\n : [];\n const lastActiveOrgId = clerk.session?.lastActiveOrganizationId;\n const defaultOrg = orgOptions.find(o => o.value === lastActiveOrgId)?.value ?? orgOptions[0]?.value ?? null;\n const effectiveOrg = selectedOrg ?? defaultOrg;\n\n const { t } = useLocalizations();\n const domainAction = data?.redirectDomain ?? getRedirectDisplay(redirectUrl);\n const viewFullUrlText = t(localizationKeys('oauthConsent.viewFullUrl'));\n\n // When the OAuth app has no uploaded logo, fall back to a recognized client's\n // brand mark (Claude, ChatGPT, ...). Keyed on the trusted redirect domain, not\n // the app-owner-set name, so a look-alike name cannot borrow the branding.\n const knownClient = oauthApplicationLogoUrl ? undefined : getKnownOAuthClient(domainAction);\n const clientIdentityNotice = getClientIdentityNotice(data?.clientRegistration, data?.clientMetadataHost);\n\n // Error states only apply to the public flow.\n if (!hasContextCallbacks) {\n const errorMessage = !oauthClientId\n ? 'The client ID is missing.'\n : !redirectUrl\n ? 'The redirect URI is missing.'\n : error\n ? (error.message ?? 'Failed to load consent information.')\n : undefined;\n\n if (errorMessage) {\n return (\n <Card.Root>\n <Card.Content>\n <Card.Alert>{errorMessage}</Card.Alert>\n </Card.Content>\n <Card.Footer />\n </Card.Root>\n );\n }\n\n if (isLoading) {\n return (\n <Card.Root>\n <Card.Content>\n <LoadingCardContainer />\n </Card.Content>\n <Card.Footer />\n </Card.Root>\n );\n }\n }\n\n const actionUrl = clerk.oauthApplication.buildConsentActionUrl({ clientId: oauthClientId });\n const forwardedParams = getForwardedParams().filter(\n ([key]) => !['scope', 'organization_id', 'consented'].includes(key),\n );\n\n // Accounts portal path delegates to context callbacks; public path lets the form submit natively.\n const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {\n if (!hasContextCallbacks) {\n return;\n }\n e.preventDefault();\n const submitter = (e.nativeEvent as SubmitEvent).submitter as HTMLButtonElement | null;\n if (submitter?.value === 'true') {\n ctx.onAllow?.();\n } else {\n ctx.onDeny?.();\n }\n };\n\n const primaryIdentifier = user?.primaryEmailAddress?.emailAddress || user?.primaryPhoneNumber?.phoneNumber;\n\n const displayedScopes = scopes.map(item => ({\n ...item,\n description:\n item.scope === PRIVATE_METADATA_SCOPE\n ? t(localizationKeys('oauthConsent.scopeList.privateMetadata', { applicationName }))\n : item.description,\n }));\n const hasOfflineAccess = scopes.some(item => item.scope === OFFLINE_ACCESS_SCOPE);\n\n return (\n <>\n <form\n method='POST'\n action={actionUrl}\n onSubmit={handleSubmit}\n >\n <Card.Root>\n <Card.Content>\n <Header.Root>\n {/* both have avatars */}\n {oauthApplicationLogoUrl && logoImageUrl && (\n <LogoGroup>\n <LogoGroupItem justify='end'>\n <LogoGroupItemContainer>\n <ApplicationLogo\n src={oauthApplicationLogoUrl}\n alt={oauthApplicationName}\n href={oauthApplicationUrl}\n isExternal\n />\n </LogoGroupItemContainer>\n </LogoGroupItem>\n <LogoGroupSeparator />\n <LogoGroupItem justify='start'>\n <LogoGroupItemContainer>\n <ApplicationLogo />\n </LogoGroupItemContainer>\n </LogoGroupItem>\n </LogoGroup>\n )}\n {/* only OAuth app has an avatar */}\n {oauthApplicationLogoUrl && !logoImageUrl && (\n <LogoGroup>\n <Box sx={{ position: 'relative' }}>\n <LogoGroupItemContainer>\n <ApplicationLogo\n src={oauthApplicationLogoUrl}\n alt={oauthApplicationName}\n href={oauthApplicationUrl}\n isExternal\n />\n </LogoGroupItemContainer>\n <LogoGroupItemContainer\n size='sm'\n sx={t => ({\n position: 'absolute',\n bottom: `calc(${t.space.$2x5} * -1)`,\n insetInlineEnd: `calc(${t.space.$2x5} * -1)`,\n })}\n >\n <LogoGroupIcon />\n </LogoGroupItemContainer>\n </Box>\n </LogoGroup>\n )}\n {/* only Clerk application has an avatar */}\n {!oauthApplicationLogoUrl && logoImageUrl && (\n <LogoGroup>\n <LogoGroupItem justify='end'>\n <LogoGroupItemContainer>\n <LogoGroupIcon\n icon={knownClient?.icon}\n iconSx={knownClient?.iconSx}\n label={knownClient?.name}\n />\n </LogoGroupItemContainer>\n </LogoGroupItem>\n <LogoGroupSeparator />\n <LogoGroupItem justify='start'>\n <LogoGroupItemContainer>\n <ApplicationLogo />\n </LogoGroupItemContainer>\n </LogoGroupItem>\n </LogoGroup>\n )}\n {/* no avatars */}\n {!oauthApplicationLogoUrl && !logoImageUrl && (\n <LogoGroup>\n <LogoGroupItemContainer>\n <LogoGroupIcon\n icon={knownClient?.icon}\n iconSx={knownClient?.iconSx}\n label={knownClient?.name}\n />\n </LogoGroupItemContainer>\n </LogoGroup>\n )}\n <Header.Title localizationKey={oauthApplicationName} />\n <Header.Subtitle\n localizationKey={localizationKeys('oauthConsent.subtitle', {\n applicationName,\n identifier: primaryIdentifier || '',\n })}\n />\n {clientIdentityNotice && (\n <Text\n elementDescriptor={descriptors.oauthConsentClientIdentity}\n colorScheme={clientIdentityNotice.colorScheme}\n variant='caption'\n localizationKey={clientIdentityNotice.localizationKey}\n />\n )}\n </Header.Root>\n {orgSelectionEnabled && orgOptions.length > 0 && effectiveOrg && (\n <OrgSelect\n options={orgOptions}\n value={effectiveOrg}\n onChange={setSelectedOrg}\n />\n )}\n {displayedScopes.length > 0 && (\n <ListGroup>\n <ListGroupHeader>\n <ListGroupHeaderTitle\n localizationKey={localizationKeys('oauthConsent.scopeList.title', {\n applicationName: oauthApplicationName,\n })}\n />\n </ListGroupHeader>\n <ListGroupContent>\n {displayedScopes.map(item => (\n <ListGroupCheckboxItem\n key={item.scope}\n value={item.scope}\n checked={!uncheckedScopes.includes(item.scope)}\n isDisabled={hasContextCallbacks || item.scope === OFFLINE_ACCESS_SCOPE}\n onChange={e => {\n const checked = e.target.checked;\n setUncheckedScopes(previous =>\n checked ? previous.filter(scope => scope !== item.scope) : [...previous, item.scope],\n );\n }}\n >\n {item.description || item.scope || ''}\n </ListGroupCheckboxItem>\n ))}\n </ListGroupContent>\n </ListGroup>\n )}\n <Alert colorScheme='warning'>\n <Text\n colorScheme='warning'\n variant='caption'\n >\n <InlineAction\n text={t(\n localizationKeys('oauthConsent.warning', {\n applicationName: oauthApplicationName || applicationName,\n domainAction,\n }),\n )}\n actionText={domainAction}\n onClick={() => setIsUriModalOpen(true)}\n tooltipText={viewFullUrlText}\n />\n </Text>\n </Alert>\n <Grid\n columns={2}\n gap={3}\n >\n <Button\n type='submit'\n name='consented'\n value='false'\n colorScheme='secondary'\n variant='outline'\n localizationKey={localizationKeys('oauthConsent.action__deny')}\n />\n <Button\n type='submit'\n name='consented'\n value='true'\n localizationKey={localizationKeys('oauthConsent.action__allow')}\n />\n <Text\n sx={{ gridColumn: 'span 2' }}\n colorScheme='secondary'\n variant='caption'\n >\n <InlineAction\n text={t(localizationKeys('oauthConsent.redirectNotice', { domainAction }))}\n actionText={domainAction}\n onClick={() => setIsUriModalOpen(true)}\n tooltipText={viewFullUrlText}\n />\n {hasOfflineAccess && t(localizationKeys('oauthConsent.offlineAccessNotice'))}\n </Text>\n </Grid>\n </Card.Content>\n <Card.Footer />\n </Card.Root>\n {!hasContextCallbacks &&\n forwardedParams.map(([key, value]) => (\n <input\n key={key}\n type='hidden'\n name={key}\n value={value}\n />\n ))}\n {!hasContextCallbacks && (\n <input\n type='hidden'\n name='scope'\n value={selectedScope}\n />\n )}\n {!hasContextCallbacks && orgSelectionEnabled && effectiveOrg && (\n <input\n type='hidden'\n name='organization_id'\n value={effectiveOrg}\n />\n )}\n </form>\n <RedirectUriModal\n isOpen={isUriModalOpen}\n onOpen={() => setIsUriModalOpen(true)}\n onClose={() => setIsUriModalOpen(false)}\n redirectUri={redirectUrl}\n oauthApplicationName={oauthApplicationName}\n />\n </>\n );\n}\n\ntype RedirectUriModalProps = {\n onOpen: () => void;\n onClose: () => void;\n isOpen: boolean;\n redirectUri: string;\n oauthApplicationName: string;\n};\n\nfunction RedirectUriModal({ onOpen, onClose, isOpen, redirectUri, oauthApplicationName }: RedirectUriModalProps) {\n if (!isOpen) {\n return null;\n }\n\n return (\n <Modal\n handleOpen={onOpen}\n handleClose={onClose}\n >\n <Card.Root>\n <Card.Content>\n <Header.Root>\n <Header.Title localizationKey={localizationKeys('oauthConsent.redirectUriModal.title')} />\n <Header.Subtitle\n localizationKey={localizationKeys('oauthConsent.redirectUriModal.subtitle', {\n applicationName: oauthApplicationName,\n })}\n />\n </Header.Root>\n <Textarea\n style={{ maxHeight: 'none' }}\n cols={50}\n rows={6}\n defaultValue={redirectUri}\n readOnly\n />\n </Card.Content>\n </Card.Root>\n </Modal>\n );\n}\n\nconst AuthenticatedRoutes = withCoreUserGuard(withCardStateProvider(_OAuthConsent));\n\nconst OAuthConsentInternal = () => {\n return (\n <Flow.Root flow='oauthConsent'>\n <Flow.Part>\n <Switch>\n <Route>\n <AuthenticatedRoutes />\n </Route>\n </Switch>\n </Flow.Part>\n </Flow.Root>\n );\n};\n\nexport const OAuthConsent = OAuthConsentInternal;\n"],"mappings":";;;;;;;;;;;;;;;;;;;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C,eAAe,kBAAkB,KAAK;EACtC,aAAa;EACS;CACvB,EACD;AAEN;AAUA,SAAS,iBAAiB,EAAE,QAAQ,SAAS,QAAQ,aAAa,wBAA+C;CAC/G,IAAI,CAAC,QACH,OAAO;CAGT,OACE,oBAAC,OAAD;EACE,YAAY;EACZ,aAAa;YAEb,oBAAC,KAAK,MAAN,YACE,qBAAC,KAAK,SAAN,aACE,qBAAC,OAAO,MAAR,aACE,oBAAC,OAAO,OAAR,EAAc,iBAAiB,iBAAiB,qCAAqC,EAAI,IACzF,oBAAC,OAAO,UAAR,EACE,iBAAiB,iBAAiB,0CAA0C,EAC1E,iBAAiB,qBACnB,CAAC,EACF,EACU,MACb,oBAAC,UAAD;GACE,OAAO,EAAE,WAAW,OAAO;GAC3B,MAAM;GACN,MAAM;GACN,cAAc;GACd;EACD,EACW,KACL;CACN;AAEX;AAEA,MAAM,sBAAsB,kBAAkB,sBAAsB,aAAa,CAAC;AAElF,MAAM,6BAA6B;CACjC,OACE,oBAAC,KAAK,MAAN;EAAW,MAAK;YACd,oBAAC,KAAK,MAAN,YACE,oBAAC,QAAD,YACE,oBAAC,OAAD,YACE,oBAAC,qBAAD,CAAsB,GACjB,GACD,GACC;CACF;AAEf;AAEA,MAAa,eAAe"}
@@ -55,6 +55,7 @@ const APPEARANCE_KEYS = containsAllElementsConfigKeys([
55
55
  "listGroupContent",
56
56
  "listGroupItem",
57
57
  "listGroupItemLabel",
58
+ "listGroupItemCheckbox",
58
59
  "oauthConsentClientIdentity",
59
60
  "header",
60
61
  "headerTitle",
@@ -1 +1 @@
1
- {"version":3,"file":"elementDescriptors.js","names":[],"sources":["../../src/customizables/elementDescriptors.ts"],"sourcesContent":["import type { ElementObjectKey, ElementsConfig, IdSelectors, StateSelectors } from '../internal/appearance';\nimport { containsAllOfType } from '../utils/containsAllOf';\nimport { fromEntries } from '../utils/fromEntries';\n\nexport const CLASS_PREFIX = 'cl-';\nexport const ID_CLASS_PREFIX = 'cl-id-';\nexport const OBJ_KEY_DELIMITER = '__';\n\nconst containsAllElementsConfigKeys = containsAllOfType<keyof ElementsConfig>();\nconst camelize = (s: string) => s.replace(/-./g, x => x[1].toUpperCase());\n/**\n * This object is strictly typed using the ElementsConfig type\n * and is used as the single source of truth to generate the\n * descriptor map\n */\nexport const APPEARANCE_KEYS = containsAllElementsConfigKeys([\n 'button',\n 'input',\n 'checkbox',\n 'radio',\n 'table',\n\n 'rootBox',\n 'cardBox',\n 'card',\n 'footerItem',\n 'popoverBox',\n\n 'disclosureRoot',\n 'disclosureTrigger',\n 'disclosureContentRoot',\n 'disclosureContentInner',\n 'disclosureContent',\n\n 'collapsible',\n 'collapsibleInner',\n\n 'lineItemsRoot',\n 'lineItemsDivider',\n 'lineItemsGroup',\n 'lineItemsTitle',\n 'lineItemsTitleDescription',\n 'lineItemsDescription',\n 'lineItemsDescriptionInner',\n 'lineItemsDescriptionSuffix',\n 'lineItemsDescriptionPrefix',\n 'lineItemsDescriptionText',\n 'lineItemsCopyButton',\n 'lineItemsDowngradeNotice',\n\n 'actionCard',\n\n 'logoBox',\n 'logoImage',\n\n 'logoGroup',\n 'logoGroupItem',\n 'logoGroupItemContainer',\n 'logoGroupIcon',\n 'logoGroupSeparator',\n\n 'listGroup',\n 'listGroupHeader',\n 'listGroupHeaderTitle',\n 'listGroupContent',\n 'listGroupItem',\n 'listGroupItemLabel',\n\n 'oauthConsentClientIdentity',\n\n 'header',\n 'headerTitle',\n 'headerSubtitle',\n 'headerBackLink',\n\n 'main',\n\n 'footer',\n 'footerAction',\n 'footerActionText',\n 'footerActionLink',\n 'footerPages',\n 'footerPagesLink',\n\n 'backRow',\n 'backLink',\n\n 'socialButtonsRoot',\n 'socialButtons',\n 'socialButtonsIconButton',\n 'socialButtonsBlockButton',\n 'socialButtonsBlockButtonText',\n 'socialButtonsProviderIcon',\n 'socialButtonsProviderInitialIcon',\n\n 'lastAuthenticationStrategyBadge',\n\n 'enterpriseButtonsProviderIcon',\n\n 'providerIcon',\n 'providerInitialIcon',\n\n 'alternativeMethods',\n 'alternativeMethodsBlockButton',\n 'alternativeMethodsBlockButtonText',\n 'alternativeMethodsBlockButtonArrow',\n\n 'checkoutFormLineItemsRoot',\n 'checkoutFormPromoCodeRoot',\n 'checkoutFormPromoCodeInput',\n 'checkoutFormPromoCodeApplyButton',\n 'checkoutFormPromoCodeErrorText',\n 'checkoutFormPromoCodeRemoveButton',\n 'checkoutFormElementsRoot',\n\n 'checkoutSuccessRoot',\n 'checkoutSuccessRings',\n 'checkoutSuccessBadge',\n 'checkoutSuccessTitle',\n 'checkoutSuccessDescription',\n\n 'otpCodeField',\n 'otpCodeFieldInputs',\n 'otpCodeFieldInput',\n 'otpCodeFieldInputContainer',\n 'otpCodeFieldErrorText',\n 'otpCodeFieldSuccessText',\n 'formResendCodeLink',\n\n 'dividerRow',\n 'dividerColumn',\n 'dividerText',\n 'dividerLine',\n\n 'drawerBackdrop',\n 'drawerRoot',\n 'drawerContent',\n 'drawerHeader',\n 'drawerTitle',\n 'drawerBody',\n 'drawerFooter',\n 'drawerFooterTitle',\n 'drawerFooterDescription',\n 'drawerClose',\n 'drawerConfirmationBackdrop',\n 'drawerConfirmationRoot',\n 'drawerConfirmationTitle',\n 'drawerConfirmationDescription',\n 'drawerConfirmationActions',\n\n 'formHeader',\n 'formHeaderTitle',\n 'formHeaderSubtitle',\n\n 'actionBlockedIconBox',\n 'actionBlockedIcon',\n 'actionBlockedLink',\n 'actionBlockedTraceIdBox',\n 'actionBlockedTraceIdLabel',\n 'actionBlockedTraceId',\n 'verificationLinkStatusBox',\n 'verificationLinkStatusIconBox',\n 'verificationLinkStatusIcon',\n 'verificationLinkStatusText',\n\n 'form',\n 'formContainer',\n 'formFieldRow',\n 'formField',\n 'formFieldLabelRow',\n 'formFieldLabel',\n 'formFieldRadioGroup',\n 'formFieldRadioGroupItem',\n 'formFieldRadioInput',\n 'formFieldRadioLabel',\n 'formFieldRadioLabelTitle',\n 'formFieldRadioLabelDescription',\n 'formFieldCheckboxInput',\n 'formFieldCheckboxLabel',\n 'formFieldAction',\n 'formFieldInput',\n 'formFieldErrorText',\n 'formFieldWarningText',\n 'formFieldSuccessText',\n 'formFieldInfoText',\n 'formFieldHintText',\n 'formButtonPrimary',\n 'formButtonReset',\n 'formFieldInputGroup',\n 'formFieldInputShowPasswordButton',\n 'formFieldInputShowPasswordIcon',\n 'formFieldInputCopyToClipboardButton',\n 'formFieldInputCopyToClipboardIcon',\n 'searchInput',\n 'searchInputClearButton',\n\n 'phoneInputBox',\n 'formInputGroup',\n\n 'avatarBox',\n 'avatarImage',\n 'avatarImageActions',\n 'avatarImageActionsUpload',\n 'avatarImageActionsRemove',\n\n 'userButtonBox',\n 'userButtonOuterIdentifier',\n 'userButtonTrigger',\n 'userButtonAvatarBox',\n 'userButtonAvatarImage',\n 'userButtonPopoverRootBox',\n 'userButtonPopoverCard',\n 'userButtonPopoverMain',\n 'userButtonPopoverActions',\n 'userButtonPopoverActionButton',\n 'userButtonPopoverActionButtonIconBox',\n 'userButtonPopoverActionButtonIcon',\n 'userButtonPopoverCustomItemButton',\n 'userButtonPopoverCustomItemButtonIconBox',\n 'userButtonPopoverActionItemButtonIcon',\n 'userButtonPopoverFooter',\n 'userButtonPopoverFooterPagesLink',\n\n 'organizationSwitcherTrigger',\n 'organizationSwitcherTriggerIcon',\n 'organizationSwitcherPopoverRootBox',\n 'organizationSwitcherPopoverCard',\n 'organizationSwitcherPopoverMain',\n 'organizationSwitcherPopoverActions',\n 'organizationSwitcherPopoverInvitationActions',\n 'organizationSwitcherPopoverInvitationActionsBox',\n 'organizationSwitcherPopoverActionButton',\n 'organizationSwitcherPreviewButton',\n 'organizationSwitcherInvitationAcceptButton',\n 'organizationSwitcherPopoverActionButtonIconBox',\n 'organizationSwitcherPopoverActionButtonIcon',\n 'organizationSwitcherPopoverFooter',\n\n 'organizationProfileMembersSearchInputIcon',\n 'organizationProfileMembersSearchInput',\n\n 'organizationProfileSecuritySsoBadge',\n 'organizationProfileSecuritySsoDescription',\n 'organizationProfileSecuritySsoConfigureButton',\n 'organizationProfileSecuritySsoDetailRows',\n 'organizationProfileSecuritySsoDetailRow',\n 'organizationProfileSecuritySsoDetailRowLabel',\n 'organizationProfileSecuritySsoDetailRowChip',\n 'organizationProfileSecuritySsoDetailRowLink',\n 'organizationProfileSecuritySsoProviderIcon',\n 'organizationProfileSecuritySsoConnectionRow',\n 'organizationProfileSecuritySsoConnectionPage',\n 'organizationProfileSecuritySsoBypassDescription',\n 'organizationProfileSecuritySsoBypassCountLabel',\n 'organizationProfileSecuritySsoBypassCountBadge',\n 'organizationProfileSecuritySsoBypassPage',\n 'organizationProfileSecuritySsoBypassSearchInput',\n 'organizationProfileSecuritySsoBypassSearchInputIcon',\n 'organizationProfileSecuritySsoBypassAddButton',\n 'organizationProfileSecuritySsoBypassEmailInput',\n 'organizationProfileSecuritySsoBypassRoleWarning',\n 'organizationProfileSecuritySsoBypassFailure',\n 'organizationProfileSecuritySsoBypassBulkResult',\n\n 'organizationListPreviewItems',\n 'organizationListPreviewItem',\n 'organizationListPreviewButton',\n 'organizationListPreviewItemActionButton',\n 'organizationListCreateOrganizationActionButton',\n\n 'taskChooseOrganizationPreviewItem',\n 'taskChooseOrganizationPreviewItems',\n 'taskChooseOrganizationCreateOrganizationActionButton',\n 'taskChooseOrganizationPreviewButton',\n\n 'taskSetupMfaMethodSelectionItem',\n 'taskSetupMfaMethodSelectionItems',\n 'taskSetupMfaPhoneSelectionItems',\n 'taskSetupMfaPhoneSelectionItem',\n 'taskSetupMfaPhoneSelectionAddPhoneAction',\n\n 'userAvatarBox',\n 'userAvatarImage',\n\n 'userPreview',\n 'userPreviewAvatarContainer',\n 'userPreviewAvatarBox',\n 'userPreviewAvatarImage',\n 'userPreviewAvatarIcon',\n 'userPreviewTextContainer',\n 'userPreviewMainIdentifier',\n 'userPreviewMainIdentifierText',\n 'userPreviewSecondaryIdentifier',\n\n 'organizationPreview',\n 'organizationPreviewAvatarContainer',\n 'organizationPreviewAvatarBox',\n 'organizationPreviewAvatarImage',\n 'organizationPreviewTextContainer',\n 'organizationPreviewMainIdentifier',\n 'organizationPreviewSecondaryIdentifier',\n\n 'organizationAvatarUploaderContainer',\n\n 'membersPageInviteButton',\n\n 'identityPreview',\n 'identityPreviewText',\n 'identityPreviewEditButton',\n 'identityPreviewEditButtonIcon',\n\n 'passkeyIcon',\n\n 'accountSwitcherActionButton',\n 'accountSwitcherActionButtonIconBox',\n 'accountSwitcherActionButtonIcon',\n\n 'pricingTable',\n 'pricingTableCard',\n 'pricingTableCardHeader',\n 'pricingTableCardTitleContainer',\n 'pricingTableCardTitle',\n 'pricingTableCardBadge',\n 'pricingTableCardDescription',\n 'pricingTableCardBody',\n 'pricingTableCardStatusRow',\n 'pricingTableCardStatus',\n 'pricingTableCardFeatures',\n 'pricingTableCardFeaturesList',\n 'pricingTableCardFeaturesListItem',\n 'pricingTableCardFeaturesListItemContent',\n 'pricingTableCardFeaturesListItemTitle',\n 'pricingTableCardPeriodToggle',\n 'pricingTableCardFeeContainer',\n 'pricingTableCardFee',\n 'pricingTableCardFeePeriod',\n 'pricingTableCardFeePeriodNotice',\n 'pricingTableCardFooter',\n 'pricingTableCardFooterButton',\n 'pricingTableCardFooterNotice',\n\n 'pricingTableMatrix',\n 'pricingTableMatrixTable',\n 'pricingTableMatrixRowGroup',\n 'pricingTableMatrixRowGroupHeader',\n 'pricingTableMatrixRowGroupBody',\n 'pricingTableMatrixRow',\n 'pricingTableMatrixRowHeader',\n 'pricingTableMatrixRowBody',\n 'pricingTableMatrixColumnHeader',\n 'pricingTableMatrixCell',\n 'pricingTableMatrixCellFooter',\n 'pricingTableMatrixAvatar',\n 'pricingTableMatrixBadge',\n 'pricingTableMatrixPlanName',\n 'pricingTableMatrixFee',\n 'pricingTableMatrixFeePeriod',\n 'pricingTableMatrixFeePeriodNotice',\n 'pricingTableMatrixFeePeriodNoticeInner',\n 'pricingTableMatrixFeePeriodNoticeLabel',\n 'pricingTableMatrixFooter',\n\n 'planDetailHeader',\n 'planDetailAvatar',\n 'planDetailBadgeAvatarTitleDescriptionContainer',\n 'planDetailBadgeContainer',\n 'planDetailBadge',\n 'planDetailTitle',\n 'planDetailTitleDescriptionContainer',\n 'planDetailDescription',\n 'planDetailAction',\n 'planDetailFeeContainer',\n 'planDetailFee',\n 'planDetailFeePeriod',\n 'planDetailFeePeriodNotice',\n 'planDetailFeePeriodNoticeInner',\n 'planDetailFeePeriodNoticeLabel',\n 'planDetailCaption',\n 'planDetailFeatures',\n 'planDetailFeaturesList',\n 'planDetailFeaturesListItem',\n 'planDetailFeaturesListItemContent',\n 'planDetailFeaturesListItemTitle',\n 'planDetailFeaturesListItemDescription',\n 'planDetailPeriodToggle',\n\n 'segmentedControlRoot',\n 'segmentedControlButton',\n\n 'switchRoot',\n 'switchIndicator',\n 'switchThumb',\n 'switchLabel',\n\n 'alert',\n 'alertIcon',\n 'alertText',\n 'alertTextContainer',\n\n 'tagInputContainer',\n 'tagPillIcon',\n 'tagPillContainer',\n\n 'tabPanel',\n 'tabButton',\n 'tabListContainer',\n\n 'tableHead',\n 'tableBody',\n 'tableRow',\n 'tableHeaderCell',\n 'tableBodyCell',\n\n 'paginationButton',\n 'paginationButtonIcon',\n 'paginationRowText',\n\n 'selectButton',\n 'selectSearchInput',\n 'selectButtonIcon',\n 'selectOptionsContainer',\n 'selectOption',\n\n 'paymentMethodRow',\n 'paymentMethodRowIcon',\n 'paymentMethodRowText',\n 'paymentMethodRowType',\n 'paymentMethodRowValue',\n 'paymentMethodRowBadge',\n\n 'statementRoot',\n 'statementHeader',\n 'statementHeaderTitleContainer',\n 'statementHeaderTitle',\n 'statementHeaderBadge',\n 'statementBody',\n 'statementSection',\n 'statementSectionHeader',\n 'statementSectionHeaderTitle',\n 'statementSectionContent',\n 'statementSectionContentItem',\n 'statementSectionContentDetailsList',\n 'statementSectionContentDetailsListItem',\n 'statementSectionContentDetailsListItemLabelContainer',\n 'statementSectionContentDetailsListItemLabel',\n 'statementSectionContentDetailsListItemValue',\n 'statementSectionContentDetailsHeader',\n 'statementSectionContentDetailsHeaderItem',\n 'statementSectionContentDetailsHeaderItemIcon',\n 'statementSectionContentDetailsHeaderTitle',\n 'statementSectionContentDetailsHeaderDescription',\n 'statementSectionContentDetailsHeaderSecondaryTitle',\n 'statementSectionContentDetailsHeaderSecondaryDescription',\n 'statementFooter',\n 'statementFooterLabel',\n 'statementFooterValueContainer',\n 'statementFooterCurrency',\n 'statementFooterValue',\n 'statementCopyButton',\n 'menuButton',\n 'menuButtonEllipsis',\n 'menuButtonEllipsisBordered',\n 'menuList',\n 'menuItem',\n\n 'paymentAttemptRoot',\n 'paymentAttemptHeader',\n 'paymentAttemptHeaderTitleContainer',\n 'paymentAttemptHeaderTitle',\n 'paymentAttemptHeaderBadge',\n 'paymentAttemptBody',\n 'paymentAttemptFooter',\n 'paymentAttemptFooterLabel',\n 'paymentAttemptFooterValueContainer',\n 'paymentAttemptFooterCurrency',\n 'paymentAttemptFooterValue',\n 'paymentAttemptCopyButton',\n\n 'modalBackdrop',\n 'modalContent',\n 'modalCloseButton',\n\n 'profileSection',\n 'profileSectionItemList',\n 'profileSectionItem',\n 'profileSectionHeader',\n 'profileSectionTitle',\n 'profileSectionTitleText',\n 'profileSectionSubtitle',\n 'profileSectionSubtitleText',\n 'profileSectionContent',\n 'profileSectionPrimaryButton',\n 'profileSectionButtonGroup',\n 'profilePage',\n 'profilePageContent',\n\n 'formattedPhoneNumber',\n 'formattedPhoneNumberFlag',\n 'formattedPhoneNumberText',\n\n 'formattedDate',\n\n 'scrollBox',\n\n 'navbar',\n 'navbarButtons',\n 'navbarButton',\n 'navbarButtonIcon',\n 'navbarButtonText',\n 'navbarMobileMenuRow',\n 'navbarMobileMenuButton',\n 'navbarMobileMenuButtonIcon',\n\n 'pageScrollBox',\n 'page',\n\n 'activeDevice',\n 'activeDeviceListItem',\n 'activeDeviceIcon',\n\n 'impersonationFab',\n 'impersonationFabIcon',\n 'impersonationFabIconContainer',\n 'impersonationFabTitle',\n 'impersonationFabActionLink',\n\n 'invitationsSentIconBox',\n 'invitationsSentIcon',\n\n 'qrCodeRow',\n 'qrCodeContainer',\n\n 'tooltip',\n 'tooltipContent',\n 'tooltipText',\n\n 'badge',\n 'notificationBadge',\n 'buttonArrowIcon',\n 'spinner',\n\n 'apiKeys',\n 'apiKeysHeader',\n 'apiKeysSearchBox',\n 'apiKeysSearchInput',\n 'apiKeysAddButton',\n 'apiKeysTable',\n 'apiKeysCopyButton',\n 'apiKeysRevealButton',\n 'apiKeysCreateForm',\n 'apiKeysCreateFormNameInput',\n 'apiKeysCreateFormDescriptionInput',\n 'apiKeysCreateFormExpirationInput',\n 'apiKeysCreateFormSubmitButton',\n 'apiKeysCreateFormExpirationCaption',\n 'apiKeysRevokeModal',\n 'apiKeysRevokeModalInput',\n 'apiKeysRevokeModalSubmitButton',\n 'apiKeysCopyModal',\n 'apiKeysCopyModalInput',\n 'apiKeysCopyModalSubmitButton',\n\n 'subscriptionDetailsCard',\n 'subscriptionDetailsCardHeader',\n 'subscriptionDetailsCardBadge',\n 'subscriptionDetailsCardTitle',\n 'subscriptionDetailsCardBody',\n 'subscriptionDetailsCardFooter',\n 'subscriptionDetailsCardActions',\n 'subscriptionDetailsActionButton',\n 'subscriptionDetailsCancelButton',\n 'subscriptionDetailsDetailRow',\n 'subscriptionDetailsDetailRowLabel',\n 'subscriptionDetailsDetailRowValue',\n\n 'enterpriseConnectionsRoot',\n 'enterpriseConnectionButton',\n 'enterpriseConnectionButtonText',\n\n 'configureSSOConnectionScopeBanner',\n 'configureSSOHeader',\n 'configureSSOHeaderBackButton',\n 'configureSSOMobileNavbar',\n 'configureSSOStepper',\n 'configureSSOStepperItem',\n 'configureSSOStepperItemBullet',\n 'configureSSOStepperItemLabel',\n 'configureSSOStepperSeparator',\n 'configureSSOStep',\n 'configureSSOStepHeader',\n 'configureSSOStepHeaderTitle',\n 'configureSSOStepHeaderDescription',\n 'configureSSOStepBody',\n 'configureSSOStepSection',\n 'configureSSOStepCounter',\n 'configureSSOFooter',\n 'configureSSOFooterPreviousButton',\n 'configureSSOFooterContinueButton',\n 'configureSSOFooterResetButton',\n\n 'configureSSOProviderGroup',\n 'configureSSOProviderGroupLabel',\n 'configureSSOProviderGrid',\n 'configureSSOProviderCard',\n 'configureSSOProviderCardRadio',\n 'configureSSOProviderCardIcon',\n 'configureSSOProviderCardLabel',\n\n 'configureSSOVerifyDomainErrorRoot',\n 'configureSSOVerifyDomainErrorIcon',\n 'configureSSOVerifyDomainErrorTitle',\n 'configureSSOVerifyDomainErrorSubtitle',\n 'configureSSOVerifyDomainList',\n 'configureSSOVerifyDomainSuggestion',\n 'configureSSOVerifyDomainCard',\n 'configureSSOVerifyDomainCardBadge',\n 'configureSSOVerifyDomainCardCheckbox',\n 'configureSSOVerifyDomainCardRemoveButton',\n 'configureSSOVerifyDomainCardTxtRecord',\n 'configureSSOVerifyDomainCardTxtRecordValue',\n 'configureSSOVerifyDomainCardExpired',\n 'configureSSOEmailVerificationForm',\n 'configureSSOEmailVerificationIcon',\n 'configureSSOEmailVerificationTitle',\n 'configureSSOEmailVerificationSubtitle',\n 'configureSSOEmailVerificationInput',\n 'configureSSOEmailVerificationError',\n\n 'configureSSOInstructionsHeading',\n 'configureSSOInstructionsList',\n 'configureSSOInstructionsListItem',\n 'configureSSOAttributeMappingTable',\n 'configureSSOAttributeMappingBadge',\n 'configureSSOCertificateUploadButton',\n 'configureSSOCertificateFileBadge',\n 'configureSSOCertificateFileName',\n 'configureSSOCertificateRemoveButton',\n 'configureSSOCertificateList',\n 'configureSSOCertificateListItem',\n 'configureSSOCertificateListItemBody',\n 'configureSSOCertificateListItemExpiry',\n 'configureSSOCertificateListItemRemoveButton',\n 'configureSSOCertificatePrimaryBadge',\n\n 'configureSSOTestUrlOpenButton',\n 'configureSSOTestRefreshButton',\n 'configureSSOTestResultsTable',\n 'configureSSOTestResultsRow',\n 'configureSSOTestResultsEmpty',\n 'configureSSOTestResultsLoadingSpinner',\n 'configureSSOTestRunStatusBadge',\n 'configureSSOTestRunFullMessage',\n 'configureSSOTestRunFullMessageCopyButton',\n 'configureSSOTestRunHowToFixSection',\n 'configureSSOTestRunHowToFixDocsLink',\n 'configureSSOTestRunParsedUserInfo',\n 'configureSSOTestError',\n\n 'configureSSOActivate',\n 'configureSSOActivateIcon',\n 'configureSSOActivateTitle',\n 'configureSSOActivateSubtitle',\n 'configureSSOActivateButton',\n 'configureSSOActivateSkipButton',\n\n 'configureSSOResetConnectionDialog',\n 'configureSSOResetConnectionDialogCancelButton',\n 'configureSSOResetConnectionDialogConfirmationInput',\n 'configureSSOResetConnectionDialogSubmitButton',\n\n 'configureSSOChangeProviderDialog',\n 'configureSSOChangeProviderDialogCancelButton',\n 'configureSSOChangeProviderDialogConfirmButton',\n\n 'configureSSORemoveDomainDialog',\n 'configureSSORemoveDomainDialogCancelButton',\n 'configureSSORemoveDomainDialogSubmitButton',\n\n 'configureDirectorySyncConnectionCard',\n 'configureDirectorySyncConnectionCardName',\n 'configureDirectorySyncConnectionCardDomains',\n 'configureDirectorySyncConnectionCardDomainBadge',\n 'configureDirectorySyncInstructionsToggle',\n 'configureDirectorySyncInstructionsList',\n 'configureDirectorySyncInstructionsListItem',\n 'configureDirectorySyncFieldLabel',\n 'configureDirectorySyncEndpointUrlInput',\n 'configureDirectorySyncTokenInput',\n 'configureDirectorySyncGenerateTokenButton',\n 'configureDirectorySyncTokenNotice',\n 'configureDirectorySyncRetryButton',\n 'configureDirectorySyncAttributeMappingTable',\n 'configureDirectorySyncAttributeMappingHeader',\n 'configureDirectorySyncAttributeMappingValue',\n 'configureDirectorySyncUsersList',\n 'configureDirectorySyncUsersRow',\n 'configureDirectorySyncUserIdentifier',\n 'configureDirectorySyncUserName',\n 'configureDirectorySyncUserTimestamp',\n 'configureDirectorySyncUserStatusBadge',\n 'configureDirectorySyncUsersEmpty',\n 'configureDirectorySyncCompleteButton',\n 'configureDirectorySyncCredentialsForm',\n 'configureDirectorySyncCredentialsBadge',\n 'configureDirectorySyncUploadKeyButton',\n 'configureDirectorySyncUploadedFileName',\n 'configureDirectorySyncSubjectEmailInput',\n 'configureDirectorySyncSyncRow',\n 'configureDirectorySyncSyncNowButton',\n 'configureDirectorySyncStatusBadge',\n 'configureDirectorySyncLastSyncedAt',\n 'configureDirectorySyncRoleMappingToggle',\n 'configureDirectorySyncRoleMappingTable',\n 'configureDirectorySyncRoleMappingHeader',\n 'configureDirectorySyncRoleMappingRow',\n 'configureDirectorySyncRoleMappingReorderButton',\n 'configureDirectorySyncRoleMappingPriority',\n 'configureDirectorySyncRoleMappingGroupName',\n 'configureDirectorySyncRoleMappingEmpty',\n 'configureDirectorySyncRoleSyncDialog',\n 'configureDirectorySyncRoleSyncDialogCancelButton',\n 'configureDirectorySyncRoleSyncDialogSubmitButton',\n\n 'web3SolanaWalletButtonsRoot',\n 'web3SolanaWalletButtons',\n 'web3SolanaWalletButtonsIconButton',\n 'web3SolanaWalletButtonsBlockButton',\n 'web3SolanaWalletButtonsBlockButtonText',\n 'web3SolanaWalletButtonsWalletIcon',\n 'web3SolanaWalletButtonsWalletInitialIcon',\n\n 'walletIcon',\n 'walletInitialIcon',\n] as const).map(camelize) as (keyof ElementsConfig)[];\n\ntype TargettableClassname<K extends keyof ElementsConfig> = `${typeof CLASS_PREFIX}${K}`;\ntype AllowedIds<T extends keyof ElementsConfig> = ElementsConfig[T]['ids'];\ntype AllowedStates<T extends keyof ElementsConfig> = ElementsConfig[T]['states'];\ntype ObjectKeyWithState<K extends keyof ElementsConfig> = StateSelectors<K, ElementsConfig[K]['states']>;\ntype ObjectKeyWithIds<K extends keyof ElementsConfig> = IdSelectors<K, ElementsConfig[K]['ids']>;\ntype ObjectKeyWithIdAndState<K extends keyof ElementsConfig> = StateSelectors<\n IdSelectors<K, ElementsConfig[K]['ids']>,\n ElementsConfig[K]['states']\n>;\n\nexport type ElementId<Id = string> = { id: Id; __type: 'id' };\nexport type ElementDescriptor<K extends keyof ElementsConfig = any> = {\n targettableClassname: TargettableClassname<K>;\n objectKey: ElementObjectKey<K>;\n getTargettableIdClassname: (params: { id: AllowedIds<K> | never }) => string;\n getObjectKeyWithState: (state: AllowedStates<K> | never) => ObjectKeyWithState<K>;\n getObjectKeyWithId: (param: ElementId<AllowedIds<K>> | never) => ObjectKeyWithIds<K>;\n getObjectKeyWithIdAndState: (id: ElementId<AllowedIds<K>>, state: AllowedStates<K>) => ObjectKeyWithIdAndState<K>;\n setId: <Id extends AllowedIds<K>>(id?: Id) => ElementId<Id> | undefined;\n};\n\ntype ElementDescriptors = { [k in keyof ElementsConfig as ElementObjectKey<k>]: ElementDescriptor<k> };\n\n/**\n * Turns a key from the ElementsConfig object to a targettable classname\n * socialButtons-buttonIcon -> cl-socialButtons-buttonIcon\n */\nconst toTargettableClassname = <K extends keyof ElementsConfig>(key: K): TargettableClassname<K> => {\n return (CLASS_PREFIX + (key as string)) as TargettableClassname<K>;\n};\n\n/**\n * Turns a key from the ElementsConfig object to a appearance.elements key\n * socialButtons-buttonIcon -> socialButtonsButtonIcon\n */\nconst toObjectKey = <K extends keyof ElementsConfig>(key: K): ElementObjectKey<K> => {\n return key.replace(/([-][a-z])/, match => match[1].toUpperCase()) as ElementObjectKey<K>;\n};\n\nconst createElementDescriptor = <K extends keyof ElementsConfig>(key: K): ElementDescriptor<K> => {\n const objectKey = toObjectKey(key);\n return {\n objectKey,\n targettableClassname: toTargettableClassname(key),\n // getTargettableIdClassname: params => ID_CLASS_PREFIX + params.id,\n getTargettableIdClassname: params => toTargettableClassname(key) + '__' + params.id,\n getObjectKeyWithState: state => (objectKey + OBJ_KEY_DELIMITER + state) as any,\n getObjectKeyWithId: idObj => (objectKey + OBJ_KEY_DELIMITER + idObj.id) as any,\n getObjectKeyWithIdAndState: (idObj, state) =>\n (objectKey + OBJ_KEY_DELIMITER + idObj.id + OBJ_KEY_DELIMITER + state) as any,\n setId: id => (id ? { id, __type: 'id' } : undefined),\n };\n};\n\nconst createDescriptorMap = <K extends keyof ElementsConfig>(keys = APPEARANCE_KEYS): ElementDescriptors => {\n const entries = keys.map(key => [toObjectKey(key), createElementDescriptor(key)]) as unknown as Array<\n [K, ElementDescriptor<K>]\n >;\n return fromEntries(entries) as unknown as ElementDescriptors;\n};\n\nexport const descriptors = createDescriptorMap();\n"],"mappings":";;;;AAIA,MAAa,eAAe;AAE5B,MAAa,oBAAoB;AAEjC,MAAM,gCAAgC,kBAAwC;AAC9E,MAAM,YAAY,MAAc,EAAE,QAAQ,QAAO,MAAK,EAAE,EAAE,CAAC,YAAY,CAAC;;;;;;AAMxE,MAAa,kBAAkB,8BAA8B;CAC3D;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CAEA;CAEA;CACA;CACA;CACA;CAEA;CAEA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CAEA;CAEA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CAEA;CAEA;CACA;CACA;CACA;CAEA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CAEA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;AACF,CAAU,CAAC,CAAC,IAAI,QAAQ;;;;;AA6BxB,MAAM,0BAA0D,QAAoC;CAClG,eAAwB;AAC1B;;;;;AAMA,MAAM,eAA+C,QAAgC;CACnF,OAAO,IAAI,QAAQ,eAAc,UAAS,MAAM,EAAE,CAAC,YAAY,CAAC;AAClE;AAEA,MAAM,2BAA2D,QAAiC;CAChG,MAAM,YAAY,YAAY,GAAG;CACjC,OAAO;EACL;EACA,sBAAsB,uBAAuB,GAAG;EAEhD,4BAA2B,WAAU,uBAAuB,GAAG,IAAI,OAAO,OAAO;EACjF,wBAAuB,UAAU,mBAAgC;EACjE,qBAAoB,UAAU,mBAAgC,MAAM;EACpE,6BAA6B,OAAO,UACjC,mBAAgC,MAAM,YAAyB;EAClE,QAAO,OAAO,KAAK;GAAE;GAAI,QAAQ;EAAK,IAAI;CAC5C;AACF;AAEA,MAAM,uBAAuD,OAAO,oBAAwC;CAI1G,OAAO,YAHS,KAAK,KAAI,QAAO,CAAC,YAAY,GAAG,GAAG,wBAAwB,GAAG,CAAC,CAGtD,CAAC;AAC5B;AAEA,MAAa,cAAc,oBAAoB"}
1
+ {"version":3,"file":"elementDescriptors.js","names":[],"sources":["../../src/customizables/elementDescriptors.ts"],"sourcesContent":["import type { ElementObjectKey, ElementsConfig, IdSelectors, StateSelectors } from '../internal/appearance';\nimport { containsAllOfType } from '../utils/containsAllOf';\nimport { fromEntries } from '../utils/fromEntries';\n\nexport const CLASS_PREFIX = 'cl-';\nexport const ID_CLASS_PREFIX = 'cl-id-';\nexport const OBJ_KEY_DELIMITER = '__';\n\nconst containsAllElementsConfigKeys = containsAllOfType<keyof ElementsConfig>();\nconst camelize = (s: string) => s.replace(/-./g, x => x[1].toUpperCase());\n/**\n * This object is strictly typed using the ElementsConfig type\n * and is used as the single source of truth to generate the\n * descriptor map\n */\nexport const APPEARANCE_KEYS = containsAllElementsConfigKeys([\n 'button',\n 'input',\n 'checkbox',\n 'radio',\n 'table',\n\n 'rootBox',\n 'cardBox',\n 'card',\n 'footerItem',\n 'popoverBox',\n\n 'disclosureRoot',\n 'disclosureTrigger',\n 'disclosureContentRoot',\n 'disclosureContentInner',\n 'disclosureContent',\n\n 'collapsible',\n 'collapsibleInner',\n\n 'lineItemsRoot',\n 'lineItemsDivider',\n 'lineItemsGroup',\n 'lineItemsTitle',\n 'lineItemsTitleDescription',\n 'lineItemsDescription',\n 'lineItemsDescriptionInner',\n 'lineItemsDescriptionSuffix',\n 'lineItemsDescriptionPrefix',\n 'lineItemsDescriptionText',\n 'lineItemsCopyButton',\n 'lineItemsDowngradeNotice',\n\n 'actionCard',\n\n 'logoBox',\n 'logoImage',\n\n 'logoGroup',\n 'logoGroupItem',\n 'logoGroupItemContainer',\n 'logoGroupIcon',\n 'logoGroupSeparator',\n\n 'listGroup',\n 'listGroupHeader',\n 'listGroupHeaderTitle',\n 'listGroupContent',\n 'listGroupItem',\n 'listGroupItemLabel',\n 'listGroupItemCheckbox',\n\n 'oauthConsentClientIdentity',\n\n 'header',\n 'headerTitle',\n 'headerSubtitle',\n 'headerBackLink',\n\n 'main',\n\n 'footer',\n 'footerAction',\n 'footerActionText',\n 'footerActionLink',\n 'footerPages',\n 'footerPagesLink',\n\n 'backRow',\n 'backLink',\n\n 'socialButtonsRoot',\n 'socialButtons',\n 'socialButtonsIconButton',\n 'socialButtonsBlockButton',\n 'socialButtonsBlockButtonText',\n 'socialButtonsProviderIcon',\n 'socialButtonsProviderInitialIcon',\n\n 'lastAuthenticationStrategyBadge',\n\n 'enterpriseButtonsProviderIcon',\n\n 'providerIcon',\n 'providerInitialIcon',\n\n 'alternativeMethods',\n 'alternativeMethodsBlockButton',\n 'alternativeMethodsBlockButtonText',\n 'alternativeMethodsBlockButtonArrow',\n\n 'checkoutFormLineItemsRoot',\n 'checkoutFormPromoCodeRoot',\n 'checkoutFormPromoCodeInput',\n 'checkoutFormPromoCodeApplyButton',\n 'checkoutFormPromoCodeErrorText',\n 'checkoutFormPromoCodeRemoveButton',\n 'checkoutFormElementsRoot',\n\n 'checkoutSuccessRoot',\n 'checkoutSuccessRings',\n 'checkoutSuccessBadge',\n 'checkoutSuccessTitle',\n 'checkoutSuccessDescription',\n\n 'otpCodeField',\n 'otpCodeFieldInputs',\n 'otpCodeFieldInput',\n 'otpCodeFieldInputContainer',\n 'otpCodeFieldErrorText',\n 'otpCodeFieldSuccessText',\n 'formResendCodeLink',\n\n 'dividerRow',\n 'dividerColumn',\n 'dividerText',\n 'dividerLine',\n\n 'drawerBackdrop',\n 'drawerRoot',\n 'drawerContent',\n 'drawerHeader',\n 'drawerTitle',\n 'drawerBody',\n 'drawerFooter',\n 'drawerFooterTitle',\n 'drawerFooterDescription',\n 'drawerClose',\n 'drawerConfirmationBackdrop',\n 'drawerConfirmationRoot',\n 'drawerConfirmationTitle',\n 'drawerConfirmationDescription',\n 'drawerConfirmationActions',\n\n 'formHeader',\n 'formHeaderTitle',\n 'formHeaderSubtitle',\n\n 'actionBlockedIconBox',\n 'actionBlockedIcon',\n 'actionBlockedLink',\n 'actionBlockedTraceIdBox',\n 'actionBlockedTraceIdLabel',\n 'actionBlockedTraceId',\n 'verificationLinkStatusBox',\n 'verificationLinkStatusIconBox',\n 'verificationLinkStatusIcon',\n 'verificationLinkStatusText',\n\n 'form',\n 'formContainer',\n 'formFieldRow',\n 'formField',\n 'formFieldLabelRow',\n 'formFieldLabel',\n 'formFieldRadioGroup',\n 'formFieldRadioGroupItem',\n 'formFieldRadioInput',\n 'formFieldRadioLabel',\n 'formFieldRadioLabelTitle',\n 'formFieldRadioLabelDescription',\n 'formFieldCheckboxInput',\n 'formFieldCheckboxLabel',\n 'formFieldAction',\n 'formFieldInput',\n 'formFieldErrorText',\n 'formFieldWarningText',\n 'formFieldSuccessText',\n 'formFieldInfoText',\n 'formFieldHintText',\n 'formButtonPrimary',\n 'formButtonReset',\n 'formFieldInputGroup',\n 'formFieldInputShowPasswordButton',\n 'formFieldInputShowPasswordIcon',\n 'formFieldInputCopyToClipboardButton',\n 'formFieldInputCopyToClipboardIcon',\n 'searchInput',\n 'searchInputClearButton',\n\n 'phoneInputBox',\n 'formInputGroup',\n\n 'avatarBox',\n 'avatarImage',\n 'avatarImageActions',\n 'avatarImageActionsUpload',\n 'avatarImageActionsRemove',\n\n 'userButtonBox',\n 'userButtonOuterIdentifier',\n 'userButtonTrigger',\n 'userButtonAvatarBox',\n 'userButtonAvatarImage',\n 'userButtonPopoverRootBox',\n 'userButtonPopoverCard',\n 'userButtonPopoverMain',\n 'userButtonPopoverActions',\n 'userButtonPopoverActionButton',\n 'userButtonPopoverActionButtonIconBox',\n 'userButtonPopoverActionButtonIcon',\n 'userButtonPopoverCustomItemButton',\n 'userButtonPopoverCustomItemButtonIconBox',\n 'userButtonPopoverActionItemButtonIcon',\n 'userButtonPopoverFooter',\n 'userButtonPopoverFooterPagesLink',\n\n 'organizationSwitcherTrigger',\n 'organizationSwitcherTriggerIcon',\n 'organizationSwitcherPopoverRootBox',\n 'organizationSwitcherPopoverCard',\n 'organizationSwitcherPopoverMain',\n 'organizationSwitcherPopoverActions',\n 'organizationSwitcherPopoverInvitationActions',\n 'organizationSwitcherPopoverInvitationActionsBox',\n 'organizationSwitcherPopoverActionButton',\n 'organizationSwitcherPreviewButton',\n 'organizationSwitcherInvitationAcceptButton',\n 'organizationSwitcherPopoverActionButtonIconBox',\n 'organizationSwitcherPopoverActionButtonIcon',\n 'organizationSwitcherPopoverFooter',\n\n 'organizationProfileMembersSearchInputIcon',\n 'organizationProfileMembersSearchInput',\n\n 'organizationProfileSecuritySsoBadge',\n 'organizationProfileSecuritySsoDescription',\n 'organizationProfileSecuritySsoConfigureButton',\n 'organizationProfileSecuritySsoDetailRows',\n 'organizationProfileSecuritySsoDetailRow',\n 'organizationProfileSecuritySsoDetailRowLabel',\n 'organizationProfileSecuritySsoDetailRowChip',\n 'organizationProfileSecuritySsoDetailRowLink',\n 'organizationProfileSecuritySsoProviderIcon',\n 'organizationProfileSecuritySsoConnectionRow',\n 'organizationProfileSecuritySsoConnectionPage',\n 'organizationProfileSecuritySsoBypassDescription',\n 'organizationProfileSecuritySsoBypassCountLabel',\n 'organizationProfileSecuritySsoBypassCountBadge',\n 'organizationProfileSecuritySsoBypassPage',\n 'organizationProfileSecuritySsoBypassSearchInput',\n 'organizationProfileSecuritySsoBypassSearchInputIcon',\n 'organizationProfileSecuritySsoBypassAddButton',\n 'organizationProfileSecuritySsoBypassEmailInput',\n 'organizationProfileSecuritySsoBypassRoleWarning',\n 'organizationProfileSecuritySsoBypassFailure',\n 'organizationProfileSecuritySsoBypassBulkResult',\n\n 'organizationListPreviewItems',\n 'organizationListPreviewItem',\n 'organizationListPreviewButton',\n 'organizationListPreviewItemActionButton',\n 'organizationListCreateOrganizationActionButton',\n\n 'taskChooseOrganizationPreviewItem',\n 'taskChooseOrganizationPreviewItems',\n 'taskChooseOrganizationCreateOrganizationActionButton',\n 'taskChooseOrganizationPreviewButton',\n\n 'taskSetupMfaMethodSelectionItem',\n 'taskSetupMfaMethodSelectionItems',\n 'taskSetupMfaPhoneSelectionItems',\n 'taskSetupMfaPhoneSelectionItem',\n 'taskSetupMfaPhoneSelectionAddPhoneAction',\n\n 'userAvatarBox',\n 'userAvatarImage',\n\n 'userPreview',\n 'userPreviewAvatarContainer',\n 'userPreviewAvatarBox',\n 'userPreviewAvatarImage',\n 'userPreviewAvatarIcon',\n 'userPreviewTextContainer',\n 'userPreviewMainIdentifier',\n 'userPreviewMainIdentifierText',\n 'userPreviewSecondaryIdentifier',\n\n 'organizationPreview',\n 'organizationPreviewAvatarContainer',\n 'organizationPreviewAvatarBox',\n 'organizationPreviewAvatarImage',\n 'organizationPreviewTextContainer',\n 'organizationPreviewMainIdentifier',\n 'organizationPreviewSecondaryIdentifier',\n\n 'organizationAvatarUploaderContainer',\n\n 'membersPageInviteButton',\n\n 'identityPreview',\n 'identityPreviewText',\n 'identityPreviewEditButton',\n 'identityPreviewEditButtonIcon',\n\n 'passkeyIcon',\n\n 'accountSwitcherActionButton',\n 'accountSwitcherActionButtonIconBox',\n 'accountSwitcherActionButtonIcon',\n\n 'pricingTable',\n 'pricingTableCard',\n 'pricingTableCardHeader',\n 'pricingTableCardTitleContainer',\n 'pricingTableCardTitle',\n 'pricingTableCardBadge',\n 'pricingTableCardDescription',\n 'pricingTableCardBody',\n 'pricingTableCardStatusRow',\n 'pricingTableCardStatus',\n 'pricingTableCardFeatures',\n 'pricingTableCardFeaturesList',\n 'pricingTableCardFeaturesListItem',\n 'pricingTableCardFeaturesListItemContent',\n 'pricingTableCardFeaturesListItemTitle',\n 'pricingTableCardPeriodToggle',\n 'pricingTableCardFeeContainer',\n 'pricingTableCardFee',\n 'pricingTableCardFeePeriod',\n 'pricingTableCardFeePeriodNotice',\n 'pricingTableCardFooter',\n 'pricingTableCardFooterButton',\n 'pricingTableCardFooterNotice',\n\n 'pricingTableMatrix',\n 'pricingTableMatrixTable',\n 'pricingTableMatrixRowGroup',\n 'pricingTableMatrixRowGroupHeader',\n 'pricingTableMatrixRowGroupBody',\n 'pricingTableMatrixRow',\n 'pricingTableMatrixRowHeader',\n 'pricingTableMatrixRowBody',\n 'pricingTableMatrixColumnHeader',\n 'pricingTableMatrixCell',\n 'pricingTableMatrixCellFooter',\n 'pricingTableMatrixAvatar',\n 'pricingTableMatrixBadge',\n 'pricingTableMatrixPlanName',\n 'pricingTableMatrixFee',\n 'pricingTableMatrixFeePeriod',\n 'pricingTableMatrixFeePeriodNotice',\n 'pricingTableMatrixFeePeriodNoticeInner',\n 'pricingTableMatrixFeePeriodNoticeLabel',\n 'pricingTableMatrixFooter',\n\n 'planDetailHeader',\n 'planDetailAvatar',\n 'planDetailBadgeAvatarTitleDescriptionContainer',\n 'planDetailBadgeContainer',\n 'planDetailBadge',\n 'planDetailTitle',\n 'planDetailTitleDescriptionContainer',\n 'planDetailDescription',\n 'planDetailAction',\n 'planDetailFeeContainer',\n 'planDetailFee',\n 'planDetailFeePeriod',\n 'planDetailFeePeriodNotice',\n 'planDetailFeePeriodNoticeInner',\n 'planDetailFeePeriodNoticeLabel',\n 'planDetailCaption',\n 'planDetailFeatures',\n 'planDetailFeaturesList',\n 'planDetailFeaturesListItem',\n 'planDetailFeaturesListItemContent',\n 'planDetailFeaturesListItemTitle',\n 'planDetailFeaturesListItemDescription',\n 'planDetailPeriodToggle',\n\n 'segmentedControlRoot',\n 'segmentedControlButton',\n\n 'switchRoot',\n 'switchIndicator',\n 'switchThumb',\n 'switchLabel',\n\n 'alert',\n 'alertIcon',\n 'alertText',\n 'alertTextContainer',\n\n 'tagInputContainer',\n 'tagPillIcon',\n 'tagPillContainer',\n\n 'tabPanel',\n 'tabButton',\n 'tabListContainer',\n\n 'tableHead',\n 'tableBody',\n 'tableRow',\n 'tableHeaderCell',\n 'tableBodyCell',\n\n 'paginationButton',\n 'paginationButtonIcon',\n 'paginationRowText',\n\n 'selectButton',\n 'selectSearchInput',\n 'selectButtonIcon',\n 'selectOptionsContainer',\n 'selectOption',\n\n 'paymentMethodRow',\n 'paymentMethodRowIcon',\n 'paymentMethodRowText',\n 'paymentMethodRowType',\n 'paymentMethodRowValue',\n 'paymentMethodRowBadge',\n\n 'statementRoot',\n 'statementHeader',\n 'statementHeaderTitleContainer',\n 'statementHeaderTitle',\n 'statementHeaderBadge',\n 'statementBody',\n 'statementSection',\n 'statementSectionHeader',\n 'statementSectionHeaderTitle',\n 'statementSectionContent',\n 'statementSectionContentItem',\n 'statementSectionContentDetailsList',\n 'statementSectionContentDetailsListItem',\n 'statementSectionContentDetailsListItemLabelContainer',\n 'statementSectionContentDetailsListItemLabel',\n 'statementSectionContentDetailsListItemValue',\n 'statementSectionContentDetailsHeader',\n 'statementSectionContentDetailsHeaderItem',\n 'statementSectionContentDetailsHeaderItemIcon',\n 'statementSectionContentDetailsHeaderTitle',\n 'statementSectionContentDetailsHeaderDescription',\n 'statementSectionContentDetailsHeaderSecondaryTitle',\n 'statementSectionContentDetailsHeaderSecondaryDescription',\n 'statementFooter',\n 'statementFooterLabel',\n 'statementFooterValueContainer',\n 'statementFooterCurrency',\n 'statementFooterValue',\n 'statementCopyButton',\n 'menuButton',\n 'menuButtonEllipsis',\n 'menuButtonEllipsisBordered',\n 'menuList',\n 'menuItem',\n\n 'paymentAttemptRoot',\n 'paymentAttemptHeader',\n 'paymentAttemptHeaderTitleContainer',\n 'paymentAttemptHeaderTitle',\n 'paymentAttemptHeaderBadge',\n 'paymentAttemptBody',\n 'paymentAttemptFooter',\n 'paymentAttemptFooterLabel',\n 'paymentAttemptFooterValueContainer',\n 'paymentAttemptFooterCurrency',\n 'paymentAttemptFooterValue',\n 'paymentAttemptCopyButton',\n\n 'modalBackdrop',\n 'modalContent',\n 'modalCloseButton',\n\n 'profileSection',\n 'profileSectionItemList',\n 'profileSectionItem',\n 'profileSectionHeader',\n 'profileSectionTitle',\n 'profileSectionTitleText',\n 'profileSectionSubtitle',\n 'profileSectionSubtitleText',\n 'profileSectionContent',\n 'profileSectionPrimaryButton',\n 'profileSectionButtonGroup',\n 'profilePage',\n 'profilePageContent',\n\n 'formattedPhoneNumber',\n 'formattedPhoneNumberFlag',\n 'formattedPhoneNumberText',\n\n 'formattedDate',\n\n 'scrollBox',\n\n 'navbar',\n 'navbarButtons',\n 'navbarButton',\n 'navbarButtonIcon',\n 'navbarButtonText',\n 'navbarMobileMenuRow',\n 'navbarMobileMenuButton',\n 'navbarMobileMenuButtonIcon',\n\n 'pageScrollBox',\n 'page',\n\n 'activeDevice',\n 'activeDeviceListItem',\n 'activeDeviceIcon',\n\n 'impersonationFab',\n 'impersonationFabIcon',\n 'impersonationFabIconContainer',\n 'impersonationFabTitle',\n 'impersonationFabActionLink',\n\n 'invitationsSentIconBox',\n 'invitationsSentIcon',\n\n 'qrCodeRow',\n 'qrCodeContainer',\n\n 'tooltip',\n 'tooltipContent',\n 'tooltipText',\n\n 'badge',\n 'notificationBadge',\n 'buttonArrowIcon',\n 'spinner',\n\n 'apiKeys',\n 'apiKeysHeader',\n 'apiKeysSearchBox',\n 'apiKeysSearchInput',\n 'apiKeysAddButton',\n 'apiKeysTable',\n 'apiKeysCopyButton',\n 'apiKeysRevealButton',\n 'apiKeysCreateForm',\n 'apiKeysCreateFormNameInput',\n 'apiKeysCreateFormDescriptionInput',\n 'apiKeysCreateFormExpirationInput',\n 'apiKeysCreateFormSubmitButton',\n 'apiKeysCreateFormExpirationCaption',\n 'apiKeysRevokeModal',\n 'apiKeysRevokeModalInput',\n 'apiKeysRevokeModalSubmitButton',\n 'apiKeysCopyModal',\n 'apiKeysCopyModalInput',\n 'apiKeysCopyModalSubmitButton',\n\n 'subscriptionDetailsCard',\n 'subscriptionDetailsCardHeader',\n 'subscriptionDetailsCardBadge',\n 'subscriptionDetailsCardTitle',\n 'subscriptionDetailsCardBody',\n 'subscriptionDetailsCardFooter',\n 'subscriptionDetailsCardActions',\n 'subscriptionDetailsActionButton',\n 'subscriptionDetailsCancelButton',\n 'subscriptionDetailsDetailRow',\n 'subscriptionDetailsDetailRowLabel',\n 'subscriptionDetailsDetailRowValue',\n\n 'enterpriseConnectionsRoot',\n 'enterpriseConnectionButton',\n 'enterpriseConnectionButtonText',\n\n 'configureSSOConnectionScopeBanner',\n 'configureSSOHeader',\n 'configureSSOHeaderBackButton',\n 'configureSSOMobileNavbar',\n 'configureSSOStepper',\n 'configureSSOStepperItem',\n 'configureSSOStepperItemBullet',\n 'configureSSOStepperItemLabel',\n 'configureSSOStepperSeparator',\n 'configureSSOStep',\n 'configureSSOStepHeader',\n 'configureSSOStepHeaderTitle',\n 'configureSSOStepHeaderDescription',\n 'configureSSOStepBody',\n 'configureSSOStepSection',\n 'configureSSOStepCounter',\n 'configureSSOFooter',\n 'configureSSOFooterPreviousButton',\n 'configureSSOFooterContinueButton',\n 'configureSSOFooterResetButton',\n\n 'configureSSOProviderGroup',\n 'configureSSOProviderGroupLabel',\n 'configureSSOProviderGrid',\n 'configureSSOProviderCard',\n 'configureSSOProviderCardRadio',\n 'configureSSOProviderCardIcon',\n 'configureSSOProviderCardLabel',\n\n 'configureSSOVerifyDomainErrorRoot',\n 'configureSSOVerifyDomainErrorIcon',\n 'configureSSOVerifyDomainErrorTitle',\n 'configureSSOVerifyDomainErrorSubtitle',\n 'configureSSOVerifyDomainList',\n 'configureSSOVerifyDomainSuggestion',\n 'configureSSOVerifyDomainCard',\n 'configureSSOVerifyDomainCardBadge',\n 'configureSSOVerifyDomainCardCheckbox',\n 'configureSSOVerifyDomainCardRemoveButton',\n 'configureSSOVerifyDomainCardTxtRecord',\n 'configureSSOVerifyDomainCardTxtRecordValue',\n 'configureSSOVerifyDomainCardExpired',\n 'configureSSOEmailVerificationForm',\n 'configureSSOEmailVerificationIcon',\n 'configureSSOEmailVerificationTitle',\n 'configureSSOEmailVerificationSubtitle',\n 'configureSSOEmailVerificationInput',\n 'configureSSOEmailVerificationError',\n\n 'configureSSOInstructionsHeading',\n 'configureSSOInstructionsList',\n 'configureSSOInstructionsListItem',\n 'configureSSOAttributeMappingTable',\n 'configureSSOAttributeMappingBadge',\n 'configureSSOCertificateUploadButton',\n 'configureSSOCertificateFileBadge',\n 'configureSSOCertificateFileName',\n 'configureSSOCertificateRemoveButton',\n 'configureSSOCertificateList',\n 'configureSSOCertificateListItem',\n 'configureSSOCertificateListItemBody',\n 'configureSSOCertificateListItemExpiry',\n 'configureSSOCertificateListItemRemoveButton',\n 'configureSSOCertificatePrimaryBadge',\n\n 'configureSSOTestUrlOpenButton',\n 'configureSSOTestRefreshButton',\n 'configureSSOTestResultsTable',\n 'configureSSOTestResultsRow',\n 'configureSSOTestResultsEmpty',\n 'configureSSOTestResultsLoadingSpinner',\n 'configureSSOTestRunStatusBadge',\n 'configureSSOTestRunFullMessage',\n 'configureSSOTestRunFullMessageCopyButton',\n 'configureSSOTestRunHowToFixSection',\n 'configureSSOTestRunHowToFixDocsLink',\n 'configureSSOTestRunParsedUserInfo',\n 'configureSSOTestError',\n\n 'configureSSOActivate',\n 'configureSSOActivateIcon',\n 'configureSSOActivateTitle',\n 'configureSSOActivateSubtitle',\n 'configureSSOActivateButton',\n 'configureSSOActivateSkipButton',\n\n 'configureSSOResetConnectionDialog',\n 'configureSSOResetConnectionDialogCancelButton',\n 'configureSSOResetConnectionDialogConfirmationInput',\n 'configureSSOResetConnectionDialogSubmitButton',\n\n 'configureSSOChangeProviderDialog',\n 'configureSSOChangeProviderDialogCancelButton',\n 'configureSSOChangeProviderDialogConfirmButton',\n\n 'configureSSORemoveDomainDialog',\n 'configureSSORemoveDomainDialogCancelButton',\n 'configureSSORemoveDomainDialogSubmitButton',\n\n 'configureDirectorySyncConnectionCard',\n 'configureDirectorySyncConnectionCardName',\n 'configureDirectorySyncConnectionCardDomains',\n 'configureDirectorySyncConnectionCardDomainBadge',\n 'configureDirectorySyncInstructionsToggle',\n 'configureDirectorySyncInstructionsList',\n 'configureDirectorySyncInstructionsListItem',\n 'configureDirectorySyncFieldLabel',\n 'configureDirectorySyncEndpointUrlInput',\n 'configureDirectorySyncTokenInput',\n 'configureDirectorySyncGenerateTokenButton',\n 'configureDirectorySyncTokenNotice',\n 'configureDirectorySyncRetryButton',\n 'configureDirectorySyncAttributeMappingTable',\n 'configureDirectorySyncAttributeMappingHeader',\n 'configureDirectorySyncAttributeMappingValue',\n 'configureDirectorySyncUsersList',\n 'configureDirectorySyncUsersRow',\n 'configureDirectorySyncUserIdentifier',\n 'configureDirectorySyncUserName',\n 'configureDirectorySyncUserTimestamp',\n 'configureDirectorySyncUserStatusBadge',\n 'configureDirectorySyncUsersEmpty',\n 'configureDirectorySyncCompleteButton',\n 'configureDirectorySyncCredentialsForm',\n 'configureDirectorySyncCredentialsBadge',\n 'configureDirectorySyncUploadKeyButton',\n 'configureDirectorySyncUploadedFileName',\n 'configureDirectorySyncSubjectEmailInput',\n 'configureDirectorySyncSyncRow',\n 'configureDirectorySyncSyncNowButton',\n 'configureDirectorySyncStatusBadge',\n 'configureDirectorySyncLastSyncedAt',\n 'configureDirectorySyncRoleMappingToggle',\n 'configureDirectorySyncRoleMappingTable',\n 'configureDirectorySyncRoleMappingHeader',\n 'configureDirectorySyncRoleMappingRow',\n 'configureDirectorySyncRoleMappingReorderButton',\n 'configureDirectorySyncRoleMappingPriority',\n 'configureDirectorySyncRoleMappingGroupName',\n 'configureDirectorySyncRoleMappingEmpty',\n 'configureDirectorySyncRoleSyncDialog',\n 'configureDirectorySyncRoleSyncDialogCancelButton',\n 'configureDirectorySyncRoleSyncDialogSubmitButton',\n\n 'web3SolanaWalletButtonsRoot',\n 'web3SolanaWalletButtons',\n 'web3SolanaWalletButtonsIconButton',\n 'web3SolanaWalletButtonsBlockButton',\n 'web3SolanaWalletButtonsBlockButtonText',\n 'web3SolanaWalletButtonsWalletIcon',\n 'web3SolanaWalletButtonsWalletInitialIcon',\n\n 'walletIcon',\n 'walletInitialIcon',\n] as const).map(camelize) as (keyof ElementsConfig)[];\n\ntype TargettableClassname<K extends keyof ElementsConfig> = `${typeof CLASS_PREFIX}${K}`;\ntype AllowedIds<T extends keyof ElementsConfig> = ElementsConfig[T]['ids'];\ntype AllowedStates<T extends keyof ElementsConfig> = ElementsConfig[T]['states'];\ntype ObjectKeyWithState<K extends keyof ElementsConfig> = StateSelectors<K, ElementsConfig[K]['states']>;\ntype ObjectKeyWithIds<K extends keyof ElementsConfig> = IdSelectors<K, ElementsConfig[K]['ids']>;\ntype ObjectKeyWithIdAndState<K extends keyof ElementsConfig> = StateSelectors<\n IdSelectors<K, ElementsConfig[K]['ids']>,\n ElementsConfig[K]['states']\n>;\n\nexport type ElementId<Id = string> = { id: Id; __type: 'id' };\nexport type ElementDescriptor<K extends keyof ElementsConfig = any> = {\n targettableClassname: TargettableClassname<K>;\n objectKey: ElementObjectKey<K>;\n getTargettableIdClassname: (params: { id: AllowedIds<K> | never }) => string;\n getObjectKeyWithState: (state: AllowedStates<K> | never) => ObjectKeyWithState<K>;\n getObjectKeyWithId: (param: ElementId<AllowedIds<K>> | never) => ObjectKeyWithIds<K>;\n getObjectKeyWithIdAndState: (id: ElementId<AllowedIds<K>>, state: AllowedStates<K>) => ObjectKeyWithIdAndState<K>;\n setId: <Id extends AllowedIds<K>>(id?: Id) => ElementId<Id> | undefined;\n};\n\ntype ElementDescriptors = { [k in keyof ElementsConfig as ElementObjectKey<k>]: ElementDescriptor<k> };\n\n/**\n * Turns a key from the ElementsConfig object to a targettable classname\n * socialButtons-buttonIcon -> cl-socialButtons-buttonIcon\n */\nconst toTargettableClassname = <K extends keyof ElementsConfig>(key: K): TargettableClassname<K> => {\n return (CLASS_PREFIX + (key as string)) as TargettableClassname<K>;\n};\n\n/**\n * Turns a key from the ElementsConfig object to a appearance.elements key\n * socialButtons-buttonIcon -> socialButtonsButtonIcon\n */\nconst toObjectKey = <K extends keyof ElementsConfig>(key: K): ElementObjectKey<K> => {\n return key.replace(/([-][a-z])/, match => match[1].toUpperCase()) as ElementObjectKey<K>;\n};\n\nconst createElementDescriptor = <K extends keyof ElementsConfig>(key: K): ElementDescriptor<K> => {\n const objectKey = toObjectKey(key);\n return {\n objectKey,\n targettableClassname: toTargettableClassname(key),\n // getTargettableIdClassname: params => ID_CLASS_PREFIX + params.id,\n getTargettableIdClassname: params => toTargettableClassname(key) + '__' + params.id,\n getObjectKeyWithState: state => (objectKey + OBJ_KEY_DELIMITER + state) as any,\n getObjectKeyWithId: idObj => (objectKey + OBJ_KEY_DELIMITER + idObj.id) as any,\n getObjectKeyWithIdAndState: (idObj, state) =>\n (objectKey + OBJ_KEY_DELIMITER + idObj.id + OBJ_KEY_DELIMITER + state) as any,\n setId: id => (id ? { id, __type: 'id' } : undefined),\n };\n};\n\nconst createDescriptorMap = <K extends keyof ElementsConfig>(keys = APPEARANCE_KEYS): ElementDescriptors => {\n const entries = keys.map(key => [toObjectKey(key), createElementDescriptor(key)]) as unknown as Array<\n [K, ElementDescriptor<K>]\n >;\n return fromEntries(entries) as unknown as ElementDescriptors;\n};\n\nexport const descriptors = createDescriptorMap();\n"],"mappings":";;;;AAIA,MAAa,eAAe;AAE5B,MAAa,oBAAoB;AAEjC,MAAM,gCAAgC,kBAAwC;AAC9E,MAAM,YAAY,MAAc,EAAE,QAAQ,QAAO,MAAK,EAAE,EAAE,CAAC,YAAY,CAAC;;;;;;AAMxE,MAAa,kBAAkB,8BAA8B;CAC3D;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CAEA;CACA;CACA;CACA;CAEA;CAEA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CAEA;CAEA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CAEA;CAEA;CACA;CACA;CACA;CAEA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CAEA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CAEA;CACA;CAEA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;AACF,CAAU,CAAC,CAAC,IAAI,QAAQ;;;;;AA6BxB,MAAM,0BAA0D,QAAoC;CAClG,eAAwB;AAC1B;;;;;AAMA,MAAM,eAA+C,QAAgC;CACnF,OAAO,IAAI,QAAQ,eAAc,UAAS,MAAM,EAAE,CAAC,YAAY,CAAC;AAClE;AAEA,MAAM,2BAA2D,QAAiC;CAChG,MAAM,YAAY,YAAY,GAAG;CACjC,OAAO;EACL;EACA,sBAAsB,uBAAuB,GAAG;EAEhD,4BAA2B,WAAU,uBAAuB,GAAG,IAAI,OAAO,OAAO;EACjF,wBAAuB,UAAU,mBAAgC;EACjE,qBAAoB,UAAU,mBAAgC,MAAM;EACpE,6BAA6B,OAAO,UACjC,mBAAgC,MAAM,YAAyB;EAClE,QAAO,OAAO,KAAK;GAAE;GAAI,QAAQ;EAAK,IAAI;CAC5C;AACF;AAEA,MAAM,uBAAuD,OAAO,oBAAwC;CAI1G,OAAO,YAHS,KAAK,KAAI,QAAO,CAAC,YAAY,GAAG,GAAG,wBAAwB,GAAG,CAAC,CAGtD,CAAC;AAC5B;AAEA,MAAa,cAAc,oBAAoB"}
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import { ClerkUI } from "./ClerkUI.js";
17
17
  */
18
18
  const ui = {
19
19
  __brand: UI_BRAND,
20
- version: "1.44.0-canary.v20261118212914",
20
+ version: "1.44.0",
21
21
  ClerkUI
22
22
  };
23
23
 
@@ -124,6 +124,7 @@ type ElementsConfig = {
124
124
  listGroupContent: WithOptions;
125
125
  listGroupItem: WithOptions;
126
126
  listGroupItemLabel: WithOptions;
127
+ listGroupItemCheckbox: WithOptions;
127
128
  oauthConsentClientIdentity: WithOptions;
128
129
  header: WithOptions;
129
130
  headerTitle: WithOptions;
@@ -22,8 +22,8 @@ import { isVersionAtLeast, parseVersion } from "@clerk/shared/versionCheck";
22
22
  * @public
23
23
  */
24
24
  var ClerkUI = class ClerkUI {
25
- static version = "1.44.0-canary.v20261118212914";
26
- version = "1.44.0-canary.v20261118212914";
25
+ static version = "1.44.0";
26
+ version = "1.44.0";
27
27
  #componentRenderer;
28
28
  /**
29
29
  * Creates a new `ClerkUI` instance and mounts the internal component renderer.