keycloakify 8.4.2 → 8.4.4

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.
@@ -408,6 +408,14 @@
408
408
  out["themeName"] = "KEYCLOAKIFY_THEME_NAME_cXxKd3xEer";
409
409
  out["pageId"] = "${pageId}";
410
410
 
411
+ try {
412
+
413
+ out["url"]["resourcesCommonPath"] = out["url"]["resourcesPath"] + "/" + "RESOURCES_COMMON_cLsLsMrtDkpVv";
414
+
415
+ } catch(error) {
416
+
417
+ }
418
+
411
419
  return out;
412
420
 
413
421
  })()
@@ -423,7 +431,7 @@
423
431
  <#if isHash>
424
432
 
425
433
  <#if path?size gt 10>
426
- <#return "ABORT: Too many recursive calls">
434
+ <#return "ABORT: Too many recursive calls, path: " + path?join(".")>
427
435
  </#if>
428
436
 
429
437
  <#local keys = "">
@@ -481,13 +489,17 @@
481
489
  !["name", "displayName", "displayNameHtml", "internationalizationEnabled", "registrationEmailAsUsername" ]?seq_contains(key)
482
490
  ) || (
483
491
  "applications.ftl" == pageId &&
484
- are_same_path(path, ["applications", "applications", "*", "client", "realm"])
492
+ is_subpath(path, ["applications", "applications"]) &&
493
+ (
494
+ key == "realm" ||
495
+ key == "container"
496
+ )
485
497
  ) || (
486
- "applications.ftl" == pageId &&
487
- "masterAdminClient" == key
498
+ are_same_path(path, ["user"]) &&
499
+ key == "delegateForUpdate"
488
500
  )
489
501
  >
490
- <#local out_seq += ["/*If you need '" + key + "' on " + pageId + ", please submit an issue to the Keycloakify repo*/"]>
502
+ <#local out_seq += ["/*If you need '" + path?join(".") + "." + key + "' on " + pageId + ", please submit an issue to the Keycloakify repo*/"]>
491
503
  <#continue>
492
504
  </#if>
493
505
 
@@ -656,9 +668,9 @@
656
668
  <#return "ABORT: Couldn't convert into string non hash, non method, non boolean, non enumerable object">
657
669
 
658
670
  </#function>
659
- <#function are_same_path path searchedPath>
671
+ <#function is_subpath path searchedPath>
660
672
 
661
- <#if path?size != searchedPath?size>
673
+ <#if path?size < searchedPath?size>
662
674
  <#return false>
663
675
  </#if>
664
676
 
@@ -666,8 +678,14 @@
666
678
 
667
679
  <#list path as property>
668
680
 
681
+ <#if i == searchedPath?size >
682
+ <#continue>
683
+ </#if>
684
+
669
685
  <#local searchedProperty=searchedPath[i]>
670
686
 
687
+ <#local i+= 1>
688
+
671
689
  <#if searchedProperty?is_string && searchedProperty == "*">
672
690
  <#continue>
673
691
  </#if>
@@ -684,11 +702,13 @@
684
702
  <#return false>
685
703
  </#if>
686
704
 
687
- <#local i+= 1>
688
-
689
705
  </#list>
690
706
 
691
707
  <#return true>
692
708
 
693
709
  </#function>
710
+
711
+ <#function are_same_path path searchedPath>
712
+ <#return path?size == searchedPath?size && is_subpath(path, searchedPath)>
713
+ </#function>
694
714
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "8.4.2",
3
+ "version": "8.4.4",
4
4
  "description": "Create Keycloak themes using React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -960,7 +960,7 @@
960
960
  "@babel/parser": "^7.22.7",
961
961
  "@babel/types": "^7.22.5",
962
962
  "@octokit/rest": "^18.12.0",
963
- "cheerio": "^1.0.0-rc.5",
963
+ "cheerio": "1.0.0-rc.5",
964
964
  "cli-select": "^1.1.2",
965
965
  "evt": "^2.4.18",
966
966
  "make-fetch-happen": "^11.0.3",
@@ -408,6 +408,14 @@
408
408
  out["themeName"] = "KEYCLOAKIFY_THEME_NAME_cXxKd3xEer";
409
409
  out["pageId"] = "${pageId}";
410
410
 
411
+ try {
412
+
413
+ out["url"]["resourcesCommonPath"] = out["url"]["resourcesPath"] + "/" + "RESOURCES_COMMON_cLsLsMrtDkpVv";
414
+
415
+ } catch(error) {
416
+
417
+ }
418
+
411
419
  return out;
412
420
 
413
421
  })()
@@ -423,7 +431,7 @@
423
431
  <#if isHash>
424
432
 
425
433
  <#if path?size gt 10>
426
- <#return "ABORT: Too many recursive calls">
434
+ <#return "ABORT: Too many recursive calls, path: " + path?join(".")>
427
435
  </#if>
428
436
 
429
437
  <#local keys = "">
@@ -481,13 +489,17 @@
481
489
  !["name", "displayName", "displayNameHtml", "internationalizationEnabled", "registrationEmailAsUsername" ]?seq_contains(key)
482
490
  ) || (
483
491
  "applications.ftl" == pageId &&
484
- are_same_path(path, ["applications", "applications", "*", "client", "realm"])
492
+ is_subpath(path, ["applications", "applications"]) &&
493
+ (
494
+ key == "realm" ||
495
+ key == "container"
496
+ )
485
497
  ) || (
486
- "applications.ftl" == pageId &&
487
- "masterAdminClient" == key
498
+ are_same_path(path, ["user"]) &&
499
+ key == "delegateForUpdate"
488
500
  )
489
501
  >
490
- <#local out_seq += ["/*If you need '" + key + "' on " + pageId + ", please submit an issue to the Keycloakify repo*/"]>
502
+ <#local out_seq += ["/*If you need '" + path?join(".") + "." + key + "' on " + pageId + ", please submit an issue to the Keycloakify repo*/"]>
491
503
  <#continue>
492
504
  </#if>
493
505
 
@@ -656,9 +668,9 @@
656
668
  <#return "ABORT: Couldn't convert into string non hash, non method, non boolean, non enumerable object">
657
669
 
658
670
  </#function>
659
- <#function are_same_path path searchedPath>
671
+ <#function is_subpath path searchedPath>
660
672
 
661
- <#if path?size != searchedPath?size>
673
+ <#if path?size < searchedPath?size>
662
674
  <#return false>
663
675
  </#if>
664
676
 
@@ -666,8 +678,14 @@
666
678
 
667
679
  <#list path as property>
668
680
 
681
+ <#if i == searchedPath?size >
682
+ <#continue>
683
+ </#if>
684
+
669
685
  <#local searchedProperty=searchedPath[i]>
670
686
 
687
+ <#local i+= 1>
688
+
671
689
  <#if searchedProperty?is_string && searchedProperty == "*">
672
690
  <#continue>
673
691
  </#if>
@@ -684,11 +702,13 @@
684
702
  <#return false>
685
703
  </#if>
686
704
 
687
- <#local i+= 1>
688
-
689
705
  </#list>
690
706
 
691
707
  <#return true>
692
708
 
693
709
  </#function>
710
+
711
+ <#function are_same_path path searchedPath>
712
+ <#return path?size == searchedPath?size && is_subpath(path, searchedPath)>
713
+ </#function>
694
714
  </script>