@react-fabric/lexical 1.0.0-beta.61 → 1.0.0-beta.62

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 (359) hide show
  1. package/css/_lexical.css +61 -0
  2. package/dist/cjs/node_modules/date-fns/_lib/addLeadingZeros.js +9 -0
  3. package/dist/cjs/node_modules/date-fns/_lib/defaultOptions.js +9 -0
  4. package/dist/cjs/node_modules/date-fns/_lib/format/formatters.js +779 -0
  5. package/dist/cjs/node_modules/date-fns/_lib/format/lightFormatters.js +96 -0
  6. package/dist/cjs/node_modules/date-fns/_lib/format/longFormatters.js +68 -0
  7. package/dist/cjs/node_modules/date-fns/_lib/getRoundingMethod.js +12 -0
  8. package/dist/cjs/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +33 -0
  9. package/dist/cjs/node_modules/date-fns/_lib/normalizeDates.js +13 -0
  10. package/dist/cjs/node_modules/date-fns/_lib/normalizeInterval.js +10 -0
  11. package/dist/cjs/node_modules/date-fns/_lib/protectedTokens.js +29 -0
  12. package/dist/cjs/node_modules/date-fns/add.js +73 -0
  13. package/dist/cjs/node_modules/date-fns/addDays.js +46 -0
  14. package/dist/cjs/node_modules/date-fns/addHours.js +39 -0
  15. package/dist/cjs/node_modules/date-fns/addMilliseconds.js +39 -0
  16. package/dist/cjs/node_modules/date-fns/addMinutes.js +41 -0
  17. package/dist/cjs/node_modules/date-fns/addMonths.js +80 -0
  18. package/dist/cjs/node_modules/date-fns/addQuarters.js +38 -0
  19. package/dist/cjs/node_modules/date-fns/addWeeks.js +38 -0
  20. package/dist/cjs/node_modules/date-fns/addYears.js +38 -0
  21. package/dist/cjs/node_modules/date-fns/compareAsc.js +50 -0
  22. package/dist/cjs/node_modules/date-fns/constants.js +66 -0
  23. package/dist/cjs/node_modules/date-fns/constructFrom.js +54 -0
  24. package/dist/cjs/node_modules/date-fns/differenceInCalendarDays.js +67 -0
  25. package/dist/cjs/node_modules/date-fns/differenceInCalendarMonths.js +47 -0
  26. package/dist/cjs/node_modules/date-fns/differenceInCalendarYears.js +43 -0
  27. package/dist/cjs/node_modules/date-fns/differenceInDays.js +112 -0
  28. package/dist/cjs/node_modules/date-fns/differenceInHours.js +46 -0
  29. package/dist/cjs/node_modules/date-fns/differenceInMilliseconds.js +34 -0
  30. package/dist/cjs/node_modules/date-fns/differenceInMinutes.js +50 -0
  31. package/dist/cjs/node_modules/date-fns/differenceInMonths.js +65 -0
  32. package/dist/cjs/node_modules/date-fns/differenceInSeconds.js +41 -0
  33. package/dist/cjs/node_modules/date-fns/differenceInYears.js +67 -0
  34. package/dist/cjs/node_modules/date-fns/endOfDay.js +40 -0
  35. package/dist/cjs/node_modules/date-fns/endOfDecade.js +45 -0
  36. package/dist/cjs/node_modules/date-fns/endOfHour.js +40 -0
  37. package/dist/cjs/node_modules/date-fns/endOfMinute.js +40 -0
  38. package/dist/cjs/node_modules/date-fns/endOfMonth.js +42 -0
  39. package/dist/cjs/node_modules/date-fns/endOfQuarter.js +43 -0
  40. package/dist/cjs/node_modules/date-fns/endOfWeek.js +58 -0
  41. package/dist/cjs/node_modules/date-fns/endOfYear.js +42 -0
  42. package/dist/cjs/node_modules/date-fns/format.js +431 -0
  43. package/dist/cjs/node_modules/date-fns/getDayOfYear.js +39 -0
  44. package/dist/cjs/node_modules/date-fns/getISOWeek.js +45 -0
  45. package/dist/cjs/node_modules/date-fns/getISOWeekYear.js +57 -0
  46. package/dist/cjs/node_modules/date-fns/getWeek.js +59 -0
  47. package/dist/cjs/node_modules/date-fns/getWeekYear.js +80 -0
  48. package/dist/cjs/node_modules/date-fns/intervalToDuration.js +70 -0
  49. package/dist/cjs/node_modules/date-fns/isAfter.js +30 -0
  50. package/dist/cjs/node_modules/date-fns/isBefore.js +30 -0
  51. package/dist/cjs/node_modules/date-fns/isDate.js +46 -0
  52. package/dist/cjs/node_modules/date-fns/isLastDayOfMonth.js +33 -0
  53. package/dist/cjs/node_modules/date-fns/isSameMonth.js +48 -0
  54. package/dist/cjs/node_modules/date-fns/isSameWeek.js +56 -0
  55. package/dist/cjs/node_modules/date-fns/isSameYear.js +40 -0
  56. package/dist/cjs/node_modules/date-fns/isValid.js +44 -0
  57. package/dist/cjs/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +12 -0
  58. package/dist/cjs/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +66 -0
  59. package/dist/cjs/node_modules/date-fns/locale/_lib/buildMatchFn.js +61 -0
  60. package/dist/cjs/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +24 -0
  61. package/dist/cjs/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.js +139 -0
  62. package/dist/cjs/node_modules/date-fns/locale/ar-SA/_lib/formatLong.js +43 -0
  63. package/dist/cjs/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.js +15 -0
  64. package/dist/cjs/node_modules/date-fns/locale/ar-SA/_lib/localize.js +166 -0
  65. package/dist/cjs/node_modules/date-fns/locale/ar-SA/_lib/match.js +146 -0
  66. package/dist/cjs/node_modules/date-fns/locale/ar-SA.js +32 -0
  67. package/dist/cjs/node_modules/date-fns/locale/de/_lib/formatDistance.js +200 -0
  68. package/dist/cjs/node_modules/date-fns/locale/de/_lib/formatLong.js +44 -0
  69. package/dist/cjs/node_modules/date-fns/locale/de/_lib/formatRelative.js +15 -0
  70. package/dist/cjs/node_modules/date-fns/locale/de/_lib/localize.js +195 -0
  71. package/dist/cjs/node_modules/date-fns/locale/de/_lib/match.js +138 -0
  72. package/dist/cjs/node_modules/date-fns/locale/de.js +36 -0
  73. package/dist/cjs/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +105 -0
  74. package/dist/cjs/node_modules/date-fns/locale/en-US/_lib/formatLong.js +43 -0
  75. package/dist/cjs/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +15 -0
  76. package/dist/cjs/node_modules/date-fns/locale/en-US/_lib/localize.js +191 -0
  77. package/dist/cjs/node_modules/date-fns/locale/en-US/_lib/match.js +136 -0
  78. package/dist/cjs/node_modules/date-fns/locale/en-US.js +33 -0
  79. package/dist/cjs/node_modules/date-fns/locale/es/_lib/formatDistance.js +105 -0
  80. package/dist/cjs/node_modules/date-fns/locale/es/_lib/formatLong.js +43 -0
  81. package/dist/cjs/node_modules/date-fns/locale/es/_lib/formatRelative.js +29 -0
  82. package/dist/cjs/node_modules/date-fns/locale/es/_lib/localize.js +168 -0
  83. package/dist/cjs/node_modules/date-fns/locale/es/_lib/match.js +142 -0
  84. package/dist/cjs/node_modules/date-fns/locale/es.js +36 -0
  85. package/dist/cjs/node_modules/date-fns/locale/fr/_lib/formatDistance.js +104 -0
  86. package/dist/cjs/node_modules/date-fns/locale/fr/_lib/formatLong.js +43 -0
  87. package/dist/cjs/node_modules/date-fns/locale/fr/_lib/formatRelative.js +15 -0
  88. package/dist/cjs/node_modules/date-fns/locale/fr/_lib/localize.js +169 -0
  89. package/dist/cjs/node_modules/date-fns/locale/fr/_lib/match.js +137 -0
  90. package/dist/cjs/node_modules/date-fns/locale/fr.js +33 -0
  91. package/dist/cjs/node_modules/date-fns/locale/hi/_lib/formatDistance.js +109 -0
  92. package/dist/cjs/node_modules/date-fns/locale/hi/_lib/formatLong.js +43 -0
  93. package/dist/cjs/node_modules/date-fns/locale/hi/_lib/formatRelative.js +15 -0
  94. package/dist/cjs/node_modules/date-fns/locale/hi/_lib/localize.js +233 -0
  95. package/dist/cjs/node_modules/date-fns/locale/hi/_lib/match.js +141 -0
  96. package/dist/cjs/node_modules/date-fns/locale/hi.js +32 -0
  97. package/dist/cjs/node_modules/date-fns/locale/it/_lib/formatDistance.js +105 -0
  98. package/dist/cjs/node_modules/date-fns/locale/it/_lib/formatLong.js +43 -0
  99. package/dist/cjs/node_modules/date-fns/locale/it/_lib/formatRelative.js +70 -0
  100. package/dist/cjs/node_modules/date-fns/locale/it/_lib/localize.js +168 -0
  101. package/dist/cjs/node_modules/date-fns/locale/it/_lib/match.js +137 -0
  102. package/dist/cjs/node_modules/date-fns/locale/it.js +34 -0
  103. package/dist/cjs/node_modules/date-fns/locale/ja/_lib/formatDistance.js +119 -0
  104. package/dist/cjs/node_modules/date-fns/locale/ja/_lib/formatLong.js +43 -0
  105. package/dist/cjs/node_modules/date-fns/locale/ja/_lib/formatRelative.js +16 -0
  106. package/dist/cjs/node_modules/date-fns/locale/ja/_lib/localize.js +181 -0
  107. package/dist/cjs/node_modules/date-fns/locale/ja/_lib/match.js +122 -0
  108. package/dist/cjs/node_modules/date-fns/locale/ja.js +36 -0
  109. package/dist/cjs/node_modules/date-fns/locale/ko/_lib/formatDistance.js +105 -0
  110. package/dist/cjs/node_modules/date-fns/locale/ko/_lib/formatLong.js +43 -0
  111. package/dist/cjs/node_modules/date-fns/locale/ko/_lib/formatRelative.js +15 -0
  112. package/dist/cjs/node_modules/date-fns/locale/ko/_lib/localize.js +171 -0
  113. package/dist/cjs/node_modules/date-fns/locale/ko/_lib/match.js +119 -0
  114. package/dist/cjs/node_modules/date-fns/locale/ko.js +34 -0
  115. package/dist/cjs/node_modules/date-fns/locale/pt/_lib/formatDistance.js +105 -0
  116. package/dist/cjs/node_modules/date-fns/locale/pt/_lib/formatLong.js +43 -0
  117. package/dist/cjs/node_modules/date-fns/locale/pt/_lib/formatRelative.js +26 -0
  118. package/dist/cjs/node_modules/date-fns/locale/pt/_lib/localize.js +168 -0
  119. package/dist/cjs/node_modules/date-fns/locale/pt/_lib/match.js +141 -0
  120. package/dist/cjs/node_modules/date-fns/locale/pt.js +33 -0
  121. package/dist/cjs/node_modules/date-fns/locale/ru/_lib/formatDistance.js +250 -0
  122. package/dist/cjs/node_modules/date-fns/locale/ru/_lib/formatLong.js +40 -0
  123. package/dist/cjs/node_modules/date-fns/locale/ru/_lib/formatRelative.js +92 -0
  124. package/dist/cjs/node_modules/date-fns/locale/ru/_lib/localize.js +214 -0
  125. package/dist/cjs/node_modules/date-fns/locale/ru/_lib/match.js +142 -0
  126. package/dist/cjs/node_modules/date-fns/locale/ru.js +33 -0
  127. package/dist/cjs/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js +105 -0
  128. package/dist/cjs/node_modules/date-fns/locale/zh-CN/_lib/formatLong.js +43 -0
  129. package/dist/cjs/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.js +35 -0
  130. package/dist/cjs/node_modules/date-fns/locale/zh-CN/_lib/localize.js +187 -0
  131. package/dist/cjs/node_modules/date-fns/locale/zh-CN/_lib/match.js +134 -0
  132. package/dist/cjs/node_modules/date-fns/locale/zh-CN.js +36 -0
  133. package/dist/cjs/node_modules/date-fns/startOfDay.js +40 -0
  134. package/dist/cjs/node_modules/date-fns/startOfDecade.js +45 -0
  135. package/dist/cjs/node_modules/date-fns/startOfHour.js +40 -0
  136. package/dist/cjs/node_modules/date-fns/startOfISOWeek.js +40 -0
  137. package/dist/cjs/node_modules/date-fns/startOfISOWeekYear.js +47 -0
  138. package/dist/cjs/node_modules/date-fns/startOfMinute.js +40 -0
  139. package/dist/cjs/node_modules/date-fns/startOfMonth.js +42 -0
  140. package/dist/cjs/node_modules/date-fns/startOfQuarter.js +43 -0
  141. package/dist/cjs/node_modules/date-fns/startOfWeek.js +58 -0
  142. package/dist/cjs/node_modules/date-fns/startOfWeekYear.js +69 -0
  143. package/dist/cjs/node_modules/date-fns/startOfYear.js +41 -0
  144. package/dist/cjs/node_modules/date-fns/toDate.js +51 -0
  145. package/dist/cjs/packages/date/dist/esm/display/DateDuration.js +178 -0
  146. package/dist/cjs/packages/date/dist/esm/hijri/DateConverter.js +154 -0
  147. package/dist/cjs/packages/date/dist/esm/hijri/FormatDate.js +116 -0
  148. package/dist/cjs/packages/date/dist/esm/hijri/HijriDate.js +531 -0
  149. package/dist/cjs/packages/date/dist/esm/hijri/StringDateParser.js +74 -0
  150. package/dist/cjs/packages/date/dist/esm/hijri/index.js +21 -0
  151. package/dist/cjs/packages/date/dist/esm/hijri/initializer.js +113 -0
  152. package/dist/cjs/packages/date/dist/esm/hijri/locales.js +19 -0
  153. package/dist/cjs/packages/date/dist/esm/hijri/safe.js +17 -0
  154. package/dist/cjs/packages/date/dist/esm/i18n/ar/date.json.js +213 -0
  155. package/dist/cjs/packages/date/dist/esm/i18n/en/date.json.js +83 -0
  156. package/{src/plugins/StickyPlugin.ts → dist/cjs/packages/date/dist/esm/i18n/index.js} +10 -15
  157. package/dist/cjs/packages/date/dist/esm/types/index.js +46 -0
  158. package/dist/cjs/packages/date/dist/esm/utils/dateUtil.js +472 -0
  159. package/dist/cjs/{editor → packages/lexical/src/editor}/LexicalEditor.js +32 -9
  160. package/dist/cjs/{i18n/ar.json.js → packages/lexical/src/i18n/ar/lexical.json.js} +10 -4
  161. package/dist/cjs/{i18n/en.json.js → packages/lexical/src/i18n/en/lexical.json.js} +7 -1
  162. package/dist/cjs/{i18n → packages/lexical/src/i18n}/index.js +4 -4
  163. package/dist/cjs/packages/lexical/src/plugins/CommentPlugin.js +477 -0
  164. package/dist/cjs/{plugins → packages/lexical/src/plugins}/DraggableBlockPlugin.js +8 -11
  165. package/dist/esm/node_modules/date-fns/_lib/addLeadingZeros.js +9 -0
  166. package/dist/esm/node_modules/date-fns/_lib/defaultOptions.js +9 -0
  167. package/dist/esm/node_modules/date-fns/_lib/format/formatters.js +779 -0
  168. package/dist/esm/node_modules/date-fns/_lib/format/lightFormatters.js +96 -0
  169. package/dist/esm/node_modules/date-fns/_lib/format/longFormatters.js +68 -0
  170. package/dist/esm/node_modules/date-fns/_lib/getRoundingMethod.js +12 -0
  171. package/dist/esm/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +33 -0
  172. package/dist/esm/node_modules/date-fns/_lib/normalizeDates.js +13 -0
  173. package/dist/esm/node_modules/date-fns/_lib/normalizeInterval.js +10 -0
  174. package/dist/esm/node_modules/date-fns/_lib/protectedTokens.js +27 -0
  175. package/dist/esm/node_modules/date-fns/add.js +70 -0
  176. package/dist/esm/node_modules/date-fns/addDays.js +43 -0
  177. package/dist/esm/node_modules/date-fns/addHours.js +36 -0
  178. package/dist/esm/node_modules/date-fns/addMilliseconds.js +36 -0
  179. package/dist/esm/node_modules/date-fns/addMinutes.js +38 -0
  180. package/dist/esm/node_modules/date-fns/addMonths.js +77 -0
  181. package/dist/esm/node_modules/date-fns/addQuarters.js +35 -0
  182. package/dist/esm/node_modules/date-fns/addWeeks.js +35 -0
  183. package/dist/esm/node_modules/date-fns/addYears.js +35 -0
  184. package/dist/esm/node_modules/date-fns/compareAsc.js +47 -0
  185. package/dist/esm/node_modules/date-fns/constants.js +62 -0
  186. package/dist/esm/node_modules/date-fns/constructFrom.js +51 -0
  187. package/dist/esm/node_modules/date-fns/differenceInCalendarDays.js +64 -0
  188. package/dist/esm/node_modules/date-fns/differenceInCalendarMonths.js +44 -0
  189. package/dist/esm/node_modules/date-fns/differenceInCalendarYears.js +40 -0
  190. package/dist/esm/node_modules/date-fns/differenceInDays.js +109 -0
  191. package/dist/esm/node_modules/date-fns/differenceInHours.js +43 -0
  192. package/dist/esm/node_modules/date-fns/differenceInMilliseconds.js +31 -0
  193. package/dist/esm/node_modules/date-fns/differenceInMinutes.js +47 -0
  194. package/dist/esm/node_modules/date-fns/differenceInMonths.js +62 -0
  195. package/dist/esm/node_modules/date-fns/differenceInSeconds.js +38 -0
  196. package/dist/esm/node_modules/date-fns/differenceInYears.js +64 -0
  197. package/dist/esm/node_modules/date-fns/endOfDay.js +37 -0
  198. package/dist/esm/node_modules/date-fns/endOfDecade.js +42 -0
  199. package/dist/esm/node_modules/date-fns/endOfHour.js +37 -0
  200. package/dist/esm/node_modules/date-fns/endOfMinute.js +37 -0
  201. package/dist/esm/node_modules/date-fns/endOfMonth.js +39 -0
  202. package/dist/esm/node_modules/date-fns/endOfQuarter.js +40 -0
  203. package/dist/esm/node_modules/date-fns/endOfWeek.js +55 -0
  204. package/dist/esm/node_modules/date-fns/endOfYear.js +39 -0
  205. package/dist/esm/node_modules/date-fns/format.js +425 -0
  206. package/dist/esm/node_modules/date-fns/getDayOfYear.js +36 -0
  207. package/dist/esm/node_modules/date-fns/getISOWeek.js +42 -0
  208. package/dist/esm/node_modules/date-fns/getISOWeekYear.js +54 -0
  209. package/dist/esm/node_modules/date-fns/getWeek.js +56 -0
  210. package/dist/esm/node_modules/date-fns/getWeekYear.js +77 -0
  211. package/dist/esm/node_modules/date-fns/intervalToDuration.js +67 -0
  212. package/dist/esm/node_modules/date-fns/isAfter.js +27 -0
  213. package/dist/esm/node_modules/date-fns/isBefore.js +27 -0
  214. package/dist/esm/node_modules/date-fns/isDate.js +43 -0
  215. package/dist/esm/node_modules/date-fns/isLastDayOfMonth.js +30 -0
  216. package/dist/esm/node_modules/date-fns/isSameMonth.js +45 -0
  217. package/dist/esm/node_modules/date-fns/isSameWeek.js +53 -0
  218. package/dist/esm/node_modules/date-fns/isSameYear.js +37 -0
  219. package/dist/esm/node_modules/date-fns/isValid.js +41 -0
  220. package/dist/esm/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +12 -0
  221. package/dist/esm/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +66 -0
  222. package/dist/esm/node_modules/date-fns/locale/_lib/buildMatchFn.js +61 -0
  223. package/dist/esm/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +24 -0
  224. package/dist/esm/node_modules/date-fns/locale/ar-SA/_lib/formatDistance.js +139 -0
  225. package/dist/esm/node_modules/date-fns/locale/ar-SA/_lib/formatLong.js +43 -0
  226. package/dist/esm/node_modules/date-fns/locale/ar-SA/_lib/formatRelative.js +15 -0
  227. package/dist/esm/node_modules/date-fns/locale/ar-SA/_lib/localize.js +166 -0
  228. package/dist/esm/node_modules/date-fns/locale/ar-SA/_lib/match.js +146 -0
  229. package/dist/esm/node_modules/date-fns/locale/ar-SA.js +29 -0
  230. package/dist/esm/node_modules/date-fns/locale/de/_lib/formatDistance.js +200 -0
  231. package/dist/esm/node_modules/date-fns/locale/de/_lib/formatLong.js +44 -0
  232. package/dist/esm/node_modules/date-fns/locale/de/_lib/formatRelative.js +15 -0
  233. package/dist/esm/node_modules/date-fns/locale/de/_lib/localize.js +195 -0
  234. package/dist/esm/node_modules/date-fns/locale/de/_lib/match.js +138 -0
  235. package/dist/esm/node_modules/date-fns/locale/de.js +33 -0
  236. package/dist/esm/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +105 -0
  237. package/dist/esm/node_modules/date-fns/locale/en-US/_lib/formatLong.js +43 -0
  238. package/dist/esm/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +15 -0
  239. package/dist/esm/node_modules/date-fns/locale/en-US/_lib/localize.js +191 -0
  240. package/dist/esm/node_modules/date-fns/locale/en-US/_lib/match.js +136 -0
  241. package/dist/esm/node_modules/date-fns/locale/en-US.js +30 -0
  242. package/dist/esm/node_modules/date-fns/locale/es/_lib/formatDistance.js +105 -0
  243. package/dist/esm/node_modules/date-fns/locale/es/_lib/formatLong.js +43 -0
  244. package/dist/esm/node_modules/date-fns/locale/es/_lib/formatRelative.js +29 -0
  245. package/dist/esm/node_modules/date-fns/locale/es/_lib/localize.js +168 -0
  246. package/dist/esm/node_modules/date-fns/locale/es/_lib/match.js +142 -0
  247. package/dist/esm/node_modules/date-fns/locale/es.js +33 -0
  248. package/dist/esm/node_modules/date-fns/locale/fr/_lib/formatDistance.js +104 -0
  249. package/dist/esm/node_modules/date-fns/locale/fr/_lib/formatLong.js +43 -0
  250. package/dist/esm/node_modules/date-fns/locale/fr/_lib/formatRelative.js +15 -0
  251. package/dist/esm/node_modules/date-fns/locale/fr/_lib/localize.js +169 -0
  252. package/dist/esm/node_modules/date-fns/locale/fr/_lib/match.js +137 -0
  253. package/dist/esm/node_modules/date-fns/locale/fr.js +30 -0
  254. package/dist/esm/node_modules/date-fns/locale/hi/_lib/formatDistance.js +109 -0
  255. package/dist/esm/node_modules/date-fns/locale/hi/_lib/formatLong.js +43 -0
  256. package/dist/esm/node_modules/date-fns/locale/hi/_lib/formatRelative.js +15 -0
  257. package/dist/esm/node_modules/date-fns/locale/hi/_lib/localize.js +231 -0
  258. package/dist/esm/node_modules/date-fns/locale/hi/_lib/match.js +141 -0
  259. package/dist/esm/node_modules/date-fns/locale/hi.js +29 -0
  260. package/dist/esm/node_modules/date-fns/locale/it/_lib/formatDistance.js +105 -0
  261. package/dist/esm/node_modules/date-fns/locale/it/_lib/formatLong.js +43 -0
  262. package/dist/esm/node_modules/date-fns/locale/it/_lib/formatRelative.js +70 -0
  263. package/dist/esm/node_modules/date-fns/locale/it/_lib/localize.js +168 -0
  264. package/dist/esm/node_modules/date-fns/locale/it/_lib/match.js +137 -0
  265. package/dist/esm/node_modules/date-fns/locale/it.js +31 -0
  266. package/dist/esm/node_modules/date-fns/locale/ja/_lib/formatDistance.js +119 -0
  267. package/dist/esm/node_modules/date-fns/locale/ja/_lib/formatLong.js +43 -0
  268. package/dist/esm/node_modules/date-fns/locale/ja/_lib/formatRelative.js +16 -0
  269. package/dist/esm/node_modules/date-fns/locale/ja/_lib/localize.js +181 -0
  270. package/dist/esm/node_modules/date-fns/locale/ja/_lib/match.js +122 -0
  271. package/dist/esm/node_modules/date-fns/locale/ja.js +33 -0
  272. package/dist/esm/node_modules/date-fns/locale/ko/_lib/formatDistance.js +105 -0
  273. package/dist/esm/node_modules/date-fns/locale/ko/_lib/formatLong.js +43 -0
  274. package/dist/esm/node_modules/date-fns/locale/ko/_lib/formatRelative.js +15 -0
  275. package/dist/esm/node_modules/date-fns/locale/ko/_lib/localize.js +171 -0
  276. package/dist/esm/node_modules/date-fns/locale/ko/_lib/match.js +119 -0
  277. package/dist/esm/node_modules/date-fns/locale/ko.js +31 -0
  278. package/dist/esm/node_modules/date-fns/locale/pt/_lib/formatDistance.js +105 -0
  279. package/dist/esm/node_modules/date-fns/locale/pt/_lib/formatLong.js +43 -0
  280. package/dist/esm/node_modules/date-fns/locale/pt/_lib/formatRelative.js +26 -0
  281. package/dist/esm/node_modules/date-fns/locale/pt/_lib/localize.js +168 -0
  282. package/dist/esm/node_modules/date-fns/locale/pt/_lib/match.js +141 -0
  283. package/dist/esm/node_modules/date-fns/locale/pt.js +30 -0
  284. package/dist/esm/node_modules/date-fns/locale/ru/_lib/formatDistance.js +250 -0
  285. package/dist/esm/node_modules/date-fns/locale/ru/_lib/formatLong.js +40 -0
  286. package/dist/esm/node_modules/date-fns/locale/ru/_lib/formatRelative.js +92 -0
  287. package/dist/esm/node_modules/date-fns/locale/ru/_lib/localize.js +214 -0
  288. package/dist/esm/node_modules/date-fns/locale/ru/_lib/match.js +142 -0
  289. package/dist/esm/node_modules/date-fns/locale/ru.js +30 -0
  290. package/dist/esm/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js +105 -0
  291. package/dist/esm/node_modules/date-fns/locale/zh-CN/_lib/formatLong.js +43 -0
  292. package/dist/esm/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.js +35 -0
  293. package/dist/esm/node_modules/date-fns/locale/zh-CN/_lib/localize.js +187 -0
  294. package/dist/esm/node_modules/date-fns/locale/zh-CN/_lib/match.js +134 -0
  295. package/dist/esm/node_modules/date-fns/locale/zh-CN.js +33 -0
  296. package/dist/esm/node_modules/date-fns/startOfDay.js +37 -0
  297. package/dist/esm/node_modules/date-fns/startOfDecade.js +42 -0
  298. package/dist/esm/node_modules/date-fns/startOfHour.js +37 -0
  299. package/dist/esm/node_modules/date-fns/startOfISOWeek.js +37 -0
  300. package/dist/esm/node_modules/date-fns/startOfISOWeekYear.js +44 -0
  301. package/dist/esm/node_modules/date-fns/startOfMinute.js +37 -0
  302. package/dist/esm/node_modules/date-fns/startOfMonth.js +39 -0
  303. package/dist/esm/node_modules/date-fns/startOfQuarter.js +40 -0
  304. package/dist/esm/node_modules/date-fns/startOfWeek.js +55 -0
  305. package/dist/esm/node_modules/date-fns/startOfWeekYear.js +66 -0
  306. package/dist/esm/node_modules/date-fns/startOfYear.js +38 -0
  307. package/dist/esm/node_modules/date-fns/toDate.js +48 -0
  308. package/dist/esm/packages/date/dist/esm/display/DateDuration.js +178 -0
  309. package/dist/esm/packages/date/dist/esm/hijri/DateConverter.js +152 -0
  310. package/dist/esm/packages/date/dist/esm/hijri/FormatDate.js +113 -0
  311. package/dist/esm/packages/date/dist/esm/hijri/HijriDate.js +528 -0
  312. package/dist/esm/packages/date/dist/esm/hijri/StringDateParser.js +74 -0
  313. package/dist/esm/packages/date/dist/esm/hijri/index.js +21 -0
  314. package/dist/esm/packages/date/dist/esm/hijri/initializer.js +113 -0
  315. package/dist/esm/packages/date/dist/esm/hijri/locales.js +18 -0
  316. package/dist/esm/packages/date/dist/esm/hijri/safe.js +14 -0
  317. package/dist/esm/packages/date/dist/esm/i18n/ar/date.json.js +209 -0
  318. package/dist/esm/packages/date/dist/esm/i18n/en/date.json.js +79 -0
  319. package/dist/esm/packages/date/dist/esm/i18n/index.js +33 -0
  320. package/dist/esm/packages/date/dist/esm/types/index.js +45 -0
  321. package/dist/esm/packages/date/dist/esm/utils/dateUtil.js +474 -0
  322. package/dist/esm/{editor → packages/lexical/src/editor}/LexicalEditor.js +33 -10
  323. package/dist/esm/{i18n/ar.json.js → packages/lexical/src/i18n/ar/lexical.json.js} +9 -5
  324. package/dist/esm/{i18n/en.json.js → packages/lexical/src/i18n/en/lexical.json.js} +6 -2
  325. package/dist/esm/{i18n → packages/lexical/src/i18n}/index.js +2 -2
  326. package/dist/esm/packages/lexical/src/plugins/CommentPlugin.js +477 -0
  327. package/dist/esm/{plugins → packages/lexical/src/plugins}/DraggableBlockPlugin.js +9 -12
  328. package/dist/types/editor/LexicalEditor.d.ts +12 -3
  329. package/dist/types/hooks/useFormatWatcher.d.ts +1 -1
  330. package/dist/types/plugins/CommentPlugin.d.ts +5 -0
  331. package/dist/types/plugins/DraggableBlockPlugin.d.ts +2 -1
  332. package/package.json +5 -5
  333. package/src/editor/LexicalEditor.tsx +65 -18
  334. package/src/i18n/{ar.json → ar/lexical.json} +6 -4
  335. package/src/i18n/{en.json → en/lexical.json} +3 -1
  336. package/src/i18n/index.ts +2 -2
  337. package/src/plugins/CommentPlugin.tsx +554 -0
  338. package/src/plugins/DraggableBlockPlugin.tsx +5 -10
  339. package/dist/cjs/components/StickyComponent.js +0 -220
  340. package/dist/cjs/nodes/StickyNode.js +0 -218
  341. package/dist/cjs/plugins/StickyPlugin.js +0 -20
  342. package/dist/esm/components/StickyComponent.js +0 -220
  343. package/dist/esm/nodes/StickyNode.js +0 -216
  344. package/dist/esm/plugins/StickyPlugin.js +0 -20
  345. package/dist/types/components/StickyComponent.d.ts +0 -9
  346. package/dist/types/nodes/StickyNode.d.ts +0 -34
  347. package/dist/types/plugins/StickyPlugin.d.ts +0 -1
  348. package/src/components/StickyComponent.tsx +0 -270
  349. package/src/nodes/StickyNode.tsx +0 -249
  350. /package/dist/cjs/{editor → packages/lexical/src/editor}/theme.js +0 -0
  351. /package/dist/cjs/{hooks → packages/lexical/src/hooks}/useFormatWatcher.js +0 -0
  352. /package/dist/cjs/{index.js → packages/lexical/src/index.js} +0 -0
  353. /package/dist/cjs/{plugins → packages/lexical/src/plugins}/ToolbarPlugin.js +0 -0
  354. /package/dist/cjs/{utils → packages/lexical/src/utils}/index.js +0 -0
  355. /package/dist/esm/{editor → packages/lexical/src/editor}/theme.js +0 -0
  356. /package/dist/esm/{hooks → packages/lexical/src/hooks}/useFormatWatcher.js +0 -0
  357. /package/dist/esm/{index.js → packages/lexical/src/index.js} +0 -0
  358. /package/dist/esm/{plugins → packages/lexical/src/plugins}/ToolbarPlugin.js +0 -0
  359. /package/dist/esm/{utils → packages/lexical/src/utils}/index.js +0 -0
@@ -0,0 +1,200 @@
1
+ 'use client';
2
+
3
+ const formatDistanceLocale = {
4
+ lessThanXSeconds: {
5
+ standalone: {
6
+ one: "weniger als 1 Sekunde",
7
+ other: "weniger als {{count}} Sekunden",
8
+ },
9
+ withPreposition: {
10
+ one: "weniger als 1 Sekunde",
11
+ other: "weniger als {{count}} Sekunden",
12
+ },
13
+ },
14
+
15
+ xSeconds: {
16
+ standalone: {
17
+ one: "1 Sekunde",
18
+ other: "{{count}} Sekunden",
19
+ },
20
+ withPreposition: {
21
+ one: "1 Sekunde",
22
+ other: "{{count}} Sekunden",
23
+ },
24
+ },
25
+
26
+ halfAMinute: {
27
+ standalone: "eine halbe Minute",
28
+ withPreposition: "einer halben Minute",
29
+ },
30
+
31
+ lessThanXMinutes: {
32
+ standalone: {
33
+ one: "weniger als 1 Minute",
34
+ other: "weniger als {{count}} Minuten",
35
+ },
36
+ withPreposition: {
37
+ one: "weniger als 1 Minute",
38
+ other: "weniger als {{count}} Minuten",
39
+ },
40
+ },
41
+
42
+ xMinutes: {
43
+ standalone: {
44
+ one: "1 Minute",
45
+ other: "{{count}} Minuten",
46
+ },
47
+ withPreposition: {
48
+ one: "1 Minute",
49
+ other: "{{count}} Minuten",
50
+ },
51
+ },
52
+
53
+ aboutXHours: {
54
+ standalone: {
55
+ one: "etwa 1 Stunde",
56
+ other: "etwa {{count}} Stunden",
57
+ },
58
+ withPreposition: {
59
+ one: "etwa 1 Stunde",
60
+ other: "etwa {{count}} Stunden",
61
+ },
62
+ },
63
+
64
+ xHours: {
65
+ standalone: {
66
+ one: "1 Stunde",
67
+ other: "{{count}} Stunden",
68
+ },
69
+ withPreposition: {
70
+ one: "1 Stunde",
71
+ other: "{{count}} Stunden",
72
+ },
73
+ },
74
+
75
+ xDays: {
76
+ standalone: {
77
+ one: "1 Tag",
78
+ other: "{{count}} Tage",
79
+ },
80
+ withPreposition: {
81
+ one: "1 Tag",
82
+ other: "{{count}} Tagen",
83
+ },
84
+ },
85
+
86
+ aboutXWeeks: {
87
+ standalone: {
88
+ one: "etwa 1 Woche",
89
+ other: "etwa {{count}} Wochen",
90
+ },
91
+ withPreposition: {
92
+ one: "etwa 1 Woche",
93
+ other: "etwa {{count}} Wochen",
94
+ },
95
+ },
96
+
97
+ xWeeks: {
98
+ standalone: {
99
+ one: "1 Woche",
100
+ other: "{{count}} Wochen",
101
+ },
102
+ withPreposition: {
103
+ one: "1 Woche",
104
+ other: "{{count}} Wochen",
105
+ },
106
+ },
107
+
108
+ aboutXMonths: {
109
+ standalone: {
110
+ one: "etwa 1 Monat",
111
+ other: "etwa {{count}} Monate",
112
+ },
113
+ withPreposition: {
114
+ one: "etwa 1 Monat",
115
+ other: "etwa {{count}} Monaten",
116
+ },
117
+ },
118
+
119
+ xMonths: {
120
+ standalone: {
121
+ one: "1 Monat",
122
+ other: "{{count}} Monate",
123
+ },
124
+ withPreposition: {
125
+ one: "1 Monat",
126
+ other: "{{count}} Monaten",
127
+ },
128
+ },
129
+
130
+ aboutXYears: {
131
+ standalone: {
132
+ one: "etwa 1 Jahr",
133
+ other: "etwa {{count}} Jahre",
134
+ },
135
+ withPreposition: {
136
+ one: "etwa 1 Jahr",
137
+ other: "etwa {{count}} Jahren",
138
+ },
139
+ },
140
+
141
+ xYears: {
142
+ standalone: {
143
+ one: "1 Jahr",
144
+ other: "{{count}} Jahre",
145
+ },
146
+ withPreposition: {
147
+ one: "1 Jahr",
148
+ other: "{{count}} Jahren",
149
+ },
150
+ },
151
+
152
+ overXYears: {
153
+ standalone: {
154
+ one: "mehr als 1 Jahr",
155
+ other: "mehr als {{count}} Jahre",
156
+ },
157
+ withPreposition: {
158
+ one: "mehr als 1 Jahr",
159
+ other: "mehr als {{count}} Jahren",
160
+ },
161
+ },
162
+
163
+ almostXYears: {
164
+ standalone: {
165
+ one: "fast 1 Jahr",
166
+ other: "fast {{count}} Jahre",
167
+ },
168
+ withPreposition: {
169
+ one: "fast 1 Jahr",
170
+ other: "fast {{count}} Jahren",
171
+ },
172
+ },
173
+ };
174
+
175
+ const formatDistance = (token, count, options) => {
176
+ let result;
177
+
178
+ const tokenValue = options?.addSuffix
179
+ ? formatDistanceLocale[token].withPreposition
180
+ : formatDistanceLocale[token].standalone;
181
+ if (typeof tokenValue === "string") {
182
+ result = tokenValue;
183
+ } else if (count === 1) {
184
+ result = tokenValue.one;
185
+ } else {
186
+ result = tokenValue.other.replace("{{count}}", String(count));
187
+ }
188
+
189
+ if (options?.addSuffix) {
190
+ if (options.comparison && options.comparison > 0) {
191
+ return "in " + result;
192
+ } else {
193
+ return "vor " + result;
194
+ }
195
+ }
196
+
197
+ return result;
198
+ };
199
+
200
+ export { formatDistance };
@@ -0,0 +1,44 @@
1
+ 'use client';
2
+
3
+ import { buildFormatLongFn } from '../../_lib/buildFormatLongFn.js';
4
+
5
+ // DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008
6
+ const dateFormats = {
7
+ full: "EEEE, do MMMM y", // Montag, 7. Januar 2018
8
+ long: "do MMMM y", // 7. Januar 2018
9
+ medium: "do MMM y", // 7. Jan. 2018
10
+ short: "dd.MM.y", // 07.01.2018
11
+ };
12
+
13
+ const timeFormats = {
14
+ full: "HH:mm:ss zzzz",
15
+ long: "HH:mm:ss z",
16
+ medium: "HH:mm:ss",
17
+ short: "HH:mm",
18
+ };
19
+
20
+ const dateTimeFormats = {
21
+ full: "{{date}} 'um' {{time}}",
22
+ long: "{{date}} 'um' {{time}}",
23
+ medium: "{{date}} {{time}}",
24
+ short: "{{date}} {{time}}",
25
+ };
26
+
27
+ const formatLong = {
28
+ date: buildFormatLongFn({
29
+ formats: dateFormats,
30
+ defaultWidth: "full",
31
+ }),
32
+
33
+ time: buildFormatLongFn({
34
+ formats: timeFormats,
35
+ defaultWidth: "full",
36
+ }),
37
+
38
+ dateTime: buildFormatLongFn({
39
+ formats: dateTimeFormats,
40
+ defaultWidth: "full",
41
+ }),
42
+ };
43
+
44
+ export { formatLong };
@@ -0,0 +1,15 @@
1
+ 'use client';
2
+
3
+ const formatRelativeLocale = {
4
+ lastWeek: "'letzten' eeee 'um' p",
5
+ yesterday: "'gestern um' p",
6
+ today: "'heute um' p",
7
+ tomorrow: "'morgen um' p",
8
+ nextWeek: "eeee 'um' p",
9
+ other: "P",
10
+ };
11
+
12
+ const formatRelative = (token, _date, _baseDate, _options) =>
13
+ formatRelativeLocale[token];
14
+
15
+ export { formatRelative };
@@ -0,0 +1,195 @@
1
+ 'use client';
2
+
3
+ import { buildLocalizeFn } from '../../_lib/buildLocalizeFn.js';
4
+
5
+ const eraValues = {
6
+ narrow: ["v.Chr.", "n.Chr."],
7
+ abbreviated: ["v.Chr.", "n.Chr."],
8
+ wide: ["vor Christus", "nach Christus"],
9
+ };
10
+
11
+ const quarterValues = {
12
+ narrow: ["1", "2", "3", "4"],
13
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
14
+ wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"],
15
+ };
16
+
17
+ // Note: in German, the names of days of the week and months are capitalized.
18
+ // If you are making a new locale based on this one, check if the same is true for the language you're working on.
19
+ // Generally, formatted dates should look like they are in the middle of a sentence,
20
+ // e.g. in Spanish language the weekdays and months should be in the lowercase.
21
+ const monthValues = {
22
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
23
+ abbreviated: [
24
+ "Jan",
25
+ "Feb",
26
+ "Mär",
27
+ "Apr",
28
+ "Mai",
29
+ "Jun",
30
+ "Jul",
31
+ "Aug",
32
+ "Sep",
33
+ "Okt",
34
+ "Nov",
35
+ "Dez",
36
+ ],
37
+
38
+ wide: [
39
+ "Januar",
40
+ "Februar",
41
+ "März",
42
+ "April",
43
+ "Mai",
44
+ "Juni",
45
+ "Juli",
46
+ "August",
47
+ "September",
48
+ "Oktober",
49
+ "November",
50
+ "Dezember",
51
+ ],
52
+ };
53
+
54
+ // https://st.unicode.org/cldr-apps/v#/de/Gregorian/
55
+ const formattingMonthValues = {
56
+ narrow: monthValues.narrow,
57
+ abbreviated: [
58
+ "Jan.",
59
+ "Feb.",
60
+ "März",
61
+ "Apr.",
62
+ "Mai",
63
+ "Juni",
64
+ "Juli",
65
+ "Aug.",
66
+ "Sep.",
67
+ "Okt.",
68
+ "Nov.",
69
+ "Dez.",
70
+ ],
71
+
72
+ wide: monthValues.wide,
73
+ };
74
+
75
+ const dayValues = {
76
+ narrow: ["S", "M", "D", "M", "D", "F", "S"],
77
+ short: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
78
+ abbreviated: ["So.", "Mo.", "Di.", "Mi.", "Do.", "Fr.", "Sa."],
79
+ wide: [
80
+ "Sonntag",
81
+ "Montag",
82
+ "Dienstag",
83
+ "Mittwoch",
84
+ "Donnerstag",
85
+ "Freitag",
86
+ "Samstag",
87
+ ],
88
+ };
89
+
90
+ // https://www.unicode.org/cldr/charts/32/summary/de.html#1881
91
+ const dayPeriodValues = {
92
+ narrow: {
93
+ am: "vm.",
94
+ pm: "nm.",
95
+ midnight: "Mitternacht",
96
+ noon: "Mittag",
97
+ morning: "Morgen",
98
+ afternoon: "Nachm.",
99
+ evening: "Abend",
100
+ night: "Nacht",
101
+ },
102
+ abbreviated: {
103
+ am: "vorm.",
104
+ pm: "nachm.",
105
+ midnight: "Mitternacht",
106
+ noon: "Mittag",
107
+ morning: "Morgen",
108
+ afternoon: "Nachmittag",
109
+ evening: "Abend",
110
+ night: "Nacht",
111
+ },
112
+ wide: {
113
+ am: "vormittags",
114
+ pm: "nachmittags",
115
+ midnight: "Mitternacht",
116
+ noon: "Mittag",
117
+ morning: "Morgen",
118
+ afternoon: "Nachmittag",
119
+ evening: "Abend",
120
+ night: "Nacht",
121
+ },
122
+ };
123
+ const formattingDayPeriodValues = {
124
+ narrow: {
125
+ am: "vm.",
126
+ pm: "nm.",
127
+ midnight: "Mitternacht",
128
+ noon: "Mittag",
129
+ morning: "morgens",
130
+ afternoon: "nachm.",
131
+ evening: "abends",
132
+ night: "nachts",
133
+ },
134
+ abbreviated: {
135
+ am: "vorm.",
136
+ pm: "nachm.",
137
+ midnight: "Mitternacht",
138
+ noon: "Mittag",
139
+ morning: "morgens",
140
+ afternoon: "nachmittags",
141
+ evening: "abends",
142
+ night: "nachts",
143
+ },
144
+ wide: {
145
+ am: "vormittags",
146
+ pm: "nachmittags",
147
+ midnight: "Mitternacht",
148
+ noon: "Mittag",
149
+ morning: "morgens",
150
+ afternoon: "nachmittags",
151
+ evening: "abends",
152
+ night: "nachts",
153
+ },
154
+ };
155
+
156
+ const ordinalNumber = (dirtyNumber) => {
157
+ const number = Number(dirtyNumber);
158
+
159
+ return number + ".";
160
+ };
161
+
162
+ const localize = {
163
+ ordinalNumber,
164
+
165
+ era: buildLocalizeFn({
166
+ values: eraValues,
167
+ defaultWidth: "wide",
168
+ }),
169
+
170
+ quarter: buildLocalizeFn({
171
+ values: quarterValues,
172
+ defaultWidth: "wide",
173
+ argumentCallback: (quarter) => quarter - 1,
174
+ }),
175
+
176
+ month: buildLocalizeFn({
177
+ values: monthValues,
178
+ formattingValues: formattingMonthValues,
179
+ defaultWidth: "wide",
180
+ }),
181
+
182
+ day: buildLocalizeFn({
183
+ values: dayValues,
184
+ defaultWidth: "wide",
185
+ }),
186
+
187
+ dayPeriod: buildLocalizeFn({
188
+ values: dayPeriodValues,
189
+ defaultWidth: "wide",
190
+ formattingValues: formattingDayPeriodValues,
191
+ defaultFormattingWidth: "wide",
192
+ }),
193
+ };
194
+
195
+ export { localize };
@@ -0,0 +1,138 @@
1
+ 'use client';
2
+
3
+ import { buildMatchFn } from '../../_lib/buildMatchFn.js';
4
+ import { buildMatchPatternFn } from '../../_lib/buildMatchPatternFn.js';
5
+
6
+ const matchOrdinalNumberPattern = /^(\d+)(\.)?/i;
7
+ const parseOrdinalNumberPattern = /\d+/i;
8
+
9
+ const matchEraPatterns = {
10
+ narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,
11
+ abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,
12
+ wide: /^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i,
13
+ };
14
+ const parseEraPatterns = {
15
+ any: [/^v/i, /^n/i],
16
+ };
17
+
18
+ const matchQuarterPatterns = {
19
+ narrow: /^[1234]/i,
20
+ abbreviated: /^q[1234]/i,
21
+ wide: /^[1234](\.)? Quartal/i,
22
+ };
23
+ const parseQuarterPatterns = {
24
+ any: [/1/i, /2/i, /3/i, /4/i],
25
+ };
26
+
27
+ const matchMonthPatterns = {
28
+ narrow: /^[jfmasond]/i,
29
+ abbreviated:
30
+ /^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,
31
+ wide: /^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i,
32
+ };
33
+ const parseMonthPatterns = {
34
+ narrow: [
35
+ /^j/i,
36
+ /^f/i,
37
+ /^m/i,
38
+ /^a/i,
39
+ /^m/i,
40
+ /^j/i,
41
+ /^j/i,
42
+ /^a/i,
43
+ /^s/i,
44
+ /^o/i,
45
+ /^n/i,
46
+ /^d/i,
47
+ ],
48
+
49
+ any: [
50
+ /^j[aä]/i,
51
+ /^f/i,
52
+ /^mär/i,
53
+ /^ap/i,
54
+ /^mai/i,
55
+ /^jun/i,
56
+ /^jul/i,
57
+ /^au/i,
58
+ /^s/i,
59
+ /^o/i,
60
+ /^n/i,
61
+ /^d/i,
62
+ ],
63
+ };
64
+
65
+ const matchDayPatterns = {
66
+ narrow: /^[smdmf]/i,
67
+ short: /^(so|mo|di|mi|do|fr|sa)/i,
68
+ abbreviated: /^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,
69
+ wide: /^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i,
70
+ };
71
+ const parseDayPatterns = {
72
+ any: [/^so/i, /^mo/i, /^di/i, /^mi/i, /^do/i, /^f/i, /^sa/i],
73
+ };
74
+
75
+ const matchDayPeriodPatterns = {
76
+ narrow: /^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,
77
+ abbreviated:
78
+ /^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,
79
+ wide: /^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i,
80
+ };
81
+ const parseDayPeriodPatterns = {
82
+ any: {
83
+ am: /^v/i,
84
+ pm: /^n/i,
85
+ midnight: /^Mitte/i,
86
+ noon: /^Mitta/i,
87
+ morning: /morgens/i,
88
+ afternoon: /nachmittags/i, // will never be matched. Afternoon is matched by `pm`
89
+ evening: /abends/i,
90
+ night: /nachts/i, // will never be matched. Night is matched by `pm`
91
+ },
92
+ };
93
+
94
+ const match = {
95
+ ordinalNumber: buildMatchPatternFn({
96
+ matchPattern: matchOrdinalNumberPattern,
97
+ parsePattern: parseOrdinalNumberPattern,
98
+ valueCallback: (value) => parseInt(value),
99
+ }),
100
+
101
+ era: buildMatchFn({
102
+ matchPatterns: matchEraPatterns,
103
+ defaultMatchWidth: "wide",
104
+ parsePatterns: parseEraPatterns,
105
+ defaultParseWidth: "any",
106
+ }),
107
+
108
+ quarter: buildMatchFn({
109
+ matchPatterns: matchQuarterPatterns,
110
+ defaultMatchWidth: "wide",
111
+ parsePatterns: parseQuarterPatterns,
112
+ defaultParseWidth: "any",
113
+ valueCallback: (index) => index + 1,
114
+ }),
115
+
116
+ month: buildMatchFn({
117
+ matchPatterns: matchMonthPatterns,
118
+ defaultMatchWidth: "wide",
119
+ parsePatterns: parseMonthPatterns,
120
+ defaultParseWidth: "any",
121
+ }),
122
+
123
+ day: buildMatchFn({
124
+ matchPatterns: matchDayPatterns,
125
+ defaultMatchWidth: "wide",
126
+ parsePatterns: parseDayPatterns,
127
+ defaultParseWidth: "any",
128
+ }),
129
+
130
+ dayPeriod: buildMatchFn({
131
+ matchPatterns: matchDayPeriodPatterns,
132
+ defaultMatchWidth: "wide",
133
+ parsePatterns: parseDayPeriodPatterns,
134
+ defaultParseWidth: "any",
135
+ }),
136
+ };
137
+
138
+ export { match };
@@ -0,0 +1,33 @@
1
+ 'use client';
2
+
3
+ import { formatDistance } from './de/_lib/formatDistance.js';
4
+ import { formatLong } from './de/_lib/formatLong.js';
5
+ import { formatRelative } from './de/_lib/formatRelative.js';
6
+ import { localize } from './de/_lib/localize.js';
7
+ import { match } from './de/_lib/match.js';
8
+
9
+ /**
10
+ * @category Locales
11
+ * @summary German locale.
12
+ * @language German
13
+ * @iso-639-2 deu
14
+ * @author Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu)
15
+ * @author Asia [@asia-t](https://github.com/asia-t)
16
+ * @author Van Vuong Ngo [@vanvuongngo](https://github.com/vanvuongngo)
17
+ * @author RomanErnst [@pex](https://github.com/pex)
18
+ * @author Philipp Keck [@Philipp91](https://github.com/Philipp91)
19
+ */
20
+ const de = {
21
+ code: "de",
22
+ formatDistance: formatDistance,
23
+ formatLong: formatLong,
24
+ formatRelative: formatRelative,
25
+ localize: localize,
26
+ match: match,
27
+ options: {
28
+ weekStartsOn: 1 /* Monday */,
29
+ firstWeekContainsDate: 4,
30
+ },
31
+ };
32
+
33
+ export { de, de as default };