@intlayer/core 9.4.4 → 9.5.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 (162) hide show
  1. package/README.md +0 -2
  2. package/dist/cjs/dictionaryManipulator/qualifiedDictionary.cjs.map +1 -1
  3. package/dist/cjs/index.cjs +5 -8
  4. package/dist/cjs/interpreter/getPlural.cjs.map +1 -1
  5. package/dist/cjs/markdown/compiler.cjs +437 -209
  6. package/dist/cjs/markdown/compiler.cjs.map +1 -1
  7. package/dist/cjs/markdown/constants.cjs +32 -50
  8. package/dist/cjs/markdown/constants.cjs.map +1 -1
  9. package/dist/cjs/markdown/elementScanner.cjs +191 -0
  10. package/dist/cjs/markdown/elementScanner.cjs.map +1 -0
  11. package/dist/cjs/markdown/index.cjs +5 -8
  12. package/dist/cjs/markdown/parser.cjs +90 -48
  13. package/dist/cjs/markdown/parser.cjs.map +1 -1
  14. package/dist/cjs/markdown/renderer.cjs +14 -11
  15. package/dist/cjs/markdown/renderer.cjs.map +1 -1
  16. package/dist/cjs/markdown/utils.cjs +123 -34
  17. package/dist/cjs/markdown/utils.cjs.map +1 -1
  18. package/dist/esm/dictionaryManipulator/qualifiedDictionary.mjs.map +1 -1
  19. package/dist/esm/index.mjs +3 -3
  20. package/dist/esm/interpreter/getPlural.mjs.map +1 -1
  21. package/dist/esm/markdown/compiler.mjs +438 -211
  22. package/dist/esm/markdown/compiler.mjs.map +1 -1
  23. package/dist/esm/markdown/constants.mjs +29 -43
  24. package/dist/esm/markdown/constants.mjs.map +1 -1
  25. package/dist/esm/markdown/elementScanner.mjs +183 -0
  26. package/dist/esm/markdown/elementScanner.mjs.map +1 -0
  27. package/dist/esm/markdown/index.mjs +3 -3
  28. package/dist/esm/markdown/parser.mjs +90 -48
  29. package/dist/esm/markdown/parser.mjs.map +1 -1
  30. package/dist/esm/markdown/renderer.mjs +14 -11
  31. package/dist/esm/markdown/renderer.mjs.map +1 -1
  32. package/dist/esm/markdown/utils.mjs +124 -35
  33. package/dist/esm/markdown/utils.mjs.map +1 -1
  34. package/dist/types/dictionaryManipulator/qualifiedDictionary.d.ts +3 -3
  35. package/dist/types/dictionaryManipulator/qualifiedDictionary.d.ts.map +1 -1
  36. package/dist/types/index.d.ts +4 -4
  37. package/dist/types/interpreter/getPlural.d.ts +3 -3
  38. package/dist/types/interpreter/getPlural.d.ts.map +1 -1
  39. package/dist/types/markdown/compiler.d.ts +43 -0
  40. package/dist/types/markdown/compiler.d.ts.map +1 -1
  41. package/dist/types/markdown/constants.d.ts +26 -17
  42. package/dist/types/markdown/constants.d.ts.map +1 -1
  43. package/dist/types/markdown/elementScanner.d.ts +14 -0
  44. package/dist/types/markdown/elementScanner.d.ts.map +1 -0
  45. package/dist/types/markdown/index.d.ts +4 -4
  46. package/dist/types/markdown/parser.d.ts +0 -5
  47. package/dist/types/markdown/parser.d.ts.map +1 -1
  48. package/dist/types/markdown/renderer.d.ts +0 -4
  49. package/dist/types/markdown/renderer.d.ts.map +1 -1
  50. package/dist/types/markdown/types.d.ts +13 -0
  51. package/dist/types/markdown/types.d.ts.map +1 -1
  52. package/dist/types/markdown/utils.d.ts +7 -2
  53. package/dist/types/markdown/utils.d.ts.map +1 -1
  54. package/package.json +7 -7
  55. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -1
  56. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -1
  57. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -1
  58. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -1
  59. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -1
  60. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -1
  61. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -1
  62. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -7
  63. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -1
  64. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -2
  65. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
  66. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -1
  67. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -1
  68. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -1
  69. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -1
  70. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -1
  71. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -1
  72. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -1
  73. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -1
  74. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -7
  75. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -1
  76. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/intlayer/dist/types/index.d.ts +0 -6
  77. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -2
  78. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
  79. package/dist/types/@intlayer/core/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -1
  80. package/dist/types/@intlayer/core/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts +0 -2
  81. package/dist/types/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -2
  82. package/dist/types/@intlayer/core/dist/types/formatters/compact.d.ts +0 -1
  83. package/dist/types/@intlayer/core/dist/types/formatters/currency.d.ts +0 -1
  84. package/dist/types/@intlayer/core/dist/types/formatters/date.d.ts +0 -1
  85. package/dist/types/@intlayer/core/dist/types/formatters/index.d.ts +0 -9
  86. package/dist/types/@intlayer/core/dist/types/formatters/list.d.ts +0 -1
  87. package/dist/types/@intlayer/core/dist/types/formatters/number.d.ts +0 -1
  88. package/dist/types/@intlayer/core/dist/types/formatters/percentage.d.ts +0 -1
  89. package/dist/types/@intlayer/core/dist/types/formatters/relativeTime.d.ts +0 -1
  90. package/dist/types/@intlayer/core/dist/types/formatters/units.d.ts +0 -1
  91. package/dist/types/@intlayer/core/dist/types/interpreter/dictionaryTransformCache.d.ts +0 -4
  92. package/dist/types/@intlayer/core/dist/types/interpreter/getCondition.d.ts +0 -2
  93. package/dist/types/@intlayer/core/dist/types/interpreter/getContent/deepTransform.d.ts +0 -1
  94. package/dist/types/@intlayer/core/dist/types/interpreter/getContent/getContent.d.ts +0 -3
  95. package/dist/types/@intlayer/core/dist/types/interpreter/getContent/index.d.ts +0 -3
  96. package/dist/types/@intlayer/core/dist/types/interpreter/getContent/plugins.d.ts +0 -7
  97. package/dist/types/@intlayer/core/dist/types/interpreter/getDictionary.d.ts +0 -4
  98. package/dist/types/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -6
  99. package/dist/types/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -2
  100. package/dist/types/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -2
  101. package/dist/types/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -2
  102. package/dist/types/@intlayer/core/dist/types/interpreter/getIntlayer.d.ts +0 -4
  103. package/dist/types/@intlayer/core/dist/types/interpreter/getIntlayerAsync.d.ts +0 -4
  104. package/dist/types/@intlayer/core/dist/types/interpreter/getNesting.d.ts +0 -6
  105. package/dist/types/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -3
  106. package/dist/types/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -2
  107. package/dist/types/@intlayer/core/dist/types/interpreter/getTranslation.d.ts +0 -1
  108. package/dist/types/@intlayer/core/dist/types/interpreter/index.d.ts +0 -18
  109. package/dist/types/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -2
  110. package/dist/types/@intlayer/core/dist/types/intlayer/dist/types/index.d.ts +0 -6
  111. package/dist/types/@intlayer/core/dist/types/localization/comparePaths.d.ts +0 -1
  112. package/dist/types/@intlayer/core/dist/types/localization/domainUtils.d.ts +0 -2
  113. package/dist/types/@intlayer/core/dist/types/localization/generateSitemap.d.ts +0 -2
  114. package/dist/types/@intlayer/core/dist/types/localization/getBrowserLocale.d.ts +0 -1
  115. package/dist/types/@intlayer/core/dist/types/localization/getCanonicalPath.d.ts +0 -2
  116. package/dist/types/@intlayer/core/dist/types/localization/getHTMLTextDir.d.ts +0 -1
  117. package/dist/types/@intlayer/core/dist/types/localization/getLocale.d.ts +0 -1
  118. package/dist/types/@intlayer/core/dist/types/localization/getLocaleFromPath.d.ts +0 -2
  119. package/dist/types/@intlayer/core/dist/types/localization/getLocaleLang.d.ts +0 -1
  120. package/dist/types/@intlayer/core/dist/types/localization/getLocaleName.d.ts +0 -1
  121. package/dist/types/@intlayer/core/dist/types/localization/getLocalizedPath.d.ts +0 -2
  122. package/dist/types/@intlayer/core/dist/types/localization/getLocalizedUrl.d.ts +0 -2
  123. package/dist/types/@intlayer/core/dist/types/localization/getMultilingualUrls.d.ts +0 -2
  124. package/dist/types/@intlayer/core/dist/types/localization/getPathWithoutLocale.d.ts +0 -1
  125. package/dist/types/@intlayer/core/dist/types/localization/getPrefix.d.ts +0 -2
  126. package/dist/types/@intlayer/core/dist/types/localization/index.d.ts +0 -22
  127. package/dist/types/@intlayer/core/dist/types/localization/localeDetector.d.ts +0 -2
  128. package/dist/types/@intlayer/core/dist/types/localization/localeMapper.d.ts +0 -1
  129. package/dist/types/@intlayer/core/dist/types/localization/localeResolver.d.ts +0 -1
  130. package/dist/types/@intlayer/core/dist/types/localization/resolveBrowserLocale.d.ts +0 -2
  131. package/dist/types/@intlayer/core/dist/types/localization/rewriteMatch.d.ts +0 -1
  132. package/dist/types/@intlayer/core/dist/types/localization/rewriteUtils.d.ts +0 -2
  133. package/dist/types/@intlayer/core/dist/types/localization/validatePrefix.d.ts +0 -2
  134. package/dist/types/@intlayer/core/dist/types/markdown/index.d.ts +0 -2
  135. package/dist/types/@intlayer/core/dist/types/transpiler/condition/condition.d.ts +0 -1
  136. package/dist/types/@intlayer/core/dist/types/transpiler/condition/index.d.ts +0 -1
  137. package/dist/types/@intlayer/core/dist/types/transpiler/enumeration/enumeration.d.ts +0 -1
  138. package/dist/types/@intlayer/core/dist/types/transpiler/enumeration/index.d.ts +0 -1
  139. package/dist/types/@intlayer/core/dist/types/transpiler/file/file.d.ts +0 -1
  140. package/dist/types/@intlayer/core/dist/types/transpiler/file/index.d.ts +0 -1
  141. package/dist/types/@intlayer/core/dist/types/transpiler/gender/gender.d.ts +0 -1
  142. package/dist/types/@intlayer/core/dist/types/transpiler/gender/index.d.ts +0 -1
  143. package/dist/types/@intlayer/core/dist/types/transpiler/html/html.d.ts +0 -1
  144. package/dist/types/@intlayer/core/dist/types/transpiler/html/index.d.ts +0 -1
  145. package/dist/types/@intlayer/core/dist/types/transpiler/index.d.ts +0 -22
  146. package/dist/types/@intlayer/core/dist/types/transpiler/insertion/index.d.ts +0 -1
  147. package/dist/types/@intlayer/core/dist/types/transpiler/insertion/insertion.d.ts +0 -1
  148. package/dist/types/@intlayer/core/dist/types/transpiler/markdown/index.d.ts +0 -1
  149. package/dist/types/@intlayer/core/dist/types/transpiler/markdown/markdown.d.ts +0 -1
  150. package/dist/types/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
  151. package/dist/types/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -4
  152. package/dist/types/@intlayer/core/dist/types/transpiler/plural/index.d.ts +0 -1
  153. package/dist/types/@intlayer/core/dist/types/transpiler/plural/plural.d.ts +0 -1
  154. package/dist/types/@intlayer/core/dist/types/transpiler/select/index.d.ts +0 -1
  155. package/dist/types/@intlayer/core/dist/types/transpiler/select/select.d.ts +0 -1
  156. package/dist/types/@intlayer/core/dist/types/transpiler/translation/index.d.ts +0 -1
  157. package/dist/types/@intlayer/core/dist/types/transpiler/translation/translation.d.ts +0 -2
  158. package/dist/types/@intlayer/core/dist/types/utils/index.d.ts +0 -3
  159. package/dist/types/@intlayer/core/dist/types/utils/intl.d.ts +0 -1
  160. package/dist/types/@intlayer/core/dist/types/utils/isSameKeyPath.d.ts +0 -1
  161. package/dist/types/@intlayer/core/dist/types/utils/localeStorage.d.ts +0 -2
  162. package/dist/types/intlayer/dist/types/index.d.ts +0 -14
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","names":[],"sources":["../../../src/markdown/constants.ts"],"mappings":";;;;;qBAQa;WACX;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;;WAEA;;WAEA;WACA;WACA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;YAUU,wBAAwB,uBAAuB;;;;qBAS9C;;WAEX;;WAEA;;WAEA;;WAEA;;WAEA;;YAGU,wBAAwB,uBAAuB;;;;;qBAU9C,4BAA4B;;;;qBAuD5B,wBAAwB;;qBAcxB;;qBAGA;;qBAcA,kBAAgB;;qBAIhB,aAAW;;qBAGX,cAAY;qBACZ,kCAAgC;qBAChC,oBAAkB;;qBAGlB,cAAY;qBACZ,kBAAgB;;qBAGhB,qBAAmB;qBAEnB,cAAY;;qBAEZ,mBAAiB;qBACjB,eAAa;;qBAGb,uBAAqB;qBACrB,cAAY;;qBAGZ,YAAU;qBACV,sBAAoB;;qBAGpB,YAAU;;qBAGV,gBAAc;;qBAGd,YAAU;;qBAGV,WAAS;qBACT,yBAAuB;qBAEvB,kBAAgB;qBAqChB,sBAAoB;qBAIpB,kBAAgB;qBAEhB,gBAAc;qBACd,oBAAkB;qBAClB,6BAA2B;;qBAM3B,oBAAkB;;qBAKlB,iBAAe;;qBAGf,0BAAwB;qBACxB,iBAAe;qBACf,6BAA2B;;qBAG3B,YAAU;qBAEV,kBAAgB;qBAChB,oBAAkB;qBAClB,kBAAgB;qBAChB,mBAAiB;;qBAGjB,aAAW;;qBAGX,yBAAuB;qBAEvB,mBAAiB;qBACjB,kBAAgB;;;;;;qBAOhB,0BAAwB;qBACxB,iCAA+B;qBAE/B,gCAA8B;;qBAG9B,0BAAwB;;qBAGxB,OAAK;;qBAEL,wBAAsB;qBACtB,wBAAsB;qBACtB,yBAAuB;;qBAGvB;qBACA;;qBAGA,gBAAc;qBACd,YAAU;qBACV,cAAY;;qBAIZ,aAAW;YAMZ;qBACC,SAAS;qBACT,WAAW;;;;;qBAUX,YAAS;;;;;qBAOT;;qBAIA,aAAW;;qBAKX,mBAAiB;;qBAKjB,eAAa;;qBAKb,wBAAsB;qBAQtB,yBAAsB,MAAU;qBAQhC;qBACA;qBAEA,8BAA2B,MAAU,aAAW;qBAOhD,4BAA0B;qBAC1B,8BAA4B;qBAG5B,wBAAqB,MAAU,aAAW;qBAc1C,qBAAmB;qBACnB,uBAAqB;qBAErB,oBAAiB,MAAU,aAAW;qBAiBtC,gBAAc;qBACd,kBAAgB"}
1
+ {"version":3,"file":"constants.d.ts","names":[],"sources":["../../../src/markdown/constants.ts"],"mappings":";;;;;qBAQa;WACX;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;;WAEA;;WAEA;WACA;WACA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;YAUU,wBAAwB,uBAAuB;;;;qBAS9C;;WAEX;;WAEA;;WAEA;;WAEA;;WAEA;;YAGU,wBAAwB,uBAAuB;;;;;;;;qBAa9C;WACX;WACA;WACA;;qBAGW;qBACA;qBACA;YAED,yBACA,wBAAwB;;;;;qBAavB,4BAA4B;;;;qBAuD5B,wBAAwB;;qBAcxB;;qBAGA;;qBAcA,kBAAgB;;qBAIhB,aAAW;;qBAGX,cAAY;qBACZ,kCAAgC;qBAChC,oBAAkB;;qBAGlB,cAAY;qBACZ,kBAAgB;;qBAOhB,qBAAmB;qBAEnB,cAAY;;qBAEZ,mBAAiB;qBACjB,eAAa;;qBAGb,uBAAqB;qBACrB,cAAY;;qBAGZ,YAAU;qBACV,sBAAoB;;qBAGpB,YAAU;;qBAGV,gBAAc;;qBAGd,YAAU;;qBAGV,WAAS;qBACT,yBAAuB;qBAEvB,kBAAgB;;qBAIhB,kBAAgB;qBAEhB,gBAAc;qBACd,oBAAkB;;qBAGlB,iBAAe;;qBAGf,0BAAwB;qBACxB,iBAAe;qBACf,6BAA2B;;;;;;;;;qBAU3B,YAAU;qBAEV,kBAAgB;qBAChB,oBAAkB;qBAClB,kBAAgB;qBAChB,mBAAiB;;qBAGjB,aAAW;;qBAGX,yBAAuB;qBAEvB,mBAAiB;qBACjB,kBAAgB;;qBAGhB,0BAAwB;;qBAGxB,OAAK;qBACL,wBAAsB;qBACtB,yBAAuB;;qBAGvB;qBACA;;qBAGA,gBAAc;qBACd,YAAU;;qBAGV,aAAW;YAMZ;qBACC,SAAS;qBACT,WAAW;;;;;qBAUX,YAAS;;;;;qBAOT;;qBAIA,aAAW;;qBAKX,mBAAiB;;qBAKjB,eAAa;;qBAKb,wBAAsB;qBAQtB,yBAAsB,MAAU;qBAQhC;qBACA;qBAEA,8BAA2B,MAAU,aAAW;qBAOhD,4BAA0B;qBAC1B,8BAA4B;qBAG5B,wBAAqB,MAAU,aAAW;qBAc1C,qBAAmB;qBACnB,uBAAqB;qBAErB,oBAAiB,MAAU,aAAW;qBA4BtC,gBAAc;qBACd,kBAAgB"}
@@ -0,0 +1,14 @@
1
+ //#region src/markdown/elementScanner.d.ts
2
+ /**
3
+ * Lean, non-backtracking element scanner for HTML blocks, custom components, and self-closing tags.
4
+ */
5
+ export declare const matchElement: (source: string, customComponent: boolean) => RegExpMatchArray | null;
6
+ export declare const matchSelfClosingElement: (source: string) => RegExpMatchArray | null;
7
+ export declare const matchHtmlBlockElement: (source: string) => RegExpMatchArray;
8
+ export declare const matchCustomComponent: (source: string) => RegExpMatchArray;
9
+ export declare const startsWithHtmlBlockElement: (source: string) => boolean;
10
+ export declare const startsWithSelfClosingElement: (source: string) => boolean;
11
+ export declare const startsWithCustomComponent: (source: string) => boolean;
12
+ export declare const startsWithElement: (source: string) => boolean;
13
+ //#endregion
14
+ //# sourceMappingURL=elementScanner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elementScanner.d.ts","names":[],"sources":["../../../src/markdown/elementScanner.ts"],"mappings":";;;;qBA+Ga,eAAY,gBACT,6BAEb;qBAkHU,0BAAuB,mBAEjC;qBA4DU,wBAAqB,mBAAkB;qBAEvC,uBAAoB,mBAAkB;qBAEtC,6BAA0B;qBAE1B,+BAA4B;qBAE5B,4BAAyB;qBAEzB,oBAAiB"}
@@ -3,10 +3,10 @@ import { getMarkdownMetadata } from "../transpiler/markdown/getMarkdownMetadata.
3
3
  import { MarkdownContent, MarkdownContentConstructor, md as markdown } from "../transpiler/markdown/markdown.js";
4
4
  import { MarkdownValidationResult, validateMarkdown } from "../transpiler/markdown/validateMarkdown.js";
5
5
  import "../transpiler/markdown/index.js";
6
+ import { ATTRIBUTES_TO_SANITIZE, ATTRIBUTE_TO_NODE_PROP_MAP, ATTR_EXTRACTOR_R, BLOCKQUOTE_ALERT_R, BLOCKQUOTE_R, BLOCKQUOTE_TRIM_LEFT_MULTILINE_R, BLOCK_END_R, BREAK_LINE_R, BREAK_THEMATIC_R, CAPTURE_LETTER_AFTER_HYPHEN, CODE_BLOCK_FENCED_R, CODE_BLOCK_R, CODE_INLINE_R, CONSECUTIVE_NEWLINE_R, CR_NEWLINE_R, DO_NOT_PROCESS_HTML_ELEMENTS, FENCE_DELIMITER_R, FOOTNOTE_R, FOOTNOTE_REFERENCE_R, FORMFEED_R, FRONT_MATTER_R, GFM_TASK_R, HEADING_ATX_COMPLIANT_R, HEADING_R, HEADING_SETEXT_R, HTML_CHAR_CODE_R, HTML_COMMENT_R, HTML_CUSTOM_ATTR_R, HTML_LEFT_TRIM_AMOUNT_R, INLINE_SKIP_R, INTERPOLATION_R, LINK_AUTOLINK_BARE_URL_R, LINK_AUTOLINK_R, LOOKAHEAD, ListType, NAMED_CODES_TO_UNICODE, NP_TABLE_R, ORDERED, ORDERED_LIST_BULLET, ORDERED_LIST_ITEM_PREFIX, ORDERED_LIST_ITEM_PREFIX_R, ORDERED_LIST_ITEM_R, ORDERED_LIST_R, PARAGRAPH_R, Priority, PriorityValue, REFERENCE_IMAGE_OR_LINK, REFERENCE_IMAGE_R, REFERENCE_LINK_R, RuleScope, RuleScopeValue, RuleType, RuleTypeValue, SCOPE_BLOCK, SCOPE_BOTH, SCOPE_INLINE, SHORTCODE_R, SHOULD_RENDER_AS_BLOCK_R, TABLE_CENTER_ALIGN, TABLE_LEFT_ALIGN, TABLE_RIGHT_ALIGN, TABLE_TRIM_PIPES, TAB_R, TEXT_BOLD_R, TEXT_EMPHASIZED_R, TEXT_ESCAPED_R, TEXT_MARKED_R, TEXT_STRIKETHROUGHED_R, TRIM_STARTING_NEWLINES, UNESCAPE_R, UNORDERED, UNORDERED_LIST_BULLET, UNORDERED_LIST_ITEM_PREFIX, UNORDERED_LIST_ITEM_PREFIX_R, UNORDERED_LIST_ITEM_R, UNORDERED_LIST_R, generateListItemPrefix, generateListItemPrefixRegex, generateListItemRegex, generateListRegex } from "./constants.js";
6
7
  import { BlockQuoteNode, BoldTextNode, BreakLineNode, BreakThematicNode, CodeBlockNode, CodeFencedNode, CodeInlineNode, CompileOptions, ComponentOverrides, CustomComponentNode, ElementType, EscapedTextNode, FootnoteNode, FootnoteReferenceNode, GFMTaskNode, HTMLCommentNode, HTMLNode, HTMLSelfClosingNode, HTMLTag, HeadingNode, HeadingSetextNode, ImageNode, ItalicTextNode, LinkAngleBraceNode, LinkBareURLNode, LinkNode, MarkdownContext, MarkdownOptions, MarkdownRuntime, MarkedTextNode, NestedParser, NewlineNode, OrderedListNode, ParagraphNode, ParseState, Parser, ParserResult, ReferenceImageNode, ReferenceLinkNode, ReferenceNode, RenderRuleHook, Rule, RuleOutput, Rules, StrikethroughTextNode, TableNode, TableSeparatorNode, TextNode, UnorderedListNode } from "./types.js";
7
- import { MarkdownReferences, ParsedMarkdown, compile, compileWithOptions, createCompiler, parseMarkdown, renderMarkdownAst } from "./compiler.js";
8
- import { ATTRIBUTES_TO_SANITIZE, ATTRIBUTE_TO_NODE_PROP_MAP, ATTR_EXTRACTOR_R, BLOCKQUOTE_ALERT_R, BLOCKQUOTE_R, BLOCKQUOTE_TRIM_LEFT_MULTILINE_R, BLOCK_END_R, BREAK_LINE_R, BREAK_THEMATIC_R, CAPTURE_LETTER_AFTER_HYPHEN, CODE_BLOCK_FENCED_R, CODE_BLOCK_R, CODE_INLINE_R, CONSECUTIVE_NEWLINE_R, CR_NEWLINE_R, CUSTOM_COMPONENT_OPENING_TAG_R, CUSTOM_COMPONENT_R, DO_NOT_PROCESS_HTML_ELEMENTS, FENCE_DELIMITER_R, FOOTNOTE_R, FOOTNOTE_REFERENCE_R, FORMFEED_R, FRONT_MATTER_R, GFM_TASK_R, HEADING_ATX_COMPLIANT_R, HEADING_R, HEADING_SETEXT_R, HTML_BLOCK_ELEMENT_R, HTML_BLOCK_OPENING_TAG_R, HTML_CHAR_CODE_R, HTML_COMMENT_R, HTML_CUSTOM_ATTR_R, HTML_LEFT_TRIM_AMOUNT_R, HTML_SELF_CLOSING_ELEMENT_R, HTML_SELF_CLOSING_OPENING_TAG_R, INLINE_SKIP_R, INTERPOLATION_R, LINK_AUTOLINK_BARE_URL_R, LINK_AUTOLINK_R, LOOKAHEAD, ListType, NAMED_CODES_TO_UNICODE, NORMALIZE_WHITESPACE_R, NP_TABLE_R, ORDERED, ORDERED_LIST_BULLET, ORDERED_LIST_ITEM_PREFIX, ORDERED_LIST_ITEM_PREFIX_R, ORDERED_LIST_ITEM_R, ORDERED_LIST_R, PARAGRAPH_R, Priority, PriorityValue, REFERENCE_IMAGE_OR_LINK, REFERENCE_IMAGE_R, REFERENCE_LINK_R, RuleType, RuleTypeValue, SHORTCODE_R, SHOULD_RENDER_AS_BLOCK_R, TABLE_CENTER_ALIGN, TABLE_LEFT_ALIGN, TABLE_RIGHT_ALIGN, TABLE_TRIM_PIPES, TAB_R, TEXT_BOLD_R, TEXT_EMPHASIZED_R, TEXT_ESCAPED_R, TEXT_MARKED_R, TEXT_PLAIN_R, TEXT_STRIKETHROUGHED_R, TRIM_STARTING_NEWLINES, UNESCAPE_R, UNORDERED, UNORDERED_LIST_BULLET, UNORDERED_LIST_ITEM_PREFIX, UNORDERED_LIST_ITEM_PREFIX_R, UNORDERED_LIST_ITEM_R, UNORDERED_LIST_R, generateListItemPrefix, generateListItemPrefixRegex, generateListItemRegex, generateListRegex } from "./constants.js";
9
8
  import { parserFor } from "./parser.js";
10
9
  import { createRenderer, renderFor } from "./renderer.js";
11
- import { allowInline, anyScopeRegex, attributeValueToNodePropValue, blockRegex, captureNothing, cx, get, inlineRegex, normalizeAttributeKey, normalizeWhitespace, parseBlock, parseCaptureInline, parseInline, parseSimpleInline, parseStyleAttribute, parseTableAlign, parseTableAlignCapture, parseTableCells, parseTableRow, qualifies, renderNothing, sanitizer, simpleInlineRegex, slugify, some, startsWith, trimEnd, trimLeadingWhitespaceOutsideFences, unescapeString, unquote } from "./utils.js";
12
- export { ATTRIBUTES_TO_SANITIZE, ATTRIBUTE_TO_NODE_PROP_MAP, ATTR_EXTRACTOR_R, BLOCKQUOTE_ALERT_R, BLOCKQUOTE_R, BLOCKQUOTE_TRIM_LEFT_MULTILINE_R, BLOCK_END_R, BREAK_LINE_R, BREAK_THEMATIC_R, type BlockQuoteNode, type BoldTextNode, type BreakLineNode, type BreakThematicNode, CAPTURE_LETTER_AFTER_HYPHEN, CODE_BLOCK_FENCED_R, CODE_BLOCK_R, CODE_INLINE_R, CONSECUTIVE_NEWLINE_R, CR_NEWLINE_R, CUSTOM_COMPONENT_OPENING_TAG_R, CUSTOM_COMPONENT_R, type CodeBlockNode, type CodeFencedNode, type CodeInlineNode, type CompileOptions, type ComponentOverrides, type CustomComponentNode, DO_NOT_PROCESS_HTML_ELEMENTS, type ElementType, type EscapedTextNode, FENCE_DELIMITER_R, FOOTNOTE_R, FOOTNOTE_REFERENCE_R, FORMFEED_R, FRONT_MATTER_R, type FootnoteNode, type FootnoteReferenceNode, type GFMTaskNode, GFM_TASK_R, HEADING_ATX_COMPLIANT_R, HEADING_R, HEADING_SETEXT_R, type HTMLCommentNode, type HTMLNode, type HTMLSelfClosingNode, type HTMLTag, HTML_BLOCK_ELEMENT_R, HTML_BLOCK_OPENING_TAG_R, HTML_CHAR_CODE_R, HTML_COMMENT_R, HTML_CUSTOM_ATTR_R, HTML_LEFT_TRIM_AMOUNT_R, HTML_SELF_CLOSING_ELEMENT_R, HTML_SELF_CLOSING_OPENING_TAG_R, type HeadingNode, type HeadingSetextNode, INLINE_SKIP_R, INTERPOLATION_R, type ImageNode, type ItalicTextNode, LINK_AUTOLINK_BARE_URL_R, LINK_AUTOLINK_R, LOOKAHEAD, type LinkAngleBraceNode, type LinkBareURLNode, type LinkNode, ListType, MarkdownContent, MarkdownContentConstructor, type MarkdownContext, type MarkdownOptions, MarkdownReferences, type MarkdownRuntime, type HTMLValidationIssue as MarkdownValidationIssue, MarkdownValidationResult, type MarkedTextNode, NAMED_CODES_TO_UNICODE, NORMALIZE_WHITESPACE_R, NP_TABLE_R, type NestedParser, type NewlineNode, ORDERED, ORDERED_LIST_BULLET, ORDERED_LIST_ITEM_PREFIX, ORDERED_LIST_ITEM_PREFIX_R, ORDERED_LIST_ITEM_R, ORDERED_LIST_R, type OrderedListNode, PARAGRAPH_R, type ParagraphNode, type ParseState, ParsedMarkdown, type Parser, type ParserResult, Priority, PriorityValue, REFERENCE_IMAGE_OR_LINK, REFERENCE_IMAGE_R, REFERENCE_LINK_R, type ReferenceImageNode, type ReferenceLinkNode, type ReferenceNode, type RenderRuleHook, type Rule, type RuleOutput, RuleType, RuleTypeValue, type Rules, SHORTCODE_R, SHOULD_RENDER_AS_BLOCK_R, type StrikethroughTextNode, TABLE_CENTER_ALIGN, TABLE_LEFT_ALIGN, TABLE_RIGHT_ALIGN, TABLE_TRIM_PIPES, TAB_R, TEXT_BOLD_R, TEXT_EMPHASIZED_R, TEXT_ESCAPED_R, TEXT_MARKED_R, TEXT_PLAIN_R, TEXT_STRIKETHROUGHED_R, TRIM_STARTING_NEWLINES, type TableNode, type TableSeparatorNode, type TextNode, UNESCAPE_R, UNORDERED, UNORDERED_LIST_BULLET, UNORDERED_LIST_ITEM_PREFIX, UNORDERED_LIST_ITEM_PREFIX_R, UNORDERED_LIST_ITEM_R, UNORDERED_LIST_R, type UnorderedListNode, allowInline, anyScopeRegex, attributeValueToNodePropValue, blockRegex, captureNothing, compile, compileWithOptions, createCompiler, createRenderer, cx, generateListItemPrefix, generateListItemPrefixRegex, generateListItemRegex, generateListRegex, get, getMarkdownMetadata, inlineRegex, markdown as md, normalizeAttributeKey, normalizeWhitespace, parseBlock, parseCaptureInline, parseInline, parseMarkdown, parseSimpleInline, parseStyleAttribute, parseTableAlign, parseTableAlignCapture, parseTableCells, parseTableRow, parserFor, qualifies, renderFor, renderMarkdownAst, renderNothing, sanitizer, simpleInlineRegex, slugify, some, startsWith, trimEnd, trimLeadingWhitespaceOutsideFences, unescapeString, unquote, validateMarkdown };
10
+ import { MarkdownReferences, ParsedMarkdown, compile, compileWithOptions, createCompiler, getRuleSet, parseMarkdown, renderMarkdownAst } from "./compiler.js";
11
+ import { BlockSyntaxProbe, allowInline, anyScopeRegex, attributeValueToNodePropValue, blockRegex, captureNothing, cx, get, inlineRegex, normalizeAttributeKey, normalizeWhitespace, parseBlock, parseCaptureInline, parseInline, parseSimpleInline, parseStyleAttribute, parseTableAlign, parseTableAlignCapture, parseTableCells, parseTableRow, qualifies, renderNothing, sanitizer, simpleInlineRegex, slugify, some, startsWith, trimEnd, trimLeadingWhitespaceOutsideFences, unescapeString, unquote } from "./utils.js";
12
+ export { ATTRIBUTES_TO_SANITIZE, ATTRIBUTE_TO_NODE_PROP_MAP, ATTR_EXTRACTOR_R, BLOCKQUOTE_ALERT_R, BLOCKQUOTE_R, BLOCKQUOTE_TRIM_LEFT_MULTILINE_R, BLOCK_END_R, BREAK_LINE_R, BREAK_THEMATIC_R, type BlockQuoteNode, BlockSyntaxProbe, type BoldTextNode, type BreakLineNode, type BreakThematicNode, CAPTURE_LETTER_AFTER_HYPHEN, CODE_BLOCK_FENCED_R, CODE_BLOCK_R, CODE_INLINE_R, CONSECUTIVE_NEWLINE_R, CR_NEWLINE_R, type CodeBlockNode, type CodeFencedNode, type CodeInlineNode, type CompileOptions, type ComponentOverrides, type CustomComponentNode, DO_NOT_PROCESS_HTML_ELEMENTS, type ElementType, type EscapedTextNode, FENCE_DELIMITER_R, FOOTNOTE_R, FOOTNOTE_REFERENCE_R, FORMFEED_R, FRONT_MATTER_R, type FootnoteNode, type FootnoteReferenceNode, type GFMTaskNode, GFM_TASK_R, HEADING_ATX_COMPLIANT_R, HEADING_R, HEADING_SETEXT_R, type HTMLCommentNode, type HTMLNode, type HTMLSelfClosingNode, type HTMLTag, HTML_CHAR_CODE_R, HTML_COMMENT_R, HTML_CUSTOM_ATTR_R, HTML_LEFT_TRIM_AMOUNT_R, type HeadingNode, type HeadingSetextNode, INLINE_SKIP_R, INTERPOLATION_R, type ImageNode, type ItalicTextNode, LINK_AUTOLINK_BARE_URL_R, LINK_AUTOLINK_R, LOOKAHEAD, type LinkAngleBraceNode, type LinkBareURLNode, type LinkNode, ListType, MarkdownContent, MarkdownContentConstructor, type MarkdownContext, type MarkdownOptions, MarkdownReferences, type MarkdownRuntime, type HTMLValidationIssue as MarkdownValidationIssue, MarkdownValidationResult, type MarkedTextNode, NAMED_CODES_TO_UNICODE, NP_TABLE_R, type NestedParser, type NewlineNode, ORDERED, ORDERED_LIST_BULLET, ORDERED_LIST_ITEM_PREFIX, ORDERED_LIST_ITEM_PREFIX_R, ORDERED_LIST_ITEM_R, ORDERED_LIST_R, type OrderedListNode, PARAGRAPH_R, type ParagraphNode, type ParseState, ParsedMarkdown, type Parser, type ParserResult, Priority, PriorityValue, REFERENCE_IMAGE_OR_LINK, REFERENCE_IMAGE_R, REFERENCE_LINK_R, type ReferenceImageNode, type ReferenceLinkNode, type ReferenceNode, type RenderRuleHook, type Rule, type RuleOutput, RuleScope, RuleScopeValue, RuleType, RuleTypeValue, type Rules, SCOPE_BLOCK, SCOPE_BOTH, SCOPE_INLINE, SHORTCODE_R, SHOULD_RENDER_AS_BLOCK_R, type StrikethroughTextNode, TABLE_CENTER_ALIGN, TABLE_LEFT_ALIGN, TABLE_RIGHT_ALIGN, TABLE_TRIM_PIPES, TAB_R, TEXT_BOLD_R, TEXT_EMPHASIZED_R, TEXT_ESCAPED_R, TEXT_MARKED_R, TEXT_STRIKETHROUGHED_R, TRIM_STARTING_NEWLINES, type TableNode, type TableSeparatorNode, type TextNode, UNESCAPE_R, UNORDERED, UNORDERED_LIST_BULLET, UNORDERED_LIST_ITEM_PREFIX, UNORDERED_LIST_ITEM_PREFIX_R, UNORDERED_LIST_ITEM_R, UNORDERED_LIST_R, type UnorderedListNode, allowInline, anyScopeRegex, attributeValueToNodePropValue, blockRegex, captureNothing, compile, compileWithOptions, createCompiler, createRenderer, cx, generateListItemPrefix, generateListItemPrefixRegex, generateListItemRegex, generateListRegex, get, getMarkdownMetadata, getRuleSet, inlineRegex, markdown as md, normalizeAttributeKey, normalizeWhitespace, parseBlock, parseCaptureInline, parseInline, parseMarkdown, parseSimpleInline, parseStyleAttribute, parseTableAlign, parseTableAlignCapture, parseTableCells, parseTableRow, parserFor, qualifies, renderFor, renderMarkdownAst, renderNothing, sanitizer, simpleInlineRegex, slugify, some, startsWith, trimEnd, trimLeadingWhitespaceOutsideFences, unescapeString, unquote, validateMarkdown };
@@ -3,11 +3,6 @@ import { ParseState, ParserResult, Rules } from "./types.js";
3
3
  /**
4
4
  * Creates a parser for a given set of rules, with the precedence
5
5
  * specified as a list of rules.
6
- *
7
- * @param rules - An object containing rule type -> {match, order, parse} objects
8
- * (lower order is higher precedence)
9
- *
10
- * @returns The resulting parse function
11
6
  */
12
7
  export declare const parserFor: (rules: Rules) => ((source: string, state: ParseState) => ParserResult[]);
13
8
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"parser.d.ts","names":[],"sources":["../../../src/markdown/parser.ts"],"mappings":";;;;;;;;;;;qBAoHa,YAAS,OACb,YACJ,gBAAgB,OAAO,eAAe"}
1
+ {"version":3,"file":"parser.d.ts","names":[],"sources":["../../../src/markdown/parser.ts"],"mappings":";;;;;;qBAoEa,YAAS,OACb,YACJ,gBAAgB,OAAO,eAAe"}
@@ -10,10 +10,6 @@ import { ParseState, ParserResult, RenderRuleHook, RuleOutput, Rules } from "./t
10
10
  export declare const renderFor: (render: (ast: ParserResult, render: RuleOutput, state: ParseState) => unknown) => (ast: ParserResult | ParserResult[], state?: ParseState) => any;
11
11
  /**
12
12
  * Creates a renderer from rules with optional custom render hook.
13
- *
14
- * @param rules - The rules object containing _render functions
15
- * @param userRender - Optional custom render hook for full control
16
- * @returns A render function for AST nodes
17
13
  */
18
14
  export declare const createRenderer: (rules: Rules, userRender?: RenderRuleHook) => (ast: ParserResult, render: RuleOutput, state: ParseState) => unknown;
19
15
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"renderer.d.ts","names":[],"sources":["../../../src/markdown/renderer.ts"],"mappings":";;;;;;;;;qBAea,YAAS,SACX,KAAK,cAAc,QAAQ,YAAY,OAAO,4BAAsB,KAKtE,eAAe,gBAAc,QAC3B;;;;;;;;qBA8CE,iBAAc,OACjB,OAAK,aAAe,oBAAc,KACpC,cAAY,QAAU,YAAU,OAAS"}
1
+ {"version":3,"file":"renderer.d.ts","names":[],"sources":["../../../src/markdown/renderer.ts"],"mappings":";;;;;;;;;qBAiBa,YAAS,SACX,KAAK,cAAc,QAAQ,YAAY,OAAO,4BAAsB,KAGtE,eAAe,gBAAc,QAC3B;;;;qBA0CE,iBAAc,OAAW,OAAK,aAAe,oBAAc,KAM7D,cAAY,QACT,YAAU,OACX"}
@@ -1,3 +1,4 @@
1
+ import { RuleScopeValue } from "./constants.js";
1
2
  //#region src/markdown/types.d.ts
2
3
  /**
3
4
  * Permissive element type - core doesn't care what frameworks accept.
@@ -264,6 +265,18 @@ export type Rule<ParserOutput = ParserResult> = {
264
265
  * should even be attempted.
265
266
  */
266
267
  _qualify?: string[] | ((source: string, state: ParseState) => boolean);
268
+ /**
269
+ * Optional ASCII charCodes that can trigger this rule.
270
+ * If provided, the rule is only evaluated when source starts with one of these characters.
271
+ */
272
+ _firstChars?: number[];
273
+ /**
274
+ * Optional parsing scope for this rule.
275
+ * SCOPE_BLOCK (1) / 'block': evaluated only when !state.inline && !state.simple
276
+ * SCOPE_INLINE (2) / 'inline': evaluated only when state.inline || state.simple
277
+ * SCOPE_BOTH (3) / 'both': evaluated in both scopes (default)
278
+ */
279
+ _scope?: RuleScopeValue;
267
280
  /**
268
281
  * Render function - converts AST node to output.
269
282
  * Uses context's runtime.createElement for element creation.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/markdown/types.ts"],"mappings":";;;;;YAQY;;;;YAKA;;;;;YAMA;;;;;;;EAOV,gBACE,MAAM,aACN,OAAO,+BACJ;;;;;EAOL;;;;;;;;;;EAWA,kBACE,KAAK,SACL,OAAO,wBACJ;;;;GAKJ;;;;;YAMS,gBAAgB;;EAE1B,SAAS;;EAET,aAAa,mBAAmB;;EAEhC,aAAa,aAAa,KAAK,SAAS;;EAExC,WAAW,cAAc,YAAY;;EAErC,sBAAsB;;;;;YAUZ;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;EAMA;;EAEA;;EAEA;;YAOU;EACV;EACA;EACA,UAAU;;YAGA;EACV;;YAGU;EACV;;YAGU;EACV;EACA,QAAQ;EACR;EACA;;YAGU;EACV;;YAGU;EACV;EACA;;YAGU;EACV;;YAGU;EACV;EACA;EACA;;YAGU;EACV;EACA;;YAGU;EACV;EACA,UAAU;EACV;EACA;;YAGU;EACV;;YAGU;EACV;;YAGU;EACV;EACA;EACA;EACA;;YAGU;EACV;EACA,UAAU;EACV;EACA;;YAGU;EACV;;YAGU;EACV;;YAGU;EACV;EACA,OAAO;EACP;EACA;;YAGU;EACV;EACA,OAAO;EACP;;YAGU;EACV;;YAGU;EACV;EACA,UAAU;;YAGA;EACV;;YAGU;EACV;EACA;EACA;;YAGU;EACV;EACA,UAAU;EACV;EACA;;YAGU;EACV;EACA;EACA,OAAO;EACP,QAAQ;;YAGE;EACV;;YAGU;EACV;EACA;;YAGU;EACV;EACA,UAAU;;YAGA;EACV;EACA,UAAU;;YAGA;EACV;;YAGU;EACV;EACA,UAAU;;YAGA;EACV;EACA,UAAU;;YAGA;EACV;EACA,OAAO;EACP,WAAW;EACX;EACA,KAAK;EACL;;YAGU;EACV;EACA,OAAO;EACP;;YAGU;EACV;EACA,OAAO;EACP,WAAW;EACX;EACA;EACA;;;;;YAMU,eACR,iBACA,gBACA,oBACA,gBACA,iBACA,iBACA,sBACA,eACA,wBACA,cACA,cACA,oBACA,kBACA,YACA,WACA,qBACA,kBACA,kBACA,oBACA,cACA,gBACA,gBACA,qBACA,oBACA,YACA,qBACA,WACA,eACA,iBACA,kBACA,iBACA,wBACA,WACA;;;;YASQ,gBAAgB,eAAe,OAAO,eAAe;;;;YAKrD,OAAO,iBACjB,SAAS,kBACT,aAAa,cACb,OAAO,eACJ;;;;YAKO,cACV,KAAK,eAAe,gBACpB,OAAO;;;;YAMG,KAAK,eAAe;;EAE9B,SACE,gBACA,OAAO,YACP,gCACG;;EAGL;;EAGA,QAAQ,OAAO,KAAK;;;;;EAMpB,wBAAwB,gBAAgB,OAAO;;;;;EAM/C,WACE,MAAM,cACN,QAAQ,YACR,OAAO;;;;;YAOC;GACT,cAAc;;;;;YAUL,mBAAmB;GAC5B,cAAc;;;;;YAUL,kBAEV;;AAAA,qBAEA;;AAAA,MAAM,cAEN;;AAAA,gBAAgB,YAEhB;;AAAA,OAAO;;;;;YAOG;;;;EAIV;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA,aAAa;;;;EAKb,UAAU;;;;EAKV;;;;EAKA;;;;;;YAOU,eAAe,WAAW;;EAEpC,aAAa,mBAAmB;;EAEhC,sBAAsB;;EAEtB,aAAa,eAAe,KAAK,SAAS;;EAE1C,WAAW,eAAe,YAAY"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/markdown/types.ts"],"mappings":";;;;;;YAUY;;;;YAKA;;;;;YAMA;;;;;;;EAOV,gBACE,MAAM,aACN,OAAO,+BACJ;;;;;EAOL;;;;;;;;;;EAWA,kBACE,KAAK,SACL,OAAO,wBACJ;;;;GAKJ;;;;;YAMS,gBAAgB;;EAE1B,SAAS;;EAET,aAAa,mBAAmB;;EAEhC,aAAa,aAAa,KAAK,SAAS;;EAExC,WAAW,cAAc,YAAY;;EAErC,sBAAsB;;;;;YAUZ;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;EAMA;;EAEA;;EAEA;;YAOU;EACV;EACA;EACA,UAAU;;YAGA;EACV;;YAGU;EACV;;YAGU;EACV;EACA,QAAQ;EACR;EACA;;YAGU;EACV;;YAGU;EACV;EACA;;YAGU;EACV;;YAGU;EACV;EACA;EACA;;YAGU;EACV;EACA;;YAGU;EACV;EACA,UAAU;EACV;EACA;;YAGU;EACV;;YAGU;EACV;;YAGU;EACV;EACA;EACA;EACA;;YAGU;EACV;EACA,UAAU;EACV;EACA;;YAGU;EACV;;YAGU;EACV;;YAGU;EACV;EACA,OAAO;EACP;EACA;;YAGU;EACV;EACA,OAAO;EACP;;YAGU;EACV;;YAGU;EACV;EACA,UAAU;;YAGA;EACV;;YAGU;EACV;EACA;EACA;;YAGU;EACV;EACA,UAAU;EACV;EACA;;YAGU;EACV;EACA;EACA,OAAO;EACP,QAAQ;;YAGE;EACV;;YAGU;EACV;EACA;;YAGU;EACV;EACA,UAAU;;YAGA;EACV;EACA,UAAU;;YAGA;EACV;;YAGU;EACV;EACA,UAAU;;YAGA;EACV;EACA,UAAU;;YAGA;EACV;EACA,OAAO;EACP,WAAW;EACX;EACA,KAAK;EACL;;YAGU;EACV;EACA,OAAO;EACP;;YAGU;EACV;EACA,OAAO;EACP,WAAW;EACX;EACA;EACA;;;;;YAMU,eACR,iBACA,gBACA,oBACA,gBACA,iBACA,iBACA,sBACA,eACA,wBACA,cACA,cACA,oBACA,kBACA,YACA,WACA,qBACA,kBACA,kBACA,oBACA,cACA,gBACA,gBACA,qBACA,oBACA,YACA,qBACA,WACA,eACA,iBACA,kBACA,iBACA,wBACA,WACA;;;;YASQ,gBAAgB,eAAe,OAAO,eAAe;;;;YAKrD,OAAO,iBACjB,SAAS,kBACT,aAAa,cACb,OAAO,eACJ;;;;YAKO,cACV,KAAK,eAAe,gBACpB,OAAO;;;;YAMG,KAAK,eAAe;;EAE9B,SACE,gBACA,OAAO,YACP,gCACG;;EAGL;;EAGA,QAAQ,OAAO,KAAK;;;;;EAMpB,wBAAwB,gBAAgB,OAAO;;;;;EAM/C;;;;;;;EAQA,SAAS;;;;;EAMT,WACE,MAAM,cACN,QAAQ,YACR,OAAO;;;;;YAOC;GACT,cAAc;;;;;YAUL,mBAAmB;GAC5B,cAAc;;;;;YAUL,kBAEV;;AAAA,qBAEA;;AAAA,MAAM,cAEN;;AAAA,gBAAgB,YAEhB;;AAAA,OAAO;;;;;YAOG;;;;EAIV;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA,aAAa;;;;EAKb,UAAU;;;;EAKV;;;;EAKA;;;;;;YAOU,eAAe,WAAW;;EAEpC,aAAa,mBAAmB;;EAEhC,sBAAsB;;EAEtB,aAAa,eAAe,KAAK,SAAS;;EAE1C,WAAW,eAAe,YAAY"}
@@ -15,7 +15,7 @@ export declare const unquote: (str: string) => string;
15
15
  /**
16
16
  * Unescape backslash-escaped characters.
17
17
  */
18
- export declare const unescapeString: (rawString: string) => string;
18
+ export declare const unescapeString: <T extends string | undefined>(rawString: T) => T;
19
19
  /**
20
20
  * Join class names, filtering out falsy values.
21
21
  */
@@ -135,6 +135,11 @@ export declare const renderNothing: () => null;
135
135
  /**
136
136
  * Check if any regex in a list matches the input.
137
137
  */
138
- export declare const some: (regexes: RegExp[], input: string) => boolean;
138
+ /**
139
+ * A block-syntax probe: either a regex to test, or a predicate for the rules
140
+ * whose regex was replaced by a linear scanner.
141
+ */
142
+ export type BlockSyntaxProbe = RegExp | ((input: string) => boolean);
143
+ export declare const some: (probes: BlockSyntaxProbe[], input: string) => boolean;
139
144
  //#endregion
140
145
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","names":[],"sources":["../../../src/markdown/utils.ts"],"mappings":";;;;;qBAsBa,UAAO;;;;qBAWP,aAAU,aAAe;;;;qBAOzB,UAAO;;;;qBAiBP,iBAAc;;;;qBAMd,QAAE;;;;qBAKF,MAAG,UAAY,cAAc;qBAoC7B,UAAO;;;;;qBAsBP,YAAS;;;;qBAqCT,sBAAmB;;;;;;;;;;;qBAoBnB,qCAAkC,cACjC;;;;qBAwCD,wBAAqB;KAY7B,cAAc,aAAa;;;;qBAKnB,sBAAmB,wBAA0B;;;;qBA+D7C,gCAA6B,aAC7B,aACA,eACE,gBAEX,eACA,aACA;;;;qBA0CS,yBAAsB;;;;qBAiBtB,kBAAe;;;;qBAUf,gBAAa,gBACV,OACP,cAAY,OACZ,YAAU,yBAEhB;;;;qBA8CU,kBAAe,gBACZ,OACP,cAAY,OACZ,eACN;;;;qBAiBU,YAAS,gBACN,OACP,YAAU,SACR,YAAY;;;;qBAmBV,cAAe,cAAc,qBAAmB,IACvD,MACH;EAAM;;;;;qBAQI,cAAW,OAAW,aAAM,gBACZ,OAAS,eAAa;EATlC;;;;;qBAoBJ,oBAAiB,OAAW,aAAM,gBAClB,OAAS,eAAa;EArBlC;;;;;qBAgCJ,aAAU,OACb,YAAM,gBACC,OAAS,eAAa;;;;qBAW1B,gBAAa,IACpB,WAAW,gBAAgB,OAAO,eAAe,+BAAwB,gBAElD,OAAS,eAAa;EAhDlC;;;;;qBA0DJ,cAAW,OACf,cAAY,kBACH,OACT,eACN;;;;qBAeU,oBAAiB,OACrB,cAAY,kBACH,OACT,eACN;;;;qBAgBU,aAAU,OACd,cAAY,kBACH,QACT,eACN;;;;qBAoBU,qBAAkB,SACpB,kBAAgB,OAClB,cAAY,OACZ;EACJ,UAAU;;;;;qBASF,sBAAqB;;;;qBAKrB;;;;qBAKA,OAAI,SAAa,UAAQ"}
1
+ {"version":3,"file":"utils.d.ts","names":[],"sources":["../../../src/markdown/utils.ts"],"mappings":";;;;;qBAwBa,UAAO;;;;qBAWP,aAAU,aAAe;;;;qBAOzB,UAAO;;;;qBAiBP,iBAAkB,8BAA4B,WAAa,MAAI;;;;qBAQ/D,QAAE;;;;qBAKF,MAAG,UAAY,cAAc;qBAyC7B,UAAO;;;;;qBA4BP,YAAS;;;;qBAqCT,sBAAmB;;;;;;;;;;;qBA+BnB,qCAAkC,cACjC;;;;qBAwCD,wBAAqB;KAY7B,cAAc,aAAa;;;;qBAKnB,sBAAmB,wBAA0B;;;;qBA+D7C,gCAA6B,aAC7B,aACA,eACE,gBAEX,eACA,aACA;;;;qBA0CS,yBAAsB;;;;qBAqBtB,kBAAe;;;;qBAUf,gBAAa,gBACV,OACP,cAAY,OACZ,YAAU,yBAEhB;;;;qBA4HU,kBAAe,gBACZ,OACP,cAAY,OACZ,eACN;;;;qBAqCU,YAAS,gBACN,OACP,YAAU,SACR,YAAY;;;;qBAmBV,cAAe,cAAc,qBAAmB,IACvD,MACH;EAAM;;;;;qBAQI,cAAW,OAAW,aAAM,gBACZ,OAAS,eAAa;EATlC;;;;;qBAoBJ,oBAAiB,OAAW,aAAM,gBAClB,OAAS,eAAa;EArBlC;;;;;qBAgCJ,aAAU,OACb,YAAM,gBACC,OAAS,eAAa;;;;qBAW1B,gBAAa,IACpB,WAAW,gBAAgB,OAAO,eAAe,+BAAwB,gBAElD,OAAS,eAAa;EAhDlC;;;;;qBA0DJ,cAAW,OACf,cAAY,kBACH,OACT,eACN;;;;qBAeU,oBAAiB,OACrB,cAAY,kBACH,OACT,eACN;;;;qBAgBU,aAAU,OACd,cAAY,kBACH,QACT,eACN;;;;qBAoBU,qBAAkB,SACpB,kBAAgB,OAClB,cAAY,OACZ;EACJ,UAAU;;;;;qBASF,sBAAqB;;;;qBAKrB;;;;;;;;YASD,mBAAmB,WAAW;qBAE7B,OAAI,QAAY,oBAAkB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/core",
3
- "version": "9.4.4",
3
+ "version": "9.5.0",
4
4
  "private": false,
5
5
  "description": "Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.",
6
6
  "keywords": [
@@ -172,15 +172,15 @@
172
172
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
173
173
  },
174
174
  "dependencies": {
175
- "@intlayer/api": "9.4.4",
176
- "@intlayer/config": "9.4.4",
177
- "@intlayer/dictionaries-entry": "9.4.4",
178
- "@intlayer/types": "9.4.4",
179
- "@intlayer/unmerged-dictionaries-entry": "9.4.4",
175
+ "@intlayer/api": "9.5.0",
176
+ "@intlayer/config": "9.5.0",
177
+ "@intlayer/dictionaries-entry": "9.5.0",
178
+ "@intlayer/types": "9.5.0",
179
+ "@intlayer/unmerged-dictionaries-entry": "9.5.0",
180
180
  "defu": "6.1.7"
181
181
  },
182
182
  "devDependencies": {
183
- "@types/node": "26.4.1",
183
+ "@types/node": "26.5.0",
184
184
  "@utils/ts-config": "1.0.4",
185
185
  "@utils/ts-config-types": "1.0.4",
186
186
  "@utils/tsdown-config": "1.0.4",
@@ -1 +0,0 @@
1
- import "../dictionaryManipulator/qualifiedDynamicLoader.js";
@@ -1 +0,0 @@
1
- import "../../../../../intlayer/dist/types/index.js";
@@ -1,7 +0,0 @@
1
- import "./getDictionaryAsync.js";
2
- import "./getEnumeration.js";
3
- import "./getGender.js";
4
- import "./getInsertion.js";
5
- import "./getPlural.js";
6
- import "./getSelect.js";
7
- import "./interpolableNode.js";
@@ -1,2 +0,0 @@
1
- import "./nesting/nesting.js";
2
- import "./nesting/index.js";
@@ -1 +0,0 @@
1
- import "../dictionaryManipulator/qualifiedDynamicLoader.js";
@@ -1 +0,0 @@
1
- import "../intlayer/dist/types/index.js";
@@ -1,7 +0,0 @@
1
- import "./getDictionaryAsync.js";
2
- import "./getEnumeration.js";
3
- import "./getGender.js";
4
- import "./getInsertion.js";
5
- import "./getPlural.js";
6
- import "./getSelect.js";
7
- import "./interpolableNode.js";
@@ -1,6 +0,0 @@
1
- import "../../../@intlayer/core/dist/types/transpiler/index.js";
2
- import "../../../@intlayer/core/dist/types/interpreter/index.js";
3
- import "@intlayer/types/module_augmentation";
4
- import "@intlayer/types/allLocales";
5
- import "@intlayer/types/locales";
6
- import "@intlayer/config/built";
@@ -1,2 +0,0 @@
1
- import "./nesting/nesting.js";
2
- import "./nesting/index.js";
@@ -1,2 +0,0 @@
1
- import { Dictionary } from "@intlayer/types/dictionary";
2
- import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1,2 +0,0 @@
1
- import { Dictionary, DictionaryQualifierType, DictionarySelector } from "@intlayer/types/dictionary";
2
- import "@intlayer/config/defaultValues";
@@ -1 +0,0 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1 +0,0 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1 +0,0 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1,9 +0,0 @@
1
- import "./compact.js";
2
- import "./currency.js";
3
- import "./date.js";
4
- import "../utils/intl.js";
5
- import "./list.js";
6
- import "./number.js";
7
- import "./percentage.js";
8
- import "./relativeTime.js";
9
- import "./units.js";
@@ -1 +0,0 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1 +0,0 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1 +0,0 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1 +0,0 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1 +0,0 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1,4 +0,0 @@
1
- import "./getContent/plugins.js";
2
- import "./getContent/index.js";
3
- import { Dictionary } from "@intlayer/types/dictionary";
4
- import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1,2 +0,0 @@
1
- import "../transpiler/condition/condition.js";
2
- import "../transpiler/index.js";
@@ -1,3 +0,0 @@
1
- import "./plugins.js";
2
- import { ContentNode } from "@intlayer/types/dictionary";
3
- import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1,3 +0,0 @@
1
- import "./plugins.js";
2
- import "./deepTransform.js";
3
- import "./getContent.js";
@@ -1,7 +0,0 @@
1
- import "../../transpiler/gender/gender.js";
2
- import "../../transpiler/index.js";
3
- import "../getNesting.js";
4
- import { DeclaredLocales, DictionaryKeys, LocalesValues } from "@intlayer/types/module_augmentation";
5
- import { Locale } from "@intlayer/types/allLocales";
6
- import { KeyPath } from "@intlayer/types/keyPath";
7
- import { NodeType } from "@intlayer/types/nodeType";
@@ -1,4 +0,0 @@
1
- import "./getContent/plugins.js";
2
- import "./getContent/index.js";
3
- import { Dictionary, DictionarySelector, QualifiedDictionaryGroup, ResolveQualifiedDictionaryContent } from "@intlayer/types/dictionary";
4
- import { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1,6 +0,0 @@
1
- import "./getContent/plugins.js";
2
- import "./getContent/index.js";
3
- import "../dictionaryManipulator/plainDynamicLoader.js";
4
- import "../dictionaryManipulator/qualifiedDynamicLoader.js";
5
- import { Dictionary, DictionarySelector } from "@intlayer/types/dictionary";
6
- import { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1,2 +0,0 @@
1
- import "../transpiler/enumeration/enumeration.js";
2
- import "../transpiler/index.js";
@@ -1,2 +0,0 @@
1
- import "../transpiler/gender/gender.js";
2
- import "../transpiler/index.js";
@@ -1,2 +0,0 @@
1
- import "../transpiler/insertion/insertion.js";
2
- import "../transpiler/index.js";
@@ -1,4 +0,0 @@
1
- import "./getContent/plugins.js";
2
- import "./getContent/index.js";
3
- import { DictionarySelector } from "@intlayer/types/dictionary";
4
- import { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1,4 +0,0 @@
1
- import "./getContent/plugins.js";
2
- import "./getContent/index.js";
3
- import { DictionarySelector } from "@intlayer/types/dictionary";
4
- import { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, ExtractSelectorLocale, LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1,6 +0,0 @@
1
- import "../transpiler/index.js";
2
- import "./getContent/plugins.js";
3
- import "../transpiler/nesting/nesting.js";
4
- import "./getContent/index.js";
5
- import { GetSubPath } from "@intlayer/types/dictionary";
6
- import { DictionaryKeys, DictionaryRegistryContent } from "@intlayer/types/module_augmentation";
@@ -1,3 +0,0 @@
1
- import "../transpiler/plural/plural.js";
2
- import "../intlayer/dist/types/index.js";
3
- import { DeclaredLocales } from "@intlayer/types";
@@ -1,2 +0,0 @@
1
- import "../transpiler/select/select.js";
2
- import "../transpiler/index.js";
@@ -1 +0,0 @@
1
- import { LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
@@ -1,18 +0,0 @@
1
- import "./getContent/plugins.js";
2
- import "./getContent/deepTransform.js";
3
- import "./getContent/getContent.js";
4
- import "./getContent/index.js";
5
- import "./getNesting.js";
6
- import "./dictionaryTransformCache.js";
7
- import "./getCondition.js";
8
- import "./getDictionary.js";
9
- import "./getDictionaryAsync.js";
10
- import "./getEnumeration.js";
11
- import "./getGender.js";
12
- import "./getInsertion.js";
13
- import "./getIntlayer.js";
14
- import "./getIntlayerAsync.js";
15
- import "./getPlural.js";
16
- import "./getSelect.js";
17
- import "./getTranslation.js";
18
- import "./interpolableNode.js";
@@ -1,2 +0,0 @@
1
- import "./getContent/plugins.js";
2
- import "@intlayer/types/nodeType";
@@ -1,6 +0,0 @@
1
- import "../../../@intlayer/core/dist/types/interpreter/index.js";
2
- import "../../../@intlayer/core/dist/types/transpiler/index.js";
3
- import "@intlayer/types/module_augmentation";
4
- import "@intlayer/types/allLocales";
5
- import "@intlayer/types/locales";
6
- import "@intlayer/config/built";
@@ -1 +0,0 @@
1
- import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1,2 +0,0 @@
1
- import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
2
- import { RoutingConfig } from "@intlayer/types/config";
@@ -1,2 +0,0 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
2
- import { RoutingConfig } from "@intlayer/types/config";
@@ -1 +0,0 @@
1
- import { Locale } from "@intlayer/types/allLocales";
@@ -1,2 +0,0 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
2
- import { RewriteRules, RoutingConfig } from "@intlayer/types/config";
@@ -1 +0,0 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1 +0,0 @@
1
- import { DeclaredLocales } from "@intlayer/types/module_augmentation";
@@ -1,2 +0,0 @@
1
- import "./getPrefix.js";
2
- import { DeclaredLocales } from "@intlayer/types/module_augmentation";
@@ -1 +0,0 @@
1
- import { GetLocaleLang, LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1 +0,0 @@
1
- import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1,2 +0,0 @@
1
- import "./getPrefix.js";
2
- import { LocalesValues, LocalizedPathname, ResolvedDefaultLocale } from "@intlayer/types/module_augmentation";
@@ -1,2 +0,0 @@
1
- import "./getPrefix.js";
2
- import { LocalesValues, LocalizedUrl, ResolvedDefaultLocale } from "@intlayer/types/module_augmentation";
@@ -1,2 +0,0 @@
1
- import "./getPrefix.js";
2
- import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
@@ -1 +0,0 @@
1
- import { DeclaredLocales, LocalesValues, PathWithoutLocale } from "@intlayer/types/module_augmentation";
@@ -1,2 +0,0 @@
1
- import { DeclaredLocales, DomainRuleMap, IsDomainExclusive, LocalesValues, ResolvedDefaultLocale, ResolvedDomains, ResolvedRoutingMode } from "@intlayer/types/module_augmentation";
2
- import { RewriteRules, RoutingConfig } from "@intlayer/types/config";
@@ -1,22 +0,0 @@
1
- import "./comparePaths.js";
2
- import "./domainUtils.js";
3
- import "./generateSitemap.js";
4
- import "./getBrowserLocale.js";
5
- import "./getCanonicalPath.js";
6
- import "./getHTMLTextDir.js";
7
- import "./getLocale.js";
8
- import "./getPrefix.js";
9
- import "./getLocaleFromPath.js";
10
- import "./getLocaleLang.js";
11
- import "./getLocaleName.js";
12
- import "./getLocalizedPath.js";
13
- import "./getLocalizedUrl.js";
14
- import "./getMultilingualUrls.js";
15
- import "./getPathWithoutLocale.js";
16
- import "./localeDetector.js";
17
- import "./localeMapper.js";
18
- import "./localeResolver.js";
19
- import "./resolveBrowserLocale.js";
20
- import "./rewriteMatch.js";
21
- import "./rewriteUtils.js";
22
- import "./validatePrefix.js";
@@ -1,2 +0,0 @@
1
- import { DeclaredLocales } from "@intlayer/types/module_augmentation";
2
- import { Locale } from "@intlayer/types/allLocales";
@@ -1 +0,0 @@
1
- import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1 +0,0 @@
1
- import { DeclaredLocales, LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1,2 +0,0 @@
1
- import "./getPrefix.js";
2
- import { LocalesValues } from "@intlayer/types/module_augmentation";
@@ -1 +0,0 @@
1
- import { RewriteObject, RewriteRules, RoutingConfig } from "@intlayer/types/config";