@clerk/ui 1.20.0 → 1.20.1-canary.v20260619191037
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ClerkUI.js +2 -2
- package/dist/components/ConfigureSSO/ChangeProviderDialog.js +82 -0
- package/dist/components/ConfigureSSO/ChangeProviderDialog.js.map +1 -0
- package/dist/components/ConfigureSSO/ConfigureSSOWizard.js +1 -10
- package/dist/components/ConfigureSSO/ConfigureSSOWizard.js.map +1 -1
- package/dist/components/ConfigureSSO/hooks/useOrganizationEnterpriseConnection.js +9 -0
- package/dist/components/ConfigureSSO/hooks/useOrganizationEnterpriseConnection.js.map +1 -1
- package/dist/components/ConfigureSSO/steps/ConfigureStep/index.js +24 -2
- package/dist/components/ConfigureSSO/steps/ConfigureStep/index.js.map +1 -1
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/SamlCustomConfigureSteps.js +24 -43
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/SamlCustomConfigureSteps.js.map +1 -1
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/SamlGoogleConfigureSteps.js +16 -32
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/SamlGoogleConfigureSteps.js.map +1 -1
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/SamlMicrosoftConfigureSteps.js +253 -260
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/SamlMicrosoftConfigureSteps.js.map +1 -1
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/SamlOktaConfigureSteps.js +57 -81
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/SamlOktaConfigureSteps.js.map +1 -1
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/shared/ActiveConnectionAlert.js +22 -0
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/shared/ActiveConnectionAlert.js.map +1 -0
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/shared/IdentityProviderConfigurationForm.js +5 -1
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/shared/IdentityProviderConfigurationForm.js.map +1 -1
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/shared/IdentityProviderConfigurationModes.js +1 -0
- package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/shared/IdentityProviderConfigurationModes.js.map +1 -1
- package/dist/components/ConfigureSSO/steps/SelectProviderStep.js +124 -104
- package/dist/components/ConfigureSSO/steps/SelectProviderStep.js.map +1 -1
- package/dist/components/ConfigureSSO/steps/TestConfigurationStep.js +1 -0
- package/dist/components/ConfigureSSO/steps/TestConfigurationStep.js.map +1 -1
- package/dist/configureSSO_ui_1a2b0a_1.20.1-canary.v20260619191037.js +1 -0
- package/dist/configureSSO_ui_1c6fe1_1.20.1-canary.v20260619191037.js +1 -0
- package/dist/configureSSO_ui_cb072d_1.20.1-canary.v20260619191037.js +1 -0
- package/dist/customizables/elementDescriptors.js +3 -0
- package/dist/customizables/elementDescriptors.js.map +1 -1
- package/dist/elements/Alert.js +52 -27
- package/dist/elements/Alert.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/appearance.d.ts +3 -0
- package/dist/internal/appearance.d.ts.map +1 -1
- package/dist/no-rhc/ClerkUI.js +2 -2
- package/dist/no-rhc/components/ConfigureSSO/ChangeProviderDialog.js +82 -0
- package/dist/no-rhc/components/ConfigureSSO/ChangeProviderDialog.js.map +1 -0
- package/dist/no-rhc/components/ConfigureSSO/ConfigureSSOWizard.js +1 -10
- package/dist/no-rhc/components/ConfigureSSO/ConfigureSSOWizard.js.map +1 -1
- package/dist/no-rhc/components/ConfigureSSO/hooks/useOrganizationEnterpriseConnection.js +9 -0
- package/dist/no-rhc/components/ConfigureSSO/hooks/useOrganizationEnterpriseConnection.js.map +1 -1
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/index.js +24 -2
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/index.js.map +1 -1
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/saml/SamlCustomConfigureSteps.js +24 -43
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/saml/SamlCustomConfigureSteps.js.map +1 -1
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/saml/SamlGoogleConfigureSteps.js +16 -32
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/saml/SamlGoogleConfigureSteps.js.map +1 -1
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/saml/SamlMicrosoftConfigureSteps.js +253 -260
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/saml/SamlMicrosoftConfigureSteps.js.map +1 -1
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/saml/SamlOktaConfigureSteps.js +57 -81
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/saml/SamlOktaConfigureSteps.js.map +1 -1
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/saml/shared/ActiveConnectionAlert.js +22 -0
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/saml/shared/ActiveConnectionAlert.js.map +1 -0
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/saml/shared/IdentityProviderConfigurationForm.js +5 -1
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/saml/shared/IdentityProviderConfigurationForm.js.map +1 -1
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/saml/shared/IdentityProviderConfigurationModes.js +1 -0
- package/dist/no-rhc/components/ConfigureSSO/steps/ConfigureStep/saml/shared/IdentityProviderConfigurationModes.js.map +1 -1
- package/dist/no-rhc/components/ConfigureSSO/steps/SelectProviderStep.js +124 -104
- package/dist/no-rhc/components/ConfigureSSO/steps/SelectProviderStep.js.map +1 -1
- package/dist/no-rhc/components/ConfigureSSO/steps/TestConfigurationStep.js +1 -0
- package/dist/no-rhc/components/ConfigureSSO/steps/TestConfigurationStep.js.map +1 -1
- package/dist/no-rhc/customizables/elementDescriptors.js +3 -0
- package/dist/no-rhc/customizables/elementDescriptors.js.map +1 -1
- package/dist/no-rhc/elements/Alert.js +52 -27
- package/dist/no-rhc/elements/Alert.js.map +1 -1
- package/dist/no-rhc/index.js +1 -1
- package/dist/{op-security-page_ui_61112d_1.20.0.js → op-security-page_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +1 -1
- package/dist/{op-security-page_ui_1274ef_1.20.0.js → op-security-page_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +1 -1
- package/dist/{op-security-page_ui_4a21fd_1.20.0.js → op-security-page_ui_cb072d_1.20.1-canary.v20260619191037.js} +1 -1
- package/dist/server.js +1 -1
- package/dist/ui-common_ui_1a2b0a_1.20.1-canary.v20260619191037.js +1 -0
- package/dist/{ui-common_ui_1274ef_1.20.0.js → ui-common_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +3 -3
- package/dist/{ui-common_ui_4a21fd_1.20.0.js → ui-common_ui_cb072d_1.20.1-canary.v20260619191037.js} +3 -3
- package/dist/ui.browser.js +2 -2
- package/dist/ui.legacy.browser.js +1 -1
- package/dist/ui.shared.browser.js +2 -2
- package/package.json +4 -4
- package/dist/configureSSO_ui_1274ef_1.20.0.js +0 -1
- package/dist/configureSSO_ui_4a21fd_1.20.0.js +0 -1
- package/dist/configureSSO_ui_61112d_1.20.0.js +0 -1
- package/dist/ui-common_ui_61112d_1.20.0.js +0 -1
- /package/dist/{1390_ui_61112d_1.20.0.js → 1390_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{1390_ui_4a21fd_1.20.0.js → 1390_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{390_ui_1274ef_1.20.0.js → 390_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{419_ui_1274ef_1.20.0.js → 419_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{424_ui_1274ef_1.20.0.js → 424_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{4424_ui_61112d_1.20.0.js → 4424_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{4424_ui_4a21fd_1.20.0.js → 4424_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{4718_ui_61112d_1.20.0.js → 4718_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{4718_ui_4a21fd_1.20.0.js → 4718_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{6678_ui_61112d_1.20.0.js → 6678_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{6678_ui_4a21fd_1.20.0.js → 6678_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{678_ui_1274ef_1.20.0.js → 678_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{718_ui_1274ef_1.20.0.js → 718_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{746_ui_1274ef_1.20.0.js → 746_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{76_ui_61112d_1.20.0.js → 76_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{76_ui_1274ef_1.20.0.js → 76_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{76_ui_4a21fd_1.20.0.js → 76_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{8746_ui_61112d_1.20.0.js → 8746_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{8746_ui_4a21fd_1.20.0.js → 8746_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{9419_ui_61112d_1.20.0.js → 9419_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{9419_ui_4a21fd_1.20.0.js → 9419_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{apiKeys_ui_61112d_1.20.0.js → apiKeys_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{apiKeys_ui_1274ef_1.20.0.js → apiKeys_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{apiKeys_ui_4a21fd_1.20.0.js → apiKeys_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{blankcaptcha_ui_61112d_1.20.0.js → blankcaptcha_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{blankcaptcha_ui_1274ef_1.20.0.js → blankcaptcha_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{blankcaptcha_ui_4a21fd_1.20.0.js → blankcaptcha_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{checkout_ui_61112d_1.20.0.js → checkout_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{checkout_ui_1274ef_1.20.0.js → checkout_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{checkout_ui_4a21fd_1.20.0.js → checkout_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{copy-api-key-modal_ui_61112d_1.20.0.js → copy-api-key-modal_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{copy-api-key-modal_ui_1274ef_1.20.0.js → copy-api-key-modal_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{copy-api-key-modal_ui_4a21fd_1.20.0.js → copy-api-key-modal_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{createorganization_ui_61112d_1.20.0.js → createorganization_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{createorganization_ui_1274ef_1.20.0.js → createorganization_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{createorganization_ui_4a21fd_1.20.0.js → createorganization_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{enableOrganizationsPrompt_ui_61112d_1.20.0.js → enableOrganizationsPrompt_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{enableOrganizationsPrompt_ui_1274ef_1.20.0.js → enableOrganizationsPrompt_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{enableOrganizationsPrompt_ui_4a21fd_1.20.0.js → enableOrganizationsPrompt_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{framework_ui_61112d_1.20.0.js → framework_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{framework_ui_4a21fd_1.20.0.js → framework_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{impersonationfab_ui_61112d_1.20.0.js → impersonationfab_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{impersonationfab_ui_1274ef_1.20.0.js → impersonationfab_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{impersonationfab_ui_4a21fd_1.20.0.js → impersonationfab_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{keylessPrompt_ui_61112d_1.20.0.js → keylessPrompt_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{keylessPrompt_ui_1274ef_1.20.0.js → keylessPrompt_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{keylessPrompt_ui_4a21fd_1.20.0.js → keylessPrompt_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{oauthConsent_ui_61112d_1.20.0.js → oauthConsent_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{oauthConsent_ui_1274ef_1.20.0.js → oauthConsent_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{oauthConsent_ui_4a21fd_1.20.0.js → oauthConsent_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{onetap_ui_61112d_1.20.0.js → onetap_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{onetap_ui_1274ef_1.20.0.js → onetap_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{onetap_ui_4a21fd_1.20.0.js → onetap_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{op-api-keys-page_ui_61112d_1.20.0.js → op-api-keys-page_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{op-api-keys-page_ui_1274ef_1.20.0.js → op-api-keys-page_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{op-api-keys-page_ui_4a21fd_1.20.0.js → op-api-keys-page_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{op-billing-page_ui_61112d_1.20.0.js → op-billing-page_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{op-billing-page_ui_1274ef_1.20.0.js → op-billing-page_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{op-billing-page_ui_4a21fd_1.20.0.js → op-billing-page_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{op-plans-page_ui_61112d_1.20.0.js → op-plans-page_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{op-plans-page_ui_1274ef_1.20.0.js → op-plans-page_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{op-plans-page_ui_4a21fd_1.20.0.js → op-plans-page_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{organizationlist_ui_61112d_1.20.0.js → organizationlist_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{organizationlist_ui_1274ef_1.20.0.js → organizationlist_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{organizationlist_ui_4a21fd_1.20.0.js → organizationlist_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{organizationprofile_ui_61112d_1.20.0.js → organizationprofile_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{organizationprofile_ui_1274ef_1.20.0.js → organizationprofile_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{organizationprofile_ui_4a21fd_1.20.0.js → organizationprofile_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{organizationswitcher_ui_61112d_1.20.0.js → organizationswitcher_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{organizationswitcher_ui_1274ef_1.20.0.js → organizationswitcher_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{organizationswitcher_ui_4a21fd_1.20.0.js → organizationswitcher_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{payment-attempt-page_ui_61112d_1.20.0.js → payment-attempt-page_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{payment-attempt-page_ui_1274ef_1.20.0.js → payment-attempt-page_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{payment-attempt-page_ui_4a21fd_1.20.0.js → payment-attempt-page_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{planDetails_ui_61112d_1.20.0.js → planDetails_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{planDetails_ui_1274ef_1.20.0.js → planDetails_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{planDetails_ui_4a21fd_1.20.0.js → planDetails_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{prefetchorganizationlist_ui_61112d_1.20.0.js → prefetchorganizationlist_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{prefetchorganizationlist_ui_1274ef_1.20.0.js → prefetchorganizationlist_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{prefetchorganizationlist_ui_4a21fd_1.20.0.js → prefetchorganizationlist_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{pricingTable_ui_61112d_1.20.0.js → pricingTable_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{pricingTable_ui_1274ef_1.20.0.js → pricingTable_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{pricingTable_ui_4a21fd_1.20.0.js → pricingTable_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{revoke-api-key-modal_ui_61112d_1.20.0.js → revoke-api-key-modal_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{revoke-api-key-modal_ui_1274ef_1.20.0.js → revoke-api-key-modal_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{revoke-api-key-modal_ui_4a21fd_1.20.0.js → revoke-api-key-modal_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{sessionTasks_ui_61112d_1.20.0.js → sessionTasks_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{sessionTasks_ui_1274ef_1.20.0.js → sessionTasks_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{sessionTasks_ui_4a21fd_1.20.0.js → sessionTasks_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{signin_ui_61112d_1.20.0.js → signin_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{signin_ui_1274ef_1.20.0.js → signin_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{signin_ui_4a21fd_1.20.0.js → signin_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{signup_ui_61112d_1.20.0.js → signup_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{signup_ui_1274ef_1.20.0.js → signup_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{signup_ui_4a21fd_1.20.0.js → signup_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{statement-page_ui_61112d_1.20.0.js → statement-page_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{statement-page_ui_1274ef_1.20.0.js → statement-page_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{statement-page_ui_4a21fd_1.20.0.js → statement-page_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{subscriptionDetails_ui_61112d_1.20.0.js → subscriptionDetails_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{subscriptionDetails_ui_1274ef_1.20.0.js → subscriptionDetails_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{subscriptionDetails_ui_4a21fd_1.20.0.js → subscriptionDetails_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{taskChooseOrganization_ui_61112d_1.20.0.js → taskChooseOrganization_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{taskChooseOrganization_ui_1274ef_1.20.0.js → taskChooseOrganization_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{taskChooseOrganization_ui_4a21fd_1.20.0.js → taskChooseOrganization_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{taskResetPassword_ui_61112d_1.20.0.js → taskResetPassword_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{taskResetPassword_ui_1274ef_1.20.0.js → taskResetPassword_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{taskResetPassword_ui_4a21fd_1.20.0.js → taskResetPassword_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{taskSetupMFA_ui_61112d_1.20.0.js → taskSetupMFA_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{taskSetupMFA_ui_1274ef_1.20.0.js → taskSetupMFA_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{taskSetupMFA_ui_4a21fd_1.20.0.js → taskSetupMFA_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{up-api-keys-page_ui_61112d_1.20.0.js → up-api-keys-page_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{up-api-keys-page_ui_1274ef_1.20.0.js → up-api-keys-page_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{up-api-keys-page_ui_4a21fd_1.20.0.js → up-api-keys-page_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{up-billing-page_ui_61112d_1.20.0.js → up-billing-page_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{up-billing-page_ui_1274ef_1.20.0.js → up-billing-page_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{up-billing-page_ui_4a21fd_1.20.0.js → up-billing-page_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{up-plans-page_ui_61112d_1.20.0.js → up-plans-page_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{up-plans-page_ui_1274ef_1.20.0.js → up-plans-page_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{up-plans-page_ui_4a21fd_1.20.0.js → up-plans-page_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{useravatar_ui_61112d_1.20.0.js → useravatar_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{useravatar_ui_1274ef_1.20.0.js → useravatar_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{useravatar_ui_4a21fd_1.20.0.js → useravatar_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{userbutton_ui_61112d_1.20.0.js → userbutton_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{userbutton_ui_1274ef_1.20.0.js → userbutton_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{userbutton_ui_4a21fd_1.20.0.js → userbutton_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{userprofile_ui_61112d_1.20.0.js → userprofile_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{userprofile_ui_1274ef_1.20.0.js → userprofile_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{userprofile_ui_4a21fd_1.20.0.js → userprofile_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{userverification_ui_61112d_1.20.0.js → userverification_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{userverification_ui_1274ef_1.20.0.js → userverification_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{userverification_ui_4a21fd_1.20.0.js → userverification_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{vendors_ui_61112d_1.20.0.js → vendors_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{vendors_ui_1274ef_1.20.0.js → vendors_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{vendors_ui_4a21fd_1.20.0.js → vendors_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{waitlist_ui_61112d_1.20.0.js → waitlist_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{waitlist_ui_1274ef_1.20.0.js → waitlist_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{waitlist_ui_4a21fd_1.20.0.js → waitlist_ui_cb072d_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{web3-solana-wallet-buttons_ui_61112d_1.20.0.js → web3-solana-wallet-buttons_ui_1a2b0a_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{web3-solana-wallet-buttons_ui_1274ef_1.20.0.js → web3-solana-wallet-buttons_ui_1c6fe1_1.20.1-canary.v20260619191037.js} +0 -0
- /package/dist/{web3-solana-wallet-buttons_ui_4a21fd_1.20.0.js → web3-solana-wallet-buttons_ui_cb072d_1.20.1-canary.v20260619191037.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.20.
|
|
26
|
-
version = "1.20.
|
|
25
|
+
static version = "1.20.1-canary.v20260619191037";
|
|
26
|
+
version = "1.20.1-canary.v20260619191037";
|
|
27
27
|
#componentRenderer;
|
|
28
28
|
/**
|
|
29
29
|
* Creates a new `ClerkUI` instance and mounts the internal component renderer.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { localizationKeys } from "../../localization/localizationKeys.js";
|
|
2
|
+
import { useLocalizations } from "../../localization/makeLocalizable.js";
|
|
3
|
+
import { descriptors } from "../../customizables/elementDescriptors.js";
|
|
4
|
+
import { withCardStateProvider } from "../../elements/contexts/index.js";
|
|
5
|
+
import { Button, Col, Flex, Heading, Text } from "../../customizables/index.js";
|
|
6
|
+
import { Modal } from "../../elements/Modal.js";
|
|
7
|
+
import { Card } from "../../elements/Card/index.js";
|
|
8
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
//#region src/components/ConfigureSSO/ChangeProviderDialog.tsx
|
|
11
|
+
const ChangeProviderDialog = (props) => {
|
|
12
|
+
if (!props.isOpen) return null;
|
|
13
|
+
return /* @__PURE__ */ jsx(Modal, {
|
|
14
|
+
handleClose: props.onClose,
|
|
15
|
+
canCloseModal: false,
|
|
16
|
+
portalRoot: props.contentRef,
|
|
17
|
+
containerSx: (t) => ({
|
|
18
|
+
alignItems: "center",
|
|
19
|
+
position: "absolute",
|
|
20
|
+
inset: 0,
|
|
21
|
+
width: "auto",
|
|
22
|
+
height: "auto",
|
|
23
|
+
backgroundColor: "inherit",
|
|
24
|
+
backdropFilter: `blur(${t.sizes.$2})`
|
|
25
|
+
}),
|
|
26
|
+
children: /* @__PURE__ */ jsx(ChangeProviderDialogContent, { ...props })
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
const ChangeProviderDialogContent = withCardStateProvider((props) => {
|
|
30
|
+
const { onClose, onConfirm, isSubmitting, nextProviderLabel, currentProviderLabel } = props;
|
|
31
|
+
const { t } = useLocalizations();
|
|
32
|
+
const nextProvider = t(nextProviderLabel);
|
|
33
|
+
const currentProvider = t(currentProviderLabel);
|
|
34
|
+
return /* @__PURE__ */ jsx(Card.Root, {
|
|
35
|
+
elementDescriptor: descriptors.configureSSOChangeProviderDialog,
|
|
36
|
+
sx: (t) => ({ borderRadius: t.radii.$md }),
|
|
37
|
+
children: /* @__PURE__ */ jsx(Card.Content, {
|
|
38
|
+
sx: (t) => ({
|
|
39
|
+
textAlign: "start",
|
|
40
|
+
padding: t.sizes.$5
|
|
41
|
+
}),
|
|
42
|
+
children: /* @__PURE__ */ jsxs(Col, {
|
|
43
|
+
sx: (t) => ({ gap: t.space.$4 }),
|
|
44
|
+
children: [/* @__PURE__ */ jsxs(Col, {
|
|
45
|
+
sx: (t) => ({ gap: t.space.$2 }),
|
|
46
|
+
children: [/* @__PURE__ */ jsx(Heading, {
|
|
47
|
+
textVariant: "h2",
|
|
48
|
+
localizationKey: localizationKeys("configureSSO.changeProviderDialog.title", { provider: nextProvider }),
|
|
49
|
+
sx: (t) => ({ fontSize: t.fontSizes.$md })
|
|
50
|
+
}), /* @__PURE__ */ jsx(Text, {
|
|
51
|
+
as: "p",
|
|
52
|
+
colorScheme: "secondary",
|
|
53
|
+
localizationKey: localizationKeys("configureSSO.changeProviderDialog.subtitle", {
|
|
54
|
+
provider: nextProvider,
|
|
55
|
+
currentProvider
|
|
56
|
+
})
|
|
57
|
+
})]
|
|
58
|
+
}), /* @__PURE__ */ jsxs(Flex, {
|
|
59
|
+
justify: "end",
|
|
60
|
+
sx: (t) => ({ gap: t.space.$3 }),
|
|
61
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
62
|
+
elementDescriptor: descriptors.configureSSOChangeProviderDialogCancelButton,
|
|
63
|
+
variant: "ghost",
|
|
64
|
+
isDisabled: isSubmitting,
|
|
65
|
+
onClick: onClose,
|
|
66
|
+
localizationKey: localizationKeys("configureSSO.changeProviderDialog.cancelButton")
|
|
67
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
68
|
+
elementDescriptor: descriptors.configureSSOChangeProviderDialogConfirmButton,
|
|
69
|
+
variant: "solid",
|
|
70
|
+
isLoading: isSubmitting,
|
|
71
|
+
onClick: onConfirm,
|
|
72
|
+
localizationKey: localizationKeys("configureSSO.changeProviderDialog.confirmButton")
|
|
73
|
+
})]
|
|
74
|
+
})]
|
|
75
|
+
})
|
|
76
|
+
})
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
//#endregion
|
|
81
|
+
export { ChangeProviderDialog };
|
|
82
|
+
//# sourceMappingURL=ChangeProviderDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChangeProviderDialog.js","names":[],"sources":["../../../src/components/ConfigureSSO/ChangeProviderDialog.tsx"],"sourcesContent":["import type { LocalizationKey } from '@/customizables';\nimport { Button, Col, descriptors, Flex, Heading, localizationKeys, Text, useLocalizations } from '@/customizables';\nimport { Card } from '@/elements/Card';\nimport { withCardStateProvider } from '@/elements/contexts';\nimport { Modal } from '@/elements/Modal';\n\ntype ChangeProviderDialogProps = {\n isOpen: boolean;\n onClose: () => void;\n onConfirm: () => void;\n isSubmitting?: boolean;\n nextProviderLabel: LocalizationKey;\n currentProviderLabel: LocalizationKey;\n contentRef: React.RefObject<HTMLDivElement>;\n};\n\nexport const ChangeProviderDialog = (props: ChangeProviderDialogProps): JSX.Element | null => {\n if (!props.isOpen) {\n return null;\n }\n\n return (\n <Modal\n handleClose={props.onClose}\n canCloseModal={false}\n portalRoot={props.contentRef}\n containerSx={t => ({\n alignItems: 'center',\n position: 'absolute',\n inset: 0,\n width: 'auto',\n height: 'auto',\n backgroundColor: 'inherit',\n backdropFilter: `blur(${t.sizes.$2})`,\n })}\n >\n <ChangeProviderDialogContent {...props} />\n </Modal>\n );\n};\n\nconst ChangeProviderDialogContent = withCardStateProvider((props: ChangeProviderDialogProps) => {\n const { onClose, onConfirm, isSubmitting, nextProviderLabel, currentProviderLabel } = props;\n const { t } = useLocalizations();\n\n const nextProvider = t(nextProviderLabel);\n const currentProvider = t(currentProviderLabel);\n\n return (\n <Card.Root\n elementDescriptor={descriptors.configureSSOChangeProviderDialog}\n sx={t => ({ borderRadius: t.radii.$md })}\n >\n <Card.Content sx={t => ({ textAlign: 'start', padding: t.sizes.$5 })}>\n <Col sx={t => ({ gap: t.space.$4 })}>\n <Col sx={t => ({ gap: t.space.$2 })}>\n <Heading\n textVariant='h2'\n localizationKey={localizationKeys('configureSSO.changeProviderDialog.title', {\n provider: nextProvider,\n })}\n sx={t => ({ fontSize: t.fontSizes.$md })}\n />\n <Text\n as='p'\n colorScheme='secondary'\n localizationKey={localizationKeys('configureSSO.changeProviderDialog.subtitle', {\n provider: nextProvider,\n currentProvider,\n })}\n />\n </Col>\n\n <Flex\n justify='end'\n sx={t => ({ gap: t.space.$3 })}\n >\n <Button\n elementDescriptor={descriptors.configureSSOChangeProviderDialogCancelButton}\n variant='ghost'\n isDisabled={isSubmitting}\n onClick={onClose}\n localizationKey={localizationKeys('configureSSO.changeProviderDialog.cancelButton')}\n />\n <Button\n elementDescriptor={descriptors.configureSSOChangeProviderDialogConfirmButton}\n variant='solid'\n isLoading={isSubmitting}\n onClick={onConfirm}\n localizationKey={localizationKeys('configureSSO.changeProviderDialog.confirmButton')}\n />\n </Flex>\n </Col>\n </Card.Content>\n </Card.Root>\n );\n});\n"],"mappings":";;;;;;;;;;AAgBA,MAAa,wBAAwB,UAAyD;CAC5F,IAAI,CAAC,MAAM,QACT,OAAO;CAGT,OACE,oBAAC,OAAD;EACE,aAAa,MAAM;EACnB,eAAe;EACf,YAAY,MAAM;EAClB,cAAa,OAAM;GACjB,YAAY;GACZ,UAAU;GACV,OAAO;GACP,OAAO;GACP,QAAQ;GACR,iBAAiB;GACjB,gBAAgB,QAAQ,EAAE,MAAM,GAAG;EACrC;YAEA,oBAAC,6BAAD,EAA6B,GAAI,MAAQ;CACpC;AAEX;AAEA,MAAM,8BAA8B,uBAAuB,UAAqC;CAC9F,MAAM,EAAE,SAAS,WAAW,cAAc,mBAAmB,yBAAyB;CACtF,MAAM,EAAE,MAAM,iBAAiB;CAE/B,MAAM,eAAe,EAAE,iBAAiB;CACxC,MAAM,kBAAkB,EAAE,oBAAoB;CAE9C,OACE,oBAAC,KAAK,MAAN;EACE,mBAAmB,YAAY;EAC/B,KAAI,OAAM,EAAE,cAAc,EAAE,MAAM,IAAI;YAEtC,oBAAC,KAAK,SAAN;GAAc,KAAI,OAAM;IAAE,WAAW;IAAS,SAAS,EAAE,MAAM;GAAG;aAChE,qBAAC,KAAD;IAAK,KAAI,OAAM,EAAE,KAAK,EAAE,MAAM,GAAG;cAAjC,CACE,qBAAC,KAAD;KAAK,KAAI,OAAM,EAAE,KAAK,EAAE,MAAM,GAAG;eAAjC,CACE,oBAAC,SAAD;MACE,aAAY;MACZ,iBAAiB,iBAAiB,2CAA2C,EAC3E,UAAU,aACZ,CAAC;MACD,KAAI,OAAM,EAAE,UAAU,EAAE,UAAU,IAAI;KACvC,IACD,oBAAC,MAAD;MACE,IAAG;MACH,aAAY;MACZ,iBAAiB,iBAAiB,8CAA8C;OAC9E,UAAU;OACV;MACF,CAAC;KACF,EACE;QAEL,qBAAC,MAAD;KACE,SAAQ;KACR,KAAI,OAAM,EAAE,KAAK,EAAE,MAAM,GAAG;eAF9B,CAIE,oBAAC,QAAD;MACE,mBAAmB,YAAY;MAC/B,SAAQ;MACR,YAAY;MACZ,SAAS;MACT,iBAAiB,iBAAiB,gDAAgD;KACnF,IACD,oBAAC,QAAD;MACE,mBAAmB,YAAY;MAC/B,SAAQ;MACR,WAAW;MACX,SAAS;MACT,iBAAiB,iBAAiB,iDAAiD;KACpF,EACG;MACH;;EACO;CACL;AAEf,CAAC"}
|
|
@@ -6,7 +6,6 @@ import { areAllOrganizationDomainsVerified } from "./domain/organizationEnterpri
|
|
|
6
6
|
import { ActivateStep } from "./steps/ActivateStep.js";
|
|
7
7
|
import { ConfigureStep } from "./steps/ConfigureStep/index.js";
|
|
8
8
|
import { OrganizationDomainsStep } from "./steps/OrganizationDomainsStep.js";
|
|
9
|
-
import { SelectProviderStep } from "./steps/SelectProviderStep.js";
|
|
10
9
|
import { TestConfigurationStep } from "./steps/TestConfigurationStep.js";
|
|
11
10
|
import React from "react";
|
|
12
11
|
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
@@ -20,14 +19,10 @@ const ConfigureSSOWizard = ({ title, forceInitialStep, ...props }) => {
|
|
|
20
19
|
id: "verify-domain",
|
|
21
20
|
label: "Domains"
|
|
22
21
|
},
|
|
23
|
-
{
|
|
24
|
-
id: "select-provider",
|
|
25
|
-
guard: () => allDomainsVerified
|
|
26
|
-
},
|
|
27
22
|
{
|
|
28
23
|
id: "configure",
|
|
29
24
|
label: "Connection",
|
|
30
|
-
guard: () => c.hasConnection
|
|
25
|
+
guard: () => allDomainsVerified || c.hasConnection
|
|
31
26
|
},
|
|
32
27
|
{
|
|
33
28
|
id: "test",
|
|
@@ -52,10 +47,6 @@ const ConfigureSSOWizard = ({ title, forceInitialStep, ...props }) => {
|
|
|
52
47
|
id: "verify-domain",
|
|
53
48
|
children: /* @__PURE__ */ jsx(CardStateProvider, { children: /* @__PURE__ */ jsx(OrganizationDomainsStep, {}) })
|
|
54
49
|
}),
|
|
55
|
-
/* @__PURE__ */ jsx(Wizard.Match, {
|
|
56
|
-
id: "select-provider",
|
|
57
|
-
children: /* @__PURE__ */ jsx(CardStateProvider, { children: /* @__PURE__ */ jsx(SelectProviderStep, {}) })
|
|
58
|
-
}),
|
|
59
50
|
/* @__PURE__ */ jsx(Wizard.Match, {
|
|
60
51
|
id: "configure",
|
|
61
52
|
children: /* @__PURE__ */ jsx(CardStateProvider, { children: /* @__PURE__ */ jsx(ConfigureStep, {}) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigureSSOWizard.js","names":[],"sources":["../../../src/components/ConfigureSSO/ConfigureSSOWizard.tsx"],"sourcesContent":["import React, { type ComponentProps } from 'react';\n\nimport { CardStateProvider } from '@/elements/contexts';\n\nimport { ConfigureSSOProvider } from './ConfigureSSOContext';\nimport { ConfigureSSOHeader } from './ConfigureSSOHeader';\nimport { areAllOrganizationDomainsVerified } from './domain/organizationEnterpriseConnection';\nimport { Wizard, type WizardStepConfig } from './elements/Wizard';\nimport {
|
|
1
|
+
{"version":3,"file":"ConfigureSSOWizard.js","names":[],"sources":["../../../src/components/ConfigureSSO/ConfigureSSOWizard.tsx"],"sourcesContent":["import React, { type ComponentProps } from 'react';\n\nimport { CardStateProvider } from '@/elements/contexts';\n\nimport { ConfigureSSOProvider } from './ConfigureSSOContext';\nimport { ConfigureSSOHeader } from './ConfigureSSOHeader';\nimport { areAllOrganizationDomainsVerified } from './domain/organizationEnterpriseConnection';\nimport { Wizard, type WizardStepConfig } from './elements/Wizard';\nimport { ActivateStep, ConfigureStep, OrganizationDomainsStep, TestConfigurationStep } from './steps';\n\nexport type ConfigureSSOWizardProps = Omit<ComponentProps<typeof ConfigureSSOProvider>, 'children'> & {\n title?: React.ReactNode;\n forceInitialStep?: boolean;\n};\n\nexport const ConfigureSSOWizard = ({ title, forceInitialStep, ...props }: ConfigureSSOWizardProps): JSX.Element => {\n const { organizationEnterpriseConnection: c, organizationDomains } = props;\n\n const allDomainsVerified = areAllOrganizationDomainsVerified(organizationDomains);\n\n const steps = React.useMemo<WizardStepConfig[]>(\n () => [\n { id: 'verify-domain', label: 'Domains' },\n // `select-provider` now lives inside `configure` as its first sub-step, so\n // reaching `configure` only requires verified domains (fresh start) or an\n // existing connection (resume / change-provider).\n { id: 'configure', label: 'Connection', guard: () => allDomainsVerified || c.hasConnection },\n { id: 'test', label: 'Test', guard: () => c.hasMinimumConfiguration || c.isActive },\n { id: 'activate', label: 'Activate', guard: () => c.hasSuccessfulTestRun || c.isActive },\n ],\n [c, allDomainsVerified],\n );\n\n const initialStepId = forceInitialStep ? steps[0].id : undefined;\n\n return (\n <ConfigureSSOProvider {...props}>\n <Wizard\n steps={steps}\n initialStepId={initialStepId}\n >\n <ConfigureSSOHeader title={title} />\n\n <Wizard.Match id='verify-domain'>\n <CardStateProvider>\n <OrganizationDomainsStep />\n </CardStateProvider>\n </Wizard.Match>\n\n <Wizard.Match id='configure'>\n <CardStateProvider>\n <ConfigureStep />\n </CardStateProvider>\n </Wizard.Match>\n\n <Wizard.Match id='test'>\n <CardStateProvider>\n <TestConfigurationStep />\n </CardStateProvider>\n </Wizard.Match>\n\n <Wizard.Match id='activate'>\n <CardStateProvider>\n <ActivateStep />\n </CardStateProvider>\n </Wizard.Match>\n </Wizard>\n </ConfigureSSOProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;;AAeA,MAAa,sBAAsB,EAAE,OAAO,kBAAkB,GAAG,YAAkD;CACjH,MAAM,EAAE,kCAAkC,GAAG,wBAAwB;CAErE,MAAM,qBAAqB,kCAAkC,mBAAmB;CAEhF,MAAM,QAAQ,MAAM,cACZ;EACJ;GAAE,IAAI;GAAiB,OAAO;EAAU;EAIxC;GAAE,IAAI;GAAa,OAAO;GAAc,aAAa,sBAAsB,EAAE;EAAc;EAC3F;GAAE,IAAI;GAAQ,OAAO;GAAQ,aAAa,EAAE,2BAA2B,EAAE;EAAS;EAClF;GAAE,IAAI;GAAY,OAAO;GAAY,aAAa,EAAE,wBAAwB,EAAE;EAAS;CACzF,GACA,CAAC,GAAG,kBAAkB,CACxB;CAEA,MAAM,gBAAgB,mBAAmB,MAAM,EAAE,CAAC,KAAK;CAEvD,OACE,oBAAC,sBAAD;EAAsB,GAAI;YACxB,qBAAC,QAAD;GACS;GACQ;aAFjB;IAIE,oBAAC,oBAAD,EAA2B,MAAQ;IAEnC,oBAAC,OAAO,OAAR;KAAc,IAAG;eACf,oBAAC,mBAAD,YACE,oBAAC,yBAAD,CAA0B,GACT;IACP;IAEd,oBAAC,OAAO,OAAR;KAAc,IAAG;eACf,oBAAC,mBAAD,YACE,oBAAC,eAAD,CAAgB,GACC;IACP;IAEd,oBAAC,OAAO,OAAR;KAAc,IAAG;eACf,oBAAC,mBAAD,YACE,oBAAC,uBAAD,CAAwB,GACP;IACP;IAEd,oBAAC,OAAO,OAAR;KAAc,IAAG;eACf,oBAAC,mBAAD,YACE,oBAAC,cAAD,CAAe,GACE;IACP;GACR;;CACY;AAE1B"}
|
|
@@ -52,6 +52,13 @@ const useOrganizationEnterpriseConnection = () => {
|
|
|
52
52
|
domains: organizationDomains?.map((domain) => domain.name)
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
|
+
const changeProvider = async (provider) => {
|
|
56
|
+
if (enterpriseConnection) await deleteEnterpriseConnection(enterpriseConnection.id);
|
|
57
|
+
return createEnterpriseConnection({
|
|
58
|
+
provider,
|
|
59
|
+
domains: enterpriseConnection?.domains ?? organizationDomains?.map((domain) => domain.name)
|
|
60
|
+
});
|
|
61
|
+
};
|
|
55
62
|
const updateConnection = (id, params) => updateEnterpriseConnection(id, params);
|
|
56
63
|
const setConnectionActive = (id, active) => updateEnterpriseConnection(id, { active });
|
|
57
64
|
const deleteConnection = (id) => deleteEnterpriseConnection(id);
|
|
@@ -61,6 +68,7 @@ const useOrganizationEnterpriseConnection = () => {
|
|
|
61
68
|
};
|
|
62
69
|
return {
|
|
63
70
|
createConnection,
|
|
71
|
+
changeProvider,
|
|
64
72
|
updateConnection,
|
|
65
73
|
setConnectionActive,
|
|
66
74
|
deleteConnection,
|
|
@@ -70,6 +78,7 @@ const useOrganizationEnterpriseConnection = () => {
|
|
|
70
78
|
user,
|
|
71
79
|
organization,
|
|
72
80
|
organizationDomains,
|
|
81
|
+
enterpriseConnection,
|
|
73
82
|
createEnterpriseConnection,
|
|
74
83
|
updateEnterpriseConnection,
|
|
75
84
|
deleteEnterpriseConnection
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOrganizationEnterpriseConnection.js","names":["organizationEnterpriseConnection","buildOrganizationEnterpriseConnection"],"sources":["../../../../src/components/ConfigureSSO/hooks/useOrganizationEnterpriseConnection.ts"],"sourcesContent":["import {\n __internal_useOrganizationDomains,\n __internal_useOrganizationEnterpriseConnections,\n useOrganization,\n useSession,\n useUser,\n} from '@clerk/shared/react';\nimport type {\n DeletedObjectResource,\n EnterpriseConnectionResource,\n EnterpriseConnectionTestRunInitResource,\n EnterpriseConnectionTestRunResource,\n OrganizationDomainResource,\n OrganizationDomainsBulkOwnershipVerificationResource,\n OrganizationResource,\n SignedInSessionResource,\n UpdateOrganizationEnterpriseConnectionParams,\n UserResource,\n} from '@clerk/shared/types';\nimport { useCallback, useMemo, useRef } from 'react';\n\nimport {\n organizationEnterpriseConnection as buildOrganizationEnterpriseConnection,\n isEnterpriseConnectionConfigured,\n type OrganizationEnterpriseConnection,\n} from '../domain/organizationEnterpriseConnection';\nimport type { ProviderType } from '../types';\nimport { type RefreshTestRunsOptions, useEnterpriseConnectionTestRuns } from './useEnterpriseConnectionTestRuns';\n\n/**\n * The full set of enterprise-connection mutations.\n *\n * The org-scoped enterprise-connection FAPI endpoints carry no\n * `EnsureReverification` middleware (that lived on the old `/me` scope), so\n * `session_reverification_required` never fires here and these writes call the\n * underlying handles directly — no `useReverification` wrapping.\n *\n * This surface is intentionally connection-domain only: it carries no wizard,\n * step, or navigation concepts, so it can be lifted into a reusable hook for\n * custom self-serve SSO flows.\n */\nexport interface EnterpriseConnectionMutations {\n /**\n * Creates a new enterprise connection for the active organization. The\n * verified organization domains are sourced from the hook itself, so callers\n * never thread them through.\n */\n createConnection: (provider: ProviderType) => Promise<EnterpriseConnectionResource | undefined>;\n updateConnection: (\n id: string,\n params: UpdateOrganizationEnterpriseConnectionParams,\n ) => Promise<EnterpriseConnectionResource | undefined>;\n setConnectionActive: (id: string, active: boolean) => Promise<EnterpriseConnectionResource | undefined>;\n deleteConnection: (id: string) => Promise<DeletedObjectResource | undefined>;\n /** Resolves with the test-run URL to open. */\n createTestRun: (id: string) => Promise<EnterpriseConnectionTestRunInitResource>;\n}\n\nexport interface OrganizationDomainMutations {\n createDomain: (name: string) => Promise<OrganizationDomainResource | undefined>;\n prepareOwnershipVerification: (\n domains: OrganizationDomainResource[],\n ) => Promise<OrganizationDomainsBulkOwnershipVerificationResource | undefined>;\n attemptOwnershipVerification: (\n domains: OrganizationDomainResource[],\n ) => Promise<OrganizationDomainsBulkOwnershipVerificationResource | undefined>;\n revalidate: () => Promise<void>;\n}\n\nexport interface UseOrganizationEnterpriseConnectionResult {\n /**\n * Consumers gate the skeleton on this ONE level above the provider so the\n * context never observes loading. Test-runs contribute only when a connection\n * was present at first load; on the fresh-start path they stay dormant until\n * configured, so a mid-flow create never re-flashes the global skeleton.\n */\n isLoading: boolean;\n user: UserResource | null | undefined;\n session: SignedInSessionResource | null | undefined;\n organization: OrganizationResource | null | undefined;\n /** FAPI currently supports a single connection per organization. */\n enterpriseConnection: EnterpriseConnectionResource | undefined;\n /** The domain entity the wizard makes every flow decision from. */\n organizationEnterpriseConnection: OrganizationEnterpriseConnection;\n enterpriseConnectionMutations: EnterpriseConnectionMutations;\n testRuns: TestRunsView;\n organizationDomains: OrganizationDomainResource[] | undefined;\n organizationDomainMutations: OrganizationDomainMutations;\n}\n\n/**\n * The Test step's view onto the single test-run source. Lives on the umbrella\n * hook so the step reads it from context instead of issuing its own fetch.\n */\nexport interface TestRunsView {\n rows: EnterpriseConnectionTestRunResource[];\n totalCount: number;\n /** Cold first load only → drives the full skeleton upstream. */\n isLoading: boolean;\n /** Background list refetch with prior rows kept → table spinner, not skeleton. */\n isFetching: boolean;\n isPolling: boolean;\n page: number;\n setPage: (page: number) => void;\n /** Pass `{ armPolling: true }` after the user kicks off a run. */\n refresh: (options?: RefreshTestRunsOptions) => Promise<unknown>;\n}\n\n/**\n * Umbrella hook for the active organization's enterprise connection. Composes\n * the source query, the domain aggregate, the mutations, and the test-run state\n * into one surface, exposing a single `isLoading` flag so the caller can gate\n * the skeleton above the provider.\n *\n * `__internal_useOrganizationEnterpriseConnections` is the single swappable\n * seam: a future non-org context only swaps this source and everything below\n * stays put.\n */\nexport const useOrganizationEnterpriseConnection = (): UseOrganizationEnterpriseConnectionResult => {\n const {\n data: enterpriseConnections,\n isLoading: isLoadingEnterpriseConnections,\n createEnterpriseConnection,\n updateEnterpriseConnection,\n deleteEnterpriseConnection,\n } = __internal_useOrganizationEnterpriseConnections({ enabled: true });\n\n // FAPI currently supports a single enterprise connection per organization.\n const enterpriseConnection = enterpriseConnections?.[0];\n\n // Whether a connection already existed the first time the source query\n // settled. Captured during render (not in an effect) the first time the query\n // is no longer loading, so it reflects the connection state at *initial load*\n // and is immune to a connection created mid-flow.\n //\n // `undefined` until the first settle; render-phase assignment is safe here —\n // it records a one-time fact about load, it does not sync state to props.\n const hadInitialConnectionRef = useRef<boolean | undefined>(undefined);\n if (hadInitialConnectionRef.current === undefined && !isLoadingEnterpriseConnections) {\n hadInitialConnectionRef.current = Boolean(enterpriseConnection);\n }\n const hadInitialConnection = hadInitialConnectionRef.current === true;\n\n // The test-runs source is relevant exactly when the connection is configured —\n // the same condition that makes the Test step reachable\n // (`hasMinimumConfiguration || isActive`). Deriving activation straight from\n // the connection drops the imperative activate-on-mount ceremony:\n // - existing connection at load → configured (or active) → fires on load,\n // gates the initial skeleton, drives the `tested` guard;\n // - fresh start with no connection, or a connection created but not yet\n // configured → dormant, so a mid-flow create does NOT fire the test-runs\n // queries and flash the global skeleton;\n // - configure completes (`hasMinimumConfiguration`) → fires, surfacing as\n // table-level loading because `hadInitialConnection` is false.\n //\n // Computed from the raw connection (not the built entity, which depends on the\n // test-run probe below — reading it here would be circular).\n const testRunsActive =\n isEnterpriseConnectionConfigured(enterpriseConnection) || Boolean(enterpriseConnection?.active);\n\n const {\n hasSuccessfulTestRun,\n isLoading: isLoadingTestRuns,\n isFetching: isFetchingTestRuns,\n rows: testRunRows,\n totalCount: testRunTotalCount,\n isPolling: isPollingTestRuns,\n page: testRunPage,\n setPage: setTestRunPage,\n refresh: refreshTestRuns,\n } = useEnterpriseConnectionTestRuns(enterpriseConnection, testRunsActive);\n\n const { user } = useUser();\n const { session } = useSession();\n const { organization } = useOrganization();\n\n const handleDomainOwnershipVerified = useCallback(\n async (verifiedDomains: OrganizationDomainResource[]) => {\n if (!enterpriseConnection) {\n return;\n }\n\n const verifiedDomainNames = verifiedDomains.map(domain => domain.name);\n const domains = Array.from(new Set([...(enterpriseConnection.domains ?? []), ...verifiedDomainNames]));\n const hasNewDomains = domains.length !== (enterpriseConnection.domains?.length ?? 0);\n if (!hasNewDomains) {\n return;\n }\n\n await updateEnterpriseConnection(enterpriseConnection.id, { domains });\n },\n [enterpriseConnection, updateEnterpriseConnection],\n );\n\n const {\n isLoading: isLoadingOrganizationDomains,\n data: organizationDomains,\n createDomain,\n prepareOwnershipVerification,\n attemptOwnershipVerification,\n revalidate: revalidateDomains,\n } = __internal_useOrganizationDomains({\n enrollmentMode: 'enterprise_sso',\n onOwnershipVerified: handleDomainOwnershipVerified,\n });\n\n const organizationDomainMutations = useMemo<OrganizationDomainMutations>(\n () => ({\n createDomain,\n prepareOwnershipVerification,\n attemptOwnershipVerification,\n revalidate: revalidateDomains,\n }),\n [createDomain, prepareOwnershipVerification, attemptOwnershipVerification, revalidateDomains],\n );\n\n const enterpriseConnectionMutations = useMemo<EnterpriseConnectionMutations>(() => {\n const createConnection: EnterpriseConnectionMutations['createConnection'] = provider => {\n return createEnterpriseConnection({\n provider,\n domains: organizationDomains?.map(domain => domain.name),\n });\n };\n\n const updateConnection: EnterpriseConnectionMutations['updateConnection'] = (id, params) =>\n updateEnterpriseConnection(id, params);\n\n const setConnectionActive: EnterpriseConnectionMutations['setConnectionActive'] = (id, active) =>\n updateEnterpriseConnection(id, { active });\n\n const deleteConnection: EnterpriseConnectionMutations['deleteConnection'] = id => deleteEnterpriseConnection(id);\n\n const createTestRun: EnterpriseConnectionMutations['createTestRun'] = id => {\n // The flow never reaches the test step without an active organization;\n // guard so the fetcher stays well-typed without leaking an `undefined`\n // organization.\n if (!organization) {\n throw new Error(\n 'useOrganizationEnterpriseConnection.createTestRun called before the organization resource was loaded.',\n );\n }\n return organization.createEnterpriseConnectionTestRun(id);\n };\n\n return {\n createConnection,\n updateConnection,\n setConnectionActive,\n deleteConnection,\n createTestRun,\n };\n }, [\n user,\n organization,\n organizationDomains,\n createEnterpriseConnection,\n updateEnterpriseConnection,\n deleteEnterpriseConnection,\n ]);\n\n const testRuns = useMemo<TestRunsView>(\n () => ({\n rows: testRunRows,\n totalCount: testRunTotalCount,\n isLoading: isLoadingTestRuns,\n isFetching: isFetchingTestRuns,\n isPolling: isPollingTestRuns,\n page: testRunPage,\n setPage: setTestRunPage,\n refresh: refreshTestRuns,\n }),\n [\n testRunRows,\n testRunTotalCount,\n isLoadingTestRuns,\n isFetchingTestRuns,\n isPollingTestRuns,\n testRunPage,\n setTestRunPage,\n refreshTestRuns,\n ],\n );\n\n // The single domain entity everything downstream reads decisions from, keyed\n // on the raw inputs so it is only rebuilt when one of them changes.\n const organizationEnterpriseConnection = useMemo<OrganizationEnterpriseConnection>(\n () =>\n buildOrganizationEnterpriseConnection({\n connection: enterpriseConnection,\n hasSuccessfulTestRun,\n }),\n [enterpriseConnection, hasSuccessfulTestRun],\n );\n\n return {\n user,\n session,\n organization,\n // Test-runs gate the full skeleton only when a connection was present at\n // first load — that case fetches them as part of the initial load. On the\n // fresh-start path they stay dormant until the connection is configured, and\n // landing on the test step then shows table-level loading, never the global\n isLoading:\n isLoadingEnterpriseConnections || isLoadingOrganizationDomains || (hadInitialConnection && isLoadingTestRuns),\n enterpriseConnection,\n organizationEnterpriseConnection,\n enterpriseConnectionMutations,\n testRuns,\n organizationDomains,\n organizationDomainMutations,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAsHA,MAAa,4CAAuF;CAClG,MAAM,EACJ,MAAM,uBACN,WAAW,gCACX,4BACA,4BACA,+BACE,gDAAgD,EAAE,SAAS,KAAK,CAAC;CAGrE,MAAM,uBAAuB,wBAAwB;CASrD,MAAM,0BAA0B,OAA4B,MAAS;CACrE,IAAI,wBAAwB,YAAY,UAAa,CAAC,gCACpD,wBAAwB,UAAU,QAAQ,oBAAoB;CAEhE,MAAM,uBAAuB,wBAAwB,YAAY;CAmBjE,MAAM,EACJ,sBACA,WAAW,mBACX,YAAY,oBACZ,MAAM,aACN,YAAY,mBACZ,WAAW,mBACX,MAAM,aACN,SAAS,gBACT,SAAS,oBACP,gCAAgC,sBAZlC,iCAAiC,oBAAoB,KAAK,QAAQ,sBAAsB,MAAM,CAYxB;CAExE,MAAM,EAAE,SAAS,QAAQ;CACzB,MAAM,EAAE,YAAY,WAAW;CAC/B,MAAM,EAAE,iBAAiB,gBAAgB;CAoBzC,MAAM,EACJ,WAAW,8BACX,MAAM,qBACN,cACA,8BACA,8BACA,YAAY,sBACV,kCAAkC;EACpC,gBAAgB;EAChB,qBA3BoC,YACpC,OAAO,oBAAkD;GACvD,IAAI,CAAC,sBACH;GAGF,MAAM,sBAAsB,gBAAgB,KAAI,WAAU,OAAO,IAAI;GACrE,MAAM,UAAU,MAAM,KAAK,IAAI,IAAI,CAAC,GAAI,qBAAqB,WAAW,CAAC,GAAI,GAAG,mBAAmB,CAAC,CAAC;GAErG,IAAI,EADkB,QAAQ,YAAY,qBAAqB,SAAS,UAAU,KAEhF;GAGF,MAAM,2BAA2B,qBAAqB,IAAI,EAAE,QAAQ,CAAC;EACvE,GACA,CAAC,sBAAsB,0BAA0B,CAYA;CACnD,CAAC;CAED,MAAM,8BAA8B,eAC3B;EACL;EACA;EACA;EACA,YAAY;CACd,IACA;EAAC;EAAc;EAA8B;EAA8B;CAAiB,CAC9F;CAEA,MAAM,gCAAgC,cAA6C;EACjF,MAAM,oBAAsE,aAAY;GACtF,OAAO,2BAA2B;IAChC;IACA,SAAS,qBAAqB,KAAI,WAAU,OAAO,IAAI;GACzD,CAAC;EACH;EAEA,MAAM,oBAAuE,IAAI,WAC/E,2BAA2B,IAAI,MAAM;EAEvC,MAAM,uBAA6E,IAAI,WACrF,2BAA2B,IAAI,EAAE,OAAO,CAAC;EAE3C,MAAM,oBAAsE,OAAM,2BAA2B,EAAE;EAE/G,MAAM,iBAAgE,OAAM;GAI1E,IAAI,CAAC,cACH,MAAM,IAAI,MACR,uGACF;GAEF,OAAO,aAAa,kCAAkC,EAAE;EAC1D;EAEA,OAAO;GACL;GACA;GACA;GACA;GACA;EACF;CACF,GAAG;EACD;EACA;EACA;EACA;EACA;EACA;CACF,CAAC;CAED,MAAM,WAAW,eACR;EACL,MAAM;EACN,YAAY;EACZ,WAAW;EACX,YAAY;EACZ,WAAW;EACX,MAAM;EACN,SAAS;EACT,SAAS;CACX,IACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CACF;CAIA,MAAMA,qCAAmC,cAErCC,iCAAsC;EACpC,YAAY;EACZ;CACF,CAAC,GACH,CAAC,sBAAsB,oBAAoB,CAC7C;CAEA,OAAO;EACL;EACA;EACA;EAKA,WACE,kCAAkC,gCAAiC,wBAAwB;EAC7F;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"useOrganizationEnterpriseConnection.js","names":["organizationEnterpriseConnection","buildOrganizationEnterpriseConnection"],"sources":["../../../../src/components/ConfigureSSO/hooks/useOrganizationEnterpriseConnection.ts"],"sourcesContent":["import {\n __internal_useOrganizationDomains,\n __internal_useOrganizationEnterpriseConnections,\n useOrganization,\n useSession,\n useUser,\n} from '@clerk/shared/react';\nimport type {\n DeletedObjectResource,\n EnterpriseConnectionResource,\n EnterpriseConnectionTestRunInitResource,\n EnterpriseConnectionTestRunResource,\n OrganizationDomainResource,\n OrganizationDomainsBulkOwnershipVerificationResource,\n OrganizationResource,\n SignedInSessionResource,\n UpdateOrganizationEnterpriseConnectionParams,\n UserResource,\n} from '@clerk/shared/types';\nimport { useCallback, useMemo, useRef } from 'react';\n\nimport {\n organizationEnterpriseConnection as buildOrganizationEnterpriseConnection,\n isEnterpriseConnectionConfigured,\n type OrganizationEnterpriseConnection,\n} from '../domain/organizationEnterpriseConnection';\nimport type { ProviderType } from '../types';\nimport { type RefreshTestRunsOptions, useEnterpriseConnectionTestRuns } from './useEnterpriseConnectionTestRuns';\n\n/**\n * The full set of enterprise-connection mutations.\n *\n * The org-scoped enterprise-connection FAPI endpoints carry no\n * `EnsureReverification` middleware (that lived on the old `/me` scope), so\n * `session_reverification_required` never fires here and these writes call the\n * underlying handles directly — no `useReverification` wrapping.\n *\n * This surface is intentionally connection-domain only: it carries no wizard,\n * step, or navigation concepts, so it can be lifted into a reusable hook for\n * custom self-serve SSO flows.\n */\nexport interface EnterpriseConnectionMutations {\n /**\n * Creates a new enterprise connection for the active organization. The\n * verified organization domains are sourced from the hook itself, so callers\n * never thread them through.\n */\n createConnection: (provider: ProviderType) => Promise<EnterpriseConnectionResource | undefined>;\n /**\n * Swaps the active organization's connection to a different provider. This removes the existing\n * connection and creates a fresh one.\n */\n changeProvider: (provider: ProviderType) => Promise<EnterpriseConnectionResource | undefined>;\n updateConnection: (\n id: string,\n params: UpdateOrganizationEnterpriseConnectionParams,\n ) => Promise<EnterpriseConnectionResource | undefined>;\n setConnectionActive: (id: string, active: boolean) => Promise<EnterpriseConnectionResource | undefined>;\n deleteConnection: (id: string) => Promise<DeletedObjectResource | undefined>;\n /** Resolves with the test-run URL to open. */\n createTestRun: (id: string) => Promise<EnterpriseConnectionTestRunInitResource>;\n}\n\nexport interface OrganizationDomainMutations {\n createDomain: (name: string) => Promise<OrganizationDomainResource | undefined>;\n prepareOwnershipVerification: (\n domains: OrganizationDomainResource[],\n ) => Promise<OrganizationDomainsBulkOwnershipVerificationResource | undefined>;\n attemptOwnershipVerification: (\n domains: OrganizationDomainResource[],\n ) => Promise<OrganizationDomainsBulkOwnershipVerificationResource | undefined>;\n revalidate: () => Promise<void>;\n}\n\nexport interface UseOrganizationEnterpriseConnectionResult {\n /**\n * Consumers gate the skeleton on this ONE level above the provider so the\n * context never observes loading. Test-runs contribute only when a connection\n * was present at first load; on the fresh-start path they stay dormant until\n * configured, so a mid-flow create never re-flashes the global skeleton.\n */\n isLoading: boolean;\n user: UserResource | null | undefined;\n session: SignedInSessionResource | null | undefined;\n organization: OrganizationResource | null | undefined;\n /** FAPI currently supports a single connection per organization. */\n enterpriseConnection: EnterpriseConnectionResource | undefined;\n /** The domain entity the wizard makes every flow decision from. */\n organizationEnterpriseConnection: OrganizationEnterpriseConnection;\n enterpriseConnectionMutations: EnterpriseConnectionMutations;\n testRuns: TestRunsView;\n organizationDomains: OrganizationDomainResource[] | undefined;\n organizationDomainMutations: OrganizationDomainMutations;\n}\n\n/**\n * The Test step's view onto the single test-run source. Lives on the umbrella\n * hook so the step reads it from context instead of issuing its own fetch.\n */\nexport interface TestRunsView {\n rows: EnterpriseConnectionTestRunResource[];\n totalCount: number;\n /** Cold first load only → drives the full skeleton upstream. */\n isLoading: boolean;\n /** Background list refetch with prior rows kept → table spinner, not skeleton. */\n isFetching: boolean;\n isPolling: boolean;\n page: number;\n setPage: (page: number) => void;\n /** Pass `{ armPolling: true }` after the user kicks off a run. */\n refresh: (options?: RefreshTestRunsOptions) => Promise<unknown>;\n}\n\n/**\n * Umbrella hook for the active organization's enterprise connection. Composes\n * the source query, the domain aggregate, the mutations, and the test-run state\n * into one surface, exposing a single `isLoading` flag so the caller can gate\n * the skeleton above the provider.\n *\n * `__internal_useOrganizationEnterpriseConnections` is the single swappable\n * seam: a future non-org context only swaps this source and everything below\n * stays put.\n */\nexport const useOrganizationEnterpriseConnection = (): UseOrganizationEnterpriseConnectionResult => {\n const {\n data: enterpriseConnections,\n isLoading: isLoadingEnterpriseConnections,\n createEnterpriseConnection,\n updateEnterpriseConnection,\n deleteEnterpriseConnection,\n } = __internal_useOrganizationEnterpriseConnections({ enabled: true });\n\n // FAPI currently supports a single enterprise connection per organization.\n const enterpriseConnection = enterpriseConnections?.[0];\n\n // Whether a connection already existed the first time the source query\n // settled. Captured during render (not in an effect) the first time the query\n // is no longer loading, so it reflects the connection state at *initial load*\n // and is immune to a connection created mid-flow.\n //\n // `undefined` until the first settle; render-phase assignment is safe here —\n // it records a one-time fact about load, it does not sync state to props.\n const hadInitialConnectionRef = useRef<boolean | undefined>(undefined);\n if (hadInitialConnectionRef.current === undefined && !isLoadingEnterpriseConnections) {\n hadInitialConnectionRef.current = Boolean(enterpriseConnection);\n }\n const hadInitialConnection = hadInitialConnectionRef.current === true;\n\n // The test-runs source is relevant exactly when the connection is configured —\n // the same condition that makes the Test step reachable\n // (`hasMinimumConfiguration || isActive`). Deriving activation straight from\n // the connection drops the imperative activate-on-mount ceremony:\n // - existing connection at load → configured (or active) → fires on load,\n // gates the initial skeleton, drives the `tested` guard;\n // - fresh start with no connection, or a connection created but not yet\n // configured → dormant, so a mid-flow create does NOT fire the test-runs\n // queries and flash the global skeleton;\n // - configure completes (`hasMinimumConfiguration`) → fires, surfacing as\n // table-level loading because `hadInitialConnection` is false.\n //\n // Computed from the raw connection (not the built entity, which depends on the\n // test-run probe below — reading it here would be circular).\n const testRunsActive =\n isEnterpriseConnectionConfigured(enterpriseConnection) || Boolean(enterpriseConnection?.active);\n\n const {\n hasSuccessfulTestRun,\n isLoading: isLoadingTestRuns,\n isFetching: isFetchingTestRuns,\n rows: testRunRows,\n totalCount: testRunTotalCount,\n isPolling: isPollingTestRuns,\n page: testRunPage,\n setPage: setTestRunPage,\n refresh: refreshTestRuns,\n } = useEnterpriseConnectionTestRuns(enterpriseConnection, testRunsActive);\n\n const { user } = useUser();\n const { session } = useSession();\n const { organization } = useOrganization();\n\n const handleDomainOwnershipVerified = useCallback(\n async (verifiedDomains: OrganizationDomainResource[]) => {\n if (!enterpriseConnection) {\n return;\n }\n\n const verifiedDomainNames = verifiedDomains.map(domain => domain.name);\n const domains = Array.from(new Set([...(enterpriseConnection.domains ?? []), ...verifiedDomainNames]));\n const hasNewDomains = domains.length !== (enterpriseConnection.domains?.length ?? 0);\n if (!hasNewDomains) {\n return;\n }\n\n await updateEnterpriseConnection(enterpriseConnection.id, { domains });\n },\n [enterpriseConnection, updateEnterpriseConnection],\n );\n\n const {\n isLoading: isLoadingOrganizationDomains,\n data: organizationDomains,\n createDomain,\n prepareOwnershipVerification,\n attemptOwnershipVerification,\n revalidate: revalidateDomains,\n } = __internal_useOrganizationDomains({\n enrollmentMode: 'enterprise_sso',\n onOwnershipVerified: handleDomainOwnershipVerified,\n });\n\n const organizationDomainMutations = useMemo<OrganizationDomainMutations>(\n () => ({\n createDomain,\n prepareOwnershipVerification,\n attemptOwnershipVerification,\n revalidate: revalidateDomains,\n }),\n [createDomain, prepareOwnershipVerification, attemptOwnershipVerification, revalidateDomains],\n );\n\n const enterpriseConnectionMutations = useMemo<EnterpriseConnectionMutations>(() => {\n const createConnection: EnterpriseConnectionMutations['createConnection'] = provider => {\n return createEnterpriseConnection({\n provider,\n domains: organizationDomains?.map(domain => domain.name),\n });\n };\n\n const changeProvider: EnterpriseConnectionMutations['changeProvider'] = async provider => {\n // Currently it's not possible to change the provider of an existing connection,\n // so we need to delete the existing connection and create a new one.\n if (enterpriseConnection) {\n await deleteEnterpriseConnection(enterpriseConnection.id);\n }\n\n const domains = enterpriseConnection?.domains ?? organizationDomains?.map(domain => domain.name);\n\n return createEnterpriseConnection({\n provider,\n domains,\n });\n };\n\n const updateConnection: EnterpriseConnectionMutations['updateConnection'] = (id, params) =>\n updateEnterpriseConnection(id, params);\n\n const setConnectionActive: EnterpriseConnectionMutations['setConnectionActive'] = (id, active) =>\n updateEnterpriseConnection(id, { active });\n\n const deleteConnection: EnterpriseConnectionMutations['deleteConnection'] = id => deleteEnterpriseConnection(id);\n\n const createTestRun: EnterpriseConnectionMutations['createTestRun'] = id => {\n // The flow never reaches the test step without an active organization;\n // guard so the fetcher stays well-typed without leaking an `undefined`\n // organization.\n if (!organization) {\n throw new Error(\n 'useOrganizationEnterpriseConnection.createTestRun called before the organization resource was loaded.',\n );\n }\n return organization.createEnterpriseConnectionTestRun(id);\n };\n\n return {\n createConnection,\n changeProvider,\n updateConnection,\n setConnectionActive,\n deleteConnection,\n createTestRun,\n };\n }, [\n user,\n organization,\n organizationDomains,\n enterpriseConnection,\n createEnterpriseConnection,\n updateEnterpriseConnection,\n deleteEnterpriseConnection,\n ]);\n\n const testRuns = useMemo<TestRunsView>(\n () => ({\n rows: testRunRows,\n totalCount: testRunTotalCount,\n isLoading: isLoadingTestRuns,\n isFetching: isFetchingTestRuns,\n isPolling: isPollingTestRuns,\n page: testRunPage,\n setPage: setTestRunPage,\n refresh: refreshTestRuns,\n }),\n [\n testRunRows,\n testRunTotalCount,\n isLoadingTestRuns,\n isFetchingTestRuns,\n isPollingTestRuns,\n testRunPage,\n setTestRunPage,\n refreshTestRuns,\n ],\n );\n\n // The single domain entity everything downstream reads decisions from, keyed\n // on the raw inputs so it is only rebuilt when one of them changes.\n const organizationEnterpriseConnection = useMemo<OrganizationEnterpriseConnection>(\n () =>\n buildOrganizationEnterpriseConnection({\n connection: enterpriseConnection,\n hasSuccessfulTestRun,\n }),\n [enterpriseConnection, hasSuccessfulTestRun],\n );\n\n return {\n user,\n session,\n organization,\n // Test-runs gate the full skeleton only when a connection was present at\n // first load — that case fetches them as part of the initial load. On the\n // fresh-start path they stay dormant until the connection is configured, and\n // landing on the test step then shows table-level loading, never the global\n isLoading:\n isLoadingEnterpriseConnections || isLoadingOrganizationDomains || (hadInitialConnection && isLoadingTestRuns),\n enterpriseConnection,\n organizationEnterpriseConnection,\n enterpriseConnectionMutations,\n testRuns,\n organizationDomains,\n organizationDomainMutations,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;AA2HA,MAAa,4CAAuF;CAClG,MAAM,EACJ,MAAM,uBACN,WAAW,gCACX,4BACA,4BACA,+BACE,gDAAgD,EAAE,SAAS,KAAK,CAAC;CAGrE,MAAM,uBAAuB,wBAAwB;CASrD,MAAM,0BAA0B,OAA4B,MAAS;CACrE,IAAI,wBAAwB,YAAY,UAAa,CAAC,gCACpD,wBAAwB,UAAU,QAAQ,oBAAoB;CAEhE,MAAM,uBAAuB,wBAAwB,YAAY;CAmBjE,MAAM,EACJ,sBACA,WAAW,mBACX,YAAY,oBACZ,MAAM,aACN,YAAY,mBACZ,WAAW,mBACX,MAAM,aACN,SAAS,gBACT,SAAS,oBACP,gCAAgC,sBAZlC,iCAAiC,oBAAoB,KAAK,QAAQ,sBAAsB,MAAM,CAYxB;CAExE,MAAM,EAAE,SAAS,QAAQ;CACzB,MAAM,EAAE,YAAY,WAAW;CAC/B,MAAM,EAAE,iBAAiB,gBAAgB;CAoBzC,MAAM,EACJ,WAAW,8BACX,MAAM,qBACN,cACA,8BACA,8BACA,YAAY,sBACV,kCAAkC;EACpC,gBAAgB;EAChB,qBA3BoC,YACpC,OAAO,oBAAkD;GACvD,IAAI,CAAC,sBACH;GAGF,MAAM,sBAAsB,gBAAgB,KAAI,WAAU,OAAO,IAAI;GACrE,MAAM,UAAU,MAAM,KAAK,IAAI,IAAI,CAAC,GAAI,qBAAqB,WAAW,CAAC,GAAI,GAAG,mBAAmB,CAAC,CAAC;GAErG,IAAI,EADkB,QAAQ,YAAY,qBAAqB,SAAS,UAAU,KAEhF;GAGF,MAAM,2BAA2B,qBAAqB,IAAI,EAAE,QAAQ,CAAC;EACvE,GACA,CAA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+1,17 @@
|
|
|
1
1
|
import { descriptors } from "../../../../customizables/elementDescriptors.js";
|
|
2
|
+
import { CardStateProvider } from "../../../../elements/contexts/index.js";
|
|
2
3
|
import { Flow } from "../../../../customizables/Flow.js";
|
|
3
4
|
import { useConfigureSSO } from "../../ConfigureSSOContext.js";
|
|
4
5
|
import { Step } from "../../elements/Step.js";
|
|
6
|
+
import { useWizard } from "../../elements/Wizard/WizardContext.js";
|
|
7
|
+
import { Wizard } from "../../elements/Wizard/Wizard.js";
|
|
8
|
+
import { SelectProviderStep } from "../SelectProviderStep.js";
|
|
5
9
|
import { SamlCustomConfigureSteps } from "./saml/SamlCustomConfigureSteps.js";
|
|
6
10
|
import { SamlGoogleConfigureSteps } from "./saml/SamlGoogleConfigureSteps.js";
|
|
7
11
|
import { SamlMicrosoftConfigureSteps } from "./saml/SamlMicrosoftConfigureSteps.js";
|
|
8
12
|
import { SamlOktaConfigureSteps } from "./saml/SamlOktaConfigureSteps.js";
|
|
9
|
-
import "react";
|
|
10
|
-
import { jsx } from "@emotion/react/jsx-runtime";
|
|
13
|
+
import React from "react";
|
|
14
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
11
15
|
|
|
12
16
|
//#region src/components/ConfigureSSO/steps/ConfigureStep/index.tsx
|
|
13
17
|
const STEPS_BY_PROVIDER = {
|
|
@@ -17,6 +21,24 @@ const STEPS_BY_PROVIDER = {
|
|
|
17
21
|
saml_microsoft: SamlMicrosoftConfigureSteps
|
|
18
22
|
};
|
|
19
23
|
const ConfigureStep = () => {
|
|
24
|
+
const { organizationEnterpriseConnection: c } = useConfigureSSO();
|
|
25
|
+
const { direction } = useWizard();
|
|
26
|
+
return /* @__PURE__ */ jsxs(Wizard, {
|
|
27
|
+
steps: React.useMemo(() => [{ id: "select-provider" }, {
|
|
28
|
+
id: "configure-provider",
|
|
29
|
+
guard: () => c.hasConnection
|
|
30
|
+
}], [c]),
|
|
31
|
+
initialStepId: direction === 1 ? "select-provider" : void 0,
|
|
32
|
+
children: [/* @__PURE__ */ jsx(Wizard.Match, {
|
|
33
|
+
id: "select-provider",
|
|
34
|
+
children: /* @__PURE__ */ jsx(CardStateProvider, { children: /* @__PURE__ */ jsx(SelectProviderStep, {}) })
|
|
35
|
+
}), /* @__PURE__ */ jsx(Wizard.Match, {
|
|
36
|
+
id: "configure-provider",
|
|
37
|
+
children: /* @__PURE__ */ jsx(CardStateProvider, { children: /* @__PURE__ */ jsx(ConfigureProviderStep, {}) })
|
|
38
|
+
})]
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
const ConfigureProviderStep = () => {
|
|
20
42
|
const { organizationEnterpriseConnection: c } = useConfigureSSO();
|
|
21
43
|
if (!c.provider) return null;
|
|
22
44
|
const StepsByProvider = STEPS_BY_PROVIDER[c.provider];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/ConfigureSSO/steps/ConfigureStep/index.tsx"],"sourcesContent":["import { type JSX } from 'react';\n\nimport { descriptors, Flow } from '@/customizables';\n\nimport { useConfigureSSO } from '../../ConfigureSSOContext';\nimport { Step } from '../../elements/Step';\nimport type { ProviderType } from '../../types';\nimport {\n SamlCustomConfigureSteps,\n SamlGoogleConfigureSteps,\n SamlMicrosoftConfigureSteps,\n SamlOktaConfigureSteps,\n} from './saml';\n\nconst STEPS_BY_PROVIDER: Record<ProviderType, () => JSX.Element> = {\n saml_custom: SamlCustomConfigureSteps,\n saml_okta: SamlOktaConfigureSteps,\n saml_google: SamlGoogleConfigureSteps,\n saml_microsoft: SamlMicrosoftConfigureSteps,\n};\n\nexport const ConfigureStep = (): JSX.Element | null => {\n const { organizationEnterpriseConnection: c } = useConfigureSSO();\n\n // Type guard: the provider should be defined by the time we reach configure.\n if (!c.provider) {\n return null;\n }\n\n // Adding a provider to the select step without a mapping here fails the build.\n const StepsByProvider = STEPS_BY_PROVIDER[c.provider];\n\n if (!StepsByProvider) {\n throw new Error(`No steps found for provider: ${c.provider}`);\n }\n\n return (\n <Flow.Part part='configureCreateApp'>\n <Step\n elementDescriptor={descriptors.configureSSOStep}\n elementId={descriptors.configureSSOStep.setId('configure')}\n >\n <StepsByProvider />\n </Step>\n </Flow.Part>\n );\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/ConfigureSSO/steps/ConfigureStep/index.tsx"],"sourcesContent":["import React, { type JSX } from 'react';\n\nimport { descriptors, Flow } from '@/customizables';\nimport { CardStateProvider } from '@/elements/contexts';\n\nimport { useConfigureSSO } from '../../ConfigureSSOContext';\nimport { Step } from '../../elements/Step';\nimport { useWizard, Wizard, type WizardStepConfig } from '../../elements/Wizard';\nimport type { ProviderType } from '../../types';\nimport { SelectProviderStep } from '../SelectProviderStep';\nimport {\n SamlCustomConfigureSteps,\n SamlGoogleConfigureSteps,\n SamlMicrosoftConfigureSteps,\n SamlOktaConfigureSteps,\n} from './saml';\n\nconst STEPS_BY_PROVIDER: Record<ProviderType, () => JSX.Element> = {\n saml_custom: SamlCustomConfigureSteps,\n saml_okta: SamlOktaConfigureSteps,\n saml_google: SamlGoogleConfigureSteps,\n saml_microsoft: SamlMicrosoftConfigureSteps,\n};\n\nexport const ConfigureStep = (): JSX.Element => {\n const { organizationEnterpriseConnection: c } = useConfigureSSO();\n const { direction } = useWizard();\n\n const steps = React.useMemo<WizardStepConfig[]>(\n () => [{ id: 'select-provider' }, { id: 'configure-provider', guard: () => c.hasConnection }],\n [c],\n );\n\n const initialStepId = direction === 1 ? 'select-provider' : undefined;\n\n return (\n <Wizard\n steps={steps}\n initialStepId={initialStepId}\n >\n <Wizard.Match id='select-provider'>\n <CardStateProvider>\n <SelectProviderStep />\n </CardStateProvider>\n </Wizard.Match>\n\n <Wizard.Match id='configure-provider'>\n <CardStateProvider>\n <ConfigureProviderStep />\n </CardStateProvider>\n </Wizard.Match>\n </Wizard>\n );\n};\n\nconst ConfigureProviderStep = (): JSX.Element | null => {\n const { organizationEnterpriseConnection: c } = useConfigureSSO();\n\n // Type guard: the provider should be defined by the time we reach configure.\n if (!c.provider) {\n return null;\n }\n\n // Adding a provider to the select step without a mapping here fails the build.\n const StepsByProvider = STEPS_BY_PROVIDER[c.provider];\n\n if (!StepsByProvider) {\n throw new Error(`No steps found for provider: ${c.provider}`);\n }\n\n return (\n <Flow.Part part='configureCreateApp'>\n <Step\n elementDescriptor={descriptors.configureSSOStep}\n elementId={descriptors.configureSSOStep.setId('configure')}\n >\n <StepsByProvider />\n </Step>\n </Flow.Part>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAiBA,MAAM,oBAA6D;CACjE,aAAa;CACb,WAAW;CACX,aAAa;CACb,gBAAgB;AAClB;AAEA,MAAa,sBAAmC;CAC9C,MAAM,EAAE,kCAAkC,MAAM,gBAAgB;CAChE,MAAM,EAAE,cAAc,UAAU;CAShC,OACE,qBAAC,QAAD;EACE,OATU,MAAM,cACZ,CAAC,EAAE,IAAI,kBAAkB,GAAG;GAAE,IAAI;GAAsB,aAAa,EAAE;EAAc,CAAC,GAC5F,CAAC,CAAC,CAOW;EACX,eALkB,cAAc,IAAI,oBAAoB;YAG1D,CAIE,oBAAC,OAAO,OAAR;GAAc,IAAG;aACf,oBAAC,mBAAD,YACE,oBAAC,oBAAD,CAAqB,GACJ;EACP,IAEd,oBAAC,OAAO,OAAR;GAAc,IAAG;aACf,oBAAC,mBAAD,YACE,oBAAC,uBAAD,CAAwB,GACP;EACP,EACR;;AAEZ;AAEA,MAAM,8BAAkD;CACtD,MAAM,EAAE,kCAAkC,MAAM,gBAAgB;CAGhE,IAAI,CAAC,EAAE,UACL,OAAO;CAIT,MAAM,kBAAkB,kBAAkB,EAAE;CAE5C,IAAI,CAAC,iBACH,MAAM,IAAI,MAAM,gCAAgC,EAAE,UAAU;CAG9D,OACE,oBAAC,KAAK,MAAN;EAAW,MAAK;YACd,oBAAC,MAAD;GACE,mBAAmB,YAAY;GAC/B,WAAW,YAAY,iBAAiB,MAAM,WAAW;aAEzD,oBAAC,iBAAD,CAAkB;EACd;CACG;AAEf"}
|
|
@@ -4,7 +4,7 @@ import SvgClipboard from "../../../../../icons/clipboard.js";
|
|
|
4
4
|
import { useFormControl } from "../../../../../utils/useFormControl.js";
|
|
5
5
|
import { descriptors } from "../../../../../customizables/elementDescriptors.js";
|
|
6
6
|
import { useCardState } from "../../../../../elements/contexts/index.js";
|
|
7
|
-
import { Badge, Col, Flex,
|
|
7
|
+
import { Badge, Col, Flex, Table, Tbody, Td, Text, Th, Thead, Tr } from "../../../../../customizables/index.js";
|
|
8
8
|
import { Form } from "../../../../../elements/Form.js";
|
|
9
9
|
import { ClipboardInput } from "../../../../../elements/ClipboardInput.js";
|
|
10
10
|
import { useConfigureSSO } from "../../../ConfigureSSOContext.js";
|
|
@@ -72,18 +72,13 @@ const SamlCustomCreateAppStep = () => {
|
|
|
72
72
|
/* @__PURE__ */ jsx(Step.Body, { children: /* @__PURE__ */ jsxs(Step.Section, {
|
|
73
73
|
sx: (theme) => ({ gap: theme.space.$5 }),
|
|
74
74
|
children: [
|
|
75
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ jsx(Col, {
|
|
76
76
|
sx: (theme) => ({ gap: theme.space.$1x5 }),
|
|
77
|
-
children:
|
|
78
|
-
elementDescriptor: descriptors.configureSSOInstructionsHeading,
|
|
79
|
-
as: "h3",
|
|
80
|
-
textVariant: "subtitle",
|
|
81
|
-
localizationKey: localizationKeys("configureSSO.configureStep.samlCustom.createAppStep.createAppInstructions.title")
|
|
82
|
-
}), /* @__PURE__ */ jsx(Text, {
|
|
77
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
83
78
|
as: "p",
|
|
84
79
|
colorScheme: "secondary",
|
|
85
80
|
localizationKey: localizationKeys("configureSSO.configureStep.samlCustom.createAppStep.createAppInstructions.paragraph")
|
|
86
|
-
})
|
|
81
|
+
})
|
|
87
82
|
}),
|
|
88
83
|
/* @__PURE__ */ jsx(Form.ControlRow, {
|
|
89
84
|
elementId: acsUrlField.id,
|
|
@@ -172,10 +167,10 @@ const CustomAttributeMappingTable = () => /* @__PURE__ */ jsxs(Table, {
|
|
|
172
167
|
sx: (theme) => ({ "tr > th:first-of-type": { paddingInlineStart: theme.space.$4 } }),
|
|
173
168
|
children: [/* @__PURE__ */ jsx(Thead, { children: /* @__PURE__ */ jsxs(Tr, { children: [/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Text, {
|
|
174
169
|
sx: (theme) => ({ fontSize: theme.fontSizes.$xs }),
|
|
175
|
-
localizationKey: localizationKeys("configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.columns.
|
|
170
|
+
localizationKey: localizationKeys("configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.columns.attributeName")
|
|
176
171
|
}) }), /* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Text, {
|
|
177
172
|
sx: (theme) => ({ fontSize: theme.fontSizes.$xs }),
|
|
178
|
-
localizationKey: localizationKeys("configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.columns.
|
|
173
|
+
localizationKey: localizationKeys("configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.columns.userAttribute")
|
|
179
174
|
}) })] }) }), /* @__PURE__ */ jsx(Tbody, { children: CUSTOM_ATTRIBUTE_ROWS.map((row) => /* @__PURE__ */ jsxs(Tr, { children: [/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsxs(Flex, {
|
|
180
175
|
as: "span",
|
|
181
176
|
align: "center",
|
|
@@ -183,7 +178,8 @@ const CustomAttributeMappingTable = () => /* @__PURE__ */ jsxs(Table, {
|
|
|
183
178
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
184
179
|
as: "span",
|
|
185
180
|
colorScheme: "secondary",
|
|
186
|
-
|
|
181
|
+
sx: { fontFamily: "monospace" },
|
|
182
|
+
localizationKey: localizationKeys(`configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.rows.${row.id}.userAttribute`)
|
|
187
183
|
}), /* @__PURE__ */ jsx(Badge, {
|
|
188
184
|
elementDescriptor: descriptors.configureSSOAttributeMappingBadge,
|
|
189
185
|
elementId: descriptors.configureSSOAttributeMappingBadge.setId(row.isRequired ? "required" : "optional"),
|
|
@@ -192,7 +188,6 @@ const CustomAttributeMappingTable = () => /* @__PURE__ */ jsxs(Table, {
|
|
|
192
188
|
})]
|
|
193
189
|
}) }), /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Text, {
|
|
194
190
|
as: "span",
|
|
195
|
-
sx: { fontFamily: "monospace" },
|
|
196
191
|
localizationKey: localizationKeys(`configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.rows.${row.id}.attributeName`)
|
|
197
192
|
}) })] }, row.id)) })]
|
|
198
193
|
});
|
|
@@ -204,18 +199,13 @@ const SamlCustomAssignUsersStep = () => {
|
|
|
204
199
|
description: localizationKeys("configureSSO.configureStep.samlCustom.assignUsersStep.headerSubtitle"),
|
|
205
200
|
children: /* @__PURE__ */ jsx(InnerStepCounter, {})
|
|
206
201
|
}),
|
|
207
|
-
/* @__PURE__ */ jsx(Step.Body, { children: /* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ jsx(Step.Body, { children: /* @__PURE__ */ jsx(Step.Section, {
|
|
208
203
|
sx: (theme) => ({ gap: theme.space.$3 }),
|
|
209
|
-
children:
|
|
210
|
-
elementDescriptor: descriptors.configureSSOInstructionsHeading,
|
|
211
|
-
as: "h3",
|
|
212
|
-
textVariant: "subtitle",
|
|
213
|
-
localizationKey: localizationKeys("configureSSO.configureStep.samlCustom.assignUsersStep.title")
|
|
214
|
-
}), /* @__PURE__ */ jsx(Text, {
|
|
204
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
215
205
|
as: "p",
|
|
216
206
|
colorScheme: "secondary",
|
|
217
207
|
localizationKey: localizationKeys("configureSSO.configureStep.samlCustom.assignUsersStep.paragraph")
|
|
218
|
-
})
|
|
208
|
+
})
|
|
219
209
|
}) }),
|
|
220
210
|
/* @__PURE__ */ jsxs(Step.Footer, { children: [
|
|
221
211
|
/* @__PURE__ */ jsx(Step.Footer.Reset, {}),
|
|
@@ -322,28 +312,19 @@ const SamlCustomIdentityProviderMetadataStep = () => {
|
|
|
322
312
|
/* @__PURE__ */ jsx(Step.Body, { children: /* @__PURE__ */ jsxs(Step.Section, {
|
|
323
313
|
fill: true,
|
|
324
314
|
gap: 5,
|
|
325
|
-
children: [
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
},
|
|
339
|
-
labels: {
|
|
340
|
-
ariaLabel: localizationKeys("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.ariaLabel"),
|
|
341
|
-
metadataUrl: localizationKeys("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.metadataUrl"),
|
|
342
|
-
manual: localizationKeys("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.manual")
|
|
343
|
-
}
|
|
344
|
-
}),
|
|
345
|
-
/* @__PURE__ */ jsx(IdentityProviderConfigurationForm, { ...formProps })
|
|
346
|
-
]
|
|
315
|
+
children: [/* @__PURE__ */ jsx(IdentityProviderConfigurationModes, {
|
|
316
|
+
modes: CUSTOM_SAML_IDP_MODES,
|
|
317
|
+
value: mode,
|
|
318
|
+
onChange: (next) => {
|
|
319
|
+
card.setError(void 0);
|
|
320
|
+
setMode(next);
|
|
321
|
+
},
|
|
322
|
+
labels: {
|
|
323
|
+
ariaLabel: localizationKeys("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.ariaLabel"),
|
|
324
|
+
metadataUrl: localizationKeys("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.metadataUrl"),
|
|
325
|
+
manual: localizationKeys("configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.manual")
|
|
326
|
+
}
|
|
327
|
+
}), /* @__PURE__ */ jsx(IdentityProviderConfigurationForm, { ...formProps })]
|
|
347
328
|
}) }),
|
|
348
329
|
/* @__PURE__ */ jsxs(Step.Footer, { children: [
|
|
349
330
|
/* @__PURE__ */ jsx(Step.Footer.Reset, {}),
|
package/dist/components/ConfigureSSO/steps/ConfigureStep/saml/SamlCustomConfigureSteps.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SamlCustomConfigureSteps.js","names":["Clipboard","Checkmark"],"sources":["../../../../../../src/components/ConfigureSSO/steps/ConfigureStep/saml/SamlCustomConfigureSteps.tsx"],"sourcesContent":["import React, { type JSX } from 'react';\n\nimport {\n Badge,\n Col,\n descriptors,\n Flex,\n Heading,\n localizationKeys,\n Table,\n Tbody,\n Td,\n Text,\n Th,\n Thead,\n Tr,\n} from '@/customizables';\nimport { ClipboardInput } from '@/elements/ClipboardInput';\nimport { useCardState } from '@/elements/contexts';\nimport { Form } from '@/elements/Form';\nimport { Checkmark, Clipboard } from '@/icons';\nimport { useFormControl } from '@/ui/utils/useFormControl';\n\nimport { useConfigureSSO } from '../../../ConfigureSSOContext';\nimport { Step } from '../../../elements/Step';\nimport { useWizard, Wizard, type WizardStepConfig } from '../../../elements/Wizard';\nimport { InnerStepCounter } from '../../../elements/Wizard/InnerStepCounter';\nimport {\n applySamlSubmitError,\n buildSamlConfigurationPayload,\n IdentityProviderConfigurationForm,\n type IdentityProviderConfigurationFormProps,\n} from './shared/IdentityProviderConfigurationForm';\nimport {\n IdentityProviderConfigurationModes,\n type IdpConfigurationMode,\n} from './shared/IdentityProviderConfigurationModes';\n\nconst CUSTOM_STEPS: WizardStepConfig[] = [\n { id: 'create-app' },\n { id: 'attribute-mapping' },\n { id: 'assign-users' },\n { id: 'identity-provider-metadata' },\n];\n\nexport const SamlCustomConfigureSteps = (): JSX.Element => {\n return (\n // Linear, guard-less sub-flow: mount on the first step. (Entry guards drive\n // furthest-reachable init, which would otherwise land the last step here.)\n <Wizard\n steps={CUSTOM_STEPS}\n initialStepId={CUSTOM_STEPS[0].id}\n >\n <Wizard.Match id='create-app'>\n <SamlCustomCreateAppStep />\n </Wizard.Match>\n\n <Wizard.Match id='attribute-mapping'>\n <SamlCustomAttributeMappingStep />\n </Wizard.Match>\n\n <Wizard.Match id='assign-users'>\n <SamlCustomAssignUsersStep />\n </Wizard.Match>\n\n <Wizard.Match id='identity-provider-metadata'>\n <SamlCustomIdentityProviderMetadataStep />\n </Wizard.Match>\n </Wizard>\n );\n};\n\nconst SamlCustomCreateAppStep = (): JSX.Element => {\n const { goNext, goPrev, isFirstStep, isLastStep } = useWizard();\n const { enterpriseConnection } = useConfigureSSO();\n\n const acsUrl = enterpriseConnection?.samlConnection?.acsUrl ?? '';\n const spEntityId = enterpriseConnection?.samlConnection?.spEntityId ?? '';\n\n const acsUrlField = useFormControl('acsUrl', acsUrl, {\n type: 'text',\n label: localizationKeys('configureSSO.configureStep.samlCustom.createAppStep.serviceProviderFields.acsUrl.label'),\n isRequired: false,\n });\n const spEntityIdField = useFormControl('spEntityId', spEntityId, {\n type: 'text',\n label: localizationKeys(\n 'configureSSO.configureStep.samlCustom.createAppStep.serviceProviderFields.spEntityId.label',\n ),\n isRequired: false,\n });\n\n return (\n <>\n <Step.Header\n title={localizationKeys('configureSSO.configureStep.samlCustom.mainHeaderTitle')}\n description={localizationKeys('configureSSO.configureStep.samlCustom.createAppStep.headerSubtitle')}\n >\n <InnerStepCounter />\n </Step.Header>\n\n <Step.Body>\n <Step.Section sx={theme => ({ gap: theme.space.$5 })}>\n <Col sx={theme => ({ gap: theme.space.$1x5 })}>\n <Heading\n elementDescriptor={descriptors.configureSSOInstructionsHeading}\n as='h3'\n textVariant='subtitle'\n localizationKey={localizationKeys(\n 'configureSSO.configureStep.samlCustom.createAppStep.createAppInstructions.title',\n )}\n />\n <Text\n as='p'\n colorScheme='secondary'\n localizationKey={localizationKeys(\n 'configureSSO.configureStep.samlCustom.createAppStep.createAppInstructions.paragraph',\n )}\n />\n </Col>\n\n <Form.ControlRow elementId={acsUrlField.id}>\n <Form.CommonInputWrapper {...acsUrlField.props}>\n <ClipboardInput\n value={acsUrl}\n readOnly\n copyIcon={Clipboard}\n copiedIcon={Checkmark}\n />\n </Form.CommonInputWrapper>\n </Form.ControlRow>\n\n <Form.ControlRow elementId={spEntityIdField.id}>\n <Form.CommonInputWrapper {...spEntityIdField.props}>\n <ClipboardInput\n value={spEntityId}\n readOnly\n copyIcon={Clipboard}\n copiedIcon={Checkmark}\n />\n </Form.CommonInputWrapper>\n </Form.ControlRow>\n </Step.Section>\n </Step.Body>\n\n <Step.Footer>\n <Step.Footer.Reset />\n <Step.Footer.Previous\n onClick={() => goPrev()}\n isDisabled={isFirstStep}\n />\n <Step.Footer.Continue\n onClick={() => goNext()}\n isDisabled={isLastStep}\n />\n </Step.Footer>\n </>\n );\n};\n\nconst SamlCustomAttributeMappingStep = (): JSX.Element => {\n const { goNext, goPrev, isFirstStep, isLastStep } = useWizard();\n\n return (\n <>\n <Step.Header\n title={localizationKeys('configureSSO.configureStep.samlCustom.mainHeaderTitle')}\n description={localizationKeys('configureSSO.configureStep.samlCustom.attributeMappingStep.headerSubtitle')}\n >\n <InnerStepCounter />\n </Step.Header>\n\n <Step.Body>\n <Step.Section sx={theme => ({ gap: theme.space.$3 })}>\n <Text\n as='p'\n colorScheme='secondary'\n localizationKey={localizationKeys('configureSSO.configureStep.samlCustom.attributeMappingStep.paragraph')}\n />\n\n <CustomAttributeMappingTable />\n </Step.Section>\n </Step.Body>\n\n <Step.Footer>\n <Step.Footer.Reset />\n <Step.Footer.Previous\n onClick={() => goPrev()}\n isDisabled={isFirstStep}\n />\n <Step.Footer.Continue\n onClick={() => goNext()}\n isDisabled={isLastStep}\n />\n </Step.Footer>\n </>\n );\n};\n\ntype CustomAttributeRow = {\n id: 'email' | 'firstName' | 'lastName';\n isRequired: boolean;\n};\n\nconst CUSTOM_ATTRIBUTE_ROWS: ReadonlyArray<CustomAttributeRow> = [\n { id: 'email', isRequired: true },\n { id: 'firstName', isRequired: false },\n { id: 'lastName', isRequired: false },\n];\n\nconst CustomAttributeMappingTable = (): JSX.Element => (\n <Table\n elementDescriptor={descriptors.configureSSOAttributeMappingTable}\n sx={theme => ({\n 'tr > th:first-of-type': { paddingInlineStart: theme.space.$4 },\n })}\n >\n <Thead>\n <Tr>\n <Th>\n <Text\n sx={theme => ({ fontSize: theme.fontSizes.$xs })}\n localizationKey={localizationKeys(\n 'configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.columns.userProfile',\n )}\n />\n </Th>\n <Th>\n <Text\n sx={theme => ({ fontSize: theme.fontSizes.$xs })}\n localizationKey={localizationKeys(\n 'configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.columns.attributeName',\n )}\n />\n </Th>\n </Tr>\n </Thead>\n <Tbody>\n {CUSTOM_ATTRIBUTE_ROWS.map(row => (\n <Tr key={row.id}>\n <Td>\n <Flex\n as='span'\n align='center'\n sx={theme => ({ gap: theme.space.$2 })}\n >\n <Text\n as='span'\n colorScheme='secondary'\n localizationKey={localizationKeys(\n `configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.rows.${row.id}.userProfile`,\n )}\n />\n <Badge\n elementDescriptor={descriptors.configureSSOAttributeMappingBadge}\n elementId={descriptors.configureSSOAttributeMappingBadge.setId(\n row.isRequired ? 'required' : 'optional',\n )}\n colorScheme={row.isRequired ? 'warning' : 'primary'}\n localizationKey={localizationKeys(\n row.isRequired\n ? 'configureSSO.configureStep.attributeMappingTable.badges.required'\n : 'configureSSO.configureStep.attributeMappingTable.badges.optional',\n )}\n />\n </Flex>\n </Td>\n <Td>\n <Text\n as='span'\n sx={{ fontFamily: 'monospace' }}\n localizationKey={localizationKeys(\n `configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.rows.${row.id}.attributeName`,\n )}\n />\n </Td>\n </Tr>\n ))}\n </Tbody>\n </Table>\n);\n\nconst SamlCustomAssignUsersStep = (): JSX.Element => {\n const { goNext, goPrev, isFirstStep, isLastStep } = useWizard();\n\n return (\n <>\n <Step.Header\n title={localizationKeys('configureSSO.configureStep.samlCustom.mainHeaderTitle')}\n description={localizationKeys('configureSSO.configureStep.samlCustom.assignUsersStep.headerSubtitle')}\n >\n <InnerStepCounter />\n </Step.Header>\n\n <Step.Body>\n <Step.Section sx={theme => ({ gap: theme.space.$3 })}>\n <Heading\n elementDescriptor={descriptors.configureSSOInstructionsHeading}\n as='h3'\n textVariant='subtitle'\n localizationKey={localizationKeys('configureSSO.configureStep.samlCustom.assignUsersStep.title')}\n />\n <Text\n as='p'\n colorScheme='secondary'\n localizationKey={localizationKeys('configureSSO.configureStep.samlCustom.assignUsersStep.paragraph')}\n />\n </Step.Section>\n </Step.Body>\n\n <Step.Footer>\n <Step.Footer.Reset />\n <Step.Footer.Previous\n onClick={() => goPrev()}\n isDisabled={isFirstStep}\n />\n <Step.Footer.Continue\n onClick={() => goNext()}\n isDisabled={isLastStep}\n />\n </Step.Footer>\n </>\n );\n};\n\nconst CUSTOM_SAML_IDP_MODES = ['metadataUrl', 'manual'] as const satisfies readonly IdpConfigurationMode[];\n\nconst SamlCustomIdentityProviderMetadataStep = (): JSX.Element => {\n const card = useCardState();\n const { goNext, goPrev, isFirstStep } = useWizard();\n const {\n enterpriseConnection,\n enterpriseConnectionMutations: { updateConnection },\n } = useConfigureSSO();\n\n const samlConnection = enterpriseConnection?.samlConnection;\n const hasExistingConfig = Boolean(\n samlConnection?.idpSsoUrl ||\n samlConnection?.idpEntityId ||\n samlConnection?.idpCertificate ||\n samlConnection?.idpMetadataUrl,\n );\n const existingCertPresent = Boolean(samlConnection?.idpCertificate);\n\n const [mode, setMode] = React.useState<IdpConfigurationMode>(hasExistingConfig ? 'manual' : 'metadataUrl');\n const [certFile, setCertFile] = React.useState<File | null>(null);\n // Step-LOCAL submit state for the Continue button. `goNext` bubbles to the\n // parent (this is the terminal nested step) and the parent DEFERS the\n // configure→test advance until the updateConnection revalidate lands. Keeping\n // the loading local — and NOT resetting it on success — holds the button\n // loading straight through that deferred transition; the advance unmounts this\n // nested step, ending the loading with no idle flash on the shared card.\n const [isSubmitting, setIsSubmitting] = React.useState(false);\n\n const metadataUrlField = useFormControl('idpMetadataUrl', samlConnection?.idpMetadataUrl ?? '', {\n type: 'text',\n label: localizationKeys('configureSSO.configureStep.samlCustom.identityProviderMetadataStep.metadataUrl.label'),\n placeholder: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.metadataUrl.placeholder',\n ),\n isRequired: true,\n });\n\n const signOnUrlField = useFormControl('idpSsoUrl', samlConnection?.idpSsoUrl ?? '', {\n type: 'text',\n label: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signOnUrl.label',\n ),\n placeholder: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signOnUrl.placeholder',\n ),\n isRequired: true,\n });\n\n const issuerField = useFormControl('idpEntityId', samlConnection?.idpEntityId ?? '', {\n type: 'text',\n label: localizationKeys('configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.issuer.label'),\n placeholder: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.issuer.placeholder',\n ),\n isRequired: true,\n });\n\n const certificateField = useFormControl('idpCertificate', '', {\n type: 'text',\n label: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signingCertificate.label',\n ),\n isRequired: true,\n });\n\n const trimmedMetadataUrl = metadataUrlField.value.trim();\n const trimmedSignOnUrl = signOnUrlField.value.trim();\n const trimmedIssuer = issuerField.value.trim();\n const hasCert = certFile !== null || existingCertPresent;\n\n const isValid =\n mode === 'metadataUrl'\n ? trimmedMetadataUrl.length > 0\n : trimmedSignOnUrl.length > 0 && trimmedIssuer.length > 0 && hasCert;\n\n const canSubmit = isValid && !isSubmitting;\n\n const formProps: IdentityProviderConfigurationFormProps =\n mode === 'metadataUrl'\n ? {\n mode: 'metadataUrl',\n form: { field: metadataUrlField },\n labels: {\n description: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.metadataUrl.description',\n ),\n },\n }\n : {\n mode: 'manual',\n form: {\n signOnUrlField,\n issuerField,\n certificateField,\n certFile,\n onCertFileChange: setCertFile,\n existingCertPresent,\n },\n labels: {\n description: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.description',\n ),\n uploadFile: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signingCertificate.uploadFile',\n ),\n replaceFile: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signingCertificate.replaceFile',\n ),\n removeFile: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signingCertificate.removeFile',\n ),\n fileUploaded: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signingCertificate.fileUploaded',\n ),\n },\n };\n\n const handleContinue = async (): Promise<void> => {\n if (!enterpriseConnection || !canSubmit) {\n return;\n }\n\n card.setError(undefined);\n setIsSubmitting(true);\n\n try {\n const saml = await buildSamlConfigurationPayload({\n mode,\n metadataUrl: { value: metadataUrlField.value },\n manual: { signOnUrl: signOnUrlField.value, issuer: issuerField.value, certFile },\n });\n\n await updateConnection(enterpriseConnection.id, { saml });\n // `goNext` bubbles to the parent, which DEFERS the advance to `test` until\n // the revalidate lands. The button STAYS loading and this nested step\n // unmounts when that deferred advance resolves — do NOT reset on success.\n void goNext();\n } catch (err) {\n if (mode === 'metadataUrl') {\n applySamlSubmitError(err, card, metadataUrlField);\n } else {\n applySamlSubmitError(err, card, signOnUrlField, [issuerField, certificateField]);\n }\n // Re-enable ONLY on error — there is no advance to unmount the button.\n setIsSubmitting(false);\n }\n };\n\n return (\n <>\n <Step.Header\n title={localizationKeys('configureSSO.configureStep.samlCustom.mainHeaderTitle')}\n description={localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.headerSubtitle',\n )}\n >\n <InnerStepCounter />\n </Step.Header>\n\n <Step.Body>\n <Step.Section\n fill\n gap={5}\n >\n <Heading\n elementDescriptor={descriptors.configureSSOInstructionsHeading}\n as='h3'\n textVariant='subtitle'\n localizationKey={localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.title',\n )}\n />\n <IdentityProviderConfigurationModes\n modes={CUSTOM_SAML_IDP_MODES}\n value={mode}\n onChange={next => {\n card.setError(undefined);\n setMode(next);\n }}\n labels={{\n ariaLabel: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.ariaLabel',\n ),\n metadataUrl: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.metadataUrl',\n ),\n manual: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.manual',\n ),\n }}\n />\n <IdentityProviderConfigurationForm {...formProps} />\n </Step.Section>\n </Step.Body>\n\n <Step.Footer>\n <Step.Footer.Reset />\n <Step.Footer.Previous\n onClick={() => goPrev()}\n isDisabled={isFirstStep || isSubmitting}\n />\n <Step.Footer.Continue\n onClick={handleContinue}\n isLoading={isSubmitting}\n isDisabled={!canSubmit}\n />\n </Step.Footer>\n </>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsCA,MAAM,eAAmC;CACvC,EAAE,IAAI,aAAa;CACnB,EAAE,IAAI,oBAAoB;CAC1B,EAAE,IAAI,eAAe;CACrB,EAAE,IAAI,6BAA6B;AACrC;AAEA,MAAa,iCAA8C;CACzD,OAGE,qBAAC,QAAD;EACE,OAAO;EACP,eAAe,aAAa,EAAE,CAAC;YAFjC;GAIE,oBAAC,OAAO,OAAR;IAAc,IAAG;cACf,oBAAC,yBAAD,CAA0B;GACd;GAEd,oBAAC,OAAO,OAAR;IAAc,IAAG;cACf,oBAAC,gCAAD,CAAiC;GAC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BAAgB,KAAK;EACvB;CACF;CAEA,OACE;EACE,oBAAC,KAAK,QAAN;GACE,OAAO,iBAAiB,uDAAuD;GAC/E,aAAa,iBACX,mFACF;aAEA,oBAAC,kBAAD,CAAmB;EACR;EAEb,oBAAC,KAAK,MAAN,YACE,qBAAC,KAAK,SAAN;GACE;GACA,KAAK;aAFP;IAIE,oBAAC,SAAD;KACE,mBAAmB,YAAY;KAC/B,IAAG;KACH,aAAY;KACZ,iBAAiB,iBACf,gFACF;IACD;IACD,oBAAC,oCAAD;KACE,OAAO;KACP,OAAO;KACP,WAAU,SAAQ;MAChB,KAAK,SAAS,MAAS;MACvB,QAAQ,IAAI;KACd;KACA,QAAQ;MACN,WAAW,iBACT,oFACF;MACA,aAAa,iBACX,sFACF;MACA,QAAQ,iBACN,iFACF;KACF;IACD;IACD,oBAAC,mCAAD,EAAmC,GAAI,UAAY;GACvC;KACL;EAEX,qBAAC,KAAK,QAAN;GACE,oBAAC,KAAK,OAAO,OAAb,CAAoB;GACpB,oBAAC,KAAK,OAAO,UAAb;IACE,eAAe,OAAO;IACtB,YAAY,eAAe;GAC5B;GACD,oBAAC,KAAK,OAAO,UAAb;IACE,SAAS;IACT,WAAW;IACX,YAAY,CAAC;GACd;EACU;CACb;AAEN"}
|
|
1
|
+
{"version":3,"file":"SamlCustomConfigureSteps.js","names":["Clipboard","Checkmark"],"sources":["../../../../../../src/components/ConfigureSSO/steps/ConfigureStep/saml/SamlCustomConfigureSteps.tsx"],"sourcesContent":["import React, { type JSX } from 'react';\n\nimport {\n Badge,\n Col,\n descriptors,\n Flex,\n localizationKeys,\n Table,\n Tbody,\n Td,\n Text,\n Th,\n Thead,\n Tr,\n} from '@/customizables';\nimport { ClipboardInput } from '@/elements/ClipboardInput';\nimport { useCardState } from '@/elements/contexts';\nimport { Form } from '@/elements/Form';\nimport { Checkmark, Clipboard } from '@/icons';\nimport { useFormControl } from '@/ui/utils/useFormControl';\n\nimport { useConfigureSSO } from '../../../ConfigureSSOContext';\nimport { Step } from '../../../elements/Step';\nimport { useWizard, Wizard, type WizardStepConfig } from '../../../elements/Wizard';\nimport { InnerStepCounter } from '../../../elements/Wizard/InnerStepCounter';\nimport {\n applySamlSubmitError,\n buildSamlConfigurationPayload,\n IdentityProviderConfigurationForm,\n type IdentityProviderConfigurationFormProps,\n} from './shared/IdentityProviderConfigurationForm';\nimport {\n IdentityProviderConfigurationModes,\n type IdpConfigurationMode,\n} from './shared/IdentityProviderConfigurationModes';\n\nconst CUSTOM_STEPS: WizardStepConfig[] = [\n { id: 'create-app' },\n { id: 'attribute-mapping' },\n { id: 'assign-users' },\n { id: 'identity-provider-metadata' },\n];\n\nexport const SamlCustomConfigureSteps = (): JSX.Element => {\n return (\n // Linear, guard-less sub-flow: mount on the first step. (Entry guards drive\n // furthest-reachable init, which would otherwise land the last step here.)\n <Wizard\n steps={CUSTOM_STEPS}\n initialStepId={CUSTOM_STEPS[0].id}\n >\n <Wizard.Match id='create-app'>\n <SamlCustomCreateAppStep />\n </Wizard.Match>\n\n <Wizard.Match id='attribute-mapping'>\n <SamlCustomAttributeMappingStep />\n </Wizard.Match>\n\n <Wizard.Match id='assign-users'>\n <SamlCustomAssignUsersStep />\n </Wizard.Match>\n\n <Wizard.Match id='identity-provider-metadata'>\n <SamlCustomIdentityProviderMetadataStep />\n </Wizard.Match>\n </Wizard>\n );\n};\n\nconst SamlCustomCreateAppStep = (): JSX.Element => {\n const { goNext, goPrev, isFirstStep, isLastStep } = useWizard();\n const { enterpriseConnection } = useConfigureSSO();\n\n const acsUrl = enterpriseConnection?.samlConnection?.acsUrl ?? '';\n const spEntityId = enterpriseConnection?.samlConnection?.spEntityId ?? '';\n\n const acsUrlField = useFormControl('acsUrl', acsUrl, {\n type: 'text',\n label: localizationKeys('configureSSO.configureStep.samlCustom.createAppStep.serviceProviderFields.acsUrl.label'),\n isRequired: false,\n });\n const spEntityIdField = useFormControl('spEntityId', spEntityId, {\n type: 'text',\n label: localizationKeys(\n 'configureSSO.configureStep.samlCustom.createAppStep.serviceProviderFields.spEntityId.label',\n ),\n isRequired: false,\n });\n\n return (\n <>\n <Step.Header\n title={localizationKeys('configureSSO.configureStep.samlCustom.mainHeaderTitle')}\n description={localizationKeys('configureSSO.configureStep.samlCustom.createAppStep.headerSubtitle')}\n >\n <InnerStepCounter />\n </Step.Header>\n\n <Step.Body>\n <Step.Section sx={theme => ({ gap: theme.space.$5 })}>\n <Col sx={theme => ({ gap: theme.space.$1x5 })}>\n <Text\n as='p'\n colorScheme='secondary'\n localizationKey={localizationKeys(\n 'configureSSO.configureStep.samlCustom.createAppStep.createAppInstructions.paragraph',\n )}\n />\n </Col>\n\n <Form.ControlRow elementId={acsUrlField.id}>\n <Form.CommonInputWrapper {...acsUrlField.props}>\n <ClipboardInput\n value={acsUrl}\n readOnly\n copyIcon={Clipboard}\n copiedIcon={Checkmark}\n />\n </Form.CommonInputWrapper>\n </Form.ControlRow>\n\n <Form.ControlRow elementId={spEntityIdField.id}>\n <Form.CommonInputWrapper {...spEntityIdField.props}>\n <ClipboardInput\n value={spEntityId}\n readOnly\n copyIcon={Clipboard}\n copiedIcon={Checkmark}\n />\n </Form.CommonInputWrapper>\n </Form.ControlRow>\n </Step.Section>\n </Step.Body>\n\n <Step.Footer>\n <Step.Footer.Reset />\n <Step.Footer.Previous\n onClick={() => goPrev()}\n isDisabled={isFirstStep}\n />\n <Step.Footer.Continue\n onClick={() => goNext()}\n isDisabled={isLastStep}\n />\n </Step.Footer>\n </>\n );\n};\n\nconst SamlCustomAttributeMappingStep = (): JSX.Element => {\n const { goNext, goPrev, isFirstStep, isLastStep } = useWizard();\n\n return (\n <>\n <Step.Header\n title={localizationKeys('configureSSO.configureStep.samlCustom.mainHeaderTitle')}\n description={localizationKeys('configureSSO.configureStep.samlCustom.attributeMappingStep.headerSubtitle')}\n >\n <InnerStepCounter />\n </Step.Header>\n\n <Step.Body>\n <Step.Section sx={theme => ({ gap: theme.space.$3 })}>\n <Text\n as='p'\n colorScheme='secondary'\n localizationKey={localizationKeys('configureSSO.configureStep.samlCustom.attributeMappingStep.paragraph')}\n />\n\n <CustomAttributeMappingTable />\n </Step.Section>\n </Step.Body>\n\n <Step.Footer>\n <Step.Footer.Reset />\n <Step.Footer.Previous\n onClick={() => goPrev()}\n isDisabled={isFirstStep}\n />\n <Step.Footer.Continue\n onClick={() => goNext()}\n isDisabled={isLastStep}\n />\n </Step.Footer>\n </>\n );\n};\n\ntype CustomAttributeRow = {\n id: 'email' | 'firstName' | 'lastName';\n isRequired: boolean;\n};\n\nconst CUSTOM_ATTRIBUTE_ROWS: ReadonlyArray<CustomAttributeRow> = [\n { id: 'email', isRequired: true },\n { id: 'firstName', isRequired: false },\n { id: 'lastName', isRequired: false },\n];\n\nconst CustomAttributeMappingTable = (): JSX.Element => (\n <Table\n elementDescriptor={descriptors.configureSSOAttributeMappingTable}\n sx={theme => ({\n 'tr > th:first-of-type': { paddingInlineStart: theme.space.$4 },\n })}\n >\n <Thead>\n <Tr>\n <Th>\n <Text\n sx={theme => ({ fontSize: theme.fontSizes.$xs })}\n localizationKey={localizationKeys(\n 'configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.columns.attributeName',\n )}\n />\n </Th>\n <Th>\n <Text\n sx={theme => ({ fontSize: theme.fontSizes.$xs })}\n localizationKey={localizationKeys(\n 'configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.columns.userAttribute',\n )}\n />\n </Th>\n </Tr>\n </Thead>\n <Tbody>\n {CUSTOM_ATTRIBUTE_ROWS.map(row => (\n <Tr key={row.id}>\n <Td>\n <Flex\n as='span'\n align='center'\n sx={theme => ({ gap: theme.space.$2 })}\n >\n <Text\n as='span'\n colorScheme='secondary'\n sx={{ fontFamily: 'monospace' }}\n localizationKey={localizationKeys(\n `configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.rows.${row.id}.userAttribute`,\n )}\n />\n <Badge\n elementDescriptor={descriptors.configureSSOAttributeMappingBadge}\n elementId={descriptors.configureSSOAttributeMappingBadge.setId(\n row.isRequired ? 'required' : 'optional',\n )}\n colorScheme={row.isRequired ? 'warning' : 'primary'}\n localizationKey={localizationKeys(\n row.isRequired\n ? 'configureSSO.configureStep.attributeMappingTable.badges.required'\n : 'configureSSO.configureStep.attributeMappingTable.badges.optional',\n )}\n />\n </Flex>\n </Td>\n <Td>\n <Text\n as='span'\n localizationKey={localizationKeys(\n `configureSSO.configureStep.samlCustom.attributeMappingStep.attributeMappingTable.rows.${row.id}.attributeName`,\n )}\n />\n </Td>\n </Tr>\n ))}\n </Tbody>\n </Table>\n);\n\nconst SamlCustomAssignUsersStep = (): JSX.Element => {\n const { goNext, goPrev, isFirstStep, isLastStep } = useWizard();\n\n return (\n <>\n <Step.Header\n title={localizationKeys('configureSSO.configureStep.samlCustom.mainHeaderTitle')}\n description={localizationKeys('configureSSO.configureStep.samlCustom.assignUsersStep.headerSubtitle')}\n >\n <InnerStepCounter />\n </Step.Header>\n\n <Step.Body>\n <Step.Section sx={theme => ({ gap: theme.space.$3 })}>\n <Text\n as='p'\n colorScheme='secondary'\n localizationKey={localizationKeys('configureSSO.configureStep.samlCustom.assignUsersStep.paragraph')}\n />\n </Step.Section>\n </Step.Body>\n\n <Step.Footer>\n <Step.Footer.Reset />\n <Step.Footer.Previous\n onClick={() => goPrev()}\n isDisabled={isFirstStep}\n />\n <Step.Footer.Continue\n onClick={() => goNext()}\n isDisabled={isLastStep}\n />\n </Step.Footer>\n </>\n );\n};\n\nconst CUSTOM_SAML_IDP_MODES = ['metadataUrl', 'manual'] as const satisfies readonly IdpConfigurationMode[];\n\nconst SamlCustomIdentityProviderMetadataStep = (): JSX.Element => {\n const card = useCardState();\n const { goNext, goPrev, isFirstStep } = useWizard();\n const {\n enterpriseConnection,\n enterpriseConnectionMutations: { updateConnection },\n } = useConfigureSSO();\n\n const samlConnection = enterpriseConnection?.samlConnection;\n const hasExistingConfig = Boolean(\n samlConnection?.idpSsoUrl ||\n samlConnection?.idpEntityId ||\n samlConnection?.idpCertificate ||\n samlConnection?.idpMetadataUrl,\n );\n const existingCertPresent = Boolean(samlConnection?.idpCertificate);\n\n const [mode, setMode] = React.useState<IdpConfigurationMode>(hasExistingConfig ? 'manual' : 'metadataUrl');\n const [certFile, setCertFile] = React.useState<File | null>(null);\n // Step-LOCAL submit state for the Continue button. `goNext` bubbles to the\n // parent (this is the terminal nested step) and the parent DEFERS the\n // configure→test advance until the updateConnection revalidate lands. Keeping\n // the loading local — and NOT resetting it on success — holds the button\n // loading straight through that deferred transition; the advance unmounts this\n // nested step, ending the loading with no idle flash on the shared card.\n const [isSubmitting, setIsSubmitting] = React.useState(false);\n\n const metadataUrlField = useFormControl('idpMetadataUrl', samlConnection?.idpMetadataUrl ?? '', {\n type: 'text',\n label: localizationKeys('configureSSO.configureStep.samlCustom.identityProviderMetadataStep.metadataUrl.label'),\n placeholder: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.metadataUrl.placeholder',\n ),\n isRequired: true,\n });\n\n const signOnUrlField = useFormControl('idpSsoUrl', samlConnection?.idpSsoUrl ?? '', {\n type: 'text',\n label: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signOnUrl.label',\n ),\n placeholder: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signOnUrl.placeholder',\n ),\n isRequired: true,\n });\n\n const issuerField = useFormControl('idpEntityId', samlConnection?.idpEntityId ?? '', {\n type: 'text',\n label: localizationKeys('configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.issuer.label'),\n placeholder: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.issuer.placeholder',\n ),\n isRequired: true,\n });\n\n const certificateField = useFormControl('idpCertificate', '', {\n type: 'text',\n label: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signingCertificate.label',\n ),\n isRequired: true,\n });\n\n const trimmedMetadataUrl = metadataUrlField.value.trim();\n const trimmedSignOnUrl = signOnUrlField.value.trim();\n const trimmedIssuer = issuerField.value.trim();\n const hasCert = certFile !== null || existingCertPresent;\n\n const isValid =\n mode === 'metadataUrl'\n ? trimmedMetadataUrl.length > 0\n : trimmedSignOnUrl.length > 0 && trimmedIssuer.length > 0 && hasCert;\n\n const canSubmit = isValid && !isSubmitting;\n\n const formProps: IdentityProviderConfigurationFormProps =\n mode === 'metadataUrl'\n ? {\n mode: 'metadataUrl',\n form: { field: metadataUrlField },\n labels: {\n description: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.metadataUrl.description',\n ),\n },\n }\n : {\n mode: 'manual',\n form: {\n signOnUrlField,\n issuerField,\n certificateField,\n certFile,\n onCertFileChange: setCertFile,\n existingCertPresent,\n },\n labels: {\n description: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.description',\n ),\n uploadFile: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signingCertificate.uploadFile',\n ),\n replaceFile: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signingCertificate.replaceFile',\n ),\n removeFile: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signingCertificate.removeFile',\n ),\n fileUploaded: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.manual.signingCertificate.fileUploaded',\n ),\n },\n };\n\n const handleContinue = async (): Promise<void> => {\n if (!enterpriseConnection || !canSubmit) {\n return;\n }\n\n card.setError(undefined);\n setIsSubmitting(true);\n\n try {\n const saml = await buildSamlConfigurationPayload({\n mode,\n metadataUrl: { value: metadataUrlField.value },\n manual: { signOnUrl: signOnUrlField.value, issuer: issuerField.value, certFile },\n });\n\n await updateConnection(enterpriseConnection.id, { saml });\n // `goNext` bubbles to the parent, which DEFERS the advance to `test` until\n // the revalidate lands. The button STAYS loading and this nested step\n // unmounts when that deferred advance resolves — do NOT reset on success.\n void goNext();\n } catch (err) {\n if (mode === 'metadataUrl') {\n applySamlSubmitError(err, card, metadataUrlField);\n } else {\n applySamlSubmitError(err, card, signOnUrlField, [issuerField, certificateField]);\n }\n // Re-enable ONLY on error — there is no advance to unmount the button.\n setIsSubmitting(false);\n }\n };\n\n return (\n <>\n <Step.Header\n title={localizationKeys('configureSSO.configureStep.samlCustom.mainHeaderTitle')}\n description={localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.headerSubtitle',\n )}\n >\n <InnerStepCounter />\n </Step.Header>\n\n <Step.Body>\n <Step.Section\n fill\n gap={5}\n >\n <IdentityProviderConfigurationModes\n modes={CUSTOM_SAML_IDP_MODES}\n value={mode}\n onChange={next => {\n card.setError(undefined);\n setMode(next);\n }}\n labels={{\n ariaLabel: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.ariaLabel',\n ),\n metadataUrl: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.metadataUrl',\n ),\n manual: localizationKeys(\n 'configureSSO.configureStep.samlCustom.identityProviderMetadataStep.modes.manual',\n ),\n }}\n />\n <IdentityProviderConfigurationForm {...formProps} />\n </Step.Section>\n </Step.Body>\n\n <Step.Footer>\n <Step.Footer.Reset />\n <Step.Footer.Previous\n onClick={() => goPrev()}\n isDisabled={isFirstStep || isSubmitting}\n />\n <Step.Footer.Continue\n onClick={handleContinue}\n isLoading={isSubmitting}\n isDisabled={!canSubmit}\n />\n </Step.Footer>\n </>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqCA,MAAM,eAAmC;CACvC,EAAE,IAAI,aAAa;CACnB,EAAE,IAAI,oBAAoB;CAC1B,EAAE,IAAI,eAAe;CACrB,EAAE,IAAI,6BAA6B;AACrC;AAEA,MAAa,iCAA8C;CACzD,OAGE,qBAAC,QAAD;EACE,OAAO;EACP,eAAe,aAAa,EAAE,CAAC;YAFjC;GAIE,oBAAC,OAAO,OAAR;IAAc,IAAG;c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