@keycloakify/angular 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/bin/197.index.js +13 -0
- package/bin/381.index.js +13 -0
- package/bin/504.index.js +13 -0
- package/bin/87.index.js +13 -0
- package/bin/main.js +178 -474
- package/fesm2022/keycloakify-angular-account-directives-kc-class.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-directives-kc-class.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-account.mjs +4 -4
- package/fesm2022/keycloakify-angular-account-pages-account.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-applications.mjs +4 -4
- package/fesm2022/keycloakify-angular-account-pages-applications.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs +4 -4
- package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-log.mjs +4 -4
- package/fesm2022/keycloakify-angular-account-pages-log.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-password.mjs +4 -4
- package/fesm2022/keycloakify-angular-account-pages-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-sessions.mjs +4 -4
- package/fesm2022/keycloakify-angular-account-pages-sessions.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-totp.mjs +4 -4
- package/fesm2022/keycloakify-angular-account-pages-totp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-providers-keycloakify-angular.mjs +15 -20
- package/fesm2022/keycloakify-angular-account-providers-keycloakify-angular.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-services-account-resource-injector.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-services-account-resource-injector.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-services-i18n.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-services-i18n.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-template.mjs +4 -4
- package/fesm2022/keycloakify-angular-account-template.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-directives-attributes.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-directives-attributes.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-pipes-input-type.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-input-type.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-pipes-kc-sanitize.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-kc-sanitize.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-pipes-to-array.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-to-array.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-pipes-to-number.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-to-number.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-services-resource-injector.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-services-resource-injector.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-field-errors.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-components-field-errors.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-group-label.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-components-group-label.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-input-tag-selects.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-components-input-tag-selects.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-input-tag.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-components-input-tag.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-logout-other-sessions.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-components-logout-other-sessions.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-select-tag.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-components-select-tag.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-textarea-tag.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-components-textarea-tag.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-code.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-code.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-error.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-error.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-info.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-info.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-password.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-username.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-username.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-login.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-register.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-register.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-terms.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-terms.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-update-email.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-update-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-providers-keycloakify-angular.mjs +15 -20
- package/fesm2022/keycloakify-angular-login-providers-keycloakify-angular.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-services-i18n.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-services-i18n.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-services-login-resource-injector.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-services-login-resource-injector.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-services-user-profile-form.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-services-user-profile-form.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-template.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-template.mjs.map +1 -1
- package/login/pages/info/info.component.d.ts +1 -1
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +1 -1
- package/package.json +2 -185
- package/src/account/pages/account/account.component.ts +0 -1
- package/src/account/pages/applications/applications.component.ts +0 -1
- package/src/account/pages/federatedIdentity/federatedIdentity.component.ts +0 -1
- package/src/account/pages/log/log.component.ts +0 -1
- package/src/account/pages/password/password.component.ts +0 -1
- package/src/account/pages/sessions/sessions.component.ts +0 -1
- package/src/account/pages/totp/totp.component.ts +0 -1
- package/src/account/providers/keycloakify-angular/keycloakify-angular.providers.ts +10 -8
- package/src/account/template/template.component.ts +0 -1
- package/src/bin/add-story.ts +2 -0
- package/src/bin/eject-page.ts +2 -0
- package/src/bin/initialize-account-theme/boilerplate/KcPageStory.ts +0 -1
- package/src/bin/tools/readThisNpmPackageVersion.ts +24 -0
- package/src/bin/tools/runPrettier.ts +24 -3
- package/src/bin/tsconfig.json +3 -4
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +0 -1
- package/src/login/components/field-errors/field-errors.component.ts +0 -1
- package/src/login/components/group-label/group-label.component.ts +0 -1
- package/src/login/components/input-field-by-type/input-field-by-type.component.ts +0 -1
- package/src/login/components/input-tag/input-tag.component.ts +0 -1
- package/src/login/components/input-tag-selects/input-tag-selects.component.ts +0 -1
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.ts +0 -1
- package/src/login/components/password-wrapper/password-wrapper.component.ts +0 -1
- package/src/login/components/select-tag/select-tag.component.ts +0 -1
- package/src/login/components/textarea-tag/textarea-tag.component.ts +0 -1
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +0 -1
- package/src/login/pages/code/code.component.ts +0 -1
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +0 -1
- package/src/login/pages/delete-credential/delete-credential.component.ts +0 -1
- package/src/login/pages/error/error.component.ts +0 -1
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +0 -1
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +0 -1
- package/src/login/pages/info/info.component.ts +1 -2
- package/src/login/pages/login/login.component.ts +0 -1
- package/src/login/pages/login-config-totp/login-config-totp.component.ts +0 -1
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +0 -1
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +0 -1
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +0 -1
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +0 -1
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +0 -1
- package/src/login/pages/login-otp/login-otp.component.ts +0 -1
- package/src/login/pages/login-page-expired/login-page-expired.component.ts +0 -1
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +0 -1
- package/src/login/pages/login-password/login-password.component.ts +0 -1
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +0 -1
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +0 -1
- package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +0 -1
- package/src/login/pages/login-reset-password/login-reset-password.component.ts +0 -1
- package/src/login/pages/login-update-password/login-update-password.component.ts +0 -1
- package/src/login/pages/login-update-profile/login-update-profile.component.ts +0 -1
- package/src/login/pages/login-username/login-username.component.ts +0 -1
- package/src/login/pages/login-verify-email/login-verify-email.component.ts +0 -1
- package/src/login/pages/login-x509-info/login-x509-info.component.ts +0 -1
- package/src/login/pages/logout-confirm/logout-confirm.component.ts +0 -1
- package/src/login/pages/register/register.component.ts +0 -1
- package/src/login/pages/saml-post-form/saml-post-form.component.ts +0 -1
- package/src/login/pages/select-authenticator/select-authenticator.component.ts +0 -1
- package/src/login/pages/terms/terms.component.ts +0 -1
- package/src/login/pages/update-email/update-email.component.ts +0 -1
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +0 -1
- package/src/login/pages/webauthn-error/webauthn-error.component.ts +0 -1
- package/src/login/pages/webauthn-register/webauthn-register.component.ts +0 -1
- package/src/login/providers/keycloakify-angular/keycloakify-angular.providers.ts +10 -8
- package/src/login/template/template.component.ts +0 -1
- package/bin/108.index.js +0 -252
- package/bin/338.index.js +0 -456
- package/bin/402.index.js +0 -1250
- package/bin/603.index.js +0 -4964
- package/bin/758.index.js +0 -958
- package/bin/84.index.js +0 -666
- package/esm2022/account/DefaultPage/DefaultPage.mjs +0 -34
- package/esm2022/account/DefaultPage/index.mjs +0 -2
- package/esm2022/account/DefaultPage/keycloakify-angular-account-DefaultPage.mjs +0 -5
- package/esm2022/account/KcContext/KcContext.mjs +0 -2
- package/esm2022/account/KcContext/index.mjs +0 -2
- package/esm2022/account/KcContext/keycloakify-angular-account-KcContext.mjs +0 -5
- package/esm2022/account/account.mjs +0 -3
- package/esm2022/account/classes/component-reference/component-reference.class.mjs +0 -3
- package/esm2022/account/classes/component-reference/index.mjs +0 -2
- package/esm2022/account/classes/component-reference/keycloakify-angular-account-classes-component-reference.mjs +0 -5
- package/esm2022/account/defaultPage.mjs +0 -26
- package/esm2022/account/directives/kc-class/index.mjs +0 -2
- package/esm2022/account/directives/kc-class/kc-class.directive.mjs +0 -141
- package/esm2022/account/directives/kc-class/keycloakify-angular-account-directives-kc-class.mjs +0 -5
- package/esm2022/account/i18n/i18n.mjs +0 -2
- package/esm2022/account/i18n/index.mjs +0 -2
- package/esm2022/account/i18n/keycloakify-angular-account-i18n.mjs +0 -5
- package/esm2022/account/index.mjs +0 -2
- package/esm2022/account/keycloakify-angular-account.mjs +0 -5
- package/esm2022/account/pages/account/account.component.mjs +0 -39
- package/esm2022/account/pages/account/index.mjs +0 -2
- package/esm2022/account/pages/account/keycloakify-angular-account-pages-account.mjs +0 -5
- package/esm2022/account/pages/applications/applications.component.mjs +0 -37
- package/esm2022/account/pages/applications/index.mjs +0 -2
- package/esm2022/account/pages/applications/keycloakify-angular-account-pages-applications.mjs +0 -5
- package/esm2022/account/pages/federatedIdentity/federatedIdentity.component.mjs +0 -36
- package/esm2022/account/pages/federatedIdentity/index.mjs +0 -2
- package/esm2022/account/pages/federatedIdentity/keycloakify-angular-account-pages-federatedIdentity.mjs +0 -5
- package/esm2022/account/pages/log/index.mjs +0 -2
- package/esm2022/account/pages/log/keycloakify-angular-account-pages-log.mjs +0 -5
- package/esm2022/account/pages/log/log.component.mjs +0 -36
- package/esm2022/account/pages/password/index.mjs +0 -2
- package/esm2022/account/pages/password/keycloakify-angular-account-pages-password.mjs +0 -5
- package/esm2022/account/pages/password/password.component.mjs +0 -108
- package/esm2022/account/pages/sessions/index.mjs +0 -2
- package/esm2022/account/pages/sessions/keycloakify-angular-account-pages-sessions.mjs +0 -5
- package/esm2022/account/pages/sessions/sessions.component.mjs +0 -36
- package/esm2022/account/pages/totp/index.mjs +0 -2
- package/esm2022/account/pages/totp/keycloakify-angular-account-pages-totp.mjs +0 -5
- package/esm2022/account/pages/totp/totp.component.mjs +0 -37
- package/esm2022/account/providers/keycloakify-angular/index.mjs +0 -2
- package/esm2022/account/providers/keycloakify-angular/keycloakify-angular-account-providers-keycloakify-angular.mjs +0 -5
- package/esm2022/account/providers/keycloakify-angular/keycloakify-angular.providers.mjs +0 -47
- package/esm2022/account/services/account-resource-injector/account-resource-injector.service.mjs +0 -37
- package/esm2022/account/services/account-resource-injector/index.mjs +0 -2
- package/esm2022/account/services/account-resource-injector/keycloakify-angular-account-services-account-resource-injector.mjs +0 -5
- package/esm2022/account/services/i18n/i18n.service.mjs +0 -12
- package/esm2022/account/services/i18n/index.mjs +0 -2
- package/esm2022/account/services/i18n/keycloakify-angular-account-services-i18n.mjs +0 -5
- package/esm2022/account/template/index.mjs +0 -2
- package/esm2022/account/template/keycloakify-angular-account-template.mjs +0 -5
- package/esm2022/account/template/template.component.mjs +0 -83
- package/esm2022/account/tokens/classes/classes.token.mjs +0 -3
- package/esm2022/account/tokens/classes/index.mjs +0 -2
- package/esm2022/account/tokens/classes/keycloakify-angular-account-tokens-classes.mjs +0 -5
- package/esm2022/account/tokens/i18n/i18n.token.mjs +0 -3
- package/esm2022/account/tokens/i18n/index.mjs +0 -2
- package/esm2022/account/tokens/i18n/keycloakify-angular-account-tokens-i18n.mjs +0 -5
- package/esm2022/account/tokens/kc-context/index.mjs +0 -2
- package/esm2022/account/tokens/kc-context/kc-context.token.mjs +0 -3
- package/esm2022/account/tokens/kc-context/keycloakify-angular-account-tokens-kc-context.mjs +0 -5
- package/esm2022/index.mjs +0 -2
- package/esm2022/keycloakify-angular.mjs +0 -5
- package/esm2022/lib/directives/attributes/attributes.directive.mjs +0 -26
- package/esm2022/lib/directives/attributes/index.mjs +0 -2
- package/esm2022/lib/directives/attributes/keycloakify-angular-lib-directives-attributes.mjs +0 -5
- package/esm2022/lib/index.mjs +0 -2
- package/esm2022/lib/keycloakify-angular-lib.mjs +0 -5
- package/esm2022/lib/models/script/index.mjs +0 -2
- package/esm2022/lib/models/script/keycloakify-angular-lib-models-script.mjs +0 -5
- package/esm2022/lib/models/script/script.model.mjs +0 -2
- package/esm2022/lib/pipes/input-type/index.mjs +0 -2
- package/esm2022/lib/pipes/input-type/input-type.pipe.mjs +0 -20
- package/esm2022/lib/pipes/input-type/keycloakify-angular-lib-pipes-input-type.mjs +0 -5
- package/esm2022/lib/pipes/is-array-with-empty-object/index.mjs +0 -2
- package/esm2022/lib/pipes/is-array-with-empty-object/is-array-with-empty-object.pipe.mjs +0 -20
- package/esm2022/lib/pipes/is-array-with-empty-object/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs +0 -5
- package/esm2022/lib/pipes/kc-sanitize/index.mjs +0 -2
- package/esm2022/lib/pipes/kc-sanitize/kc-sanitize.pipe.mjs +0 -29
- package/esm2022/lib/pipes/kc-sanitize/keycloakify-angular-lib-pipes-kc-sanitize.mjs +0 -5
- package/esm2022/lib/pipes/to-array/index.mjs +0 -2
- package/esm2022/lib/pipes/to-array/keycloakify-angular-lib-pipes-to-array.mjs +0 -5
- package/esm2022/lib/pipes/to-array/to-array.pipe.mjs +0 -21
- package/esm2022/lib/pipes/to-number/index.mjs +0 -2
- package/esm2022/lib/pipes/to-number/keycloakify-angular-lib-pipes-to-number.mjs +0 -5
- package/esm2022/lib/pipes/to-number/to-number.pipe.mjs +0 -20
- package/esm2022/lib/services/resource-injector/index.mjs +0 -2
- package/esm2022/lib/services/resource-injector/keycloakify-angular-lib-services-resource-injector.mjs +0 -5
- package/esm2022/lib/services/resource-injector/resource-injector.service.mjs +0 -55
- package/esm2022/lib/tokens/use-default-css/index.mjs +0 -2
- package/esm2022/lib/tokens/use-default-css/keycloakify-angular-lib-tokens-use-default-css.mjs +0 -5
- package/esm2022/lib/tokens/use-default-css/use-default-css.token.mjs +0 -3
- package/esm2022/login/KcContext/KcContext.mjs +0 -2
- package/esm2022/login/KcContext/index.mjs +0 -2
- package/esm2022/login/KcContext/keycloakify-angular-login-KcContext.mjs +0 -5
- package/esm2022/login/classes/component-reference/component-reference.class.mjs +0 -3
- package/esm2022/login/classes/component-reference/index.mjs +0 -2
- package/esm2022/login/classes/component-reference/keycloakify-angular-login-classes-component-reference.mjs +0 -5
- package/esm2022/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +0 -60
- package/esm2022/login/components/add-remove-buttons-multi-valued-attribute/index.mjs +0 -2
- package/esm2022/login/components/add-remove-buttons-multi-valued-attribute/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs +0 -5
- package/esm2022/login/components/field-errors/field-errors.component.mjs +0 -33
- package/esm2022/login/components/field-errors/index.mjs +0 -2
- package/esm2022/login/components/field-errors/keycloakify-angular-login-components-field-errors.mjs +0 -5
- package/esm2022/login/components/group-label/group-label.component.mjs +0 -43
- package/esm2022/login/components/group-label/index.mjs +0 -2
- package/esm2022/login/components/group-label/keycloakify-angular-login-components-group-label.mjs +0 -5
- package/esm2022/login/components/input-field-by-type/index.mjs +0 -2
- package/esm2022/login/components/input-field-by-type/input-field-by-type.component.mjs +0 -46
- package/esm2022/login/components/input-field-by-type/keycloakify-angular-login-components-input-field-by-type.mjs +0 -5
- package/esm2022/login/components/input-tag/index.mjs +0 -2
- package/esm2022/login/components/input-tag/input-tag.component.mjs +0 -90
- package/esm2022/login/components/input-tag/keycloakify-angular-login-components-input-tag.mjs +0 -5
- package/esm2022/login/components/input-tag-selects/index.mjs +0 -2
- package/esm2022/login/components/input-tag-selects/input-tag-selects.component.mjs +0 -117
- package/esm2022/login/components/input-tag-selects/keycloakify-angular-login-components-input-tag-selects.mjs +0 -5
- package/esm2022/login/components/logout-other-sessions/index.mjs +0 -2
- package/esm2022/login/components/logout-other-sessions/keycloakify-angular-login-components-logout-other-sessions.mjs +0 -5
- package/esm2022/login/components/logout-other-sessions/logout-other-sessions.component.mjs +0 -32
- package/esm2022/login/components/password-wrapper/index.mjs +0 -2
- package/esm2022/login/components/password-wrapper/keycloakify-angular-login-components-password-wrapper.mjs +0 -5
- package/esm2022/login/components/password-wrapper/password-wrapper.component.mjs +0 -46
- package/esm2022/login/components/select-tag/index.mjs +0 -2
- package/esm2022/login/components/select-tag/keycloakify-angular-login-components-select-tag.mjs +0 -5
- package/esm2022/login/components/select-tag/select-tag.component.mjs +0 -82
- package/esm2022/login/components/textarea-tag/index.mjs +0 -2
- package/esm2022/login/components/textarea-tag/keycloakify-angular-login-components-textarea-tag.mjs +0 -5
- package/esm2022/login/components/textarea-tag/textarea-tag.component.mjs +0 -49
- package/esm2022/login/components/user-profile-form-fields/index.mjs +0 -2
- package/esm2022/login/components/user-profile-form-fields/keycloakify-angular-login-components-user-profile-form-fields.mjs +0 -5
- package/esm2022/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +0 -55
- package/esm2022/login/defaultPage.mjs +0 -77
- package/esm2022/login/directives/kc-class/index.mjs +0 -2
- package/esm2022/login/directives/kc-class/kc-class.directive.mjs +0 -138
- package/esm2022/login/directives/kc-class/keycloakify-angular-login-directives-kc-class.mjs +0 -5
- package/esm2022/login/i18n/i18n.mjs +0 -2
- package/esm2022/login/i18n/index.mjs +0 -2
- package/esm2022/login/i18n/keycloakify-angular-login-i18n.mjs +0 -5
- package/esm2022/login/index.mjs +0 -2
- package/esm2022/login/keycloakify-angular-login.mjs +0 -5
- package/esm2022/login/login.mjs +0 -3
- package/esm2022/login/pages/code/code.component.mjs +0 -40
- package/esm2022/login/pages/code/index.mjs +0 -2
- package/esm2022/login/pages/code/keycloakify-angular-login-pages-code.mjs +0 -5
- package/esm2022/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +0 -40
- package/esm2022/login/pages/delete-account-confirm/index.mjs +0 -2
- package/esm2022/login/pages/delete-account-confirm/keycloakify-angular-login-pages-delete-account-confirm.mjs +0 -5
- package/esm2022/login/pages/delete-credential/delete-credential.component.mjs +0 -40
- package/esm2022/login/pages/delete-credential/index.mjs +0 -2
- package/esm2022/login/pages/delete-credential/keycloakify-angular-login-pages-delete-credential.mjs +0 -5
- package/esm2022/login/pages/error/error.component.mjs +0 -40
- package/esm2022/login/pages/error/index.mjs +0 -2
- package/esm2022/login/pages/error/keycloakify-angular-login-pages-error.mjs +0 -5
- package/esm2022/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +0 -46
- package/esm2022/login/pages/frontchannel-logout/index.mjs +0 -2
- package/esm2022/login/pages/frontchannel-logout/keycloakify-angular-login-pages-frontchannel-logout.mjs +0 -5
- package/esm2022/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +0 -51
- package/esm2022/login/pages/idp-review-user-profile/index.mjs +0 -2
- package/esm2022/login/pages/idp-review-user-profile/keycloakify-angular-login-pages-idp-review-user-profile.mjs +0 -5
- package/esm2022/login/pages/info/index.mjs +0 -2
- package/esm2022/login/pages/info/info.component.mjs +0 -49
- package/esm2022/login/pages/info/keycloakify-angular-login-pages-info.mjs +0 -5
- package/esm2022/login/pages/login/index.mjs +0 -2
- package/esm2022/login/pages/login/keycloakify-angular-login-pages-login.mjs +0 -5
- package/esm2022/login/pages/login/login.component.mjs +0 -44
- package/esm2022/login/pages/login-config-totp/index.mjs +0 -2
- package/esm2022/login/pages/login-config-totp/keycloakify-angular-login-pages-login-config-totp.mjs +0 -5
- package/esm2022/login/pages/login-config-totp/login-config-totp.component.mjs +0 -42
- package/esm2022/login/pages/login-idp-link-confirm/index.mjs +0 -2
- package/esm2022/login/pages/login-idp-link-confirm/keycloakify-angular-login-pages-login-idp-link-confirm.mjs +0 -5
- package/esm2022/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +0 -36
- package/esm2022/login/pages/login-idp-link-confirm-override/index.mjs +0 -2
- package/esm2022/login/pages/login-idp-link-confirm-override/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs +0 -5
- package/esm2022/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +0 -36
- package/esm2022/login/pages/login-idp-link-email/index.mjs +0 -2
- package/esm2022/login/pages/login-idp-link-email/keycloakify-angular-login-pages-login-idp-link-email.mjs +0 -5
- package/esm2022/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +0 -36
- package/esm2022/login/pages/login-oauth-grant/index.mjs +0 -2
- package/esm2022/login/pages/login-oauth-grant/keycloakify-angular-login-pages-login-oauth-grant.mjs +0 -5
- package/esm2022/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +0 -37
- package/esm2022/login/pages/login-oauth2-device-verify-user-code/index.mjs +0 -2
- package/esm2022/login/pages/login-oauth2-device-verify-user-code/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs +0 -5
- package/esm2022/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +0 -40
- package/esm2022/login/pages/login-otp/index.mjs +0 -2
- package/esm2022/login/pages/login-otp/keycloakify-angular-login-pages-login-otp.mjs +0 -5
- package/esm2022/login/pages/login-otp/login-otp.component.mjs +0 -41
- package/esm2022/login/pages/login-page-expired/index.mjs +0 -2
- package/esm2022/login/pages/login-page-expired/keycloakify-angular-login-pages-login-page-expired.mjs +0 -5
- package/esm2022/login/pages/login-page-expired/login-page-expired.component.mjs +0 -39
- package/esm2022/login/pages/login-passkeys-conditional-authenticate/index.mjs +0 -2
- package/esm2022/login/pages/login-passkeys-conditional-authenticate/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs +0 -5
- package/esm2022/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +0 -88
- package/esm2022/login/pages/login-password/index.mjs +0 -2
- package/esm2022/login/pages/login-password/keycloakify-angular-login-pages-login-password.mjs +0 -5
- package/esm2022/login/pages/login-password/login-password.component.mjs +0 -44
- package/esm2022/login/pages/login-recovery-authn-code-config/index.mjs +0 -2
- package/esm2022/login/pages/login-recovery-authn-code-config/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs +0 -5
- package/esm2022/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +0 -164
- package/esm2022/login/pages/login-recovery-authn-code-input/index.mjs +0 -2
- package/esm2022/login/pages/login-recovery-authn-code-input/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs +0 -5
- package/esm2022/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +0 -41
- package/esm2022/login/pages/login-reset-otp/index.mjs +0 -2
- package/esm2022/login/pages/login-reset-otp/keycloakify-angular-login-pages-login-reset-otp.mjs +0 -5
- package/esm2022/login/pages/login-reset-otp/login-reset-otp.component.mjs +0 -40
- package/esm2022/login/pages/login-reset-password/index.mjs +0 -2
- package/esm2022/login/pages/login-reset-password/keycloakify-angular-login-pages-login-reset-password.mjs +0 -5
- package/esm2022/login/pages/login-reset-password/login-reset-password.component.mjs +0 -41
- package/esm2022/login/pages/login-update-password/index.mjs +0 -2
- package/esm2022/login/pages/login-update-password/keycloakify-angular-login-pages-login-update-password.mjs +0 -5
- package/esm2022/login/pages/login-update-password/login-update-password.component.mjs +0 -43
- package/esm2022/login/pages/login-update-profile/index.mjs +0 -2
- package/esm2022/login/pages/login-update-profile/keycloakify-angular-login-pages-login-update-profile.mjs +0 -5
- package/esm2022/login/pages/login-update-profile/login-update-profile.component.mjs +0 -48
- package/esm2022/login/pages/login-username/index.mjs +0 -2
- package/esm2022/login/pages/login-username/keycloakify-angular-login-pages-login-username.mjs +0 -5
- package/esm2022/login/pages/login-username/login-username.component.mjs +0 -43
- package/esm2022/login/pages/login-verify-email/index.mjs +0 -2
- package/esm2022/login/pages/login-verify-email/keycloakify-angular-login-pages-login-verify-email.mjs +0 -5
- package/esm2022/login/pages/login-verify-email/login-verify-email.component.mjs +0 -40
- package/esm2022/login/pages/login-x509-info/index.mjs +0 -2
- package/esm2022/login/pages/login-x509-info/keycloakify-angular-login-pages-login-x509-info.mjs +0 -5
- package/esm2022/login/pages/login-x509-info/login-x509-info.component.mjs +0 -40
- package/esm2022/login/pages/logout-confirm/index.mjs +0 -2
- package/esm2022/login/pages/logout-confirm/keycloakify-angular-login-pages-logout-confirm.mjs +0 -5
- package/esm2022/login/pages/logout-confirm/logout-confirm.component.mjs +0 -36
- package/esm2022/login/pages/register/index.mjs +0 -2
- package/esm2022/login/pages/register/keycloakify-angular-login-pages-register.mjs +0 -5
- package/esm2022/login/pages/register/register.component.mjs +0 -53
- package/esm2022/login/pages/saml-post-form/index.mjs +0 -2
- package/esm2022/login/pages/saml-post-form/keycloakify-angular-login-pages-saml-post-form.mjs +0 -5
- package/esm2022/login/pages/saml-post-form/saml-post-form.component.mjs +0 -50
- package/esm2022/login/pages/select-authenticator/index.mjs +0 -2
- package/esm2022/login/pages/select-authenticator/keycloakify-angular-login-pages-select-authenticator.mjs +0 -5
- package/esm2022/login/pages/select-authenticator/select-authenticator.component.mjs +0 -41
- package/esm2022/login/pages/terms/index.mjs +0 -2
- package/esm2022/login/pages/terms/keycloakify-angular-login-pages-terms.mjs +0 -5
- package/esm2022/login/pages/terms/terms.component.mjs +0 -40
- package/esm2022/login/pages/update-email/index.mjs +0 -2
- package/esm2022/login/pages/update-email/keycloakify-angular-login-pages-update-email.mjs +0 -5
- package/esm2022/login/pages/update-email/update-email.component.mjs +0 -45
- package/esm2022/login/pages/webauthn-authenticate/index.mjs +0 -2
- package/esm2022/login/pages/webauthn-authenticate/keycloakify-angular-login-pages-webauthn-authenticate.mjs +0 -5
- package/esm2022/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +0 -80
- package/esm2022/login/pages/webauthn-error/index.mjs +0 -2
- package/esm2022/login/pages/webauthn-error/keycloakify-angular-login-pages-webauthn-error.mjs +0 -5
- package/esm2022/login/pages/webauthn-error/webauthn-error.component.mjs +0 -49
- package/esm2022/login/pages/webauthn-register/index.mjs +0 -2
- package/esm2022/login/pages/webauthn-register/keycloakify-angular-login-pages-webauthn-register.mjs +0 -5
- package/esm2022/login/pages/webauthn-register/webauthn-register.component.mjs +0 -76
- package/esm2022/login/providers/keycloakify-angular/index.mjs +0 -2
- package/esm2022/login/providers/keycloakify-angular/keycloakify-angular-login-providers-keycloakify-angular.mjs +0 -5
- package/esm2022/login/providers/keycloakify-angular/keycloakify-angular.providers.mjs +0 -52
- package/esm2022/login/services/i18n/i18n.service.mjs +0 -12
- package/esm2022/login/services/i18n/index.mjs +0 -2
- package/esm2022/login/services/i18n/keycloakify-angular-login-services-i18n.mjs +0 -5
- package/esm2022/login/services/login-resource-injector/index.mjs +0 -2
- package/esm2022/login/services/login-resource-injector/keycloakify-angular-login-services-login-resource-injector.mjs +0 -5
- package/esm2022/login/services/login-resource-injector/login-resource-injector.service.mjs +0 -69
- package/esm2022/login/services/user-profile-form/index.mjs +0 -2
- package/esm2022/login/services/user-profile-form/keycloakify-angular-login-services-user-profile-form.mjs +0 -5
- package/esm2022/login/services/user-profile-form/user-profile-form.service.mjs +0 -71
- package/esm2022/login/template/index.mjs +0 -2
- package/esm2022/login/template/keycloakify-angular-login-template.mjs +0 -5
- package/esm2022/login/template/template.component.mjs +0 -123
- package/esm2022/login/tokens/classes/classes.token.mjs +0 -3
- package/esm2022/login/tokens/classes/index.mjs +0 -2
- package/esm2022/login/tokens/classes/keycloakify-angular-login-tokens-classes.mjs +0 -5
- package/esm2022/login/tokens/i18n/i18n.token.mjs +0 -3
- package/esm2022/login/tokens/i18n/index.mjs +0 -2
- package/esm2022/login/tokens/i18n/keycloakify-angular-login-tokens-i18n.mjs +0 -5
- package/esm2022/login/tokens/kc-context/index.mjs +0 -2
- package/esm2022/login/tokens/kc-context/kc-context.token.mjs +0 -3
- package/esm2022/login/tokens/kc-context/keycloakify-angular-login-tokens-kc-context.mjs +0 -5
- package/esm2022/login/tokens/make-user-confirm-password/index.mjs +0 -2
- package/esm2022/login/tokens/make-user-confirm-password/keycloakify-angular-login-tokens-make-user-confirm-password.mjs +0 -5
- package/esm2022/login/tokens/make-user-confirm-password/make-user-confirm-password.token.mjs +0 -3
package/bin/84.index.js
DELETED
|
@@ -1,666 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.id = 84;
|
|
3
|
-
exports.ids = [84];
|
|
4
|
-
exports.modules = {
|
|
5
|
-
|
|
6
|
-
/***/ 84:
|
|
7
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
// EXPORTS
|
|
11
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
12
|
-
command: () => (/* binding */ command)
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
// EXTERNAL MODULE: ./dist/bin/tools/getThisCodebaseRootDirPath.js
|
|
16
|
-
var getThisCodebaseRootDirPath = __webpack_require__(427);
|
|
17
|
-
// EXTERNAL MODULE: ./node_modules/cli-select/dist/index.js
|
|
18
|
-
var dist = __webpack_require__(546);
|
|
19
|
-
var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
20
|
-
// EXTERNAL MODULE: ./node_modules/keycloakify/bin/shared/constants.js
|
|
21
|
-
var constants = __webpack_require__(316);
|
|
22
|
-
// EXTERNAL MODULE: external "fs"
|
|
23
|
-
var external_fs_ = __webpack_require__(896);
|
|
24
|
-
// EXTERNAL MODULE: external "path"
|
|
25
|
-
var external_path_ = __webpack_require__(928);
|
|
26
|
-
// EXTERNAL MODULE: ./node_modules/tsafe/esm/assert.mjs + 1 modules
|
|
27
|
-
var assert = __webpack_require__(966);
|
|
28
|
-
// EXTERNAL MODULE: ./node_modules/chalk/source/index.js + 3 modules
|
|
29
|
-
var source = __webpack_require__(797);
|
|
30
|
-
;// CONCATENATED MODULE: ./dist/bin/tools/crawl.js
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const crawlRec = (dirPath, filePaths) => {
|
|
34
|
-
for (const basename of external_fs_.readdirSync(dirPath)) {
|
|
35
|
-
const fileOrDirPath = (0,external_path_.join)(dirPath, basename);
|
|
36
|
-
if (external_fs_.lstatSync(fileOrDirPath).isDirectory()) {
|
|
37
|
-
crawlRec(fileOrDirPath, filePaths);
|
|
38
|
-
continue;
|
|
39
|
-
}
|
|
40
|
-
filePaths.push(fileOrDirPath);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
/** List all files in a given directory return paths relative to the dir_path */
|
|
44
|
-
function crawl(params) {
|
|
45
|
-
const { dirPath, returnedPathsType } = params;
|
|
46
|
-
const filePaths = [];
|
|
47
|
-
crawlRec(dirPath, filePaths);
|
|
48
|
-
switch (returnedPathsType) {
|
|
49
|
-
case 'absolute':
|
|
50
|
-
return filePaths;
|
|
51
|
-
case 'relative to dirPath':
|
|
52
|
-
return filePaths.map(filePath => (0,external_path_.relative)(dirPath, filePath));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
;// CONCATENATED MODULE: ./dist/bin/tools/SemVer.js
|
|
57
|
-
var SemVer;
|
|
58
|
-
(function (SemVer) {
|
|
59
|
-
const bumpTypes = ['major', 'minor', 'patch', 'rc', 'no bump'];
|
|
60
|
-
function parse(versionStr) {
|
|
61
|
-
const match = versionStr.match(/^v?([0-9]+)\.([0-9]+)(?:\.([0-9]+))?(?:-rc.([0-9]+))?$/);
|
|
62
|
-
if (!match) {
|
|
63
|
-
throw new Error(`${versionStr} is not a valid semantic version`);
|
|
64
|
-
}
|
|
65
|
-
const semVer = Object.assign({ major: parseInt(match[1]), minor: parseInt(match[2]), patch: (() => {
|
|
66
|
-
const str = match[3];
|
|
67
|
-
return str === undefined ? 0 : parseInt(str);
|
|
68
|
-
})() }, (() => {
|
|
69
|
-
const str = match[4];
|
|
70
|
-
return str === undefined ? {} : { rc: parseInt(str) };
|
|
71
|
-
})());
|
|
72
|
-
const initialStr = stringify(semVer);
|
|
73
|
-
Object.defineProperty(semVer, 'parsedFrom', {
|
|
74
|
-
enumerable: true,
|
|
75
|
-
get: function () {
|
|
76
|
-
const currentStr = stringify(this);
|
|
77
|
-
if (currentStr !== initialStr) {
|
|
78
|
-
throw new Error(`SemVer.parsedFrom can't be read anymore, the version have been modified from ${initialStr} to ${currentStr}`);
|
|
79
|
-
}
|
|
80
|
-
return versionStr;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
return semVer;
|
|
84
|
-
}
|
|
85
|
-
SemVer.parse = parse;
|
|
86
|
-
function stringify(v) {
|
|
87
|
-
return `${v.major}.${v.minor}.${v.patch}${v.rc === undefined ? '' : `-rc.${v.rc}`}`;
|
|
88
|
-
}
|
|
89
|
-
SemVer.stringify = stringify;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* v1 < v2 => -1
|
|
93
|
-
* v1 === v2 => 0
|
|
94
|
-
* v1 > v2 => 1
|
|
95
|
-
*
|
|
96
|
-
*/
|
|
97
|
-
function compare(v1, v2) {
|
|
98
|
-
const sign = (diff) => (diff === 0 ? 0 : diff < 0 ? -1 : 1);
|
|
99
|
-
const noUndefined = (n) => n !== null && n !== void 0 ? n : Infinity;
|
|
100
|
-
for (const level of ['major', 'minor', 'patch', 'rc']) {
|
|
101
|
-
if (noUndefined(v1[level]) !== noUndefined(v2[level])) {
|
|
102
|
-
return sign(noUndefined(v1[level]) - noUndefined(v2[level]));
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
return 0;
|
|
106
|
-
}
|
|
107
|
-
SemVer.compare = compare;
|
|
108
|
-
/*
|
|
109
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0")) === -1 )
|
|
110
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("3.0.0-rc.4")) === -1 )
|
|
111
|
-
console.log(compare(parse("3.0.0-rc.3"), parse("4.0.0")) === -1 )
|
|
112
|
-
*/
|
|
113
|
-
function bumpType(params) {
|
|
114
|
-
const versionAhead = typeof params.versionAhead === 'string'
|
|
115
|
-
? parse(params.versionAhead)
|
|
116
|
-
: params.versionAhead;
|
|
117
|
-
const versionBehind = typeof params.versionBehind === 'string'
|
|
118
|
-
? parse(params.versionBehind)
|
|
119
|
-
: params.versionBehind;
|
|
120
|
-
if (compare(versionBehind, versionAhead) === 1) {
|
|
121
|
-
throw new Error(`Version regression ${stringify(versionBehind)} -> ${stringify(versionAhead)}`);
|
|
122
|
-
}
|
|
123
|
-
for (const level of ['major', 'minor', 'patch', 'rc']) {
|
|
124
|
-
if (versionBehind[level] !== versionAhead[level]) {
|
|
125
|
-
return level;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return 'no bump';
|
|
129
|
-
}
|
|
130
|
-
SemVer.bumpType = bumpType;
|
|
131
|
-
})(SemVer || (SemVer = {}));
|
|
132
|
-
|
|
133
|
-
;// CONCATENATED MODULE: ./dist/bin/tools/fs.rmSync.js
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Polyfill of fs.rmSync(dirPath, { "recursive": true })
|
|
139
|
-
* For older version of Node
|
|
140
|
-
*/
|
|
141
|
-
function rmSync(dirPath, options) {
|
|
142
|
-
if (SemVer.compare(SemVer.parse(process.version), SemVer.parse('14.14.0')) > 0) {
|
|
143
|
-
external_fs_.rmSync(dirPath, options);
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
const { force = true } = options;
|
|
147
|
-
if (force && !external_fs_.existsSync(dirPath)) {
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
const removeDir_rec = (dirPath) => external_fs_.readdirSync(dirPath).forEach(basename => {
|
|
151
|
-
const fileOrDirPath = (0,external_path_.join)(dirPath, basename);
|
|
152
|
-
if (external_fs_.lstatSync(fileOrDirPath).isDirectory()) {
|
|
153
|
-
removeDir_rec(fileOrDirPath);
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
external_fs_.unlinkSync(fileOrDirPath);
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
removeDir_rec(dirPath);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
;// CONCATENATED MODULE: ./dist/bin/tools/transformCodebase_async.js
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Apply a transformation function to every file of directory
|
|
170
|
-
* If source and destination are the same this function can be used to apply the transformation in place
|
|
171
|
-
* like filtering out some files or modifying them.
|
|
172
|
-
* */
|
|
173
|
-
async function transformCodebase(params) {
|
|
174
|
-
const { srcDirPath, transformSourceCode } = params;
|
|
175
|
-
const isTargetSameAsSource = external_path_.relative(srcDirPath, params.destDirPath) === '';
|
|
176
|
-
const destDirPath = isTargetSameAsSource
|
|
177
|
-
? external_path_.join(srcDirPath, '..', 'tmp_xOsPdkPsTdzPs34sOkHs')
|
|
178
|
-
: params.destDirPath;
|
|
179
|
-
external_fs_.mkdirSync(destDirPath, {
|
|
180
|
-
recursive: true
|
|
181
|
-
});
|
|
182
|
-
for (const fileRelativePath of crawl({
|
|
183
|
-
dirPath: srcDirPath,
|
|
184
|
-
returnedPathsType: 'relative to dirPath'
|
|
185
|
-
})) {
|
|
186
|
-
const filePath = external_path_.join(srcDirPath, fileRelativePath);
|
|
187
|
-
const destFilePath = external_path_.join(destDirPath, fileRelativePath);
|
|
188
|
-
// NOTE: Optimization, if we don't need to transform the file, just copy
|
|
189
|
-
// it using the lower level implementation.
|
|
190
|
-
if (transformSourceCode === undefined) {
|
|
191
|
-
external_fs_.mkdirSync(external_path_.dirname(destFilePath), {
|
|
192
|
-
recursive: true
|
|
193
|
-
});
|
|
194
|
-
external_fs_.copyFileSync(filePath, destFilePath);
|
|
195
|
-
continue;
|
|
196
|
-
}
|
|
197
|
-
const transformSourceCodeResult = await transformSourceCode({
|
|
198
|
-
sourceCode: external_fs_.readFileSync(filePath),
|
|
199
|
-
filePath,
|
|
200
|
-
fileRelativePath
|
|
201
|
-
});
|
|
202
|
-
if (transformSourceCodeResult === undefined) {
|
|
203
|
-
continue;
|
|
204
|
-
}
|
|
205
|
-
external_fs_.mkdirSync(external_path_.dirname(destFilePath), {
|
|
206
|
-
recursive: true
|
|
207
|
-
});
|
|
208
|
-
const { newFileName, modifiedSourceCode } = transformSourceCodeResult;
|
|
209
|
-
external_fs_.writeFileSync(external_path_.join(external_path_.dirname(destFilePath), newFileName !== null && newFileName !== void 0 ? newFileName : external_path_.basename(destFilePath)), modifiedSourceCode);
|
|
210
|
-
}
|
|
211
|
-
if (isTargetSameAsSource) {
|
|
212
|
-
rmSync(srcDirPath, { recursive: true });
|
|
213
|
-
external_fs_.renameSync(destDirPath, srcDirPath);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
;// CONCATENATED MODULE: ./node_modules/tsafe/esm/capitalize.mjs
|
|
218
|
-
/** @see <https://docs.tsafe.dev/capitalize> */
|
|
219
|
-
function capitalize(str) {
|
|
220
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
221
|
-
return (str.charAt(0).toUpperCase() + str.slice(1));
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
//# sourceMappingURL=capitalize.mjs.map
|
|
226
|
-
|
|
227
|
-
;// CONCATENATED MODULE: ./dist/bin/tools/kebabCaseToSnakeCase.js
|
|
228
|
-
|
|
229
|
-
function kebabCaseToCamelCase(kebabCaseString) {
|
|
230
|
-
const [first, ...rest] = kebabCaseString.split('-');
|
|
231
|
-
return [first, ...rest.map(capitalize)].join('');
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
;// CONCATENATED MODULE: ./dist/bin/tools/String.prototype.replaceAll.js
|
|
235
|
-
function replaceAll(string, searchValue, replaceValue) {
|
|
236
|
-
if (string.replaceAll !== undefined) {
|
|
237
|
-
return string.replaceAll(searchValue, replaceValue);
|
|
238
|
-
}
|
|
239
|
-
// If the searchValue is a string
|
|
240
|
-
if (typeof searchValue === 'string') {
|
|
241
|
-
// Escape special characters in the string to be used in a regex
|
|
242
|
-
var escapedSearchValue = searchValue.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
243
|
-
var regex = new RegExp(escapedSearchValue, 'g');
|
|
244
|
-
return string.replace(regex, replaceValue);
|
|
245
|
-
}
|
|
246
|
-
// If the searchValue is a global RegExp, use it directly
|
|
247
|
-
if (searchValue instanceof RegExp && searchValue.global) {
|
|
248
|
-
return string.replace(searchValue, replaceValue);
|
|
249
|
-
}
|
|
250
|
-
// If the searchValue is a non-global RegExp, throw an error
|
|
251
|
-
if (searchValue instanceof RegExp) {
|
|
252
|
-
throw new TypeError('replaceAll must be called with a global RegExp');
|
|
253
|
-
}
|
|
254
|
-
// Convert searchValue to string if it's not a string or RegExp
|
|
255
|
-
var searchString = String(searchValue);
|
|
256
|
-
var regexFromString = new RegExp(searchString.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'g');
|
|
257
|
-
return string.replace(regexFromString, replaceValue);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
// EXTERNAL MODULE: ./dist/bin/tools/runPrettier.js + 1 modules
|
|
261
|
-
var runPrettier = __webpack_require__(199);
|
|
262
|
-
;// CONCATENATED MODULE: ./dist/bin/eject-page.js
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
async function command(params) {
|
|
276
|
-
const { buildContext } = params;
|
|
277
|
-
console.log(source/* default */.Ay.cyan('Theme type:'));
|
|
278
|
-
const themeType = await (async () => {
|
|
279
|
-
const values = constants/* THEME_TYPES */.qA.filter(themeType => {
|
|
280
|
-
switch (themeType) {
|
|
281
|
-
case 'account':
|
|
282
|
-
return buildContext.implementedThemeTypes.account.isImplemented;
|
|
283
|
-
case 'login':
|
|
284
|
-
return buildContext.implementedThemeTypes.login.isImplemented;
|
|
285
|
-
}
|
|
286
|
-
(0,assert/* assert */.v)(false);
|
|
287
|
-
});
|
|
288
|
-
(0,assert/* assert */.v)(values.length > 0, 'No theme is implemented in this project');
|
|
289
|
-
if (values.length === 1) {
|
|
290
|
-
return values[0];
|
|
291
|
-
}
|
|
292
|
-
const { value } = await dist_default()({
|
|
293
|
-
values
|
|
294
|
-
}).catch(() => {
|
|
295
|
-
process.exit(-1);
|
|
296
|
-
});
|
|
297
|
-
return value;
|
|
298
|
-
})();
|
|
299
|
-
console.log(`→ ${themeType}`);
|
|
300
|
-
console.log(source/* default */.Ay.cyan('Select the page you want to customize:'));
|
|
301
|
-
const templateValue = 'template.ftl (Layout common to every page)';
|
|
302
|
-
const userProfileFormFieldsValue = 'user-profile-commons.ftl (Renders the form of the register.ftl, login-update-profile.ftl, update-email.ftl and idp-review-user-profile.ftl)';
|
|
303
|
-
const { value: pageIdOrComponent } = await dist_default()({
|
|
304
|
-
values: (() => {
|
|
305
|
-
switch (themeType) {
|
|
306
|
-
case 'login':
|
|
307
|
-
return [
|
|
308
|
-
templateValue,
|
|
309
|
-
userProfileFormFieldsValue,
|
|
310
|
-
...constants/* LOGIN_THEME_PAGE_IDS */.hz
|
|
311
|
-
];
|
|
312
|
-
case 'account':
|
|
313
|
-
return [templateValue, ...constants/* ACCOUNT_THEME_PAGE_IDS */.Hp];
|
|
314
|
-
}
|
|
315
|
-
(0,assert/* assert */.v)(false);
|
|
316
|
-
})()
|
|
317
|
-
}).catch(() => {
|
|
318
|
-
process.exit(-1);
|
|
319
|
-
});
|
|
320
|
-
console.log(`→ ${pageIdOrComponent}`);
|
|
321
|
-
const componentRelativeDirPath_posix_to_componentRelativeFilePath_posix = (params) => {
|
|
322
|
-
const { componentRelativeDirPath_posix } = params;
|
|
323
|
-
return `${componentRelativeDirPath_posix}/${external_path_.posix.basename(componentRelativeDirPath_posix)}.component`;
|
|
324
|
-
};
|
|
325
|
-
const componentDirRelativeToThemeTypePath = (() => {
|
|
326
|
-
if (pageIdOrComponent === templateValue) {
|
|
327
|
-
return (0,external_path_.join)('template');
|
|
328
|
-
}
|
|
329
|
-
if (pageIdOrComponent === userProfileFormFieldsValue) {
|
|
330
|
-
return (0,external_path_.join)('components', 'user-profile-form-fields');
|
|
331
|
-
}
|
|
332
|
-
return (0,external_path_.join)('pages', pageIdOrComponent.replace(/\.ftl$/, ''));
|
|
333
|
-
})();
|
|
334
|
-
{
|
|
335
|
-
const componentDirRelativeToThemeTypePaths = [
|
|
336
|
-
componentDirRelativeToThemeTypePath
|
|
337
|
-
];
|
|
338
|
-
while (componentDirRelativeToThemeTypePaths.length !== 0) {
|
|
339
|
-
const componentDirRelativeToThemeTypePath_i = componentDirRelativeToThemeTypePaths.pop();
|
|
340
|
-
(0,assert/* assert */.v)(componentDirRelativeToThemeTypePath_i !== undefined);
|
|
341
|
-
const destDirPath = (0,external_path_.join)(buildContext.themeSrcDirPath, themeType, componentDirRelativeToThemeTypePath_i);
|
|
342
|
-
const dirName = (0,external_path_.basename)(destDirPath);
|
|
343
|
-
const tsFilePath = (0,external_path_.join)(destDirPath, `${dirName}.component.ts`);
|
|
344
|
-
if (external_fs_.existsSync(destDirPath) && external_fs_.readdirSync(destDirPath).length !== 0) {
|
|
345
|
-
// Check if the directory contains a .ts file with the same name as the directory
|
|
346
|
-
if (external_fs_.existsSync(tsFilePath)) {
|
|
347
|
-
if (componentDirRelativeToThemeTypePath_i ===
|
|
348
|
-
componentDirRelativeToThemeTypePath) {
|
|
349
|
-
console.log(`${pageIdOrComponent.split('.ftl')[0]} is already ejected, ${(0,external_path_.relative)(process.cwd(), destDirPath)} already exists and contains ${dirName}.ts`);
|
|
350
|
-
process.exit(-1);
|
|
351
|
-
}
|
|
352
|
-
continue;
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
const localThemeTypeDirPath = (0,external_path_.join)((0,getThisCodebaseRootDirPath/* getThisCodebaseRootDirPath */.J)(), 'src', themeType);
|
|
356
|
-
await transformCodebase({
|
|
357
|
-
srcDirPath: (0,external_path_.join)(localThemeTypeDirPath, componentDirRelativeToThemeTypePath_i),
|
|
358
|
-
destDirPath,
|
|
359
|
-
transformSourceCode: async ({ filePath, fileRelativePath, sourceCode }) => {
|
|
360
|
-
if (!filePath.endsWith('.ts')) {
|
|
361
|
-
let modifiedSourceCode_str = sourceCode.toString('utf8');
|
|
362
|
-
run_prettier: {
|
|
363
|
-
if (!(await (0,runPrettier/* getIsPrettierAvailable */.L)())) {
|
|
364
|
-
break run_prettier;
|
|
365
|
-
}
|
|
366
|
-
modifiedSourceCode_str = await (0,runPrettier/* runPrettier */.J)({
|
|
367
|
-
filePath: (0,external_path_.join)(destDirPath, fileRelativePath),
|
|
368
|
-
sourceCode: modifiedSourceCode_str
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
return {
|
|
372
|
-
modifiedSourceCode: Buffer.from(modifiedSourceCode_str, 'utf8')
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
if (filePath.endsWith('index.ts')) {
|
|
376
|
-
return undefined;
|
|
377
|
-
}
|
|
378
|
-
const fileRelativeToThemeTypePath = (0,external_path_.relative)(localThemeTypeDirPath, filePath);
|
|
379
|
-
let modifiedSourceCode_str = sourceCode.toString();
|
|
380
|
-
const getPosixPathRelativeToFile = (params) => {
|
|
381
|
-
const { pathRelativeToThemeType } = params;
|
|
382
|
-
const path = (0,external_path_.relative)((0,external_path_.dirname)(fileRelativeToThemeTypePath), pathRelativeToThemeType)
|
|
383
|
-
.split(external_path_.sep)
|
|
384
|
-
.join('/');
|
|
385
|
-
return path.startsWith('.') ? path : `./${path}`;
|
|
386
|
-
};
|
|
387
|
-
modifiedSourceCode_str = replaceAll(modifiedSourceCode_str, `@keycloakify/angular/${themeType}/i18n`, getPosixPathRelativeToFile({
|
|
388
|
-
pathRelativeToThemeType: 'i18n'
|
|
389
|
-
}));
|
|
390
|
-
modifiedSourceCode_str = replaceAll(modifiedSourceCode_str, `@keycloakify/angular/${themeType}/KcContext`, getPosixPathRelativeToFile({
|
|
391
|
-
pathRelativeToThemeType: 'KcContext'
|
|
392
|
-
}));
|
|
393
|
-
modifiedSourceCode_str = modifiedSourceCode_str.replace(new RegExp(`@keycloakify/angular/${themeType}/components/([^'"]+)`, 'g'), (...[, componentDirRelativeToComponentsPath]) => {
|
|
394
|
-
const componentDirRelativeToThemeTypePath = (0,external_path_.join)('components', componentDirRelativeToComponentsPath);
|
|
395
|
-
componentDirRelativeToThemeTypePaths.push(componentDirRelativeToThemeTypePath);
|
|
396
|
-
return componentRelativeDirPath_posix_to_componentRelativeFilePath_posix({
|
|
397
|
-
componentRelativeDirPath_posix: getPosixPathRelativeToFile({
|
|
398
|
-
pathRelativeToThemeType: componentDirRelativeToThemeTypePath
|
|
399
|
-
})
|
|
400
|
-
});
|
|
401
|
-
});
|
|
402
|
-
run_prettier: {
|
|
403
|
-
if (!(await (0,runPrettier/* getIsPrettierAvailable */.L)())) {
|
|
404
|
-
break run_prettier;
|
|
405
|
-
}
|
|
406
|
-
modifiedSourceCode_str = await (0,runPrettier/* runPrettier */.J)({
|
|
407
|
-
filePath: (0,external_path_.join)(destDirPath, fileRelativePath),
|
|
408
|
-
sourceCode: modifiedSourceCode_str
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
return {
|
|
412
|
-
modifiedSourceCode: Buffer.from(modifiedSourceCode_str, 'utf8')
|
|
413
|
-
};
|
|
414
|
-
}
|
|
415
|
-
});
|
|
416
|
-
console.log(`${source/* default */.Ay.green('✓')} ${source/* default */.Ay.bold(`.${external_path_.sep}` + (0,external_path_.relative)(process.cwd(), destDirPath))} moved from the @keycloakify/angular to your project`);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
edit_KcPage: {
|
|
420
|
-
if (pageIdOrComponent !== templateValue &&
|
|
421
|
-
pageIdOrComponent !== userProfileFormFieldsValue) {
|
|
422
|
-
break edit_KcPage;
|
|
423
|
-
}
|
|
424
|
-
const kcAppTsFilePath = (0,external_path_.join)(buildContext.themeSrcDirPath, themeType, 'KcPage.ts');
|
|
425
|
-
const kcAppTsCode = external_fs_.readFileSync(kcAppTsFilePath).toString('utf8');
|
|
426
|
-
const modifiedKcAppTsCode = await (async () => {
|
|
427
|
-
const componentRelativeDirPath_posix = componentDirRelativeToThemeTypePath
|
|
428
|
-
.split(external_path_.sep)
|
|
429
|
-
.join('/');
|
|
430
|
-
let sourceCode = kcAppTsCode.replace(`@keycloakify/angular/${themeType}/${componentRelativeDirPath_posix}`, componentRelativeDirPath_posix_to_componentRelativeFilePath_posix({
|
|
431
|
-
componentRelativeDirPath_posix: `./${componentRelativeDirPath_posix}`
|
|
432
|
-
}));
|
|
433
|
-
run_prettier: {
|
|
434
|
-
if (!(await (0,runPrettier/* getIsPrettierAvailable */.L)())) {
|
|
435
|
-
break run_prettier;
|
|
436
|
-
}
|
|
437
|
-
sourceCode = await (0,runPrettier/* runPrettier */.J)({
|
|
438
|
-
filePath: kcAppTsFilePath,
|
|
439
|
-
sourceCode
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
return sourceCode;
|
|
443
|
-
})();
|
|
444
|
-
if (modifiedKcAppTsCode === kcAppTsCode) {
|
|
445
|
-
console.log(source/* default */.Ay.red('Unable to automatically update KcPage.ts, please update it manually'));
|
|
446
|
-
return;
|
|
447
|
-
}
|
|
448
|
-
external_fs_.writeFileSync(kcAppTsFilePath, Buffer.from(modifiedKcAppTsCode, 'utf8'));
|
|
449
|
-
console.log(`${source/* default */.Ay.green('✓')} ${source/* default */.Ay.bold(`.${external_path_.sep}` + (0,external_path_.relative)(process.cwd(), kcAppTsFilePath))} Updated`);
|
|
450
|
-
return;
|
|
451
|
-
}
|
|
452
|
-
const pageId = pageIdOrComponent;
|
|
453
|
-
console.log([
|
|
454
|
-
``,
|
|
455
|
-
`You now need to update your page router:`,
|
|
456
|
-
``,
|
|
457
|
-
`${source/* default */.Ay.bold((0,external_path_.join)('.', (0,external_path_.relative)(process.cwd(), buildContext.themeSrcDirPath), themeType, 'KcPage.ts'))}:`,
|
|
458
|
-
source/* default */.Ay.grey('```'),
|
|
459
|
-
`// ...`,
|
|
460
|
-
``,
|
|
461
|
-
...(() => {
|
|
462
|
-
let inGreenBlock = false;
|
|
463
|
-
return [
|
|
464
|
-
` export async function getKcPage(pageId: KcContext['pageId']): Promise<KcPage> {`,
|
|
465
|
-
` switch (pageId) {`,
|
|
466
|
-
`+`,
|
|
467
|
-
` case '${pageId}':`,
|
|
468
|
-
` return {`,
|
|
469
|
-
` PageComponent: (await import('${componentRelativeDirPath_posix_to_componentRelativeFilePath_posix({
|
|
470
|
-
componentRelativeDirPath_posix: `./${componentDirRelativeToThemeTypePath.split(external_path_.sep).join('/')}`
|
|
471
|
-
})}')).${kebabCaseToCamelCase(capitalize(pageId).replace(/\.ftl$/, ''))}Component,`,
|
|
472
|
-
` TemplateComponent,`,
|
|
473
|
-
...(themeType === 'login'
|
|
474
|
-
? [` UserProfileFormFieldsComponent,`]
|
|
475
|
-
: []),
|
|
476
|
-
...(themeType === 'login'
|
|
477
|
-
? [` doMakeUserConfirmPassword,`]
|
|
478
|
-
: []),
|
|
479
|
-
` doUseDefaultCss,`,
|
|
480
|
-
` classes,`,
|
|
481
|
-
` };`,
|
|
482
|
-
`+`,
|
|
483
|
-
` //...`,
|
|
484
|
-
` default:`,
|
|
485
|
-
` return {`,
|
|
486
|
-
` PageComponent: await getDefaultPageComponent(pageId),`,
|
|
487
|
-
` TemplateComponent,`,
|
|
488
|
-
...(themeType === 'login'
|
|
489
|
-
? [` UserProfileFormFieldsComponent,`]
|
|
490
|
-
: []),
|
|
491
|
-
...(themeType === 'login'
|
|
492
|
-
? [` doMakeUserConfirmPassword,`]
|
|
493
|
-
: []),
|
|
494
|
-
` doUseDefaultCss,`,
|
|
495
|
-
` classes,`,
|
|
496
|
-
` };`,
|
|
497
|
-
` }`,
|
|
498
|
-
` }`
|
|
499
|
-
].map(line => {
|
|
500
|
-
if (line === `+`) {
|
|
501
|
-
inGreenBlock = !inGreenBlock;
|
|
502
|
-
}
|
|
503
|
-
if (inGreenBlock || line.startsWith('+')) {
|
|
504
|
-
return source/* default */.Ay.green(line);
|
|
505
|
-
}
|
|
506
|
-
if (line.startsWith('-')) {
|
|
507
|
-
return source/* default */.Ay.red(line);
|
|
508
|
-
}
|
|
509
|
-
return source/* default */.Ay.grey(line);
|
|
510
|
-
});
|
|
511
|
-
})(),
|
|
512
|
-
source/* default */.Ay.grey('```')
|
|
513
|
-
].join('\n'));
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
/***/ }),
|
|
518
|
-
|
|
519
|
-
/***/ 427:
|
|
520
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
521
|
-
|
|
522
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
523
|
-
/* harmony export */ J: () => (/* binding */ getThisCodebaseRootDirPath)
|
|
524
|
-
/* harmony export */ });
|
|
525
|
-
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(896);
|
|
526
|
-
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
|
|
527
|
-
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(928);
|
|
528
|
-
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
function getThisCodebaseRootDirPath_rec(dirPath) {
|
|
532
|
-
if (fs__WEBPACK_IMPORTED_MODULE_0__.existsSync(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, 'package.json'))) {
|
|
533
|
-
return dirPath;
|
|
534
|
-
}
|
|
535
|
-
return getThisCodebaseRootDirPath_rec(path__WEBPACK_IMPORTED_MODULE_1__.join(dirPath, '..'));
|
|
536
|
-
}
|
|
537
|
-
let result = undefined;
|
|
538
|
-
function getThisCodebaseRootDirPath() {
|
|
539
|
-
if (result !== undefined) {
|
|
540
|
-
return result;
|
|
541
|
-
}
|
|
542
|
-
return (result = getThisCodebaseRootDirPath_rec(__dirname));
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
/***/ }),
|
|
547
|
-
|
|
548
|
-
/***/ 199:
|
|
549
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
// EXPORTS
|
|
553
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
554
|
-
L: () => (/* binding */ getIsPrettierAvailable),
|
|
555
|
-
J: () => (/* binding */ runPrettier)
|
|
556
|
-
});
|
|
557
|
-
|
|
558
|
-
// EXTERNAL MODULE: external "path"
|
|
559
|
-
var external_path_ = __webpack_require__(928);
|
|
560
|
-
;// CONCATENATED MODULE: ./dist/bin/tools/nodeModulesBinDirPath.js
|
|
561
|
-
|
|
562
|
-
let cache = undefined;
|
|
563
|
-
function getNodeModulesBinDirPath() {
|
|
564
|
-
if (cache !== undefined) {
|
|
565
|
-
return cache;
|
|
566
|
-
}
|
|
567
|
-
const binPath = process.argv[1];
|
|
568
|
-
const segments = ['.bin'];
|
|
569
|
-
let foundNodeModules = false;
|
|
570
|
-
for (const segment of binPath.split(external_path_.sep).reverse()) {
|
|
571
|
-
skip_segment: {
|
|
572
|
-
if (foundNodeModules) {
|
|
573
|
-
break skip_segment;
|
|
574
|
-
}
|
|
575
|
-
if (segment === 'node_modules') {
|
|
576
|
-
foundNodeModules = true;
|
|
577
|
-
break skip_segment;
|
|
578
|
-
}
|
|
579
|
-
continue;
|
|
580
|
-
}
|
|
581
|
-
segments.unshift(segment);
|
|
582
|
-
}
|
|
583
|
-
const nodeModulesBinDirPath = segments.join(external_path_.sep);
|
|
584
|
-
cache = nodeModulesBinDirPath;
|
|
585
|
-
return nodeModulesBinDirPath;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
// EXTERNAL MODULE: external "fs/promises"
|
|
589
|
-
var promises_ = __webpack_require__(943);
|
|
590
|
-
// EXTERNAL MODULE: ./node_modules/tsafe/esm/id.mjs
|
|
591
|
-
var id = __webpack_require__(94);
|
|
592
|
-
// EXTERNAL MODULE: ./node_modules/tsafe/esm/assert.mjs + 1 modules
|
|
593
|
-
var assert = __webpack_require__(966);
|
|
594
|
-
// EXTERNAL MODULE: ./node_modules/chalk/source/index.js + 3 modules
|
|
595
|
-
var source = __webpack_require__(797);
|
|
596
|
-
// EXTERNAL MODULE: external "crypto"
|
|
597
|
-
var external_crypto_ = __webpack_require__(982);
|
|
598
|
-
;// CONCATENATED MODULE: ./dist/bin/tools/runPrettier.js
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
getIsPrettierAvailable.cache = (0,id.id)(undefined);
|
|
607
|
-
async function getIsPrettierAvailable() {
|
|
608
|
-
var _a;
|
|
609
|
-
if (getIsPrettierAvailable.cache !== undefined) {
|
|
610
|
-
return getIsPrettierAvailable.cache;
|
|
611
|
-
}
|
|
612
|
-
const nodeModulesBinDirPath = getNodeModulesBinDirPath();
|
|
613
|
-
const prettierBinPath = (0,external_path_.join)(nodeModulesBinDirPath, 'prettier');
|
|
614
|
-
const stats = await promises_.stat(prettierBinPath).catch(() => undefined);
|
|
615
|
-
const isPrettierAvailable = (_a = stats === null || stats === void 0 ? void 0 : stats.isFile()) !== null && _a !== void 0 ? _a : false;
|
|
616
|
-
getIsPrettierAvailable.cache = isPrettierAvailable;
|
|
617
|
-
return isPrettierAvailable;
|
|
618
|
-
}
|
|
619
|
-
getPrettier.cache = (0,id.id)(undefined);
|
|
620
|
-
async function getPrettier() {
|
|
621
|
-
(0,assert/* assert */.v)(getIsPrettierAvailable());
|
|
622
|
-
if (getPrettier.cache !== undefined) {
|
|
623
|
-
return getPrettier.cache;
|
|
624
|
-
}
|
|
625
|
-
const prettier = await Promise.resolve(/* import() */).then(__webpack_require__.t.bind(__webpack_require__, 824, 23));
|
|
626
|
-
const configHash = await (async () => {
|
|
627
|
-
const configFilePath = await prettier.resolveConfigFile((0,external_path_.join)(getNodeModulesBinDirPath(), '..'));
|
|
628
|
-
if (configFilePath === null) {
|
|
629
|
-
return '';
|
|
630
|
-
}
|
|
631
|
-
const data = await promises_.readFile(configFilePath);
|
|
632
|
-
return external_crypto_.createHash('sha256').update(data).digest('hex');
|
|
633
|
-
})();
|
|
634
|
-
const prettierAndConfig = {
|
|
635
|
-
prettier,
|
|
636
|
-
configHash
|
|
637
|
-
};
|
|
638
|
-
getPrettier.cache = prettierAndConfig;
|
|
639
|
-
return prettierAndConfig;
|
|
640
|
-
}
|
|
641
|
-
async function runPrettier(params) {
|
|
642
|
-
const { sourceCode, filePath } = params;
|
|
643
|
-
let formattedSourceCode;
|
|
644
|
-
try {
|
|
645
|
-
const { prettier } = await getPrettier();
|
|
646
|
-
const { ignored, inferredParser } = await prettier.getFileInfo(filePath, {
|
|
647
|
-
resolveConfig: true
|
|
648
|
-
});
|
|
649
|
-
if (ignored) {
|
|
650
|
-
return sourceCode;
|
|
651
|
-
}
|
|
652
|
-
const config = await prettier.resolveConfig(filePath);
|
|
653
|
-
formattedSourceCode = await prettier.format(sourceCode, Object.assign(Object.assign({}, config), { filePath, parser: inferredParser !== null && inferredParser !== void 0 ? inferredParser : undefined }));
|
|
654
|
-
}
|
|
655
|
-
catch (error) {
|
|
656
|
-
console.log(source/* default */.Ay.red(`You probably need to upgrade the version of prettier in your project`));
|
|
657
|
-
throw error;
|
|
658
|
-
}
|
|
659
|
-
return formattedSourceCode;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
/***/ })
|
|
664
|
-
|
|
665
|
-
};
|
|
666
|
-
;
|