@jahia/javascript-modules-library 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/bin/jahia-deploy.mjs +14 -0
  2. package/core/server/components/AddResources.js +1 -1
  3. package/core/server/components/render/internal/InBrowser.js +1 -1
  4. package/core/server/framework/register.js +1 -1
  5. package/core/server/hooks/useJCRQuery.js +1 -1
  6. package/core/server/hooks/useUrlBuilder.js +1 -1
  7. package/index.js +1 -1
  8. package/package.json +33 -5
  9. package/types/bin/jahia-deploy.d.mts +1 -0
  10. package/types/core/server/components/AbsoluteArea.d.ts +22 -16
  11. package/types/core/server/components/AddContentButtons.d.ts +13 -7
  12. package/types/core/server/components/AddResources.d.ts +18 -18
  13. package/types/core/server/components/Area.d.ts +21 -15
  14. package/types/core/server/components/render/HydrateInBrowser.d.ts +12 -8
  15. package/types/core/server/components/render/Render.d.ts +24 -16
  16. package/types/core/server/components/render/RenderInBrowser.d.ts +12 -8
  17. package/types/core/server/components/render/internal/InBrowser.d.ts +7 -7
  18. package/types/core/server/framework/defineJahiaComponent.d.ts +15 -36
  19. package/types/core/server/framework/register.d.ts +7 -3
  20. package/types/index.d.ts +19 -2
  21. package/types/java.io.d.ts +70 -58
  22. package/types/java.net.d.ts +24 -4
  23. package/types/java.util.d.ts +87 -83
  24. package/core/index.js +0 -1
  25. package/core/server/components/index.js +0 -1
  26. package/core/server/components/render/index.js +0 -1
  27. package/core/server/framework/index.js +0 -1
  28. package/core/server/hooks/index.js +0 -1
  29. package/core/server/index.js +0 -1
  30. package/core/server/utils/index.js +0 -1
  31. package/core/server/utils/jcr/index.js +0 -1
  32. package/core/server/utils/urlBuilder/index.js +0 -1
  33. package/nav/index.js +0 -1
  34. package/nav/server/index.js +0 -1
  35. package/nav/server/navBuilder/index.js +0 -1
  36. package/types/core/index.d.ts +0 -1
  37. package/types/core/server/components/index.d.ts +0 -5
  38. package/types/core/server/components/render/index.d.ts +0 -3
  39. package/types/core/server/framework/index.d.ts +0 -2
  40. package/types/core/server/hooks/index.d.ts +0 -4
  41. package/types/core/server/index.d.ts +0 -4
  42. package/types/core/server/utils/index.d.ts +0 -2
  43. package/types/core/server/utils/jcr/index.d.ts +0 -4
  44. package/types/core/server/utils/urlBuilder/index.d.ts +0 -1
  45. package/types/nav/index.d.ts +0 -1
  46. package/types/nav/server/index.d.ts +0 -1
  47. package/types/nav/server/navBuilder/index.d.ts +0 -1
@@ -84,11 +84,11 @@ export class Collection<E> {
84
84
  * global positioning system (GPS) is synchronized to UTC but is
85
85
  * not adjusted for leap seconds. An interesting source of
86
86
  * further information is the United States Naval Observatory (USNO):
87
- * * http://www.usno.navy.mil/USNO
87
+ * * https://www.usno.navy.mil/USNO
88
88
  *
89
89
  *
90
90
  * and the material regarding "Systems of Time" at:
91
- * * http://www.usno.navy.mil/USNO/time/master-clock/systems-of-time
91
+ * * https://www.usno.navy.mil/USNO/time/master-clock/systems-of-time
92
92
  *
93
93
  *
94
94
  * which has descriptions of various different time systems including
@@ -183,7 +183,6 @@ export class Date {
183
183
  * NOTE: This class is obsolete. New implementations should
184
184
  * implement the Map interface, rather than extending this class.
185
185
  *
186
- * @author unascribed
187
186
  * @see java.util.Map
188
187
  * @see java.lang.Object#equals(java.lang.Object)
189
188
  * @see java.lang.Object#hashCode()
@@ -216,7 +215,7 @@ export class Dictionary<K, V> {
216
215
  * @param key a key in this dictionary.
217
216
  * `null` if the key is not mapped to any value in
218
217
  * this dictionary.
219
- * @exception NullPointerException if the `key` is `null`.
218
+ * @throws NullPointerException if the `key` is `null`.
220
219
  * @see java.util.Dictionary#put(java.lang.Object, java.lang.Object)
221
220
  */
222
221
  get(key: any): V;
@@ -270,7 +269,7 @@ export class Enumeration<E> {
270
269
  * object has at least one more element to provide.
271
270
  *
272
271
  * @return the next element of this enumeration.
273
- * @exception NoSuchElementException if no more elements exist.
272
+ * @throws NoSuchElementException if no more elements exist.
274
273
  */
275
274
  nextElement(): E;
276
275
  }
@@ -351,9 +350,9 @@ export class List<E> {
351
350
  get(index: number): E;
352
351
  }
353
352
  /**
354
- * A Locale object represents a specific geographical, political,
355
- * or cultural region. An operation that requires a Locale to perform
356
- * its task is called locale-sensitive and uses the Locale
353
+ * A `Locale` object represents a specific geographical, political,
354
+ * or cultural region. An operation that requires a `Locale` to perform
355
+ * its task is called locale-sensitive and uses the `Locale`
357
356
  * to tailor information for the user. For example, displaying a number
358
357
  * is a locale-sensitive operation— the number should be formatted
359
358
  * according to the customs and conventions of the user's native country,
@@ -366,7 +365,7 @@ export class List<E> {
366
365
  * Locale Data Markup Language") BCP 47-compatible extensions for locale data
367
366
  * exchange.
368
367
  *
369
- * A Locale object logically consists of the fields
368
+ * A `Locale` object logically consists of the fields
370
369
  * described below.
371
370
  *
372
371
  *
@@ -378,7 +377,7 @@ export class List<E> {
378
377
  * alpha-2 code must be used. You can find a full list of valid
379
378
  * language codes in the IANA Language Subtag Registry (search for
380
379
  * "Type: language"). The language field is case insensitive, but
381
- * Locale always canonicalizes to lower case.
380
+ * `Locale` always canonicalizes to lower case.
382
381
  *
383
382
  * Well-formed language values have the form
384
383
  * [a-zA-Z]{2,8}. Note that this is not the full
@@ -393,7 +392,7 @@ export class List<E> {
393
392
  * ISO 15924 alpha-4 script code. You can find a full list of
394
393
  * valid script codes in the IANA Language Subtag Registry (search
395
394
  * for "Type: script"). The script field is case insensitive, but
396
- * Locale always canonicalizes to title case (the first
395
+ * `Locale` always canonicalizes to title case (the first
397
396
  * letter is upper case and the rest of the letters are lower
398
397
  * case).
399
398
  *
@@ -408,7 +407,7 @@ export class List<E> {
408
407
  * You can find a full list of valid country and region codes in the
409
408
  * IANA Language Subtag Registry (search for "Type: region"). The
410
409
  * country (region) field is case insensitive, but
411
- * Locale always canonicalizes to upper case.
410
+ * `Locale` always canonicalizes to upper case.
412
411
  *
413
412
  * Well-formed country/region values have
414
413
  * the form [a-zA-Z]{2} | [0-9]{3}
@@ -419,7 +418,7 @@ export class List<E> {
419
418
  * variant
420
419
  *
421
420
  * Any arbitrary value used to indicate a variation of a
422
- * Locale. Where there are two or more variant values
421
+ * `Locale`. Where there are two or more variant values
423
422
  * each indicating its own semantics, these values should be ordered
424
423
  * by importance, with most important first, separated by
425
424
  * underscore('_'). The variant field is case sensitive.
@@ -431,7 +430,7 @@ export class List<E> {
431
430
  * region subtags. You can find a full list of valid variant codes
432
431
  * in the IANA Language Subtag Registry (search for "Type: variant").
433
432
  *
434
- * However, the variant field in Locale has
433
+ * However, the variant field in `Locale` has
435
434
  * historically been used for any kind of variation, not just
436
435
  * language variations. For example, some supported variants
437
436
  * available in Java SE Runtime Environments indicate alternative
@@ -451,15 +450,15 @@ export class List<E> {
451
450
  *
452
451
  * A map from single character keys to string values, indicating
453
452
  * extensions apart from language identification. The extensions in
454
- * Locale implement the semantics and syntax of BCP 47
453
+ * `Locale` implement the semantics and syntax of BCP 47
455
454
  * extension subtags and private use subtags. The extensions are
456
- * case insensitive, but Locale canonicalizes all
455
+ * case insensitive, but `Locale` canonicalizes all
457
456
  * extension keys and values to lower case. Note that extensions
458
457
  * cannot have empty values.
459
458
  *
460
459
  * Well-formed keys are single characters from the set
461
- * [0-9a-zA-Z]. Well-formed values have the form
462
- * SUBTAG ('-' SUBTAG)* where for the key 'x'
460
+ * `[0-9a-zA-Z]`. Well-formed values have the form
461
+ * `SUBTAG ('-' SUBTAG)*` where for the key 'x'
463
462
  * SUBTAG = [0-9a-zA-Z]{1,8} and for other keys
464
463
  * SUBTAG = [0-9a-zA-Z]{2,8} (that is, 'x' allows
465
464
  * single-character subtags).
@@ -469,8 +468,8 @@ export class List<E> {
469
468
  *
470
469
  *
471
470
  * Note: Although BCP 47 requires field values to be registered
472
- * in the IANA Language Subtag Registry, the Locale class
473
- * does not provide any validation features. The Builder
471
+ * in the IANA Language Subtag Registry, the `Locale` class
472
+ * does not provide any validation features. The `Builder`
474
473
  * only checks if an individual field satisfies the syntactic
475
474
  * requirement (is well-formed), but does not validate the value
476
475
  * itself. See {@link Builder} for details.
@@ -488,11 +487,11 @@ export class List<E> {
488
487
  * extension key 'u' ({@link #UNICODE_LOCALE_EXTENSION}). The above
489
488
  * example, "nu-thai", becomes the extension "u-nu-thai".
490
489
  *
491
- * Thus, when a Locale object contains Unicode locale
490
+ * Thus, when a `Locale` object contains Unicode locale
492
491
  * attributes and keywords,
493
- * getExtension(UNICODE_LOCALE_EXTENSION) will return a
492
+ * `getExtension(UNICODE_LOCALE_EXTENSION)` will return a
494
493
  * String representing this information, for example, "nu-thai". The
495
- * Locale class also provides {@link
494
+ * `Locale` class also provides {@link
496
495
  * #getUnicodeLocaleAttributes}, {@link #getUnicodeLocaleKeys}, and
497
496
  * {@link #getUnicodeLocaleType} which allow you to access Unicode
498
497
  * locale attributes and key/type pairs directly. When represented as
@@ -517,37 +516,37 @@ export class List<E> {
517
516
  *
518
517
  * Creating a Locale
519
518
  *
520
- * There are several different ways to create a Locale
519
+ * There are several different ways to create a `Locale`
521
520
  * object.
522
521
  *
523
522
  * Builder
524
523
  *
525
- * Using {@link Builder} you can construct a Locale object
524
+ * Using {@link Builder} you can construct a `Locale` object
526
525
  * that conforms to BCP 47 syntax.
527
526
  *
528
527
  * Constructors
529
528
  *
530
- * The Locale class provides three constructors:
529
+ * The `Locale` class provides three constructors:
531
530
  *
532
531
  * * {@link #Locale(String language)}
533
532
  * {@link #Locale(String language, String country)}
534
533
  * {@link #Locale(String language, String country, String variant)}
535
534
  *
536
535
  *
537
- * These constructors allow you to create a Locale object
536
+ * These constructors allow you to create a `Locale` object
538
537
  * with language, country and variant, but you cannot specify
539
538
  * script or extensions.
540
539
  *
541
540
  * Factory Methods
542
541
  *
543
- * The method {@link #forLanguageTag} creates a Locale
542
+ * The method {@link #forLanguageTag} creates a `Locale`
544
543
  * object for a well-formed BCP 47 language tag.
545
544
  *
546
545
  * Locale Constants
547
546
  *
548
- * The Locale class provides a number of convenient constants
549
- * that you can use to create Locale objects for commonly used
550
- * locales. For example, the following creates a Locale object
547
+ * The `Locale` class provides a number of convenient constants
548
+ * that you can use to create `Locale` objects for commonly used
549
+ * locales. For example, the following creates a `Locale` object
551
550
  * for the United States:
552
551
  *
553
552
  * * Locale.US
@@ -626,25 +625,25 @@ export class List<E> {
626
625
  *
627
626
  * Use of Locale
628
627
  *
629
- * Once you've created a Locale you can query it for information
630
- * about itself. Use getCountry to get the country (or region)
631
- * code and getLanguage to get the language code.
632
- * You can use getDisplayCountry to get the
628
+ * Once you've created a `Locale` you can query it for information
629
+ * about itself. Use `getCountry` to get the country (or region)
630
+ * code and `getLanguage` to get the language code.
631
+ * You can use `getDisplayCountry` to get the
633
632
  * name of the country suitable for displaying to the user. Similarly,
634
- * you can use getDisplayLanguage to get the name of
633
+ * you can use `getDisplayLanguage` to get the name of
635
634
  * the language suitable for displaying to the user. Interestingly,
636
- * the getDisplayXXX methods are themselves locale-sensitive
635
+ * the `getDisplayXXX` methods are themselves locale-sensitive
637
636
  * and have two versions: one that uses the default
638
637
  * {@link Locale.Category#DISPLAY DISPLAY} locale and one
639
638
  * that uses the locale specified as an argument.
640
639
  *
641
640
  * The Java Platform provides a number of classes that perform locale-sensitive
642
- * operations. For example, the NumberFormat class formats
641
+ * operations. For example, the `NumberFormat` class formats
643
642
  * numbers, currency, and percentages in a locale-sensitive manner. Classes
644
- * such as NumberFormat have several convenience methods
643
+ * such as `NumberFormat` have several convenience methods
645
644
  * for creating a default object of that type. For example, the
646
- * NumberFormat class provides these three convenience methods
647
- * for creating a default NumberFormat object:
645
+ * `NumberFormat` class provides these three convenience methods
646
+ * for creating a default `NumberFormat` object:
648
647
  *
649
648
  * * NumberFormat.getInstance()
650
649
  * NumberFormat.getCurrencyInstance()
@@ -660,8 +659,8 @@ export class List<E> {
660
659
  * NumberFormat.getPercentInstance(myLocale)
661
660
  *
662
661
  *
663
- * A Locale is the mechanism for identifying the kind of object
664
- * (NumberFormat) that you would like to get. The locale is
662
+ * A `Locale` is the mechanism for identifying the kind of object
663
+ * (`NumberFormat`) that you would like to get. The locale is
665
664
  * just a mechanism for identifying objects,
666
665
  * not a container for the objects themselves.
667
666
  *
@@ -670,7 +669,7 @@ export class List<E> {
670
669
  * In order to maintain compatibility with existing usage, Locale's
671
670
  * constructors retain their behavior prior to the Java Runtime
672
671
  * Environment version 1.7. The same is largely true for the
673
- * toString method. Thus Locale objects can continue to
672
+ * `toString` method. Thus Locale objects can continue to
674
673
  * be used as they were. In particular, clients who parse the output
675
674
  * of toString into language, country, and variant fields can continue
676
675
  * to do so (although this is strongly discouraged), although the
@@ -680,15 +679,15 @@ export class List<E> {
680
679
  * In addition, BCP 47 imposes syntax restrictions that are not
681
680
  * imposed by Locale's constructors. This means that conversions
682
681
  * between some Locales and BCP 47 language tags cannot be made without
683
- * losing information. Thus toLanguageTag cannot
682
+ * losing information. Thus `toLanguageTag` cannot
684
683
  * represent the state of locales whose language, country, or variant
685
684
  * do not conform to BCP 47.
686
685
  *
687
686
  * Because of these issues, it is recommended that clients migrate
688
687
  * away from constructing non-conforming locales and use the
689
- * forLanguageTag and Locale.Builder APIs instead.
688
+ * `forLanguageTag` and `Locale.Builder` APIs instead.
690
689
  * Clients desiring a string representation of the complete locale can
691
- * then always rely on toLanguageTag for this purpose.
690
+ * then always rely on `toLanguageTag` for this purpose.
692
691
  *
693
692
  * Special cases
694
693
  *
@@ -729,14 +728,24 @@ export class List<E> {
729
728
  * Locale's constructor has always converted three language codes to
730
729
  * their earlier, obsoleted forms: `he` maps to `iw`,
731
730
  * `yi` maps to `ji`, and `id` maps to
732
- * `in`. This continues to be the case, in order to not break
733
- * backwards compatibility.
731
+ * `in`. Since Java SE 17, this is no longer the case. Each
732
+ * language maps to its new form; `iw` maps to `he`, `ji`
733
+ * maps to `yi`, and `in` maps to `id`.
734
+ *
735
+ * For the backward compatible behavior, the system property
736
+ * {@systemProperty java.locale.useOldISOCodes} reverts the behavior
737
+ * back to that of before Java SE 17. If the system property is set to
738
+ * `true`, those three current language codes are mapped to their
739
+ * backward compatible forms. The property is only read at Java runtime
740
+ * startup and subsequent calls to `System.setProperty()` will
741
+ * have no effect.
734
742
  *
735
743
  * The APIs added in 1.7 map between the old and new language codes,
736
- * maintaining the old codes internal to Locale (so that
737
- * getLanguage and toString reflect the old
738
- * code), but using the new codes in the BCP 47 language tag APIs (so
739
- * that toLanguageTag reflects the new one). This
744
+ * maintaining the mapped codes internal to Locale (so that
745
+ * `getLanguage` and `toString` reflect the mapped
746
+ * code, which depends on the `java.locale.useOldISOCodes` system
747
+ * property), but using the new codes in the BCP 47 language tag APIs (so
748
+ * that `toLanguageTag` reflects the new one). This
740
749
  * preserves the equivalence between Locales no matter which code or
741
750
  * API is used to construct them. Java's default resource bundle
742
751
  * lookup mechanism also implements this mapping, so that resources
@@ -781,7 +790,7 @@ export class Locale {
781
790
  * The returned array represents the union of locales supported
782
791
  * by the Java runtime environment and by installed
783
792
  * {@link java.util.spi.LocaleServiceProvider LocaleServiceProvider}
784
- * implementations. It must contain at least a Locale
793
+ * implementations. It must contain at least a `Locale`
785
794
  * instance equal to {@link java.util.Locale#US Locale.US}.
786
795
  *
787
796
  * @return An array of installed locales.
@@ -793,7 +802,7 @@ export class Locale {
793
802
  * This method is equivalent to {@link #getISOCountries(Locale.IsoCountryCode type)}
794
803
  * with `type` {@link IsoCountryCode#PART1_ALPHA2}.
795
804
  *
796
- * Note: The Locale class also supports other codes for
805
+ * Note: The `Locale` class also supports other codes for
797
806
  * country (region), such as 3-letter numeric UN M.49 area codes.
798
807
  * Therefore, the list returned by this method does not contain ALL valid
799
808
  * codes that can be used to create Locales.
@@ -814,7 +823,7 @@ export class Locale {
814
823
  * ISO 639 is not a stable standard— some languages' codes have changed.
815
824
  * The list this function returns includes both the new and the old codes for the
816
825
  * languages whose codes have changed.
817
- * The Locale class also supports language codes up to
826
+ * The `Locale` class also supports language codes up to
818
827
  * 8 characters in length. Therefore, the list returned by this method does
819
828
  * not contain ALL valid codes that can be used to create Locales.
820
829
  *
@@ -825,17 +834,10 @@ export class Locale {
825
834
  /**
826
835
  * Returns the language code of this Locale.
827
836
  *
828
- * Note: ISO 639 is not a stable standard— some languages' codes have changed.
829
- * Locale's constructor recognizes both the new and the old codes for the languages
830
- * whose codes have changed, but this function always returns the old code. If you
831
- * want to check for a specific language whose code has changed, don't do
832
- * * if (locale.getLanguage().equals("he")) // BAD!
833
- * ...
834
- *
835
- * Instead, do
836
- * * if (locale.getLanguage().equals(new Locale("he").getLanguage()))
837
- * ...
838
- *
837
+ * @implNote This method returns the new forms for the obsolete ISO 639
838
+ * codes ("iw", "ji", and "in"). See
839
+ * Legacy language codes for more information.
840
+ *
839
841
  * @return The language code, or the empty string if none is defined.
840
842
  * @see #getDisplayLanguage
841
843
  */
@@ -871,7 +873,7 @@ export class Locale {
871
873
  * Returns the extension (or private use) value associated with
872
874
  * the specified key, or null if there is no extension
873
875
  * associated with the key. To be well-formed, the key must be one
874
- * of [0-9A-Za-z]. Keys are case-insensitive, so
876
+ * of `[0-9A-Za-z]`. Keys are case-insensitive, so
875
877
  * for example 'z' and 'Z' represent the same extension.
876
878
  *
877
879
  * @param key the extension key
@@ -913,7 +915,7 @@ export class Locale {
913
915
  * @return The Unicode locale type associated with the key, or null if the
914
916
  * locale does not define the key.
915
917
  * @throws IllegalArgumentException if the key is not well-formed
916
- * @throws NullPointerException if key is null
918
+ * @throws NullPointerException if `key` is null
917
919
  * @since 1.7
918
920
  */
919
921
  getUnicodeLocaleType(key: string): string;
@@ -927,7 +929,7 @@ export class Locale {
927
929
  */
928
930
  getUnicodeLocaleKeys(): Set<string>;
929
931
  /**
930
- * Returns a string representation of this Locale
932
+ * Returns a string representation of this `Locale`
931
933
  * object, consisting of language, country, variant, script,
932
934
  * and extensions as below:
933
935
  *
@@ -950,7 +952,7 @@ export class Locale {
950
952
  * added before the "#".
951
953
  *
952
954
  * This behavior is designed to support debugging and to be compatible with
953
- * previous uses of toString that expected language, country, and variant
955
+ * previous uses of `toString` that expected language, country, and variant
954
956
  * fields only. To represent a Locale as a String for interchange purposes, use
955
957
  * {@link #toLanguageTag}.
956
958
  *
@@ -980,7 +982,7 @@ export class Locale {
980
982
  * not specify a language the empty string is returned.
981
983
  *
982
984
  * @return A three-letter abbreviation of this locale's language.
983
- * @exception MissingResourceException Throws MissingResourceException if
985
+ * @throws MissingResourceException Throws MissingResourceException if
984
986
  * three-letter language abbreviation is not available for this locale.
985
987
  */
986
988
  getISO3Language(): string;
@@ -994,7 +996,7 @@ export class Locale {
994
996
  * The ISO 3166-1 codes can be found on-line.
995
997
  *
996
998
  * @return A three-letter abbreviation of this locale's country.
997
- * @exception MissingResourceException Throws MissingResourceException if the
999
+ * @throws MissingResourceException Throws MissingResourceException if the
998
1000
  * three-letter country abbreviation is not available for this locale.
999
1001
  */
1000
1002
  getISO3Country(): string;
@@ -1032,7 +1034,7 @@ export class Locale {
1032
1034
  *
1033
1035
  * @param inLocale The locale for which to retrieve the display language.
1034
1036
  * @return The name of the display language appropriate to the given locale.
1035
- * @exception NullPointerException if inLocale is null
1037
+ * @throws NullPointerException if `inLocale` is `null`
1036
1038
  */
1037
1039
  getDisplayLanguage(inLocale: Locale): string;
1038
1040
  /**
@@ -1055,7 +1057,7 @@ export class Locale {
1055
1057
  * @param inLocale The locale for which to retrieve the display script.
1056
1058
  * @return the display name of the script code for the current default
1057
1059
  * {@link Locale.Category#DISPLAY DISPLAY} locale
1058
- * @throws NullPointerException if inLocale is null
1060
+ * @throws NullPointerException if `inLocale` is `null`
1059
1061
  * @since 1.7
1060
1062
  */
1061
1063
  getDisplayScript(inLocale: Locale): string;
@@ -1093,7 +1095,7 @@ export class Locale {
1093
1095
  *
1094
1096
  * @param inLocale The locale for which to retrieve the display country.
1095
1097
  * @return The name of the country appropriate to the given locale.
1096
- * @exception NullPointerException if inLocale is null
1098
+ * @throws NullPointerException if `inLocale` is `null`
1097
1099
  */
1098
1100
  getDisplayCountry(inLocale: Locale): string;
1099
1101
  /**
@@ -1112,7 +1114,7 @@ export class Locale {
1112
1114
  *
1113
1115
  * @param inLocale The locale for which to retrieve the display variant code.
1114
1116
  * @return The name of the display variant code appropriate to the given locale.
1115
- * @exception NullPointerException if inLocale is null
1117
+ * @throws NullPointerException if `inLocale` is `null`
1116
1118
  */
1117
1119
  getDisplayVariant(inLocale: Locale): string;
1118
1120
  /**
@@ -1159,7 +1161,7 @@ export class Locale {
1159
1161
  *
1160
1162
  * @param inLocale The locale for which to retrieve the display name.
1161
1163
  * @return The name of the locale appropriate to display.
1162
- * @throws NullPointerException if inLocale is null
1164
+ * @throws NullPointerException if `inLocale` is `null`
1163
1165
  */
1164
1166
  getDisplayName(inLocale: Locale): string;
1165
1167
  }
@@ -1264,10 +1266,12 @@ export class Locale {
1264
1266
  * passed to a static factory method result in `IllegalArgumentException`.
1265
1267
  * The iteration order of mappings is unspecified and is subject to change.
1266
1268
  * They are value-based.
1267
- * Callers should make no assumptions about the identity of the returned instances.
1268
- * Factories are free to create new instances or reuse existing ones. Therefore,
1269
- * identity-sensitive operations on these instances (reference equality (`==`),
1270
- * identity hash code, and synchronization) are unreliable and should be avoided.
1269
+ * Programmers should treat instances that are {@linkplain #equals(Object) equal}
1270
+ * as interchangeable and should not use them for synchronization, or
1271
+ * unpredictable behavior may occur. For example, in a future release,
1272
+ * synchronization may fail. Callers should make no assumptions
1273
+ * about the identity of the returned instances. Factories are free to
1274
+ * create new instances or reuse existing ones.
1271
1275
  * They are serialized as specified on the
1272
1276
  * Serialized Form
1273
1277
  * page.
@@ -1423,7 +1427,7 @@ export class Map<K, V> {
1423
1427
  * `null`, else returns the current value.
1424
1428
  *
1425
1429
  * @implSpec
1426
- * The default implementation is equivalent to, for this ` * map`:
1430
+ * The default implementation is equivalent to, for this `map`:
1427
1431
  *
1428
1432
  * {@code
1429
1433
  * V v = map.get(key);
package/core/index.js DELETED
@@ -1 +0,0 @@
1
- export*from"./server";
@@ -1 +0,0 @@
1
- export*from"./AddContentButtons";export*from"./AddResources";export*from"./Area";export*from"./AbsoluteArea";export*from"./render";
@@ -1 +0,0 @@
1
- export*from"./Render";export*from"./HydrateInBrowser";export*from"./RenderInBrowser";
@@ -1 +0,0 @@
1
- export*from"./register";export*from"./defineJahiaComponent";
@@ -1 +0,0 @@
1
- export*from"./useGQLQuery";export*from"./useJCRQuery";export*from"./useServerContext";export*from"./useUrlBuilder";
@@ -1 +0,0 @@
1
- export*from"./components";export*from"./framework";export*from"./hooks";export*from"./utils";
@@ -1 +0,0 @@
1
- export*from"./jcr";export*from"./urlBuilder";
@@ -1 +0,0 @@
1
- export*from"./getChildNodes";export*from"./getNodeFromPathOrId";export*from"./getNodeProps";export*from"./getNodesByJCRQuery";
@@ -1 +0,0 @@
1
- export*from"./urlBuilder";
package/nav/index.js DELETED
@@ -1 +0,0 @@
1
- export*from"./server";
@@ -1 +0,0 @@
1
- export*from"./navBuilder";
@@ -1 +0,0 @@
1
- export*from"./navBuilder";
@@ -1 +0,0 @@
1
- export * from "./server";
@@ -1,5 +0,0 @@
1
- export * from "./AddContentButtons";
2
- export * from "./AddResources";
3
- export * from "./Area";
4
- export * from "./AbsoluteArea";
5
- export * from "./render";
@@ -1,3 +0,0 @@
1
- export * from "./Render";
2
- export * from "./HydrateInBrowser";
3
- export * from "./RenderInBrowser";
@@ -1,2 +0,0 @@
1
- export * from "./register";
2
- export * from "./defineJahiaComponent";
@@ -1,4 +0,0 @@
1
- export * from "./useGQLQuery";
2
- export * from "./useJCRQuery";
3
- export * from "./useServerContext";
4
- export * from "./useUrlBuilder";
@@ -1,4 +0,0 @@
1
- export * from "./components";
2
- export * from "./framework";
3
- export * from "./hooks";
4
- export * from "./utils";
@@ -1,2 +0,0 @@
1
- export * from "./jcr";
2
- export * from "./urlBuilder";
@@ -1,4 +0,0 @@
1
- export * from "./getChildNodes";
2
- export * from "./getNodeFromPathOrId";
3
- export * from "./getNodeProps";
4
- export * from "./getNodesByJCRQuery";
@@ -1 +0,0 @@
1
- export * from "./urlBuilder";
@@ -1 +0,0 @@
1
- export * from "./server";
@@ -1 +0,0 @@
1
- export * from "./navBuilder";
@@ -1 +0,0 @@
1
- export * from "./navBuilder";