@es-joy/jsoe 0.27.0 → 0.28.1

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 (148) hide show
  1. package/CHANGES.md +37 -0
  2. package/README.md +3 -1
  3. package/badges/coverage-badge.svg +1 -1
  4. package/badges/tests-badge.svg +1 -0
  5. package/dist/formats/schema.d.ts +11 -0
  6. package/dist/formats/schema.d.ts.map +1 -1
  7. package/dist/formats/structuredCloning.d.ts.map +1 -1
  8. package/dist/fundamentalTypes/arrayType.d.ts.map +1 -1
  9. package/dist/fundamentalTypes/stringType.d.ts.map +1 -1
  10. package/dist/index.js +2 -2
  11. package/dist/index.js.map +1 -1
  12. package/dist/typeChoices.d.ts +32 -2
  13. package/dist/typeChoices.d.ts.map +1 -1
  14. package/dist/types.d.ts +8 -2
  15. package/dist/types.d.ts.map +1 -1
  16. package/dist/utils/rawTypesonEditor.d.ts +110 -0
  17. package/dist/utils/rawTypesonEditor.d.ts.map +1 -0
  18. package/dist/vendor-imports.d.ts +4 -0
  19. package/docs/proposals/raw-typeson-edit-view.md +575 -0
  20. package/mmr.json +6 -0
  21. package/package.json +34 -12
  22. package/pnpm-workspace.yaml +32 -30
  23. package/src/formats/schema.js +10 -15
  24. package/src/formats/structuredCloning.js +24 -17
  25. package/src/fundamentalTypes/arrayType.js +119 -23
  26. package/src/fundamentalTypes/blobType.js +16 -16
  27. package/src/fundamentalTypes/fileType.js +13 -13
  28. package/src/fundamentalTypes/regexpType.js +1 -1
  29. package/src/fundamentalTypes/stringType.js +5 -0
  30. package/src/jsoe.css +12 -0
  31. package/src/subTypes/blobHTMLType.js +1 -1
  32. package/src/superTypes/dommatrixType.js +1 -1
  33. package/src/superTypes/errorsSpecialType.js +1 -1
  34. package/src/typeChoices.js +37 -10
  35. package/src/types.js +13 -8
  36. package/src/utils/media.js +3 -3
  37. package/src/utils/rawTypesonEditor.js +669 -0
  38. package/src/vendor-imports.js +12 -0
  39. package/tsconfig.json +1 -1
  40. package/typings/json-6.d.ts +12 -0
  41. package/vendor/@codemirror/autocomplete/dist/index.js +2125 -0
  42. package/vendor/@codemirror/commands/dist/index.js +1826 -0
  43. package/vendor/@codemirror/lang-javascript/dist/index.js +513 -0
  44. package/vendor/@codemirror/language/dist/index.js +2693 -0
  45. package/vendor/@codemirror/lint/dist/index.js +956 -0
  46. package/vendor/@codemirror/search/dist/index.js +1238 -0
  47. package/vendor/@codemirror/state/dist/index.js +3947 -0
  48. package/vendor/@codemirror/view/dist/index.js +11867 -0
  49. package/vendor/@lezer/common/dist/index.js +2202 -0
  50. package/vendor/@lezer/highlight/dist/index.js +927 -0
  51. package/vendor/@lezer/javascript/dist/index.js +192 -0
  52. package/vendor/@lezer/lr/dist/index.js +1889 -0
  53. package/vendor/@marijn/find-cluster-break/src/index.js +87 -0
  54. package/vendor/codemirror/dist/index.js +96 -0
  55. package/vendor/crelt/index.js +28 -0
  56. package/vendor/jamilih/dist/jml.mjs +898 -25
  57. package/vendor/json-6/dist/index.mjs +1783 -0
  58. package/vendor/style-mod/src/style-mod.js +172 -0
  59. package/vendor/w3c-keyname/index.js +119 -0
  60. package/vendor/zod/classic/checks.d.ts +1 -1
  61. package/vendor/zod/classic/checks.js +1 -1
  62. package/vendor/zod/classic/schemas.d.ts +2 -6
  63. package/vendor/zod/classic/schemas.js +9 -13
  64. package/vendor/zod/core/api.d.ts +8 -4
  65. package/vendor/zod/core/api.js +11 -23
  66. package/vendor/zod/core/checks.d.ts +16 -0
  67. package/vendor/zod/core/checks.js +31 -0
  68. package/vendor/zod/core/compile.js +20 -24
  69. package/vendor/zod/core/core.js +1 -1
  70. package/vendor/zod/core/json-schema-processors.d.ts +0 -1
  71. package/vendor/zod/core/json-schema-processors.js +8 -43
  72. package/vendor/zod/core/memoizer.js +2 -5
  73. package/vendor/zod/core/regexes.d.ts +1 -0
  74. package/vendor/zod/core/regexes.js +2 -0
  75. package/vendor/zod/core/schemas.d.ts +8 -23
  76. package/vendor/zod/core/schemas.js +39 -80
  77. package/vendor/zod/core/to-json-schema.d.ts +0 -3
  78. package/vendor/zod/core/to-json-schema.js +1 -1
  79. package/vendor/zod/core/util.js +0 -4
  80. package/vendor/zod/core/versions.js +1 -1
  81. package/vendor/zod/core/visit.js +0 -12
  82. package/vendor/zod/locales/ar.js +1 -0
  83. package/vendor/zod/locales/az.js +1 -0
  84. package/vendor/zod/locales/be.js +1 -0
  85. package/vendor/zod/locales/bg.js +1 -0
  86. package/vendor/zod/locales/bn.js +1 -0
  87. package/vendor/zod/locales/ca.js +1 -0
  88. package/vendor/zod/locales/ckb.js +1 -0
  89. package/vendor/zod/locales/cs.js +1 -0
  90. package/vendor/zod/locales/da.js +1 -0
  91. package/vendor/zod/locales/de.js +1 -0
  92. package/vendor/zod/locales/el.js +1 -0
  93. package/vendor/zod/locales/en.js +1 -0
  94. package/vendor/zod/locales/eo.js +1 -0
  95. package/vendor/zod/locales/es.js +1 -0
  96. package/vendor/zod/locales/fa.js +1 -0
  97. package/vendor/zod/locales/fi.js +1 -0
  98. package/vendor/zod/locales/fr-CA.js +1 -0
  99. package/vendor/zod/locales/fr.js +1 -0
  100. package/vendor/zod/locales/gu.js +1 -0
  101. package/vendor/zod/locales/he.js +1 -0
  102. package/vendor/zod/locales/hi.js +1 -0
  103. package/vendor/zod/locales/hr.js +1 -0
  104. package/vendor/zod/locales/hu.js +1 -0
  105. package/vendor/zod/locales/hy.js +1 -0
  106. package/vendor/zod/locales/id.js +1 -0
  107. package/vendor/zod/locales/is.js +1 -0
  108. package/vendor/zod/locales/it.js +1 -0
  109. package/vendor/zod/locales/ja.js +1 -0
  110. package/vendor/zod/locales/ka.js +1 -0
  111. package/vendor/zod/locales/km.js +1 -0
  112. package/vendor/zod/locales/kn.js +1 -0
  113. package/vendor/zod/locales/ko.js +1 -0
  114. package/vendor/zod/locales/lt.js +1 -0
  115. package/vendor/zod/locales/mk.js +1 -0
  116. package/vendor/zod/locales/ms.js +1 -0
  117. package/vendor/zod/locales/ne.js +1 -0
  118. package/vendor/zod/locales/nl.js +1 -0
  119. package/vendor/zod/locales/nn.js +1 -0
  120. package/vendor/zod/locales/no.js +1 -0
  121. package/vendor/zod/locales/ota.js +1 -0
  122. package/vendor/zod/locales/pl.js +1 -0
  123. package/vendor/zod/locales/ps.js +1 -0
  124. package/vendor/zod/locales/pt-BR.js +1 -0
  125. package/vendor/zod/locales/pt.js +1 -0
  126. package/vendor/zod/locales/ro.js +1 -0
  127. package/vendor/zod/locales/ru.js +1 -0
  128. package/vendor/zod/locales/sk.js +1 -0
  129. package/vendor/zod/locales/sl.js +1 -0
  130. package/vendor/zod/locales/sv.js +1 -0
  131. package/vendor/zod/locales/ta.js +1 -0
  132. package/vendor/zod/locales/tg.js +1 -0
  133. package/vendor/zod/locales/th.js +1 -0
  134. package/vendor/zod/locales/tk.js +1 -0
  135. package/vendor/zod/locales/tr.js +1 -0
  136. package/vendor/zod/locales/uk.js +1 -0
  137. package/vendor/zod/locales/ur.js +1 -0
  138. package/vendor/zod/locales/uz.js +1 -0
  139. package/vendor/zod/locales/vi.js +1 -0
  140. package/vendor/zod/locales/yo.js +1 -0
  141. package/vendor/zod/locales/zh-CN.js +1 -0
  142. package/vendor/zod/locales/zh-TW.js +1 -0
  143. package/vendor/zod/mini/checks.d.ts +1 -1
  144. package/vendor/zod/mini/checks.js +1 -1
  145. package/vendor/zod/mini/schemas.d.ts +2 -5
  146. package/vendor/zod/mini/schemas.js +9 -11
  147. package/vendor/zodexy/dist/esm/index.js +4 -33
  148. package/vendor/zodexy/dist/schema.zodexy.json +1 -17
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "řetězec ve formátu JSON",
40
40
  e164: "číslo E.164",
41
41
  credit_card: "číslo kreditní karty",
42
+ currency_code: "kód měny",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "vstup",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-streng",
40
40
  e164: "E.164-nummer",
41
41
  credit_card: "kreditkortnummer",
42
+ currency_code: "valutakode",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "input",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-String",
40
40
  e164: "E.164-Nummer",
41
41
  credit_card: "Kreditkartennummer",
42
+ currency_code: "Währungscode",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "Eingabe",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "συμβολοσειρά JSON",
40
40
  e164: "αριθμός E.164",
41
41
  credit_card: "αριθμός πιστωτικής κάρτας",
42
+ currency_code: "κωδικός νομίσματος",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "είσοδος",
@@ -38,6 +38,7 @@ const error = () => {
38
38
  base64url: "base64url-encoded string",
39
39
  json_string: "JSON string",
40
40
  e164: "E.164 number",
41
+ currency_code: "currency code",
41
42
  credit_card: "credit card number",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-karaktraro",
40
40
  e164: "E.164-nombro",
41
41
  credit_card: "kreditkarta numero",
42
+ currency_code: "valuta kodo",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "enigo",
@@ -38,6 +38,7 @@ const error = () => {
38
38
  json_string: "cadena JSON",
39
39
  e164: "número E.164",
40
40
  credit_card: "número de tarjeta de crédito",
41
+ currency_code: "código de moneda",
41
42
  iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "entrada",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON رشته",
40
40
  e164: "E.164 عدد",
41
41
  credit_card: "شماره کارت اعتباری",
42
+ currency_code: "کد ارز",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "ورودی",
@@ -43,6 +43,7 @@ const error = () => {
43
43
  json_string: "JSON-merkkijono",
44
44
  e164: "E.164-luku",
45
45
  credit_card: "luottokortin numero",
46
+ currency_code: "valuuttakoodi",
46
47
  iban: "IBAN",
47
48
  jwt: "JWT",
48
49
  template_literal: "templaattimerkkijono",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "chaîne JSON",
40
40
  e164: "numéro E.164",
41
41
  credit_card: "numéro de carte de crédit",
42
+ currency_code: "code de devise",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "entrée",
@@ -38,6 +38,7 @@ const error = () => {
38
38
  json_string: "chaîne de caractères JSON",
39
39
  e164: "numéro au format E.164",
40
40
  credit_card: "numéro de carte de crédit",
41
+ currency_code: "code de devise",
41
42
  iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "entrée",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON સ્ટ્રિંગ",
40
40
  e164: "E.164 નંબર",
41
41
  credit_card: "ક્રેડિટ કાર્ડ નંબર",
42
+ currency_code: "ચલણ કોડ",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "ઇનપુટ",
@@ -78,6 +78,7 @@ const error = () => {
78
78
  json_string: { label: "מחרוזת JSON", gender: "f" },
79
79
  e164: { label: "מספר E.164", gender: "m" },
80
80
  credit_card: { label: "מספר כרטיס אשראי", gender: "m" },
81
+ currency_code: { label: "קוד מטבע", gender: "m" },
81
82
  iban: { label: "IBAN", gender: "m" },
82
83
  jwt: { label: "JWT", gender: "m" },
83
84
  template_literal: { label: "קלט", gender: "m" },
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON स्ट्रिंग",
40
40
  e164: "E.164 संख्या",
41
41
  credit_card: "क्रेडिट कार्ड संख्या",
42
+ currency_code: "मुद्रा कोड",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "इनपुट",
@@ -38,6 +38,7 @@ const error = () => {
38
38
  json_string: "JSON tekst",
39
39
  e164: "E.164 broj",
40
40
  credit_card: "broj kreditne kartice",
41
+ currency_code: "kod valute",
41
42
  iban: "IBAN",
42
43
  jwt: "JWT",
43
44
  template_literal: "unos",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON string",
40
40
  e164: "E.164 szám",
41
41
  credit_card: "hitelkártyaszám",
42
+ currency_code: "pénznemkód",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "bemenet",
@@ -79,6 +79,7 @@ const error = () => {
79
79
  json_string: "JSON տող",
80
80
  e164: "E.164 համար",
81
81
  credit_card: "կրեդիտ քարտի համար",
82
+ currency_code: "արժույթի կոդ",
82
83
  iban: "IBAN",
83
84
  jwt: "JWT",
84
85
  template_literal: "մուտք",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "string JSON",
40
40
  e164: "angka E.164",
41
41
  credit_card: "nomor kartu kredit",
42
+ currency_code: "kode mata uang",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "input",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON strengur",
40
40
  e164: "E.164 tölugildi",
41
41
  credit_card: "kreditkortanúmer",
42
+ currency_code: "gjaldmiðilskóði",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "gildi",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "stringa JSON",
40
40
  e164: "numero E.164",
41
41
  credit_card: "numero di carta di credito",
42
+ currency_code: "codice valuta",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "input",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON文字列",
40
40
  e164: "E.164番号",
41
41
  credit_card: "クレジットカード番号",
42
+ currency_code: "通貨コード",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "入力値",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON ველი",
40
40
  e164: "E.164 ნომერი",
41
41
  credit_card: "საკრედიტო ბარათის ნომერი",
42
+ currency_code: "ვალუტის კოდი",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "შეყვანა",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "ខ្សែអក្សរ JSON",
40
40
  e164: "លេខ E.164",
41
41
  credit_card: "លេខប័ណ្ណឥណទាន",
42
+ currency_code: "កូដរូបិយប័ណ្ណ",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "ទិន្នន័យបញ្ចូល",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSONಸ್ಟ್ರಿಂಗ್",
40
40
  e164: "E.164 ಸಂಖ್ಯೆ",
41
41
  credit_card: "ಕ್ರೆಡಿಟ್ ಕಾರ್ಡ್ ಸಂಖ್ಯೆ",
42
+ currency_code: "ಕರೆನ್ಸಿ ಕೋಡ್",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "ಇನ್ಪುಟ್",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON 문자열",
40
40
  e164: "E.164 번호",
41
41
  credit_card: "신용카드 번호",
42
+ currency_code: "통화 코드",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "입력",
@@ -121,6 +121,7 @@ const error = () => {
121
121
  json_string: "JSON eilutė",
122
122
  e164: "E.164 numeris",
123
123
  credit_card: "kredito kortelės numeris",
124
+ currency_code: "valiutos kodas",
124
125
  iban: "IBAN",
125
126
  jwt: "JWT",
126
127
  template_literal: "įvestis",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON низа",
40
40
  e164: "E.164 број",
41
41
  credit_card: "број на кредитна картичка",
42
+ currency_code: "код на валута",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "внес",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "string JSON",
40
40
  e164: "nombor E.164",
41
41
  credit_card: "nombor kad kredit",
42
+ currency_code: "kod mata wang",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "input",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON स्ट्रिङ",
40
40
  e164: "E.164 नम्बर",
41
41
  credit_card: "क्रेडिट कार्ड नम्बर",
42
+ currency_code: "मुद्रा कोड",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "इनपुट",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON string",
40
40
  e164: "E.164-nummer",
41
41
  credit_card: "creditcardnummer",
42
+ currency_code: "valutacode",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "invoer",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-streng",
40
40
  e164: "E.164-nummer",
41
41
  credit_card: "kredittkortnummer",
42
+ currency_code: "valutakode",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "input",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-streng",
40
40
  e164: "E.164-nummer",
41
41
  credit_card: "kredittkortnummer",
42
+ currency_code: "valutakode",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "input",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON metin",
40
40
  e164: "E.164 sayısı",
41
41
  credit_card: "i'tibâr kartı numarası",
42
+ currency_code: "para birimi kodu",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "giren",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "ciąg znaków w formacie JSON",
40
40
  e164: "liczba E.164",
41
41
  credit_card: "numer karty kredytowej",
42
+ currency_code: "kod waluty",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "wejście",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON متن",
40
40
  e164: "د E.164 شمېره",
41
41
  credit_card: "د کریډیټ کارت شمیره",
42
+ currency_code: "د اسعارو کوډ",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "ورودي",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "o texto JSON",
40
40
  e164: "o número E.164",
41
41
  credit_card: "o número de cartão de crédito",
42
+ currency_code: "o código de moeda",
42
43
  iban: "o IBAN",
43
44
  jwt: "o JWT",
44
45
  template_literal: "a entrada",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "o texto JSON",
40
40
  e164: "o número E.164",
41
41
  credit_card: "o número de cartão de crédito",
42
+ currency_code: "o código de moeda",
42
43
  iban: "o IBAN",
43
44
  jwt: "o JWT",
44
45
  template_literal: "a entrada",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "șir JSON",
40
40
  e164: "număr E.164",
41
41
  credit_card: "număr de card de credit",
42
+ currency_code: "cod valutar",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "intrare",
@@ -89,6 +89,7 @@ const error = () => {
89
89
  json_string: "JSON строка",
90
90
  e164: "номер E.164",
91
91
  credit_card: "номер кредитной карты",
92
+ currency_code: "код валюты",
92
93
  iban: "IBAN",
93
94
  jwt: "JWT",
94
95
  template_literal: "ввод",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "reťazec vo formáte JSON",
40
40
  e164: "číslo E.164",
41
41
  credit_card: "číslo kreditnej karty",
42
+ currency_code: "kód meny",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "vstup",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON niz",
40
40
  e164: "E.164 številka",
41
41
  credit_card: "številka kreditne kartice",
42
+ currency_code: "koda valute",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "vnos",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-sträng",
40
40
  e164: "E.164-nummer",
41
41
  credit_card: "kreditkortsnummer",
42
+ currency_code: "valutakod",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "mall-literal",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON சரம்",
40
40
  e164: "E.164 எண்",
41
41
  credit_card: "கடன் அட்டை எண்",
42
+ currency_code: "நாணயக் குறியீடு",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "input",
@@ -40,6 +40,7 @@ const error = () => {
40
40
  json_string: "сатри JSON",
41
41
  e164: "рақами E.164",
42
42
  credit_card: "рақами корти кредитӣ",
43
+ currency_code: "рамзи асъор",
43
44
  iban: "IBAN",
44
45
  jwt: "JWT",
45
46
  template_literal: "вуруд",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "ข้อความแบบ JSON",
40
40
  e164: "เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",
41
41
  credit_card: "หมายเลขบัตรเครดิต",
42
+ currency_code: "รหัสสกุลเงิน",
42
43
  iban: "IBAN",
43
44
  jwt: "โทเคน JWT",
44
45
  template_literal: "ข้อมูลที่ป้อน",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON setiri",
40
40
  e164: "E.164 nomeri",
41
41
  credit_card: "kredit kartynyň nomeri",
42
+ currency_code: "walýuta kody",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "şablon",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON dizesi",
40
40
  e164: "E.164 sayısı",
41
41
  credit_card: "kredi kartı numarası",
42
+ currency_code: "para birimi kodu",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "Şablon dizesi",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "рядок JSON",
40
40
  e164: "номер E.164",
41
41
  credit_card: "номер кредитної картки",
42
+ currency_code: "код валюти",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "вхідні дані",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "جے ایس او این سٹرنگ",
40
40
  e164: "ای 164 نمبر",
41
41
  credit_card: "کریڈٹ کارڈ نمبر",
42
+ currency_code: "کرنسی کوڈ",
42
43
  iban: "IBAN",
43
44
  jwt: "جے ڈبلیو ٹی",
44
45
  template_literal: "ان پٹ",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON satr",
40
40
  e164: "E.164 raqam",
41
41
  credit_card: "kredit karta raqami",
42
+ currency_code: "valyuta kodi",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "kirish",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "chuỗi JSON",
40
40
  e164: "số E.164",
41
41
  credit_card: "số thẻ tín dụng",
42
+ currency_code: "mã tiền tệ",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "đầu vào",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "ọ̀rọ̀ JSON",
40
40
  e164: "nọ́mbà E.164",
41
41
  credit_card: "nọmba kaadi gbese",
42
+ currency_code: "koodu owó",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "ẹ̀rọ ìbáwọlé",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON字符串",
40
40
  e164: "E.164号码",
41
41
  credit_card: "信用卡号",
42
+ currency_code: "货币代码",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "输入",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON 字串",
40
40
  e164: "E.164 數值",
41
41
  credit_card: "信用卡號",
42
+ currency_code: "貨幣代碼",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "輸入",
@@ -1 +1 @@
1
- export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.js";
1
+ export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _properties as properties, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.js";
@@ -1 +1 @@
1
- export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.js";
1
+ export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _properties as properties, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.js";
@@ -147,6 +147,7 @@ export declare const ZodMiniCustomStringFormat: core.$constructor<ZodMiniCustomS
147
147
  export declare function stringFormat<Format extends string>(format: Format, fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp, _params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<Format>;
148
148
  export declare function hostname(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hostname">;
149
149
  export declare function hex(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hex">;
150
+ export declare function currencyCode(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"currency_code">;
150
151
  export declare function hash<Alg extends util.HashAlgorithm, Enc extends util.HashEncoding = "hex">(alg: Alg, params?: {
151
152
  enc?: Enc;
152
153
  } & core.$ZodStringFormatParams): ZodMiniCustomStringFormat<`${Alg}_${Enc}`>;
@@ -367,7 +368,7 @@ export declare function _default<T extends SomeType>(innerType: T, defaultValue:
367
368
  export interface ZodMiniPrefault<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodPrefaultInternals<T>> {
368
369
  }
369
370
  export declare const ZodMiniPrefault: core.$constructor<ZodMiniPrefault>;
370
- export declare function prefault<T extends SomeType>(innerType: T, defaultValue: util.NoUndefined<core.input<T>> | (() => util.NoUndefined<core.input<T>>)): ZodMiniPrefault<T>;
371
+ export declare function prefault<T extends SomeType>(innerType: T, defaultValue: core.input<T> | (() => core.input<T>)): ZodMiniPrefault<T>;
371
372
  export interface ZodMiniNonOptional<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodNonOptionalInternals<T>> {
372
373
  }
373
374
  export declare const ZodMiniNonOptional: core.$constructor<ZodMiniNonOptional>;
@@ -419,10 +420,6 @@ export declare function promise<T extends SomeType>(innerType: T): ZodMiniPromis
419
420
  export interface ZodMiniCustom<O = unknown, I = unknown> extends _ZodMiniType<core.$ZodCustomInternals<O, I>> {
420
421
  }
421
422
  export declare const ZodMiniCustom: core.$constructor<ZodMiniCustom>;
422
- export interface ZodMiniProperties<Shape extends core.$ZodShape = core.$ZodShape> extends _ZodMiniType<core.$ZodPropertiesInternals<Shape>>, core.$ZodProperties<Shape> {
423
- }
424
- export declare const ZodMiniProperties: core.$constructor<ZodMiniProperties>;
425
- export declare function properties<Shape extends core.$ZodShape>(shape: Shape, params?: string | core.$ZodPropertiesParams): ZodMiniProperties<Shape>;
426
423
  export declare function check<O = unknown>(fn: core.CheckFn<O>, params?: string | core.$ZodCustomParams): core.$ZodCheck<O>;
427
424
  export declare function custom<O = unknown, I = O>(fn?: (data: O) => unknown, _params?: string | core.$ZodCustomParams | undefined): ZodMiniCustom<O, I>;
428
425
  export declare function refine<T>(fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>, _params?: string | core.$ZodCustomParams): core.$ZodCheck<T>;
@@ -1,4 +1,5 @@
1
1
  import * as core from "../core/index.js";
2
+ import * as regexes from "../core/regexes.js";
2
3
  import * as util from "../core/util.js";
3
4
  import * as parse from "./parse.js";
4
5
  export const ZodMiniType = /*@__PURE__*/ core.$constructor("ZodMiniType", (inst, def) => {
@@ -112,8 +113,8 @@ export function url(params) {
112
113
  // @__NO_SIDE_EFFECTS__
113
114
  export function httpUrl(params) {
114
115
  return core._url(ZodMiniURL, {
115
- protocol: core.regexes.httpProtocol,
116
- hostname: core.regexes.domain,
116
+ protocol: regexes.httpProtocol,
117
+ hostname: regexes.domain,
117
118
  ...util.normalizeParams(params),
118
119
  });
119
120
  }
@@ -283,11 +284,15 @@ export function stringFormat(format, fnOrRegex, _params = {}) {
283
284
  }
284
285
  // @__NO_SIDE_EFFECTS__
285
286
  export function hostname(_params) {
286
- return core._stringFormat(ZodMiniCustomStringFormat, "hostname", core.regexes.hostname, _params);
287
+ return core._stringFormat(ZodMiniCustomStringFormat, "hostname", regexes.hostname, _params);
287
288
  }
288
289
  // @__NO_SIDE_EFFECTS__
289
290
  export function hex(_params) {
290
- return core._stringFormat(ZodMiniCustomStringFormat, "hex", core.regexes.hex, _params);
291
+ return core._stringFormat(ZodMiniCustomStringFormat, "hex", regexes.hex, _params);
292
+ }
293
+ // @__NO_SIDE_EFFECTS__
294
+ export function currencyCode(_params) {
295
+ return core._stringFormat(ZodMiniCustomStringFormat, "currency_code", regexes.currencyCode, _params);
291
296
  }
292
297
  // @__NO_SIDE_EFFECTS__
293
298
  export function hash(alg, params) {
@@ -918,13 +923,6 @@ export const ZodMiniCustom = /*@__PURE__*/ core.$constructor("ZodMiniCustom", (i
918
923
  core.$ZodCustom.init(inst, def);
919
924
  ZodMiniType.init(inst, def);
920
925
  });
921
- export const ZodMiniProperties = /*@__PURE__*/ core.$constructor("ZodMiniProperties", (inst, def) => {
922
- core.$ZodProperties.init(inst, def);
923
- ZodMiniType.init(inst, def);
924
- });
925
- export function properties(shape, params) {
926
- return core._properties(ZodMiniProperties, shape, params);
927
- }
928
926
  // custom checks
929
927
  // @__NO_SIDE_EFFECTS__
930
928
  export function check(fn, params) {