keycloakify 9.4.0-rc.13 → 9.4.0-rc.14

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.
@@ -186,6 +186,464 @@ export declare function getMessages(currentLanguageTag: string): Promise<{
186
186
  "role_offline-access": string;
187
187
  client_account: string;
188
188
  "client_account-console": string;
189
+ "client_security-admin-console": string;
190
+ "client_admin-cli": string;
191
+ "client_realm-management": string;
192
+ client_broker: string;
193
+ requiredFields: string;
194
+ invalidUserMessage: string;
195
+ invalidUsernameMessage: string;
196
+ invalidUsernameOrEmailMessage: string;
197
+ invalidPasswordMessage: string;
198
+ invalidEmailMessage: string;
199
+ accountDisabledMessage: string;
200
+ accountTemporarilyDisabledMessage: string;
201
+ expiredCodeMessage: string;
202
+ expiredActionMessage: string;
203
+ expiredActionTokenNoSessionMessage: string;
204
+ expiredActionTokenSessionExistsMessage: string;
205
+ sessionLimitExceeded: string;
206
+ missingFirstNameMessage: string;
207
+ missingLastNameMessage: string;
208
+ missingEmailMessage: string;
209
+ missingUsernameMessage: string;
210
+ missingPasswordMessage: string;
211
+ missingTotpMessage: string;
212
+ missingTotpDeviceNameMessage: string;
213
+ notMatchPasswordMessage: string;
214
+ "error-invalid-value": string;
215
+ "error-invalid-blank": string;
216
+ "error-empty": string;
217
+ "error-invalid-length": string;
218
+ "error-invalid-length-too-short": string;
219
+ "error-invalid-length-too-long": string;
220
+ "error-invalid-email": string;
221
+ "error-invalid-number": string;
222
+ "error-number-out-of-range": string;
223
+ "error-number-out-of-range-too-small": string;
224
+ "error-number-out-of-range-too-big": string;
225
+ "error-pattern-no-match": string;
226
+ "error-invalid-uri": string;
227
+ "error-invalid-uri-scheme": string;
228
+ "error-invalid-uri-fragment": string;
229
+ "error-user-attribute-required": string;
230
+ "error-invalid-date": string;
231
+ "error-user-attribute-read-only": string;
232
+ "error-username-invalid-character": string;
233
+ "error-person-name-invalid-character": string;
234
+ "error-reset-otp-missing-id": string;
235
+ invalidPasswordExistingMessage: string;
236
+ invalidPasswordBlacklistedMessage: string;
237
+ invalidPasswordConfirmMessage: string;
238
+ invalidTotpMessage: string;
239
+ usernameExistsMessage: string;
240
+ emailExistsMessage: string;
241
+ federatedIdentityExistsMessage: string;
242
+ federatedIdentityUnavailableMessage: string;
243
+ federatedIdentityUnmatchedEssentialClaimMessage: string;
244
+ confirmLinkIdpTitle: string;
245
+ federatedIdentityConfirmLinkMessage: string;
246
+ federatedIdentityConfirmReauthenticateMessage: string;
247
+ nestedFirstBrokerFlowMessage: string;
248
+ confirmLinkIdpReviewProfile: string;
249
+ confirmLinkIdpContinue: string;
250
+ configureTotpMessage: string;
251
+ configureBackupCodesMessage: string;
252
+ updateProfileMessage: string;
253
+ updatePasswordMessage: string;
254
+ updateEmailMessage: string;
255
+ resetPasswordMessage: string;
256
+ verifyEmailMessage: string;
257
+ linkIdpMessage: string;
258
+ emailSentMessage: string;
259
+ emailSendErrorMessage: string;
260
+ accountUpdatedMessage: string;
261
+ accountPasswordUpdatedMessage: string;
262
+ delegationCompleteHeader: string;
263
+ delegationCompleteMessage: string;
264
+ delegationFailedHeader: string;
265
+ delegationFailedMessage: string;
266
+ noAccessMessage: string;
267
+ invalidPasswordMinLengthMessage: string;
268
+ invalidPasswordMaxLengthMessage: string;
269
+ invalidPasswordMinDigitsMessage: string;
270
+ invalidPasswordMinLowerCaseCharsMessage: string;
271
+ invalidPasswordMinUpperCaseCharsMessage: string;
272
+ invalidPasswordMinSpecialCharsMessage: string;
273
+ invalidPasswordNotUsernameMessage: string;
274
+ invalidPasswordNotEmailMessage: string;
275
+ invalidPasswordRegexPatternMessage: string;
276
+ invalidPasswordHistoryMessage: string;
277
+ invalidPasswordGenericMessage: string;
278
+ failedToProcessResponseMessage: string;
279
+ httpsRequiredMessage: string;
280
+ realmNotEnabledMessage: string;
281
+ invalidRequestMessage: string;
282
+ successLogout: string;
283
+ failedLogout: string;
284
+ unknownLoginRequesterMessage: string;
285
+ loginRequesterNotEnabledMessage: string;
286
+ bearerOnlyMessage: string;
287
+ standardFlowDisabledMessage: string;
288
+ implicitFlowDisabledMessage: string;
289
+ invalidRedirectUriMessage: string;
290
+ unsupportedNameIdFormatMessage: string;
291
+ invalidRequesterMessage: string;
292
+ registrationNotAllowedMessage: string;
293
+ resetCredentialNotAllowedMessage: string;
294
+ permissionNotApprovedMessage: string;
295
+ noRelayStateInResponseMessage: string;
296
+ insufficientPermissionMessage: string;
297
+ couldNotProceedWithAuthenticationRequestMessage: string;
298
+ couldNotObtainTokenMessage: string;
299
+ unexpectedErrorRetrievingTokenMessage: string;
300
+ unexpectedErrorHandlingResponseMessage: string;
301
+ identityProviderAuthenticationFailedMessage: string;
302
+ couldNotSendAuthenticationRequestMessage: string;
303
+ unexpectedErrorHandlingRequestMessage: string;
304
+ invalidAccessCodeMessage: string;
305
+ sessionNotActiveMessage: string;
306
+ invalidCodeMessage: string;
307
+ cookieNotFoundMessage: string;
308
+ insufficientLevelOfAuthentication: string;
309
+ identityProviderUnexpectedErrorMessage: string;
310
+ identityProviderMissingStateMessage: string;
311
+ identityProviderMissingCodeOrErrorMessage: string;
312
+ identityProviderInvalidResponseMessage: string;
313
+ identityProviderInvalidSignatureMessage: string;
314
+ identityProviderNotFoundMessage: string;
315
+ identityProviderLinkSuccess: string;
316
+ staleCodeMessage: string;
317
+ realmSupportsNoCredentialsMessage: string;
318
+ credentialSetupRequired: string;
319
+ identityProviderNotUniqueMessage: string;
320
+ emailVerifiedMessage: string;
321
+ staleEmailVerificationLink: string;
322
+ identityProviderAlreadyLinkedMessage: string;
323
+ confirmAccountLinking: string;
324
+ confirmEmailAddressVerification: string;
325
+ confirmExecutionOfActions: string;
326
+ locale_ar: string;
327
+ locale_ca: string;
328
+ locale_cs: string;
329
+ locale_da: string;
330
+ locale_de: string;
331
+ locale_en: string;
332
+ locale_es: string;
333
+ locale_fi: string;
334
+ locale_fr: string;
335
+ locale_hu: string;
336
+ locale_it: string;
337
+ locale_ja: string;
338
+ locale_lt: string;
339
+ locale_lv: string;
340
+ locale_nl: string;
341
+ locale_no: string;
342
+ locale_pl: string;
343
+ locale_pt_BR: string;
344
+ locale_ru: string;
345
+ locale_sk: string;
346
+ locale_sv: string;
347
+ locale_th: string;
348
+ locale_tr: string;
349
+ "locale_zh-CN": string;
350
+ backToApplication: string;
351
+ missingParameterMessage: string;
352
+ clientNotFoundMessage: string;
353
+ clientDisabledMessage: string;
354
+ invalidParameterMessage: string;
355
+ alreadyLoggedIn: string;
356
+ differentUserAuthenticated: string;
357
+ brokerLinkingSessionExpired: string;
358
+ proceedWithAction: string;
359
+ acrNotFulfilled: string;
360
+ "requiredAction.CONFIGURE_TOTP": string;
361
+ "requiredAction.TERMS_AND_CONDITIONS": string;
362
+ "requiredAction.UPDATE_PASSWORD": string;
363
+ "requiredAction.UPDATE_PROFILE": string;
364
+ "requiredAction.VERIFY_EMAIL": string;
365
+ "requiredAction.CONFIGURE_RECOVERY_AUTHN_CODES": string;
366
+ "requiredAction.webauthn-register-passwordless": string;
367
+ invalidTokenRequiredActions: string;
368
+ doX509Login: string;
369
+ clientCertificate: string;
370
+ noCertificate: string;
371
+ pageNotFound: string;
372
+ internalServerError: string;
373
+ "console-username": string;
374
+ "console-password": string;
375
+ "console-otp": string;
376
+ "console-new-password": string;
377
+ "console-confirm-password": string;
378
+ "console-update-password": string;
379
+ "console-verify-email": string;
380
+ "console-email-code": string;
381
+ "console-accept-terms": string;
382
+ "console-accept": string;
383
+ "openshift.scope.user_info": string;
384
+ "openshift.scope.user_check-access": string;
385
+ "openshift.scope.user_full": string;
386
+ "openshift.scope.list-projects": string;
387
+ "saml.post-form.title": string;
388
+ "saml.post-form.message": string;
389
+ "saml.post-form.js-disabled": string;
390
+ "saml.artifactResolutionServiceInvalidResponse": string;
391
+ "otp-display-name": string;
392
+ "otp-help-text": string;
393
+ "otp-reset-description": string;
394
+ "password-display-name": string;
395
+ "password-help-text": string;
396
+ "auth-username-form-display-name": string;
397
+ "auth-username-form-help-text": string;
398
+ "auth-username-password-form-display-name": string;
399
+ "auth-username-password-form-help-text": string;
400
+ "auth-recovery-authn-code-form-display-name": string;
401
+ "auth-recovery-authn-code-form-help-text": string;
402
+ "auth-recovery-code-info-message": string;
403
+ "auth-recovery-code-prompt": string;
404
+ "auth-recovery-code-header": string;
405
+ "recovery-codes-error-invalid": string;
406
+ "recovery-code-config-header": string;
407
+ "recovery-code-config-warning-title": string;
408
+ "recovery-code-config-warning-message": string;
409
+ "recovery-codes-print": string;
410
+ "recovery-codes-download": string;
411
+ "recovery-codes-copy": string;
412
+ "recovery-codes-copied": string;
413
+ "recovery-codes-confirmation-message": string;
414
+ "recovery-codes-action-complete": string;
415
+ "recovery-codes-action-cancel": string;
416
+ "recovery-codes-download-file-header": string;
417
+ "recovery-codes-download-file-description": string;
418
+ "recovery-codes-download-file-date": string;
419
+ "recovery-codes-label-default": string;
420
+ "webauthn-display-name": string;
421
+ "webauthn-help-text": string;
422
+ "webauthn-passwordless-display-name": string;
423
+ "webauthn-passwordless-help-text": string;
424
+ "webauthn-login-title": string;
425
+ "webauthn-registration-title": string;
426
+ "webauthn-available-authenticators": string;
427
+ "webauthn-unsupported-browser-text": string;
428
+ "webauthn-doAuthenticate": string;
429
+ "webauthn-createdAt-label": string;
430
+ "webauthn-error-title": string;
431
+ "webauthn-error-registration": string;
432
+ "webauthn-error-api-get": string;
433
+ "webauthn-error-different-user": string;
434
+ "webauthn-error-auth-verification": string;
435
+ "webauthn-error-register-verification": string;
436
+ "webauthn-error-user-not-found": string;
437
+ "identity-provider-redirector": string;
438
+ "identity-provider-login-label": string;
439
+ "idp-email-verification-display-name": string;
440
+ "idp-email-verification-help-text": string;
441
+ "idp-username-password-form-display-name": string;
442
+ "idp-username-password-form-help-text": string;
443
+ finalDeletionConfirmation: string;
444
+ irreversibleAction: string;
445
+ deleteAccountConfirm: string;
446
+ deletingImplies: string;
447
+ errasingData: string;
448
+ loggingOutImmediately: string;
449
+ accountUnusable: string;
450
+ userDeletedSuccessfully: string;
451
+ "access-denied": string;
452
+ "access-denied-when-idp-auth": string;
453
+ "frontchannel-logout.title": string;
454
+ "frontchannel-logout.message": string;
455
+ logoutConfirmTitle: string;
456
+ logoutConfirmHeader: string;
457
+ doLogout: string;
458
+ readOnlyUsernameMessage: string;
459
+ } | {
460
+ doLogIn: string;
461
+ doRegister: string;
462
+ doCancel: string;
463
+ doSubmit: string;
464
+ doBack: string;
465
+ doYes: string;
466
+ doNo: string;
467
+ doContinue: string;
468
+ doIgnore: string;
469
+ doAccept: string;
470
+ doDecline: string;
471
+ doForgotPassword: string;
472
+ doClickHere: string;
473
+ doImpersonate: string;
474
+ doTryAgain: string;
475
+ doTryAnotherWay: string;
476
+ doConfirmDelete: string;
477
+ errorDeletingAccount: string;
478
+ deletingAccountForbidden: string;
479
+ kerberosNotConfigured: string;
480
+ kerberosNotConfiguredTitle: string;
481
+ bypassKerberosDetail: string;
482
+ kerberosNotSetUp: string;
483
+ registerTitle: string;
484
+ loginAccountTitle: string;
485
+ loginTitle: string;
486
+ loginTitleHtml: string;
487
+ impersonateTitle: string;
488
+ impersonateTitleHtml: string;
489
+ realmChoice: string;
490
+ unknownUser: string;
491
+ loginTotpTitle: string;
492
+ loginProfileTitle: string;
493
+ loginIdpReviewProfileTitle: string;
494
+ loginTimeout: string;
495
+ reauthenticate: string;
496
+ oauthGrantTitle: string;
497
+ oauthGrantTitleHtml: string;
498
+ oauthGrantInformation: string;
499
+ oauthGrantReview: string;
500
+ oauthGrantTos: string;
501
+ oauthGrantPolicy: string;
502
+ errorTitle: string;
503
+ errorTitleHtml: string;
504
+ emailVerifyTitle: string;
505
+ emailForgotTitle: string;
506
+ updateEmailTitle: string;
507
+ emailUpdateConfirmationSentTitle: string;
508
+ emailUpdateConfirmationSent: string;
509
+ emailUpdatedTitle: string;
510
+ emailUpdated: string;
511
+ updatePasswordTitle: string;
512
+ codeSuccessTitle: string;
513
+ codeErrorTitle: string;
514
+ displayUnsupported: string;
515
+ browserRequired: string;
516
+ browserContinue: string;
517
+ browserContinuePrompt: string;
518
+ browserContinueAnswer: string;
519
+ usb: string;
520
+ nfc: string;
521
+ bluetooth: string;
522
+ internal: string;
523
+ unknown: string;
524
+ termsTitle: string;
525
+ termsText: string;
526
+ termsPlainText: string;
527
+ termsAcceptanceRequired: string;
528
+ acceptTerms: string;
529
+ recaptchaFailed: string;
530
+ recaptchaNotConfigured: string;
531
+ consentDenied: string;
532
+ noAccount: string;
533
+ username: string;
534
+ usernameOrEmail: string;
535
+ firstName: string;
536
+ givenName: string;
537
+ fullName: string;
538
+ lastName: string;
539
+ familyName: string;
540
+ email: string;
541
+ password: string;
542
+ passwordConfirm: string;
543
+ passwordNew: string;
544
+ passwordNewConfirm: string;
545
+ hidePassword: string;
546
+ showPassword: string;
547
+ rememberMe: string;
548
+ authenticatorCode: string;
549
+ address: string;
550
+ street: string;
551
+ locality: string;
552
+ region: string;
553
+ postal_code: string;
554
+ country: string;
555
+ emailVerified: string;
556
+ website: string;
557
+ phoneNumber: string;
558
+ phoneNumberVerified: string;
559
+ gender: string;
560
+ birthday: string;
561
+ zoneinfo: string;
562
+ gssDelegationCredential: string;
563
+ logoutOtherSessions: string;
564
+ profileScopeConsentText: string;
565
+ emailScopeConsentText: string;
566
+ addressScopeConsentText: string;
567
+ phoneScopeConsentText: string;
568
+ offlineAccessScopeConsentText: string;
569
+ samlRoleListScopeConsentText: string;
570
+ rolesScopeConsentText: string;
571
+ restartLoginTooltip: string;
572
+ loginTotpIntro: string;
573
+ loginTotpStep1: string;
574
+ loginTotpStep2: string;
575
+ loginTotpStep3: string;
576
+ loginTotpStep3DeviceName: string;
577
+ loginTotpManualStep2: string;
578
+ loginTotpManualStep3: string;
579
+ loginTotpUnableToScan: string;
580
+ loginTotpScanBarcode: string;
581
+ loginCredential: string;
582
+ loginOtpOneTime: string;
583
+ loginTotpType: string;
584
+ loginTotpAlgorithm: string;
585
+ loginTotpDigits: string;
586
+ loginTotpInterval: string;
587
+ loginTotpCounter: string;
588
+ loginTotpDeviceName: string;
589
+ "loginTotp.totp": string;
590
+ "loginTotp.hotp": string;
591
+ totpAppFreeOTPName: string;
592
+ totpAppGoogleName: string;
593
+ totpAppMicrosoftAuthenticatorName: string;
594
+ loginChooseAuthenticator: string;
595
+ oauthGrantRequest: string;
596
+ inResource: string;
597
+ oauth2DeviceVerificationTitle: string;
598
+ verifyOAuth2DeviceUserCode: string;
599
+ oauth2DeviceInvalidUserCodeMessage: string;
600
+ oauth2DeviceExpiredUserCodeMessage: string;
601
+ oauth2DeviceVerificationCompleteHeader: string;
602
+ oauth2DeviceVerificationCompleteMessage: string;
603
+ oauth2DeviceVerificationFailedHeader: string;
604
+ oauth2DeviceVerificationFailedMessage: string;
605
+ oauth2DeviceConsentDeniedMessage: string;
606
+ oauth2DeviceAuthorizationGrantDisabledMessage: string;
607
+ emailVerifyInstruction1: string;
608
+ emailVerifyInstruction2: string;
609
+ emailVerifyInstruction3: string;
610
+ emailLinkIdpTitle: string;
611
+ emailLinkIdp1: string;
612
+ emailLinkIdp2: string;
613
+ emailLinkIdp3: string;
614
+ emailLinkIdp4: string;
615
+ emailLinkIdp5: string;
616
+ backToLogin: string;
617
+ emailInstruction: string;
618
+ emailInstructionUsername: string;
619
+ copyCodeInstruction: string;
620
+ pageExpiredTitle: string;
621
+ pageExpiredMsg1: string;
622
+ pageExpiredMsg2: string;
623
+ personalInfo: string;
624
+ role_admin: string;
625
+ "role_realm-admin": string;
626
+ "role_create-realm": string;
627
+ "role_create-client": string;
628
+ "role_view-realm": string;
629
+ "role_view-users": string;
630
+ "role_view-applications": string;
631
+ "role_view-clients": string;
632
+ "role_view-events": string;
633
+ "role_view-identity-providers": string;
634
+ "role_manage-realm": string;
635
+ "role_manage-users": string;
636
+ "role_manage-applications": string;
637
+ "role_manage-identity-providers": string;
638
+ "role_manage-clients": string;
639
+ "role_manage-events": string;
640
+ "role_view-profile": string;
641
+ "role_manage-account": string;
642
+ "role_manage-account-links": string;
643
+ "role_read-token": string;
644
+ "role_offline-access": string;
645
+ client_account: string;
646
+ "client_account-console": string;
189
647
  "client_realm-management": string;
190
648
  client_broker: string;
191
649
  requiredFields: string;
@@ -1,15 +1,16 @@
1
1
  //This code was automatically generated by running scripts/generate-i18n-messages.ts
2
2
  //PLEASE DO NOT EDIT MANUALLY
3
+ import * as en from "./en";
3
4
  export async function getMessages(currentLanguageTag) {
4
5
  const { default: messages } = await (() => {
5
6
  switch (currentLanguageTag) {
7
+ case "en": return en;
6
8
  case "ar": return import("./ar");
7
9
  case "ca": return import("./ca");
8
10
  case "cs": return import("./cs");
9
11
  case "da": return import("./da");
10
12
  case "de": return import("./de");
11
13
  case "el": return import("./el");
12
- case "en": return import("./en");
13
14
  case "es": return import("./es");
14
15
  case "fa": return import("./fa");
15
16
  case "fi": return import("./fi");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/login/i18n/baseMessages/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,6BAA6B;AAE7B,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,kBAA0B;IACxD,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE;QACtC,QAAQ,kBAAkB,EAAE;YACxB,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;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CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,OAAO,CAAC,CAAC,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC;YACvC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACjC,KAAK,OAAO,CAAC,CAAC,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC;YACvC,OAAO,CAAC,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;SACrC;IACL,CAAC,CAAC,EAAE,CAAC;IACL,OAAO,QAAQ,CAAC;AACpB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "9.4.0-rc.13",
3
+ "version": "9.4.0-rc.14",
4
4
  "description": "Create Keycloak themes using React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,16 +1,17 @@
1
1
  //This code was automatically generated by running scripts/generate-i18n-messages.ts
2
2
  //PLEASE DO NOT EDIT MANUALLY
3
+ import * as en from "./en";
3
4
 
4
5
  export async function getMessages(currentLanguageTag: string) {
5
6
  const { default: messages } = await (() => {
6
7
  switch (currentLanguageTag) {
8
+ case "en": return en;
7
9
  case "ar": return import("./ar");
8
10
  case "ca": return import("./ca");
9
11
  case "cs": return import("./cs");
10
12
  case "da": return import("./da");
11
13
  case "de": return import("./de");
12
14
  case "el": return import("./el");
13
- case "en": return import("./en");
14
15
  case "es": return import("./es");
15
16
  case "fa": return import("./fa");
16
17
  case "fi": return import("./fi");
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { downloadKeycloakStaticResources, type BuildOptionsLike } from "./keycloakify/generateTheme/downloadKeycloakStaticResources";
4
- import { join as pathJoin } from "path";
4
+ import { join as pathJoin, relative as pathRelative } from "path";
5
5
  import { readBuildOptions } from "./keycloakify/buildOptions";
6
6
  import { themeTypes, keycloak_resources, lastKeycloakVersionWithAccountV1 } from "./constants";
7
7
  import { readThisNpmProjectVersion } from "./tools/readThisNpmProjectVersion";
@@ -19,6 +19,7 @@ export async function copyKeycloakResourcesToPublic(params: { processArgv: strin
19
19
  const keycloakifyBuildinfoFilePath = pathJoin(destDirPath, "keycloakify.buildinfo");
20
20
 
21
21
  const { keycloakifyBuildinfoRaw } = generateKeycloakifyBuildinfoRaw({
22
+ destDirPath,
22
23
  "keycloakifyVersion": readThisNpmProjectVersion(),
23
24
  buildOptions
24
25
  });
@@ -72,12 +73,13 @@ export async function copyKeycloakResourcesToPublic(params: { processArgv: strin
72
73
  }
73
74
 
74
75
  export function generateKeycloakifyBuildinfoRaw(params: {
76
+ destDirPath: string;
75
77
  keycloakifyVersion: string;
76
78
  buildOptions: BuildOptionsLike & {
77
79
  loginThemeResourcesFromKeycloakVersion: string;
78
80
  };
79
81
  }) {
80
- const { keycloakifyVersion, buildOptions } = params;
82
+ const { destDirPath, keycloakifyVersion, buildOptions } = params;
81
83
 
82
84
  const { cacheDirPath, npmWorkspaceRootDirPath, loginThemeResourcesFromKeycloakVersion, ...rest } = buildOptions;
83
85
 
@@ -88,8 +90,8 @@ export function generateKeycloakifyBuildinfoRaw(params: {
88
90
  keycloakifyVersion,
89
91
  "buildOptions": {
90
92
  loginThemeResourcesFromKeycloakVersion,
91
- cacheDirPath,
92
- npmWorkspaceRootDirPath
93
+ "cacheDirPath": pathRelative(destDirPath, cacheDirPath),
94
+ "npmWorkspaceRootDirPath": pathRelative(destDirPath, npmWorkspaceRootDirPath)
93
95
  }
94
96
  },
95
97
  null,
@@ -1,16 +1,17 @@
1
1
  //This code was automatically generated by running scripts/generate-i18n-messages.ts
2
2
  //PLEASE DO NOT EDIT MANUALLY
3
+ import * as en from "./en";
3
4
 
4
5
  export async function getMessages(currentLanguageTag: string) {
5
6
  const { default: messages } = await (() => {
6
7
  switch (currentLanguageTag) {
8
+ case "en": return en;
7
9
  case "ar": return import("./ar");
8
10
  case "ca": return import("./ca");
9
11
  case "cs": return import("./cs");
10
12
  case "da": return import("./da");
11
13
  case "de": return import("./de");
12
14
  case "el": return import("./el");
13
- case "en": return import("./en");
14
15
  case "es": return import("./es");
15
16
  case "fa": return import("./fa");
16
17
  case "fi": return import("./fi");
@@ -1,6 +1,5 @@
1
1
  import { join as pathJoin, relative as pathRelative, sep as pathSep } from "path";
2
2
  import type { Plugin } from "vite";
3
- import { assert } from "tsafe/assert";
4
3
  import * as fs from "fs";
5
4
  import { resolvedViteConfigJsonBasename, nameOfTheGlobal, basenameOfTheKeycloakifyResourcesDir, keycloak_resources } from "../bin/constants";
6
5
  import type { ResolvedViteConfig } from "../bin/keycloakify/buildOptions/resolvedViteConfig";
@@ -9,15 +8,16 @@ import { replaceAll } from "../bin/tools/String.prototype.replaceAll";
9
8
  import { id } from "tsafe/id";
10
9
  import { rm } from "../bin/tools/fs.rm";
11
10
  import { copyKeycloakResourcesToPublic } from "../bin/copy-keycloak-resources-to-public";
11
+ import { assert } from "tsafe/assert";
12
12
 
13
- export function keycloakify(): Plugin {
13
+ export function keycloakify() {
14
14
  let reactAppRootDirPath: string | undefined = undefined;
15
15
  let urlPathname: string | undefined = undefined;
16
16
  let buildDirPath: string | undefined = undefined;
17
17
  let command: "build" | "serve" | undefined = undefined;
18
18
 
19
- return {
20
- "name": "keycloakify",
19
+ const plugin = {
20
+ "name": "keycloakify" as const,
21
21
  "configResolved": async resolvedConfig => {
22
22
  command = resolvedConfig.command;
23
23
 
@@ -25,6 +25,15 @@ export function keycloakify(): Plugin {
25
25
  urlPathname = (() => {
26
26
  let out = resolvedConfig.env.BASE_URL;
27
27
 
28
+ if (out.startsWith(".") && command === "build") {
29
+ throw new Error(
30
+ [
31
+ `BASE_URL=${out} is not supported By Keycloakify. Use an absolute URL instead.`,
32
+ `If this is a problem, please open an issue at https://github.com/keycloakify/keycloakify/issues/new`
33
+ ].join("\n")
34
+ );
35
+ }
36
+
28
37
  if (out === undefined) {
29
38
  return undefined;
30
39
  }
@@ -91,9 +100,8 @@ export function keycloakify(): Plugin {
91
100
  }
92
101
  }
93
102
 
94
- const isJavascriptFile = id.endsWith(".js") || id.endsWith(".jsx");
95
-
96
103
  {
104
+ const isJavascriptFile = id.endsWith(".js") || id.endsWith(".jsx");
97
105
  const isTypeScriptFile = id.endsWith(".ts") || id.endsWith(".tsx");
98
106
 
99
107
  if (!isTypeScriptFile && !isJavascriptFile) {
@@ -101,8 +109,6 @@ export function keycloakify(): Plugin {
101
109
  }
102
110
  }
103
111
 
104
- const windowToken = isJavascriptFile ? "window" : "(window as any)";
105
-
106
112
  if (transformedCode === undefined) {
107
113
  transformedCode = code;
108
114
  }
@@ -112,9 +118,9 @@ export function keycloakify(): Plugin {
112
118
  "import.meta.env.BASE_URL",
113
119
  [
114
120
  `(`,
115
- `(${windowToken}.${nameOfTheGlobal} === undefined || import.meta.env.MODE === "development") ?`,
116
- ` "${urlPathname ?? "/"}" :`,
117
- ` \`\${${windowToken}.${nameOfTheGlobal}.url.resourcesPath}/${basenameOfTheKeycloakifyResourcesDir}/\``,
121
+ `(window.${nameOfTheGlobal} === undefined || import.meta.env.MODE === "development")?`,
122
+ `"${urlPathname ?? "/"}":`,
123
+ `(window.${nameOfTheGlobal}.url.resourcesPath + "/${basenameOfTheKeycloakifyResourcesDir}/")`,
118
124
  `)`
119
125
  ].join("")
120
126
  );
@@ -128,7 +134,7 @@ export function keycloakify(): Plugin {
128
134
  "code": transformedCode
129
135
  };
130
136
  },
131
- "buildEnd": async () => {
137
+ "closeBundle": async () => {
132
138
  assert(command !== undefined);
133
139
 
134
140
  if (command !== "build") {
@@ -139,5 +145,7 @@ export function keycloakify(): Plugin {
139
145
 
140
146
  await rm(pathJoin(buildDirPath, keycloak_resources), { "recursive": true, "force": true });
141
147
  }
142
- };
148
+ } satisfies Plugin;
149
+
150
+ return plugin as any;
143
151
  }